PageSourceSearch

https://zelenyostrov.eu/assets/index-kaguSIwn.js

js zelenyostrov.eu collected 2026-10-08 23:51:08 UTC 943,736 bytes, 577 lines download raw bytes

vendor: 20,531 bytes, lines 1-3
1var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(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},c=(n,r,a)=>(a=n==null?{}:e(i(n)),s(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));(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),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var l=o((e=>{var t=Symbol.for(`react.transitional.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.consumer`),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.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var ee=Array.isArray;function S(){}var C={H:null,A:null,T:null,S:null},te=Object.prototype.hasOwnProperty;function w(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function T(e,t){return w(e.type,t,e.props)}function ne(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function re(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var ie=/\/+/g;function ae(e,t){return typeof e==`object`&&e&&e.key!=null?re(``+e.key):t.toString(36)}function oe(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(S,S):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function se(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`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,se(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+ae(e,0):a,ee(o)?(i=``,c!=null&&(i=c.replace(ie,`$&/`)+`/`),se(o,r,i,``,function(e){return e})):o!=null&&(ne(o)&&(o=T(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(ie,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(ee(e))for(var u=0;u<e.length;u++)a=e[u],s=l+ae(a,u),c+=se(a,r,i,s,o);else if(u=m(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+ae(a,u++),c+=se(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return se(oe(e),r,i,a,o);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 ce(e,t,n){if(e==null)return e;var r=[],i=0;return se(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function le(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 E=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},D={map:ce,forEach:function(e,t,n){ce(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return ce(e,function(){t++}),t},toArray:function(e){return ce(e,function(e){return e})||[]},only:function(e){if(!ne(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=D,e.Component=v,e.Fragment=r,e.Profiler=a,e.PureComponent=b,e.StrictMode=i,e.Suspense=l,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=C,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return C.H.useMemoCache(e)}},e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=g({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!te.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return w(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)te.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return w(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=ne,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:le}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=C.T,n={};C.T=n;try{var r=e(),i=C.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(S,E)}catch(e){E(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),C.T=t}},e.unstable_useCacheRefresh=function(){return C.H.useCacheRefresh()},e.use=function(e){return C.H.use(e)},e.useActionState=function(e,t,n){return C.H.useActionState(e,t,n)},e.useCallback=function(e,t){return C.H.useCallback(e,t)},e.useContext=function(e){return C.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return C.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return C.H.useEffect(e,t)},e.useEffectEvent=function(e){return C.H.useEffectEvent(e)},e.useId=function(){return C.H.useId()},e.useImperativeHandle=function(e,t,n){return C.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return C.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return C.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return C.H.useMemo(e,t)},e.useOptimistic=function(e,t){return C.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return C.H.useReducer(e,t,n)},e.useRef=function(e){return C.H.useRef(e)},e.useState=function(e){return C.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return C.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return C.H.useTransition()},e.version=`19.2.6`})),u=o(((e,t)=>{t.exports=l()})),d=o((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(e.unstable_now=void 0,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=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(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 x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,ee||(ee=!0,ne());else{var t=n(l);t!==null&&ae(x,t.startTime-e)}}var ee=!1,S=-1,C=5,te=-1;function w(){return g?!0:!(e.unstable_now()-te<C)}function T(){if(g=!1,ee){var t=e.unstable_now();te=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(S),S=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&w());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&ae(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?ne():ee=!1}}}var ne;if(typeof y==`function`)ne=function(){y(T)};else if(typeof MessageChannel<`u`){var re=new MessageChannel,ie=re.port2;re.port1.onmessage=T,ne=function(){ie.postMessage(null)}}else ne=function(){_(T,0)};function ae(t,n){S=_(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_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`):C=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},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_requestPaint=function(){g=!0},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?(v(S),S=-1):h=!0,ae(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,ee||(ee=!0,ne()))),r},e.unstable_shouldYield=w,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),f=o(((e,t)=>{t.exports=d()})),p=o((e=>{var t=u();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for(`react.portal`);function o(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}var s=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return o(e,t,null,r)},e.flushSync=function(e){var t=s.T,n=i.p;try{if(s.T=null,i.p=2,e)return e()}finally{s.T=t,i.p=n,i.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,i.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&i.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin),a=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?i.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:o}):n===`script`&&i.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`)if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=c(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0})}}else t??i.d.M(e)},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`)if(t){var n=c(t.as,t.crossOrigin);i.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0})}else i.d.m(e)},e.requestFormReset=function(e){i.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return s.H.useFormState(e,t,n)},e.useFormStatus=function(){return s.H.useHostTransitionStatus()},e.version=`19.2.6`})),m=o(((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=p()})),h=o((e=>{var t=f(),n=u(),r=m();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(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 s(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 c(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(o(e)!==e)throw Error(i(188))}function d(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function p(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=p(e),t!==null)return t;e=e.sibling}return null}var h=Object.assign,g=Symbol.for(`react.element`),_=Symbol.for(`react.transitional.element`),v=Symbol.for(`react.portal`),y=Symbol.for(`react.fragment`),b=Symbol.for(`react.strict_mode`),x=Symbol.for(`react.profiler`),ee=Symbol.for(`react.consumer`),S=Symbol.for(`react.context`),C=Symbol.for(`react.forward_ref`),te=Symbol.for(`react.suspense`),w=Symbol.for(`react.suspense_list`),T=Symbol.for(`react.memo`),ne=Symbol.for(`react.lazy`),re=Symbol.for(`react.activity`),ie=Symbol.for(`react.memo_cache_sentinel`),ae=Symbol.iterator;function oe(e){return typeof e!=`object`||!e?null:(e=ae&&e[ae]||e[`@@iterator`],typeof e==`function`?e:null)}var se=Symbol.for(`react.client.reference`);function ce(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===se?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case y:return`Fragment`;case x:return`Profiler`;case b:return`StrictMode`;case te:return`Suspense`;case w:return`SuspenseList`;case re:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case v:return`Portal`;case S:return e.displayName||`Context`;case ee:return(e._context.displayName||`Context`)+`.Consumer`;case C:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case T:return t=e.displayName||null,t===null?ce(e.type)||`Memo`:t;case ne:t=e._payload,e=e._init;try{return ce(e(t))}catch{}}return null}var le=Array.isArray,E=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,D=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ue={pending:!1,data:null,method:null,action:null},de=[],fe=-1;function pe(e){return{current:e}}function me(e){0>fe||(e.current=de[fe],de[fe]=null,fe--)}function he(e,t){fe++,de[fe]=e.current,e.current=t}var ge=pe(null),_e=pe(null),ve=pe(null),ye=pe(null);function be(e,t){switch(he(ve,t),he(_e,e),he(ge,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Qd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Qd(t),e=$d(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}me(ge),he(ge,e)}function xe(){me(ge),me(_e),me(ve)}function Se(e){e.memoizedState!==null&&he(ye,e);var t=ge.current,n=$d(t,e.type);t!==n&&(he(_e,e),he(ge,n))}function Ce(e){_e.current===e&&(me(ge),me(_e)),ye.current===e&&(me(ye),rp._currentValue=ue)}var we,Te;function Ee(e){if(we===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);we=t&&t[1]||``,Te=-1<e.stack.indexOf(`
2    at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
3`+we+e+Te}var De=!1;function Oe(e,t){if(!e||De)return``;De=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,`props`,{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}
vendor: 6,580 bytes, lines 3-8
3else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,`name`,{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
4`),l=s.split(`
5`);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`
6`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{De=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?Ee(n):``}function O(e,t){switch(e.tag){case 26:case 27:case 5:return Ee(e.type);case 16:return Ee(`Lazy`);case 13:return e.child!==t&&t!==null?Ee(`Suspense Fallback`):Ee(`Suspense`);case 19:return Ee(`SuspenseList`);case 0:case 15:return Oe(e.type,!1);case 11:return Oe(e.type.render,!1);case 1:return Oe(e.type,!0);case 31:return Ee(`Activity`);default:return``}}function ke(e){try{var t=``,n=null;do t+=O(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
7Error generating stack: `+e.message+`
8`+e.stack}}var Ae=Object.prototype.hasOwnProperty,je=t.unstable_scheduleCallback,Me=t.unstable_cancelCallback,Ne=t.unstable_shouldYield,Pe=t.unstable_requestPaint,Fe=t.unstable_now,Ie=t.unstable_getCurrentPriorityLevel,Le=t.unstable_ImmediatePriority,Re=t.unstable_UserBlockingPriority,ze=t.unstable_NormalPriority,Be=t.unstable_LowPriority,Ve=t.unstable_IdlePriority,He=t.log,Ue=t.unstable_setDisableYieldValue,We=null,Ge=null;function Ke(e){if(typeof He==`function`&&Ue(e),Ge&&typeof Ge.setStrictMode==`function`)try{Ge.setStrictMode(We,e)}catch{}}var qe=Math.clz32?Math.clz32:Xe,Je=Math.log,Ye=Math.LN2;function Xe(e){return e>>>=0,e===0?32:31-(Je(e)/Ye|0)|0}var Ze=256,Qe=262144,$e=4194304;function et(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function tt(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=et(n))):i=et(o):i=et(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=et(n))):i=et(o)):i=et(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function nt(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function rt(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function it(){var e=$e;return $e<<=1,!($e&62914560)&&($e=4194304),e}function at(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ot(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function st(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-qe(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&ct(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function ct(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-qe(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function lt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-qe(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function ut(e,t){var n=t&-t;return n=n&42?1:dt(n),(n&(e.suspendedLanes|t))===0?n:0}function dt(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function ft(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function pt(){var e=D.p;return e===0?(e=window.event,e===void 0?32:_p(e.type)):e}function mt(e,t){var n=D.p;try{return D.p=e,t()}finally{D.p=n}}var ht=Math.random().toString(36).slice(2),gt=`__reactFiber$`+ht,_t=`__reactProps$`+ht,vt=`__reactContainer$`+ht,yt=`__reactEvents$`+ht,bt=`__reactListeners$`+ht,xt=`__reactHandles$`+ht,St=`__reactResources$`+ht,Ct=`__reactMarker$`+ht;function wt(e){delete e[gt],delete e[_t],delete e[yt],delete e[bt],delete e[xt]}function Tt(e){var t=e[gt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[vt]||n[gt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Sf(e);e!==null;){if(n=e[gt])return n;e=Sf(e)}return t}e=n,n=e.parentNode}return null}function Et(e){if(e=e[gt]||e[vt]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Dt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function Ot(e){var t=e[St];return t||=e[St]={hoistableStyles:new Map,hoistableScripts:new Map},t}function kt(e){e[Ct]=!0}var At=new Set,jt={};function Mt(e,t){Nt(e,t),Nt(e+`Capture`,t)}function Nt(e,t){for(jt[e]=t,e=0;e<t.length;e++)At.add(t[e])}var Pt=RegExp(`^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u
8037D\\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]*$`),Ft={},It={};function Lt(e){return Ae.call(It,e)?!0:Ae.call(Ft,e)?!1:Pt.test(e)?It[e]=!0:(Ft[e]=!0,!1)}function Rt(e,t,n){if(Lt(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,``+n)}}function zt(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,``+n)}}function Bt(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,``+r)}}function k(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function Vt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function A(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ht(e){if(!e._valueTracker){var t=Vt(e)?`checked`:`value`;e._valueTracker=A(e,t,``+e[t])}}function Ut(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Vt(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}function Wt(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}var Gt=/[\n"\\]/g;function Kt(e){return e.replace(Gt,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function qt(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+k(t)):e.value!==``+k(t)&&(e.value=``+k(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):Yt(e,o,k(n)):Yt(e,o,k(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+k(s):e.removeAttribute(`name`)}function Jt(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){Ht(e);return}n=n==null?``:``+k(n),t=t==null?n:``+k(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),Ht(e)}function Yt(e,t,n){t===`number`&&Wt(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function Xt(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=``+k(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 Zt(e,t,n){if(t!=null&&(t=``+k(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+k(n)}function Qt(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(le(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}
vendor: 9,506 bytes, line 8
8n=k(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),Ht(e)}function $t(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var en=new Set(`animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp`.split(` `));function tn(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||en.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function nn(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(i(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&tn(e,a,r)}else for(var o in t)t.hasOwnProperty(o)&&tn(e,o,t[o])}function rn(e){if(e.indexOf(`-`)===-1)return!1;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}var an=new Map([[`acceptCharset`,`accept-charset`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`],[`crossOrigin`,`crossorigin`],[`accentHeight`,`accent-height`],[`alignmentBaseline`,`alignment-baseline`],[`arabicForm`,`arabic-form`],[`baselineShift`,`baseline-shift`],[`capHeight`,`cap-height`],[`clipPath`,`clip-path`],[`clipRule`,`clip-rule`],[`colorInterpolation`,`color-interpolation`],[`colorInterpolationFilters`,`color-interpolation-filters`],[`colorProfile`,`color-profile`],[`colorRendering`,`color-rendering`],[`dominantBaseline`,`dominant-baseline`],[`enableBackground`,`enable-background`],[`fillOpacity`,`fill-opacity`],[`fillRule`,`fill-rule`],[`floodColor`,`flood-color`],[`floodOpacity`,`flood-opacity`],[`fontFamily`,`font-family`],[`fontSize`,`font-size`],[`fontSizeAdjust`,`font-size-adjust`],[`fontStretch`,`font-stretch`],[`fontStyle`,`font-style`],[`fontVariant`,`font-variant`],[`fontWeight`,`font-weight`],[`glyphName`,`glyph-name`],[`glyphOrientationHorizontal`,`glyph-orientation-horizontal`],[`glyphOrientationVertical`,`glyph-orientation-vertical`],[`horizAdvX`,`horiz-adv-x`],[`horizOriginX`,`horiz-origin-x`],[`imageRendering`,`image-rendering`],[`letterSpacing`,`letter-spacing`],[`lightingColor`,`lighting-color`],[`markerEnd`,`marker-end`],[`markerMid`,`marker-mid`],[`markerStart`,`marker-start`],[`overlinePosition`,`overline-position`],[`overlineThickness`,`overline-thickness`],[`paintOrder`,`paint-order`],[`panose-1`,`panose-1`],[`pointerEvents`,`pointer-events`],[`renderingIntent`,`rendering-intent`],[`shapeRendering`,`shape-rendering`],[`stopColor`,`stop-color`],[`stopOpacity`,`stop-opacity`],[`strikethroughPosition`,`strikethrough-position`],[`strikethroughThickness`,`strikethrough-thickness`],[`strokeDasharray`,`stroke-dasharray`],[`strokeDashoffset`,`stroke-dashoffset`],[`strokeLinecap`,`stroke-linecap`],[`strokeLinejoin`,`stroke-linejoin`],[`strokeMiterlimit`,`stroke-miterlimit`],[`strokeOpacity`,`stroke-opacity`],[`strokeWidth`,`stroke-width`],[`textAnchor`,`text-anchor`],[`textDecoration`,`text-decoration`],[`textRendering`,`text-rendering`],[`transformOrigin`,`transform-origin`],[`underlinePosition`,`underline-position`],[`underlineThickness`,`underline-thickness`],[`unicodeBidi`,`unicode-bidi`],[`unicodeRange`,`unicode-range`],[`unitsPerEm`,`units-per-em`],[`vAlphabetic`,`v-alphabetic`],[`vHanging`,`v-hanging`],[`vIdeographic`,`v-ideographic`],[`vMathematical`,`v-mathematical`],[`vectorEffect`,`vector-effect`],[`vertAdvY`,`vert-adv-y`],[`vertOriginX`,`vert-origin-x`],[`vertOriginY`,`vert-origin-y`],[`wordSpacing`,`word-spacing`],[`writingMode`,`writing-mode`],[`xmlnsXlink`,`xmlns:xlink`],[`xHeight`,`x-height`]]),on=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function sn(e){return on.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function cn(){}var ln=null;function un(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var dn=null,fn=null;function pn(e){var t=Et(e);if(t&&(e=t.stateNode)){var n=e[_t]||null;a:switch(e=t.stateNode,t.type){case`input`:if(qt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name="`+Kt(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[_t]||null;if(!a)throw Error(i(90));qt(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&Ut(r)}break a;case`textarea`:Zt(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&Xt(e,!!n.multiple,t,!1)}}}var mn=!1;function hn(e,t,n){if(mn)return e(t,n);mn=!0;try{return e(t)}finally{if(mn=!1,(dn!==null||fn!==null)&&(ku(),dn&&(t=dn,e=fn,fn=dn=null,pn(t),e)))for(t=0;t<e.length;t++)pn(e[t])}}function gn(e,t){var n=e.stateNode;if(n===null)return null;var r=n[_t]||null;if(r===null)return null;n=r[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`:(r=!r.disabled)||(e=e.type,r=!(e===`button`||e===`input`||e===`select`||e===`textarea`)),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(i(231,t,typeof n));return n}var _n=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),vn=!1;if(_n)try{var yn={};Object.defineProperty(yn,`passive`,{get:function(){vn=!0}}),window.addEventListener(`test`,yn,yn),window.removeEventListener(`test`,yn,yn)}catch{vn=!1}var bn=null,xn=null,Sn=null;function Cn(){if(Sn)return Sn;var e,t=xn,n=t.length,r,i=`value`in bn?bn.value:bn.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 Sn=i.slice(e,1<r?1-r:void 0)}function wn(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 Tn(){return!0}function En(){return!1}function Dn(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)?Tn:En,this.isPropagationStopped=En,this}return h(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=Tn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=Tn)},persist:function(){},isPersistent:Tn}),t}var On={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},kn=Dn(On),An=h({},On,{view:0,detail:0}),jn=Dn(An),Mn,Nn,Pn,Fn=h({},An,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Gn,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==Pn&&(Pn&&e.type===`mousemove`?(Mn=e.screenX-Pn.screenX,Nn=e.screenY-Pn.screenY):Nn=Mn=0,Pn=e),Mn)},movementY:function(e){return`movementY`in e?e.movementY:Nn}}),j=Dn(Fn),In=Dn(h({},Fn,{dataTransfer:0})),Ln=Dn(h({},An,{relatedTarget:0})),Rn=Dn(h({},On,{animationName:0,elapsedTime:0,pseudoElement:0})),zn=Dn(h({},On,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Bn=Dn(h({},On,{data:0})),Vn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Hn={8:`Backspace`,9:`Tab`,12:`Clear`,13:`Enter`,16:`Shift`,17:`Control`,18:`Alt`,19:`Pause`,20:`CapsLock`,27:`Escape`,32:` `,33:`PageUp`,34:`PageDown`,35:`End`,36:`Home`,37:`ArrowLeft`,38:`ArrowUp`,39:`ArrowRight`,40:`ArrowDown`,45:`Insert`,46:`Delete`,112:`F1`,113:`F2`,114:`F3`,115:`F4`,116:`F
85`,117:`F6`,118:`F7`,119:`F8`,120:`F9`,121:`F10`,122:`F11`,123:`F12`,144:`NumLock`,145:`ScrollLock`,224:`Meta`},Un={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Wn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Un[e])?!!t[e]:!1}function Gn(){return Wn}var Kn=Dn(h({},An,{key:function(e){if(e.key){var t=Vn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=wn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Hn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Gn,charCode:function(e){return e.type===`keypress`?wn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?wn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),qn=Dn(h({},Fn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Jn=Dn(h({},An,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Gn})),Yn=Dn(h({},On,{propertyName:0,elapsedTime:0,pseudoElement:0})),Xn=Dn(h({},Fn,{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})),Zn=Dn(h({},On,{newState:0,oldState:0})),Qn=[9,13,27,32],$n=_n&&`CompositionEvent`in window,er=null;_n&&`documentMode`in document&&(er=document.documentMode);var tr=_n&&`TextEvent`in window&&!er,nr=_n&&(!$n||er&&8<er&&11>=er),rr=` `,ir=!1;function ar(e,t){switch(e){case`keyup`:return Qn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function or(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var M=!1;function sr(e,t){switch(e){case`compositionend`:return or(t);case`keypress`:return t.which===32?(ir=!0,rr):null;case`textInput`:return e=t.data,e===rr&&ir?null:e;default:return null}}function cr(e,t){if(M)return e===`compositionend`||!$n&&ar(e,t)?(e=Cn(),Sn=xn=bn=null,M=!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 nr&&t.locale!==`ko`?null:t.data;default:return null}}var lr={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 ur(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!lr[e.type]:t===`textarea`}function dr(e,t,n,r){dn?fn?fn.push(r):fn=[r]:dn=r,t=Id(t,`onChange`),0<t.length&&(n=new kn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var fr=null,pr=null;function mr(e){kd(e,0)}function hr(e){if(Ut(Dt(e)))return e}function gr(e,t){if(e===`change`)return t}var _r=!1;if(_n){var vr;if(_n){var yr=`oninput`in document;if(!yr){var N=document.createElement(`div`);N.setAttribute(`oninput`,`return;`),yr=typeof N.oninput==`function`}vr=yr}else vr=!1;_r=vr&&(!document.documentMode||9<document.documentMode)}function br(){fr&&(fr.detachEvent(`onpropertychange`,xr),pr=fr=null)}function xr(e){if(e.propertyName===`value`&&hr(pr)){var t=[];dr(t,pr,e,un(e)),hn(mr,t)}}function Sr(e,t,n){e===`focusin`?(br(),fr=t,pr=n,fr.attachEvent(`onpropertychange`,xr)):e===`focusout`&&br()}function Cr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return hr(pr)}function wr(e,t){if(e===`click`)return hr(t)}function Tr(e,t){if(e===`input`||e===`change`)return hr(t)}function Er(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Dr=typeof Object.is==`function`?Object.is:Er;function Or(e,t){if(Dr(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(!Ae.call(t,i)||!Dr(e[i],t[i]))return!1}return!0}function kr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ar(e,t){var n=kr(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=kr(n)}}function jr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?jr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Mr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Wt(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Wt(e.document)}return t}function Nr(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`)}var Pr=_n&&`documentMode`in document&&11>=document.documentMode,P=null,Fr=null,Ir=null,Lr=!1;function Rr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Lr||P==null||P!==Wt(r)||(r=P,`selectionStart`in r&&Nr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focu
vendor: 72,381 bytes, line 8
8sNode:r.focusNode,focusOffset:r.focusOffset}),Ir&&Or(Ir,r)||(Ir=r,r=Id(Fr,`onSelect`),0<r.length&&(t=new kn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=P)))}function zr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Br={animationend:zr(`Animation`,`AnimationEnd`),animationiteration:zr(`Animation`,`AnimationIteration`),animationstart:zr(`Animation`,`AnimationStart`),transitionrun:zr(`Transition`,`TransitionRun`),transitionstart:zr(`Transition`,`TransitionStart`),transitioncancel:zr(`Transition`,`TransitionCancel`),transitionend:zr(`Transition`,`TransitionEnd`)},Vr={},Hr={};_n&&(Hr=document.createElement(`div`).style,`AnimationEvent`in window||(delete Br.animationend.animation,delete Br.animationiteration.animation,delete Br.animationstart.animation),`TransitionEvent`in window||delete Br.transitionend.transition);function Ur(e){if(Vr[e])return Vr[e];if(!Br[e])return e;var t=Br[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Hr)return Vr[e]=t[n];return e}var Wr=Ur(`animationend`),Gr=Ur(`animationiteration`),Kr=Ur(`animationstart`),qr=Ur(`transitionrun`),Jr=Ur(`transitionstart`),Yr=Ur(`transitioncancel`),Xr=Ur(`transitionend`),Zr=new Map,Qr=`abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel`.split(` `);Qr.push(`scrollEnd`);function $r(e,t){Zr.set(e,t),Mt(t,[e])}var ei=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},ti=[],ni=0,ri=0;function ii(){for(var e=ni,t=ri=ni=0;t<e;){var n=ti[t];ti[t++]=null;var r=ti[t];ti[t++]=null;var i=ti[t];ti[t++]=null;var a=ti[t];if(ti[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&ci(n,i,a)}}function ai(e,t,n,r){ti[ni++]=e,ti[ni++]=t,ti[ni++]=n,ti[ni++]=r,ri|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function oi(e,t,n,r){return ai(e,t,n,r),li(e)}function si(e,t){return ai(e,null,null,t),li(e)}function ci(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-qe(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function li(e){if(50<bu)throw bu=0,xu=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ui={};function di(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function fi(e,t,n,r){return new di(e,t,n,r)}function pi(e){return e=e.prototype,!(!e||!e.isReactComponent)}function mi(e,t){var n=e.alternate;return n===null?(n=fi(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&65011712,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.refCleanup=e.refCleanup,n}function hi(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function gi(e,t,n,r,a,o){var s=0;if(r=e,typeof e==`function`)pi(e)&&(s=1);else if(typeof e==`string`)s=J(e,n,ge.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case re:return e=fi(31,n,t,a),e.elementType=re,e.lanes=o,e;case y:return _i(n.children,a,o,t);case b:s=8,a|=24;break;case x:return e=fi(12,n,t,a|2),e.elementType=x,e.lanes=o,e;case te:return e=fi(13,n,t,a),e.elementType=te,e.lanes=o,e;case w:return e=fi(19,n,t,a),e.elementType=w,e.lanes=o,e;default:if(typeof e==`object`&&e)switch(e.$$typeof){case S:s=10;break a;case ee:s=9;break a;case C:s=11;break a;case T:s=14;break a;case ne:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=fi(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function _i(e,t,n,r){return e=fi(7,e,r,t),e.lanes=n,e}function vi(e,t,n){return e=fi(6,e,null,t),e.lanes=n,e}function yi(e){var t=fi(18,null,null,0);return t.stateNode=e,t}function bi(e,t,n){return t=fi(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var xi=new WeakMap;function Si(e,t){if(typeof e==`object`&&e){var n=xi.get(e);return n===void 0?(t={value:e,source:t,stack:ke(t)},xi.set(e,t),t):n}return{value:e,source:t,stack:ke(t)}}var Ci=[],wi=0,Ti=null,Ei=0,Di=[],Oi=0,ki=null,Ai=1,ji=``;function Mi(e,t){Ci[wi++]=Ei,Ci[wi++]=Ti,Ti=e,Ei=t}function Ni(e,t,n){Di[Oi++]=Ai,Di[Oi++]=ji,Di[Oi++]=ki,ki=e;var r=Ai;e=ji;var i=32-qe(r)-1;r&=~(1<<i),n+=1;var a=32-qe(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Ai=1<<32-qe(t)+i|n<<i|r,ji=a+e}else Ai=1<<a|n<<i|r,ji=e}function Pi(e){e.return!==null&&(Mi(e,1),Ni(e,1,0))}function Fi(e){for(;e===Ti;)Ti=Ci[--wi],Ci[wi]=null,Ei=Ci[--wi],Ci[wi]=null;for(;e===ki;)ki=Di[--Oi],Di[Oi]=null,ji=Di[--Oi],Di[Oi]=null,Ai=Di[--Oi],Di[Oi]=null}function Ii(e,t){Di[Oi++]=Ai,Di[Oi++]=ji,Di[Oi++]=ki,Ai=t.id,ji=t.overflow,ki=e}var Li=null,Ri=null,F=!1,zi=null,Bi=!1,Vi=Error(i(519));function Hi(e){throw Ji(Si(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),Vi}function Ui(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[gt]=e,t[_t]=r,n){case`dialog`:H(`cancel`,t),H(`close`,t);break;case`iframe`:case`object`:case`embed`:H(`load`,t);break;case`video`:case`audio`:for(n=0;n<Dd.length;n++)H(Dd[n],t);break;case`source`:H(`error`,t);break;case`img`:case`image`:case`link`:H(`error`,t),H(`load`,t);break;case`details`:H(`toggle`,t);break;case`input`:H(`invalid`,t),Jt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:H(`invalid`,t);break;case`textarea`:H(`invalid`,t),Qt(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||Hd(t.textContent,n)?(r.popover!=null&&(H(`beforetoggle`,t),H(`toggle`,t)),r.onScroll!=null&&H(`scroll`,t),r.onScrollEnd!=null&&H(`scrollend`,t),r.onClick!=null&&(t.onclick=cn),t=!0):t=!1,t||Hi(e,!0)}function Wi(e){for(Li=e.return;Li;)switch(Li.tag){case 5:case 31:case 13:Bi=!1;return;case 27:case 3:Bi=!0;return;default:Li=Li.return}}function Gi(e){if(e!==Li)return!1;if(!F)return Wi(e),F=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!==`form`&&n!==`button`)||ef(e.type,e.memoizedProps)),n=!n),n&&Ri&&Hi(e),Wi(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Ri=xf(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Ri=xf(e)}else t===27?(t=Ri,lf(e.type)?(e=bf,bf=null,Ri=e):Ri=t):Ri=Li?yf(e.stateNode.nextSibling):null;return!0}function Ki(){Ri=Li=null,F=!1}function qi(){var e=zi;return e!==null&&(ou===null?ou=e:ou.push.apply(ou,e),zi=null),e}function Ji(e){zi===null?zi=[e]:zi.push(e)}var Yi=pe(null),Xi=null,Zi=null;function Qi(e,t,n){he(Yi,t._currentValue),t._currentValue=n}function $i(e){e._currentValue=Yi.current,me(Yi)}function ea(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 ta(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var s=a.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=a;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),ea(o.return,n,e),r||(s=null);break a}o=c.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(i(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),ea(s,n,e),s=null}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function na(e,t,n,r){e=null;for(var a=t,o=!1;a!==null;){if(!o){if(a.flags&524288)o=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(i(387));if(s=s.memoizedProps,s!==null){var c=a.type;Dr(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===ye.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[rp]:e.push(rp))}a=a.return}e!==null&&ta(t,e,n,r),t.flags|=262144}function ra(e){for(e=e.firstContext;e!==null;){if(!Dr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ia(e){Xi=e,Zi=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function aa(e){return sa(Xi,e)}function oa(e,t){return Xi===null&&ia(e),sa(e,t)}function sa(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Zi===null){if(e===null)throw Error(i(308));Zi=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Zi=Zi.next=t;return n}var ca=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},la=t.unstable_scheduleCallback,ua=t.unstable_NormalPriority,da={$$typeof:S,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function fa(){return{controller:new ca,data:new Map,refCount:0}}function pa(e){e.refCount--,e.refCount===0&&la(ua,function(){e.controller.abort()})}var ma=null,ha=0,ga=0,_a=null;function va(e,t){if(ma===null){var n=ma=[];ha=0,ga=xd(),_a={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return ha++,t.then(ya,ya),t}function ya(){if(--ha===0&&ma!==null){_a!==null&&(_a.status=`fulfilled`);var e=ma;ma=null,ga=0,_a=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function ba(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var xa=E.S;E.S=function(e,t){lu=Fe(),typeof t==`object`&&t&&typeof t.then==`function`&&va(e,t),xa!==null&&xa(e,t)};var Sa=pe(null);function Ca(){var e=Sa.current;return e===null?Kl.pooledCache:e}function wa(e,t){t===null?he(Sa,Sa.current):he(Sa,t.pool)}function Ta(){var e=Ca();return e===null?null:{parent:da._currentValue,pool:e}}var Ea=Error(i(460)),Da=Error(i(474)),Oa=Error(i(542)),ka={then:function(){}};function Aa(e){return e=e.status,e===`fulfilled`||e===`rejected`}function ja(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(cn,cn),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Fa(e),e;default:if(typeof t.status==`string`)t.then(cn,cn);else{if(e=Kl,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Fa(e),e}throw Na=t,Ea}}function Ma(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(Na=e,Ea):e}}var Na=null;function Pa(){if(Na===null)throw Error(i(459));var e=Na;return Na=null,e}function Fa(e){if(e===Ea||e===Oa)throw Error(i(483))}var Ia=null,La=0;function Ra(e){var t=La;return La+=1,Ia===null&&(Ia=[]),ja(Ia,e,t)}function za(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function Ba(e,t){throw t.$$typeof===g?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function Va(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 r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function a(e,t){return e=mi(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|=67108866,n):(r=r.index,r<n?(t.flags|=67108866,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=67108866),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=vi(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===y?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===ne&&Ma(i)===t.type)?(t=a(t,n.props),za(t,n),t.return=e,t):(t=gi(n.type,n.key,n.props,null,e.mode,r),za(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=bi(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=_i(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`||typeof t==`bigint`)return t=vi(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case _:return n=gi(t.type,t.key,t.props,null,e.mode,n),za(n,t),n.return=e,n;case v:return t=bi(t,e.mode,n),t.return=e,t;case ne:return t=Ma(t),f(e,t,n)}if(le(t)||oe(t))return t=_i(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,Ra(t),n);if(t.$$typeof===S)return f(e,oa(e,t),n);Ba(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`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case _:return n.key===i?l(e,t,n,r):null;case v:return n.key===i?u(e,t,n,r):null;case ne:return n=Ma(n),p(e,t,n,r)}if(le(n)||oe(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,Ra(n),r);if(n.$$typeof===S)return p(e,t,oa(e,n),r);Ba(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case _:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case v:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case ne:return r=Ma(r),m(e,t,n,r,i)}if(le(r)||oe(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,Ra(r),i);if(r.$$typeof===S)return m(e,t,n,oa(t,r),i);Ba(t,r)}return null}function h(i,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(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),F&&Mi(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return F&&Mi(i,h),l}for(d=r(d);h<s.length;h++)g=m(d,i,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(i,e)}),F&&Mi(i,h),l}function g(a,s,c,l){if(c==null)throw Error(i(151));for(var u=null,d=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),F&&Mi(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 F&&Mi(a,g),u}for(h=r(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)}),F&&Mi(a,g),u}function b(e,r,o,c){if(typeof o==`object`&&o&&o.type===y&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case _:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===y){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===ne&&Ma(l)===r.type){n(e,r.sibling),c=a(r,o.props),za(c,o),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}o.type===y?(c=_i(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=gi(o.type,o.key,o.props,null,e.mode,c),za(c,o),c.return=e,e=c)}return s(e);case v:a:{for(l=o.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}else{n(e,r);break}else t(e,r);r=r.sibling}c=bi(o,e.mode,c),c.return=e,e=c}return s(e);case ne:return o=Ma(o),b(e,r,o,c)}if(le(o))return h(e,r,o,c);if(oe(o)){if(l=oe(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),g(e,r,o,c)}if(typeof o.then==`function`)return b(e,r,Ra(o),c);if(o.$$typeof===S)return b(e,r,oa(e,o),c);Ba(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=vi(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{La=0;var i=b(e,t,n,r);return Ia=null,i}catch(t){if(t===Ea||t===Oa)throw t;var a=fi(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Ha=Va(!0),Ua=Va(!1),Wa=!1;function I(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ga(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ka(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function qa(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,z&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=li(e),ci(e,null,n),t}return ai(e,r,t,n),li(e)}function Ja(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,lt(e,n)}}function Ya(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={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,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,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Xa=!1;function Za(){if(Xa){var e=_a;if(e!==null)throw e}}function Qa(e,t,n,r){Xa=!1;var i=e.updateQueue;Wa=!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&-536870913,p=f!==s.lane;if(p?(V&f)===f:(r&f)===f){f!==0&&f===ga&&(Xa=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var m=e,g=s;f=t;var _=n;switch(g.tag){case 1:if(m=g.payload,typeof m==`function`){d=m.call(_,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=g.payload,f=typeof m==`function`?m.call(_,d,f):m,f==null)break a;d=h({},d,f);break a;case 2:Wa=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else 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;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),eu|=o,e.lanes=o,e.memoizedState=d}}function $a(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function eo(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)$a(n[e],t)}var to=pe(null),no=pe(0);function ro(e,t){e=Ql,he(no,e),he(to,t),Ql=e|t.baseLanes}function io(){he(no,Ql),he(to,to.current)}function ao(){Ql=no.current,me(to),me(no)}var oo=pe(null),so=null;function co(e){var t=e.alternate;he(mo,mo.current&1),he(oo,e),so===null&&(t===null||to.current!==null||t.memoizedState!==null)&&(so=e)}function lo(e){he(mo,mo.current),he(oo,e),so===null&&(so=e)}function uo(e){e.tag===22?(he(mo,mo.current),he(oo,e),so===null&&(so=e)):fo(e)}function fo(){he(mo,mo.current),he(oo,oo.current)}function po(e){me(oo),so===e&&(so=null),me(mo)}var mo=pe(0);function ho(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||gf(n)||_f(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder===`forwards`||t.memoizedProps.revealOrder===`backwards`||t.memoizedProps.revealOrder===`unstable_legacy-backwards`||t.memoizedProps.revealOrder===`together`)){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 go=0,L=null,_o=null,vo=null,yo=!1,bo=!1,xo=!1,So=0,Co=0,wo=null,To=0;function Eo(){throw Error(i(321))}function Do(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Dr(e[n],t[n]))return!1;return!0}function Oo(e,t,n,r,i,a){return go=a,L=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,E.H=e===null||e.memoizedState===null?Ws:Gs,xo=!1,a=n(r,i),xo=!1,bo&&(a=Ao(t,n,r,i)),ko(e),a}function ko(e){E.H=Us;var t=_o!==null&&_o.next!==null;if(go=0,vo=_o=L=null,yo=!1,Co=0,wo=null,t)throw Error(i(300));e===null||cc||(e=e.dependencies,e!==null&&ra(e)&&(cc=!0))}function Ao(e,t,n,r){L=e;var a=0;do{if(bo&&(wo=null),Co=0,bo=!1,25<=a)throw Error(i(301));if(a+=1,vo=_o=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}E.H=Ks,o=t(n,r)}while(bo);return o}function jo(){var e=E.H,t=e.useState()[0];return t=typeof t.then==`function`?Ro(t):t,e=e.useState()[0],(_o===null?null:_o.memoizedState)!==e&&(L.flags|=1024),t}function Mo(){var e=So!==0;return So=0,e}function No(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Po(e){if(yo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}yo=!1}go=0,vo=_o=L=null,bo=!1,Co=So=0,wo=null}function Fo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return vo===null?L.memoizedState=vo=e:vo=vo.next=e,vo}function Io(){if(_o===null){var e=L.alternate;e=e===null?null:e.memoizedState}else e=_o.next;var t=vo===null?L.memoizedState:vo.next;if(t!==null)vo=t,_o=e;else{if(e===null)throw L.alternate===null?Error(i(467)):Error(i(310));_o=e,e={memoizedState:_o.memoizedState,baseState:_o.baseState,baseQueue:_o.baseQueue,queue:_o.queue,next:null},vo===null?L.memoizedState=vo=e:vo=vo.next=e}return vo}function Lo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ro(e){var t=Co;return Co+=1,wo===null&&(wo=[]),e=ja(wo,e,t),t=L,(vo===null?t.memoizedState:vo.next)===null&&(t=t.alternate,E.H=t===null||t.memoizedState===null?Ws:Gs),e}function zo(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return Ro(e);if(e.$$typeof===S)return aa(e)}throw Error(i(438,String(e)))}function Bo(e){var t=null,n=L.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=L.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=Lo(),L.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=ie;return t.index++,n}function Vo(e,t){return typeof t==`function`?t(e):t}function Ho(e){return Uo(Io(),_o,e)}function Uo(e,t,n){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,r.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(go&f)===f:(V&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===ga&&(d=!0);else if((go&p)===p){u=u.next,p===ga&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,L.lanes|=p,eu|=p;f=u.action,xo&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,L.lanes|=f,eu|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!Dr(o,e.memoizedState)&&(cc=!0,d&&(n=_a,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Wo(e){var t=Io(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=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);Dr(o,t.memoizedState)||(cc=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Go(e,t,n){var r=L,a=Io(),o=F;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!Dr((_o||a).memoizedState,n);if(s&&(a.memoizedState=n,cc=!0),a=a.queue,gs(Jo.bind(null,r,a,e),[e]),a.getSnapshot!==t||s||vo!==null&&vo.memoizedState.tag&1){if(r.flags|=2048,ds(9,{destroy:void 0},qo.bind(null,r,a,n,t),null),Kl===null)throw Error(i(349));o||go&127||Ko(r,t,n)}return n}function Ko(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=L.updateQueue,t===null?(t=Lo(),L.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function qo(e,t,n,r){t.value=n,t.getSnapshot=r,Yo(t)&&Xo(e)}function Jo(e,t,n){return n(function(){Yo(t)&&Xo(e)})}function Yo(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Dr(e,n)}catch{return!0}}function Xo(e){var t=si(e,2);t!==null&&wu(t,e,2)}function Zo(e){var t=Fo();if(typeof e==`function`){var n=e;if(e=n(),xo){Ke(!0);try{n()}finally{Ke(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vo,lastRenderedState:e},t}function Qo(e,t,n,r){return e.baseState=n,Uo(e,_o,typeof r==`function`?r:Vo)}function $o(e,t,n,r,a){if(R(e))throw Error(i(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};E.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,es(t,o)):(o.next=n.next,t.pending=n.next=o)}}function es(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=E.T,o={};E.T=o;try{var s=n(i,r),c=E.S;c!==null&&c(o,s),ts(e,t,s)}catch(n){rs(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),E.T=a}}else try{a=n(i,r),ts(e,t,a)}catch(n){rs(e,t,n)}}function ts(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){ns(e,t,n)},function(n){return rs(e,t,n)}):ns(e,t,n)}function ns(e,t,n){t.status=`fulfilled`,t.value=n,is(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,es(e,n)))}function rs(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,is(t),t=t.next;while(t!==r)}e.action=null}function is(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function as(e,t){return t}function os(e,t){if(F){var n=Kl.formState;if(n!==null){a:{var r=L;if(F){if(Ri){b:{for(var i=Ri,a=Bi;i.nodeType!==8;){if(!a){i=null;break b}if(i=yf(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){Ri=yf(i.nextSibling),r=i.data===`F!`;break a}}Hi(r)}r=!1}r&&(t=n[0])}}return n=Fo(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:as,lastRenderedState:t},n.queue=r,n=Rs.bind(null,L,r),r.dispatch=n,r=Zo(!1),a=Bs.bind(null,L,!1,r.queue),r=Fo(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=$o.bind(null,L,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function ss(e){return cs(Io(),_o,e)}function cs(e,t,n){if(t=Uo(e,t,as)[0],e=Ho(Vo)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=Ro(t)}catch(e){throw e===Ea?Oa:e}else r=t;t=Io();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(L.flags|=2048,ds(9,{destroy:void 0},ls.bind(null,i,n),null)),[r,a,e]}function ls(e,t){e.action=t}function us(e){var t=Io(),n=_o;if(n!==null)return cs(t,n,e);Io(),t=t.memoizedState,n=Io();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function ds(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=L.updateQueue,t===null&&(t=Lo(),L.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function fs(){return Io().memoizedState}function ps(e,t,n,r){var i=Fo();L.flags|=e,i.memoizedState=ds(1|t,{destroy:void 0},n,r===void 0?null:r)}function ms(e,t,n,r){var i=Io();r=r===void 0?null:r;var a=i.memoizedState.inst;_o!==null&&r!==null&&Do(r,_o.memoizedState.deps)?i.memoizedState=ds(t,a,n,r):(L.flags|=e,i.memoizedState=ds(1|t,a,n,r))}function hs(e,t){ps(8390656,8,e,t)}function gs(e,t){ms(2048,8,e,t)}function _s(e){L.flags|=4;var t=L.updateQueue;if(t===null)t=Lo(),L.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function vs(e){var t=Io().memoizedState;return _s({ref:t,nextImpl:e}),function(){if(z&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function ys(e,t){return ms(4,2,e,t)}function bs(e,t){return ms(4,4,e,t)}function xs(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Ss(e,t,n){n=n==null?null:n.concat([e]),ms(4,4,xs.bind(null,t,e),n)}function Cs(){}function ws(e,t){var n=Io();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&Do(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ts(e,t){var n=Io();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&Do(t,r[1]))return r[0];if(r=e(),xo){Ke(!0);try{e()}finally{Ke(!1)}}return n.memoizedState=[r,t],r}function Es(e,t,n){return n===void 0||go&1073741824&&!(V&261930)?e.memoizedState=t:(e.memoizedState=n,e=Cu(),L.lanes|=e,eu|=e,n)}function Ds(e,t,n,r){return Dr(n,t)?n:to.current===null?!(go&42)||go&1073741824&&!(V&261930)?(cc=!0,e.memoizedState=n):(e=Cu(),L.lanes|=e,eu|=e,t):(e=Es(e,n,r),Dr(e,t)||(cc=!0),e)}function Os(e,t,n,r,i){var a=D.p;D.p=a!==0&&8>a?a:8;var o=E.T,s={};E.T=s,Bs(e,!1,t,n);try{var c=i(),l=E.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?zs(e,t,ba(c,r),Su(e)):zs(e,t,r,Su(e))}catch(n){zs(e,t,{then:function(){},status:`rejected`,reason:n},Su())}finally{D.p=a,o!==null&&s.types!==null&&(o.types=s.types),E.T=o}}function ks(){}function As(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=js(e).queue;Os(e,a,t,ue,n===null?ks:function(){return Ms(e),n(r)})}function js(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ue,baseState:ue,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vo,lastRenderedState:ue},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vo,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Ms(e){var t=js(e);t.next===null&&(t=e.alternate.memoizedState),zs(e,t.next.queue,{},Su())}function Ns(){return aa(rp)}function Ps(){return Io().memoizedState}function Fs(){return Io().memoizedState}function Is(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Su();e=Ka(n);var r=qa(t,e,n);r!==null&&(wu(r,t,n),Ja(r,t,n)),t={cache:fa()},e.payload=t;return}t=t.return}}function Ls(e,t,n){var r=Su();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},R(e)?Vs(t,n):(n=oi(e,t,n,r),n!==null&&(wu(n,e,r),Hs(n,t,r)))}function Rs(e,t,n){zs(e,t,n,Su())}function zs(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(R(e))Vs(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,Dr(s,o))return ai(e,t,i,0),Kl===null&&ii(),!1}catch{}if(n=oi(e,t,i,r),n!==null)return wu(n,e,r),Hs(n,t,r),!0}return!1}function Bs(e,t,n,r){if(r={lane:2,revertLane:xd(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},R(e)){if(t)throw Error(i(479))}else t=oi(e,n,r,2),t!==null&&wu(t,e,2)}function R(e){var t=e.alternate;return e===L||t!==null&&t===L}function Vs(e,t){bo=yo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Hs(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,lt(e,n)}}var Us={readContext:aa,use:zo,useCallback:Eo,useContext:Eo,useEffect:Eo,useImperativeHandle:Eo,useLayoutEffect:Eo,useInsertionEffect:Eo,useMemo:Eo,useReducer:Eo,useRef:Eo,useState:Eo,useDebugValue:Eo,useDeferredValue:Eo,useTransition:Eo,useSyncExternalStore:Eo,useId:Eo,useHostTransitionStatus:Eo,useFormState:Eo,useActionState:Eo,useOptimistic:Eo,useMemoCache:Eo,useCacheRefresh:Eo};Us.useEffectEvent=Eo;var Ws={readContext:aa,use:zo,useCallback:function(e,t){return Fo().memoizedState=[e,t===void 0?null:t],e},useContext:aa,useEffect:hs,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),ps(4194308,4,xs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ps(4194308,4,e,t)},useInsertionEffect:function(e,t){ps(4,2,e,t)},useMemo:function(e,t){var n=Fo();t=t===void 0?null:t;var r=e();if(xo){Ke(!0);try{e()}finally{Ke(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Fo();if(n!==void 0){var i=n(t);if(xo){Ke(!0);try{n(t)}finally{Ke(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=Ls.bind(null,L,e),[r.memoizedState,e]},useRef:function(e){var t=Fo();return e={current:e},t.memoizedState=e},useState:function(e){e=Zo(e);var t=e.queue,n=Rs.bind(null,L,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Cs,useDeferredValue:function(e,t){return Es(Fo(),e,t)},useTransition:function(){var e=Zo(!1);return e=Os.bind(null,L,e.queue,!0,!1),Fo().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=L,a=Fo();if(F){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),Kl===null)throw Error(i(349));V&127||Ko(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,hs(Jo.bind(null,r,o,e),[e]),r.flags|=2048,ds(9,{destroy:void 0},qo.bind(null,r,o,n,t),null),n},useId:function(){var e=Fo(),t=Kl.identifierPrefix;if(F){var n=ji,r=Ai;n=(r&~(1<<32-qe(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=So++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=To++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:Ns,useFormState:os,useActionState:os,useOptimistic:function(e){var t=Fo();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Bs.bind(null,L,!0,n),n.dispatch=t,[e,t]},useMemoCache:Bo,useCacheRefresh:function(){return Fo().memoizedState=Is.bind(null,L)},useEffectEvent:function(e){var t=Fo(),n={impl:e};return t.memoizedState=n,function(){if(z&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},Gs={readContext:aa,use:zo,useCallback:ws,useContext:aa,useEffect:gs,useImperativeHandle:Ss,useInsertionEffect:ys,useLayoutEffect:bs,useMemo:Ts,useReducer:Ho,useRef:fs,useState:function(){return Ho(Vo)},useDebugValue:Cs,useDeferredValue:function(e,t){return Ds(Io(),_o.memoizedState,e,t)},useTransition:function(){var e=Ho(Vo)[0],t=Io().memoizedState;return[typeof e==`boolean`?e:Ro(e),t]},useSyncExternalStore:Go,useId:Ps,useHostTransitionStatus:Ns,useFormState:ss,useActionState:ss,useOptimistic:function(e,t){return Qo(Io(),_o,e,t)},useMemoCache:Bo,useCacheRefresh:Fs};Gs.useEffectEvent=vs;var Ks={readContext:aa,use:zo,useCallback:ws,useContext:aa,useEffect:gs,useImperativeHandle:Ss,useInsertionEffect:ys,useLayoutEffect:bs,useMemo:Ts,useReducer:Wo,useRef:fs,useState:function(){return Wo(Vo)},useDebugValue:Cs,useDeferredValue:function(e,t){var n=Io();return _o===null?Es(n,e,t):Ds(n,_o.memoizedState,e,t)},useTransition:function(){var e=Wo(Vo)[0],t=Io().memoizedState;return[typeof e==`boolean`?e:Ro(e),t]},useSyncExternalStore:Go,useId:Ps,useHostTransitionStatus:Ns,useFormState:us,useActionState:us,useOptimistic:function(e,t){var n=Io();return _o===null?(n.baseState=e,[e,n.queue.dispatch]):Qo(n,_o,e,t)},useMemoCache:Bo,useCacheRefresh:Fs};Ks.useEffectEvent=vs;function qs(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:h({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Js={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Su(),i=Ka(r);i.payload=t,n!=null&&(i.callback=n),t=qa(e,i,r),t!==null&&(wu(t,e,r),Ja(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Su(),i=Ka(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=qa(e,i,r),t!==null&&(wu(t,e,r),Ja(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Su(),r=Ka(n);r.tag=2,t!=null&&(r.callback=t),t=qa(e,r,n),t!==null&&(wu(t,e,n),Ja(t,e,n))}};function Ys(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?!Or(n,r)||!Or(i,a):!0}function Xs(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&&Js.enqueueReplaceState(t,t.state,null)}function Zs(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=h({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Qs(e){ei(e)}function $s(e){console.error(e)}function ec(e){ei(e)}function tc(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function nc(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function rc(e,t,n){return n=Ka(n),n.tag=3,n.payload={element:null},n.callback=function(){tc(e,t)},n}function ic(e){return e=Ka(e),e.tag=3,e}function ac(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){nc(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){nc(t,n,r),typeof i!=`function`&&(fu===null?fu=new Set([this]):fu.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function oc(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&na(t,n,a,!0),n=oo.current,n!==null){switch(n.tag){case 31:case 13:return so===null?Iu():n.alternate===null&&$l===0&&($l=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===ka?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),td(e,r,a)),!1;case 22:return n.flags|=65536,r===ka?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),td(e,r,a)),!1}throw Error(i(435,n.tag))}return td(e,r,a),Iu(),!1}if(F)return t=oo.current,t===null?(r!==Vi&&(t=Error(i(423),{cause:r}),Ji(Si(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=Si(r,n),a=rc(e.stateNode,r,a),Ya(e,a),$l!==4&&($l=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==Vi&&(e=Error(i(422),{cause:r}),Ji(Si(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=Si(o,n),au===null?au=[o]:au.push(o),$l!==4&&($l=2),t===null)return!0;r=Si(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=rc(n.stateNode,r,e),Ya(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(fu===null||!fu.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=ic(a),ac(a,e,n,r),Ya(n,a),!1}n=n.return}while(n!==null);return!1}var sc=Error(i(461)),cc=!1;function lc(e,t,n,r){t.child=e===null?Ua(t,null,n,r):Ha(t,e.child,n,r)}function uc(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return ia(t),r=Oo(e,t,n,o,a,i),s=Mo(),e!==null&&!cc?(No(e,t,i),Pc(e,t,i)):(F&&s&&Pi(t),t.flags|=1,lc(e,t,r,i),t.child)}function dc(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!pi(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,fc(e,t,a,r,i)):(e=gi(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!Fc(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?Or:n,n(o,r)&&e.ref===t.ref)return Pc(e,t,i)}return t.flags|=1,e=mi(a,r),e.ref=t.ref,e.return=t,t.child=e}function fc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Or(a,r)&&e.ref===t.ref)if(cc=!1,t.pendingProps=r=a,Fc(e,i))e.flags&131072&&(cc=!0);else return t.lanes=e.lanes,Pc(e,t,i)}return bc(e,t,n,r,i)}function pc(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return hc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&wa(t,a===null?null:a.cachePool),a===null?io():ro(t,a),uo(t);else return r=t.lanes=536870912,hc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&wa(t,null),io(),fo(t)):(wa(t,a.cachePool),ro(t,a),fo(t),t.memoizedState=null);return lc(e,t,i,n),t.child}function mc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function hc(e,t,n,r,i){var a=Ca();return a=a===null?null:{parent:da._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&wa(t,null),io(),uo(t),e!==null&&na(e,t,r,!0),t.childLanes=i,null}function gc(e,t){return t=kc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function _c(e,t,n){return Ha(t,e.child,null,n),e=gc(t,t.pendingProps),e.flags|=2,po(t),t.memoizedState=null,e}function vc(e,t,n){var r=t.pendingProps,a=(t.flags&128)!=0;if(t.flags&=-129,e===null){if(F){if(r.mode===`hidden`)return e=gc(t,r),t.lanes=536870912,mc(null,e);if(lo(t),(e=Ri)?(e=hf(e,Bi),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ki===null?null:{id:Ai,overflow:ji},retryLane:536870912,hydrationErrors:null},n=yi(e),n.return=t,t.child=n,Li=t,Ri=null)):e=null,e===null)throw Hi(t);return t.lanes=536870912,null}return gc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(lo(t),a)if(t.flags&256)t.flags&=-257,t=_c(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558));else if(cc||na(e,t,n,!1),a=(n&e.childLanes)!==0,cc||a){if(r=Kl,r!==null&&(s=ut(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,si(e,s),wu(r,e,s),sc;Iu(),t=_c(e,t,n)}else e=o.treeContext,Ri=yf(s.nextSibling),Li=t,F=!0,zi=null,Bi=!1,e!==null&&Ii(t,e),t=gc(t,r),t.flags|=4096;return t}return e=mi(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function yc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function bc(e,t,n,r,i){return ia(t),n=Oo(e,t,n,r,void 0,i),r=Mo(),e!==null&&!cc?(No(e,t,i),Pc(e,t,i)):(F&&r&&Pi(t),t.flags|=1,lc(e,t,n,i),t.child)}function xc(e,t,n,r,i,a){return ia(t),t.updateQueue=null,n=Ao(t,r,n,i),ko(e),r=Mo(),e!==null&&!cc?(No(e,t,a),Pc(e,t,a)):(F&&r&&Pi(t),t.flags|=1,lc(e,t,n,a),t.child)}function Sc(e,t,n,r,i){if(ia(t),t.stateNode===null){var a=ui,o=n.contextType;typeof o==`object`&&o&&(a=aa(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Js,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},I(t),o=n.contextType,a.context=typeof o==`object`&&o?aa(o):ui,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(qs(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&Js.enqueueReplaceState(a,a.state,null),Qa(t,r,a,i),Za(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=Zs(n,s);a.props=c;var l=a.context,u=n.contextType;o=ui,typeof u==`object`&&u&&(o=aa(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&Xs(t,a,r,o),Wa=!1;var f=t.memoizedState;a.state=f,Qa(t,r,a,i),Za(),l=t.memoizedState,s||f!==l||Wa?(typeof d==`function`&&(qs(t,n,d,r),l=t.memoizedState),(c=Wa||Ys(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Ga(e,t),o=t.memoizedProps,u=Zs(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=ui,typeof l==`object`&&l&&(c=aa(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&Xs(t,a,r,c),Wa=!1,f=t.memoizedState,a.state=f,Qa(t,r,a,i),Za();var p=t.memoizedState;o!==d||f!==p||Wa||e!==null&&e.dependencies!==null&&ra(e.dependencies)?(typeof s==`function`&&(qs(t,n,s,r),p=t.memoizedState),(u=Wa||Ys(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&ra(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,yc(e,t),r=(t.flags&128)!=0,a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=Ha(t,e.child,null,i),t.child=Ha(t,null,n,i)):lc(e,t,n,i),t.memoizedState=a.state,e=t.child):e=Pc(e,t,i),e}function Cc(e,t,n,r){return Ki(),t.flags|=256,lc(e,t,n,r),t.child}var wc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Tc(e){return{baseLanes:e,cachePool:Ta()}}function Ec(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=ru),e}function Dc(e,t,n){var r=t.pendingProps,a=!1,o=(t.flags&128)!=0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(mo.current&2)!=0),s&&(a=!0,t.flags&=-129),s=(t.flags&32)!=0,t.flags&=-33,e===null){if(F){if(a?co(t):fo(t),(e=Ri)?(e=hf(e,Bi),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ki===null?null:{id:Ai,overflow:ji},retryLane:536870912,hydrationErrors:null},n=yi(e),n.return=t,t.child=n,Li=t,Ri=null)):e=null,e===null)throw Hi(t);return _f(e)?t.lanes=32:t.lanes=536870912,null}var c=r.children;return r=r.fallback,a?(fo(t),a=t.mode,c=kc({mode:`hidden`,children:c},a),r=_i(r,a,n,null),c.return=t,r.return=t,c.sibling=r,t.child=c,r=t.child,r.memoizedState=Tc(n),r.childLanes=Ec(e,s,n),t.memoizedState=wc,mc(null,r)):(co(t),Oc(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(o)t.flags&256?(co(t),t.flags&=-257,t=Ac(e,t,n)):t.memoizedState===null?(fo(t),c=r.fallback,a=t.mode,r=kc({mode:`visible`,children:r.children},a),c=_i(c,a,n,null),c.flags|=2,r.return=t,c.return=t,r.sibling=c,t.child=r,Ha(t,e.child,null,n),r=t.child,r.memoizedState=Tc(n),r.childLanes=Ec(e,s,n),t.memoizedState=wc,t=mc(null,r)):(fo(t),t.child=e.child,t.flags|=128,t=null);else if(co(t),_f(c)){if(s=c.nextSibling&&c.nextSibling.dataset,s)var u=s.dgst;s=u,r=Error(i(419)),r.stack=``,r.digest=s,Ji({value:r,source:null,stack:null}),t=Ac(e,t,n)}else if(cc||na(e,t,n,!1),s=(n&e.childLanes)!==0,cc||s){if(s=Kl,s!==null&&(r=ut(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,si(e,r),wu(s,e,r),sc;gf(c)||Iu(),t=Ac(e,t,n)}else gf(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,Ri=yf(c.nextSibling),Li=t,F=!0,zi=null,Bi=!1,e!==null&&Ii(t,e),t=Oc(t,r.children),t.flags|=4096);return t}return a?(fo(t),c=r.fallback,a=t.mode,l=e.child,u=l.sibling,r=mi(l,{mode:`hidden`,children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,u===null?(c=_i(c,a,n,null),c.flags|=2):c=mi(u,c),c.return=t,r.return=t,r.sibling=c,t.child=r,mc(null,r),r=t.child,c=e.child.memoizedState,c===null?c=Tc(n):(a=c.cachePool,a===null?a=Ta():(l=da._currentValue,a=a.parent===l?a:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:a}),r.memoizedState=c,r.childLanes=Ec(e,s,n),t.memoizedState=wc,mc(e.child,r)):(co(t),n=e.child,e=n.sibling,n=mi(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function Oc(e,t){return t=kc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function kc(e,t){return e=fi(22,e,null,t),e.lanes=0,e}function Ac(e,t,n){return Ha(t,e.child,null,n),e=Oc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function jc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ea(e.return,t,n)}function Mc(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function Nc(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=mo.current,s=(o&2)!=0;if(s?(o=o&1|2,t.flags|=128):o&=1,he(mo,o),lc(e,t,r,n),r=F?Ei:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&jc(e,n,t);else if(e.tag===19)jc(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}switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&ho(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Mc(t,!1,i,n,a,r);break;case`backwards`:case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&ho(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Mc(t,!0,n,null,a,r);break;case`together`:Mc(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Pc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),eu|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(na(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=mi(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=mi(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Fc(e,t){return(e.lanes&t)===0?(e=e.dependencies,!!(e!==null&&ra(e))):!0}function Ic(e,t,n){switch(t.tag){case 3:be(t,t.stateNode.containerInfo),Qi(t,da,e.memoizedState.cache),Ki();break;case 27:case 5:Se(t);break;case 4:be(t,t.stateNode.containerInfo);break;case 10:Qi(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,lo(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(co(t),e=Pc(e,t,n),e===null?null:e.sibling):Dc(e,t,n):(co(t),t.flags|=128,null);co(t);break;case 19:var i=(e.flags&128)!=0;if(r=(n&t.childLanes)!==0,r||=(na(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return Nc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),he(mo,mo.current),r)break;return null;case 22:return t.lanes=0,pc(e,t,n,t.pendingProps);case 24:Qi(t,da,e.memoizedState.cache)}return Pc(e,t,n)}function Lc(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)cc=!0;else{if(!Fc(e,n)&&!(t.flags&128))return cc=!1,Ic(e,t,n);cc=!!(e.flags&131072)}else cc=!1,F&&t.flags&1048576&&Ni(t,Ei,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=Ma(t.elementType),t.type=e,typeof e==`function`)pi(e)?(r=Zs(e,r),t.tag=1,t=Sc(null,t,e,r,n)):(t.tag=0,t=bc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===C){t.tag=11,t=uc(null,t,e,r,n);break a}else if(a===T){t.tag=14,t=dc(null,t,e,r,n);break a}}throw t=ce(e)||e,Error(i(306,t,``))}}return t;case 0:return bc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=Zs(r,t.pendingProps),Sc(e,t,r,a,n);case 3:a:{if(be(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,Ga(e,t),Qa(t,r,null,n);var s=t.memoizedState;if(r=s.cache,Qi(t,da,r),r!==o.cache&&ta(t,[da],n,!0),Za(),r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=Cc(e,t,r,n);break a}else if(r!==a){a=Si(Error(i(424)),t),Ji(a),t=Cc(e,t,r,n);break a}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(Ri=yf(e.firstChild),Li=t,F=!0,zi=null,Bi=!0,n=Ua(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Ki(),r===a){t=Pc(e,t,n);break a}lc(e,t,r,n)}t=t.child}return t;case 26:return yc(e,t),e===null?(n=G(t.type,null,t.pendingProps,null))?t.memoizedState=n:F||(n=t.type,e=t.pendingProps,r=Zd(ve.current).createElement(n),r[gt]=t,r[_t]=e,Gd(r,n,e),kt(r),t.stateNode=r):t.memoizedState=G(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Se(t),e===null&&F&&(r=t.stateNode=Cf(t.type,t.pendingProps,ve.current),Li=t,Bi=!0,a=Ri,lf(t.type)?(bf=a,Ri=yf(r.firstChild)):Ri=a),lc(e,t,t.pendingProps.children,n),yc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&F&&((a=r=Ri)&&(r=pf(r,t.type,t.pendingProps,Bi),r===null?a=!1:(t.stateNode=r,Li=t,Ri=yf(r.firstChild),Bi=!1,a=!0)),a||Hi(t)),Se(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,ef(a,o)?r=null:s!==null&&ef(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=Oo(e,t,jo,null,null,n),rp._currentValue=a),yc(e,t),lc(e,t,r,n),t.child;case 6:return e===null&&F&&((e=n=Ri)&&(n=mf(n,t.pendingProps,Bi),n===null?e=!1:(t.stateNode=n,Li=t,Ri=null,e=!0)),e||Hi(t)),null;case 13:return Dc(e,t,n);case 4:return be(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ha(t,null,r,n):lc(e,t,r,n),t.child;case 11:return uc(e,t,t.type,t.pendingProps,n);case 7:return lc(e,t,t.pendingProps,n),t.child;case 8:return lc(e,t,t.pendingProps.children,n),t.child;case 12:return lc(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Qi(t,t.type,r.value),lc(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,ia(t),a=aa(a),r=r(a),t.flags|=1,lc(e,t,r,n),t.child;case 14:return dc(e,t,t.type,t.pendingProps,n);case 15:return fc(e,t,t.type,t.pendingProps,n);case 19:return Nc(e,t,n);case 31:return vc(e,t,n);case 22:return pc(e,t,n,t.pendingProps);case 24:return ia(t),r=aa(da),e===null?(a=Ca(),a===null&&(a=Kl,o=fa(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},I(t),Qi(t,da,a)):((e.lanes&n)!==0&&(Ga(e,t),Qa(t,null,null,n),Za()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,Qi(t,da,r),r!==a.cache&&ta(t,[da],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),Qi(t,da,r))),lc(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function Rc(e){e.flags|=4}function zc(e,t,n,r,i){if((t=(e.mode&32)!=0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(Nu())e.flags|=8192;else throw Na=ka,Da}else e.flags&=-16777217}function Bc(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Yf(t))if(Nu())e.flags|=8192;else throw Na=ka,Da}function Vc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:it(),e.lanes|=t,iu|=t)}function Hc(e,t){if(!F)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 Uc(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&65011712,r|=i.flags&65011712,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 Wc(e,t,n){var r=t.pendingProps;switch(Fi(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Uc(t),null;case 1:return Uc(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),$i(da),xe(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Gi(t)?Rc(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,qi())),Uc(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(Rc(t),o===null?(Uc(t),zc(t,a,null,r,n)):(Uc(t),Bc(t,o))):o?o===e.memoizedState?(Uc(t),t.flags&=-16777217):(Rc(t),Uc(t),Bc(t,o)):(e=e.memoizedProps,e!==r&&Rc(t),Uc(t),zc(t,a,e,r,n)),null;case 27:if(Ce(t),n=ve.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Rc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Uc(t),null}e=ge.current,Gi(t)?Ui(t,e):(e=Cf(a,r,n),t.stateNode=e,Rc(t))}return Uc(t),null;case 5:if(Ce(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Rc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Uc(t),null}if(o=ge.current,Gi(t))Ui(t,o);else{var s=Zd(ve.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;default:switch(a){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;case`script`:o=s.createElement(`div`),o.innerHTML=`<script><\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[gt]=t,o[_t]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(Gd(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&Rc(t)}}return Uc(t),zc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Rc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=ve.current,Gi(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Li,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[gt]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Hd(e.nodeValue,n)),e||Hi(t,!0)}else e=Zd(e).createTextNode(r),e[gt]=t,t.stateNode=e}return Uc(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Gi(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[gt]=t}else Ki(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Uc(t),e=!1}else n=qi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(po(t),t):(po(t),null);if(t.flags&128)throw Error(i(558))}return Uc(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Gi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[gt]=t}else Ki(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Uc(t),a=!1}else a=qi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(po(t),t):(po(t),null)}return po(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Vc(t,t.updateQueue),Uc(t),null);case 4:return xe(),e===null&&Md(t.stateNode.containerInfo),Uc(t),null;case 10:return $i(t.type),Uc(t),null;case 19:if(me(mo),r=t.memoizedState,r===null)return Uc(t),null;if(a=(t.flags&128)!=0,o=r.rendering,o===null)if(a)Hc(r,!1);else{if($l!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=ho(e),o!==null){for(t.flags|=128,Hc(r,!1),e=o.updateQueue,t.updateQueue=e,Vc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)hi(n,e),n=n.sibling;return he(mo,mo.current&1|2),F&&Mi(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Fe()>uu&&(t.flags|=128,a=!0,Hc(r,!1),t.lanes=4194304)}else{if(!a)if(e=ho(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Vc(t,e),Hc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!F)return Uc(t),null}else 2*Fe()-r.renderingStartTime>uu&&n!==536870912&&(t.flags|=128,a=!0,Hc(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(Uc(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Fe(),e.sibling=null,n=mo.current,he(mo,a?n&1|2:n&1),F&&Mi(t,r.treeForkCount),e);case 22:case 23:return po(t),ao(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Uc(t),t.subtreeFlags&6&&(t.flags|=8192)):Uc(t),n=t.updateQueue,n!==null&&Vc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&me(Sa),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),$i(da),Uc(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function Gc(e,t){switch(Fi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return $i(da),xe(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Ce(t),null;case 31:if(t.memoizedState!==null){if(po(t),t.alternate===null)throw Error(i(340));Ki()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(po(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));Ki()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return me(mo),null;case 4:return xe(),null;case 10:return $i(t.type),null;case 22:case 23:return po(t),ao(),e!==null&&me(Sa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return $i(da),null;case 25:return null;default:return null}}function Kc(e,t){switch(Fi(t),t.tag){case 3:$i(da),xe();break;case 26:case 27:case 5:Ce(t);break;case 4:xe();break;case 31:t.memoizedState!==null&&po(t);break;case 13:po(t);break;case 19:me(mo);break;case 10:$i(t.type);break;case 22:case 23:po(t),ao(),e!==null&&me(Sa);break;case 24:$i(da)}}function qc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){ed(t,t.return,e)}}function Jc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){ed(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){ed(t,t.return,e)}}function Yc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{eo(t,n)}catch(t){ed(e,e.return,t)}}}function Xc(e,t,n){n.props=Zs(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){ed(e,t,n)}}function Zc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){ed(e,t,n)}}function Qc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){ed(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){ed(e,t,n)}else n.current=null}function $c(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){ed(e,e.return,t)}}function el(e,t,n){try{var r=e.stateNode;Kd(r,e.type,n,t),r[_t]=t}catch(t){ed(e,e.return,t)}}function tl(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&lf(e.type)||e.tag===4}function nl(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||tl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&lf(e.type)||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 rl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=cn));else if(r!==4&&(r===27&&lf(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(rl(e,t,n),e=e.sibling;e!==null;)rl(e,t,n),e=e.sibling}function il(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&&(r===27&&lf(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(il(e,t,n),e=e.sibling;e!==null;)il(e,t,n),e=e.sibling}function al(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Gd(t,r,n),t[gt]=e,t[_t]=n}catch(t){ed(e,e.return,t)}}var ol=!1,sl=!1,cl=!1,ll=typeof WeakSet==`function`?WeakSet:Set,ul=null;function dl(e,t){if(e=e.containerInfo,Yd=dp,e=Mr(e),Nr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.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||r!==0&&f.nodeType!==3||(l=s+r),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===r&&(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(Xd={focusedElem:e,selectionRange:n},dp=!1,ul=t;ul!==null;)if(t=ul,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,ul=e;else for(;ul!==null;){switch(t=ul,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n<e.length;n++)a=e[n],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&o!==null){e=void 0,n=t,a=o.memoizedProps,o=o.memoizedState,r=n.stateNode;try{var h=Zs(n.type,a);e=r.getSnapshotBeforeUpdate(h,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){ed(n,n.return,e)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)ff(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:ff(e);break;default:e.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(i(163))}if(e=t.sibling,e!==null){e.return=t.return,ul=e;break}ul=t.return}}function fl(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Dl(e,n),r&4&&qc(5,n);break;case 1:if(Dl(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){ed(n,n.return,e)}else{var i=Zs(n.type,t.memoizedProps);t=t.memoizedState;
vendor: 4,312 bytes, line 8
8try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){ed(n,n.return,e)}}r&64&&Yc(n),r&512&&Zc(n,n.return);break;case 3:if(Dl(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{eo(e,t)}catch(e){ed(n,n.return,e)}}break;case 27:t===null&&r&4&&al(n);case 26:case 5:Dl(e,n),t===null&&r&4&&$c(n),r&512&&Zc(n,n.return);break;case 12:Dl(e,n);break;case 31:Dl(e,n),r&4&&vl(e,n);break;case 13:Dl(e,n),r&4&&yl(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=id.bind(null,n),vf(e,n))));break;case 22:if(r=n.memoizedState!==null||ol,!r){t=t!==null&&t.memoizedState!==null||sl,i=ol;var a=sl;ol=r,(sl=t)&&!a?kl(e,n,(n.subtreeFlags&8772)!=0):Dl(e,n),ol=i,sl=a}break;case 30:break;default:Dl(e,n)}}function pl(e){var t=e.alternate;t!==null&&(e.alternate=null,pl(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&wt(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var ml=null,hl=!1;function gl(e,t,n){for(n=n.child;n!==null;)_l(e,t,n),n=n.sibling}function _l(e,t,n){if(Ge&&typeof Ge.onCommitFiberUnmount==`function`)try{Ge.onCommitFiberUnmount(We,n)}catch{}switch(n.tag){case 26:sl||Qc(n,t),gl(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:sl||Qc(n,t);var r=ml,i=hl;lf(n.type)&&(ml=n.stateNode,hl=!1),gl(e,t,n),wf(n.stateNode),ml=r,hl=i;break;case 5:sl||Qc(n,t);case 6:if(r=ml,i=hl,ml=null,gl(e,t,n),ml=r,hl=i,ml!==null)if(hl)try{(ml.nodeType===9?ml.body:ml.nodeName===`HTML`?ml.ownerDocument.body:ml).removeChild(n.stateNode)}catch(e){ed(n,t,e)}else try{ml.removeChild(n.stateNode)}catch(e){ed(n,t,e)}break;case 18:ml!==null&&(hl?(e=ml,uf(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Fp(e)):uf(ml,n.stateNode));break;case 4:r=ml,i=hl,ml=n.stateNode.containerInfo,hl=!0,gl(e,t,n),ml=r,hl=i;break;case 0:case 11:case 14:case 15:Jc(2,n,t),sl||Jc(4,n,t),gl(e,t,n);break;case 1:sl||(Qc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Xc(n,t,r)),gl(e,t,n);break;case 21:gl(e,t,n);break;case 22:sl=(r=sl)||n.memoizedState!==null,gl(e,t,n),sl=r;break;default:gl(e,t,n)}}function vl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Fp(e)}catch(e){ed(t,t.return,e)}}}function yl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Fp(e)}catch(e){ed(t,t.return,e)}}function bl(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new ll),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new ll),t;default:throw Error(i(435,e.tag))}}function xl(e,t){var n=bl(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=ad.bind(null,e,t);t.then(r,r)}})}function Sl(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var a=n[r],o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 27:if(lf(c.type)){ml=c.stateNode,hl=!1;break a}break;case 5:ml=c.stateNode,hl=!1;break a;case 3:case 4:ml=c.stateNode.containerInfo,hl=!0;break a}c=c.return}if(ml===null)throw Error(i(160));_l(o,s,a),ml=null,hl=!1,o=a.alternate,o!==null&&(o.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)wl(t,e),t=t.sibling}var Cl=null;function wl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Sl(t,e),Tl(e),r&4&&(Jc(3,e,e.return),qc(3,e),Jc(5,e,e.return));break;case 1:Sl(t,e),Tl(e),r&512&&(sl||n===null||Qc(n,n.return)),r&64&&ol&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var a=Cl;if(Sl(t,e),Tl(e),r&512&&(sl||n===null||Qc(n,n.return)),r&4){var o=n===null?null:n.memoizedState;if(r=e.memoizedState,n===null)if(r===null)if(e.stateNode===null){a:{r=e.type,n=e.memoizedProps,a=a.ownerDocument||a;b:switch(r){case`title`:o=a.getElementsByTagName(`title`)[0],(!o||o[Ct]||o[gt]||o.namespaceURI===`http://www.w3.org/2000/svg`||o.hasAttribute(`itemprop`))&&(o=a.createElement(r),a.head.insertBefore(o,a.querySelector(`head >
8 title`))),Gd(o,r,n),o[gt]=e,kt(o),r=o;break a;case`link`:var s=qf(`link`,`href`,a).get(r+(n.href||``));if(s){for(var c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&o.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&o.getAttribute(`title`)===(n.title==null?null:n.title)&&o.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(c,1);break b}}o=a.createElement(r),Gd(o,r,n),a.head.appendChild(o);break;case`meta`:if(s=qf(`meta`,`content`,a).get(r+(n.content||``))){for(c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`content`)===(n.content==null?null:``+n.content)&&o.getAttribute(`name`)===(n.name==null?null:n.name)&&o.getAttribute(`property`)===(n.property==null?null:n.property)&&o.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){s.splice(c,1);break b}}o=a.createElement(r),Gd(o,r,n),a.head.appendChild(o);break;default:throw Error(i(468,r))}o[gt]=e,kt(o),r=o}e.stateNode=r}else Jf(a,e.type,e.stateNode);else e.stateNode=Hf(a,r,e.memoizedProps);
vendor: 40,553 bytes, lines 8-9
8else o===r?r===null&&e.stateNode!==null&&el(e,e.memoizedProps,n.memoizedProps):(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,r===null?Jf(a,e.type,e.stateNode):Hf(a,r,e.memoizedProps))}break;case 27:Sl(t,e),Tl(e),r&512&&(sl||n===null||Qc(n,n.return)),n!==null&&r&4&&el(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Sl(t,e),Tl(e),r&512&&(sl||n===null||Qc(n,n.return)),e.flags&32){a=e.stateNode;try{$t(a,``)}catch(t){ed(e,e.return,t)}}r&4&&e.stateNode!=null&&(a=e.memoizedProps,el(e,a,n===null?a:n.memoizedProps)),r&1024&&(cl=!0);break;case 6:if(Sl(t,e),Tl(e),r&4){if(e.stateNode===null)throw Error(i(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){ed(e,e.return,t)}}break;case 3:if(Kf=null,a=Cl,Cl=Df(t.containerInfo),Sl(t,e),Cl=a,Tl(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Fp(t.containerInfo)}catch(t){ed(e,e.return,t)}cl&&(cl=!1,El(e));break;case 4:r=Cl,Cl=Df(e.stateNode.containerInfo),Sl(t,e),Tl(e),Cl=r;break;case 12:Sl(t,e),Tl(e);break;case 31:Sl(t,e),Tl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,xl(e,r)));break;case 13:Sl(t,e),Tl(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(cu=Fe()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,xl(e,r)));break;case 22:a=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=ol,d=sl;if(ol=u||a,sl=d||l,Sl(t,e),sl=d,ol=u,Tl(e),r&8192)a:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||l||ol||sl||Ol(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){l=n=t;try{if(o=l.stateNode,a)s=o.style,typeof s.setProperty==`function`?s.setProperty(`display`,`none`,`important`):s.display=`none`;else{c=l.stateNode;var f=l.memoizedProps.style,p=f!=null&&f.hasOwnProperty(`display`)?f.display:null;c.style.display=p==null||typeof p==`boolean`?``:(``+p).trim()}}catch(e){ed(l,l.return,e)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=a?``:l.memoizedProps}catch(e){ed(l,l.return,e)}}}else if(t.tag===18){if(n===null){l=t;try{var m=l.stateNode;a?df(m,!0):df(l.stateNode,!1)}catch(e){ed(l,l.return,e)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break a;for(;t.sibling===null;){if(t.return===null||t.return===e)break a;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,xl(e,n))));break;case 19:Sl(t,e),Tl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,xl(e,r)));break;case 30:break;case 21:break;default:Sl(t,e),Tl(e)}}function Tl(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(tl(r)){n=r;break}r=r.return}if(n==null)throw Error(i(160));switch(n.tag){case 27:var a=n.stateNode;il(e,nl(e),a);break;case 5:var o=n.stateNode;n.flags&32&&($t(o,``),n.flags&=-33),il(e,nl(e),o);break;case 3:case 4:var s=n.stateNode.containerInfo;rl(e,nl(e),s);break;default:throw Error(i(161))}}catch(t){ed(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function El(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;El(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Dl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)fl(e,t.alternate,t),t=t.sibling}function Ol(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Jc(4,t,t.return),Ol(t);break;case 1:Qc(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&Xc(t,t.return,n),Ol(t);break;case 27:wf(t.stateNode);case 26:case 5:Qc(t,t.return),Ol(t);break;case 22:t.memoizedState===null&&Ol(t);break;case 30:Ol(t);break;default:Ol(t)}e=e.sibling}}function kl(e,t,n){for(n&&=(t.subtreeFlags&8772)!=0,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags;switch(a.tag){case 0:case 11:case 15:kl(i,a,n),qc(4,a);break;case 1:if(kl(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){ed(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var s=r.stateNode;try{var c=i.shared.hiddenCallbacks;if(c!==null)for(i.shared.hiddenCallbacks=null,i=0;i<c.length;i++)$a(c[i],s)}catch(e){ed(r,r.return,e)}}n&&o&64&&Yc(a),Zc(a,a.return);break;case 27:al(a);case 26:case 5:kl(i,a,n),n&&r===null&&o&4&&$c(a),Zc(a,a.return);break;case 12:kl(i,a,n);break;case 31:kl(i,a,n),n&&o&4&&vl(i,a);break;case 13:kl(i,a,n),n&&o&4&&yl(i,a);break;case 22:a.memoizedState===null&&kl(i,a,n),Zc(a,a.return);break;case 30:break;default:kl(i,a,n)}t=t.sibling}}function Al(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&pa(n))}function jl(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&pa(e))}function Ml(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Nl(e,t,n,r),t=t.sibling}function Nl(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Ml(e,t,n,r),i&2048&&qc(9,t);break;case 1:Ml(e,t,n,r);break;case 3:Ml(e,t,n,r),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&pa(e)));break;case 12:if(i&2048){Ml(e,t,n,r),e=t.stateNode;try{var a=t.memoizedProps,o=a.id,s=a.onPostCommit;typeof s==`function`&&s(o,t.alternate===null?`mount`:`update`,e.passiveEffectDuration,-0)}catch(e){ed(t,t.return,e)}}else Ml(e,t,n,r);break;case 31:Ml(e,t,n,r);break;case 13:Ml(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?Ml(e,t,n,r):(a._visibility|=2,Pl(e,t,n,r,(t.subtreeFlags&10256)!=0||!1)):a._visibility&2?Ml(e,t,n,r):Fl(e,t),i&2048&&Al(o,t);break;case 24:Ml(e,t,n,r),i&2048&&jl(t.alternate,t);break;default:Ml(e,t,n,r)}}function Pl(e,t,n,r,i){for(i&&=(t.subtreeFlags&10256)!=0||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:Pl(a,o,s,c,i),qc(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Pl(a,o,s,c,i)):u._visibility&2?Pl(a,o,s,c,i):Fl(a,o),i&&l&2048&&Al(o.alternate,o);break;case 24:Pl(a,o,s,c,i),i&&l&2048&&jl(o.alternate,o);break;default:Pl(a,o,s,c,i)}t=t.sibling}}function Fl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:Fl(n,r),i&2048&&Al(r.alternate,r);break;case 24:Fl(n,r),i&2048&&jl(r.alternate,r);break;default:Fl(n,r)}t=t.sibling}}var Il=8192;function Ll(e,t,n){if(e.subtreeFlags&Il)for(e=e.child;e!==null;)Rl(e,t,n),e=e.sibling}function Rl(e,t,n){switch(e.tag){case 26:Ll(e,t,n),e.flags&Il&&e.memoizedState!==null&&Xf(n,Cl,e.memoizedState,e.memoizedProps);break;case 5:Ll(e,t,n);break;case 3:case 4:var r=Cl;Cl=Df(e.stateNode.containerInfo),Ll(e,t,n),Cl=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Il,Il=16777216,Ll(e,t,n),Il=r):Ll(e,t,n));break;default:Ll(e,t,n)}}function zl(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Bl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];ul=r,Ul(r,e)}zl(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Vl(e),e=e.sibling}function Vl(e){switch(e.tag){case 0:case 11:case 15:Bl(e),e.flags&2048&&Jc(9,e,e.return);break;case 3:Bl(e);break;case 12:Bl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Hl(e)):Bl(e);break;default:Bl(e)}}function Hl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];ul=r,Ul(r,e)}zl(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Jc(8,t,t.return),Hl(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Hl(t));break;default:Hl(t)}e=e.sibling}}function Ul(e,t){for(;ul!==null;){var n=ul;switch(n.tag){case 0:case 11:case 15:Jc(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:pa(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,ul=r;else a:for(n=e;ul!==null;){r=ul;var i=r.sibling,a=r.return;if(pl(r),r===n){ul=null;break a}if(i!==null){i.return=a,ul=i;break a}ul=a}}}var Wl={getCacheForType:function(e){var t=aa(da),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return aa(da).controller.signal}},Gl=typeof WeakMap==`function`?WeakMap:Map,z=0,Kl=null,B=null,V=0,ql=0,Jl=null,Yl=!1,Xl=!1,Zl=!1,Ql=0,$l=0,eu=0,tu=0,nu=0,ru=0,iu=0,au=null,ou=null,su=!1,cu=0,lu=0,uu=1/0,du=null,fu=null,pu=0,mu=null,hu=null,gu=0,_u=0,vu=null,yu=null,bu=0,xu=null;function Su(){return z&2&&V!==0?V&-V:E.T===null?pt():xd()}function Cu(){if(ru===0)if(!(V&536870912)||F){var e=Qe;Qe<<=1,!(Qe&3932160)&&(Qe=262144),ru=e}else ru=536870912;return e=oo.current,e!==null&&(e.flags|=32),ru}function wu(e,t,n){(e===Kl&&(ql===2||ql===9)||e.cancelPendingCommit!==null)&&(ju(e,0),Ou(e,V,ru,!1)),ot(e,n),(!(z&2)||e!==Kl)&&(e===Kl&&(!(z&2)&&(tu|=n),$l===4&&Ou(e,V,ru,!1)),pd(e))}function Tu(e,t,n){if(z&6)throw Error(i(327));var r=!n&&(t&127)==0&&(t&e.expiredLanes)===0||nt(e,t),a=r?zu(e,t):Lu(e,t,!0),o=r;do{if(a===0){Xl&&!r&&Ou(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!Du(n)){a=Lu(e,t,!1),o=!1;continue}if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;a=au;var l=c.current.memoizedState.isDehydrated;if(l&&(ju(c,s).flags|=256),s=Lu(c,s,!1),s!==2){if(Zl&&!l){c.errorRecoveryDisabledLanes|=o,tu|=o,a=4;break a}o=ou,ou=a,o!==null&&(ou===null?ou=o:ou.push.apply(ou,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){ju(e,0),Ou(e,t,0,!0);break}a:{switch(r=e,o=a,o){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:Ou(r,t,ru,!Yl);break a;case 2:ou=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=cu+300-Fe(),10<a)){if(Ou(r,t,ru,!Yl),tt(r,0,!0)!==0)break a;gu=t,r.timeoutHandle=rf(Eu.bind(null,r,n,ou,du,su,t,ru,tu,iu,Yl,o,`Throttled`,-0,0),a);break a}Eu(r,n,ou,du,su,t,ru,tu,iu,Yl,o,null,-0,0)}}break}while(1);pd(e)}function Eu(e,t,n,r,i,a,o,s,c,l,u,d,f,p){if(e.timeoutHandle=-1,d=t.subtreeFlags,d&8192||(d&16785408)==16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:cn},Rl(t,a,d);var m=(a&62914560)===a?cu-Fe():(a&4194048)===a?lu-Fe():0;if(m=Qf(d,m),m!==null){gu=a,e.cancelPendingCommit=m(Ku.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),Ou(e,a,o,!l);return}}Ku(e,t,a,n,r,i,o,s,c)}function Du(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,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(!Dr(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 Ou(e,t,n,r){t&=~nu,t&=~tu,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-qe(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&ct(e,n,t)}function ku(){return z&6?!0:(md(0,!1),!1)}function Au(){if(B!==null){if(ql===0)var e=B.return;else e=B,Zi=Xi=null,Po(e),Ia=null,La=0,e=B;for(;e!==null;)Kc(e.alternate,e),e=e.return;B=null}}function ju(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,af(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),gu=0,Au(),Kl=e,B=n=mi(e.current,null),V=t,ql=0,Jl=null,Yl=!1,Xl=nt(e,t),Zl=!1,iu=ru=nu=tu=eu=$l=0,ou=au=null,su=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-qe(r),a=1<<i;t|=e[i],r&=~a}return Ql=t,ii(),n}function Mu(e,t){L=null,E.H=Us,t===Ea||t===Oa?(t=Pa(),ql=3):t===Da?(t=Pa(),ql=4):ql=t===sc?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,Jl=t,B===null&&($l=1,tc(e,Si(t,e.current)))}function Nu(){var e=oo.current;return e===null?!0:(V&4194048)===V?so===null:(V&62914560)===V||V&536870912?e===so:!1}function Pu(){var e=E.H;return E.H=Us,e===null?Us:e}function Fu(){var e=E.A;return E.A=Wl,e}function Iu(){$l=4,Yl||(V&4194048)!==V&&oo.current!==null||(Xl=!0),!(eu&134217727)&&!(tu&134217727)||Kl===null||Ou(Kl,V,ru,!1)}function Lu(e,t,n){var r=z;z|=2;var i=Pu(),a=Fu();(Kl!==e||V!==t)&&(du=null,ju(e,t)),t=!1;var o=$l;a:do try{if(ql!==0&&B!==null){var s=B,c=Jl;switch(ql){case 8:Au(),o=6;break a;case 3:case 2:case 9:case 6:oo.current===null&&(t=!0);var l=ql;if(ql=0,Jl=null,Uu(e,s,c,l),n&&Xl){o=0;break a}break;default:l=ql,ql=0,Jl=null,Uu(e,s,c,l)}}Ru(),o=$l;break}catch(t){Mu(e,t)}while(1);return t&&e.shellSuspendCounter++,Zi=Xi=null,z=r,E.H=i,E.A=a,B===null&&(Kl=null,V=0,ii()),o}function Ru(){for(;B!==null;)Vu(B)}function zu(e,t){var n=z;z|=2;var r=Pu(),a=Fu();Kl!==e||V!==t?(du=null,uu=Fe()+500,ju(e,t)):Xl=nt(e,t);a:do try{if(ql!==0&&B!==null){t=B;var o=Jl;b:switch(ql){case 1:ql=0,Jl=null,Uu(e,t,o,1);break;case 2:case 9:if(Aa(o)){ql=0,Jl=null,Hu(t);break}t=function(){ql!==2&&ql!==9||Kl!==e||(ql=7),pd(e)},o.then(t,t);break a;case 3:ql=7;break a;case 4:ql=5;break a;case 7:Aa(o)?(ql=0,Jl=null,Hu(t)):(ql=0,Jl=null,Uu(e,t,o,7));break;case 5:var s=null;switch(B.tag){case 26:s=B.memoizedState;case 5:case 27:var c=B;if(s?Yf(s):c.stateNode.complete){ql=0,Jl=null;var l=c.sibling;if(l!==null)B=l;else{var u=c.return;u===null?B=null:(B=u,Wu(u))}break b}}ql=0,Jl=null,Uu(e,t,o,5);break;case 6:ql=0,Jl=null,Uu(e,t,o,6);break;case 8:Au(),$l=6;break a;default:throw Error(i(462))}}Bu();break}catch(t){Mu(e,t)}while(1);return Zi=Xi=null,E.H=r,E.A=a,z=n,B===null?(Kl=null,V=0,ii(),$l):0}function Bu(){for(;B!==null&&!Ne();)Vu(B)}function Vu(e){var t=Lc(e.alternate,e,Ql);e.memoizedProps=e.pendingProps,t===null?Wu(e):B=t}function Hu(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=xc(n,t,t.pendingProps,t.type,void 0,V);break;case 11:t=xc(n,t,t.pendingProps,t.type.render,t.ref,V);break;case 5:Po(t);default:Kc(n,t),t=B=hi(t,Ql),t=Lc(n,t,Ql)}e.memoizedProps=e.pendingProps,t===null?Wu(e):B=t}function Uu(e,t,n,r){Zi=Xi=null,Po(t),Ia=null,La=0;var i=t.return;try{if(oc(e,i,t,n,V)){$l=1,tc(e,Si(n,e.current)),B=null;return}}catch(t){if(i!==null)throw B=i,t;$l=1,tc(e,Si(n,e.current)),B=null;return}t.flags&32768?(F||r===1?e=!0:Xl||V&536870912?e=!1:(Yl=e=!0,(r===2||r===9||r===3||r===6)&&(r=oo.current,r!==null&&r.tag===13&&(r.flags|=16384))),Gu(t,e)):Wu(t)}function Wu(e){var t=e;do{if(t.flags&32768){Gu(t,Yl);return}e=t.return;var n=Wc(t.alternate,t,Ql);if(n!==null){B=n;return}if(t=t.sibling,t!==null){B=t;return}B=t=e}while(t!==null);$l===0&&($l=5)}function Gu(e,t){do{var n=Gc(e.alternate,e);if(n!==null){n.flags&=32767,B=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){B=e;return}B=e=n}while(e!==null);$l=6,B=null}function Ku(e,t,n,r,a,o,s,c,l){e.cancelPendingCommit=null;do Zu();while(pu!==0);if(z&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(o=t.lanes|t.childLanes,o|=ri,st(e,n,o,s,c,l),e===Kl&&(B=Kl=null,V=0),hu=t,mu=e,gu=n,_u=o,vu=a,yu=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,od(ze,function(){return Qu(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!=0,t.subtreeFlags&13878||r){r=E.T,E.T=null,a=D.p,D.p=2,s=z,z|=4;try{dl(e,t,n)}finally{z=s,D.p=a,E.T=r}}pu=1,qu(),Ju(),Yu()}}function qu(){if(pu===1){pu=0;var e=mu,t=hu,n=(t.flags&13878)!=0;if(t.subtreeFlags&13878||n){n=E.T,E.T=null;var r=D.p;D.p=2;var i=z;z|=4;try{wl(t,e);var a=Xd,o=Mr(e.containerInfo),s=a.focusedElem,c=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&jr(s.ownerDocument.documentElement,s)){if(c!==null&&Nr(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=Ar(s,h),v=Ar(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}dp=!!Yd,Xd=Yd=null}finally{z=i,D.p=r,E.T=n}}e.current=t,pu=2}}function Ju(){if(pu===2){pu=0;var e=mu,t=hu,n=(t.flags&8772)!=0;if(t.subtreeFlags&8772||n){n=E.T,E.T=null;var r=D.p;D.p=2;var i=z;z|=4;try{fl(e,t.alternate,t)}finally{z=i,D.p=r,E.T=n}}pu=3}}function Yu(){if(pu===4||pu===3){pu=0,Pe();var e=mu,t=hu,n=gu,r=yu;t.subtreeFlags&10256||t.flags&10256?pu=5:(pu=0,hu=mu=null,Xu(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(fu=null),ft(n),t=t.stateNode,Ge&&typeof Ge.onCommitFiberRoot==`function`)try{Ge.onCommitFiberRoot(We,t,void 0,(t.current.flags&128)==128)}catch{}if(r!==null){t=E.T,i=D.p,D.p=2,E.T=null;try{for(var a=e.onRecoverableError,o=0;o<r.length;o++){var s=r[o];a(s.value,{componentStack:s.stack})}}finally{E.T=t,D.p=i}}gu&3&&Zu(),pd(e),i=e.pendingLanes,n&261930&&i&42?e===xu?bu++:(bu=0,xu=e):bu=0,md(0,!1)}}function Xu(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,pa(t)))}function Zu(){return qu(),Ju(),Yu(),Qu()}function Qu(){if(pu!==5)return!1;var e=mu,t=_u;_u=0;var n=ft(gu),r=E.T,a=D.p;try{D.p=32>n?32:n,E.T=null,n=vu,vu=null;var o=mu,s=gu;if(pu=0,hu=mu=null,gu=0,z&6)throw Error(i(331));var c=z;if(z|=4,Vl(o.current),Nl(o,o.current,s,n),z=c,md(0,!1),Ge&&typeof Ge.onPostCommitFiberRoot==`function`)try{Ge.onPostCommitFiberRoot(We,o)}catch{}return!0}finally{D.p=a,E.T=r,Xu(e,t)}}function $u(e,t,n){t=Si(n,t),t=rc(e.stateNode,t,2),e=qa(e,t,2),e!==null&&(ot(e,2),pd(e))}function ed(e,t,n){if(e.tag===3)$u(e,e,n);else for(;t!==null;){if(t.tag===3){$u(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(fu===null||!fu.has(r))){e=Si(n,e),n=ic(2),r=qa(t,n,2),r!==null&&(ac(n,r,t,e),ot(r,2),pd(r));break}}t=t.return}}function td(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Gl;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)||(Zl=!0,i.add(n),e=nd.bind(null,e,t,n),t.then(e,e))}function nd(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Kl===e&&(V&n)===n&&($l===4||$l===3&&(V&62914560)===V&&300>Fe()-cu?!(z&2)&&ju(e,0):nu|=n,iu===V&&(iu=0)),pd(e)}function rd(e,t){t===0&&(t=it()),e=si(e,t),e!==null&&(ot(e,t),pd(e))}function id(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),rd(e,n)}function ad(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),rd(e,n)}function od(e,t){return je(e,t)}var sd=null,cd=null,ld=!1,ud=!1,dd=!1,fd=0;function pd(e){e!==cd&&e.next===null&&(cd===null?sd=cd=e:cd=cd.next=e),ud=!0,ld||(ld=!0,bd())}function md(e,t){if(!dd&&ud){dd=!0;do for(var n=!1,r=sd;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-qe(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,yd(r,a))}else a=V,a=tt(r,r===Kl?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||nt(r,a)||(n=!0,yd(r,a));r=r.next}while(n);dd=!1}}function hd(){gd()}function gd(){ud=ld=!1;var e=0;fd!==0&&nf()&&(e=fd);for(var t=Fe(),n=null,r=sd;r!==null;){var i=r.next,a=_d(r,t);a===0?(r.next=null,n===null?sd=i:n.next=i,i===null&&(cd=n)):(n=r,(e!==0||a&3)&&(ud=!0)),r=i}pu!==0&&pu!==5||md(e,!1),fd!==0&&(fd=0)}function _d(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-qe(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=rt(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=Kl,n=V,n=tt(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(ql===2||ql===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Me(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||nt(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&Me(r),ft(n)){case 2:case 8:n=Re;break;case 32:n=ze;break;case 268435456:n=Ve;break;default:n=ze}return r=vd.bind(null,e),n=je(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&Me(r),e.callbackPriority=2,e.callbackNode=null,2}function vd(e,t){if(pu!==0&&pu!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Zu()&&e.callbackNode!==n)return null;var r=V;return r=tt(e,e===Kl?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(Tu(e,r,t),_d(e,Fe()),e.callbackNode!=null&&e.callbackNode===n?vd.bind(null,e):null)}function yd(e,t){if(Zu())return null;Tu(e,t,!0)}function bd(){sf(function(){z&6?je(Le,hd):gd()})}function xd(){if(fd===0){var e=ga;e===0&&(e=Ze,Ze<<=1,!(Ze&261888)&&(Ze=256)),fd=e}return fd}function Sd(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:sn(``+e)}function Cd(e,t){var n=t.ownerDocument.createElement(`input`);return n.name=t.name,n.value=t.value,e.id&&n.setAttribute(`form`,e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function wd(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=Sd((i[_t]||null).action),o=r.submitter;o&&(t=(t=o[_t]||null)?Sd(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new kn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(fd!==0){var e=o?Cd(i,o):new FormData(i);As(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?Cd(i,o):new FormData(i),As(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var Td=0;Td<Qr.length;Td++){var Ed=Qr[Td];$r(Ed.toLowerCase(),`on`+(Ed[0].toUpperCase()+Ed.slice(1)))}$r(Wr,`onAnimationEnd`),$r(Gr,`onAnimationIteration`),$r(Kr,`onAnimationStart`),$r(`dblclick`,`onDoubleClick`),$r(`focusin`,`onFocus`),$r(`focusout`,`onBlur`),$r(qr,`onTransitionRun`),$r(Jr,`onTransitionStart`),$r(Yr,`onTransitionCancel`),$r(Xr,`onTransitionEnd`),Nt(`onMouseEnter`,[`mouseout`,`mouseover`]),Nt(`onMouseLeave`,[`mouseout`,`mouseover`]),Nt(`onPointerEnter`,[`pointerout`,`pointerover`]),Nt(`onPointerLeave`,[`pointerout`,`pointerover`]),Mt(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),Mt(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),Mt(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),Mt(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),Mt(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),Mt(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var Dd=`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(` `),Od=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(Dd));function kd(e,t){t=(t&4)!=0;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;a=s,i.currentTarget=l;try{a(i)}catch(e){ei(e)}i.currentTarget=null,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;a=s,i.currentTarget=l;try{a(i)}catch(e){ei(e)}i.currentTarget=null,a=c}}}}function H(e,t){var n=t[yt];n===void 0&&(n=t[yt]=new Set);var r=e+`__bubble`;n.has(r)||(Nd(t,e,2,!1),n.add(r))}function Ad(e,t,n){var r=0;t&&(r|=4),Nd(n,e,r,t)}var jd=`_reactListening`+Math.random().toString(36).slice(2);function Md(e){if(!e[jd]){e[jd]=!0,At.forEach(function(t){t!==`selectionchange`&&(Od.has(t)||Ad(t,!1,e),Ad(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[jd]||(t[jd]=!0,Ad(`selectionchange`,!1,t))}}function Nd(e,t,n,r){switch(_p(t)){case 2:var i=fp;break;case 8:i=pp;break;default:i=mp}n=i.bind(null,t,n,e),i=void 0,!vn||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 Pd(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var c=r.stateNode.containerInfo;if(c===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===i)return;s=s.return}for(;c!==null;){if(s=Tt(c),s===null)return;if(l=s.tag,l===5||l===6||l===26||l===27){r=a=s;continue a}c=c.parentNode}}r=r.return}hn(function(){var r=a,i=un(n),s=[];a:{var c=Zr.get(e);if(c!==void 0){var l=kn,u=e;switch(e){case`keypress`:if(wn(n)===0)break a;case`keydown`:case`keyup`:l=Kn;break;case`focusin`:u=`focus`,l=Ln;break;case`focusout`:u=`blur`,l=Ln;break;case`beforeblur`:case`afterblur`:l=Ln;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`:l=j;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=In;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=Jn;break;case Wr:case Gr:case Kr:l=Rn;break;case Xr:l=Yn;break;case`scroll`:case`scrollend`:l=jn;break;case`wheel`:l=Xn;break;case`copy`:case`cut`:case`paste`:l=zn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=qn;break;case`toggle`:case`beforetoggle`:l=Zn}var d=(t&4)!=0,f=!d&&(e===`scroll`||e===`scrollend`),p=d?c===null?null:c+`Capture`:c;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=gn(m,p),g!=null&&d.push(Fd(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),s.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(c=e===`mouseover`||e===`pointerover`,l=e===`mouseout`||e===`pointerout`,c&&n!==ln&&(u=n.relatedTarget||n.fromElement)&&(Tt(u)||u[vt]))break a;if((l||c)&&(c=i.window===i?i:(c=i.ownerDocument)?c.defaultView||c.parentWindow:window,l?(u=n.relatedTarget||n.toElement,l=r,u=u?Tt(u):null,u!==null&&(f=o(u),d=u.tag,u!==f||d!==5&&d!==27&&d!==6)&&(u=null)):(l=null,u=r),l!==u)){if(d=j,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=qn,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=l==null?c:Dt(l),h=u==null?c:Dt(u),c=new d(g,m+`leave`,l,n,i),c.target=f,c.relatedTarget=h,g=null,Tt(i)===r&&(d=new d(p,m+`enter`,u,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,l&&u)b:{for(d=Ld,p=l,m=u,h=0,g=p;g;g=d(g))h++;g=0;for(var _=m;_;_=d(_))g++;for(;0<h-g;)p=d(p),h--;for(;0<g-h;)m=d(m),g--;for(;h--;){if(p===m||m!==null&&p===m.alternate){d=p;break b}p=d(p),m=d(m)}d=null}else d=null;l!==null&&Rd(s,c,l,d,!1),u!==null&&f!==null&&Rd(s,f,u,d,!0)}}a:{if(c=r?Dt(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var v=gr;else if(ur(c))if(_r)v=Tr;else{v=Cr;var y=Sr}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&rn(r.elementType)&&(v=gr):v=wr;if(v&&=v(e,r)){dr(s,v,n,i);break a}y&&y(e,c,r),e===`focusout`&&r&&c.type===`number`&&r.memoizedProps.value!=null&&Yt(c,`number`,c.value)}switch(y=r?Dt(r):window,e){case`focusin`:(ur(y)||y.contentEditable===`true`)&&(P=y,Fr=r,Ir=null);break;case`focusout`:Ir=Fr=P=null;break;case`mousedown`:Lr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Lr=!1,Rr(s,n,i);break;case`selectionchange`:if(Pr)break;case`keydown`:case`keyup`:Rr(s,n,i)}var b;if($n)b:{switch(e){case`compositionstart`:var x=`onCompositionStart`;break b;case`compositionend`:x=`onCompositionEnd`;break b;case`compositionupdate`:x=`onCompositionUpdate`;break b}x=void 0}else M?ar(e,n)&&(x=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(x=`onCompositionStart`);x&&(nr&&n.locale!==`ko`&&(M||x!==`onCompositionStart`?x===`onCompositionEnd`&&M&&(b=Cn()):(bn=i,xn=`value`in bn?bn.value:bn.textContent,M=!0)),y=Id(r,x),0<y.length&&(x=new Bn(x,e,null,n,i),s.push({event:x,listeners:y}),b?x.data=b:(b=or(n),b!==null&&(x.data=b)))),(b=tr?sr(e,n):cr(e,n))&&(x=Id(r,`onBeforeInput`),0<x.length&&(y=new Bn(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:y,listeners:x}),y.data=b)),wd(s,e,r,n,i)}kd(s,t)})}function Fd(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Id(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=gn(e,n),i!=null&&r.unshift(Fd(e,i,a)),i=gn(e,t),i!=null&&r.push(Fd(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Ld(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Rd(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(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=gn(n,a),l!=null&&o.unshift(Fd(n,l,c))):i||(l=gn(n,a),l!=null&&o.push(Fd(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var zd=/\r\n?/g,Bd=/\u0000|\uFFFD/g;function Vd(e){return(typeof e==`string`?e:``+e).replace(zd,`
9`).replace(Bd,``)}function Hd(e,t){return t=Vd(t),Vd(e)===t}function Ud(e,t,n,r,a,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||$t(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&$t(e,``+r);break;case`className`:zt(e,`class`,r);break;case`tabIndex`:zt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:zt(e,n,r);break;case`style`:nn(e,r,o);break;case`data`:if(t!==`object`){zt(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=sn(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}else typeof o==`function`&&(n===`formAction`?(t!==`input`&&Ud(e,t,`name`,a.name,a,null),Ud(e,t,`formEncType`,a.formEncType,a,null),Ud(e,t,`formMethod`,a.formMethod,a,null),Ud(e,t,`formTarget`,a.formTarget,a,null)):(Ud(e,t,`encType`,a.encType,a,null),Ud(e,t,`method`,a.method,a,null),Ud(e,t,`target`,a.target,a,null)));if(r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=sn(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=cn);break;case`onScroll`:r!=null&&H(`scroll`,e);break;case`onScrollEnd`:r!=null&&H(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=sn(``+r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``+r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:H(`beforetoggle`,e),H(`toggle`,e),Rt(e,`popover`,r);break;case`xlinkActuate`:Bt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:Bt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:Bt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:Bt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:Bt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:Bt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:Bt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:Bt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:Bt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:Rt(e,`is`,r);break;case`innerText`:case`textContent`:break;default:(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)&&(n=an.get(n)||n,Rt(e,n,r))}}function Wd(e,t,n,r,a,o){switch(n){case`style`:nn(e,r,o);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`children`:typeof r==`string`?$t(e,r):(typeof r==`number`||typeof r==`bigint`)&&$t(e,``+r);break;case`onScroll`:r!=null&&H(`scroll`,e);break;case`onScrollEnd`:r!=null&&H(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=cn);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!jt.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),t=n.slice(2,a?n.length-7:void 0),o=e[_t]||null,o=o==null?null:o[n],typeof o==`function`&&e.removeEventListener(t,o,a),typeof r==`function`)){typeof o!=`function`&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,a);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):Rt(e,n,r)}}}function Gd(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:H(`error`,e),H(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Ud(e,t,o,s,n,null)}}a&&Ud(e,t,`srcSet`,n.srcSet,n,null),r&&Ud(e,t,`src`,n.src,n,null);return;case`input`:H(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:Ud(e,t,r,d,n,null)}}Jt(e,o,c,l,u,s,a,!1);return;case`select`:for(a in H(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:Ud(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&Xt(e,!!r,n,!0):Xt(e,!!r,t,!1);return;case`textarea`:for(s in H(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:Ud(e,t,s,c,n,null)}Qt(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:Ud(e,t,l,r,n,null)}return;case`dialog`:H(`beforetoggle`,e),H(`toggle`,e),H(`cancel`,e),H(`close`,e);break;case`iframe`:case`object`:H(`load`,e);break;case`video`:case`audio`:for(r=0;r<Dd.length;r++)H(Dd[r],e);break;case`image`:H(`error`,e),H(`load`,e);break;case`details`:H(`toggle`,e);break;case`embed`:case`source`:case`link`:H(`error`,e),H(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Ud(e,t,u,r,n,null)}return;default:if(rn(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Wd(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&Ud(e,t,c,r,n,null))}function Kd(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||Ud(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:o=m;break;case`name`:a=m;break;case`checked`:u=m;break;case`defaultChecked`:d=m;break;case`value`:s=m;break;case`defaultValue`:c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&Ud(e,t,p,m,r,f)}}qt(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||Ud(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:p=o;break;case`defaultValue`:c=o;break;case`multiple`:s=o;default:o!==l&&Ud(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?Xt(e,!!n,n?[]:``,!1):Xt(e,!!n,t,!0)):Xt(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:Ud(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:p=a;break;case`defaultValue`:m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&Ud(e,t,s,a,r,o)}Zt(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:Ud(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:Ud(e,t,l,p,r,m)}return;case`img`:case`link`:case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`keygen`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:case`menuitem`:for(var g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&Ud(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:Ud(e,t,u,p,r,m)}return;default:if(rn(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&Wd(e,t,_,void 0,r,p);
vendor: 4,463 bytes, line 9
9for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||Wd(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&Ud(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||Ud(e,t,f,p,r,m)}function qd(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Jd(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&qd(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&qd(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var Yd=null,Xd=null;function Zd(e){return e.nodeType===9?e:e.ownerDocument}function Qd(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function $d(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function ef(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var tf=null;function nf(){var e=window.event;return e&&e.type===`popstate`?e===tf?!1:(tf=e,!0):(tf=null,!1)}var rf=typeof setTimeout==`function`?setTimeout:void 0,af=typeof clearTimeout==`function`?clearTimeout:void 0,of=typeof Promise==`function`?Promise:void 0,sf=typeof queueMicrotask==`function`?queueMicrotask:of===void 0?rf:function(e){return of.resolve(null).then(e).catch(cf)};function cf(e){setTimeout(function(){throw e})}function lf(e){return e===`head`}function uf(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===`/$`||n===`/&`){if(r===0){e.removeChild(i),Fp(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)wf(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,wf(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[Ct]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&wf(e.ownerDocument.body);n=i}while(n);Fp(t)}function df(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8)if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++;n=r}while(n)}function ff(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:ff(n),wt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function pf(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r)if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e;else if(!e[Ct])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=yf(e.nextSibling),e===null)break}return null}function mf(e,t,n){if(t===``)return null;for(;
vendor: 20,877 bytes, line 9
9e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=yf(e.nextSibling),e===null))return null;return e}function hf(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=yf(e.nextSibling),e===null))return null;return e}function gf(e){return e.data===`$?`||e.data===`$~`}function _f(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function vf(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function yf(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===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var bf=null;function xf(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return yf(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function Sf(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function Cf(e,t,n){switch(t=Zd(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function wf(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);wt(e)}var Tf=new Map,Ef=new Set;function Df(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Of=D.d;D.d={f:kf,r:Af,D:U,C:Nf,L:Pf,m:Ff,X:If,S:W,M:Lf};function kf(){var e=Of.f(),t=ku();return e||t}function Af(e){var t=Et(e);t!==null&&t.tag===5&&t.type===`form`?Ms(t):Of.r(e)}var jf=typeof document>`u`?null:document;function Mf(e,t,n){var r=jf;if(r&&typeof t==`string`&&t){var i=Kt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),Ef.has(i)||(Ef.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Gd(t,`link`,e),kt(t),r.head.appendChild(t)))}}function U(e){Of.D(e),Mf(`dns-prefetch`,e,null)}function Nf(e,t){Of.C(e,t),Mf(`preconnect`,e,t)}function Pf(e,t,n){Of.L(e,t,n);var r=jf;if(r&&e&&t){var i=`link[rel="preload"][as="`+Kt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Kt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Kt(n.imageSizes)+`"]`)):i+=`[href="`+Kt(e)+`"]`;var a=i;switch(t){case`style`:a=K(e);break;case`script`:a=Bf(e)}Tf.has(a)||(e=h({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),Tf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(q(a))||t===`script`&&r.querySelector(Vf(a))||(t=r.createElement(`link`),Gd(t,`link`,e),kt(t),r.head.appendChild(t)))}}function Ff(e,t){Of.m(e,t);var n=jf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Kt(r)+`"][href="`+Kt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Bf(e)}if(!Tf.has(a)&&(e=h({rel:`modulepreload`,href:e},t),Tf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Vf(a)))return}r=n.createElement(`link`),Gd(r,`link`,e),kt(r),n.head.appendChild(r)}}}function W(e,t,n){Of.S(e,t,n);var r=jf;if(r&&e){var i=Ot(r).hoistableStyles,a=K(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(q(a)))s.loading=5;else{e=h({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=Tf.get(a))&&Wf(e,n);var c=o=r.createElement(`link`);kt(c),Gd(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Uf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function If(e,t){Of.X(e,t);var n=jf;if(n&&e){var r=Ot(n).hoistableScripts,i=Bf(e),a=r.get(i);a||(a=n.querySelector(Vf(i)),a||(e=h({src:e,async:!0},t),(t=Tf.get(i))&&Gf(e,t),a=n.createElement(`script`),kt(a),Gd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Lf(e,t){Of.M(e,t);var n=jf;if(n&&e){var r=Ot(n).hoistableScripts,i=Bf(e),a=r.get(i);a||(a=n.querySelector(Vf(i)),a||(e=h({src:e,async:!0,type:`module`},t),(t=Tf.get(i))&&Gf(e,t),a=n.createElement(`script`),kt(a),Gd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function G(e,t,n,r){var a=(a=ve.current)?Df(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=K(n.href),n=Ot(a).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=K(n.href);var o=Ot(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(q(e)))&&!o._p&&(s.instance=o,s.state.loading=5),Tf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Tf.set(e,n),o||zf(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Bf(n),n=Ot(a).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function K(e){return`href="`+Kt(e)+`"`}function q(e){return`link[rel="stylesheet"][`+e+`]`}function Rf(e){return h({},e,{"data-precedence":e.precedence,precedence:null})}function zf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Gd(t,`link`,n),kt(t),e.head.appendChild(t))}function Bf(e){return`[src="`+Kt(e)+`"]`}function Vf(e){return`script[async]`+e}function Hf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Kt(n.href)+`"]`);if(r)return t.instance=r,kt(r),r;var a=h({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),kt(r),Gd(r,`style`,a),Uf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=K(n.href);var o=e.querySelector(q(a));if(o)return t.state.loading|=4,t.instance=o,kt(o),o;r=Rf(n),(a=Tf.get(a))&&Wf(r,a),o=(e.ownerDocument||e).createElement(`link`),kt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Gd(o,`link`,r),t.state.loading|=4,Uf(o,n.precedence,e),t.instance=o;case`script`:return o=Bf(n.src),(a=e.querySelector(Vf(o)))?(t.instance=a,kt(a),a):(r=n,(a=Tf.get(o))&&(r=h({},n),Gf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),kt(a),Gd(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Uf(r,n.precedence,e));return t.instance}function Uf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Wf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Gf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Kf=null;function qf(e,t,n){if(Kf===null){var r=new Map,i=Kf=new Map;i.set(n,r)}else i=Kf,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[Ct]||a[gt]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Jf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function J(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Yf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Xf(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=K(r.href),a=t.querySelector(q(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=$f.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,kt(a);return}a=t.ownerDocument||t,r=Rf(r),(i=Tf.get(i))&&Wf(r,i),a=a.createElement(`link`),kt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Gd(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=$f.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var Zf=0;function Qf(e,t){return e.stylesheets&&e.count===0&&tp(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&tp(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&Zf===0&&(Zf=62500*Jd());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&tp(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>Zf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function $f(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)tp(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ep=null;function tp(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ep=new Map,t.forEach(np,e),ep=null,$f.call(e))}function np(e,t){if(!(t.state.loading&4)){var n=ep.get(e);if(n)var r=n.get(null);else{n=new Map,ep.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=$f.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var rp={$$typeof:S,Provider:null,Consumer:null,_currentValue:ue,_currentValue2:ue,_threadCount:0};function ip(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=at(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=at(0),this.hiddenUpdates=at(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function Y(e,t,n,r,i,a,o,s,c,l,u,d){return e=new ip(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=fi(3,null,null,t),e.current=a,a.stateNode=e,t=fa(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},I(a),e}function ap(e){return e?(e=ui,e):ui}function op(e,t,n,r,i,a){i=ap(i),r.context===null?r.context=i:r.pendingContext=i,r=Ka(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=qa(e,r,t),n!==null&&(wu(n,e,t),Ja(n,e,t))}function sp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function cp(e,t){sp(e,t),(e=e.alternate)&&sp(e,t)}function lp(e){if(e.tag===13||e.tag===31){var t=si(e,67108864);t!==null&&wu(t,e,67108864),cp(e,67108864)}}function up(e){if(e.tag===13||e.tag===31){var t=Su();t=dt(t);var n=si(e,t);n!==null&&wu(n,e,t),cp(e,t)}}var dp=!0;function fp(e,t,n,r){var i=E.T;E.T=null;var a=D.p;try{D.p=2,mp(e,t,n,r)}finally{D.p=a,E.T=i}}function pp(e,t,n,r){var i=E.T;E.T=null;var a=D.p;try{D.p=8,mp(e,t,n,r)}finally{D.p=a,E.T=i}}function mp(e,t,n,r){if(dp){var i=hp(r);if(i===null)Pd(e,t,r,gp,n),Z(e,r);else if(Dp(i,e,t,n,r))r.stopPropagation();else if(Z(e,r),t&4&&-1<Tp.indexOf(e)){for(;i!==null;){var a=Et(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=et(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-qe(o);s.entanglements[1]|=c,o&=~c}pd(a),!(z&6)&&(uu=Fe()+500,md(0,!1))}}break;case 31:case 13:s=si(a,2),s!==null&&wu(s,a,2),ku(),cp(a,2)}if(a=hp(r),a===null&&Pd(e,t,r,gp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Pd(e,t,r,null,n)}}function hp(e){return e=un(e),X(e)}var gp=null;function X(e){if(gp=null,e=Tt(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=s(t),e!==null)return e;e=null}else if(n===31){if(e=c(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 gp=e,null}function _p(e){switch(e){case`beforetoggle`:case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`resize`:case`seeked`:case`submit`:case`toggle`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 2;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(Ie()){case Le:return 2;case Re:return 8;case ze:case Be:return 32;case Ve:return 268435456;default:return 32}default:return 32}}var vp=!1,yp=null,bp=null,xp=null,Sp=new Map,Cp=new Map,wp=[],Tp=`mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset`.split(` `);function Z(e,t){switch(e){case`focusin`:case`focusout`:yp=null;break;case`dragenter`:case`dragleave`:bp=null;break;case`mouseover`:case`mouseout`:xp=null;break;case`pointerover`:case`pointerout`:Sp.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:Cp.delete(t.pointerId)}}function Ep(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=Et(t),t!==null&&lp(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Dp(e,t,n,r,i){switch(t){case`focusin`:return yp=Ep(yp,e,t,n,r,i),!0;case`dragenter`:return bp=Ep(bp,e,t,n,r,i),!0;case`mouseover`:return xp=Ep(xp,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return Sp.set(a,Ep(Sp.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,Cp.set(a,Ep(Cp.get(a)||null,e,t,n,r,i)),!0}return!1}function Op(e){var t=Tt(e.target);if(t!==null){var n=o(t);if(n!==null){if(t=n.tag,t===13){if(t=s(n),t!==null){e.blockedOn=t,mt(e.priority,function(){up(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,mt(e.priority,function(){up(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 kp(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=hp(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);ln=r,n.target.dispatchEvent(r),ln=null}else return t=Et(n),t!==null&&lp(t),e.blockedOn=n,!1;t.shift()}return!0}function Ap(e,t,n){kp(e)&&n.delete(t)}function jp(){vp=!1,yp!==null&&kp(yp)&&(yp=null),bp!==null&&kp(bp)&&(bp=null),xp!==null&&kp(xp)&&(xp=null),Sp.forEach(Ap),Cp.forEach(Ap)}function Mp(e,n){e.blockedOn===n&&(e.blockedOn=null,vp||(vp=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,jp)))}var Np=null;function Pp(e){Np!==e&&(Np=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Np===e&&(Np=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(X(r||n)===null)continue;break}var a=Et(n);a!==null&&(e.splice(t,3),t-=3,As(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Fp(e){function t(t){return Mp(t,e)}yp!==null&&Mp(yp,e),bp!==null&&Mp(bp,e),xp!==null&&Mp(xp,e),Sp.forEach(t),Cp.forEach(t);for(var n=0;n<wp.length;n++){var r=wp[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<wp.length&&(n=wp[0],n.blockedOn===null);)Op(n),n.blockedOn===null&&wp.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[_t]||null;if(typeof a==`function`)o||Pp(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[_t]||null)s=o.formAction;else if(X(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Pp(n)}}}function Ip(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Lp(e){this._internalRoot=e}Rp.prototype.render=Lp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;op(n,Su(),e,t,null,null)},Rp.prototype.unmount=Lp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;op(e.current,2,null,e,null,null),ku(),t[vt]=null}};function Rp(e){this._internalRoot=e}Rp.prototype.unstable_scheduleHydration=function(e){if(e){var t=pt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<wp.length&&t!==0&&t<wp[n].priority;n++);wp.splice(n,0,e),n===0&&Op(e)}};var zp=n.version;if(zp!==`19.2.6`)throw Error(i(527,zp,`19.2.6`));D.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=d(t),e=e===null?null:p(e),e=e===null?null:e.stateNode,e};var Bp={bundleType:0,version:`19.2.6`,rendererPackageName:`react-dom`,currentDispatcherRef:E,reconcilerVersion:`19.2.6`};
9if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Vp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Vp.isDisabled&&Vp.supportsFiber)try{We=Vp.inject(Bp),Ge=Vp}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=Qs,s=$s,c=ec;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=Y(e,1,!1,null,null,n,r,null,o,s,c,Ip),e[vt]=t.current,Md(e),new Lp(t)}})),g=o(((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=h()})),_=c(u(),1),v=g(),y=`modulepreload`,b=function(e){return`/`+e},x={},ee=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}))))}r=o(t.map(t=>{if(t=b(t,n),t in x)return;x[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:y,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n)=>{o.addEventListener(`load`,e),o.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)})},S=`popstate`;function C(e){return typeof e==`object`&&!!e&&`pathname`in e&&`search`in e&&`hash`in e&&`state`in e&&`key`in e}function te(e={}){function t(e,t){let n=t.state?.masked,{pathname:r,search:i,hash:a}=n||e.location;return ie(``,{pathname:r,search:i,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||`default`,n?{pathname:e.location.pathname,search:e.location.search,hash:e.location.hash}:void 0)}function n(e,t){return typeof t==`string`?t:ae(t)}return se(t,n,null,e)}function w(e,t){if(e===!1||e==null)throw Error(t)}function T(e,t){if(!e){typeof console<`u`&&console.warn(t);try{throw Error(t)}catch{}}}function ne(){return Math.random().toString(36).substring(2,10)}function re(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function ie(e,t,n=null,r,i){return{pathname:typeof e==`string`?e:e.pathname,search:``,hash:``,...typeof t==`string`?oe(t):t,state:n,key:t&&t.key||r||ne(),mask:i}}function ae({pathname:e=`/`,search:t=``,hash:n=``}){return t&&t!==`?`&&(e+=t.charAt(0)===`?`?t:`?`+t),n&&n!==`#`&&(e+=n.charAt(0)===`#`?n:`#`+n),e}function oe(e){let t={};if(e){let n=e.indexOf(`#`);n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf(`?`);r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function se(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,s=`POP`,c=null,l=u();l??(l=0,o.replaceState({...o.state,idx:l},``));function u(){return(o.state||{idx:null}).idx}function d(){s=`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=`PUSH`;let r=C(e)?e:ie(h.location,e,t);n&&n(r,e),l=u()+1;let d=re(r,l),f=h.createHref(r.mask||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=`REPLACE`;let r=C(e)?e:ie(h.location,e,t);n&&n(r,e),l=u();let i=re(r,l),d=h.createHref(r.mask||r);o.replaceState(i,``,d),a&&c&&c({action:s,location:h.location,delta:0})}function m(e){return ce(e)}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(S,d),c=e,()=>{i.removeEventListener(S,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}function ce(e,t=!1){let n=`http://localhost`;typeof window<`u`&&(n=window.location.origin===`null`?window.location.href:window.location.origin),w(n,`No window.location.(origin|href) available to create URL`);let r=typeof e==`string`?e:ae(e);return r=r.replace(/ $/,`%20`),!t&&r.startsWith(`//`)&&(r=n+r),new URL(r,n)}function le(e,t,n=`/`){return E(e,t,n,!1)}function E(e,t,n,r,i){let a=De((typeof t==`string`?oe(t):t).pathname||`/`,n);if(a==null)return null;
9let o=i??ue(e),s=null,c=Ee(a);for(let e=0;s==null&&e<o.length;++e)s=Ce(o[e],c,r);return s}function D(e,t){let{route:n,pathname:r,params:i}=e;return{id:n.id,pathname:r,params:i,data:t[n.id],loaderData:t[n.id],handle:n.handle}}function ue(e){let t=de(e);return pe(t),t}function de(e,t=[],n=[],r=``,i=!1){let a=(e,a,o=i,s)=>{let c={relativePath:s===void 0?e.path||``:s,caseSensitive:e.caseSensitive===!0,childrenIndex:a,route:e};if(c.relativePath.startsWith(`/`)){if(!c.relativePath.startsWith(r)&&o)return;w(c.relativePath.startsWith(r),`Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(r.length)}let l=Fe([r,c.relativePath]),u=n.concat(c);e.children&&e.children.length>0&&(w(e.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),de(e.children,t,u,l,o)),!(e.path==null&&!e.index)&&t.push({path:l,score:xe(l,e.index),routesMeta:u})};return e.forEach((e,t)=>{if(e.path===``||!e.path?.includes(`?`))a(e,t);else for(let n of fe(e.path))a(e,t,!0,n)}),t}function fe(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=fe(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 pe(e){e.sort((e,t)=>e.score===t.score?Se(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}var me=/^:[\w-]+$/,he=3,ge=2,_e=1,ve=10,ye=-2,be=e=>e===`*`;function xe(e,t){let n=e.split(`/`),r=n.length;return n.some(be)&&(r+=ye),t&&(r+=ge),n.filter(e=>!be(e)).reduce((e,t)=>e+(me.test(t)?he:t===``?_e:ve),r)}function Se(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 Ce(e,t,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=we({path:s.relativePath,caseSensitive:s.caseSensitive,end:c},l),d=s.route;if(!u&&c&&n&&!r[r.length-1].route.index&&(u=we({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},l)),!u)return null;
9Object.assign(i,u.params),o.push({params:i,pathname:Fe([a,u.pathname]),pathnameBase:Le(Fe([a,u.pathnameBase])),route:d}),u.pathnameBase!==`/`&&(a=Fe([a,u.pathnameBase]))}return o}function we(e,t){typeof e==`string`&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Te(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,{paramName:t,isOptional:n},r)=>{if(t===`*`){let e=s[r]||``;o=a.slice(0,a.length-e.length).replace(/(.)\/+$/,`$1`)}let i=s[r];return n&&!i?e[t]=void 0:e[t]=(i||``).replace(/%2F/g,`/`),e},{}),pathname:a,pathnameBase:o,pattern:e}}function Te(e,t=!1,n=!0){T(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,i,a)=>{if(r.push({paramName:t,isOptional:n!=null}),n){let t=a.charAt(i+e.length);return t&&t!==`/`?`/([^\\/]*)`:`(?:/([^\\/]*))?`}return`/([^\\/]+)`}).replace(/\/([\w-]+)\?(\/|$)/g,`(/$1)?$2`);return e.endsWith(`*`)?(r.push({paramName:`*`}),i+=e===`*`||e===`/*`?`(.*)$`:`(?:\\/(.+)|\\/*)$`):n?i+=`\\/*$`:e!==``&&e!==`/`&&(i+=`(?:(?=\\/|$))`),[new RegExp(i,t?void 0:`i`),r]}function Ee(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).replace(/\//g,`%2F`)).join(`/`)}catch(t){return T(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function De(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)||`/`}var Oe=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function O(e,t=`/`){let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?oe(e):e,a;return n?(n=Pe(n),a=n.startsWith(`/`)?ke(n.substring(1),`/`):ke(n,t)):a=t,{pathname:a,search:Re(r),hash:ze(i)}}function ke(e,t){let n=Ie(t).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function Ae(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 je(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function Me(e){let t=je(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function Ne(e,t,n,r=!1){let i;typeof e==`string`?i=oe(e):(i={...e},w(!i.pathname||!i.pathname.includes(`?`),Ae(`?`,`pathname`,`search`,i)),w(!i.pathname||!i.pathname.includes(`#`),Ae(`#`,`pathname`,`hash`,i)),w(!i.search||!i.search.includes(`#`),Ae(`#`,`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=O(i,s),l=o&&o!==`/`&&o.endsWith(`/`),u=(a||o===`.`)&&n.endsWith(`/`);return!c.pathname.endsWith(`/`)&&(l||u)&&(c.pathname+=`/`),c}var Pe=e=>e.replace(/\/\/+/g,`/`),Fe=e=>Pe(e.join(`/`)),Ie=e=>e.replace(/\/+$/,``),Le=e=>Ie(e).replace(/^\/*/,`/`),Re=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,ze=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,Be=class{constructor(e,t,n,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 Ve(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}function He(e){return Fe(e.map(e=>e.route.path).filter(Boolean))||`/`}var Ue=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function We(e,t){let n=e;if(typeof n!=`string`||!Oe.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(Ue)try{let e=new URL(window.location.href),r=n.startsWith(`//`)?new URL(e.protocol+n):new URL(n),a=De(r.pathname,t);r.origin===e.origin&&a!=null?n=a+r.search+r.hash:i=!0}catch{T(!1,`<Link to="${n}">
9 contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);var Ge=[`POST`,`PUT`,`PATCH`,`DELETE`];new Set(Ge);var Ke=[`GET`,...Ge];new Set(Ke);var qe=_.createContext(null);qe.displayName=`DataRouter`;var Je=_.createContext(null);Je.displayName=`DataRouterState`;var Ye=_.createContext(!1);function Xe(){return _.useContext(Ye)}var Ze=_.createContext({isTransitioning:!1});Ze.displayName=`ViewTransition`;var Qe=_.createContext(new Map);Qe.displayName=`Fetchers`;var $e=_.createContext(null);$e.displayName=`Await`;var et=_.createContext(null);et.displayName=`Navigation`;var tt=_.createContext(null);tt.displayName=`Location`;var nt=_.createContext({outlet:null,matches:[],isDataRoute:!1});nt.displayName=`Route`;var rt=_.createContext(null);rt.displayName=`RouteError`;var it=`REACT_ROUTER_ERROR`,at=`REDIRECT`,ot=`ROUTE_ERROR_RESPONSE`;function st(e){if(e.startsWith(`${it}:${at}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`&&typeof t.location==`string`&&typeof t.reloadDocument==`boolean`&&typeof t.replace==`boolean`)return t}catch{}}function ct(e){if(e.startsWith(`${it}:${ot}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`)return new Be(t.status,t.statusText,t.data)}catch{}}function lt(e,{relative:t}={}){w(ut(),`useHref() may be used only in the context of a <Router> component.`);let{basename:n,navigator:r}=_.useContext(et),{hash:i,pathname:a,search:o}=yt(e,{relative:t}),s=a;return n!==`/`&&(s=a===`/`?n:Fe([n,a])),r.createHref({pathname:s,search:o,hash:i})}function ut(){return _.useContext(tt)!=null}function dt(){return w(ut(),`useLocation() may be used only in the context of a <Router> component.`),_.useContext(tt).location}var ft=`You should call navigate() in a React.useEffect(), not when your component is first rendered.`;function pt(e){_.useContext(et).static||_.useLayoutEffect(e)}function mt(){let{isDataRoute:e}=_.useContext(nt);return e?Rt():ht()}function ht(){w(ut(),`useNavigate() may be used only in the context of a <Router> component.`);let e=_.useContext(qe),{basename:t,navigator:n}=_.useContext(et),{matches:r}=_.useContext(nt),{pathname:i}=dt(),a=JSON.stringify(Me(r)),o=_.useRef(!1);return pt(()=>{o.current=!0}),_.useCallback((r,s={})=>{if(T(o.current,ft),!o.current)return;if(typeof r==`number`){n.go(r);return}let c=Ne(r,JSON.parse(a),i,s.relative===`path`);e==null&&t!==`/`&&(c.pathname=c.pathname===`/`?t:Fe([t,c.pathname])),(s.replace?n.replace:n.push)(c,s.state,s)},[t,n,a,i,e])}var gt=_.createContext(null);function _t(e){let t=_.useContext(nt).outlet;return _.useMemo(()=>t&&_.createElement(gt.Provider,{value:e},t),[t,e])}function vt(){let{matches:e}=_.useContext(nt);return e[e.length-1]?.params??{}}function yt(e,{relative:t}={}){let{matches:n}=_.useContext(nt),{pathname:r}=dt(),i=JSON.stringify(Me(n));return _.useMemo(()=>Ne(e,JSON.parse(i),r,t===`path`),[e,i,r,t])}function bt(e,t){return xt(e,t)}function xt(e,t,n){w(ut(),`useRoutes() may be used only in the context of a <Router> component.`);let{navigator:r}=_.useContext(et),{matches:i}=_.useContext(nt),a=i[i.length-1],o=a?a.params:{},s=a?a.pathname:`/`,c=a?a.pathnameBase:`/`,l=a&&a.route;{let e=l&&l.path||``;Bt(s,!l||e.endsWith(`*`)||e.endsWith(`*?`),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${s}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
10
11Please change the parent <Route path="${e}"> to <Route path="${e===`/`?`*`:`${e}/*`}">.`)}let u=dt(),d;if(t){let e=typeof t==`string`?oe(t):t;w(c===`/`||e.pathname?.startsWith(c),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${c}" but pathname "${e.pathname}" was given in the \`location\` prop.`),d=e}else d=u;let f=d.pathname||`/`,p=f;if(c!==`/`){let e=c.replace(/^\//,``).split(`/`);p=`/`+f.replace(/^\//,``).split(`/`).slice(e.length).join(`/`)}let m=n&&n.state.matches.length?n.state.matches.map(e=>Object.assign(e,{route:n.manifest[e.route.id]||e.route})):le(e,{pathname:p});T(l||m!=null,`No routes matched location "${d.pathname}${d.search}${d.hash}" `),T(m==null||m[m.length-1].route.element!==void 0||m[m.length-1].route.Component!==void 0||m[m.length-1].route.lazy!==void 0,`Matched leaf route at location "${d.pathname}${d.search}${d.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let h=Ot(m&&m.map(e=>Object.assign({},e,{params:Object.assign({},o,e.params),pathname:Fe([c,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?c:Fe([c,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathnameBase])})),i,n);return t&&h?_.createElement(tt.Provider,{value:{location:{pathname:`/`,search:``,hash:``,state:null,key:`default`,mask:void 0,...d},navigationType:`POP`}},h):h}function St(){let e=Lt(),t=Ve(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r=`rgba(200,200,200, 0.5)`,i={padding:`0.5rem`,backgroundColor:r},a={padding:`2px 4px`,backgroundColor:r},o=null;return console.error(`Error handled by React Router default ErrorBoundary:`,e),o=_.createElement(_.Fragment,null,_.createElement(`p`,null,`💿 Hey developer 👋`),_.createElement(`p`,null,`You can provide a way better UX than this when your app throws errors by providing your own `,_.createElement(`code`,{style:a},`ErrorBoundary`),` or`,` `,_.createElement(`code`,{style:a},`errorElement`),` prop on your route.`)),_.createElement(_.Fragment,null,_.createElement(`h2`,null,`Unexpected Application 
11Error!`),_.createElement(`h3`,{style:{fontStyle:`italic`}},t),n?_.createElement(`pre`,{style:i},n):null,o)}var Ct=_.createElement(St,null),wt=class extends _.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){this.props.onError?this.props.onError(e,t):console.error(`React Router caught the following error during render`,e)}render(){let e=this.state.error;if(this.context&&typeof e==`object`&&e&&`digest`in e&&typeof e.digest==`string`){let t=ct(e.digest);t&&(e=t)}let t=e===void 0?this.props.children:_.createElement(nt.Provider,{value:this.props.routeContext},_.createElement(rt.Provider,{value:e,children:this.props.component}));return this.context?_.createElement(Et,{error:e},t):t}};wt.contextType=Ye;var Tt=new WeakMap;function Et({children:e,error:t}){let{basename:n}=_.useContext(et);if(typeof t==`object`&&t&&`digest`in t&&typeof t.digest==`string`){let e=st(t.digest);if(e){let r=Tt.get(t);if(r)throw r;let i=We(e.location,n);if(Ue&&!Tt.get(t))if(i.isExternal||e.reloadDocument)window.location.href=i.absoluteURL||i.to;else{let n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(i.to,{replace:e.replace}));throw Tt.set(t,n),n}return _.createElement(`meta`,{httpEquiv:`refresh`,content:`0;url=${i.absoluteURL||i.to}`})}}return e}function Dt({routeContext:e,match:t,children:n}){let r=_.useContext(qe);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),_.createElement(nt.Provider,{value:e},n)}function Ot(e,t=[],n){let r=n?.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,a=r?.errors;if(a!=null){let e=i.findIndex(e=>e.route.id&&a?.[e.route.id]!==void 0);w(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(`,`)}`),i=i.slice(0,Math.min(i.length,e+1))}let o=!1,s=-1;if(n&&r){o=r.renderFallback;for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(s=e),t.route.id){let{loaderData:e,errors:a}=r,c=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!a||a[t.route.id]===void 0);if(t.route.lazy||c){n.isStatic&&(o=!0),i=s>=0?i.slice(0,s+1):[i[0]];break}}}}let c=n?.onError,l=r&&c?(e,t)=>{c(e,{location:r.location,params:r.matches?.[0]?.params??{},pattern:He(r.matches),errorInfo:t})}:void 0;return i.reduceRight((e,n,c)=>{let u,d=!1,f=null,p=null;r&&(u=a&&n.route.id?a[n.route.id]:void 0,f=n.route.errorElement||Ct,o&&(s<0&&c===0?(Bt(`route-fallback`,!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,p=null):s===c&&(d=!0,p=n.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,c+1)),h=()=>{let t;return t=u?f:d?p:n.route.Component?_.createElement(n.route.Component,null):n.route.element?n.route.element:e,_.createElement(Dt,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:r!=null},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||c===0)?_.createElement(wt,{location:r.location,revalidation:r.revalidation,component:f,error:u,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:l}):h()},null)}function kt(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function At(e){let t=_.useContext(qe);return w(t,kt(e)),t}function jt(e){let t=_.useContext(Je);return w(t,kt(e)),t}function Mt(e){let t=_.useContext(nt);return w(t,kt(e)),t}function Nt(e){let t=Mt(e),n=t.matches[t.matches.length-1];return w(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function Pt(){return Nt(`useRouteId`)}function Ft(){return jt(`useNavigation`).navigation}function It(){let{matches:e,loaderData:t}=jt(`useMatches`);return _.useMemo(()=>e.map(e=>D(e,t)),[e,t])}function Lt(){let e=_.useContext(rt),t=jt(`useRouteError`),n=Nt(`useRouteError`);return e===void 0?t.errors?.[n]:e}function Rt(){let{router:e}=At(`useNavigate`),t=Nt(`useNavigate`),n=_.useRef(!1);return pt(()=>{n.current=!0}),_.useCallback(async(r,i={})=>{T(n.current,ft),n.current&&(typeof r==`number`?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))},[e,t])}var zt={};function Bt(e,t,n){!t&&!zt[e]&&(zt[e]=!0,T(!1,n))}_.memo(k);function k({routes:e,manifest:t,future:n,state:r,isStatic:i,onError:a}){return xt(e,void 0,{manifest:t,state:r,isStatic:i,onError:a,future:n})}function Vt(e){return _t(e.context)}function A(e){w(!1,`A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.`)}function Ht({basename:e=`/`,children:t=null,location:n,navigationType:r=`POP`,navigator:i,static:a=!1,useTransitions:o}){w(!ut(),`You cannot render a <Router> inside another <Router>. You should never have more than one in your app.`);let s=e.replace(/^\/*/,`/`),c=_.useMemo(()=>({basename:s,navigator:i,static:a,useTransitions:o,future:{}}),[s,i,a,o]);typeof n==`string`&&(n=oe(n));let{pathname:l=`/`,search:u=``,hash:d=``,state:f=null,key:p=`default`,mask:m}=n,h=_.useMemo(()=>{let e=De(l,s);return e==null?null:{location:{pathname:e,search:u,hash:d,state:f,key:p,mask:m},navigationType:r}},[s,l,u,d,f,p,r,m]);
11return T(h!=null,`<Router basename="${s}"> is not able to match the URL "${l}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`),h==null?null:_.createElement(et.Provider,{value:c},_.createElement(tt.Provider,{children:t,value:h}))}function Ut({children:e,location:t}){return bt(Wt(e),t)}_.Component;function Wt(e,t=[]){let n=[];return _.Children.forEach(e,(e,r)=>{if(!_.isValidElement(e))return;let i=[...t,r];if(e.type===_.Fragment){n.push.apply(n,Wt(e.props.children,i));return}w(e.type===A,`[${typeof e.type==`string`?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),w(!e.props.index||!e.props.children,`An index route cannot have child routes.`);let a={id:e.props.id||i.join(`-`),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,middleware:e.props.middleware,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:e.props.hasErrorBoundary===!0||e.props.ErrorBoundary!=null||e.props.errorElement!=null,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=Wt(e.props.children,i)),n.push(a)}),n}var Gt=`get`,Kt=`application/x-www-form-urlencoded`;function qt(e){return typeof HTMLElement<`u`&&e instanceof HTMLElement}function Jt(e){return qt(e)&&e.tagName.toLowerCase()===`button`}function Yt(e){return qt(e)&&e.tagName.toLowerCase()===`form`}function Xt(e){return qt(e)&&e.tagName.toLowerCase()===`input`}function Zt(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Qt(e,t){return e.button===0&&(!t||t===`_self`)&&!Zt(e)}function $t(e=``){return 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 en(e,t){let n=$t(e);return t&&t.forEach((e,r)=>{n.has(r)||t.getAll(r).forEach(e=>{n.append(r,e)})}),n}var tn=null;function nn(){if(tn===null)try{new FormData(document.createElement(`form`),0),tn=!1}catch{tn=!0}return tn}var rn=new Set([`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`]);function an(e){return e!=null&&!rn.has(e)?(T(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Kt}"`),null):e}function on(e,t){let n,r,i,a,o;if(Yt(e)){let o=e.getAttribute(`action`);r=o?De(o,t):null,n=e.getAttribute(`method`)||Gt,i=an(e.getAttribute(`enctype`))||Kt,a=new FormData(e)}else if(Jt(e)||Xt(e)&&(e.type===`submit`||e.type===`image`)){let o=e.form;if(o==null)throw Error(`Cannot submit a <button> or <input type="submit"> without a <form>`);let s=e.getAttribute(`formaction`)||o.getAttribute(`action`);if(r=s?De(s,t):null,n=e.getAttribute(`formmethod`)||o.getAttribute(`method`)||Gt,i=an(e.getAttribute(`formenctype`))||an(o.getAttribute(`enctype`))||Kt,a=new FormData(o,e),!nn()){let{name:t,type:n,value:r}=e;if(n===`image`){let e=t?`${t}.`:``;a.append(`${e}x`,`0`),a.append(`${e}y`,`0`)}else t&&a.append(t,r)}}else if(qt(e))throw Error(`Cannot submit element that is not <form>, <button>, or <input type="submit|image">`);else n=Gt,r=null,i=Kt,o=e;return a&&i===`text/plain`&&(o=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:o}}Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);var sn={"&":`\\u0026`,">":`\\u003e`,"<":`\\u003c`,"\u2028":`\\u2028`,"\u2029":`\\u2029`},cn=/[&><\u2028\u2029]/g;function ln(e){return e.replace(cn,e=>sn[e])}function un(e,t){if(e===!1||e==null)throw Error(t)}function dn(e,t,n,r){let i=typeof e==`string`?new URL(e,typeof window>`u`?`server://singlefetch/`:window.location.origin):e;return n?i.pathname.endsWith(`/`)?i.pathname=`${i.pathname}_.${r}`:i.pathname=`${i.pathname}.${r}`:i.pathname===`/`?i.pathname=`_root.${r}`:t&&De(i.pathname,t)===`/`?i.pathname=`${Ie(t)}/_root.${r}`:i.pathname=`${Ie(i.pathname)}.${r}`,i}async function fn(e,t){if(e.id in t)return t[e.id];try{let n=await ee(()=>import(e.module),[]);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.
11isSpaMode,window.location.reload(),new Promise(()=>{})}}function pn(e){return e!=null&&typeof e.page==`string`}function mn(e){return e==null?!1:e.href==null?e.rel===`preload`&&typeof e.imageSrcSet==`string`&&typeof e.imageSizes==`string`:typeof e.rel==`string`&&typeof e.href==`string`}async function hn(e,t,n){return bn((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await fn(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(mn).filter(e=>e.rel===`stylesheet`||e.rel===`preload`).map(e=>e.rel===`stylesheet`?{...e,rel:`prefetch`,as:`style`}:{...e,rel:`prefetch`}))}function gn(e,t,n,r,i,a){let o=(e,t)=>n[t]?e.route.id!==n[t].route.id:!0,s=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith(`*`)&&n[t].params[`*`]!==e.params[`*`];return a===`assets`?t.filter((e,t)=>o(e,t)||s(e,t)):a===`data`?t.filter((t,a)=>{let c=r.routes[t.route.id];if(!c||!c.hasLoader)return!1;if(o(t,a)||s(t,a))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if(typeof r==`boolean`)return r}return!0}):[]}function _n(e,t,{includeHydrateFallback:n}={}){return vn(e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let i=[r.module];return r.clientActionModule&&(i=i.concat(r.clientActionModule)),r.clientLoaderModule&&(i=i.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(i=i.concat(r.hydrateFallbackModule)),r.imports&&(i=i.concat(r.imports)),i}).flat(1))}function vn(e){return[...new Set(e)]}function yn(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function bn(e,t){let n=new Set,r=new Set(t);return e.reduce((e,i)=>{if(t&&!pn(i)&&i.as===`script`&&i.href&&r.has(i.href))return e;let a=JSON.stringify(yn(i));return n.has(a)||(n.add(a),e.push({key:a,link:i})),e},[])}function xn(){let e=_.useContext(qe);return un(e,`You must render this element inside a <DataRouterContext.Provider> element`),e}function Sn(){let e=_.useContext(Je);return un(e,`You must render this element inside a <DataRouterStateContext.Provider> element`),e}var Cn=_.createContext(void 0);Cn.displayName=`FrameworkContext`;function wn(){let e=_.useContext(Cn);return un(e,`You must render this element inside a <HydratedRouter> element`),e}function Tn(e,t){let n=_.useContext(Cn),[r,i]=_.useState(!1),[a,o]=_.useState(!1),{onFocus:s,onBlur:c,onMouseEnter:l,onMouseLeave:u,onTouchStart:d}=t,f=_.useRef(null);_.useEffect(()=>{if(e===`render`&&o(!0),e===`viewport`){let e=new IntersectionObserver(e=>{e.forEach(e=>{o(e.isIntersecting)})},{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}},[e]),_.useEffect(()=>{if(r){let e=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(e)}}},[r]);let p=()=>{i(!0)},m=()=>{i(!1),o(!1)};return n?e===`intent`?[a,f,{onFocus:En(s,p),onBlur:En(c,m),onMouseEnter:En(l,p),onMouseLeave:En(u,m),onTouchStart:En(d,p)}]:[a,f,{}]:[!1,f,{}]}function En(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Dn({page:e,...t}){let n=Xe(),{router:r}=xn(),i=_.useMemo(()=>le(r.routes,e,r.basename),[r.routes,e,r.basename]);return i?n?_.createElement(kn,{page:e,matches:i,...t}):_.createElement(An,{page:e,matches:i,...t}):null}function On(e){let{manifest:t,routeModules:n}=wn(),[r,i]=_.useState([]);return _.useEffect(()=>{let r=!1;return hn(e,t,n).then(e=>{r||i(e)}),()=>{r=!0}},[e,t,n]),r}function kn({page:e,matches:t,...n}){let r=dt(),{future:i}=wn(),{basename:a}=xn(),o=_.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=dn(e,a,i.unstable_trailingSlashAwareDataRequests,`rsc`),o=!1,s=[];for(let e of t)typeof e.route.shouldRevalidate==`function`?o=!0:s.push(e.route.id);return o&&s.length>0&&n.searchParams.set(`_routes`,s.join(`,`)),[n.pathname+n.search]},[a,i.unstable_trailingSlashAwareDataRequests,e,r,t]);return _.createElement(_.Fragment,null,o.map(e=>_.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})))}function An({page:e,matches:t,...n}){let r=dt(),{future:i,manifest:a,routeModules:o}=wn(),{basename:s}=xn(),{loaderData:c,matches:l}=Sn(),u=_.useMemo(()=>gn(e,t,l,a,r,`data`),[e,t,l,a,r]),d=_.useMemo(()=>gn(e,t,l,a,r,`assets`),[e,t,l,a,r]),f=_.useMemo(()=>
11{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,l=!1;if(t.forEach(e=>{let t=a.routes[e.route.id];!t||!t.hasLoader||(!u.some(t=>t.route.id===e.route.id)&&e.route.id in c&&o[e.route.id]?.shouldRevalidate||t.hasClientLoader?l=!0:n.add(e.route.id))}),n.size===0)return[];let d=dn(e,s,i.unstable_trailingSlashAwareDataRequests,`data`);return l&&n.size>0&&d.searchParams.set(`_routes`,t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(`,`)),[d.pathname+d.search]},[s,i.unstable_trailingSlashAwareDataRequests,c,r,a,u,t,e,o]),p=_.useMemo(()=>_n(d,a),[d,a]),m=On(d);return _.createElement(_.Fragment,null,f.map(e=>_.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})),p.map(e=>_.createElement(`link`,{key:e,rel:`modulepreload`,href:e,...n})),m.map(({key:e,link:t})=>_.createElement(`link`,{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin})))}function jn(...e){return t=>{e.forEach(e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)})}}_.Component;var Mn=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;try{Mn&&(window.__reactRouterVersion=`7.15.0`)}catch{}function Nn({basename:e,children:t,useTransitions:n,window:r}){let i=_.useRef();i.current??=te({window:r,v5Compat:!0});let a=i.current,[o,s]=_.useState({action:a.action,location:a.location}),c=_.useCallback(e=>{n===!1?s(e):_.startTransition(()=>s(e))},[n]);return _.useLayoutEffect(()=>a.listen(c),[a,c]),_.createElement(Ht,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:a,useTransitions:n})}function Pn({basename:e,children:t,history:n,useTransitions:r}){let[i,a]=_.useState({action:n.action,location:n.location}),o=_.useCallback(e=>{r===!1?a(e):_.startTransition(()=>a(e))},[r]);return _.useLayoutEffect(()=>n.listen(o),[n,o]),_.createElement(Ht,{basename:e,children:t,location:i.location,navigationType:i.action,navigator:n,useTransitions:r})}Pn.displayName=`unstable_HistoryRouter`;var Fn=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,j=_.forwardRef(function({onClick:e,discover:t=`render`,prefetch:n=`none`,relative:r,reloadDocument:i,replace:a,mask:o,state:s,target:c,to:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m){let{basename:h,navigator:g,useTransitions:v}=_.useContext(et),y=typeof l==`string`&&Fn.test(l),b=We(l,h);l=b.to;let x=lt(l,{relative:r}),ee=dt(),S=null;if(o){let e=Ne(o,[],ee.mask?ee.mask.pathname:`/`,!0);h!==`/`&&(e.pathname=e.pathname===`/`?h:Fe([h,e.pathname])),S=g.createHref(e)}let[C,te,w]=Tn(n,p),T=Hn(l,{replace:a,mask:o,state:s,target:c,preventScrollReset:u,relative:r,viewTransition:d,defaultShouldRevalidate:f,useTransitions:v});function ne(t){e&&e(t),t.defaultPrevented||T(t)}let re=!(b.isExternal||i),ie=_.createElement(`a`,{...p,...w,href:(re?S:void 0)||b.absoluteURL||x,onClick:re?ne:e,ref:jn(m,te),target:c,"data-discover":!y&&t===`render`?`true`:void 0});return C&&!y?_.createElement(_.Fragment,null,ie,_.createElement(Dn,{page:x})):ie});j.displayName=`Link`;var In=_.forwardRef(function({"aria-current":e=`page`,caseSensitive:t=!1,className:n=``,end:r=!1,style:i,to:a,viewTransition:o,children:s,...c},l){let u=yt(a,{relative:c.relative}),d=dt(),f=_.useContext(Je),{navigator:p,basename:m}=_.useContext(et),h=f!=null&&$n(u)&&o===!0,g=p.encodeLocation?p.encodeLocation(u).pathname:u.pathname,v=d.pathname,y=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;t||(v=v.toLowerCase(),y=y?y.toLowerCase():null,g=g.toLowerCase()),y&&m&&(y=De(y,m)||y);let b=g!==`/`&&g.endsWith(`/`)?g.length-1:g.length,x=v===g||!r&&v.startsWith(g)&&v.charAt(b)===`/`,ee=y!=null&&(y===g||!r&&y.startsWith(g)&&y.charAt(g.length)===`/`),S={isActive:x,isPending:ee,isTransitioning:h},C=x?e:void 0,te;te=typeof n==`function`?n(S):[n,x?`active`:null,ee?`pending`:null,h?`transitioning`:null].filter(Boolean).join(` `);let w=typeof i==`function`?i(S):i;return _.createElement(j,{...c,"aria-current":C,className:te,ref:l,style:w,to:a,viewTransition:o},typeof s==`function`?s(S):s)});In.displayName=`NavLink`;var Ln=_.forwardRef(({discover:e=`render`,fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:o=Gt,action:s,onSubmit:c,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m)=>{let{useTransitions:h}=_.useContext(et),g=Kn(),v=qn(s,{relative:l}),y=o.toLowerCase()===`get`?`get`:`post`,b=typeof s==`string`&&Fn.test(s);return _.createElement(`form`,{ref:m,method:y,action:v,onSubmit:r?c:e=>{if(c&&c(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,s=r?.getAttribute(`formmethod`)||o,p=()=>g(r||e.currentTarget,{fetcherKey:t,method:s,navigate:n,replace:i,state:a,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f});h&&n!==!1?_.startTransition(()=>p()):p()},...p,"data-discover":!b&&e===`render`?`true`:void 0})});Ln.displayName=`Form`;function Rn({getKey:e,storageKey:t,...n}){let r=_.useContext(Cn),{basename:i}=_.useContext(et),a=dt(),o=It();Zn({getKey:e,storageKey:t});let s=_.useMemo(()=>
11{if(!r||!e)return null;let t=Xn(a,o,i,e);return t===a.key?null:t},[]);if(!r||r.isSpaMode)return null;let c=((e,t)=>{if(!window.history.state||!window.history.state.key){let e=Math.random().toString(32).slice(2);window.history.replaceState({key:e},``)}try{let n=JSON.parse(sessionStorage.getItem(e)||`{}`)[t||window.history.state.key];typeof n==`number`&&window.scrollTo(0,n)}catch(t){console.error(t),sessionStorage.removeItem(e)}}).toString();return _.createElement(`script`,{...n,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:`(${c})(${ln(JSON.stringify(t||Jn))}, ${ln(JSON.stringify(s))})`}})}Rn.displayName=`ScrollRestoration`;function zn(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function Bn(e){let t=_.useContext(qe);return w(t,zn(e)),t}function Vn(e){let t=_.useContext(Je);return w(t,zn(e)),t}function Hn(e,{target:t,replace:n,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c,useTransitions:l}={}){let u=mt(),d=dt(),f=yt(e,{relative:o});return _.useCallback(p=>{if(Qt(p,t)){p.preventDefault();let t=n===void 0?ae(d)===ae(f):n,m=()=>u(e,{replace:t,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c});l?_.startTransition(()=>m()):m()}},[d,u,f,n,r,i,t,e,a,o,s,c,l])}function Un(e){T(typeof URLSearchParams<`u`,"You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=_.useRef($t(e)),n=_.useRef(!1),r=dt(),i=_.useMemo(()=>en(r.search,n.current?null:t.current),[r.search]),a=mt();return[i,_.useCallback((e,t)=>{let r=$t(typeof e==`function`?e(new URLSearchParams(i)):e);n.current=!0,a(`?`+r,t)},[a,i])]}var Wn=0,Gn=()=>`__${String(++Wn)}__`;function Kn(){let{router:e}=Bn(`useSubmit`),{basename:t}=_.useContext(et),n=Pt(),r=e.fetch,i=e.navigate;return _.useCallback(async(e,a={})=>{let{action:o,method:s,encType:c,formData:l,body:u}=on(e,t);a.navigate===!1?await r(a.fetcherKey||Gn(),n,a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,flushSync:a.flushSync}):await i(a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,i,t,n])}function qn(e,{relative:t}={}){let{basename:n}=_.useContext(et),r=_.useContext(nt);w(r,`useFormAction must be used inside a RouteContext`);let[i]=r.matches.slice(-1),a={...yt(e||`.`,{relative:t})},o=dt();if(e==null){a.search=o.search;let e=new URLSearchParams(a.search),t=e.getAll(`index`);if(t.some(e=>e===``)){e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();a.search=n?`?${n}`:``}}return(!e||e===`.`)&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,`?index&`):`?index`),n!==`/`&&(a.pathname=a.pathname===`/`?n:Fe([n,a.pathname])),ae(a)}var Jn=`react-router-scroll-positions`,Yn={};function Xn(e,t,n,r){let i=null;return r&&(i=r(n===`/`?e:{...e,pathname:De(e.pathname,n)||e.pathname},t)),i??=e.key,i}function Zn({getKey:e,storageKey:t}={}){let{router:n}=Bn(`useScrollRestoration`),{restoreScrollPosition:r,preventScrollReset:i}=Vn(`useScrollRestoration`),{basename:a}=_.useContext(et),o=dt(),s=It(),c=Ft();_.useEffect(()=>(window.history.scrollRestoration=`manual`,()=>{window.history.scrollRestoration=`auto`}),[]),Qn(_.useCallback(()=>{if(c.state===`idle`){let t=Xn(o,s,a,e);Yn[t]=window.scrollY}try{sessionStorage.setItem(t||Jn,JSON.stringify(Yn))}catch(e){T(!1,`Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (${e}).`)}window.history.scrollRestoration=`auto`},[c.state,e,a,o,s,t])),typeof document<`u`&&(_.useLayoutEffect(()=>{try{let e=sessionStorage.getItem(t||Jn);e&&(Yn=JSON.parse(e))}catch{}},[t]),_.useLayoutEffect(()=>{let t=n?.enableScrollRestoration(Yn,()=>window.scrollY,e?(t,n)=>Xn(t,n,a,e):void 0);return()=>t&&t()},[n,a,e]),_.useLayoutEffect(()=>{if(r!==!1){if(typeof r==`number`){window.scrollTo(0,r);return}try{if(o.hash){let e=document.getElementById(decodeURIComponent(o.hash.slice(1)));if(e){e.scrollIntoView();return}}}catch{T(!1,`"${o.hash.slice(1)}" is not a decodable element ID. The view will not scroll to it.`)}i!==!0&&window.scrollTo(0,0)}},[o,r,i]))}function Qn(e,t){let{capture:n}=t||{};_.useEffect(()=>{let t=n==null?void 0:{capture:n};return window.addEventListener(`pagehide`,e,t),()=>{window.removeEventListener(`pagehide`,e,t)}},[e,n])}function $n(e,{relative:t}={}){let n=_.useContext(Ze);w(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Bn(`useViewTransitionState`),i=yt(e,{relative:t});if(!n.isTransitioning)return!1;let a=De(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=De(n.nextLocation.pathname,r)||n.nextLocation.pathname;return we(i.pathname,o)!=null||we(i.pathname,a)!=null}var er=e=>{typeof window<`u`&&(window.dataLayer=window.dataLayer||[],window.dataLayer.push(e))},tr=(e,t)=>{er({event:`virtual_pageview`,page_path:e,page_title:t||document.title})},nr=(e,t=1)=>{e&&er({event:`add_to_cart`,ecommerce:{currency:`CZK`,value:Number(e.price)*t,items:[{item_id:String(e.id),item_name:e.name,price:Number(e.price),quantity:t}]}})},rr=e=>{e&&er({event:`remove_from_cart`,ecommerce:{currency:`CZK`,value:Number(e.price)*(e.quantity||1),items:[{item_id:String(e.id),item_name:e.name,price:Number(e.price),quantity:e.quantity||1}]}})},ir=(e,t,n=[])=>{er({event:`purchase`,ecommerce:{transaction_id:e,value:Number(t),currency:`CZK`,items:n.map(e=>({item_id:String(e.id),item_name:e.name,price:Number(e.price),quantity:e.quantity}))}})},ar=e=>{er({event:`generate_lead`,lead_type:`inquiry`,service_title:e||`Obecný kontakt`})},or=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),M=o(((e,t)=>{t.exports=or()}))(),sr=(0,_.createContext)(null),cr=(e,t)=>
11{switch(t.type){case`ADD_ITEM`:{let n=e.findIndex(e=>e.id===t.item.id);if(n>=0){let r=[...e];return r[n]={...r[n],quantity:r[n].quantity+(t.quantity||1)},r}return[...e,{...t.item,quantity:t.quantity||1}]}case`REMOVE_ITEM`:return e.filter(e=>e.id!==t.id);case`UPDATE_QUANTITY`:return t.quantity<=0?e.filter(e=>e.id!==t.id):e.map(e=>e.id===t.id?{...e,quantity:t.quantity}:e);case`CLEAR_CART`:return[];default:return e}},lr=({children:e})=>{let[t,n]=(0,_.useReducer)(cr,[]),[r,i]=(0,_.useState)(!1),a=(e,t=1)=>{n({type:`ADD_ITEM`,item:e,quantity:t}),i(!0),nr(e,t)},o=e=>{let r=t.find(t=>t.id===e);r&&rr(r),n({type:`REMOVE_ITEM`,id:e})},s=(e,t)=>n({type:`UPDATE_QUANTITY`,id:e,quantity:t}),c=()=>n({type:`CLEAR_CART`}),l=t.reduce((e,t)=>e+t.quantity,0),u=t.reduce((e,t)=>e+t.price*t.quantity,0);return(0,M.jsx)(sr.Provider,{value:{items:t,addItem:a,removeItem:o,updateQuantity:s,clearCart:c,totalItems:l,totalPrice:u,isCartOpen:r,setIsCartOpen:i},children:e})},ur=()=>{let e=(0,_.useContext)(sr);if(!e)throw Error(`useCart must be used within CartProvider`);return e},dr=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),fr=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),pr=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),mr=e=>{let t=pr(e);return t.charAt(0).toUpperCase()+t.slice(1)},hr={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`},gr=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},_r=(0,_.createContext)({}),vr=()=>(0,_.useContext)(_r),yr=(0,_.forwardRef)(({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:r,className:i=``,children:a,iconNode:o,...s},c)=>{let{size:l=24,strokeWidth:u=2,absoluteStrokeWidth:d=!1,color:f=`currentColor`,className:p=``}=vr()??{},m=r??d?Number(n??u)*24/Number(t??l):n??u;return(0,_.createElement)(`svg`,{ref:c,...hr,width:t??l??hr.width,height:t??l??hr.height,stroke:e??f,strokeWidth:m,className:dr(`lucide`,p,i),...!a&&!gr(s)&&{"aria-hidden":`true`},...s},[...o.map(([e,t])=>(0,_.createElement)(e,t)),...Array.isArray(a)?a:[a]])}),N=(e,t)=>{let n=(0,_.forwardRef)(({className:n,...r},i)=>(0,_.createElement)(yr,{ref:i,iconNode:t,className:dr(`lucide-${fr(mr(e))}`,`lucide-${e}`,n),...r}));return n.displayName=mr(e),n},br=N(`arrow-left`,[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]),xr=N(`arrow-right`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]),Sr=N(`award`,[[`path`,{d:`m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526`,key:`1yiouv`}],[`circle`,{cx:`12`,cy:`8`,r:`6`,key:`1vp47v`}]]),Cr=N(`badge-check`,[[`path`,{d:`M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z`,key:`3c2336`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),wr=N(`briefcase`,[[`path`,{d:`M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16`,key:`jecpp`}],[`rect`,{width:`20`,height:`14`,x:`2`,y:`6`,rx:`2`,key:`i6l2r4`}]]),Tr=N(`building-2`,[[`path`,{d:`M10 12h4`,key:`a56b0p`}],[`path`,{d:`M10 8h4`,key:`1sr2af`}],[`path`,{d:`M14 21v-3a2 2 0 0 0-4 0v3`,key:`1rgiei`}],[`path`,{d:`M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2`,key:`secmi2`}],[`path`,{d:`M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16`,key:`16ra0t`}]]),Er=N(`building`,[[`path`,{d:`M12 10h.01`,key:`1nrarc`}],[`path`,{d:`M12 14h.01`,key:`1etili`}],[`path`,{d:`M12 6h.01`,key:`1vi96p`}],[`path`,{d:`M16 10h.01`,key:`1m94wz`}],[`path`,{d:`M16 14h.01`,key:`1gbofw`}],[`path`,{d:`M16 6h.01`,key:`1x0f13`}],[`path`,{d:`M8 10h.01`,key:`19clt8`}],[`path`,{d:`M8 14h.01`,key:`6423bh`}],[`path`,{d:`M8 6h.01`,key:`1dz90k`}],[`path`,{d:`M9 22v-3a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v3`,key:`cabbwy`}],[`rect`,{x:`4`,y:`2`,width:`16`,height:`20`,rx:`2`,key:`1uxh74`}]]),Dr=N(`calendar-days`,[[`path`,{d:`M8 2v4`,key:`1cmpym`}],[`path`,{d:`M16 2v4`,key:`4m81vk`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`4`,rx:`2`,key:`1hopcy`}],[`path`,{d:`M3 10h18`,key:`8toen8`}],[`path`,{d:`M8 14h.01`,key:`6423bh`}],[`path`,{d:`M12 14h.01`,key:`1etili`}],[`path`,{d:`M16 14h.01`,key:`1gbofw`}],[`path`,{d:`M8 18h.01`,key:`lrp35t`}],[`path`,{d:`M12 18h.01`,key:`mhygvu`}],[`path`,{d:`M16 18h.01`,key:`kzsmim`}]]),Or=N(`calendar`,[[`path`,{d:`M8 2v4`,key:`1cmpym`}],[`path`,{d:`M16 2v4`,key:`4m81vk`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`4`,rx:`2`,key:`1hopcy`}],[`path`,{d:`M3 10h18`,key:`8toen8`}]]),kr=N(`car`,[[`path`,{d:`M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2`,key:`5owen`}],[`circle`,{cx:`7`,cy:`17`,r:`2`,key:`u2ysq9`}],[`path`,{d:`M9 17h6`,key:`r8uit2`}],[`circle`,{cx:`17`,cy:`17`,r:`2`,key:`axvx0g`}
11]]),Ar=N(`check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]),jr=N(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]),Mr=N(`chevron-left`,[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]),Nr=N(`chevron-right`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]),Pr=N(`circle-alert`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]]),P=N(`circle-check`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),Fr=N(`circle-check-big`,[[`path`,{d:`M21.801 10A10 10 0 1 1 17 3.335`,key:`yps3ct`}],[`path`,{d:`m9 11 3 3L22 4`,key:`1pflzl`}]]),Ir=N(`circle-question-mark`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3`,key:`1u773s`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]),Lr=N(`clock`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}]]),Rr=N(`coins`,[[`path`,{d:`M13.744 17.736a6 6 0 1 1-7.48-7.48`,key:`bq4yh3`}],[`path`,{d:`M15 6h1v4`,key:`11y1tn`}],[`path`,{d:`m6.134 14.768.866-.5 2 3.464`,key:`17snzx`}],[`circle`,{cx:`16`,cy:`8`,r:`6`,key:`14bfc9`}]]),zr=N(`cookie`,[[`path`,{d:`M12 2a10 10 0 1 0 10 10 4 4 0 0 1-5-5 4 4 0 0 1-5-5`,key:`laymnq`}],[`path`,{d:`M8.5 8.5v.01`,key:`ue8clq`}],[`path`,{d:`M16 15.5v.01`,key:`14dtrp`}],[`path`,{d:`M12 12v.01`,key:`u5ubse`}],[`path`,{d:`M11 17v.01`,key:`1hyl5a`}],[`path`,{d:`M7 14v.01`,key:`uct60s`}]]),Br=N(`credit-card`,[[`rect`,{width:`20`,height:`14`,x:`2`,y:`5`,rx:`2`,key:`ynyp8z`}],[`line`,{x1:`2`,x2:`22`,y1:`10`,y2:`10`,key:`1b3vmo`}]]),Vr=N(`droplets`,[[`path`,{d:`M7 16.3c2.2 0 4-1.83 4-4.05 0-1.16-.57-2.26-1.71-3.19S7.29 6.75 7 5.3c-.29 1.45-1.14 2.84-2.29 3.76S3 11.1 3 12.25c0 2.22 1.8 4.05 4 4.05z`,key:`1ptgy4`}],[`path`,{d:`M12.56 6.6A10.97 10.97 0 0 0 14 3.02c.5 2.5 2 4.9 4 6.5s3 3.5 3 5.5a6.98 6.98 0 0 1-11.91 4.97`,key:`1sl1rz`}]]),Hr=N(`external-link`,[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]),Ur=N(`file-check`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`m9 15 2 2 4-4`,key:`1grp1n`}]]),Wr=N(`file-text`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]]),Gr=N(`flower-2`,[[`path`,{d:`M12 5a3 3 0 1 1 3 3m-3-3a3 3 0 1 0-3 3m3-3v1M9 8a3 3 0 1 0 3 3M9 8h1m5 0a3 3 0 1 1-3 3m3-3h-1m-2 3v-1`,key:`3pnvol`}],[`circle`,{cx:`12`,cy:`8`,r:`2`,key:`1822b1`}],[`path`,{d:`M12 10v12`,key:`6ubwww`}],[`path`,{d:`M12 22c4.2 0 7-1.667 7-5-4.2 0-7 1.667-7 5Z`,key:`9hd38g`}],[`path`,{d:`M12 22c-4.2 0-7-1.667-7-5 4.2 0 7 1.667 7 5Z`,key:`ufn41s`}]]),Kr=N(`footprints`,[[`path`,{d:`M4 16v-2.38C4 11.5 2.97 10.5 3 8c.03-2.72 1.49-6 4.5-6C9.37 2 10 3.8 10 5.5c0 3.11-2 5.66-2 8.68V16a2 2 0 1 1-4 0Z`,key:`1dudjm`}],[`path`,{d:`M20 20v-2.38c0-2.12 1.03-3.12 1-5.62-.03-2.72-1.49-6-4.5-6C14.63 6 14 7.8 14 9.5c0 3.11 2 5.66 2 8.68V20a2 2 0 1 0 4 0Z`,key:`l2t8xc`}],[`path`,{d:`M16 17h4`,key:`1dejxt`}],[`path`,{d:`M4 13h4`,key:`1bwh8b`}]]),qr=N(`gift`,[[`path`,{d:`M12 7v14`,key:`1akyts`}],[`path`,{d:`M20 11v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-8`,key:`1sqzm4`}],[`path`,{d:`M7.5 7a1 1 0 0 1 0-5A4.8 8 0 0 1 12 7a4.8 8 0 0 1 4.5-5 1 1 0 0 1 0 5`,key:`kc0143`}],[`rect`,{x:`3`,y:`7`,width:`18`,height:`4`,rx:`1`,key:`1hberx`}]]),Jr=N(`globe`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20`,key:`13o1zl`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}]]),Yr=N(`graduation-cap`,[[`path`,{d:`M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z`,key:`j76jl0`}],[`path`,{d:`M22 10v6`,key:`1lu8f3`}],[`path`,{d:`M6 12.5V16a6 3 0 0 0 12 0v-3.5`,key:`1r8lef`}]]),Xr=N(`heart-handshake`,[[`path`,{d:`M19.414 14.414C21 12.828 22 11.5 22 9.5a5.5 5.5 0 0 0-9.591-3.676.6.6 0 0 1-.818.001A5.5 5.5 0 0 0 2 9.5c0 2.3 1.5 4 3 5.5l5.535 5.362a2 2 0 0 0 2.879.052 2.12 2.12 0 0 0-.004-3 2.124 2.124 0 1 0 3-3 2.124 2.124 0 0 0 3.004 0 2 2 
110 0 0 0-2.828l-1.881-1.882a2.41 2.41 0 0 0-3.409 0l-1.71 1.71a2 2 0 0 1-2.828 0 2 2 0 0 1 0-2.828l2.823-2.762`,key:`17lmqv`}]]),Zr=N(`heart`,[[`path`,{d:`M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5`,key:`mvr1a0`}]]),Qr=N(`house`,[[`path`,{d:`M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8`,key:`5wwlr5`}],[`path`,{d:`M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z`,key:`r6nss1`}]]),$r=N(`info`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]),ei=N(`landmark`,[[`path`,{d:`M10 18v-7`,key:`wt116b`}],[`path`,{d:`M11.12 2.198a2 2 0 0 1 1.76.006l7.866 3.847c.476.233.31.949-.22.949H3.474c-.53 0-.695-.716-.22-.949z`,key:`1m329m`}],[`path`,{d:`M14 18v-7`,key:`vav6t3`}],[`path`,{d:`M18 18v-7`,key:`aexdmj`}],[`path`,{d:`M3 22h18`,key:`8prr45`}],[`path`,{d:`M6 18v-7`,key:`1ivflk`}]]),ti=N(`leaf`,[[`path`,{d:`M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10Z`,key:`nnexq3`}],[`path`,{d:`M2 21c0-3 1.85-5.36 5.08-6C9.5 14.52 12 13 13 12`,key:`mt58a7`}]]),ni=N(`log-in`,[[`path`,{d:`m10 17 5-5-5-5`,key:`1bsop3`}],[`path`,{d:`M15 12H3`,key:`6jk70r`}],[`path`,{d:`M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4`,key:`u53s6r`}]]),ri=N(`log-out`,[[`path`,{d:`m16 17 5-5-5-5`,key:`1bji2h`}],[`path`,{d:`M21 12H9`,key:`dn1m92`}],[`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`,key:`1uf3rs`}]]),ii=N(`mail`,[[`path`,{d:`m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7`,key:`132q7q`}],[`rect`,{x:`2`,y:`4`,width:`20`,height:`16`,rx:`2`,key:`izxlao`}]]),ai=N(`map-pin`,[[`path`,{d:`M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0`,key:`1r0f0z`}],[`circle`,{cx:`12`,cy:`10`,r:`3`,key:`ilqhr7`}]]),oi=N(`menu`,[[`path`,{d:`M4 5h16`,key:`1tepv9`}],[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 19h16`,key:`1djgab`}]]),si=N(`minus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}]]),ci=N(`panels-top-left`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M3 9h18`,key:`1pudct`}],[`path`,{d:`M9 21V9`,key:`1oto5p`}]]),li=N(`pen-tool`,[[`path`,{d:`M15.707 21.293a1 1 0 0 1-1.414 0l-1.586-1.586a1 1 0 0 1 0-1.414l5.586-5.586a1 1 0 0 1 1.414 0l1.586 1.586a1 1 0 0 1 0 1.414z`,key:`nt11vn`}],[`path`,{d:`m18 13-1.375-6.874a1 1 0 0 0-.746-.776L3.235 2.028a1 1 0 0 0-1.207 1.207L5.35 15.879a1 1 0 0 0 .776.746L13 18`,key:`15qc1e`}],[`path`,{d:`m2.3 2.3 7.286 7.286`,key:`1wuzzi`}],[`circle`,{cx:`11`,cy:`11`,r:`2`,key:`xmgehs`}]]),ui=N(`pen`,[[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}]]),di=N(`percent`,[[`line`,{x1:`19`,x2:`5`,y1:`5`,y2:`19`,key:`1x9vlm`}],[`circle`,{cx:`6.5`,cy:`6.5`,r:`2.5`,key:`4mh3h7`}],[`circle`,{cx:`17.5`,cy:`17.5`,r:`2.5`,key:`1mdrzq`}]]),fi=N(`phone-call`,[[`path`,{d:`M13 2a9 9 0 0 1 9 9`,key:`1itnx2`}],[`path`,{d:`M13 6a5 5 0 0 1 5 5`,key:`11nki7`}],[`path`,{d:`M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384`,key:`9njp5v`}]]),pi=N(`phone`,[[`path`,{d:`M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384`,key:`9njp5v`}]]),mi=N(`plus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]),hi=N(`refresh-cw`,[[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`,key:`v9h5vc`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`,key:`3uifl3`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}]]),gi=N(`scissors`,[[`circle`,{cx:`6`,cy:`6`,r:`3`,key:`1lh9wr`}],[`path`,{d:`M8.12 8.12 12 12`,key:`1alkpv`}],[`path`,{d:`M20 4 8.12 15.88`,key:`xgtan2`}],[`circle`,{cx:`6`,cy:`18`,r:`3`,key:`fqmcym`}],[`path`,{d:`M14.8 14.8 20 20`,key:`ptml3r`}]]),_i=N(`search`,[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]),vi=N(`send`,[[`path`,{d:`M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z`,key:`1ffxy3`}],[`path`,{d:`m21.854 2.147-10.94 10.939`,key:`12cjpa`}]]),yi=N(`settings`,[[`path`,{d:`M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915`,key:`1i5ecw`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),bi=N(`share-2`,[[`circle`,{cx:`18`,cy:`5`,r:`3`,key:`gq8acd`}],[`circle`,{cx:`6`,cy:`12`,r:`3`,key:`w7nqdw`}],[`circle`,{cx:`18`,cy:`19`,r:`3`,key:`1xt0gg`}],[`line`,{x1:`8.59`,x2:`15.42`,y1:`13.51`,y2:`17.49`,key:`47mynk`}],[`line`,{x1:`15.41`,x2:`8.59`,y1:`6.51`,y2:`10.49`,key:`1n3mei`}]]),xi=N(`shield-check`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),Si=N(`shirt`,[[`path`,{d:`M20.38 3.46 16 2a4 4 0 0 1-8 0L3.62 3.46a2 2 0 0 0-1.34 2.23l.58 3.47a1 1 0 0 0 .99.84H6v10c0 1.1.9 2 2 2h8a2 2 0 0 0 2-2V10h2.15a1 1 0 0 0 .99-.84l.58-3.47a2 2 0 0 0-1.34-2.23z`,key:`1wgbhj`}
11]]),Ci=N(`shopping-bag`,[[`path`,{d:`M16 10a4 4 0 0 1-8 0`,key:`1ltviw`}],[`path`,{d:`M3.103 6.034h17.794`,key:`awc11p`}],[`path`,{d:`M3.4 5.467a2 2 0 0 0-.4 1.2V20a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6.667a2 2 0 0 0-.4-1.2l-2-2.667A2 2 0 0 0 17 2H7a2 2 0 0 0-1.6.8z`,key:`o988cm`}]]),wi=N(`shopping-cart`,[[`circle`,{cx:`8`,cy:`21`,r:`1`,key:`jimo8o`}],[`circle`,{cx:`19`,cy:`21`,r:`1`,key:`13723u`}],[`path`,{d:`M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12`,key:`9zh506`}]]),Ti=N(`smile`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M8 14s1.5 2 4 2 4-2 4-2`,key:`1y1vjs`}],[`line`,{x1:`9`,x2:`9.01`,y1:`9`,y2:`9`,key:`yxxnd0`}],[`line`,{x1:`15`,x2:`15.01`,y1:`9`,y2:`9`,key:`1p4y9e`}]]),Ei=N(`sparkles`,[[`path`,{d:`M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z`,key:`1s2grr`}],[`path`,{d:`M20 2v4`,key:`1rf3ol`}],[`path`,{d:`M22 4h-4`,key:`gwowj6`}],[`circle`,{cx:`4`,cy:`20`,r:`2`,key:`6kqj1y`}]]),Di=N(`star`,[[`path`,{d:`M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z`,key:`r04s7s`}]]),Oi=N(`stethoscope`,[[`path`,{d:`M11 2v2`,key:`1539x4`}],[`path`,{d:`M5 2v2`,key:`1yf1q8`}],[`path`,{d:`M5 3H4a2 2 0 0 0-2 2v4a6 6 0 0 0 12 0V5a2 2 0 0 0-2-2h-1`,key:`rb5t3r`}],[`path`,{d:`M8 15a6 6 0 0 0 12 0v-3`,key:`x18d4x`}],[`circle`,{cx:`20`,cy:`10`,r:`2`,key:`ts1r5v`}]]),ki=N(`target`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`circle`,{cx:`12`,cy:`12`,r:`6`,key:`1vlfrh`}],[`circle`,{cx:`12`,cy:`12`,r:`2`,key:`1c9p78`}]]),Ai=N(`thermometer-snowflake`,[[`path`,{d:`m10 20-1.25-2.5L6 18`,key:`18frcb`}],[`path`,{d:`M10 4 8.75 6.5 6 6`,key:`7mghy3`}],[`path`,{d:`M10.585 15H10`,key:`4nqulp`}],[`path`,{d:`M2 12h6.5L10 9`,key:`kv9z4n`}],[`path`,{d:`M20 14.54a4 4 0 1 1-4 0V4a2 2 0 0 1 4 0z`,key:`yu0u2z`}],[`path`,{d:`m4 10 1.5 2L4 14`,key:`k9enpj`}],[`path`,{d:`m7 21 3-6-1.5-3`,key:`j8hb9u`}],[`path`,{d:`m7 3 3 6h2`,key:`1bbqgq`}]]),ji=N(`trash-2`,[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]]),Mi=N(`truck`,[[`path`,{d:`M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2`,key:`wrbu53`}],[`path`,{d:`M15 18H9`,key:`1lyqi6`}],[`path`,{d:`M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14`,key:`lysw3i`}],[`circle`,{cx:`17`,cy:`18`,r:`2`,key:`332jqn`}],[`circle`,{cx:`7`,cy:`18`,r:`2`,key:`19iecd`}]]),Ni=N(`users`,[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`path`,{d:`M16 3.128a4 4 0 0 1 0 7.744`,key:`16gr8j`}],[`path`,{d:`M22 21v-2a4 4 0 0 0-3-3.87`,key:`kshegd`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}]]),Pi=N(`utensils`,[[`path`,{d:`M3 2v7c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2V2`,key:`cjf0a3`}],[`path`,{d:`M7 2v20`,key:`1473qp`}],[`path`,{d:`M21 15V2a5 5 0 0 0-5 5v6c0 1.1.9 2 2 2h3Zm0 0v7`,key:`j28e5`}]]),Fi=N(`wallet`,[[`path`,{d:`M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1`,key:`18etb6`}],[`path`,{d:`M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4`,key:`xoc0q4`}]]),Ii=N(`waves-horizontal`,[[`path`,{d:`M2 12q2.5 2 5 0t5 0 5 0 5 0`,key:`8ddzzs`}],[`path`,{d:`M2 19q2.5 2 5 0t5 0 5 0 5 0`,key:`1wj4st`}],[`path`,{d:`M2 5q2.5 2 5 0t5 0 5 0 5 0`,key:`69x50u`}]]),Li=N(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),Ri=N(`zap`,[[`path`,{d:`M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z`,key:`1xq2db`}]]),F=()=>{let[e,t]=(0,_.useState)(!1),[n,r]=(0,_.useState)(!1),i=dt(),{totalItems:a,setIsCartOpen:o}=ur();(0,_.useEffect)(()=>{let e=()=>r(window.scrollY>50);return window.addEventListener(`scroll`,e),()=>window.removeEventListener(`scroll`,e)},[]),(0,_.useEffect)(()=>{t(!1)},[i]);let s=[{name:`O nás`,path:`/`},{name:`Prádelna`,path:`/sluzby`,dropdown:[{name:`Praní, žehlení a mandlování`,path:`/pradelna`},{name:`Čistírna`,path:`/cistirna`},{name:`Mokré čištění W`,path:`/mokre-cisteni`},{name:`Opravy oděvů`,path:`/opravy-odevu`},{name:`Pro firmy`,path:`/pro-firmy`},{name:`Hromadný svoz pro zaměstnance`,path:`/hromadny-svoz`}]},{name:`Senioři`,path:`/pro-seniory`,dropdown:[{name:`Rozvoz obědů`,path:`/pro-seniory/obedy`},{name:`Přibližování (Senior taxi)`,path:`/pro-seniory/taxi`},{name:`Praní prádla`,path:`/pro-seniory/prani`},{name:`Úklidy`,path:`/pro-seniory/uklid`}]},{name:`Ceník`,path:`/cenik`,dropdown:[{name:`Praní, žehlení a mandlování`,path:`/cenik#pradelna`},{name:`Čistírna a Mokré čištění W`,path:`/cenik#cistirna`},{name:`Opravy oděvů`,path:`/cenik#opravy`},{name:`Služby pro firmy`,path:`/cenik#firmy`},{name:`Služby pro seniory`,path:`/cenik#seniori`}]},{name:`Novinky`,path:`/novinky`},{name:`Kontakt`,path:`/kontakt`}];return(0,M.jsxs)(`header`,{className:`navbar ${n?`scrolled`:``}`,children:[(0,M.jsxs)(`div`,{className:`container navbar-container`,children:[(0,M.jsx)(j,{to:`/`,className:`navbar-logo`,children:(0,M.jsx)(`img`,{src:n?`/logo-white.png`:`/logo-green.png`,alt:`Zelený ostrov`,className:`navbar-logo-img`})}),(0,M.jsxs)(`nav`,{className:`desktop-nav`,children:[(0,M.jsx)(`ul`,{className:`nav-list`,children:s.map(e=>
11(0,M.jsx)(`li`,{className:e.dropdown?`has-dropdown`:``,children:e.dropdown?(0,M.jsxs)(M.Fragment,{children:[(0,M.jsxs)(j,{to:e.path,className:`nav-link ${i.pathname===e.path?`active`:``}`,children:[e.name,` `,(0,M.jsx)(jr,{size:14})]}),(0,M.jsx)(`ul`,{className:`dropdown-menu`,children:e.dropdown.map(e=>(0,M.jsx)(`li`,{children:(0,M.jsx)(j,{to:e.path,children:e.name})},e.path))})]}):(0,M.jsx)(j,{to:e.path,className:`nav-link ${i.pathname===e.path?`active`:``}`,children:e.name})},e.path))}),(0,M.jsxs)(`div`,{className:`nav-actions`,children:[(0,M.jsxs)(`button`,{className:`cart-nav-btn`,onClick:()=>o(!0),"aria-label":`Otevřít košík`,children:[(0,M.jsx)(wi,{size:20}),a>0&&(0,M.jsx)(`span`,{className:`cart-nav-badge`,children:a})]}),(0,M.jsx)(j,{to:`/objednat`,className:`btn btn-primary nav-order-btn`,children:`Objednat online`}),(0,M.jsxs)(`a`,{href:`tel:+420601571790`,className:`btn btn-outline nav-phone-btn`,children:[(0,M.jsx)(pi,{size:16}),`601 571 790`]})]})]}),(0,M.jsxs)(`div`,{className:`mobile-right`,children:[(0,M.jsxs)(`button`,{className:`cart-nav-btn`,onClick:()=>o(!0),"aria-label":`Otevřít košík`,children:[(0,M.jsx)(wi,{size:20}),a>0&&(0,M.jsx)(`span`,{className:`cart-nav-badge`,children:a})]}),(0,M.jsx)(`button`,{className:`mobile-toggle`,onClick:()=>t(!e),"aria-label":`Toggle menu`,children:e?(0,M.jsx)(Li,{size:28}):(0,M.jsx)(oi,{size:28})})]})]}),(0,M.jsx)(`div`,{className:`mobile-nav ${e?`open`:``}`,children:(0,M.jsxs)(`ul`,{className:`mobile-nav-list`,children:[s.map(e=>(0,M.jsxs)(_.Fragment,{children:[(0,M.jsx)(`li`,{children:(0,M.jsx)(j,{to:e.path,className:`mobile-nav-link ${i.pathname===e.path?`active`:``}`,children:e.name})},e.path),e.dropdown&&e.dropdown.map(e=>(0,M.jsx)(`li`,{className:`mobile-sub-link`,children:(0,M.jsx)(j,{to:e.path,children:e.name})},e.path))]},e.path)),(0,M.jsx)(`li`,{className:`mobile-nav-divider`}),(0,M.jsx)(`li`,{children:(0,M.jsx)(j,{to:`/objednat`,className:`btn btn-primary mobile-order-btn`,children:`Objednat online`})}),(0,M.jsx)(`li`,{className:`mobile-nav-contact`,children:(0,M.jsxs)(`a`,{href:`tel:+420601571790`,className:`btn btn-outline`,children:[(0,M.jsx)(pi,{size:18}),`601 571 790`]})})]})})]})},zi=()=>(0,M.jsxs)(`footer`,{className:`footer`,children:[(0,M.jsxs)(`div`,{className:`container footer-container`,children:[(0,M.jsxs)(`div`,{className:`footer-col`,children:[(0,M.jsx)(j,{to:`/`,className:`footer-logo`,children:(0,M.jsx)(`img`,{src:`/logo-white.png`,alt:`Zelený ostrov`,style:{height:`40px`,objectFit:`contain`}})}),(0,M.jsx)(`p`,{className:`footer-desc`,children:`Sociální podnik. Poskytujeme profesionální prádelenské služby a dáváme práci lidem se zdravotním znevýhodněním.`}),(0,M.jsxs)(`div`,{className:`footer-company-info`,children:[(0,M.jsx)(`strong`,{children:`ZELENÝ OSTROV s.r.o.`}),(0,M.jsx)(`br`,{}),`IČO: 27445747 | DIČ: CZ27445747`,(0,M.jsx)(`br`,{}),`Spisová značka: C 113258 vedená u Městského soudu v Praze`]})]}),(0,M.jsxs)(`div`,{className:`footer-col`,children:[(0,M.jsx)(`h3`,{children:`Rychlé odkazy`}),(0,M.jsxs)(`ul`,{className:`footer-links`,children:[(0,M.jsx)(`li`,{children:(0,M.jsx)(j,{to:`/`,children:`O nás`})}),(0,M.jsx)(`li`,{children:(0,M.jsx)(j,{to:`/socialni-principy`,children:`Sociální principy`})}),(0,M.jsx)(`li`,{children:(0,M.jsx)(j,{to:`/partneri`,children:`Partneři a dárci`})}),(0,M.jsx)(`li`,{children:(0,M.jsx)(j,{to:`/obchodni-podminky`,children:`Obchodní podmínky`})}),(0,M.jsx)(`li`,{children:(0,M.jsx)(j,{to:`/podminky-ochrany-osobnich-udaju`,children:`Ochrana osobních údajů`})})]})]}),(0,M.jsxs)(`div`,{className:`footer-col`,children:[(0,M.jsx)(`h3`,{children:`Kontakt`}),(0,M.jsxs)(`ul`,{className:`footer-contact`,children:[(0,M.jsxs)(`li`,{children:[(0,M.jsx)(pi,{size:18}),(0,M.jsx)(`a`,{href:`tel:+420601571790`,children:`+420 601 571 790`})]}),(0,M.jsxs)(`li`,{children:[(0,M.jsx)(ii,{size:18}),(0,M.jsx)(`a`,{href:`mailto:[email protected]`,children:`[email protected]`})]}),(0,M.jsxs)(`li`,{children:[(0,M.jsx)(`svg`,{width:`18`,height:`18`,viewBox:`0 0 24 24`,fill:`none`,stroke:`var(--primary)`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`lucide lucide-facebook`,children:(0,M.jsx)(`path`,{d:`M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z`})}),(0,M.jsx)(`a`,{href:`https://www.facebook.com/zelenyostrov/`,target:`_blank`,rel:`noopener noreferrer`,children:`/zelenyostrov`})]}),(0,M.jsxs)(`li`,{children:[(0,M.jsxs)(`svg`,{width:`18`,height:`18`,viewBox:`0 0 24 24`,fill:`none`,stroke:`var(--primary)`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`lucide lucide-instagram`,children:[(0,M.jsx)(`rect`,{x:`2`,y:`2`,width:`20`,he
11ight:`20`,rx:`5`,ry:`5`}),(0,M.jsx)(`path`,{d:`M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z`}),(0,M.jsx)(`line`,{x1:`17.5`,y1:`6.5`,x2:`17.51`,y2:`6.5`})]}),(0,M.jsx)(`a`,{href:`https://www.instagram.com/zelenyostrov/`,target:`_blank`,rel:`noopener noreferrer`,children:`/zelenyostrov`})]})]})]}),(0,M.jsxs)(`div`,{className:`footer-col`,children:[(0,M.jsx)(`h3`,{children:`Provozovny`}),(0,M.jsxs)(`ul`,{className:`footer-contact`,children:[(0,M.jsxs)(`li`,{children:[(0,M.jsx)(ai,{size:18,className:`icon-top`}),(0,M.jsxs)(`div`,{children:[(0,M.jsx)(`strong`,{children:`Dobřichovice`}),(0,M.jsx)(`br`,{}),`Anežky České 1119`,(0,M.jsx)(`br`,{}),`Po-Pá: 8:00 - 13:00`,(0,M.jsx)(`br`,{}),`So: 9:00 - 12:00`]})]}),(0,M.jsxs)(`li`,{children:[(0,M.jsx)(ai,{size:18,className:`icon-top`}),(0,M.jsxs)(`div`,{children:[(0,M.jsx)(`strong`,{children:`Praha - Zbraslav`}),(0,M.jsx)(`br`,{}),`U Malé řeky 626`,(0,M.jsx)(`br`,{}),`Po-Čt: 8:00 - 16:00`,(0,M.jsx)(`br`,{}),`Pá: 8:00 - 14:00`]})]})]})]})]}),(0,M.jsx)(`div`,{className:`footer-bottom`,children:(0,M.jsx)(`div`,{className:`container`,children:(0,M.jsxs)(`p`,{children:[`© `,new Date().getFullYear(),` Zelený ostrov s.r.o. Všechna práva vyhrazena.`]})})})]}),Bi=()=>{let{items:e,removeItem:t,updateQuantity:n,totalPrice:r,totalItems:i,isCartOpen:a,setIsCartOpen:o}=ur();return(0,M.jsxs)(M.Fragment,{children:[a&&(0,M.jsx)(`div`,{className:`cart-overlay`,onClick:()=>o(!1)}),(0,M.jsxs)(`aside`,{className:`cart-drawer ${a?`open`:``}`,children:[(0,M.jsxs)(`div`,{className:`cart-header`,children:[(0,M.jsxs)(`h2`,{children:[(0,M.jsx)(wi,{size:22}),`Košík`,i>0&&(0,M.jsx)(`span`,{className:`cart-count-badge`,children:i})]}),(0,M.jsx)(`button`,{className:`cart-close`,onClick:()=>o(!1),children:(0,M.jsx)(Li,{size:24})})]}),e.length===0?(0,M.jsxs)(`div`,{className:`cart-empty`,children:[(0,M.jsx)(wi,{size:64,className:`cart-empty-icon`}),(0,M.jsx)(`p`,{children:`Váš košík je prázdný`}),(0,M.jsx)(`button`,{className:`btn btn-primary`,onClick:()=>o(!1),children:`Přejít do obchodu`})]}):(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(`ul`,{className:`cart-items`,children:e.map(e=>(0,M.jsxs)(`li`,{className:`cart-item`,children:[(0,M.jsx)(`div`,{className:`cart-item-icon`,children:e.icon}),(0,M.jsxs)(`div`,{className:`cart-item-info`,children:[(0,M.jsx)(`p`,{className:`cart-item-name`,children:e.name}),(0,M.jsx)(`p`,{className:`cart-item-unit`,children:e.unitLabel}),(0,M.jsxs)(`p`,{className:`cart-item-price`,children:[(e.price*e.quantity).toLocaleString(`cs-CZ`),` Kč`]})]}),(0,M.jsxs)(`div`,{className:`cart-item-controls`,children:[(0,M.jsxs)(`div`,{className:`quantity-controls`,children:[(0,M.jsx)(`button`,{className:`qty-btn`,onClick:()=>n(e.id,e.quantity-1),"aria-label":`Snížit počet`,children:(0,M.jsx)(si,{size:14})}),(0,M.jsx)(`span`,{className:`qty-value`,children:e.quantity}),(0,M.jsx)(`button`,{className:`qty-btn`,onClick:()=>n(e.id,e.quantity+1),"aria-label":`Zvýšit počet`,children:(0,M.jsx)(mi,{size:14})})]}),(0,M.jsx)(`button`,{className:`remove-btn`,onClick:()=>t(e.id),"aria-label":`Odebrat položku`,children:(0,M.jsx)(ji,{size:16})})]})]},e.id))}),(0,M.jsxs)(`div`,{className:`cart-footer`,children:[(0,M.jsxs)(`div`,{className:`cart-total-row`,children:[(0,M.jsx)(`span`,{children:`Celkem (bez DPH)`}),(0,M.jsxs)(`strong`,{children:[r.toLocaleString(`cs-CZ`),` Kč`]})]}),(0,M.jsx)(`p`,{className:`cart-note`,children:`* Finální cenu potvrdíme po přijetí objednávky.`}),(0,M.jsxs)(j,{to:`/objednavka`,className:`btn btn-primary cart-checkout-btn`,onClick:()=>o(!1),children:[`Závazně objednat `,(0,M.jsx)(xr,{size:18})]})]})]})]})]})},Vi=()=>{let[e,t]=(0,_.useState)(!1),[n,r]=(0,_.useState)(!1),[i,a]=(0,_.useState)({analytics:!0,marketing:!0});(0,_.useEffect)(()=>{if(!localStorage.getItem(`cookie-consent`)){let e=setTimeout(()=>t(!0),1500);return()=>clearTimeout(e)}},[]);let o=()=>{localStorage.setItem(`cookie-consent`,`all`),l({analytics:`granted`,marketing:`granted`}),t(!1)},s=()=>{localStorage.setItem(`cookie-consent`,`necessary`),l({analytics:`denied`,marketing:`denied`}),t(!1)},c=()=>{localStorage.setItem(`cookie-consent`,JSON.stringify(i)),l({analytics:i.analytics?`granted`:`denied`,marketing:i.marketing?`granted`:`denied`}),t(!1)},l=e=>{if(window.gtag&&window.gtag(`consent`,`update`,{analytics_storage:e.anal
11ytics,ad_storage:e.marketing,ad_user_data:e.marketing,ad_personalization:e.marketing}),window.rc&&window.rc.retargetingHit){let t=e.marketing===`granted`;window.rc.retargetingHit({rtgId:1676298,consent:+!!t})}window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:`consent_updated`,consent_analytics:e.analytics===`granted`,consent_marketing:e.marketing===`granted`})};return e?(0,M.jsx)(`div`,{className:`cookie-consent ${n?`settings-open`:``}`,children:(0,M.jsxs)(`div`,{className:`cookie-consent-inner`,children:[(0,M.jsx)(`div`,{className:`cookie-icon-wrapper d-none-mobile`,children:(0,M.jsx)(zr,{size:32,className:`text-primary`})}),(0,M.jsxs)(`div`,{className:`cookie-text`,children:[(0,M.jsx)(`h4`,{children:`Soukromí a cookies`}),n?(0,M.jsxs)(`div`,{className:`cookie-settings-grid`,children:[(0,M.jsxs)(`label`,{className:`checkbox-label`,children:[(0,M.jsx)(`input`,{type:`checkbox`,checked:!0,disabled:!0}),` `,(0,M.jsx)(`span`,{children:`Nezbytné`})]}),(0,M.jsxs)(`label`,{className:`checkbox-label`,children:[(0,M.jsx)(`input`,{type:`checkbox`,checked:i.analytics,onChange:e=>a({...i,analytics:e.target.checked})}),` `,(0,M.jsx)(`span`,{children:`Analytické`})]}),(0,M.jsxs)(`label`,{className:`checkbox-label`,children:[(0,M.jsx)(`input`,{type:`checkbox`,checked:i.marketing,onChange:e=>a({...i,marketing:e.target.checked})}),` `,(0,M.jsx)(`span`,{children:`Marketingové`})]})]}):(0,M.jsxs)(`p`,{children:[`Pomozte nám vylepšovat web. Používáme cookies pro analýzu návštěvnosti a personalizaci reklam. Můžete povolit vše, nebo si upravit `,(0,M.jsx)(`button`,{className:`link-btn`,onClick:()=>
11r(!0),children:`Nastavení`}),`.`]})]}),(0,M.jsx)(`div`,{className:`cookie-actions`,children:n?(0,M.jsx)(`button`,{onClick:c,className:`btn btn-primary`,children:`Uložit výběr`}):(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(`button`,{onClick:s,className:`btn btn-outline btn-sm`,children:`Jen nezbytné`}),(0,M.jsx)(`button`,{onClick:o,className:`btn btn-primary`,children:`Přijmout vše`})]})})]})}):null},Hi=()=>{let{pathname:e}=dt();return(0,_.useEffect)(()=>{window.scrollTo(0,0),tr(e)},[e]),(0,M.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,minHeight:`100vh`},children:[(0,M.jsx)(F,{}),(0,M.jsx)(Bi,{}),(0,M.jsx)(`main`,{style:{flex:1,paddingTop:`70px`},children:(0,M.jsx)(Vt,{})}),(0,M.jsx)(Vi,{}),(0,M.jsx)(zi,{})]})},Ui=()=>(0,M.jsxs)(`div`,{className:`home-page`,children:[(0,M.jsx)(`section`,{className:`hero`,children:(0,M.jsx)(`div`,{className:`container hero-container`,children:(0,M.jsxs)(`div`,{className:`hero-content animate-fade-in`,children:[(0,M.jsx)(`h1`,{style:{lineHeight:`1.2`},children:`Služby, které pomáhají.`}),(0,M.jsx)(`p`,{className:`hero-subtitle`,children:`Zelený ostrov je sociální podnik. Nabízíme špičkovou péči o prádlo a široké spektrum služeb pro seniory. Každou objednávkou dáváte smysluplnou práci lidem se zdravotním znevýhodněním.`}),(0,M.jsxs)(`div`,{className:`hero-actions`,children:[(0,M.jsxs)(j,{to:`/sluzby`,className:`btn btn-primary`,children:[`Naše služby `,(0,M.jsx)(xr,{size:18})]}),(0,M.jsx)(j,{to:`/kontakt`,className:`btn btn-outline`,style:{borderColor:`white`,color:`white`},children:`Kontaktujte nás`})]})]})})}),(0,M.jsx)(`section`,{className:`section section-bg-soft`,children:(0,M.jsxs)(`div`,{className:`container`,children:[(0,M.jsx)(`h2`,{className:`section-title`,children:`Co pro vás můžeme udělat`}),(0,M.jsxs)(`div`,{className:`features-grid`,style:{display:`grid`,gridTemplateColumns:`repeat(auto-fit, minmax(300px, 1fr))`,gap:`2rem`},children:[(0,M.jsxs)(j,{to:`/pradelna`,className:`glass-card text-center`,style:{padding:`2rem`,textDecoration:`none`,color:`inherit`,display:`block`},children:[(0,M.jsx)(`div`,{className:`feature-icon-wrapper`,style:{margin:`0 auto 1.5rem auto`},children:(0,M.jsx)(Si,{size:32})}),(0,M.jsx)(`h3`,{children:`Praní a žehlení pro domácnosti`}),(0,M.jsx)(`p`,{children:`Postaráme se o ložní prádlo, záclony, košile i běžné oděvy. Vaše prádlo vrátíme čisté a voňavé.`})]}),(0,M.jsxs)(j,{to:`/cistirna`,className:`glass-card text-center`,style:{padding:`2rem`,textDecoration:`none`,color:`inherit`,display:`block`},children:[(0,M.jsx)(`div`,{className:`feature-icon-wrapper`,style:{margin:`0 auto 1.5rem auto`},children:(0,M.jsx)(Ei,{size:32})}),(0,M.jsx)(`h3`,{children:`Čistírna a speciální péče`}),(0,M.jsx)(`p`,{children:`Profesionální mandlování, ekologické mokré čištění, chemická čistírna a drobné opravy oděvů.`})]}),(0,M.jsxs)(j,{to:`/pro-firmy`,className:`glass-card text-center`,style:{padding:`2rem`,textDecoration:`none`,color:`inherit`,display:`block`},children:[(0,M.jsx)(`div`,{className:`feature-icon-wrapper`,style:{margin:`0 auto 1.5rem auto`},children:(0,M.jsx)(Er,{size:32})}),(0,M.jsx)(`h3`,{children:`Služby pro firmy`}),(0,M.jsx)(`p`,{children:`Zajišťujeme pravidelné praní pro hotely a restaurace s možností uplatnění náhradního plnění.`})]}),(0,M.jsxs)(j,{to:`/pro-seniory/taxi`,className:`glass-card text-center`,style:{padding:`2rem`,textDecoration:`none`,color:`inherit`,display:`block`},children:[(0,M.jsx)(`div`,{className:`feature-icon-wrapper`,style:{margin:`0 auto 1.5rem auto`},children:(0,M.jsx)(kr,{size:32})}),(0,M.jsx)(`h3`,{children:`Senior Taxi a doprovod`}),(0,M.jsx)(`p`,{children:`Spolehlivý odvoz k lékaři či na úřad včetně kompletní asistence, doprovodu do čekárny a pomoci s nástupem.`})]}),(0,M.jsxs)(j,{to:`/pro-seniory/obedy`,className:`glass-card text-center`,style:{padding:`2rem`,textDecoration:`none`,color:`inherit`,display:`block`},children:[(0,M.jsx)(`div`,{className:`feature-icon-wrapper`,style:{margin:`0 auto 1.5rem auto`},children:(0,M.jsx)(Pi,{size:32})}
vendor: 1,202 bytes, line 11
11),(0,M.jsx)(`h3`,{children:`Dovoz obědů a nákupy`}),(0,M.jsx)(`p`,{children:`Pravidelný dovoz teplého jídla až domů a zajištění donášky potravin či vyzvednutí léků pro seniory.`})]}),(0,M.jsxs)(j,{to:`/pro-seniory/uklid`,className:`glass-card text-center`,style:{padding:`2rem`,textDecoration:`none`,color:`inherit`,display:`block`},children:[(0,M.jsx)(`div`,{className:`feature-icon-wrapper`,style:{margin:`0 auto 1.5rem auto`},children:(0,M.jsx)(Qr,{size:32})}),(0,M.jsx)(`h3`,{children:`Pomoc s úklidem`}),(0,M.jsx)(`p`,{children:`Pravidelný i jednorázový úklid domácnosti přizpůsobený vašim potřebám. S úctou k vašemu soukromí.`})]})]}),(0,M.jsxs)(`div`,{className:`text-center mt-5`,style:{display:`flex`,justifyContent:`center`,gap:`1rem`},children:[(0,M.jsx)(j,{to:`/sluzby`,className:`btn btn-outline`,children:`Prohlédnout prádelnu`}),(0,M.jsx)(j,{to:`/pro-seniory`,className:`btn btn-primary`,children:`Vše pro seniory`})]})]})}),(0,M.jsx)(`section`,{className:`section`,children:(0,M.jsxs)(`div`,{className:`container content-grid`,children:[(0,M.jsxs)(`div`,{className:`about-text`,children:[(0,M.jsx)(`h2`,{style:{fontSize:`2.5rem`,marginBottom:`1.5rem`}
11,children:`Naše vize a sociální přesah`}),(0,M.jsx)(`p`,{className:`lead`,style:{marginBottom:`1.5rem`},children:`Zelený ostrov je víc než jen běžná prádelna. Jako sociální podnik dáváme stabilní a smysluplnou práci lidem se zdravotním či sociálním znevýhodněním.`}),(0,M.jsxs)(`p`,{style:{marginBottom:`1rem`,fontSize:`1.1rem`,lineHeight:`1.6`},children:[`V našem sociálním podniku nyní nachází stabilní uplatnění 12 kolegů a kolegyň ze znevýhodněných skupin.`,(0,M.jsx)(`strong`,{children:` Specifickou skupinu tvoří neslyšící zaměstnankyně`}),`, pro které jsme speciálně přizpůsobili pracovní prostředí – od zrcadel nalepených tak, aby viděly do prostoru i za zády, přes světelný zvonek, až po tablet pro rychlé tlumočení.`]}),(0,M.jsx)(`p`,{style:{marginBottom:`1rem`,fontSize:`1.1rem`,lineHeight:`1.6`},children:`Zároveň od jara 2022 pomáháme a zaměstnáváme ženy uprchlé z Ukrajiny v rámci našeho projektu „Zelený ostrov pomoci“.`}),(0,M.jsxs)(`div`,{className:`info-box mt-4`,style:{background:`var(--bg-soft)`,padding:`1.5rem`,borderRadius:`12px`,borderLeft:`4px solid var(--primary)`},children:[(0,M.jsxs)(`h3`,{style:{display:`flex`,alignItems:`center`,gap:`0.5rem`,marginBottom:`0.5rem`},children:[(0,M.jsx)(xi,{size:24,className:`text-primary`}),` Zásady sociálního podniku`]}),(0,M.jsxs)(`p`,{style:{margin:0,lineHeight:`1.6`},children:[`Jako hrdý sociální podnik ve společenské smlouvě garantujeme, že pokud vykážeme zisk, použijeme více než polovinu (51 %) na další rozvoj podniku nebo pro naplňování obecně prospěšných cílů. Jsme také uznaným poskytovatelem `,(0,M.jsx)(`strong`,{children:`náhradního plnění`}),`.`]})]})]}),(0,M.jsx)(`div`,{className:`about-image`,children:(0,M.jsx)(`img`,{src:`/images/Prádelna /IMG_20260324_131210121_HDR.jpg`,alt:`Tým Zeleného ostrova`,style:{width:`100%`,borderRadius:`12px`,boxShadow:`var(--shadow-lg)`}})})]})}),(0,M.jsx)(`section`,{className:`section section-bg-soft`,children:(0,M.jsxs)(`div`,{className:`container`,children:[(0,M.jsxs)(`div`,{className:`text-center`,style:{marginBottom:`3rem`},children:[(0,M.jsx)(`h2`,{className:`section-title`,children:`Lidé, kteří za tím stojí`}),(0,M.jsx)(`p`,{className:`lead`,children:`Seznamte se s týmem, který se stará o to, abyste od nás dostávali jen ty nejlepší služby.`})]}),(0,M.jsxs)(`div`,{className:`team-grid`,style:{display:`grid`,gridTemplateColumns:`repeat(auto-fit, minmax(250px, 1fr))`,gap:`1.5rem`},children:[(0,M.jsxs)(`div`,{className:`glass-card text-center`,style:{padding:`2rem`},children:[(0,M.jsx)(`h3`,{style:{marginBottom:`0.5rem`},children:`Jan Klouček`}),(0,M.jsx)(`p`,{className:`text-muted`,style:{fontWeight:500},children:`Jednatel`})]}),(0,M.jsxs)(`div`,{className:`glass-card text-center`,style:{padding:`2rem`},children:[(0,M.jsx)(`h3`,{style:{marginBottom:`0.5rem`},children:`Michal Boudník`}),(0,M.jsx)(`p`,{className:`text-muted`,style:{fontWeight:500},children:`Manažer podniku, práce s cílovou skupinou`})]}),(0,M.jsxs)(`div`,{className:`glass-card text-center`,style:{padding:`2rem`},children:[(0,M.jsx)(`h3`,{style:{marginBottom:`0.5rem`},children:`Kateřina Tlášková`}),(0,M.jsx)(`p`,{className:`text-muted`,style:{fontWeight:500},children:`Vedoucí poboček Zbraslav a Dobřichovice`})]}),(0,M.jsxs)(`div`,{className:`glass-card text-center`,style:{padding:`2rem`},children:[(0,M.jsx)(`h3`,{style:{marginBottom:`0.5rem`},children:`Anna Kubeschová`}),(0,M.jsx)(`p`,{className:`text-muted`,style:{fontWeight:500},children:`Psychosociální podpora`})]})]}),(0,M.jsxs)(`div`,{className:`glass-card text-center mt-4`,style:{padding:`2rem`,marginTop:`2rem`,backgroundColor:`white`},children:[(0,M.jsx)(`div`,{style:{display:`flex`,justifyContent:`center`,marginBottom:`1rem`},children:(0,M.jsx)(Ni,{size:32,className:`text-primary`})}),(0,M.jsx)(`h3`,{style:{marginBottom:`1rem`},children:`A naše další skvělé pracovnice a pracovníci`}),(0,M.jsx)(`p`,{className:`text-muted`,style:{fontSize:`1.1rem`,lineHeight:`1.6`},children:`Ilona Městková, Jitka Landová, Lucie Lišková, Monika Vološinová, Iryna Halahan, Oxana Dits, Martina Šrankotová, Pavel Jirsák, Martina Svobodová, Marie Horáčková, Jarmila Málková, Eva Valvodová, Miloslava Tůmová a Marie Presslová.`})]})]})}),(0,M.jsx)(`section`,{className:`section`,children:(0,M.jsxs)(`div`,{className:`container`,children:[(0,M.jsxs)(`div`,{className:`text-center`,style:{marginBottom:`4rem`},children:[(0,M.jsx)(`h2`,{className:`section-title`,children:`N
11aplnění principů sociálního podniku Zelený ostrov`}),(0,M.jsx)(`p`,{className:`lead`,style:{maxWidth:`800px`,margin:`0 auto`},children:`Společnost se hrdě hlásí k sociálnímu podnikání a ve společenské smlouvě máme pevně zakotven náš hlavní cíl.`})]}),(0,M.jsxs)(`div`,{style:{display:`grid`,gridTemplateColumns:`repeat(auto-fit, minmax(300px, 1fr))`,gap:`2rem`},children:[(0,M.jsxs)(`div`,{className:`glass-card`,style:{padding:`2rem`,borderTop:`4px solid var(--primary)`,borderRadius:`16px`},children:[(0,M.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`1rem`,marginBottom:`1.5rem`},children:[(0,M.jsx)(`div`,{style:{backgroundColor:`var(--bg-soft)`,padding:`1rem`,borderRadius:`50%`},children:(0,M.jsx)(Ni,{size:28,style:{color:`var(--primary)`}})}),(0,M.jsx)(`h3`,{style:{margin:0,fontSize:`1.3rem`},children:`Společensky prospěšný cíl`})]}),(0,M.jsx)(`p`,{style:{color:`var(--text-light)`,lineHeight:`1.6`},children:`Zaměstnávání zdravotně znevýhodněných osob na trhu práce máme zakotveno přímo ve společenské smlouvě (dostupná na justice.cz).`})]}),(0,M.jsxs)(`div`,{className:`glass-card`,style:{padding:`2rem`,borderTop:`4px solid var(--primary)`,borderRadius:`16px`},children:[(0,M.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`1rem`,marginBottom:`1.5rem`},children:[(0,M.jsx)(`div`,{style:{backgroundColor:`var(--bg-soft)`,padding:`1rem`,borderRadius:`50%`},children:(0,M.jsx)(Zr,{size:28,style:{color:`var(--primary)`}})}),(0,M.jsx)(`h3`,{style:{margin:0,fontSize:`1.3rem`},children:`Sociální prospěch`})]}),(0,M.jsx)(`p`,{style:{color:`var(--text-light)`,lineHeight:`1.6`,marginBottom:`1rem`},children:`Zaměstnáváme více jak 50 % zdravotně znevýhodněných osob a poskytujeme jim integrační podporu.`}),(0,M.jsxs)(`ul`,{style:{color:`var(--text-light)`,lineHeight:`1.6`,paddingLeft:`1.2rem`,margin:0},children:[(0,M.jsxs)(`li`,{children:[`Úzká spolupráce s organizací `,(0,M.jsx)(`strong`,{children:`Tichý svět o.p.s.`}),` pro podporu neslyšících.`]}),(0,M.jsx)(`li`,{children:`Zaměstnanci se aktivně podílejí na optimalizaci běhu podniku.`})]})]}),(0,M.jsxs)(`div`,{className:`glass-card`,style:{padding:`2rem`,borderTop:`4px solid var(--primary)`,borderRadius:`16px`},children:[(0,M.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`1rem`,marginBottom:`1.5rem`},children:[(0,M.jsx)(`div`,{style:{backgroundColor:`var(--bg-soft)`,padding:`1rem`,borderRadius:`50%`},children:(0,M.jsx)(xi,{size:28,style:{color:`var(--primary)`}})}),(0,M.jsx)(`h3`,{style:{margin:0,fontSize:`1.3rem`},children:`Ekonomický prospěch`})]}),(0,M.jsxs)(`ul`,{style:{color:`var(--text-light)`,lineHeight:`1.6`,paddingLeft:`1.2rem`,margin:0},children:[(0,M.jsxs)(`li`,{children:[`Alespoň `,(0,M.jsx)(`strong`,{children:`51 % zisku reinvestujeme`}),` zpět do rozvoje podniku.`]}),(0,M.jsx)(`li`,{children:`Nezávislé manažerské řízení bez externího zřizovatele.`}),(0,M.jsx)(`li`,{children:`Tržby z prodeje tvoří více než 30 % výnosů.`})]})]}),(0,M.jsxs)(`div`,{className:`glass-card`,style:{padding:`2rem`,borderTop:`4px solid var(--primary)`,borderRadius:`16px`},children:[(0,M.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`1rem`,marginBottom:`1.5rem`},children:[(0,M.jsx)(`div`,{style:{backgroundColor:`var(--bg-soft)`,padding:`1rem`,borderRadius:`50%`},children:(0,M.jsxs)(`svg`,{width:`28`,height:`28`,viewBox:`0 0 24 24`,fill:`none`,stroke:`var(--primary)`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,M.jsx)(`path`,{d:`M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10Z`}),(0,M.jsx)(`path`,{d:`M2 21c0-3 1.85-5.36 5.08-6C9.5 14.52 12 13 13 12`})]})}),(0,M.jsx)(`h3`,{style:{margin:0,fontSize:`1.3rem`},children:`Environmentální prospěch`})]}),(0,M.jsxs)(`p`,{style:{color:`var(--text-light)`,lineHeight:`1.6`},children:[`Máme formulované zásady environmentálně šetrného podnikání. Zaměstnanci cíleně třídí odpad. Jako zakázku pravidelně šijeme `,(0,M.jsx)(`strong`,{children:`ekologické pytlíky`}),` na potraviny.`]})]}),(0,M.jsxs)(`div`,{className:`glass-card`,style:{padding:`2rem`,borderTop:`4px s
11olid var(--primary)`,borderRadius:`16px`},children:[(0,M.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`1rem`,marginBottom:`1.5rem`},children:[(0,M.jsx)(`div`,{style:{backgroundColor:`var(--bg-soft)`,padding:`1rem`,borderRadius:`50%`},children:(0,M.jsxs)(`svg`,{width:`28`,height:`28`,viewBox:`0 0 24 24`,fill:`none`,stroke:`var(--primary)`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,M.jsx)(`path`,{d:`M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z`}),(0,M.jsx)(`circle`,{cx:`12`,cy:`10`,r:`3`})]})}),(0,M.jsx)(`h3`,{style:{margin:0,fontSize:`1.3rem`},children:`Místní prospěch`})]}),(0,M.jsx)(`p`,{style:{color:`var(--text-light)`,lineHeight:`1.6`},children:`Orientujeme se na potřeby obyvatel and organizací v mikroregionu Dolní Berounka, Zbraslav a Praha-západ, odkud také pocházejí všichni naši zaměstnanci. Působíme i jako ukázkový podnik pro MPSV a zahraniční delegace.`})]}),(0,M.jsxs)(j,{to:`/partneri`,className:`glass-card`,style:{padding:`2rem`,borderTop:`4px solid var(--primary)`,borderRadius:`16px`,textDecoration:`none`,color:`inherit`,display:`flex`,flexDirection:`column`,transition:`var(--transition)`},children:[(0,M.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`1rem`,marginBottom:`1.5rem`},children:[(0,M.jsx)(`div`,{style:{backgroundColor:`var(--bg-soft)`,padding:`1rem`,borderRadius:`50%`},children:(0,M.jsx)(Ni,{size:28,style:{color:`var(--primary)`}})}),(0,M.jsx)(`h3`,{style:{margin:0,fontSize:`1.3rem`,color:`var(--secondary)`},children:`Partneři a dárci`})]}),(0,M.jsx)(`p`,{style:{color:`var(--text-light)`,lineHeight:`1.6`,margin:`0 0 1.5rem 0`,flexGrow:1},children:`Vážíme si podpory městských částí, nadací, firem i jednotlivých dárců, kteří nám pomáhají rozvíjet sociální podnikání a modernizovat provoz.`}),(0,M.jsxs)(`div`,{style:{display:`inline-flex`,alignItems:`center`,gap:`0.25rem`,color:`var(--primary)`,fontWeight:500},children:[`Naši partneři `,(0,M.jsx)(xr,{size:16})]})]})]})]})}),(0,M.jsx)(`style`,{children:`
12        .content-grid {
13          display: grid;
14          grid-template-columns: 1fr 1fr;
15          gap: 4rem;
16          align-items: center;
17        }
18        @media (max-width: 992px) {
19          .content-grid {
20            grid-template-columns: 1fr;
21          }
22        }
23      `})]}),Wi=()=>(0,M.jsxs)(`div`,{className:`services-page`,children:[(0,M.jsx)(`section`,{className:`bg-header`,style:{backgroundImage:`url("/images/services_header.jpg")`},children:(0,M.jsxs)(`div`,{className:`container`,children:[(0,M.jsxs)(`h1`,{className:`page-title animate-fade-in`,style:{textTransform:`none`,lineHeight:`1.2`},children:[`Vypereme, vyžehlíme,`,(0,M.jsx)(`br`,{}),`vymandlujeme`]}),(0,M.jsx)(`p`,{className:`page-subtitle animate-fade-in`,children:`Profesionální prádelna s lidským přístupem. Šetříme váš čas a starosti, zatímco poskytujeme smysluplnou práci lidem se zdravotním znevýhodněním.`}),(0,M.jsx)(j,{to:`/objednat`,className:`btn btn-primary btn-lg mt-4`,children:`Objednat praní online`})]})}),(0,M.jsx)(`section`,{className:`section`,children:(0,M.jsx)(`div`,{className:`container`,children:(0,M.jsxs)(`div`,{className:`service-feature-block`,children:[(0,M.jsxs)(`div`,{className:`feature-image animate-fade-in`,children:[(0,M.jsx)(`img`,{src:`/images/laundry_services.jpg`,alt:`Praní a mandlování`}),(0,M.jsxs)(`div`,{className:`feature-badge`,children:[(0,M.jsx)(Mi,{size:20}),` Rozvoz zajištěn`]})]}),(0,M.jsxs)(`div`,{className:`feature-content animate-fade-in`,children:[(0,M.jsx)(`span`,{className:`service-tag`,children:`Hlavní služba`}),(0,M.jsx)(`h2`,{children:`Praní, žehlení a mandlování`}),(0,M.jsx)(`p`,{children:`Pereme ložní prádlo, ubrusy, záclony, potahy i sportovní oblečení. Naší specialitou je ruční žehlení košil a precizní mandlování pro ten nejlepší výsledek.`}),(0,M.jsxs)(`ul`,{className:`feature-list`,children:[(0,M.jsxs)(`li`,{children:[(0,M.jsx)(P,{size:18}),` Šetrné praní s ohledem na materiál`]}),(0,M.jsxs)(`li`,{children:[(0,M.jsx)(P,{size:18}),` Ruční žehlení s důrazem na detail`]}),(0,M.jsxs)(`li`,{children:[(0,M.jsx)(P,{size:18}),` Možnost svozu a dovozu prádla`]}),(0,M.jsxs)(`li`,{children:[(0,M.jsx)(P,{size:18}),` Expresní termíny po dohodě`]})]}),(0,M.jsxs)(j,{to:`/pradelna`,className:`btn btn-outline mt-3`,children:[`Více o prádelně `,(0,M.jsx)(xr,{size:16})]})]})]})})}),(0,M.jsx)(`section`,{className:`section section-bg-soft`,children:(0,M.jsx)(`div`,{className:`container`,children:(0,M.jsxs)(`div`,{className:`service-feature-block reverse`,children:[(0,M.jsx)(`div`,{className:`feature-image animate-fade-in`,children:(0,M.jsx)(`img`,{src:`/images/dry_cleaning_optimized.jpg`,alt:`Chemické čištění P`})}),(0,M.jsxs)(`div`,{className:`feature-content animate-fade-in`,children:[(0,M.jsx)(`span`,{className:`service-tag`,children:`Hlavní služba`}),(0,M.jsx)(`h2`,{children:`Chemické čištění P`}),(0,M.jsx)(`p`,{children:`Tradiční a spolehlivá metoda čištění pro oděvy, které nelze prát ve vodě. Ideální pro obleky, kabáty, hedvábí a další choulostivé materiály.`}),(0,M.jsxs)(`ul`,{className:`feature-list`,children:[(0,M.jsxs)(`li`,{children:[(0,M.jsx)(P,{size:18}
23),` Perfektní odstranění mastných skvrn`]}),(0,M.jsxs)(`li`,{children:[(0,M.jsx)(P,{size:18}),` Ochrana tvaru a struktury vláken`]}),(0,M.jsxs)(`li`,{children:[(0,M.jsx)(P,{size:18}),` Ošetření kůže a kožešin`]}),(0,M.jsxs)(`li`,{children:[(0,M.jsx)(P,{size:18}),` Šetrné čištění společenských šatů`]})]}),(0,M.jsxs)(j,{to:`/cistirna`,className:`btn btn-outline mt-3`,children:[`Více o čistírně `,(0,M.jsx)(xr,{size:16})]})]})]})})}),(0,M.jsx)(`section`,{className:`section`,children:(0,M.jsx)(`div`,{className:`container`,children:(0,M.jsxs)(`div`,{className:`service-feature-block`,children:[(0,M.jsx)(`div`,{className:`feature-image animate-fade-in`,children:(0,M.jsx)(`img`,{src:`/images/sewing_optimized.jpg`,alt:`Opravy oděvů`})}),(0,M.jsxs)(`div`,{className:`feature-content animate-fade-in`,children:[(0,M.jsx)(`span`,{className:`service-tag`,children:`Doplňková služba`}),(0,M.jsx)(`h2`,{children:`Opravy oděvů a čištění peří`}),(0,M.jsx)(`p`,{children:`Vrátíme vašemu oblečení život. Provádíme drobné opravy, výměny zipů i zkracování kalhot. Zároveň zajišťujeme čištění a šití peří.`}),(0,M.jsxs)(`ul`,{className:`feature-list`,children:[(0,M.jsxs)(`li`,{children:[(0,M.jsx)(P,{size:18}),` Výměny zipů a zašívání`]}),(0,M.jsxs)(`li`,{children:[(0,M.jsx)(P,{size:18}),` Zkracování a úpravy na míru`]}),(0,M.jsxs)(`li`,{children:[(0,M.jsx)(P,{size:18}),` Profesionální čištění peří`]}),(0,M.jsxs)(`li`,{children:[(0,M.jsx)(P,{size:18}),` Renovace péřových dek`]})]}),(0,M.jsxs)(j,{to:`/opravy-odevu`,className:`btn btn-outline mt-3`,children:[`Ceník oprav a úprav `,(0,M.jsx)(xr,{size:16})]})]})]})})}),(0,M.jsx)(`section`,{className:`section section-bg-soft`,children:(0,M.jsx)(`div`,{className:`container`,children:(0,M.jsxs)(`div`,{className:`service-feature-block reverse`,children:[(0,M.jsxs)(`div`,{className:`feature-image animate-fade-in`,children:[(0,M.jsx)(`img`,{src:`/images/wet_cleaning_optimized.jpg`,alt:`Mokré čištění W`}),(0,M.jsxs)(`div`,{className:`feature-badge`,children:[(0,M.jsx)(Vr,{size:20}),` Metoda W`]})]}),(0,M.jsxs)(`div`,{className:`feature-content animate-fade-in`,children:[(0,M.jsx)(`span`,{className:`service-tag highlight-blue`,children:`Eko technologie`}),(0,M.jsx)(`h2`,{children:`Mokré čištění W`}),(0,M.jsx)(`p`,{children:`Revoluční a nejšetrnější způsob čištění oděvů. Tato metoda využívá vodu a biologicky odbouratelné prostředky, čímž chrání vlákna i životní prostředí.`}),(0,M.jsxs)(`ul`,{className:`feature-list`,children:[(0,M.jsxs)(`li`,{children:[(0,M.jsx)(P,{size:18}),` Vhodné i pro nejjemnější materiály`]}),(0,M.jsxs)(`li`,{children:[(0,M.jsx)(P,{size:18}),` Odstraňuje pachy, prádlo svěže voní`]}),(0,M.jsxs)(`li`,{children:[(0,M.jsx)(P,{size:18}),` Ideální pro alergiky a citlivou pleť`]}),(0,M.jsxs)(`li`,{children:[(0,M.jsx)(P,{size:18}),` Šetrnější než chemické čištění`]})]}),(0,M.jsxs)(j,{to:`/mokre-cisteni`,className:`btn btn-outline mt-3`,children:[`Prozkoumat metodu W `,(0,M.jsx)(xr,{size:16})]})]})]})})}),(0,M.jsx)(`section`,{className:`section`,children:(0,M.jsx)(`div`,{className:`container`,children:(0,M.jsxs)(`div`,{className:`service-feature-block`,children:[(0,M.jsxs)(`div`,{className:`feature-image animate-fade-in`,children:[(0,M.jsx)(`img`,{src:`/images/b2b_services_optimized.jpg`,alt:`Žehlení pro firmy`}),(0,M.jsxs)(`div`,{className:`feature-badge secondary`,children:[(0,M.jsx)(wr,{size:20}),` Pro firmy`]})]}),(0,M.jsxs)(`div`,{className:`feature-content animate-fade-in`,children:[(0,M.jsx)(`span`,{className:`service-tag highlight-blue`,children:`B2B Služby`}),(0,M.jsx)(`h2`,{children:`Spolehlivý partner pro váš byznys`}),(0,M.jsx)(`p`,{children:`Zajišťujeme komplexní servis pro hotely, penziony, restaurace i zdravotnická zařízení. Nabízíme individuální ceny a garantované termíny svozů.`}),(0,M.jsxs)(`div`,{className:`info-box-highlight`,children:[(0,M.jsx)(`h4`,{children:`Náhradní plnění`}),(0,M.jsx)(`p`,{children:`Ušetřete na odvodech státu. Jsme zaměstnavatelem osob se zdravotním znevýhodněním (nad 50 %), proto poskytujeme náhradní plnění.`})]}),(0,M.jsxs)(j,{to:`/pro-firmy`,className:`btn btn-primary mt-3`,children:[`Více o službách pro firmy `,(0,M.jsx)(xr,{size:16})]})]})]})})}),(0,M.jsx)(`section`,{className:`section section-bg-cream`,children:(0,M.jsx)(`div`,{className:`container`,children:(0,M.jsxs)(`div`,{className:`service-feature-block reverse`,children:[(0,M.jsxs)(`div`,{className:`feature-image animate-fade-in`,children:[(0,M.jsx)(`img`,{src:`/images/social_impact_optimized.jpg`,alt:`Tým se znevýhodněním v prádelně`}),(0,M.jsx)(`div`,{className:`floating-heart`,style:{background:`var(--primary)`},children:(0,M.jsx)(Zr,{size:24,fill:`white`})})]}),(0,M.jsxs)(`div`,{className:`feature-content animate-fade-in`,children:[(0,M.jsx)(`span`,{className:`service-tag highlight`,style:{color:`var(--primary)`,background:`var(--primary-light)`},children:`Sociální rozměr`}),(0,M.jsx)(`h2`,{children:`Smysluplná práce pro lidi se znevýhodněním`}),(0,M.jsx)(`p`,{children:`O vaše prádlo se v našem sociálním podniku stará sehraný tým lidí se zdravotním či sociálním znevýhodněním, kteří by jinak jen obtížně hledali uplatnění na klasickém trhu práce. Vaší zakázkou jim dáváte práci, která má skutečný sm
23ysl a pomáhá jim aktivně se zapojit do společnosti.`}),(0,M.jsxs)(`div`,{className:`senior-cards`,children:[(0,M.jsxs)(`div`,{className:`senior-mini-card`,style:{borderTopColor:`var(--primary)`},children:[(0,M.jsx)(`h4`,{children:`Podpora zaměstnanosti`}),(0,M.jsx)(`p`,{children:`Vytváříme bezpečná pracovní místa přizpůsobená individuálním potřebám našeho týmu.`})]}),(0,M.jsxs)(`div`,{className:`senior-mini-card`,style:{borderTopColor:`var(--primary)`},children:[(0,M.jsx)(`h4`,{children:`Rozvoj a seberealizace`}),(0,M.jsx)(`p`,{children:`Naši lidé získávají nejen stabilní práci, ale i hrdost, pocit užitečnosti a možnost rozvíjet se.`})]})]}),(0,M.jsxs)(j,{to:`/objednat`,className:`btn btn-outline mt-3`,children:[`Objednat online `,(0,M.jsx)(xr,{size:16})]})]})]})})}),(0,M.jsx)(`section`,{className:`section`,children:(0,M.jsxs)(`div`,{className:`container`,children:[(0,M.jsx)(`h2`,{className:`section-title`,children:`Proč si vybrat Zelený ostrov?`}),(0,M.jsxs)(`div`,{className:`usp-grid`,children:[(0,M.jsxs)(`div`,{className:`usp-item`,children:[(0,M.jsx)(Lr,{className:`usp-icon`}),(0,M.jsx)(`h4`,{children:`Rychlost`}),(0,M.jsx)(`p`,{children:`Vaše prádlo bude připraveno v dohodnutém termínu.`})]}),(0,M.jsxs)(`div`,{className:`usp-item`,children:[(0,M.jsx)(ai,{className:`usp-icon`}),(0,M.jsx)(`h4`,{children:`Lokalita`}),(0,M.jsx)(`p`,{children:`Působíme v regionu s možností svozu až k vám domů.`})]}),(0,M.jsxs)(`div`,{className:`usp-item`,children:[(0,M.jsx)(xi,{className:`usp-icon`}),(0,M.jsx)(`h4`,{children:`Kvalita`}),(0,M.jsx)(`p`,{children:`Důraz na šetrné praní a precizní ruční práci.`})]})]})]})})]}),Gi=()=>void 0,Ki=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},qi=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(``)},Ji={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(Ki(e),t)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):qi(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 Yi;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;r.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)}}}
23,Yi=class extends Error{constructor(){super(...arguments),this.name=`DecodeBase64StringError`}},Xi=function(e){let t=Ki(e);return Ji.encodeByteArray(t,!0)},Zi=function(e){return Xi(e).replace(/\./g,``)},Qi=function(e){try{return Ji.decodeString(e,!0)}catch(e){console.error(`base64Decode failed: `,e)}return null};function $i(){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 ea=()=>$i().__FIREBASE_DEFAULTS__,ta=()=>{if(typeof process>`u`)return;let e={}.__FIREBASE_DEFAULTS__;if(e)return JSON.parse(e)},na=()=>{if(typeof document>`u`)return;let e;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}let t=e&&Qi(e[1]);return t&&JSON.parse(t)},ra=()=>{try{return Gi()||ea()||ta()||na()}catch(e){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${e}`);return}},ia=e=>ra()?.emulatorHosts?.[e],aa=e=>{let t=ia(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]},oa=()=>ra()?.config,sa=e=>ra()?.[`_${e}`],ca=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 la(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={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[Zi(JSON.stringify(n)),Zi(JSON.stringify(o)),``].join(`.`)}function ua(){return typeof navigator<`u`&&typeof navigator.userAgent==`string`?navigator.userAgent:``}function da(){return typeof window<`u`&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(ua())}function fa(){let e=ra()?.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 pa(){return typeof navigator<`u`&&navigator.userAgent===`Cloudflare-Workers`}function ma(){let e=typeof chrome==`object`?chrome.runtime:typeof browser==`object`?browser.runtime:void 0;return typeof e==`object`&&e.id!==void 0}function ha(){return typeof navigator==`object`&&navigator.product===`ReactNative`}function ga(){let e=ua();return e.indexOf(`MSIE `)>=0||e.indexOf(`Trident/`)>=0}function _a(){return!fa()&&!!navigator.userAgent&&navigator.userAgent.includes(`Safari`)&&!navigator.userAgent.includes(`Chrome`)}function va(){try{return typeof indexedDB==`object`}catch{return!1}}function ya(){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 ba=`FirebaseError`,xa=class e extends Error{constructor(t,n,r){super(n),this.code=t,this.customData=r,this.name=ba,Object.setPrototypeOf(this,e.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,Sa.prototype.create)}},Sa=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?Ca(i,n):`Error`;return new xa(r,`${this.serviceName}: ${a} (${r}).`,n)}};function Ca(e,t){return e.replace(wa,(e,n)=>{let r=t[n];return r==null?`<${n}?>`:String(r)})}var wa=/\{\$([^}]+)}/g;function Ta(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}function Ea(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(Da(n)&&Da(a)){if(!Ea(n,a))return!1}else if(n!==a)return!1}for(let e of r)if(!n.includes(e))return!1;return!0}function Da(e){return typeof e==`object`&&!!e}function Oa(e){let t=[];
23for(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 ka(e){let t={};return e.replace(/^\?/,``).split(`&`).forEach(e=>{if(e){let[n,r]=e.split(`=`);t[decodeURIComponent(n)]=decodeURIComponent(r)}}),t}function Aa(e){let t=e.indexOf(`?`);if(!t)return``;let n=e.indexOf(`#`,t);return e.substring(t,n>0?n:void 0)}function ja(e,t){let n=new Ma(e,t);return n.subscribe.bind(n)}var Ma=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=Na(e,[`next`,`error`,`complete`])?e:{next:e,error:t,complete:n},r.next===void 0&&(r.next=Pa),r.error===void 0&&(r.error=Pa),r.complete===void 0&&(r.complete=Pa);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 Na(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 Pa(){}function Fa(e){return e&&e._delegate?e._delegate:e}function Ia(e){try{return(e.startsWith(`http://`)||e.startsWith(`https://`)?new URL(e).hostname:e).endsWith(`.cloudworkstations.dev`)}catch{return!1}}async function La(e){return(await fetch(e,{credentials:`include`})).ok}var Ra=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}},za=`[DEFAULT]`,Ba=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 ca;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}else if(n)return null;else 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(Ha(e))try{this.getOrInitializeService({instanceIdentifier:za})}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=za){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=za){return this.instances.has(e)}getOptions(e=za){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:Va(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=za){return this.component?this.component.multipleInstances?e:za:e}shouldAutoInitialize(){return!!this.component&&this.component.instantiationMode!==`EXPLICIT`}};function Va(e){return e===za?void 0:e}function Ha(e){return e.instantiationMode===`EAGER`}var Ua=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 Ba(e,this);return this.providers.set(e,t),t}getProviders(){return Array.from(this.providers.values())}},Wa=[],I;(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`})(I||={});var Ga={debug:I.DEBUG,verbose:I.VERBOSE,info:I.INFO,warn:I.WARN,error:I.ERROR,silent:I.SILENT},Ka=I.INFO,qa={[I.DEBUG]:`log`,[I.VERBOSE]:`log`,[I.INFO]:`info`,[I.WARN]:`warn`,[I.ERROR]:`error`},Ja=(e,t,...n)=>{if(t<e.logLevel)return;let r=new Date().toISOString(),i=qa[t];if(i)console[i](`[${r}]  ${e.name}:`,...n);
vendor: 14,120 bytes, line 23
23else throw Error(`Attempted to log a message with an invalid logType (value: ${t})`)},Ya=class{constructor(e){this.name=e,this._logLevel=Ka,this._logHandler=Ja,this._userLogHandler=null,Wa.push(this)}get logLevel(){return this._logLevel}set logLevel(e){if(!(e in I))throw TypeError(`Invalid value "${e}" assigned to \`logLevel\``);this._logLevel=e}setLogLevel(e){this._logLevel=typeof e==`string`?Ga[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,I.DEBUG,...e),this._logHandler(this,I.DEBUG,...e)}log(...e){this._userLogHandler&&this._userLogHandler(this,I.VERBOSE,...e),this._logHandler(this,I.VERBOSE,...e)}info(...e){this._userLogHandler&&this._userLogHandler(this,I.INFO,...e),this._logHandler(this,I.INFO,...e)}warn(...e){this._userLogHandler&&this._userLogHandler(this,I.WARN,...e),this._logHandler(this,I.WARN,...e)}error(...e){this._userLogHandler&&this._userLogHandler(this,I.ERROR,...e),this._logHandler(this,I.ERROR,...e)}},Xa=(e,t)=>t.some(t=>e instanceof t),Za,Qa;function $a(){return Za||=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction]}function eo(){return Qa||=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey]}var to=new WeakMap,no=new WeakMap,ro=new WeakMap,io=new WeakMap,ao=new WeakMap;function oo(e){let t=new Promise((t,n)=>{let r=()=>{e.removeEventListener(`success`,i),e.removeEventListener(`error`,a)},i=()=>{t(po(e.result)),r()},a=()=>{n(e.error),r()};e.addEventListener(`success`,i),e.addEventListener(`error`,a)});return t.then(t=>{t instanceof IDBCursor&&to.set(t,e)}).catch(()=>{}),ao.set(t,e),t}function so(e){if(no.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)});no.set(e,t)}var co={get(e,t,n){if(e instanceof IDBTransaction){if(t===`done`)return no.get(e);if(t===`objectStoreNames`)return e.objectStoreNames||ro.get(e);if(t===`store`)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return po(e[t])},set(e,t,n){return e[t]=n,!0},has(e,t){return e instanceof IDBTransaction&&(t===`done`||t===`store`)?!0:t in e}};function lo(e){co=e(co)}function uo(e){return e===IDBDatabase.prototype.transaction&&!(`objectStoreNames`in IDBTransaction.prototype)?function(t,...n){let r=e.call(mo(this),t,...n);return ro.set(r,t.sort?t.sort():[t]),po(r)}:eo().includes(e)?function(...t){return e.apply(mo(this),t),po(to.get(this))}:function(...t){return po(e.apply(mo(this),t))}}function fo(e){return typeof e==`function`?uo(e):(e instanceof IDBTransaction&&so(e),Xa(e,$a())?new Proxy(e,co):e)}function po(e){if(e instanceof IDBRequest)return oo(e);if(io.has(e))return io.get(e);let t=fo(e);return t!==e&&(io.set(e,t),ao.set(t,e)),t}var mo=e=>ao.get(e);function ho(e,t,{blocked:n,upgrade:r,blocking:i,terminated:a}={}){let o=indexedDB.open(e,t),s=po(o);return r&&o.addEventListener(`upgradeneeded`,e=>{r(po(o.result),e.oldVersion,e.newVersion,po(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 go=[`get`,`getKey`,`getAll`,`getAllKeys`,`count`],L=[`put`,`add`,`delete`,`clear`],_o=new Map;function vo(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&typeof t==`string`))return;if(_o.get(t))return _o.get(t);let n=t.replace(/FromIndex$/,``),r=t!==n,i=L.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(i||go.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 _o.set(t,a),a}lo(e=>({...e,get:(t,n,r)=>vo(t,n)||e.get(t,n,r),has:(t,n)=>!!vo(t,n)||e.has(t,n)}));var yo=class{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map(e=>{if(bo(e)){let t=e.getImmediate();return`${t.library}/${t.version}`}else return null}).filter(e=>e).join(` `)}};function bo(e){return e.getComponent()?.type===`VERSION`}var xo=`@firebase/app`,So=`0.14.12`,Co=new Ya(`@firebase/app`),wo=`@firebase/app-compat`,To=`@firebase/analytics-compat`,Eo=`@firebase/analytics`,Do=`@firebase/app-check-compat`,Oo=`@firebase/app-check`,ko=`@firebase/auth`,Ao=`@firebase/auth-compat`,jo=`@firebase/database`,Mo=`@firebase/data-connect`,No=`@firebase/database-compat`,Po=`@firebase/functions`,Fo=`@firebase/functions-compat`,Io=`@firebase/installations`,Lo=`@firebase/installations-compat`,Ro=`@firebase/messaging`,zo=`@firebase/messaging-compat`,Bo=`@firebase/performance`,Vo=`@firebase/performance-compat`,Ho=`@firebase/remote-config`,Uo=`@firebase/remote-config-compat`,Wo=`@firebase/storage`,Go=`@firebase/storage-compat`,Ko=`@firebase/firestore`,qo=`@firebase/ai`,Jo=`@firebase/firestore-compat`,Yo=`firebase`,Xo=`12.13.0`,Zo=`[DEFAULT]`,Qo={[xo]:`fire-core`,[wo]:`fire-core-compat`,[Eo]:`fire-analytics`,[To]:`fire-analytics-compat`,[Oo]:`fire-app-check`,[Do]:`fire-app-check-compat`,[ko]:`fire-auth`,[Ao]:`fire-auth-compat`,[jo]:`fire-rtdb`,[Mo]:`fire-data-connect`,[No]:`fire-rtdb-compat`,[Po]:`fire-fn`,[Fo]:`fire-fn-compat`,[Io]:`fire-iid`,[Lo]:`fire-iid-compat`,[Ro]:`fire-fcm`,[zo]:`fire-fcm-compat`,[Bo]:`fire-perf`,[Vo]:`fire-perf-compat`,[Ho]:`fire-rc`,[Uo]:`fire-rc-compat`,[Wo]:`fire-gcs`,[Go]:`fire-gcs-compat`,[Ko]:`fire-fst`,[Jo]:`fire-fst-compat`,[qo]:`fire-vertex`,"fire-js":`fire-js`,[Yo]:`fire-js-all`},$o=new Map,es=new Map,ts=new Map;function ns(e,t){try{e.container.addComponent(t)}catch(n){Co.debug(`Component ${t.name} failed to register with FirebaseApp ${e.name}`,n)}}function rs(e){let t=e.name;if(ts.has(t))return Co.debug(`There were multiple attempts to register component ${t}.`),!1;ts.set(t,e);for(let t of $o.values())ns(t,e);for(let t of es.values())ns(t,e);return!0}function is(e,t){let n=e.container.getProvider(`heartbeat`).getImmediate({optional:!0});return n&&n.triggerHeartbeat(),e.container.getProvider(t)}function as(e){return e==null?!1:e.settings!==void 0}var os=new Sa(`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.`}),ss=class{constructor(e,t,n){this._isDeleted=!1,this._options={...e},this._config={...t},this._name=t.name,this._automaticDataCollectionEnabled=t.automaticDataCollectionEnabled,this._container=n,this.container.addComponent(new Ra(`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 os.create(`app-deleted`,{appName:this._name})}},cs=Xo;function ls(e,t={}){let n=e;typeof t!=`object`&&(t={name:t});let r={name:Zo,automaticDataCollectionEnabled:!0,...t},i=r.name;if(typeof i!=`string`||!i)throw os.create(`bad-app-name`,{appName:String(i)});if(n||=oa(),!n)throw os.create(`no-options`);let a=$o.get(i);if(a){if(Ea(n,a.options)&&Ea(r,a.config))return a;throw os.create(`duplicate-app`,{appName:i})}let o=new Ua(i);for(let e of ts.values())o.addComponent(e);let s=new ss(n,r,o);return $o.set(i,s),s}function us(e=Zo){let t=$o.get(e);if(!t&&e===`[DEFAULT]`&&oa())return ls();if(!t)throw os.create(`no-app`,{appName:e});return t}function ds(e,t,n){let r=Qo[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 "/")`),Co.warn(e.join(` `));return}rs(new Ra(`${r}-version`,()=>({library:r,version:t}),`VERSION`))}var fs=`firebase-heartbeat-database`,ps=1,ms=`firebase-heartbeat-store`,hs=null;function gs(){return hs||=ho(fs,ps,{upgrade:(e,t)=>{switch(t){case 0:try{e.createObjectStore(ms)}catch(e){console.warn(e)}}}}).catch(e=>{throw os.create(`idb-open`,{originalErrorMessage:e.message})}),hs}async function _s(e){try{let t=(await gs()).transaction(ms),n=await t.objectStore(ms).get(ys(e));return await t.done,n}catch(e){if(e instanceof xa)Co.warn(e.message);else{let t=os.create(`idb-get`,{originalErrorMessage:e?.message});Co.warn(t.message)}}}async function vs(e,t){try{let n=(await gs()).transaction(ms,`readwrite`);await n.objectStore(ms).put(t,ys(e)),await n.done}catch(e){if(e instanceof xa)Co.warn(e.message);else{let t=os.create(`idb-set`,{originalErrorMessage:e?.message});Co.warn(t.message)}}}function ys(e){return`${e.name}!${e.options.appId}`}var bs=1024,xs=30,Ss=class{constructor(e){this.container=e,this._heartbeatsCache=null;let t=this.container.getProvider(`app`).getImmediate();this._storage=new Ts(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=Cs();if(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))return;if(this._heartbeatsCache.heartbeats.push({date:t,agent:e}),this._heartbeatsCache.heartbeats.length>xs){let e=Ds(this._heartbeatsCache.heartbeats);this._heartbeatsCache.heartbeats.splice(e,1)}return this._storage.overwrite(this._heartbeatsCache)}catch(e){Co.warn(e)}}async getHeartbeatsHeader(){try{if(this._heartbeatsCache===null&&await this._heartbeatsCachePromise,this._heartbeatsCache?.heartbeats==null||this._heartbeatsCache.heartbeats.length===0)return``;let e=Cs(),{heartbeatsToSend:t,unsentEntries:n}=ws(this._heartbeatsCache.heartbeats),r=Zi(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 Co.warn(e),``}}};function Cs(){return new Date().toISOString().substring(0,10)}function ws(e,t=bs){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]}),Es(n)>t){n.pop();break}}else if(e.dates.push(i.date),Es(n)>t){e.dates.pop();break}r=r.slice(1)}return{heartbeatsToSend:n,unsentEntries:r}}var Ts=class{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return va()?ya().then(()=>!0).catch(()=>!1):!1}async read(){if(await this._canUseIndexedDBPromise){let e=await _s(this.app);return e?.heartbeats?e:{heartbeats:[]}}else return{heartbeats:[]}}async overwrite(e){if(await this._canUseIndexedDBPromise){let t=await this.read();return vs(this.app,{lastSentHeartbeatDate:e.lastSentHeartbeatDate??t.lastSentHeartbeatDate,heartbeats:e.heartbeats})}else return}async add(e){if(await this._canUseIndexedDBPromise){let t=await this.read();return vs(this.app,{lastSentHeartbeatDate:e.lastSentHeartbeatDate??t.lastSentHeartbeatDate,heartbeats:[...t.heartbeats,...e.heartbeats]})}else return}};function Es(e){return Zi(JSON.stringify({version:2,heartbeats:e})).length}function Ds(e){if(e.length===0)return-1;let t=0,n=e[0].date;for(let r=1;r<e.length;r++)e[r].date<n&&(n=e[r].date,t=r);return t}function Os(e){rs(new Ra(`platform-logger`,e=>new yo(e),`PRIVATE`)),rs(new Ra(`heartbeat`,e=>new Ss(e),`PRIVATE`)),ds(xo,So,e),ds(xo,So,`esm2020`),ds(`fire-js`,``)}Os(``),ds(`firebase`,`12.13.0`,`app`);function ks(){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 As=ks,js=new Sa(`auth`,`Firebase`,ks()),Ms=new Ya(`@firebase/auth`);function Ns(e,...t){Ms.logLevel<=I.WARN&&Ms.warn(`Auth (${cs}): ${e}`,...t)}function Ps(e,...t){Ms.logLevel<=I.ERROR&&Ms.error(`Auth (${cs}): ${e}`,...t)}function Fs(e,...t){throw Bs(e,...t)}function Is(e,...t){return Bs(e,...t)}function Ls(e,t,n){return new Sa(`auth`,`Firebase`,{...As(),[t]:n}
23).create(t,{appName:e.name})}function Rs(e){return Ls(e,`operation-not-supported-in-this-environment`,`Operations that alter the current user are not supported in conjunction with FirebaseServerApp`)}function zs(e,t,n){let r=n;if(!(t instanceof r))throw r.name!==t.constructor.name&&Fs(e,`argument-error`),Ls(e,`argument-error`,`Type of ${t.constructor.name} does not match expected instance.Did you pass a reference from a different Auth SDK?`)}function Bs(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 js.create(e,...t)}function R(e,t,...n){if(!e)throw Bs(t,...n)}function Vs(e){let t=`INTERNAL ASSERTION FAILED: `+e;throw Ps(t),Error(t)}function Hs(e,t){e||Vs(t)}function Us(){return typeof self<`u`&&self.location?.href||``}function Ws(){return Gs()===`http:`||Gs()===`https:`}function Gs(){return typeof self<`u`&&self.location?.protocol||null}function Ks(){return typeof navigator<`u`&&navigator&&`onLine`in navigator&&typeof navigator.onLine==`boolean`&&(Ws()||ma()||`connection`in navigator)?navigator.onLine:!0}function qs(){if(typeof navigator>`u`)return null;let e=navigator;return e.languages&&e.languages[0]||e.language||null}var Js=class{constructor(e,t){this.shortDelay=e,this.longDelay=t,Hs(t>e,`Short delay should be less than long delay!`),this.isMobile=da()||ha()}get(){return Ks()?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}};function Ys(e,t){Hs(e.emulator,`Emulator should always be set here`);let{url:n}=e.emulator;return t?`${n}${t.startsWith(`/`)?t.slice(1):t}`:n}var Xs=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;Vs(`Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill`)}static headers(){if(this.headersImpl)return this.headersImpl;if(typeof self<`u`&&`Headers`in self)return self.Headers;if(typeof globalThis<`u`&&globalThis.Headers)return globalThis.Headers;if(typeof Headers<`u`)return Headers;Vs(`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;Vs(`Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill`)}},Zs={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:`invali
23d-oauth-client-id`,ADMIN_ONLY_OPERATION:`admin-restricted-operation`,INVALID_MFA_PENDING_CREDENTIAL:`invalid-multi-factor-session`,MFA_ENROLLMENT_NOT_FOUND:`multi-factor-info-not-found`,MISSING_MFA_ENROLLMENT_ID:`missing-multi-factor-info`,MISSING_MFA_PENDING_CREDENTIAL:`missing-multi-factor-session`,SECOND_FACTOR_EXISTS:`second-factor-already-in-use`,SECOND_FACTOR_LIMIT_EXCEEDED:`maximum-second-factor-count-exceeded`,BLOCKING_FUNCTION_ERROR_RESPONSE:`internal-error`,RECAPTCHA_NOT_ENABLED:`recaptcha-not-enabled`,MISSING_RECAPTCHA_TOKEN:`missing-recaptcha-token`,INVALID_RECAPTCHA_TOKEN:`invalid-recaptcha-token`,INVALID_RECAPTCHA_ACTION:`invalid-recaptcha-action`,MISSING_CLIENT_TYPE:`missing-client-type`,MISSING_RECAPTCHA_VERSION:`missing-recaptcha-version`,INVALID_RECAPTCHA_VERSION:`invalid-recaptcha-version`,INVALID_REQ_TYPE:`invalid-req-type`},Qs=[`/v1/accounts:signInWithCustomToken`,`/v1/accounts:signInWithEmailLink`,`/v1/accounts:signInWithIdp`,`/v1/accounts:signInWithPassword`,`/v1/accounts:signInWithPhoneNumber`,`/v1/token`],$s=new Js(3e4,6e4);function ec(e,t){return e.tenantId&&!t.tenantId?{...t,tenantId:e.tenantId}:t}async function tc(e,t,n,r,i={}){return nc(e,i,async()=>{let i={},a={};r&&(t===`GET`?a=r:i={body:JSON.stringify(r)});let o=Oa({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={method:t,headers:s,...i};return pa()||(c.referrerPolicy=`no-referrer`),e.emulatorConfig&&Ia(e.emulatorConfig.host)&&(c.credentials=`include`),Xs.fetch()(await ic(e,e.config.apiHost,n,o),c)})}async function nc(e,t,n){e._canInitEmulator=!1;let r={...Zs,...t};try{let t=new oc(e),i=await Promise.race([n(),t.promise]);t.clearNetworkTimeout();let a=await i.json();if(`needConfirmation`in a)throw sc(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 sc(e,`credential-already-in-use`,a);if(t===`EMAIL_EXISTS`)throw sc(e,`email-already-in-use`,a);if(t===`USER_DISABLED`)throw sc(e,`user-disabled`,a);let o=r[t]||t.toLowerCase().replace(/[_\s]+/g,`-`);if(n)throw Ls(e,o,n);Fs(e,o)}}catch(t){if(t instanceof xa)throw t;Fs(e,`network-request-failed`,{message:String(t)})}}async function rc(e,t,n,r,i={}){let a=await tc(e,t,n,r,i);return`mfaPendingCredential`in a&&Fs(e,`multi-factor-auth-required`,{_serverResponse:a}),a}async function ic(e,t,n,r){let i=`${t}${n}?${r}`,a=e,o=a.config.emulator?Ys(e.config,i):`${e.config.apiScheme}://${i}`;return Qs.includes(n)&&(await a._persistenceManagerAvailable,a._getPersistenceType()===`COOKIE`)?a._getPersistence()._getFinalTarget(o).toString():o}function ac(e){switch(e){case`ENFORCE`:return`ENFORCE`;case`AUDIT`:return`AUDIT`;case`OFF`:return`OFF`;default:return`ENFORCEMENT_STATE_UNSPECIFIED`}}var oc=class{clearNetworkTimeout(){clearTimeout(this.timer)}constructor(e){this.auth=e,this.timer=null,this.promise=new Promise((e,t)=>{this.timer=setTimeout(()=>t(Is(this.auth,`network-request-failed`)),$s.get())})}};function sc(e,t,n){let r={appName:e.name};n.email&&(r.email=n.email),n.phoneNumber&&(r.phoneNumber=n.phoneNumber);let i=Is(e,t,r);return i.customData._tokenResponse=n,i}function cc(e){return e!==void 0&&e.enterprise!==void 0}var lc=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 ac(t.enforcementState);return null}isProviderEnabled(e){return this.getProviderEnforcementState(e)===`ENFORCE`||this.getProviderEnforcementState(e)===`AUDIT`}isAnyProviderEnabled(){return this.isProviderEnabled(`EMAIL_PASSWORD_PROVIDER`)||this.isProviderEnabled(`PHONE_PROVIDER`)}};async function uc(e,t){return tc(e,`GET`,`/v2/recaptchaConfig`,ec(e,t))}async function dc(e,t){return tc(e,`POST`,`/v1/accounts:delete`,t)}async function fc(e,t){return tc(e,`POST`,`/v1/accounts:lookup`,t)}function pc(e){if(e)try{let t=new Date(Number(e));if(!isNaN(t.getTime()))return t.toUTCString()}catch{}}async function mc(e,t=!1){let n=Fa(e),r=await n.getIdToken(t),i=gc(r);R(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:pc(hc(i.auth_time)),issuedAtTime:pc(hc(i.iat)),expirationTime:pc(hc(i.exp
23)),signInProvider:o||null,signInSecondFactor:a?.sign_in_second_factor||null}}function hc(e){return Number(e)*1e3}function gc(e){let[t,n,r]=e.split(`.`);if(t===void 0||n===void 0||r===void 0)return Ps(`JWT malformed, contained fewer than 3 sections`),null;try{let e=Qi(n);return e?JSON.parse(e):(Ps(`Failed to decode base64 JWT payload`),null)}catch(e){return Ps(`Caught error parsing JWT payload as JSON`,e?.toString()),null}}function _c(e){let t=gc(e);return R(t,`internal-error`),R(t.exp!==void 0,`internal-error`),R(t.iat!==void 0,`internal-error`),Number(t.exp)-Number(t.iat)}async function vc(e,t,n=!1){if(n)return t;try{return await t}catch(t){throw t instanceof xa&&yc(t)&&e.auth.currentUser===e&&await e.auth.signOut(),t}}function yc({code:e}){return e===`auth/user-disabled`||e===`auth/user-token-expired`}var bc=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}else{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()}},xc=class{constructor(e,t){this.createdAt=e,this.lastLoginAt=t,this._initializeTime()}_initializeTime(){this.lastSignInTime=pc(this.lastLoginAt),this.creationTime=pc(this.createdAt)}_copy(e){this.createdAt=e.createdAt,this.lastLoginAt=e.lastLoginAt,this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}};async function Sc(e){let t=e.auth,n=await vc(e,fc(t,{idToken:await e.getIdToken()}));R(n?.users.length,t,`internal-error`);let r=n.users[0];e._notifyReloadListener(r);let i=r.providerUserInfo?.length?Tc(r.providerUserInfo):[],a=wc(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 xc(r.createdAt,r.lastLoginAt),isAnonymous:c};Object.assign(e,l)}async function Cc(e){let t=Fa(e);await Sc(t),await t.auth._persistUserIfCurrent(t),t.auth._notifyListenersIfCurrent(t)}function wc(e,t){return[...e.filter(e=>!t.some(t=>t.providerId===e.providerId)),...t]}function Tc(e){return e.map(({providerId:e,...t})=>({providerId:e,uid:t.rawId||``,displayName:t.displayName||null,email:t.email||null,phoneNumber:t.phoneNumber||null,photoURL:t.photoUrl||null}))}async function Ec(e,t){let n=await nc(e,{},async()=>{let n=Oa({grant_type:`refresh_token`,refresh_token:t}).slice(1),{tokenApiHost:r,apiKey:i}=e.config,a=await ic(e,r,`/v1/token`,`key=${i}`),o=await e._getAdditionalHeaders();o[`Content-Type`]=`application/x-www-form-urlencoded`;let s={method:`POST`,headers:o,body:n};return e.emulatorConfig&&Ia(e.emulatorConfig.host)&&(s.credentials=`include`),Xs.fetch()(a,s)});return{accessToken:n.access_token,expiresIn:n.expires_in,refreshToken:n.refresh_token}}async function Dc(e,t){return tc(e,`POST`,`/v2/accounts:revokeToken`,ec(e,t))}var Oc=class e{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(e){R(e.idToken,`internal-error`),R(e.idToken!==void 0,`internal-error`),R(e.refreshToken!==void 0,`internal-error`);let t=`expiresIn`in e&&e.expiresIn!==void 0?Number(e.expiresIn):_c(e.idToken);this.updateTokensAndExpiration(e.idToken,e.refreshToken,t)}updateFromIdToken(e){R(e.length!==0,`internal-error`);let t=_c(e);this.updateTokensAndExpiration(e,null,t)}async getToken(e,t=!1){return!t&&this.accessToken&&!this.isExpired?this.accessToken:(R(this.refreshToken,e,`user-token-expired`),this.refreshToken?(await this.refresh(e,this.refreshToken),this.accessToken):null)}clearRefreshToken(){this.refreshToken=null}
23async refresh(e,t){let{accessToken:n,refreshToken:r,expiresIn:i}=await Ec(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&&(R(typeof r==`string`,`internal-error`,{appName:t}),o.refreshToken=r),i&&(R(typeof i==`string`,`internal-error`,{appName:t}),o.accessToken=i),a&&(R(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 Vs(`not implemented`)}};function kc(e,t){R(typeof e==`string`||e===void 0,`internal-error`,{appName:t})}var Ac=class e{constructor({uid:e,auth:t,stsTokenManager:n,...r}){this.providerId=`firebase`,this.proactiveRefresh=new bc(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=e,this.auth=t,this.stsTokenManager=n,this.accessToken=n.accessToken,this.displayName=r.displayName||null,this.email=r.email||null,this.emailVerified=r.emailVerified||!1,this.phoneNumber=r.phoneNumber||null,this.photoURL=r.photoURL||null,this.isAnonymous=r.isAnonymous||!1,this.tenantId=r.tenantId||null,this.providerData=r.providerData?[...r.providerData]:[],this.metadata=new xc(r.createdAt||void 0,r.lastLoginAt||void 0)}async getIdToken(e){let t=await vc(this,this.stsTokenManager.getToken(this.auth,e));return R(t,this.auth,`internal-error`),this.accessToken!==t&&(this.accessToken=t,await this.auth._persistUserIfCurrent(this),this.auth._notifyListenersIfCurrent(this)),t}getIdTokenResult(e){return mc(this,e)}reload(){return Cc(this)}_assign(e){this!==e&&(R(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=>({...e})),this.metadata._copy(e.metadata),this.stsTokenManager._assign(e.stsTokenManager))}_clone(t){let n=new e({...this,auth:t,stsTokenManager:this.stsTokenManager._clone()});return n.metadata._copy(this.metadata),n}_onReload(e){R(!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 Sc(this),await this.auth._persistUserIfCurrent(this),n&&this.auth._notifyListenersIfCurrent(this)}async delete(){if(as(this.auth.app))return Promise.reject(Rs(this.auth));let e=await this.getIdToken();return await vc(this,dc(this.auth,{idToken:e})),this.stsTokenManager.clearRefreshToken(),this.auth.signOut()}toJSON(){return{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=>({...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;R(d&&h,t,`internal-error`);let g=Oc.fromJSON(this.name,h);R(typeof d==`string`,t,`internal-error`),kc(r,t.name),kc(i,t.name),R(typeof f==`boolean`,t,`internal-error`),R(typeof p==`boolean`,t,`internal-error`),kc(a,t.name),kc(o,t.name),kc(s,t.name),kc(c,t.name),kc(l,t.name),kc(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=>({...e}))),c&&(_._redirectEventId=c),_}static async _fromIdTokenResponse(t,n,r=!1){let i=new Oc;i.updateFromServerResponse(n);let a=new e({uid:n.localId,auth:t,stsTokenManager:i,isAnonymous:r});return await Sc(a),a}static async _fromGetAccountInfoResponse(t,n,r){let i=n.users[0];R(i.localId!==void 0,`internal-error`);let a=i.providerUserInfo===void 0?[]:Tc(i.providerUserInfo),o=!(i.email&&i.passwordHash)&&!a?.length,s=new Oc;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 xc(i.createdAt,i.lastLoginAt),isAnonymous:!(i.email&&i.passwordHash)&&!a?.length};return Object.assign(c,l),c}},jc=new Map;function Mc(e){Hs(e instanceof Function,`Expected a class definition`);let t=jc.get(e);return t?(Hs(t instanceof e,`Instance stored in cache mismatched with class`),t):(t=new e,jc.set(e,t),t)}var Nc=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){}};Nc.type=`NONE`;var Pc=Nc;function Fc(e,t,n){return`firebase:${e}:${t}:${n}`}var Ic=class e{constructor(e,t,n){this.persistence=e,this.auth=t,this.userKey=n;let{config:r,name:i}=this.auth;this.fullUserKey=Fc(this.userKey,r.apiKey,i),this.fullPersistenceKey=Fc(`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);if(!e)return null;if(typeof e==`string`){let t=await fc(this.auth,{idToken:e}).catch(()=>void 0);return t?Ac._fromGetAccountInfoResponse(this.auth,t,e):null}return Ac._fromJSON(this.auth,e)}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(Mc(Pc),t,r);let i=(await Promise.all(n.map(async e=>{if(await e._isAvailable())return e}))).filter(e=>e),a=i[0]||Mc(Pc),o=Fc(r,t.config.apiKey,t.name),s=null;for(let e of n)try{let n=await e._get(o);if(n){let r;if(typeof n==`string`){let e=await fc(t,{idToken:n}).catch(()=>void 0);if(!e)break;r=await Ac._fromGetAccountInfoResponse(t,e,n)}else r=Ac._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 Lc(e){let t=e.toLowerCase();if(t.includes(`opera/`)||t.includes(`opr/`)||t.includes(`opios/`))return`Opera`;if(Vc(t))return`IEMobile`;if(t.includes(`msie`)||t.includes(`trident/`))return`IE`;if(t.includes(`edge/`))return`Edge`;if(Rc(t))return`Firefox`;if(t.includes(`silk/`))return`Silk`;if(Uc(t))return`Blackberry`;if(Wc(t))return`Webos`;if(zc(t))return`Safari`;if((t.includes(`chrome/`)||Bc(t))&&!t.includes(`edge/`))return`Chrome`;if(Hc(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 Rc(e=ua()){return/firefox\//i.test(e)}function zc(e=ua()){let t=e.toLowerCase();return t.includes(`safari/`)&&!t.includes(`chrome/`)&&!t.includes(`crios/`)&&!t.includes(`android`)}function Bc(e=ua()){return/crios\//i.test(e)}function Vc(e=ua()){return/iemobile/i.test(e)}function Hc(e=ua()){return/android/i.test(e)}function Uc(e=ua()){return/blackberry/i.test(e)}function Wc(e=ua()){return/webos/i.test(e)}function Gc(e=ua()){return/iphone|ipad|ipod/i.test(e)||/macintosh/i.test(e)&&/mobile/i.test(e)}function Kc(e=ua()){return Gc(e)&&!!window.navigator?.standalone}function qc(){return ga()&&document.documentMode===10}
23function Jc(e=ua()){return Gc(e)||Hc(e)||Wc(e)||Uc(e)||/windows phone/i.test(e)||Vc(e)}function Yc(e,t=[]){let n;switch(e){case`Browser`:n=Lc(ua());break;case`Worker`:n=`${Lc(ua())}-${e}`;break;default:n=e}let r=t.length?t.join(`,`):`FirebaseCore-web`;return`${n}/JsCore/${cs}/${r}`}var Xc=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 Zc(e,t={}){return tc(e,`GET`,`/v2/passwordPolicy`,ec(e,t))}var Qc=6,$c=class{constructor(e){let t=e.customStrengthOptions;this.customStrengthOptions={},this.customStrengthOptions.minPasswordLength=t.minPasswordLength??Qc,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)}},el=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 nl(this),this.idTokenSubscription=new nl(this),this.beforeStateQueue=new Xc(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=js,this._agentRecaptchaConfig=null,this._tenantRecaptchaConfigs={},this._projectPasswordPolicy=null,this._tenantPasswordPolicies={},this._resolvePersistenceManagerAvailable=void 0,this.lastNotifiedUid=void 0,this.languageCode=null,this.tenantId=null,this.settings={appVerificationDisabledForTesting:!1},this.frameworks=[],this.name=e.name,this.clientVersion=r.sdkClientVersion,this._persistenceManagerAvailable=new Promise(e=>this._resolvePersistenceManagerAvailable=e)}_initializeWithPersistence(e,t){return t&&(this._popupRedirectResolver=Mc(t)),this._initializationPromise=this.queue(async()=>
23{if(!this._deleted&&(this.persistenceManager=await Ic.create(this,e),this._resolvePersistenceManagerAvailable?.(),!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 fc(this,{idToken:e}),n=await Ac._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(as(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 R(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 Sc(e)}catch(e){if(e?.code!==`auth/network-request-failed`)return this.directlySetCurrentUser(null)}return this.directlySetCurrentUser(e)}useDeviceLanguage(){this.languageCode=qs()}async _delete(){this._deleted=!0}async updateCurrentUser(e){if(as(this.app))return Promise.reject(Rs(this));let t=e?Fa(e):null;return t&&R(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&&R(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 as(this.app)?Promise.reject(Rs(this)):(await this.beforeStateQueue.runMiddleware(null),(this.redirectPersistenceManager||this._popupRedirectResolver)&&await this._setRedirectUser(null),this._updateCurrentUser(null,!0))}setPersistence(e){return as(this.app)?Promise.reject(Rs(this)):this.queue(async()=>{await this.assertedPersistence.setPersistence(Mc(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 $c(await Zc(this));this.tenantId===null?this._projectPasswordPolicy=e:this._tenantPasswordPolicies[this.tenantId]=e}_getPersistenceType(){return this.assertedPersistence.persistence.type}_getPersistence(){return this.assertedPersistence.persistence}_updateErrorMap(e){this._errorFactory=new Sa(`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)=>
23{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 Dc(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&&Mc(e)||this._popupRedirectResolver;R(t,this,`argument-error`),this.redirectPersistenceManager=await Ic.create(this,[Mc(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(R(o,this,`internal-error`),o.then(()=>{a||i(this.currentUser)}),typeof t==`function`){let i=e.addObserver(t,n,r);return()=>{a=!0,i()}}else{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 R(this.persistenceManager,this,`internal-error`),this.persistenceManager}_logFramework(e){!e||this.frameworks.includes(e)||(this.frameworks.push(e),this.frameworks.sort(),this.clientVersion=Yc(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(){if(as(this.app)&&this.app.settings.appCheckToken)return this.app.settings.appCheckToken;let e=await this.appCheckServiceProvider.getImmediate({optional:!0})?.getToken();return e?.error&&Ns(`Error while retrieving App Check token: ${e.error}`),e?.token}};function tl(e){return Fa(e)}var nl=class{constructor(e){this.auth=e,this.observer=null,this.addObserver=ja(e=>this.observer=e)}get next(){return R(this.observer,this.auth,`internal-error`),this.observer.next.bind(this.observer)}},rl={async loadJS(){throw Error(`Unable to load external scripts`)},recaptchaV2Script:``,recaptchaEnterpriseScript:``,gapiScript:``};function il(e){rl=e}function al(e){return rl.loadJS(e)}
23function ol(){return rl.recaptchaEnterpriseScript}function sl(){return rl.gapiScript}function cl(e){return`__${e}${Math.floor(Math.random()*1e6)}`}var ll=class{constructor(){this.enterprise=new ul}ready(e){e()}execute(e,t){return Promise.resolve(`token`)}render(e,t){return``}},ul=class{ready(e){e()}execute(e,t){return Promise.resolve(`token`)}render(e,t){return``}},dl=`recaptcha-enterprise`,fl=`NO_RECAPTCHA`,pl=class{constructor(e){this.type=dl,this.auth=tl(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)=>{uc(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 lc(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;cc(i)?i.enterprise.ready(()=>{i.enterprise.execute(t,{action:e}).then(e=>{n(e)}).catch(()=>{n(fl)})}):r(Error(`No reCAPTCHA enterprise script loaded.`))}return this.auth.settings.appVerificationDisabledForTesting?new ll().execute(`siteKey`,{action:`verify`}):new Promise((e,i)=>{n(this.auth).then(n=>{if(!t&&cc(window.grecaptcha))r(n,e,i);else{if(typeof window>`u`){i(Error(`RecaptchaVerifier is only supported in browser`));return}let t=ol();t.length!==0&&(t+=n),al(t).then(()=>{r(n,e,i)}).catch(e=>{i(e)})}}).catch(e=>{i(e)})})}};async function ml(e,t,n,r=!1,i=!1){let a=new pl(e),o;if(i)o=fl;else try{o=await a.verify(n)}catch{o=await a.verify(n,!0)}let s={...t};if(n===`mfaSmsEnrollment`||n===`mfaSmsSignIn`){if(`phoneEnrollmentInfo`in s){let e=s.phoneEnrollmentInfo.phoneNumber,t=s.phoneEnrollmentInfo.recaptchaToken;Object.assign(s,{phoneEnrollmentInfo:{phoneNumber:e,recaptchaToken:t,captchaResponse:o,clientType:`CLIENT_TYPE_WEB`,recaptchaVersion:`RECAPTCHA_ENTERPRISE`}})}else if(`phoneSignInInfo`in s){let e=s.phoneSignInInfo.recaptchaToken;Object.assign(s,{phoneSignInInfo:{recaptchaToken:e,captchaResponse:o,clientType:`CLIENT_TYPE_WEB`,recaptchaVersion:`RECAPTCHA_ENTERPRISE`}})}return s}return r?Object.assign(s,{captchaResp:o}):Object.assign(s,{captchaResponse:o}),Object.assign(s,{clientType:`CLIENT_TYPE_WEB`}),Object.assign(s,{recaptchaVersion:`RECAPTCHA_ENTERPRISE`}),s}async function hl(e,t,n,r,i){return i===`EMAIL_PASSWORD_PROVIDER`?e._getRecaptchaConfig()?.isProviderEnabled(`EMAIL_PASSWORD_PROVIDER`)?r(e,await ml(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 ml(e,t,n,n===`getOobCode`))):Promise.reject(i)):i===`PHONE_PROVIDER`?e._getRecaptchaConfig()?.isProviderEnabled(`PHONE_PROVIDER`)?r(e,await ml(e,t,n)).catch(async i=>e._getRecaptchaConfig()?.getProviderEnforcementState(`PHONE_PROVIDER`)===`AUDIT`&&(i.code===`auth/missing-recaptcha-token`||i.code===`auth/invalid-app-credential`)?(console.log(`Failed to verify with reCAPTCHA Enterprise. Automatically triggering the reCAPTCHA v2 flow to complete the ${n} flow.`),r(e,await ml(e,t,n,!1,!0))):Promise.reject(i)):r(e,await ml(e,t,n,!1,!0)):Promise.reject(i+` provider is not supported.`)}async function gl(e){let t=tl(e),n=new lc(await uc(t,{clientType:`CLIENT_TYPE_WEB`,version:`RECAPTCHA_ENTERPRISE`}));t.tenantId==null?t._agentRecaptchaConfig=n:t._tenantRecaptchaConfigs[t.tenantId]=n,n.isAnyProviderEnabled()&&new pl(t).verify()}function _l(e,t){let n=is(e,`auth`);if(n.isInitialized()){let e=n.getImmediate();if(Ea(n.getOptions(),t??{}))return e;Fs(e,`already-initialized`)}return n.initialize({options:t})}function vl(e,t){let n=t?.persistence||[],r=(Array.isArray(n)?n:[n]).map(Mc);t?.errorMap&&e._updateErrorMap(t.errorMap),e._initializeWithPersistence(r,t?.popupRedirectResolver)}function yl(e,t,n){let r=tl(e);R(/^https?:\/\//.test(t),r,`invalid-emulator-scheme`);let i=!!n?.disableWarnings,a=bl(t),{host:o,port:s}=xl(t),c=s===null?``:`:${s}`,l={url:`${a}//${o}${c}/`},u=Object.freeze({host:o,port:s,protocol:a.replace(`:`,``),options:Object.freeze({disableWarnings:i})});if(!r._canInitEmulator){R(r.config.emulator&&r.emulatorConfig,r,`emulator-config-failed`),R(Ea(l,r.config.emulator)&&Ea(u,r.emulatorConfig),r,`emulator-config-failed`);return}r.config.emulator=l,r.emulatorConfig=u,r.settings.appVerificationDisabledForTesting=!0,Ia(o)?La(`${a}//${o}${c}`):i||Cl()}function bl(e){let t=e.indexOf(`:`);return t<0?``:e.substr(0,t+1)}function xl(e){let t=bl(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:Sl(r.substr(e.length+1))}}else{let[e,t]=r.split(`:`);return{host:e,port:Sl(t)}}}function Sl(e){if(!e)return null;let t=Number(e);return isNaN(t)?null:t}function Cl(){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 wl=class{constructor(e,t){this.providerId=e,this.signInMethod=t}toJSON(){return Vs(`not implemented`)}_getIdTokenResponse(e){return Vs(`not implemented`)}_linkToIdToken(e,t){return Vs(`not implemented`)}_getReauthenticationResolver(e){return Vs(`not implemented`)}};async function Tl(e,t){return tc(e,`POST`,`/v1/accounts:signUp`,t)}async function El(e,t){return rc(e,`POST`,`/v1/accounts:signInWithPassword`,ec(e,t))}async function Dl(e,t){return rc(e,`POST`,`/v1/accounts:signInWithEmailLink`,ec(e,t))}async function Ol(e,t){return rc(e,`POST`,`/v1/accounts:signInWithEmailLink`,ec(e,t))}var kl=class e extends wl{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 hl(e,{returnSecureToken:!0,email:this._email,password:this._password,clientType:`CLIENT_TYPE_WEB`},`signInWithPassword`,El,`EMAIL_PASSWORD_PROVIDER`);case`emailLink`:return Dl(e,{email:this._email,oobCode:this._password});default:Fs(e,`internal-error`)}}async _linkToIdToken(e,t){switch(this.signInMethod){case`password`:return hl(e,{idToken:t,returnSecureToken:!0,email:this._email,password:this._password,clientType:`CLIENT_TYPE_WEB`},`signUpPassword`,Tl,`EMAIL_PASSWORD_PROVIDER`);case`emailLink`:return Ol(e,{idToken:t,email:this._email,oobCode:this._password});default:Fs(e,`internal-error`)}}_getReauthenticationResolver(e){return this._getIdTokenResponse(e)}};async function Al(e,t){return rc(e,`POST`,`/v1/accounts:signInWithIdp`,ec(e,t))}var jl=`http://localhost`,Ml=class e extends wl{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
23dingToken&&(n.nonce=t.nonce),t.pendingToken&&(n.pendingToken=t.pendingToken)):t.oauthToken&&t.oauthTokenSecret?(n.accessToken=t.oauthToken,n.secret=t.oauthTokenSecret):Fs(`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{providerId:n,signInMethod:r,...i}=typeof t==`string`?JSON.parse(t):t;if(!n||!r)return null;let a=new e(n,r);return a.idToken=i.idToken||void 0,a.accessToken=i.accessToken||void 0,a.secret=i.secret,a.nonce=i.nonce,a.pendingToken=i.pendingToken||null,a}_getIdTokenResponse(e){return Al(e,this.buildRequest())}_linkToIdToken(e,t){let n=this.buildRequest();return n.idToken=t,Al(e,n)}_getReauthenticationResolver(e){let t=this.buildRequest();return t.autoCreate=!1,Al(e,t)}buildRequest(){let e={requestUri:jl,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=Oa(t)}return e}};async function Nl(e,t){return tc(e,`POST`,`/v1/accounts:sendVerificationCode`,ec(e,t))}async function Pl(e,t){return rc(e,`POST`,`/v1/accounts:signInWithPhoneNumber`,ec(e,t))}async function Fl(e,t){let n=await rc(e,`POST`,`/v1/accounts:signInWithPhoneNumber`,ec(e,t));if(n.temporaryProof)throw sc(e,`account-exists-with-different-credential`,n);return n}var Il={USER_NOT_FOUND:`user-not-found`};async function Ll(e,t){return rc(e,`POST`,`/v1/accounts:signInWithPhoneNumber`,ec(e,{...t,operation:`REAUTH`}),Il)}var Rl=class e extends wl{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 Pl(e,this._makeVerificationRequest())}_linkToIdToken(e,t){return Fl(e,{idToken:t,...this._makeVerificationRequest()})}_getReauthenticationResolver(e){return Ll(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 zl(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 Bl(e){let t=ka(Aa(e)).link,n=t?ka(Aa(t)).deep_link_id:null,r=ka(Aa(e)).deep_link_id;return(r?ka(Aa(r)).link:null)||r||n||t||e}var Vl=class e{constructor(e){let t=ka(Aa(e)),n=t.apiKey??null,r=t.oobCode??null,i=zl(t.mode??null);R(n&&r&&i,`argument-error`),this.apiKey=n,this.operation=i,this.code=r,this.continueUrl=t.continueUrl??null,this.languageCode=t.lang??null,this.tenantId=t.tenantId??null}static parseLink(t){let n=Bl(t);try{return new e(n)}catch{return null}}},Hl=class e{constructor(){this.providerId=e.PROVIDER_ID}static credential(e,t){return kl._fromEmailAndPassword(e,t)}static credentialWithLink(e,t){let n=Vl.parseLink(t);return R(n,`argument-error`),kl._fromEmailAndCode(e,n.code,n.tenantId)}};Hl.PROVIDER_ID=`password`,Hl.EMAIL_PASSWORD_SIGN_IN_METHOD=`password`,Hl.EMAIL_LINK_SIGN_IN_METHOD=`emailLink`;var Ul=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}},Wl=class extends Ul{constructor(){super(...arguments),this.scopes=[]}addScope(e){return this.scopes.includes(e)||this.scopes.push(e),this}getScopes(){return[...this.scopes]}},Gl=class e extends Wl{constructor(){super(`facebook.com`)}static credential(t){return Ml._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||{})}
23static credentialFromTaggedObject({_tokenResponse:t}){if(!t||!(`oauthAccessToken`in t)||!t.oauthAccessToken)return null;try{return e.credential(t.oauthAccessToken)}catch{return null}}};Gl.FACEBOOK_SIGN_IN_METHOD=`facebook.com`,Gl.PROVIDER_ID=`facebook.com`;var z=class e extends Wl{constructor(){super(`google.com`),this.addScope(`profile`)}static credential(t,n){return Ml._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}}};z.GOOGLE_SIGN_IN_METHOD=`google.com`,z.PROVIDER_ID=`google.com`;var Kl=class e extends Wl{constructor(){super(`github.com`)}static credential(t){return Ml._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}}};Kl.GITHUB_SIGN_IN_METHOD=`github.com`,Kl.PROVIDER_ID=`github.com`;var B=class e extends Wl{constructor(){super(`twitter.com`)}static credential(t,n){return Ml._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}}};B.TWITTER_SIGN_IN_METHOD=`twitter.com`,B.PROVIDER_ID=`twitter.com`;var V=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){return new e({user:await Ac._fromIdTokenResponse(t,r,i),providerId:ql(r),_tokenResponse:r,operationType:n})}static async _forOperation(t,n,r){return await t._updateTokensIfNecessary(r,!0),new e({user:t,providerId:ql(r),_tokenResponse:r,operationType:n})}};function ql(e){return e.providerId?e.providerId:`phoneNumber`in e?`phone`:null}var Jl=class e extends xa{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 Yl(e,t,n,r){return(t===`reauthenticate`?n._getReauthenticationResolver(e):n._getIdTokenResponse(e)).catch(n=>{throw n.code===`auth/multi-factor-auth-required`?Jl._fromErrorAndOperation(e,n,t,r):n})}async function Xl(e,t,n=!1){let r=await vc(e,t._linkToIdToken(e.auth,await e.getIdToken()),n);return V._forOperation(e,`link`,r)}async function Zl(e,t,n=!1){let{auth:r}=e;if(as(r.app))return Promise.reject(Rs(r));let i=`reauthenticate`;try{let a=await vc(e,Yl(r,i,t,e),n);R(a.idToken,r,`internal-error`);let o=gc(a.idToken);R(o,r,`internal-error`);let{sub:s}=o;return R(e.uid===s,r,`user-mismatch`),V._forOperation(e,i,a)}catch(e){throw e?.code===`auth/user-not-found`&&Fs(r,`user-mismatch`),e}}async function Ql(e,t,n=!1){if(as(e.app))return Promise.reject(Rs(e));let r=`signIn`,i=await Yl(e,r,t),a=await V._fromIdTokenResponse(e,r,i);return n||await e._updateCurrentUser(a.user),a}function $l(e,t,n,r){return Fa(e).onIdTokenChanged(t,n,r)}function eu(e,t,n){return Fa(e).beforeAuthStateChanged(t,n)}function tu(e,t,n,r){return Fa(e).onAuthStateChanged(t,n,r)}function nu(e){return Fa(e).signOut()}function ru(e,t){return tc(e,`POST`,`/v2/accounts/mfaEnrollment:start`,ec(e,t))}function iu(e,t){return tc(e,`POST`,`/v2/accounts/mfaEnrollment:finalize`,ec(e,t))}function au(e,t){return tc(e,`POST`,`/v2/accounts/mfaEnrollment:start`,ec(e,t))}function ou(e,t){return tc(e,`POST`,`/v2/accounts/mfaEnrollment:finalize`,ec(e,t))}var su=`__sak`,cu=class{constructor(e,t){this.storageRetriever=e,this.type=t}_isAvailable(){try{return this.storage?(this.storage.setItem(su,`1`),this.storage.removeItem(su),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()}},lu=1e3,uu=10,du=class extends cu{constructor(){super(()=>window.localStorage,`LOCAL`),this.boundEventHandler=(e,t)=>this.onStorageEvent(e,t),this.listeners={},this.localCache={},this.pollTimer=null,this.fallbackToPolling=Jc(),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)}}
vendor: 1,238 bytes, line 23
23onStorageEvent(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);qc()&&i!==e.newValue&&e.newValue!==e.oldValue?setTimeout(r,uu):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)})},lu)}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
23ject.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]}};du.type=`LOCAL`;var fu=du,pu=1e3;function mu(e){let t=e.replace(/[\\^$.*+?()[\]{}|]/g,`\\$&`),n=RegExp(`${t}=([^;]+)`);return document.cookie.match(n)?.[1]??null}function hu(e){return`${window.location.protocol===`http:`?`__dev_`:`__HOST-`}FIREBASE_${e.split(`:`)[3]}`}var gu=class{constructor(){this.type=`COOKIE`,this.listenerUnsubscribes=new Map}_getFinalTarget(e){let t=new URL(`${window.location.origin}/__cookies__`);return t.searchParams.set(`finalTarget`,e),t}async _isAvailable(){return typeof isSecureContext==`boolean`&&!isSecureContext||typeof navigator>`u`||typeof document>`u`?!1:navigator.cookieEnabled??!0}async _set(e,t){}async _get(e){if(!this._isAvailable())return null;let t=hu(e);return window.cookieStore?(await window.cookieStore.get(t))?.value:mu(t)}async _remove(e){if(!this._isAvailable()||!await this._get(e))return;let t=hu(e);document.cookie=`${t}=;Max-Age=34560000;Partitioned;Secure;SameSite=Strict;Path=/;Priority=High`,await fetch(`/__cookies__`,{method:`DELETE`}).catch(()=>void 0)}_addListener(e,t){if(!this._isAvailable())return;let n=hu(e);if(window.cookieStore){let e=(e=>{let r=e.changed.find(e=>e.name===n);r&&t(r.value),e.deleted.find(e=>e.name===n)&&t(null)});return this.listenerUnsubscribes.set(t,()=>window.cookieStore.removeEventListener(`change`,e)),window.cookieStore.addEventListener(`change`,e)}let r=mu(n),i=setInterval(()=>{let e=mu(n);e!==r&&(t(e),r=e)},pu);this.listenerUnsubscribes.set(t,()=>clearInterval(i))}_removeListener(e,t){let n=this.listenerUnsubscribes.get(t);n&&(n(),this.listenerUnsubscribes.delete(t))}};gu.type=`COOKIE`;var _u=class extends cu{constructor(){super(()=>window.sessionStorage,`SESSION`)}_addListener(e,t){}_removeListener(e,t){}};_u.type=`SESSION`;var vu=_u;function yu(e){return Promise.all(e.map(async e=>{try{return{fulfilled:!0,value:await e}}catch(e){return{fulfilled:!1,reason:e}}}))}var bu=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 yu(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)}};bu.receivers=[];function xu(e=``,t=10){let n=``;for(let e=0;e<t;e++)n+=Math.floor(Math.random()*10);return e+n}var Su=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=xu(``,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`));break}}},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 Cu(){return window}
23function wu(e){Cu().location.href=e}function Tu(){return Cu().WorkerGlobalScope!==void 0&&typeof Cu().importScripts==`function`}async function Eu(){if(!navigator?.serviceWorker)return null;try{return(await navigator.serviceWorker.ready).active}catch{return null}}function Du(){return navigator?.serviceWorker?.controller||null}function Ou(){return Tu()?self:null}var ku=`firebaseLocalStorageDb`,Au=1,ju=`firebaseLocalStorage`,Mu=`fbase_key`,Nu=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 Pu(e,t){return e.transaction([ju],t?`readwrite`:`readonly`).objectStore(ju)}function Fu(){return new Nu(indexedDB.deleteDatabase(ku)).toPromise()}function Iu(){let e=indexedDB.open(ku,Au);return new Promise((t,n)=>{e.addEventListener(`error`,()=>{n(e.error)}),e.addEventListener(`upgradeneeded`,()=>{let t=e.result;try{t.createObjectStore(ju,{keyPath:Mu})}catch(e){n(e)}}),e.addEventListener(`success`,async()=>{let n=e.result;n.objectStoreNames.contains(ju)?t(n):(n.close(),await Fu(),t(await Iu()))})})}async function Lu(e,t,n){return new Nu(Pu(e,!0).put({[Mu]:t,value:n})).toPromise()}async function Ru(e,t){let n=await new Nu(Pu(e,!1).get(t)).toPromise();return n===void 0?null:n.value}function zu(e,t){return new Nu(Pu(e,!0).delete(t)).toPromise()}var Bu=800,Vu=3,Hu=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 Iu(),this.db}async _withRetries(e){let t=0;for(;;)try{return await e(await this._openDb())}catch(e){if(t++>Vu)throw e;this.db&&=(this.db.close(),void 0)}}async initializeServiceWorkerMessaging(){return Tu()?this.initializeReceiver():this.initializeSender()}async initializeReceiver(){this.receiver=bu._getInstance(Ou()),this.receiver._subscribe(`keyChanged`,async(e,t)=>({keyProcessed:(await this._poll()).includes(t.key)})),this.receiver._subscribe(`ping`,async(e,t)=>[`keyChanged`])}async initializeSender(){if(this.activeServiceWorker=await Eu(),!this.activeServiceWorker)return;this.sender=new Su(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||Du()!==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 Iu();return await Lu(e,su,`1`),await zu(e,su),!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=>Lu(n,e,t)),this.localCache[e]=t,this.notifyServiceWorker(e)))}async _get(e){let t=await this._withRetries(t=>Ru(t,e));return this.localCache[e]=t,t}async _remove(e){return this._withPendingWrite(async()=>(await this._withRetries(t=>zu(t,e)),delete this.localCache[e],this.notifyServiceWorker(e)))}async _poll(){let e=await this._withRetries(e=>new Nu(Pu(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(),Bu)}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
23ject.keys(this.listeners).length===0&&this.stopPolling()}};Hu.type=`LOCAL`;var Uu=Hu;function Wu(e,t){return tc(e,`POST`,`/v2/accounts/mfaSignIn:start`,ec(e,t))}function Gu(e,t){return tc(e,`POST`,`/v2/accounts/mfaSignIn:finalize`,ec(e,t))}function Ku(e,t){return tc(e,`POST`,`/v2/accounts/mfaSignIn:finalize`,ec(e,t))}cl(`rcb`),new Js(3e4,6e4);var qu=`recaptcha`;async function Ju(e,t,n){if(!e._getRecaptchaConfig())try{await gl(e)}catch{console.log(`Failed to initialize reCAPTCHA Enterprise config. Triggering the reCAPTCHA v2 verification.`)}try{let r;if(r=typeof t==`string`?{phoneNumber:t}:t,`session`in r){let t=r.session;if(`phoneNumber`in r)return R(t.type===`enroll`,e,`internal-error`),(await hl(e,{idToken:t.credential,phoneEnrollmentInfo:{phoneNumber:r.phoneNumber,clientType:`CLIENT_TYPE_WEB`}},`mfaSmsEnrollment`,async(e,t)=>t.phoneEnrollmentInfo.captchaResponse===fl?(R(n?.type===qu,e,`argument-error`),ru(e,await Yu(e,t,n))):ru(e,t),`PHONE_PROVIDER`).catch(e=>Promise.reject(e))).phoneSessionInfo.sessionInfo;{R(t.type===`signin`,e,`internal-error`);let i=r.multiFactorHint?.uid||r.multiFactorUid;return R(i,e,`missing-multi-factor-info`),(await hl(e,{mfaPendingCredential:t.credential,mfaEnrollmentId:i,phoneSignInInfo:{clientType:`CLIENT_TYPE_WEB`}},`mfaSmsSignIn`,async(e,t)=>t.phoneSignInInfo.captchaResponse===fl?(R(n?.type===qu,e,`argument-error`),Wu(e,await Yu(e,t,n))):Wu(e,t),`PHONE_PROVIDER`).catch(e=>Promise.reject(e))).phoneResponseInfo.sessionInfo}}else return(await hl(e,{phoneNumber:r.phoneNumber,clientType:`CLIENT_TYPE_WEB`},`sendVerificationCode`,async(e,t)=>t.captchaResponse===fl?(R(n?.type===qu,e,`argument-error`),Nl(e,await Yu(e,t,n))):Nl(e,t),`PHONE_PROVIDER`).catch(e=>Promise.reject(e))).sessionInfo}finally{n?._reset()}}async function Yu(e,t,n){R(n.type===qu,e,`argument-error`);let r=await n.verify();R(typeof r==`string`,e,`argument-error`);let i={...t};if(`phoneEnrollmentInfo`in i){let e=i.phoneEnrollmentInfo.phoneNumber,t=i.phoneEnrollmentInfo.captchaResponse,n=i.phoneEnrollmentInfo.clientType,a=i.phoneEnrollmentInfo.recaptchaVersion;return Object.assign(i,{phoneEnrollmentInfo:{phoneNumber:e,recaptchaToken:r,captchaResponse:t,clientType:n,recaptchaVersion:a}}),i}else if(`phoneSignInInfo`in i){let e=i.phoneSignInInfo.captchaResponse,t=i.phoneSignInInfo.clientType,n=i.phoneSignInInfo.recaptchaVersion;return Object.assign(i,{phoneSignInInfo:{recaptchaToken:r,captchaResponse:e,clientType:t,recaptchaVersion:n}}),i}else return Object.assign(i,{recaptchaToken:r}),i}var Xu=class e{constructor(t){this.providerId=e.PROVIDER_ID,this.auth=tl(t)}verifyPhoneNumber(e,t){return Ju(this.auth,e,Fa(t))}static credential(e,t){return Rl._fromVerification(e,t)}static credentialFromResult(t){let n=t;return e.credentialFromTaggedObject(n)}static credentialFromError(t){return e.credentialFromTaggedObject(t.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;let{phoneNumber:t,temporaryProof:n}=e;return t&&n?Rl._fromTokenResponse(t,n):null}};Xu.PROVIDER_ID=`phone`,Xu.PHONE_SIGN_IN_METHOD=`phone`;function Zu(e,t){return t?Mc(t):(R(e._popupRedirectResolver,e,`argument-error`),e._popupRedirectResolver)}var Qu=class extends wl{constructor(e){super(`custom`,`custom`),this.params=e}_getIdTokenResponse(e){return Al(e,this._buildIdpRequest())}_linkToIdToken(e,t){return Al(e,this._buildIdpRequest(t))}_getReauthenticationResolver(e){return Al(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 $u(e){return Ql(e.auth,new Qu(e),e.bypassAuthState)}function ed(e){let{auth:t,user:n}=e;return R(n,t,`internal-error`),Zl(n,new Qu(e),e.bypassAuthState)}async function td(e){let{auth:t,user:n}=e;return R(n,t,`internal-error`),Xl(n,new Qu(e),e.bypassAuthState)}var nd=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 $u;case`linkViaPopup`:case`linkViaRedirect`:return td;case`reauthViaPopup`:case`reauthViaRedirect`:return ed;default:Fs(this.auth,`internal-error`)}}resolve(e){Hs(this.pendingPromise,`Pending promise was never set`),this.pendingPromise.resolve(e),this.unregisterAndCleanUp()}reject(e){Hs(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()}},rd=new Js(2e3,1e4);async function id(e,t,n){if(as(e.app))return Promise.reject(Is(e,`operation-not-supported-in-this-environment`));let r=tl(e);return zs(e,t,Ul),new ad(r,`signInViaPopup`,t,Zu(r,n)).executeNotNull()}var ad=class e extends nd{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 R(e,this.auth,`internal-error`),e}async onExecution(){Hs(this.filter.length===1,`Popup operations only handle one event`);let e=xu();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(Is(this.auth,`web-storage-unsupported`))}),this.pollUserCancellation()}get eventId(){return this.authWindow?.associatedEvent||null}cancel(){this.reject(Is(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(Is(this.auth,`popup-closed-by-user`))},8e3);return}this.pollId=window.setTimeout(e,rd.get())};e()}};ad.currentPopupAction=null;var od=`pendingRedirect`,sd=new Map,cd=class extends nd{constructor(e,t,n=!1){super(e,[`signInViaRedirect`,`linkViaRedirect`,`reauthViaRedirect`,`unknown`],t,void 0,n),this.eventId=null}async execute(){let e=sd.get(this.auth._key());if(!e){try{let t=await ld(this.resolver,this.auth)?await super.execute():null;e=()=>Promise.resolve(t)}catch(t){e=()=>Promise.reject(t)}sd.set(this.auth._key(),e)}return this.bypassAuthState||sd.set(this.auth._key(),()=>Promise.resolve(null)),e()}async onAuthEvent(e){if(e.type===`signInViaRedirect`)return super.onAuthEvent(e);
23if(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 ld(e,t){let n=fd(t),r=dd(e);if(!await r._isAvailable())return!1;let i=await r._get(n)===`true`;return await r._remove(n),i}function ud(e,t){sd.set(e._key(),t)}function dd(e){return Mc(e._redirectPersistence)}function fd(e){return Fc(od,e.config.apiKey,e.name)}async function pd(e,t,n=!1){if(as(e.app))return Promise.reject(Rs(e));let r=tl(e),i=await new cd(r,Zu(r,t),n).execute();return i&&!n&&(delete i.user._redirectEventId,await r._persistUserIfCurrent(i.user),await r._setRedirectUser(null,t)),i}var md=600*1e3,hd=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||!vd(e)?t:(this.hasHandledPotentialRedirect=!0,t||=(this.queuedRedirectEvent=e,!0),t)}sendToConsumer(e,t){if(e.error&&!_d(e)){let n=e.error.code?.split(`auth/`)[1]||`internal-error`;t.onError(Is(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>=md&&this.cachedEventUids.clear(),this.cachedEventUids.has(gd(e))}saveEventToCache(e){this.cachedEventUids.add(gd(e)),this.lastProcessedEventTime=Date.now()}};function gd(e){return[e.type,e.eventId,e.sessionId,e.tenantId].filter(e=>e).join(`-`)}function _d({type:e,error:t}){return e===`unknown`&&t?.code===`auth/no-auth-event`}function vd(e){switch(e.type){case`signInViaRedirect`:case`linkViaRedirect`:case`reauthViaRedirect`:return!0;case`unknown`:return _d(e);default:return!1}}async function yd(e,t={}){return tc(e,`GET`,`/v1/projects`,t)}var bd=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,xd=/^https?/;async function Sd(e){if(e.config.emulator)return;let{authorizedDomains:t}=await yd(e);for(let e of t)try{if(Cd(e))return}catch{}Fs(e,`unauthorized-domain`)}function Cd(e){let t=Us(),{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(!xd.test(n))return!1;if(bd.test(e))return r===e;let i=e.replace(/\./g,`\\.`);return RegExp(`^(.+\\.`+i+`|`+i+`)$`,`i`).test(r)}var wd=new Js(3e4,6e4);function Td(){let e=Cu().___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 Ed(e){return new Promise((t,n)=>{function r(){Td(),gapi.load(`gapi.iframes`,{callback:()=>{t(gapi.iframes.getContext())},ontimeout:()=>{Td(),n(Is(e,`network-request-failed`))},timeout:wd.get()})}if(Cu().gapi?.iframes?.Iframe)t(gapi.iframes.getContext());else if(Cu().gapi?.load)r();else{let t=cl(`iframefcb`);return Cu()[t]=()=>{gapi.load?r():n(Is(e,`network-request-failed`))},al(`${sl()}?onload=${t}`).catch(e=>n(e))}}).catch(e=>{throw Dd=null,e})}var Dd=null;function Od(e){return Dd||=Ed(e),Dd}var kd=new Js(5e3,15e3),H=`__/auth/iframe`,Ad=`emulator/auth/iframe`,jd={style:{position:`absolute`,top:`-100px`,width:`1px`,height:`1px`},"aria-hidden":`true`,tabindex:`-1`},Md=new Map([[`identitytoolkit.googleapis.com`,`p`],[`staging-identitytoolkit.sandbox.googleapis.com`,`s`],[`test-identitytoolkit.sandbox.googleapis.com`,`t`]]);function Nd(e){let t=e.config;R(t.authDomain,e,`auth-domain-config-required`);let n=t.emulator?Ys(t,Ad):`https://${e.config.authDomain}/${H}
23`,r={apiKey:t.apiKey,appName:e.name,v:cs},i=Md.get(e.config.apiHost);i&&(r.eid=i);let a=e._getFrameworks();return a.length&&(r.fw=a.join(`,`)),`${n}?${Oa(r).slice(1)}`}async function Pd(e){let t=await Od(e),n=Cu().gapi;return R(n,e,`internal-error`),t.open({where:document.body,url:Nd(e),messageHandlersFilter:n.iframes.CROSS_ORIGIN_IFRAMES_FILTER,attributes:jd,dontclear:!0},t=>new Promise(async(n,r)=>{await t.restyle({setHideOnLeave:!1});let i=Is(e,`network-request-failed`),a=Cu().setTimeout(()=>{r(i)},kd.get());function o(){Cu().clearTimeout(a),n(t)}t.ping(o).then(o,()=>{r(i)})}))}var Fd={location:`yes`,resizable:`yes`,statusbar:`yes`,toolbar:`no`},Id=500,Ld=600,Rd=`_blank`,zd=`http://localhost`,Bd=class{constructor(e){this.window=e,this.associatedEvent=null}close(){if(this.window)try{this.window.close()}catch{}}};function Vd(e,t,n,r=Id,i=Ld){let a=Math.max((window.screen.availHeight-i)/2,0).toString(),o=Math.max((window.screen.availWidth-r)/2,0).toString(),s=``,c={...Fd,width:r.toString(),height:i.toString(),top:a,left:o},l=ua().toLowerCase();n&&(s=Bc(l)?Rd:n),Rc(l)&&(t||=zd,c.scrollbars=`yes`);let u=Object.entries(c).reduce((e,[t,n])=>`${e}${t}=${n},`,``);if(Kc(l)&&s!==`_self`)return Hd(t||``,s),new Bd(null);let d=window.open(t||``,s,u);R(d,e,`popup-blocked`);try{d.focus()}catch{}return new Bd(d)}function Hd(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 Ud=`__/auth/handler`,Wd=`emulator/auth/handler`,Gd=`fac`;async function Kd(e,t,n,r,i,a){R(e.config.authDomain,e,`auth-domain-config-required`),R(e.config.apiKey,e,`invalid-api-key`);let o={apiKey:e.config.apiKey,appName:e.name,authType:n,redirectUrl:r,v:cs,eventId:i};if(t instanceof Ul){t.setDefaultLanguage(e.languageCode),o.providerId=t.providerId||``,Ta(t.getCustomParameters())||(o.customParameters=JSON.stringify(t.getCustomParameters()));for(let[e,t]of Object.entries(a||{}))o[e]=t}if(t instanceof Wl){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?`#${Gd}=${encodeURIComponent(c)}`:``;return`${qd(e)}?${Oa(s).slice(1)}${l}`}function qd({config:e}){return e.emulator?Ys(e,Wd):`https://${e.authDomain}/${Ud}`}var Jd=`webStorageSupport`,Yd=class{constructor(){this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=vu,this._completeRedirectFn=pd,this._overrideRedirectResult=ud}async _openPopup(e,t,n,r){return Hs(this.eventManagers[e._key()]?.manager,`_initialize() not called before _openPopup()`),Vd(e,await Kd(e,t,n,Us(),r),xu())}async _openRedirect(e,t,n,r){return await this._originValidation(e),wu(await Kd(e,t,n,Us(),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):(Hs(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 Pd(e),n=new hd(e);return t.register(`authEvent`,t=>(R(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(Jd,{type:Jd},n=>{let r=n?.[0]?.[Jd];r!==void 0&&t(!!r),Fs(e,`internal-error`)},gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}_originValidation(e){let t=e._key();return this.originValidationPromises[t]||(this.originValidationPromises[t]=Sd(e)),this.originValidationPromises[t]}get _shouldInitProactively(){return Jc()||zc()||Gc()}},Xd=class{constructor(e){this.factorId=e}_process(e,t,n){switch(t.type){case`enroll`:return this._finalizeEnroll(e,t.credential,n);case`signin`:return this._finalizeSignIn(e,t.credential);default:return Vs(`unexpected MultiFactorSessionType`)}}}
23,Zd=class e extends Xd{constructor(e){super(`phone`),this.credential=e}static _fromCredential(t){return new e(t)}_finalizeEnroll(e,t,n){return iu(e,{idToken:t,displayName:n,phoneVerificationInfo:this.credential._makeVerificationRequest()})}_finalizeSignIn(e,t){return Gu(e,{mfaPendingCredential:t,phoneVerificationInfo:this.credential._makeVerificationRequest()})}},Qd=class{constructor(){}static assertion(e){return Zd._fromCredential(e)}};Qd.FACTOR_ID=`phone`;var $d=class{static assertionForEnrollment(e,t){return ef._fromSecret(e,t)}static assertionForSignIn(e,t){return ef._fromEnrollmentId(e,t)}static async generateSecret(e){let t=e;R(t.user?.auth!==void 0,`internal-error`);let n=await au(t.user.auth,{idToken:t.credential,totpEnrollmentInfo:{}});return tf._fromStartTotpMfaEnrollmentResponse(n,t.user.auth)}};$d.FACTOR_ID=`totp`;var ef=class e extends Xd{constructor(e,t,n){super(`totp`),this.otp=e,this.enrollmentId=t,this.secret=n}static _fromSecret(t,n){return new e(n,void 0,t)}static _fromEnrollmentId(t,n){return new e(n,t)}async _finalizeEnroll(e,t,n){return R(this.secret!==void 0,e,`argument-error`),ou(e,{idToken:t,displayName:n,totpVerificationInfo:this.secret._makeTotpVerificationInfo(this.otp)})}async _finalizeSignIn(e,t){R(this.enrollmentId!==void 0&&this.otp!==void 0,e,`argument-error`);let n={verificationCode:this.otp};return Ku(e,{mfaPendingCredential:t,mfaEnrollmentId:this.enrollmentId,totpVerificationInfo:n})}},tf=class e{constructor(e,t,n,r,i,a,o){this.sessionInfo=a,this.auth=o,this.secretKey=e,this.hashingAlgorithm=t,this.codeLength=n,this.codeIntervalSeconds=r,this.enrollmentCompletionDeadline=i}static _fromStartTotpMfaEnrollmentResponse(t,n){return new e(t.totpSessionInfo.sharedSecretKey,t.totpSessionInfo.hashingAlgorithm,t.totpSessionInfo.verificationCodeLength,t.totpSessionInfo.periodSec,new Date(t.totpSessionInfo.finalizeEnrollmentTime).toUTCString(),t.totpSessionInfo.sessionInfo,n)}_makeTotpVerificationInfo(e){return{sessionInfo:this.sessionInfo,verificationCode:e}}generateQrCodeUrl(e,t){let n=!1;return(nf(e)||nf(t))&&(n=!0),n&&(nf(e)&&(e=this.auth.currentUser?.email||`unknownuser`),nf(t)&&(t=this.auth.name)),`otpauth://totp/${t}:${e}?secret=${this.secretKey}&issuer=${t}&algorithm=${this.hashingAlgorithm}&digits=${this.codeLength}`}};function nf(e){return e===void 0||e?.length===0}var rf=`@firebase/auth`,af=`1.13.1`,of=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(){R(this.auth._initializationPromise,`dependent-sdk-initialized-before-auth`)}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}};function sf(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 cf(e){rs(new Ra(`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;R(o&&!o.includes(`:`),`invalid-api-key`,{appName:r.name});let c=new el(r,i,a,{apiKey:o,authDomain:s,clientPlatform:e,apiHost:`identitytoolkit.googleapis.com`,tokenApiHost:`securetoken.googleapis.com`,apiScheme:`https`,sdkClientVersion:Yc(e)});return vl(c,n),c},`PUBLIC`).setInstantiationMode(`EXPLICIT`).setInstanceCreatedCallback((e,t,n)=>{e.getProvider(`auth-internal`).initialize()})),rs(new Ra(`auth-internal`,e=>(e=>new of(e))(tl(e.getProvider(`auth`).getImmediate())),`PRIVATE`).setInstantiationMode(`EXPLICIT`)),ds(rf,af,sf(e)),ds(rf,af,`esm2020`)}var lf=sa(`authIdTokenMaxAge`)||300,uf=null,df=e=>async t=>{let n=t&&await t.getIdTokenResult(),r=n&&(new Date().getTime()-Date.parse(n.issuedAtTime))/1e3;if(r&&r>lf)return;let i=n?.token;
23uf!==i&&(uf=i,await fetch(e,{method:i?`POST`:`DELETE`,headers:i?{Authorization:`Bearer ${i}`}:{}}))};function ff(e=us()){let t=is(e,`auth`);if(t.isInitialized())return t.getImmediate();let n=_l(e,{popupRedirectResolver:Yd,persistence:[Uu,fu,vu]}),r=sa(`authTokenSyncURL`);if(r&&typeof isSecureContext==`boolean`&&isSecureContext){let e=new URL(r,location.origin);if(location.origin===e.origin){let t=df(e.toString());eu(n,t,()=>t(n.currentUser)),$l(n,e=>t(e))}}let i=ia(`auth`);return i&&yl(n,`http://${i}`),n}function pf(){return document.getElementsByTagName(`head`)?.[0]??document}il({loadJS(e){return new Promise((t,n)=>{let r=document.createElement(`script`);r.setAttribute(`src`,e),r.onload=t,r.onerror=e=>{let t=Is(`internal-error`);t.customData=e,n(t)},r.type=`text/javascript`,r.charset=`UTF-8`,pf().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=`}),cf(`Browser`);var mf=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{},hf={},gf,_f;(function(){var e;function t(e,t){function n(){}n.prototype=t.prototype,e.F=t.prototype,e.prototype=new n,e.prototype.constructor=e,e.D=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.C=Array(this.blockSize),this.o=this.h=0,this.u()}t(r,n),r.prototype.u=function(){this.g[0]=1732584193,this.g[1]=4023233417,this.g[2]=2562383102,this.g[3]=271733878,this.o=this.h=0};function i(e,t,n){n||=0;let r=Array(16);if(typeof t==`string`)for(var i=0;i<16;++i)r[i]=t.charCodeAt(n++)|t.charCodeAt(n++)<<8|t.charCodeAt(n++)<<16|t.charCodeAt(n++)<<24;else for(i=0;i<16;++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];let a=e.g[3],o;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>>>
2326),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.v=function(e,t){t===void 0&&(t=e.length);let n=t-this.blockSize,r=this.C,a=this.h,o=0;for(;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.A=function(){var e=Array((this.h<56?this.blockSize:this.blockSize*2)-this.h);e[0]=128;for(var t=1;t<e.length-8;++t)e[t]=0;t=this.o*8;for(var n=e.length-8;n<e.length;++n)e[n]=t&255,t/=256;for(this.v(e),e=Array(16),t=0,n=0;n<4;++n)for(let r=0;r<32;r+=8)e[t++]=this.g[n]>>>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;let n=[],r=!0;for(let i=e.length-1;i>=0;i--){let a=e[i]|0;r&&a==t||(n[i]=a,r=!1)}this.g=n}var s={};function c(e){return-128<=e&&e<128?a(e,function(e){return new o([e|0],e<0?-1:0)}):new o([e|0],e<0?-1:0)}function l(e){if(isNaN(e)||!isFinite(e))return d;if(e<0)return g(l(-e));let t=[],n=1;for(let 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,t<2||36<t)throw Error(`radix out of range: `+t);if(e.charAt(0)==`-`)return g(u(e.substring(1),t));if(e.indexOf(`-`)>=0)throw Error(`number format error: interior "-" character`);let n=l(t**8),r=d;for(let a=0;a<e.length;a+=8){var i=Math.min(8,e.length-a);let o=parseInt(e.substring(a,a+i),t);i<8?(i=l(t**+i),r=r.j(i).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();let e=0,t=1;for(let n=0;n<this.g.length;n++){let r=this.i(n);e+=(r>=0?r:4294967296+r)*t,t*=4294967296}return e},e.toString=function(e){if(e||=10,e<2||36<e)throw Error(`radix out of range: `+e);if(m(this))return`0`;if(h(this))return`-`+g(this).toString(e);let t=l(e**6);var n=this;let r=``;for(;;){let i=b(n,t).g;n=_(n,i.j(t));let a=((n.g.length>0?n.g[0]:n.h)>>>0).toString(e);if(n=i,m(n))return a+r;for(;a.length<6;)a=`0`+a;r=a+r}},e.i=function(e){return e<0?0:e<this.g.length?this.g[e]:this.h};function m(e){if(e.h!=0)return!1;for(let 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){let t=e.g.length,n=[];for(let 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){let t=Math.max(this.g.length,e.g.length),n=[],r=0;for(let i=0;i<=t;i++){let t=r+(this.i(i)&65535)+(e.i(i)&65535),a=(t>>>16)+(this.i(i)>>>16)+(e.i(i)>>>16);r=a>>>16,t&=65535,a&=65535,n[i]=a<<16|t}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(this.l(p)<0&&e.l(p)<0)return l(this.m()*e.m());let t=this.g.length+e.g.length,n=[];for(var r=0;r<2*t;r++)n[r]=0;for(r=0;r<this.g.length;r++)for(let t=0;t<e.g.length;t++){let i=this.i(r)>>>16,a=this.i(r)&65535,o=e.i(t)>>>16,s=e.i(t)&65535;n[2*r+2*t]+=a*s,v(n,2*r+2*t),n[2*r+2*t+1]+=i*s,v(n,2*r+2*t+1),n[2*r+2*t+1]+=a*o,v(n,2*r+2*t+1),n[2*r+2*t+2]+=i*o,v(n,2*r+2*t+2)}for(e=0;e<t;e++)n[e]=n[2*e+1]<<16|n[2*e];for(e=t;e<2*t;e++)n[e]=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(e.g.length>30){if(h(e)||h(t))throw Error(`slowDivide_ only works with positive integers.`);for(var n=f,r=t;r.l(e)<=0;)n=x(n),r=x(r);var i=ee(n,1),a=ee(r,1);for(r=ee(r,2),n=ee(n,2);!m(r);){var o=a.add(r);o.l(e)<=0&&(i=i.add(n),a=o),r=ee(r,1),n=ee(n,1)}return t=_(e,i.j(t)),new y(i,t)}for(i=d;
23e.l(t)>=0;){for(n=Math.max(1,Math.floor(e.m()/t.m())),r=Math.ceil(Math.log(n)/Math.LN2),r=r<=48?1:2**(r-48),a=l(n),o=a.j(t);h(o)||o.l(e)>0;)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.B=function(e){return b(this,e).h},e.and=function(e){let t=Math.max(this.g.length,e.g.length),n=[];for(let 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){let t=Math.max(this.g.length,e.g.length),n=[];for(let 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){let t=Math.max(this.g.length,e.g.length),n=[];for(let r=0;r<t;r++)n[r]=this.i(r)^e.i(r);return new o(n,this.h^e.h)};function x(e){let t=e.g.length+1,n=[];for(let r=0;r<t;r++)n[r]=e.i(r)<<1|e.i(r-1)>>>31;return new o(n,e.h)}function ee(e,t){let n=t>>5;t%=32;let r=e.g.length-n,i=[];for(let a=0;a<r;a++)i[a]=t>0?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.A,r.prototype.reset=r.prototype.u,r.prototype.update=r.prototype.v,_f=hf.Md5=r,o.prototype.add=o.prototype.add,o.prototype.multiply=o.prototype.j,o.prototype.modulo=o.prototype.B,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,gf=hf.Integer=o}).apply(mf===void 0?typeof self<`u`?self:typeof window<`u`?window:{}:mf);var vf=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{},yf={},bf,xf,Sf,Cf,wf,Tf,Ef,Df;(function(){var e,t=Object.defineProperty;function n(e){e=[typeof globalThis==`object`&&globalThis,e,typeof window==`object`&&window,typeof self==`object`&&self,typeof vf==`object`&&vf];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})}}i(`Symbol.dispose`,function(e){return e||Symbol(`Symbol.dispose`)}),i(`Array.prototype.values`,function(e){return e||function(){return this[Symbol.iterator]()}}),i(`Object.entries`,function(e){return e||function(e){var t=[],n;for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push([n,e[n]]);return t}});var a=a||{},o=this||self;function s(e){var t=typeof e;return t==`object`&&e!=null||t==`function`}function c(e,t,n){return e.call.apply(e.bind,arguments)}function l(e,t,n){return l=c,l.apply(null,arguments)}function u(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 d(e,t){function n(){}n.prototype=t.prototype,e.Z=t.prototype,e.prototype=new n,e.prototype.constructor=e,e.Ob=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)}}var f=typeof AsyncContext<`u`&&typeof AsyncContext.Snapshot==`function`?e=>e&&AsyncContext.Snapshot.wrap(e):e=>e;function p(e){let t=e.length;if(t>0){let n=Array(t);for(let r=0;r<t;r++)n[r]=e[r];return n}return[]}function m(e,t){for(let t=1;t<arguments.length;t++){let r=arguments[t];var n=typeof r;if(n=n==`object`?r?Array.isArray(r)?`array`:n:`null`:n,n==`array`||n==`object`&&typeof r.length==`number`){n=e.length||0;let t=r.length||0;e.length=n+t;for(let i=0;i<t;i++)e[n+i]=r[i]}else e.push(r)}}class h{constructor(e,t){this.i=e,this.j=t,this.h=0,this.g=null}get(){let e;return this.h>0?(this.h--,e=this.g,this.g=e.next,e.next=null):e=this.i(),e}}function g(e){o.setTimeout(()=>{throw e},0)}function _(){var e=S;let t=null;return e.g&&(t=e.g,e.g=e.g.next,e.g||(e.h=null),t.next=null),t}class v{constructor(){this.h=this.g=null}add(e,t){let n=y.get();n.set(e,t),this.h?this.h.next=n:this.g=n,this.h=n}}var y=new h(()=>new b,e=>e.reset());class b{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 x,ee=!1,S=new v,C=()=>{let e=Promise.resolve(void 0);x=()=>{e.then(te)}};function te(){for(var e;e=_();){try{e.h.call(e.g)}catch(e){g(e)}var t=y;t.j(e),t.h<100&&(t.h++,e.next=t.g,t.g=e)}ee=!1}function w(){this.u=this.u,this.C=this.C}w.prototype.u=!1,w.prototype.dispose=function(){this.u||(this.u=!0,this.N())},w.prototype[Symbol.dispose]=function(){this.dispose()},w.prototype.N=function(){if(this.C)for(;this.C.length;)this.C.shift()()};function T(e,t){this.type=e,this.g=this.target=t,this.defaultPrevented=!1}T.prototype.h=function(){this.defaultPrevented=!0};var ne=function(){if(!o.addEventListener||!Object.defineProperty)return!1;var e=!1,t=Object.defineProperty({},`passive`,{get:function(){e=!0}});try{let e=()=>{};o.addEventListener(`test`,e,t),o.removeEventListener(`test`,e,t)}catch{}return e}();function re(e){return/^[\s\xa0]*$/.test(e)}function ie(e,t){T.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&&this.init(e,t)}d(ie,T),ie.prototype.init=function(e,t){let n=this.type=e.type,r=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:null;this.target=e.target||e.srcElement,this.g=t,t=e.relatedTarget,t||(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=e.pointerType,this.state=e.state,this.i=e,e.defaultPrevented&&ie.Z.h.call(this)},ie.prototype.h=function(){ie.Z.h.call(this);let e=this.i;e.preventDefault?e.preventDefault():e.returnValue=!1};var ae=`closure_listenable_`+(Math.random()*1e6|0),oe=0;function se(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=++oe,this.da=this.fa=!1}function ce(e){e.da=!0,e.listener=null,e.proxy=null,e.src=null,e.ha=null}function le(e,t,n){for(let r in e)t.call(n,e[r],r,e)}function E(e,t){for(let n in e)t.call(void 0,e[n],n,e)}function D(e){let t={};for(let n in e)t[n]=e[n];return t}let ue=`constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleStr
23ing toString valueOf`.split(` `);function de(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<ue.length;t++)n=ue[t],Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}}function fe(e){this.src=e,this.g={},this.h=0}fe.prototype.add=function(e,t,n,r,i){let a=e.toString();e=this.g[a],e||(e=this.g[a]=[],this.h++);let o=me(e,t,r,i);return o>-1?(t=e[o],n||(t.fa=!1)):(t=new se(t,this.src,a,!!r,i),t.fa=n,e.push(t)),t};function pe(e,t){let n=t.type;if(n in e.g){var r=e.g[n],i=Array.prototype.indexOf.call(r,t,void 0),a;(a=i>=0)&&Array.prototype.splice.call(r,i,1),a&&(ce(t),e.g[n].length==0&&(delete e.g[n],e.h--))}}function me(e,t,n,r){for(let i=0;i<e.length;++i){let a=e[i];if(!a.da&&a.listener==t&&a.capture==!!n&&a.ha==r)return i}return-1}var he=`closure_lm_`+(Math.random()*1e6|0),ge={};function _e(e,t,n,r,i){if(r&&r.once)return be(e,t,n,r,i);if(Array.isArray(t)){for(let a=0;a<t.length;a++)_e(e,t[a],n,r,i);return null}return n=De(n),e&&e[ae]?e.J(t,n,s(r)?!!r.capture:!!r,i):ve(e,t,n,!1,r,i)}function ve(e,t,n,r,i,a){if(!t)throw Error(`Invalid event type`);let o=s(i)?!!i.capture:!!i,c=Te(e);if(c||(e[he]=c=new fe(e)),n=c.add(t,n,r,o,a),n.proxy)return n;if(r=ye(),n.proxy=r,r.src=e,r.listener=n,e.addEventListener)ne||(i=o),i===void 0&&(i=!1),e.addEventListener(t.toString(),r,i);else if(e.attachEvent)e.attachEvent(Ce(t.toString()),r);else if(e.addListener&&e.removeListener)e.addListener(r);else throw Error(`addEventListener and attachEvent are unavailable.`);return n}function ye(){function e(n){return t.call(e.src,e.listener,n)}let t=we;return e}function be(e,t,n,r,i){if(Array.isArray(t)){for(let a=0;a<t.length;a++)be(e,t[a],n,r,i);return null}return n=De(n),e&&e[ae]?e.K(t,n,s(r)?!!r.capture:!!r,i):ve(e,t,n,!0,r,i)}function xe(e,t,n,r,i){if(Array.isArray(t))for(var a=0;a<t.length;a++)xe(e,t[a],n,r,i);else r=s(r)?!!r.capture:!!r,n=De(n),e&&e[ae]?(e=e.i,a=String(t).toString(),a in e.g&&(t=e.g[a],n=me(t,n,r,i),n>-1&&(ce(t[n]),Array.prototype.splice.call(t,n,1),t.length==0&&(delete e.g[a],e.h--)))):(e&&=Te(e))&&(t=e.g[t.toString()],e=-1,t&&(e=me(t,n,r,i)),(n=e>-1?t[e]:null)&&Se(n))}function Se(e){if(typeof e!=`number`&&e&&!e.da){var t=e.src;if(t&&t[ae])pe(t.i,e);else{var n=e.type,r=e.proxy;t.removeEventListener?t.removeEventListener(n,r,e.capture):t.detachEvent?t.detachEvent(Ce(n),r):t.addListener&&t.removeListener&&t.removeListener(r),(n=Te(t))?(pe(n,e),n.h==0&&(n.src=null,t[he]=null)):ce(e)}}}function Ce(e){return e in ge?ge[e]:ge[e]=`on`+e}function we(e,t){if(e.da)e=!0;else{t=new ie(t,this);let n=e.listener,r=e.ha||e.src;e.fa&&Se(e),e=n.call(r,t)}return e}function Te(e){return e=e[he],e instanceof fe?e:null}var Ee=`__closure_events_fn_`+(Math.random()*1e9>>>0);function De(e){return typeof e==`function`?e:(e[Ee]||(e[Ee]=function(t){return e.handleEvent(t)}),e[Ee])}function Oe(){w.call(this),this.i=new fe(this),this.M=this,this.G=null}d(Oe,w),Oe.prototype[ae]=!0,Oe.prototype.removeEventListener=function(e,t,n,r){xe(this,e,t,n,r)};function O(e,t){var n,r=e.G;if(r)for(n=[];r;r=r.G)n.push(r);if(e=e.M,r=t.type||t,typeof t==`string`)t=new T(t,e);else if(t instanceof T)t.target=t.target||e;else{var i=t;t=new T(r,e),de(t,i)}i=!0;let a,o;if(n)for(o=n.length-1;o>=0;o--)a=t.g=n[o],i=ke(a,r,!0,t)&&i;if(a=t.g=e,i=ke(a,r,!0,t)&&i,i=ke(a,r,!1,t)&&i,n)for(o=0;o<n.length;o++)a=t.g=n[o],i=ke(a,r,!1,t)&&i}Oe.prototype.N=function(){if(Oe.Z.N.call(this),this.i){var e=this.i;for(let t in e.g){let n=e.g[t];for(let e=0;e<n.length;e++)ce(n[e]);delete e.g[t],e.h--}}this.G=null},Oe.prototype.J=function(e,t,n,r){return this.i.add(String(e),t,!1,n,r)},Oe.prototype.K=function(e,t,n,r){return this.i.add(String(e),t,!0,n,r)};function ke(e,t,n,r){if(t=e.i.g[String(t)],!t)return!0;t=t.concat();let i=!0;for(let a=0;a<t.length;++a){let o=t[a];if(o&&!o.da&&o.capture==n){let t=o.listener,n=o.ha||o.src;o.fa&&pe(e.i,o),i=t.call(n,r)!==!1&&i}}return i&&!r.defaultPrevented}function Ae(e,t){if(typeof e!=`function`)if(e&&typeof e.handleEvent==`function`)e=l(e.handleEvent,e);else throw Error(`Invalid listener argument`);return Number(t)>2147483647?-1:o.setTimeout(e,t||0)}function je(e){e.g=Ae(()=>{e.g=null,e.i&&(e.i=!1,je(e))},e.l);let t=e.h;e.h=null,e.m.apply(null,t)}class Me extends w{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:je(this)}N(){super.N(),this.g&&(o.clearTimeout(this.g),this.g=null,this.i=!1,this.h=null)}}function Ne(e){w.call(this),this.h=e,this.g={}}d(Ne,w);var Pe=[];function Fe(e){le(e.g,function(e,t){this.g.hasOwnProperty(t)&&Se(e)},e),e.g={}}Ne.prototype.N=function(){Ne.Z.N.call(this),Fe(this)},Ne.prototype.handleEvent=function(){throw Error(`EventHandler.handleEvent not implemented`)};var Ie=o.JSON.stringify,Le=o.JSON.parse,Re=class{stringify(e){return o.JSON.stringify(e,void 0)}parse(e){return o.JSON.parse(e,void 0)}};function ze(){}function Be(){}var Ve={OPEN:`a`,hb:`b`,ERROR:`c`,tb:`d`};function He(){T.call(this,`d`)}d(He,T);function Ue(){T.call(this,`c`)}d(Ue,T);var We={},Ge=null;function Ke(){return Ge||=new Oe}We.Ia=`serverreachability`;function qe(e){T.call(this,We.Ia,e)}d(qe,T);function Je(e){let t=Ke();O(t,new qe(t))}We.STAT_EVENT=`statevent`;function Ye(e,t){T.call(this,We.STAT_EVENT,e),this.stat=t}d(Ye,T);function Xe(e){let t=Ke();O(t,new Ye(t,e))}We.Ja=`timingevent`;function Ze(e,t){T.call(this,We.Ja,e),this.size=t}d(Ze,T);function Qe(e,t){if(typeof e!=`function`)throw Error(`Fn must not be null and must be a function`);return o.setTimeout(function(){e()},t)}function $e(){this.g=!0}$e.prototype.ua=function(){this.g=!1};function et(e,t,n,r,i,a){e.info(function(){if(e.g)if(a){var o=``,s=a.split(`&`);for(let e=0;e<s.length;e++){var c=s[e].split(`=`);
23if(c.length>1){let e=c[0];c=c[1];let t=e.split(`_`);o=t.length>=2&&t[1]==`type`?o+(e+`=`+c+`&`):o+(e+`=redacted&`)}}}else o=null;else o=a;return`XMLHTTP REQ (`+r+`) [attempt `+i+`]: `+t+`
24`+n+`
25`+o})}function tt(e,t,n,r,i,a,o){e.info(function(){return`XMLHTTP RESP (`+r+`) [ attempt `+i+`]: `+t+`
26`+n+`
27`+a+` `+o})}function nt(e,t,n,r){e.info(function(){return`XMLHTTP TEXT (`+t+`): `+it(e,n)+(r?` `+r:``)})}function rt(e,t){e.info(function(){return`TIMEOUT: `+t})}$e.prototype.info=function(){};function it(e,t){if(!e.g)return t;if(!t)return null;try{let a=JSON.parse(t);if(a){for(e=0;e<a.length;e++)if(Array.isArray(a[e])){var n=a[e];if(!(n.length<2)){var r=n[1];if(Array.isArray(r)&&!(r.length<1)){var i=r[0];if(i!=`noop`&&i!=`stop`&&i!=`close`)for(let e=1;e<r.length;e++)r[e]=``}}}}return Ie(a)}catch{return t}}var at={NO_ERROR:0,cb:1,qb:2,pb:3,kb:4,ob:5,rb:6,Ga:7,TIMEOUT:8,ub:9},ot={ib:`complete`,Fb:`success`,ERROR:`error`,Ga:`abort`,xb:`ready`,yb:`readystatechange`,TIMEOUT:`timeout`,sb:`incrementaldata`,wb:`progress`,lb:`downloadprogress`,Nb:`uploadprogress`},st;function ct(){}d(ct,ze),ct.prototype.g=function(){return new XMLHttpRequest},st=new ct;function lt(e){return encodeURIComponent(String(e))}function ut(e){var t=1;e=e.split(`:`);let n=[];for(;t>0&&e.length;)n.push(e.shift()),t--;return e.length&&n.push(e.join(`:`)),n}function dt(e,t,n,r){this.j=e,this.i=t,this.l=n,this.S=r||1,this.V=new Ne(this),this.H=45e3,this.J=null,this.o=!1,this.u=this.B=this.A=this.M=this.F=this.T=this.D=null,this.G=[],this.g=null,this.C=0,this.m=this.v=null,this.X=-1,this.K=!1,this.P=0,this.O=null,this.W=this.L=this.U=this.R=!1,this.h=new ft}function ft(){this.i=null,this.g=``,this.h=!1}var pt={},mt={};function ht(e,t,n){e.M=1,e.A=Vt(Lt(t)),e.u=n,e.R=!0,gt(e,null)}function gt(e,t){e.F=Date.now(),bt(e),e.B=Lt(e.A);var n=e.B,r=e.S;Array.isArray(r)||(r=[String(r)]),en(n.i,`t`,r),e.C=0,n=e.j.L,e.h=new ft,e.g=Gn(e.j,n?t:null,!e.u),e.P>0&&(e.O=new Me(l(e.Y,e,e.g),e.P)),t=e.V,n=e.g,r=e.ba;var i=`readystatechange`;Array.isArray(i)||(i&&(Pe[0]=i.toString()),i=Pe);for(let e=0;e<i.length;e++){let a=_e(n,i[e],r||t.handleEvent,!1,t.h||t);if(!a)break;t.g[a.key]=a}t=e.J?D(e.J):{},e.u?(e.v||=`POST`,t[`Content-Type`]=`application/x-www-form-urlencoded`,e.g.ea(e.B,e.v,e.u,t)):(e.v=`GET`,e.g.ea(e.B,e.v,null,t)),Je(),et(e.i,e.v,e.B,e.l,e.S,e.u)}dt.prototype.ba=function(e){e=e.target;let t=this.O;t&&Cn(e)==3?t.j():this.Y(e)},dt.prototype.Y=function(e){try{if(e==this.g)a:{let s=Cn(this.g),c=this.g.ya(),l=this.g.ca();if(!(s<3)&&(s!=3||this.g&&(this.h.h||this.g.la()||wn(this.g)))){this.K||s!=4||c==7||Je(c==8||l<=0?3:2),St(this);var t=this.g.ca();this.X=t;var n=_t(this);if(this.o=t==200,tt(this.i,this.v,this.B,this.l,this.S,s,t),this.o){if(this.U&&!this.L){b:{if(this.g){var r,i=this.g;if((r=i.g?i.g.getResponseHeader(`X-HTTP-Initial-Response`):null)&&!re(r)){var a=r;break b}}a=null}if(e=a)nt(this.i,this.l,e,`Initial handshake response via X-HTTP-Initial-Response`),this.L=!0,Tt(this,e);else{this.o=!1,this.m=3,Xe(12),wt(this),Ct(this);break a}}if(this.R){e=!0;let t;for(;!this.K&&this.C<n.length;)if(t=yt(this,n),t==mt){s==4&&(this.m=4,Xe(14),e=!1),nt(this.i,this.l,null,`[Incomplete Response]`);break}else if(t==pt){this.m=4,Xe(15),nt(this.i,this.l,n,`[Invalid Chunk]`),e=!1;break}else nt(this.i,this.l,t,null),Tt(this,t);if(vt(this)&&this.C!=0&&(this.h.g=this.h.g.slice(this.C),this.C=0),s!=4||n.length!=0||this.h.h||(this.m=1,Xe(16),e=!1),this.o=this.o&&e,!e)nt(this.i,this.l,n,`[Invalid Chunked Response]`),wt(this),Ct(this);else if(n.length>0&&!this.W){this.W=!0;var o=this.j;o.g==this&&o.aa&&!o.P&&(o.j.info(`Great, no buffering proxy detected. Bytes received: `+n.length),Ln(o),o.P=!0,Xe(11))}}else nt(this.i,this.l,n,null),Tt(this,n);s==4&&wt(this),this.o&&!this.K&&(s==4?Bn(this.j,this):(this.o=!1,bt(this)))}else Tn(this.g),t==400&&n.indexOf(`Unknown SID`)>0?(this.m=3,Xe(12)):(this.m=0,Xe(13)),wt(this),Ct(this)}}}catch{}};function _t(e){if(!vt(e))return e.g.la();let t=wn(e.g);if(t===``)return``;let n=``,r=t.length,i=Cn(e.g)==4;if(!e.h.i){if(typeof TextDecoder>`u`)return wt(e),Ct(e),``;e.h.i=new o.TextDecoder}for(let a=0;a<r;a++)e.h.h=!0,n+=e.h.i.decode(t[a],{stream:!(i&&a==r-1)});return t.length=0,e.h.g+=n,e.C=0,e.h.g}function vt(e){return e.g?e.v==`GET`&&e.M!=2&&e.j.Aa:!1}function yt(e,t){var n=e.C,r=t.indexOf(`
28`,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.K=!0,wt(this)};function bt(e){e.T=Date.now()+e.H,xt(e,e.H)}function xt(e,t){if(e.D!=null)throw Error(`WatchDog timer not null`);e.D=Qe(l(e.aa,e),t)}function St(e){e.D&&=(o.clearTimeout(e.D),null)}dt.prototype.aa=function(){this.D=null;let e=Date.now();e-this.T>=0?(rt(this.i,this.B),this.M!=2&&(Je(),Xe(17)),wt(this),this.m=2,Ct(this)):xt(this,this.T-e)};function Ct(e){e.j.I==0||e.K||Bn(e.j,e)}function wt(e){St(e);var t=e.O;t&&typeof t.dispose==`function`&&t.dispose(),e.O=null,Fe(e.V),e.g&&(t=e.g,e.g=null,t.abort(),t.dis
28pose())}function Tt(e,t){try{var n=e.j;if(n.I!=0&&(n.g==e||At(n.h,e))){if(!e.L&&At(n.h,e)&&n.I==3){try{var r=n.Ba.g.parse(t)}catch{r=null}if(Array.isArray(r)&&r.length==3){var i=r;if(i[0]==0){a:if(!n.v){if(n.g)if(n.g.F+3e3<e.F)zn(n),kn(n);else break a;In(n),Xe(18)}}else n.xa=i[1],0<n.xa-n.K&&i[2]<37500&&n.F&&n.A==0&&!n.C&&(n.C=Qe(l(n.Va,n),6e3));kt(n.h)<=1&&n.ta&&(n.ta=void 0)}else Hn(n,11)}else if((e.L||n.g==e)&&zn(n),!re(t))for(i=n.Ba.g.parse(t),t=0;t<i.length;t++){let l=i[t],u=l[0];if(!(u<=n.K))if(n.K=u,l=l[1],n.I==2)if(l[0]==`c`){n.M=l[1],n.ba=l[2];let t=l[3];t!=null&&(n.ka=t,n.j.info(`VER=`+n.ka));let i=l[4];i!=null&&(n.za=i,n.j.info(`SVER=`+n.za));let u=l[5];u!=null&&typeof u==`number`&&u>0&&(r=1.5*u,n.O=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&&=(jt(a,a.h),null))}if(r.G){let e=d.g?d.g.getResponseHeader(`X-HTTP-Session-Id`):null;e&&(r.wa=e,k(r.J,r.G,e))}}n.I=3,n.l&&n.l.ra(),n.aa&&(n.T=Date.now()-e.F,n.j.info(`Handshake RTT: `+n.T+`ms`)),r=n;var o=e;if(r.na=Wn(r,r.L?r.ba:null,r.W),o.L){Mt(r.h,o);var s=o,c=r.O;c&&(s.H=c),s.D&&(St(s),bt(s)),r.g=o}else j(r);n.i.length>0&&jn(n)}else l[0]!=`stop`&&l[0]!=`close`||Hn(n,7);else n.I==3&&(l[0]==`stop`||l[0]==`close`?l[0]==`stop`?Hn(n,7):On(n):l[0]!=`noop`&&n.l&&n.l.qa(l),n.A=0)}}Je(4)}catch{}}var Et=class{constructor(e,t){this.g=e,this.map=t}};function Dt(e){this.l=e||10,o.PerformanceNavigationTiming?(e=o.performance.getEntriesByType(`navigation`),e=e.length>0&&(e[0].nextHopProtocol==`hq`||e[0].nextHopProtocol==`h2`)):e=!!(o.chrome&&o.chrome.loadTimes&&o.chrome.loadTimes()&&o.chrome.loadTimes().wasFetchedViaSpdy),this.j=e?this.l:1,this.g=null,this.j>1&&(this.g=new Set),this.h=null,this.i=[]}function Ot(e){return e.h?!0:e.g?e.g.size>=e.j:!1}function kt(e){return e.h?1:e.g?e.g.size:0}function At(e,t){return e.h?e.h==t:e.g?e.g.has(t):!1}function jt(e,t){e.g?e.g.add(t):e.h=t}function Mt(e,t){e.h&&e.h==t?e.h=null:e.g&&e.g.has(t)&&e.g.delete(t)}Dt.prototype.cancel=function(){if(this.i=Nt(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 Nt(e){if(e.h!=null)return e.i.concat(e.h.G);if(e.g!=null&&e.g.size!==0){let t=e.i;for(let n of e.g.values())t=t.concat(n.G);return t}return p(e.i)}var Pt=RegExp(`^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$`);function Ft(e,t){if(e){e=e.split(`&`);for(let n=0;n<e.length;n++){let r=e[n].indexOf(`=`),i,a=null;r>=0?(i=e[n].substring(0,r),a=e[n].substring(r+1)):i=e[n],t(i,a?decodeURIComponent(a.replace(/\+/g,` `)):``)}}}function It(e){this.g=this.o=this.j=``,this.u=null,this.m=this.h=``,this.l=!1;let t;e instanceof It?(this.l=e.l,Rt(this,e.j),this.o=e.o,this.g=e.g,zt(this,e.u),this.h=e.h,Bt(this,tn(e.i)),this.m=e.m):e&&(t=String(e).match(Pt))?(this.l=!1,Rt(this,t[1]||``,!0),this.o=A(t[2]||``),this.g=A(t[3]||``,!0),zt(this,t[4]),this.h=A(t[5]||``,!0),Bt(this,t[6]||``,!0),this.m=A(t[7]||``)):(this.l=!1,this.i=new Yt(null,this.l))}It.prototype.toString=function(){let e=[];var t=this.j;t&&e.push(Ht(t,Wt,!0),`:`);var n=this.g;return(n||t==`file`)&&(e.push(`//`),(t=this.o)&&e.push(Ht(t,Wt,!0),`@`),e.push(lt(n).replace(/%25([0-9a-fA-F]{2})/g,`%$1`)),n=this.u,n!=null&&e.push(`:`,String(n))),(n=this.h)&&(this.g&&n.charAt(0)!=`/`&&e.push(`/`),e.push(Ht(n,n.charAt(0)==`/`?Kt:Gt,!0))),(n=this.i.toString())&&e.push(`?`,n),(n=this.m)&&e.push(`#`,Ht(n,Jt)),e.join(``)},It.prototype.resolve=function(e){let t=Lt(this),n=!!e.j;n?Rt(t,e.j):n=!!e.o,n?t.o=e.o:n=!!e.g,n?t.g=e.g:n=e.u!=null;var r=e.h;if(n)zt(t,e.u);else if(n=!!e.h){if(r.charAt(0)!=`/`)if(this.g&&!this.h)r=`/`+r;else{var i=t.h.lastIndexOf(`/`);i!=-1&&(r=t.h.slice(0,i+1)+r)}if(i=r,i==`..`||i==`.`)r=``;else if(i.indexOf(`./`)!=-1||i.indexOf(`/.`)!=-1){r=i.lastIndexOf(`/`,0)==0,i=i.split(`/`);let e=[];for(let t=0;t<i.length;){let n=i[t++];n==`.`?r&&t==i.length&&e.push(``):n==`..`?((e.length>1||e.length==1&&e[0]!=``)&&e.pop(),r&&t==i.length&&e.push(``)):(e.push(n),r=!0)}r=e.join(`/`)}else r=i}return n?t.h=r:n=e.i.toString()!==``,n?Bt(t,tn(e.i)):n=!!e.m,n&&(t.m=e.m),t};function Lt(e){return new It(e)}function Rt(e,t,n){e.j=n?A(t,!0):t,e.j&&=e.j.replace(/:$/,``)}function zt(e,t){if(t){if(t=Number(t),isNaN(t)||t<0)throw Error(`Bad port number `+t);e.u=t}else e.u=null}function Bt(e,t,n){t instanceof Yt?(e.i=t,rn(e.i,e.l)):(n||(t=Ht(t,qt)),e.i=new Yt(t,e.l))}
28function k(e,t,n){e.i.set(t,n)}function Vt(e){return k(e,`zx`,Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^Date.now()).toString(36)),e}function A(e,t){return e?t?decodeURI(e.replace(/%25/g,`%2525`)):decodeURIComponent(e):``}function Ht(e,t,n){return typeof e==`string`?(e=encodeURI(e).replace(t,Ut),n&&(e=e.replace(/%25([0-9a-fA-F]{2})/g,`%$1`)),e):null}function Ut(e){return e=e.charCodeAt(0),`%`+(e>>4&15).toString(16)+(e&15).toString(16)}var Wt=/[#\/\?@]/g,Gt=/[#\?:]/g,Kt=/[#\?]/g,qt=/[#\?@]/g,Jt=/#/g;function Yt(e,t){this.h=this.g=null,this.i=e||null,this.j=!!t}function Xt(e){e.g||(e.g=new Map,e.h=0,e.i&&Ft(e.i,function(t,n){e.add(decodeURIComponent(t.replace(/\+/g,` `)),n)}))}e=Yt.prototype,e.add=function(e,t){Xt(this),this.i=null,e=nn(this,e);let n=this.g.get(e);return n||this.g.set(e,n=[]),n.push(t),this.h+=1,this};function Zt(e,t){Xt(e),t=nn(e,t),e.g.has(t)&&(e.i=null,e.h-=e.g.get(t).length,e.g.delete(t))}function Qt(e,t){return Xt(e),t=nn(e,t),e.g.has(t)}e.forEach=function(e,t){Xt(this),this.g.forEach(function(n,r){n.forEach(function(n){e.call(t,n,r,this)},this)},this)};function $t(e,t){Xt(e);let n=[];if(typeof t==`string`)Qt(e,t)&&(n=n.concat(e.g.get(nn(e,t))));else for(e=Array.from(e.g.values()),t=0;t<e.length;t++)n=n.concat(e[t]);return n}e.set=function(e,t){return Xt(this),this.i=null,e=nn(this,e),Qt(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=$t(this,e),e.length>0?String(e[0]):t):t};function en(e,t,n){Zt(e,t),n.length>0&&(e.i=null,e.g.set(nn(e,t),p(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(let r=0;r<t.length;r++){var n=t[r];let i=lt(n);n=$t(this,n);for(let t=0;t<n.length;t++){let r=i;n[t]!==``&&(r+=`=`+lt(n[t])),e.push(r)}}return this.i=e.join(`&`)};function tn(e){let t=new Yt;return t.i=e.i,e.g&&(t.g=new Map(e.g),t.h=e.h),t}function nn(e,t){return t=String(t),e.j&&(t=t.toLowerCase()),t}function rn(e,t){t&&!e.j&&(Xt(e),e.i=null,e.g.forEach(function(e,t){let n=t.toLowerCase();t!=n&&(Zt(this,t),en(this,n,e))},e)),e.j=t}function an(e,t){let n=new $e;if(o.Image){let r=new Image;r.onload=u(sn,n,`TestLoadImage: loaded`,!0,t,r),r.onerror=u(sn,n,`TestLoadImage: error`,!1,t,r),r.onabort=u(sn,n,`TestLoadImage: abort`,!1,t,r),r.ontimeout=u(sn,n,`TestLoadImage: timeout`,!1,t,r),o.setTimeout(function(){r.ontimeout&&r.ontimeout()},1e4),r.src=e}else t(!1)}function on(e,t){let n=new $e,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 Re}function ln(e){this.i=e.Sb||null,this.h=e.ab||!1}d(ln,ze),ln.prototype.g=function(){return new un(this.i,this.h)};function un(e,t){Oe.call(this),this.H=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.A=new Headers,this.h=null,this.F=`GET`,this.D=``,this.g=!1,this.B=this.j=this.l=null,this.v=new AbortController}d(un,Oe),e=un.prototype,e.open=function(e,t){if(this.readyState!=0)throw this.abort(),Error(`Error reopening a connection`);this.F=e,this.D=t,this.readyState=1,pn(this)},e.send=function(e){if(this.readyState!=1)throw this.abort(),Error(`need to call open() first. `);if(this.v.signal.aborted)throw this.abort(),Error(`Request was aborted.`);this.g=!0;let t={headers:this.A,method:this.F,credentials:this.m,cache:void 0,signal:this.v.signal};e&&(t.body=e),(this.H||o).fetch(new Request(this.D,t)).then(this.Pa.bind(this),this.ga.bind(this))},e.abort=function(){this.response=this.responseText=``,this.A=new Headers,this.status=0,this.v.abort(),this.j&&this.j.cancel(`Request was aborted.`).catch(()=>{}),this.readyState>=1&&this.g&&this.readyState!=4&&(this.g=!1,fn(this)),this.readyState=0},e.Pa=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,pn(this)),this.g&&(this.readyState=3,pn(this),this.g)))if(this.responseType===`arraybuffer`)e.arrayBuffer().then(this.Na.bind(this),this.ga.bind(this));else if(o.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.B=new TextDecoder;dn(this)}else e.text().then(this.Oa.bind(this),this.ga.bind(this))};function dn(e){e.j.read().then(e.Ma.bind(e)).catch(e.ga.bind(e))}e.Ma=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.B.decode(t,{stream:!e.done}))&&(this.response=this.responseText+=t)}e.done?fn(this):pn(this),this.readyState==3&&dn(this)}},e.Oa=function(e){this.g&&(this.response=this.responseText=e,fn(this))},e.Na=function(e){this.g&&(this.response=e,fn(this))},e.ga=function(){this.g&&fn(this)};function fn(e){e.readyState=4,e.l=null,e.j=null,e.B=null,pn(e)}e.setRequestHeader=function(e,t){this.A.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
29`)};function pn(e){e.onreadystatechange&&e.onreadystatechange.call(e)}Object.defineProperty(un.prototype,`withCredentials`,{get:function(){return this.m===`include`},set:function(e){this.m=e?`include`:`same-origin`}});function mn(e){let t=``;return le(e,function(e,n){t+=n,t+=`:`,t+=e,t+=`\r
30`}),t}function hn(e,t,n){a:{for(r in n){var r=!1;break a}r=!0}r||(n=mn(n),typeof e==`string`||k(e,t,n))}function gn(e){Oe.call(this),this.headers=new Map,this.L=e||null,this.h=!1,this.g=null,this.D=``,this.o=0,this.l=``,this.j=this.B=this.v=this.A=!1,this.m=null,this.F=``,this.H=!1}d(gn,Oe);var _n=/^https?$/i,vn=[`POST`,`PUT`];e=gn.prototype,e.Fa=function(e){this.H=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.o=0,this.A=!1,this.h=!0,this.g=this.L?this.L.g():st.g(),this.g.onreadystatechange=f(l(this.Ca,this));try{this.B=!0,this.g.open(t,String(e),!0),this.B=!1}catch(e){yn(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=o.FormData&&e instanceof o.FormData,!(Array.prototype.indexOf.call(vn,t,void 0)>=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.F&&(this.g.responseType=this.F),`withCredentials`in this.g&&this.g.withCredentials!==this.H&&(this.g.withCredentials=this.H);try{this.m&&=(clearTimeout(this.m),null),this.v=!0,this.g.send(e),this.v=!1}catch(e){yn(this,e)}};function yn(e,t){e.h=!1,e.g&&(e.j=!0,e.g.abort(),e.j=!1),e.l=t,e.o=5,bn(e),Sn(e)}function bn(e){e.A||(e.A=!0,O(e,`complete`),O(e,`error`))}e.abort=function(e){this.g&&this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1,this.o=e||7,O(this,`complete`),O(this,`abort`),Sn(this))},e.N=function(){this.g&&(this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1),Sn(this,!0)),gn.Z.N.call(this)},e.Ca=function(){this.u||(this.B||this.v||this.j?xn(this):this.Xa())},e.Xa=function(){xn(this)};function xn(e){if(e.h&&a!==void 0){if(e.v&&Cn(e)==4)setTimeout(e.Ca.bind(e),0);else if(O(e,`readystatechange`),Cn(e)==4){e.h=!1;try{let a=e.ca();a:switch(a){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=a===0){let t=String(e.D).match(Pt)[1]||null;!t&&o.self&&o.self.location&&(t=o.self.location.protocol.slice(0,-1)),r=!_n.test(t?t.toLowerCase():``)}n=r}
30if(n)O(e,`complete`),O(e,`success`);else{e.o=6;try{var i=Cn(e)>2?e.g.statusText:``}catch{i=``}e.l=i+` [`+e.ca()+`]`,bn(e)}}finally{Sn(e)}}}}function Sn(e,t){if(e.g){e.m&&=(clearTimeout(e.m),null);let n=e.g;e.g=null,t||O(e,`ready`);try{n.onreadystatechange=null}catch{}}}e.isActive=function(){return!!this.g};function Cn(e){return e.g?e.g.readyState:0}e.ca=function(){try{return Cn(this)>2?this.g.status:-1}catch{return-1}},e.la=function(){try{return this.g?this.g.responseText:``}catch{return``}},e.La=function(e){if(this.g){var t=this.g.responseText;return e&&t.indexOf(e)==0&&(t=t.substring(e.length)),Le(t)}};function wn(e){try{if(!e.g)return null;if(`response`in e.g)return e.g.response;switch(e.F){case``:case`text`:return e.g.responseText;case`arraybuffer`:if(`mozResponseArrayBuffer`in e.g)return e.g.mozResponseArrayBuffer}return null}catch{return null}}function Tn(e){let t={};e=(e.g&&Cn(e)>=2&&e.g.getAllResponseHeaders()||``).split(`\r
31`);for(let r=0;r<e.length;r++){if(re(e[r]))continue;var n=ut(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)}E(t,function(e){return e.join(`, `)})}e.ya=function(){return this.o},e.Ha=function(){return typeof this.l==`string`?this.l:String(this.l)};function En(e,t,n){return n&&n.internalChannelParams&&n.internalChannelParams[e]||t}function Dn(e){this.za=0,this.i=[],this.j=new $e,this.ba=this.na=this.J=this.W=this.g=this.wa=this.G=this.H=this.u=this.U=this.o=null,this.Ya=this.V=0,this.Sa=En(`failFast`,!1,e),this.F=this.C=this.v=this.m=this.l=null,this.X=!0,this.xa=this.K=-1,this.Y=this.A=this.D=0,this.Qa=En(`baseRetryDelayMs`,5e3,e),this.Za=En(`retryDelaySeedMs`,1e4,e),this.Ta=En(`forwardChannelMaxRetries`,2,e),this.va=En(`forwardChannelRequestTimeoutMs`,2e4,e),this.ma=e&&e.xmlHttpFactory||void 0,this.Ua=e&&e.Rb||void 0,this.Aa=e&&e.useFetchStreams||!1,this.O=void 0,this.L=e&&e.supportsCrossDomainXhr||!1,this.M=``,this.h=new Dt(e&&e.concurrentRequestLimit),this.Ba=new cn,this.S=e&&e.fastHandshake||!1,this.R=e&&e.encodeInitMessageHeaders||!1,this.S&&this.R&&(this.R=!1),this.Ra=e&&e.Pb||!1,e&&e.ua&&this.j.ua(),e&&e.forceLongPolling&&(this.X=!1),this.aa=!this.S&&this.X&&e&&e.detectBufferingProxy||!1,this.ia=void 0,e&&e.longPollingTimeout&&e.longPollingTimeout>0&&(this.ia=e.longPollingTimeout),this.ta=void 0,this.T=0,this.P=!1,this.ja=this.B=null}e=Dn.prototype,e.ka=8,e.I=1,e.connect=function(e,t,n,r){Xe(0),this.W=e,this.H=t||{},n&&r!==void 0&&(this.H.OSID=n,this.H.OAID=r),this.F=this.X,this.J=Wn(this,null,this.W),jn(this)};function On(e){if(An(e),e.I==3){var t=e.V++,n=Lt(e.J);if(k(n,`SID`,e.M),k(n,`RID`,t),k(n,`TYPE`,`terminate`),Pn(e,n),t=new dt(e,e.j,t),t.M=2,t.A=Vt(Lt(n)),n=!1,o.navigator&&o.navigator.sendBeacon)try{n=o.navigator.sendBeacon(t.A.toString(),``)}catch{}!n&&o.Image&&(new Image().src=t.A,n=!0),n||(t.g=Gn(t.j,null),t.g.ea(t.A)),t.F=Date.now(),bt(t)}Un(e)}function kn(e){e.g&&=(Ln(e),e.g.cancel(),null)}function An(e){kn(e),e.v&&=(o.clearTimeout(e.v),null),zn(e),e.h.cancel(),e.m&&=(typeof e.m==`number`&&o.clearTimeout(e.m),null)}function jn(e){if(!Ot(e.h)&&!e.m){e.m=!0;var t=e.Ea;x||C(),ee||=(x(),!0),S.add(t,e),e.D=0}}function Mn(e,t){return kt(e.h)>=e.h.j-+!!e.m?!1:e.m?(e.i=t.G.concat(e.i),!0):e.I==1||e.I==2||e.D>=(e.Sa?0:e.Ta)?!1:(e.m=Qe(l(e.Ea,e,t),Vn(e,e.D)),e.D++,!0)}e.Ea=function(e){if(this.m)if(this.m=null,this.I==1){if(!e){this.V=Math.floor(Math.random()*1e5),e=this.V++;let i=new dt(this,this.j,e),a=this.o;if(this.U&&(a?(a=D(a),de(a,this.U)):a=this.U),this.u!==null||this.R||(i.J=a,a=null),this.S)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,t>4096){t=n;break a}if(t===4096||n===this.i.length-1){t=n+1;break a}}t=1e3}else t=1e3;t=Fn(this,i,t),n=Lt(this.J),k(n,`RID`,e),k(n,`CVER`,22),this.G&&k(n,`X-HTTP-Session-Id`,this.G),Pn(this,n),a&&(this.R?t=`headers=`+lt(mn(a))+`&`+t:this.u&&hn(n,this.u,a)),jt(this.h,i),this.Ra&&k(n,`TYPE`,`init`),this.S?(k(n,`$req`,t),k(n,`SID`,`null`),i.U=!0,ht(i,n,null)):ht(i,n,t),this.I=2}}else this.I==3&&(e?Nn(this,e):this.i.length==0||Ot(this.h)||Nn(this))};function Nn(e,t){var n=t?t.l:e.V++;let r=Lt(e.J);k(r,`SID`,e.M),k(r,`RID`,n),k(r,`AID`,e.K),Pn(e,r),e.u&&e.o&&hn(r,e.u,e.o),n=new dt(e,e.j,n,e.D+1),e.u===null&&(n.J=e.o),t&&(e.i=t.G.concat(e.i)),t=Fn(e,n,1e3),n.H=Math.round(e.va*.5)+Math.round(e.va*.5*Math.random()),jt(e.h,n),ht(n,r,t)}function Pn(e,t){e.H&&le(e.H,function(e,n){k(t,n,e)}),e.l&&le({},function(e,n){k(t,n,e)})}function Fn(e,t,n){n=Math.min(e.i.length,n);let r=e.l?l(e.l.Ka,e.l,e):null;a:{var i=e.i;let t=-1;for(;;){let e=[`count=`+n];t==-1?n>0?(t=i[0].g,e.push(`ofs=`+t)):t=0:e.push(`ofs=`+t);let c=!0;for(let l=0;l<n;l++){var a=i[l].g;let n=i[l].map;if(a-=t,a<0)t=Math.max(0,i[l].g-100),c=!1;else try{a=`req`+a+`_`||``;try{var o=n instanceof Map?n:Object.entries(n);for(let[t,n]of o){let r=n;
vendor: 4,834 bytes, line 31
31s(n)&&(r=Ie(n)),e.push(a+t+`=`+encodeURIComponent(r))}}catch(t){throw e.push(a+`type=_badmap`),t}}catch{r&&r(n)}}if(c){o=e.join(`&`);break a}}o=void 0}return e=e.i.splice(0,n),t.G=e,o}function j(e){if(!e.g&&!e.v){e.Y=1;var t=e.Da;x||C(),ee||=(x(),!0),S.add(t,e),e.A=0}}function In(e){return e.g||e.v||e.A>=3?!1:(e.Y++,e.v=Qe(l(e.Da,e),Vn(e,e.A)),e.A++,!0)}e.Da=function(){if(this.v=null,Rn(this),this.aa&&!(this.P||this.g==null||this.T<=0)){var e=4*this.T;this.j.info(`BP detection timer enabled: `+e),this.B=Qe(l(this.Wa,this),e)}},e.Wa=function(){this.B&&(this.B=null,this.j.info(`BP detection timeout reached.`),this.j.info(`Buffering proxy detected and switch to long-polling!`),this.F=!1,this.P=!0,Xe(10),kn(this),Rn(this))};function Ln(e){e.B!=null&&(o.clearTimeout(e.B),e.B=null)}function Rn(e){e.g=new dt(e,e.j,`rpc`,e.Y),e.u===null&&(e.g.J=e.o),e.g.P=0;var t=Lt(e.na);k(t,`RID`,`rpc`),k(t,`SID`,e.M),k(t,`AID`,e.K),k(t,`CI`,e.F?`0`:`1`),!e.F&&e.ia&&k(t,`TO`,e.ia),k(t,`TYPE`,`xmlhttp`),Pn(e,t),e.u&&e.o&&hn(t,e.u,e.o),e.O&&(e.g.H=e.O);var n=e.g;e=e.ba,n.M=1,n.A=Vt(Lt(t)),n.u=null,n.R=!0,gt(n,e)}e.Va=function(){this.C!=null&&(this.C=null,kn(this),In(this),Xe(19))};function zn(e){e.C!=null&&(o.clearTimeout(e.C),e.C=null)}function Bn(e,t){var n=null;if(e.g==t){zn(e),Ln(e),e.g=null;var r=2}else if(At(e.h,t))n=t.G,Mt(e.h,t),r=1;else return;if(e.I!=0){if(t.o)if(r==1){n=t.u?t.u.length:0,t=Date.now()-t.F;var i=e.D;r=Ke(),O(r,new Ze(r,n)),jn(e)}else j(e);else if(i=t.m,i==3||i==0&&t.X>0||!(r==1&&Mn(e,t)||r==2&&In(e)))switch(n&&n.length>0&&(t=e.h,t.i=t.i.concat(n)),i){case 1:Hn(e,5);break;case 4:Hn(e,10);break;case 3:Hn(e,6);break;default:Hn(e,2)}}}function Vn(e,t){let n=e.Qa+Math.floor(Math.random()*e.Za);return e.isActive()||(n*=2),n*t}function Hn(e,t){if(e.j.info(`Error code `+t),t==2){var n=l(e.bb,e),r=e.Ua;let t=!r;r=new It(r||`//www.google.com/images/cleardot.gif`),o.location&&o.location.protocol==`http`||Rt(r,`https`),Vt(r),t?an(r.toString(),n):on(r.toString(),n)}else Xe(2);e.I=0,e.l&&e.l.pa(t),Un(e),An(e)}e.bb=function(e){e?(this.j.info(`Successfully pinged google.com`),Xe(2)):(this.j.info(`Failed to ping google.com`),Xe(1))};function Un(e){if(e.I=0,e.ja=[],e.l){let t=Nt(e.h);(t.length!=0||e.i.length!=0)&&(m(e.ja,t),m(e.ja,e.i),e.h.i.length=0,p(e.i),e.i.length=0),e.l.oa()}}function Wn(e,t,n){var r=n instanceof It?Lt(n):new It(n);if(r.g!=``)t&&(r.g=t+`.`+r.g),zt(r,r.u);else{var i=o.location;r=i.protocol,t=t?t+`.`+i.hostname:i.hostname,i=+i.port;let e=new It(null);r&&Rt(e,r),t&&(e.g=t),i&&zt(e,i),n&&(e.h=n),r=e}return n=e.G,t=e.wa,n&&t&&k(r,n,t),k(r,`VER`,e.ka),Pn(e,r),r}function Gn(e,t,n){if(t&&!e.L)throw Error(`Can't create secondary domain capable XhrIo object.`);return t=e.Aa&&!e.ma?new gn(new ln({ab:n})):new gn(e.ma),t.Fa(e.L),t}e.isActive=function(){return!!this.l&&this.l.isActive(this)};function Kn(){}e=Kn.prototype,e.ra=function(){},e.qa=function(){},e.pa=function(){},e.oa=function(){},e.isActive=function(){return!0},e.Ka=function(){};function qn(){}qn.prototype.g=function(e,t){return new Jn(e,t)};function Jn(e,t){Oe.call(this),this.g=new Dn(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.sa&&(e?e[`X-WebChannel-Client-Profile`]=t.sa:e={"X-WebChannel-Client-Profile":t.sa}),this.g.U=e,(e=t&&t.Qb)&&!re(e)&&(this.g.u=e),this.A=t&&t.supportsCrossDomainXhr||!1,this.v=t&&t.sendRawJson||!1,(t&&=t.httpSessionIdParam)&&!re(t)&&(this.g.G=t,e=this.h,e!==null&&t in e&&(e=this.h,t in e&&delete e[t])),this.j=new Zn(this)}d(Jn,Oe),Jn.prototype.m=function(){this.g.l=this.j,this.A&&(this.g.L=!0),this.g.connect(this.l,this.h||void 0)},Jn.prototype.close=function(){On(this.g)},Jn.prototype.o=function(e){var t=this.g;if(typeof e==`string`){var n={};n.__data__=e,e=n}else this.v&&(n={},n.__data__=Ie(e),e=n);t.i.push(new Et(t.Ya++,e)),t.I==3&&jn(t)},Jn.prototype.N=function(){this.g.l=null,delete this.j,On(this.g),delete this.g,Jn.Z.N.call(this)};function Yn(e){He.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}d(Yn,He);function Xn(){Ue.call(this),this.status=1}d(Xn,Ue);function Zn(e){this.g=e}d(Zn,Kn),Zn.prototype.ra=function(){O(this.g,`a`)},Zn.prototype.qa=function(e){O(this.g,new Yn(e))},Zn.prototype.pa=function(e){O(this.g,new Xn)},Zn.prototype.oa=function(){O(this.g,`b`)},qn.prototype.createWebChannel=qn.prototype.g,Jn.prototype.send=J
31n.prototype.o,Jn.prototype.open=Jn.prototype.m,Jn.prototype.close=Jn.prototype.close,Df=yf.createWebChannelTransport=function(){return new qn},Ef=yf.getStatEventTarget=function(){return Ke()},Tf=yf.Event=We,wf=yf.Stat={jb:0,mb:1,nb:2,Hb:3,Mb:4,Jb:5,Kb:6,Ib:7,Gb:8,Lb:9,PROXY:10,NOPROXY:11,Eb:12,Ab:13,Bb:14,zb:15,Cb:16,Db:17,fb:18,eb:19,gb:20},at.NO_ERROR=0,at.TIMEOUT=8,at.HTTP_ERROR=6,Cf=yf.ErrorCode=at,ot.COMPLETE=`complete`,Sf=yf.EventType=ot,Be.EventType=Ve,Ve.OPEN=`a`,Ve.CLOSE=`b`,Ve.ERROR=`c`,Ve.MESSAGE=`d`,Oe.prototype.listen=Oe.prototype.J,xf=yf.WebChannel=Be,yf.FetchXmlHttpFactory=ln,gn.prototype.listenOnce=gn.prototype.K,gn.prototype.getLastError=gn.prototype.Ha,gn.prototype.getLastErrorCode=gn.prototype.ya,gn.prototype.getStatus=gn.prototype.ca,gn.prototype.getResponseJson=gn.prototype.La,gn.prototype.getResponseText=gn.prototype.la,gn.prototype.send=gn.prototype.ea,gn.prototype.setWithCredentials=gn.prototype.Fa,bf=yf.XhrIo=gn}).apply(vf===void 0?typeof self<`u`?self:typeof window<`u`?window:{}:vf);var Of=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}};Of.UNAUTHENTICATED=new Of(null),Of.GOOGLE_CREDENTIALS=new Of(`google-credentials-uid`),Of.FIRST_PARTY=new Of(`first-party-uid`),Of.MOCK_USER=new Of(`mock-user`);var kf=`12.13.0`;function Af(e){kf=e}var jf=new Ya(`@firebase/firestore`);function Mf(){return jf.logLevel}function U(e,...t){if(jf.logLevel<=I.DEBUG){let n=t.map(Ff);jf.debug(`Firestore (${kf}): ${e}`,...n)}}function Nf(e,...t){if(jf.logLevel<=I.ERROR){let n=t.map(Ff);jf.error(`Firestore (${kf}): ${e}`,...n)}}function Pf(e,...t){if(jf.logLevel<=I.WARN){let n=t.map(Ff);jf.warn(`Firestore (${kf}): ${e}`,...n)}}function Ff(e){if(typeof e==`string`)return e;try{return function(e){return JSON.stringify(e)}(e)}catch{return e}}function W(e,t,n){let r=`Unexpected state`;typeof t==`string`?r=t:n=t,If(e,r,n)}function If(e,t,n){let r=`FIRESTORE (${kf}) INTERNAL ASSERTION FAILED: ${t} (ID: ${e.toString(16)})`;if(n!==void 0)try{r+=` CONTEXT: `+JSON.stringify(n)}catch{r+=` CONTEXT: `+n}throw Nf(r),Error(r)}function Lf(e,t,n,r){let i=`Unexpected state`;typeof n==`string`?i=n:r=n,e||If(t,i,r)}function G(e,t){return e}var K={OK:`ok`,CANCELLED:`cancelled`,UNKNOWN:`unknown`,INVALID_ARGUMENT:`invalid-argument`,DEADLINE_EXCEEDED:`deadline-exceeded`,NOT_FOUND:`not-found`,ALREADY_EXISTS:`already-exists`,PERMISSION_DENIED:`permission-denied`,UNAUTHENTICATED:`unauthenticated`,RESOURCE_EXHAUSTED:`resource-exhausted`,FAILED_PRECONDITION:`failed-precondition`,ABORTED:`aborted`,OUT_OF_RANGE:`out-of-range`,UNIMPLEMENTED:`unimplemented`,INTERNAL:`internal`,UNAVAILABLE:`unavailable`,DATA_LOSS:`data-loss`},q=class extends xa{constructor(e,t){super(e,t),this.code=e,this.message=t,this.toString=()=>`${this.name}: [code=${this.code}]: ${this.message}`}},Rf=class{constructor(){this.promise=new Promise(((e,t)=>{this.resolve=e,this.reject=t}))}},zf=class{constructor(e,t){this.user=t,this.type=`OAuth`,this.headers=new Map,this.headers.set(`Authorization`,`Bearer ${e}`)}},Bf=class{getToken(){return Promise.resolve(null)}invalidateToken(){}start(e,t){e.enqueueRetryable((()=>t(Of.UNAUTHENTICATED)))}shutdown(){}},Vf=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}},Hf=class{constructor(e){this.t=e,this.currentUser=Of.UNAUTHENTICATED,this.i=0,this.forceRefresh=!1,this.auth=null}start(e,t){Lf(this.o===void 0,42304);let n=this.i,r=e=>this.i===n?Promise.resolve():(n=this.i,t(e)),i=new Rf;this.o=()=>{this.i++,this.currentUser=this.u(),i.resolve(),i=new Rf,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((()=>
31{if(!this.auth){let e=this.t.getImmediate({optional:!0});e?o(e):(U(`FirebaseAuthCredentialsProvider`,`Auth not yet detected`),i.resolve(),i=new Rf)}}),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?(Lf(typeof t.accessToken==`string`,31837,{l:t}),new zf(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 Lf(e===null||typeof e==`string`,2055,{h:e}),new Of(e)}},Uf=class{constructor(e,t,n){this.P=e,this.T=t,this.I=n,this.type=`FirstParty`,this.user=Of.FIRST_PARTY,this.R=new Map}A(){return this.I?this.I():null}get headers(){this.R.set(`X-Goog-AuthUser`,this.P);let e=this.A();return e&&this.R.set(`Authorization`,e),this.T&&this.R.set(`X-Goog-Iam-Authorization-Token`,this.T),this.R}},Wf=class{constructor(e,t,n){this.P=e,this.T=t,this.I=n}getToken(){return Promise.resolve(new Uf(this.P,this.T,this.I))}start(e,t){e.enqueueRetryable((()=>t(Of.FIRST_PARTY)))}shutdown(){}invalidateToken(){}},Gf=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)}},Kf=class{constructor(e,t){this.V=t,this.forceRefresh=!1,this.appCheck=null,this.m=null,this.p=null,as(e)&&e.settings.appCheckToken&&(this.p=e.settings.appCheckToken)}start(e,t){Lf(this.o===void 0,3512);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.m;return this.m=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.V.onInit((e=>r(e))),setTimeout((()=>{if(!this.appCheck){let e=this.V.getImmediate({optional:!0});e?r(e):U(`FirebaseAppCheckTokenProvider`,`AppCheck not yet detected`)}}),0)}getToken(){if(this.p)return Promise.resolve(new Gf(this.p));let e=this.forceRefresh;return this.forceRefresh=!1,this.appCheck?this.appCheck.getToken(e).then((e=>e?(Lf(typeof e.token==`string`,44558,{tokenResult:e}),this.m=e.token,new Gf(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 qf(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 Jf=class{static newId(){let e=``;for(;e.length<20;){let t=qf(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 Yf(e,t){let n=Math.min(e.length,t.length);for(let r=0;r<n;r++){let n=e.charAt(r),i=t.charAt(r);if(n!==i)return Qf(n)===Qf(i)?J(n,i):Qf(n)?1:-1}return J(e.length,t.length)}var Xf=55296,Zf=57343;function Qf(e){let t=e.charCodeAt(0);return t>=Xf&&t<=Zf}function $f(e,t,n){return e.length===t.length&&e.every(((e,r)=>n(e,t[r])))}var ep=`__name__`,tp=class e{constructor(e,t,n){t===void 0?t=0:t>e.length&&W(637,{offset:t,range:e.length}),n===void 0?n=e.length-t:n>e.length-t&&W(1746,{length:n,range:e.length-t}),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(t,n){let r=Math.min(t.length,n.length);for(let i=0;i<r;i++){let r=e.compareSegments(t.get(i),n.get(i));if(r!==0)return r}return J(t.length,n.length)}static compareSegments(t,n){let r=e.isNumericId(t),i=e.isNumericId(n);return r&&!i?-1:!r&&i?1:r&&i?e.extractNumericId(t).compare(e.extractNumericId(n)):Yf(t,n)}static isNumericId(e){return e.startsWith(`__id`)&&e.endsWith(`__`)}static extractNumericId(e){return gf.fromString(e.substring(4,e.length-2))}},np=class e extends tp{construct(t,n,r){return new e(t,n,r)}canonicalString(){return this.toArray().join(`/`)}toString(){return this.canonicalString()}
31toUriEncodedString(){return this.toArray().map(encodeURIComponent).join(`/`)}static fromString(...t){let n=[];for(let e of t){if(e.indexOf(`//`)>=0)throw new q(K.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([])}},rp=/^[_a-zA-Z][_a-zA-Z0-9]*$/,ip=class e extends tp{construct(t,n,r){return new e(t,n,r)}static isValidIdentifier(e){return rp.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([ep])}static fromServerFormat(t){let n=[],r=``,i=0,a=()=>{if(r.length===0)throw new q(K.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 q(K.INVALID_ARGUMENT,`Path has trailing escape character: `+t);let e=t[i+1];if(e!==`\\`&&e!==`.`&&e!=="`")throw new q(K.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 q(K.INVALID_ARGUMENT,"Unterminated ` in path: "+t);return new e(n)}static emptyPath(){return new e([])}},Y=class e{constructor(e){this.path=e}static fromPath(t){return new e(np.fromString(t))}static fromName(t){return new e(np.fromString(t).popFirst(5))}static empty(){return new e(np.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&&np.comparator(this.path,e.path)===0}toString(){return this.path.toString()}static comparator(e,t){return np.comparator(e.path,t.path)}static isDocumentKey(e){return e.length%2==0}static fromSegments(t){return new e(new np(t.slice()))}};function ap(e,t,n){if(!n)throw new q(K.INVALID_ARGUMENT,`Function ${e}() cannot be called with an empty ${t}.`)}function op(e,t,n,r){if(!0===t&&!0===r)throw new q(K.INVALID_ARGUMENT,`${e} and ${n} cannot be used together.`)}function sp(e){if(!Y.isDocumentKey(e))throw new q(K.INVALID_ARGUMENT,`Invalid document reference. Document references must have an even number of segments, but ${e} has ${e.length}.`)}function cp(e){if(Y.isDocumentKey(e))throw new q(K.INVALID_ARGUMENT,`Invalid collection reference. Collection references must have an odd number of segments, but ${e} has ${e.length}.`)}function lp(e){return typeof e==`object`&&!!e&&(Object.getPrototypeOf(e)===Object.prototype||Object.getPrototypeOf(e)===null)}function up(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(12329,{type:typeof e})}function dp(e,t){if(`_delegate`in e&&(e=e._delegate),!(e instanceof t)){if(t.name===e.constructor.name)throw new q(K.INVALID_ARGUMENT,`Type does not match the expected instance. Did you pass a reference from a different Firestore SDK?`);{let n=up(e);throw new q(K.INVALID_ARGUMENT,`Expected type '${t.name}', but it was: ${n}`)}}return e}function fp(e,t){let n={typeString:e};return t&&(n.value=t),n}function pp(e,t){if(!lp(e))throw new q(K.INVALID_ARGUMENT,`JSON must be an object`);let n;for(let r in t)if(t[r]){let i=t[r].typeString,a=`value`in t[r]?{value:t[r].value}:void 0;if(!(r in e)){n=`JSON missing required field: '${r}'`;break}let o=e[r];if(i&&typeof o!==i){n=`JSON field '${r}' must be a ${i}.`;break}if(a!==void 0&&o!==a.value){n=`Expected '${r}' field to equal '${a.value}'`;break}}if(n)throw new q(K.INVALID_ARGUMENT,n);return!0}var mp=-62135596800,hp=1e6,gp=class 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);return new e(n,Math.floor((t-1e3*n)*hp))}constructor(e,t){if(this.seconds=e,this.nanoseconds=t,t<0||t>=1e9)throw new q(K.INVALID_ARGUMENT,`Timestamp nanoseconds out of range: `+t);if(e<mp||e>=253402300800)throw new q(K.INVALID_ARGUMENT,`Timestamp seconds out of range: `+e)}toDate(){return new Date(this.toMillis())}toMillis(){return 1e3*this.seconds+this.nanoseconds/hp}_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{type:e._jsonSchemaVersion,seconds:this.seconds,nanoseconds:this.nanoseconds}}static fromJSON(t){if(pp(t,e._jsonSchema))return new e(t.seconds,t.nanoseconds)}valueOf(){let e=this.seconds-mp;return String(e).padStart(12,`0`)+`.`+String(this.nanoseconds).padStart(9,`0`)}};gp._jsonSchemaVersion=`firestore/timestamp/1.0`,gp._jsonSchema={type:fp(`string`,gp._jsonSchemaVersion),seconds:fp(`number`),nanoseconds:fp(`number`)};var X=class e{static fromTimestamp(t){return new e(t)}static min(){return new e(new gp(0,0))}static max(){return new e(new gp(253402300799,999999999))}constructor(e){this.timestamp=e}compareTo(e){return this.timestamp._compareTo(e.timestamp)}isEqual(e){return this.timestamp.isEqual(e.timestamp)}toMicroseconds(){return 1e6*this.timestamp.seconds+this.timestamp.nanoseconds/1e3}toString(){return`SnapshotVersion(`+this.timestamp.toString()+`)`}toTimestamp(){return this.timestamp}},_p=-1,vp=class{constructor(e,t,n,r){this.indexId=e,this.collectionGroup=t,this.fields=n,this.indexState=r}};vp.UNKNOWN_ID=-1;function yp(e,t){let n=e.toTimestamp().seconds,r=e.toTimestamp().nanoseconds+1;return new xp(X.fromTimestamp(r===1e9?new gp(n+1,0):new gp(n,r)),Y.empty(),t)}function bp(e){return new xp(e.readTime,e.key,_p)}var xp=class e{constructor(e,t,n){this.readTime=e,this.documentKey=t,this.largestBatchId=n}static min(){return new e(X.min(),Y.empty(),_p)}static max(){return new e(X.max(),Y.empty(),_p)}};function Sp(e,t){let n=e.readTime.compareTo(t.readTime);return n===0?(n=Y.comparator(e.documentKey,t.documentKey),n===0?J(e.largestBatchId,t.largestBatchId):n):n}var Cp=`The current tab is not in the required state to perform this operation. It might be necessary to refresh the browser tab.`,wp=class{constructor(){this.onCommittedListeners=[]}addOnCommittedListener(e){this.onCommittedListeners.push(e)}
31raiseOnCommittedEvent(){this.onCommittedListeners.forEach((e=>e()))}};async function Tp(e){if(e.code!==K.FAILED_PRECONDITION||e.message!==Cp)throw e;U(`LocalStore`,`Unexpectedly lost primary lease`)}var Z=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(59440),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=>t?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 Ep(e){let t=e.match(/Android ([\d.]+)/i),n=t?t[1].split(`.`).slice(0,2).join(`.`):`-1`;return Number(n)}function Dp(e){return e.name===`IndexedDbTransactionError`}var Op=class{constructor(e,t){this.previousValue=e,t&&(t.sequenceNumberHandler=e=>this.ae(e),this.ue=e=>t.writeSequenceNumber(e))}ae(e){return this.previousValue=Math.max(e,this.previousValue),this.previousValue}next(){let e=++this.previousValue;return this.ue&&this.ue(e),e}};Op.ce=-1;var kp=-1;function Ap(e){return e==null}function jp(e){return e===0&&1/e==-1/0}function Mp(e){return typeof e==`number`&&Number.isInteger(e)&&!jp(e)&&e<=2**53-1&&e>=-(2**53-1)}var Np=`�`;function Pp(e){let t=``;for(let n=0;n<e.length;n++)t.length>0&&(t=Ip(t)),t=Fp(e.get(n),t);return Ip(t)}function Fp(e,t){let n=t,r=e.length;for(let t=0;t<r;t++){let r=e.charAt(t);switch(r){case`\0`:n+=`��`;break;case Np:n+=`��`;break;default:n+=r}}return n}function Ip(e){return e+Np+`�`}function Lp(e){let t=0;for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}function Rp(e,t){for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t(n,e[n])}function zp(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}var Bp=class e{constructor(e,t){this.comparator=e,this.root=t||Hp.EMPTY}insert(t,n){return new e(this.comparator,this.root.insert(t,n,this.comparator).copy(null,null,Hp.BLACK,null,null))}remove(t){return new e(this.comparator,this.root.remove(t,this.comparator).copy(null,null,Hp.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 Vp(this.root,null,this.comparator,!1)}getIteratorFrom(e){return new Vp(this.root,e,this.comparator,!1)}getReverseIterator(){return new Vp(this.root,null,this.comparator,!0)}getReverseIteratorFrom(e){return new Vp(this.root,e,this.comparator,!0)}},Vp=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}}},Hp=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())throw W(43730,{key:this.key,value:this.value});if(this.right.isRed())throw W(14113,{key:this.key,value:this.value});let e=this.left.check();if(e!==this.right.check())throw W(27949);return e+ +!this.isRed()}};
31Hp.EMPTY=null,Hp.RED=!0,Hp.BLACK=!1,Hp.EMPTY=new class{constructor(){this.size=0}get key(){throw W(57766)}get value(){throw W(16141)}get color(){throw W(16727)}get left(){throw W(29726)}get right(){throw W(36894)}copy(e,t,n,r,i){return this}insert(e,t,n){return new Hp(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 Up=class e{constructor(e){this.comparator=e,this.data=new Bp(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 Wp(this.data.getIterator())}getIteratorFrom(e){return new Wp(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}},Wp=class{constructor(e){this.iter=e}getNext(){return this.iter.getNext().key}hasNext(){return this.iter.hasNext()}},Gp=class e{constructor(e){this.fields=e,e.sort(ip.comparator)}static empty(){return new e([])}unionWith(t){let n=new Up(ip.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 $f(this.fields,e.fields,((e,t)=>e.isEqual(t)))}},Kp=class extends Error{constructor(){super(...arguments),this.name=`Base64DecodeError`}},qp=class e{constructor(e){this.binaryString=e}static fromBase64String(t){return new e(function(e){try{return atob(e)}catch(e){throw typeof DOMException<`u`&&e instanceof DOMException?new Kp(`Invalid base64 string: `+e):e}}(t))}static fromUint8Array(t){return new e(function(e){let t=``;for(let n=0;n<e.length;++n)t+=String.fromCharCode(e[n]);return t}(t))}[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}};qp.EMPTY_BYTE_STRING=new qp(``);var Jp=new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);function Yp(e){if(Lf(!!e,39018),typeof e==`string`){let t=0,n=Jp.exec(e);if(Lf(!!n,46558,{timestamp:e}),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:Xp(e.seconds),nanos:Xp(e.nanos)}}function Xp(e){return typeof e==`number`?e:typeof e==`string`?Number(e):0}function Zp(e){return typeof e==`string`?qp.fromBase64String(e):qp.fromUint8Array(e)}var Qp=`server_timestamp`,$p=`__type__`,em=`__previous_value__`,tm=`__local_write_time__`;function nm(e){return(e?.mapValue?.fields||{})[$p]?.stringValue===Qp}function rm(e){let t=e.mapValue.fields[em];return nm(t)?rm(t):t}function im(e){let t=Yp(e.mapValue.fields[tm].timestampValue);return new gp(t.seconds,t.nanos)}var am=class{constructor(e,t,n,r,i,a,o,s,c,l,u){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,this.isUsingEmulator=l,this.apiKey=u}},om=`(default)`,sm=class e{constructor(e,t){this.projectId=e,this.database=t||om}static empty(){return new e(``,``)}get isDefaultDatabase(){return this.database===om}isEqual(t){return t instanceof e&&t.projectId===this.projectId&&t.database===this.database}};function cm(e,t){if(!Object.prototype.hasOwnProperty.apply(e.options,[`projectId`]))throw new q(K.INVALID_ARGUMENT,`"projectId" not provided in firebase.initializeApp.`);return new sm(e.options.projectId,t)}var lm=`__type__`,um=`__max__`,dm={mapValue:{fields:{__type__:{stringValue:um}}}},fm=`__vector__`,pm=`value`;function mm(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?nm(e)?4:jm(e)?9007199254740991:km(e)?10:11:W(28295,{value:e})}function hm(e,t){if(e===t)return!0;let n=mm(e);
31if(n!==mm(t))return!1;switch(n){case 0:case 9007199254740991:return!0;case 1:return e.booleanValue===t.booleanValue;case 4:return im(e).isEqual(im(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=Yp(e.timestampValue),r=Yp(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 Zp(e.bytesValue).isEqual(Zp(t.bytesValue))}(e,t);case 7:return e.referenceValue===t.referenceValue;case 8:return function(e,t){return Xp(e.geoPointValue.latitude)===Xp(t.geoPointValue.latitude)&&Xp(e.geoPointValue.longitude)===Xp(t.geoPointValue.longitude)}(e,t);case 2:return function(e,t){if(`integerValue`in e&&`integerValue`in t)return Xp(e.integerValue)===Xp(t.integerValue);if(`doubleValue`in e&&`doubleValue`in t){let n=Xp(e.doubleValue),r=Xp(t.doubleValue);return n===r?jp(n)===jp(r):isNaN(n)&&isNaN(r)}return!1}(e,t);case 9:return $f(e.arrayValue.values||[],t.arrayValue.values||[],hm);case 10:case 11:return function(e,t){let n=e.mapValue.fields||{},r=t.mapValue.fields||{};if(Lp(n)!==Lp(r))return!1;for(let e in n)if(n.hasOwnProperty(e)&&(r[e]===void 0||!hm(n[e],r[e])))return!1;return!0}(e,t);default:return W(52216,{left:e})}}function gm(e,t){return(e.values||[]).find((e=>hm(e,t)))!==void 0}function _m(e,t){if(e===t)return 0;let n=mm(e),r=mm(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=Xp(e.integerValue||e.doubleValue),r=Xp(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 vm(e.timestampValue,t.timestampValue);case 4:return vm(im(e),im(t));case 5:return Yf(e.stringValue,t.stringValue);case 6:return function(e,t){let n=Zp(e),r=Zp(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(Xp(e.latitude),Xp(t.latitude));return n===0?J(Xp(e.longitude),Xp(t.longitude)):n}(e.geoPointValue,t.geoPointValue);case 9:return ym(e.arrayValue,t.arrayValue);case 10:return function(e,t){let n=e.fields||{},r=t.fields||{},i=n[pm]?.arrayValue,a=r[pm]?.arrayValue,o=J(i?.values?.length||0,a?.values?.length||0);return o===0?ym(i,a):o}(e.mapValue,t.mapValue);case 11:return function(e,t){if(e===dm.mapValue&&t===dm.mapValue)return 0;if(e===dm.mapValue)return 1;if(t===dm.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=Yf(r[e],a[e]);if(t!==0)return t;let o=_m(n[r[e]],i[a[e]]);if(o!==0)return o}return J(r.length,a.length)}(e.mapValue,t.mapValue);default:throw W(23264,{he:n})}}function vm(e,t){if(typeof e==`string`&&typeof t==`string`&&e.length===t.length)return J(e,t);let n=Yp(e),r=Yp(t),i=J(n.seconds,r.seconds);return i===0?J(n.nanos,r.nanos):i}function ym(e,t){let n=e.values||[],r=t.values||[];for(let e=0;e<n.length&&e<r.length;++e){let t=_m(n[e],r[e]);if(t)return t}return J(n.length,r.length)}function bm(e){return xm(e)}function xm(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=Yp(e);return`time(${t.seconds},${t.nanos})`}(e.timestampValue):`stringValue`in e?e.stringValue:`bytesValue`in e?function(e){return Zp(e).toBase64()}(e.bytesValue):`referenceValue`in e?function(e){return Y.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+=xm(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}:${xm(e.fields[i])}`;return n+`}`}(e.mapValue):W(61005,{value:e})}function Sm(e){switch(mm(e)){case 0:case 1:return 4;case 2:return 8;case 3:case 8:return 16;case 4:let t=rm(e);return t?16+Sm(t):16;case 5:return 2*e.stringValue.length;case 6:return Zp(e.bytesValue).approximateByteSize();case 7:return e.referenceValue.length;case 9:return function(e){return(e.values||[]).reduce(((e,t)=>e+Sm(t)),0)}(e.arrayValue);case 10:case 11:return function(e){let t=0;return Rp(e.fields,((e,n)=>{t+=e.length+Sm(n)})),t}(e.mapValue);default:throw W(13486,{value:e})}}function Cm(e,t){return{referenceValue:`projects/${e.projectId}/databases/${e.database}/documents/${t.path.canonicalString()}`}}function wm(e){return!!e&&`integerValue`in e}function Tm(e){return!!e&&`arrayValue`in e}function Em(e){return!!e&&`nullValue`in e}function Dm(e){return!!e&&`doubleValue`in e&&isNaN(Number(e.doubleValue))}
31function Om(e){return!!e&&`mapValue`in e}function km(e){return(e?.mapValue?.fields||{})[lm]?.stringValue===fm}function Am(e){if(e.geoPointValue)return{geoPointValue:{...e.geoPointValue}};if(e.timestampValue&&typeof e.timestampValue==`object`)return{timestampValue:{...e.timestampValue}};if(e.mapValue){let t={mapValue:{fields:{}}};return Rp(e.mapValue.fields,((e,n)=>t.mapValue.fields[e]=Am(n))),t}if(e.arrayValue){let t={arrayValue:{values:[]}};for(let n=0;n<(e.arrayValue.values||[]).length;++n)t.arrayValue.values[n]=Am(e.arrayValue.values[n]);return t}return{...e}}function jm(e){return(((e.mapValue||{}).fields||{}).__type__||{}).stringValue===um}var Mm=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)],!Om(t))return null;return t=(t.mapValue.fields||{})[e.lastSegment()],t||null}}set(e,t){this.getFieldsMap(e.popLast())[e.lastSegment()]=Am(t)}setAll(e){let t=ip.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()]=Am(e):r.push(i.lastSegment())}));let i=this.getFieldsMap(t);this.applyChanges(i,n,r)}delete(e){let t=this.field(e.popLast());Om(t)&&t.mapValue.fields&&delete t.mapValue.fields[e.lastSegment()]}isEqual(e){return hm(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)];Om(r)&&r.mapValue.fields||(r={mapValue:{fields:{}}},t.mapValue.fields[e.get(n)]=r),t=r}return t.mapValue.fields}applyChanges(e,t,n){Rp(t,((t,n)=>e[t]=n));for(let t of n)delete e[t]}clone(){return new e(Am(this.value))}};function Nm(e){let t=[];return Rp(e.fields,((e,n)=>{let r=new ip([e]);if(Om(n)){let e=Nm(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 Gp(t)}var Pm=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,X.min(),X.min(),X.min(),Mm.empty(),0)}static newFoundDocument(t,n,r,i){return new e(t,1,n,X.min(),r,i,0)}static newNoDocument(t,n){return new e(t,2,n,X.min(),X.min(),Mm.empty(),0)}static newUnknownDocument(t,n){return new e(t,3,n,X.min(),X.min(),Mm.empty(),2)}convertToFoundDocument(e,t){return!this.createTime.isEqual(X.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=Mm.empty(),this.documentState=0,this}convertToUnknownDocument(e){return this.version=e,this.documentType=3,this.data=Mm.empty(),this.documentState=2,this}setHasCommittedMutations(){return this.documentState=2,this}setHasLocalMutations(){return this.documentState=1,this.version=X.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}})`}},Fm=class{constructor(e,t){this.position=e,this.inclusive=t}};function Im(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()?Y.comparator(Y.fromName(o.referenceValue),n.key):_m(o,n.data.field(a.field)),a.dir===`desc`&&(r*=-1),r!==0)break}return r}function Lm(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(!hm(e.position[n],t.position[n]))return!1;return!0}var Rm=class{constructor(e,t=`asc`){this.field=e,this.dir=t}};function zm(e,t){return e.dir===t.dir&&e.field.isEqual(t.field)}var Bm=class{},Vm=class e extends Bm{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 Ym(t,n,r):n===`array-contains`?new $m(t,r):n===`in`?new eh(t,r):n===`not-in`?new th(t,r):n===`array-contains-any`?new nh(t,r):new e(t,n,r)}static createKeyFieldInFilter(e,t,n){return t===`in`?new Xm(e,n):new Zm(e,n)}matches(e){let t=e.data.field(this.field);return this.op===`!=`?t!==null&&t.nullValue===void 0&&this.matchesComparison(_m(t,this.value)):t!==null&&mm(this.value)===mm(t)&&this.matchesComparison(_m(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(47266,{operator:this.op})}}isInequality(){return[`<`,`<=`,`>`,`>=`,`!=`,`not-in`].indexOf(this.op)>=0}getFlattenedFilters(){return[this]}getFilters(){return[this]}},Hm=class e extends Bm{constructor(e,t){super(),this.filters=e,this.op=t,this.Pe=null}static create(t,n){return new e(t,n)}matches(e){return Um(this)?this.filters.find((t=>!t.matches(e)))===void 0:this.filters.find((t=>t.matches(e)))!==void 0}getFlattenedFilters(){return this.Pe!==null||(this.Pe=this.filters.reduce(((e,t)=>e.concat(t.getFlattenedFilters())),[])),this.Pe}getFilters(){return Object.assign([],this.filters)}};function Um(e){return e.op===`and`}function Wm(e){return Gm(e)&&Um(e)}function Gm(e){for(let t of e.filters)if(t instanceof Hm)return!1;return!0}function Km(e){if(e instanceof Vm)return e.field.canonicalString()+e.op.toString()+bm(e.value);if(Wm(e))return e.filters.map((e=>Km(e))).join(`,`);{let t=e.filters.map((e=>Km(e))).join(`,`);
31return`${e.op}(${t})`}}function qm(e,t){return e instanceof Vm?function(e,t){return t instanceof Vm&&e.op===t.op&&e.field.isEqual(t.field)&&hm(e.value,t.value)}(e,t):e instanceof Hm?function(e,t){return t instanceof Hm&&e.op===t.op&&e.filters.length===t.filters.length?e.filters.reduce(((e,n,r)=>e&&qm(n,t.filters[r])),!0):!1}(e,t):void W(19439)}function Jm(e){return e instanceof Vm?function(e){return`${e.field.canonicalString()} ${e.op} ${bm(e.value)}`}(e):e instanceof Hm?function(e){return e.op.toString()+` {`+e.getFilters().map(Jm).join(` ,`)+`}`}(e):`Filter`}var Ym=class extends Vm{constructor(e,t,n){super(e,t,n),this.key=Y.fromName(n.referenceValue)}matches(e){let t=Y.comparator(e.key,this.key);return this.matchesComparison(t)}},Xm=class extends Vm{constructor(e,t){super(e,`in`,t),this.keys=Qm(`in`,t)}matches(e){return this.keys.some((t=>t.isEqual(e.key)))}},Zm=class extends Vm{constructor(e,t){super(e,`not-in`,t),this.keys=Qm(`not-in`,t)}matches(e){return!this.keys.some((t=>t.isEqual(e.key)))}};function Qm(e,t){return(t.arrayValue?.values||[]).map((e=>Y.fromName(e.referenceValue)))}var $m=class extends Vm{constructor(e,t){super(e,`array-contains`,t)}matches(e){let t=e.data.field(this.field);return Tm(t)&&gm(t.arrayValue,this.value)}},eh=class extends Vm{constructor(e,t){super(e,`in`,t)}matches(e){let t=e.data.field(this.field);return t!==null&&gm(this.value.arrayValue,t)}},th=class extends Vm{constructor(e,t){super(e,`not-in`,t)}matches(e){if(gm(this.value.arrayValue,{nullValue:`NULL_VALUE`}))return!1;let t=e.data.field(this.field);return t!==null&&t.nullValue===void 0&&!gm(this.value.arrayValue,t)}},nh=class extends Vm{constructor(e,t){super(e,`array-contains-any`,t)}matches(e){let t=e.data.field(this.field);return!(!Tm(t)||!t.arrayValue.values)&&t.arrayValue.values.some((e=>gm(this.value.arrayValue,e)))}},rh=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.Te=null}};function ih(e,t=null,n=[],r=[],i=null,a=null,o=null){return new rh(e,t,n,r,i,a,o)}function ah(e){let t=G(e);if(t.Te===null){let e=t.path.canonicalString();t.collectionGroup!==null&&(e+=`|cg:`+t.collectionGroup),e+=`|f:`,e+=t.filters.map((e=>Km(e))).join(`,`),e+=`|ob:`,e+=t.orderBy.map((e=>function(e){return e.field.canonicalString()+e.dir}(e))).join(`,`),Ap(t.limit)||(e+=`|l:`,e+=t.limit),t.startAt&&(e+=`|lb:`,e+=t.startAt.inclusive?`b:`:`a:`,e+=t.startAt.position.map((e=>bm(e))).join(`,`)),t.endAt&&(e+=`|ub:`,e+=t.endAt.inclusive?`a:`:`b:`,e+=t.endAt.position.map((e=>bm(e))).join(`,`)),t.Te=e}return t.Te}function oh(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(!zm(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(!qm(e.filters[n],t.filters[n]))return!1;return e.collectionGroup===t.collectionGroup&&!!e.path.isEqual(t.path)&&!!Lm(e.startAt,t.startAt)&&Lm(e.endAt,t.endAt)}function sh(e){return Y.isDocumentKey(e.path)&&e.collectionGroup===null&&e.filters.length===0}var ch=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.Ie=null,this.Ee=null,this.Re=null,this.startAt,this.endAt}};function lh(e,t,n,r,i,a,o,s){return new ch(e,t,n,r,i,a,o,s)}function uh(e){return new ch(e)}function dh(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 fh(e){return Y.isDocumentKey(e.path)&&e.collectionGroup===null&&e.filters.length===0}function ph(e){return e.collectionGroup!==null}function mh(e){let t=G(e);if(t.Ie===null){t.Ie=[];let e=new Set;for(let n of t.explicitOrderBy)t.Ie.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 Up(ip.comparator);
31return 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.Ie.push(new Rm(r,n))})),e.has(ip.keyField().canonicalString())||t.Ie.push(new Rm(ip.keyField(),n))}return t.Ie}function hh(e){let t=G(e);return t.Ee||=gh(t,mh(e)),t.Ee}function gh(e,t){if(e.limitType===`F`)return ih(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 Rm(e.field,t)}));let n=e.endAt?new Fm(e.endAt.position,e.endAt.inclusive):null,r=e.startAt?new Fm(e.startAt.position,e.startAt.inclusive):null;return ih(e.path,e.collectionGroup,t,e.filters,e.limit,n,r)}}function _h(e,t){let n=e.filters.concat([t]);return new ch(e.path,e.collectionGroup,e.explicitOrderBy.slice(),n,e.limit,e.limitType,e.startAt,e.endAt)}function vh(e,t){let n=e.explicitOrderBy.concat([t]);return new ch(e.path,e.collectionGroup,n,e.filters.slice(),e.limit,e.limitType,e.startAt,e.endAt)}function yh(e,t,n){return new ch(e.path,e.collectionGroup,e.explicitOrderBy.slice(),e.filters.slice(),t,n,e.startAt,e.endAt)}function bh(e,t){return oh(hh(e),hh(t))&&e.limitType===t.limitType}function xh(e){return`${ah(hh(e))}|lt:${e.limitType}`}function Sh(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=>Jm(e))).join(`, `)}]`),Ap(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=>bm(e))).join(`,`)),e.endAt&&(t+=`, endAt: `,t+=e.endAt.inclusive?`a:`:`b:`,t+=e.endAt.position.map((e=>bm(e))).join(`,`)),`Target(${t})`}(hh(e))}; limitType=${e.limitType})`}function Ch(e,t){return t.isFoundDocument()&&function(e,t){let n=t.key.path;return e.collectionGroup===null?Y.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 mh(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=Im(e,t,n);return e.inclusive?r<=0:r<0}(e.startAt,mh(e),t)||e.endAt&&!function(e,t,n){let r=Im(e,t,n);return e.inclusive?r>=0:r>0}(e.endAt,mh(e),t))}(e,t)}function wh(e){return e.collectionGroup||(e.path.length%2==1?e.path.lastSegment():e.path.get(e.path.length-2))}function Th(e){return(t,n)=>{let r=!1;for(let i of mh(e)){let e=Eh(i,t,n);if(e!==0)return e;r||=i.field.isKeyField()}return 0}}function Eh(e,t,n){let r=e.field.isKeyField()?Y.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?_m(r,i):W(42886)}(e.field,t,n);switch(e.dir){case`asc`:return r;case`desc`:return-1*r;default:return W(19790,{direction:e.dir})}}var Dh=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){Rp(this.inner,((t,n)=>{for(let[t,r]of n)e(t,r)}))}isEmpty(){return zp(this.inner)}size(){return this.innerSize}},Oh=new Bp(Y.comparator);function kh(){return Oh}var Ah=new Bp(Y.comparator);function jh(...e){let t=Ah;for(let n of e)t=t.insert(n.key,n);return t}function Mh(e){let t=Ah;return e.forEach(((e,n)=>t=t.insert(e,n.overlayedDocument))),t}function Nh(){return Fh()}function Ph(){return Fh()}function Fh(){return new Dh((e=>e.toString()),((e,t)=>e.isEqual(t)))}var Ih=new Bp(Y.comparator),Lh=new Up(Y.comparator);function Q(...e){let t=Lh;for(let n of e)t=t.add(n);return t}var Rh=new Up(J);function zh(){return Rh}function Bh(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:jp(t)?`-0`:t}}function Vh(e){return{integerValue:``+e}}function Hh(e,t){return Mp(t)?Vh(t):Bh(e,t)}var Uh=class{constructor(){this._=void 0}};function Wh(e,t,n){return e instanceof qh?function(e,t){let n={fields:{[$p]:{stringValue:Qp},[tm]:{timestampValue:{seconds:e.seconds,nanos:e.nanoseconds}}}};return t&&nm(t)&&(t=rm(t)),t&&(n.fields[em]=t),{mapValue:n}}(n,t):e instanceof Jh?Yh(e,t):e instanceof Xh?Zh(e,t):function(e,t){let n=Kh(e,t),r=$h(n)+$h(e.Ae);return wm(n)&&wm(e.Ae)?Vh(r):Bh(e.serializer,r)}(e,t)}function Gh(e,t,n){return e instanceof Jh?Yh(e,t):e instanceof Xh?Zh(e,t):n}function Kh(e,t){return e instanceof Qh?function(e){return wm(e)||function(e){return!!e&&`doubleValue`in e}(e)}(t)?t:{integerValue:0}:null}var qh=class extends Uh{},Jh=class extends Uh{constructor(e){super(),this.elements=e}};function Yh(e,t){let n=eg(t);for(let t of e.elements)n.some((e=>hm(e,t)))||n.push(t);return{arrayValue:{values:n}}}var Xh=class extends Uh{constructor(e){super(),this.elements=e}};function Zh(e,t){let n=eg(t);for(let t of e.elements)n=n.filter((e=>!hm(e,t)));return{arrayValue:{values:n}}}var Qh=class extends Uh{constructor(e,t){super(),this.serializer
31=e,this.Ae=t}};function $h(e){return Xp(e.integerValue||e.doubleValue)}function eg(e){return Tm(e)&&e.arrayValue.values?e.arrayValue.values.slice():[]}var tg=class{constructor(e,t){this.field=e,this.transform=t}};function ng(e,t){return e.field.isEqual(t.field)&&function(e,t){return e instanceof Jh&&t instanceof Jh||e instanceof Xh&&t instanceof Xh?$f(e.elements,t.elements,hm):e instanceof Qh&&t instanceof Qh?hm(e.Ae,t.Ae):e instanceof qh&&t instanceof qh}(e.transform,t.transform)}var rg=class{constructor(e,t){this.version=e,this.transformResults=t}},ig=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 ag(e,t){return e.updateTime===void 0?e.exists===void 0||e.exists===t.isFoundDocument():t.isFoundDocument()&&t.version.isEqual(e.updateTime)}var og=class{};function sg(e,t){if(!e.hasLocalMutations||t&&t.fields.length===0)return null;if(t===null)return e.isNoDocument()?new _g(e.key,ig.none()):new fg(e.key,e.data,ig.none());{let n=e.data,r=Mm.empty(),i=new Up(ip.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 pg(e.key,r,new Gp(i.toArray()),ig.none())}}function cg(e,t,n){e instanceof fg?function(e,t,n){let r=e.value.clone(),i=hg(e.fieldTransforms,t,n.transformResults);r.setAll(i),t.convertToFoundDocument(n.version,r).setHasCommittedMutations()}(e,t,n):e instanceof pg?function(e,t,n){if(!ag(e.precondition,t))return void t.convertToUnknownDocument(n.version);let r=hg(e.fieldTransforms,t,n.transformResults),i=t.data;i.setAll(mg(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 lg(e,t,n,r){return e instanceof fg?function(e,t,n,r){if(!ag(e.precondition,t))return n;let i=e.value.clone(),a=gg(e.fieldTransforms,r,t);return i.setAll(a),t.convertToFoundDocument(t.version,i).setHasLocalMutations(),null}(e,t,n,r):e instanceof pg?function(e,t,n,r){if(!ag(e.precondition,t))return n;let i=gg(e.fieldTransforms,r,t),a=t.data;return a.setAll(mg(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 ag(e.precondition,t)?(t.convertToNoDocument(t.version).setHasLocalMutations(),null):n}(e,t,n)}function ug(e,t){let n=null;for(let r of e.fieldTransforms){let e=t.data.field(r.field),i=Kh(r.transform,e||null);i!=null&&(n===null&&(n=Mm.empty()),n.set(r.field,i))}return n||null}function dg(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)&&$f(e,t,((e,t)=>ng(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 fg=class extends og{constructor(e,t,n,r=[]){super(),this.key=e,this.value=t,this.precondition=n,this.fieldTransforms=r,this.type=0}getFieldMask(){return null}},pg=class extends og{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 mg(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 hg(e,t,n){let r=new Map;Lf(e.length===n.length,32656,{Ve:n.length,de:e.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,Gh(o,s,n[i]))}return r}function gg(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,Wh(e,a,t))}return r}var _g=class extends og{constructor(e,t){super(),this.key=e,this.prec
31ondition=t,this.type=2,this.fieldTransforms=[]}getFieldMask(){return null}},vg=class extends og{constructor(e,t){super(),this.key=e,this.precondition=t,this.type=3,this.fieldTransforms=[]}getFieldMask(){return null}},yg=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)&&cg(r,e,n[t])}}applyToLocalView(e,t){for(let n of this.baseMutations)n.key.isEqual(e.key)&&(t=lg(n,e,t,this.localWriteTime));for(let n of this.mutations)n.key.isEqual(e.key)&&(t=lg(n,e,t,this.localWriteTime));return t}applyToLocalDocumentSet(e,t){let n=Ph();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=sg(a,o);s!==null&&n.set(r.key,s),a.isValidDocument()||a.convertToNoDocument(X.min())})),n}keys(){return this.mutations.reduce(((e,t)=>e.add(t.key)),Q())}isEqual(e){return this.batchId===e.batchId&&$f(this.mutations,e.mutations,((e,t)=>dg(e,t)))&&$f(this.baseMutations,e.baseMutations,((e,t)=>dg(e,t)))}},bg=class e{constructor(e,t,n,r){this.batch=e,this.commitVersion=t,this.mutationResults=n,this.docVersions=r}static from(t,n,r){Lf(t.mutations.length===r.length,58842,{me:t.mutations.length,fe:r.length});let i=function(){return Ih}(),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)}},xg=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    }`}},Sg=class{constructor(e,t){this.count=e,this.unchangedNames=t}},Cg,$;function wg(e){switch(e){case K.OK:return W(64938);case K.CANCELLED:case K.UNKNOWN:case K.DEADLINE_EXCEEDED:case K.RESOURCE_EXHAUSTED:case K.INTERNAL:case K.UNAVAILABLE:case K.UNAUTHENTICATED:return!1;case K.INVALID_ARGUMENT:case K.NOT_FOUND:case K.ALREADY_EXISTS:case K.PERMISSION_DENIED:case K.FAILED_PRECONDITION:case K.ABORTED:case K.OUT_OF_RANGE:case K.UNIMPLEMENTED:case K.DATA_LOSS:return!0;default:return W(15467,{code:e})}}function Tg(e){if(e===void 0)return Nf(`GRPC error has no .code`),K.UNKNOWN;switch(e){case Cg.OK:return K.OK;case Cg.CANCELLED:return K.CANCELLED;case Cg.UNKNOWN:return K.UNKNOWN;case Cg.DEADLINE_EXCEEDED:return K.DEADLINE_EXCEEDED;case Cg.RESOURCE_EXHAUSTED:return K.RESOURCE_EXHAUSTED;case Cg.INTERNAL:return K.INTERNAL;case Cg.UNAVAILABLE:return K.UNAVAILABLE;case Cg.UNAUTHENTICATED:return K.UNAUTHENTICATED;case Cg.INVALID_ARGUMENT:return K.INVALID_ARGUMENT;case Cg.NOT_FOUND:return K.NOT_FOUND;case Cg.ALREADY_EXISTS:return K.ALREADY_EXISTS;case Cg.PERMISSION_DENIED:return K.PERMISSION_DENIED;case Cg.FAILED_PRECONDITION:return K.FAILED_PRECONDITION;case Cg.ABORTED:return K.ABORTED;case Cg.OUT_OF_RANGE:return K.OUT_OF_RANGE;case Cg.UNIMPLEMENTED:return K.UNIMPLEMENTED;case Cg.DATA_LOSS:return K.DATA_LOSS;default:return W(39323,{code:e})}}($=Cg||={})[$.OK=0]=`OK`,$[$.CANCELLED=1]=`CANCELLED`,$[$.UNKNOWN=2]=`UNKNOWN`,$[$.INVALID_ARGUMENT=3]=`INVALID_ARGUMENT`,$[$.DEADLINE_EXCEEDED=4]=`DEADLINE_EXCEEDED`,$[$.NOT_FOUND=5]=`NOT_FOUND`,$[$.ALREADY_EXISTS=6]=`ALREADY_EXISTS`,$[$.PERMISSION_DENIED=7]=`PERMISSION_DENIED`,$[$.UNAUTHENTICATED=16]=`UNAUTHENTICATED`,$[$.RESOURCE_EXHAUSTED=8]=`RESOURCE_EXHAUSTED`,$[$.FAILED_PRECONDITION=9]=`FAILED_PRECONDITION`,$[$.ABORTED=10]=`ABORTED`,$[$.OUT_OF_RANGE=11]=`OUT_OF_RANGE`,$[$.UNIMPLEMENTED=12]=`UNIMPLEMENTED`,$[$.INTERNAL=13]=`INTERNAL`,$[$.UNAVAILABLE=14]=`UNAVAILABLE`,$[$.DATA_LOSS=15]=`DATA_LOSS`;var Eg=null;function Dg(){return new TextEncoder}var Og=new gf([4294967295,4294967295],0);function kg(e){let t=Dg().encode(e),n=new _f;return n.update(t),new Uint8Array(n.digest())}function Ag(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 gf([n,r],0),new gf([i,a],0)]}var jg=class e{constructor(e,t,n){if(this.bitmap=e,this.padding=t,this.hashCount=n,t<0||t>=8)throw new Mg(`Invalid padding: ${t}`);if(n<0||e.length>0&&this.hashCount===0)throw new Mg(`Invalid hash count: ${n}`);if(e.length===0&&t!==0)throw new Mg(`Invalid padding when bitmap length is 0: ${t}`);this.ge=8*e.length-t,this.pe=gf.fromNumber(this.ge)}ye(e,t,n){let r=e.add(t.multiply(gf.fromNumber(n)));return r.compare(Og)===1&&(r=new gf([r.getBits(0),r.getBits(1)],0)),r.modulo(this.pe).toNumber()}we(e){return!!(this.bitmap[Math.floor(e/8)]&1<<e%8)}mightContain(e){if(this.ge===0)return!1;let[t,n]=Ag(kg(e));for(let e=0;e<this.hashCount;e++){let r=this.ye(t,n,e);if(!this.we(r))return!1}return!0}static create(t,n,r){let i=t%8==0?0:8-t%8,a=new e(new Uint8Array(Math.ceil(t/8)),i,n);return r.forEach((e=>a.insert(e))),a}insert(e){if(this.ge===0)return;let[t,n]=Ag(kg(e));for(let e=0;e<this.hashCount;e++){let r=this.ye(t,n,e);this.Se(r)}}Se(e){let t=Math.floor(e/8),n=e%8;this.bitmap[t]|=1<<n}}
31,Mg=class extends Error{constructor(){super(...arguments),this.name=`BloomFilterError`}},Ng=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,Pg.createSynthesizedTargetChangeForCurrentChange(t,n,r)),new e(X.min(),i,new Bp(J),kh(),Q())}},Pg=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,Q(),Q(),Q())}},Fg=class{constructor(e,t,n,r){this.be=e,this.removedTargetIds=t,this.key=n,this.De=r}},Ig=class{constructor(e,t){this.targetId=e,this.Ce=t}},Lg=class{constructor(e,t,n=qp.EMPTY_BYTE_STRING,r=null){this.state=e,this.targetIds=t,this.resumeToken=n,this.cause=r}},Rg=class{constructor(){this.ve=0,this.Fe=Vg(),this.Me=qp.EMPTY_BYTE_STRING,this.xe=!1,this.Oe=!0}get current(){return this.xe}get resumeToken(){return this.Me}get Ne(){return this.ve!==0}get Be(){return this.Oe}Le(e){e.approximateByteSize()>0&&(this.Oe=!0,this.Me=e)}ke(){let e=Q(),t=Q(),n=Q();return this.Fe.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(38017,{changeType:i})}})),new Pg(this.Me,this.xe,e,t,n)}Ke(){this.Oe=!1,this.Fe=Vg()}qe(e,t){this.Oe=!0,this.Fe=this.Fe.insert(e,t)}Ue(e){this.Oe=!0,this.Fe=this.Fe.remove(e)}$e(){this.ve+=1}We(){--this.ve,Lf(this.ve>=0,3241,{ve:this.ve})}Qe(){this.Oe=!0,this.xe=!0}},zg=class{constructor(e){this.Ge=e,this.ze=new Map,this.je=kh(),this.Je=Bg(),this.He=Bg(),this.Ze=new Bp(J)}Xe(e){for(let t of e.be)e.De&&e.De.isFoundDocument()?this.Ye(t,e.De):this.et(t,e.key,e.De);for(let t of e.removedTargetIds)this.et(t,e.key,e.De)}tt(e){this.forEachTarget(e,(t=>{let n=this.nt(t);switch(e.state){case 0:this.rt(t)&&n.Le(e.resumeToken);break;case 1:n.We(),n.Ne||n.Ke(),n.Le(e.resumeToken);break;case 2:n.We(),n.Ne||this.removeTarget(t);break;case 3:this.rt(t)&&(n.Qe(),n.Le(e.resumeToken));break;case 4:this.rt(t)&&(this.it(t),n.Le(e.resumeToken));break;default:W(56790,{state:e.state})}}))}forEachTarget(e,t){e.targetIds.length>0?e.targetIds.forEach(t):this.ze.forEach(((e,n)=>{this.rt(n)&&t(n)}))}st(e){let t=e.targetId,n=e.Ce.count,r=this.ot(t);if(r){let i=r.target;if(sh(i))if(n===0){let e=new Y(i.path);this.et(t,e,Pm.newNoDocument(e,X.min()))}else Lf(n===1,20013,{expectedCount:n});else{let r=this._t(t);if(r!==n){let n=this.ut(e),i=n?this.ct(n,e,r):1;if(i!==0){this.it(t);let e=i===2?`TargetPurposeExistenceFilterMismatchBloom`:`TargetPurposeExistenceFilterMismatch`;this.Ze=this.Ze.insert(t,e)}Eg?.o(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=>r?.mightContain(e)??!1}),a}(r,e.Ce,this.Ge.ht(),n,i))}}}}ut(e){let t=e.Ce.unchangedNames;if(!t||!t.bits)return null;let{bits:{bitmap:n=``,padding:r=0},hashCount:i=0}=t,a,o;try{a=Zp(n).toUint8Array()}catch(e){if(e instanceof Kp)return Pf(`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 jg(a,r,i)}catch(e){return Pf(e instanceof Mg?`BloomFilter error: `:`Applying bloom filter failed: `,e),null}return o.ge===0?null:o}ct(e,t,n){return t.Ce.count===n-this.Pt(e,t.targetId)?0:2}Pt(e,t){let n=this.Ge.getRemoteKeysForTarget(t),r=0;return n.forEach((n=>{let i=this.Ge.ht(),a=`projects/${i.projectId}/databases/${i.database}/documents/${n.path.canonicalString()}`;e.mightContain(a)||(this.et(t,n,null),r++)})),r}Tt(e){let t=new Map;this.ze.forEach(((n,r)=>{let i=this.ot(r);if(i){if(n.current&&sh(i.target)){let t=new Y(i.target.path);this.It(t).has(r)||this.Et(r,t)||this.et(r,t,Pm.newNoDocument(t,e))}n.Be&&(t.set(r,n.ke()),n.Ke())}}));let n=Q();this.He.forEach(((e,t)=>{let r=!0;
31t.forEachWhile((e=>{let t=this.ot(e);return!t||t.purpose===`TargetPurposeLimboResolution`||(r=!1,!1)})),r&&(n=n.add(e))})),this.je.forEach(((t,n)=>n.setReadTime(e)));let r=new Ng(e,t,this.Ze,this.je,n);return this.je=kh(),this.Je=Bg(),this.He=Bg(),this.Ze=new Bp(J),r}Ye(e,t){if(!this.rt(e))return;let n=this.Et(e,t.key)?2:0;this.nt(e).qe(t.key,n),this.je=this.je.insert(t.key,t),this.Je=this.Je.insert(t.key,this.It(t.key).add(e)),this.He=this.He.insert(t.key,this.Rt(t.key).add(e))}et(e,t,n){if(!this.rt(e))return;let r=this.nt(e);this.Et(e,t)?r.qe(t,1):r.Ue(t),this.He=this.He.insert(t,this.Rt(t).delete(e)),this.He=this.He.insert(t,this.Rt(t).add(e)),n&&(this.je=this.je.insert(t,n))}removeTarget(e){this.ze.delete(e)}_t(e){let t=this.nt(e).ke();return this.Ge.getRemoteKeysForTarget(e).size+t.addedDocuments.size-t.removedDocuments.size}$e(e){this.nt(e).$e()}nt(e){let t=this.ze.get(e);return t||(t=new Rg,this.ze.set(e,t)),t}Rt(e){let t=this.He.get(e);return t||(t=new Up(J),this.He=this.He.insert(e,t)),t}It(e){let t=this.Je.get(e);return t||(t=new Up(J),this.Je=this.Je.insert(e,t)),t}rt(e){let t=this.ot(e)!==null;return t||U(`WatchChangeAggregator`,`Detected inactive target`,e),t}ot(e){let t=this.ze.get(e);return t&&t.Ne?null:this.Ge.At(e)}it(e){this.ze.set(e,new Rg),this.Ge.getRemoteKeysForTarget(e).forEach((t=>{this.et(e,t,null)}))}Et(e,t){return this.Ge.getRemoteKeysForTarget(e).has(t)}};function Bg(){return new Bp(Y.comparator)}function Vg(){return new Bp(Y.comparator)}var Hg={asc:`ASCENDING`,desc:`DESCENDING`},Ug={"<":`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`},Wg={and:`AND`,or:`OR`},Gg=class{constructor(e,t){this.databaseId=e,this.useProto3Json=t}};function Kg(e,t){return e.useProto3Json||Ap(t)?t:{value:t}}function qg(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 Jg(e,t){return e.useProto3Json?t.toBase64():t.toUint8Array()}function Yg(e,t){return qg(e,t.toTimestamp())}function Xg(e){return Lf(!!e,49232),X.fromTimestamp(function(e){let t=Yp(e);return new gp(t.seconds,t.nanos)}(e))}function Zg(e,t){return Qg(e,t).canonicalString()}function Qg(e,t){let n=function(e){return new np([`projects`,e.projectId,`databases`,e.database])}(e).child(`documents`);return t===void 0?n:n.child(t)}function $g(e){let t=np.fromString(e);return Lf(S_(t),10190,{key:t.toString()}),t}function e_(e,t){return Zg(e.databaseId,t.path)}function t_(e,t){let n=$g(t);if(n.get(1)!==e.databaseId.projectId)throw new q(K.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 q(K.INVALID_ARGUMENT,`Tried to deserialize key from different database: `+n.get(3)+` vs `+e.databaseId.database);return new Y(a_(n))}function n_(e,t){return Zg(e.databaseId,t)}function r_(e){let t=$g(e);return t.length===4?np.emptyPath():a_(t)}function i_(e){return new np([`projects`,e.databaseId.projectId,`databases`,e.databaseId.database]).canonicalString()}function a_(e){return Lf(e.length>4&&e.get(4)===`documents`,29091,{key:e.toString()}),e.popFirst(5)}function o_(e,t,n){return{name:e_(e,t),fields:n.value.mapValue.fields}}function s_(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(39313,{state:e})}(t.targetChange.targetChangeType||`NO_CHANGE`),i=t.targetChange.targetIds||[],a=function(e,t){return e.useProto3Json?(Lf(t===void 0||typeof t==`string`,58123),qp.fromBase64String(t||``)):(Lf(t===void 0||t instanceof Buffer||t instanceof Uint8Array,16193),qp.fromUint8Array(t||new Uint8Array))}(e,t.targetChange.resumeToken),o=t.targetChange.cause;n=new Lg(r,i,a,o&&function(e){return new q(e.code===void 0?K.UNKNOWN:Tg(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=t_(e,r.document.name),a=Xg(r.document.updateTime),o=r.document.createTime?Xg(r.document.createTime):X.min(),s=new Mm({mapValue:{fields:r.document.fields}}),c=Pm.newFoundDocument(i,a,o,s);n=new Fg(r.targetIds||[],r.removedTargetIds||[],c.key,c)}else if(`documentDelete`in t){t.documentDelete;let r=t.documentDelete;r.document;let i=t_(e,r.document),a=r.readTime?Xg(r.readTime):X.min(),o=Pm.newNoDocument(i,a);n=new Fg([],r.removedTargetIds||[],o.key,o)}else if(`documentRemove`in t){t.documentRemove;let r=t.documentRemove;r.document;let i=t_(e,r.document);n=new Fg([],r.removedTargetIds||[],i,null)}else{if(!(`filter`in t))return W(11601,{Vt:t});{t.filter;let e=t.filter;e.targetId;
31let{count:r=0,unchangedNames:i}=e,a=new Sg(r,i),o=e.targetId;n=new Ig(o,a)}}return n}function c_(e,t){let n;if(t instanceof fg)n={update:o_(e,t.key,t.value)};else if(t instanceof _g)n={delete:e_(e,t.key)};else if(t instanceof pg)n={update:o_(e,t.key,t.data),updateMask:x_(t.fieldMask)};else{if(!(t instanceof vg))return W(16599,{dt:t.type});n={verify:e_(e,t.key)}}return t.fieldTransforms.length>0&&(n.updateTransforms=t.fieldTransforms.map((e=>function(e,t){let n=t.transform;if(n instanceof qh)return{fieldPath:t.field.canonicalString(),setToServerValue:`REQUEST_TIME`};if(n instanceof Jh)return{fieldPath:t.field.canonicalString(),appendMissingElements:{values:n.elements}};if(n instanceof Xh)return{fieldPath:t.field.canonicalString(),removeAllFromArray:{values:n.elements}};if(n instanceof Qh)return{fieldPath:t.field.canonicalString(),increment:n.Ae};throw W(20930,{transform:t.transform})}(0,e)))),t.precondition.isNone||(n.currentDocument=function(e,t){return t.updateTime===void 0?t.exists===void 0?W(27497):{exists:t.exists}:{updateTime:Yg(e,t.updateTime)}}(e,t.precondition)),n}function l_(e,t){return e&&e.length>0?(Lf(t!==void 0,14353),e.map((e=>function(e,t){let n=e.updateTime?Xg(e.updateTime):Xg(t);return n.isEqual(X.min())&&(n=Xg(t)),new rg(n,e.transformResults||[])}(e,t)))):[]}function u_(e,t){return{documents:[n_(e,t.path)]}}function d_(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=n_(e,i);let a=function(e){if(e.length!==0)return b_(Hm.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:v_(e.field),direction:h_(e.dir)}}(e)))}(t.orderBy);o&&(n.structuredQuery.orderBy=o);let s=Kg(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)),{ft:n,parent:i}}function f_(e){let t=r_(e.parent),n=e.structuredQuery,r=n.from?n.from.length:0,i=null;if(r>0){Lf(r===1,65062);let e=n.from[0];e.allDescendants?i=e.collectionId:t=t.child(e.collectionId)}let a=[];n.where&&(a=function(e){let t=m_(e);return t instanceof Hm&&Wm(t)?t.getFilters():[t]}(n.where));let o=[];n.orderBy&&(o=function(e){return e.map((e=>function(e){return new Rm(y_(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,Ap(t)?null:t}(n.limit));let c=null;n.startAt&&(c=function(e){let t=!!e.before;return new Fm(e.values||[],t)}(n.startAt));let l=null;return n.endAt&&(l=function(e){let t=!e.before;return new Fm(e.values||[],t)}(n.endAt)),lh(t,i,o,a,s,`F`,c,l)}function p_(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(28987,{purpose:e})}}(t.purpose);return n==null?null:{"goog-listen-tags":n}}function m_(e){return e.unaryFilter===void 0?e.fieldFilter===void 0?e.compositeFilter===void 0?W(30097,{filter:e}):function(e){return Hm.create(e.compositeFilter.filters.map((e=>m_(e))),function(e){switch(e){case`AND`:return`and`;case`OR`:return`or`;default:return W(1026)}}(e.compositeFilter.op))}(e):function(e){return Vm.create(y_(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`;case`OPERATOR_UNSPECIFIED`:return W(58110);default:return W(50506)}}(e.fieldFilter.op),e.fieldFilter.value)}(e):function(e){switch(e.unaryFilter.op){case`IS_NAN`:let t=y_(e.unaryFilter.field);return Vm.create(t,`==`,{doubleValue:NaN});case`IS_NULL`:let n=y_(e.unaryFilter.field);return Vm.create(n,`==`,{nullValue:`NULL_VALUE`});
31case`IS_NOT_NAN`:let r=y_(e.unaryFilter.field);return Vm.create(r,`!=`,{doubleValue:NaN});case`IS_NOT_NULL`:let i=y_(e.unaryFilter.field);return Vm.create(i,`!=`,{nullValue:`NULL_VALUE`});case`OPERATOR_UNSPECIFIED`:return W(61313);default:return W(60726)}}(e)}function h_(e){return Hg[e]}function g_(e){return Ug[e]}function __(e){return Wg[e]}function v_(e){return{fieldPath:e.canonicalString()}}function y_(e){return ip.fromServerFormat(e.fieldPath)}function b_(e){return e instanceof Vm?function(e){if(e.op===`==`){if(Dm(e.value))return{unaryFilter:{field:v_(e.field),op:`IS_NAN`}};if(Em(e.value))return{unaryFilter:{field:v_(e.field),op:`IS_NULL`}}}else if(e.op===`!=`){if(Dm(e.value))return{unaryFilter:{field:v_(e.field),op:`IS_NOT_NAN`}};if(Em(e.value))return{unaryFilter:{field:v_(e.field),op:`IS_NOT_NULL`}}}return{fieldFilter:{field:v_(e.field),op:g_(e.op),value:e.value}}}(e):e instanceof Hm?function(e){let t=e.getFilters().map((e=>b_(e)));return t.length===1?t[0]:{compositeFilter:{op:__(e.op),filters:t}}}(e):W(54877,{filter:e})}function x_(e){let t=[];return e.fields.forEach((e=>t.push(e.canonicalString()))),{fieldPaths:t}}function S_(e){return e.length>=4&&e.get(0)===`projects`&&e.get(2)===`databases`}function C_(e){return!!e&&typeof e._toProto==`function`&&e._protoValueType===`ProtoValue`}var w_=class e{constructor(e,t,n,r,i=X.min(),a=X.min(),o=qp.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)}},T_=class{constructor(e){this.yt=e}};function E_(e){let t=f_({parent:e.parent,structuredQuery:e.structuredQuery});return e.limitType===`LAST`?yh(t,t.limit,`L`):t}var D_=class{constructor(){}Dt(e,t){this.Ct(e,t),t.vt()}Ct(e,t){if(`nullValue`in e)this.Ft(t,5);else if(`booleanValue`in e)this.Ft(t,10),t.Mt(+!!e.booleanValue);else if(`integerValue`in e)this.Ft(t,15),t.Mt(Xp(e.integerValue));else if(`doubleValue`in e){let n=Xp(e.doubleValue);isNaN(n)?this.Ft(t,13):(this.Ft(t,15),jp(n)?t.Mt(0):t.Mt(n))}else if(`timestampValue`in e){let n=e.timestampValue;this.Ft(t,20),typeof n==`string`&&(n=Yp(n)),t.xt(`${n.seconds||``}`),t.Mt(n.nanos||0)}else if(`stringValue`in e)this.Ot(e.stringValue,t),this.Nt(t);else if(`bytesValue`in e)this.Ft(t,30),t.Bt(Zp(e.bytesValue)),this.Nt(t);else if(`referenceValue`in e)this.Lt(e.referenceValue,t);else if(`geoPointValue`in e){let n=e.geoPointValue;this.Ft(t,45),t.Mt(n.latitude||0),t.Mt(n.longitude||0)}else `mapValue`in e?jm(e)?this.Ft(t,2**53-1):km(e)?this.kt(e.mapValue,t):(this.Kt(e.mapValue,t),this.Nt(t)):`arrayValue`in e?(this.qt(e.arrayValue,t),this.Nt(t)):W(19022,{Ut:e})}Ot(e,t){this.Ft(t,25),this.$t(e,t)}$t(e,t){t.xt(e)}Kt(e,t){let n=e.fields||{};this.Ft(t,55);for(let e of Object.keys(n))this.Ot(e,t),this.Ct(n[e],t)}kt(e,t){let n=e.fields||{};this.Ft(t,53);let r=pm,i=n[r].arrayValue?.values?.length||0;this.Ft(t,15),t.Mt(Xp(i)),this.Ot(r,t),this.Ct(n[r],t)}qt(e,t){let n=e.values||[];this.Ft(t,50);for(let e of n)this.Ct(e,t)}Lt(e,t){this.Ft(t,37),Y.fromName(e).path.forEach((e=>{this.Ft(t,60),this.$t(e,t)}))}Ft(e,t){e.Mt(t)}Nt(e){e.Mt(2)}};D_.Wt=new D_;var O_=class{constructor(){this.bn=new k_}addToCollectionParentIndex(e,t){return this.bn.add(t),Z.resolve()}getCollectionParents(e,t){return Z.resolve(this.bn.getEntries(t))}addFieldIndex(e,t){return Z.resolve()}deleteFieldIndex(e,t){return Z.resolve()}deleteAllFieldIndexes(e){return Z.resolve()}createTargetIndexes(e,t){return Z.resolve()}getDocumentsMatchingTarget(e,t){return Z.resolve(null)}getIndexType(e,t){return Z.resolve(0)}getFieldIndexes(e,t){return Z.resolve([])}getNextCollectionGroupToUpdate(e){return Z.resolve(null)}getMinOffset(e,t){return Z.resolve(xp.min())}getMinOffsetFromCollectionGroup(e,t){return Z.resolve(xp.min())}updateCollectionGroup(e,t,n){return Z.resolve()}updateIndexEntries(e,t){return Z.resolve()}},k_=class{constructor(){this.index={}}add(e){let t=e.lastSegment(),n=e.popLast(),r=this.index[t]||new Up(np.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 Up(np.comparator)).toArray()}},A_={didRun:!1,sequenceNumbersCollected:0,targetsRemoved:0,documentsRemoved:0},j_=41943040,M_=class e{static withCacheSize(t){return new e(t,e.DEFAULT_COLLECTION_PE
31RCENTILE,e.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT)}constructor(e,t,n){this.cacheSizeCollectionThreshold=e,this.percentileToCollect=t,this.maximumSequenceNumbersToCollect=n}};M_.DEFAULT_COLLECTION_PERCENTILE=10,M_.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT=1e3,M_.DEFAULT=new M_(j_,M_.DEFAULT_COLLECTION_PERCENTILE,M_.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT),M_.DISABLED=new M_(-1,0,0);var N_=class e{constructor(e){this.sr=e}next(){return this.sr+=2,this.sr}static _r(){return new e(0)}static ar(){return new e(-1)}},P_=`LruGarbageCollector`,F_=1048576;function I_([e,t],[n,r]){let i=J(e,n);return i===0?J(t,r):i}var L_=class{constructor(e){this.Pr=e,this.buffer=new Up(I_),this.Tr=0}Ir(){return++this.Tr}Er(e){let t=[e,this.Ir()];if(this.buffer.size<this.Pr)this.buffer=this.buffer.add(t);else{let e=this.buffer.last();I_(t,e)<0&&(this.buffer=this.buffer.delete(e).add(t))}}get maxValue(){return this.buffer.last()[0]}},R_=class{constructor(e,t,n){this.garbageCollector=e,this.asyncQueue=t,this.localStore=n,this.Rr=null}start(){this.garbageCollector.params.cacheSizeCollectionThreshold!==-1&&this.Ar(6e4)}stop(){this.Rr&&=(this.Rr.cancel(),null)}get started(){return this.Rr!==null}Ar(e){U(P_,`Garbage collection scheduled in ${e}ms`),this.Rr=this.asyncQueue.enqueueAfterDelay(`lru_garbage_collection`,e,(async()=>{this.Rr=null;try{await this.localStore.collectGarbage(this.garbageCollector)}catch(e){Dp(e)?U(P_,`Ignoring IndexedDB error during garbage collection: `,e):await Tp(e)}await this.Ar(3e5)}))}},z_=class{constructor(e,t){this.Vr=e,this.params=t}calculateTargetCount(e,t){return this.Vr.dr(e).next((e=>Math.floor(t/100*e)))}nthSequenceNumber(e,t){if(t===0)return Z.resolve(Op.ce);let n=new L_(t);return this.Vr.forEachTarget(e,(e=>n.Er(e.sequenceNumber))).next((()=>this.Vr.mr(e,(e=>n.Er(e))))).next((()=>n.maxValue))}removeTargets(e,t,n){return this.Vr.removeTargets(e,t,n)}removeOrphanedDocuments(e,t){return this.Vr.removeOrphanedDocuments(e,t)}collect(e,t){return this.params.cacheSizeCollectionThreshold===-1?(U(`LruGarbageCollector`,`Garbage collection skipped; disabled`),Z.resolve(A_)):this.getCacheSize(e).next((n=>n<this.params.cacheSizeCollectionThreshold?(U(`LruGarbageCollector`,`Garbage collection skipped; Cache size ${n} is lower than threshold ${this.params.cacheSizeCollectionThreshold}`),A_):this.gr(e,t)))}getCacheSize(e){return this.Vr.getCacheSize(e)}gr(e,t){let n,r,i,a,o,s,c,l=Date.now();return this.calculateTargetCount(e,this.params.percentileToCollect).next((t=>(t>this.params.maximumSequenceNumbersToCollect?(U(`LruGarbageCollector`,`Capping sequence numbers to collect down to the maximum of ${this.params.maximumSequenceNumbersToCollect} from ${t}`),r=this.params.maximumSequenceNumbersToCollect):r=t,a=Date.now(),this.nthSequenceNumber(e,r)))).next((r=>(n=r,o=Date.now(),this.removeTargets(e,n,t)))).next((t=>(i=t,s=Date.now(),this.removeOrphanedDocuments(e,n)))).next((e=>(c=Date.now(),Mf()<=I.DEBUG&&U(`LruGarbageCollector`,`LRU Garbage Collection\n\tCounted targets in ${a-l}ms\n\tDetermined least recently used ${r} in `+(o-a)+`ms
32\tRemoved ${i} targets in `+(s-o)+`ms
33\tRemoved ${e} documents in `+(c-s)+`ms
34Total Duration: ${c-l}ms`),Z.resolve({didRun:!0,sequenceNumbersCollected:r,targetsRemoved:i,documentsRemoved:e}))))}};function B_(e,t){return new z_(e,t)}var V_=class{constructor(){this.changes=new Dh((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,Pm.newInvalidDocument(e).setReadTime(t))}getEntry(e,t){this.assertNotApplied();let n=this.changes.get(t);return n===void 0?this.getFromCache(e,t):Z.resolve(n)}getEntries(e,t){return this.getAllFromCache(e,t)}apply(e){return this.assertNotApplied(),this.changesApplied=!0,this.applyChanges(e)}assertNotApplied(){}},H_=class{constructor(e,t){this.overlayedDocument=e,this.mutatedFields=t}},U_=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&&lg(n.mutation,e,Gp.empty(),gp.now()),e)))}getDocuments(e,t){return this.remoteDocumentCache.getEntries(e,t).next((t=>this.getLocalViewOfDocuments(e,t,Q()).next((()=>t))))}getLocalViewOfDocuments(e,t,n=Q()){let r=Nh();return this.populateOverlays(e,r,t).next((()=>this.computeViews(e,t,r,n).next((e=>{let t=jh();return e.forEach(((e,n)=>{t=t.insert(e,n.overlayedDocument)})),t}))))}getOverlayedDocuments(e,t){let n=Nh();return this.populateOverlays(e,n,t).next((()=>this.computeViews(e,t,n,Q())))}populateOverlays(e,t,n){let r=[];
34return 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=kh(),a=Fh(),o=function(){return Fh()}();return t.forEach(((e,t)=>{let o=n.get(t.key);r.has(t.key)&&(o===void 0||o.mutation instanceof pg)?i=i.insert(t.key,t):o===void 0?a.set(t.key,Gp.empty()):(a.set(t.key,o.mutation.getFieldMask()),lg(o.mutation,t,o.mutation.getFieldMask(),gp.now()))})),this.recalculateAndSaveOverlays(e,i).next((e=>(e.forEach(((e,t)=>a.set(e,t))),t.forEach(((e,t)=>o.set(e,new H_(t,a.get(e)??null)))),o)))}recalculateAndSaveOverlays(e,t){let n=Fh(),r=new Bp(((e,t)=>e-t)),i=Q();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)||Gp.empty();o=i.applyToLocalView(a,o),n.set(e,o);let s=(r.get(i.batchId)||Q()).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=Ph();c.forEach((e=>{if(!i.has(e)){let r=sg(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 Z.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 fh(t)?this.getDocumentsMatchingDocumentQuery(e,t.path):ph(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):Z.resolve(Nh()),o=_p,s=i;return a.next((t=>Z.forEach(t,((t,n)=>(o<n.largestBatchId&&(o=n.largestBatchId),i.get(t)?Z.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,Q()))).next((e=>({batchId:o,changes:Mh(e)})))))}))}getDocumentsMatchingDocumentQuery(e,t){return this.getDocument(e,new Y(t)).next((e=>{let t=jh();return e.isFoundDocument()&&(t=t.insert(e.key,e)),t}))}getDocumentsMatchingCollectionGroupQuery(e,t,n,r){let i=t.collectionGroup,a=jh();return this.indexManager.getCollectionParents(e,i).next((o=>Z.forEach(o,(o=>{let s=function(e,t){return new ch(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,Pm.newInvalidDocument(r)))}));let n=jh();return e.forEach(((e,r)=>{let a=i.get(e);a!==void 0&&lg(a.mutation,r,Gp.empty(),gp.now()),Ch(t,r)&&(n=n.insert(e,r))})),n}))}},W_=class{constructor(e){this.serializer=e,this.Nr=new Map,this.Br=new Map}getBundleMetadata(e,t){return Z.resolve(this.Nr.get(t))}saveBundleMetadata(e,t){return this.Nr.set(t.id,function(e){return{id:e.id,version:e.version,createTime:Xg(e.createTime)}}(t)),Z.resolve()}getNamedQuery(e,t){return Z.resolve(this.Br.get(t))}saveNamedQuery(e,t){return this.Br.set(t.name,function(e){return{name:e.name,query:E_(e.bundledQuery),readTime:Xg(e.readTime)}}(t)),Z.resolve()}},G_=class{constructor(){this.overlays=new Bp(Y.comparator),this.Lr=new Map}getOverlay(e,t){return Z.resolve(this.overlays.get(t))}getOverlays(e,t){let n=Nh();return Z.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.St(e,t,r)})),Z.resolve()}removeOverlaysForBatchId(e,t,n){let r=this.Lr.get(n);return r!==void 0&&(r.forEach((e=>this.overlays=this.overlays.remove(e))),this.Lr.delete(n)),Z.resolve()}getOverlaysForCollection(e,t,n){let r=Nh(),i=t.length+1,a=new Y(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 Z.resolve(r)}getOverlaysForCollectionGroup(e,t,n,r){let i=new Bp(((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=Nh(),i=i.insert(e.largestBatchId,t)),t.set(e.getKey(),e)}}let o=Nh(),s=i.getIterator();for(;s.hasNext()&&(s.getNext().value.forEach(((e,t)=>o.set(e,t))),!(o.size()>=r)););return Z.resolve(o)}St(e,t,n){let r=this.overlays.get(n.key);if(r!==null){let e=this.Lr.get(r.largestBatchId).delete(n.key);this.Lr.set(r.largestBatchId,e)}this.overlays=this.overlays.insert(n.key,new xg(t,n));let i=this.Lr.get(t);i===void 0&&(i=Q(),this.Lr.set(t,i)),this.Lr.set(t,i.add(n.key))}},K_=class{constructor(){this.sessionToken=qp.EMPTY_BYTE_STRING}getSessionToken(e){return Z.resolve(this.sessionToken)}setSessionToken(e,t){return this.sessionToken=t,Z.resolve()}},q_=class{constructor(){this.kr=new Up(J_.Kr),this.qr=new Up(J_.Ur)}isEmpty(){return this.kr.isEmpty()}addReference(e,t){let n=new J_(e,t);this.kr=this.kr.add(n),this.qr=this.qr.add(n)}$r(e,t){e.forEach((e=>this.addReference(e,t)))}removeReference(e,t){this.Wr(new J_(e,t))}Qr(e,t){e.forEach((e=>this.removeReference(e,t)))}Gr(e){let t=new Y(new np([])),n=new J_(t,e),r=new J_(t,e+1),i=[];return this.qr.forEachInRange([n,r],(e=>{this.Wr(e),i.push(e.key)})),i}zr(){this.kr.forEach((e=>this.Wr(e)))}Wr(e){this.kr=this.kr.delete(e),this.qr=this.qr.delete(e)}jr(e){let t=new Y(new np([])),n=new J_(t,e),r=new J_(t,e+1),i=Q();return this.qr.forEachInRange([n,r],(e=>{i=i.add(e.key)})),i}containsKey(e){let t=new J_(e,0),n=this.kr.firstAfterOrEqual(t);return n!==null&&e.isEqual(n.key)}},J_=class{constructor(e,t){this.key=e,this.Jr=t}static Kr(e,t){return Y.comparator(e.key,t.key)||J(e.Jr,t.Jr)}static Ur(e,t){return J(e.Jr,t.Jr)||Y.comparator(e.key,t.key)}},Y_=class{constructor(e,t){this.indexManager=e,this.referenceDelegate=t,this.mutation
34Queue=[],this.Yn=1,this.Hr=new Up(J_.Kr)}checkEmpty(e){return Z.resolve(this.mutationQueue.length===0)}addMutationBatch(e,t,n,r){let i=this.Yn;this.Yn++,this.mutationQueue.length>0&&this.mutationQueue[this.mutationQueue.length-1];let a=new yg(i,t,n,r);this.mutationQueue.push(a);for(let t of r)this.Hr=this.Hr.add(new J_(t.key,i)),this.indexManager.addToCollectionParentIndex(e,t.key.path.popLast());return Z.resolve(a)}lookupMutationBatch(e,t){return Z.resolve(this.Zr(t))}getNextMutationBatchAfterBatchId(e,t){let n=t+1,r=this.Xr(n),i=r<0?0:r;return Z.resolve(this.mutationQueue.length>i?this.mutationQueue[i]:null)}getHighestUnacknowledgedBatchId(){return Z.resolve(this.mutationQueue.length===0?kp:this.Yn-1)}getAllMutationBatches(e){return Z.resolve(this.mutationQueue.slice())}getAllMutationBatchesAffectingDocumentKey(e,t){let n=new J_(t,0),r=new J_(t,1/0),i=[];return this.Hr.forEachInRange([n,r],(e=>{let t=this.Zr(e.Jr);i.push(t)})),Z.resolve(i)}getAllMutationBatchesAffectingDocumentKeys(e,t){let n=new Up(J);return t.forEach((e=>{let t=new J_(e,0),r=new J_(e,1/0);this.Hr.forEachInRange([t,r],(e=>{n=n.add(e.Jr)}))})),Z.resolve(this.Yr(n))}getAllMutationBatchesAffectingQuery(e,t){let n=t.path,r=n.length+1,i=n;Y.isDocumentKey(i)||(i=i.child(``));let a=new J_(new Y(i),0),o=new Up(J);return this.Hr.forEachWhile((e=>{let t=e.key.path;return!!n.isPrefixOf(t)&&(t.length===r&&(o=o.add(e.Jr)),!0)}),a),Z.resolve(this.Yr(o))}Yr(e){let t=[];return e.forEach((e=>{let n=this.Zr(e);n!==null&&t.push(n)})),t}removeMutationBatch(e,t){Lf(this.ei(t.batchId,`removed`)===0,55003),this.mutationQueue.shift();let n=this.Hr;return Z.forEach(t.mutations,(r=>{let i=new J_(r.key,t.batchId);return n=n.delete(i),this.referenceDelegate.markPotentiallyOrphaned(e,r.key)})).next((()=>{this.Hr=n}))}nr(e){}containsKey(e,t){let n=new J_(t,0),r=this.Hr.firstAfterOrEqual(n);return Z.resolve(t.isEqual(r&&r.key))}performConsistencyCheck(e){return this.mutationQueue.length,Z.resolve()}ei(e,t){return this.Xr(e)}Xr(e){return this.mutationQueue.length===0?0:e-this.mutationQueue[0].batchId}Zr(e){let t=this.Xr(e);return t<0||t>=this.mutationQueue.length?null:this.mutationQueue[t]}},X_=class{constructor(e){this.ti=e,this.docs=function(){return new Bp(Y.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.ti(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 Z.resolve(n?n.document.mutableCopy():Pm.newInvalidDocument(t))}getEntries(e,t){let n=kh();return t.forEach((e=>{let t=this.docs.get(e);n=n.insert(e,t?t.document.mutableCopy():Pm.newInvalidDocument(e))})),Z.resolve(n)}getDocumentsMatchingQuery(e,t,n,r){let i=kh(),a=t.path,o=new Y(a.child(`__id-9223372036854775808__`)),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||Sp(bp(o),n)<=0||(r.has(o.key)||Ch(t,o))&&(i=i.insert(o.key,o.mutableCopy()))}return Z.resolve(i)}getAllFromCollectionGroup(e,t,n,r){W(9500)}ni(e,t){return Z.forEach(this.docs,(e=>t(e)))}newChangeBuffer(e){return new Z_(this)}getSize(e){return Z.resolve(this.size)}},Z_=class extends V_{constructor(e){super(),this.Mr=e}applyChanges(e){let t=[];
34return this.changes.forEach(((n,r)=>{r.isValidDocument()?t.push(this.Mr.addEntry(e,r)):this.Mr.removeEntry(n)})),Z.waitFor(t)}getFromCache(e,t){return this.Mr.getEntry(e,t)}getAllFromCache(e,t){return this.Mr.getEntries(e,t)}},Q_=class{constructor(e){this.persistence=e,this.ri=new Dh((e=>ah(e)),oh),this.lastRemoteSnapshotVersion=X.min(),this.highestTargetId=0,this.ii=0,this.si=new q_,this.targetCount=0,this.oi=N_._r()}forEachTarget(e,t){return this.ri.forEach(((e,n)=>t(n))),Z.resolve()}getLastRemoteSnapshotVersion(e){return Z.resolve(this.lastRemoteSnapshotVersion)}getHighestSequenceNumber(e){return Z.resolve(this.ii)}allocateTargetId(e){return this.highestTargetId=this.oi.next(),Z.resolve(this.highestTargetId)}setTargetsMetadata(e,t,n){return n&&(this.lastRemoteSnapshotVersion=n),t>this.ii&&(this.ii=t),Z.resolve()}lr(e){this.ri.set(e.target,e);let t=e.targetId;t>this.highestTargetId&&(this.oi=new N_(t),this.highestTargetId=t),e.sequenceNumber>this.ii&&(this.ii=e.sequenceNumber)}addTargetData(e,t){return this.lr(t),this.targetCount+=1,Z.resolve()}updateTargetData(e,t){return this.lr(t),Z.resolve()}removeTargetData(e,t){return this.ri.delete(t.target),this.si.Gr(t.targetId),--this.targetCount,Z.resolve()}removeTargets(e,t,n){let r=0,i=[];return this.ri.forEach(((a,o)=>{o.sequenceNumber<=t&&n.get(o.targetId)===null&&(this.ri.delete(a),i.push(this.removeMatchingKeysForTargetId(e,o.targetId)),r++)})),Z.waitFor(i).next((()=>r))}getTargetCount(e){return Z.resolve(this.targetCount)}getTargetData(e,t){let n=this.ri.get(t)||null;return Z.resolve(n)}addMatchingKeys(e,t,n){return this.si.$r(t,n),Z.resolve()}removeMatchingKeys(e,t,n){this.si.Qr(t,n);let r=this.persistence.referenceDelegate,i=[];return r&&t.forEach((t=>{i.push(r.markPotentiallyOrphaned(e,t))})),Z.waitFor(i)}removeMatchingKeysForTargetId(e,t){return this.si.Gr(t),Z.resolve()}getMatchingKeysForTargetId(e,t){let n=this.si.jr(t);return Z.resolve(n)}containsKey(e,t){return Z.resolve(this.si.containsKey(t))}},$_=class{constructor(e,t){this._i={},this.overlays={},this.ai=new Op(0),this.ui=!1,this.ui=!0,this.ci=new K_,this.referenceDelegate=e(this),this.li=new Q_(this),this.indexManager=new O_,this.remoteDocumentCache=function(e){return new X_(e)}((e=>this.referenceDelegate.hi(e))),this.serializer=new T_(t),this.Pi=new W_(this.serializer)}start(){return Promise.resolve()}shutdown(){return this.ui=!1,Promise.resolve()}get started(){return this.ui}setDatabaseDeletedListener(){}setNetworkEnabled(){}getIndexManager(e){return this.indexManager}getDocumentOverlayCache(e){let t=this.overlays[e.toKey()];return t||(t=new G_,this.overlays[e.toKey()]=t),t}getMutationQueue(e,t){let n=this._i[e.toKey()];return n||(n=new Y_(t,this.referenceDelegate),this._i[e.toKey()]=n),n}getGlobalsCache(){return this.ci}getTargetCache(){return this.li}getRemoteDocumentCache(){return this.remoteDocumentCache}getBundleCache(){return this.Pi}runTransaction(e,t,n){U(`MemoryPersistence`,`Starting transaction:`,e);let r=new ev(this.ai.next());return this.referenceDelegate.Ti(),n(r).next((e=>this.referenceDelegate.Ii(r).next((()=>e)))).toPromise().then((e=>(r.raiseOnCommittedEvent(),e)))}Ei(e,t){return Z.or(Object.values(this._i).map((n=>()=>n.containsKey(e,t))))}},ev=class extends wp{constructor(e){super(),this.currentSequenceNumber=e}},tv=class e{constructor(e){this.persistence=e,this.Ri=new q_,this.Ai=null}static Vi(t){return new e(t)}get di(){if(this.Ai)return this.Ai;throw W(60996)}addReference(e,t,n){return this.Ri.addReference(n,t),this.di.delete(n.toString()),Z.resolve()}removeReference(e,t,n){return this.Ri.removeReference(n,t),this.di.add(n.toString()),Z.resolve()}markPotentiallyOrphaned(e,t){return this.di.add(t.toString()),Z.resolve()}removeTarget(e,t){this.Ri.Gr(t.targetId).forEach((e=>this.di.add(e.toString())));let n=this.persistence.getTargetCache();return n.getMatchingKeysForTargetId(e,t.targetId).next((e=>{e.forEach((e=>this.di.add(e.toString())))})).next((()=>n.removeTargetData(e,t)))}Ti(){this.Ai=new Set}Ii(e){let t=this.persistence.getRemoteDocumentCache().newChangeBuffer();return Z.forEach(this.di,(n=>{let r=Y.fromPath(n);return this.mi(e,r).next((e=>{e||t.removeEntry(r,X.min())}))})).next((()=>(this.Ai=null,t.apply(e))))}updateLimboDocument(e,t){return this.mi(e,t).next((e=>{e?this.di.delete(t.toString()):this.di.add(t.toString())}))}hi(e){return 0}mi(e,t){return Z.or([()=>Z.resolve(this.Ri.containsKey(t)),()=>this.persistence.getTargetCache().containsKey(e,t),()=>this.persistence.Ei(e,t)])}},nv=class e{constructor(e,t){this.persistence=e,this.fi=new Dh((e=>Pp(e.path)),((e,t)=>e.isEqual(t))),this.garbageCollector=B_(this,t)}static Vi(t,n){return new e(t,n)}Ti(){}Ii(e){return Z.resolve()}forEachTarget(e,t){return this.persistence.getTargetCache().forEac
34hTarget(e,t)}dr(e){let t=this.pr(e);return this.persistence.getTargetCache().getTargetCount(e).next((e=>t.next((t=>e+t))))}pr(e){let t=0;return this.mr(e,(e=>{t++})).next((()=>t))}mr(e,t){return Z.forEach(this.fi,((n,r)=>this.wr(e,n,r).next((e=>e?Z.resolve():t(r)))))}removeTargets(e,t,n){return this.persistence.getTargetCache().removeTargets(e,t,n)}removeOrphanedDocuments(e,t){let n=0,r=this.persistence.getRemoteDocumentCache(),i=r.newChangeBuffer();return r.ni(e,(r=>this.wr(e,r,t).next((e=>{e||(n++,i.removeEntry(r,X.min()))})))).next((()=>i.apply(e))).next((()=>n))}markPotentiallyOrphaned(e,t){return this.fi.set(t,e.currentSequenceNumber),Z.resolve()}removeTarget(e,t){let n=t.withSequenceNumber(e.currentSequenceNumber);return this.persistence.getTargetCache().updateTargetData(e,n)}addReference(e,t,n){return this.fi.set(n,e.currentSequenceNumber),Z.resolve()}removeReference(e,t,n){return this.fi.set(n,e.currentSequenceNumber),Z.resolve()}updateLimboDocument(e,t){return this.fi.set(t,e.currentSequenceNumber),Z.resolve()}hi(e){let t=e.key.toString().length;return e.isFoundDocument()&&(t+=Sm(e.data.value)),t}wr(e,t,n){return Z.or([()=>this.persistence.Ei(e,t),()=>this.persistence.getTargetCache().containsKey(e,t),()=>{let e=this.fi.get(t);return Z.resolve(e!==void 0&&e>n)}])}getCacheSize(e){return this.persistence.getRemoteDocumentCache().getSize(e)}},rv=class e{constructor(e,t,n,r){this.targetId=e,this.fromCache=t,this.Ts=n,this.Is=r}static Es(t,n){let r=Q(),i=Q();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)}},iv=class{constructor(){this._documentReadCount=0}get documentReadCount(){return this._documentReadCount}incrementDocumentReadCount(e){this._documentReadCount+=e}},av=class{constructor(){this.Rs=!1,this.As=!1,this.Vs=100,this.ds=function(){return _a()?8:Ep(ua())>0?6:4}()}initialize(e,t){this.fs=e,this.indexManager=t,this.Rs=!0}getDocumentsMatchingQuery(e,t,n,r){let i={result:null};return this.gs(e,t).next((e=>{i.result=e})).next((()=>{if(!i.result)return this.ps(e,t,r,n).next((e=>{i.result=e}))})).next((()=>{if(i.result)return;let n=new iv;return this.ys(e,t,n).next((r=>{if(i.result=r,this.As)return this.ws(e,t,n,r.size)}))})).next((()=>i.result))}ws(e,t,n,r){return n.documentReadCount<this.Vs?(Mf()<=I.DEBUG&&U(`QueryEngine`,`SDK will not create cache indexes for query:`,Sh(t),`since it only creates cache indexes for collection contains`,`more than or equal to`,this.Vs,`documents`),Z.resolve()):(Mf()<=I.DEBUG&&U(`QueryEngine`,`Query:`,Sh(t),`scans`,n.documentReadCount,`local documents and returns`,r,`documents as results.`),n.documentReadCount>this.ds*r?(Mf()<=I.DEBUG&&U(`QueryEngine`,`The SDK decides to create cache indexes for query:`,Sh(t),`as using cache indexes may help improve performance.`),this.indexManager.createTargetIndexes(e,hh(t))):Z.resolve())}gs(e,t){if(dh(t))return Z.resolve(null);let n=hh(t);return this.indexManager.getIndexType(e,n).next((r=>r===0?null:(t.limit!==null&&r===1&&(t=yh(t,null,`F`),n=hh(t)),this.indexManager.getDocumentsMatchingTarget(e,n).next((r=>{let i=Q(...r);return this.fs.getDocuments(e,i).next((r=>this.indexManager.getMinOffset(e,n).next((n=>{let a=this.Ss(t,r);return this.bs(t,a,i,n.readTime)?this.gs(e,yh(t,null,`F`)):this.Ds(e,a,t,n)}))))})))))}ps(e,t,n,r){return dh(t)||r.isEqual(X.min())?Z.resolve(null):this.fs.getDocuments(e,n).next((i=>{let a=this.Ss(t,i);return this.bs(t,a,n,r)?Z.resolve(null):(Mf()<=I.DEBUG&&U(`QueryEngine`,`Re-using previous result from %s to execute query: %s`,r.toString(),Sh(t)),this.Ds(e,a,t,yp(r,_p)).next((e=>e)))}))}Ss(e,t){let n=new Up(Th(e));return t.forEach(((t,r)=>{Ch(e,r)&&(n=n.add(r))})),n}bs(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)}ys(e,t,n){return Mf()<=I.DEBUG&&U(`QueryEngine`,`Using full collection scan to execute query:`,Sh(t)),this.fs.getDocumentsMatchingQuery(e,t,xp.min(),n)}Ds(e,t,n,r){return this.fs.getDocumentsMatchingQuery(e,n,r).next((e=>(t.forEach((t=>{e=e.insert(t.key,t)})),e)))}},ov=`LocalStore`,sv=3e8,cv=class{constructor(e,t,n,r){this.persistence=e,this.Cs=t,this.serializer
34=r,this.vs=new Bp(J),this.Fs=new Dh((e=>ah(e)),oh),this.Ms=new Map,this.xs=e.getRemoteDocumentCache(),this.li=e.getTargetCache(),this.Pi=e.getBundleCache(),this.Os(n)}Os(e){this.documentOverlayCache=this.persistence.getDocumentOverlayCache(e),this.indexManager=this.persistence.getIndexManager(e),this.mutationQueue=this.persistence.getMutationQueue(e,this.indexManager),this.localDocuments=new U_(this.xs,this.mutationQueue,this.documentOverlayCache,this.indexManager),this.xs.setIndexManager(this.indexManager),this.Cs.initialize(this.localDocuments,this.indexManager)}collectGarbage(e){return this.persistence.runTransaction(`Collect garbage`,`readwrite-primary`,(t=>e.collect(t,this.vs)))}};function lv(e,t,n,r){return new cv(e,t,n,r)}async function uv(e,t){let n=G(e);return await n.persistence.runTransaction(`Handle user change`,`readonly`,(e=>{let r;return n.mutationQueue.getAllMutationBatches(e).next((i=>(r=i,n.Os(t),n.mutationQueue.getAllMutationBatches(e)))).next((t=>{let i=[],a=[],o=Q();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=>({Ns:e,removedBatchIds:i,addedBatchIds:a})))}))}))}function dv(e,t){let n=G(e);return n.persistence.runTransaction(`Acknowledge batch`,`readwrite-primary`,(e=>{let r=t.batch.keys(),i=n.xs.newChangeBuffer({trackRemovals:!0});return function(e,t,n,r){let i=n.batch,a=i.keys(),o=Z.resolve();return a.forEach((e=>{o=o.next((()=>r.getEntry(t,e))).next((t=>{let a=n.docVersions.get(e);Lf(a!==null,48541),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=Q();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 fv(e){let t=G(e);return t.persistence.runTransaction(`Get last remote snapshot version`,`readonly`,(e=>t.li.getLastRemoteSnapshotVersion(e)))}function pv(e,t){let n=G(e),r=t.snapshotVersion,i=n.vs;return n.persistence.runTransaction(`Apply remote event`,`readwrite-primary`,(e=>{let a=n.xs.newChangeBuffer({trackRemovals:!0});i=n.vs;let o=[];
34t.targetChanges.forEach(((a,s)=>{let c=i.get(s);if(!c)return;o.push(n.li.removeMatchingKeys(e,a.removedDocuments,s).next((()=>n.li.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(qp.EMPTY_BYTE_STRING,X.min()).withLastLimboFreeSnapshotVersion(X.min()),i=i.insert(s,l),function(e,t,n){return e.resumeToken.approximateByteSize()===0||t.snapshotVersion.toMicroseconds()-e.snapshotVersion.toMicroseconds()>=sv?!0:n.addedDocuments.size+n.modifiedDocuments.size+n.removedDocuments.size>0}(c,l,a)&&o.push(n.li.updateTargetData(e,l))}));let s=kh(),c=Q();if(t.documentUpdates.forEach((r=>{t.resolvedLimboDocuments.has(r)&&o.push(n.persistence.referenceDelegate.updateLimboDocument(e,r))})),o.push(mv(e,a,t.documentUpdates).next((e=>{s=e.Bs,c=e.Ls}))),!r.isEqual(X.min())){let t=n.li.getLastRemoteSnapshotVersion(e).next((t=>n.li.setTargetsMetadata(e,e.currentSequenceNumber,r)));o.push(t)}return Z.waitFor(o).next((()=>a.apply(e))).next((()=>n.localDocuments.getLocalViewOfDocuments(e,s,c))).next((()=>s))})).then((e=>(n.vs=i,e)))}function mv(e,t,n){let r=Q(),i=Q();return n.forEach((e=>r=r.add(e))),t.getEntries(e,r).next((e=>{let r=kh();return n.forEach(((n,a)=>{let o=e.get(n);a.isFoundDocument()!==o.isFoundDocument()&&(i=i.add(n)),a.isNoDocument()&&a.version.isEqual(X.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(ov,`Ignoring outdated watch update for `,n,`. Current version:`,o.version,` Watch version:`,a.version)})),{Bs:r,Ls:i}}))}function hv(e,t){let n=G(e);return n.persistence.runTransaction(`Get next mutation batch`,`readonly`,(e=>(t===void 0&&(t=kp),n.mutationQueue.getNextMutationBatchAfterBatchId(e,t))))}function gv(e,t){let n=G(e);return n.persistence.runTransaction(`Allocate target`,`readwrite`,(e=>{let r;return n.li.getTargetData(e,t).next((i=>i?(r=i,Z.resolve(r)):n.li.allocateTargetId(e).next((i=>(r=new w_(t,i,`TargetPurposeListen`,e.currentSequenceNumber),n.li.addTargetData(e,r).next((()=>r)))))))})).then((e=>{let r=n.vs.get(e.targetId);return(r===null||e.snapshotVersion.compareTo(r.snapshotVersion)>0)&&(n.vs=n.vs.insert(e.targetId,e),n.Fs.set(t,e.targetId)),e}))}async function _v(e,t,n){let r=G(e),i=r.vs.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(!Dp(e))throw e;U(ov,`Failed to update sequence numbers for target ${t}: ${e}`)}r.vs=r.vs.remove(t),r.Fs.delete(i.target)}function vv(e,t,n){let r=G(e),i=X.min(),a=Q();return r.persistence.runTransaction(`Execute query`,`readwrite`,(e=>function(e,t,n){let r=G(e),i=r.Fs.get(n);return i===void 0?r.li.getTargetData(t,n):Z.resolve(r.vs.get(i))}(r,e,hh(t)).next((t=>{if(t)return i=t.lastLimboFreeSnapshotVersion,r.li.getMatchingKeysForTargetId(e,t.targetId).next((e=>{a=e}))})).next((()=>r.Cs.getDocumentsMatchingQuery(e,t,n?i:X.min(),n?a:Q()))).next((e=>(yv(r,wh(t),e),{documents:e,ks:a})))))}function yv(e,t,n){let r=e.Ms.get(t)||X.min();n.forEach(((e,t)=>{t.readTime.compareTo(r)>0&&(r=t.readTime)})),e.Ms.set(t,r)}var bv=class{constructor(){this.activeTargetIds=zh()}Qs(e){this.activeTargetIds=this.activeTargetIds.add(e)}Gs(e){this.activeTargetIds=this.activeTargetIds.delete(e)}Ws(){let e={activeTargetIds:this.activeTargetIds.toArray(),updateTimeMs:Date.now()};return JSON.stringify(e)}},xv=class{constructor(){this.vo=new bv,this.Fo={},this.onlineStateHandler=null,this.sequenceNumberHandler=null}addPendingMutation(e){}updateMutationState(e,t,n){}addLocalQueryTarget(e,t=!0){return t&&this.vo.Qs(e),this.Fo[e]||`not-current`}updateQueryState(e,t,n){this.Fo[e]=t}removeLocalQueryTarget(e){this.vo.Gs(e)}isLocalQueryTarget(e){return this.vo.activeTargetIds.has(e)}clearQueryState(e){delete this.Fo[e]}getAllActiveQueryTargets(){return this.vo.activeTargetIds}isActiveQueryTarget(e){return this.vo.activeTargetIds.has(e)}start(){return this.vo=new bv,Promise.resolve()}handleUserChange(e,t,n){}setOnlineState(e){}shutdown(){}writeSequenceNumber(e){}notifyBundleLoaded(e){}},Sv=class{Mo(e){}shutdown(){}},Cv=`ConnectivityMonitor`,wv=class{constructor(){this.xo=()=>this.Oo(),this.No=()=>this.Bo(),this.Lo=[],this.ko()}Mo(e){this.Lo.push(e)}shutdown(){window.removeEventListener(`online`,this.xo),window.removeEventListener(`offline`,this.No)}
34ko(){window.addEventListener(`online`,this.xo),window.addEventListener(`offline`,this.No)}Oo(){U(Cv,`Network connectivity changed: AVAILABLE`);for(let e of this.Lo)e(0)}Bo(){U(Cv,`Network connectivity changed: UNAVAILABLE`);for(let e of this.Lo)e(1)}static v(){return typeof window<`u`&&window.addEventListener!==void 0&&window.removeEventListener!==void 0}},Tv=null;function Ev(){return Tv===null?Tv=function(){return 268435456+Math.round(2147483648*Math.random())}():Tv++,`0x`+Tv.toString(16)}var Dv=`RestConnection`,Ov={BatchGetDocuments:`batchGet`,Commit:`commit`,RunQuery:`runQuery`,RunAggregationQuery:`runAggregationQuery`,ExecutePipeline:`executePipeline`},kv=class{get Ko(){return!1}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.qo=t+`://`+e.host,this.Uo=`projects/${n}/databases/${r}`,this.$o=this.databaseId.database===om?`project_id=${n}`:`project_id=${n}&database_id=${r}`}Wo(e,t,n,r,i){let a=Ev(),o=this.Qo(e,t.toUriEncodedString());U(Dv,`Sending RPC '${e}' ${a}:`,o,n);let s={"google-cloud-resource-prefix":this.Uo,"x-goog-request-params":this.$o};this.Go(s,r,i);let{host:c}=new URL(o),l=Ia(c);return this.zo(e,o,s,n,l).then((t=>(U(Dv,`Received RPC '${e}' ${a}: `,t),t)),(t=>{throw Pf(Dv,`RPC '${e}' ${a} failed with error: `,t,`url: `,o,`request:`,n),t}))}jo(e,t,n,r,i,a){return this.Wo(e,t,n,r,i)}Go(e,t,n){e[`X-Goog-Api-Client`]=function(){return`gl-js/ fire/`+kf}(),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))}Qo(e,t){let n=Ov[e],r=`${this.qo}/v1/${t}:${n}`;return this.databaseInfo.apiKey&&(r=`${r}?key=${encodeURIComponent(this.databaseInfo.apiKey)}`),r}terminate(){}},Av=class{constructor(e){this.Jo=e.Jo,this.Ho=e.Ho}Zo(e){this.Xo=e}Yo(e){this.e_=e}t_(e){this.n_=e}onMessage(e){this.r_=e}close(){this.Ho()}send(e){this.Jo(e)}i_(){this.Xo()}s_(){this.e_()}o_(e){this.n_(e)}__(e){this.r_(e)}},jv=`WebChannelConnection`,Mv=(e,t,n)=>{e.listen(t,(e=>{try{n(e)}catch(e){setTimeout((()=>{throw e}),0)}}))},Nv=class e extends kv{constructor(e){super(e),this.a_=[],this.forceLongPolling=e.forceLongPolling,this.autoDetectLongPolling=e.autoDetectLongPolling,this.useFetchStreams=e.useFetchStreams,this.longPollingOptions=e.longPollingOptions}static u_(){e.c_||=(Mv(Ef(),Tf.STAT_EVENT,(e=>{e.stat===wf.PROXY?U(jv,`STAT_EVENT: detected buffering proxy`):e.stat===wf.NOPROXY&&U(jv,`STAT_EVENT: detected no buffering proxy`)})),!0)}zo(e,t,n,r,i){let a=Ev();return new Promise(((i,o)=>{let s=new bf;s.setWithCredentials(!0),s.listenOnce(Sf.COMPLETE,(()=>{try{switch(s.getLastErrorCode()){case Cf.NO_ERROR:let t=s.getResponseJson();U(jv,`XHR for RPC '${e}' ${a} received:`,JSON.stringify(t)),i(t);break;case Cf.TIMEOUT:U(jv,`RPC '${e}' ${a} timed out`),o(new q(K.DEADLINE_EXCEEDED,`Request time out`));break;case Cf.HTTP_ERROR:let n=s.getStatus();if(U(jv,`RPC '${e}' ${a} 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 q(function(e){let t=e.toLowerCase().replace(/_/g,`-`);return Object.values(K).indexOf(t)>=0?t:K.UNKNOWN}(t.status),t.message)):o(new q(K.UNKNOWN,`Server responded with status `+s.getStatus()))}else o(new q(K.UNAVAILABLE,`Connection failed.`));break;default:W(9055,{l_:e,streamId:a,h_:s.getLastErrorCode(),P_:s.getLastError()})}}finally{U(jv,`RPC '${e}' ${a} completed.`)}}));let c=JSON.stringify(r);U(jv,`RPC '${e}' ${a} sending request:`,r),s.send(t,`POST`,c,n,15)}))}T_(t,n,r){let i=Ev(),a=[this.qo,`/`,`google.firestore.v1.Firestore`,`/`,t,`/channel`],o=this.createWebChannelTransport(),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.Go(s.initMessageHeaders,n,r),s.encodeInitMessageHeaders=!0;let l=a.join(``);U(jv,`Creating RPC '${t}' stream ${i}: ${l}`,s);let u=o.createWebChannel(l,s);this.I_(u);let d=!1,f=!1,p=new Av({Jo:e=>{f?U(jv,`Not sending because RPC '${t}' stream ${i} is closed:`,e):(d||=(U(jv,`Opening RPC '${t}' stream ${i} transport.`),u.open(),!0),U(jv,`RPC '${t}' stream ${i} sending:`,e),u.send(e))},Ho:()=>u.close()});return Mv(u,xf.EventType.OPEN,(()=>{f||(U(jv,`RPC '${t}' stream ${i} transport opened.`),p.i_())})),Mv(u,xf.EventType.CLOSE,(()=>{f||(f=!0,U(jv,`RPC '${t}' stream ${i} transport closed`),p.o_(),this.E_(u))}
34)),Mv(u,xf.EventType.ERROR,(e=>{f||(f=!0,Pf(jv,`RPC '${t}' stream ${i} transport errored. Name:`,e.name,`Message:`,e.message),p.o_(new q(K.UNAVAILABLE,`The operation could not be completed`)))})),Mv(u,xf.EventType.MESSAGE,(e=>{if(!f){let n=e.data[0];Lf(!!n,16349);let r=n,a=r?.error||r[0]?.error;if(a){U(jv,`RPC '${t}' stream ${i} received error:`,a);let e=a.status,n=function(e){let t=Cg[e];if(t!==void 0)return Tg(t)}(e),r=a.message;e===`NOT_FOUND`&&r.includes(`database`)&&r.includes(`does not exist`)&&r.includes(this.databaseId.database)&&Pf(`Database '${this.databaseId.database}' not found. Please check your project configuration.`),n===void 0&&(n=K.INTERNAL,r=`Unknown error status: `+e+` with message `+a.message),f=!0,p.o_(new q(n,r)),u.close()}else U(jv,`RPC '${t}' stream ${i} received:`,n),p.__(n)}})),e.u_(),setTimeout((()=>{p.s_()}),0),p}terminate(){this.a_.forEach((e=>e.close())),this.a_=[]}I_(e){this.a_.push(e)}E_(e){this.a_=this.a_.filter((t=>t===e))}Go(e,t,n){super.Go(e,t,n),this.databaseInfo.apiKey&&(e[`x-goog-api-key`]=this.databaseInfo.apiKey)}createWebChannelTransport(){return Df()}};function Pv(e){return new Nv(e)}function Fv(){return typeof document<`u`?document:null}function Iv(e){return new Gg(e,!0)}Nv.c_=!1;var Lv=class{constructor(e,t,n=1e3,r=1.5,i=6e4){this.Ci=e,this.timerId=t,this.R_=n,this.A_=r,this.V_=i,this.d_=0,this.m_=null,this.f_=Date.now(),this.reset()}reset(){this.d_=0}g_(){this.d_=this.V_}p_(e){this.cancel();let t=Math.floor(this.d_+this.y_()),n=Math.max(0,Date.now()-this.f_),r=Math.max(0,t-n);r>0&&U(`ExponentialBackoff`,`Backing off for ${r} ms (base delay: ${this.d_} ms, delay with jitter: ${t} ms, last attempt: ${n} ms ago)`),this.m_=this.Ci.enqueueAfterDelay(this.timerId,r,(()=>(this.f_=Date.now(),e()))),this.d_*=this.A_,this.d_<this.R_&&(this.d_=this.R_),this.d_>this.V_&&(this.d_=this.V_)}w_(){this.m_!==null&&(this.m_.skipDelay(),this.m_=null)}cancel(){this.m_!==null&&(this.m_.cancel(),this.m_=null)}y_(){return(Math.random()-.5)*this.d_}},Rv=`PersistentStream`,zv=class{constructor(e,t,n,r,i,a,o,s){this.Ci=e,this.S_=n,this.b_=r,this.connection=i,this.authCredentialsProvider=a,this.appCheckCredentialsProvider=o,this.listener=s,this.state=0,this.D_=0,this.C_=null,this.v_=null,this.stream=null,this.F_=0,this.M_=new Lv(e,t)}x_(){return this.state===1||this.state===5||this.O_()}O_(){return this.state===2||this.state===3}start(){this.F_=0,this.state===4?this.N_():this.auth()}async stop(){this.x_()&&await this.close(0)}B_(){this.state=0,this.M_.reset()}L_(){this.O_()&&this.C_===null&&(this.C_=this.Ci.enqueueAfterDelay(this.S_,6e4,(()=>this.k_())))}K_(e){this.q_(),this.stream.send(e)}async k_(){if(this.O_())return this.close(0)}q_(){this.C_&&=(this.C_.cancel(),null)}U_(){this.v_&&=(this.v_.cancel(),null)}async close(e,t){this.q_(),this.U_(),this.M_.cancel(),this.D_++,e===4?t&&t.code===K.RESOURCE_EXHAUSTED?(Nf(t.toString()),Nf(`Using maximum backoff delay to prevent overloading the backend.`),this.M_.g_()):t&&t.code===K.UNAUTHENTICATED&&this.state!==3&&(this.authCredentialsProvider.invalidateToken(),this.appCheckCredentialsProvider.invalidateToken()):this.M_.reset(),this.stream!==null&&(this.W_(),this.stream.close(),this.stream=null),this.state=e,await this.listener.t_(t)}W_(){}auth(){this.state=1;let e=this.Q_(this.D_),t=this.D_;Promise.all([this.authCredentialsProvider.getToken(),this.appCheckCredentialsProvider.getToken()]).then((([e,n])=>{this.D_===t&&this.G_(e,n)}),(t=>{e((()=>{let e=new q(K.UNKNOWN,`Fetching auth token failed: `+t.message);return this.z_(e)}))}))}G_(e,t){let n=this.Q_(this.D_);this.stream=this.j_(e,t),this.stream.Zo((()=>{n((()=>this.listener.Zo()))})),this.stream.Yo((()=>{n((()=>(this.state=2,this.v_=this.Ci.enqueueAfterDelay(this.b_,1e4,(()=>(this.O_()&&(this.state=3),Promise.resolve()))),this.listener.Yo())))})),this.stream.t_((e=>{n((()=>this.z_(e)))})),this.stream.onMessage((e=>{n((()=>++this.F_==1?this.J_(e):this.onNext(e)))}))}N_(){this.state=5,this.M_.p_((async()=>{this.state=0,this.start()}))}z_(e){return U(Rv,`close with error: ${e}`),this.stream=null,this.close(4,e)}Q_(e){return t=>{this.Ci.enqueueAndForget((()=>this.D_===e?t():(U(Rv,`stream callback skipped by getCloseGuardedDispatcher.`),Promise.resolve())))}}},Bv=class extends zv{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
34=i}j_(e,t){return this.connection.T_(`Listen`,e,t)}J_(e){return this.onNext(e)}onNext(e){this.M_.reset();let t=s_(this.serializer,e),n=function(e){if(!(`targetChange`in e))return X.min();let t=e.targetChange;return t.targetIds&&t.targetIds.length?X.min():t.readTime?Xg(t.readTime):X.min()}(e);return this.listener.H_(t,n)}Z_(e){let t={};t.database=i_(this.serializer),t.addTarget=function(e,t){let n,r=t.target;if(n=sh(r)?{documents:u_(e,r)}:{query:d_(e,r).ft},n.targetId=t.targetId,t.resumeToken.approximateByteSize()>0){n.resumeToken=Jg(e,t.resumeToken);let r=Kg(e,t.expectedCount);r!==null&&(n.expectedCount=r)}else if(t.snapshotVersion.compareTo(X.min())>0){n.readTime=qg(e,t.snapshotVersion.toTimestamp());let r=Kg(e,t.expectedCount);r!==null&&(n.expectedCount=r)}return n}(this.serializer,e);let n=p_(this.serializer,e);n&&(t.labels=n),this.K_(t)}X_(e){let t={};t.database=i_(this.serializer),t.removeTarget=e,this.K_(t)}},Vv=class extends zv{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=i}get Y_(){return this.F_>0}start(){this.lastStreamToken=void 0,super.start()}W_(){this.Y_&&this.ea([])}j_(e,t){return this.connection.T_(`Write`,e,t)}J_(e){return Lf(!!e.streamToken,31322),this.lastStreamToken=e.streamToken,Lf(!e.writeResults||e.writeResults.length===0,55816),this.listener.ta()}onNext(e){Lf(!!e.streamToken,12678),this.lastStreamToken=e.streamToken,this.M_.reset();let t=l_(e.writeResults,e.commitTime),n=Xg(e.commitTime);return this.listener.na(n,t)}ra(){let e={};e.database=i_(this.serializer),this.K_(e)}ea(e){let t={streamToken:this.lastStreamToken,writes:e.map((e=>c_(this.serializer,e)))};this.K_(t)}},Hv=class{},Uv=class extends Hv{constructor(e,t,n,r){super(),this.authCredentials=e,this.appCheckCredentials=t,this.connection=n,this.serializer=r,this.ia=!1}sa(){if(this.ia)throw new q(K.FAILED_PRECONDITION,`The client has already been terminated.`)}Wo(e,t,n,r){return this.sa(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then((([i,a])=>this.connection.Wo(e,Qg(t,n),r,i,a))).catch((e=>{throw e.name===`FirebaseError`?(e.code===K.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),e):new q(K.UNKNOWN,e.toString())}))}jo(e,t,n,r,i){return this.sa(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then((([a,o])=>this.connection.jo(e,Qg(t,n),r,a,o,i))).catch((e=>{throw e.name===`FirebaseError`?(e.code===K.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),e):new q(K.UNKNOWN,e.toString())}))}terminate(){this.ia=!0,this.connection.terminate()}};function Wv(e,t,n,r){return new Uv(e,t,n,r)}var Gv=class{constructor(e,t){this.asyncQueue=e,this.onlineStateHandler=t,this.state=`Unknown`,this.oa=0,this._a=null,this.aa=!0}ua(){this.oa===0&&(this.ca(`Unknown`),this._a=this.asyncQueue.enqueueAfterDelay(`online_state_timeout`,1e4,(()=>(this._a=null,this.la(`Backend didn't respond within 10 seconds.`),this.ca(`Offline`),Promise.resolve()))))}ha(e){this.state===`Online`?this.ca(`Unknown`):(this.oa++,this.oa>=1&&(this.Pa(),this.la(`Connection failed 1 times. Most recent error: ${e.toString()}`),this.ca(`Offline`)))}set(e){this.Pa(),this.oa=0,e===`Online`&&(this.aa=!1),this.ca(e)}ca(e){e!==this.state&&(this.state=e,this.onlineStateHandler(e))}la(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.aa?(Nf(t),this.aa=!1):U(`OnlineStateTracker`,t)}Pa(){this._a!==null&&(this._a.cancel(),this._a=null)}},Kv=`RemoteStore`,qv=class{constructor(e,t,n,r,i){this.localStore=e,this.datastore=t,this.asyncQueue=n,this.remoteSyncer={},this.Ta=[],this.Ia=new Map,this.Ea=new Map,this.Ra=new Map,this.Aa=new N_(1e3),this.Va=new N_(1001),this.da=new Set,this.ma=[],this.fa=i,this.fa.Mo((e=>{n.enqueueAndForget((async()=>
34{ry(this)&&(U(Kv,`Restarting streams for network reachability change.`),await async function(e){let t=G(e);t.da.add(4),await Yv(t),t.ga.set(`Unknown`),t.da.delete(4),await Jv(t)}(this))}))})),this.ga=new Gv(n,r)}};async function Jv(e){if(ry(e))for(let t of e.ma)await t(!0)}async function Yv(e){for(let t of e.ma)await t(!1)}function Xv(e,t){return e.Ea.get(t)||void 0}function Zv(e,t){let n=G(e),r=Xv(n,t.targetId);if(r!==void 0&&n.Ia.has(r))return;let i=function(e,t){let n=Xv(e,t);n!==void 0&&e.Ra.delete(n);let r=function(e,t){return t%2==0?e.Aa.next():e.Va.next()}(e,t);return e.Ea.set(t,r),e.Ra.set(r,t),r}(n,t.targetId);U(Kv,`remoteStoreListen mapping SDK target ID to remote`,t.targetId,i);let a=new w_(t.target,i,t.purpose,t.sequenceNumber,t.snapshotVersion,t.lastLimboFreeSnapshotVersion,t.resumeToken);n.Ia.set(i,a),ny(n)?ty(n):Sy(n).O_()&&$v(n,a)}function Qv(e,t){let n=G(e),r=Sy(n),i=Xv(n,t);U(Kv,`remoteStoreUnlisten removing mapping of SDK target ID to remote`,t,i),n.Ia.delete(i),n.Ea.delete(t),n.Ra.delete(i),r.O_()&&ey(n,i),n.Ia.size===0&&(r.O_()?r.L_():ry(n)&&n.ga.set(`Unknown`))}function $v(e,t){if(e.pa.$e(t.targetId),t.resumeToken.approximateByteSize()>0||t.snapshotVersion.compareTo(X.min())>0){let n=e.Ra.get(t.targetId);if(n===void 0)return void U(Kv,`SDK target ID not found for remote ID: `+t.targetId);let r=e.remoteSyncer.getRemoteKeysForTarget(n).size;t=t.withExpectedCount(r)}Sy(e).Z_(t)}function ey(e,t){e.pa.$e(t),Sy(e).X_(t)}function ty(e){e.pa=new zg({getRemoteKeysForTarget:t=>{let n=e.Ra.get(t);return n===void 0?Q():e.remoteSyncer.getRemoteKeysForTarget(n)},At:t=>e.Ia.get(t)||null,ht:()=>e.datastore.serializer.databaseId}),Sy(e).start(),e.ga.ua()}function ny(e){return ry(e)&&!Sy(e).x_()&&e.Ia.size>0}function ry(e){return G(e).da.size===0}function iy(e){e.pa=void 0}async function ay(e){e.ga.set(`Online`)}async function oy(e){e.Ia.forEach(((t,n)=>{$v(e,t)}))}async function sy(e,t){iy(e),ny(e)?(e.ga.ha(t),ty(e)):e.ga.set(`Unknown`)}async function cy(e,t,n){if(e.ga.set(`Online`),t instanceof Lg&&t.state===2&&t.cause)try{await async function(e,t){let n=t.cause;for(let r of t.targetIds){if(e.Ia.has(r)){let t=e.Ra.get(r);t!==void 0&&(await e.remoteSyncer.rejectListen(t,n),e.Ea.delete(t),e.Ra.delete(r)),e.Ia.delete(r)}e.pa.removeTarget(r)}}(e,t)}catch(n){U(Kv,`Failed to remove targets %s: %s `,t.targetIds.join(`,`),n),await ly(e,n)}else if(t instanceof Fg?e.pa.Xe(t):t instanceof Ig?e.pa.st(t):e.pa.tt(t),!n.isEqual(X.min()))try{let t=await fv(e.localStore);n.compareTo(t)>=0&&await function(e,t){let n=e.pa.Tt(t);
34n.targetChanges.forEach(((n,r)=>{if(n.resumeToken.approximateByteSize()>0){let i=e.Ia.get(r);i&&e.Ia.set(r,i.withResumeToken(n.resumeToken,t))}})),n.targetMismatches.forEach(((t,n)=>{let r=e.Ia.get(t);r&&(e.Ia.set(t,r.withResumeToken(qp.EMPTY_BYTE_STRING,r.snapshotVersion)),ey(e,t),$v(e,new w_(r.target,t,n,r.sequenceNumber)))}));let r=function(e,t){let n=new Map;t.targetChanges.forEach(((t,r)=>{let i=e.Ra.get(r);i!==void 0&&n.set(i,t)}));let r=new Bp(J);return t.targetMismatches.forEach(((t,n)=>{let i=e.Ra.get(t);i!==void 0&&(r=r.insert(i,n))})),new Ng(t.snapshotVersion,n,r,t.documentUpdates,t.resolvedLimboDocuments)}(e,n);return e.remoteSyncer.applyRemoteEvent(r)}(e,n)}catch(t){U(Kv,`Failed to raise snapshot:`,t),await ly(e,t)}}async function ly(e,t,n){if(!Dp(t))throw t;e.da.add(1),await Yv(e),e.ga.set(`Offline`),n||=()=>fv(e.localStore),e.asyncQueue.enqueueRetryable((async()=>{U(Kv,`Retrying IndexedDB access`),await n(),e.da.delete(1),await Jv(e)}))}function uy(e,t){return t().catch((n=>ly(e,n,t)))}async function dy(e){let t=G(e),n=Cy(t),r=t.Ta.length>0?t.Ta[t.Ta.length-1].batchId:kp;for(;fy(t);)try{let e=await hv(t.localStore,r);if(e===null){t.Ta.length===0&&n.L_();break}r=e.batchId,py(t,e)}catch(e){await ly(t,e)}my(t)&&hy(t)}function fy(e){return ry(e)&&e.Ta.length<10}function py(e,t){e.Ta.push(t);let n=Cy(e);n.O_()&&n.Y_&&n.ea(t.mutations)}function my(e){return ry(e)&&!Cy(e).x_()&&e.Ta.length>0}function hy(e){Cy(e).start()}async function gy(e){Cy(e).ra()}async function _y(e){let t=Cy(e);for(let n of e.Ta)t.ea(n.mutations)}async function vy(e,t,n){let r=e.Ta.shift(),i=bg.from(r,t,n);await uy(e,(()=>e.remoteSyncer.applySuccessfulWrite(i))),await dy(e)}async function yy(e,t){t&&Cy(e).Y_&&await async function(e,t){if(function(e){return wg(e)&&e!==K.ABORTED}(t.code)){let n=e.Ta.shift();Cy(e).B_(),await uy(e,(()=>e.remoteSyncer.rejectFailedWrite(n.batchId,t))),await dy(e)}}(e,t),my(e)&&hy(e)}async function by(e,t){let n=G(e);n.asyncQueue.verifyOperationInProgress(),U(Kv,`RemoteStore received new credentials`);let r=ry(n);n.da.add(3),await Yv(n),r&&n.ga.set(`Unknown`),await n.remoteSyncer.handleCredentialChange(t),n.da.delete(3),await Jv(n)}async function xy(e,t){let n=G(e);t?(n.da.delete(2),await Jv(n)):t||(n.da.add(2),await Yv(n),n.ga.set(`Unknown`))}function Sy(e){return e.ya||(e.ya=function(e,t,n){let r=G(e);
34return r.sa(),new Bv(t,r.connection,r.authCredentials,r.appCheckCredentials,r.serializer,n)}(e.datastore,e.asyncQueue,{Zo:ay.bind(null,e),Yo:oy.bind(null,e),t_:sy.bind(null,e),H_:cy.bind(null,e)}),e.ma.push((async t=>{t?(e.ya.B_(),ny(e)?ty(e):e.ga.set(`Unknown`)):(await e.ya.stop(),iy(e))}))),e.ya}function Cy(e){return e.wa||(e.wa=function(e,t,n){let r=G(e);return r.sa(),new Vv(t,r.connection,r.authCredentials,r.appCheckCredentials,r.serializer,n)}(e.datastore,e.asyncQueue,{Zo:()=>Promise.resolve(),Yo:gy.bind(null,e),t_:yy.bind(null,e),ta:_y.bind(null,e),na:vy.bind(null,e)}),e.ma.push((async t=>{t?(e.wa.B_(),await dy(e)):(await e.wa.stop(),e.Ta.length>0&&(U(Kv,`Stopping write stream with ${e.Ta.length} pending writes`),e.Ta=[]))}))),e.wa}var wy=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 Rf,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=new e(t,n,Date.now()+r,i,a);return o.start(r),o}start(e){this.timerHandle=setTimeout((()=>this.handleDelayElapsed()),e)}skipDelay(){return this.handleDelayElapsed()}cancel(e){this.timerHandle!==null&&(this.clearTimeout(),this.deferred.reject(new q(K.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 Ty(e,t){if(Nf(`AsyncQueue`,`${t}: ${e}`),Dp(e))return new q(K.UNAVAILABLE,`${t}: ${e}`);throw e}var Ey=class e{static emptySet(t){return new e(t.comparator)}constructor(e){this.comparator=e?(t,n)=>e(t,n)||Y.comparator(t.key,n.key):(e,t)=>Y.comparator(e.key,t.key),this.keyedMap=jh(),this.sortedSet=new Bp(this.comparator)}has(e){return this.keyedMap.get(e)!=null}get(e){return this.keyedMap.get(e)}first(){return this.sortedSet.minKey()}last(){return this.sortedSet.maxKey()}isEmpty(){return this.sortedSet.isEmpty()}indexOf(e){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 (
35  `+e.join(`  
36`)+`
37)`}copy(t,n){let r=new e;return r.comparator=this.comparator,r.keyedMap=t,r.sortedSet=n,r}},Dy=class{constructor(){this.Sa=new Bp(Y.comparator)}track(e){let t=e.doc.key,n=this.Sa.get(t);n?e.type!==0&&n.type===3?this.Sa=this.Sa.insert(t,e):e.type===3&&n.type!==1?this.Sa=this.Sa.insert(t,{type:n.type,doc:e.doc}):e.type===2&&n.type===2?this.Sa=this.Sa.insert(t,{type:2,doc:e.doc}):e.type===2&&n.type===0?this.Sa=this.Sa.insert(t,{type:0,doc:e.doc}):e.type===1&&n.type===0?this.Sa=this.Sa.remove(t):e.type===1&&n.type===2?this.Sa=this.Sa.insert(t,{type:1,doc:n.doc}):e.type===0&&n.type===1?this.Sa=this.Sa.insert(t,{type:2,doc:e.doc}):W(63341,{Vt:e,ba:n}):this.Sa=this.Sa.insert(t,e)}Da(){let e=[];return this.Sa.inorderTraversal(((t,n)=>{e.push(n)})),e}},Oy=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,Ey.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)&&bh(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}},ky=class{constructor(){this.Ca=void 0,this.va=[]}Fa(){return this.va.some((e=>e.Ma()))}},Ay=class{constructor(){this.queries=jy(),this.onlineState=`Unknown`,this.xa=new Set}terminate(){(function(e,t){let n=G(e),r=n.queries;n.queries=jy(),r.forEach(((e,n)=>{for(let e of n.va)e.onError(t)}))})(this,new q(K.ABORTED,`Firestore shutting down`))}};function jy(){return new Dh((e=>xh(e)),bh)}async function My(e,t){let n=G(e),r=3,i=t.query,a=n.queries.get(i);a?!a.Fa()&&t.Ma()&&(r=2):(a=new ky,r=+!t.Ma());try{switch(r){case 0:a.Ca=await n.onListen(i,!0);break;case 1:a.Ca=await n.onListen(i,!1);break;case 2:await n.onFirstRemoteStoreListen(i)}}catch(e){let n=Ty(e,`Initialization of query '${Sh(t.query)}' failed`);t.onError(n);return}n.queries.set(i,a),a.va.push(t),t.Oa(n.onlineState),a.Ca&&t.Na(a.Ca)&&Iy(n)}async function Ny(e,t){let n=G(e),r=t.query,i=3,a=n.queries.get(r);if(a){let e=a.va.indexOf(t);e>=0&&(a.va.splice(e,1),a.va.length===0?i=+!t.Ma():!a.Fa()&&t.Ma()&&(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 Py(e,t){let n=G(e),r=!1;for(let e of t){let t=e.query,i=n.queries.get(t);if(i){for(let t of i.va)t.Na(e)&&(r=!0);i.Ca=e}}r&&Iy(n)}function Fy(e,t,n){let r=G(e),i=r.queries.get(t);if(i)for(let e of i.va)e.onError(n);r.queries.delete(t)}
37function Iy(e){e.xa.forEach((e=>{e.next()}))}var Ly,Ry;(Ry=Ly||={}).Ba=`default`,Ry.Cache=`cache`;var zy=class{constructor(e,t,n){this.query=e,this.La=t,this.ka=!1,this.Ka=null,this.onlineState=`Unknown`,this.options=n||{}}Na(e){if(!this.options.includeMetadataChanges){let t=[];for(let n of e.docChanges)n.type!==3&&t.push(n);e=new Oy(e.query,e.docs,e.oldDocs,t,e.mutatedKeys,e.fromCache,e.syncStateChanged,!0,e.hasCachedResults)}let t=!1;return this.ka?this.qa(e)&&(this.La.next(e),t=!0):this.Ua(e,this.onlineState)&&(this.$a(e),t=!0),this.Ka=e,t}onError(e){this.La.error(e)}Oa(e){this.onlineState=e;let t=!1;return this.Ka&&!this.ka&&this.Ua(this.Ka,e)&&(this.$a(this.Ka),t=!0),t}Ua(e,t){if(!e.fromCache||!this.Ma())return!0;let n=t!==`Offline`;return(!this.options.Wa||!n)&&(!e.docs.isEmpty()||e.hasCachedResults||t===`Offline`)}qa(e){if(e.docChanges.length>0)return!0;let t=this.Ka&&this.Ka.hasPendingWrites!==e.hasPendingWrites;return!(!e.syncStateChanged&&!t)&&!0===this.options.includeMetadataChanges}$a(e){e=Oy.fromInitialDocuments(e.query,e.docs,e.mutatedKeys,e.fromCache,e.hasCachedResults),this.ka=!0,this.La.next(e)}Ma(){return this.options.source!==Ly.Cache}},By=class{constructor(e){this.key=e}},Vy=class{constructor(e){this.key=e}},Hy=class{constructor(e,t){this.query=e,this.tu=t,this.nu=null,this.hasCachedResults=!1,this.current=!1,this.ru=Q(),this.mutatedKeys=Q(),this.iu=Th(e),this.su=new Ey(this.iu)}get ou(){return this.tu}_u(e,t){let n=t?t.au:new Dy,r=t?t.su:this.su,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=Ch(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.uu(l,u)||(n.track({type:2,doc:u}),p=!0,(s&&this.iu(u,s)>0||c&&this.iu(u,c)<0)&&(o=!0)):!l&&u?(n.track({type:0,doc:u}),p=!0):l&&!u&&(n.track({type:1,doc:l}),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{su:a,au:n,bs:o,mutatedKeys:i}}uu(e,t){return e.hasLocalMutations&&t.hasCommittedMutations&&!t.hasLocalMutations}applyChanges(e,t,n,r){let i=this.su;this.su=e.su,this.mutatedKeys=e.mutatedKeys;let a=e.au.Da();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(20277,{Vt:e})}};return n(e)-n(t)}(e.type,t.type)||this.iu(e.doc,t.doc))),this.cu(n),r??=!1;let o=t&&!r?this.lu():[],s=this.ru.size===0&&this.current&&!r?1:0,c=s!==this.nu;return this.nu=s,a.length!==0||c?{snapshot:new Oy(this.query,e.su,i,a,e.mutatedKeys,s===0,c,!1,!!n&&n.resumeToken.approximateByteSize()>0),hu:o}:{hu:o}}Oa(e){return this.current&&e===`Offline`?(this.current=!1,this.applyChanges({su:this.su,au:new Dy,mutatedKeys:this.mutatedKeys,bs:!1},!1)):{hu:[]}}Pu(e){return!this.tu.has(e)&&!!this.su.has(e)&&!this.su.get(e).hasLocalMutations}cu(e){e&&(e.addedDocuments.forEach((e=>this.tu=this.tu.add(e))),e.modifiedDocuments.forEach((e=>{})),e.removedDocuments.forEach((e=>this.tu=this.tu.delete(e))),this.current=e.current)}lu(){if(!this.current)return[];let e=this.ru;this.ru=Q(),this.su.forEach((e=>
37{this.Pu(e.key)&&(this.ru=this.ru.add(e.key))}));let t=[];return e.forEach((e=>{this.ru.has(e)||t.push(new Vy(e))})),this.ru.forEach((n=>{e.has(n)||t.push(new By(n))})),t}Tu(e){this.tu=e.ks,this.ru=Q();let t=this._u(e.documents);return this.applyChanges(t,!0)}Iu(){return Oy.fromInitialDocuments(this.query,this.su,this.mutatedKeys,this.nu===0,this.hasCachedResults)}},Uy=`SyncEngine`,Wy=class{constructor(e,t,n){this.query=e,this.targetId=t,this.view=n}},Gy=class{constructor(e){this.key=e,this.Eu=!1}},Ky=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.Ru={},this.Au=new Dh((e=>xh(e)),bh),this.Vu=new Map,this.du=new Set,this.mu=new Bp(Y.comparator),this.fu=new Map,this.gu=new q_,this.pu={},this.yu=new Map,this.wu=N_.ar(),this.onlineState=`Unknown`,this.Su=void 0}get isPrimaryClient(){return!0===this.Su}};async function qy(e,t,n=!0){let r=hb(e),i,a=r.Au.get(t);return a?(r.sharedClientState.addLocalQueryTarget(a.targetId),i=a.view.Iu()):i=await Yy(r,t,n,!0),i}async function Jy(e,t){await Yy(hb(e),t,!0,!1)}async function Yy(e,t,n,r){let i=await gv(e.localStore,hh(t)),a=i.targetId,o=e.sharedCl
37ientState.addLocalQueryTarget(a,n),s;return r&&(s=await Xy(e,t,a,o===`current`,i.resumeToken)),e.isPrimaryClient&&n&&Zv(e.remoteStore,i),s}async function Xy(e,t,n,r,i){e.bu=(t,n,r)=>async function(e,t,n,r){let i=t.view._u(n);i.bs&&(i=await vv(e.localStore,t.query,!1).then((({documents:e})=>t.view._u(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 lb(e,t.targetId,s.hu),s.snapshot}(e,t,n,r);let a=await vv(e.localStore,t,!0),o=new Hy(t,a.ks),s=o._u(a.documents),c=Pg.createSynthesizedTargetChangeForCurrentChange(n,r&&e.onlineState!==`Offline`,i),l=o.applyChanges(s,e.isPrimaryClient,c);lb(e,n,l.hu);let u=new Wy(t,n,o);return e.Au.set(t,u),e.Vu.has(n)?e.Vu.get(n).push(t):e.Vu.set(n,[t]),l.snapshot}async function Zy(e,t,n){let r=G(e),i=r.Au.get(t),a=r.Vu.get(i.targetId);if(a.length>1)return r.Vu.set(i.targetId,a.filter((e=>!bh(e,t)))),void r.Au.delete(t);r.isPrimaryClient?(r.sharedClientState.removeLocalQueryTarget(i.targetId),r.sharedCl
37ientState.isActiveQueryTarget(i.targetId)||await _v(r.localStore,i.targetId,!1).then((()=>{r.sharedClientState.clearQueryState(i.targetId),n&&Qv(r.remoteStore,i.targetId),sb(r,i.targetId)})).catch(Tp)):(sb(r,i.targetId),await _v(r.localStore,i.targetId,!0))}async function Qy(e,t){let n=G(e),r=n.Au.get(t),i=n.Vu.get(r.targetId);n.isPrimaryClient&&i.length===1&&(n.sharedClientState.removeLocalQueryTarget(r.targetId),Qv(n.remoteStore,r.targetId))}async function $y(e,t,n){let r=gb(e);try{let e=await function(e,t){let n=G(e),r=gp.now(),i=t.reduce(((e,t)=>e.add(t.key)),Q()),a,o;return n.persistence.runTransaction(`Locally write mutations`,`readwrite`,(e=>{let s=kh(),c=Q();return n.xs.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=ug(e,a.get(e.key).overlayedDocument);t!=null&&o.push(new pg(e.key,t,Nm(t.value.mapValue),ig.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:Mh(a)})))}(r.localStore,t);r.sharedClientState.addPendingMutation(e.batchId),function(e,t,n){let r=e.pu[e.currentUser.toKey()];r||=new Bp(J),r=r.insert(t,n),e.pu[e.currentUser.toKey()]=r}(r,e.batchId,n),await fb(r,e.changes),await dy(r.remoteStore)}catch(e){let t=Ty(e,`Failed to persist write`);n.reject(t)}}async function eb(e,t){let n=G(e);try{let e=await pv(n.localStore,t);
37t.targetChanges.forEach(((e,t)=>{let r=n.fu.get(t);r&&(Lf(e.addedDocuments.size+e.modifiedDocuments.size+e.removedDocuments.size<=1,22616),e.addedDocuments.size>0?r.Eu=!0:e.modifiedDocuments.size>0?Lf(r.Eu,14607):e.removedDocuments.size>0&&(Lf(r.Eu,42227),r.Eu=!1))})),await fb(n,e,t)}catch(e){await Tp(e)}}function tb(e,t,n){let r=G(e);if(r.isPrimaryClient&&n===0||!r.isPrimaryClient&&n===1){let e=[];r.Au.forEach(((n,r)=>{let i=r.view.Oa(t);i.snapshot&&e.push(i.snapshot)})),function(e,t){let n=G(e);n.onlineState=t;let r=!1;n.queries.forEach(((e,n)=>{for(let e of n.va)e.Oa(t)&&(r=!0)})),r&&Iy(n)}(r.eventManager,t),e.length&&r.Ru.H_(e),r.onlineState=t,r.isPrimaryClient&&r.sharedClientState.setOnlineState(t)}}async function nb(e,t,n){let r=G(e);r.sharedClientState.updateQueryState(t,`rejected`,n);let i=r.fu.get(t),a=i&&i.key;if(a){let e=new Bp(Y.comparator);e=e.insert(a,Pm.newNoDocument(a,X.min()));let n=Q().add(a);await eb(r,new Ng(X.min(),new Map,new Bp(J),e,n)),r.mu=r.mu.remove(a),r.fu.delete(t),db(r)}else await _v(r.localStore,t,!1).then((()=>sb(r,t,n))).catch(Tp)}async function rb(e,t){let n=G(e),r=t.batch.batchId;try{let e=await dv(n.localStore,t);ob(n,r,null),ab(n,r),n.sharedClientState.updateMutationState(r,`acknowledged`),await fb(n,e)}catch(e){await Tp(e)}}async function ib(e,t,n){let r=G(e);try{let e=await function(e,t){let n=G(e);return n.persistence.runTransaction(`Reject batch`,`readwrite-primary`,(e=>{let r;
37return n.mutationQueue.lookupMutationBatch(e,t).next((t=>(Lf(t!==null,37113),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);ob(r,t,n),ab(r,t),r.sharedClientState.updateMutationState(t,`rejected`,n),await fb(r,e)}catch(e){await Tp(e)}}function ab(e,t){(e.yu.get(t)||[]).forEach((e=>{e.resolve()})),e.yu.delete(t)}function ob(e,t,n){let r=G(e),i=r.pu[r.currentUser.toKey()];if(i){let e=i.get(t);e&&(n?e.reject(n):e.resolve(),i=i.remove(t)),r.pu[r.currentUser.toKey()]=i}}function sb(e,t,n=null){e.sharedClientState.removeLocalQueryTarget(t);for(let r of e.Vu.get(t))e.Au.delete(r),n&&e.Ru.Du(r,n);e.Vu.delete(t),e.isPrimaryClient&&e.gu.Gr(t).forEach((t=>{e.gu.containsKey(t)||cb(e,t)}))}function cb(e,t){e.du.delete(t.path.canonicalString());let n=e.mu.get(t);n!==null&&(Qv(e.remoteStore,n),e.mu=e.mu.remove(t),e.fu.delete(n),db(e))}function lb(e,t,n){for(let r of n)r instanceof By?(e.gu.addReference(r.key,t),ub(e,r)):r instanceof Vy?(U(Uy,`Document no longer in limbo: `+r.key),e.gu.removeReference(r.key,t),e.gu.containsKey(r.key)||cb(e,r.key)):W(19791,{Cu:r})}function ub(e,t){let n=t.key,r=n.path.canonicalString();e.mu.get(n)||e.du.has(r)||(U(Uy,`New document in limbo: `+n),e.du.add(r),db(e))}function db(e){for(;e.du.size>0&&e.mu.size<e.maxConcurrentLimboResolutions;){let t=e.du.values().next().value;e.du.delete(t);let n=new Y(np.fromString(t)),r=e.wu.next();e.fu.set(r,new Gy(n)),e.mu=e.mu.insert(n,r),Zv(e.remoteStore,new w_(hh(uh(n.path)),r,`TargetPurposeLimboResolution`,Op.ce))}}async function fb(e,t,n){let r=G(e),i=[],a=[],o=[];r.Au.isEmpty()||(r.Au.forEach(((e,s)=>{o.push(r.bu(s,t,n).then((e=>{if((e||n)&&r.isPrimaryClient){let t=e?!e.fromCache:n?.targetChanges.get(s.targetId)?.current;
37r.sharedClientState.updateQueryState(s.targetId,t?`current`:`not-current`)}if(e){i.push(e);let t=rv.Es(s.targetId,e);a.push(t)}})))})),await Promise.all(o),r.Ru.H_(i),await async function(e,t){let n=G(e);try{await n.persistence.runTransaction(`notifyLocalViewChanges`,`readwrite`,(e=>Z.forEach(t,(t=>Z.forEach(t.Ts,(r=>n.persistence.referenceDelegate.addReference(e,t.targetId,r))).next((()=>Z.forEach(t.Is,(r=>n.persistence.referenceDelegate.removeReference(e,t.targetId,r)))))))))}catch(e){if(!Dp(e))throw e;U(ov,`Failed to update sequence numbers: `+e)}for(let e of t){let t=e.targetId;if(!e.fromCache){let e=n.vs.get(t),r=e.snapshotVersion,i=e.withLastLimboFreeSnapshotVersion(r);n.vs=n.vs.insert(t,i)}}}(r.localStore,a))}async function pb(e,t){let n=G(e);if(!n.currentUser.isEqual(t)){U(Uy,`User change. New user:`,t.toKey());let e=await uv(n.localStore,t);n.currentUser=t,function(e,t){e.yu.forEach((e=>{e.forEach((e=>{e.reject(new q(K.CANCELLED,t))}))})),e.yu.clear()}(n,`'waitForPendingWrites' promise is rejected due to a user change.`),n.sharedClientState.handleUserChange(t,e.removedBatchIds,e.addedBatchIds),await fb(n,e.Ns)}}function mb(e,t){let n=G(e),r=n.fu.get(t);if(r&&r.Eu)return Q().add(r.key);{let e=Q(),r=n.Vu.get(t);if(!r)return e;for(let t of r){let r=n.Au.get(t);e=e.unionWith(r.view.ou)}return e}}function hb(e){let t=G(e);return t.remoteStore.remoteSyncer.applyRemoteEvent=eb.bind(null,t),t.remoteStore.remoteSyncer.getRemoteKeysForTarget=mb.bind(null,t),t.remoteStore.remoteSyncer.rejectListen=nb.bind(null,t),t.Ru.H_=Py.bind(null,t.eventManager),t.Ru.Du=Fy.bind(null,t.eventManager),t}function gb(e){let t=G(e);return t.remoteStore.remoteSyncer.applySuccessfulWrite=rb.bind(null,t),t.remoteStore.remoteSyncer.rejectFailedWrite=ib.bind(null,t),t}var _b=class{constructor(){this.kind=`memory`,this.synchronizeTabs=!1}async initialize(e){this.serializer=Iv(e.databaseInfo.databaseId),this.sharedClientState=this.Mu(e),this.persistence=this.xu(e),await this.persistence.start(),this.localStore=this.Ou(e),this.gcScheduler=this.Nu(e,this.localStore),this.indexBackfillerScheduler=this.Bu(e,this.localStore)}Nu(e,t){return null}Bu(e,t){return null}Ou(e){return lv(this.persistence,new av,e.initialUser,this.serializer)}xu(e){return new $_(tv.Vi,this.serializer)}Mu(e){return new xv}async terminate(){this.gcScheduler?.stop(),this.indexBackfillerScheduler?.stop(),this.sharedClientState.shutdown(),await this.persistence.shutdown()}};_b.provider={build:()=>new _b};var vb=class extends _b{constructor(e){super(),this.cacheSizeBytes=e}Nu(e,t){Lf(this.persistence.referenceDelegate instanceof nv,46915);let n=this.persistence.referenceDelegate.garbageCollector;return new R_(n,e.asyncQueue,t)}xu(e){let t=this.cacheSizeBytes===void 0?M_.DEFAULT:M_.withCacheSize(this.cacheSizeBytes);return new $_((e=>nv.Vi(e,t)),this.serializer)}},yb=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=>tb(this.syncEngine,e,1),this.remoteStore.remoteSyncer.handleCredentialChange=pb.bind(null,this.syncEngine),await xy(this.remoteStore,this.syncEngine.isPrimaryClient))}createEventManager(e){return function(){return new Ay}()}createDatastore(e){let t=Iv(e.databaseInfo.databaseId),n=Pv(e.databaseInfo);return Wv(e.authCredentials,e.appCheckCredentials,n,t)}createRemoteStore(e){return function(e,t,n,r,i){return new qv(e,t,n,r,i)}(this.localStore,this.datastore,e.asyncQueue,(e=>tb(this.syncEngine,e,0)),function(){return wv.v()?new wv:new Sv}())}createSyncEngine(e,t){return function(e,t,n,r,i,a,o){let s=new Ky(e,t,n,r,i,a);return o&&(s.Su=!0),s}(this.localStore,this.remoteStore,this.eventManager,this.sharedClientState,e.initialUser,e.maxConcurrentLimboResolutions,t)}async terminate(){await async function(e){let t=G(e);U(Kv,`RemoteStore shutting down.`),t.da.add(5),await Yv(t),t.fa.shutdown(),t.ga.set(`Unknown`)}(this.remoteStore),this.datastore?.terminate(),this.eventManager?.terminate()}};yb.provider={build:()=>new yb};var bb=class{constructor(e){this.observer=e,this.muted=!1}next(e){this.muted||this.observer.next&&this.ku(this.observer.next,e)}error(e){this.muted||(this.observer.error?this.ku(this.observer.error,e):Nf(`Uncaught Error in snapshot listener:`,e.toString()))}Ku(){this.muted=!0}
37ku(e,t){setTimeout((()=>{this.muted||e(t)}),0)}},xb=`FirestoreClient`,Sb=class{constructor(e,t,n,r,i){this.authCredentials=e,this.appCheckCredentials=t,this.asyncQueue=n,this._databaseInfo=r,this.user=Of.UNAUTHENTICATED,this.clientId=Jf.newId(),this.authCredentialListener=()=>Promise.resolve(),this.appCheckCredentialListener=()=>Promise.resolve(),this._uninitializedComponentsProvider=i,this.authCredentials.start(n,(async e=>{U(xb,`Received user=`,e.uid),await this.authCredentialListener(e),this.user=e})),this.appCheckCredentials.start(n,(e=>(U(xb,`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 Rf;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=Ty(t,`Failed to shutdown persistence`);e.reject(n)}})),e.promise}};async function Cb(e,t){e.asyncQueue.verifyOperationInProgress(),U(xb,`Initializing OfflineComponentProvider`);let n=e.configuration;await t.initialize(n);let r=n.initialUser;e.setCredentialChangeListener((async e=>{r.isEqual(e)||(await uv(t.localStore,e),r=e)})),t.persistence.setDatabaseDeletedListener((()=>e.terminate())),e._offlineComponents=t}async function wb(e,t){e.asyncQueue.verifyOperationInProgress();let n=await Tb(e);U(xb,`Initializing OnlineComponentProvider`),await t.initialize(n,e.configuration),e.setCredentialChangeListener((e=>by(t.remoteStore,e))),e.setAppCheckTokenChangeListener(((e,n)=>by(t.remoteStore,n))),e._onlineComponents=t}async function Tb(e){if(!e._offlineComponents)if(e._uninitializedComponentsProvider){U(xb,`Using user provided OfflineComponentProvider`);try{await Cb(e,e._uninitializedComponentsProvider._offline)}catch(t){let n=t;if(!function(e){return e.name===`FirebaseError`?e.code===K.FAILED_PRECONDITION||e.code===K.UNIMPLEMENTED:!(typeof DOMException<`u`&&e instanceof DOMException)||e.code===22||e.code===20||e.code===11}(n))throw n;Pf(`Error using user provided cache. Falling back to memory cache: `+n),await Cb(e,new _b)}}else U(xb,`Using default OfflineComponentProvider`),await Cb(e,new vb(void 0));return e._offlineComponents}async function Eb(e){return e._onlineComponents||(e._uninitializedComponentsProvider?(U(xb,`Using user provided OnlineComponentProvider`),await wb(e,e._uninitializedComponentsProvider._online)):(U(xb,`Using default OnlineComponentProvider`),await wb(e,new yb))),e._onlineComponents}function Db(e){return Eb(e).then((e=>e.syncEngine))}async function Ob(e){let t=await Eb(e),n=t.eventManager;return n.onListen=qy.bind(null,t.syncEngine),n.onUnlisten=Zy.bind(null,t.syncEngine),n.onFirstRemoteStoreListen=Jy.bind(null,t.syncEngine),n.onLastRemoteStoreUnlisten=Qy.bind(null,t.syncEngine),n}function kb(e,t,n,r){let i=new bb(r),a=new zy(t,i,n);return e.asyncQueue.enqueueAndForget((async()=>My(await Ob(e),a))),()=>{i.Ku(),e.asyncQueue.enqueueAndForget((async()=>Ny(await Ob(e),a)))}}function Ab(e,t,n={}){let r=new Rf;return e.asyncQueue.enqueueAndForget((async()=>function(e,t,n,r,i){let a=new bb({next:s=>{a.Ku(),t.enqueueAndForget((()=>Ny(e,o)));let c=s.docs.has(n);!c&&s.fromCache?i.reject(new q(K.UNAVAILABLE,`Failed to get document because the client is offline.`)):c&&s.fromCache&&r&&r.source===`server`?i.reject(new q(K.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 zy(uh(n.path),a,{includeMetadataChanges:!0,Wa:!0});return My(e,o)}(await Ob(e),e.asyncQueue,t,n,r))),r.promise}function jb(e,t){let n=new Rf;return e.asyncQueue.enqueueAndForget((async()=>$y(await Db(e),t,n))),n.promise}function Mb(e){let t={};return e.timeoutSeconds!==void 0&&(t.timeoutSeconds=e.timeoutSeconds),t}var Nb=`ComponentProvider`,Pb=new Map;function Fb(e,t,n,r,i){return new am(e,t,n,i.host,i.ssl,i.experimentalForceLongPolling,i.experimentalAutoDetectLongPolling,Mb(i.experimentalLongPollingOptions),i.useFetchStreams,i.isUsingEmulator,r)}var Ib=`firestore.googleapis.com`,Lb=!0,Rb=class{constructor(e){if(e.host===void 0){if(e.ssl!==void 0)throw new q(K.INVALID_ARGUMENT,`Can't provide ssl option if host option is not set`);this.host=Ib,this.ssl=Lb}else this.host=e.host,this.ssl=e.ssl??Lb;if(this.isUsingEmulator=e.emulatorOptions!==void 0,this.credentials=e.credentials,this.ignoreUndefinedProperties=!!e.ignoreUndefinedProperties,this.localCache=e.localCache,e.cacheSizeBytes===void 0)this.cacheSizeBytes=j_;
37else{if(e.cacheSizeBytes!==-1&&e.cacheSizeBytes<F_)throw new q(K.INVALID_ARGUMENT,`cacheSizeBytes must be at least 1048576`);this.cacheSizeBytes=e.cacheSizeBytes}op(`experimentalForceLongPolling`,e.experimentalForceLongPolling,`experimentalAutoDetectLongPolling`,e.experimentalAutoDetectLongPolling),this.experimentalForceLongPolling=!!e.experimentalForceLongPolling,this.experimentalForceLongPolling?this.experimentalAutoDetectLongPolling=!1:e.experimentalAutoDetectLongPolling===void 0?this.experimentalAutoDetectLongPolling=!0:this.experimentalAutoDetectLongPolling=!!e.experimentalAutoDetectLongPolling,this.experimentalLongPollingOptions=Mb(e.experimentalLongPollingOptions??{}),function(e){if(e.timeoutSeconds!==void 0){if(isNaN(e.timeoutSeconds))throw new q(K.INVALID_ARGUMENT,`invalid long polling timeout: ${e.timeoutSeconds} (must not be NaN)`);if(e.timeoutSeconds<5)throw new q(K.INVALID_ARGUMENT,`invalid long polling timeout: ${e.timeoutSeconds} (minimum allowed value is 5)`);if(e.timeoutSeconds>30)throw new q(K.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}},zb=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 Rb({}),this._settingsFrozen=!1,this._emulatorOptions={},this._terminateTask=`notTerminated`}get app(){if(!this._app)throw new q(K.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 q(K.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 Rb(e),this._emulatorOptions=e.emulatorOptions||{},e.credentials!==void 0&&(this._authCredentials=function(e){if(!e)return new Bf;switch(e.type){case`firstParty`:return new Wf(e.sessionIndex||`0`,e.iamToken||null,e.authTokenFactory||null);case`provider`:return e.client;default:throw new q(K.INVALID_ARGUMENT,`makeAuthCredentialsProvider failed due to invalid credential type`)}}(e.credentials))}_getSettings(){return this._settings}_getEmulatorOptions(){return this._emulatorOptions}_freezeSettings(){return this._settingsFrozen=!0,this._settings}_delete(){return this._terminateTask===`notTerminated`&&(this._terminateTask=this._terminate()),this._terminateTask}async _restart(){this._terminateTask===`notTerminated`?await this._terminate():this._terminateTask=`notTerminated`}toJSON(){return{app:this._app,databaseId:this._databaseId,settings:this._settings}}_terminate(){return function(e){let t=Pb.get(e);t&&(U(Nb,`Removing Datastore`),Pb.delete(e),t.terminate())}(this),Promise.resolve()}};function Bb(e,t,n,r={}){e=dp(e,zb);let i=Ia(t),a=e._getSettings(),o={...a,emulatorOptions:e._getEmulatorOptions()},s=`${t}:${n}`;i&&La(`https://${s}`),a.host!==Ib&&a.host!==s&&Pf(`Host has been set in both settings() and connectFirestoreEmulator(), emulator host will be used.`);let c={...a,host:s,ssl:i,emulatorOptions:r};if(!Ea(c,o)&&(e._setSettings(c),r.mockUserToken)){let t,n;if(typeof r.mockUserToken==`string`)t=r.mockUserToken,n=Of.MOCK_USER;else{t=la(r.mockUserToken,e._app?.options.projectId);let i=r.mockUserToken.sub||r.mockUserToken.user_id;if(!i)throw new q(K.INVALID_ARGUMENT,`mockUserToken must contain 'sub' or 'user_id' field!`);n=new Of(i)}e._authCredentials=new Vf(new zf(t,n))}}var Vb=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)}},Hb=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()}
37get path(){return this._key.path.canonicalString()}get parent(){return new Ub(this.firestore,this.converter,this._key.path.popLast())}withConverter(t){return new e(this.firestore,t,this._key)}toJSON(){return{type:e._jsonSchemaVersion,referencePath:this._key.toString()}}static fromJSON(t,n,r){if(pp(n,e._jsonSchema))return new e(t,r||null,new Y(np.fromString(n.referencePath)))}};Hb._jsonSchemaVersion=`firestore/documentReference/1.0`,Hb._jsonSchema={type:fp(`string`,Hb._jsonSchemaVersion),referencePath:fp(`string`)};var Ub=class e extends Vb{constructor(e,t,n){super(e,t,uh(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 Hb(this.firestore,null,new Y(e))}withConverter(t){return new e(this.firestore,t,this._path)}};function Wb(e,t,...n){if(e=Fa(e),ap(`collection`,`path`,t),e instanceof zb){let r=np.fromString(t,...n);return cp(r),new Ub(e,null,r)}{if(!(e instanceof Hb||e instanceof Ub))throw new q(K.INVALID_ARGUMENT,`Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore`);let r=e._path.child(np.fromString(t,...n));return cp(r),new Ub(e.firestore,null,r)}}function Gb(e,t,...n){if(e=Fa(e),arguments.length===1&&(t=Jf.newId()),ap(`doc`,`path`,t),e instanceof zb){let r=np.fromString(t,...n);return sp(r),new Hb(e,null,new Y(r))}{if(!(e instanceof Hb||e instanceof Ub))throw new q(K.INVALID_ARGUMENT,`Expected first argument to doc() to be a CollectionReference, a DocumentReference or FirebaseFirestore`);let r=e._path.child(np.fromString(t,...n));return sp(r),new Hb(e.firestore,e instanceof Ub?e.converter:null,new Y(r))}}var Kb=`AsyncQueue`,qb=class{constructor(e=Promise.resolve()){this.rc=[],this.sc=!1,this.oc=[],this._c=null,this.ac=!1,this.uc=!1,this.cc=[],this.M_=new Lv(this,`async_queue_retry`),this.lc=()=>{let e=Fv();e&&U(Kb,`Visibility state changed to `+e.visibilityState),this.M_.w_()},this.hc=e;let t=Fv();t&&typeof t.addEventListener==`function`&&t.addEventListener(`visibilitychange`,this.lc)}get isShuttingDown(){return this.sc}enqueueAndForget(e){this.enqueue(e)}enqueueAndForgetEvenWhileRestricted(e){this.Pc(),this.Tc(e)}enterRestrictedMode(e){if(!this.sc){this.sc=!0,this.uc=e||!1;let t=Fv();t&&typeof t.removeEventListener==`function`&&t.removeEventListener(`visibilitychange`,this.lc)}}enqueue(e){if(this.Pc(),this.sc)return new Promise((()=>{}));let t=new Rf;return this.Tc((()=>this.sc&&this.uc?Promise.resolve():(e().then(t.resolve,t.reject),t.promise))).then((()=>t.promise))}enqueueRetryable(e){this.enqueueAndForget((()=>(this.rc.push(e),this.Ic())))}async Ic(){if(this.rc.length!==0){try{await this.rc[0](),this.rc.shift(),this.M_.reset()}catch(e){if(!Dp(e))throw e;U(Kb,`Operation failed with retryable error: `+e)}this.rc.length>0&&this.M_.p_((()=>this.Ic()))}}Tc(e){let t=this.hc.then((()=>(this.ac=!0,e().catch((e=>{throw this._c=e,this.ac=!1,Nf(`INTERNAL UNHANDLED ERROR: `,Jb(e)),e})).then((e=>(this.ac=!1,e))))));return this.hc=t,t}enqueueAfterDelay(e,t,n){this.Pc(),this.cc.indexOf(e)>-1&&(t=0);let r=wy.createAndSchedule(this,e,t,n,(e=>this.Ec(e)));return this.oc.push(r),r}Pc(){this._c&&W(47125,{Rc:Jb(this._c)})}verifyOperationInProgress(){}async Ac(){let e;do e=this.hc,await e;while(e!==this.hc)}Vc(e){for(let t of this.oc)if(t.timerId===e)return!0;return!1}dc(e){return this.Ac().then((()=>{this.oc.sort(((e,t)=>e.targetTimeMs-t.targetTimeMs));for(let t of this.oc)if(t.skipDelay(),e!==`all`&&t.timerId===e)break;return this.Ac()}))}mc(e){this.cc.push(e)}Ec(e){let t=this.oc.indexOf(e);this.oc.splice(t,1)}};function Jb(e){let t=e.message||``;return e.stack&&(t=e.stack.includes(e.message)?e.stack:e.message+`
38`+e.stack),t}var Yb=class extends zb{constructor(e,t,n,r){super(e,t,n,r),this.type=`firestore`,this._queue=new qb,this._persistenceKey=r?.name||`[DEFAULT]`}async _terminate(){if(this._firestoreClient){let e=this._firestoreClient.terminate();this._queue=new qb(e),this._firestoreClient=void 0,await e}}};function Xb(e,t){let n=typeof e==`object`?e:us(),r=typeof e==`string`?e:t||om,i=is(n,`firestore`).getImmediate({identifier:r});if(!i._initialized){let e=aa(`firestore`);e&&Bb(i,...e)}return i}function Zb(e){if(e._terminated)throw new q(K.FAILED_PRECONDITION,`The client has already been terminated.`);return e._firestoreClient||Qb(e),e._firestoreClient}function Qb(e){let t=e._freezeSettings(),n=Fb(e._databaseId,e._app?.options.appId||``,e._persistenceKey,e._app?.options.apiKey,t);e._componentsProvider||t.localCache?._offlineComponentProvider&&t.localCache?._onlineComponentProvider&&(e._componentsProvider={_offline:t.localCache._offlineComponentProvider,_online:t.localCache._onlineComponentProvider}
38),e._firestoreClient=new Sb(e._authCredentials,e._appCheckCredentials,e._queue,n,e._componentsProvider&&function(e){let t=e?._online.build();return{_offline:e?._offline.build(t),_online:t}}(e._componentsProvider))}var $b=class e{constructor(e){this._byteString=e}static fromBase64String(t){try{return new e(qp.fromBase64String(t))}catch(e){throw new q(K.INVALID_ARGUMENT,`Failed to construct data from Base64 string: `+e)}}static fromUint8Array(t){return new e(qp.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)}toJSON(){return{type:e._jsonSchemaVersion,bytes:this.toBase64()}}static fromJSON(t){if(pp(t,e._jsonSchema))return e.fromBase64String(t.bytes)}};$b._jsonSchemaVersion=`firestore/bytes/1.0`,$b._jsonSchema={type:fp(`string`,$b._jsonSchemaVersion),bytes:fp(`string`)};var ex=class{constructor(...e){for(let t=0;t<e.length;++t)if(e[t].length===0)throw new q(K.INVALID_ARGUMENT,`Invalid field name at argument $(i + 1). Field names must not be empty.`);this._internalPath=new ip(e)}isEqual(e){return this._internalPath.isEqual(e._internalPath)}},tx=class{constructor(e){this._methodName=e}},nx=class e{constructor(e,t){if(!isFinite(e)||e<-90||e>90)throw new q(K.INVALID_ARGUMENT,`Latitude must be a number between -90 and 90, but was: `+e);if(!isFinite(t)||t<-180||t>180)throw new q(K.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}_compareTo(e){return J(this._lat,e._lat)||J(this._long,e._long)}toJSON(){return{latitude:this._lat,longitude:this._long,type:e._jsonSchemaVersion}}static fromJSON(t){if(pp(t,e._jsonSchema))return new e(t.latitude,t.longitude)}};nx._jsonSchemaVersion=`firestore/geoPoint/1.0`,nx._jsonSchema={type:fp(`string`,nx._jsonSchemaVersion),latitude:fp(`number`),longitude:fp(`number`)};var rx=class e{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)}toJSON(){return{type:e._jsonSchemaVersion,vectorValues:this._values}}static fromJSON(t){if(pp(t,e._jsonSchema)){if(Array.isArray(t.vectorValues)&&t.vectorValues.every((e=>typeof e==`number`)))return new e(t.vectorValues);throw new q(K.INVALID_ARGUMENT,`Expected 'vectorValues' field to be a number array`)}}};rx._jsonSchemaVersion=`firestore/vectorValue/1.0`,rx._jsonSchema={type:fp(`string`,rx._jsonSchemaVersion),vectorValues:fp(`object`)};var ix=/^__.*__$/,ax=class{constructor(e,t,n){this.data=e,this.fieldMask=t,this.fieldTransforms=n}toMutation(e,t){return this.fieldMask===null?new fg(e,this.data,t,this.fieldTransforms):new pg(e,this.data,this.fieldMask,t,this.fieldTransforms)}},ox=class{constructor(e,t,n){this.data=e,this.fieldMask=t,this.fieldTransforms=n}toMutation(e,t){return new pg(e,this.data,this.fieldMask,t,this.fieldTransforms)}};function sx(e){switch(e){case 0:case 2:case 1:return!0;case 3:case 4:return!1;default:throw W(40011,{dataSource:e})}}var cx=class e{constructor(e,t,n,r,i,a){this.settings=e,this.databaseId=t,this.serializer=n,this.ignoreUndefinedProperties=r,i===void 0&&this.fc(),this.fieldTransforms=i||[],this.fieldMask=a||[]}get path(){return this.settings.path}get dataSource(){return this.settings.dataSource}i(t){return new e({...this.settings,...t},this.databaseId,this.serializer,this.ignoreUndefinedProperties,this.fieldTransforms,this.fieldMask)}yc(e){let t=this.path?.child(e),n=this.i({path:t,arrayElement:!1});return n.wc(e),n}Sc(e){let t=this.path?.child(e),n=this.i({path:t,arrayElement:!1});return n.fc(),n}bc(e){return this.i({path:void 0,arrayElement:!0})}Dc(e){return wx(e,this.settings.methodName,this.settings.hasConverter||!1,this.path,this.settings.targetDoc)}contains(e){return this.fieldMask.find((t=>e.isPrefixOf(t)))!==void 0||this.fieldTransforms.find((t=>e.isPrefixOf(t.field)))!==void 0}
38fc(){if(this.path)for(let e=0;e<this.path.length;e++)this.wc(this.path.get(e))}wc(e){if(e.length===0)throw this.Dc(`Document fields must not be empty`);if(sx(this.dataSource)&&ix.test(e))throw this.Dc(`Document fields cannot begin and end with "__"`)}},lx=class{constructor(e,t,n){this.databaseId=e,this.ignoreUndefinedProperties=t,this.serializer=n||Iv(e)}V(e,t,n,r=!1){return new cx({dataSource:e,methodName:t,targetDoc:n,path:ip.emptyPath(),arrayElement:!1,hasConverter:r},this.databaseId,this.serializer,this.ignoreUndefinedProperties)}};function ux(e){let t=e._freezeSettings(),n=Iv(e._databaseId);return new lx(e._databaseId,!!t.ignoreUndefinedProperties,n)}function dx(e,t,n,r,i,a={}){let o=e.V(a.merge||a.mergeFields?2:0,t,n,i);bx(`Data must be an object, but it was:`,o,r);let s=vx(r,o),c,l;if(a.merge)c=new Gp(o.fieldMask),l=o.fieldTransforms;else if(a.mergeFields){let e=[];for(let r of a.mergeFields){let i=xx(t,r,n);if(!o.contains(i))throw new q(K.INVALID_ARGUMENT,`Field '${i}' is specified in your field mask but missing from your input data.`);Tx(e,i)||e.push(i)}c=new Gp(e),l=o.fieldTransforms.filter((e=>c.covers(e.field)))}else c=null,l=o.fieldTransforms;return new ax(new Mm(s),c,l)}var fx=class e extends tx{_toFieldTransform(e){if(e.dataSource!==2)throw e.dataSource===1?e.Dc(`${this._methodName}() can only appear at the top level of your update data`):e.Dc(`${this._methodName}() cannot be used with set() unless you pass {merge:true}`);return e.fieldMask.push(e.path),null}isEqual(t){return t instanceof e}},px=class e extends tx{_toFieldTransform(e){return new tg(e.path,new qh)}isEqual(t){return t instanceof e}};function mx(e,t,n,r){let i=e.V(1,t,n);bx(`Data must be an object, but it was:`,i,r);let a=[],o=Mm.empty();return Rp(r,((e,r)=>{let s=Cx(t,e,n);r=Fa(r);let c=i.Sc(s);if(r instanceof fx)a.push(s);else{let e=_x(r,c);e!=null&&(a.push(s),o.set(s,e))}})),new ox(o,new Gp(a),i.fieldTransforms)}function hx(e,t,n,r,i,a){let o=e.V(1,t,n),s=[xx(t,r,n)],c=[i];if(a.length%2!=0)throw new q(K.INVALID_ARGUMENT,`Function ${t}() needs to be called with an even number of arguments that alternate between field names and values.`);for(let e=0;e<a.length;e+=2)s.push(xx(t,a[e])),c.push(a[e+1]);let l=[],u=Mm.empty();for(let e=s.length-1;e>=0;--e)if(!Tx(l,s[e])){let t=s[e],n=c[e];n=Fa(n);let r=o.Sc(t);if(n instanceof fx)l.push(t);else{let e=_x(n,r);e!=null&&(l.push(t),u.set(t,e))}}return new ox(u,new Gp(l),o.fieldTransforms)}function gx(e,t,n,r=!1){return _x(n,e.V(r?4:3,t))}function _x(e,t){if(yx(e=Fa(e)))return bx(`Unsupported field value:`,t,e),vx(e,t);if(e instanceof tx)return function(e,t){if(!sx(t.dataSource))throw t.Dc(`${e._methodName}() can only be used with update() and set()`);if(!t.path)throw t.Dc(`${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.arrayElement&&t.dataSource!==4)throw t.Dc(`Nested arrays are not supported`);return function(e,t){let n=[],r=0;for(let i of e){let e=_x(i,t.bc(r));e??={nullValue:`NULL_VALUE`},n.push(e),r++}return{arrayValue:{values:n}}}(e,t)}return function(e,t){if((e=Fa(e))===null)return{nullValue:`NULL_VALUE`};if(typeof e==`number`)return Hh(t.serializer,e);if(typeof e==`boolean`)return{booleanValue:e};if(typeof e==`string`)return{stringValue:e};if(e instanceof Date){let n=gp.fromDate(e);return{timestampValue:qg(t.serializer,n)}}if(e instanceof gp){let n=new gp(e.seconds,1e3*Math.floor(e.nanoseconds/1e3));return{timestampValue:qg(t.serializer,n)}}if(e instanceof nx)return{geoPointValue:{latitude:e.latitude,longitude:e.longitude}};if(e instanceof $b)return{bytesValue:Jg(t.serializer,e._byteString)};if(e instanceof Hb){let n=t.databaseId,r=e.firestore._databaseId;if(!r.isEqual(n))throw t.Dc(`Document reference is for database ${r.projectId}/${r.database} but should be for database ${n.projectId}/${n.database}`);return{referenceValue:Zg(e.firestore._databaseId||t.databaseId,e._key.path)}}if(e instanceof rx)return function(e,t){let n=e instanceof rx?e.toArray():e;return{mapValue:{fields:{[lm]:{stringValue:fm},[pm]:{arrayValue:{values:n.map((e=>{if(typeof e!=`number`)throw t.Dc(`VectorValues must only contain numeric values.`);return Bh(t.serializer,e)}))}}}}}}(e,t);if(C_(e))return e._toProto(t.serializer);throw t.Dc(`Unsupported field value: ${up(e)}`)}(e,t)}function vx(e,t){let n={};return zp(e)?t.path&&t.path.length>0&&t.fieldMask.push(t.path):Rp(e,((e,r)=>{let i=_x(r,t.yc(e));i!=null&&(n[e]=i)})),{mapValue:{fields:n}}}function yx(e){return!(typeof e!=`object`||!e||e instanceof Array||e instanceof Date||e instanceof gp||e instanceof nx||e instanceof $b||e instanceof Hb||e instanceof tx||e instanceof rx||C_(e))}function bx(e,t,n){if(!yx(n)||!lp(n)){let r=up(n);throw r===`an object`?t.Dc(e+` a custom object`):t.Dc(e+` `+r)}}
38function xx(e,t,n){if((t=Fa(t))instanceof ex)return t._internalPath;if(typeof t==`string`)return Cx(e,t);throw wx(`Field path arguments must be of type string or `,e,!1,void 0,n)}var Sx=RegExp(`[~\\*/\\[\\]]`);function Cx(e,t,n){if(t.search(Sx)>=0)throw wx(`Invalid field path (${t}). Paths must not contain '~', '*', '/', '[', or ']'`,e,!1,void 0,n);try{return new ex(...t.split(`.`))._internalPath}catch{throw wx(`Invalid field path (${t}). Paths must not be empty, begin with '.', end with '.', or contain '..'`,e,!1,void 0,n)}}function wx(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 q(K.INVALID_ARGUMENT,s+e+c)}function Tx(e,t){return e.some((e=>e.isEqual(t)))}var Ex=class{convertValue(e,t=`none`){switch(mm(e)){case 0:return null;case 1:return e.booleanValue;case 2:return Xp(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(Zp(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(62114,{value:e})}}convertObject(e,t){return this.convertObjectMap(e.fields,t)}convertObjectMap(e,t=`none`){let n={};return Rp(e,((e,r)=>{n[e]=this.convertValue(r,t)})),n}convertVectorValue(e){let t=e.fields?.[pm].arrayValue?.values?.map((e=>Xp(e.doubleValue)));return new rx(t)}convertGeoPoint(e){return new nx(Xp(e.latitude),Xp(e.longitude))}convertArray(e,t){return(e.values||[]).map((e=>this.convertValue(e,t)))}convertServerTimestamp(e,t){switch(t){case`previous`:let n=rm(e);return n==null?null:this.convertValue(n,t);case`estimate`:return this.convertTimestamp(im(e));default:return null}}convertTimestamp(e){let t=Yp(e);return new gp(t.seconds,t.nanos)}convertDocumentKey(e,t){let n=np.fromString(e);Lf(S_(n),9688,{name:e});let r=new sm(n.get(1),n.get(3)),i=new Y(n.popFirst(5));return r.isEqual(t)||Nf(`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}},Dx=class extends Ex{constructor(e){super(),this.firestore=e}convertBytes(e){return new $b(e)}convertReference(e){let t=this.convertDocumentKey(e,this.firestore._databaseId);return new Hb(this.firestore,null,t)}};function Ox(){return new px(`serverTimestamp`)}var kx=`@firebase/firestore`,Ax=`4.14.1`;function jx(e){return function(e,t){if(typeof e!=`object`||!e)return!1;let n=e;for(let e of t)if(e in n&&typeof n[e]==`function`)return!0;return!1}(e,[`next`,`error`,`complete`])}var Mx=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 Hb(this._firestore,this._converter,this._key)}exists(){return this._document!==null}data(){if(this._document){if(this._converter){let e=new Nx(this._firestore,this._userDataWriter,this._key,this._document,null);return this._converter.fromFirestore(e)}return this._userDataWriter.convertValue(this._document.data.value)}}_fieldsProto(){return this._document?.data.clone().value.mapValue.fields??void 0}get(e){if(this._document){let t=this._document.data.field(xx(`DocumentSnapshot.get`,e));if(t!==null)return this._userDataWriter.convertValue(t)}}},Nx=class extends Mx{data(){return super.data()}};function Px(e){if(e.limitType===`L`&&e.explicitOrderBy.length===0)throw new q(K.UNIMPLEMENTED,`limitToLast() queries require specifying at least one orderBy() clause`)}var Fx=class{},Ix=class extends Fx{};function Lx(e,t,...n){let r=[];t instanceof Fx&&r.push(t),r=r.concat(n),function(e){let t=e.filter((e=>e instanceof zx)).length,n=e.filter((e=>e instanceof Rx)).length;if(t>1||t>0&&n>0)throw new q(K.INVALID_ARGUMENT,"InvalidQuery. When using composite filters, you cannot use more than one filter at the top level. Consider nesting the multiple filters within an `and(...)` statement. For example: change `query(query, where(...), or(...))` to `query(query, and(where(...), or(...)))`.")}(r);for(let t of r)e=t._apply(e);return e}var Rx=class e extends Ix{constructor(e,t,n){super(),this._field=e,this._op=t,this._value=n,this.type=`where`}static _create(t,n,r){return new e(t,n,r)}_apply(e){let t=this._parse(e);return Wx(e._query,t),new Vb(e.firestore,e.converter,_h(e._query,t))}_parse(e){let t=ux(e.firestore);return function(e,t,n,r,i,a,o){let s;
38if(i.isKeyField()){if(a===`array-contains`||a===`array-contains-any`)throw new q(K.INVALID_ARGUMENT,`Invalid Query. You can't perform '${a}' queries on documentId().`);if(a===`in`||a===`not-in`){Ux(o,a);let t=[];for(let n of o)t.push(Hx(r,e,n));s={arrayValue:{values:t}}}else s=Hx(r,e,o)}else a!==`in`&&a!==`not-in`&&a!==`array-contains-any`||Ux(o,a),s=gx(n,t,o,a===`in`||a===`not-in`);return Vm.create(i,a,s)}(e._query,`where`,t,e.firestore._databaseId,this._field,this._op,this._value)}},zx=class e extends Fx{constructor(e,t){super(),this.type=e,this._queryConstraints=t}static _create(t,n){return new e(t,n)}_parse(e){let t=this._queryConstraints.map((t=>t._parse(e))).filter((e=>e.getFilters().length>0));return t.length===1?t[0]:Hm.create(t,this._getOperator())}_apply(e){let t=this._parse(e);return t.getFilters().length===0?e:(function(e,t){let n=e,r=t.getFlattenedFilters();for(let e of r)Wx(n,e),n=_h(n,e)}(e._query,t),new Vb(e.firestore,e.converter,_h(e._query,t)))}_getQueryConstraints(){return this._queryConstraints}_getOperator(){return this.type===`and`?`and`:`or`}},Bx=class e extends Ix{constructor(e,t){super(),this._field=e,this._direction=t,this.type=`orderBy`}static _create(t,n){return new e(t,n)}_apply(e){let t=function(e,t,n){if(e.startAt!==null)throw new q(K.INVALID_ARGUMENT,`Invalid query. You must not call startAt() or startAfter() before calling orderBy().`);if(e.endAt!==null)throw new q(K.INVALID_ARGUMENT,`Invalid query. You must not call endAt() or endBefore() before calling orderBy().`);return new Rm(t,n)}(e._query,this._field,this._direction);return new Vb(e.firestore,e.converter,vh(e._query,t))}};function Vx(e,t=`asc`){let n=t,r=xx(`orderBy`,e);return Bx._create(r,n)}function Hx(e,t,n){if(typeof(n=Fa(n))==`string`){if(n===``)throw new q(K.INVALID_ARGUMENT,`Invalid query. When querying with documentId(), you must provide a valid document ID, but it was an empty string.`);if(!ph(t)&&n.indexOf(`/`)!==-1)throw new q(K.INVALID_ARGUMENT,`Invalid query. When querying a collection by documentId(), you must provide a plain document ID, but '${n}' contains a '/' character.`);let r=t.path.child(np.fromString(n));if(!Y.isDocumentKey(r))throw new q(K.INVALID_ARGUMENT,`Invalid query. When querying a collection group by documentId(), the value provided must result in a valid document path, but '${r}' is not because it has an odd number of segments (${r.length}).`);return Cm(e,new Y(r))}if(n instanceof Hb)return Cm(e,n._key);throw new q(K.INVALID_ARGUMENT,`Invalid query. When querying with documentId(), you must provide a valid string or a DocumentReference, but it was: ${up(n)}.`)}function Ux(e,t){if(!Array.isArray(e)||e.length===0)throw new q(K.INVALID_ARGUMENT,`Invalid Query. A non-empty array is required for '${t.toString()}' filters.`)}function Wx(e,t){let n=function(e,t){for(let n of e)for(let e of n.getFlattenedFilters())if(t.indexOf(e.op)>=0)return e.op;return null}(e.filters,function(e){switch(e){case`!=`:return[`!=`,`not-in`];case`array-contains-any`:case`in`:return[`not-in`];case`not-in`:return[`array-contains-any`,`in`,`not-in`,`!=`];default:return[]}}(t.op));if(n!==null)throw n===t.op?new q(K.INVALID_ARGUMENT,`Invalid query. You cannot use more than one '${t.op.toString()}' filter.`):new q(K.INVALID_ARGUMENT,`Invalid query. You cannot use '${t.op.toString()}' filters with '${n.toString()}' filters.`)}function Gx(e,t,n){let r;return r=e?n&&(n.merge||n.mergeFields)?e.toFirestore(t,n):e.toFirestore(t):t,r}var Kx=class{constructor(e,t){this.hasPendingWrites=e,this.fromCache=t}isEqual(e){return this.hasPendingWrites===e.hasPendingWrites&&this.fromCache===e.fromCache}},qx=class e extends Mx{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 Jx(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(xx(`DocumentSnapshot.get`,e));if(n!==null)return this._userDataWriter.convertValue(n,t.serverTimestamps)}}toJSON(){if(this.metadata.hasPendingWrites)throw new q(K.FAILED_PRECONDITION,`DocumentSnapshot.toJSON() attempted to serialize a document with pending writes. Await waitForPendingWrites() before invoking toJSON().`);let t=this._document,n={};return n.type=e._jsonSchemaVersion,n.bundle=``,n.bundleSource=`DocumentSnapshot`,n.bundleName=this._key.toString(),!t||!t.isValidDocument()||!t.isFoundDocument()?n:(this._userDataWriter.convertObjectMap(t.data.value.mapValue.fields,`previous`),n.bundle=(this._firestore,this.ref.path,`NOT SUPPORTED`),n)}};qx._jsonSchemaVersion=`firestore/documentSnapshot/1.0`,qx._jsonSchema={type:fp(`string`,qx._jsonSchemaVersion),bundleSource:fp(`string`,`DocumentSnapshot`),bundleName:fp(`string`),bundle:fp(`string`)};var Jx=class extends qx{data(e={}){return super.data(e)}},Yx=class e{constructor(e,t,n,r){this._firestore=e,this._userDataWriter=t,this._snapshot=r,this.metadata=new Kx(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 Jx(this._firestore,this._userDataWriter,n.key,n,new Kx(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 q(K.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 Jx(e._firestore,e._userDataWriter,n.doc.key,n.doc,new Kx(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 Jx(e._firestore,e._userDataWriter,t.doc.key,t.doc,new Kx(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:Xx(t.type),doc:r,oldIndex:i,newIndex:a}}))}}(this,t),this._cachedChangesIncludeMetadataChanges=t),this._cachedChanges}toJSON(){if(this.metadata.hasPendingWrites)throw new q(K.FAILED_PRECONDITION,`QuerySnapsh
38ot.toJSON() attempted to serialize a document with pending writes. Await waitForPendingWrites() before invoking toJSON().`);let t={};t.type=e._jsonSchemaVersion,t.bundleSource=`QuerySnapshot`,t.bundleName=Jf.newId(),this._firestore._databaseId.database,this._firestore._databaseId.projectId;let n=[],r=[],i=[];return this.docs.forEach((e=>{e._document!==null&&(n.push(e._document),r.push(this._userDataWriter.convertObjectMap(e._document.data.value.mapValue.fields,`previous`)),i.push(e.ref.path))})),t.bundle=(this._firestore,this.query._query,t.bundleName,`NOT SUPPORTED`),t}};function Xx(e){switch(e){case 0:return`added`;case 2:case 3:return`modified`;case 1:return`removed`;default:return W(61501,{type:e})}}Yx._jsonSchemaVersion=`firestore/querySnapshot/1.0`,Yx._jsonSchema={type:fp(`string`,Yx._jsonSchemaVersion),bundleSource:fp(`string`,`QuerySnapshot`),bundleName:fp(`string`),bundle:fp(`string`)};var Zx=class{constructor(e,t){this._firestore=e,this._commitHandler=t,this._mutations=[],this._committed=!1,this._dataReader=ux(e)}set(e,t,n){this._verifyNotCommitted();let r=Qx(e,this._firestore),i=Gx(r.converter,t,n),a=dx(this._dataReader,`WriteBatch.set`,r._key,i,r.converter!==null,n);return this._mutations.push(a.toMutation(r._key,ig.none())),this}update(e,t,n,...r){this._verifyNotCommitted();let i=Qx(e,this._firestore),a;return a=typeof(t=Fa(t))==`string`||t instanceof ex?hx(this._dataReader,`WriteBatch.update`,i._key,t,n,r):mx(this._dataReader,`WriteBatch.update`,i._key,t),this._mutations.push(a.toMutation(i._key,ig.exists(!0))),this}delete(e){this._verifyNotCommitted();let t=Qx(e,this._firestore);return this._mutations=this._mutations.concat(new _g(t._key,ig.none())),this}commit(){return this._verifyNotCommitted(),this._committed=!0,this._mutations.length>0?this._commitHandler(this._mutations):Promise.resolve()}_verifyNotCommitted(){if(this._committed)throw new q(K.FAILED_PRECONDITION,`A write batch can no longer be used after commit() has been called.`)}};function Qx(e,t){if((e=Fa(e)).firestore!==t)throw new q(K.INVALID_ARGUMENT,`Provided document reference is from a different Firestore instance.`);return e}function $x(e){e=dp(e,Hb);let t=dp(e.firestore,Yb);return Ab(Zb(t),e._key).then((n=>oS(t,e,n)))}function eS(e,t,n){e=dp(e,Hb);let r=dp(e.firestore,Yb),i=Gx(e.converter,t,n);return aS(r,[dx(ux(r),`setDoc`,e._key,i,e.converter!==null,n).toMutation(e._key,ig.none())])}function tS(e,t,n,...r){e=dp(e,Hb);let i=dp(e.firestore,Yb),a=ux(i),o;return o=typeof(t=Fa(t))==`string`||t instanceof ex?hx(a,`updateDoc`,e._key,t,n,r):mx(a,`updateDoc`,e._key,t),aS(i,[o.toMutation(e._key,ig.exists(!0))])}function nS(e){return aS(dp(e.firestore,Yb),[new _g(e._key,ig.none())])}function rS(e,t){let n=dp(e.firestore,Yb),r=Gb(e),i=Gx(e.converter,t);return aS(n,[dx(ux(e.firestore),`addDoc`,r._key,i,e.converter!==null,{}).toMutation(r._key,ig.exists(!1))]).then((()=>r))}function iS(e,...t){e=Fa(e);let n={includeMetadataChanges:!1,source:`default`},r=0;typeof t[r]!=`object`||jx(t[r])||(n=t[r++]);let i={includeMetadataChanges:n.includeMetadataChanges,source:n.source};if(jx(t[r])){let e=t[r];t[r]=e.next?.bind(e),t[r+1]=e.error?.bind(e),t[r+2]=e.complete?.bind(e)}let a,o,s;if(e instanceof Hb)o=dp(e.firestore,Yb),s=uh(e._key.path),a={next:n=>{t[r]&&t[r](oS(o,e,n))},error:t[r+1],complete:t[r+2]};else{let n=dp(e,Vb);o=dp(n.firestore,Yb),s=n._query;let i=new Dx(o);a={next:e=>{t[r]&&t[r](new Yx(o,i,n,e))},error:t[r+1],complete:t[r+2]},Px(e._query)}return kb(Zb(o),s,i,a)}function aS(e,t){return jb(Zb(e),t)}function oS(e,t,n){let r=n.docs.get(t._key);return new qx(e,new Dx(e),t._key,r,new Kx(n.hasPendingWrites,n.fromCache),t.converter)}function sS(e){return e=dp(e,Yb),Zb(e),new Zx(e,(t=>aS(e,t)))}(function(e,t=!0){Af(cs),rs(new Ra(`firestore`,((e,{instanceIdentifier:n,options:r})=>{let i=e.getProvider(`app`).getImmediate(),a=new Yb(new Hf(e.getProvider(`auth-internal`)),new Kf(i,e.getProvider(`app-check-internal`)),cm(i,n),i);return r={useFetchStreams:t,...r},a._setSettings(r),a}),`PUBLIC`).setMultipleInstances(!0)),ds(kx,Ax,e),ds(kx,Ax,`esm2020`)})();var cS=`firebasestorage.googleapis.com`,lS=`storageBucket`,uS=120*1e3,dS=600*1e3,fS=class e extends xa{constructor(t,n,r=0){super(mS(t),`Firebase Storage: ${n} (${mS(t)})`),this.status_=r,this.customData={serverResponse:null},this._baseMessage=this.message,Object.setPrototypeOf(this,e.prototype)}get status(){return this.status_}set status(e){this.status_=e}_codeEquals(e){return mS(e)===this.code}get serverResponse(){return this.customData.serverResponse}set serverResponse(e){this.customData.serverResponse=e,this.customData.serverResponse?this.message=`${this._baseMessage}\n${this.customData.serverResponse}`:this.message=this._baseMessage}},pS;(function(e){e.UNKNOWN=`unknown`,e.OBJECT_NOT_FOUND=`object-not-found`,e.BUCKET_NOT_FOUND=`bucket-not-found`,e.PROJECT_NOT_FOUND=`project-not-found`,e.QUOTA_EXCEEDED=`quota-exceeded`,e.UNAUTHENTICATED=`unauthenticated`,e.UNAUTHORIZED=`unauthorized`,e.UNAUTHORIZED_APP=`unauthorized-app`,e.RETRY_LIMIT_EXCEEDED=`retry-limit-exceeded`,e.INVALID_CHECKSUM=`invali
38d-checksum`,e.CANCELED=`canceled`,e.INVALID_EVENT_NAME=`invalid-event-name`,e.INVALID_URL=`invalid-url`,e.INVALID_DEFAULT_BUCKET=`invalid-default-bucket`,e.NO_DEFAULT_BUCKET=`no-default-bucket`,e.CANNOT_SLICE_BLOB=`cannot-slice-blob`,e.SERVER_FILE_WRONG_SIZE=`server-file-wrong-size`,e.NO_DOWNLOAD_URL=`no-download-url`,e.INVALID_ARGUMENT=`invalid-argument`,e.INVALID_ARGUMENT_COUNT=`invalid-argument-count`,e.APP_DELETED=`app-deleted`,e.INVALID_ROOT_OPERATION=`invalid-root-operation`,e.INVALID_FORMAT=`invalid-format`,e.INTERNAL_ERROR=`internal-error`,e.UNSUPPORTED_ENVIRONMENT=`unsupported-environment`})(pS||={});function mS(e){return`storage/`+e}function hS(){return new fS(pS.UNKNOWN,`An unknown error occurred, please check the error payload for server response.`)}function gS(){return new fS(pS.RETRY_LIMIT_EXCEEDED,`Max retry time for operation exceeded, please try again.`)}function _S(){return new fS(pS.CANCELED,`User canceled the upload/download.`)}function vS(e){return new fS(pS.INVALID_URL,`Invalid URL '`+e+`'.`)}function yS(e){return new fS(pS.INVALID_DEFAULT_BUCKET,`Invalid default bucket '`+e+`'.`)}function bS(e){return new fS(pS.INVALID_ARGUMENT,e)}function xS(){return new fS(pS.APP_DELETED,`The Firebase app was deleted.`)}function SS(e){return new fS(pS.INVALID_ROOT_OPERATION,`The operation '`+e+`' cannot be performed on a root reference, create a non-root reference using child, such as .child('file.png').`)}var CS=class e{constructor(e,t){this.bucket=e,this.path_=t}get path(){return this.path_}get isRoot(){return this.path.length===0}fullServerUrl(){let e=encodeURIComponent;return`/b/`+e(this.bucket)+`/o/`+e(this.path)}bucketOnlyServerUrl(){return`/b/`+encodeURIComponent(this.bucket)+`/o`}static makeFromBucketSpec(t,n){let r;try{r=e.makeFromUrl(t,n)}catch{return new e(t,``)}if(r.path===``)return r;throw yS(t)}static makeFromUrl(t,n){let r=null,i=`([A-Za-z0-9.\\-_]+)`;function a(e){e.path.charAt(e.path.length-1)===`/`&&(e.path_=e.path_.slice(0,-1))}let o=RegExp(`^gs://`+i+`(/(.*))?$`,`i`),s={bucket:1,path:3};function c(e){e.path_=decodeURIComponent(e.path)}let l=n.replace(/[.]/g,`\\.`),u=RegExp(`^https?://${l}/v[A-Za-z0-9_]+/b/${i}/o(/([^?#]*).*)?\$`,`i`),d={bucket:1,path:3},f=RegExp(`^https?://${n===cS?`(?:storage.googleapis.com|storage.cloud.google.com)`:n}/${i}/([^?#]*)`,`i`),p=[{regex:o,indices:s,postModify:a},{regex:u,indices:d,postModify:c},{regex:f,indices:{bucket:1,path:2},postModify:c}];for(let n=0;n<p.length;n++){let i=p[n],a=i.regex.exec(t);if(a){let t=a[i.indices.bucket],n=a[i.indices.path];n||=``,r=new e(t,n),i.postModify(r);break}}if(r==null)throw vS(t);return r}},wS=class{constructor(e){this.promise_=Promise.reject(e)}getPromise(){return this.promise_}cancel(e=!1){}};function TS(e,t,n){let r=1,i=null,a=null,o=!1,s=0;function c(){return s===2}let l=!1;function u(...e){l||(l=!0,t.apply(null,e))}function d(t){i=setTimeout(()=>{i=null,e(p,c())},t)}function f(){a&&clearTimeout(a)}function p(e,...t){if(l){f();return}if(e){f(),u.call(null,e,...t);return}if(c()||o){f(),u.call(null,e,...t);return}r<64&&(r*=2);let n;s===1?(s=2,n=0):n=(r+Math.random())*1e3,d(n)}let m=!1;function h(e){m||(m=!0,f(),!l&&(i===null?e||(s=1):(e||(s=2),clearTimeout(i),d(0))))}return d(0),a=setTimeout(()=>{o=!0,h(!0)},n),h}function ES(e){e(!1)}function DS(e){return e!==void 0}function OS(e,t,n,r){if(r<t)throw bS(`Invalid value for '${e}'. Expected ${t} or greater.`);if(r>n)throw bS(`Invalid value for '${e}'. Expected ${n} or less.`)}function kS(e){let t=encodeURIComponent,n=`?`;for(let r in e)if(e.hasOwnProperty(r)){let i=t(r)+`=`+t(e[r]);n=n+i+`&`}return n=n.slice(0,-1),n}var AS;(function(e){e[e.NO_ERROR=0]=`NO_ERROR`,e[e.NETWORK_ERROR=1]=`NETWORK_ERROR`,e[e.ABORT=2]=`ABORT`})(AS||={});function jS(e,t){let n=e>=500&&e<600,r=[408,429].indexOf(e)!==-1,i=t.indexOf(e)!==-1;return n||r||i}var MS=class{constructor(e,t,n,r,i,a,o,s,c,l,u,d=!0,f=!1){this.url_=e,this.method_=t,this.headers_=n,this.body_=r,this.successCodes_=i,this.additionalRetryCodes_=a,this.callback_=o,this.errorCallback_=s,this.timeout_=c,this.progressCallback_=l,this.connectionFactory_=u,this.retry=d,this.isUsingEmulator=f,this.pendingConnection_=null,this.backoffId_=null,this.canceled_=!1,this.appDelete_=!1,this.promise_=new Promise((e,t)=>
38{this.resolve_=e,this.reject_=t,this.start_()})}start_(){let e=(e,t)=>{if(t){e(!1,new NS(!1,null,!0));return}let n=this.connectionFactory_();this.pendingConnection_=n;let r=e=>{let t=e.loaded,n=e.lengthComputable?e.total:-1;this.progressCallback_!==null&&this.progressCallback_(t,n)};this.progressCallback_!==null&&n.addUploadProgressListener(r),n.send(this.url_,this.method_,this.isUsingEmulator,this.body_,this.headers_).then(()=>{this.progressCallback_!==null&&n.removeUploadProgressListener(r),this.pendingConnection_=null;let t=n.getErrorCode()===AS.NO_ERROR,i=n.getStatus();if(!t||jS(i,this.additionalRetryCodes_)&&this.retry){e(!1,new NS(!1,null,n.getErrorCode()===AS.ABORT));return}e(!0,new NS(this.successCodes_.indexOf(i)!==-1,n))})},t=(e,t)=>{let n=this.resolve_,r=this.reject_,i=t.connection;if(t.wasSuccessCode)try{let e=this.callback_(i,i.getResponse());DS(e)?n(e):n()}catch(e){r(e)}else if(i!==null){let e=hS();e.serverResponse=i.getErrorText(),this.errorCallback_?r(this.errorCallback_(i,e)):r(e)}else t.canceled?r(this.appDelete_?xS():_S()):r(gS())};this.canceled_?t(!1,new NS(!1,null,!0)):this.backoffId_=TS(e,t,this.timeout_)}getPromise(){return this.promise_}cancel(e){this.canceled_=!0,this.appDelete_=e||!1,this.backoffId_!==null&&ES(this.backoffId_),this.pendingConnection_!==null&&this.pendingConnection_.abort()}},NS=class{constructor(e,t,n){this.wasSuccessCode=e,this.connection=t,this.canceled=!!n}};function PS(e,t){t!==null&&t.length>0&&(e.Authorization=`Firebase `+t)}function FS(e,t){e[`X-Firebase-Storage-Version`]=`webjs/`+(t??`AppManager`)}function IS(e,t){t&&(e[`X-Firebase-GMPID`]=t)}function LS(e,t){t!==null&&(e[`X-Firebase-AppCheck`]=t)}function RS(e,t,n,r,i,a,o=!0,s=!1){let c=kS(e.urlParams),l=e.url+c,u=Object.assign({},e.headers);return IS(u,t),PS(u,n),FS(u,a),LS(u,r),new MS(l,e.method,u,e.body,e.successCodes,e.additionalRetryCodes,e.handler,e.errorHandler,e.timeout,e.progressCallback,i,o,s)}function zS(e){if(e.length===0)return null;let t=e.lastIndexOf(`/`);return t===-1?``:e.slice(0,t)}function BS(e){let t=e.lastIndexOf(`/`,e.length-2);return t===-1?e:e.slice(t+1)}var VS=class e{constructor(e,t){this._service=e,t instanceof CS?this._location=t:this._location=CS.makeFromUrl(t,e.host)}toString(){return`gs://`+this._location.bucket+`/`+this._location.path}_newRef(t,n){return new e(t,n)}get root(){let e=new CS(this._location.bucket,``);return this._newRef(this._service,e)}get bucket(){return this._location.bucket}get fullPath(){return this._location.path}get name(){return BS(this._location.path)}get storage(){return this._service}get parent(){let t=zS(this._location.path);if(t===null)return null;let n=new CS(this._location.bucket,t);return new e(this._service,n)}_throwIfRoot(e){if(this._location.path===``)throw SS(e)}};function HS(e,t){let n=t?.[lS];return n==null?null:CS.makeFromBucketSpec(n,e)}function US(e,t,n,r={}){e.host=`${t}:${n}`;let i=Ia(t);i&&La(`https://${e.host}/b`),e._isUsingEmulator=!0,e._protocol=i?`https`:`http`;let{mockUserToken:a}=r;a&&(e._overrideAuthToken=typeof a==`string`?a:la(a,e.app.options.projectId))}var WS=class{constructor(e,t,n,r,i,a=!1){this.app=e,this._authProvider=t,this._appCheckProvider=n,this._url=r,this._firebaseVersion=i,this._isUsingEmulator=a,this._bucket=null,this._host=cS,this._protocol=`https`,this._appId=null,this._deleted=!1,this._maxOperationRetryTime=uS,this._maxUploadRetryTime=dS,this._requests=new Set,r==null?this._bucket=HS(this._host,this.app.options):this._bucket=CS.makeFromBucketSpec(r,this._host)}get host(){return this._host}set host(e){this._host=e,this._url==null?this._bucket=HS(e,this.app.options):this._bucket=CS.makeFromBucketSpec(this._url,e)}get maxUploadRetryTime(){return this._maxUploadRetryTime}set maxUploadRetryTime(e){OS(`time`,0,1/0,e),this._maxUploadRetryTime=e}get maxOperationRetryTime(){return this._maxOperationRetryTime}set maxOperationRetryTime(e){OS(`time`,0,1/0,e),this._maxOperationRetryTime=e}async _getAuthToken(){if(this._overrideAuthToken)return this._overrideAuthToken;let e=this._authProvider.getImmediate({optional:!0});if(e){let t=await e.getToken();if(t!==null)return t.accessToken}return null}async _getAppCheckToken(){if(as(this.app)&&this.app.settings.appCheckToken)return this.app.settings.appCheckToken;let e=this._appCheckProvider.getImmediate({optional:!0});
38return e?(await e.getToken()).token:null}_delete(){return this._deleted||(this._deleted=!0,this._requests.forEach(e=>e.cancel()),this._requests.clear()),Promise.resolve()}_makeStorageReference(e){return new VS(this,e)}_makeRequest(e,t,n,r,i=!0){if(this._deleted)return new wS(xS());{let a=RS(e,this._appId,n,r,t,this._firebaseVersion,i,this._isUsingEmulator);return this._requests.add(a),a.getPromise().then(()=>this._requests.delete(a),()=>this._requests.delete(a)),a}}async makeRequestWithTokens(e,t){let[n,r]=await Promise.all([this._getAuthToken(),this._getAppCheckToken()]);return this._makeRequest(e,t,n,r).getPromise()}},GS=`@firebase/storage`,KS=`0.14.3`,qS=`storage`;function JS(e=us(),t){e=Fa(e);let n=is(e,qS).getImmediate({identifier:t}),r=aa(`storage`);return r&&YS(n,...r),n}function YS(e,t,n,r={}){US(e,t,n,r)}function XS(e,{instanceIdentifier:t}){return new WS(e.getProvider(`app`).getImmediate(),e.getProvider(`auth-internal`),e.getProvider(`app-check-internal`),t,cs)}function ZS(){rs(new Ra(qS,XS,`PUBLIC`).setMultipleInstances(!0)),ds(GS,KS,``),ds(GS,KS,`esm2020`)}ZS();var QS=ls({apiKey:`AIzaSyAOT5LquaD2Zd3Ux0mW4XhuGEll_KpYCDQ`,authDomain:`pradelna-system.firebaseapp.com`,projectId:`pradelna-system`,storageBucket:`pradelna-system.firebasestorage.app`,messagingSenderId:`1019464898141`,appId:`1:1019464898141:web:e53d9fce39f0a441299fb4`,measurementId:`G-Q2CY0KE0YQ`}),$S=ff(QS),eC=Xb(QS);JS(QS);var tC=()=>{let[e,t]=(0,_.useState)([]),[n,r]=(0,_.useState)([]),[i,a]=(0,_.useState)(!0),[o,s]=(0,_.useState)(null);return(0,_.useEffect)(()=>{let e=()=>{a(!1)},n=iS(Lx(Wb(eC,`catalog`)),n=>{t(n.docs.map(e=>({id:e.id,...e.data()}))),e()},e=>s(e)),i=iS(Lx(Wb(eC,`categories`),Vx(`order`,`asc`)),t=>{r(t.docs.map(e=>({id:e.id,...e.data()}))),e()},e=>s(e));return()=>{n(),i()}},[]),{items:e,categories:n,loading:i,error:o}},nC=()=>{let[e,t]=(0,_.useState)(`pradelna`),n=dt(),{items:r,loading:i,error:a}=tC();(0,_.useEffect)(()=>{let e=n.hash.replace(`#`,``);e&&[`pradelna`,`cistirna`,`opravy`,`firmy`,`seniori`].includes(e)&&t(e)},[n.hash]);let o=[{id:`pradelna`,label:`Prádelna`},{id:`cistirna`,label:`Čistírna & Metoda W`},{id:`opravy`,label:`Opravy oděvů`},{id:`firmy`,label:`Firmy (B2B)`},{id:`seniori`,label:`Pro Seniory`}];if(i)return(0,M.jsxs)(`div`,{className:`pricing-page`,style:{display:`flex`,alignItems:`center`,justifyContent:`center`,minHeight:`60vh`},children:[(0,M.jsxs)(`div`,{style:{textAlign:`center`},children:[(0,M.jsx)(`div`,{className:`spinner`,style:{border:`4px solid var(--primary-light)`,borderTop:`4px solid var(--primary)`,borderRadius:`50%`,width:`50px`,height:`50px`,animation:`spin 1s linear infinite`,margin:`0 auto 1.5rem auto`}}),(0,M.jsx)(`p`,{style:{color:`var(--text-light)`,fontSize:`1.1rem`}
38,children:`Načítám aktuální ceník ze serveru...`})]}),(0,M.jsx)(`style`,{children:`
39          @keyframes spin {
40            0% { transform: rotate(0deg); }
41            100% { transform: rotate(360deg); }
42          }
43        `})]});if(a)return(0,M.jsxs)(`div`,{className:`pricing-page container`,style:{padding:`80px 0`,textAlign:`center`},children:[(0,M.jsx)(`h2`,{style:{color:`var(--accent)`},children:`Došlo k chybě při načítání ceníku`}),(0,M.jsx)(`p`,{className:`lead text-muted mb-4`,children:`Zkuste to prosím za chvíli znovu nebo nás kontaktujte telefonicky.`}),(0,M.jsx)(`a`,{href:`/kontakt`,className:`btn btn-primary`,children:`Přejít na kontakt`})]});let s=e=>r.filter(t=>t.category===e),c=e=>e.price===0?`dle dohody`:`${e.price},- Kč`;return(0,M.jsxs)(`div`,{className:`pricing-page`,children:[(0,M.jsx)(`section`,{className:`bg-header`,style:{backgroundImage:`url("/assets/services/ironing.png")`},children:(0,M.jsxs)(`div`,{className:`container`,children:[(0,M.jsx)(`h1`,{className:`page-title`,children:`Kompletní ceník`}),(0,M.jsx)(`p`,{className:`page-subtitle`,children:`Transparentní ceny bez skrytých poplatků. Platnost od 15.01.2024`})]})}),(0,M.jsx)(`section`,{className:`section`,children:(0,M.jsxs)(`div`,{className:`container`,children:[(0,M.jsxs)(`div`,{className:`info-box mb-4`,children:[(0,M.jsxs)(`p`,{children:[`Zelený ostrov s.r.o. je plátcem DPH. `,(0,M.jsx)(`strong`,{children:`Všechny níže zobrazené ceny jsou s DPH.`})]}),(0,M.jsxs)(`p`,{children:[(0,M.jsx)(`strong`,{children:`Expresní zakázka (přednostní):`}),` přirážka 50%`]}),(0,M.jsx)(`p`,{children:`Prádelna do 3 dnů, opravy oděvů do 3 týdnů.`})]}),(0,M.jsx)(`div`,{className:`pricing-tabs`,children:o.map(n=>(0,M.jsx)(`button`,{className:`pricing-tab-btn ${e===n.id?`active`:``}`,onClick:()=>{t(n.id),window.history.pushState(null,``,`#${n.id}`)},children:n.label},n.id))}),(0,M.jsxs)(`div`,{className:`pricing-content`,children:[e===`pradelna`&&(0,M.jsxs)(`div`,{className:`pricing-grid animate-fade-in`,children:[(0,M.jsxs)(`div`,{className:`glass-card pricing-card`,children:[(0,M.jsx)(`h3`,{children:`Praní a mandlování (Rovné prádlo)`}),(0,M.jsx)(`ul`,{className:`price-list`,children:s(`Praní a mandlování`).map(e=>(0,M.jsxs)(`li`,{style:{display:`flex`,flexDirection:`column`,gap:`0.25rem`,paddingBottom:`0.75rem`,borderBottom:`1px dashed var(--border-color)`,marginBottom:`0.75rem`},children:[(0,M.jsxs)(`div`,{style:{display:`flex`,justifyContent:`space-between`,alignItems:`flex-start`,width:`100%`},children:[(0,M.jsx)(`span`,{style:{fontWeight:500,color:`var(--text-dark)`},children:e.name}),(0,M.jsxs)(`span`,{className:`price`,style:{fontWeight:600,color:`var(--secondary)`,whiteSpace:`nowrap`},children:[c(e),e.unitLabel&&(0,M.jsxs)(`small`,{style:{display:`block`,fontSize:`0.7rem`,color:`var(--text-light)`,textAlign:`right`,fontWeight:`normal`,marginTop:`2px`},children:[`(`,e.unitLabel,`)`]})]})]}),e.description&&(0,M.jsx)(`p`,{className:`text-muted`,style:{fontSize:`0.85rem`,margin:0,lineHeight:`1.4`},children:e.description})]},e.id))})]}),(0,M.jsxs)(`div`,{className:`glass-card pricing-card`,children:[(0,M.jsx)(`h3`,{children:`Tvarované prádlo (Jednotlivé kusy)`}),(0,M.jsx)(`ul`,{className:`price-list`,children:s(`Jednotlivé kusy`).map(e=>(0,M.jsxs)(`li`,{style:{display:`flex`,flexDirection:`column`,gap:`0.25rem`,paddingBottom:`0.75rem`,borderBottom:`1px dashed var(--border-color)`,marginBottom:`0.75rem`},children:[(0,M.jsxs)(`div`,{style:{display:`flex`,justifyContent:`space-between`,alignItems:`flex-start`,width:`100%`},children:[(0,M.jsx)(`span`,{style:{fontWeight:500,color:`var(--text-dark)`},children:e.name}),(0,M.jsxs)(`span`,{className:`price`,style:{fontWeight:600,color:`var(--secondary)`,whiteSpace:`nowrap`},children:[c(e),e.unitLabel&&(0,M.jsxs)(`small`,{style:{display:`block`,fontSize:`0.7rem`,color:`var(--text-light)`,textAlign:`right`,fontWeight:`normal`,marginTop:`2px`},children:[`(`,e.unitLabel,`)`]})]})]}),e.description&&(0,M.jsx)(`p`,{className:`text-muted`,style:{fontSize:`0.85rem`,margin:0,lineHeight:`1.4`},children:e.description})]},e.id))})]}),(0,M.jsxs)(`div`,{className:`glass-card pricing-card`,children:[(0,M.jsx)(`h3`,{children:`Velké kusy prádla (Praní a sušení)`}),(0,M.jsx)(`ul`,{className:`price-list`,children:s(`Velké kusy prádla`).map(e=>(0,M.jsxs)(`li`,{style:{display:`flex`,flexDirection:`column`,gap:`0.25rem`,paddingBottom:`0.75rem`,borderBottom:`1px dashed var(--border-color)`,marginBottom:`0.75rem`},children:[(0,M.jsxs)(`div`,{style:{display:`flex`,justifyContent:`space-between`,alignItems:`flex-start`,width:`100%`},children:[(0,M.jsx)(`span`,{style:{fontWeight:500,color:`var(--text-dark)`},children:e.name}),(0,M.jsxs)(`span`,{className:`price`,style:{fontWeight:600,color:`var(--secondary)`,whiteSpace:`nowrap`},children:[c(e),e.unitLabel&&(0,M.jsxs)(`small`,{style:{display:`block`,fontSize:`0.7rem`,color:`var(--text-light)`,textAlign:`right`,fontWeight:`normal`,marginTop:`2px`},children:[`(`,e.unitLabel,`)`]})]})]}),e.description&&(0,M.jsx)(`p`,{className:`text-muted`,style:{fontSize:`0.85rem`,margin:0,lineHeight:`1.4`},children:e.description})]},e.id))}),s(`Služby a doprava`).length>0&&(0,M.jsxs)(`div`,{style:{marginTop:`2.5rem`},children:[(0,M.jsx)(`h3`,{style:{fontSize:`1.3rem`,color:`var(--primary)`,borderBottom:`2px solid var(--primary-light)`,paddingBottom:`0.5rem`,marginBottom:`1.25rem`},children:`Svoz a rozvoz prádla`}),(0,M.jsx)(`ul`,{className:`price-list`,children:s(`Služby a doprava`).map(e=>(0,M.jsxs)(`li`,{style:{display:`flex`,flexDirection:`column`,gap:`0.25rem`,paddingBottom:`0.75rem`,borderBottom:`1px dashed var(--border-color)`,marginBottom:`0.75rem`},children:[(0,M.jsxs)(`div`,{style:{display:`flex`,justifyContent:`space-between`,alignItems:`flex-start`,width:`100%`},children:[(0,M.jsx)(`span`,{style:{fontWeight:500,color:`var(--text-dark)`},children:e.name}),(0,M.jsxs)(`span`,{className:`price`,style:{fontWeight:600,color:`var(--secondary)`,whiteSpace:`nowrap`},children:[c(e),e.unitLabel&&(0,M.jsxs)(`small`,{style:{display:`block`,fontSize:`0.7rem`,color:`var(--text-light)`,textAlign:`right`,fontWeight:`normal`,marginTop:`2px`},children:[`(`,e.unitLabel,`)`]})]})]}),e.description&&(0,M.jsx)(`p`,{className:`text-muted`,style:{fontSize:`0.85rem`,margin:0,lineHeight:`1.4`},children:e.description})]},e.id))})]})]})]}),e===`cistirna`&&(0,M.jsxs)(`div`,{className:`pricing-grid animate-fade-in`,children:[(0,M.jsxs)(`div`,{className:`glass-card pricing-card`,children:[(0,M.jsx)(`h3`,{children:`Chemické čištění P`}),(0,M.jsx)(`ul`,{className:`price-list`,style:{maxHeight:`650px`,overflowY:`auto`,paddingRight:`0.5rem`,scrollbarWidth:`thin`},children:s(`Chemické čištění`).map(e=>(0,M.jsxs)(`li`,{style:{display:`flex`,flexDirection:`column`,gap:`0.25rem`,paddingBottom:`0.75rem`,borderBottom:`1px dashed var(--border-color)`,marginBottom:`0.75rem`},children:[(0,M.jsxs)(`div`,{style:{display:`flex`,justifyContent:`space-between`,alignItems:`flex-start`,width:`100%`},children:[(0,M.jsx)(`span`,{style:{fontWeight:500,color:`var(--text-dark)`},children:e.name}),(0,M.jsxs)(`span`,{className:`price`,style:{fontWeight:600,color:`var(--secondary)`,whiteSpace:`nowrap`},children:[c(e),e.unitLabel&&(0,M.jsxs)(`small`,{style:{display:`block`,fontSize:`0.7rem`,color:`var(--text-light)`,textAlign:`right`,fontWeight:`normal`,marginTop:`2px`},children:[`(`,e.unitLabel,`)`]})]})]}),e.description&&(0,M.jsx)(`p`,{className:`text-muted`,style:{fontSize:`0.85rem`,margin:0,lineHeight:`1.4`},children:e.description})]},e.id))})]}),(0,M.jsxs)(`div`,{className:`glass-card pricing-card`,children:[(0,M.jsx)(`h3`,{style:{color:`#00a663`},children:`Mokré čištění W (Ekologické)`}),(0,M.jsx)(`ul`,{className:`price-list`,children:s(`Mokré čištění W`).map(e=>(0,M.jsxs)(`li`,{style:{display:`flex`,flexDirection:`column`,gap:`0.25rem`,paddingBottom:`0.75rem`,borderBottom:`1px dashed var(--border-color)`,marginBottom:`0.75rem`},children:[(0,M.jsxs)(`div`,{style:{display:`flex`,justifyContent:`space-between`,alignItems:`flex-start`,width:`100%`},children:[(0,M.jsx)(`span`,{style:{fontWeight:500,color:`var(--text-dark)`},children:e.name}),(0,M.jsxs)(`span`,{className:`price`,style:{fontWeight:600,color:`var(--secondary)`,whiteSpace:`nowrap`},children:[c(e),e.unitLabel&&(0,M.jsxs)(`small`,{style:{display:`block`,fontSize:`0.7rem`,color:`var(--text-light)`,textAlign:`right`,fontWeight:`normal`,marginTop:`2px`},children:[`(`,e.unitLabel,`)`]})]})]}),e.description&&(0,M.jsx)(`p`,{className:`text-muted`,style:{fontSize:`0.85rem`,margin:0,lineHeight:`1.4`},children:e.description})]},e.id))}),(0,M.jsx)(`p`,{className:`text-muted mt-3`,style:{fontSize:`0.85rem`},children:`* Mokré čištění doporučujeme pro jemné, vlněné, hedvábné a luxusní materiály.`})]})]}),e===`opravy`&&(0,M.jsx)(`div`,{className:`pricing-grid animate-fade-in`,style:{gridTemplateColumns:`1fr`},children:(0,M.jsxs)(`div`,{className:`glass-card pricing-card`,style:{maxWidth:`800px`,margin:`0 auto`,width:`100%`},children:[(0,M.jsx)(`h3`,{children:`Opravy a úpravy oděvů`}),(0,M.jsx)(`ul`,{className:`price-list`,style:{display:`grid`,gridTemplateColumns:`repeat(auto-fit, minmax(320px, 1fr))`,gap:`1.5rem`},children:s(`Opravy oděvů`).map(e=>(0,M.jsxs)(`li`,{style:{display:`flex`,flexDirection:`column`,gap:`0.25rem`,paddingBottom:`0.75rem`,borderBottom:`1px dashed var(--border-color)`,marginBottom:0},children:[(0,M.jsxs)(`div`,{style:{display:`flex`,justifyContent:`space-between`,alignItems:`flex-start`,width:`100%`},children:[(0,M.jsx)(`span`,{style:{fontWeight:500,color:`var(--text-dark)`},children:e.name}),(0,M.jsxs)(`span`,{className:`price`,style:{fontWeight:600,color:`var(--secondary)`,whiteSpace:`nowrap`},children:[c(e),e.unitLabel&&(0,M.jsxs)(`small`,{style:{display:`block`,fontSize:`0.7rem`,color:`var(--text-light)`,textAlign:`right`,fontWeight:`normal`,marginTop:`2px`},children:[`(`,e.unitLabel,`)`]})]})]}),e.description&&(0,M.jsx)(`p`,{className:`text-muted`,style:{fontSize:`0.85rem`,margin:0,lineHeight:`1.4`},children:e.description})]},e.id))}),(0,M.jsx)(`p`,{className:`text-muted mt-4`,style:{fontSize:`0.85rem`,textAlign:`center`},children:`* U výměny zipů je cena zipu účtována zvlášť dle délky a typu (cca 50 - 150 Kč).`})]})}),e===`firmy`&&(0,M.jsx)(`div`,{className:`pricing-grid animate-fade-in`,children:(0,M.jsxs)(`div`,{className:`glass-card pricing-card`,style:{borderLeft:`4px solid var(--secondary)`},children:[(0,M.jsx)(`h3`,{children:`Služby a ceny pro firmy (B2B)`}),(0,M.jsx)(`p`,{className:`mb-4`,style:{lineHeight:`1.6`},children:`Pro hotely, penziony, restaurace a zdravotnická zařízení nabízíme pravidelný kompletní servis s individuálním ceníkem na základě objemu prádla a frekvence závozů.`}),(0,M.jsx)(`ul`,{className:`price-list`,style:{marginBottom:`2rem`},children:s(`Služby pro firmy`).map(e=>(0,M.jsxs)(`li`,{style:{display:`flex`,flexDirection:`column`,gap:`0.25rem`,paddingBottom:`0.75rem`,borderBottom:`1px dashed var(--border-color)`,marginBottom:`0.75rem`},children:[(0,M.jsxs)(`div`,{style:{display:`flex`,justifyContent:`space-between`,alignItems:`flex-start`,width:`100%`},children:[(0,M.jsx)(`span`,{style:{fontWeight:500,color:`var(--text-dark)`},children:e.name}),(0,M.jsx)(`span`,{className:`price`,style:{fontWeight:600,color:`var(--primary)`,whiteSpace:`nowrap`},children:c(e)})]}),e.description&&(0,M.jsx)(`p`,{className:`text-muted`,style:{fontSize:`0.85rem`,margin:0,lineHeight:`1.4`},children:e.description})]},e.id))}),(0,M.jsx)(`h4`,{style:{fontSize:`1.1rem`,marginBottom:`1rem`,color:`var(--text-dark)`},children:`Co firemním zákazníkům nabízíme:`}),(0,M.jsxs)(`ul`,{className:`price-list`,style:{listStyle:`none`,paddingLeft:0},children:[(0,M.jsx)(`li`,{style:{border:`none`,paddingBottom:0},children:(0,M.jsx)(`span`,{className:`text-muted`,children:`✓ Individuální množstevní slevy na základě dlouhodobé spolupráce`})}),(0,M.jsx)(`li`,{style:{border:`none`,paddingBottom:0},children:(0,M.jsx)(`span`,{className:`text-muted`,children:`✓ Garantované termíny svozu a rozvozu vlastními vozy`})}),(0,M.jsx)(`li`,{style:{border:`none`,paddingBottom:0},children:(0,M.jsxs)(`span`,{className:`text-muted`,children:[`✓ Uznávané poskytování `,(0,M.jsx)(`strong`,{children:`náhradního plnění`}),` pro úsporu vašich nákladů`]})})]}),(0,M.jsx)(`a`,{href:`/kontakt`,className:`btn btn-outline btn-sm mt-4`,style:{display:`inline-block`},children:`Nezávazná poptávka pro firmy`})]})}),e===`seniori`&&(0,M.jsx)(`div`,{className:`pricing-grid animate-fade-in`,style:{gridTemplateColumns:`1fr`},children:(0,M.jsxs)(`div`,{className:`glass-card pricing-card`,style:{borderLeft:`4px solid #198754`,maxWidth:`800px`,margin:`0 auto`,width:`100%`},children:[(0,M.jsx)(`h3`,{children:`Služby pro seniory`}),(0,M.jsx)(`p`,{className:`mb-4`,style:{lineHeight:`1.6`},children:`Služby a péči pro seniory poskytujeme s velkým důrazem na lidský přístup, empatii a spolehlivost. Pro seniory nad 65 let a držitele průkazů ZTP nabízíme zvýhodněné ceny.`}),(0,M.jsx)(`ul`,{className:`price-list`,style:{display:`grid`,gridTemplateColumns:`repeat(auto-fit, minmax(320px, 1fr))`,gap:`1.5rem`},children:s(`Služby pro seniory`).map(e=>(0,M.jsxs)(`li`,{style:{display:`flex`,flexDirection:`column`,gap:`0.25rem`,paddingBottom:`0.75rem`,borderBottom:`1px dashed var(--border-color)`,marginBottom:0},children:[(0,M.jsxs)(`div`,{style:{display:`flex`,justifyContent:`space-between`,alignItems:`flex-start`,width:`100%`},children:[(0,M.jsx)(`span`,{style:{fontWeight:500,color:`var(--text-dark)`},children:e.name}),(0,M.jsxs)(`span`,{className:`price`,style:{fontWeight:600,color:`var(--secondary)`,whiteSpace:`nowrap`},children:[c(e),e.unitLabel&&(0,M.jsxs)(`small`,{style:{display:`block`,fontSize:`0.7rem`,color:`var(--text-light)`,textAlign:`right`,fontWeight:`normal`,marginTop:`2px`},children:[`(`,e.unitLabel,`)`]})]})]}),e.description&&(0,M.jsx)(`p`,{className:`text-muted`,style:{fontSize:`0.85rem`,margin:0,lineHeight:`1.4`},children:e.description})]},e.id))}),(0,M.jsx)(`p`,{className:`text-muted mt-4`,style:{fontSize:`0.85rem`,textAlign:`center`},children:`* Služby pro seniory poskytujeme převážně v našem bezprostředním okolí (Dolní Berounka, Praha-Zbraslav a okolí).`})]})})]}),(0,M.jsxs)(`div`,{className:`pricing-cta mt-4 text-center`,children:[(0,M.jsx)(`h3`,{className:`mb-3`,children:`Jste připraveni?`}),(0,M.jsxs)(`div`,{className:`cta-buttons`,style:{display:`flex`,justifyContent:`center`,gap:`1rem`,flexWrap:`wrap`},children:[(0,M.jsxs)(`a`,{href:`/objednat?category=${e===`pradelna`?`Praní a mandlování`:e===`cistirna`?`Chemické čištění`:e===`opravy`?`Opravy oděvů`:e===`firmy`?`Služby pro firmy`:`Služby pro seniory`}`,className:`btn btn-primary btn-lg`,children:[(0,M.jsx)(wi,{size:18,style:{marginRight:`8px`}}),`Objednat online`]}
43),(0,M.jsxs)(`a`,{href:`/kontakt`,className:`btn btn-outline btn-lg`,children:[(0,M.jsx)(ii,{size:18,style:{marginRight:`8px`}}),`Poptat službu`]}),(0,M.jsxs)(`a`,{href:`tel:+420720971125`,className:`btn btn-outline btn-lg`,children:[(0,M.jsx)(pi,{size:18,style:{marginRight:`8px`}}),`Zavolat nám`]})]})]})]})}),(0,M.jsx)(`style`,{children:`
44        /* Tabs styling */
45        .pricing-tabs {
46          display: flex;
47          gap: 1.25rem;
48          margin-bottom: 4rem;
49          border-bottom: 2px solid var(--border-color);
50          padding-bottom: 0;
51          overflow-x: auto;
52          scrollbar-width: none;
53        }
54        .pricing-tabs::-webkit-scrollbar { display: none; }
55        
56        .pricing-tab-btn {
57          background: none;
58          border: none;
59          padding: 1rem 1.5rem;
60          font-size: 1.1rem;
61          font-weight: 600;
62          color: var(--text-muted);
63          cursor: pointer;
64          position: relative;
65          white-space: nowrap;
66          transition: all 0.3s ease;
67        }
68        
69        .pricing-tab-btn:hover {
70          color: var(--primary);
71        }
72        
73        .pricing-tab-btn.active {
74          color: var(--primary);
75        }
76        
77        .pricing-tab-btn.active::after {
78          content: '';
79          position: absolute;
80          bottom: -2px;
81          left: 0;
82          right: 0;
83          height: 3px;
84          background-color: var(--primary);
85          border-radius: 3px 3px 0 0;
86        }
87
88        /* Grid a karty */
89        .pricing-grid {
90          display: grid;
91          grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
92          gap: 2rem;
93        }
94        .pricing-card h3 {
95          color: var(--primary);
96          border-bottom: 2px solid var(--primary-light);
97          padding-bottom: 1rem;
98          margin-bottom: 1.5rem;
99        }
100        .price-list {
101          display: flex;
102          flex-direction: column;
103          gap: 1rem;
104          list-style: none;
105          padding: 0;
106          margin: 0;
107        }
108        .price-list li {
109          display: flex;
110          justify-content: space-between;
111          border-bottom: 1px dashed var(--border-color);
112          padding-bottom: 0.5rem;
113        }
114        .price {
115          font-weight: 600;
116          color: var(--secondary);
117          white-space: nowrap;
118          margin-left: 1rem;
119        }
120      `})]})},rC=class{constructor(e=0,t=`Network Error`){this.status=e,this.text=t}},iC={origin:`https://api.emailjs.com`,blockHeadless:!1,storageProvider:(()=>{if(!(typeof localStorage>`u`))return{get:e=>Promise.resolve(localStorage.getItem(e)),set:(e,t)=>Promise.resolve(localStorage.setItem(e,t)),remove:e=>Promise.resolve(localStorage.removeItem(e))}})()},aC=e=>e?typeof e==`string`?{publicKey:e}:e.toString()===`[object Object]`?e:{}:{},oC=(e,t=`https://api.emailjs.com`)=>{if(!e)return;let n=aC(e);iC.publicKey=n.publicKey,iC.blockHeadless=n.blockHeadless,iC.storageProvider=n.storageProvider,iC.blockList=n.blockList,iC.limitRate=n.limitRate,iC.origin=n.origin||t},sC=async(e,t,n={})=>{let r=await fetch(iC.origin+e,{method:`POST`,headers:n,body:t}),i=await r.text(),a=new rC(r.status,i);if(r.ok)return a;throw a},cC=(e,t,n)=>{if(!e||typeof e!=`string`)throw`The public key is required. Visit https://dashboard.emailjs.com/admin/account`;if(!t||typeof t!=`string`)throw`The service ID is required. Visit https://dashboard.emailjs.com/admin`;if(!n||typeof n!=`string`)throw`The template ID is required. Visit https://dashboard.emailjs.com/admin/templates`},lC=e=>{if(e&&e.toString()!==`[object Object]`)throw`The template params have to be the object. Visit https://www.emailjs.com/docs/sdk/send/`},uC=e=>e.webdriver||!e.languages||e.languages.length===0,dC=()=>new rC(451,`Unavailable For Headless Browser`),fC=(e,t)=>{if(!Array.isArray(e))throw`The BlockList list has to be an array`;if(typeof t!=`string`)throw`The BlockList watchVariable has to be a string`},pC=e=>!e.list?.length||!e.watchVariable,mC=(e,t)=>e instanceof FormData?e.get(t):e[t],hC=(e,t)=>{if(pC(e))return!1;fC(e.list,e.watchVariable);let n=mC(t,e.watchVariable);return typeof n==`string`?e.list.includes(n):!1},gC=()=>
120new rC(403,`Forbidden`),_C=(e,t)=>{if(typeof e!=`number`||e<0)throw`The LimitRate throttle has to be a positive number`;if(t&&typeof t!=`string`)throw`The LimitRate ID has to be a non-empty string`},vC=async(e,t,n)=>{let r=Number(await n.get(e)||0);return t-Date.now()+r},yC=async(e,t,n)=>{if(!t.throttle||!n)return!1;_C(t.throttle,t.id);let r=t.id||e;return await vC(r,t.throttle,n)>0?!0:(await n.set(r,Date.now().toString()),!1)},bC=()=>new rC(429,`Too Many Requests`),xC=async(e,t,n,r)=>{let i=aC(r),a=i.publicKey||iC.publicKey,o=i.blockHeadless||iC.blockHeadless,s=i.storageProvider||iC.storageProvider,c={...iC.blockList,...i.blockList},l={...iC.limitRate,...i.limitRate};return o&&uC(navigator)?Promise.reject(dC()):(cC(a,e,t),lC(n),n&&hC(c,n)?Promise.reject(gC()):await yC(location.pathname,l,s)?Promise.reject(bC()):sC(`/api/v1.0/email/send`,JSON.stringify({lib_version:`4.4.1`,user_id:a,service_id:e,template_id:t,template_params:n}),{"Content-type":`application/json`}))},SC=e=>{if(!e||e.nodeName!==`FORM`)throw`The 3rd parameter is expected to be the HTML form element or the style selector of the form`},CC=e=>typeof e==`string`?document.querySelector(e):e,wC={init:oC,send:xC,sendForm:async(e,t,n,r)=>{let i=aC(r),a=i.publicKey||iC.publicKey,o=i.blockHeadless||iC.blockHeadless,s=iC.storageProvider||i.storageProvider,c={...iC.blockList,...i.blockList},l={...iC.limitRate,...i.limitRate};if(o&&uC(navigator))return Promise.reject(dC());let u=CC(n);cC(a,e,t),SC(u);let d=new FormData(u);return hC(c,d)?Promise.reject(gC()):await yC(location.pathname,l,s)?Promise.reject(bC()):(d.append(`lib_version`,`4.4.1`),d.append(`service_id`,e),d.append(`template_id`,t),d.append(`user_id`,a),sC(`/api/v1.0/email/send-form`,d))},EmailJSResponseStatus:rC},TC=()=>{let[e,t]=(0,_.useState)({name:``,email:``,message:``}),[n,r]=(0,_.useState)(!1),[i,a]=(0,_.useState)(!1);return(0,M.jsxs)(`div`,{className:`contact-page`,children:[(0,M.jsx)(`section`,{className:`bg-header`,style:{backgroundImage:`url("/assets/services/laundry.png")`},children:(0,M.jsxs)(`div`,{className:`container`,children:[(0,M.jsx)(`h1`,{className:`page-title`,children:`Kontakt`}),(0,M.jsx)(`p`,{className:`page-subtitle`,children:`Jsme tu pro vás. Ozvěte se nám nebo se zastavte na jedné z poboček.`})]})}),(0,M.jsx)(`section`,{className:`section`,children:(0,M.jsx)(`div`,{className:`container`,children:(0,M.jsxs)(`div`,{className:`contact-grid`,children:[(0,M.jsxs)(`div`,{className:`contact-info`,children:[(0,M.jsx)(`h2`,{children:`Spojte se s námi`}),(0,M.jsxs)(`div`,{className:`contact-methods`,children:[(0,M.jsxs)(`div`,{className:`method-item`,children:[(0,M.jsx)(`div`,{className:`method-icon`,children:(0,M.jsx)(pi,{})}),(0,M.jsxs)(`div`,{children:[(0,M.jsx)(`h3`,{children:`Telefon`}),(0,M.jsx)(`a`,{href:`tel:+420601571790`,className:`contact-link`,children:`+420 601 571 790`})]})]}),(0,M.jsxs)(`div`,{className:`method-item`,children:[(0,M.jsx)(`div`,{className:`method-icon`,children:(0,M.jsx)(ii,{})}),(0,M.jsxs)(`div`,{children:[(0,M.jsx)(`h3`,{children:`E-mail`}),(0,M.jsx)(`a`,{href:`mailto:[email protected]`,className:`contact-link`,children:`[email protected]`})]})]})]}),(0,M.jsx)(`h2`,{className:`mt-4`,children:`NaÅ¡e pobočky`}),(0,M.jsxs)(`div`,{className:`branches`,children:[(0,M.jsxs)(`div`,{className:`branch-card glass-card`,children:[(0,M.jsxs)(`div`,{className:`branch-header`,children:[(0,M.jsx)(ai,{className:`text-primary`}),(0,M.jsx)(`h3`,{children:`Dobřichovice`})]}),(0,M.jsxs)(`p`,{children:[`Anežky České 1119`,(0,M.jsx)(`br`,{}),`Dobřichovice`]}),(0,M.jsxs)(`div`,{className:`hours`,children:[(0,M.jsx)(`strong`,{children:`Otevírací doba:`}),(0,M.jsxs)(`ul`,{children:[(0,M.jsx)(`li`,{children:`Po - Pá: 8:00 - 13:00`}),(0,M.jsx)(`li`,{children:`So: 9:00 - 12:00`})]})]}),(0,M.jsx)(`p`,{className:`text-muted text-sm mt-2`,children:`Do areálu je možný vjezd autem. Na požádání otevřeme závoru a pomůžeme s vyložením.`})]}),(0,M.jsxs)(`div`,{className:`branch-card glass-card`,children:[(0,M.jsxs)(`div`,{className:`branch-header`,children:[(0,M.jsx)(ai,{className:`text-primary`}),(0,M.jsx)(`h3`,{children:`Praha - Zbraslav`})]}),(0,M.jsxs)(`p`,{children:[`U Malé řeky 626`,(0,M.jsx)(`br`,{}),`Praha - Zbraslav`]}),(0,M.jsxs)(`div`,{className:`hours`,children:[(0,M.jsx)(`strong`,{children:`Otevírací doba:`}),(0,M.jsxs)(`ul`,{children:[(0,M.jsx)(`li`,{children:`Po - Čt: 8:00 - 16:00`}),(0,M.jsx)(`li`,{children:`Pá: 8:00 - 14:00`})]})]})]})]})]}),(0,M.jsxs)(`div`,{className:`contact-form-container glass-card`,children:[(0,M.jsx)(`h2`,{children:`N
120apiÅ¡te nám`}),n?(0,M.jsxs)(`div`,{style:{padding:`1rem`,backgroundColor:`var(--primary-light)`,color:`var(--primary)`,borderRadius:`8px`,textAlign:`center`,marginTop:`1.5rem`},children:[(0,M.jsx)(`p`,{style:{margin:0,fontWeight:500},children:`VaÅ¡e zpráva byla úspěšně odeslána.`}),(0,M.jsx)(`p`,{style:{margin:0,fontSize:`0.9rem`,marginTop:`0.5rem`},children:`Brzy se vám ozveme na zadaný kontakt.`}),(0,M.jsx)(`button`,{onClick:()=>r(!1),className:`btn btn-outline`,style:{marginTop:`1rem`,padding:`0.5rem 1rem`},children:`Napsat novou zprávu`})]}):(0,M.jsxs)(`form`,{className:`contact-form`,onSubmit:async n=>{if(n.preventDefault(),!i){a(!0);try{await rS(Wb(eC,`inquiries`),{name:e.name,email:e.email,message:e.message,service:`Obecný kontakt`,createdAt:Ox(),status:`new`}),await wC.send(`service_9gw9zbe`,`template_inquiry`,{customer_name:e.name,customer_phone:`Nezadáno`,customer_email:e.email,email:e.email,service_title:`Obecný kontakt z webu`,message:e.message||`Bez zprávy`,order_id:`ZPRÁVA`,delivery_type:`Obecný kontakt`,payment_type:`Kontakt z webu`,note:e.message||`Bez zprávy`,total_price:`Dle domluvy`,items_html:`<tr><td colspan='3'>Nová zpráva z hlavní kontaktní stránky: <br/><br/><strong>`+e.message+`</strong></td></tr>`,to_email:`[email protected]`,reply_to:e.email},{publicKey:`aANhT6_XuXDQwWKO2`}),r(!0),t({name:``,email:``,message:``})}catch(e){console.error(`Chyba při odesílání zprávy:`,e);let t=e?.text||e?.message||JSON.stringify(e);alert(`DoÅ¡lo k chybě při odesílání zprávy: ${t}. Zkuste to prosím znovu nebo nám zavolejte.`)}finally{a(!1)}}},children:[(0,M.jsxs)(`div`,{className:`form-group`,children:[(0,M.jsx)(`label`,{htmlFor:`name`,children:`Jméno a příjmení *`}),(0,M.jsx)(`input`,{type:`text`,id:`name`,value:e.name,onChange:n=>t({...e,name:n.target.value}),placeholder:`VaÅ¡e jméno`,className:`form-control`,required:!0})]}),(0,M.jsxs)(`div`,{className:`form-group`,children:[(0,M.jsx)(`label`,{htmlFor:`email`,children:`E-mail *`}),(0,M.jsx)(`input`,{type:`email`,id:`email`,value:e.email,onChange:n=>t({...e,email:n.target.value}),placeholder:`[email protected]`,className:`form-control`,required:!0})]}),(0,M.jsxs)(`div`,{className:`form-group`,children:[(0,M.jsx)(`label`,{htmlFor:`message`,children:`Zpráva *`}),(0,M.jsx)(`textarea`,{id:`message`,rows:`5`,value:e.message,onChange:n=>t({...e,message:n.target.value}),placeholder:`Jak vám můžeme pomoci?`,className:`form-control`,required:!0})]}),(0,M.jsx)(`button`,{type:`submit`,className:`btn btn-primary w-100`,disabled:i,children:i?`Odesílám...`:`Odeslat zprávu`})]})]})]})})}),(0,M.jsx)(`style`,{children:`
121        .contact-grid {
122          display: grid;
123          grid-template-columns: 1fr 1fr;
124          gap: 4rem;
125        }
126        .contact-methods {
127          display: flex;
128          flex-direction: column;
129          gap: 1.5rem;
130          margin-bottom: 3rem;
131        }
132        .method-item {
133          display: flex;
134          align-items: center;
135          gap: 1.5rem;
136        }
137        .method-icon {
138          background-color: var(--primary-light);
139          color: var(--primary);
140          padding: 1rem;
141          border-radius: 50%;
142        }
143        .contact-link {
144          font-size: 1.2rem;
145          font-weight: 500;
146        }
147        .mt-4 { margin-top: 2.5rem; }
148        .mt-2 { margin-top: 1rem; }
149        .text-primary { color: var(--primary); }
150        .text-sm { font-size: 0.9rem; }
151        .branches {
152          display: flex;
153          flex-direction: column;
154          gap: 1.5rem;
155          margin-top: 1.5rem;
156        }
157        .branch-header {
158          display: flex;
159          align-items: center;
160          gap: 0.5rem;
161          margin-bottom: 1rem;
162        }
163        .hours {
164          margin-top: 1rem;
165          background: var(--bg-soft);
166          padding: 1rem;
167          border-radius: var(--radius-md);
168        }
169        .contact-form {
170          display: flex;
171          flex-direction: column;
172          gap: 1.5rem;
173          margin-top: 1.5rem;
174        }
175        .form-group {
176          display: flex;
177          flex-direction: column;
178          gap: 0.5rem;
179        }
180        .form-control {
181          padding: 0.8rem 1rem;
182          border: 1px solid var(--border-color);
183          border-radius: var(--radius-md);
184          font-family: inherit;
185          font-size: 1rem;
186          transition: var(--transition);
187        }
188        .form-control:focus {
189          outline: none;
190          border-color: var(--primary);
191          box-shadow: 0 0 0 3px var(--primary-light);
192        }
193        .w-100 { width: 100%; }
194
195        @media (max-width: 992px) {
196          .contact-grid {
197            grid-template-columns: 1fr;
198          }
199        }
200      `})]})},EC=[{id:`prani-mandl-4kg`,category:`Praní a mandlování`,name:`Náplň pračky do 4 kg (Praní a mandl)`,description:`Praní a mandlování pro nÃ
200¡plň pračky do 4 kg.`,price:350,unit:`ks`,unitLabel:`za várku`,icon:`🧺`},{id:`prani-mandl-6kg`,category:`Praní a mandlování`,name:`Náplň pračky do 6 kg (Praní a mandl)`,description:`Praní a mandlování pro náplň pračky do 6 kg.`,price:450,unit:`ks`,unitLabel:`za várku`,icon:`🧺`},{id:`prani-mandl-9kg`,category:`Praní a mandlování`,name:`Náplň pračky do 9 kg (Praní a mandl)`,description:`Praní a mandlování pro náplň pračky do 9 kg.`,price:600,unit:`ks`,unitLabel:`za várku`,icon:`🧺`},{id:`prani-4kg`,category:`Praní a mandlování`,name:`Náplň pračky do 4 kg (Pouze praní)`,description:`Pouze praní pro náplň pračky do 4 kg.`,price:290,unit:`ks`,unitLabel:`za várku`,icon:`💦`},{id:`prani-6kg`,category:`Praní a mandlování`,name:`Náplň pračky do 6 kg (Pouze praní)`,description:`Pouze praní pro náplň pračky do 6 kg.`,price:380,unit:`ks`,unitLabel:`za várku`,icon:`💦`},{id:`prani-9kg`,category:`Praní a mandlování`,name:`Náplň pračky do 9 kg (Pouze praní)`,description:`Pouze praní pro náplň pračky do 9 kg.`,price:470,unit:`ks`,unitLabel:`za várku`,icon:`💦`},{id:`feel-eco-4kg`,category:`Praní a mandlování`,name:`Ekologické praní Feel Eco (do 4 kg)`,description:`Å etrné praní pomocí ekologických prostředků Feel Eco.`,price:340,unit:`ks`,unitLabel:`za várku`,icon:`🌿`},{id:`feel-eco-6kg`,category:`Praní a mandlování`,name:`Ekologické praní Feel Eco (do 6 kg)`,description:`Å etrné praní pomocí ekologických prostředků Feel Eco.`,price:430,unit:`ks`,unitLabel:`za várku`,icon:`🌿`},{id:`mandl-suche-1kg`,category:`Praní a mandlování`,name:`Mandlování rovného prádla – suché`,description:`Za 1 kg suchého, nenakropeného prádla.`,price:54,unit:`kg`,unitLabel:`za 1 kg`,icon:`🫶`},{id:`rucni-zehleni`,category:`Praní a mandlování`,name:`Ruční žehlení`,description:`Profesionální ruční žehlení oděvů (základní cena).`,price:90,unit:`ks`,unitLabel:`za kus`,icon:`👔`},{id:`suseni-pradla`,category:`Praní a mandlování`,name:`SuÅ¡ení prádla`,description:`Profesionální suÅ¡ení prádla v průmyslové suÅ¡ičce.`,price:150,unit:`ks`,unitLabel:`za zakázku`,icon:`☀️`},{id:`perina-dute-vlakno`,category:`Velké kusy prádla`,name:`Peřina – duté vlákno`,description:`Praní a suÅ¡ení peřiny.`,price:350,unit:`ks`,unitLabel:`za kus`,icon:`🛏️`},{id:`dvojperina`,category:`Velké kusy prádla`,name:`Dvojpeřina`,description:`Praní a suÅ¡ení dvojpeřiny.`,price:490,unit:`ks`,unitLabel:`za kus`,icon:`🛌`},{id:`deka`,category:`Velké kusy prádla`,name:`Deka`,description:`Praní a suÅ¡ení deky.`,price:200,unit:`ks`,unitLabel:`za kus`,icon:`🛋️`},{id:`polstar-maly`,category:`Velké kusy prádla`,name:`PolÅ¡tář malý`,description:`Praní a suÅ¡ení.`,price:150,unit:`ks`,unitLabel:`za kus`,icon:`☁️`},{id:`polstar-velky`,category:`Velké kusy prádla`,name:`PolÅ¡tář velký`,description:`Praní a suÅ¡ení.`,price:190,unit:`ks`,unitLabel:`za kus`,icon:`☁️`},{id:`potah-podlozka-matrace`,category:`Velké kusy prádla`,name:`Potah – podložka na matraci`,description:`Praní a suÅ¡ení.`,price:200,unit:`ks`,unitLabel:`za kus`,icon:`🛏️`},{id:`potah-matrace`,category:`Velké kusy prádla`,name:`Potah matrace – jednolůžko`,description:`Praní a suÅ¡ení.`,price:450,unit:`ks`,unitLabel:`za kus`,icon:`🛏️`},{id:`potah-matrace-dvouluzko`,category:`Velké kusy prádla`,name:`Potah matrace – dvoulůžko`,description:`Praní a suÅ¡ení.`,price:650,unit:`ks`,unitLabel:`za kus`,icon:`🛏️`},{id:`bunda`,category:`Velké kusy prádla`,name:`Bunda`,description:`Praní a suÅ¡ení bundy.`,price:350,unit:`ks`,unitLabel:`za kus`,icon:`🧥`},{id:`bunda-perova`,category:`Velké kusy prádla`,name:`Bunda péřová`,description:`Praní a suÅ¡ení.`,price:470,unit:`ks`,unitLabel:`za kus`,icon:`🧥`},{id:`spaci-pytel`,category:`Velké kusy prádla`,name:`Spací pytel`,description:`Praní a suÅ¡ení spacího pytle.`,price:600,unit:`ks`,unitLabel:`za kus`,icon:`🏕️`},{id:`pz-kosile`,category:`Jednotlivé kusy`,name:`KoÅ¡ile pánská (Praní a žehlení)`,description:`Praní a žehlení.`,price:75,unit:`ks`,unitLabel:`za kus`,icon:`👔`},{id:`z-kosile`,category:`Jednotlivé kusy`,name:`KoÅ¡ile pánská (Pouze žehlení)`,description:`Pouze žehlení.`,price:62,unit:`ks`,unitLabel:`za kus`,icon:`💨`},{id:`pz-bluza`,category:`Jednotlivé kusy`,name:`Blůza - koÅ¡ile dámská (Praní a žehlení)`,description:`Praní a žehlení.`,price:75,unit:`ks`,unitLabel:`za kus`,icon:`👚`},{id:`z-bluza`,category:`Jednotlivé kusy`,name:`Blůza - koÅ¡ile dámská (Pouze žehlení)`,description:`Pouze žehlení.`,price:62,unit:`ks`,unitLabel:`za kus`,icon:`💨`}
200,{id:`pz-sukne`,category:`Jednotlivé kusy`,name:`Sukně (Praní a žehlení)`,description:`Praní a žehlení.`,price:70,unit:`ks`,unitLabel:`za kus`,icon:`👗`},{id:`z-sukne`,category:`Jednotlivé kusy`,name:`Sukně (Pouze žehlení)`,description:`Pouze žehlení.`,price:60,unit:`ks`,unitLabel:`za kus`,icon:`💨`},{id:`pz-saty`,category:`Jednotlivé kusy`,name:`Dámské šaty (Praní a žehlení)`,description:`Praní a žehlení.`,price:220,unit:`ks`,unitLabel:`za kus`,icon:`👗`},{id:`z-saty`,category:`Jednotlivé kusy`,name:`Dámské šaty (Pouze žehlení)`,description:`Pouze žehlení.`,price:110,unit:`ks`,unitLabel:`za kus`,icon:`💨`},{id:`pz-kalhoty`,category:`Jednotlivé kusy`,name:`Kalhoty (Praní a žehlení)`,description:`Praní a žehlení.`,price:180,unit:`ks`,unitLabel:`za kus`,icon:`👖`},{id:`z-kalhoty`,category:`Jednotlivé kusy`,name:`Kalhoty (Pouze žehlení)`,description:`Pouze žehlení.`,price:110,unit:`ks`,unitLabel:`za kus`,icon:`💨`},{id:`pz-jeans`,category:`Jednotlivé kusy`,name:`Kalhoty, jeans (Praní a žehlení)`,description:`Praní a žehlení.`,price:120,unit:`ks`,unitLabel:`za kus`,icon:`👖`},{id:`z-jeans`,category:`Jednotlivé kusy`,name:`Kalhoty, jeans (Pouze žehlení)`,description:`Pouze žehlení.`,price:65,unit:`ks`,unitLabel:`za kus`,icon:`💨`},{id:`pz-tricko`,category:`Jednotlivé kusy`,name:`Tričko (Praní a žehlení)`,description:`Praní a žehlení.`,price:45,unit:`ks`,unitLabel:`za kus`,icon:`👕`},{id:`z-tricko`,category:`Jednotlivé kusy`,name:`Tričko (Pouze žehlení)`,description:`Pouze žehlení.`,price:35,unit:`ks`,unitLabel:`za kus`,icon:`💨`},{id:`mc-svetr`,category:`Mokré čištění W`,name:`Vlněný svetr, kašmír (Metoda W)`,description:`Šetrné čištění vlny a kašmíru.`,price:220,unit:`ks`,unitLabel:`za kus`,icon:`🧶`},{id:`mc-bunda`,category:`Mokré čištění W`,name:`Outdoorová bunda (vč. impregnace)`,description:`Čištění s obnovou voděodolnosti.`,price:550,unit:`ks`,unitLabel:`za kus`,icon:`🧥`},{id:`mc-saty`,category:`Mokré čištění W`,name:`Společenské šaty jednoduché (Metoda W)`,description:`Eko čištění jemných společenských šatů.`,price:390,unit:`ks`,unitLabel:`za kus`,icon:`👗`},{id:`mc-kalhoty`,category:`Mokré čištění W`,name:`Kalhoty (Mokré čištění)`,description:`Speciální čištění.`,price:250,unit:`ks`,unitLabel:`za kus`,icon:`💧`},{id:`mc-sako`,category:`Mokré čištění W`,name:`Sako (Mokré čištění)`,description:`Speciální čištění.`,price:300,unit:`ks`,unitLabel:`za kus`,icon:`💧`},{id:`skrobeni-decek`,category:`Záclony a dečky`,name:`Škrobení a napínání deček`,description:`Cena za každých 10 cm².`,price:60,unit:`ks`,unitLabel:`za 10 cm²`,icon:`✨`},{id:`opr-k-kraceni`,category:`Opravy oděvů`,name:`Krácení délky kalhot`,description:`Zkrácení délky klasických kalhot.`,price:250,unit:`ks`,unitLabel:`za kus`,icon:`✂️`},{id:`opr-k-kraceni-jeans`,category:`Opravy oděvů`,name:`Krácení délky jeans`,description:`Zkrácení délky džínových kalhot.`,price:250,unit:`ks`,unitLabel:`za kus`,icon:`✂️`},{id:`opr-k-zuzeni`,category:`Opravy oděvů`,name:`Zúžení kalhot`,description:`Zúžení nohavic pro lepší střih.`,price:440,unit:`ks`,unitLabel:`za kus`,icon:`✂️`},{id:`opr-k-kapsy`,category:`Opravy oděvů`,name:`Nová kapsa`,description:`Všití 1 nové kapsy.`,price:100,unit:`ks`,unitLabel:`za kus`,icon:`✂️`},{id:`opr-k-klin`,category:`Opravy oděvů`,name:`Všití klínu`,description:`Cena od 290 Kč (dle náročnosti).`,price:290,unit:`ks`,unitLabel:`od`,icon:`✂️`},{id:`opr-k-zip`,category:`Opravy oděvů`,name:`Výměna zipu u kalhot`,description:`Cena + doplatek za samotný zip.`,price:200,unit:`ks`,unitLabel:`od`,icon:`🪡`},{id:`opr-s-kraceni`,category:`Opravy oděvů`,name:`Šaty, sukně - krácení délky`,description:`Cena od 300 Kč (dle náročnosti).`,price:300,unit:`ks`,unitLabel:`od`,icon:`✂️`},{id:`opr-s-zuzeni`,category:`Opravy oděvů`,name:`Šaty, sukně - zúžení a úpravy`,description:`Cena od 200 Kč.`,price:200,unit:`ks`,unitLabel:`od`,icon:`✂️`},{id:`opr-s-rukavy`,category:`Opravy oděvů`,name:`Šaty, sukně - krácení rukávů`,description:`Cena od 150 Kč.`,price:150,unit:`ks`,unitLabel:`od`,icon:`✂️`},{id:`opr-s-zip`,category:`Opravy oděvů`,name:`Šaty, sukně - výměna zipu`,description:`Cena od 170 Kč + doplatek za zip.`,price:170,unit:`ks`,unitLabel:`od`,icon:`🪡`},{id:`opr-t-rukavy`,category:`Opravy oděvů`,name:`Trička a mikiny - úprava rukávů`,description:`Úprava rukávů na tričku nebo mikině.`,price:250,unit:`ks`,unitLabel:`za kus`,icon:`✂️`},{id:`opr-t-zip`,category:`Opravy oděvů`,name:`Výměna zipu na mikině`,description:`Cena 280 Kč + doplatek za zip.`,price:280,unit:`ks`,unitLabel:`od`,icon:`🪡`},{id:`opr-d-zceleni`,category:`Opravy oděvů`,name:`Zašití a zacelení díry`,description:`Cena od 60 Kč dle velikosti.`,price:60,unit:`ks`,unitLabel:`od`,icon:`🧵`},{id:`opr-d-knoflik`,category:`Opravy oděvů`,name:`Přišití knofl
200íku`,description:`Přišití 1 kusu knoflíku.`,price:10,unit:`ks`,unitLabel:`za kus`,icon:`🔘`},{id:`opr-b-rukavy`,category:`Opravy oděvů`,name:`Bundy - krácení rukávů`,description:`Cena od 200 Kč.`,price:200,unit:`ks`,unitLabel:`od`,icon:`✂️`},{id:`opr-b-zip`,category:`Opravy oděvů`,name:`Bundy - výměna zipu`,description:`Cena od 350 Kč + doplatek za zip.`,price:350,unit:`ks`,unitLabel:`od`,icon:`🪡`},{id:`chem-sako-letni`,category:`Chemické čištění`,name:`Sako, bunda letní`,description:`Hloubkové chemické čištění letního saka nebo bundy.`,price:270,unit:`ks`,unitLabel:`za kus`,icon:`🧥`},{id:`chem-frak-smoking`,category:`Chemické čištění`,name:`Frak, smoking`,description:`Chemické čištění společenského obleku (frak, smoking).`,price:520,unit:`ks`,unitLabel:`za set`,icon:`👔`},{id:`chem-kalhoty`,category:`Chemické čištění`,name:`Kalhoty`,description:`Chemické čištění klasických dlouhých kalhot.`,price:260,unit:`ks`,unitLabel:`za kus`,icon:`👖`},{id:`chem-kalhoty-kratke`,category:`Chemické čištění`,name:`Kalhoty krátké`,description:`Chemické čištění krátkých kalhot.`,price:140,unit:`ks`,unitLabel:`za kus`,icon:`👖`},{id:`chem-vesta-oblekovy`,category:`Chemické čištění`,name:`Vesta obleková`,description:`Chemické čištění oblekové vesty.`,price:130,unit:`ks`,unitLabel:`za kus`,icon:`👔`},{id:`chem-sukne-jednoducha`,category:`Chemické čištění`,name:`Sukně jednoduchá`,description:`Chemické čištění jednoduché sukně.`,price:130,unit:`ks`,unitLabel:`za kus`,icon:`👗`},{id:`chem-sukne-sklady`,category:`Chemické čištění`,name:`Sukně sklady`,description:`Chemické čištění skládané sukně.`,price:210,unit:`ks`,unitLabel:`za kus`,icon:`👗`},{id:`chem-saty-jednoduche`,category:`Chemické čištění`,name:`Šaty jednoduché`,description:`Chemické čištění jednoduchých šatů.`,price:230,unit:`ks`,unitLabel:`za kus`,icon:`👗`},{id:`chem-saty-svatebni`,category:`Chemické čištění`,name:`Šaty svatební, večerní – toaleta`,description:`Šetrné čištění svatebních a večerních šatů.`,price:820,unit:`ks`,unitLabel:`od`,icon:`👗`},{id:`chem-svetr-mikina`,category:`Chemické čištění`,name:`Svetr, mikina`,description:`Chemické čištění svetru nebo mikiny.`,price:130,unit:`ks`,unitLabel:`za kus`,icon:`🧶`},{id:`chem-bunda-zimni`,category:`Chemické čištění`,name:`Bunda, vesta zimní`,description:`Chemické čištění zimní bundy nebo vesty.`,price:310,unit:`ks`,unitLabel:`za kus`,icon:`🧥`},{id:`chem-kabat-paleto`,category:`Chemické čištění`,name:`Kabát, paleto, pončo`,description:`Chemické čištění kabátu, paleta nebo ponča.`,price:340,unit:`ks`,unitLabel:`za kus`,icon:`🧥`},{id:`chem-kombineza-zateplena`,category:`Chemické čištění`,name:`Kombinéza zateplená`,description:`Chemické čištění zateplené kombinézy.`,price:370,unit:`ks`,unitLabel:`za kus`,icon:`⛷️`},{id:`chem-kozich-synteticky`,category:`Chemické čištění`,name:`Kožich, paleto syntetické`,description:`Šetrné čištění syntetického kožichu nebo paleta.`,price:820,unit:`ks`,unitLabel:`od`,icon:`🧥`},{id:`chem-bunda-perova`,category:`Chemické čištění`,name:`Bunda, vesta, kabát péřový`,description:`Speciální šetrné čištění péřových oděvů.`,price:470,unit:`ks`,unitLabel:`od`,icon:`🧥`},{id:`chem-kravata-motylek`,category:`Chemické čištění`,name:`Kravata, motýlek, ostatní drobnosti`,description:`Čištění kravaty, motýlku a doplňků.`,price:110,unit:`ks`,unitLabel:`za kus`,icon:`👔`},{id:`chem-cepice-klobouk`,category:`Chemické čištění`,name:`Čepice, klobouk`,description:`Chemické čištění čepice nebo klobouku.`,price:110,unit:`ks`,unitLabel:`za kus`,icon:`👒`},{id:`sen-obedy`,category:`Služby pro seniory`,name:`Obědy pro seniory (Teamium)`,description:`Zajištění a dovoz teplých obědů.`,price:120,unit:`ks`,unitLabel:`od`,icon:`🍽️`},{id:`sen-uklid`,category:`Služby pro seniory`,name:`Hodinová sazba - úklid, výpomoc`,description:`Pomoc v domácnosti pro seniory.`,price:250,unit:`hod`,unitLabel:`za hodinu`,icon:`🧹`},{id:`sen-dovoz`,category:`Služby pro seniory`,name:`Dovoz nákupu (v okolí)`,description:`Cena za jednu cestu v nejbližším okolí.`,price:80,unit:`cesta`,unitLabel:`od`,icon:`🛍️`},{id:`sen-pedikura`,category:`Služby pro seniory`,name:`Mobilní pedikúra u klienta`,description:`Profesionální pedikúra u vás doma.`,price:450,unit:`ks`,unitLabel:`za službu`,icon:`🦶`},{id:`sen-masaz`,category:`Služby pro seniory`,name:`Masáže do domu`,description:`Relaxační a zdravotní masáže přímo u vás.`,price:600,unit:`hod`,unitLabel:`od`,icon:`💆`}
200,{id:`sen-spolecnik`,category:`Služby pro seniory`,name:`Společník / Parťák`,description:`Společnost pro seniory, doprovod k lékaři, povídání.`,price:200,unit:`hod`,unitLabel:`za hodinu`,icon:`🤝`},{id:`b2b-prani`,category:`Služby pro firmy`,name:`Praní pro hotely a penziony`,description:`Individuální cena dle objemu a smlouvy.`,price:0,unit:`kg`,unitLabel:`dle dohody`,icon:`🏢`},{id:`b2b-pracovni`,category:`Služby pro firmy`,name:`Praní pracovních oděvů`,description:`Montérky, uniformy a gastro oděvy.`,price:0,unit:`ks`,unitLabel:`dle dohody`,icon:`👷`},{id:`rozvoz-1`,category:`Služby a doprava`,name:`Svoz a odvoz prádla - 1 cesta`,description:`1 cesta (k zákazníkovi a zpět) do 5 km.`,price:100,unit:`ks`,unitLabel:`za jízdu`,icon:`🚐`},{id:`rozvoz-2`,category:`Služby a doprava`,name:`Svoz a odvoz prádla - 2 cesty`,description:`2 cesty (svoz i odvoz) do 5 km.`,price:180,unit:`ks`,unitLabel:`za službu`,icon:`🚐`}],DC=[...new Set(EC.map(e=>e.category))],OC=({item:e})=>{let{addItem:t}=ur(),[n,r]=(0,_.useState)(!1);return(0,M.jsxs)(`div`,{className:`service-card glass-card`,children:[(0,M.jsx)(`div`,{className:`service-card-icon`,children:e.icon}),(0,M.jsxs)(`div`,{className:`service-card-body`,children:[(0,M.jsx)(`h3`,{children:e.name}),(0,M.jsx)(`p`,{className:`service-card-desc`,children:e.description}),(0,M.jsx)(`p`,{className:`service-card-unit-label`,children:e.unitLabel})]}),(0,M.jsxs)(`div`,{className:`service-card-footer`,children:[(0,M.jsx)(`div`,{className:`service-card-price`,children:(0,M.jsxs)(`span`,{className:`price-value`,children:[e.price.toLocaleString(`cs-CZ`),` Kč`]})}),(0,M.jsx)(`button`,{className:`btn add-to-cart-btn ${n?`added`:``}`,onClick:()=>{t(e,1),r(!0),setTimeout(()=>r(!1),1500)},"aria-label":`Přidat ${e.name} do košíku`,children:n?(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(Ar,{size:16}),` Přidáno`]}):(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(mi,{size:16}),` Do košíku`]})})]})]})},kC=()=>{let[e]=Un(),[t,n]=(0,_.useState)(e.get(`category`)||`Vše`),{totalItems:r,setIsCartOpen:i}=ur(),{items:a,categories:o,loading:s,error:c}=tC(),l=e=>{if(!o)return!1;let t=o.find(t=>t.name===e);return t?t.hidden===!0:!1},u=o?o.filter(e=>e.hidden?!1:a.some(t=>t.category===e.name&&!t.hidden)).map(e=>e.name):[],d=[`Vše`,...u],f=a.filter(e=>e.hidden?!1:!l(e.category)),p=t===`Vše`?f:f.filter(e=>e.category===t);return s?(0,M.jsx)(`div`,{className:`shop-page`,children:(0,M.jsxs)(`div`,{className:`container`,style:{padding:`10rem 0`,textAlign:`center`},children:[(0,M.jsx)(hi,{className:`spinner`,size:48}),(0,M.jsx)(`p`,{style:{marginTop:`1rem`}
200,children:`Načítám ceník z databáze...`})]})}):c?(0,M.jsx)(`div`,{className:`shop-page`,children:(0,M.jsxs)(`div`,{className:`container`,style:{padding:`10rem 0`,textAlign:`center`,color:`#dc3545`},children:[(0,M.jsx)(`h2`,{children:`Chyba při načítání`}),(0,M.jsx)(`p`,{children:c.message})]})}):(0,M.jsxs)(`div`,{className:`shop-page`,children:[(0,M.jsx)(`section`,{className:`bg-header`,style:{backgroundImage:`url("/assets/services/laundry.png")`},children:(0,M.jsxs)(`div`,{className:`container`,children:[(0,M.jsx)(`h1`,{className:`page-title`,children:`Online objednávka služeb`}),(0,M.jsx)(`p`,{className:`page-subtitle`,children:`Vyberte si naše služby, přidejte je do košíku a odešlete nezávaznou objednávku. Potvrdíme vám ji do 24 hodin.`}),r>0&&(0,M.jsxs)(`button`,{className:`floating-cart-btn btn btn-primary`,onClick:()=>i(!0),children:[(0,M.jsx)(wi,{size:20}),`Zobrazit košík (`,r,`)`]})]})}),(0,M.jsx)(`div`,{className:`shop-info-bar`,children:(0,M.jsxs)(`div`,{className:`container shop-info-bar-inner`,children:[(0,M.jsx)(`span`,{children:`🚐 Nabízíme odvoz a dovoz prádla přímo k vám domů`}),(0,M.jsx)(`span`,{children:`⏱️ Standardní dodací lhůta: do 3 dnů`}),(0,M.jsx)(`span`,{children:`⚡ Expresní zakázka: +50% příplatek`})]})}),(0,M.jsx)(`section`,{className:`section`,children:(0,M.jsxs)(`div`,{className:`container`,children:[(0,M.jsx)(`div`,{className:`shop-filters`,children:d.map(e=>(0,M.jsx)(`button`,{className:`filter-btn ${t===e?`active`:``}`,onClick:()=>{n(e),window.scrollTo({top:450,behavior:`smooth`})},children:e},e))}),t===`Vše`?u.map(e=>{let t=f.filter(t=>t.category===e);return t.length===0?null:(0,M.jsxs)(`div`,{className:`shop-category-group`,children:[(0,M.jsx)(`h2`,{className:`shop-category-title`,children:e}),(0,M.jsx)(`div`,{className:`shop-grid`,children:t.map(e=>(0,M.jsx)(OC,{item:e},e.id))})]},e)}):(0,M.jsx)(`div`,{className:`shop-grid`,children:p.map(e=>(0,M.jsx)(OC,{item:e},e.id))}),(0,M.jsxs)(`div`,{className:`shop-disclaimer glass-card`,children:[(0,M.jsx)(`h3`,{children:`📋 Důležité informace`}),(0,M.jsxs)(`ul`,{children:[(0,M.jsxs)(`li`,{children:[(0,M.jsx)(`strong`,{children:`Zelený ostrov s.r.o.`}),` je plátcem DPH – ceny jsou uvedeny s DPH.`]}),(0,M.jsx)(`li`,{children:`V případě neuvedené ceny je cena dle dohody na pobočce.`}),(0,M.jsx)(`li`,{children:`Expresní (přednostní) zakázka: příplatek 50 %.`}),(0,M.jsxs)(`li`,{children:[`Prádelenské služby jsou hotové do `,(0,M.jsx)(`strong`,{children:`3 dnů`}),`, opravy oděvů do `,(0,M.jsx)(`strong`,{children:`3 týdnů`}),`.`]})]})]})]})})]})},AC=()=>{let{items:e,totalPrice:t,clearCart:n,updateQuantity:r,removeItem:i}=ur(),a=mt(),[o,s]=(0,_.useState)(!1),[c,l]=(0,_.useState)(!1),[u,d]=(0,_.useState)({name:``,phone:``,email:``,address:``,note:``,delivery:`osobni`,payment:`hotove`}),[f,p]=(0,_.useState)({}),m=()=>{let e={};return u.name.trim()||(e.name=`Zadejte jméno`),u.phone.trim()||(e.phone=`Zadejte telefon`),(!u.email.trim()||!u.email.includes(`@`))&&(e.email=`Zadejte platný e-mail`),(u.delivery===`rozvoz`||u.delivery===`zasilkovna`)&&!u.address.trim()&&(e.address=`Zadejte adresu pro doručení`),e};return e.length===0&&!o?(0,M.jsx)(`div`,{className:`order-page`,children:(0,M.jsxs)(`div`,{className:`container order-empty`,children:[(0,M.jsx)(`h2`,{children:`Košík je prázdný`}),(0,M.jsx)(`p`,{children:`Přidejte si nejprve služby z naší nabídky.`}),(0,M.jsxs)(`button`,{className:`btn btn-primary`,onClick:()=>a(`/objednat`),children:[(0,M.jsx)(br,{size:18}),` Zpět do obchodu`]})]})}):o?(0,M.jsx)(`div`,{className:`order-page`,children:(0,M.jsxs)(`div`,{className:`container order-success`,children:[(0,M.jsx)(`div`,{className:`success-icon`,children:(0,M.jsx)(Fr,{size:72})}),(0,M.jsx)(`h2`,{children:`Objednávka odeslána!`}),(0,M.jsxs)(`p`,{children:[`Děkujeme, `,(0,M.jsx)(`strong`,{children:u.name}),`! Vaši objednávku jsme přijali a brzy se vám ozveme na `,(0,M.jsx)(`strong`,{children:u.email}),` nebo `,(0,M.jsx)(`strong`,{children:u.phone}),` s potvrzením termínu.`]}),(0,M.jsx)(`p`,{className:`success-note`,children:`Pracovní doba: Po–Pá 8:00–16:00`}),(0,M.jsx)(`button`,{className:`btn btn-primary`,onClick:()=>a(`/`),children:`Zpět na hlavní stránku`})]})}):(0,M.jsxs)(`div`,{className:`order-page`,children:[(0,M.jsx)(`section`,{className:`order-hero`,children:(0,M.jsxs)(`div`,{className:`container`,children:[(0,M.jsxs)(`button`,{className:`btn-back`,onClick:()=>
200a(`/objednat`),children:[(0,M.jsx)(br,{size:16}),` Zpět do obchodu`]}),(0,M.jsx)(`h1`,{children:`Dokončení objednávky`}),(0,M.jsx)(`p`,{children:`Zkontrolujte objednávku a vyplňte kontaktní údaje.`})]})}),(0,M.jsx)(`section`,{className:`section`,children:(0,M.jsxs)(`div`,{className:`container order-layout`,children:[(0,M.jsxs)(`div`,{className:`order-summary glass-card`,children:[(0,M.jsx)(`h2`,{children:`Vaše objednávka`}),(0,M.jsx)(`ul`,{className:`order-item-list`,children:e.map(e=>(0,M.jsxs)(`li`,{className:`order-line-item`,children:[(0,M.jsx)(`span`,{className:`order-item-emoji`,children:e.icon}),(0,M.jsxs)(`div`,{className:`order-item-details`,children:[(0,M.jsx)(`span`,{className:`order-item-name`,children:e.name}),(0,M.jsxs)(`span`,{className:`order-item-subprice`,children:[e.price.toLocaleString(`cs-CZ`),` Kč × `,e.quantity,` `,e.unit]})]}),(0,M.jsxs)(`div`,{className:`order-qty-controls`,children:[(0,M.jsx)(`button`,{className:`qty-sm-btn`,onClick:()=>r(e.id,e.quantity-1),children:`−`}),(0,M.jsx)(`span`,{children:e.quantity}),(0,M.jsx)(`button`,{className:`qty-sm-btn`,onClick:()=>r(e.id,e.quantity+1),children:`+`})]}),(0,M.jsxs)(`span`,{className:`order-item-total`,children:[(e.price*e.quantity).toLocaleString(`cs-CZ`),` Kč`]}),(0,M.jsx)(`button`,{className:`remove-sm-btn`,onClick:()=>i(e.id),children:(0,M.jsx)(ji,{size:14})})]},e.id))}),(0,M.jsxs)(`div`,{className:`order-total-box`,children:[(0,M.jsx)(`span`,{children:`Celkem (bez DPH)`}),(0,M.jsxs)(`strong`,{children:[t.toLocaleString(`cs-CZ`),` Kč`]})]}),(0,M.jsx)(`p`,{className:`order-vat-note`,children:`* Zelený ostrov s.r.o. je plátce DPH. Finální cenu s DPH potvrdíme v objednávkovém e-mailu.`})]}),(0,M.jsxs)(`form`,{className:`order-form glass-card`,onSubmit:async r=>{r.preventDefault();let i=m();if(Object.keys(i).length>0){p(i);return}l(!0);try{let r={customer:u,items:e.map(e=>({id:e.id,name:e.name,quantity:e.quantity,price:e.price,unit:e.unit||`ks`})),totalPrice:t,status:`new`,createdAt:Ox()},i=await rS(Wb(eC,`orders`),r),a=e.map(e=>`
201        <tr>
202          <td style="padding: 10px 5px; border-bottom: 1px solid #eee;">${e.name}</td>
203          <td style="padding: 10px 5px; border-bottom: 1px solid #eee; text-align: center;">${e.quantity} ${e.unit||`ks`}</td>
204          <td style="padding: 10px 5px; border-bottom: 1px solid #eee; text-align: right;">${(e.price*e.quantity).toLocaleString(`cs-CZ`)} Kč</td>
205        </tr>
206      `).join(``),o={order_id:i.id.slice(-6).toUpperCase(),customer_name:u.name,customer_email:u.email,email:u.email,customer_phone:u.phone,delivery_type:u.delivery===`osobni`?`Osobní předání`:u.delivery===`zasilkovna`?`Zásilkovna / Balíkovna`:`Odvoz z adresy`,payment_type:u.payment===`hotove`?`Hotově`:u.payment===`prevod`?`Převodem`:`Faktura`,address:u.address||`Neuvedeno`,note:u.note||`Bez poznámky`,total_price:t.toLocaleString(`cs-CZ`),items_html:a,to_email:`[email protected]`,reply_to:u.email};await wC.send(`service_9gw9zbe`,`template_h7norp4`,o,{publicKey:`aANhT6_XuXDQwWKO2`}),ir(i.id,t,e),s(!0),n()}catch(n){console.error(`Chyba při odesílání:`,n);let r=n?.text||n?.message||`Neznámá chyba`;alert(`Objednávka byla uložena, ale e-mail neodeÅ¡el. Chyba: ${r}`),typeof docRef<`u`&&docRef.id&&ir(docRef.id,t,e),s(!0)}finally{l(!1)}},noValidate:!0,children:[(0,M.jsx)(`h2`,{children:`Kontaktní údaje`}),(0,M.jsxs)(`div`,{className:`form-group`,children:[(0,M.jsx)(`label`,{htmlFor:`order-name`,children:`Jméno a příjmení *`}),(0,M.jsx)(`input`,{id:`order-name`,type:`text`,className:`form-control ${f.name?`error`:``}`,placeholder:`Jan Novák`,value:u.name,onChange:e=>d({...u,name:e.target.value})}),f.name&&(0,M.jsx)(`span`,{className:`error-msg`,children:f.name})]}),(0,M.jsxs)(`div`,{className:`form-row`,children:[(0,M.jsxs)(`div`,{className:`form-group`,children:[(0,M.jsx)(`label`,{htmlFor:`order-phone`,children:`Telefon *`}),(0,M.jsx)(`input`,{id:`order-phone`,type:`tel`,className:`form-control ${f.phone?`error`:``}`,placeholder:`+420 601 571 790`,value:u.phone,onChange:e=>d({...u,phone:e.target.value})}),f.phone&&(0,M.jsx)(`span`,{className:`error-msg`,children:f.phone})]}),(0,M.jsxs)(`div`,{className:`form-group`,children:[(0,M.jsx)(`label`,{htmlFor:`order-email`,children:`E-mail *`}),(0,M.jsx)(`input`,{id:`order-email`,type:`email`,className:`form-control ${f.email?`error`:``}`,placeholder:`[email protected]`,value:u.email,onChange:e=>d({...u,email:e.target.value})}),f.email&&(0,M.jsx)(`span`,{className:`error-msg`,children:f.email})]})]}),(0,M.jsxs)(`div`,{className:`form-group`,children:[(0,M.jsx)(`label`,{children:`Způsob předání prádla`}),(0,M.jsxs)(`div`,{className:`delivery-options`,children:[(0,M.jsxs)(`label`,{className:`delivery-option ${u.delivery===`osobni`?`selected`:``}`,children:[(0,M.jsx)(`input`,{type:`radio`,name:`delivery`,value:`osobni`,checked:u.delivery===`osobni`,onChange:()=>d({...u,delivery:`osobni`,address:``})}),(0,M.jsxs)(`div`,{children:[(0,M.jsx)(`strong`,{children:`🏪 Osobní předání na pobočce`}),(0,M.jsx)(`p`,{style:{fontSize:`12px`,color:`#666`,marginTop:`4px`},children:`Zdarma. Přineste prádlo k nám na pobočku.`})]})]}),(0,M.jsxs)(`label`,{className:`delivery-option ${u.delivery===`rozvoz`?`selected`:``}`,children:[(0,M.jsx)(`input`,{type:`radio`,name:`delivery`,value:`rozvoz`,checked:u.delivery===`rozvoz`,onChange:()=>d({...u,delivery:`rozvoz`})}),(0,M.jsxs)(`div`,{children:[(0,M.jsx)(`strong`,{children:`🚐 Odvoz a dovoz z vaší adresy`}),(0,M.jsxs)(`p`,{style:{fontSize:`12px`,color:`#666`,marginTop:`4px`},children:[`20 Kč / km. Jezdíme v okruhu 20 km od naÅ¡ich poboček.`,(0,M.jsx)(`br`,{}),(0,M.jsx)(`span`,{style:{color:`#27ae60`,fontWeight:`bold`},children:`Doprava ZDARMA při objednávce nad 1500 Kč.`})]})]})]}),(0,M.jsxs)(`label`,{className:`delivery-option ${u.delivery===`zasilkovna`?`selected`:``}`,children:[(0,M.jsx)(`input`,{type:`radio`,name:`delivery`,value:`zasilkovna`,checked:u.delivery===`zasilkovna`,onChange:()=>d({...u,delivery:`zasilkovna`})}),(0,M.jsxs)(`div`,{children:[(0,M.jsx)(`strong`,{children:`📦 Zásilkovna / Balíkovn
206a`}),(0,M.jsx)(`p`,{style:{fontSize:`12px`,color:`#666`,marginTop:`4px`},children:`Pošlete nám prádlo přes výdejní místo.`})]})]})]})]}),(u.delivery===`rozvoz`||u.delivery===`zasilkovna`)&&(0,M.jsxs)(`div`,{className:`form-group`,children:[(0,M.jsx)(`label`,{htmlFor:`order-address`,children:u.delivery===`rozvoz`?`Vaše adresa (Ulice, č.p., Město) *`:`Adresa pro doručení zásilky *`}),(0,M.jsx)(`input`,{id:`order-address`,type:`text`,className:`form-control ${f.address?`error`:``}`,placeholder:u.delivery===`rozvoz`?`Vaše ulice, číslo popisné, město`:`Adresa vaší Zásilkovny / Balíkovny`,value:u.address,onChange:e=>d({...u,address:e.target.value})}),f.address&&(0,M.jsx)(`span`,{className:`error-msg`,children:f.address})]}),(0,M.jsxs)(`div`,{className:`form-group`,style:{marginTop:`30px`},children:[(0,M.jsx)(`label`,{children:`Platební metoda`}),(0,M.jsxs)(`div`,{className:`delivery-options`,style:{display:`grid`,gridTemplateColumns:`repeat(auto-fit, minmax(150px, 1fr))`,gap:`0.75rem`},children:[(0,M.jsxs)(`label`,{className:`delivery-option payment-option ${u.payment===`hotove`?`selected`:``}`,children:[(0,M.jsx)(`input`,{type:`radio`,name:`payment`,value:`hotove`,checked:u.payment===`hotove`,onChange:()=>d({...u,payment:`hotove`})}),(0,M.jsx)(`strong`,{children:`💵 Hotově`})]}),(0,M.jsxs)(`label`,{className:`delivery-option payment-option ${u.payment===`prevod`?`selected`:``}`,children:[(0,M.jsx)(`input`,{type:`radio`,name:`payment`,value:`prevod`,checked:u.payment===`prevod`,onChange:()=>d({...u,payment:`prevod`})}),(0,M.jsx)(`strong`,{children:`🏦 Převodem`})]}),(0,M.jsxs)(`label`,{className:`delivery-option payment-option ${u.payment===`faktura`?`selected`:``}`,children:[(0,M.jsx)(`input`,{type:`radio`,name:`payment`,value:`faktura`,checked:u.payment===`faktura`,onChange:()=>d({...u,payment:`faktura`})}),(0,M.jsx)(`strong`,{children:`📄 Na fakturu`})]})]}),(0,M.jsx)(`div`,{style:{background:`#f8f9fa`,padding:`15px`,borderRadius:`12px`,marginTop:`15px`,borderLeft:`4px solid #3498db`},children:(0,M.jsxs)(`p`,{style:{margin:0,fontSize:`13px`,color:`#2c3e50`,lineHeight:1.5},children:[(0,M.jsx)(`strong`,{children:`Poznámka k platbě:`}),` Platba probíhá `,(0,M.jsx)(`strong`,{children:`až po předání čistého prádla`}),`. Ceny zobrazené při objednání jsou pouze orientační. Konečná a přesná částka bude vypočtena až po převážení nebo zkontrolování prádla u nás.`]})})]}),(0,M.jsxs)(`div`,{className:`form-group`,children:[(0,M.jsx)(`label`,{htmlFor:`order-note`,children:`Poznámka (nepovinné)`}),(0,M.jsx)(`textarea`,{id:`order-note`,rows:`3`,className:`form-control`,placeholder:`Např. specifický požadavek na opravu, časové omezení pro odvoz...`,value:u.note,onChange:e=>d({...u,note:e.target.value})})]}),(0,M.jsx)(`button`,{type:`submit`,className:`btn btn-primary order-submit-btn`,disabled:c,children:c?(0,M.jsx)(M.Fragment,{children:`Zpracovávám...`}):(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(vi,{size:18}),` Odeslat objednávku`]})}),(0,M.jsx)(`p`,{className:`order-consent`,children:`Odesláním souhlasíte se zpracováním osobních údajů za účelem vyřízení vaší objednávky.`})]})]})})]})},jC=function(e,t){return jC=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},jC(e,t)};function MC(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);jC(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var NC=function(){return NC=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},NC.apply(this,arguments)},PC=o(((e,t)=>{var n=!1,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_;function v(){if(!n){n=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Ice
206weasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),v=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(m=/\b(iPhone|iP[ao]d)/.exec(e),h=/\b(iP[ao]d)/.exec(e),f=/Android/i.exec(e),g=/FBAN\/\w+;/i.exec(e),_=/Mobile/i.exec(e),p=!!/Win64/.exec(e),t){r=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,r&&document&&document.documentMode&&(r=document.documentMode);var y=/(?:Trident\/(\d+.\d+))/.exec(e);c=y?parseFloat(y[1])+4:r,i=t[2]?parseFloat(t[2]):NaN,a=t[3]?parseFloat(t[3]):NaN,o=t[4]?parseFloat(t[4]):NaN,o?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),s=t&&t[1]?parseFloat(t[1]):NaN):s=NaN}else r=i=a=s=o=NaN;if(v){if(v[1]){var b=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);l=b?parseFloat(b[1].replace(`_`,`.`)):!0}else l=!1;u=!!v[2],d=!!v[3]}else l=u=d=!1}}var y={ie:function(){return v()||r},ieCompatibilityMode:function(){return v()||c>r},ie64:function(){return y.ie()&&p},firefox:function(){return v()||i},opera:function(){return v()||a},webkit:function(){return v()||o},safari:function(){return y.webkit()},chrome:function(){return v()||s},windows:function(){return v()||u},osx:function(){return v()||l},linux:function(){return v()||d},iphone:function(){return v()||m},mobile:function(){return v()||m||h||f||_},nativeApp:function(){return v()||g},android:function(){return v()||f},ipad:function(){return v()||h}};t.exports=y})),FC=o(((e,t)=>{var n=!!(typeof window<`u`&&window.document&&window.document.createElement);t.exports={canUseDOM:n,canUseWorkers:typeof Worker<`u`,canUseEventListeners:n&&!!(window.addEventListener||window.attachEvent),canUseViewport:n&&!!window.screen,isInWorker:!n}})),IC=o(((e,t)=>{var n=FC(),r;n.canUseDOM&&(r=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature(``,``)!==!0);function i(e,t){if(!n.canUseDOM||t&&!(`addEventListener`in document))return!1;var i=`on`+e,a=i in document;if(!a){var o=document.createElement(`div`);o.setAttribute(i,`return;`),a=typeof o[i]==`function`}return!a&&r&&e===`wheel`&&(a=document.implementation.hasFeature(`Events.wheel`,`3.0`)),a}t.exports=i})),LC=o(((e,t)=>{var n=PC(),r=IC(),i=10,a=40,o=800;function s(e){var t=0,n=0,r=0,s=0;return`detail`in e&&(n=e.detail),`wheelDelta`in e&&(n=-e.wheelDelta/120),`wheelDeltaY`in e&&(n=-e.wheelDeltaY/120),`wheelDeltaX`in e&&(t=-e.wheelDeltaX/120),`axis`in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),r=t*i,s=n*i,`deltaY`in e&&(s=e.deltaY),`deltaX`in e&&(r=e.deltaX),(r||s)&&e.deltaMode&&(e.deltaMode==1?(r*=a,s*=a):(r*=o,s*=o)),r&&!t&&(t=r<1?-1:1),s&&!n&&(n=s<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:s}}s.getEventType=function(){return n.firefox()?`DOMMouseScroll`:r(`wheel`)?`wheel`:`mousewheel`},t.exports=s})),RC=c(o(((e,t)=>{t.exports=LC()}))(),1);function zC(e,t,n,r,i,a){a===void 0&&(a=0);var o=$C(e,t,a),s=o.width,c=o.height,l=Math.min(s,n),u=Math.min(c,r);return l>u*i?{width:u*i,height:u}:{width:l,height:l/i}}function BC(e){return e.width>e.height?e.width/e.naturalWidth:e.height/e.naturalHeight}function VC(e,t,n,r,i){i===void 0&&(i=0);var a=$C(t.width,t.height,i),o=a.width,s=a.height;return{x:HC(e.x,o,n.width,r),y:HC(e.y,s,n.height,r)}}function HC(e,t,n,r){var i=Math.abs(t*r/2-n/2);return ew(e,-i,i)}function UC(e,t){return Math.sqrt((e.y-t.y)**2+(e.x-t.x)**2)}function WC(e,t){return Math.atan2(t.y-e.y,t.x-e.x)*180/Math.PI}function GC(e,t,n,r,i,a,o){a===void 0&&(a=0),o===void 0&&(o=!0);var s=o?KC:qC,c=$C(t.width,t.height,a),l=$C(t.naturalWidth,t.naturalHeight,a),u={x:s(100,((c.width-n.width/i)/2-e.x/i)/c.width*100),y:s(100,((c.height-n.height/i)/2-e.y/i)/c.height*100),width:s(100,n.width/c.width*100/i),height:s(100,n.height/c.height*100/i)},d=Math.round(s(l.width,u.width*l.width/100)),f=Math.round(s(l.height,u.height*l.height/100)),p=l.width>=l.height*r?{width:Math.round(f*r),height:f}:{width:d,height:Math.round(d/r)};return{croppedAreaPercentages:u,croppedAreaPixels:NC(NC({},p),{x:Math.round(s(l.width-p.width,u.x*l.width/100)),y:Math.round(s(l.height-p.height,u.y*l.height/100))})}}function KC(e,t){return Math.min(e,Math.max(0,t))}function qC(e,t){return t}function JC(e,t,n,r,i,a){var o=$C(t.width,t.height,n),s=ew(r.width/o.width*(100/e.width),i,a);return{crop:{x:s*o.width/2-r.width/2-o.width*s*(e.x/100),y:s*o.height/2-r.height/2-o.height*s*(e.y/100)},zoom:s}}function YC(e,t,n){var r=BC(t);return n.height>n.width?n.height/(e.height*r):n.width/(e.width*r)}function XC(e,t,n,r,i,a){n===void 0&&(n=0);
206var o=$C(t.naturalWidth,t.naturalHeight,n),s=ew(YC(e,t,r),i,a),c=r.height>r.width?r.height/e.height:r.width/e.width;return{crop:{x:((o.width-e.width)/2-e.x)*c,y:((o.height-e.height)/2-e.y)*c},zoom:s}}function ZC(e,t){return{x:(t.x+e.x)/2,y:(t.y+e.y)/2}}function QC(e){return e*Math.PI/180}function $C(e,t,n){var r=QC(n);return{width:Math.abs(Math.cos(r)*e)+Math.abs(Math.sin(r)*t),height:Math.abs(Math.sin(r)*e)+Math.abs(Math.cos(r)*t)}}function ew(e,t,n){return Math.min(Math.max(e,t),n)}function tw(){return[...arguments].filter(function(e){return typeof e==`string`&&e.length>0}).join(` `).trim()}var nw=`.reactEasyCrop_Container {
207  position: absolute;
208  top: 0;
209  left: 0;
210  right: 0;
211  bottom: 0;
212  overflow: hidden;
213  user-select: none;
214  touch-action: none;
215  cursor: move;
216  display: flex;
217  justify-content: center;
218  align-items: center;
219}
220
221.reactEasyCrop_Image,
222.reactEasyCrop_Video {
223  will-change: transform; /* this improves performances and prevent painting issues on iOS Chrome */
224}
225
226.reactEasyCrop_Contain {
227  max-width: 100%;
228  max-height: 100%;
229  margin: auto;
230  position: absolute;
231  top: 0;
232  bottom: 0;
233  left: 0;
234  right: 0;
235}
236.reactEasyCrop_Cover_Horizontal {
237  width: 100%;
238  height: auto;
239}
240.reactEasyCrop_Cover_Vertical {
241  width: auto;
242  height: 100%;
243}
244
245.reactEasyCrop_CropArea {
246  position: absolute;
247  left: 50%;
248  top: 50%;
249  transform: translate(-50%, -50%);
250  border: 1px solid rgba(255, 255, 255, 0.5);
251  box-sizing: border-box;
252  box-shadow: 0 0 0 9999em;
253  color: rgba(0, 0, 0, 0.5);
254  overflow: hidden;
255}
256
257.reactEasyCrop_CropAreaRound {
258  border-radius: 50%;
259}
260
261.reactEasyCrop_CropAreaGrid::before {
262  content: ' ';
263  box-sizing: border-box;
264  position: absolute;
265  border: 1px solid rgba(255, 255, 255, 0.5);
266  top: 0;
267  bottom: 0;
268  left: 33.33%;
269  right: 33.33%;
270  border-top: 0;
271  border-bottom: 0;
272}
273
274.reactEasyCrop_CropAreaGrid::after {
275  content: ' ';
276  box-sizing: border-box;
277  position: absolute;
278  border: 1px solid rgba(255, 255, 255, 0.5);
279  top: 33.33%;
280  bottom: 33.33%;
281  left: 0;
282  right: 0;
283  border-left: 0;
284  border-right: 0;
285}
286`,rw=1,iw=3,aw=1,ow=function(e){MC(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.cropperRef=_.createRef(),n.imageRef=_.createRef(),n.videoRef=_.createRef(),n.containerPosition={x:0,y:0},n.containerRef=null,n.styleRef=null,n.containerRect=null,n.mediaSize={width:0,height:0,naturalWidth:0,naturalHeight:0},n.dragStartPosition={x:0,y:0},n.dragStartCrop={x:0,y:0},n.gestureZoomStart=0,n.gestureRotationStart=0,n.isTouching=!1,n.lastPinchDistance=0,n.lastPinchRotation=0,n.rafDragTimeout=null,n.rafPinchTimeout=null,n.wheelTimer=null,n.currentDoc=typeof document<`u`?document:null,n.currentWindow=typeof window<`u`?window:null,n.resizeObserver=null,n.previousCropSize=null,n.isInitialized=!1,n.state={cropSize:null,hasWheelJustStarted:!1,mediaObjectFit:void 0},n.initResizeObserver=function(){if(!(window.ResizeObserver===void 0||!n.containerRef)){var e=!0;n.resizeObserver=new window.ResizeObserver(function(t){if(e){e=!1;return}n.computeSizes()}),n.resizeObserver.observe(n.containerRef)}},n.preventZoomSafari=function(e){return e.preventDefault()},n.cleanEvents=function(){n.currentDoc&&(n.currentDoc.removeEventListener(`mousemove`,n.onMouseMove),n.currentDoc.removeEventListener(`mouseup`,n.onDragStopped),n.currentDoc.removeEventListener(`touchmove`,n.onTouchMove),n.currentDoc.removeEventListener(`touchend`,n.onDragStopped),n.currentDoc.removeEventListener(`gesturechange`,n.onGestureChange),n.currentDoc.removeEventListener(`gestureend`,n.onGestureEnd),n.currentDoc.removeEventListener(`scroll`,n.onScroll))},n.clearScrollEvent=function(){n.containerRef&&n.containerRef.removeEventListener(`wheel`,n.onWheel),n.wheelTimer&&clearTimeout(n.wheelTimer)},n.onMediaLoad=function(){var e=n.computeSizes();e&&(n.previousCropSize=e,n.emitCropData(),n.setInitialCrop(e),n.isInitialized=!0),n.props.onMediaLoaded&&n.props.onMediaLoaded(n.mediaSize)},n.setInitialCrop=function(e){if(n.props.initialCroppedAreaPercentages){var t=JC(n.props.initialCroppedAreaPercentages,n.mediaSize,n.props.rotation,e,n.props.minZoom,n.props.maxZoom),r=t.crop,i=t.zoom;n.props.onCropChange(r),n.props.onZoomChange&&n.props.onZoomChange(i)}else if(n.props.initialCroppedAreaPixels){var a=XC(n.props.initialCroppedAreaPixels,n.mediaSize,n.props.rotation,e,n.props.minZoom,n.props.maxZoom),r=a.crop,i=a.zoom;n.props.onCropChange(r),n.props.onZoomChange&&n.props.onZoomChange(i)}},n.computeSizes=function(){var e=n.imageRef.current||n.videoRef.current;if(e&&n.containerRef){n.containerRect=n.containerRef.getBoundingClientRect(),n.saveContainerPosition();var t=n.containerRect.width/n.containerRect.height,r=n.imageRef.current?.naturalWi
286dth||n.videoRef.current?.videoWidth||0,i=n.imageRef.current?.naturalHeight||n.videoRef.current?.videoHeight||0,a=e.offsetWidth<r||e.offsetHeight<i,o=r/i,s=void 0;if(a)switch(n.state.mediaObjectFit){default:case`contain`:s=t>o?{width:n.containerRect.height*o,height:n.containerRect.height}:{width:n.containerRect.width,height:n.containerRect.width/o};break;case`horizontal-cover`:s={width:n.containerRect.width,height:n.containerRect.width/o};break;case`vertical-cover`:s={width:n.containerRect.height*o,height:n.containerRect.height};break}else s={width:e.offsetWidth,height:e.offsetHeight};n.mediaSize=NC(NC({},s),{naturalWidth:r,naturalHeight:i}),n.props.setMediaSize&&n.props.setMediaSize(n.mediaSize);var c=n.props.cropSize?n.props.cropSize:zC(n.mediaSize.width,n.mediaSize.height,n.containerRect.width,n.containerRect.height,n.props.aspect,n.props.rotation);return(n.state.cropSize?.height!==c.height||n.state.cropSize?.width!==c.width)&&n.props.onCropSizeChange&&n.props.onCropSizeChange(c),n.setState({cropSize:c},n.recomputeCropPosition),n.props.setCropSize&&n.props.setCropSize(c),c}},n.saveContainerPosition=function(){if(n.containerRef){var e=n.containerRef.getBoundingClientRect();n.containerPosition={x:e.left,y:e.top}}},n.onMouseDown=function(e){n.currentDoc&&(e.preventDefault(),n.currentDoc.addEventListener(`mousemove`,n.onMouseMove),n.currentDoc.addEventListener(`mouseup`,n.onDragStopped),n.saveContainerPosition(),n.onDragStart(t.getMousePoint(e)))},n.onMouseMove=function(e){return n.onDrag(t.getMousePoint(e))},n.onScroll=function(e){n.currentDoc&&(e.preventDefault(),n.saveContainerPosition())},n.onTouchStart=function(e){n.currentDoc&&(n.isTouching=!0,!(n.props.onTouchRequest&&!n.props.onTouchRequest(e))&&(n.currentDoc.addEventListener(`touchmove`,n.onTouchMove,{passive:!1}),n.currentDoc.addEventListener(`touchend`,n.onDragStopped),n.saveContainerPosition(),e.touches.length===2?n.onPinchStart(e):e.touches.length===1&&n.onDragStart(t.getTouchPoint(e.touches[0]))))},n.onTouchMove=function(e){e.preventDefault(),e.touches.length===2?n.onPinchMove(e):e.touches.length===1&&n.onDrag(t.getTouchPoint(e.touches[0]))},n.onGestureStart=function(e){n.currentDoc&&(e.preventDefault(),n.currentDoc.addEventListener(`gesturechange`,n.onGestureChange),n.currentDoc.addEventListener(`gestureend`,n.onGestureEnd),n.gestureZoomStart=n.props.zoom,n.gestureRotationStart=n.props.rotation)},n.onGestureChange=function(e){if(e.preventDefault(),!n.isTouching){var r=t.getMousePoint(e),i=n.gestureZoomStart-1+e.scale;if(n.setNewZoom(i,r,{shouldUpdatePosition:!0}),n.props.onRotationChange){var a=n.gestureRotationStart+e.rotation;n.props.onRotationChange(a)}}},n.onGestureEnd=function(e){n.cleanEvents()},n.onDragStart=function(e){var t,r;n.dragStartPosition={x:e.x,y:e.y},n.dragStartCrop=NC({},n.props.crop),(r=(t=n.props).onInteractionStart)==null||r.call(t)},n.onDrag=function(e){var t=e.x,r=e.y;n.currentWindow&&(n.rafDragTimeout&&n.currentWindow.cancelAnimationFrame(n.rafDragTimeout),n.rafDragTimeout=n.currentWindow.requestAnimationFrame(function(){if(n.state.cropSize&&!(t===void 0||r===void 0)){var e=t-n.dragStartPosition.x,i=r-n.dragStartPosition.y,a={x:n.dragStartCrop.x+e,y:n.dragStartCrop.y+i},o=n.props.restrictPosition?VC(a,n.mediaSize,n.state.cropSize,n.props.zoom,n.props.rotation):a;n.props.onCropChange(o)}}))},n.onDragStopped=function(){var e,t;n.isTouching=!1,n.cleanEvents(),n.emitCropData(),(t=(e=n.props).onInteractionEnd)==null||t.call(e)},n.onWheel=function(e){if(n.currentWindow&&!(n.props.onWheelRequest&&!n.props.onWheelRequest(e))){e.preventDefault();var r=t.getMousePoint(e),i=(0,RC.default)(e).pixelY,a=n.props.zoom-i*n.props.zoomSpeed/200;n.setNewZoom(a,r,{shouldUpdatePosition:!0}),n.state.hasWheelJustStarted||n.setState({hasWheelJustStarted:!0},function(){var e;return(e=n.props).onInteractionStart?.call(e)}),n.wheelTimer&&clearTimeout(n.wheelTimer),n.wheelTimer=n.currentWindow.setTimeout(function(){return n.setState({hasWheelJustStarted:!1},function(){var e;return(e=n.props).onInteractionEnd?.call(e)})},250)}},n.getPointOnContainer=function(e,t){var r=e.x,i=e.y;if(!n.containerRect)throw Error(`The Cropper is not mounted`);return{x:n.containerRect.width/2-(r-t.x),y:n.containerRect.height/2-(i-t.y)}},n.getPointOnMedia=function(e){var t=e.x,r=e.y,i=n.props,a=i.crop,o=i.zoom;return{x:(t+a.x)/o,y:(r+a.y)/o}},n.setNewZoom=function(e,t,r){var i=(r===void 0?{}:r).shouldUpdatePosition,a=i===void 0?!0:i;if(!(!n.state.cropSize||!n.props.onZoomChange)){var o=ew(e,n.props.minZoom,n.props.maxZoom);if(a){var s=n.getPointOnContainer(t,n.containerPosition),c=n.getPointOnMedia(s),l={x:c.x*o-s.x,y:c.y*o-s.y},u=n.props.restrictPosition?VC(l,n.mediaSize,n.state.cropSize,o,n.props.rotation):l;n.props.onCropChange(u)}n.props.onZoomChange(o)}},n.getCropData=function(){return n.state.cropSize?GC(n.props.restrictPosition?VC(n.props.crop,n.mediaSize,n.state.cropSize,n.props.zoom,n.props.rotation):n.props.crop,n.mediaSize,n.state.cropSize,n.getAspect(),n.props.zoom,n.props.rotation,n.props.restrictPosition):null},n.emitCropData=function(){var e=n.getCropData();if(e){var t=e.croppedAreaPercentages,r=e.croppedAreaPixels;n.props.onCropComplete&&n.props.onCropComplete(t,r),n.props.onCropAreaChange&&n.props.onCropAreaChange(t,r)}},n.emitCropAreaChange=function(){var e=n.getCropData();if(e){var t=e.croppedAreaPercentages,r=e.croppedAreaPixels;n.props.onCropAreaChange&&n.props.onCropAreaChange(t,r)}},n.recomputeCropPosition=function(){if(n.state.cropSize){var e=n.props.crop;if(n.isInitialized&&n.previousCropSize?.width&&n.previousCropSize?.height&&(Math.abs(n.previousCropSize.width-n.state.cropSize.width)>1e-6||Math.abs(n.previousCropSize.height-n.state.cropSize.height)>1e-6)){var t=n.state.cropSize.width/n.previousCropSize.width,r=n.state.cropSize.height/n.previousCropSize.height;e={x:n.props.crop.x*t,y:n.props.crop.y*r}}var i=n.props.restrictPosition?VC(e,n.mediaSize,n.state.cropSize,n.props.zoom,n.props.rotation):e;n.previousCropSize=n.state.cropSize,n.props.onCropChange(i),n.emitCropData()}},n.onKeyDown=function(e){var t,r,i=n.props,a=i.crop,o=i.onCropChange,s=i.keyboardStep,c=i.zoom,l=i.rotation,u=s;if(n.state.cropSize){e.shiftKey&&(u*=.2);var d=NC({},a);switch(e.key){case`ArrowUp`:d.y-=u,e.preventDefault();break;case`ArrowDown`:d.y+=u,e.preventDefault();break;case`ArrowLeft`:d.x-=u,e.preventDefault();break;case`ArrowRight`:d.x+=u,e.preventDefault();break;default:return}n.props.restrictPosition&&(d=VC(d,n.mediaSize,n.state.cropSize,c,l)),e.repeat||(r=(t=n.props).onInteractionStart)==null||r.call(t),o(d)}},n.onKeyUp=function(e){var t,r;switch(e.key){case`ArrowUp`:case`ArrowDown`:case`ArrowLeft`:case`ArrowRight`:e.preventDefault();break;default:return}n.emitCropData(),(r=(t=n.props).onInteractionEnd)==null||r.call(t)},n}return t.prototype.componentDidMount=function(){!this.currentDoc||!this.currentWindow||(this.containerRef&&(this.containerRef.ownerDocument&&(this.currentDoc=this.containerRef.ownerDocument),this.currentDoc.defaultView&&(this.currentWindow=this.currentDoc.defaultView),this.initResizeObserver(),window.ResizeObserver===void 0&&this.currentWindow.addEventListener(`resize`,this.computeSizes),this.props.zoomWithScroll&&this.containerRef.addEventListener(`wheel`,this.onWheel,{passive:!1}),this.containerRef.addEventListener(`gesturestart`,this.onGestureStart)),this.currentDoc.addEventListener(`scroll`,this.onScroll),this.props.disableAutomaticStylesInjection||(this.styleRef=this.currentDoc.createElement(`style`),this.styleRef.setAttribute(`type`,`text/css`),this.props.nonce&&this.styleRef.setAttribute(`nonce`,this.props.nonce),this.styleRef.innerHTML=nw,this.currentDoc.head.appendChild(this.styleRef)),this.imageRef.current&&this.imageRef.current.complete&&this.onMediaLoad(),this.props.setImageRef&&this.props.setImageRef(this.imageRef),this.props.setVideoRef&&this.props.setVideoRef(this.videoRef),this.props.setCropperRef&&this.props.setCropperRef(this.cropperRef))},t.prototype.componentWillUnmount=function(){var e,t;!this.currentDoc||!this.currentWindow||(window.ResizeObserver===void 0&&this.currentWindow.removeEventListener(`resize`,this.computeSizes),(e=this.resizeObserver)==null||e.disconnect(),this.containerRef&&this.containerRef.removeEventListener(`gesturestart`,this.preventZoomSafari),this.styleRef&&((t=this.styleRef.parentNode)==null||t.removeChild(this.styleRef)),this.cleanEvents(),this.props.zoomWithScroll&&this.clearScrollEvent())},t.prototype.componentDidUpdate=function(e){var t;e.rotation===this.props.rotation?e.aspect===this.props.aspect&&e.objectFit===this.props.objectFit?e.zoom===this.props.zoom?e.cropSize?.height!==this.props.cropSize?.height||e.cropSize?.width!==this.props.cropSize?.width?this.computeSizes():(e.crop?.x!==this.props.crop?.x||e.crop?.y!==this.props.crop?.y)&&this.emitCropAreaChange():this.recomputeCropPosition():this.computeSizes():(this.computeSizes(),this.recomputeCropPosition()),e.zoomWithScroll!==this.props.zoomWithScroll&&this.containerRef&&(this.props.zoomWithScroll?this.containerRef.addEventListener(`wheel`,this.onWheel,{passive:!1}):this.clearScrollEvent()),e.video!==this.props.video&&((t=this.videoRef.current)==null||t.load());var n=this.getObjectFit();n!==this.state.mediaObjectFit&&this.setState({mediaObjectFit:n},this.computeSizes)},t.prototype.getAspect=function(){var e=this.props,t=e.cropSize,n=e.aspect;return t?t.width/t.height:n},t.prototype.getObjectFit=function(){if(this.props.objectFit===`cover`){if((this.imageRef.current||this.videoRef.current)&&this.containerRef){this.containerRect=this.containerRef.getBoundingClientRect();var e=this.containerRect.width/this.containerRect.height;
286return(this.imageRef.current?.naturalWidth||this.videoRef.current?.videoWidth||0)/(this.imageRef.current?.naturalHeight||this.videoRef.current?.videoHeight||0)<e?`horizontal-cover`:`vertical-cover`}return`horizontal-cover`}return this.props.objectFit},t.prototype.onPinchStart=function(e){var n=t.getTouchPoint(e.touches[0]),r=t.getTouchPoint(e.touches[1]);this.lastPinchDistance=UC(n,r),this.lastPinchRotation=WC(n,r),this.onDragStart(ZC(n,r))},t.prototype.onPinchMove=function(e){var n=this;if(!(!this.currentDoc||!this.currentWindow)){var r=t.getTouchPoint(e.touches[0]),i=t.getTouchPoint(e.touches[1]),a=ZC(r,i);this.onDrag(a),this.rafPinchTimeout&&this.currentWindow.cancelAnimationFrame(this.rafPinchTimeout),this.rafPinchTimeout=this.currentWindow.requestAnimationFrame(function(){var e=UC(r,i),t=n.props.zoom*(e/n.lastPinchDistance);n.setNewZoom(t,a,{shouldUpdatePosition:!1}),n.lastPinchDistance=e;var o=WC(r,i),s=n.props.rotation+(o-n.lastPinchRotation);n.props.onRotationChange&&n.props.onRotationChange(s),n.lastPinchRotation=o})}},t.prototype.render=function(){var e=this,t=this.props,n=t.image,r=t.video,i=t.mediaProps,a=t.cropperProps,o=t.transform,s=t.crop,c=s.x,l=s.y,u=t.rotation,d=t.zoom,f=t.cropShape,p=t.showGrid,m=t.roundCropAreaPixels,h=t.style,g=h.containerStyle,v=h.cropAreaStyle,y=h.mediaStyle,b=t.classes,x=b.containerClassName,ee=b.cropAreaClassName,S=b.mediaClassName,C=this.state.mediaObjectFit??this.getObjectFit();return _.createElement(`div`,{onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,ref:function(t){return e.containerRef=t},"data-testid":`container`,style:g,className:tw(`reactEasyCrop_Container`,x)},n?_.createElement(`img`,NC({alt:``,className:tw(`reactEasyCrop_Image`,C===`contain`&&`reactEasyCrop_Contain`,C===`horizontal-cover`&&`reactEasyCrop_Cover_Horizontal`,C===`vertical-cover`&&`reactEasyCrop_Cover_Vertical`,S)},i,{src:n,ref:this.imageRef,style:NC(NC({},y),{transform:o||`translate(${c}px, ${l}px) rotate(${u}deg) scale(${d})`}),onLoad:this.onMediaLoad})):r&&_.createElement(`video`,NC({autoPlay:!0,playsInline:!0,loop:!0,muted:!0,className:tw(`reactEasyCrop_Video`,C===`contain`&&`reactEasyCrop_Contain`,C===`horizontal-cover`&&`reactEasyCrop_Cover_Horizontal`,C===`vertical-cover`&&`reactEasyCrop_Cover_Vertical`,S)},i,{ref:this.videoRef,onLoadedMetadata:this.onMediaLoad,style:NC(NC({},y),{transform:o||`translate(${c}px, ${l}px) rotate(${u}deg) scale(${d})`}),controls:!1}),(Array.isArray(r)?r:[{src:r}]).map(function(e){return _.createElement(`source`,NC({key:e.src},e))})),this.state.cropSize&&_.createElement(`div`,NC({ref:this.cropperRef,style:NC(NC({},v),{width:m?Math.round(this.state.cropSize.width):this.state.cropSize.width,height:m?Math.round(this.state.cropSize.height):this.state.cropSize.height}),tabIndex:0,onKeyDown:this.onKeyDown,onKeyUp:this.onKeyUp,"data-testid":`cropper`,className:tw(`reactEasyCrop_CropArea`,f===`round`&&`reactEasyCrop_CropAreaRound`,p&&`reactEasyCrop_CropAreaGrid`,ee)},a)))},t.defaultProps={zoom:1,rotation:0,aspect:4/3,maxZoom:iw,minZoom:rw,cropShape:`rect`,objectFit:`contain`,showGrid:!0,style:{},classes:{},mediaProps:{},cropperProps:{},zoomSpeed:1,restrictPosition:!0,zoomWithScroll:!0,keyboardStep:aw},t.getMousePoint=function(e){return{x:Number(e.clientX),y:Number(e.clientY)}},t.getTouchPoint=function(e){return{x:Number(e.clientX),y:Number(e.clientY)}},t}(_.Component),sw=({currentIcon:e,onSelect:t})=>{let[n,r]=(0,_.useState)(!1),[i,a]=(0,_.useState)(``);return(0,M.jsxs)(`div`,{className:`icon-picker-container`,children:[(0,M.jsxs)(`button`,{type:`button`,className:`icon-picker-trigger`,onClick:()=>r(!n),children:[(0,M.jsx)(`span`,{className:`current-icon-display`,children:e}),(0,M.jsx)(Ti,{size:16})]}),n&&(0,M.jsxs)(`div`,{className:`icon-picker-dropdown glass-card`,children:[(0,M.jsxs)(`div`,{className:`icon-picker-header`,children:[(0,M.jsx)(`span`,{children:`Vyberte ikonu`}),(0,M.jsx)(`button`,{onClick:()=>r(!1),children:(0,M.jsx)(Li,{size:14})})]}),(0,M.jsx)(`div`,{className:`icon-picker-custom`,children:(0,M.jsxs)(`div`,{className:`custom-input-row`,children:[(0,M.jsx)(`input`,{type:`text`,placeholder:`Emoji...`,value:i,onChange:e=>a(e.target.value),maxLength:2}),(0,M.jsx)(`button`,{type:`button`,className:`btn btn-primary btn-sm`,onClick:()=>
286{i&&(t(i),r(!1),a(``))},children:`Použít`})]})}),(0,M.jsx)(`div`,{className:`icon-picker-body`,children:[{group:`Praní a čiÅ¡tění`,icons:[`🧺`,`🧼`,`💦`,`🫧`,`🧴`,`🚿`,`🛁`,`🧽`,`🧹`,`🪣`]},{group:`Oblečení`,icons:[`👔`,`👕`,`👖`,`👗`,`👚`,`🧥`,`👘`,`🥻`,`🧣`,`🧤`,`🧢`,`🎩`,`👒`,`🎓`,`🎒`,`💼`,`👛`,`👜`,`👞`,`👟`,`👠`,`👡`,`👢`]},{group:`Opravy a Å¡ití`,icons:[`✂️`,`🪡`,`🧵`,`🔘`,`📍`,`📏`,`🔨`,`🛠️`,`⚙️`,`🧱`]},{group:`Ostatní`,icons:[`🚐`,`🚚`,`🚗`,`⏱️`,`⚡`,`📅`,`📍`,`✨`,`☀️`,`💨`,`💧`,`🫶`,`✅`,`📋`,`💰`]}].map(n=>(0,M.jsxs)(`div`,{className:`icon-picker-group`,children:[(0,M.jsx)(`label`,{children:n.group}),(0,M.jsx)(`div`,{className:`icon-grid`,children:n.icons.map((n,i)=>(0,M.jsx)(`button`,{type:`button`,className:`icon-btn ${e===n?`active`:``}`,onClick:()=>{t(n),r(!1)},children:n},i))})]},n.group))})]})]})},cw=()=>{let[e,t]=(0,_.useState)(null),[n,r]=(0,_.useState)(!0),[i,a]=(0,_.useState)(`orders`),{items:o,categories:s,loading:c,error:l}=tC(),[u,d]=(0,_.useState)([]),[f,p]=(0,_.useState)([]),[m,h]=(0,_.useState)([]),g=`[email protected]`,[v,y]=(0,_.useState)([]),[b,x]=(0,_.useState)(!1),[S,C]=(0,_.useState)(null),[te,w]=(0,_.useState)({amount:``,date:new Date().toISOString().split(`T`)[0],type:`income`,branch:`Zbraslav`,status:`pending`,description:``}),[T,ne]=(0,_.useState)(`all`),[re,ie]=(0,_.useState)(`all`),[ae,oe]=(0,_.useState)(`all`),[se,ce]=(0,_.useState)(``),[le,E]=(0,_.useState)(``),[D,ue]=(0,_.useState)(null),[de,fe]=(0,_.useState)(null),[pe,me]=(0,_.useState)(``),[he,ge]=(0,_.useState)(!1),[_e,ve]=(0,_.useState)(!1),[ye,be]=(0,_.useState)(``),[xe,Se]=(0,_.useState)({category:``,name:``,description:``,price:0,unit:`ks`,unitLabel:`za kus`,icon:`🧺`}),[Ce,we]=(0,_.useState)(!1),[Te,Ee]=(0,_.useState)(null),[De,Oe]=(0,_.useState)(!1),[O,ke]=(0,_.useState)({title:``,excerpt:``,content:``,imageUrl:``,date:new Date().toISOString().split(`T`)[0]}),[Ae,je]=(0,_.useState)(null),[Me,Ne]=(0,_.useState)({x:0,y:0}),[Pe,Fe]=(0,_.useState)(1),[Ie,Le]=(0,_.useState)(null),Re=async(e,t)=>{let n=new Image;n.src=e,await new Promise(e=>n.onload=e);let r=document.createElement(`canvas`),i=r.getContext(`2d`);return r.width=t.width,r.height=t.height,i.drawImage(n,t.x,t.y,t.width,t.height,0,0,t.width,t.height),r.toDataURL(`image/jpeg`,.8)};(0,_.useEffect)(()=>{let n=tu($S,e=>{t(e),r(!1)}),i=()=>{},a=()=>{},o=()=>{},s=()=>{};return e&&(i=iS(Lx(Wb(eC,`news`),Vx(`date`,`desc`)),e=>d(e.docs.map(e=>({id:e.id,...e.data()})))),a=iS(Lx(Wb(eC,`orders`),Vx(`createdAt`,`desc`)),e=>p(e.docs.map(e=>({id:e.id,...e.data()})))),o=iS(Lx(Wb(eC,`inquiries`),Vx(`createdAt`,`desc`)),e=>h(e.docs.map(e=>({id:e.id,...e.data()})))),e.email===g&&(s=iS(Lx(Wb(eC,`cashRegister`),Vx(`date`,`desc`)),e=>y(e.docs.map(e=>({id:e.id,...e.data()}))),e=>{console.error(`Chyba při načítání pokladny:`,e)}))),()=>{n(),i(),a(),o(),s()}},[e]),(0,_.useEffect)(()=>{i===`cashRegister`&&e&&e.email!==g&&a(`orders`)},[i,e]);let ze=async()=>{let e=new z;try{await id($S,e)}catch(e){console.error(`Chyba při přihlášení:`,e),alert(`Nepodařilo se přihlásit přes Google.`)}},Be=()=>nu($S),Ve=e=>v.filter(t=>t.branch===e&&t.status===`pending`).reduce((e,t)=>t.type===`income`?e+t.amount:t.type===`expense`||t.type===`bank_deposit`?e-t.amount:e,0),He=()=>v.filter(e=>e.status===`deposited`).reduce((e,t)=>t.type===`income`||t.type===`bank_deposit`?e+t.amount:t.type===`expense`?e-t.amount:e,0),Ue=async t=>{t.preventDefault();let n=Number(te.amount);if(isNaN(n)||n<=0){alert(`Zadejte platnou kladnou částku.`);return}let r={amount:n,date:te.date,type:te.type,branch:te.branch,status:te.status,description:(te.description||``).trim(),updatedAt:new Date().toISOString(),updatedBy:e.email};try{S?await tS(Gb(eC,`cashRegister`,S),r):await rS(Wb(eC,`cashRegister`),{...r,createdAt:new Date().toISOString(),createdBy:e.email}),x(!1),C(null),w({amount:``,date:new Date().toISOString().split(`T`)[0],type:`income`,branch:`Zbraslav`,status:`pending`,description:``})}catch(e){console.error(`Chyba při ukládání záznamu pokladny:`,e),alert(`Nepodařilo se uložit záznam: `+e.message)}},We=async e=>{if(window.confirm(`Opravdu chcete smazat tento záznam z pokladny?`))try{await nS(Gb(eC,`cashRegister`,e))}catch(e){console.error(`Chyba při mazání záznamu pokladny:`,e),alert(`Nepodařilo se smazat záznam.`)}},Ge=async t=>
286{let n=t.status===`pending`?`deposited`:`pending`;try{await tS(Gb(eC,`cashRegister`,t.id),{status:n,updatedAt:new Date().toISOString(),updatedBy:e.email})}catch(e){console.error(`Chyba při změně stavu transakce:`,e),alert(`Nepodařilo se změnit stav.`)}};if(n)return(0,M.jsxs)(`div`,{className:`admin-page container`,children:[(0,M.jsx)(hi,{className:`spinner`}),` Ověřuji přístup...`]});if(!e)return(0,M.jsx)(`div`,{className:`admin-login-page`,children:(0,M.jsxs)(`div`,{className:`login-card glass-card`,children:[(0,M.jsx)(`div`,{className:`login-icon`,children:(0,M.jsx)(xi,{size:48})}),(0,M.jsx)(`h1`,{children:`Administrace`}),(0,M.jsx)(`p`,{children:`Pro přístup ke správě webu se prosím přihlaste svým firemním Google účtem.`}),(0,M.jsxs)(`button`,{className:`btn btn-primary btn-lg login-btn`,onClick:ze,children:[(0,M.jsx)(ni,{size:20}),` Přihlásit se přes Google`]}),(0,M.jsx)(`div`,{className:`login-footer`,children:`Zelený ostrov s.r.o.`})]})});let Ke=async()=>{ye&&(await eS(Gb(eC,`categories`,ye.toLowerCase().replace(/\s+/g,`-`)),{name:ye,order:s.length,updatedAt:new Date().toISOString()}),be(``))},qe=async(e,t)=>{if(o.some(e=>e.category===t))return alert(`Kategorie obsahuje položky!`);window.confirm(`Smazat kategorii?`)&&await nS(Gb(eC,`categories`,e))},Je=async e=>{e.preventDefault(),await rS(Wb(eC,`catalog`),{...xe,updatedAt:new Date().toISOString()}),ge(!1)},Ye=async()=>{let{id:e,...t}=de;await tS(Gb(eC,`catalog`,e),t),ue(null)},Xe=async e=>{e.preventDefault(),Te?await tS(Gb(eC,`news`,Te),{...O,updatedAt:new Date().toISOString()}):await rS(Wb(eC,`news`),{...O,createdAt:new Date().toISOString()}),we(!1),Ee(null)},Ze=async()=>{let e=window.prompt(`O čem má být článek? (Napište téma, např.: Jak vyčistit skvrny od vína)`);if(e){Oe(!0);try{let t=`Jsi profesionální redaktor webu pro moderní prádelnu a čistírnu Zelený ostrov. 
287      Napiš článek na téma: ${e}. 
288      Výsledek vrať VŽDY jako JSON objekt s těmito poli:
289      {
290        "title": "Poutavý titulek článku",
291        "excerpt": "Stručné shrnutí (2 věty) pro úvodní stránku",
292        "content": "Celý podrobný obsah článku v češtině. Používej odstavce.",
293        "image_prompt": "Detailní anglický prompt pro generátor obrázků (např. Midjourney), který vystihuje atmosféru článku."
294      }`,n=await fetch(`https://generativelanguage.googleapis.com/v1beta/models/gemini-3.1-flash-lite:generateContent?key=`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({contents:[{parts:[{text:t}]}]})});if(!n.ok){let e=await n.json();throw Error(e.error?.message||`HTTP error! status: ${n.status}`)}let r=(await n.json()).candidates[0].content.parts[0].text.replace(/```json/g,``).replace(/```/g,``).trim(),i=JSON.parse(r);ke({...O,...i}),alert(`Článek i prompt pro obrázek byly vygenerovány!`)}catch(e){console.error(`AI Error:`,e),alert(`Chyba AI: ${e.message}`)}finally{Oe(!1)}}},Qe=async e=>{let t=e.target?e.target.files[0]:e;t&&je(URL.createObjectURL(t))},$e=async()=>{if(!(!Ie||!Ae)){Oe(!0);try{let e=await Re(Ae,Ie),t=await et(await(await fetch(e)).blob(),1e3,.7);ke(e=>({...e,imageUrl:t})),je(null),alert(`Obrázek byl oříznut a připraven!`)}catch(e){console.error(`Chyba při ořezu:`,e),alert(`Nepodařilo se oříznout obrázek.`)}finally{Oe(!1)}}},et=(e,t,n)=>new Promise((r,i)=>{let a=new Image,o=URL.createObjectURL(e);a.src=o,a.onload=()=>{URL.revokeObjectURL(o);let e=document.createElement(`canvas`),s=a.width,c=a.height;s>t&&(c=Math.round(c*t/s),s=t),e.width=s,e.height=c;let l=e.getContext(`2d`);l.imageSmoothingEnabled=!0,l.imageSmoothingQuality=`high`,l.drawImage(a,0,0,s,c);let u=e.toDataURL(`image/jpeg`,n);u.length>1e6?i(Error(`Obrázek je i po zmenšení příliš velký. Zkuste jiný.`)):r(u)},a.onerror=()=>{URL.revokeObjectURL(o),i(Error(`Nepodařilo se načíst soubor jako obrázek.`))}});return c?(0,M.jsxs)(`div`,{className:`admin-page container`,children:[(0,M.jsx)(hi,{className:`spinner`}),` Načítám...`]}):(0,M.jsxs)(`div`,{className:`admin-page`,children:[(0,M.jsx)(`div`,{className:`admin-header-bg`,children:(0,M.jsxs)(`div`,{className:`container-fluid`,children:[(0,M.jsxs)(`div`,{className:`admin-title-row`,children:[(0,M.jsxs)(`div`,{className:`admin-tabs`,children:[(0,M.jsxs)(`button`,{className:`tab-btn ${i===`orders`?`active`:``}`,onClick:()=>a(`orders`),children:[(0,M.jsx)(Ci,{size:20}),` Objednávky `,f.length>0&&(0,M.jsx)(`span`,{className:`tab-badge`,children:f.length})]}),(0,M.jsxs)(`button`,{className:`tab-btn ${i===`inquiries`?`active`:``}`,onClick:()=>a(`inquiries`),children:[(0,M.jsx)(ii,{size:20}),` Poptávky `,m.length>0&&(0,M.jsx)(`span`,{className:`tab-badge`,children:m.length})]}),(0,M.jsxs)(`button`,{className:`tab-btn ${i===`catalog`?`active`:``}`,onClick:()=>a(`catalog`),children:[(0,M.jsx)(ci,{size:20}),` Správa ceníku`]}),(0,M.jsxs)(`button`,{className:`tab-btn ${i===`news`?`active`:``}`,onClick:()=>a(`news`),children:[(0,M.jsx)(Wr,{size:20}),` Novinky a články`]}),e.email===g&&(0,M.jsxs)(`button`,{className:`tab-btn ${i===`cashRegister`?`active`:``}`,onClick:()=>a(`cashRegister`),children:[(0,M.jsx)(Fi,{size:20}),` Pokladna`]})]}),(0,M.jsxs)(`div`,{className:`admin-actions`,children:[(0,M.jsxs)(`div`,{className:`admin-user-info`,children:[(0,M.jsx)(`span`,{children:e.email}),(0,M.jsx)(`button`,{className:`btn-logout`,onClick:Be,title:`Odhlásit se`,children:(0,M.jsx)(ri,{size:18})})]}),i===`orders`&&(0,M.jsxs)(`div`,{className:`admin-info-text`,children:[(0,M.jsx)(Pr,{size:16}),` Zde vidíte všechny příchozí objednávky z webu.`]}),i===`inquiries`&&(0,M.jsxs)(`div`,{className:`admin-info-text`,children:[(0,M.jsx)(Pr,{size:16}),` Zde vidíte všechny příchozí poptávky a kontaktní zprávy z webu.`]}),i===`catalog`&&(0,M.jsxs)(M.Fragment,{children:[(0,M.jsxs)(`button`,{className:`btn btn-outline`,onClick:async()=>
294{if(window.confirm(`Synchronizovat s výchozím katalogem?`)){let{syncCatalogToFirestore:e}=await ee(async()=>{let{syncCatalogToFirestore:e}=await import(`./migrateCatalog-CUbh-qkJ.js`);return{syncCatalogToFirestore:e}},[]);await e()}},children:[(0,M.jsx)(hi,{size:18}),` Synchronizace`]}),(0,M.jsxs)(`button`,{className:`btn btn-outline`,onClick:()=>ve(!0),children:[(0,M.jsx)(yi,{size:18}),` Kategorie`]}),(0,M.jsxs)(`button`,{className:`btn btn-primary`,onClick:()=>{Se({...xe,category:s[0]?.name||``}),ge(!0)},children:[(0,M.jsx)(mi,{size:18}),` Přidat položku`]})]}),i===`news`&&(0,M.jsxs)(`button`,{className:`btn btn-primary`,onClick:()=>{ke({title:``,excerpt:``,content:``,imageUrl:``,date:new Date().toISOString().split(`T`)[0]}),Ee(null),we(!0)},children:[(0,M.jsx)(mi,{size:18}),` Nový článek`]}),i===`cashRegister`&&e.email===g&&(0,M.jsxs)(M.Fragment,{children:[(0,M.jsxs)(`div`,{className:`admin-info-text`,children:[(0,M.jsx)(Pr,{size:16}),` Správa vybraných částek a odvodů do banky.`]}),(0,M.jsxs)(`button`,{className:`btn btn-primary`,onClick:()=>{w({amount:``,date:new Date().toISOString().split(`T`)[0],type:`income`,branch:`Zbraslav`,status:`pending`,description:``}),C(null),x(!0)},children:[(0,M.jsx)(mi,{size:18}),` Nový záznam`]})]})]})]}),i===`catalog`&&(0,M.jsxs)(`div`,{className:`admin-search-bar`,children:[(0,M.jsx)(_i,{size:20,className:`search-icon`}),(0,M.jsx)(`input`,{type:`text`,placeholder:`Hledat v ceníku...`,value:pe,onChange:e=>me(e.target.value)})]})]})}),(0,M.jsxs)(`div`,{className:`container-fluid section`,children:[i===`inquiries`&&(0,M.jsx)(`div`,{className:`orders-admin-list`,children:m.length===0?(0,M.jsxs)(`div`,{className:`empty-state glass-card`,children:[(0,M.jsx)(ii,{size:48}),(0,M.jsx)(`h3`,{children:`Zatím žádné poptávky`}),(0,M.jsx)(`p`,{children:`Jakmile někdo odešle poptávku nebo kontaktní zprávu z webu, objeví se zde.`})]}):m.map(e=>(0,M.jsxs)(`div`,{className:`order-admin-card glass-card`,children:[(0,M.jsxs)(`div`,{className:`order-admin-header`,children:[(0,M.jsxs)(`div`,{className:`order-id-info`,children:[(0,M.jsx)(`span`,{className:`order-status-tag`,style:{backgroundColor:`#e67e22`,color:`white`},children:`Poptávka`}),(0,M.jsxs)(`h3`,{children:[`Poptávka #`,e.id?e.id.slice(-6).toUpperCase():`---`]}),(0,M.jsxs)(`span`,{className:`order-time`,children:[(0,M.jsx)(Or,{size:14}),e.createdAt?.toDate?e.createdAt.toDate().toLocaleString(`cs-CZ`):`Právě teď...`]})]}),(0,M.jsx)(`button`,{className:`btn-icon btn-delete`,onClick:async()=>{window.confirm(`Smazat poptávku?`)&&await nS(Gb(eC,`inquiries`,e.id))},children:(0,M.jsx)(ji,{size:18})})]}),(0,M.jsx)(`div`,{className:`order-admin-content`,children:(0,M.jsxs)(`div`,{className:`order-customer-info`,style:{flex:`1 1 100%`,maxWidth:`100%`},children:[(0,M.jsx)(`h4`,{children:`Odesílatel`}),(0,M.jsx)(`div`,{className:`info-row`,children:(0,M.jsx)(`strong`,{children:e.name||`Anonymní poptávající`})}),(0,M.jsxs)(`div`,{className:`info-row`,children:[(0,M.jsx)(pi,{size:14}),` `,e.phone||`Neuvedeno`]}),e.email&&(0,M.jsxs)(`div`,{className:`info-row`,children:[(0,M.jsx)(ii,{size:14}),` `,e.email]}),(0,M.jsxs)(`div`,{className:`info-row mt-2`,style:{color:`var(--primary)`,fontWeight:`bold`},children:[`Služba: `,e.service||`Obecný kontakt`]}),e.message&&(0,M.jsxs)(`div`,{className:`order-note-box`,style:{marginTop:`1.5rem`,borderLeft:`4px solid var(--primary)`,backgroundColor:`rgba(0,166,100,0.05)`,padding:`15px`,borderRadius:`8px`},children:[(0,M.jsx)(`strong`,{children:`Zpráva / Dotaz:`}),(0,M.jsx)(`p`,{style:{margin:`5px 0 0`,whiteSpace:`pre-wrap`,color:`var(--text-main)`,lineHeight:`1.5`},children:e.message})]})]})})]},e.id))}),i===`orders`&&(0,M.jsx)(`div`,{className:`orders-admin-list`,children:f.length===0?(0,M.jsxs)(`div`,{className:`empty-state glass-card`,children:[(0,M.jsx)(Ci,{size:48}),(0,M.jsx)(`h3`,{children:`Zatím žádné objednávky`}),(0,M.jsx)(`p`,{children:`Jakmile někdo odešle objednávku z webu, objeví se zde.`})]}):f.map(e=>(0,M.jsxs)(`div`,{className:`order-admin-card glass-card`,children:[(0,M.jsxs)(`div`,{className:`order-admin-header`,children:[(0,M.jsxs)(`div`,{className:`order-id-info`,children:[(0,M.jsx)(`span`,{className:`order-status-tag`,children:`Nová`}
294),(0,M.jsxs)(`h3`,{children:[`Objednávka #`,e.id?e.id.slice(-6).toUpperCase():`---`]}),(0,M.jsxs)(`span`,{className:`order-time`,children:[(0,M.jsx)(Or,{size:14}),e.createdAt?.toDate?e.createdAt.toDate().toLocaleString(`cs-CZ`):`Právě teď...`]})]}),(0,M.jsx)(`button`,{className:`btn-icon btn-delete`,onClick:async()=>{window.confirm(`Smazat objednávku?`)&&await nS(Gb(eC,`orders`,e.id))},children:(0,M.jsx)(ji,{size:18})})]}),(0,M.jsxs)(`div`,{className:`order-admin-content`,children:[(0,M.jsxs)(`div`,{className:`order-customer-info`,children:[(0,M.jsx)(`h4`,{children:`Zákazník`}),(0,M.jsxs)(`div`,{className:`info-row`,children:[(0,M.jsx)(pi,{size:14}),` `,e.customer?.phone||`Neuvedeno`]}),(0,M.jsxs)(`div`,{className:`info-row`,children:[(0,M.jsx)(ii,{size:14}),` `,e.customer?.email||`Neuvedeno`]}),(0,M.jsx)(`div`,{className:`info-row`,children:(0,M.jsx)(`strong`,{children:e.customer?.name||`Anonymní zákazník`})}),(0,M.jsxs)(`div`,{className:`info-row mt-2`,children:[(0,M.jsx)(ai,{size:14}),` `,e.customer?.delivery===`osobni`?`Osobní předání`:`Rozvoz: ${e.customer?.address||`---`}`]}),e.customer?.note&&(0,M.jsxs)(`div`,{className:`order-note-box`,children:[(0,M.jsx)(`strong`,{children:`Poznámka:`}),` `,e.customer.note]})]}),(0,M.jsxs)(`div`,{className:`order-items-info`,children:[(0,M.jsx)(`h4`,{children:`Služby`}),(0,M.jsxs)(`table`,{className:`order-items-table`,children:[(0,M.jsx)(`thead`,{children:(0,M.jsxs)(`tr`,{children:[(0,M.jsx)(`th`,{children:`Položka`}),(0,M.jsx)(`th`,{children:`Množství`}),(0,M.jsx)(`th`,{children:`Cena/j`}),(0,M.jsx)(`th`,{children:`Celkem`})]})}),(0,M.jsx)(`tbody`,{children:e.items?.map((e,t)=>(0,M.jsxs)(`tr`,{children:[(0,M.jsx)(`td`,{children:e.name}),(0,M.jsxs)(`td`,{children:[e.quantity,` `,e.unit]}),(0,M.jsxs)(`td`,{children:[e.price,` Kč`]}),(0,M.jsxs)(`td`,{children:[e.price*e.quantity,` Kč`]})]},t))||(0,M.jsx)(`tr`,{children:(0,M.jsx)(`td`,{colSpan:`4`,children:`Žádné položky`})})}),(0,M.jsx)(`tfoot`,{children:(0,M.jsxs)(`tr`,{children:[(0,M.jsx)(`td`,{colSpan:`3`,children:`Celkem bez DPH`}),(0,M.jsx)(`td`,{children:(0,M.jsxs)(`strong`,{children:[e.totalPrice||0,` Kč`]})})]})})]})]})]})]},e.id))}),i===`catalog`&&(0,M.jsx)(M.Fragment,{children:s.map(e=>{let t=o.filter(t=>t.category===e.name&&t.name.toLowerCase().includes(pe.toLowerCase()));return t.length===0&&pe?null:(0,M.jsxs)(`div`,{className:`category-section glass-card`,children:[(0,M.jsxs)(`div`,{className:`category-section-header`,children:[(0,M.jsx)(`h2`,{children:e.name}),(0,M.jsxs)(`span`,{className:`count-badge`,children:[t.length,` položek`]})]}),(0,M.jsx)(`div`,{className:`admin-table-container`,children:(0,M.jsxs)(`table`,{className:`admin-table`,children:[(0,M.jsx)(`thead`,{children:(0,M.jsxs)(`tr`,{children:[(0,M.jsx)(`th`,{style:{width:`60px`},children:`Ikona`}),(0,M.jsx)(`th`,{children:`Název a popis`}),(0,M.jsx)(`th`,{children:`Cena`}),(0,M.jsx)(`th`,{children:`Jednotka`}),(0,M.jsx)(`th`,{children:`Akce`})]})}),(0,M.jsx)(`tbody`,{children:t.map(e=>(0,M.jsxs)(`tr`,{className:D===e.id?`is-editing`:``,children:[(0,M.jsx)(`td`,{className:`col-icon`,children:D===e.id?(0,M.jsx)(sw,{currentIcon:de.icon,onSelect:e=>fe({...de,icon:e})}):(0,M.jsx)(`span`,{className:`emoji-display`,children:e.icon})}),(0,M.jsx)(`td`,{className:`col-info`,children:D===e.id?(0,M.jsxs)(`div`,{className:`edit-group`,children:[(0,M.jsx)(`input`,{type:`text`,value:de.name,onChange:e=>fe({...de,name:e.target.value}),className:`edit-input-name`}),(0,M.jsx)(`textarea`,{value:de.description,onChange:e=>fe({...de,description:e.target.value}),className:`edit-input-desc`})]}):(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(`div`,{className:`item-name-bold`,children:e.name}),(0,M.jsx)(`div`,{className:`item-desc-small`,children:e.description})]})}),(0,M.jsx)(`td`,{className:`col-price`,children:D===e.id?(0,M.jsx)(`input`,{type:`number`,value:de.price,onChange:e=>fe({...de,price:Number(e.target.value)}),className:`edit-input-price`}):(0,M.jsxs)(`strong`,{children:[e.price.toLocaleString(),` Kč`]})}),(0,M.jsx)(`td`,{className:`col-unit`,children:D===e.id?(0,M.jsx)(`input`,{type:`text`,value:de.unitLabel,onChange:e=>fe({...de,unitLabel:e.target.value}),className:`edit-input-sm`}):(0,M.jsx)(`span`,{children:e.unitLabel})}),(0,M.jsx)(`td`,{className:`col-actions`,children:D===e.id?(0,M.jsxs)(`div`,{className:`action-btns`,children:[(0,M.jsx)(`button`,{className:`btn-icon btn-save`,onClick:Ye,children:(0,M.jsx)(Ar,{size:18})}),(0,M.jsx)(`button`,{className:`btn-icon btn-cancel`,onClick:()=>ue(null),children:(0,M.jsx)(Li,{size:18})})]}):(0,M.jsxs)(`div`,{className:`action-btns`,children:[(0,M.jsx)(`button`,{className:`btn-icon btn-edit`,onClick:()=>{ue(e.id),fe({...e})},children:(0,M.jsx)(ui,{size:18})}),(0,M.jsx)(`button`,{className:`btn-icon btn-delete`,onClick:()=>{window.confirm(`Smazat?`)&&nS(Gb(eC,`catalog`,e.id))},children:(0,M.jsx)(ji,{size:18})})]})})]},e.id))})]})})]},e.id)})}),i===`news`&&(0,M.jsx)(`div`,{className:`news-admin-grid`,children:u.map(e=>(0,M.jsxs)(`div`,{className:`news-admin-card glass-card`,children:[e.imageUrl&&(0,M.jsx)(`img`,{src:e.imageUrl,alt:``,className:`news-card-thumb`}),(0,M.jsxs)(`div`,{className:`news-card-content`,children:[(0,M.jsx)(`span`,{className:`news-date`,children:new Date(e.date).toLocaleDateString(`cs-CZ`)}),(0,M.jsx)(`h3`,{children:e.title}),(0,M.jsx)(`p`,{children:e.excerpt}),(0,M.jsxs)(`div`,{className:`news-card-actions`,children:[(0,M.jsxs)(`button`,{className:`btn btn-outline btn-sm`,onClick:()=>{ke({...e}),Ee(e.id),we(!0)},children:[(0,M.jsx)(ui,{size:14}),` Upravit`]}),(0,M.jsx)(`button`,{className:`btn btn-outline btn-sm btn-danger`,onClick:()=>deleteNews(e.id),children:(0,M.jsx)(ji,{size:14})})]})]})]},e.id))}),i===`cashRegister`&&e.email===g&&(0,M.jsxs)(`div`,{className:`cash-admin-container animate-fade-in`,children:[(0,M.jsxs)(`div`,{className:`cash-kpi-grid`,children:[(0,M.jsxs)(`div`,{className:`kpi-card glass-card kpi-zbraslav`,children:[(0,M.jsx)(`div`,{className:`kpi-icon`,children:(0,M.jsx)(Fi,{size:24})}),(0,M.jsxs)(`div`,{className:`kpi-info`,children:[(0,M.jsx)(`span`,{className:`kpi-label`,children:`Pokladna Zbraslav`}),(0,M.jsxs)(`h3`,{className:`kpi-value`,children:[Ve(`Zbraslav`).toLocaleStr
294ing(),` Kč`]})]})]}),(0,M.jsxs)(`div`,{className:`kpi-card glass-card kpi-dobrichovice`,children:[(0,M.jsx)(`div`,{className:`kpi-icon`,children:(0,M.jsx)(Fi,{size:24})}),(0,M.jsxs)(`div`,{className:`kpi-info`,children:[(0,M.jsx)(`span`,{className:`kpi-label`,children:`Pokladna Dobřichovice`}),(0,M.jsxs)(`h3`,{className:`kpi-value`,children:[Ve(`Dobřichovice`).toLocaleString(),` Kč`]})]})]}),(0,M.jsxs)(`div`,{className:`kpi-card glass-card kpi-doprava`,children:[(0,M.jsx)(`div`,{className:`kpi-icon`,children:(0,M.jsx)(Fi,{size:24})}),(0,M.jsxs)(`div`,{className:`kpi-info`,children:[(0,M.jsx)(`span`,{className:`kpi-label`,children:`Pokladna Doprava`}),(0,M.jsxs)(`h3`,{className:`kpi-value`,children:[Ve(`Doprava`).toLocaleString(),` Kč`]})]})]}),(0,M.jsxs)(`div`,{className:`kpi-card glass-card kpi-bank`,children:[(0,M.jsx)(`div`,{className:`kpi-icon`,children:(0,M.jsx)(ei,{size:24})}),(0,M.jsxs)(`div`,{className:`kpi-info`,children:[(0,M.jsx)(`span`,{className:`kpi-label`,children:`Uloženo v bance celkem`}),(0,M.jsxs)(`h3`,{className:`kpi-value`,children:[He().toLocaleString(),` Kč`]})]})]})]}),(0,M.jsxs)(`div`,{className:`cash-filters-row glass-card`,children:[(0,M.jsxs)(`div`,{className:`filter-group`,children:[(0,M.jsx)(`label`,{children:`Středisko`}),(0,M.jsxs)(`select`,{value:re,onChange:e=>ie(e.target.value),children:[(0,M.jsx)(`option`,{value:`all`,children:`Všechna střediska`}),(0,M.jsx)(`option`,{value:`Zbraslav`,children:`Zbraslav`}),(0,M.jsx)(`option`,{value:`Dobřichovice`,children:`Dobřichovice`}),(0,M.jsx)(`option`,{value:`Doprava`,children:`Doprava`})]})]}),(0,M.jsxs)(`div`,{className:`filter-group`,children:[(0,M.jsx)(`label`,{children:`Typ transakce`}),(0,M.jsxs)(`select`,{value:T,onChange:e=>ne(e.target.value),children:[(0,M.jsx)(`option`,{value:`all`,children:`Všechny typy`}),(0,M.jsx)(`option`,{value:`income`,children:`Příjmy (Tržby)`}),(0,M.jsx)(`option`,{value:`expense`,children:`Výdaje`}),(0,M.jsx)(`option`,{value:`bank_deposit`,children:`Odvody do banky`})]})]}),(0,M.jsxs)(`div`,{className:`filter-group`,children:[(0,M.jsx)(`label`,{children:`Stav`}),(0,M.jsxs)(`select`,{value:ae,onChange:e=>oe(e.target.value),children:[(0,M.jsx)(`option`,{value:`all`,children:`Všechny stavy`}),(0,M.jsx)(`option`,{value:`pending`,children:`V pokladně`}),(0,M.jsx)(`option`,{value:`deposited`,children:`Uloženo v bance`})]})]}),(0,M.jsxs)(`div`,{className:`filter-group`,children:[(0,M.jsx)(`label`,{children:`Datum od`}),(0,M.jsx)(`input`,{type:`date`,value:se,onChange:e=>ce(e.target.value),style:{padding:`0.65rem 1rem`,border:`1.5px solid var(--border-color)`,borderRadius:`var(--radius-md)`,fontFamily:`inherit`,fontSize:`0.9rem`,backgroundColor:`var(--bg-soft)`,color:`var(--secondary)`}})]}),(0,M.jsxs)(`div`,{className:`filter-group`,children:[(0,M.jsx)(`label`,{children:`Datum do`}),(0,M.jsx)(`input`,{type:`date`,value:le,onChange:e=>E(e.target.value),style:{padding:`0.65rem 1rem`,border:`1.5px solid var(--border-color)`,borderRadius:`var(--radius-md)`,fontFamily:`inherit`,fontSize:`0.9rem`,backgroundColor:`var(--bg-soft)`,color:`var(--secondary)`}})]})]}),(0,M.jsxs)(`div`,{className:`category-section glass-card`,children:[(0,M.jsxs)(`div`,{className:`category-section-header`,children:[(0,M.jsx)(`h2`,{children:`Historie pokladny`}),(0,M.jsxs)(`span`,{className:`count-badge`,children:[v.filter(e=>{let t=re===`all`||e.branch===re,n=T===`all`||e.type===T,r=ae===`all`||e.status===ae,i=!se||e.date>=se,a=!le||e.date<=le;return t&&n&&r&&i&&a}).length,` záznamů`]})]}),(0,M.jsx)(`div`,{className:`admin-table-container`,style:{marginTop:0},children:(0,M.jsxs)(`table`,{className:`admin-table`,children:[(0,M.jsx)(`thead`,{children:(0,M.jsxs)(`tr`,{children:[(0,M.jsx)(`th`,{children:`Datum`}),(0,M.jsx)(`th`,{children:`Středisko`}),(0,M.jsx)(`th`,{children:`Typ`}),(0,M.jsx)(`th`,{children:`Částka`}),(0,M.jsx)(`th`,{children:`Popis / Poznámka`}),(0,M.jsx)(`th`,{children:`Stav`}),(0,M.jsx)(`th`,{children:`Akce`})]})}),(0,M.jsxs)(`tbody`,{children:[v.filter(e=>{let t=re===`all`||e.branch===re,n=T===`all`||e.type===T,r=ae===`all`||e.status===ae,i=!se||e.date>=se,a=!le||e.date<=le;return t&&n&&r&&i&&a}).map(e=>(0,M.jsxs)(`tr`,{className:e.status===`deposited`?`cash-row-deposited`:`cash-row-pending`,children:[(0,M.jsx)(`td`,{children:new Date(e.date).toLocaleDateString(`cs-CZ`)}),(0,M.jsx)(`td`,{children:(0,M.jsx)(`span`,{className:`branch-badge branch-${e.branch?.toLowerCase().normalize(`NFD`).replace(/[\u0300-\u036f]/g,``)}`,children:e.branch})}),(0,M.jsxs)(`td`,{children:[e.type===`income`&&(0,M.jsx)(`span`,{className:`type-badge type-income`,children:`Příjem`}),e.type===`expense`&&(0,M.jsx)(`span`,{className:`type-badge type-expense`,children:`Výdaj`}),e.type===`bank_deposit`&&(0,M.jsx)(`span`,{className:`type-badge type-deposit`,children:`Odvod do banky`})]}),(0,M.jsx)(`td`,{className:`col-price`,style:{fontWeight:`600`},children:(0,M.jsxs)(`span`,{className:e.type===`income`?`text-income`:e.type===`expense`?`text-expense`:`text-deposit`,children:[e.type===`income`?`+`:`-`,` `,e.amount.toLocaleStr
294ing(),` Kč`]})}),(0,M.jsx)(`td`,{children:e.description||(0,M.jsx)(`span`,{className:`text-muted`,style:{fontStyle:`italic`},children:`Bez poznámky`})}),(0,M.jsx)(`td`,{children:(0,M.jsx)(`span`,{className:`status-badge status-${e.status}`,children:e.status===`pending`?`V pokladně`:`Uloženo v bance`})}),(0,M.jsx)(`td`,{className:`col-actions`,children:(0,M.jsxs)(`div`,{className:`action-btns`,children:[(0,M.jsx)(`button`,{className:`btn-icon btn-toggle-status ${e.status===`deposited`?`active`:``}`,title:e.status===`pending`?`Označit jako uloženo v bance`:`Vrátit do pokladny`,onClick:()=>Ge(e),children:e.status===`pending`?(0,M.jsx)(Ar,{size:18}):(0,M.jsx)(ei,{size:18})}),(0,M.jsx)(`button`,{className:`btn-icon btn-edit`,onClick:()=>{C(e.id),w({...e}),x(!0)},children:(0,M.jsx)(ui,{size:18})}),(0,M.jsx)(`button`,{className:`btn-icon btn-delete`,onClick:()=>We(e.id),children:(0,M.jsx)(ji,{size:18})})]})})]},e.id)),v.filter(e=>{let t=re===`all`||e.branch===re,n=T===`all`||e.type===T,r=ae===`all`||e.status===ae;return t&&n&&r}).length===0&&(0,M.jsx)(`tr`,{children:(0,M.jsx)(`td`,{colSpan:`7`,className:`text-center`,style:{padding:`3rem`,color:`var(--text-muted)`},children:`Žádné záznamy pokladny neodpovídají filtrům.`})})]})]})})]})]})]}),_e&&(0,M.jsx)(`div`,{className:`admin-modal-overlay`,children:(0,M.jsxs)(`div`,{className:`admin-modal glass-card`,children:[(0,M.jsxs)(`div`,{className:`modal-header`,children:[(0,M.jsx)(`h2`,{children:`Kategorie`}),(0,M.jsx)(`button`,{onClick:()=>ve(!1),children:(0,M.jsx)(Li,{size:24})})]}),(0,M.jsxs)(`div`,{className:`admin-form`,children:[(0,M.jsxs)(`div`,{className:`add-cat-row`,children:[(0,M.jsx)(`input`,{type:`text`,value:ye,onChange:e=>be(e.target.value)}),(0,M.jsx)(`button`,{className:`btn btn-primary`,onClick:Ke,children:`Přidat`})]}),(0,M.jsx)(`div`,{className:`cat-list-admin`,children:s.map(e=>(0,M.jsxs)(`div`,{className:`cat-item-row`,children:[(0,M.jsx)(`span`,{children:e.name}),(0,M.jsx)(`button`,{className:`btn-icon btn-delete`,onClick:()=>qe(e.id,e.name),children:(0,M.jsx)(ji,{size:16})})]},e.id))})]})]})}),he&&(0,M.jsx)(`div`,{className:`admin-modal-overlay`,children:(0,M.jsxs)(`div`,{className:`admin-modal glass-card`,children:[(0,M.jsxs)(`div`,{className:`modal-header`,children:[(0,M.jsx)(`h2`,{children:`Nová položka`}),(0,M.jsx)(`button`,{onClick:()=>ge(!1),children:(0,M.jsx)(Li,{size:24})})]}),(0,M.jsxs)(`form`,{onSubmit:Je,className:`admin-form`,children:[(0,M.jsxs)(`div`,{className:`form-grid`,children:[(0,M.jsxs)(`div`,{className:`form-group full`,children:[(0,M.jsx)(`label`,{children:`Kategorie`}),(0,M.jsx)(`select`,{value:xe.category,onChange:e=>Se({...xe,category:e.target.value}),children:s.map(e=>(0,M.jsx)(`option`,{value:e.name,children:e.name},e.id))})]}),(0,M.jsxs)(`div`,{className:`form-group full`,children:[(0,M.jsx)(`label`,{children:`Název`}),(0,M.jsx)(`input`,{type:`text`,required:!0,value:xe.name,onChange:e=>Se({...xe,name:e.target.value})})]}),(0,M.jsxs)(`div`,{className:`form-group full`,children:[(0,M.jsx)(`label`,{children:`Popis`}),(0,M.jsx)(`textarea`,{value:xe.description,onChange:e=>Se({...xe,description:e.target.value})})]}),(0,M.jsxs)(`div`,{className:`form-group`,children:[(0,M.jsx)(`label`,{children:`Ikona`}),(0,M.jsx)(sw,{currentIcon:xe.icon,onSelect:e=>Se({...xe,icon:e})})]}),(0,M.jsxs)(`div`,{className:`form-group`,children:[(0,M.jsx)(`label`,{children:`Cena`}),(0,M.jsx)(`input`,{type:`number`,required:!0,value:xe.price,onChange:e=>Se({...xe,price:Number(e.target.value)})})]})]}),(0,M.jsxs)(`div`,{className:`modal-footer`,children:[(0,M.jsx)(`button`,{type:`button`,className:`btn btn-outline`,onClick:()=>ge(!1),children:`Zrušit`}),(0,M.jsx)(`button`,{type:`submit`,className:`btn btn-primary`,children:`Uložit`})]})]})]})}),Ce&&(0,M.jsx)(`div`,{className:`admin-modal-overlay`,onPaste:async e=>{let t=e.clipboardData.items;for(let e=0;e<t.length;e++)t[e].type.indexOf(`image`)!==-1&&await Qe(t[e].getAsFile())},children:(0,M.jsxs)(`div`,{className:`admin-modal admin-modal-wide glass-card ${De?`is-generating`:``}`,children:[(0,M.jsxs)(`div`,{className:`modal-header`,children:[(0,M.jsx)(`h2`,{children:Te?`Upravit článek`:`Nový článek`}),(0,M.jsxs)(`div`,{className:`modal-header-actions`,children:[(0,M.jsxs)(`button`,{type:`button`,className:`btn btn-ai-text ${De?`loading`:``}`,onClick:Ze,disabled:De,children:[De?(0,M.jsx)(hi,{size:16,className:`spinner`}):(0,M.jsx)(Ei,{size:16}),De?`Generuji...`:`Generovat AI text`]}),(0,M.jsx)(`button`,{onClick:()=>we(!1),children:(0,M.jsx)(Li,{size:24})})]})]}),(0,M.jsxs)(`form`,{onSubmit:Xe,className:`admin-form`,children:[(0,M.jsxs)(`div`,{className:`form-grid`,children:[(0,M.jsxs)(`div`,{className:`form-group full`,children:[(0,M.jsx)(`label`,{children:`Titulek`}
294),(0,M.jsx)(`input`,{type:`text`,required:!0,value:O.title,onChange:e=>ke({...O,title:e.target.value})})]}),(0,M.jsxs)(`div`,{className:`form-group`,children:[(0,M.jsx)(`label`,{children:`Datum`}),(0,M.jsx)(`input`,{type:`date`,value:O.date,onChange:e=>ke({...O,date:e.target.value})})]}),(0,M.jsxs)(`div`,{className:`form-group full`,children:[(0,M.jsx)(`label`,{children:`Zadání pro AI obrázek (Prompt)`}),(0,M.jsxs)(`div`,{className:`prompt-box`,children:[(0,M.jsx)(`textarea`,{value:O.image_prompt||``,onChange:e=>ke({...O,image_prompt:e.target.value}),placeholder:`AI zde vygeneruje zadání pro obrázek...`,style:{minHeight:`60px`}}),(0,M.jsx)(`button`,{type:`button`,className:`btn btn-secondary btn-sm`,onClick:()=>{navigator.clipboard.writeText(O.image_prompt),alert(`Zkopírováno!`)},disabled:!O.image_prompt,children:`Kopírovat`})]})]}),(0,M.jsxs)(`div`,{className:`form-group`,children:[(0,M.jsx)(`label`,{children:`Obrázek článku`}),(0,M.jsxs)(`div`,{className:`image-upload-wrapper`,children:[O.imageUrl&&(0,M.jsx)(`div`,{className:`image-preview-mini`,children:(0,M.jsx)(`img`,{src:O.imageUrl,alt:`Náhled`})}),(0,M.jsxs)(`label`,{className:`btn btn-outline btn-upload`,children:[(0,M.jsx)(mi,{size:16}),` Vybrat soubor`,(0,M.jsx)(`input`,{type:`file`,accept:`image/*`,onChange:Qe,style:{display:`none`}})]}),(0,M.jsx)(`input`,{type:`text`,placeholder:`Nebo vložte URL...`,value:O.imageUrl,onChange:e=>ke({...O,imageUrl:e.target.value})})]})]}),(0,M.jsxs)(`div`,{className:`form-group full`,children:[(0,M.jsx)(`label`,{children:`Stručný výtah`}),(0,M.jsx)(`textarea`,{value:O.excerpt,onChange:e=>ke({...O,excerpt:e.target.value}),style:{minHeight:`80px`}})]}),(0,M.jsxs)(`div`,{className:`form-group full`,children:[(0,M.jsx)(`label`,{children:`Obsah článku`}),(0,M.jsx)(`textarea`,{required:!0,value:O.content,onChange:e=>ke({...O,content:e.target.value}),style:{minHeight:`300px`}})]})]}),(0,M.jsxs)(`div`,{className:`modal-footer`,children:[(0,M.jsx)(`button`,{type:`button`,className:`btn btn-outline`,onClick:()=>we(!1),children:`Zrušit`}),(0,M.jsx)(`button`,{type:`submit`,className:`btn btn-primary`,children:`Publikovat`})]})]})]})}),Ae&&(0,M.jsx)(`div`,{className:`admin-modal-overlay cropper-overlay`,style:{zIndex:2e3},children:(0,M.jsxs)(`div`,{className:`admin-modal glass-card cropper-modal`,style:{maxWidth:`800px`,height:`650px`,display:`flex`,flexDirection:`column`,zIndex:2001},children:[(0,M.jsxs)(`div`,{className:`modal-header`,children:[(0,M.jsx)(`h2`,{children:`Oříznout obrázek (16:9)`}),(0,M.jsx)(`button`,{onClick:()=>je(null),children:(0,M.jsx)(Li,{size:24})})]}),(0,M.jsx)(`div`,{className:`cropper-container`,style:{position:`relative`,flex:1,backgroundColor:`#000`,margin:`1rem 0`,borderRadius:`8px`,overflow:`hidden`},children:(0,M.jsx)(ow,{image:Ae,crop:Me,zoom:Pe,aspect:16/9,onCropChange:Ne,onCropComplete:(e,t)=>Le(t),onZoomChange:Fe})}),(0,M.jsxs)(`div`,{className:`cropper-controls`,style:{padding:`0 1rem 1rem`},children:[(0,M.jsxs)(`div`,{className:`zoom-slider`,style:{display:`flex`,alignItems:`center`,gap:`1rem`,marginBottom:`1rem`},children:[(0,M.jsx)(`span`,{style:{color:`rgba(255,255,255,0.7)`,fontSize:`0.9rem`},children:`Přiblížení:`}),(0,M.jsx)(`input`,{type:`range`,value:Pe,min:1,max:3,step:.1,onChange:e=>Fe(Number(e.target.value)),style:{flex:1}})]}),(0,M.jsxs)(`div`,{className:`modal-footer`,style:{borderTop:`1px solid rgba(255,255,255,0.1)`,paddingTop:`1rem`,justifyContent:`flex-end`},children:[(0,M.jsx)(`button`,{className:`btn btn-outline`,onClick:()=>je(null),children:`Zrušit`}),(0,M.jsx)(`button`,{className:`btn btn-primary`,onClick:$e,children:De?(0,M.jsx)(hi,{className:`spinner`,size:18}):`Potvrdit ořez`})]})]})]})}),b&&e.email===g&&(0,M.jsx)(`div`,{className:`admin-modal-overlay`,children:(0,M.jsxs)(`div`,{className:`admin-modal glass-card`,children:[(0,M.jsxs)(`div`,{className:`modal-header`,children:[(0,M.jsx)(`h2`,{children:S?`Upravit záznam pokladny`:`Nový záznam pokladny`}),(0,M.jsx)(`button`,{onClick:()=>{x(!1),C(null)},children:(0,M.jsx)(Li,{size:24})})]}),(0,M.jsxs)(`form`,{onSubmit:Ue,className:`admin-form`,children:[(0,M.jsxs)(`div`,{className:`form-grid`,children:[(0,M.jsxs)(`div`,{className:`form-group`,children:[(0,M.jsx)(`label`,{children:`Částka (Kč)`}),(0,M.jsx)(`input`,{type:`number`,required:!0,min:`1`,value:te.amount,onChange:e=>w({...te,amount:e.target.value})})]}),(0,M.jsxs)(`div`,{className:`form-group`,children:[(0,M.jsx)(`label`,{children:`Datum`}),(0,M.jsx)(`input`,{type:`date`,required:!0,value:te.date,onChange:e=>w({...te,date:e.target.value})})]}),(0,M.jsxs)(`div`,{className:`form-group`,children:[(0,M.jsx)(`label`,{children:`Typ transakce`}
294),(0,M.jsxs)(`select`,{value:te.type,onChange:e=>w({...te,type:e.target.value}),children:[(0,M.jsx)(`option`,{value:`income`,children:`Příjem (Tržba)`}),(0,M.jsx)(`option`,{value:`expense`,children:`Výdaj`}),(0,M.jsx)(`option`,{value:`bank_deposit`,children:`Odvod do banky`})]})]}),(0,M.jsxs)(`div`,{className:`form-group`,children:[(0,M.jsx)(`label`,{children:`Středisko`}),(0,M.jsxs)(`select`,{value:te.branch,onChange:e=>w({...te,branch:e.target.value}),children:[(0,M.jsx)(`option`,{value:`Zbraslav`,children:`Zbraslav`}),(0,M.jsx)(`option`,{value:`Dobřichovice`,children:`Dobřichovice`}),(0,M.jsx)(`option`,{value:`Doprava`,children:`Doprava`})]})]}),(0,M.jsxs)(`div`,{className:`form-group full`,children:[(0,M.jsx)(`label`,{children:`Stav transakce`}),(0,M.jsxs)(`select`,{value:te.status,onChange:e=>w({...te,status:e.target.value}),children:[(0,M.jsx)(`option`,{value:`pending`,children:`V pokladně`}),(0,M.jsx)(`option`,{value:`deposited`,children:`Uloženo v bance`})]})]}),(0,M.jsxs)(`div`,{className:`form-group full`,children:[(0,M.jsx)(`label`,{children:`Popis / Poznámka`}),(0,M.jsx)(`textarea`,{value:te.description,onChange:e=>w({...te,description:e.target.value}),placeholder:`Popis transakce...`})]})]}),(0,M.jsxs)(`div`,{className:`modal-footer`,children:[(0,M.jsx)(`button`,{type:`button`,className:`btn btn-outline`,onClick:()=>{x(!1),C(null)},children:`Zrušit`}),(0,M.jsx)(`button`,{type:`submit`,className:`btn btn-primary`,children:`Uložit`})]})]})]})})]})},lw=({article:e})=>(0,M.jsxs)(`div`,{className:`news-card glass-card animate-fade-in`,children:[(0,M.jsxs)(`div`,{className:`news-image-container`,children:[e.imageUrl?(0,M.jsx)(`img`,{src:e.imageUrl,alt:e.title,className:`news-card-img`}):(0,M.jsx)(`div`,{className:`news-placeholder`,children:(0,M.jsx)(`span`,{className:`emoji-large`,children:`📰`})}),(0,M.jsx)(`div`,{className:`news-category-tag`,children:`Novinky`})]}),(0,M.jsxs)(`div`,{className:`news-card-body`,children:[(0,M.jsxs)(`div`,{className:`news-meta`,children:[(0,M.jsxs)(`span`,{className:`meta-item`,children:[(0,M.jsx)(Or,{size:14}),` `,new Date(e.date).toLocaleDateString(`cs-CZ`)]}),(0,M.jsxs)(`span`,{className:`meta-item`,children:[(0,M.jsx)(Lr,{size:14}),` 5 min čtení`]})]}),(0,M.jsx)(`h3`,{className:`news-card-title`,children:e.title}),(0,M.jsx)(`p`,{className:`news-card-excerpt`,children:e.excerpt}),(0,M.jsxs)(j,{to:`/novinky/${e.id}`,className:`read-more-btn`,children:[`Číst dále `,(0,M.jsx)(xr,{size:16})]})]})]}),uw=()=>{let[e,t]=(0,_.useState)([]),[n,r]=(0,_.useState)(!0);return(0,_.useEffect)(()=>iS(Lx(Wb(eC,`news`),Vx(`date`,`desc`)),e=>{t(e.docs.map(e=>({id:e.id,...e.data()}))),r(!1)}),[]),(0,M.jsxs)(`div`,{className:`news-page`,children:[(0,M.jsx)(`section`,{className:`bg-header`,style:{backgroundImage:`url("/assets/services/ironing.png")`},children:(0,M.jsxs)(`div`,{className:`container`,children:[(0,M.jsx)(`h1`,{className:`page-title`,children:`Novinky a články`}),(0,M.jsx)(`p`,{className:`page-subtitle`,children:`Sledujte, co se u nás děje, a inspirujte se tipy pro péči o vaše prádlo.`})]})}),(0,M.jsx)(`section`,{className:`news-grid-section section`,children:(0,M.jsx)(`div`,{className:`container`,children:n?(0,M.jsx)(`div`,{className:`loading-state`,children:`Načítám články...`}):e.length>0?(0,M.jsx)(`div`,{className:`news-grid`,children:e.map(e=>(0,M.jsx)(lw,{article:e},e.id))}):(0,M.jsx)(`div`,{className:`empty-state`,children:(0,M.jsx)(`p`,{children:`Zatím zde nejsou žádné články. Brzy se ale objeví!`})})})})]})},dw=()=>{let{id:e}=vt(),[t,n]=(0,_.useState)(null),[r,i]=(0,_.useState)(!0);return(0,_.useEffect)(()=>{(async()=>{let t=await $x(Gb(eC,`news`,e));t.exists()&&n({id:t.id,...t.data()}),i(!1)})()},[e]),r?(0,M.jsx)(`div`,{className:`news-detail-page container`,children:`Načítám článek...`}):t?(0,M.jsxs)(`div`,{className:`news-detail-page`,children:[(0,M.jsx)(`div`,{className:`news-detail-hero`,children:(0,M.jsxs)(`div`,{className:`container`,children:[(0,M.jsxs)(j,{to:`/novinky`,className:`back-link`,children:[(0,M.jsx)(br,{size:18}),` Zpět na přehled`]}),(0,M.jsx)(`div`,{className:`news-detail-meta`,children:(0,M.jsxs)(`span`,{className:`meta-item`,children:[(0,M.jsx)(Or,{size:16}),` `,new Date(t.date).toLocaleDateString(`cs-CZ`)]})}),(0,M.jsx)(`h1`,{children:t.title})]})}),(0,M.jsxs)(`div`,{className:`container news-detail-container`,children:[t.imageUrl&&(0,M.jsx)(`img`,{src:t.imageUrl,alt:t.title,className:`news-detail-main-img`}),(0,M.jsxs)(`div`,{className:`news-detail-content glass-card`,children:[(0,M.jsx)(`p`,{className:`news-excerpt-lead`,children:t.excerpt}),(0,M.jsx)(`div`,{className:`news-body-text`,children:t.content.split(`
295`).map((e,t)=>(0,M.jsx)(`p`,{children:e},t))}),(0,M.jsx)(`div`,{className:`news-detail-footer`,children:(0,M.jsxs)(`div`,{className:`share-section`,children:[(0,M.jsx)(`span`,{children:`Sdílet článek:`}),(0,M.jsx)(`button`,{className:`btn-icon`,children:(0,M.jsx)(bi,{size:18})})]})})]})]})]}):(0,M.jsx)(`div`,{className:`news-detail-page container`,children:`Článek nebyl nalezen.`})},fw=()=>(0,M.jsxs)(`div`,{className:`seniors-page`,children:[(0,M.jsx)(`section`,{className:`bg-header`,style:{backgroundImage:`url('/images/header_seniors_cz_1779127755084.png')`,minHeight:`55vh`},children:(0,M.jsxs)(`div`,{className:`container`,children:[(0,M.jsx)(`h1`,{className:`page-title animate-fade-in`,children:`Péče a služby pro seniory`}),(0,M.jsx)(`p`,{className:`page-subtitle animate-fade-in`,children:`Víme, že s přibývajícím věkem mohou být běžné domácí práce náročnější. Jsme tu, abychom vám pomohli udržet váš domov čistý a vaši mysl klidnou.`})]})}),(0,M.jsxs)(`section`,{className:`seniors-intro container`,children:[(0,M.jsxs)(`div`,{className:`section-header`,children:[(0,M.jsx)(Zr,{className:`icon-primary`,size:48}),(0,M.jsx)(`h2`,{children:`Důstojný život v pohodlí domova`}
295),(0,M.jsx)(`p`,{className:`lead`,children:`NaÅ¡e služby nejsou jen o úklidu. Jsou o lidském přístupu, úctě k věku a pomoci tam, kde je zrovna potřeba.`})]}),(0,M.jsxs)(`div`,{className:`seniors-grid`,children:[(0,M.jsxs)(j,{to:`/pro-seniory/prani`,className:`senior-card`,style:{textDecoration:`none`,color:`inherit`},children:[(0,M.jsx)(`div`,{className:`senior-card-icon`,children:(0,M.jsx)(Mi,{size:32})}),(0,M.jsx)(`h3`,{children:`Péče o prádlo`}),(0,M.jsx)(`p`,{children:`Prádlo si u vás vyzvedneme, profesionálně vypereme, vyžehlíme a přivezeme zpět až do skříně.`})]}),(0,M.jsxs)(j,{to:`/pro-seniory/uklid`,className:`senior-card`,style:{textDecoration:`none`,color:`inherit`},children:[(0,M.jsx)(`div`,{className:`senior-card-icon`,children:(0,M.jsx)(Qr,{size:32})}),(0,M.jsx)(`h3`,{children:`Pomoc s úklidem`}),(0,M.jsx)(`p`,{children:`Od běžného otření prachu až po mytí oken nebo generální úklid. S úctou k vaÅ¡emu soukromí.`})]}),(0,M.jsxs)(j,{to:`/pro-seniory/taxi`,className:`senior-card`,style:{textDecoration:`none`,color:`inherit`},children:[(0,M.jsx)(`div`,{className:`senior-card-icon`,children:(0,M.jsx)(kr,{size:32})}),(0,M.jsx)(`h3`,{children:`Přibližování (Senior taxi)`}),(0,M.jsx)(`p`,{children:`Potřebujete k lékaři, na úřad nebo za přáteli? NaÅ¡e bezpečná doprava je tu pro vás.`})]}),(0,M.jsxs)(j,{to:`/pro-seniory/taxi`,className:`senior-card`,style:{textDecoration:`none`,color:`inherit`},children:[(0,M.jsx)(`div`,{className:`senior-card-icon`,children:(0,M.jsx)(Zr,{size:32})}),(0,M.jsx)(`h3`,{children:`Doprovod k lékaři a na úřady`}),(0,M.jsx)(`p`,{children:`Nenecháme vás samotné. Náš řidič vás doprovodí z bytu do vozu, do čekárny i zpět domů.`})]}),(0,M.jsxs)(j,{to:`/pro-seniory/obedy`,className:`senior-card`,style:{textDecoration:`none`,color:`inherit`},children:[(0,M.jsx)(`div`,{className:`senior-card-icon`,children:(0,M.jsx)(Pi,{size:32})}),(0,M.jsx)(`h3`,{children:`Rozvoz obědů a nákupy`}),(0,M.jsx)(`p`,{children:`Pravidelný dovoz teplého jídla až domů a zajiÅ¡tění donášky potravin či vyzvednutí léků.`})]}),(0,M.jsxs)(`div`,{className:`senior-card`,style:{display:`flex`,flexDirection:`column`,justifyContent:`center`,height:`100%`},children:[(0,M.jsx)(`h3`,{style:{fontSize:`1.4rem`,color:`var(--secondary)`,marginBottom:`0.75rem`},children:`Máte zájem o službu?`}),(0,M.jsx)(`p`,{style:{color:`var(--text-muted)`,fontSize:`0.95rem`,marginBottom:`1.5rem`,lineHeight:`1.5`},children:`Zavolejte nám nebo poÅ¡lete zprávu. Rádi s vámi domluvíme veÅ¡keré podrobnosti.`}),(0,M.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`0.75rem`,width:`100%`},children:[(0,M.jsxs)(`a`,{href:`tel:+420720971125`,className:`btn btn-primary`,style:{display:`inline-flex`,alignItems:`center`,justifyContent:`center`,gap:`0.5rem`,padding:`0.75rem 1rem`,fontSize:`0.95rem`},children:[(0,M.jsx)(pi,{size:16}),` +420 720 971 125`]}),(0,M.jsxs)(`a`,{href:`mailto:[email protected]`,className:`btn btn-outline`,style:{display:`inline-flex`,alignItems:`center`,justifyContent:`center`,gap:`0.5rem`,padding:`0.75rem 1rem`,fontSize:`0.95rem`},children:[(0,M.jsx)(ii,{size:16}),` [email protected]`]})]})]})]})]}),(0,M.jsx)(`section`,{className:`seniors-gallery section`,children:(0,M.jsxs)(`div`,{className:`container`,children:[(0,M.jsxs)(`div`,{className:`section-header`,children:[(0,M.jsx)(`h2`,{children:`Náš svět v obrazech`}
295),(0,M.jsx)(`p`,{children:`Nahlédněte, jak vypadá naÅ¡e každodenní pomoc a radost ze setkání.`})]}),(0,M.jsx)(`div`,{className:`gallery-grid`,children:[{url:`/images/senior_taxi_side.jpg`,alt:`Doprava (Senior taxi)`},{url:`/obedy-meal-hero.jpg`,alt:`Čerstvé obědy`},{url:`/obedy-hero.jpg`,alt:`Rozvoz obědů`},{url:`/images/senior_cleaning_cz_1779127835182.png`,alt:`Pomoc s úklidem`},{url:`/images/senior_taxi_header.jpg`,alt:`Služba Senior taxi`},{url:`/images/laundry_care_cz_1779127803995.png`,alt:`Péče o prádlo`}].map((e,t)=>(0,M.jsxs)(`div`,{className:`gallery-item glass-card`,children:[(0,M.jsx)(`img`,{src:e.url,alt:e.alt}),(0,M.jsx)(`div`,{className:`gallery-overlay`,children:(0,M.jsx)(`span`,{children:e.alt})})]},t))})]})}),(0,M.jsx)(`section`,{className:`seniors-features`,children:(0,M.jsxs)(`div`,{className:`container`,children:[(0,M.jsx)(`div`,{className:`section-header`,children:(0,M.jsx)(`h2`,{children:`Proč si vybrat Zelený ostrov?`})}),(0,M.jsxs)(`div`,{className:`feature-list`,children:[(0,M.jsxs)(`div`,{className:`feature-item`,children:[(0,M.jsx)(`div`,{className:`feature-item-icon`,children:(0,M.jsx)(xi,{size:40})}),(0,M.jsxs)(`div`,{children:[(0,M.jsx)(`h4`,{children:`Důvěra a bezpečí`}),(0,M.jsx)(`p`,{children:`VÅ¡echny naÅ¡e pracovníky známe osobně. Jsou to prověření lidé s laskavým přístupem.`})]})]}),(0,M.jsxs)(`div`,{className:`feature-item`,children:[(0,M.jsx)(`div`,{className:`feature-item-icon`,children:(0,M.jsx)(Lr,{size:40})}),(0,M.jsxs)(`div`,{children:[(0,M.jsx)(`h4`,{children:`Spolehlivost`}),(0,M.jsx)(`p`,{children:`Dodržujeme domluvené časy. Pokud řekneme v deset, budeme u vás v deset.`})]})]}),(0,M.jsxs)(`div`,{className:`feature-item`,children:[(0,M.jsx)(`div`,{className:`feature-item-icon`,children:(0,M.jsx)(P,{size:40})}),(0,M.jsxs)(`div`,{children:[(0,M.jsx)(`h4`,{children:`Zvýhodněné ceny`}),(0,M.jsx)(`p`,{children:`Pro držitele průkazů ZTP a seniory nad 65 let nabízíme speciální tarify na vÅ¡echny služby.`})]})]}),(0,M.jsxs)(`div`,{className:`feature-item`,children:[(0,M.jsx)(`div`,{className:`feature-item-icon`,children:(0,M.jsx)(pi,{size:40})}),(0,M.jsxs)(`div`,{children:[(0,M.jsx)(`h4`,{children:`Osobní domluva`}),(0,M.jsx)(`p`,{children:`VÅ¡e si s vámi nejdříve v klidu promluvíme a nastavíme pomoc přesně tak, jak potřebujete.`})]})]})]})]})}),(0,M.jsx)(`section`,{className:`seniors-cta`,children:(0,M.jsxs)(`div`,{className:`container`,children:[(0,M.jsx)(`h2`,{children:`Rádi vám pomůžeme`}),(0,M.jsx)(`p`,{className:`lead mb-4`,children:`Zavolejte nám nebo napiÅ¡te. Rádi se u vás zastavíme na nezávaznou kávu a popovídáme si o tom, co by vám ulehčilo život.`}),(0,M.jsxs)(`div`,{className:`cta-buttons`,children:[(0,M.jsxs)(`a`,{href:`tel:+420720971125`,className:`btn btn-white`,children:[(0,M.jsx)(pi,{size:20}),` +420 720 971 125`]}),(0,M.jsxs)(`a`,{href:`mailto:[email protected]`,className:`btn btn-outline-white`,children:[(0,M.jsx)(ii,{size:20}),` NapiÅ¡te nám`]})]}),(0,M.jsx)(`p`,{className:`mt-4 opacity-75`,children:`Služby pro seniory realizujeme ve spolupráci se sociálním podnikem Teamium.`})]})})]}),pw=({serviceTitle:e})=>{let[t,n]=(0,_.useState)({name:``,phone:``,email:``,message:``}),[r,i]=(0,_.useState)(!1),[a,o]=(0,_.useState)(!1);return(0,M.jsxs)(`div`,{className:`contact-form-container glass-card`,style:{padding:`2rem`,borderRadius:`12px`,border:`1px solid var(--border-color)`,width:`100%`,marginTop:`0`},children:[(0,M.jsx)(`h3`,{style:{marginBottom:`1.5rem`,fontSize:`1.5rem`,color:`var(--secondary)`,fontWeight:`600`},children:`Nezávazná poptávka`}),r?(0,M.jsxs)(`div`,{style:{padding:`1rem`,backgroundColor:`var(--primary-light)`,color:`var(--primary)`,borderRadius:`8px`,textAlign:`center`},children:[(0,M.jsx)(`p`,{style:{margin:0,fontWeight:500},children:`VaÅ¡e poptávka byla úspěšně odeslána.`}),(0,M.jsx)(`p`,{style:{margin:0,fontSize:`0.9rem`,marginTop:`0.5rem`},children:`Brzy se vám ozveme na zadaný kontakt.`}),(0,M.jsx)(`button`,{onClick:()=>i(!1),className:`btn btn-outline`,style:{marginTop:`1rem`,padding:`0.5rem 1rem`},children:`Zadat novou poptávku`})]}):(0,M.jsxs)(`form`,{className:`contact-form`,onSubmit:async r=>{if(r.preventDefault(),!a){o(!0);try{await rS(Wb(eC,`inquiries`),{name:t.name,phone:t.phone,email:t.email||``,message:t.message,service:e,createdAt:Ox(),status:`new`}),await wC.send(`service_9gw9zbe`,`template_inquiry`,{customer_name:t.name,customer_phone:t.phone,customer_email:t.email||`[email protected]`,email:t.email||`[email protected]`,service_title:e,message:t.message||`Bez zprávy`,order_id:`POPTÁVKA`,delivery_type:`Nezávazná poptávka`,payment_type:`Služba: `+e,note:t.message||`Bez zprávy`,total_price:`Dle domluvy`,items_html:`<tr><td colspan='3'>Toto je nezávazná poptávka z webu k této službě: <strong>`+e+`</strong></td></tr>`,to_email:`[email protected]`,reply_to:t.email||`[email protected]`},{publicKey:`aANhT6_XuXDQwWKO2`}),i(!0),ar(e),n({name:``,phone:``,email:``,message:``})}catch(e){console.error(`Chyba při odesílání poptávky:`,e);let t=e?.text||e?.message||JSON.stringify(e);alert(`DoÅ¡lo k chybě při odesílání poptávky: ${t}. Zkuste to prosím znovu nebo nám zavolejte.`)}finally{o(!1)}}},children:[(0,M.jsxs)(`div`,{className:`form-group`,style:{marginBottom:`1rem`},children:[(0,M.jsx)(`label`,{style:{display:`block`,marginBottom:`0.5rem`,fontSize:`0.9rem`,fontWeight:500,textAlign:`left`,color:`var(--text-main)`},children:`Jméno a příjmení *`}),(0,M.jsx)(`input`,{type:`text`,value:t.name,onChange:e=>n({...t,name:e.target.value}),className:`form-control`,style:{width:`100%`,padding:`0.8rem`,borderRadius:`8px`,border:`1px solid #ccc`,fontSize:`1rem`},placeholder:`Jan Novák`,required:!0})]}),(0,M.jsxs)(`div`,{className:`form-group`,style:{marginBottom:`1rem`},children:[(0,M.jsx)(`label`,{style:{display:`block`,marginBottom:`0.5rem`,fontSize:`0.9rem`,fontWeight:500,textAlign:`left`,color:`var(--text-main)`},children:`Telefon *`}),(0,M.jsx)(`input`,{type:`tel`,value:t.phone,onChange:e=>n({...t,phone:e.target.value}),className:`form-control`,style:{width:`100%`,padding:`0.8rem`,borderRadius:`8px`,border:`1px solid #ccc`,fontSize:`1rem`},placeholder:`+420 601 571 790`,required:!0})]}),(0,M.jsxs)(`div`,{className:`form-group`,style:{marginBottom:`1rem`},children:[(0,M.jsx)(`label`,{style:{display:`block`,marginBottom:`0.5rem`,fontSize:`0.9rem`,fontWeight:500,textAlign:`left`,color:`var(--text-main)`},children:`E-mail (nepovinné)`}),(0,M.jsx)(`input`,{type:`email`,value:t.email,onChange:e=>n({...t,email:e.target.value}),className:`form-control`,style:{width:`100%`,padding:`0.8rem`,borderRadius:`8px`,border:`1px solid #ccc`,fontSize:`1rem`},placeholder:`[email protected]`})]}),(0,M.jsxs)(`div`,{className:`form-group`,style:{marginBottom:`1rem`},children:[(0,M.jsx)(`label`,{style:{display:`block`,marginBottom:`0.5rem`,fontSize:`0.9rem`,fontWeight:500,textAlign:`left`,color:`var(--text-main)`},children:`Zpráva / Dotaz`}),(0,M.jsx)(`textarea`,{rows:`3`,value:t.message,onChange:e=>n({...t,message:e.target.value}),className:`form-control`,style:{width:`100%`,padding:`0.8rem`,borderRadius:`8px`,border:`1px solid #ccc`,fontSize:`1rem`,resize:`vertical`},placeholder:`VaÅ¡e zpráva...`})]}),(0,M.jsx)(`button`,{type:`submit`,className:`btn btn-primary`,style:{width:`100%`,dis
295play:`flex`,justifyContent:`center`,gap:`0.5rem`,padding:`1rem`,fontSize:`1.05rem`,marginTop:`1rem`,cursor:`pointer`},disabled:a,children:a?`Odesílám...`:(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(vi,{size:18}),` Odeslat poptávku`]})})]})]})},mw=()=>{let[e,t]=(0,_.useState)(0),n=[{src:`/images/laundry_gallery1.jpg`,alt:`Dvě pracovnice sociálního podniku žehlí ložní prádlo na velkém mandlu`,title:`Pečlivost u mandlu`,caption:`Naše kolegyně se starají o to, aby bylo vaše prádlo dokonale hladké a příjemné na dotek.`},{src:`/images/laundry_gallery2.jpg`,alt:`Tým pracovnic v našem sociálním podniku při práci s prádlem`,title:`Práce, která má smysl`,caption:`V našem sociálním podniku pomáháme lidem se zdravotním znevýhodněním uplatnit se na trhu práce.`},{src:`/images/laundry_gallery3.jpg`,alt:`Precizně složené ložní povlečení na stole a košile na ramínkách připravené k rozvozu`,title:`Voňavý výsledek`,caption:`Precizně složené a vyžehlené prádlo vám přivezeme zpět domů – stačí ho jen uložit do skříně.`}];return(0,_.useEffect)(()=>{let e=setInterval(()=>{t(e=>e===n.length-1?0:e+1)},8e3);return()=>clearInterval(e)},[n.length]),(0,M.jsxs)(`div`,{className:`service-landing`,children:[(0,M.jsx)(`section`,{className:`bg-header`,style:{backgroundImage:`url('/images/laundry_header_optimized.jpg')`,minHeight:`40vh`,padding:`9rem 0 4rem`},children:(0,M.jsxs)(`div`,{className:`container`,children:[(0,M.jsx)(`h1`,{className:`page-title animate-fade-in`,style:{textTransform:`none`,lineHeight:`1.2`,fontSize:`3rem`},children:`Praní, žehlení a mandlování`}),(0,M.jsx)(`p`,{className:`page-subtitle animate-fade-in`,style:{fontSize:`1.15rem`,maxWidth:`650px`,lineHeight:`1.6`},children:`Profesionální a šetrná péče o vaše každodenní prádlo, ložní soupravy i firemní zakázky. Ušetříme vám starosti a čas, zatímco dáváme smysluplnou práci lidem se zdravotním znevýhodněním.`}),(0,M.jsxs)(`div`,{className:`animate-fade-in`,style:{display:`flex`,gap:`1rem`,flexWrap:`wrap`,justifyContent:`center`},children:[(0,M.jsx)(j,{to:`/objednat`,className:`btn btn-primary mt-3`,children:`Objednat praní online`}),(0,M.jsxs)(j,{to:`/opravy-odevu`,className:`btn btn-outline btn-white mt-3`,children:[`Opravy a úpravy oděvů `,(0,M.jsx)(xr,{size:16})]})]})]})}),(0,M.jsx)(`section`,{className:`container`,children:(0,M.jsxs)(`div`,{className:`benefits-grid`,children:[(0,M.jsxs)(`div`,{className:`benefit-card animate-fade-in`,children:[(0,M.jsx)(Lr,{size:40,className:`benefit-icon`}),(0,M.jsx)(`h3`,{children:`Ušetříte 5+ hodin týdně`}),(0,M.jsx)(`p`,{children:`Průměrná domácnost stráví praním, věšením a žehlením hodiny týdně. Nechte to na nás a věnujte se tomu, co máte rádi.`})]}),(0,M.jsxs)(`div`,{className:`benefit-card animate-fade-in`,children:[(0,M.jsx)(Mi,{size:40,className:`benefit-icon`}),(0,M.jsx)(`h3`,{children:`Pohodlný svoz a rozvoz`}),(0,M.jsx)(`p`,{children:`Prádlo si u vás vyzvedneme v dohodnutý čas a po vyprání a vyžehlení ho přivezeme čisté a voňavé zpět k vašim dveřím.`})]}),(0,M.jsxs)(`div`,{className:`benefit-card animate-fade-in`,children:[(0,M.jsx)(xi,{size:40,className:`benefit-icon`}),(0,M.jsx)(`h3`,{children:`Ekologické & šetrné`}),(0,M.jsx)(`p`,{children:`Používáme certifikované ekologické prací prostředky. Jsou maximálně šetrné k textilním vláknům, vaší pokožce i k přírodě.`})]})]})}),(0,M.jsxs)(`section`,{className:`container service-content-row`,style:{padding:`80px 0 50px`},children:[(0,M.jsxs)(`div`,{className:`service-text animate-fade-in`,children:[(0,M.jsx)(`span`,{className:`service-tag`,children:`Kompletní péče`}),(0,M.jsx)(`h2`,{style:{fontSize:`2.2rem`,marginBottom:`1.5rem`},children:`Prémiová péče o prádlo s lidským dotykem`}),(0,M.jsx)(`p`,{className:`lead`,style:{fontSize:`1.15rem`,color:`var(--text-muted)`,lineHeight:`1.6`,marginBottom:`1.5rem`},children:`V naší sociální prádelně neděláme rozdíly mezi malou domácí zakázkou a velkým firemním klientem. Každému kousku prádla věnujeme individuální pozornost.`}),(0,M.jsx)(`p`,{style:{lineHeight:`1.6`,marginBottom:`2rem`}
295,children:`Naše služby kombinují špičkovou profesionální technologii s pečlivou ruční prací. Jemné oděvy a košile žehlíme výhradně ručně pro dosažení dokonalého výsledku, zatímco rovné prádlo prochází naším výkonným mandlem pro perfektní hladkost. Navíc každou zakázkou přímo podporujete zaměstnávání našich kolegů se zdravotním znevýhodněním.`}),(0,M.jsxs)(`ul`,{className:`feature-list-simple`,style:{listStyle:`none`,padding:0,margin:0,marginBottom:`2rem`},children:[(0,M.jsxs)(`li`,{style:{display:`flex`,alignItems:`center`,gap:`0.75rem`,marginBottom:`1rem`,lineHeight:`1.6`,textAlign:`left`},children:[(0,M.jsx)(P,{size:20,style:{color:`var(--primary)`,flexShrink:0}}),(0,M.jsxs)(`span`,{children:[(0,M.jsx)(`strong`,{children:`Individuální prací programy`}),` podle typu materiálu a míry znečištění`]})]}),(0,M.jsxs)(`li`,{style:{display:`flex`,alignItems:`center`,gap:`0.75rem`,marginBottom:`1rem`,lineHeight:`1.6`,textAlign:`left`},children:[(0,M.jsx)(P,{size:20,style:{color:`var(--primary)`,flexShrink:0}}),(0,M.jsxs)(`span`,{children:[(0,M.jsx)(`strong`,{children:`Ruční žehlení detailů`}),` a precizní skládání oděvů`]})]}),(0,M.jsxs)(`li`,{style:{display:`flex`,alignItems:`center`,gap:`0.75rem`,marginBottom:`1rem`,lineHeight:`1.6`,textAlign:`left`},children:[(0,M.jsx)(P,{size:20,style:{color:`var(--primary)`,flexShrink:0}}),(0,M.jsxs)(`span`,{children:[(0,M.jsx)(`strong`,{children:`Profesionální mandlování`}),` ložního prádla, ubrusů a utěrek`]})]}),(0,M.jsxs)(`li`,{style:{display:`flex`,alignItems:`center`,gap:`0.75rem`,marginBottom:`1rem`,lineHeight:`1.6`,textAlign:`left`},children:[(0,M.jsx)(P,{size:20,style:{color:`var(--primary)`,flexShrink:0}}),(0,M.jsxs)(`span`,{children:[(0,M.jsx)(`strong`,{children:`Dermatologicky testované`}),` a antialergenní prací gely`]})]})]}),(0,M.jsx)(`div`,{style:{display:`flex`,gap:`1rem`,flexWrap:`wrap`},children:(0,M.jsxs)(j,{to:`/objednat?category=Praní a mandlování`,className:`btn btn-outline`,children:[`Zobrazit ceník služeb `,(0,M.jsx)(xr,{size:16})]})})]}),(0,M.jsx)(`div`,{className:`service-image-box animate-fade-in`,style:{flex:`1.2`},children:(0,M.jsxs)(`div`,{className:`gallery-carousel`,children:[(0,M.jsx)(`div`,{className:`carousel-inner`,style:{transform:`translateX(-${e*100}%)`},children:n.map((e,t)=>(0,M.jsxs)(`div`,{className:`carousel-slide`,children:[(0,M.jsx)(`img`,{src:e.src,alt:e.alt}),(0,M.jsxs)(`div`,{className:`carousel-caption`,children:[(0,M.jsx)(`h4`,{children:e.title}),(0,M.jsx)(`p`,{children:e.caption})]})]},t))}),(0,M.jsx)(`button`,{className:`carousel-arrow prev`,onClick:e=>{e.preventDefault(),t(e=>e===0?n.length-1:e-1)},"aria-label":`Předchozí snímek`,children:(0,M.jsx)(Mr,{size:24})}),(0,M.jsx)(`button`,{className:`carousel-arrow next`,onClick:e=>{e.preventDefault(),t(e=>e===n.length-1?0:e+1)},"aria-label":`Další snímek`,children:(0,M.jsx)(Nr,{size:24})}),(0,M.jsx)(`div`,{className:`carousel-dots`,children:n.map((n,r)=>(0,M.jsx)(`button`,{className:`carousel-dot ${r===e?`active`:``}`,onClick:e=>{e.preventDefault(),t(r)},"aria-label":`Přejít na snímek ${r+1}`},r))})]})})]}),(0,M.jsx)(`section`,{className:`section section-bg-soft`,style:{padding:`80px 0`},children:(0,M.jsxs)(`div`,{className:`container`,children:[(0,M.jsx)(`h2`,{className:`section-title`,style:{textAlign:`center`,marginBottom:`3.5rem`},children:`Jak to u nás funguje?`}),(0,M.jsxs)(`div`,{className:`how-it-works-grid`,children:[(0,M.jsxs)(`div`,{className:`step-card`,children:[(0,M.jsx)(`div`,{className:`step-number`,children:`1`}),(0,M.jsx)(Ci,{className:`step-icon`}),(0,M.jsx)(`h4`,{children:`Snadná objednávka`}),(0,M.jsx)(`p`,{children:`Během minuty vyplníte náš online formulář. Vyberete si, jaké prádlo potřebujete vyprat, a zvolíte vyhovující termín svozu.`})]}),(0,M.jsxs)(`div`,{className:`step-card`,children:[(0,M.jsx)(`div`,{className:`step-number`,children:`2`}),(0,M.jsx)(Mi,{className:`step-icon`}),(0,M.jsx)(`h4`,{children:`Svoz od vašich dveří`}),(0,M.jsx)(`p`,{children:`Náš řidič vyzvedne špinavé prádlo přímo u vás doma nebo ve firmě. Nemusíte se starat o žádné balení ani přenášení.`})]}),(0,M.jsxs)(`div`,{className:`step-card`,children:[(0,M.jsx)(`div`,{className:`step-number`,children:`3`}),(0,M.jsx)(Ei,{className:`step-icon`}),(0,M.jsx)(`h4`,{children:`Hýčkání a péče`}),(0,M.jsx)(`p`,{children:`Prádlo pečlivě roztřídíme, vypereme v ekologických gelech a šetrně vysušíme. Poté ho precizně ručně vyžehlíme či vymandlujeme.`})]}),(0,M.jsxs)(`div`,{className:`step-card`,children:[(0,M.jsx)(`div`,{className:`step-number`,children:`4`}),(0,M.jsx)(hi,{className:`step-icon`}),(0,M.jsx)(`h4`,{children:`Voňavé doručení zpět`}),(0,M.jsx)(`p`,{children:`Dokonale čisté, složené a zabalené prádlo vám přivezeme zpět. Stačí ho jen uložit do skříně a užívat si pocitu svěžesti.`})]})]})]})}),(0,M.jsx)(`section`,{className:`section`,style:{padding:`80px 0`},children:(0,M.jsxs)(`div`,{className:`container`,children:[(0,M.jsx)(`h2`,{className:`section-title`,style:{textAlign:`center`,marginBottom:`3.5rem`},children:`Co všechno u nás pereme a mandlujeme?`}),(0,M.jsxs)(`div`,{className:`what-we-wash-grid`,children:[(0,M.jsxs)(`div`,{className:`wash-category-card animate-fade-in`,children:[(0,M.jsx)(Si,{className:`wash-icon`}),(0,M.jsx)(`h4`,{children:`Pro domácnosti`}),(0,M.jsx)(`p`,{children:`Od běžného oblečení jako jsou trička, mikiny a džíny, přes choulostivé svetry, až po bundy a zimní kabáty. Vše s důrazem na zachování tvaru a barev.`})]}),(0,M.jsxs)(`div`,{className:`wash-category-card animate-fade-in`,children:[(0,M.jsx)(Zr,{className:`wash-icon`}),(0,M.jsx)(`h4`,{children:`Ložní prádlo a textil`}),(0,M.jsx)(`p`,{children:`Ložní povlečení, prostěradla, přikrývky, polštáře, ale i ubrusy, závěsy a utěrky. Díky výkonnému mandlu získají perfektně hladký povrch a luxusní dojem.`})]}),(0,M.jsxs)(`div`,{className:`wash-category-card animate-fade-in`,children:[(0,M.jsx)(xi,{className:`wash-icon`}),(0,M.jsx)(`h4`,{children:`Pro firmy a provozy`}),(0,M.jsx)(`p`,{children:`Komplexní servis pro penziony, restaurace, salóny krásy, ordinace i sportovní kluby. Včetně zajištění náhradního plnění pro úsporu vašich odvodů státu.`})]})]})]})}),(0,M.jsx)(`section`,{className:`service-contact-section`,style:{padding:`80px 0`,background:`linear-gradient(135deg, var(--bg-soft) 0%, var(--bg-main) 100%)`,borderTop:`1px solid var(--border-color)`,borderBottom:`1px solid var(--border-color)`},children:(0,M.jsxs)(`div`,{className:`container`,style:{maxWidth:`650px`},children:[(0,M.jsxs)(`div`,{style:{textAlign:`center`,marginBottom:`2rem`},children:[(0,M.jsx)(`span`,{className:`service-tag`,children:`Nezávazná poptávka`}),(0,M.jsx)(`h2`,{style:{fontSize:`2rem`,marginTop:`0.5rem`,marginBottom:`1rem`},children:`Máte zájem o praní a mandlování?`}),(0,M.jsx)(`p`,{style:{color:`var(--text-muted)`},children:`Vyplňte prosím krátký formulář a naši pracovníci se vám co nejdříve ozvou.`})]}),(0,M.jsx)(pw,{serviceTitle:`Praní a mandlování`})]})}),(0,M.jsx)(`section`,{className:`service-stats`,children:(0,M.jsx)(`div`,{className:`container`,children:(0,M.jsxs)(`div`,{className:`stats-grid`,children:[(0,M.jsxs)(`div`,{className:`stat-item`,children:[(0,M.jsx)(`h2`,{children:`15t`}),(0,M.jsx)(`p`,{children:`Vypere prádla měsíčně`})]}),(0,M.jsxs)(`div`,{className:`stat-item`,children:[(0,M.jsx)(`h2`,{children:`2500+`}),(0,M.jsx)(`p`,{children:`Spokojených zákazníků`})]}),(0,M.jsxs)(`div`,{className:`stat-item`,children:[(0,M.jsx)(`h2`,{children:`24h`}),(0,M.jsx)(`p`,{children:`Standardní doba dodání`})]})]})})}),(0,M.jsx)(`section`,{className:`ppc-cta`,children:(0,M.jsxs)(`div`,{className:`container`,children:[(0,M.jsx)(`h2`,{children:`Nenechte se zavalit horou prádla`}),(0,M.jsx)(`p`,{className:`mb-4`,style:{fontSize:`1.2rem`,maxWidth:`600px`,margin:`0 auto 2.5rem`},children:`Přenechejte starosti s praním profesionálům ze Zeleného ostrova a udělejte dobrý skutek. Objednejte online nebo nám zavolejte.`}),(0,M.jsxs)(`div`,{style:{display:`flex`,justifyContent:`center`,gap:`1rem`,flexWrap:`wrap`},children:[(0,M.jsx)(j,{to:`/objednat`,className:`btn btn-primary btn-lg`,children:`Chci objednat online`}),(0,M.jsx)(`a`,{href:`tel:+420601571790`,className:`btn btn-outline btn-lg`,children:`Zavolat +420 601 571 790`})]})]})})]})},hw=()=>(0,M.jsxs)(`div`,{className:`service-landing`,children:[(0,M.jsx)(`section`,{className:`bg-header`,style:{backgroundImage:`url('/Generate images/cistirna_header.jpg')`},children:(0,M.jsxs)(`div`,{className:`container`,children:[(0,M.jsx)(`h1`,{className:`page-title animate-fade-in`,children:`Šetrná čistírna oděvů`}),(0,M.jsx)(`p`,{className:`page-subtitle animate-fade-in`,children:`Obleky, kabáty i peří. Vašim oblíbeným kouskům vrátíme původní vzhled a svěžest bez poškození vláken.`})]})}),(0,M.jsx)(`section`,{className:`container`,children:(0,M.jsxs)(`div`,{className:`benefits-grid`,children:[(0,M.jsxs)(`div`,{className:`benefit-card`,children:[(0,M.jsx)(Ei,{size:40,className:`benefit-icon`}
295),(0,M.jsx)(`h3`,{children:`Odborné odstranění skvrn`}),(0,M.jsx)(`p`,{children:`Poradíme si i se skvrnami, na které běžné prostředky nestačí. Šetrně a efektivně.`})]}),(0,M.jsxs)(`div`,{className:`benefit-card`,children:[(0,M.jsx)(Ri,{size:40,className:`benefit-icon`}),(0,M.jsx)(`h3`,{children:`Moderní technologie`}),(0,M.jsx)(`p`,{children:`Používáme technologie, které jsou bezpečné pro jemné materiály jako hedvábí nebo vlna.`})]}),(0,M.jsxs)(`div`,{className:`benefit-card`,children:[(0,M.jsx)(Di,{size:40,className:`benefit-icon`}),(0,M.jsx)(`h3`,{children:`Péče o kůži a peří`}),(0,M.jsx)(`p`,{children:`Specializujeme se na náročné čištění kožených oděvů a renovaci péřových dek a polštářů.`})]})]})}),(0,M.jsxs)(`section`,{className:`container service-content-row reverse`,children:[(0,M.jsxs)(`div`,{className:`service-text`,children:[(0,M.jsx)(`p`,{className:`lead`,children:`Každý kousek oděvu u nás prochází individuální kontrolou a volbou nejvhodnějšího postupu čištění.`}),(0,M.jsxs)(`ul`,{className:`feature-list-simple`,style:{listStyle:`none`,padding:0,margin:0,marginBottom:`2rem`},children:[(0,M.jsxs)(`li`,{style:{display:`flex`,alignItems:`center`,gap:`0.75rem`,marginBottom:`1rem`,lineHeight:`1.6`,textAlign:`left`},children:[(0,M.jsx)(xi,{size:20,style:{color:`var(--primary)`,flexShrink:0}}),(0,M.jsx)(`span`,{children:`Čištění pánských obleků, fraků, žaketů, kabátů`})]}),(0,M.jsxs)(`li`,{style:{display:`flex`,alignItems:`center`,gap:`0.75rem`,marginBottom:`1rem`,lineHeight:`1.6`,textAlign:`left`},children:[(0,M.jsx)(xi,{size:20,style:{color:`var(--primary)`,flexShrink:0}}),(0,M.jsx)(`span`,{children:`Čištění společenských šatů, kostýmů, halenek, blůz`})]}),(0,M.jsxs)(`li`,{style:{display:`flex`,alignItems:`center`,gap:`0.75rem`,marginBottom:`1rem`,lineHeight:`1.6`,textAlign:`left`},children:[(0,M.jsx)(xi,{size:20,style:{color:`var(--primary)`,flexShrink:0}}),(0,M.jsx)(`span`,{children:`Čištění kožešin, bytového textilu, dek, přikrývek, přehozů, potahů`})]}),(0,M.jsxs)(`li`,{style:{display:`flex`,alignItems:`center`,gap:`0.75rem`,marginBottom:`1rem`,lineHeight:`1.6`,textAlign:`left`},children:[(0,M.jsx)(xi,{size:20,style:{color:`var(--primary)`,flexShrink:0}}),(0,M.jsx)(`span`,{children:`Čištění pracovních oděvů`})]}),(0,M.jsxs)(`li`,{style:{display:`flex`,alignItems:`center`,gap:`0.75rem`,marginBottom:`1rem`,lineHeight:`1.6`,textAlign:`left`},children:[(0,M.jsx)(Vr,{size:20,className:`text-primary`,style:{flexShrink:0}}),(0,M.jsxs)(`span`,{children:[(0,M.jsx)(`strong`,{children:`NOVĚ:`}),` Mokré čištění (oděvy s označením W v kroužku)`]})]})]}),(0,M.jsx)(`div`,{className:`mt-4`,children:(0,M.jsx)(j,{to:`/objednat?category=Chemické čištění`,className:`btn btn-primary btn-lg`,children:`Chci vyčistit prádlo`})}),(0,M.jsxs)(`div`,{className:`info-box-highlight mt-5`,children:[(0,M.jsx)(Vr,{size:24,className:`text-primary`}),(0,M.jsxs)(`div`,{children:[(0,M.jsx)(`h4`,{children:`Hledáte ještě šetrnější variantu?`}),(0,M.jsxs)(`p`,{children:[`Vyzkoušejte naši metodu `,(0,M.jsx)(`strong`,{children:`Mokrého čištění W`}),`. Je ideální pro alergiky a nejjemnější materiály. `,(0,M.jsxs)(j,{to:`/mokre-cisteni`,children:[`Více informací zde `,(0,M.jsx)(xr,{size:16})]})]})]})]})]}),(0,M.jsx)(`div`,{className:`service-image-box`,children:(0,M.jsx)(`img`,{src:`/Generate images/kosile.jpg`,alt:`Čistírna`})})]}),(0,M.jsx)(`section`,{className:`service-contact-section`,style:{padding:`80px 0`,background:`linear-gradient(135deg, var(--bg-soft) 0%, var(--bg-main) 100%)`,borderTop:`1px solid var(--border-color)`,borderBottom:`1px solid var(--border-color)`},children:(0,M.jsxs)(`div`,{className:`container`,style:{maxWidth:`650px`},children:[(0,M.jsxs)(`div`,{style:{textAlign:`center`,marginBottom:`2rem`},children:[(0,M.jsx)(`span`,{className:`service-tag`,children:`Nezávazná poptávka`}),(0,M.jsx)(`h2`,{style:{fontSize:`2rem`,marginTop:`0.5rem`,marginBottom:`1rem`},children:`Máte zájem o chemické čištění?`}),(0,M.jsx)(`p`,{style:{color:`var(--text-muted)`},children:`Vyplňte prosím krátký formulář a naši pracovníci se vám co nejdříve ozvou.`})]}),(0,M.jsx)(pw,{serviceTitle:`Chemické čištění`})]})}),(0,M.jsx)(`section`,{className:`ppc-cta`,children:(0,M.jsxs)(`div`,{className:`container`,children:[(0,M.jsx)(`h2`,{children:`Vraťte svému šatníku život`}),(0,M.jsx)(`p`,{className:`mb-4`,children:`Máte v šatníku kousek, který si zaslouží profesionální péči? Jsme tu pro vás.`}),(0,M.jsxs)(`div`,{style:{display:`flex`,justifyContent:`center`,gap:`1rem`},children:[(0,M.jsx)(j,{to:`/kontakt`,className:`btn btn-primary btn-lg`,children:`Kontaktujte nás`}),(0,M.jsx)(j,{to:`/objednat?category=Chemické čištění`,className:`btn btn-outline btn-lg`,children:`Zobrazit ceník`})]})]})})]}),gw=c(m(),1),_w={hotely:{id:`hotely`,title:`Hotely a penziony`,icon:Tr,serviceTitle:`Poptávka — Hotely a penziony`,tagline:`Prémiová péče o textil pro ubytovací zařízení`,image:`/images/b2b_services_optimized.jpg`,benefits:[{icon:Di,text:`Zářivě bílé povlečení, prostěradla a nadých
295aný froté program — hosté to okamžitě pocítí`},{icon:Mi,text:`Pravidelný svoz přesně podle vašeho obsazenostního plánu bez výpadků`},{icon:Cr,text:`Systém značení každého kusu textilu — nulová záměna a plný přehled`},{icon:xi,text:`Chemicko-tepelná dezinfekce — bezpečné prádlo pro vaše hosty`},{icon:Sr,text:`Ruční žehlení a skládání — prémium servis pro náročné hosty`}]},restaurace:{id:`restaurace`,title:`Restaurace a catering`,icon:wr,serviceTitle:`Poptávka — Restaurace a catering`,tagline:`Bezchybný stolní textil pro restaurace a cateringové firmy`,image:null,benefits:[{icon:Di,text:`Hloubkové odstraňování skvrn od jídla, vína a vosku — ubrusy jako nové`},{icon:Mi,text:`Pravidelný svoz stolního prádla přizpůsobený vašemu provozu`},{icon:Cr,text:`Precizní žehlení ubrusů a servitek — dokonale upravený stůl`},{icon:xi,text:`Hygienické standardy pro gastro provoz — zečka a certifikováno`},{icon:Sr,text:`Možnost výpomoci pronájmem textilu na větší akce`}]},skolky:{id:`skolky`,title:`Školky a dětská centra`,icon:Yr,serviceTitle:`Poptávka — Školky a dětská centra`,tagline:`Šetrné a bezpečné praní pro dětská zařízení`,image:null,benefits:[{icon:xi,text:`Ekologické praci gely — dermatologicky testované, antialergeenní a bezpečné pro dětskou pokožku`},{icon:Di,text:`Praní plušových hraček, dětského povlečení a ručníků`},{icon:Cr,text:`Dodržujeme hygienické normy pro předkolektivní zařízení`},{icon:Mi,text:`Pravidelný svoz nastavený podle provozu školky`},{icon:Sr,text:`Vonné a měkké prádlo — děti se cítí pohodlně`}]},lekari:{id:`lekari`,title:`Lékaři a zdravotnická zařízení`,icon:Oi,serviceTitle:`Poptávka — Lékaři a zdravotnická zařízení`,tagline:`Hygienicky bezvadné prádlo pro zdravotnický provoz`,image:null,benefits:[{icon:xi,text:`Chemicko-tepelná dezinfekce dle hygienických norem pro zdrav. zařízení`},{icon:Di,text:`Praní lékařských plašťů, sesterských uniforem a vyšetřovacích prostěradel`},{icon:Cr,text:`Přesná evidence každého kusu — žádné záměny`},{icon:Mi,text:`Svoz a dovóz přizpůsobený ordinacínm časem`},{icon:Sr,text:`Dūvěryhodný partner s plněním všech legislativních požadavků`}]},veterinari:{id:`veterinari`,title:`Veterinární kliniky a salóny`,icon:Zr,serviceTitle:`Poptávka — Veterinární kliniky`,tagline:`Čistota a bezpečnost pro zvláštní potřeby veterinárních provozů`,image:null,benefits:[{icon:xi,text:`Speciální dezinfekce účinná proti biologickým nečistotan a zápachu`},{icon:Di,text:`Odstraňování zvířecích chlupů a odborná péče o prádlo zvláštních parametrů`},{icon:Cr,text:`Praní dek, podložek a ručníků pro zvířecí pacienty`},{icon:Mi,text:`Flexibilní svoz přizpůsobený rytmu vaší kliniky`},{icon:Sr,text:`Diskrétní a spolehlivý servis dùvěryhodného partnera`}]},wellness:{id:`wellness`,title:`Wellness, salóny a sport`,icon:Ni,serviceTitle:`Poptávka — Wellness a salóny`,tagline:`Vonné a měkké textilie pro masážní a wellness centra`,image:null,benefits:[{icon:Di,text:`Zaručujeme dokonalou savost, hygienickou čistotu a stálou měkkost textilu`},{icon:xi,text:`Hygienické standardy splněné pro kosmetické a masážní provozovny`},{icon:Cr,text:`Praní ručníků, prostěradel a plachet pro wellness a fitness`},{icon:Mi,text:`Svoz přizpůsobený frekvenci vašeho provozu — bez starostí`},{icon:Sr,text:`Klienti vašeho salónu ocení čistotu a vonně svěží textil`}]}},vw=()=>{let[e,t]=(0,_.useState)(null),[n,r]=(0,_.useState)(`form`),i=()=>{t(null),r(`form`)},a=e=>{t(e),r(`form`)};return(0,M.jsxs)(`div`,{className:`service-landing animate-fade-in`,children:[(0,M.jsx)(`section`,{className:`bg-header`,style:{backgroundImage:`linear-gradient(rgba(26, 42, 58, 0.40), rgba(26, 42, 58, 0.40)), url('/images/b2b_header_towels.jpg')`,backgroundPosition:`center 55%`},children:(0,M.jsxs)(`div`,{className:`container`,style:{textAlign:`center`},children:[(0,M.jsx)(`span`,{className:`service-tag animate-fade-in`,style:{backgroundColor:`var(--primary)`,color:`white`,padding:`0.4rem 1rem`,borderRadius:`20px`,fontSize:`0.9rem`,fontWeight:600,display:`inline-block`,marginBottom:`1.5rem`},children:`Pro firmy a provozy`}),(0,M.jsx)(`h1`,{className:`page-title animate-fade-in`,style:{fontSize:`3rem`,lineHeight:`1.2`,textTransform:`none`,maxWidth:`850px`,margin:`0 auto 1.5rem`},children:`Rychlost, špičková čistota a spolehlivost`}),(0,M.jsx)(`p`,{className:`page-subtitle animate-fade-in`,style:{fontSize:`1.2rem`,maxWidth:`750px`,margin:`0 auto 2.5rem`,lineHeight:`1.6`,color:`rgba(255,255,255,0.9)`},children:`Komplexní správa textilu od svozu po ruční žehlení detailů. Bezstarostný servis pro hotely, restaurace, školky i ordinace se zárukou náhradního plnění.`}),(0,M.jsxs)(`div`,{className:`animate-fade-in`,style:{display:`flex`,justifyContent:`center`,gap:`1rem`,flexWrap:`wrap`},children:[(0,M.jsx)(`a`,{href:`#B2B-contact-form`,className:`btn btn-primary btn-lg`,children:`Vyžádat nezávaznou nabídku`}),(0,M.jsxs)(`a`,{href:`tel:+420601571790`,className:`btn btn-outline btn-white btn-lg`,style:{display:`flex`,alignItems:`center`,gap:`0.5rem`},children:[(0,M.jsx)(pi,{size:18}),` +420 601 571 790`]})]})]})}),(0,M.jsx)(`section`,{className:`container`,style:{marginTop:`-40px`,position:`relative`,zIndex:10},children:(0,M.jsxs)(`div`,{className:`benefits-grid`,children:[(0,M.jsxs)(`div`,{className:`benefit-card animate-fade-in`,children:[(0,M.jsx)(Lr,{size:40,className:`benefit-icon`}),(0,M.jsx)(`h3`,{children:`Spolehlivost`}),(0,M.jsx)(`p`,{children:`Dodržujeme svozové dny a domluvené termíny. Vaše prádlo doručíme vždy včas, abyste měli stálý přehled a klid.`})]}),(0,M.jsxs)(`div`,{className:`benefit-card animate-fade-in`,children:[(0,M.jsx)(Sr,{size:40,className:`benefit-icon`}),(0,M.jsx)(`h3`,{children:`Prvotřídní kvalita`}),(0,M.jsx)(`p`,{children:`Kombinujeme moderní průmyslové praní s precizním ručním žehlením. Oděvy i povlečení získají dokonalou hladkost a svěžest.`})]}),(0,M.jsxs)(`div`,{className:`benefit-card animate-fade-in`,children:[(0,M.jsx)(Ur,{size:40,className:`benefit-icon`}),(0,M.jsx)(`h3`,{children:`Úspora s náhradním plněním`}),(0,M.jsx)(`p`,{children:`Jako uznaný sociální podnik vám dodáme certifikované náhradní plnění. Ušetříte desetitisíce na odvodech státu.`})]})]})}),(0,M.jsx)(`section`,{className:`section`,style:{padding:`80px 0`},children:(0,M.jsxs)(`div`,{className:`container`,children:[(0,M.jsxs)(`div`,{style:{textAlign:`center`,marginBottom:`4rem`},children:[(0,M.jsx)(`span`,{className:`service-tag`,children:`Komplexní partnerství`}),(0,M.jsx)(`h2`,{style:{fontSize:`2.4rem`,marginTop:`0.5rem`,fontWeight:700},children:`Zajišťujeme špičkový servis pro řadu odvětví`}),(0,M.jsx)(`p`,{style:{color:`var(--text-muted)`,maxWidth:`650px`,margin:`0.5rem auto 0`,lineHeight:`1.6`},children:`Přizpůsobíme logistiku, prací programy a hygienické standardy přesně specifikům vašeho podnikání.`})]}),(0,M.jsx)(`div`,{style:{display:`grid`,gridTemplateColumns:`repeat(auto-fit, minmax(300px, 1fr))`,gap:`2rem`},children:Object.values(_w).map(e=>{let t=e.icon;return(0,M.jsxs)(`div`,{className:`wash-category-card wash-category-card--clickable`,role:`button`,tabIndex:0,onClick:()=>a(e),onKeyDown:t=>t.key===`Enter`&&a(e),children:[(0,M.jsx)(t,{className:`wash-icon`}),(0,M.jsx)(`h4`,{children:e.title}),(0,M.jsx)(`p`,{children:e.tagline}),(0,M.jsx)(`span`,{className:`segment-cta-hint`,children:`Zjistit více & poptávka →`})]},e.id)})})]})}),(0,M.jsxs)(`section`,{className:`container service-content-row`,style:{padding:`50px 0 80px`},children:[(0,M.jsxs)(`div`,{className:`service-text animate-fade-in`,children:[(0,M.jsx)(`span`,{className:`service-tag`,children:`Péče o detaily`}),(0,M.jsx)(`h2`,{style:{fontSize:`2.2rem`,marginBottom:`1.5rem`},children:`Bezstarostná logistika firemního prádla na klíč`}),(0,M.jsx)(`p`,{className:`lead`,style:{fontSize:`1.15rem`,color:`var(--text-muted)`,lineHeight:`1.6`,marginBottom:`1.5rem`},children:`Zajistíme kompletní servis – od pravidelného odvozu znečištěného prádla po doručení čistého, precizně vyžehleného a zabaleného prádla zpět k vám.`}),(0,M.jsx)(`p`,{style:{lineHeight:`1.6`,marginBottom:`2rem`},children:`Vaše prádlo je u nás v bezpečí. Používáme moderní systémy evidence a značení prádla, což eliminuje riziko ztráty či záměny jednotlivých kusů. Všechny prací programy a postupy plně odpovídají hygienickým normám a požadavkům na ochranu citlivé pokožky.`}),(0,M.jsxs)(`ul`,{className:`feature-list-simple`,style:{listStyle:`none`,padding:0,margin:0,marginBottom:`2rem`},children:[(0,M.jsxs)(`li`,{style:{display:`flex`,alignItems:`center`,gap:`0.75rem`,marginBottom:`1rem`,lineHeight:`1.6`,textAlign:`left`},children:[(0,M.jsx)(P,{size:20,style:{color:`var(--primary)`,flexShrink:0}}),(0,M.jsxs)(`span`,{children:[(0,M.jsx)(`strong`,{children:`Individuální svozový plán:`}),` Nastavíme svozové dny a frekvence závozů přesně podle rytmu vaší firmy.`]})]}),(0,M.jsxs)(`li`,{style:{display:`flex`,alignItems:`center`,gap:`0.75rem`,marginBottom:`1rem`,lineHeight:`1.6`,textAlign:`left`},children:[(0,M.jsx)(P,{size:20,style:{color:`var(--primary)`,flexShrink:0}}),(0,M.jsxs)(`span`,{children:[(0,M.jsx)(`strong`,{children:`Systém značení prádla:`}),` Každý kus textilu je zaevidován, což zaručuje nulové záměny a dokonalou kontrolu.`]})]}),(0,M.jsxs)(`li`,{style:{display:`flex`,alignItems:`center`,gap:`0.75rem`,marginBottom:`1rem`,lineHeight:`1.6`,textAlign:`left`},children:[(0,M.jsx)(P,{size:20,style:{color:`var(--primary)`,flexShrink:0}}),(0,M.jsxs)(`span`,{children:[(0,M.jsx)(`strong`,{children:`Možnost pronájmu textilu:`}),` Nemusíte investovat do vlastního drahého prádla – rádi vám jej pronajmeme.`]})]}),(0,M.jsxs)(`li`,{style:{display:`flex`,alignItems:`center`,gap:`0.75rem`,marginBottom:`1rem`,lineHeight:`1.6`,textAlign:`left`},children:[(0,M.jsx)(P,{size:20,style:{color:`var(--primary)`,flexShrink:0}}),(0,M.jsxs)(`span`,{children:[(0,M.jsx)(`strong`,{children:`Garance stálého kontaktu:`}),` Přidělíme vám dedikovaného obchodního zástupce pro rychlé řešení požadavků.`]})]})]})]}),(0,M.jsx)(`div`,{className:`service-image-box animate-fade-in`,style:{flex:`1.2`},children:(0,M.jsx)(`img`,{src:`/images/b2b_van.jpg`,alt:`Rozvoz prádla – dodávka Zelený ostrov`,style:{width:`100%`,borderRadius:`12px`,boxShadow:`var(--shadow-md)`}})})]}),(0,M.jsx)(`section`,{className:`section section-bg-soft`,style:{padding:`80px 0`,borderTop:`1px solid var(--border-color)`,borderBottom:`1px solid var(--border-color)`},children:(0,M.jsxs)(`div`,{className:`container`,children:[(0,M.jsx)(`h2`,{className:`section-title`,style:{textAlign:`center`,marginBottom:`3.5rem`},children:`Jak probíhá spolupráce s námi?`}),(0,M.jsxs)(`div`,{className:`how-it-works-grid`,children:[(0,M.jsxs)(`div`,{className:`step-card`,children:[(0,M.jsx)(`div`,{className:`step-number`,children:`1`}),(0,M.jsx)(Tr,{className:`step-icon`}),(0,M.jsx)(`h4`,{children:`1. Nezávazná poptávka`}),(0,M.jsx)(`p`,{children:`Vyplníte jednoduchý poptávkový formulář níže nebo nám rovnou zavoláte. Rychle se s vámi spojíme pro domluvení detailů.`})]}),(0,M.jsxs)(`div`,{className:`step-card`,children:[(0,M.jsx)(`div`,{className:`step-number`,children:`2`}),(0,M.jsx)(yi,{className:`step-icon`}),(0,M.jsx)(`h4`,{children:`2. Nabídka & vzorek`}
295),(0,M.jsx)(`p`,{children:`Navrhneme vám individuální ceník na základě předpokládaných objemů. V případě zájmu si vyzkoušíme zkušební praní.`})]}),(0,M.jsxs)(`div`,{className:`step-card`,children:[(0,M.jsx)(`div`,{className:`step-number`,children:`3`}),(0,M.jsx)(Lr,{className:`step-icon`}),(0,M.jsx)(`h4`,{children:`3. Pravivelný svoz`}),(0,M.jsx)(`p`,{children:`Podle dohodnutého logistického plánu k vám jezdí náš kurýr. Špinavé prádlo naložíme, odvezeme a postaráme se o všechnu práci.`})]}),(0,M.jsxs)(`div`,{className:`step-card`,children:[(0,M.jsx)(`div`,{className:`step-number`,children:`4`}),(0,M.jsx)(xi,{className:`step-icon`}),(0,M.jsx)(`h4`,{children:`4. Voňavé doručení`}),(0,M.jsx)(`p`,{children:`Čisté, perfektně vymandlované či vyžehlené a zabalené prádlo přivezeme zpět. Společně s dodávkou obdržíte podklady pro náhradní plnění.`})]})]})]})}),(0,M.jsx)(`section`,{className:`container`,style:{padding:`80px 0 40px`},children:(0,M.jsxs)(`div`,{className:`glass-card animate-fade-in`,style:{padding:`3rem`,borderRadius:`16px`,border:`1px solid var(--border-color)`,backgroundColor:`rgba(255,255,255,0.7)`,display:`flex`,flexDirection:`column`,gap:`1.5rem`,maxWidth:`900px`,margin:`0 auto`},children:[(0,M.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`1rem`},children:[(0,M.jsx)(`div`,{style:{backgroundColor:`var(--primary-light)`,padding:`0.75rem`,borderRadius:`50%`,display:`flex`,color:`var(--primary)`},children:(0,M.jsx)(Ur,{size:28})}),(0,M.jsx)(`h3`,{style:{margin:0,fontSize:`1.6rem`,color:`var(--secondary)`},children:`Získejte finanční úsporu s náhradním plněním`})]}),(0,M.jsx)(`p`,{style:{lineHeight:`1.7`,margin:0,color:`var(--text-main)`},children:`Zelený ostrov s.r.o. je registrovaným a uznaným zaměstnavatelem na chráněném trhu práce. Podle platné legislativy musí každá firma s více než 25 zaměstnanci povinně zaměstnávat 4 % osob se zdravotním postižením (OZP).`}),(0,M.jsxs)(`p`,{style:{lineHeight:`1.7`,margin:0,color:`var(--text-muted)`},children:[`Pokud tuto povinnost nesplňujete přímo, musíte státu odvádět roční pokuty (cca 100 000 Kč za každou chybějící osobu). `,(0,M.jsx)(`strong`,{children:`Odběrem našich profesionálních služeb splníte tuto zákonnou povinnost formou náhradního plnění a ušetříte na daních a odvodech.`}),` Všechny administrativní podklady a potvrzení vyřídíme kompletně za vás.`]})]})}),(0,M.jsx)(`section`,{id:`B2B-contact-form`,className:`service-contact-section`,style:{padding:`80px 0`,background:`linear-gradient(135deg, var(--bg-soft) 0%, var(--bg-main) 100%)`,borderTop:`1px solid var(--border-color)`,borderBottom:`1px solid var(--border-color)`},children:(0,M.jsxs)(`div`,{className:`container`,style:{maxWidth:`650px`},children:[(0,M.jsxs)(`div`,{style:{textAlign:`center`,marginBottom:`2.5rem`},children:[(0,M.jsx)(`span`,{className:`service-tag`,children:`Nezávazná poptávka`}),(0,M.jsx)(`h2`,{style:{fontSize:`2.2rem`,marginTop:`0.5rem`,marginBottom:`1rem`,fontWeight:700},children:`Vyžádejte si individuální nabídku`}),(0,M.jsx)(`p`,{style:{color:`var(--text-muted)`,lineHeight:`1.5`},children:`Vyplňte prosím krátký formulář a naši pracovníci pro vás obratem připraví nezávaznou cenovou kalkulaci a kalkulaci náhradního plnění.`})]}),(0,M.jsx)(pw,{serviceTitle:`Služby pro firmy (B2B)`})]})}),(0,M.jsx)(`section`,{className:`service-stats`,children:(0,M.jsx)(`div`,{className:`container`,children:(0,M.jsxs)(`div`,{className:`stats-grid`,children:[(0,M.jsxs)(`div`,{className:`stat-item`,children:[(0,M.jsx)(`h2`,{children:`120+`}),(0,M.jsx)(`p`,{children:`Spokojených firemních partnerů`})]}),(0,M.jsxs)(`div`,{className:`stat-item`,children:[(0,M.jsx)(`h2`,{children:`100%`}),(0,M.jsx)(`p`,{children:`Garantované náhradní plnění`})]}),(0,M.jsxs)(`div`,{className:`stat-item`,children:[(0,M.jsx)(`h2`,{children:`10 let`}),(0,M.jsx)(`p`,{children:`Zkušeností a praxe v B2B oboru`})]})]})})}),(0,M.jsx)(`section`,{className:`ppc-cta`,children:(0,M.jsxs)(`div`,{className:`container`,children:[(0,M.jsx)(`h2`,{children:`Hledáte spolehlivého a rychlého partnera pro vaši firmu?`}),(0,M.jsx)(`p`,{className:`mb-4`,style:{fontSize:`1.15rem`,maxWidth:`650px`,margin:`0 auto 2.5rem`,lineHeight:`1.6`},children:`Zavolejte nám. Naše obchodní oddělení s vámi probere veškeré možnosti spolupráce, nastaví individuální svoz a odpoví na všechny vaše dotazy.`}),(0,M.jsxs)(`div`,{style:{display:`flex`,justifyContent:`center`,gap:`1rem`,flexWrap:`wrap`},children:[(0,M.jsxs)(`a`,{href:`tel:+420601571790`,className:`btn btn-primary btn-lg`,style:{display:`flex`,alignItems:`center`,gap:`0.5rem`},children:[(0,M.jsx)(pi,{size:20}),` Zavolat +420 601 571 790`]}),(0,M.jsx)(`a`,{href:`#B2B-contact-form`,className:`btn btn-outline btn-lg`,children:`Poptávkový formulář`})]})]})}),e&&(0,gw.createPortal)((0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(`div`,{className:`drawer-overlay`,onClick:i,"aria-hidden":`true`}),(0,M.jsxs)(`aside`,{className:`segment-drawer`,role:`dialog`,"aria-modal":`true`,"aria-label":`Poptávka: ${e.t
295itle}`,children:[(0,M.jsxs)(`div`,{className:`segment-drawer__header`,children:[(0,M.jsxs)(`div`,{className:`segment-drawer__title-row`,children:[(0,M.jsx)(e.icon,{size:28,className:`segment-drawer__icon`}),(0,M.jsxs)(`div`,{children:[(0,M.jsx)(`span`,{className:`segment-drawer__tag`,children:`Nezávazná poptávka`}),(0,M.jsx)(`h2`,{className:`segment-drawer__title`,children:e.title}),(0,M.jsx)(`p`,{className:`segment-drawer__tagline`,children:e.tagline})]})]}),(0,M.jsx)(`button`,{className:`drawer-close-btn`,onClick:i,"aria-label":`Zavřít`,children:(0,M.jsx)(Li,{size:22})})]}),(0,M.jsxs)(`div`,{className:`drawer-mobile-tabs`,children:[(0,M.jsx)(`button`,{className:`drawer-mobile-tab ${n===`form`?`active`:``}`,onClick:()=>r(`form`),children:`Poptávka`}),(0,M.jsx)(`button`,{className:`drawer-mobile-tab ${n===`benefits`?`active`:``}`,onClick:()=>r(`benefits`),children:`Proč my?`})]}),(0,M.jsxs)(`div`,{className:`segment-drawer__body`,children:[e.image&&(0,M.jsx)(`div`,{className:`segment-drawer__image`,children:(0,M.jsx)(`img`,{src:e.image,alt:e.title})}),(0,M.jsxs)(`div`,{className:`segment-drawer__benefits${n===`benefits`?` mobile-tab-active`:``}`,children:[(0,M.jsx)(`p`,{className:`segment-drawer__benefits-title`,children:`Proč Zelený ostrov?`}),e.benefits.map((e,t)=>(0,M.jsxs)(`div`,{className:`drawer-benefit`,children:[(0,M.jsx)(e.icon,{size:16,className:`drawer-benefit__icon`}),(0,M.jsx)(`span`,{children:e.text})]},t))]}),(0,M.jsx)(`div`,{className:`segment-drawer__form${n===`form`?` mobile-tab-active`:``}`,children:(0,M.jsx)(pw,{serviceTitle:e.serviceTitle})})]})]})]}),document.body)]})},yw=()=>{let[e,t]=(0,_.useState)(10),n=(e=>e<=5?5:e<=15?10:15)(e),r=e*4,i=e*2;return(0,M.jsxs)(`div`,{className:`service-landing animate-fade-in`,children:[(0,M.jsx)(`section`,{className:`bg-header`,style:{backgroundImage:`linear-gradient(rgba(26, 42, 58, 0.50), rgba(26, 42, 58, 0.50)), url('/images/bulk_pickup_hero.png')`,backgroundPosition:`center 50%`},children:(0,M.jsxs)(`div`,{className:`container`,style:{textAlign:`center`},children:[(0,M.jsx)(`span`,{className:`service-tag animate-fade-in`,style:{backgroundColor:`var(--primary)`,color:`white`,padding:`0.4rem 1rem`,borderRadius:`20px`,fontSize:`0.9rem`,fontWeight:600,display:`inline-block`,marginBottom:`1.5rem`},children:`Benefit pro zaměstnance`}),(0,M.jsx)(`h1`,{className:`page-title animate-fade-in`,style:{fontSize:`3rem`,lineHeight:`1.2`,textTransform:`none`,maxWidth:`900px`,margin:`0 auto 1.5rem`},children:`Hromadný svoz prádla přímo do vaší firmy`}),(0,M.jsx)(`p`,{className:`page-subtitle animate-fade-in`,style:{fontSize:`1.2rem`,maxWidth:`750px`,margin:`0 auto 2.5rem`,lineHeight:`1.6`,color:`rgba(255,255,255,0.9)`},children:`Pohodlné praní a žehlení jako firemní benefit. Zaměstnanci ušetří čas a peníze díky slevě až 15 % a prádlo odevzdají přímo v kanceláři. Svozy a odvozy probíhají každé pondělí a čtvrtek.`}),(0,M.jsxs)(`div`,{className:`animate-fade-in`,style:{display:`flex`,justifyContent:`center`,gap:`1rem`,flexWrap:`wrap`},children:[(0,M.jsx)(`a`,{href:`#inquiry-form-section`,className:`btn btn-primary btn-lg`,children:`Zřídit svoz u nás ve firmě`}),(0,M.jsxs)(`a`,{href:`tel:+420601571790`,className:`btn btn-outline btn-white btn-lg`,style:{display:`flex`,alignItems:`center`,gap:`0.5rem`},children:[(0,M.jsx)(pi,{size:18}),` +420 601 571 790`]})]})]})}),(0,M.jsx)(`section`,{className:`container`,style:{marginTop:`-40px`,position:`relative`,zIndex:10},children:(0,M.jsxs)(`div`,{className:`benefits-grid`,children:[(0,M.jsxs)(`div`,{className:`benefit-card animate-fade-in`,children:[(0,M.jsx)(di,{size:40,className:`benefit-icon`}),(0,M.jsx)(`h3`,{children:`Firemní sleva`}),(0,M.jsx)(`p`,{children:`Zaměstnanci získají slevu 5 % až 15 % na všechny naše služby dle celkové zapojenosti týmu.`})]}),(0,M.jsxs)(`div`,{className:`benefit-card animate-fade-in`,children:[(0,M.jsx)(Lr,{size:40,className:`benefit-icon`}),(0,M.jsx)(`h3`,{children:`Faktura za služby`}),(0,M.jsx)(`p`,{children:`Platba probíhá na základě faktury vystavené podle skutečného množství prádla a náročnosti praní.`})]}),(0,M.jsxs)(`div`,{className:`benefit-card animate-fade-in`,children:[(0,M.jsx)(xi,{size:40,className:`benefit-icon`}),(0,M.jsx)(`h3`,{children:`100% Ekologické`}),(0,M.jsx)(`p`,{children:`Hromadná logistika ušetří desítky aut v ulicích. Jeden svoz kurýrem namísto 30 individuálních cest do čistírny.`})]})]})}),(0,M.jsx)(`section`,{className:`section`,style:{padding:`80px 0`},children:(0,M.jsxs)(`div`,{className:`container`,style:{maxWidth:`1000px`},children:[(0,M.jsxs)(`div`,{style:{textAlign:`center`,marginBottom:`3.5rem`},children:[(0,M.jsx)(`span`,{className:`service-tag`,children:`Simulace benefitu`}),(0,M.jsx)(`h2`,{style:{fontSize:`2.4rem`,marginTop:`0.5rem`,fontWeight:700},children:`Spočítejte si přínos svozu ve vaší firmě`}),(0,M.jsx)(`p`,{style:{color:`var(--text-muted)`,maxWidth:`650px`,margin:`0.5rem auto 0`,lineHeight:`1.6`}
295,children:`Nastavte si posuvníkem předpokládaný počet zapojených zaměstnanců a ihned uvidíte kumulativní výhody.`})]}),(0,M.jsxs)(`div`,{className:`glass-card`,style:{display:`grid`,gridTemplateColumns:`repeat(auto-fit, minmax(320px, 1fr))`,gap:`3rem`,padding:`3rem`,alignItems:`center`,backgroundColor:`#ffffff`},children:[(0,M.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`2rem`},children:[(0,M.jsxs)(`div`,{children:[(0,M.jsxs)(`label`,{style:{fontWeight:600,color:`var(--secondary)`,fontSize:`1.1rem`,display:`flex`,justifyContent:`space-between`,marginBottom:`1rem`},children:[(0,M.jsx)(`span`,{children:`Počet zapojených zaměstnanců:`}),(0,M.jsx)(`span`,{style:{color:`var(--primary)`,fontSize:`1.4rem`,fontWeight:700},children:e})]}),(0,M.jsx)(`input`,{type:`range`,min:`1`,max:`50`,value:e,onChange:e=>t(Number(e.target.value)),style:{width:`100%`,accentColor:`var(--primary)`,cursor:`pointer`,height:`8px`,borderRadius:`4px`}}),(0,M.jsxs)(`div`,{style:{display:`flex`,justifyContent:`space-between`,fontSize:`0.85rem`,color:`var(--text-muted)`,marginTop:`0.5rem`},children:[(0,M.jsx)(`span`,{children:`1 zaměstnanec`}),(0,M.jsx)(`span`,{children:`50 zaměstnanců`})]})]}),(0,M.jsxs)(`div`,{style:{backgroundColor:`var(--bg-soft)`,padding:`1.5rem`,borderRadius:`8px`,borderLeft:`4px solid var(--primary)`,fontSize:`0.92rem`,lineHeight:`1.5`},children:[(0,M.jsxs)(`div`,{style:{fontWeight:600,color:`var(--secondary)`,marginBottom:`0.3rem`,display:`flex`,alignItems:`center`,gap:`0.5rem`},children:[(0,M.jsx)(Ei,{size:16,style:{color:`var(--primary)`}}),`Jak roste sleva pro zaměstnance:`]}),`1–5 zaměstnanců: `,(0,M.jsx)(`strong`,{children:`sleva 5 %`}),(0,M.jsx)(`br`,{}),`6–15 zaměstnanců: `,(0,M.jsx)(`strong`,{children:`sleva 10 %`}),(0,M.jsx)(`br`,{}),`16 a více zaměstnanců: `,(0,M.jsx)(`strong`,{children:`sleva 15 %`})]})]}),(0,M.jsxs)(`div`,{style:{backgroundColor:`var(--bg-soft)`,padding:`2rem`,borderRadius:`12px`,border:`1px solid var(--border-color)`,display:`flex`,flexDirection:`column`,gap:`1.5rem`},children:[(0,M.jsxs)(`div`,{style:{borderBottom:`1px solid var(--border-color)`,paddingBottom:`1rem`},children:[(0,M.jsx)(`div`,{style:{fontSize:`0.9rem`,color:`var(--text-muted)`,textTransform:`uppercase`,letterSpacing:`0.05em`,fontWeight:600},children:`Firemní sleva na objednávku`}),(0,M.jsxs)(`div`,{style:{fontSize:`2.5rem`,fontWeight:800,color:`var(--primary)`,marginTop:`0.2rem`},children:[n,` %`]})]}),(0,M.jsxs)(`div`,{style:{display:`flex`,justifyContent:`space-between`,alignItems:`center`},children:[(0,M.jsxs)(`div`,{children:[(0,M.jsx)(`div`,{style:{fontWeight:600,color:`var(--secondary)`},children:`Ušetřený čas celkem`}),(0,M.jsx)(`div`,{style:{fontSize:`0.85rem`,color:`var(--text-muted)`},children:`Za měsíc namísto praní doma`})]}),(0,M.jsxs)(`div`,{style:{fontSize:`1.5rem`,fontWeight:700,color:`var(--secondary)`},children:[r,` hod.`]})]}),(0,M.jsxs)(`div`,{style:{display:`flex`,justifyContent:`space-between`,alignItems:`center`},children:[(0,M.jsxs)(`div`,{children:[(0,M.jsx)(`div`,{style:{fontWeight:600,color:`var(--secondary)`},children:`Ušetřené cesty autem`}),(0,M.jsx)(`div`,{style:{fontSize:`0.85rem`,color:`var(--text-muted)`},children:`Cesty do čistírny a zpět`})]}),(0,M.jsxs)(`div`,{style:{fontSize:`1.5rem`,fontWeight:700,color:`var(--secondary)`},children:[i,` jízd`]})]})]})]})]})}),(0,M.jsx)(`section`,{className:`section section-bg-soft`,style:{padding:`80px 0`,borderTop:`1px solid var(--border-color)`,borderBottom:`1px solid var(--border-color)`},children:(0,M.jsxs)(`div`,{className:`container`,children:[(0,M.jsx)(`h2`,{className:`section-title`,style:{textAlign:`center`,marginBottom:`3.5rem`},children:`Jak svoz ve firmě funguje v praxi?`}),(0,M.jsxs)(`div`,{className:`how-it-works-grid`,children:[(0,M.jsxs)(`div`,{className:`step-card`,children:[(0,M.jsx)(`div`,{className:`step-number`,children:`1`}),(0,M.jsx)(Tr,{className:`step-icon`}),(0,M.jsx)(`h4`,{children:`1. Domluva s firmou`}),(0,M.jsx)(`p`,{children:`Zřídíme svozové místo v kanceláři (např. na recepci nebo v šatně) a vygenerujeme pro vaši firmu unikátní slevový kód.`})]}),(0,M.jsxs)(`div`,{className:`step-card`,children:[(0,M.jsx)(`div`,{className:`step-number`,children:`2`}),(0,M.jsx)(Ni,{className:`step-icon`}),(0,M.jsx)(`h4`,{children:`2. Individuální objednávka`}),(0,M.jsx)(`p`,{children:`Každý zaměstnanec si sám objedná na našem e-shopu, v košíku zadá firemní slevový kód a prádlo přinese v tašce do sběrného boxu v práci.`})]}),(0,M.jsxs)(`div`,{className:`step-card`,children:[(0,M.jsx)(`div`,{className:`step-number`,children:`3`}),(0,M.jsx)(Mi,{className:`step-icon`}),(0,M.jsx)(`h4`,{children:`3. Svoz v pondělí a čtvrtek`}),(0,M.jsx)(`p`,{children:`Svozy a odvozy prádla probíhají pravidelně každé pondělí a čtvrtek. Náš kurýr vyzvedne všechny tašky najednou a odveze je k vyčištění.`})]}),(0,M.jsxs)(`div`,{className:`step-card`,children:[(0,M.jsx)(`div`,{className:`step-number`,children:`4`}),(0,M.jsx)(Sr,{className:`step-icon`}),(0,M.jsx)(`h4`,{children:`4. Voňavý návrat`}),(0,M.jsx)(`p`,{children:`Do 48 hodin dovezeme čisté a vyžehlené oděvy zpět. Každá taška je zabalena a jasně označena jménem zaměstnance.`})]})]})]})}),(0,M.jsx)(`section`,{className:`section`,style:{padding:`80px 0`},children:(0,M.jsxs)(`div`,{className:`container`,children:[(0,M.jsxs)(`div`,{style:{textAlign:`center`,marginBottom:`4rem`},children:[(0,M.jsx)(`span`,{className:`service-tag`,children:`Výhody benefitu`}),(0,M.jsx)(`h2`,{style:{fontSize:`2.4rem`,marginTop:`0.5rem`,fontWeight:700},children:`Proč je to výhodné pro obě strany?`})]}),(0,M.jsxs)(`div`,{style:{display:`grid`,gridTemplateColumns:`repeat(auto-fit, minmax(320px, 1fr))`,gap:`3rem`},children:[(0,M.jsxs)(`div`,{className:`glass-card`,style:{padding:`2.5rem`,backgroundColor:`#ffffff`},children:[(0,M.jsxs)(`h3`,{style:{color:`var(--primary)`,borderBottom:`2.5px solid var(--primary-light)`,paddingBottom:`0.5rem`,marginBottom:`1.5rem`,display:`flex`,alignItems:`center`,gap:`0.5rem`},children:[(0,M.jsx)(Ni,{size:22}),` Pro Vaše zaměstnance`]}),(0,M.jsxs)(`ul`,{style:{display:`flex`,flexDirection:`column`,gap:`1.2rem`,padding:0},children:[(0,M.jsxs)(`li`,{style:{display:`flex`,gap:`0.75rem`,alignItems:`flex-start`,lineHeight:`1.5`},children:[(0,M.jsx)(P,{size:18,style:{color:`var(--primary)`,flexShrink:0,marginTop:`2px`}}),(0,M.jsxs)(`span`,{children:[(0,M.jsx)(`strong`,{children:`Sleva až 15 %:`}),` Exkluzivní firemní ceny na praní, žehlení, mandlování i chemické čištění obleků či kabátů.`]})]}),(0,M.jsxs)(`li`,{style:{display:`flex`,gap:`0.75rem`,alignItems:`flex-start`,lineHeight:`1.5`},children:[(0,M.jsx)(P,{size:18,style:{color:`var(--primary)`,flexShrink:0,marginTop:`2px`}}),(0,M.jsxs)(`span`,{children:[(0,M.jsx)(`strong`,{children:`Úspora času:`}),` Konec domácímu žehlení košil a praní povlečení o víkendech. Vše vyřeší pohodlně v práci.`]})]}),(0,M.jsxs)(`li`,{style:{display:`flex`,gap:`0.75rem`,alignItems:`flex-start`,lineHeight:`1.5`},children:[(0,M.jsx)(P,{size:18,style:{color:`var(--primary)`,flexShrink:0,marginTop:`2px`}}),(0,M.jsxs)(`span`,{children:[(0,M.jsx)(`strong`,{children:`Bezpečná manipulace:`}),` Prádlo vracíme v samostatných ochranných fóliích na ramínkác
295h nebo čistě poskládané v taškách.`]})]}),(0,M.jsxs)(`li`,{style:{display:`flex`,gap:`0.75rem`,alignItems:`flex-start`,lineHeight:`1.5`},children:[(0,M.jsx)(P,{size:18,style:{color:`var(--primary)`,flexShrink:0,marginTop:`2px`}}),(0,M.jsxs)(`span`,{children:[(0,M.jsx)(`strong`,{children:`Odborná kvalita:`}),` Šetrné bio-pracích gely a profesionální ruční žehlení detailů, které prodlouží životnost oděvů.`]})]})]})]}),(0,M.jsxs)(`div`,{className:`glass-card`,style:{padding:`2.5rem`,backgroundColor:`#ffffff`},children:[(0,M.jsxs)(`h3`,{style:{color:`var(--secondary)`,borderBottom:`2.5px solid var(--border-color)`,paddingBottom:`0.5rem`,marginBottom:`1.5rem`,display:`flex`,alignItems:`center`,gap:`0.5rem`},children:[(0,M.jsx)(Tr,{size:22}),` Pro firmu a HR oddělení`]}),(0,M.jsxs)(`ul`,{style:{display:`flex`,flexDirection:`column`,gap:`1.2rem`,padding:0},children:[(0,M.jsxs)(`li`,{style:{display:`flex`,gap:`0.75rem`,alignItems:`flex-start`,lineHeight:`1.5`},children:[(0,M.jsx)(P,{size:18,style:{color:`var(--primary)`,flexShrink:0,marginTop:`2px`}}),(0,M.jsxs)(`span`,{children:[(0,M.jsx)(`strong`,{children:`Nulové náklady:`}),` Zavedení svozu a slevového kódu nestojí firmu ani korunu. Platíte pouze za případnou nadstandardní spolupráci.`]})]}),(0,M.jsxs)(`li`,{style:{display:`flex`,gap:`0.75rem`,alignItems:`flex-start`,lineHeight:`1.5`},children:[(0,M.jsx)(P,{size:18,style:{color:`var(--primary)`,flexShrink:0,marginTop:`2px`}}),(0,M.jsxs)(`span`,{children:[(0,M.jsx)(`strong`,{children:`Jednoduchá fakturace:`}),` Vystavujeme přehledné faktury podle skutečného množství a náročnosti vypraného prádla.`]})]}),(0,M.jsxs)(`li`,{style:{display:`flex`,gap:`0.75rem`,alignItems:`flex-start`,lineHeight:`1.5`},children:[(0,M.jsx)(P,{size:18,style:{color:`var(--primary)`,flexShrink:0,marginTop:`2px`}}),(0,M.jsxs)(`span`,{children:[(0,M.jsx)(`strong`,{children:`Atraktivní benefit:`}),` Velmi praktický a viditelný benefit, který reálně usnadňuje život a lidé ho ocení každý týden.`]})]}),(0,M.jsxs)(`li`,{style:{display:`flex`,gap:`0.75rem`,alignItems:`flex-start`,lineHeight:`1.5`},children:[(0,M.jsx)(P,{size:18,style:{color:`var(--primary)`,flexShrink:0,marginTop:`2px`}}),(0,M.jsxs)(`span`,{children:[(0,M.jsx)(`strong`,{children:`Ekologická odpovědnost:`}),` Jeden hromadný odvoz šetří uhlíkovou stopu. Podpora konceptu zelené a udržitelné kanceláře.`]})]})]})]})]})]})}),(0,M.jsx)(`section`,{className:`section section-bg-soft`,style:{padding:`80px 0`},children:(0,M.jsxs)(`div`,{className:`container`,style:{maxWidth:`800px`},children:[(0,M.jsx)(`h2`,{className:`section-title`,style:{textAlign:`center`,marginBottom:`3.5rem`},children:`Často kladené otázky (FAQ)`}),(0,M.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`1.5rem`},children:[(0,M.jsxs)(`div`,{className:`glass-card`,style:{padding:`1.5rem 2rem`,backgroundColor:`#ffffff`},children:[(0,M.jsxs)(`h4`,{style:{fontSize:`1.1rem`,marginBottom:`0.5rem`,display:`flex`,alignItems:`center`,gap:`0.5rem`,color:`var(--secondary)`},children:[(0,M.jsx)(Ir,{size:18,style:{color:`var(--primary)`,flexShrink:0}}),`Platí firma nějaké měsíční poplatky za svoz?`]}),(0,M.jsx)(`p`,{style:{margin:0,fontSize:`0.95rem`,color:`var(--text-muted)`,lineHeight:`1.5`},children:`Ne, služba je pro firmu 100% bezplatná. Svozy realizujeme zdarma v rámci naší pravidelné logistické sítě, pokud je ve firmě alespoň několik aktivních objednávek týdně.`})]}),(0,M.jsxs)(`div`,{className:`glass-card`,style:{padding:`1.5rem 2rem`,backgroundColor:`#ffffff`},children:[(0,M.jsxs)(`h4`,{style:{fontSize:`1.1rem`,marginBottom:`0.5rem`,display:`flex`,alignItems:`center`,gap:`0.5rem`,color:`var(--secondary)`},children:[(0,M.jsx)(Ir,{size:18,style:{color:`var(--primary)`,flexShrink:0}}),`Jak se řeší placení a fakturace?`]}),(0,M.jsx)(`p`,{style:{margin:0,fontSize:`0.95rem`,color:`var(--text-muted)`,lineHeight:`1.5`},children:`Platba probíhá na základě faktury, kterou vystavujeme podle skutečného množství prádla a náročnosti praní. Vše je transparentně doloženo detailním rozpisem.`})]}),(0,M.jsxs)(`div`,{className:`glass-card`,style:{padding:`1.5rem 2rem`,backgroundColor:`#ffffff`},children:[(0,M.jsxs)(`h4`,{style:{fontSize:`1.1rem`,marginBottom:`0.5rem`,display:`flex`,alignItems:`center`,gap:`0.5rem`,color:`var(--secondary)`},children:[(0,M.jsx)(Ir,{size:18,style:{color:`var(--primary)`,flexShrink:0}}),`Jak zaměstnanec prádlo odevzdá a jak mu bude vráceno?`]}),(0,M.jsx)(`p`,{style:{margin:0,fontSize:`0.95rem`,color:`var(--text-muted)`,lineHeight:`1.5`},children:`Prádlo odevzdá v jakékoliv tašce označené svým jménem a číslem objednávky na určené sběrné místo ve vaší firmě (např. recepce). Zpět mu prádlo doručíme vyčištěné, vyžehlené a zabalené v ochranné fólii, opět označené jeho jménem.`})]})]})]})}),(0,M.jsx)(`section`,{id:`inquiry-form-section`,style:{padding:`80px 0`,background:`linear-gradient(135deg, var(--bg-soft) 0%, var(--bg-main) 100%)`,borderTop:`1px solid var(--border-color)`,borderBottom:`1px solid var(--border-color)`},children:(0,M.jsxs)(`div`,{className:`container`,style:{maxWidth:`650px`},children:[(0,M.jsxs)(`div`,{style:{textAlign:`center`,marginBottom:`2.5rem`},children:[(0,M.jsx)(`span`,{className:`service-tag`,children:`Nezávazná poptávka svozu`}),(0,M.jsx)(`h2`,{style:{fontSize:`2.2rem`,marginTop:`0.5rem`,marginBottom:`1rem`,fontWeight:700},children:`Zaveďte svoz u vás ve firmě`}),(0,M.jsx)(`p`,{style:{color:`var(--text-muted)`,lineHeight:`1.5`},children:`Máte zájem o hromadný svoz prádla jako benefit pro vaše zaměstnance? Vyplňte formulář a my se v
295ám ozveme k domluvení detailů a nastavení svozového dne.`})]}),(0,M.jsx)(pw,{serviceTitle:`Hromadný svoz pro firmy`})]})})]})},bw=()=>(0,M.jsxs)(`div`,{className:`service-landing`,children:[(0,M.jsx)(`section`,{className:`bg-header`,style:{backgroundImage:`url('/images/wet_cleaning_header.jpg')`},children:(0,M.jsxs)(`div`,{className:`container`,children:[(0,M.jsx)(`h1`,{className:`page-title animate-fade-in`,children:`Mokré čištění W`}),(0,M.jsx)(`p`,{className:`page-subtitle animate-fade-in`,children:`Nejšetrnější technologie současnosti. Čistíme vodou a ekologickými prostředky i to, co ostatní čistí chemicky. Bez agresivního zápachu, šetrně k přírodě a s maximální péčí o každé jednotlivé vlákno.`}),(0,M.jsx)(j,{to:`/objednat?category=Mokré čištění W`,className:`btn btn-primary btn-lg mt-4`,children:`Objednat šetrné čištění`})]})}),(0,M.jsx)(`section`,{className:`container`,children:(0,M.jsxs)(`div`,{className:`benefits-grid`,children:[(0,M.jsxs)(`div`,{className:`benefit-card animate-fade-in`,children:[(0,M.jsx)(ti,{size:40,className:`benefit-icon`}),(0,M.jsx)(`h3`,{children:`100% Ekologická metoda`}),(0,M.jsx)(`p`,{children:`Nepoužíváme perchlor ani jiná agresivní rozpouštědla. Pracujeme výhradně s biologicky zcela odbouratelnými detergenty a přísadami.`})]}),(0,M.jsxs)(`div`,{className:`benefit-card animate-fade-in`,children:[(0,M.jsx)(Ii,{size:40,className:`benefit-icon`}),(0,M.jsx)(`h3`,{children:`Svěžest a přirozená vůně`}
295),(0,M.jsx)(`p`,{children:`Na rozdíl od standardního chemického čištění oděvy nezapáchají chemií. Voní přirozenou čistotou a mají jemný a nadýchaný dotek.`})]}),(0,M.jsxs)(`div`,{className:`benefit-card animate-fade-in`,children:[(0,M.jsx)(xi,{size:40,className:`benefit-icon`}),(0,M.jsx)(`h3`,{children:`Hypoalergenní péče`}),(0,M.jsx)(`p`,{children:`Proces je ideální pro děti, alergiky a lidi s citlivou pletí. Ve vyčištěných textilních vláknech nezůstávají absolutně žádné chemické zbytky.`})]})]})}),(0,M.jsxs)(`section`,{className:`container service-content-row`,style:{padding:`80px 0 50px`},children:[(0,M.jsxs)(`div`,{className:`service-text animate-fade-in`,children:[(0,M.jsx)(`span`,{className:`service-tag`,children:`Špičková technologie Meron`}),(0,M.jsx)(`h2`,{style:{fontSize:`2.2rem`,marginBottom:`1.5rem`},children:`Revoluce v péči o jemné a luxusní materiály`}),(0,M.jsxs)(`p`,{className:`lead`,style:{fontSize:`1.15rem`,color:`var(--text-muted)`,lineHeight:`1.6`,marginBottom:`2rem`},children:[`Mokré čištění (Wet Cleaning) je profesionální ekologický proces využívající vodu a speciální počítačem řízené cykly strojů `,(0,M.jsx)(`strong`,{children:`Meron Wet Cleaning`}),`. Díky šetrným biologickým kondicionérům chráníme jemná textilní vlákna před sražením a poškozením. Tato metoda oživuje barvy, obnovuje pružnost oděvů a bezpečně vyčistí i ty nejchoulostivější kousky z vašeho šatníku.`]}),(0,M.jsx)(`h3`,{style:{fontSize:`1.4rem`,marginBottom:`1rem`,color:`var(--secondary)`},children:`Co vše čistíme metodou Wet Cleaning?`}),(0,M.jsxs)(`ul`,{className:`feature-list-simple`,style:{listStyle:`none`,padding:0,margin:0,marginBottom:`2rem`},children:[(0,M.jsxs)(`li`,{style:{display:`flex`,alignItems:`center`,gap:`0.75rem`,marginBottom:`1rem`,lineHeight:`1.6`,textAlign:`left`},children:[(0,M.jsx)(P,{size:20,style:{color:`var(--primary)`,flexShrink:0}}),(0,M.jsxs)(`span`,{children:[(0,M.jsx)(`strong`,{children:`Jemné tkaniny:`}),` Hedvábí, kašmír, jemná vlna, angora, alpaka, viskóza i brokát`]})]}),(0,M.jsxs)(`li`,{style:{display:`flex`,alignItems:`center`,gap:`0.75rem`,marginBottom:`1rem`,lineHeight:`1.6`,textAlign:`left`},children:[(0,M.jsx)(P,{size:20,style:{color:`var(--primary)`,flexShrink:0}}),(0,M.jsxs)(`span`,{children:[(0,M.jsx)(`strong`,{children:`Společenské oděvy:`}),` Svatební šaty, společenské toalety, obleky, smokingy a kostýmy`]})]}),(0,M.jsxs)(`li`,{style:{display:`flex`,alignItems:`center`,gap:`0.75rem`,marginBottom:`1rem`,lineHeight:`1.6`,textAlign:`left`},children:[(0,M.jsx)(P,{size:20,style:{color:`var(--primary)`,flexShrink:0}}),(0,M.jsxs)(`span`,{children:[(0,M.jsx)(`strong`,{children:`Funkční a outdoorové oblečení:`}),` Membránové bundy (Gore-Tex apod.), lyžařské kombinézy`]})]}),(0,M.jsxs)(`li`,{style:{display:`flex`,alignItems:`center`,gap:`0.75rem`,marginBottom:`1rem`,lineHeight:`1.6`,textAlign:`left`},children:[(0,M.jsx)(P,{size:20,style:{color:`var(--primary)`,flexShrink:0}}),(0,M.jsxs)(`span`,{children:[(0,M.jsx)(`strong`,{children:`Péřové a objemné kusy:`}),` Péřové bundy, kabáty, spací pytle, polštáře a prošívané přikrývky`]})]})]}),(0,M.jsxs)(`div`,{className:`info-box-highlight mt-4`,style:{marginBottom:`2rem`},children:[(0,M.jsx)($r,{size:20}),` `,(0,M.jsx)(`strong`,{children:`Víte, že...`}),` Metoda Wet Cleaning je celosvětově doporučována předními výrobci outdoorového a sportovního oblečení pro zachování plné funkčnosti membrán a obnovu jejich vodoodpudivých vlastností.`]})]}),(0,M.jsx)(`div`,{className:`service-image-box animate-fade-in`,style:{flex:`1.2`},children:(0,M.jsx)(`img`,{src:`/images/wet_cleaning_side.jpg`,alt:`Profesionální stroje Meron pro šetrné mokré čištění oděvů`,style:{width:`100%`,borderRadius:`12px`,boxShadow:`var(--shadow-md)`}})})]}),(0,M.jsx)(`section`,{className:`section section-bg-soft`,style:{padding:`80px 0`,borderTop:`1px solid var(--border-color)`,borderBottom:`1px solid var(--border-color)`},children:(0,M.jsxs)(`div`,{className:`container`,children:[(0,M.jsx)(`h2`,{className:`section-title`,style:{textAlign:`center`,marginBottom:`1rem`},children:`Mokré vs. Běžné chemické čištění`}),(0,M.jsx)(`p`,{style:{textAlign:`center`,color:`var(--text-muted)`,maxWidth:`700px`,margin:`0 auto 3.5rem`,lineHeight:`1.6`},children:`Podívejte se na zásadní rozdíly mezi moderní metodou Wet Cleaning (W) a tradičním čištěním za pomoci agresivních chemických rozpouštědel.`}),(0,M.jsxs)(`div`,{style:{display:`grid`,gridTemplateColumns:`repeat(auto-fit, minmax(320px, 1fr))`,gap:`2rem`},children:[(0,M.jsxs)(`div`,{className:`glass-card animate-fade-in`,style:{padding:`2.5rem`,borderRadius:`12px`,border:`1px solid var(--border-color)`,backgroundColor:`rgba(255,255,255,0.75)`},children:[(0,M.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`1rem`,marginBottom:`1.5rem`},children:[(0,M.jsx)(`div`,{style:{backgroundColor:`var(--primary-light)`,padding:`0.75rem`,borderRadius:`50%`,dis
295play:`flex`,color:`var(--primary)`},children:(0,M.jsx)(Vr,{size:24})}),(0,M.jsx)(`h3`,{style:{margin:0,fontSize:`1.35rem`,color:`var(--secondary)`},children:`Mokré čištění (Wet Cleaning W)`})]}),(0,M.jsxs)(`ul`,{style:{paddingLeft:`1.2rem`,lineHeight:`1.8`,color:`var(--text-main)`},children:[(0,M.jsxs)(`li`,{children:[(0,M.jsx)(`strong`,{children:`100% biologické přísady`}),` a čistá voda bez agresivních toxinů.`]}),(0,M.jsxs)(`li`,{children:[(0,M.jsx)(`strong`,{children:`Bez jakéhokoliv zápachu`}),`, oblečení voní svěže a čistě.`]}),(0,M.jsxs)(`li`,{children:[(0,M.jsx)(`strong`,{children:`Mimořádná účinnost`}),` na skvrny od potu, nápojů, jídla a prachu.`]}),(0,M.jsxs)(`li`,{children:[(0,M.jsx)(`strong`,{children:`Hypoalergenní složení`}),`, nedráždí pokožku, vhodné pro atopiky.`]}),(0,M.jsxs)(`li`,{children:[(0,M.jsx)(`strong`,{children:`Regeneruje textilní vlákna`}),`, navrací jim pružnost, měkkost a zářivé barvy.`]})]})]}),(0,M.jsxs)(`div`,{className:`glass-card animate-fade-in`,style:{padding:`2.5rem`,borderRadius:`12px`,border:`1px solid var(--border-color)`,opacity:.85,backgroundColor:`rgba(240,240,240,0.55)`},children:[(0,M.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`1rem`,marginBottom:`1.5rem`},children:[(0,M.jsx)(`div`,{style:{backgroundColor:`#e2e8f0`,padding:`0.75rem`,borderRadius:`50%`,display:`flex`,color:`#64748b`},children:(0,M.jsx)(ti,{size:24})}),(0,M.jsx)(`h3`,{style:{margin:0,fontSize:`1.35rem`,color:`#475569`},children:`Běžné chemické čištění`})]}),(0,M.jsxs)(`ul`,{style:{paddingLeft:`1.2rem`,lineHeight:`1.8`,color:`#475569`},children:[(0,M.jsxs)(`li`,{children:[(0,M.jsx)(`strong`,{children:`Agresivní chemické rozpouštědlo perchlor`}),` (tetrachlorethylen).`]}),(0,M.jsxs)(`li`,{children:[(0,M.jsx)(`strong`,{children:`Charakteristický štiplavý zápach`}),` po chemikáliích, který vyprchává dny.`]}),(0,M.jsxs)(`li`,{children:[(0,M.jsx)(`strong`,{children:`Slabší účinek`}),` na běžné biologické skvrny a pot bez předepírky.`]}),(0,M.jsxs)(`li`,{children:[(0,M.jsx)(`strong`,{children:`Riziko podráždění`}),` citlivé kůže a vzniku alergických reakcí.`]}),(0,M.jsxs)(`li`,{children:[(0,M.jsx)(`strong`,{children:`Opotřebovává tkaninu`}),`, odmašťuje a vysušuje vlákna, což snižuje jejich životnost.`]})]})]})]})]})}),(0,M.jsx)(`section`,{className:`service-contact-section`,style:{padding:`80px 0`,background:`linear-gradient(135deg, var(--bg-soft) 0%, var(--bg-main) 100%)`,borderTop:`1px solid var(--border-color)`,borderBottom:`1px solid var(--border-color)`},children:(0,M.jsxs)(`div`,{className:`container`,style:{maxWidth:`650px`},children:[(0,M.jsxs)(`div`,{style:{textAlign:`center`,marginBottom:`2rem`},children:[(0,M.jsx)(`span`,{className:`service-tag`,children:`Nezávazná poptávka`}),(0,M.jsx)(`h2`,{style:{fontSize:`2rem`,marginTop:`0.5rem`,marginBottom:`1rem`},children:`Chcete vyzkoušet mokré čištění W?`}),(0,M.jsx)(`p`,{style:{color:`var(--text-muted)`},children:`Vyplňte prosím krátký formulář a naši pracovníci se vám co nejdříve ozvou s návrhem řešení.`})]}),(0,M.jsx)(pw,{serviceTitle:`Mokré čištění W`})]})}),(0,M.jsx)(`section`,{className:`ppc-cta`,children:(0,M.jsxs)(`div`,{className:`container`,children:[(0,M.jsx)(`h2`,{children:`Dopřejte svému oblečení lázeň, kterou si opravdu zaslouží`}),(0,M.jsx)(`p`,{className:`mb-4`,children:`Máte v šatníku drahý oblek, vlněný kabát nebo společenské šaty? Svěřte je naší technologii Mokrého čištění W.`}),(0,M.jsxs)(`div`,{style:{display:`flex`,justifyContent:`center`,gap:`1rem`},children:[(0,M.jsx)(j,{to:`/objednat?category=Mokré čištění W`,className:`btn btn-primary btn-lg`,children:`Chci objednat čištění`}),(0,M.jsx)(j,{to:`/cenik#cistirna`,className:`btn btn-outline btn-lg`,children:`Ceník služeb`})]})]})})]}),xw=()=>(0,M.jsxs)(`div`,{className:`service-landing`,children:[(0,M.jsx)(`section`,{className:`bg-header`,style:{backgroundImage:`url('/images/sewing_repairs_header.jpg')`},children:(0,M.jsxs)(`div`,{className:`container`,children:[(0,M.jsx)(`h1`,{className:`page-title animate-fade-in`,children:`Opravy a úpravy oděvů`}),(0,M.jsx)(`p`,{className:`page-subtitle animate-fade-in`,children:`Vrátíme vašemu oblíbenému oblečení život. Provádíme profesionální výměny zipů, zkracování, zužování i náročné opravy a čištění peří s maximální péčí.`}),(0,M.jsx)(j,{to:`/objednat?category=Opravy oděvů`,className:`btn btn-primary btn-lg mt-4`,children:`Objednat opravu oděvů`})]})}),(0,M.jsx)(`section`,{className:`container`,children:(0,M.jsxs)(`div`,{className:`benefits-grid`,children:[(0,M.jsxs)(`div`,{className:`benefit-card animate-fade-in`,children:[(0,M.jsx)(gi,{size:40,className:`benefit-icon`}),(0,M.jsx)(`h3`,{children:`Precizní úpravy na míru`}),(0,M.jsx)(`p`,{children:`Zkrácení nohavic, úprava společenských šatů či s
295aka. Přizpůsobíme jakýkoliv kus oblečení přesně vaší postavě.`})]}),(0,M.jsxs)(`div`,{className:`benefit-card animate-fade-in`,children:[(0,M.jsx)(li,{size:40,className:`benefit-icon`}),(0,M.jsx)(`h3`,{children:`Profesionální výměny zipů`}),(0,M.jsx)(`p`,{children:`Rozbil se zip u bundy, kabátu nebo kalhot? Rychle a precizně jej vyměníme za nový a vysoce spolehlivý.`})]}),(0,M.jsxs)(`div`,{className:`benefit-card animate-fade-in`,children:[(0,M.jsx)(xi,{size:40,className:`benefit-icon`}),(0,M.jsx)(`h3`,{children:`Čištění a šití peří`}),(0,M.jsxs)(`p`,{children:[`Zajišťujeme kompletní čištění peří a renovaci dek či polštářů. Tuto službu pro nás zajišťuje firma `,(0,M.jsx)(`a`,{href:`https://peri-mares.cz/`,target:`_blank`,rel:`noopener noreferrer`,style:{color:`var(--primary)`,fontWeight:600,textDecoration:`underline`},children:`Peří Mareš`}),`, pro kterou fungujeme jako oficiální sběrné místo.`]})]})]})}),(0,M.jsxs)(`section`,{className:`container service-content-row`,style:{padding:`80px 0 50px`},children:[(0,M.jsxs)(`div`,{className:`service-text animate-fade-in`,children:[(0,M.jsx)(`span`,{className:`service-tag`,children:`Tradiční řemeslo s pečlivostí`}),(0,M.jsx)(`h2`,{style:{fontSize:`2.2rem`,marginBottom:`1.5rem`},children:`Dejte svému oblíbenému šatníku druhou šanci`}),(0,M.jsx)(`p`,{className:`lead`,style:{fontSize:`1.15rem`,color:`var(--text-muted)`,lineHeight:`1.6`,marginBottom:`2rem`},children:`Oblíbené kousky oblečení si zaslouží druhou šanci. Naše švadleny v sociálním podniku spojují tradiční řemeslo s moderním vybavením. Ať už jde o drobnou opravu utrženého poutka, nebo úpravu obleku na míru, pracujeme s maximální pečlivostí. Prodloužením životnosti oděvů šetříte svou peněženku i životní prostředí.`}),(0,M.jsx)(`h3`,{style:{fontSize:`1.4rem`,marginBottom:`1rem`,color:`var(--secondary)`},children:`Co vše pro vás rádi upravíme a opravíme?`}),(0,M.jsxs)(`ul`,{className:`feature-list-simple`,style:{listStyle:`none`,padding:0,margin:0,marginBottom:`2rem`},children:[(0,M.jsxs)(`li`,{style:{display:`flex`,alignItems:`center`,gap:`0.75rem`,marginBottom:`1rem`,lineHeight:`1.6`,textAlign:`left`},children:[(0,M.jsx)(xi,{size:20,style:{color:`var(--primary)`,flexShrink:0}}),(0,M.jsxs)(`span`,{children:[(0,M.jsx)(`strong`,{children:`Zkracování a prodlužování:`}),` Nohavice džín, společenských kalhot, sukní, rukávů sak a kabátů`]})]}),(0,M.jsxs)(`li`,{style:{display:`flex`,alignItems:`center`,gap:`0.75rem`,marginBottom:`1rem`,lineHeight:`1.6`,textAlign:`left`},children:[(0,M.jsx)(xi,{size:20,style:{color:`var(--primary)`,flexShrink:0}}),(0,M.jsxs)(`span`,{children:[(0,M.jsx)(`strong`,{children:`Zujuování a rozšiřování:`}),` Úpravy pasu kalhot, košil, společenských šatů a sak na postavu`]})]}),(0,M.jsxs)(`li`,{style:{display:`flex`,alignItems:`center`,gap:`0.75rem`,marginBottom:`1rem`,lineHeight:`1.6`,textAlign:`left`},children:[(0,M.jsx)(xi,{size:20,style:{color:`var(--primary)`,flexShrink:0}}),(0,M.jsxs)(`span`,{children:[(0,M.jsx)(`strong`,{children:`Výměna zipů a podšívek:`}),` Opravy bund, kabátů, spacáků, výměna roztrhaných vnitřních podšívek`]})]}),(0,M.jsxs)(`li`,{style:{display:`flex`,alignItems:`center`,gap:`0.75rem`,marginBottom:`1rem`,lineHeight:`1.6`,textAlign:`left`},children:[(0,M.jsx)(xi,{size:20,style:{color:`var(--primary)`,flexShrink:0}}),(0,M.jsxs)(`span`,{children:[(0,M.jsx)(`strong`,{children:`Drobné opravy:`}),` Látání děr, přišívání knoflíků, opravy kapes, zpevnění namáhaných švů`]})]})]}),(0,M.jsx)(`div`,{className:`mt-4`,children:(0,M.jsxs)(j,{to:`/objednat?category=Opravy oděvů`,className:`btn btn-outline`,children:[`Zobrazit ceník oprav `,(0,M.jsx)(xr,{size:16})]})})]}),(0,M.jsx)(`div`,{className:`service-image-box animate-fade-in`,style:{flex:`1.2`},children:(0,M.jsx)(`img`,{src:`/images/sewing_repairs_side.jpg`,alt:`Profesionální šití a opravy oděvů v naší šicí dílně`,style:{width:`100%`,borderRadius:`12px`,boxShadow:`var(--shadow-md)`}})})]}),(0,M.jsx)(`section`,{className:`section section-bg-soft`,style:{padding:`80px 0`,borderTop:`1px solid var(--border-color)`,borderBottom:`1px solid var(--border-color)`},children:(0,M.jsxs)(`div`,{className:`container`,children:[(0,M.jsx)(`h2`,{className:`section-title`,style:{textAlign:`center`,marginBottom:`3.5rem`},children:`Proč svěřit opravy oděvů Zelenému ostrovu?`}),(0,M.jsxs)(`div`,{style:{display:`grid`,gridTemplateColumns:`repeat(auto-fit, minmax(280px, 1fr))`,gap:`2rem`},children:[(0,M.jsxs)(`div`,{className:`glass-card`,style:{padding:`2rem`,borderRadius:`12px`,border:`1px solid var(--border-color)`,backgroundColor:`white`},children:[(0,M.jsxs)(`h4`,{style:{fontSize:`1.25rem`,marginBottom:`0.8rem`,display:`flex`,alignItems:`center`,gap:`0.5rem`},children:[(0,M.jsx)(Zr,{size:20,style:{color:`var(--primary)`}}),` Udržitelnost`]}),(0,M.jsx)(`p`,{style:{color:`var(--text-muted)`,fontSize:`0.95rem`,lineHeight:`1.5`},children:`Prodloužením životnosti stávajícího oblečení snižujete spotřebu textilních zdrojů a podporujete ekologicky odpovědný životní styl.`})]}),(0,M.jsxs)(`div`,{className:`glass-card`,style:{padding:`2rem`,borderRadius:`12px`,border:`1px solid var(--border-color)`,backgroundColor:`white`},children:[(0,M.jsxs)(`h4`,{style:{fontSize:`1.25rem`,marginBottom:`0.8rem`,display:`flex`,alignItems:`center`,gap:`0.5rem`},children:[(0,M.jsx)(gi,{size:20,style:{color:`var(--primary)`}}),` Vysoká odbornost`]}),(0,M.jsx)(`p`,{style:{color:`var(--text-muted)`,fontSize:`0.95rem`,lineHeight:`1.5`}
295,children:`NaÅ¡e zkuÅ¡ené Å¡vadleny si poradí i se složitými materiály, jako je kůže, jemné hedvábí, společenské toalety nebo těžký bytový textil.`})]}),(0,M.jsxs)(`div`,{className:`glass-card`,style:{padding:`2rem`,borderRadius:`12px`,border:`1px solid var(--border-color)`,backgroundColor:`white`},children:[(0,M.jsxs)(`h4`,{style:{fontSize:`1.25rem`,marginBottom:`0.8rem`,display:`flex`,alignItems:`center`,gap:`0.5rem`},children:[(0,M.jsx)(li,{size:20,style:{color:`var(--primary)`}}),` Spojení s čistírnou`]}),(0,M.jsx)(`p`,{style:{color:`var(--text-muted)`,fontSize:`0.95rem`,lineHeight:`1.5`},children:`Opravené oděvy vám na přání rovnou profesionálně vyčistíme či vypereme v naší prádelně, abyste je dostali připravené rovnou k noÅ¡ení.`})]})]})]})}),(0,M.jsx)(`section`,{className:`service-contact-section`,style:{padding:`80px 0`,background:`linear-gradient(135deg, var(--bg-soft) 0%, var(--bg-main) 100%)`,borderTop:`1px solid var(--border-color)`,borderBottom:`1px solid var(--border-color)`},children:(0,M.jsxs)(`div`,{className:`container`,style:{maxWidth:`650px`},children:[(0,M.jsxs)(`div`,{style:{textAlign:`center`,marginBottom:`2rem`},children:[(0,M.jsx)(`span`,{className:`service-tag`,children:`Nezávazná poptávka`}),(0,M.jsx)(`h2`,{style:{fontSize:`2rem`,marginTop:`0.5rem`,marginBottom:`1rem`},children:`Máte zájem o opravu či úpravu oděvů?`}),(0,M.jsx)(`p`,{style:{color:`var(--text-muted)`},children:`Vyplňte prosím krátký formulář a naÅ¡i pracovníci se vám co nejdříve ozvou s návrhem postupu a ceny.`})]}),(0,M.jsx)(pw,{serviceTitle:`Opravy oděvů`})]})}),(0,M.jsx)(`section`,{className:`ppc-cta`,children:(0,M.jsxs)(`div`,{className:`container`,children:[(0,M.jsx)(`h2`,{children:`Přineste své oblečení na naÅ¡i pobočku`}),(0,M.jsx)(`p`,{className:`mb-4`,children:`Rádi s vámi zkonzultujeme možnosti úprav a opravíme vaÅ¡e oděvy s maximální pečlivostí.`}),(0,M.jsxs)(`div`,{style:{display:`flex`,justifyContent:`center`,gap:`1rem`,flexWrap:`wrap`},children:[(0,M.jsx)(j,{to:`/objednat?category=Opravy oděvů`,className:`btn btn-primary btn-lg`,children:`Objednat opravu online`}),(0,M.jsx)(j,{to:`/cenik#opravy`,className:`btn btn-outline btn-lg`,children:`Ceník služeb`})]})]})})]}),Sw=({title:e,subtitle:t,description:n,icon:r,benefits:i=[],imageUrl:a=`/images/header_seniors_cz_1779127755084.png`,sideImageUrl:o,children:s,bgPosition:c=`center`})=>{let[l,u]=(0,_.useState)({name:``,phone:``,email:``,message:``}),[d,f]=(0,_.useState)(!1),[p,m]=(0,_.useState)(!1);return(0,M.jsxs)(`div`,{className:`service-landing`,children:[(0,M.jsx)(`section`,{className:`bg-header`,style:{backgroundImage:`url('${a}')`,backgroundPosition:c},children:(0,M.jsxs)(`div`,{className:`container`,children:[(0,M.jsxs)(j,{to:`/pro-seniory`,className:`btn btn-outline-white mb-4`,style:{display:`inline-flex`,alignItems:`center`,gap:`0.5rem`,marginBottom:`1rem`,color:`white`,borderColor:`white`},children:[(0,M.jsx)(br,{size:16}),` Zpět na přehled služeb`]}),(0,M.jsx)(`h1`,{className:`page-title animate-fade-in`,children:e}),(0,M.jsx)(`p`,{className:`page-subtitle animate-fade-in`,children:t})]})}),(0,M.jsxs)(`section`,{className:`container service-content-row`,style:{alignItems:`flex-start`},children:[(0,M.jsxs)(`div`,{className:`service-text`,children:[(0,M.jsx)(`p`,{className:`lead`,style:{fontSize:`1.1rem`,marginBottom:`2rem`,lineHeight:`1.6`},children:n}),i.length>0&&(0,M.jsx)(`ul`,{className:`feature-list-simple`,style:{listStyle:`none`,padding:0},children:i.map((e,t)=>(0,M.jsxs)(`li`,{style:{display:`flex`,alignItems:`center`,gap:`0.75rem`,marginBottom:`1rem`,fontSize:`1.05rem`},children:[(0,M.jsx)(r,{size:20,style:{color:`var(--primary)`,flexShrink:0}}),(0,M.jsx)(`span`,{children:e})]},t))}),(0,M.jsxs)(`div`,{className:`contact-form-container glass-card`,style:{padding:`2rem`,borderRadius:`12px`,border:`1px solid var(--border-color)`,width:`100%`,marginTop:`3rem`},children:[(0,M.jsx)(`h3`,{style:{marginBottom:`1.5rem`,fontSize:`1.5rem`},children:`Nezávazná poptávka`}),d?(0,M.jsxs)(`div`,{style:{padding:`1rem`,backgroundColor:`var(--primary-light)`,color:`var(--primary)`,borderRadius:`8px`,textAlign:`center`},children:[(0,M.jsx)(`p`,{style:{margin:0,fontWeight:500},children:`VaÅ¡e poptávka byla úspěšně odeslána.`}),(0,M.jsx)(`p`,{style:{margin:0,fontSize:`0.9rem`,marginTop:`0.5rem`},children:`Brzy se vám ozveme na zadaný kontakt.`}),(0,M.jsx)(`button`,{onClick:()=>f(!1),className:`btn btn-outline`,style:{marginTop:`1rem`,padding:`0.5rem 1rem`},children:`Zadat novou poptávku`})]}):(0,M.jsxs)(`form`,{className:`contact-form`,onSubmit:async t=>{if(t.preventDefault(),!p){m(!0);try{await rS(Wb(eC,`inquiries`),{name:l.name,phone:l.phone,email:l.email||``,message:l.message,service:e,createdAt:Ox(),status:`new`}),await wC.send(`service_9gw9zbe`,`template_inquiry`,{customer_name:l.name,customer_phone:l.phone,customer_email:l.email||`[email protected]`,email:l.email||`[email protected]`,service_title:e,message:l.message||`Bez zprávy`,order_id:`POPTÁVKA`,delivery_type:`Nezávazná poptávka`,payment_type:`Služba: `+e,note:l.message||`Bez zprávy`,total_price:`Dle domluvy`,items_html:`<tr><td colspan='3'>Toto je nezávazná poptávka z webu k této službě: <strong>`+e+`</strong></td></tr>`,to_email:`[email protected]`,reply_to:l.email||`[email protected]`},{publicKey:`aANhT6_XuXDQwWKO2`}),f(!0),u({name:``,phone:``,email:``,message:``})}catch(e){console.error(`Chyba při odesílání poptávky:`,e);let t=e?.text||e?.message||JSON.stringify(e);alert(`DoÅ¡lo k chybě při odesílání poptávky: ${t}. Zkuste to prosím znovu nebo nám zavolejte.`)}finally{m(!1)}}},children:[(0,M.jsxs)(`div`,{className:`form-group`,style:{marginBottom:`1rem`},children:[(0,M.jsx)(`label`,{style:{display:`block`,marginBottom:`0.5rem`,fontSize:`0.9rem`,fontWeight:500},children:`Jméno a příjmení *`}),(0,M.jsx)(`input`,{type:`text`,value:l.name,onChange:e=>u({...l,name:e.target.value}),className:`form-control`,style:{width:`100%`,padding:`0.8rem`,borderRadius:`8px`,border:`1px solid #ccc`,fontSize:`1rem`},placeholder:`Jan Novák`,required:!0})]}),(0,M.jsxs)(`div`,{className:`form-group`,style:{marginBottom:`1rem`},children:[(0,M.jsx)(`label`,{style:{display:`block`,marginBottom:`0.5rem`,fontSize:`0.9rem`,fontWeight:500},children:`Telefon *`}),(0,M.jsx)(`input`,{type:`tel`,value:l.phone,onChange:e=>u({...l,phone:e.target.value}),className:`form-control`,style:{width:`100%`,padding:`0.8rem`,borderRadius:`8px`,border:`1px solid #ccc`,fontSize:`1rem`},placeholder:`+420 601 571 790`,required:!0})]}),(0,M.jsxs)(`div`,{className:`form-group`,style:{marginBottom:`1rem`},children:[(0,M.jsx)(`label`,{style:{display:`block`,marginBottom:`0.5rem`,fontSize:`0.9rem`,fontWeight:500},children:`E-mail (nepovinné)`}),(0,M.jsx)(`input`,{type:`email`,value:l.email,onChange:e=>u({...l,email:e.target.value}),className:`form-control`,style:{width:`100%`,padding:`0.8rem`,borderRadius:`8px`,border:`1px solid #ccc`,fontSize:`1rem`},placeholder:`[email protected]`})]}),(0,M.jsxs)(`div`,{className:`form-group`,style:{marginBottom:`1rem`},children:[(0,M.jsx)(`label`,{style:{display:`block`,marginBottom:`0.5rem`,fontSize:`0.9rem`,fontWeight:500},children:`Zpráva / Dotaz`}),(0,M.jsx)(`textarea`,{rows:`3`,value:l.message,onChange:e=>u({...l,message:e.target.value}),className:`form-control`,style:{width:`100%`,padding:`0.8rem`,borderRadius:`8px`,border:`1px solid #ccc`,fontSize:`1rem`,resize:`vertical`},placeholder:`VaÅ¡e zpráva...`})]}),(0,M.jsx)(`button`,{type:`submit`,className:`btn btn-primary`,style:{width:`100%`,dis
295play:`flex`,justifyContent:`center`,gap:`0.5rem`,padding:`1rem`,fontSize:`1.05rem`,marginTop:`1rem`},disabled:p,children:p?`Odesílám...`:(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(vi,{size:18}),` Odeslat poptávku`]})})]})]})]}),(0,M.jsx)(`div`,{className:`service-image-box`,style:{position:`sticky`,top:`100px`},children:(0,M.jsx)(`img`,{src:o||a,alt:e,style:{width:`100%`,borderRadius:`12px`,objectFit:`cover`,boxShadow:`var(--shadow-md)`}})})]}),s,(0,M.jsx)(`section`,{className:`ppc-cta`,style:{marginTop:`4rem`},children:(0,M.jsxs)(`div`,{className:`container text-center`,children:[(0,M.jsx)(`h2`,{children:`Máte dotaz k této službě?`}),(0,M.jsx)(`p`,{className:`mb-4`,children:`Zavolejte nám. Rádi vám vše vysvětlíme a domluvíme podrobnosti.`}),(0,M.jsx)(`div`,{style:{display:`flex`,justifyContent:`center`},children:(0,M.jsxs)(`a`,{href:`tel:+420720971125`,className:`btn btn-primary btn-lg`,style:{display:`inline-flex`,alignItems:`center`,gap:`0.5rem`,fontSize:`1.2rem`},children:[(0,M.jsx)(pi,{size:24}),` 720 971 125`]})})]})})]})},Cw=()=>{let e=[{url:`https://images.unsplash.com/photo-1604908176997-125f25cc6f3d?auto=format&fit=crop&q=80&w=1200`,alt:`Pečené kuře s bramborem`},{url:`https://images.unsplash.com/photo-1546069901-ba9599a7e63c?auto=format&fit=crop&q=80&w=1200`,alt:`Zdravé a pestré jídlo`},{url:`https://images.unsplash.com/photo-1512058564366-18510be2db19?auto=format&fit=crop&q=80&w=1200`,alt:`Tradiční polévka a jídlo`}],[t,n]=(0,_.useState)(0);return(0,M.jsxs)(`div`,{style:{position:`relative`,width:`100%`,maxWidth:`900px`,margin:`0 auto 3rem`,borderRadius:`16px`,overflow:`hidden`,boxShadow:`var(--shadow-md)`},children:[(0,M.jsx)(`div`,{style:{display:`flex`,transform:`translateX(-${t*100}%)`,transition:`transform 0.5s ease-in-out`},children:e.map((e,t)=>(0,M.jsxs)(`div`,{style:{width:`100%`,flexShrink:0,position:`relative`},children:[(0,M.jsx)(`img`,{src:e.url,alt:e.alt,style:{width:`100%`,height:`400px`,objectFit:`cover`,display:`block`}}),(0,M.jsx)(`div`,{style:{position:`absolute`,bottom:0,left:0,right:0,background:`linear-gradient(to top, rgba(0,0,0,0.8), transparent)`,padding:`2rem 1rem 1rem`,color:`white`,textAlign:`center`,fontWeight:500},children:e.alt})]},t))}),(0,M.jsx)(`button`,{onClick:()=>n(t=>(t-1+e.length)%e.length),style:{position:`absolute`,top:`50%`,left:`1rem`,transform:`translateY(-50%)`,background:`rgba(255,255,255,0.9)`,border:`none`,borderRadius:`50%`,width:`44px`,height:`44px`,display:`flex`,alignItems:`center`,justifyContent:`center`,cursor:`pointer`,boxShadow:`var(--shadow-sm)`,color:`var(--secondary)`},children:(0,M.jsx)(Mr,{size:24})}),(0,M.jsx)(`button`,{onClick:()=>n(t=>(t+1)%e.length),style:{position:`absolute`,top:`50%`,right:`1rem`,transform:`translateY(-50%)`,background:`rgba(255,255,255,0.9)`,border:`none`,borderRadius:`50%`,width:`44px`,height:`44px`,display:`flex`,alignItems:`center`,justifyContent:`center`,cursor:`pointer`,boxShadow:`var(--shadow-sm)`,color:`var(--secondary)`},children:(0,M.jsx)(Nr,{size:24})}),(0,M.jsx)(`div`,{style:{position:`absolute`,bottom:`3rem`,left:`0`,right:`0`,display:`flex`,justifyContent:`center`,gap:`0.5rem`},children:e.map((e,r)=>(0,M.jsx)(`button`,{onClick:()=>n(r),style:{width:r===t?`24px`:`8px`,height:`8px`,borderRadius:`4px`,border:`none`,background:r===t?`var(--primary)`:`rgba(255,255,255,0.6)`,cursor:`pointer`,padding:0,transition:`all 0.3s ease`},"aria-label":`Slide ${r+1}`},r))})]})},ww=()=>(0,M.jsxs)(Sw,{title:`Rozvoz obědů pro seniory`,subtitle:`Teplé a vyvážené jídlo s doručením až k vašim dveřím.`,description:`Hledáte jednoduchý způsob, jak zajistit pravidelný teplý oběd pro sebe nebo blízkého seniora? Zajišťujeme rozvoz obědů pro seniory, kteří chtějí jíst pravidelně, kvalitně a bez zbytečných starostí. Obědy dovážíme přímo do domácností – s důrazem na lidský přístup, bezpečné předání a férovou cenu.`,icon:Pi,benefits:[`Dovoz oběda až ke dveřím bytu`,`Pestré a vyvážené menu vč. polévky (od 160 Kč)`,`Pravidelný a spolehlivý závoz`,`Možnost dietního stravování (cukrovka, žlučník)`],imageUrl:`/obedy-meal-hero.jpg`,sideImageUrl:`/obedy-hero.jpg`,bgPosition:`center 78%`,children:[(0,M.jsxs)(`section`,{className:`container mt-5`,style:{marginBottom:`4rem`},children:[(0,M.jsx)(`h2`,{style:{textAlign:`center`,marginBottom:`2rem`,color:`var(--secondary)`},children:`Jak probíhá objednání a závoz?`}),(0,M.jsxs)(`div`,{className:`process-grid`,style:{display:`grid`,gridTemplateColumns:`repeat(auto-fit, minmax(280px, 1fr))`,gap:`2rem`},children:[(0,M.jsxs)(`div`,{className:`glass-card`,style:{padding:`2rem`,borderRadius:`12px`,border:`1px solid var(--border-color)`},children:[(0,M.jsx)(Wr,{size:40,style:{color:`var(--primary)`,marginBottom:`1rem`}}),(0,M.jsx)(`h3`,{style:{marginBottom:`1rem`,fontSize:`1.25rem`},children:`1. Sjednání služby`}),(0,M.jsx)(`p`,{style:{color:`var(--text-muted)`},children:`Pro zahájení závozu se s vámi nejdříve spojíme. Vše vám vysvětlíme a předáme vám potřebné formuláře. Můžeme vše vyplnit i společně po telefonu, aby to pro vás bylo co nejjednodušší.`})]}),(0,M.jsxs)(`div`,{className:`glass-card`,style:{padding:`2rem`,borderRadius:`12px`,border:`1px solid var(--border-color)`},children:[(0,M.jsx)(Dr,{size:40,style:{color:`var(--primary)`,marginBottom:`1rem`}}),(0,M.jsx)(`h3`,{style:{marginBottom:`1rem`,fontSize:`1.25rem`},children:`2. Výběr z jídelního lístku`}),(0,M.jsx)(`p`,{style:{color:`var(--text-muted)`}
295,children:`Jídlo si vybíráte s předstihem. Každý měsíc vám náš kurýr přiveze jídelní lístek na další měsíc. V klidu si zaškrtnete jídla, na která máte chuť, a lístek mu odevzdáte zpět.`})]}),(0,M.jsxs)(`div`,{className:`glass-card`,style:{padding:`2rem`,borderRadius:`12px`,border:`1px solid var(--border-color)`},children:[(0,M.jsx)(Ai,{size:40,style:{color:`var(--primary)`,marginBottom:`1rem`}}),(0,M.jsx)(`h3`,{style:{marginBottom:`1rem`,fontSize:`1.25rem`},children:`3. Doručení`}),(0,M.jsx)(`p`,{style:{color:`var(--text-muted)`},children:`Jídla doručujeme buď teplá připravená ke konzumaci, nebo šokově chlazená a vakuově balená pro zachování čerstvosti (podle konkrétní rozvozové trasy a domluvy).`})]})]})]}),(0,M.jsx)(`section`,{className:`container`,style:{marginBottom:`4rem`},children:(0,M.jsxs)(`div`,{style:{backgroundColor:`var(--bg-soft)`,borderRadius:`16px`,padding:`3rem`,border:`1px solid var(--border-color)`},children:[(0,M.jsx)(`h2`,{style:{textAlign:`center`,marginBottom:`2rem`,color:`var(--secondary)`},children:`Ukázkové menu`}),(0,M.jsx)(Cw,{}),(0,M.jsxs)(`div`,{style:{display:`grid`,gridTemplateColumns:`repeat(auto-fit, minmax(300px, 1fr))`,gap:`2rem`},children:[(0,M.jsxs)(`div`,{style:{backgroundColor:`white`,padding:`1.5rem`,borderRadius:`8px`,boxShadow:`var(--shadow-sm)`},children:[(0,M.jsx)(`h4`,{style:{color:`var(--primary)`,marginBottom:`1rem`,borderBottom:`2px solid var(--primary-light)`,paddingBottom:`0.5rem`},children:`Pondělí`}),(0,M.jsx)(`p`,{style:{fontWeight:500,marginBottom:`0.5rem`},children:`Polévka: Krupicová s vejcem`}),(0,M.jsxs)(`ul`,{style:{listStyle:`none`,padding:0,margin:0,color:`var(--text-muted)`},children:[(0,M.jsxs)(`li`,{style:{marginBottom:`0.5rem`},children:[(0,M.jsx)(`strong`,{children:`Menu 1:`}),` Pečené kuřecí stehno na medu, vařený brambor`]}),(0,M.jsxs)(`li`,{style:{marginBottom:`0.5rem`},children:[(0,M.jsx)(`strong`,{children:`Menu 2:`}),` Čočka na kyselo, vařené vejce, okurek, chléb`]}),(0,M.jsxs)(`li`,{style:{marginBottom:`0.5rem`},children:[(0,M.jsx)(`strong`,{children:`Dietní:`}),` Vepřová roláda s hráškem, těstoviny`]})]})]}),(0,M.jsxs)(`div`,{style:{backgroundColor:`white`,padding:`1.5rem`,borderRadius:`8px`,boxShadow:`var(--shadow-sm)`},children:[(0,M.jsx)(`h4`,{style:{color:`var(--primary)`,marginBottom:`1rem`,borderBottom:`2px solid var(--primary-light)`,paddingBottom:`0.5rem`},children:`Úterý`}),(0,M.jsx)(`p`,{style:{fontWeight:500,marginBottom:`0.5rem`},children:`Polévka: Moravská cibulačka`}),(0,M.jsxs)(`ul`,{style:{listStyle:`none`,padding:0,margin:0,color:`var(--text-muted)`},children:[(0,M.jsxs)(`li`,{style:{marginBottom:`0.5rem`},children:[(0,M.jsx)(`strong`,{children:`Menu 1:`}
295),` Pečené kuře, halušky s kysaným zelím`]}),(0,M.jsxs)(`li`,{style:{marginBottom:`0.5rem`},children:[(0,M.jsx)(`strong`,{children:`Menu 2:`}),` Krupicový nákyp se švestkami a tvarohem`]}),(0,M.jsxs)(`li`,{style:{marginBottom:`0.5rem`},children:[(0,M.jsx)(`strong`,{children:`Dietní:`}),` Kuřecí plátek, bramborová kaše, mrkvový salátek`]})]})]}),(0,M.jsxs)(`div`,{style:{backgroundColor:`white`,padding:`1.5rem`,borderRadius:`8px`,boxShadow:`var(--shadow-sm)`},children:[(0,M.jsx)(`h4`,{style:{color:`var(--primary)`,marginBottom:`1rem`,borderBottom:`2px solid var(--primary-light)`,paddingBottom:`0.5rem`},children:`Středa`}),(0,M.jsx)(`p`,{style:{fontWeight:500,marginBottom:`0.5rem`},children:`Polévka: Masový vývar se zeleninou`}),(0,M.jsxs)(`ul`,{style:{listStyle:`none`,padding:0,margin:0,color:`var(--text-muted)`},children:[(0,M.jsxs)(`li`,{style:{marginBottom:`0.5rem`},children:[(0,M.jsx)(`strong`,{children:`Menu 1:`}),` Smažený vepřový řízek, bramborový salát`]}),(0,M.jsxs)(`li`,{style:{marginBottom:`0.5rem`},children:[(0,M.jsx)(`strong`,{children:`Menu 2:`}),` Bratislavská vepřová pečeně, houskový knedlík`]}),(0,M.jsxs)(`li`,{style:{marginBottom:`0.5rem`},children:[(0,M.jsx)(`strong`,{children:`Dietní:`}),` Bramborové knedlíky plněné šunkou, špenát`]})]})]})]})]})}),(0,M.jsxs)(`section`,{className:`container`,style:{marginBottom:`2rem`},children:[(0,M.jsx)(`h2`,{style:{textAlign:`center`,marginBottom:`2rem`,color:`var(--secondary)`},children:`Praktické informace o platbách`}),(0,M.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`1rem`,maxWidth:`800px`,margin:`0 auto`},children:[(0,M.jsxs)(`div`,{style:{display:`flex`,gap:`1rem`,alignItems:`flex-start`},children:[(0,M.jsx)(Br,{size:24,style:{color:`var(--primary)`,flexShrink:0,marginTop:`2px`}}),(0,M.jsxs)(`div`,{children:[(0,M.jsx)(`h4`,{style:{marginBottom:`0.25rem`},children:`Způsob úhrady`}),(0,M.jsx)(`p`,{style:{color:`var(--text-muted)`},children:`Zvolte si, co je pro vás snazší – platit můžete buď v hotovosti přímo kurýrovi (vystaví vám potvrzení), nebo klasickým bankovním převodem na účet.`})]})]}),(0,M.jsxs)(`div`,{style:{display:`flex`,gap:`1rem`,alignItems:`flex-start`},children:[(0,M.jsx)(Fr,{size:24,style:{color:`var(--primary)`,flexShrink:0,marginTop:`2px`}}),(0,M.jsxs)(`div`,{children:[(0,M.jsx)(`h4`,{style:{marginBottom:`0.25rem`},children:`Platba předem`}),(0,M.jsx)(`p`,{style:{color:`var(--text-muted)`},children:`Obědy se obvykle hradí dopředu na celý měsíc, abychom mohli garantovat hladký provoz. Podklady k platbě obdržíte vždy včas.`})]})]}),(0,M.jsxs)(`div`,{style:{display:`flex`,gap:`1rem`,alignItems:`flex-start`},children:[(0,M.jsx)(Dr,{size:24,style:{color:`var(--primary)`,flexShrink:0,marginTop:`2px`}}),(0,M.jsxs)(`div`,{children:[(0,M.jsx)(`h4`,{style:{marginBottom:`0.25rem`},children:`Přeplatky a odhlášky`}),(0,M.jsx)(`p`,{style:{color:`var(--text-muted)`},children:`Pokud si oběd včas odhlásíte (např. z důvodu návštěvy lékaře nebo nemoci), peníze nepropadnou. Vzniklý přeplatek vám automaticky převedeme do dalšího měsíce.`})]})]})]})]})]}),Tw=[{service:`Přistavení vozu (Dobřichovice, Karlík, Řevnice, Všenory, Černošice)`,price:`65 Kč`},{service:`Přistavení vozu (ostatní lokality)`,price:`dle vzdálenosti`},{service:`Cena za 1 km jízdy (v lokalitě celkem do 10 km)`,price:`24 Kč`},{service:`Cena za 1 km jízdy (v lokalitě celkem do 20 km)`,price:`18 Kč`},{service:`Cena za 1 km jízdy (mimo lokalitu celkem nad 20 km)`,price:`15 Kč`},{service:`Čekání na místě (za 10 min)`,price:`25 Kč`}],Ew=()=>(0,M.jsxs)(Sw,{title:`Přibližování (Senior taxi)`,subtitle:`Taxi, které vás doveze k lékaři či na úřad a nabídne plnou asistenci.`,description:`Nabízená služba zahrnuje nejen samotný odvoz, ale i poskytnutí pomoci klientovi z bytu k vozidlu a zpět, pomoc při nastupování a vystupování z vozu či doprovod k lékaři, na nákup i na úřad. Podporujeme důstojný život seniorů a lidí se zvláštními potřebami.`,icon:kr,benefits:[`Doprovod z bytu až do ordinace`,`Pomoc s taškami a nákupy`,`Speciálně upravený přístup pro seniory`,`Podpora pro osoby se zvláštními potřebami`],imageUrl:`/images/senior_taxi_header.jpg`,sideImageUrl:`/images/senior_taxi_side.jpg`,children:[(0,M.jsxs)(`section`,{className:`container`,style:{marginTop:`5rem`,marginBottom:`4rem`},children:[(0,M.jsxs)(`div`,{className:`text-center mb-5`,children:[(0,M.jsx)(`h2`,{style:{fontSize:`2.2rem`,marginBottom:`1rem`},children:`Ceník služby`}),(0,M.jsx)(`p`,{className:`lead`,style:{maxWidth:`800px`,margin:`0 auto`,color:`var(--text-light)`},children:`Ceny jsou nastaveny transparentně dle ujetých kilometrů a délky čekání. Vaše spokojenost a jistota je u nás na prvním místě.`})]}),(0,M.jsxs)(`div`,{className:`glass-card`,style:{maxWidth:`800px`,margin:`0 auto`,padding:`2rem`,borderRadius:`16px`,borderTop:`4px s
295olid var(--primary)`,boxShadow:`var(--shadow-md)`},children:[(0,M.jsx)(`div`,{style:{overflowX:`auto`},children:(0,M.jsx)(`table`,{style:{width:`100%`,borderCollapse:`collapse`,fontSize:`1.1rem`},children:(0,M.jsx)(`tbody`,{children:Tw.map((e,t)=>(0,M.jsxs)(`tr`,{style:{borderBottom:t===Tw.length-1?`none`:`1px solid var(--border-color)`},children:[(0,M.jsx)(`td`,{style:{padding:`1.2rem 1rem`,color:`var(--text-dark)`},children:e.service}),(0,M.jsx)(`td`,{style:{padding:`1.2rem 1rem`,textAlign:`right`,fontWeight:`bold`,color:`var(--primary)`,whiteSpace:`nowrap`},children:e.price})]},t))})})}),(0,M.jsxs)(`div`,{style:{marginTop:`2rem`,padding:`1.5rem`,backgroundColor:`var(--bg-light)`,borderRadius:`12px`,textAlign:`center`},children:[(0,M.jsx)(`p`,{style:{marginBottom:`1rem`,fontWeight:500},children:`Službu si můžete objednat telefonicky na čísle:`}),(0,M.jsxs)(`a`,{href:`tel:+420720971125`,className:`btn btn-primary btn-lg`,style:{display:`inline-flex`,alignItems:`center`,gap:`0.5rem`,fontSize:`1.2rem`},children:[(0,M.jsx)(fi,{size:20}),`+420 720 971 125`]})]})]})]}),(0,M.jsx)(`section`,{style:{backgroundColor:`var(--bg-light)`,padding:`5rem 0`},children:(0,M.jsxs)(`div`,{className:`container`,children:[(0,M.jsxs)(`div`,{className:`text-center mb-5`,children:[(0,M.jsx)(`h2`,{style:{fontSize:`2.2rem`},children:`Více než jen doprava`}),(0,M.jsx)(`p`,{className:`lead`,style:{maxWidth:`800px`,margin:`0 auto`,color:`var(--text-light)`},children:`Projekt Přibližování řeší vybudování lokální dopravní služby v mikroregionu Dolní Berounka a pomáhá těm, kteří to potřebují.`})]}),(0,M.jsxs)(`div`,{style:{display:`grid`,gridTemplateColumns:`repeat(auto-fit, minmax(250px, 1fr))`,gap:`2rem`},children:[(0,M.jsxs)(`div`,{style:{padding:`2rem`,backgroundColor:`white`,borderRadius:`12px`,textAlign:`center`,boxShadow:`var(--shadow-sm)`},children:[(0,M.jsx)(xi,{size:40,style:{color:`var(--primary)`,margin:`0 auto 1.5rem auto`}}),(0,M.jsx)(`h4`,{style:{marginBottom:`1rem`},children:`Vlastní zkušení řidiči`}),(0,M.jsx)(`p`,{style:{color:`var(--text-light)`}
295,children:`Naši řidiči jsou empatičtí a poskytují pomoc při nastupování i vystupování z vozu.`})]}),(0,M.jsxs)(`div`,{style:{padding:`2rem`,backgroundColor:`white`,borderRadius:`12px`,textAlign:`center`,boxShadow:`var(--shadow-sm)`},children:[(0,M.jsx)(Xr,{size:40,style:{color:`var(--primary)`,margin:`0 auto 1.5rem auto`}}),(0,M.jsx)(`h4`,{style:{marginBottom:`1rem`},children:`Sociální přesah`}),(0,M.jsx)(`p`,{style:{color:`var(--text-light)`},children:`Službu zajišťuje sociální podnik. Vytváříme pracovní místa pro osoby se zdravotním hendikepem.`})]}),(0,M.jsxs)(`div`,{style:{padding:`2rem`,backgroundColor:`white`,borderRadius:`12px`,textAlign:`center`,boxShadow:`var(--shadow-sm)`},children:[(0,M.jsx)(P,{size:40,style:{color:`var(--primary)`,margin:`0 auto 1.5rem auto`}}),(0,M.jsx)(`h4`,{style:{marginBottom:`1rem`},children:`Pomoc až do ordinace`}),(0,M.jsx)(`p`,{style:{color:`var(--text-light)`},children:`Nenecháme vás samotné. Náš personál vás spolehlivě doprovodí k lékaři i na úřad.`})]})]})]})}),(0,M.jsxs)(`section`,{className:`container`,style:{padding:`4rem 0`,textAlign:`center`,borderTop:`1px solid var(--border-color)`},children:[(0,M.jsx)(`h4`,{style:{marginBottom:`2rem`,color:`var(--text-light)`,fontSize:`1.2rem`,fontWeight:500},children:`Projekt byl podpořen`}),(0,M.jsxs)(`div`,{style:{display:`flex`,justifyContent:`center`,alignItems:`center`,gap:`3rem`,flexWrap:`wrap`},children:[(0,M.jsx)(`img`,{src:`/images/logo-eu.png`,alt:`Evropská unie - Evropský sociální fond`,style:{height:`70px`,objectFit:`contain`}}),(0,M.jsx)(`img`,{src:`/images/logo-opz.png`,alt:`Operační program Zaměstnanost`,style:{height:`70px`,objectFit:`contain`}})]}),(0,M.jsxs)(`p`,{style:{marginTop:`2rem`,fontSize:`0.9rem`,color:`var(--text-light)`},children:[`Projekt Přibližování v regionu`,(0,M.jsx)(`br`,{}),`Číslo projektu: CZ.03.2.650/0.0/0.0/16_047/0015562`]})]})]}),Dw=()=>(0,M.jsx)(Sw,{title:`Praní prádla pro seniory`,subtitle:`Kompletní péče o prádlo se svozem i odvozem.`,description:`Ušetřete síly a přenechejte starost o čisté prádlo nám. Prádlo si u vás vyzvedneme, pečlivě ho vypereme, vyžehlíme, složíme a voňavé vám ho doručíme zpět až do skříně.`,icon:Mi,benefits:[`Vyzvednutí špinavého prádla z domova`,`Ekologické a šetrné praní`,`Precizní žehlení a poskládání`,`Doručení čistého prádla až do rukou`],imageUrl:`/images/laundry_care_cz_1779127803995.png`}),Ow=()=>(0,M.jsx)(Sw,{title:`Úklidy domácností`,subtitle:`Aby byl váš domov vždy čistý a bezpečný bez vaší námahy.`,description:`Nabízíme pravidelné i jednorázové úklidy domácností pro seniory. Ať už jde o vytření podlah, utření prachu nebo mytí oken, naši spolehliví a prověření pracovníci udělají vše s úctou k vašemu soukromí.`,icon:Qr,benefits:[`Pravidelný běžný úklid i generální úklidy`,`Mytí oken a úklid hůře dostupných míst`,`Použití šetrných čisticích prostředků`,`Důvěryhodní a prověření pracovníci`],imageUrl:`/images/senior_cleaning_cz_1779127835182.png`}),kw=()=>(0,M.jsx)(Sw,{title:`Masáže u vás doma`,subtitle:`Odborná péče a relaxace v pohodlí vašeho obývacího pokoje.`,description:`Nedokážete už cestovat za svým masérem? My přijedeme k vám. S veškerým vybavením zajistíme profesionální masáže zaměřené na uvolnění ztuhlých svalů a úlevu od bolesti pro seniory.`,icon:Gr,benefits:[`Dojíždění certifikovaného maséra přímo domů`,`Masáže přizpůsobené zdravotnímu stavu`,`Všechno vybavení přivezeme s sebou`,`Podpora prokrvení a úleva od bolesti kloubů`],imageUrl:`/images/senior_massage_cz_1779127858444.png`}),Aw=()=>(0,M.jsx)(Sw,{title:`Mobilní pedikúra`,subtitle:`Profesionální péče o vaše nohy bez nutnosti cestovat.`,description:`S rostoucím věkem je péče o chodidla čím dál náročnější. Naše pedikérky k vám přijedou a postarají se o správné zastřižení nehtů, odstranění ztvrdlé kůže a celkové ošetření nohou.`,icon:Kr,benefits:[`Služba v pohodlí a soukromí domova`,`Prevence problémů s nehty a kůží`,`Zvýšená hygiena a bezpečí`,`Příjemné uvolnění chodidel`],imageUrl:`/images/senior_pedicure_cz_1779127845875.png`}),jw=()=>
295(0,M.jsx)(Sw,{title:`Parťák v domácnosti`,subtitle:`Společnost a asistence při každodenních činnostech.`,description:`Někdy je nejtěžší samota. Náš parťák v domácnosti pomůže nejen s těžkým nákupem, ale rád vás doprovodí na procházku, uvaří kávu a stráví s vámi čas u povídání nebo čtení.`,icon:Ei,benefits:[`Společnost při samotě`,`Asistence s menším i větším nákupem`,`Doprovod na kulturní akce nebo procházky`,`Pomoc s administrativou a komunikací`],imageUrl:`/images/senior_companion_cz_1779127821930.png`}),Mw=()=>(0,M.jsxs)(`div`,{className:`social-principles-page`,children:[(0,M.jsx)(`section`,{className:`bg-header`,style:{background:`linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%)`},children:(0,M.jsxs)(`div`,{className:`container`,children:[(0,M.jsx)(`h1`,{className:`page-title animate-fade-in`,children:`Sociální principy`}),(0,M.jsx)(`p`,{className:`page-subtitle animate-fade-in`,children:`Naplnění principů sociálního podniku Zelený ostrov`})]})}),(0,M.jsx)(`section`,{className:`section`,children:(0,M.jsxs)(`div`,{className:`container`,children:[(0,M.jsxs)(`div`,{className:`intro-text text-center mb-5`,children:[(0,M.jsx)(`h2`,{children:`N
295aše poslání`}),(0,M.jsx)(`p`,{className:`lead`,children:`Zelený ostrov s.r.o. se hrdě hlásí k sociálnímu podnikání a aktivně naplňuje veškeré jeho klíčové principy. Vytváříme stabilní zázemí, přátelské pracovní prostředí a pomáháme lidem s handicapy najít plnohodnotné uplatnění na trhu práce.`})]}),(0,M.jsxs)(`div`,{className:`principles-grid`,children:[(0,M.jsxs)(`div`,{className:`glass-card principle-card`,children:[(0,M.jsxs)(`div`,{className:`card-header`,children:[(0,M.jsx)(`div`,{className:`icon-wrapper`,children:(0,M.jsx)(ki,{size:28})}),(0,M.jsx)(`h3`,{children:`Společensky prospěšný cíl`})]}),(0,M.jsx)(`div`,{className:`card-body`,children:(0,M.jsxs)(`ul`,{children:[(0,M.jsx)(`li`,{children:`Společnost se hlásí k sociálnímu podnikání a naplňuje principy sociálního podniku.`}),(0,M.jsxs)(`li`,{children:[`Společenský cíl – `,(0,M.jsx)(`strong`,{children:`zaměstnávání zdravotně znevýhodněných osob na trhu práce`}),`, máme pevně zakotvený ve společenské smlouvě.`]}),(0,M.jsxs)(`li`,{children:[`Společenská smlouva je oficiálně uložena a dostupná na portálu `,(0,M.jsx)(`a`,{href:`http://www.justice.cz`,target:`_blank`,rel:`noopener noreferrer`,children:`www.justice.cz`}),` ve sbírce listin společnosti ZELENÝ OSTROV s.r.o.`]})]})})]}),(0,M.jsxs)(`div`,{className:`glass-card principle-card`,children:[(0,M.jsxs)(`div`,{className:`card-header`,children:[(0,M.jsx)(`div`,{className:`icon-wrapper`,children:(0,M.jsx)(Ni,{size:28})}),(0,M.jsx)(`h3`,{children:`Sociální prospěch`})]}),(0,M.jsx)(`div`,{className:`card-body`,children:(0,M.jsxs)(`ul`,{children:[(0,M.jsxs)(`li`,{children:[`Zelený ostrov zaměstnává `,(0,M.jsx)(`strong`,{children:`více jak 50 % zdravotně znevýhodněných osob`}),`.`]}),(0,M.jsx)(`li`,{children:`Sociální podnik poskytuje integrační podporu všem zaměstnancům z cílové skupiny.`}),(0,M.jsxs)(`li`,{children:[`Našimi zaměstnanci jsou i `,(0,M.jsx)(`strong`,{children:`neslyšící pracovnice`}),`, a proto úzce spolupracujeme s organizací `,(0,M.jsx)(`strong`,{children:`Tichý svět o.p.s.`}),`, která poskytuje neslyšícím všestrannou podporu. Využíváme především služby pracovních konzultantů a společně se snažíme o integraci neslyšících zaměstnanců do pracovního procesu i běžného života.`]}
295),(0,M.jsx)(`li`,{children:`Na pravidelných poradách jsou zaměstnanci informováni o chodu podniku, o všech novinkách a během těchto sezení se aktivně zapojují se svými nápady a postřehy do optimalizace chodu podniku.`}),(0,M.jsxs)(`li`,{children:[`Zelený ostrov je uznaným zaměstnavatelem na chráněném trhu práce a je `,(0,M.jsx)(`strong`,{children:`poskytovatelem náhradního plnění`}),`.`]})]})})]}),(0,M.jsxs)(`div`,{className:`glass-card principle-card`,children:[(0,M.jsxs)(`div`,{className:`card-header`,children:[(0,M.jsx)(`div`,{className:`icon-wrapper`,children:(0,M.jsx)(Rr,{size:28})}),(0,M.jsx)(`h3`,{children:`Ekonomický prospěch`})]}),(0,M.jsx)(`div`,{className:`card-body`,children:(0,M.jsxs)(`ul`,{children:[(0,M.jsxs)(`li`,{children:[`Alespoň `,(0,M.jsx)(`strong`,{children:`51 % případného zisku je reinvestováno`}),` a použito přednostně pro rozvoj sociálního podniku nebo pro naplnění společensky prospěšných cílů.`]}),(0,M.jsx)(`li`,{children:`Manažerské řízení podniku je zcela nezávislé na externím zřizovateli či vlastníkovi.`}),(0,M.jsxs)(`li`,{children:[`Tržby z prodeje služeb tvoří `,(0,M.jsx)(`strong`,{children:`alespoň 30 % z celkových výnosů`}),` sociálního podniku.`]})]})})]}),(0,M.jsxs)(`div`,{className:`glass-card principle-card`,children:[(0,M.jsxs)(`div`,{className:`card-header`,children:[(0,M.jsx)(`div`,{className:`icon-wrapper`,children:(0,M.jsx)(ti,{size:28})}),(0,M.jsx)(`h3`,{children:`Environmentální prospěch`})]}),(0,M.jsx)(`div`,{className:`card-body`,children:(0,M.jsxs)(`ul`,{children:[(0,M.jsxs)(`li`,{children:[`Podnik má formulované `,(0,M.jsx)(`strong`,{children:`zásady environmentálně šetrného podnikání`}),` – v provozovně Zelený ostrov jsou naše zaměstnankyně důsledně vedeny k tomu, že cíleně třídíme odpad.`]}),(0,M.jsxs)(`li`,{children:[`Jako zakázku pravidelně šijeme `,(0,M.jsx)(`strong`,{children:`ekologické pytlíky na potraviny`}),` (na chléb, pečivo, ovoce).`]})]})})]}),(0,M.jsxs)(`div`,{className:`glass-card principle-card wide-card`,children:[(0,M.jsxs)(`div`,{className:`card-header`,children:[(0,M.jsx)(`div`,{className:`icon-wrapper`,children:(0,M.jsx)(ai,{size:28})}),(0,M.jsx)(`h3`,{children:`Místní prospěch`})]}),(0,M.jsx)(`div`,{className:`card-body`,children:(0,M.jsxs)(`ul`,{children:[(0,M.jsx)(`li`,{children:`Podnik se ve své činnosti orientuje na lokální potřeby a přednostně využívá místní zdroje.`}),(0,M.jsxs)(`li`,{children:[`Našimi zákazníky jsou obyvatelé `,(0,M.jsx)(`strong`,{children:`mikroregionu Dolní Berounka, Zbraslavi a okolí`}),`. Dále našich služeb využívají místní organizace. Všechny naše zaměstnankyně mají své bydliště na území Praha-západ a Prahy.`]}),(0,M.jsx)(`li`,{children:`Podnik aktivně komunikuje a spolupracuje s místními aktéry:`}),(0,M.jsxs)(`ul`,{className:`nested-list`,children:[(0,M.jsxs)(`li`,{children:[`V prádelně jsme zrealizovali společně s Tichým světem `,(0,M.jsx)(`strong`,{children:`workshop o práci neslyšících`}),`, určený pro veřejnost a zástupce sociálního odboru.`]}),(0,M.jsxs)(`li`,{children:[`Jako ukázkový sociální podnik nás vybralo `,(0,M.jsx)(`strong`,{children:`MPSV`}),` a hostili jsme dvě zahraniční delegace z úřadů a ministerstev, které se v jejich zemích věnují sociálnímu podnikání.`]}),(0,M.jsxs)(`li`,{children:[`Sociální podnik Zelený ostrov jsme prezentovali na `,(0,M.jsx)(`strong`,{children:`konferenci neslyšících na Staroměstské radnici`}),` jako příkladného zaměstnavatele osob s poruchami sluchu.`]})]})]})})]})]})]})}),(0,M.jsx)(`style`,{children:`
296        .social-principles-page {
297          background-color: var(--bg-soft);
298          padding-bottom: 2rem;
299        }
300        .intro-text {
301          max-width: 800px;
302          margin: 0 auto;
303        }
304        .intro-text h2 {
305          font-size: 2.2rem;
306          color: var(--secondary);
307          margin-bottom: 1rem;
308        }
309        .intro-text .lead {
310          font-size: 1.25rem;
311          color: var(--text-muted);
312          line-height: 1.7;
313        }
314        .principles-grid {
315          display: grid;
316          grid-template-columns: 1fr 1fr;
317          gap: 2rem;
318          margin-top: 3rem;
319        }
320        .principle-card {
321          display: flex;
322          flex-direction: column;
323          height: 100%;
324          border-left: 5px solid var(--primary);
325        }
326        .wide-card {
327          grid-column: span 2;
328        }
329        .card-header {
330          display: flex;
331          align-items: center;
332          gap: 1rem;
333          margin-bottom: 1.5rem;
334          border-bottom: 1px solid var(--border-color);
335          padding-bottom: 1rem;
336        }
337        .icon-wrapper {
338          background-color: var(--primary-light);
339          color: var(--primary);
340          padding: 0.75rem;
341          border-radius: 50%;
342          display: flex;
343          align-items: center;
344          justify-content: center;
345        }
346        .card-header h3 {
347          margin: 0;
348          font-size: 1.4rem;
349          color: var(--secondary);
350        }
351        .card-body ul {
352          list-style-type: none;
353          padding: 0;
354          margin: 0;
355        }
356        .card-body ul li {
357          position: relative;
358          padding-left: 1.5rem;
359          margin-bottom: 1rem;
360          font-size: 1.05rem;
361          line-height: 1.6;
362        }
363        .card-body ul li:last-child {
364          margin-bottom: 0;
365        }
366        .card-body ul li::before {
367          content: "•";
368          color: var(--primary);
369          font-weight: bold;
370          font-size: 1.5rem;
371          position: absolute;
372          left: 0;
373          top: -3px;
374        }
375        .nested-list {
376          margin-top: 0.5rem !important;
377          margin-bottom: 0.5rem !important;
378        }
379        .nested-list li {
380          font-size: 0.95rem !important;
381          margin-bottom: 0.5rem !important;
382        }
383        .nested-list li::before {
384          content: "–" !important;
385          font-size: 1.2rem !important;
386          top: -1px !important;
387        }
388        @media (max-width: 992px) {
389          .principles-grid {
390            grid-template-columns: 1fr;
391          }
392          .wide-card {
393            grid-column: span 1;
394          }
395        }
396      `})]}),Nw=()=>(0,M.jsxs)(`div`,{className:`document-page`,children:[(0,M.jsx)(`section`,{className:`bg-header`,style:{background:`linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%)`},children:(0,M.jsxs)(`div`,{className:`container`,children:[(0,M.jsx)(`h1`,{className:`page-title animate-fade-in`,children:`Obchodní podmínky`}),(0,M.jsx)(`p`,{className:`page-subtitle animate-fade-in`,children:`Všeobecné obchodní podmínky sociálního podniku Zelený ostrov`})]})}),(0,M.jsx)(`section`,{className:`section`,children:(0,M.jsx)(`div`,{className:`container`,children:(0,M.jsxs)(`div`,{className:`document-card glass-card`,children:[(0,M.jsx)(`h2`,{children:`VŠEOBECNÉ OBCHODNÍ PODMÍNKY (VOP)`}),(0,M.jsxs)(`p`,{className:`effective-date`,children:[(0,M.jsx)(`strong`,{children:`Datum účinnosti:`}),` od 1. 1. 2026`]}
396),(0,M.jsx)(`hr`,{className:`divider`}),(0,M.jsxs)(`div`,{className:`document-section`,children:[(0,M.jsx)(`h3`,{children:`1. Úvodní ustanovení`}),(0,M.jsxs)(`p`,{children:[`1.1 Tyto VÅ¡eobecné obchodní podmínky upravují vzájemná práva a povinnosti mezi provozovatelem prádelenských služeb`,` `,(0,M.jsx)(`strong`,{children:`ZELENÝ OSTROV s.r.o., IČO: 27445747, DIČ: CZ27445747, se sídlem 5. května 3, 252 29 Dobřichovice, zapsaná u Městského soudu v Praze, spisová značka C 113258/MSPH, tel. +420 601 571 790, e-mail [email protected]`}),` `,`(dále jen „Poskytovatel“) a zákazníkem (dále jen „Zákazník“) vzniklá v souvislosti s poskytováním prádelenských služeb.`]}),(0,M.jsxs)(`p`,{children:[`1.2 Poskytovatelem je sociální podnik, který zaměstnává osoby se zdravotním nebo sociálním znevýhodněním a je oprávněn poskytovat`,` `,(0,M.jsx)(`strong`,{children:`náhradní plnění`}),` dle platných právních předpisů.`]}),(0,M.jsx)(`p`,{children:`1.3 Právní vztahy neupravené těmito VOP se řídí zákonem č. 89/2012 Sb., občanský zákoník, v platném znění.`})]}),(0,M.jsxs)(`div`,{className:`document-section`,children:[(0,M.jsx)(`h3`,{children:`2. Výklad pojmů`}),(0,M.jsxs)(`ul`,{children:[(0,M.jsxs)(`li`,{children:[(0,M.jsx)(`strong`,{children:`Služba`}),` – praní, suÅ¡ení, žehlení, mandlování, skládání prádla, případně expresní zpracování.`]}),(0,M.jsxs)(`li`,{children:[(0,M.jsx)(`strong`,{children:`Prádlo`}),` – textilní výrobky předané Zákazníkem k vyčiÅ¡tění (ložní prádlo, ručníky, pracovní oděvy, osobní prádlo apod.).`]}),(0,M.jsxs)(`li`,{children:[(0,M.jsx)(`strong`,{children:`Objednávka`}),` – závazná žádost Zákazníka o poskytnutí Služby.`]}),(0,M.jsxs)(`li`,{children:[(0,M.jsx)(`strong`,{children:`Ceník`}),` – aktuální cenová nabídka Poskytovatele.`]}),(0,M.jsxs)(`li`,{children:[(0,M.jsx)(`strong`,{children:`Rozvoz`}),` – vyzvednutí a doručení prádla Poskytovatelem nebo smluvním partnerem.`]}),(0,M.jsxs)(`li`,{children:[(0,M.jsx)(`strong`,{children:`Riziková položka`}),` – prádlo bez Å¡títku údržby nebo ve stavu, kdy hrozí jeho poÅ¡kození.`]})]})]}),(0,M.jsxs)(`div`,{className:`document-section`,children:[(0,M.jsx)(`h3`,{children:`3. Uzavření smlouvy`}),(0,M.jsx)(`p`,{children:`3.1 Smlouva je uzavřena okamžikem potvrzení Objednávky Poskytovatelem.`}),(0,M.jsx)(`p`,{children:`3.2 Objednávku lze učinit:`}),(0,M.jsxs)(`ul`,{children:[(0,M.jsx)(`li`,{children:`osobně na provozovně,`}),(0,M.jsx)(`li`,{children:`telefonicky,`}),(0,M.jsx)(`li`,{children:`e-mailem,`}),(0,M.jsx)(`li`,{children:`prostřednictvím webových stránek.`})]}),(0,M.jsx)(`p`,{children:`3.3 Odesláním Objednávky Zákazník potvrzuje, že se seznámil s těmito VOP a souhlasí s nimi.`})]}),(0,M.jsxs)(`div`,{className:`document-section`,children:[(0,M.jsx)(`h3`,{children:`4. Cena služeb`}),(0,M.jsx)(`p`,{children:`4.1 Cena Služeb je stanovena dle aktuálního Ceníku platného v okamžiku přijetí Objednávky.`}),(0,M.jsx)(`p`,{children:`4.2 Cena může být stanovena:`}),(0,M.jsxs)(`ul`,{children:[(0,M.jsxs)(`li`,{children:[(0,M.jsx)(`strong`,{children:`za kilogram prádla`}),`, nebo`]}),(0,M.jsxs)(`li`,{children:[(0,M.jsx)(`strong`,{children:`za kus`}),`, dle typu služby.`]})]}),(0,M.jsx)(`p`,{children:`4.3 Poskytovatel si vyhrazuje právo upravit cenu v případě:`}),(0,M.jsxs)(`ul`,{children:[(0,M.jsx)(`li`,{children:`nesprávně uvedeného množství,`}),(0,M.jsx)(`li`,{children:`dodatečných požadavků,`}),(0,M.jsx)(`li`,{children:`zjiÅ¡tění nestandardního nebo silně znečiÅ¡těného prádla.`})]})]}),(0,M.jsxs)(`div`,{className:`document-section`,children:[(0,M.jsx)(`h3`,{children:`5. Platební podmínky`}),(0,M.jsx)(`p`,{children:`5.1 Platba je možná:`}),(0,M.jsxs)(`ul`,{children:[(0,M.jsx)(`li`,{children:`v hotovosti,`}),(0,M.jsx)(`li`,{children:`bezhotovostním převodem,`}),(0,M.jsx)(`li`,{children:`na základě faktury (zejména u B2B klientů).`})]}),(0,M.jsx)(`p`,{children:`5.2 U pravidelných smluvních zákazníků může být sjednána splatnost faktur individuálně.`})]}),(0,M.jsxs)(`div`,{className:`document-section`,children:[(0,M.jsx)(`h3`,{children:`6. Převzetí prádla`}),(0,M.jsx)(`p`,{children:`6.1 Zákazník je povinen:`}),(0,M.jsxs)(`ul`,{children:[(0,M.jsxs)(`li`,{children:[`předat prádlo `,(0,M.jsx)(`strong`,{children:`bez cenností`}),`,`]}),(0,M.jsx)(`li`,{children:`označit prádlo (u B2B zakázek dle dohody),`}),(0,M.jsx)(`li`,{children:`upozornit na specifické požadavky či vady.`})]}),(0,M.jsx)(`p`,{children:`6.2 Poskytovatel neodpovídá za:`}),(0,M.jsxs)(`ul`,{children:[(0,M.jsx)(`li`,{children:`předměty ponechané v kapsách,`}),(0,M.jsx)(`li`,{children:`prádlo předané v nevhodných obalech.`})]})]}),(0,M.jsxs)(`div`,{className:`document-section`,children:[(0,M.jsx)(`h3`,{children:`7. Zpracování prádla`}),(0,M.jsx)(`p`,{children:`7.1 Poskytovatel se zavazuje postupovat odborně a s využitím běžných technologických postupů.`}),(0,M.jsx)(`p`,{children:`7.2 Prádlo je zpracováváno dle:`}),(0,M.jsxs)(`ul`,{children:[(0,M.jsx)(`li`,{children:`údajů na Å¡títku údržby,`}),(0,M.jsx)(`li`,{children:`pokynů Zákazníka, jsou-li v souladu s technologií.`})]}),(0,M.jsxs)(`p`,{children:[`7.3 U `,(0,M.jsx)(`strong`,{children:`rizikových položek`}),` může Poskytovatel:`]}),(0,M.jsxs)(`ul`,{children:[(0,M.jsx)(`li`,{children:`vyžadovat písemný souhlas,`}),(0,M.jsx)(`li`,{children:`nebo odmítnout jejich zpracování.`})]})]}),(0,M.jsxs)(`div`,{className:`document-section`,children:[(0,M.jsx)(`h3`,{children:`8. Lhůty vyhotovení`}),(0,M.jsxs)(`p`,{children:[`8.1 Standardní lhůta je obvykle `,(0,M.jsx)(`strong`,{children:`2–5 pracovní dny`}),`, není-li dohodnuto jinak.`]}),(0,M.jsx)(`p`,{children:`8.2 Expresní služby jsou možné po předchozí domluvě a za příplatek.`})]}),(0,M.jsxs)(`div`,{className:`document-section`,children:[(0,M.jsx)(`h3`,{children:`9. Doručení a rozvoz`}),(0,M.jsx)(`p`,{children:`9.1 Rozvoz je realizován:`}),(0,M.jsxs)(`ul`,{children:[(0,M.jsx)(`li`,{children:`vlastní dopravou Poskytovatele, nebo`}),(0,M.jsx)(`li`,{children:`externím dopravcem.`})]}),(0,M.jsx)(`p`,{children:`9.2 Nedostaví-li se Zákazník k převzetí prádla, může být účtován manipulační poplatek.`})]}),(0,M.jsxs)(`div`,{className:`document-section`,children:[(0,M.jsx)(`h3`,{children:`10. Reklamace`}),(0,M.jsxs)(`p`,{children:[`10.1 Zjevné vady je nutné oznámit `,(0,M.jsx)(`strong`,{children:`bez zbytečného odkladu`}),`, nejpozději při převzetí prádla.`]}),(0,M.jsx)(`p`,{children:`10.2 Reklamace se uplatňuje:`}),(0,M.jsxs)(`ul`,{children:[(0,M.jsx)(`li`,{children:`osobně,`}),(0,M.jsx)(`li`,{children:`e-mailem,`}),(0,M.jsx)(`li`,{children:`písemně.`})]}),(0,M.jsx)(`p`,{children:`10.3 V případě oprávněné reklamace má Zákazník právo na:`}),(0,M.jsxs)(`ul`,{children:[(0,M.jsx)(`li`,{children:`opakované vyčiÅ¡tění,`}),(0,M.jsx)(`li`,{children:`přiměřenou slevu,`}),(0,M.jsx)(`li`,{children:`případně vrácení ceny.`})]})]}),(0,M.jsxs)(`div`,{className:`document-section`,children:[(0,M.jsx)(`h3`,{children:`11. Odpovědnost a omezení`}),(0,M.jsx)(`p`,{children:`11.1 Poskytovatel neodpovídá za:`}),(0,M.jsxs)(`ul`,{children:[(0,M.jsx)(`li`,{children:`skryté vady materiálu,`}),(0,M.jsx)(`li`,{children:`běžné opotřebení,`}),(0,M.jsx)(`li`,{children:`změny barvy způsobené výrobní vadou.`})]}),(0,M.jsx)(`p`,{children:`11.2 Maximální náhrada Å¡kody je omezena do výše ceny dané Služby, není-li stanoveno jinak zákonem.`})]}),(0,M.jsxs)(`div`,{className:`document-section`,children:[(0,M.jsx)(`h3`,{children:`12. Odstoupení od smlouvy`}),(0,M.jsx)(`p`,{children:`12.1 Spotřebitel má právo odstoupit od smlouvy do 14 dnů, pokud nebyla Služba již započata.`}),(0,M.jsx)(`p`,{children:`12.2 Po zahájení zpracování prádla právo na odstoupení zaniká.`})]}),(0,M.jsxs)(`div`,{className:`document-section`,children:[(0,M.jsx)(`h3`,{children:`13. Ochrana osobních údajů`}),(0,M.jsx)(`p`,{children:`13.1 Poskytovatel zpracovává osobní údaje v souladu s GDPR.`}),(0,M.jsxs)(`p`,{children:[`13.2 Podrobnosti jsou uvedeny v samostatném dokumentu `,(0,M.jsx)(`strong`,{children:`Zásady ochrany osobních údajů`}),`.`]})]}),(0,M.jsxs)(`div`,{className:`document-section`,children:[(0,M.jsx)(`h3`,{children:`14. Závěrečná ustanovení`}),(0,M.jsx)(`p`,{children:`14.1 Tyto VOP jsou platné a účinné ode dne jejich zveřejnění.`}),(0,M.jsx)(`p`,{children:`14.2 Poskytovatel si vyhrazuje právo VOP měnit; změny jsou účinné dnem zveřejnění.`}),(0,M.jsx)(`p`,{children:`14.3 VOP jsou vyhotoveny v českém jazyce.`})]})]})})}),(0,M.jsx)(`style`,{children:`
397        .document-page {
398          background-color: var(--bg-soft);
399          padding-bottom: 2rem;
400        }
401        .document-card {
402          max-width: 850px;
403          margin: 0 auto;
404          padding: 3.5rem;
405          background: #ffffff;
406          border-radius: var(--radius-lg);
407          box-shadow: var(--shadow-md);
408        }
409        .document-card h2 {
410          text-align: center;
411          font-size: 1.8rem;
412          color: var(--secondary);
413          margin-bottom: 0.5rem;
414          font-weight: 700;
415          letter-spacing: -0.5px;
416        }
417        .effective-date {
418          text-align: center;
419          color: var(--text-muted);
420          font-size: 1rem;
421          margin-bottom: 2rem;
422        }
423        .divider {
424          border: 0;
425          height: 1px;
426          background: var(--border-color);
427          margin-bottom: 2.5rem;
428        }
429        .document-section {
430          margin-bottom: 2.5rem;
431        }
432        .document-section:last-child {
433          margin-bottom: 0;
434        }
435        .document-section h3 {
436          font-size: 1.3rem;
437          color: var(--secondary);
438          border-bottom: 2px solid var(--primary-light);
439          padding-bottom: 0.5rem;
440          margin-bottom: 1rem;
441          font-weight: 600;
442        }
443        .document-section p {
444          font-size: 1.05rem;
445          line-height: 1.7;
446          color: var(--text-main);
447          margin-bottom: 1rem;
448        }
449        .document-section ul {
450          list-style-type: none;
451          padding-left: 0;
452          margin-bottom: 1rem;
453        }
454        .document-section ul li {
455          position: relative;
456          padding-left: 1.5rem;
457          margin-bottom: 0.75rem;
458          font-size: 1.05rem;
459          line-height: 1.6;
460          color: var(--text-main);
461        }
462        .document-section ul li::before {
463          content: "•";
464          color: var(--primary);
465          font-weight: bold;
466          font-size: 1.3rem;
467          position: absolute;
468          left: 0;
469          top: -2px;
470        }
471        .document-section a {
472          font-weight: 500;
473          text-decoration: underline;
474        }
475        @media (max-width: 768px) {
476          .document-card {
477            padding: 2rem 1.5rem;
478          }
479          .document-card h2 {
480            font-size: 1.5rem;
481          }
482        }
483      `})]}),Pw=()=>(0,M.jsxs)(`div`,{className:`document-page`,children:[(0,M.jsx)(`section`,{className:`bg-header`,style:{background:`linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%)`},children:(0,M.jsxs)(`div`,{className:`container`,children:[(0,M.jsx)(`h1`,{className:`page-title animate-fade-in`,children:`Ochrana osobních údajů`}),(0,M.jsx)(`p`,{className:`page-subtitle animate-fade-in`,children:`Zásady ochrany osobních údajů a plnění GDPR sociálního podniku Zelený ostrov`})]})}),(0,M.jsx)(`section`,{className:`section`,children:(0,M.jsx)(`div`,{className:`container`,children:(0,M.jsxs)(`div`,{className:`document-card glass-card`,children:[(0,M.jsx)(`h2`,{children:`ZÁSADY OCHRANY OSOBNÍCH ÚDAJŮ`}),(0,M.jsxs)(`p`,{className:`effective-date`,children:[(0,M.jsx)(`strong`,{children:`Datum účinnosti:`}),` od 1. 1. 2026`]}
483),(0,M.jsx)(`hr`,{className:`divider`}),(0,M.jsxs)(`div`,{className:`document-section`,children:[(0,M.jsx)(`h3`,{children:`1. Úvodní ustanovení`}),(0,M.jsxs)(`p`,{children:[`Tyto Zásady ochrany osobních údajů popisují, jakým způsobem prádelna `,(0,M.jsx)(`strong`,{children:`Zelený ostrov`}),` s.r.o. (dále jen „Správce“) shromažďuje, zpracovává, uchovává a chrání osobní údaje svých zákazníků, obchodních partnerů a dalších osob v souladu s nařízením Evropského parlamentu a Rady (EU) 2016/679 („GDPR“).`]}),(0,M.jsx)(`p`,{children:`Správce klade maximální důraz na ochranu soukromí a bezpečnost osobních údajů.`})]}),(0,M.jsxs)(`div`,{className:`document-section`,children:[(0,M.jsx)(`h3`,{children:`2. Správce osobních údajů`}),(0,M.jsxs)(`p`,{children:[(0,M.jsx)(`strong`,{children:`Správce osobních údajů:`}),(0,M.jsx)(`br`,{}),`Zelený ostrov – sociální prádelna`]}),(0,M.jsxs)(`p`,{children:[(0,M.jsx)(`strong`,{children:`Provozovatel:`}),(0,M.jsx)(`br`,{}),(0,M.jsx)(`strong`,{children:`ZELENÝ OSTROV s.r.o., IČO: 27445747, DIČ: CZ27445747, se sídlem 5. května 3, 252 29 Dobřichovice, zapsaná u Městského soudu v Praze, spisová značka C 113258/MSPH, tel. +420 601 571 790, e-mail [email protected]`})]}),(0,M.jsx)(`p`,{children:`Správce není povinen jmenovat pověřence pro ochranu osobních údajů.`})]}),(0,M.jsxs)(`div`,{className:`document-section`,children:[(0,M.jsx)(`h3`,{children:`3. Jaké osobní údaje zpracováváme`}),(0,M.jsx)(`p`,{children:`Zpracováváme zejména tyto osobní údaje:`}),(0,M.jsx)(`h4`,{children:`a) Identifikační údaje`}),(0,M.jsxs)(`ul`,{children:[(0,M.jsx)(`li`,{children:`jméno a příjmení`}),(0,M.jsx)(`li`,{children:`obchodní firma (u B2B klientů)`}),(0,M.jsx)(`li`,{children:`IČO, DIČ (je-li relevantní)`})]}),(0,M.jsx)(`h4`,{children:`b) Kontaktní údaje`}),(0,M.jsxs)(`ul`,{children:[(0,M.jsx)(`li`,{children:`e-mailová adresa`}),(0,M.jsx)(`li`,{children:`telefonní číslo`}),(0,M.jsx)(`li`,{children:`doručovací a fakturační adresa`})]}),(0,M.jsx)(`h4`,{children:`c) Údaje o zakázkách`}),(0,M.jsxs)(`ul`,{children:[(0,M.jsx)(`li`,{children:`informace o objednaných službách`}),(0,M.jsx)(`li`,{children:`množství a typ prádla`}),(0,M.jsx)(`li`,{children:`historie zakázek`})]}),(0,M.jsx)(`h4`,{children:`d) Platební údaje`}),(0,M.jsxs)(`ul`,{children:[(0,M.jsx)(`li`,{children:`informace o platbách`}),(0,M.jsx)(`li`,{children:`číslo účtu (u bezhotovostních plateb)`})]})]}),(0,M.jsxs)(`div`,{className:`document-section`,children:[(0,M.jsx)(`h3`,{children:`4. Účel zpracování osobních údajů`}),(0,M.jsx)(`p`,{children:`Osobní údaje zpracováváme za účelem:`}),(0,M.jsxs)(`ul`,{children:[(0,M.jsx)(`li`,{children:`vyřízení objednávek a poskytování prádelenských služeb,`}),(0,M.jsx)(`li`,{children:`komunikace se zákazníky,`}),(0,M.jsx)(`li`,{children:`zajiÅ¡tění rozvozu a vyzvednutí prádla,`}),(0,M.jsx)(`li`,{children:`vystavování daňových dokladů a vedení účetnictví,`}),(0,M.jsx)(`li`,{children:`plnění zákonných povinností,`}),(0,M.jsx)(`li`,{children:`evidence náhradního plnění,`}),(0,M.jsx)(`li`,{children:`ochrany naÅ¡ich právních nároků.`})]})]}),(0,M.jsxs)(`div`,{className:`document-section`,children:[(0,M.jsx)(`h3`,{children:`5. Právní základ zpracování`}),(0,M.jsx)(`p`,{children:`Osobní údaje zpracováváme na základě:`}),(0,M.jsxs)(`ul`,{children:[(0,M.jsxs)(`li`,{children:[(0,M.jsx)(`strong`,{children:`plnění smlouvy`}),` (čl. 6 odst. 1 písm. b) GDPR),`]}),(0,M.jsxs)(`li`,{children:[(0,M.jsx)(`strong`,{children:`plnění právní povinnosti`}),` (čl. 6 odst. 1 písm. c) GDPR),`]}),(0,M.jsxs)(`li`,{children:[(0,M.jsx)(`strong`,{children:`oprávněného zájmu Správce`}),` (čl. 6 odst. 1 písm. f) GDPR),`]}),(0,M.jsxs)(`li`,{children:[(0,M.jsx)(`strong`,{children:`souhlasu subjektu údajů`}),`, je-li vyžadován (např. marketing).`]})]})]}),(0,M.jsxs)(`div`,{className:`document-section`,children:[(0,M.jsx)(`h3`,{children:`6. Doba uchování osobních údajů`}),(0,M.jsx)(`p`,{children:`Osobní údaje uchováváme:`}),(0,M.jsxs)(`ul`,{children:[(0,M.jsx)(`li`,{children:`po dobu trvání smluvního vztahu,`}),(0,M.jsxs)(`li`,{children:[`dále po dobu `,(0,M.jsx)(`strong`,{children:`10 let`}),` od posledního plnění (účetní a daňové povinnosti),`]}),(0,M.jsx)(`li`,{children:`marketingová data do odvolání souhlasu.`})]}),(0,M.jsx)(`p`,{children:`Po uplynutí této doby jsou údaje bezpečně smazány nebo anonymizovány.`})]}),(0,M.jsxs)(`div`,{className:`document-section`,children:[(0,M.jsx)(`h3`,{children:`7. Komu mohou být údaje předány`}),(0,M.jsx)(`p`,{children:`Osobní údaje mohou být předány pouze důvěryhodným zpracovatelům, zejména:`}),(0,M.jsxs)(`ul`,{children:[(0,M.jsx)(`li`,{children:`účetní a daňové kanceláři,`}),(0,M.jsx)(`li`,{children:`poskytovatelům IT a hostingových služeb,`}),(0,M.jsx)(`li`,{children:`externím dopravcům (rozvoz prádla),`}),(0,M.jsx)(`li`,{children:`poskytovatelům platebních služeb.`})]}),(0,M.jsx)(`p`,{children:`Se vÅ¡emi zpracovateli má Správce uzavřenou smlouvu o zpracování osobních údajů.`}),(0,M.jsx)(`h4`,{className:`mt-4`,children:`Automatický sběr informací a zpracování protokolových souborů`}),(0,M.jsx)(`p`,{children:`Webové a databázové servery standardním způsobem při každé návÅ¡těvě automaticky zaznamenávají informace do protokolových souborů (logování provozu). Zpracování protokolových souborů může (ale nemusí) zahrnovat následující osobní údaje návÅ¡těvníka webové stránky:`}),(0,M.jsxs)(`ul`,{children:[(0,M.jsx)(`li`,{children:`webová stránka, z níž návÅ¡těvník naÅ¡i webovou stránku navÅ¡tívil,`}),(0,M.jsx)(`li`,{children:`datum a čas přístupu,`}),(0,M.jsx)(`li`,{children:`doba přístupu,`}),(0,M.jsx)(`li`,{children:`IP adresa,`}),(0,M.jsx)(`li`,{children:`informace z http protokolu (požadavek/odpověď),`}),(0,M.jsx)(`li`,{children:`přenesený objem dat,`}),(0,M.jsx)(`li`,{children:`navÅ¡tívené stránky,`}),(0,M.jsx)(`li`,{children:`informace o webovém prohlížeči,`}),(0,M.jsx)(`li`,{children:`jazykové nastavení,`}),(0,M.jsx)(`li`,{children:`informace o verzi operačního systému.`})]}),(0,M.jsx)(`p`,{children:`Tyto údaje jsou zpracovávány na základě naÅ¡eho oprávněného zájmu za účelem měření návÅ¡těvnosti, přizpůsobování zobrazení nebo obsahu, zlepÅ¡ování fungování a zajiÅ¡tění ochrany a bezpečnosti webových stránek (např. sledování neoprávněných přístupů apod.).`}),(0,M.jsx)(`h4`,{className:`mt-4`,children:`Externí marketingové nástroje`}),(0,M.jsxs)(`p`,{children:[`NaÅ¡e webové stránky využívají technologie retargetingu od služby Sklik provozované společností `,(0,M.jsx)(`strong`,{children:`Seznam.cz, a.s.`}),`, IČ: 26168685, se sídlem Radlická 3294/10, Praha 5, 150 00, Česká republika. Ta umožňuje ukázat návÅ¡těvníkům, kteří již projevili zájem o naÅ¡e produkty, naÅ¡e reklamy v reklamní síti společnosti Seznam.cz. Z cílené reklamy společnosti Seznam.cz se lze odhlásit na adrese `,(0,M.jsx)(`a`,{href:`https://www.imedia.cz`,target:`_blank`,rel:`noopener noreferrer`,children:`www.imedia.cz`}),`.`]}),(0,M.jsxs)(`p`,{children:[`NaÅ¡e webové stránky využívají rozšířené marketingové nástroje od společnosti `,(0,M.jsx)(`strong`,{children:`Google`}),` (např. Google AdWords), v rámci kterých jsou shromažďovány informace pro remarketing nebo podobné segmenty publika. Na základě takto získaných dat zobrazuje společnost Google návÅ¡těvníkům reklamy naší společnosti v obsahové síti na různých webech. Společnost Google využívá soubory cookie také k personalizaci a zacílení zobrazovaných reklam na základě předchozích návÅ¡těv a zhlédnutých produktů (tzv. remarketing). Díky tomu pak může návÅ¡těvníkům svých webových stránek nabídnout reklamní obsah, který pro ně bude co možná nejzajímavější. Personalizaci reklamy může návÅ¡těvník webových stránek vypnout či upravit prostřednictvím svého účtu Google na stránce: `,(0,M.jsx)(`a`,{href:`http://www.google.com/settings/ads`,target:`_blank`,rel:`noopener noreferrer`,children:`http://www.google.com/settings/ads`}),`.`]}),(0,M.jsxs)(`p`,{children:[`NaÅ¡e webové stránky využívají reklamní technologie `,(0,M.jsx)(`strong`,{children:`META platforms`}),`. Více na `,(0,M.jsx)(`a`,{href:`https://www.meta.com/about/`,target:`_blank`,rel:`noopener noreferrer`,children:`https://www.meta.com/about/`}),`.`]}),(0,M.jsx)(`h4`,{className:`mt-4`,children:`Google Analytics`}),(0,M.jsxs)(`p`,{children:[`K analýze návÅ¡těvnosti webových stránek využíváme službu `,(0,M.jsx)(`strong`,{children:`Google Analytics`}),`, poskytovanou společností Google Inc., se sídlem Amphitheatre Parkway, Mountain Vie
483w, CA 94043, USA. Statistická a analytická data nám pomáhají porozumět, jak uživatelé používají webové stránky a rovněž vyhodnocovat naše případné marketingové aktivity. Analýza pomocí služby Google Analytics probíhá tak, že informace o užívání webové stránky jsou prostřednictvím technologie souborů cookie přeneseny a uloženy na server Google v USA a tam podrobeny příslušné analýze a v anonymizované podobě nám zpřístupněny.`]}),(0,M.jsxs)(`p`,{children:[`Svůj souhlas s analýzou internetových stránek může návštěvník kdykoli odvolat buď výše uvedeným nastavením cookie nebo stažením a nainstalováním poskytnutého Google Browser Plugin na adrese: `,(0,M.jsx)(`a`,{href:`https://tools.google.com/dlpage/gaoptout`,target:`_blank`,rel:`noopener noreferrer`,children:`https://tools.google.com/dlpage/gaoptout`}),`.`]}),(0,M.jsx)(`p`,{children:`Další informace o Google Analytics:`}),(0,M.jsxs)(`ul`,{children:[(0,M.jsxs)(`li`,{children:[`Smluvní podmínky služby Google Analytics: `,(0,M.jsx)(`a`,{href:`https://www.google.com/analytics/terms/cz.html`,target:`_blank`,rel:`noopener noreferrer`,children:`https://www.google.com/analytics/terms/cz.html`})]}),(0,M.jsxs)(`li`,{children:[`Směrnice pro ochranu osobních údajů: `,(0,M.jsx)(`a`,{href:`https://support.google.com/analytics/answer/6004245?hl=cs-CZ`,target:`_blank`,rel:`noopener noreferrer`,children:`https://support.google.com/analytics/answer/6004245?hl=cs-CZ`})]}),(0,M.jsxs)(`li`,{children:[`Zásady ochrany osobních údajů Google: `,(0,M.jsx)(`a`,{href:`https://policies.google.com/privacy?hl=cs`,target:`_blank`,rel:`noopener noreferrer`,children:`https://policies.google.com/privacy?hl=cs`})]})]})]}),(0,M.jsxs)(`div`,{className:`document-section`,children:[(0,M.jsx)(`h3`,{children:`8. Zabezpečení osobních údajů`}),(0,M.jsx)(`p`,{children:`Správce přijal technická a organizační opatření k zabezpečení osobních údajů, zejména:`}),(0,M.jsxs)(`ul`,{children:[(0,M.jsx)(`li`,{children:`omezený přístup k údajům,`}),(0,M.jsx)(`li`,{children:`zabezpečené informační systémy,`}),(0,M.jsx)(`li`,{children:`pravidelné aktualizace a zálohování,`}),(0,M.jsx)(`li`,{children:`poučení zaměstnanců o ochraně údajů.`})]})]}),(0,M.jsxs)(`div`,{className:`document-section`,children:[(0,M.jsx)(`h3`,{children:`9. Práva subjektů údajů`}),(0,M.jsx)(`p`,{children:`Máte právo:`}),(0,M.jsxs)(`ul`,{children:[(0,M.jsx)(`li`,{children:`na přístup k osobním údajům,`}),(0,M.jsx)(`li`,{children:`na opravu nepřesných údajů,`}),(0,M.jsx)(`li`,{children:`na výmaz osobních údajů („právo být zapomenut“),`}),(0,M.jsx)(`li`,{children:`na omezení zpracování,`}),(0,M.jsx)(`li`,{children:`na přenositelnost údajů,`}),(0,M.jsx)(`li`,{children:`vznést námitku proti zpracování,`}),(0,M.jsx)(`li`,{children:`podat stížnost u Úřadu pro ochranu osobních údajů.`})]}),(0,M.jsxs)(`p`,{children:[(0,M.jsx)(`strong`,{children:`Dozorový úřad:`}),(0,M.jsx)(`br`,{}),`Úřad pro ochranu osobních údajů`,(0,M.jsx)(`br`,{}),(0,M.jsx)(`a`,{href:`http://www.uoou.cz`,target:`_blank`,rel:`noopener noreferrer`,children:`www.uoou.cz`})]})]}),(0,M.jsxs)(`div`,{className:`document-section`,children:[(0,M.jsx)(`h3`,{children:`10. Cookies a webové stránky`}),(0,M.jsx)(`p`,{children:`Pokud Správce provozuje webové stránky, může docházet k používání souborů cookies za účelem:`}),(0,M.jsxs)(`ul`,{children:[(0,M.jsx)(`li`,{children:`zajištění funkčnosti webu,`}),(0,M.jsx)(`li`,{children:`zlepšení uživatelského komfortu,`}),(0,M.jsx)(`li`,{children:`statistických analýz.`})]}),(0,M.jsx)(`p`,{children:`Používání cookies lze upravit v nastavení internetového prohlížeče.`})]}),(0,M.jsxs)(`div`,{className:`document-section`,children:[(0,M.jsx)(`h3`,{children:`11. Závěrečná ustanovení`}),(0,M.jsxs)(`p`,{children:[`Tyto Zásady jsou platné a účinné ode dne jejich zveřejnění.`,(0,M.jsx)(`br`,{}),`Správce si vyhrazuje právo tyto Zásady kdykoli aktualizovat.`]})]})]})})}),(0,M.jsx)(`style`,{children:`
484        .document-page {
485          background-color: var(--bg-soft);
486          padding-bottom: 2rem;
487        }
488        .document-card {
489          max-width: 850px;
490          margin: 0 auto;
491          padding: 3.5rem;
492          background: #ffffff;
493          border-radius: var(--radius-lg);
494          box-shadow: var(--shadow-md);
495        }
496        .document-card h2 {
497          text-align: center;
498          font-size: 1.8rem;
499          color: var(--secondary);
500          margin-bottom: 0.5rem;
501          font-weight: 700;
502          letter-spacing: -0.5px;
503        }
504        .effective-date {
505          text-align: center;
506          color: var(--text-muted);
507          font-size: 1rem;
508          margin-bottom: 2rem;
509        }
510        .divider {
511          border: 0;
512          height: 1px;
513          background: var(--border-color);
514          margin-bottom: 2.5rem;
515        }
516        .document-section {
517          margin-bottom: 2.5rem;
518        }
519        .document-section:last-child {
520          margin-bottom: 0;
521        }
522        .document-section h3 {
523          font-size: 1.3rem;
524          color: var(--secondary);
525          border-bottom: 2px solid var(--primary-light);
526          padding-bottom: 0.5rem;
527          margin-bottom: 1.2rem;
528          font-weight: 600;
529        }
530        .document-section h4 {
531          font-size: 1.1rem;
532          color: var(--secondary);
533          margin-top: 1.5rem;
534          margin-bottom: 0.75rem;
535          font-weight: 600;
536        }
537        .document-section p {
538          font-size: 1.05rem;
539          line-height: 1.7;
540          color: var(--text-main);
541          margin-bottom: 1rem;
542        }
543        .document-section ul {
544          list-style-type: none;
545          padding-left: 0;
546          margin-bottom: 1.2rem;
547        }
548        .document-section ul li {
549          position: relative;
550          padding-left: 1.5rem;
551          margin-bottom: 0.75rem;
552          font-size: 1.05rem;
553          line-height: 1.6;
554          color: var(--text-main);
555        }
556        .document-section ul li::before {
557          content: "•";
558          color: var(--primary);
559          font-weight: bold;
560          font-size: 1.3rem;
561          position: absolute;
562          left: 0;
563          top: -2px;
564        }
565        .document-section a {
566          font-weight: 500;
567          text-decoration: underline;
568        }
569        @media (max-width: 768px) {
570          .document-card {
571            padding: 2rem 1.5rem;
572          }
573          .document-card h2 {
574            font-size: 1.5rem;
575          }
576        }
577      `})]}),Fw=()=>(0,M.jsxs)(`div`,{className:`partners-page`,style:{background:`var(--bg-light)`,minHeight:`100vh`,paddingBottom:`5rem`},children:[(0,M.jsx)(`section`,{className:`bg-header`,style:{backgroundImage:`url('/images/header_seniors_cz_1779127755084.png')`,minHeight:`40vh`,dis
577play:`flex`,alignItems:`center`},children:(0,M.jsxs)(`div`,{className:`container`,children:[(0,M.jsxs)(j,{to:`/`,className:`btn btn-outline-white mb-4`,style:{display:`inline-flex`,alignItems:`center`,gap:`0.5rem`,marginBottom:`1rem`,color:`white`,borderColor:`white`},children:[(0,M.jsx)(br,{size:16}),` Zpět na hlavní stránku`]}),(0,M.jsx)(`h1`,{className:`page-title animate-fade-in`,style:{color:`white`,textShadow:`0 2px 4px rgba(0,0,0,0.2)`},children:`Naši partneři a dárci`}),(0,M.jsx)(`p`,{className:`page-subtitle animate-fade-in`,style:{color:`rgba(255,255,255,0.9)`,maxWidth:`700px`},children:`Díky laskavé podpoře nadací, veřejných institucí, soukromých firem i štědrých dárců můžeme rozvíjet náš sociální podnik a nabízet stabilní práci lidem s handicapem. Děkujeme!`})]})}),(0,M.jsxs)(`div`,{className:`container`,style:{marginTop:`4rem`},children:[(0,M.jsxs)(`section`,{style:{marginBottom:`4rem`},children:[(0,M.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`0.75rem`,marginBottom:`2rem`,borderBottom:`2px solid var(--primary-light)`,paddingBottom:`0.5rem`},children:[(0,M.jsx)(Zr,{size:28,style:{color:`var(--primary)`}}),(0,M.jsx)(`h2`,{style:{fontSize:`1.8rem`,margin:0,color:`var(--secondary)`},children:`Individuální dárci`})]}),(0,M.jsx)(`div`,{style:{display:`grid`,gridTemplateColumns:`repeat(auto-fit, minmax(350px, 1fr))`,gap:`2rem`},children:[{name:`Mgr. Dominik Štros`,description:`Srdečně děkujeme za velkorysý finanční dar, díky kterému jsme zrenovovali naše prádelenská zařízení a zakoupili novou profesionální pračku. Vaší podpory si velmi vážíme!`,icon:qr},{name:`Ing. Jana Mrázová`,description:`Velice děkujeme za finanční podporu na nákup nové pračky, která významně zjednodušila a zrychlila každodenní náročnou práci našim zaměstnankyním.`,icon:qr}].map((e,t)=>(0,M.jsxs)(`div`,{className:`glass-card`,style:{padding:`2rem`,borderRadius:`16px`,borderTop:`4px solid var(--primary)`,display:`flex`,gap:`1.5rem`,alignItems:`flex-start`,background:`white`,boxShadow:`var(--shadow-sm)`},children:[(0,M.jsx)(`div`,{style:{backgroundColor:`var(--primary-light)`,color:`var(--primary)`,padding:`0.75rem`,borderRadius:`50%`},children:(0,M.jsx)(e.icon,{size:24})}),(0,M.jsxs)(`div`,{children:[(0,M.jsx)(`h3`,{style:{fontSize:`1.3rem`,margin:`0 0 0.75rem 0`,color:`var(--secondary)`},children:e.name}),(0,M.jsx)(`p`,{style:{color:`var(--text-light)`,lineHeight:`1.6`,margin:0},children:e.description})]})]},t))})]}),(0,M.jsxs)(`section`,{style:{marginBottom:`4rem`},children:[(0,M.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`0.75rem`,marginBottom:`2rem`,borderBottom:`2px solid var(--primary-light)`,paddingBottom:`0.5rem`},children:[(0,M.jsx)(Tr,{size:28,style:{color:`var(--primary)`}}),(0,M.jsx)(`h2`,{style:{fontSize:`1.8rem`,margin:0,color:`var(--secondary)`}
577,children:`Nadace a fondy`})]}),(0,M.jsx)(`div`,{style:{display:`grid`,gridTemplateColumns:`repeat(auto-fit, minmax(320px, 1fr))`,gap:`2rem`},children:[{name:`Konto Bariéry`,logo:`https://tempwebmiumusersrecovery.blob.core.windows.net/users/96791/assets/3a4928afada515a96678d6cfb605b42f/kontobariery2.jpg`,link:`http://www.kontobariery.cz/home.aspx`,description:`Významná nadace, která pomáhá lidem se zdravotním handicapem překonávat bariéry a zapojit se do plnohodnotného života.`},{name:`Evropská unie - Operační program Zaměstnanost`,logo:`https://webmium.blob.core.windows.net/users/96791/assets/700a37e86d953e1880e33c30a46fcdc7/logoopzbarevne.jpg`,link:`https://www.esfcr.cz/`,description:`Evropský sociální fond podporující rozvoj zaměstnanosti, sociální začleňování a integraci znevýhodněných osob na trh práce.`},{name:`ČSOB - Stabilizace sociálních podniků`,logo:`https://webmium.blob.core.windows.net/users/96791/assets/871fc817372d46a5d15e15e7c9262843/csobr.jpg`,link:`https://www.csob.cz/`,description:`Program na podporu a stabilizaci sociálního podnikání, finanční gramotnosti a udržitelného rozvoje.`},{name:`Nadace Via & UniCredit`,logo:`https://webmium.blob.core.windows.net/users/96791/assets/6640fcc23cee34750672bfa9036487c1/vialepsibyznysrgb.jpg`,link:`https://www.nadacevia.cz/`,description:`Projekt byl finančně podpořen z prostředků UniCredit Foundation a UniCredit Bank prostřednictvím programu Nadace Via - Lepší byznys.`},{name:`Nadace ČEZ`,description:`Dlouhodobý partner a podporovatel obecně prospěšných a charitativních aktivit v celé České republice.`,link:`https://www.nadacecez.cz/`}].map((e,t)=>(0,M.jsxs)(`div`,{className:`glass-card`,style:{padding:`2rem`,borderRadius:`16px`,background:`white`,boxShadow:`var(--shadow-sm)`,display:`flex`,flexDirection:`column`,height:`100%`},children:[e.logo?(0,M.jsx)(`div`,{style:{height:`90px`,display:`flex`,alignItems:`center`,justifyContent:`center`,marginBottom:`1.5rem`,background:`#fcfcfc`,borderRadius:`8px`,padding:`0.5rem`},children:(0,M.jsx)(`img`,{src:e.logo,alt:e.name,style:{maxHeight:`100%`,maxWidth:`100%`,objectFit:`contain`}})}):(0,M.jsx)(`div`,{style:{height:`90px`,display:`flex`,alignItems:`center`,justifyContent:`center`,marginBottom:`1.5rem`,background:`var(--bg-soft)`,borderRadius:`8px`,color:`var(--primary)`,fontWeight:`bold`,fontSize:`1.2rem`,textAlign:`center`,padding:`1rem`},children:e.name}),(0,M.jsx)(`h3`,{style:{fontSize:`1.25rem`,margin:`0 0 0.75rem 0`,color:`var(--secondary)`},children:e.name}),(0,M.jsx)(`p`,{style:{color:`var(--text-light)`,lineHeight:`1.6`,margin:`0 0 1.5rem 0`,flexGrow:1},children:e.description}),e.link&&(0,M.jsxs)(`a`,{href:e.link,target:`_blank`,rel:`noopener noreferrer`,style:{display:`inline-flex`,alignItems:`center`,gap:`0.25rem`,color:`var(--primary)`,textDecoration:`none`,fontWeight:500},children:[`Navštívit web `,(0,M.jsx)(Hr,{size:14})]})]},t))})]}),(0,M.jsxs)(`section`,{style:{marginBottom:`4rem`},children:[(0,M.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`0.75rem`,marginBottom:`2rem`,borderBottom:`2px solid var(--primary-light)`,paddingBottom:`0.5rem`},children:[(0,M.jsx)(ai,{size:28,style:{color:`var(--primary)`}}),(0,M.jsx)(`h2`,{style:{fontSize:`1.8rem`,margin:0,color:`var(--secondary)`},children:`Města, obce a regiony`})]}),(0,M.jsx)(`div`,{style:{display:`grid`,gridTemplateColumns:`repeat(auto-fit, minmax(320px, 1fr))`,gap:`2rem`},children:[{name:`Městská část Praha - Zbraslav`,logo:`https://webmium.blob.core.windows.net/users/96791/assets/66b3af117405441192decc74d9b4e1f9/202209041.jpg`,link:`https://www.mc-zbraslav.cz/`,description:`Dlouhodobý partner naší provozovny na Zbraslavi, který podporuje naši činnost a rozvoj integrace znevýhodněných osob.`},{name:`Město Dobřichovice`,logo:`https://tempwebmiumusersrecovery.blob.core.windows.net/users/96791/assets/b453d1d7411af3bbaaa4b9fc53c4e2ad/logo.jpg`,link:`http://www.dobrichovice.cz/`,description:`Partner naší dobřichovické provozovny, který podporuje sociální služby a zaměstnávání v regionu.`},{name:`Středočeský kraj`,logo:`https://webmium.blob.core.windows.net/users/96791/assets/d79f20172f2ae6e42af29965b6705c13/stredoceskykraj.png`,link:`https://www.kr-stredocesky.cz/`,description:`Podporovatel sociálního podnikání a regionálního rozvoje na území Středočeského kraje.`},{name:`Karlštejnsko MAS`,logo:`https://webmium.blob.core.windows.net/users/96791/assets/de0bd95297defe45dbbd6d60f96f423a/logo.png`,link:`https://karlstejnskomas.cz/`,description:`Místní akční skupina podporující komunitní rozvoj a projekty v okolí Karlštejnska.`}
577].map((e,t)=>(0,M.jsxs)(`div`,{className:`glass-card`,style:{padding:`2rem`,borderRadius:`16px`,background:`white`,boxShadow:`var(--shadow-sm)`,display:`flex`,flexDirection:`column`,height:`100%`},children:[e.logo?(0,M.jsx)(`div`,{style:{height:`90px`,display:`flex`,alignItems:`center`,justifyContent:`center`,marginBottom:`1.5rem`,background:`#fcfcfc`,borderRadius:`8px`,padding:`0.5rem`},children:(0,M.jsx)(`img`,{src:e.logo,alt:e.name,style:{maxHeight:`100%`,maxWidth:`100%`,objectFit:`contain`}})}):(0,M.jsx)(`div`,{style:{height:`90px`,display:`flex`,alignItems:`center`,justifyContent:`center`,marginBottom:`1.5rem`,background:`var(--bg-soft)`,borderRadius:`8px`,color:`var(--primary)`,fontWeight:`bold`,fontSize:`1.2rem`,textAlign:`center`,padding:`1rem`},children:e.name}),(0,M.jsx)(`h3`,{style:{fontSize:`1.25rem`,margin:`0 0 0.75rem 0`,color:`var(--secondary)`},children:e.name}),(0,M.jsx)(`p`,{style:{color:`var(--text-light)`,lineHeight:`1.6`,margin:`0 0 1.5rem 0`,flexGrow:1},children:e.description}),e.link&&(0,M.jsxs)(`a`,{href:e.link,target:`_blank`,rel:`noopener noreferrer`,style:{display:`inline-flex`,alignItems:`center`,gap:`0.25rem`,color:`var(--primary)`,textDecoration:`none`,fontWeight:500},children:[`Navštívit web `,(0,M.jsx)(Hr,{size:14})]})]},t))})]}),(0,M.jsxs)(`section`,{children:[(0,M.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`0.75rem`,marginBottom:`2rem`,borderBottom:`2px solid var(--primary-light)`,paddingBottom:`0.5rem`},children:[(0,M.jsx)(Jr,{size:28,style:{color:`var(--primary)`}}),(0,M.jsx)(`h2`,{style:{fontSize:`1.8rem`,margin:0,color:`var(--secondary)`},children:`Firemní partneři`})]}),(0,M.jsx)(`div`,{style:{display:`grid`,gridTemplateColumns:`repeat(auto-fit, minmax(320px, 1fr))`,gap:`2rem`},children:[{name:`B2M.CZ`,logo:`https://www.b2m.cz/images/logo.svg`,link:`https://www.b2m.cz/`,description:`Společnost B2M.CZ poskytla významnou finanční podporu našemu sociálnímu podniku Zelený ostrov s.r.o. Velice si vážíme podpory smysluplných projektů a společenské odpovědnosti, která nám pomáhá vytvářet stabilní a přívětivé pracovní prostředí pro osoby se zdravotním znevýhodněním, především pro neslyšící zaměstnankyně.`},{name:`Vejvoda, spol. s r.o.`,logo:`https://webmium.blob.core.windows.net/users/96791/assets/7e54ef424236ae98ace0b4e37ac8f479/vejvoda.png`,link:`https://vejvoda.cz/`,description:`Firma poskytující finanční dar na pořízení pračky pro naši zbraslavskou provozovnu. Děkujeme!`},{name:`Opletalová s.r.o.`,logo:`https://webmium.blob.core.windows.net/users/96791/assets/1f11a17f0683896bb2e3a98e83c59065/opletalova.png`,link:`https://www.opletalova.net/`,description:`Děkujeme za stálou a spolehlivou partnerskou podporu našich aktivit.`},{name:`Pražská energetika a.s. (PRE)`,logo:`https://webmium.blob.core.windows.net/users/96791/assets/7017d95f6a0548e181767ceb0e1a6b16/pre.jpg`,link:`https://www.pre.cz/`,description:`Děkujeme za finanční i materiální podporu našeho provozu ze strany předního dodavatele energií.`},{name:`Golf Resort Karlštejn`,logo:`https://webmium.blob.core.windows.net/users/96791/assets/15b616dcdf4409f6b92cdba18f4e0c27/unnamed.gif`,link:`https://www.karlstejn-golf.cz/cs/`,description:`Náš partnerský golfový resort v malebném Karlštejně, který dlouhodobě podporuje naši činnost.`},{name:`Meron s.r.o.`,logo:`https://webmium.blob.core.windows.net/users/96791/assets/642741ad50aaa76f882aa7c36742aa47/meronlogo.jpg`,link:`http://www.meron.cz/`,description:`Děkujeme společnosti Meron za finanční a partnerskou záštitu našich provozů.`},{name:`Tichý svět o.p.s.`,link:`http://www.tichysvet.cz`,description:`Klíčový partner pro integraci našich neslyšících kolegyň a kolegů. Poskytuje nám neocenitelné tlumočnické a sociální služby.`},{name:`Whirlpool ČR`,logo:`https://webmium.blob.core.windows.net/users/96791/assets/a02cf514f1b9879bfa1541d119c75f1e/whirpool.jpg`,link:`http://www.whirlpool.cz/`,description:`Partner, který nám dodává špičková elektrozařízení a pomáhá usnadňovat každodenní práci našim zdravotně znevýhodněným zaměstnancům.`},{name:`Srdcerváči`,logo:`https://webmium.blob.core.windows.net/users/96791/assets/b1602abcdb6ea04d7a1765d10cfb0ef6/srdcervacinahled.png`,link:`http://www.srdcervaci.cz/`,description:`Projekt Nadačního fondu pro zaměstnávání osob se zdravotním postižením (NFOZP), který pomáhá nacházet uplatnění handicapovaným lidem.`}].map((e,t)=>(0,M.jsxs)(`div`,{className:`glass-card`,style:{padding:`2rem`,borderRadius:`16px`,background:`white`,boxShadow:`var(--shadow-sm)`,display:`flex`,flexDirection:`column`,he
577ight:`100%`},children:[e.logo?(0,M.jsx)(`div`,{style:{height:`90px`,display:`flex`,alignItems:`center`,justifyContent:`center`,marginBottom:`1.5rem`,background:`#fcfcfc`,borderRadius:`8px`,padding:`0.5rem`},children:(0,M.jsx)(`img`,{src:e.logo,alt:e.name,style:{maxHeight:`100%`,maxWidth:`100%`,objectFit:`contain`}})}):(0,M.jsx)(`div`,{style:{height:`90px`,display:`flex`,alignItems:`center`,justifyContent:`center`,marginBottom:`1.5rem`,background:`var(--bg-soft)`,borderRadius:`8px`,color:`var(--primary)`,fontWeight:`bold`,fontSize:`1.2rem`,textAlign:`center`,padding:`1rem`},children:e.name}),(0,M.jsx)(`h3`,{style:{fontSize:`1.25rem`,margin:`0 0 0.75rem 0`,color:`var(--secondary)`},children:e.name}),(0,M.jsx)(`p`,{style:{color:`var(--text-light)`,lineHeight:`1.6`,margin:`0 0 1.5rem 0`,flexGrow:1},children:e.description}),e.link&&(0,M.jsxs)(`a`,{href:e.link,target:`_blank`,rel:`noopener noreferrer`,style:{display:`inline-flex`,alignItems:`center`,gap:`0.25rem`,color:`var(--primary)`,textDecoration:`none`,fontWeight:500},children:[`Navštívit web `,(0,M.jsx)(Hr,{size:14})]})]},t))})]})]})]});function Iw(){return(0,M.jsx)(lr,{children:(0,M.jsx)(Nn,{children:(0,M.jsx)(Ut,{children:(0,M.jsxs)(A,{path:`/`,element:(0,M.jsx)(Hi,{}),children:[(0,M.jsx)(A,{index:!0,element:(0,M.jsx)(Ui,{})}),(0,M.jsx)(A,{path:`sluzby`,element:(0,M.jsx)(Wi,{})}),(0,M.jsx)(A,{path:`cenik`,element:(0,M.jsx)(nC,{})}),(0,M.jsx)(A,{path:`kontakt`,element:(0,M.jsx)(TC,{})}),(0,M.jsx)(A,{path:`objednat`,element:(0,M.jsx)(kC,{})}),(0,M.jsx)(A,{path:`objednavka`,element:(0,M.jsx)(AC,{})}),(0,M.jsx)(A,{path:`admin`,element:(0,M.jsx)(cw,{})}),(0,M.jsx)(A,{path:`novinky`,element:(0,M.jsx)(uw,{})}),(0,M.jsx)(A,{path:`novinky/:id`,element:(0,M.jsx)(dw,{})}),(0,M.jsx)(A,{path:`pro-seniory`,element:(0,M.jsx)(fw,{})}),(0,M.jsx)(A,{path:`pro-seniory/obedy`,element:(0,M.jsx)(ww,{})}),(0,M.jsx)(A,{path:`pro-seniory/taxi`,element:(0,M.jsx)(Ew,{})}),(0,M.jsx)(A,{path:`pro-seniory/prani`,element:(0,M.jsx)(Dw,{})}),(0,M.jsx)(A,{path:`pro-seniory/uklid`,element:(0,M.jsx)(Ow,{})}),(0,M.jsx)(A,{path:`pro-seniory/masaze`,element:(0,M.jsx)(kw,{})}),(0,M.jsx)(A,{path:`pro-seniory/pedikura`,element:(0,M.jsx)(Aw,{})}),(0,M.jsx)(A,{path:`pro-seniory/partak`,element:(0,M.jsx)(jw,{})}),(0,M.jsx)(A,{path:`pradelna`,element:(0,M.jsx)(mw,{})}),(0,M.jsx)(A,{path:`cistirna`,element:(0,M.jsx)(hw,{})}),(0,M.jsx)(A,{path:`pro-firmy`,element:(0,M.jsx)(vw,{})}),(0,M.jsx)(A,{path:`hromadny-svoz`,element:(0,M.jsx)(yw,{})}),(0,M.jsx)(A,{path:`mokre-cisteni`,element:(0,M.jsx)(bw,{})}),(0,M.jsx)(A,{path:`opravy-odevu`,element:(0,M.jsx)(xw,{})}),(0,M.jsx)(A,{path:`socialni-principy`,element:(0,M.jsx)(Mw,{})}),(0,M.jsx)(A,{path:`obchodni-podminky`,element:(0,M.jsx)(Nw,{})}),(0,M.jsx)(A,{path:`podminky-ochrany-osobnich-udaju`,element:(0,M.jsx)(Pw,{})}),(0,M.jsx)(A,{path:`partneri`,element:(0,M.jsx)(Fw,{})})]})})})})}wC.init(`aANhT6_XuXDQwWKO2`),(0,v.createRoot)(document.getElementById(`root`)).render((0,M.jsx)(_.StrictMode,{children:(0,M.jsx)(Iw,{})}));export{Wb as a,sS as i,DC as n,Gb as o,eC as r,EC as t};

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.