UNPKG

hotel-ai-widget

Version:

A customizable hotel chat widget for React and vanilla HTML

221 lines 538 kB
var HotelChatWidget=function(){"use strict";function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var t,n,r={exports:{}},o={};var i,s,a=(n||(n=1,r.exports=function(){if(t)return o;t=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function r(t,n,r){var o=null;if(void 0!==r&&(o=""+r),void 0!==n.key&&(o=""+n.key),"key"in n)for(var i in r={},n)"key"!==i&&(r[i]=n[i]);else r=n;return n=r.ref,{$$typeof:e,type:t,key:o,ref:void 0!==n?n:null,props:r}}return o.Fragment=n,o.jsx=r,o.jsxs=r,o}()),r.exports),l={exports:{}},u={},c={exports:{}},d={};function p(){return s||(s=1,c.exports=(i||(i=1,function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function n(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,s=i>>>1;r<s;){var a=2*(r+1)-1,l=e[a],u=a+1,c=e[u];if(0>o(l,n))u<i&&0>o(c,l)?(e[r]=c,e[u]=n,r=u):(e[r]=l,e[a]=n,r=a);else{if(!(u<i&&0>o(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if(e.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],u=[],c=1,d=null,p=3,f=!1,h=!1,m=!1,g=!1,v="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function k(e){for(var o=n(u);null!==o;){if(null===o.callback)r(u);else{if(!(o.startTime<=e))break;r(u),o.sortIndex=o.expirationTime,t(l,o)}o=n(u)}}function x(e){if(m=!1,k(e),!h)if(null!==n(l))h=!0,S||(S=!0,w());else{var t=n(u);null!==t&&N(x,t.startTime-e)}}var w,S=!1,C=-1,E=5,L=-1;function P(){return!(!g&&e.unstable_now()-L<E)}function M(){if(g=!1,S){var t=e.unstable_now();L=t;var o=!0;try{e:{h=!1,m&&(m=!1,y(C),C=-1),f=!0;var i=p;try{t:{for(k(t),d=n(l);null!==d&&!(d.expirationTime>t&&P());){var s=d.callback;if("function"==typeof s){d.callback=null,p=d.priorityLevel;var a=s(d.expirationTime<=t);if(t=e.unstable_now(),"function"==typeof a){d.callback=a,k(t),o=!0;break t}d===n(l)&&r(l),k(t)}else r(l);d=n(l)}if(null!==d)o=!0;else{var c=n(u);null!==c&&N(x,c.startTime-t),o=!1}}break e}finally{d=null,p=i,f=!1}o=void 0}}finally{o?w():S=!1}}}if("function"==typeof b)w=function(){b(M)};else if("undefined"!=typeof MessageChannel){var O=new MessageChannel,j=O.port2;O.port1.onmessage=M,w=function(){j.postMessage(null)}}else w=function(){v(M,0)};function N(t,n){C=v(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"):E=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=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=p;p=e;try{return t()}finally{p=n}},e.unstable_scheduleCallback=function(r,o,i){var s=e.unstable_now();switch(i="object"==typeof i&&null!==i&&"number"==typeof(i=i.delay)&&0<i?s+i:s,r){case 1:var a=-1;break;case 2:a=250;break;case 5:a=1073741823;break;case 4:a=1e4;break;default:a=5e3}return r={id:c++,callback:o,priorityLevel:r,startTime:i,expirationTime:a=i+a,sortIndex:-1},i>s?(r.sortIndex=i,t(u,r),null===n(l)&&r===n(u)&&(m?(y(C),C=-1):m=!0,N(x,i-s))):(r.sortIndex=a,t(l,r),h||f||(h=!0,S||(S=!0,w()))),r},e.unstable_shouldYield=P,e.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}}(d)),d)),c.exports}var f,h,m={exports:{}},g={};function v(){if(f)return g;f=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),s=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),c=Symbol.for("react.lazy"),d=Symbol.iterator;var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,m={};function v(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||p}function y(){}function b(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||p}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)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")},y.prototype=v.prototype;var k=b.prototype=new y;k.constructor=b,h(k,v.prototype),k.isPureReactComponent=!0;var x=Array.isArray,w={H:null,A:null,T:null,S:null,V:null},S=Object.prototype.hasOwnProperty;function C(t,n,r,o,i,s){return r=s.ref,{$$typeof:e,type:t,key:n,ref:void 0!==r?r:null,props:s}}function E(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}var L=/\/+/g;function P(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(n=""+e.key,r={"=":"=0",":":"=2"},"$"+n.replace(/[=:]/g,function(e){return r[e]})):t.toString(36);var n,r}function M(){}function O(n,r,o,i,s){var a=typeof n;"undefined"!==a&&"boolean"!==a||(n=null);var l,u,p=!1;if(null===n)p=!0;else switch(a){case"bigint":case"string":case"number":p=!0;break;case"object":switch(n.$$typeof){case e:case t:p=!0;break;case c:return O((p=n._init)(n._payload),r,o,i,s)}}if(p)return s=s(n),p=""===i?"."+P(n,0):i,x(s)?(o="",null!=p&&(o=p.replace(L,"$&/")+"/"),O(s,r,o,"",function(e){return e})):null!=s&&(E(s)&&(l=s,u=o+(null==s.key||n&&n.key===s.key?"":(""+s.key).replace(L,"$&/")+"/")+p,s=C(l.type,u,void 0,0,0,l.props)),r.push(s)),1;p=0;var f,h=""===i?".":i+":";if(x(n))for(var m=0;m<n.length;m++)p+=O(i=n[m],r,o,a=h+P(i,m),s);else if("function"==typeof(m=null===(f=n)||"object"!=typeof f?null:"function"==typeof(f=d&&f[d]||f["@@iterator"])?f:null))for(n=m.call(n),m=0;!(i=n.next()).done;)p+=O(i=i.value,r,o,a=h+P(i,m++),s);else if("object"===a){if("function"==typeof n.then)return O(function(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch("string"==typeof e.status?e.then(M,M):(e.status="pending",e.then(function(t){"pending"===e.status&&(e.status="fulfilled",e.value=t)},function(t){"pending"===e.status&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}(n),r,o,i,s);throw r=String(n),Error("Objects are not valid as a React child (found: "+("[object Object]"===r?"object with keys {"+Object.keys(n).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.")}return p}function j(e,t,n){if(null==e)return e;var r=[],o=0;return O(e,r,"","",function(e){return t.call(n,e,o++)}),r}function N(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var D="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)};function I(){}return g.Children={map:j,forEach:function(e,t,n){j(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return j(e,function(){t++}),t},toArray:function(e){return j(e,function(e){return e})||[]},only:function(e){if(!E(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},g.Component=v,g.Fragment=n,g.Profiler=o,g.PureComponent=b,g.StrictMode=r,g.Suspense=l,g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,g.__COMPILER_RUNTIME={__proto__:null,c:function(e){return w.H.useMemoCache(e)}},g.cache=function(e){return function(){return e.apply(null,arguments)}},g.cloneElement=function(e,t,n){if(null==e)throw Error("The argument must be a React element, but you passed "+e+".");var r=h({},e.props),o=e.key;if(null!=t)for(i in void 0!==t.ref&&void 0,void 0!==t.key&&(o=""+t.key),t)!S.call(t,i)||"key"===i||"__self"===i||"__source"===i||"ref"===i&&void 0===t.ref||(r[i]=t[i]);var i=arguments.length-2;if(1===i)r.children=n;else if(1<i){for(var s=Array(i),a=0;a<i;a++)s[a]=arguments[a+2];r.children=s}return C(e.type,o,void 0,0,0,r)},g.createContext=function(e){return(e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider=e,e.Consumer={$$typeof:i,_context:e},e},g.createElement=function(e,t,n){var r,o={},i=null;if(null!=t)for(r in void 0!==t.key&&(i=""+t.key),t)S.call(t,r)&&"key"!==r&&"__self"!==r&&"__source"!==r&&(o[r]=t[r]);var s=arguments.length-2;if(1===s)o.children=n;else if(1<s){for(var a=Array(s),l=0;l<s;l++)a[l]=arguments[l+2];o.children=a}if(e&&e.defaultProps)for(r in s=e.defaultProps)void 0===o[r]&&(o[r]=s[r]);return C(e,i,void 0,0,0,o)},g.createRef=function(){return{current:null}},g.forwardRef=function(e){return{$$typeof:a,render:e}},g.isValidElement=E,g.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:N}},g.memo=function(e,t){return{$$typeof:u,type:e,compare:void 0===t?null:t}},g.startTransition=function(e){var t=w.T,n={};w.T=n;try{var r=e(),o=w.S;null!==o&&o(n,r),"object"==typeof r&&null!==r&&"function"==typeof r.then&&r.then(I,D)}catch(e){D(e)}finally{w.T=t}},g.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},g.use=function(e){return w.H.use(e)},g.useActionState=function(e,t,n){return w.H.useActionState(e,t,n)},g.useCallback=function(e,t){return w.H.useCallback(e,t)},g.useContext=function(e){return w.H.useContext(e)},g.useDebugValue=function(){},g.useDeferredValue=function(e,t){return w.H.useDeferredValue(e,t)},g.useEffect=function(e,t,n){var r=w.H;if("function"==typeof n)throw Error("useEffect CRUD overload is not enabled in this build of React.");return r.useEffect(e,t)},g.useId=function(){return w.H.useId()},g.useImperativeHandle=function(e,t,n){return w.H.useImperativeHandle(e,t,n)},g.useInsertionEffect=function(e,t){return w.H.useInsertionEffect(e,t)},g.useLayoutEffect=function(e,t){return w.H.useLayoutEffect(e,t)},g.useMemo=function(e,t){return w.H.useMemo(e,t)},g.useOptimistic=function(e,t){return w.H.useOptimistic(e,t)},g.useReducer=function(e,t,n){return w.H.useReducer(e,t,n)},g.useRef=function(e){return w.H.useRef(e)},g.useState=function(e){return w.H.useState(e)},g.useSyncExternalStore=function(e,t,n){return w.H.useSyncExternalStore(e,t,n)},g.useTransition=function(){return w.H.useTransition()},g.version="19.1.0",g}function y(){return h||(h=1,m.exports=v()),m.exports}var b,k,x,w,S={exports:{}},C={};function E(){if(b)return C;b=1;var e=y();function t(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 n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},o=Symbol.for("react.portal");var i=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function s(e,t){return"font"===e?"":"string"==typeof t?"use-credentials"===t?t:"":void 0}return C.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,C.createPortal=function(e,n){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!n||1!==n.nodeType&&9!==n.nodeType&&11!==n.nodeType)throw Error(t(299));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:o,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,n,null,r)},C.flushSync=function(e){var t=i.T,n=r.p;try{if(i.T=null,r.p=2,e)return e()}finally{i.T=t,r.p=n,r.d.f()}},C.preconnect=function(e,t){"string"==typeof e&&(t?t="string"==typeof(t=t.crossOrigin)?"use-credentials"===t?t:"":void 0:t=null,r.d.C(e,t))},C.prefetchDNS=function(e){"string"==typeof e&&r.d.D(e)},C.preinit=function(e,t){if("string"==typeof e&&t&&"string"==typeof t.as){var n=t.as,o=s(n,t.crossOrigin),i="string"==typeof t.integrity?t.integrity:void 0,a="string"==typeof t.fetchPriority?t.fetchPriority:void 0;"style"===n?r.d.S(e,"string"==typeof t.precedence?t.precedence:void 0,{crossOrigin:o,integrity:i,fetchPriority:a}):"script"===n&&r.d.X(e,{crossOrigin:o,integrity:i,fetchPriority:a,nonce:"string"==typeof t.nonce?t.nonce:void 0})}},C.preinitModule=function(e,t){if("string"==typeof e)if("object"==typeof t&&null!==t){if(null==t.as||"script"===t.as){var n=s(t.as,t.crossOrigin);r.d.M(e,{crossOrigin:n,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0})}}else null==t&&r.d.M(e)},C.preload=function(e,t){if("string"==typeof e&&"object"==typeof t&&null!==t&&"string"==typeof t.as){var n=t.as,o=s(n,t.crossOrigin);r.d.L(e,n,{crossOrigin:o,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0,type:"string"==typeof t.type?t.type:void 0,fetchPriority:"string"==typeof t.fetchPriority?t.fetchPriority:void 0,referrerPolicy:"string"==typeof t.referrerPolicy?t.referrerPolicy:void 0,imageSrcSet:"string"==typeof t.imageSrcSet?t.imageSrcSet:void 0,imageSizes:"string"==typeof t.imageSizes?t.imageSizes:void 0,media:"string"==typeof t.media?t.media:void 0})}},C.preloadModule=function(e,t){if("string"==typeof e)if(t){var n=s(t.as,t.crossOrigin);r.d.m(e,{as:"string"==typeof t.as&&"script"!==t.as?t.as:void 0,crossOrigin:n,integrity:"string"==typeof t.integrity?t.integrity:void 0})}else r.d.m(e)},C.requestFormReset=function(e){r.d.r(e)},C.unstable_batchedUpdates=function(e,t){return e(t)},C.useFormState=function(e,t,n){return i.H.useFormState(e,t,n)},C.useFormStatus=function(){return i.H.useHostTransitionStatus()},C.version="19.1.0",C}function L(){if(k)return S.exports;return k=1,function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),S.exports=E(),S.exports}
/**
	 * @license React
	 * react-dom-client.production.js
	 *
	 * Copyright (c) Meta Platforms, Inc. and affiliates.
	 *
	 * This source code is licensed under the MIT license found in the
	 * LICENSE file in the root directory of this source tree.
	 */function P(){if(x)return u;x=1;var e=p(),t=y(),n=L();function r(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 o(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function i(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function s(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function a(e){if(i(e)!==e)throw Error(r(188))}function l(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e;for(e=e.child;null!==e;){if(null!==(t=l(e)))return t;e=e.sibling}return null}var c=Object.assign,d=Symbol.for("react.element"),f=Symbol.for("react.transitional.element"),h=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),b=Symbol.for("react.provider"),k=Symbol.for("react.consumer"),w=Symbol.for("react.context"),S=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),E=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),M=Symbol.for("react.lazy"),O=Symbol.for("react.activity"),j=Symbol.for("react.memo_cache_sentinel"),N=Symbol.iterator;function D(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=N&&e[N]||e["@@iterator"])?e:null}var I=Symbol.for("react.client.reference");function T(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===I?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case m:return"Fragment";case v:return"Profiler";case g:return"StrictMode";case C:return"Suspense";case E:return"SuspenseList";case O:return"Activity"}if("object"==typeof e)switch(e.$$typeof){case h:return"Portal";case w:return(e.displayName||"Context")+".Provider";case k:return(e._context.displayName||"Context")+".Consumer";case S:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case P:return null!==(t=e.displayName||null)?t:T(e.type)||"Memo";case M:t=e._payload,e=e._init;try{return T(e(t))}catch(e){}}return null}var z=Array.isArray,_=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,A=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,R={pending:!1,data:null,method:null,action:null},F=[],U=-1;function B(e){return{current:e}}function H(e){0>U||(e.current=F[U],F[U]=null,U--)}function V(e,t){U++,F[U]=e.current,e.current=t}var $=B(null),W=B(null),q=B(null),Z=B(null);function Q(e,t){switch(V(q,t),V(W,e),V($,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?sd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)e=ad(t=sd(t),e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}H($),V($,e)}function K(){H($),H(W),H(q)}function G(e){null!==e.memoizedState&&V(Z,e);var t=$.current,n=ad(t,e.type);t!==n&&(V(W,e),V($,n))}function Y(e){W.current===e&&(H($),H(W)),Z.current===e&&(H(Z),Gd._currentValue=R)}var X=Object.prototype.hasOwnProperty,J=e.unstable_scheduleCallback,ee=e.unstable_cancelCallback,te=e.unstable_shouldYield,ne=e.unstable_requestPaint,re=e.unstable_now,oe=e.unstable_getCurrentPriorityLevel,ie=e.unstable_ImmediatePriority,se=e.unstable_UserBlockingPriority,ae=e.unstable_NormalPriority,le=e.unstable_LowPriority,ue=e.unstable_IdlePriority,ce=e.log,de=e.unstable_setDisableYieldValue,pe=null,fe=null;function he(e){if("function"==typeof ce&&de(e),fe&&"function"==typeof fe.setStrictMode)try{fe.setStrictMode(pe,e)}catch(e){}}var me=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(ge(e)/ve|0)|0},ge=Math.log,ve=Math.LN2;var ye=256,be=4194304;function ke(e){var t=42&e;if(0!==t)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:case 262144:case 524288:case 1048576:case 2097152:return 4194048&e;case 4194304:case 8388608:case 16777216:case 33554432:return 62914560&e;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function xe(e,t,n){var r=e.pendingLanes;if(0===r)return 0;var o=0,i=e.suspendedLanes,s=e.pingedLanes;e=e.warmLanes;var a=134217727&r;return 0!==a?0!==(r=a&~i)?o=ke(r):0!==(s&=a)?o=ke(s):n||0!==(n=a&~e)&&(o=ke(n)):0!==(a=r&~i)?o=ke(a):0!==s?o=ke(s):n||0!==(n=r&~e)&&(o=ke(n)),0===o?0:0!==t&&t!==o&&0===(t&i)&&((i=o&-o)>=(n=t&-t)||32===i&&4194048&n)?t:o}function we(e,t){return 0===(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)}function Se(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;default:return-1}}function Ce(){var e=ye;return!(4194048&(ye<<=1))&&(ye=256),e}function Ee(){var e=be;return!(62914560&(be<<=1))&&(be=4194304),e}function Le(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Pe(e,t){e.pendingLanes|=t,268435456!==t&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Me(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-me(t);e.entangledLanes|=t,e.entanglements[r]=1073741824|e.entanglements[r]|4194090&n}function Oe(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-me(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}function je(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 Ne(e){return 2<(e&=-e)?8<e?134217727&e?32:268435456:8:2}function De(){var e=A.p;return 0!==e?e:void 0===(e=window.event)?32:dp(e.type)}var Ie=Math.random().toString(36).slice(2),Te="__reactFiber$"+Ie,ze="__reactProps$"+Ie,_e="__reactContainer$"+Ie,Ae="__reactEvents$"+Ie,Re="__reactListeners$"+Ie,Fe="__reactHandles$"+Ie,Ue="__reactResources$"+Ie,Be="__reactMarker$"+Ie;function He(e){delete e[Te],delete e[ze],delete e[Ae],delete e[Re],delete e[Fe]}function Ve(e){var t=e[Te];if(t)return t;for(var n=e.parentNode;n;){if(t=n[_e]||n[Te]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=xd(e);null!==e;){if(n=e[Te])return n;e=xd(e)}return t}n=(e=n).parentNode}return null}function $e(e){if(e=e[Te]||e[_e]){var t=e.tag;if(5===t||6===t||13===t||26===t||27===t||3===t)return e}return null}function We(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e.stateNode;throw Error(r(33))}function qe(e){var t=e[Ue];return t||(t=e[Ue]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ze(e){e[Be]=!0}var Qe=new Set,Ke={};function Ge(e,t){Ye(e,t),Ye(e+"Capture",t)}function Ye(e,t){for(Ke[e]=t,e=0;e<t.length;e++)Qe.add(t[e])}var Xe,Je,et=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),tt={},nt={};function rt(e,t,n){if(o=t,X.call(nt,o)||!X.call(tt,o)&&(et.test(o)?nt[o]=!0:(tt[o]=!0,0)))if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":return void e.removeAttribute(t);case"boolean":var r=t.toLowerCase().slice(0,5);if("data-"!==r&&"aria-"!==r)return void e.removeAttribute(t)}e.setAttribute(t,""+n)}var o}function ot(e,t,n){if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(t)}e.setAttribute(t,""+n)}}function it(e,t,n,r){if(null===r)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(n)}e.setAttributeNS(t,n,""+r)}}function st(e){if(void 0===Xe)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Xe=t&&t[1]||"",Je=-1<e.stack.indexOf("\n    at")?" (<anonymous>)":-1<e.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+Xe+e+Je}var at=!1;function lt(e,t){if(!e||at)return"";at=!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()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&"function"==typeof n.catch&&n.catch(function(){})}}catch(e){if(e&&r&&"string"==typeof e.stack)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=r.DetermineComponentFrameRoot(),s=i[0],a=i[1];if(s&&a){var l=s.split("\n"),u=a.split("\n");for(o=r=0;r<l.length&&!l[r].includes("DetermineComponentFrameRoot");)r++;for(;o<u.length&&!u[o].includes("DetermineComponentFrameRoot");)o++;if(r===l.length||o===u.length)for(r=l.length-1,o=u.length-1;1<=r&&0<=o&&l[r]!==u[o];)o--;for(;1<=r&&0<=o;r--,o--)if(l[r]!==u[o]){if(1!==r||1!==o)do{if(r--,0>--o||l[r]!==u[o]){var c="\n"+l[r].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}}while(1<=r&&0<=o);break}}}finally{at=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?st(n):""}function ut(e){switch(e.tag){case 26:case 27:case 5:return st(e.type);case 16:return st("Lazy");case 13:return st("Suspense");case 19:return st("SuspenseList");case 0:case 15:return lt(e.type,!1);case 11:return lt(e.type.render,!1);case 1:return lt(e.type,!0);case 31:return st("Activity");default:return""}}function ct(e){try{var t="";do{t+=ut(e),e=e.return}while(e);return t}catch(e){return"\nError generating stack: "+e.message+"\n"+e.stack}}function dt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function pt(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function ft(e){e._valueTracker||(e._valueTracker=function(e){var t=pt(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function ht(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=pt(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function mt(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}var gt=/[\n"\\]/g;function vt(e){return e.replace(gt,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function yt(e,t,n,r,o,i,s,a){e.name="",null!=s&&"function"!=typeof s&&"symbol"!=typeof s&&"boolean"!=typeof s?e.type=s:e.removeAttribute("type"),null!=t?"number"===s?(0===t&&""===e.value||e.value!=t)&&(e.value=""+dt(t)):e.value!==""+dt(t)&&(e.value=""+dt(t)):"submit"!==s&&"reset"!==s||e.removeAttribute("value"),null!=t?kt(e,s,dt(t)):null!=n?kt(e,s,dt(n)):null!=r&&e.removeAttribute("value"),null==o&&null!=i&&(e.defaultChecked=!!i),null!=o&&(e.checked=o&&"function"!=typeof o&&"symbol"!=typeof o),null!=a&&"function"!=typeof a&&"symbol"!=typeof a&&"boolean"!=typeof a?e.name=""+dt(a):e.removeAttribute("name")}function bt(e,t,n,r,o,i,s,a){if(null!=i&&"function"!=typeof i&&"symbol"!=typeof i&&"boolean"!=typeof i&&(e.type=i),null!=t||null!=n){if(("submit"===i||"reset"===i)&&null==t)return;n=null!=n?""+dt(n):"",t=null!=t?""+dt(t):n,a||t===e.value||(e.value=t),e.defaultValue=t}r="function"!=typeof(r=null!=r?r:o)&&"symbol"!=typeof r&&!!r,e.checked=a?e.checked:!!r,e.defaultChecked=!!r,null!=s&&"function"!=typeof s&&"symbol"!=typeof s&&"boolean"!=typeof s&&(e.name=s)}function kt(e,t,n){"number"===t&&mt(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function xt(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+dt(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function wt(e,t,n){null==t||((t=""+dt(t))!==e.value&&(e.value=t),null!=n)?e.defaultValue=null!=n?""+dt(n):"":e.defaultValue!==t&&(e.defaultValue=t)}function St(e,t,n,o){if(null==t){if(null!=o){if(null!=n)throw Error(r(92));if(z(o)){if(1<o.length)throw Error(r(93));o=o[0]}n=o}null==n&&(n=""),t=n}n=dt(t),e.defaultValue=n,(o=e.textContent)===n&&""!==o&&null!==o&&(e.value=o)}function Ct(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var Et=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 Lt(e,t,n){var r=0===t.indexOf("--");null==n||"boolean"==typeof n||""===n?r?e.setProperty(t,""):"float"===t?e.cssFloat="":e[t]="":r?e.setProperty(t,n):"number"!=typeof n||0===n||Et.has(t)?"float"===t?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Pt(e,t,n){if(null!=t&&"object"!=typeof t)throw Error(r(62));if(e=e.style,null!=n){for(var o in n)!n.hasOwnProperty(o)||null!=t&&t.hasOwnProperty(o)||(0===o.indexOf("--")?e.setProperty(o,""):"float"===o?e.cssFloat="":e[o]="");for(var i in t)o=t[i],t.hasOwnProperty(i)&&n[i]!==o&&Lt(e,i,o)}else for(var s in t)t.hasOwnProperty(s)&&Lt(e,s,t[s])}function Mt(e){if(-1===e.indexOf("-"))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 Ot=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"]]),jt=/^[\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 Nt(e){return jt.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var Dt=null;function It(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Tt=null,zt=null;function _t(e){var t=$e(e);if(t&&(e=t.stateNode)){var n=e[ze]||null;e:switch(e=t.stateNode,t.type){case"input":if(yt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+vt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var o=n[t];if(o!==e&&o.form===e.form){var i=o[ze]||null;if(!i)throw Error(r(90));yt(o,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<n.length;t++)(o=n[t]).form===e.form&&ht(o)}break e;case"textarea":wt(e,n.value,n.defaultValue);break e;case"select":null!=(t=n.value)&&xt(e,!!n.multiple,t,!1)}}}var At=!1;function Rt(e,t,n){if(At)return e(t,n);At=!0;try{return e(t)}finally{if(At=!1,(null!==Tt||null!==zt)&&(Vu(),Tt&&(t=Tt,e=zt,zt=Tt=null,_t(t),e)))for(t=0;t<e.length;t++)_t(e[t])}}function Ft(e,t){var n=e.stateNode;if(null===n)return null;var o=n[ze]||null;if(null===o)return null;n=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(o=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!o;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(r(231,t,typeof n));return n}var Ut=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),Bt=!1;if(Ut)try{var Ht={};Object.defineProperty(Ht,"passive",{get:function(){Bt=!0}}),window.addEventListener("test",Ht,Ht),window.removeEventListener("test",Ht,Ht)}catch(e){Bt=!1}var Vt=null,$t=null,Wt=null;function qt(){if(Wt)return Wt;var e,t,n=$t,r=n.length,o="value"in Vt?Vt.value:Vt.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var s=r-e;for(t=1;t<=s&&n[r-t]===o[i-t];t++);return Wt=o.slice(e,1<t?1-t:void 0)}function Zt(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function Qt(){return!0}function Kt(){return!1}function Gt(e){function t(t,n,r,o,i){for(var s in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(s)&&(t=e[s],this[s]=t?t(o):o[s]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?Qt:Kt,this.isPropagationStopped=Kt,this}return c(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Qt)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Qt)},persist:function(){},isPersistent:Qt}),t}var Yt,Xt,Jt,en={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},tn=Gt(en),nn=c({},en,{view:0,detail:0}),rn=Gt(nn),on=c({},nn,{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 void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Jt&&(Jt&&"mousemove"===e.type?(Yt=e.screenX-Jt.screenX,Xt=e.screenY-Jt.screenY):Xt=Yt=0,Jt=e),Yt)},movementY:function(e){return"movementY"in e?e.movementY:Xt}}),sn=Gt(on),an=Gt(c({},on,{dataTransfer:0})),ln=Gt(c({},nn,{relatedTarget:0})),un=Gt(c({},en,{animationName:0,elapsedTime:0,pseudoElement:0})),cn=Gt(c({},en,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),dn=Gt(c({},en,{data:0})),pn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},fn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},hn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function mn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=hn[e])&&!!t[e]}function gn(){return mn}var vn=Gt(c({},nn,{key:function(e){if(e.key){var t=pn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Zt(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?fn[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"keypress"===e.type?Zt(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Zt(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),yn=Gt(c({},on,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),bn=Gt(c({},nn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:gn})),kn=Gt(c({},en,{propertyName:0,elapsedTime:0,pseudoElement:0})),xn=Gt(c({},on,{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})),wn=Gt(c({},en,{newState:0,oldState:0})),Sn=[9,13,27,32],Cn=Ut&&"CompositionEvent"in window,En=null;Ut&&"documentMode"in document&&(En=document.documentMode);var Ln=Ut&&"TextEvent"in window&&!En,Pn=Ut&&(!Cn||En&&8<En&&11>=En),Mn=String.fromCharCode(32),On=!1;function jn(e,t){switch(e){case"keyup":return-1!==Sn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Nn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Dn=!1;var In={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 Tn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!In[e.type]:"textarea"===t}function zn(e,t,n,r){Tt?zt?zt.push(r):zt=[r]:Tt=r,0<(t=qc(t,"onChange")).length&&(n=new tn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var _n=null,An=null;function Rn(e){Rc(e,0)}function Fn(e){if(ht(We(e)))return e}function Un(e,t){if("change"===e)return t}var Bn=!1;if(Ut){var Hn;if(Ut){var Vn="oninput"in document;if(!Vn){var $n=document.createElement("div");$n.setAttribute("oninput","return;"),Vn="function"==typeof $n.oninput}Hn=Vn}else Hn=!1;Bn=Hn&&(!document.documentMode||9<document.documentMode)}function Wn(){_n&&(_n.detachEvent("onpropertychange",qn),An=_n=null)}function qn(e){if("value"===e.propertyName&&Fn(An)){var t=[];zn(t,An,e,It(e)),Rt(Rn,t)}}function Zn(e,t,n){"focusin"===e?(Wn(),An=n,(_n=t).attachEvent("onpropertychange",qn)):"focusout"===e&&Wn()}function Qn(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Fn(An)}function Kn(e,t){if("click"===e)return Fn(t)}function Gn(e,t){if("input"===e||"change"===e)return Fn(t)}var Yn="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function Xn(e,t){if(Yn(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===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 o=n[r];if(!X.call(t,o)||!Yn(e[o],t[o]))return!1}return!0}function Jn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function er(e,t){var n,r=Jn(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Jn(r)}}function tr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?tr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function nr(e){for(var t=mt((e=null!=e&&null!=e.ownerDocument&&null!=e.ownerDocument.defaultView?e.ownerDocument.defaultView:window).document);t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=mt((e=t.contentWindow).document)}return t}function rr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var or=Ut&&"documentMode"in document&&11>=document.documentMode,ir=null,sr=null,ar=null,lr=!1;function ur(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;lr||null==ir||ir!==mt(r)||("selectionStart"in(r=ir)&&rr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},ar&&Xn(ar,r)||(ar=r,0<(r=qc(sr,"onSelect")).length&&(t=new tn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=ir)))}function cr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var dr={animationend:cr("Animation","AnimationEnd"),animationiteration:cr("Animation","AnimationIteration"),animationstart:cr("Animation","AnimationStart"),transitionrun:cr("Transition","TransitionRun"),transitionstart:cr("Transition","TransitionStart"),transitioncancel:cr("Transition","TransitionCancel"),transitionend:cr("Transition","TransitionEnd")},pr={},fr={};function hr(e){if(pr[e])return pr[e];if(!dr[e])return e;var t,n=dr[e];for(t in n)if(n.hasOwnProperty(t)&&t in fr)return pr[e]=n[t];return e}Ut&&(fr=document.createElement("div").style,"AnimationEvent"in window||(delete dr.animationend.animation,delete dr.animationiteration.animation,delete dr.animationstart.animation),"TransitionEvent"in window||delete dr.transitionend.transition);var mr=hr("animationend"),gr=hr("animationiteration"),vr=hr("animationstart"),yr=hr("transitionrun"),br=hr("transitionstart"),kr=hr("transitioncancel"),xr=hr("transitionend"),wr=new Map,Sr="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(" ");function Cr(e,t){wr.set(e,t),Ge(t,[e])}Sr.push("scrollEnd");var Er=new WeakMap;function Lr(e,t){if("object"==typeof e&&null!==e){var n=Er.get(e);return void 0!==n?n:(t={value:e,source:t,stack:ct(t)},Er.set(e,t),t)}return{value:e,source:t,stack:ct(t)}}var Pr=[],Mr=0,Or=0;function jr(){for(var e=Mr,t=Or=Mr=0;t<e;){var n=Pr[t];Pr[t++]=null;var r=Pr[t];Pr[t++]=null;var o=Pr[t];Pr[t++]=null;var i=Pr[t];if(Pr[t++]=null,null!==r&&null!==o){var s=r.pending;null===s?o.next=o:(o.next=s.next,s.next=o),r.pending=o}0!==i&&Tr(n,o,i)}}function Nr(e,t,n,r){Pr[Mr++]=e,Pr[Mr++]=t,Pr[Mr++]=n,Pr[Mr++]=r,Or|=r,e.lanes|=r,null!==(e=e.alternate)&&(e.lanes|=r)}function Dr(e,t,n,r){return Nr(e,t,n,r),zr(e)}function Ir(e,t){return Nr(e,null,null,t),zr(e)}function Tr(e,t,n){e.lanes|=n;var r=e.alternate;null!==r&&(r.lanes|=n);for(var o=!1,i=e.return;null!==i;)i.childLanes|=n,null!==(r=i.alternate)&&(r.childLanes|=n),22===i.tag&&(null===(e=i.stateNode)||1&e._visibility||(o=!0)),e=i,i=i.return;return 3===e.tag?(i=e.stateNode,o&&null!==t&&(o=31-me(n),null===(r=(e=i.hiddenUpdates)[o])?e[o]=[t]:r.push(t),t.lane=536870912|n),i):null}function zr(e){if(50<Tu)throw Tu=0,zu=null,Error(r(185));for(var t=e.return;null!==t;)t=(e=t).return;return 3===e.tag?e.stateNode:null}var _r={};function Ar(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 Rr(e,t,n,r){return new Ar(e,t,n,r)}function Fr(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ur(e,t){var n=e.alternate;return null===n?((n=Rr(e.tag,t,e.key,e.mode)).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=65011712&e.flags,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=null===t?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 Br(e,t){e.flags&=65011714;var n=e.alternate;return null===n?(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=null===t?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Hr(e,t,n,o,i,s){var a=0;if(o=e,"function"==typeof e)Fr(e)&&(a=1);else if("string"==typeof e)a=function(e,t,n){if(1===n||null!=t.itemProp)return!1;switch(e){case"meta":case"title":return!0;case"style":if("string"!=typeof t.precedence||"string"!=typeof t.href||""===t.href)break;return!0;case"link":if("string"!=typeof t.rel||"string"!=typeof t.href||""===t.href||t.onLoad||t.onError)break;return"stylesheet"!==t.rel||(e=t.disabled,"string"==typeof t.precedence&&null==e);case"script":if(t.async&&"function"!=typeof t.async&&"symbol"!=typeof t.async&&!t.onLoad&&!t.onError&&t.src&&"string"==typeof t.src)return!0}return!1}(e,n,$.current)?26:"html"===e||"head"===e||"body"===e?27:5;else e:switch(e){case O:return(e=Rr(31,n,t,i)).elementType=O,e.lanes=s,e;case m:return Vr(n.children,i,s,t);case g:a=8,i|=24;break;case v:return(e=Rr(12,n,t,2|i)).elementType=v,e.lanes=s,e;case C:return(e=Rr(13,n,t,i)).elementType=C,e.lanes=s,e;case E:return(e=Rr(19,n,t,i)).elementType=E,e.lanes=s,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case b:case w:a=10;break e;case k:a=9;break e;case S:a=11;break e;case P:a=14;break e;case M:a=16,o=null;break e}a=29,n=Error(r(130,null===e?"null":typeof e,"")),o=null}return(t=Rr(a,n,t,i)).elementType=e,t.type=o,t.lanes=s,t}function Vr(e,t,n,r){return(e=Rr(7,e,r,t)).lanes=n,e}function $r(e,t,n){return(e=Rr(6,e,null,t)).lanes=n,e}function Wr(e,t,n){return(t=Rr(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var qr=[],Zr=0,Qr=null,Kr=0,Gr=[],Yr=0,Xr=null,Jr=1,eo="";function to(e,t){qr[Zr++]=Kr,qr[Zr++]=Qr,Qr=e,Kr=t}function no(e,t,n){Gr[Yr++]=Jr,Gr[Yr++]=eo,Gr[Yr++]=Xr,Xr=e;var r=Jr;e=eo;var o=32-me(r)-1;r&=~(1<<o),n+=1;var i=32-me(t)+o;if(30<i){var s=o-o%5;i=(r&(1<<s)-1).toString(32),r>>=s,o-=s,Jr=1<<32-me(t)+o|n<<o|r,eo=i+e}else Jr=1<<i|n<<o|r,eo=e}function ro(e){null!==e.return&&(to(e,1),no(e,1,0))}function oo(e){for(;e===Qr;)Qr=qr[--Zr],qr[Zr]=null,Kr=qr[--Zr],qr[Zr]=null;for(;e===Xr;)Xr=Gr[--Yr],Gr[Yr]=null,eo=Gr[--Yr],Gr[Yr]=null,Jr=Gr[--Yr],Gr[Yr]=null}var io=null,so=null,ao=!1,lo=null,uo=!1,co=Error(r(519));function po(e){throw yo(Lr(Error(r(418,"")),e)),co}function fo(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[Te]=e,t[ze]=r,n){case"dialog":Fc("cancel",t),Fc("close",t);break;case"iframe":case"object":case"embed":Fc("load",t);break;case"video":case"audio":for(n=0;n<_c.length;n++)Fc(_c[n],t);break;case"source":Fc("error",t);break;case"img":case"image":case"link":Fc("error",t),Fc("load",t);break;case"details":Fc("toggle",t);break;case"input":Fc("invalid",t),bt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0),ft(t);break;case"select":Fc("invalid",t);break;case"textarea":Fc("invalid",t),St(t,r.value,r.defaultValue,r.children),ft(t)}"string"!=typeof(n=r.children)&&"number"!=typeof n&&"bigint"!=typeof n||t.textContent===""+n||!0===r.suppressHydrationWarning||Xc(t.textContent,n)?(null!=r.popover&&(Fc("beforetoggle",t),Fc("toggle",t)),null!=r.onScroll&&Fc("scroll",t),null!=r.onScrollEnd&&Fc("scrollend",t),null!=r.onClick&&(t.onclick=Jc),t=!0):t=!1,t||po(e)}function ho(e){for(io=e.return;io;)switch(io.tag){case 5:case 13:return void(uo=!1);case 27:case 3:return void(uo=!0);default:io=io.return}}function mo(e){if(e!==io)return!1;if(!ao)return ho(e),ao=!0,!1;var t,n=e.tag;if((t=3!==n&&27!==n)&&((t=5===n)&&(t=!("form"!==(t=e.type)&&"button"!==t)||ld(e.type,e.memoizedProps)),t=!t),t&&so&&po(e),ho(e),13===n){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(r(317));e:{for(e=e.nextSibling,n=0;e;){if(8===e.nodeType)if("/$"===(t=e.data)){if(0===n){so=bd(e.nextSibling);break e}n--}else"$"!==t&&"$!"!==t&&"$?"!==t||n++;e=e.nextSibling}so=null}}else 27===n?(n=so,md(e.type)?(e=kd,kd=null,so=e):so=n):so=io?bd(e.stateNode.nextSibling):null;return!0}function go(){so=io=null,ao=!1}function vo(){var e=lo;return null!==e&&(null===xu?xu=e:xu.push.apply(xu,e),lo=null),e}function yo(e){null===lo?lo=[e]:lo.push(e)}var bo=B(null),ko=null,xo=null;function wo(e,t,n){V(bo,t._currentValue),t._currentValue=n}function So(e){e._currentValue=bo.current,H(bo)}function Co(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Eo(e,t,n,o){var i=e.child;for(null!==i&&(i.return=e);null!==i;){var s=i.dependencies;if(null!==s){var a=i.child;s=s.firstContext;e:for(;null!==s;){var l=s;s=i;for(var u=0;u<t.length;u++)if(l.context===t[u]){s.lanes|=n,null!==(l=s.alternate)&&(l.lanes|=n),Co(s.return,n,e),o||(a=null);break e}s=l.next}}else if(18===i.tag){if(null===(a=i.return))throw Error(r(341));a.lanes|=n,null!==(s=a.alternate)&&(s.lanes|=n),Co(a,n,e),a=null}else a=i.child;if(null!==a)a.return=i;else for(a=i;null!==a;){if(a===e){a=null;break}if(null!==(i=a.sibling)){i.return=a.return,a=i;break}a=a.return}i=a}}function Lo(e,t,n,o){e=null;for(var i=t,s=!1;null!==i;){if(!s)if(524288&i.flags)s=!0;else if(262144&i.flags)break;if(10===i.tag){var a=i.alternate;if(null===a)throw Error(r(387));if(null!==(a=a.memoizedProps)){var l=i.type;Yn(i.pendingProps.value,a.value)||(null!==e?e.push(l):e=[l])}}else if(i===Z.current){if(null===(a=i.alternate))throw Error(r(387));a.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(null!==e?e.push(Gd):e=[Gd])}i=i.return}null!==e&&Eo(t,e,n,o),t.flags|=262144}function Po(e){for(e=e.firstContext;null!==e;){if(!Yn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Mo(e){ko=e,xo=null,null!==(e=e.dependencies)&&(e.firstContext=null)}function Oo(e){return No(ko,e)}function jo(e,t){return null===ko&&Mo(e),No(e,t)}function No(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},null===xo){if(null===e)throw Error(r(308));xo=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else xo=xo.next=t;return n}var Do="undefined"!=typeof AbortController?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()})}},Io=e.unstable_scheduleCallback,To=e.unstable_NormalPriority,zo={$$typeof:w,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function _o(){return{controller:new Do,data:new Map,refCount:0}}function Ao(e){e.refCount--,0===e.refCount&&Io(To,function(){e.controller.abort()})}var Ro=null,Fo=0,Uo=0,Bo=null;function Ho(){if(0===--Fo&&null!==Ro){null!==Bo&&(Bo.status="fulfilled");var e=Ro;Ro=null,Uo=0,Bo=null;for(var t=0;t<e.length;t++)(0,e[t])()}}var Vo=_.S;_.S=function(e,t){"object"==typeof t&&null!==t&&"function"==typeof t.then&&function(e,t){if(null===Ro){var n=Ro=[];Fo=0,Uo=Nc(),Bo={status:"pending",value:void 0,then:function(e){n.push(e)}}}Fo++,t.then(Ho,Ho)}(0,t),null!==Vo&&Vo(e,t)};var $o=B(null);function Wo(){var e=$o.current;return null!==e?e:iu.pooledCache}function qo(e,t){V($o,null===t?$o.current:t.pool)}function Zo(){var e=Wo();return null===e?null:{parent:zo._currentValue,pool:e}}var Qo=Error(r(460)),Ko=Error(r(474)),Go=Error(r(542)),Yo={then:function(){}};function Xo(e){return"fulfilled"===(e=e.status)||"rejected"===e}function Jo(){}function ei(e,t,n){switch(void 0===(n=e[n])?e.push(t):n!==t&&(t.then(Jo,Jo),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw ri(e=t.reason),e;default:if("string"==typeof t.status)t.then(Jo,Jo);else{if(null!==(e=iu)&&100<e.shellSuspendCounter)throw Error(r(482));(e=t).status="pending",e.then(function(e){if("pending"===t.status){var n=t;n.status="fulfilled",n.value=e}},function(e){if("pending"===t.status){var n=t;n.status="rejected",n.reason=e}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw ri(e=t.reason),e}throw ti=t,Qo}}var ti=null;function ni(){if(null===ti)throw Error(r(459));var e=ti;return ti=null,e}function ri(e){if(e===Qo||e===Go)throw Error(r(483))}var oi=!1;function ii(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function si(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 ai(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function li(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&ou){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,t=zr(e),Tr(e,null,n),t}return Nr(e,r,t,n),zr(e)}function ui(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194048&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Oe(e,n)}}function ci(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var s={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};null===i?o=i=s:i=i.next=s,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,callbacks:r.callbacks},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var di=!1;function pi(){if(di){if(null!==Bo)throw Bo}}function fi(e,t,n,r){di=!1;var o=e.updateQueue;oi=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,a=o.shared.pending;if(null!==a){o.shared.pending=null;var l=a,u=l.next;l.next=null,null===s?i=u:s.next=u,s=l;var d=e.alternate;null!==d&&((a=(d=d.updateQueue).lastBaseUpdate)!==s&&(null===a?d.firstBaseUpdate=u:a.next=u,d.lastBaseUpdate=l))}if(null!==i){var p=o.baseState;for(s=0,d=u=l=null,a=i;;){var f=-536870913&a.lane,h=f!==a.lane;if(h?(au&f)===f:(r&f)===f){0!==f&&f===Uo&&(di=!0),null!==d&&(d=d.next={lane:0,tag:a.tag,payload:a.payload,callback:null,next:null});e:{var m=e,g=a;f=t;var v=n;switch(g.tag){case 1:if("function"==typeof(m=g.payload)){p=m.call(v,p,f);break e}p=m;break e;case 3:m.flags=-65537&m.flags|128;case 0:if(null==(f="function"==typeof(m=g.payload)?m.call(v,p,f):m))break e;p=c({},p,f);break e;case 2:oi=!0}}null!==(f=a.callback)&&(e.flags|=64,h&&(e.flags|=8192),null===(h=o.callbacks)?o.callbacks=[f]:h.push(f))}else h={lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===d?(u=d=h,l=p):d=d.next=h,s|=f;if(null===(a=a.next)){if(null===(a=o.shared.pending))break;a=(h=a).next,h.next=null,o.lastBaseUpdate=h,o.shared.pending=null}}null===d&&(l=p),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=d,null===i&&(o.shared.lanes=0),mu|=s,e.lanes=s,e.memoizedState=p}}function hi(e,t){if("function"!=typeof e)throw Error(r(191,e));e.call(t)}function mi(e,t){var n=e.callbacks;if(null!==n)for(e.callbacks=null,e=0;e<n.length;e++)hi(n[e],t)}var gi=B(null),vi=B(0);function yi(e,t){V(vi,e=fu),V(gi,t),fu=e|t.baseLanes}function bi(){V(vi,fu),V(gi,gi.current)}function ki(){fu=vi.current,H(gi),H(vi)}var xi=0,wi=null,Si=null,Ci=null,Ei=!1,Li=!1,Pi=!1,Mi=0,Oi=0,ji=null,Ni=0;function Di(){throw Error(r(321))}function Ii(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Yn(e[n],t[n]))return!1;return!0}function Ti(e,t,n,r,o,i){return xi=i,wi=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,_.H=null===e||null===e.memoizedState?Qs:Ks,Pi=!1,i=n(r,o),Pi=!1,Li&&(i=_i(t,n,r,o)),zi(e),i}function zi(e){_.H=Zs;var t=null!==Si&&null!==Si.next;if(xi=0,Ci=Si=wi=null,Ei=!1,Oi=0,ji=null,t)throw Error(r(300));null===e||Oa||null!==(e=e.dependencies)&&Po(e)&&(Oa=!0)}function _i(e,t,n,o){wi=e;var i=0;do{if(Li&&(ji=null),Oi=0,Li=!1,25<=i)throw Error(r(301));if(i+=1,Ci=Si=null,null!=e.updateQueue){var s=e.updateQueue;s.lastEffect=null,s.events=null,s.stores=null,null!=s.memoCache&&(s.memoCache.index=0)}_.H=Gs,s=t(n,o)}while(Li);return s}function Ai(){var e=_.H,t=e.useState()[0];return t="function"==typeof t.then?Vi(t):t,e=e.useState()[0],(null!==Si?Si.memoizedState:null)!==e&&(wi.flags|=1024),t}function Ri(){var e=0!==Mi;return Mi=0,e}function Fi(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Ui(e){if(Ei){for(e=e.memoizedState;null!==e;){var t=e.queue;null!==t&&(t.pending=null),e=e.next}Ei=!1}xi=0,Ci=Si=wi=null,Li=!1,Oi=Mi=0,ji=null}function Bi(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Ci?wi.memoizedState=Ci=e:Ci=Ci.next=e,Ci}function Hi(){if(null===Si){var e=wi.alternate;e=null!==e?e.memoizedState:null}else e=Si.next;var t=null===Ci?wi.memoizedState:Ci.next;if(null!==t)Ci=t,Si=e;else{if(null===e){if(null===wi.alternate)throw Error(r(467));throw Error(r(310))}e={memoizedState:(Si=e).memoizedState,baseState:Si.baseState,baseQueue:Si.baseQueue,queue:Si.queue,next:null},null===Ci?wi.memoizedState=Ci=e:Ci=Ci.next=e}return Ci}function Vi(e){var t=Oi;return Oi+=1,null===ji&&(ji=[]),e=ei(ji,e,t),t=wi,null===(null===Ci?t.memoizedState:Ci.next)&&(t=t.alternate,_.H=null===t||null===t.memoizedState?Qs:Ks),e}function $i(e){if(null!==e&&"object"==typeof e){if("function"==typeof e.then)return Vi(e);if(e.$$typeof===w)return Oo(e)}throw Error(r(438,String(e)))}function Wi(e){var t=null,n=wi.updateQueue;if(null!==n&&(t=n.memoCache),null==t){var r=wi.alternate;null!==r&&(null!==(r=r.updateQueue)&&(null!=(r=r.memoCache)&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(null==t&&(t={data:[],index:0}),null===n&&(n={lastEffect:null,events:null,stores:null,memoCache:null},wi.updateQueue=n),n.memoCache=t,void 0===(n=t.data[t.index]))for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=j;return t.index++,n}function qi(e,t){return"function"==typeof t?t(e):t}function Zi(e){return Qi(Hi(),Si,e)}function Qi(e,t,n){var o=e.queue;if(null===o)throw Error(r(311));o.lastRenderedReducer=n;var i=e.baseQueue,s=o.pending;if(null!==s){if(null!==i){var a=i.next;i.next=s.next,s.next=a}t.baseQueue=i=s,o.pending=null}if(s=e.baseState,null===i)e.memoizedState=s;else{var l=a=null,u=null,c=t=i.next,d=!1;do{var p=-536870913&c.lane;if(p!==c.lane?(au&p)===p:(xi&p)===p){var f=c.revertLane;if(0===f)null!==u&&(u=u.next={lane:0,revertLane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),p===Uo&&(d=!0);else{if((xi&f)===f){c=c.next,f===Uo&&(d=!0);continue}p={lane:0,revertLane:c.revertLane,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},null===u?(l=u=p,a=s):u=u.next=p,wi.lanes|=f,mu|=f}p=c.action,Pi&&n(s,p),s=c.hasEagerState?c.eagerState:n(s,p)}else f={lane:p,revertLane:c.revertLane,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},null===u?(l=u=f,a=s):u=u.next=f,wi.lanes|=p,mu|=p;c=c.next}while(null!==c&&c!==t);if(null===u?a=s:u.next=l,!Yn(s,e.memoizedState)&&(Oa=!0,d&&null!==(n=Bo)))throw n;e.memoizedState=s,e.baseState=a,e.baseQueue=u,o.lastRenderedState=s}return null===i&&(o.lanes=0),[e.memoizedState,o.dispatch]}function Ki(e){var t=Hi(),n=t.queue;if(null===n)throw Error(r(311));n.lastRenderedReducer=e;var o=n.dispatch,i=n.pending,s=t.memoizedState;if(null!==i){n.pending=null;var a=i=i.next;do{s=e(s,a.action),a=a.next}while(a!==i);Yn(s,t.memoizedState)||(Oa=!0),t.memoizedState=s,null===t.baseQueue&&(t.baseState=s),n.lastRenderedState=s}return[s,o]}function Gi(e,t,n){var o=wi,i=Hi(),s=ao;if(s){if(void 0===n)throw Error(r(407));n=n()}else n=t();var a=!Yn((Si||i).memoizedState,n);if(a&&(i.memoizedState=n,Oa=!0),i=i.queue,bs(2048,8,Ji.bind(null,o,i,e),[e]),i.getSnapshot!==t||a||null!==Ci&&1&Ci.memoizedState.tag){if(o.flags|=2048,gs(9,{destroy:void 0,resource:void 0},Xi.bind(null,o,i,n,t),null),null===iu)throw Error(r(349));s||124&xi||Yi(o,t,n)}return n}function Yi(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=wi.updateQueue)?(t={lastEffect:null,events:null,stores:null,memoCache:null},wi.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Xi(e,t,n,r){t.value=n,t.getSnapshot=r,es(t)&&ts(e)}function Ji(e,t,n){return n(function(){es(t)&&ts(e)})}function es(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Yn(e,n)}catch(e){return!0}}function ts(e){var t=Ir(e,2);null!==t&&Ru(t,e,2)}function ns(e){var t=Bi();if("function"==typeof e){var n=e;if(e=n(),Pi){he(!0);try{n()}finally{he(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:qi,lastRenderedState:e},t}function rs(e,t,n,r){return e.baseState=n,Qi(e,Si,"function"==typeof r?r:qi)}function os(e,t,n,o,i){if($s(e))throw Error(r(485));if(null!==(e=t.action)){var s={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(e){s.listeners.push(e)}};null!==_.T?n(!0):s.isTransition=!1,o(s),null===(n=t.pending)?(s.next=t.pending=s,is(t,s)):(s.next=n.next,t.pending=n.next=s)}}function is(e,t){var n=t.action,r=t.payload,o=e.state;if(t.isTransition){var i=_.T,s={};_.T=s;try{var a=n(o,r),l=_.S;null!==l&&l(s,a),ss(e,t,a)}catch(n){ls(e,t,n)}finally{_.T=i}}else try{ss(e,t,i=n(o,r))}catch(n){ls(e,t,n)}}function ss(e,t,n){null!==n&&"object"==typeof n&&"function"==typeof n.then?n.then(function(n){as(e,t,n)},function(n){return ls(e,t,n)}):as(e,t,n)}function as(e,t,n){t.status="fulfilled",t.value=n,us(t),e.state=n,null!==(t=e.pending)&&((n=t.next)===t?e.pending=null:(n=n.next,t.next=n,is(e,n)))}function ls(e,t,n){var r=e.pending;if(e.pending=null,null!==r){r=r.next;do{t.status="rejected",t.reason=n,us(t),t=t.next}while(t!==r)}e.action=null}function us(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function cs(e,t){return t}function ds(e,t){if(ao){var n=iu.formState;if(null!==n){e:{var r=wi;if(ao){if(so){t:{for(var o=so,i=uo;8!==o.nodeType;){if(!i){o=null;break t}if(null===(o=bd(o.nextSibling))){o=null;break t}}o="F!"===(i=o.data)||"F"===i?o:null}if(o){so=bd(o.nextSibling),r="F!"===o.data;break e}}po(r)}r=!1}r&&(t=n[0])}}return(n=Bi()).memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:cs,lastRenderedState:t},n.queue=r,n=Bs.bind(null,wi,r),r.dispatch=n,r=ns(!1),i=Vs.bind(null,wi,!1,r.queue),o={state:t,dispatch:null,action:e,pending:null},(r=Bi()).queue=o,n=os.bind(null,wi,o,i,n),o.dispatch=n,r.memoizedState=e,[t,n,!1]}function ps(e){return fs(Hi(),Si,e)}function fs(e,t,n){if(t=Qi(e,t,cs)[0],e=Zi(qi)[0],"object"==typeof t&&null!==t&&"function"==typeof t.then)try{var r=Vi(t)}catch(e){if(e===Qo)throw Go;throw e}else r=t;var o=(t=Hi()).queue,i=o.dispatch;return n!==t.memoizedState&&(wi.flags|=2048,gs(9,{destroy:void 0,resource:void 0},hs.bind(null,o,n),null)),[r,i,e]}function hs(e,t){e.action=t}function ms(e){var t=Hi(),n=Si;if(null!==n)return fs(t,n,e);Hi(),t=t.memoizedState;var r=(n=Hi()).queue.dispatch;return n.memoizedState=e,[t,r,!1]}function gs(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},null===(t=wi.updateQueue)&&(t={lastEffect:null,events:null,stores:null,memoCache:null},wi.updateQueue=t),null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function vs(){return Hi().memoizedState}function ys(e,t,n,r){var o=Bi();r=void 0===r?null:r,wi.flags|=e,o.memoizedState=gs(1|t,{destroy:void 0,resource:void 0},n,r)}function bs(e,t,n,r){var o=Hi();r=void 0===r?null:r;var i=o.memoizedState.inst;null!==Si&&null!==r&&Ii(r,Si.memoizedState.deps)?o.memoizedState=gs(t,i,n,r):(wi.flags|=e,o.memoizedState=gs(1|t,i,n,r))}function ks(e,t){ys(8390656,8,e,t)}function xs(e,t){bs(2048,8,e,t)}function ws(e,t){return bs(4,2,e,t)}function Ss(e,t){return bs(4,4,e,t)}function Cs(e,t){if("function"==typeof t){e=e();var n=t(e);return function(){"function"==typeof n?n():t(null)}}if(null!=t)return e=e(),t.current=e,function(){t.current=null}}function Es(e,t,n){n=null!=n?n.concat([e]):null,bs(4,4,Cs.bind(null,t,e),n)}function Ls(){}function Ps(e,t){var n=Hi();t=void 0===t?null:t;var r=n.memoizedState;return null!==t&&Ii(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ms(e,t){var n=Hi();t=void 0===t?null:t;var r=n.memoizedState;if(null!==t&&Ii(t,r[1]))return r[0];if(r=e(),Pi){he(!0);try{e()}finally{he(!1)}}return n.memoizedState=[r,t],r}function Os(e,t,n){return void 0===n||1073741824&xi?e.memoizedState=t:(e.memoizedState=n,e=Au(),wi.lanes|=e,mu|=e,n)}function js(e,t,n,r){return Yn(n,t)?n:null!==gi.current?(e=Os(e,n,r),Yn(e,t)||(Oa=!0),e):42&xi?(e=Au(),wi.lanes|=e,mu|=e,t):(Oa=!0,e.memoizedState=n)}function Ns(e,t,n,r,o){var i=A.p;A.p=0!==i&&8>i?i:8;var s,a,l,u=_.T,c={};_.T=c,Vs(e,!1,t,n);try{var d=o(),p=_.S;if(null!==p&&p(c,d),null!==d&&"object"==typeof d&&"function"==typeof d.then){var f=(s=r,a=[],l={status:"pending",value:null,reason:null,then:function(e){a.push(e)}},d.then(function(){l.status="fulfilled",l.value=s;for(var e=0;e<a.length;e++)(0,a[e])(s)},function(e){for(l.status="rejected",l.reason=e,e=0;e<a.length;e++)(0,a[e])(void 0)}),l);Hs(e,t,f,_u())}else Hs(e,t,r,_u())}catch(n){Hs(e,t,{then:function(){},status:"rejected",reason:n},_u())}finally{A.p=i,_.T=u}}function Ds(){}function Is(e,t,n,o){if(5!==e.tag)throw Error(r(476));var i=Ts(e).queue;Ns(e,i,t,R,null===n?Ds:function(){return zs(e),n(o)})}function Ts(e){var t=e.memoizedState;if(null!==t)return t;var n={};return(t={memoizedState:R,baseState:R,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:qi,lastRenderedState:R},next:null}).next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:qi,lastRenderedState:n},next:null},e.memoizedState=t,null!==(e=e.alternate)&&(e.memoizedState=t),t}function zs(e){Hs(e,Ts(e).next.queue,{},_u())}function _s(){return Oo(Gd)}function As(){return Hi().memoizedState}function Rs(){return Hi().memoizedState}function Fs(e){for(var t=e.return;null!==t;){switch(t.tag){case 24:case 3:var n=_u(),r=li(t,e=ai(n),n);return null!==r&&(Ru(r,t,n),ui(r,t,n)),t={cache:_o()},void(e.payload=t)}t=t.return}}function Us(e,t,n){var r=_u();n={lane:r,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},$s(e)?Ws(t,n):null!==(n=Dr(e,t,n,r))&&(Ru(n,e,r),qs(n,t,r))}function Bs(e,t,n){Hs(e,t,n,_u())}function Hs(e,t,n,r){var o={lane:r,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if($s(e))Ws(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var s=t.lastRenderedState,a=i(s,n);if(o.hasEagerState=!0,o.eagerState=a,Yn(a,s))return Nr(e,t,o,0),null===iu&&jr(),!1}catch(e){}if(null!==(n=Dr(e,t,o,r)))return Ru(n,e,r),qs(n,t,r),!0}return!1}function Vs(e,t,n,o){if(o={lane:2,revertLane:Nc(),action:o,hasEagerState:!1,eagerState:null,next:null},$s(e)){if(t)throw Error(r(479))}else null!==(t=Dr(e,n,o,2))&&Ru(t,e,2)}function $s(e){var t=e.alternate;return e===wi||null!==t&&t===wi}function Ws(e,t){Li=Ei=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function qs(e,t,n){if(4194048&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Oe(e,n)}}var Zs={readContext:Oo,use:$i,useCallback:Di,useContext:Di,useEffect:Di,useImperativeHandle:Di,useLayoutEffect:Di,useInsertionEffect:Di,useMemo:Di,useReducer:Di,useRef:Di,useState:Di,useDebugValue:Di,useDeferredValue:Di,useTransition:Di,useSyncExternalStore:Di,useId:Di,useHostTransitionStatus:Di,useFormState:Di,useActionState:Di,useOptimistic:Di,useMemoCache:Di,useCacheRefresh:Di},Qs={readContext:Oo,use:$i,useCallback:function(e,t){return Bi().memoizedState=[e,void 0===t?null:t],e},useContext:Oo,useEffect:ks,useImperativeHandle:function(e,t,n){n=null!=n?n.concat([e]):null,ys(4194308,4,Cs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ys(4194308,4,e,t)},useInsertionEffect:function(e,t){ys(4,2,e,t)},useMemo:function(e,t){var n=Bi();t=void 0===t?null:t;var r=e();if(Pi){he(!0);try{e()}finally{he(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Bi();if(void 0!==n){var o=n(t);if(Pi){he(!0);try{n(t)}finally{he(!1)}}}else o=t;return r.memoizedState=r.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},r.queue=e,e=e.dispatch=Us.bind(null,wi,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Bi().memoizedState=e},useState:function(e){var t=(e=ns(e)).queue,n=Bs.bind(null,wi,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Ls,useDeferredValue:function(e,t){return Os(Bi(),e,t)},useTransition:function(){var e=ns(!1);return e=Ns.bind(null,wi,e.queue,!0,!1),Bi().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var o=wi,i=Bi();if(ao){if(void 0===n)throw Error(r(407));n=n()}else{if(n=t(),null===iu)throw Error(r(349));124&au||Yi(o,t,n)}i.memoizedState=n;var s={value:n,getSnapshot:t};return i.queue=s,ks(Ji.bind(null,o,s,e),[e]),o.flags|=2048,gs(9,{destroy:void 0,resource:void 0},Xi.bind(null,o,s,n,t),null),n},useId:function(){var e=Bi(),t=iu.identifierPrefix;if(ao){var n=eo;t="«"+t+"R"+(n=(Jr&~(1<<32-me(Jr)-1)).toString(32)+n),0<(n=Mi++)&&(t+="H"+n.toString(32)),t+="»"}else t="«"+t+"r"+(n=Ni++).toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:_s,useFormState:ds,useActionState:ds,useOptimistic:function(e){var t=Bi();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Vs.bind(null,wi,!0,n),n.dispatch=t,[e,t]},useMemoCache:Wi,useCacheRefresh:function(){return Bi().memoizedState=Fs.bind(null,wi)}},Ks={readContext:Oo,use:$i,useCallback:Ps,useContext:Oo,useEffect:xs,useImperativeHandle:Es,useInsertionEffect:ws,useLayoutEffect:Ss,useMemo:Ms,useReducer:Zi,useRef:vs,useState:function(){return Zi(qi)},useDebugValue:Ls,useDeferredValue:function(e,t){return js(Hi(),Si.memoizedState,e,t)},useTransition:function(){var e=Zi(qi)[0],t=Hi().memoizedState;return["boolean"==typeof e?e:Vi(e),t]},useSyncExternalStore:Gi,useId:As,useHostTransitionStatus:_s,useFormState:ps,useActionState:ps,useOptimistic:function(e,t){return rs(Hi(),0,e,t)},useMemoCache:Wi,useCacheRefresh:Rs},Gs={readContext:Oo,use:$i,useCallback:Ps,useContext:Oo,useEffect:xs,useImperativeHandle:Es,useInsertionEffect:ws,useLayoutEffect:Ss,useMemo:Ms,useReducer:Ki,useRef:vs,useState:function(){return Ki(qi)},useDebugValue:Ls,useDeferredValue:function(e,t){var n=Hi();return null===Si?Os(n,e,t):js(n,Si.memoizedState,e,t)},useTransition:function(){var e=Ki(qi)[0],t=Hi().memoizedState;return["boolean"==typeof e?e:Vi(e),t]},useSyncExternalStore:Gi,useId:As,useHostTransitionStatus:_s,useFormState:ms,useActionState:ms,useOptimistic:function(e,t){var n=Hi();return null!==Si?rs(n,0,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Wi,useCacheRefresh:Rs},Ys=null,Xs=0;function Js(e){var t=Xs;return Xs+=1,null===Ys&&(Ys=[]),ei(Ys,e,t)}function ea(e,t){t=t.props.ref,e.ref=void 0!==t?t:null}function ta(e,t){if(t.$$typeof===d)throw Error(r(525));throw e=Object.prototype.toString.call(t),Error(r(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function na(e){return(0,e._init)(e._payload)}function ra(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function o(e){for(var t=new Map;null!==e;)null!==e.key?t.set(e.key,e):t.set(e.index,e),e=e.sibling;return t}function i(e,t){return(e=Ur(e,t)).index=0,e.sibling=null,e}function s(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=67108866,n):r:(t.flags|=67108866,n):(t.flags|=1048576,n)}function a(t){return e&&null===t.alternate&&(t.flags|=67108866),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=$r(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function u(e,t,n,r){var o=n.type;return o===m?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===M&&na(o)===t.type)?(ea(t=i(t,n.props),n),t.return=e,t):(ea(t=Hr(n.type,n.key,n.props,null,e.mode,r),n),t.return=e,t)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Wr(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=Vr(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function p(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t||"bigint"==typeof t)return(t=$r(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case f:return ea(n=Hr(t.type,t.key,t.props,null,e.mode,n),t),n.return=e,n;case h:return(t=Wr(t,e.mode,n)).return=e,t;case M:return p(e,t=(0,t._init)(t._payload),n)}if(z(t)||D(t))return(t=Vr(t,e.mode,n,null)).return=e,t;if("function"==typeof t.then)return p(e,Js(t),n);if(t.$$typeof===w)return p(e,jo(e,t),n);ta(e,t)}return null}function g(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n||"bigint"==typeof n)return null!==o?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case f:return n.key===o?u(e,t,n,r):null;case h:return n.key===o?c(e,t,n,r):null;case M:return g(e,t,n=(o=n._init)(n._payload),r)}if(z(n)||D(n))return null!==o?null:d(e,t,n,r,null);if("function"==typeof n.then)return g(e,t,Js(n),r);if(n.$$typeof===w)return g(e,t,jo(e,n),r);ta(e,n)}return null}function v(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r||"bigint"==typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case f:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case h:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case M:return v(e,t,n,r=(0,r._init)(r._payload),o)}if(z(r)||D(r))return d(t,e=e.get(n)||null,r,o,null);if("function"==typeof r.then)return v(e,t,n,Js(r),o);if(r.$$typeof===w)return v(e,t,n,jo(t,r),o);ta(t,r)}return null}function y(l,u,c,d){if("object"==typeof c&&null!==c&&c.type===m&&null===c.key&&(c=c.props.children),"object"==typeof c&&null!==c){switch(c.$$typeof){case f:e:{for(var b=c.key;null!==u;){if(u.key===b){if((b=c.type)===m){if(7===u.tag){n(l,u.sibling),(d=i(u,c.props.children)).return=l,l=d;break e}}else if(u.elementType===b||"object"==typeof b&&null!==b&&b.$$typeof===M&&na(b)===u.type){n(l,u.sibling),ea(d=i(u,c.props),c),d.return=l,l=d;break e}n(l,u);break}t(l,u),u=u.sibling}c.type===m?((d=Vr(c.props.children,l.mode,d,c.key)).return=l,l=d):(ea(d=Hr(c.type,c.key,c.props,null,l.mode,d),c),d.return=l,l=d)}return a(l);case h:e:{for(b=c.key;null!==u;){if(u.key===b){if(4===u.tag&&u.stateNode.containerInfo===c.containerInfo&&u.stateNode.implementation===c.implementation){n(l,u.sibling),(d=i(u,c.children||[])).return=l,l=d;break e}n(l,u);break}t(l,u),u=u.sibling}(d=Wr(c,l.mode,d)).return=l,l=d}return a(l);case M:return y(l,u,c=(b=c._init)(c._payload),d)}if(z(c))return function(r,i,a,l){for(var u=null,c=null,d=i,f=i=0,h=null;null!==d&&f<a.length;f++){d.index>f?(h=d,d=null):h=d.sibling;var m=g(r,d,a[f],l);if(null===m){null===d&&(d=h);break}e&&d&&null===m.alternate&&t(r,d),i=s(m,i,f),null===c?u=m:c.sibling=m,c=m,d=h}if(f===a.length)return n(r,d),ao&&to(r,f),u;if(null===d){for(;f<a.length;f++)null!==(d=p(r,a[f],l))&&(i=s(d,i,f),null===c?u=d:c.sibling=d,c=d);return ao&&to(r,f),u}for(d=o(d);f<a.length;f++)null!==(h=v(d,r,f,a[f],l))&&(e&&null!==h.alternate&&d.delete(null===h.key?f:h.key),i=s(h,i,f),null===c?u=h:c.sibling=h,c=h);return e&&d.forEach(function(e){return t(r,e)}),ao&&to(r,f),u}(l,u,c,d);if(D(c)){if("function"!=typeof(b=D(c)))throw Error(r(150));return function(i,a,l,u){if(null==l)throw Error(r(151));for(var c=null,d=null,f=a,h=a=0,m=null,y=l.next();null!==f&&!y.done;h++,y=l.next()){f.index>h?(m=f,f=null):m=f.sibling;var b=g(i,f,y.value,u);if(null===b){null===f&&(f=m);break}e&&f&&null===b.alternate&&t(i,f),a=s(b,a,h),null===d?c=b:d.sibling=b,d=b,f=m}if(y.done)return n(i,f),ao&&to(i,h),c;if(null===f){for(;!y.done;h++,y=l.next())null!==(y=p(i,y.value,u))&&(a=s(y,a,h),null===d?c=y:d.sibling=y,d=y);return ao&&to(i,h),c}for(f=o(f);!y.done;h++,y=l.next())null!==(y=v(f,i,h,y.value,u))&&(e&&null!==y.alternate&&f.delete(null===y.key?h:y.key),a=s(y,a,h),null===d?c=y:d.sibling=y,d=y);return e&&f.forEach(function(e){return t(i,e)}),ao&&to(i,h),c}(l,u,c=b.call(c),d)}if("function"==typeof c.then)return y(l,u,Js(c),d);if(c.$$typeof===w)return y(l,u,jo(l,c),d);ta(l,c)}return"string"==typeof c&&""!==c||"number"==typeof c||"bigint"==typeof c?(c=""+c,null!==u&&6===u.tag?(n(l,u.sibling),(d=i(u,c)).return=l,l=d):(n(l,u),(d=$r(c,l.mode,d)).return=l,l=d),a(l)):n(l,u)}return function(e,t,n,r){try{Xs=0;var o=y(e,t,n,r);return Ys=null,o}catch(t){if(t===Qo||t===Go)throw t;var i=Rr(29,t,null,e.mode);return i.lanes=r,i.return=e,i}}}var oa=ra(!0),ia=ra(!1),sa=B(null),aa=null;function la(e){var t=e.alternate;V(pa,1&pa.current),V(sa,e),null===aa&&(null===t||null!==gi.current||null!==t.memoizedState)&&(aa=e)}function ua(e){if(22===e.tag){if(V(pa,pa.current),V(sa,e),null===aa){var t=e.alternate;null!==t&&null!==t.memoizedState&&(aa=e)}}else ca()}function ca(){V(pa,pa.current),V(sa,sa.current)}function da(e){H(sa),aa===e&&(aa=null),H(pa)}var pa=B(0);function fa(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||yd(n)))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function ha(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:c({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var ma={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=_u(),o=ai(r);o.payload=t,null!=n&&(o.callback=n),null!==(t=li(e,o,r))&&(Ru(t,e,r),ui(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=_u(),o=ai(r);o.tag=1,o.payload=t,null!=n&&(o.callback=n),null!==(t=li(e,o,r))&&(Ru(t,e,r),ui(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=_u(),r=ai(n);r.tag=2,null!=t&&(r.callback=t),null!==(t=li(e,r,n))&&(Ru(t,e,n),ui(t,e,n))}};function ga(e,t,n,r,o,i,s){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,s):!t.prototype||!t.prototype.isPureReactComponent||(!Xn(n,r)||!Xn(o,i))}function va(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ma.enqueueReplaceState(t,t.state,null)}function ya(e,t){var n=t;if("ref"in t)for(var r in n={},t)"ref"!==r&&(n[r]=t[r]);if(e=e.defaultProps)for(var o in n===t&&(n=c({},n)),e)void 0===n[o]&&(n[o]=e[o]);return n}var ba="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)};function ka(e){ba(e)}function xa(e){console.error(e)}function wa(e){ba(e)}function Sa(e,t){try{(0,e.onUncaughtError)(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Ca(e,t,n){try{(0,e.onCaughtError)(n.value,{componentStack:n.stack,errorBoundary:1===t.tag?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function Ea(e,t,n){return(n=ai(n)).tag=3,n.payload={element:null},n.callback=function(){Sa(e,t)},n}function La(e){return(e=ai(e)).tag=3,e}function Pa(e,t,n,r){var o=n.type.getDerivedStateFromError;if("function"==typeof o){var i=r.value;e.payload=function(){return o(i)},e.callback=function(){Ca(t,n,r)}}var s=n.stateNode;null!==s&&"function"==typeof s.componentDidCatch&&(e.callback=function(){Ca(t,n,r),"function"!=typeof o&&(null===Lu?Lu=new Set([this]):Lu.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:null!==e?e:""})})}var Ma=Error(r(461)),Oa=!1;function ja(e,t,n,r){t.child=null===e?ia(t,null,n,r):oa(t,e.child,n,r)}function Na(e,t,n,r,o){n=n.render;var i=t.ref;if("ref"in r){var s={};for(var a in r)"ref"!==a&&(s[a]=r[a])}else s=r;return Mo(t),r=Ti(e,t,n,s,i,o),a=Ri(),null===e||Oa?(ao&&a&&ro(t),t.flags|=1,ja(e,t,r,o),t.child):(Fi(e,t,o),Ya(e,t,o))}function Da(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||Fr(i)||void 0!==i.defaultProps||null!==n.compare?((e=Hr(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Ia(e,t,i,r,o))}if(i=e.child,!Xa(e,o)){var s=i.memoizedProps;if((n=null!==(n=n.compare)?n:Xn)(s,r)&&e.ref===t.ref)return Ya(e,t,o)}return t.flags|=1,(e=Ur(i,r)).ref=t.ref,e.return=t,t.child=e}function Ia(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(Xn(i,r)&&e.ref===t.ref){if(Oa=!1,t.pendingProps=r=i,!Xa(e,o))return t.lanes=e.lanes,Ya(e,t,o);131072&e.flags&&(Oa=!0)}}return Aa(e,t,n,r,o)}function Ta(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode){if(128&t.flags){if(r=null!==i?i.baseLanes|n:n,null!==e){for(o=t.child=e.child,i=0;null!==o;)i=i|o.lanes|o.childLanes,o=o.sibling;t.childLanes=i&~r}else t.childLanes=0,t.child=null;return za(e,t,r,n)}if(!(536870912&n))return t.lanes=t.childLanes=536870912,za(e,t,null!==i?i.baseLanes|n:n,n);t.memoizedState={baseLanes:0,cachePool:null},null!==e&&qo(0,null!==i?i.cachePool:null),null!==i?yi(t,i):bi(),ua(t)}else null!==i?(qo(0,i.cachePool),yi(t,i),ca(),t.memoizedState=null):(null!==e&&qo(0,null),bi(),ca());return ja(e,t,o,n),t.child}function za(e,t,n,r){var o=Wo();return o=null===o?null:{parent:zo._currentValue,pool:o},t.memoizedState={baseLanes:n,cachePool:o},null!==e&&qo(0,null),bi(),ua(t),null!==e&&Lo(e,t,r,!0),null}function _a(e,t){var n=t.ref;if(null===n)null!==e&&null!==e.ref&&(t.flags|=4194816);else{if("function"!=typeof n&&"object"!=typeof n)throw Error(r(284));null!==e&&e.ref===n||(t.flags|=4194816)}}function Aa(e,t,n,r,o){return Mo(t),n=Ti(e,t,n,r,void 0,o),r=Ri(),null===e||Oa?(ao&&r&&ro(t),t.flags|=1,ja(e,t,n,o),t.child):(Fi(e,t,o),Ya(e,t,o))}function Ra(e,t,n,r,o,i){return Mo(t),t.updateQueue=null,n=_i(t,r,n,o),zi(e),r=Ri(),null===e||Oa?(ao&&r&&ro(t),t.flags|=1,ja(e,t,n,i),t.child):(Fi(e,t,i),Ya(e,t,i))}function Fa(e,t,n,r,o){if(Mo(t),null===t.stateNode){var i=_r,s=n.contextType;"object"==typeof s&&null!==s&&(i=Oo(s)),i=new n(r,i),t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,i.updater=ma,t.stateNode=i,i._reactInternals=t,(i=t.stateNode).props=r,i.state=t.memoizedState,i.refs={},ii(t),s=n.contextType,i.context="object"==typeof s&&null!==s?Oo(s):_r,i.state=t.memoizedState,"function"==typeof(s=n.getDerivedStateFromProps)&&(ha(t,n,s,r),i.state=t.memoizedState),"function"==typeof n.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(s=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),s!==i.state&&ma.enqueueReplaceState(i,i.state,null),fi(t,r,i,o),pi(),i.state=t.memoizedState),"function"==typeof i.componentDidMount&&(t.flags|=4194308),r=!0}else if(null===e){i=t.stateNode;var a=t.memoizedProps,l=ya(n,a);i.props=l;var u=i.context,c=n.contextType;s=_r,"object"==typeof c&&null!==c&&(s=Oo(c));var d=n.getDerivedStateFromProps;c="function"==typeof d||"function"==typeof i.getSnapshotBeforeUpdate,a=t.pendingProps!==a,c||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(a||u!==s)&&va(t,i,r,s),oi=!1;var p=t.memoizedState;i.state=p,fi(t,r,i,o),pi(),u=t.memoizedState,a||p!==u||oi?("function"==typeof d&&(ha(t,n,d,r),u=t.memoizedState),(l=oi||ga(t,n,l,r,p,u,s))?(c||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(t.flags|=4194308)):("function"==typeof i.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),i.props=r,i.state=u,i.context=s,r=l):("function"==typeof i.componentDidMount&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,si(e,t),c=ya(n,s=t.memoizedProps),i.props=c,d=t.pendingProps,p=i.context,u=n.contextType,l=_r,"object"==typeof u&&null!==u&&(l=Oo(u)),(u="function"==typeof(a=n.getDerivedStateFromProps)||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(s!==d||p!==l)&&va(t,i,r,l),oi=!1,p=t.memoizedState,i.state=p,fi(t,r,i,o),pi();var f=t.memoizedState;s!==d||p!==f||oi||null!==e&&null!==e.dependencies&&Po(e.dependencies)?("function"==typeof a&&(ha(t,n,a,r),f=t.memoizedState),(c=oi||ga(t,n,c,r,p,f,l)||null!==e&&null!==e.dependencies&&Po(e.dependencies))?(u||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,f,l),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,f,l)),"function"==typeof i.componentDidUpdate&&(t.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof i.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=f),i.props=r,i.state=f,i.context=l,r=c):("function"!=typeof i.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return i=r,_a(e,t),r=!!(128&t.flags),i||r?(i=t.stateNode,n=r&&"function"!=typeof n.getDerivedStateFromError?null:i.render(),t.flags|=1,null!==e&&r?(t.child=oa(t,e.child,null,o),t.child=oa(t,null,n,o)):ja(e,t,n,o),t.memoizedState=i.state,e=t.child):e=Ya(e,t,o),e}function Ua(e,t,n,r){return go(),t.flags|=256,ja(e,t,n,r),t.child}var Ba={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ha(e){return{baseLanes:e,cachePool:Zo()}}function Va(e,t,n){return e=null!==e?e.childLanes&~n:0,t&&(e|=yu),e}function $a(e,t,n){var o,i=t.pendingProps,s=!1,a=!!(128&t.flags);if((o=a)||(o=(null===e||null!==e.memoizedState)&&!!(2&pa.current)),o&&(s=!0,t.flags&=-129),o=!!(32&t.flags),t.flags&=-33,null===e){if(ao){if(s?la(t):ca(),ao){var l,u=so;if(l=u){e:{for(l=u,u=uo;8!==l.nodeType;){if(!u){u=null;break e}if(null===(l=bd(l.nextSibling))){u=null;break e}}u=l}null!==u?(t.memoizedState={dehydrated:u,treeContext:null!==Xr?{id:Jr,overflow:eo}:null,retryLane:536870912,hydrationErrors:null},(l=Rr(18,null,null,0)).stateNode=u,l.return=t,t.child=l,io=t,so=null,l=!0):l=!1}l||po(t)}if(null!==(u=t.memoizedState)&&null!==(u=u.dehydrated))return yd(u)?t.lanes=32:t.lanes=536870912,null;da(t)}return u=i.children,i=i.fallback,s?(ca(),u=qa({mode:"hidden",children:u},s=t.mode),i=Vr(i,s,n,null),u.return=t,i.return=t,u.sibling=i,t.child=u,(s=t.child).memoizedState=Ha(n),s.childLanes=Va(e,o,n),t.memoizedState=Ba,i):(la(t),Wa(t,u))}if(null!==(l=e.memoizedState)&&null!==(u=l.dehydrated)){if(a)256&t.flags?(la(t),t.flags&=-257,t=Za(e,t,n)):null!==t.memoizedState?(ca(),t.child=e.child,t.flags|=128,t=null):(ca(),s=i.fallback,u=t.mode,i=qa({mode:"visible",children:i.children},u),(s=Vr(s,u,n,null)).flags|=2,i.return=t,s.return=t,i.sibling=s,t.child=i,oa(t,e.child,null,n),(i=t.child).memoizedState=Ha(n),i.childLanes=Va(e,o,n),t.memoizedState=Ba,t=s);else if(la(t),yd(u)){if(o=u.nextSibling&&u.nextSibling.dataset)var c=o.dgst;o=c,(i=Error(r(419))).stack="",i.digest=o,yo({value:i,source:null,stack:null}),t=Za(e,t,n)}else if(Oa||Lo(e,t,n,!1),o=0!==(n&e.childLanes),Oa||o){if(null!==(o=iu)&&(0!==(i=0!==((i=42&(i=n&-n)?1:je(i))&(o.suspendedLanes|n))?0:i)&&i!==l.retryLane))throw l.retryLane=i,Ir(e,i),Ru(o,e,i),Ma;"$?"===u.data||Ku(),t=Za(e,t,n)}else"$?"===u.data?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,so=bd(u.nextSibling),io=t,ao=!0,lo=null,uo=!1,null!==e&&(Gr[Yr++]=Jr,Gr[Yr++]=eo,Gr[Yr++]=Xr,Jr=e.id,eo=e.overflow,Xr=t),(t=Wa(t,i.children)).flags|=4096);return t}return s?(ca(),s=i.fallback,u=t.mode,c=(l=e.child).sibling,(i=Ur(l,{mode:"hidden",children:i.children})).subtreeFlags=65011712&l.subtreeFlags,null!==c?s=Ur(c,s):(s=Vr(s,u,n,null)).flags|=2,s.return=t,i.return=t,i.sibling=s,t.child=i,i=s,s=t.child,null===(u=e.child.memoizedState)?u=Ha(n):(null!==(l=u.cachePool)?(c=zo._currentValue,l=l.parent!==c?{parent:c,pool:c}:l):l=Zo(),u={baseLanes:u.baseLanes|n,cachePool:l}),s.memoizedState=u,s.childLanes=Va(e,o,n),t.memoizedState=Ba,i):(la(t),e=(n=e.child).sibling,(n=Ur(n,{mode:"visible",children:i.children})).return=t,n.sibling=null,null!==e&&(null===(o=t.deletions)?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=n,t.memoizedState=null,n)}function Wa(e,t){return(t=qa({mode:"visible",children:t},e.mode)).return=e,e.child=t}function qa(e,t){return(e=Rr(22,e,null,t)).lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function Za(e,t,n){return oa(t,e.child,null,n),(e=Wa(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Qa(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Co(e.return,t,n)}function Ka(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Ga(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(ja(e,t,r.children,n),2&(r=pa.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Qa(e,n,t);else if(19===e.tag)Qa(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}switch(V(pa,r),o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===fa(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Ka(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===fa(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Ka(t,!0,n,null,i);break;case"together":Ka(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ya(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),mu|=t.lanes,0===(n&t.childLanes)){if(null===e)return null;if(Lo(e,t,n,!1),0===(n&t.childLanes))return null}if(null!==e&&t.child!==e.child)throw Error(r(153));if(null!==t.child){for(n=Ur(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Ur(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Xa(e,t){return 0!==(e.lanes&t)||!(null===(e=e.dependencies)||!Po(e))}function Ja(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps)Oa=!0;else{if(!(Xa(e,n)||128&t.flags))return Oa=!1,function(e,t,n){switch(t.tag){case 3:Q(t,t.stateNode.containerInfo),wo(0,zo,e.memoizedState.cache),go();break;case 27:case 5:G(t);break;case 4:Q(t,t.stateNode.containerInfo);break;case 10:wo(0,t.type,t.memoizedProps.value);break;case 13:var r=t.memoizedState;if(null!==r)return null!==r.dehydrated?(la(t),t.flags|=128,null):0!==(n&t.child.childLanes)?$a(e,t,n):(la(t),null!==(e=Ya(e,t,n))?e.sibling:null);la(t);break;case 19:var o=!!(128&e.flags);if((r=0!==(n&t.childLanes))||(Lo(e,t,n,!1),r=0!==(n&t.childLanes)),o){if(r)return Ga(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),V(pa,pa.current),r)break;return null;case 22:case 23:return t.lanes=0,Ta(e,t,n);case 24:wo(0,zo,e.memoizedState.cache)}return Ya(e,t,n)}(e,t,n);Oa=!!(131072&e.flags)}else Oa=!1,ao&&1048576&t.flags&&no(t,Kr,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var o=t.elementType,i=o._init;if(o=i(o._payload),t.type=o,"function"!=typeof o){if(null!=o){if((i=o.$$typeof)===S){t.tag=11,t=Na(null,t,o,e,n);break e}if(i===P){t.tag=14,t=Da(null,t,o,e,n);break e}}throw t=T(o)||o,Error(r(306,t,""))}Fr(o)?(e=ya(o,e),t.tag=1,t=Fa(null,t,o,e,n)):(t.tag=0,t=Aa(null,t,o,e,n))}return t;case 0:return Aa(e,t,t.type,t.pendingProps,n);case 1:return Fa(e,t,o=t.type,i=ya(o,t.pendingProps),n);case 3:e:{if(Q(t,t.stateNode.containerInfo),null===e)throw Error(r(387));o=t.pendingProps;var s=t.memoizedState;i=s.element,si(e,t),fi(t,o,null,n);var a=t.memoizedState;if(o=a.cache,wo(0,zo,o),o!==s.cache&&Eo(t,[zo],n,!0),pi(),o=a.element,s.isDehydrated){if(s={element:o,isDehydrated:!1,cache:a.cache},t.updateQueue.baseState=s,t.memoizedState=s,256&t.flags){t=Ua(e,t,o,n);break e}if(o!==i){yo(i=Lr(Error(r(424)),t)),t=Ua(e,t,o,n);break e}if(9===(e=t.stateNode.containerInfo).nodeType)e=e.body;else e="HTML"===e.nodeName?e.ownerDocument.body:e;for(so=bd(e.firstChild),io=t,ao=!0,lo=null,uo=!0,n=ia(t,null,o,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(go(),o===i){t=Ya(e,t,n);break e}ja(e,t,o,n)}t=t.child}return t;case 26:return _a(e,t),null===e?(n=jd(t.type,null,t.pendingProps,null))?t.memoizedState=n:ao||(n=t.type,e=t.pendingProps,(o=id(q.current).createElement(n))[Te]=t,o[ze]=e,nd(o,n,e),Ze(o),t.stateNode=o):t.memoizedState=jd(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return G(t),null===e&&ao&&(o=t.stateNode=wd(t.type,t.pendingProps,q.current),io=t,uo=!0,i=so,md(t.type)?(kd=i,so=bd(o.firstChild)):so=i),ja(e,t,t.pendingProps.children,n),_a(e,t),null===e&&(t.flags|=4194304),t.child;case 5:return null===e&&ao&&((i=o=so)&&(o=function(e,t,n,r){for(;1===e.nodeType;){var o=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&("INPUT"!==e.nodeName||"hidden"!==e.type))break}else if(r){if(!e[Be])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if("stylesheet"===(i=e.getAttribute("rel"))&&e.hasAttribute("data-precedence"))break;if(i!==o.rel||e.getAttribute("href")!==(null==o.href||""===o.href?null:o.href)||e.getAttribute("crossorigin")!==(null==o.crossOrigin?null:o.crossOrigin)||e.getAttribute("title")!==(null==o.title?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(((i=e.getAttribute("src"))!==(null==o.src?null:o.src)||e.getAttribute("type")!==(null==o.type?null:o.type)||e.getAttribute("crossorigin")!==(null==o.crossOrigin?null:o.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else{if("input"!==t||"hidden"!==e.type)return e;var i=null==o.name?null:""+o.name;if("hidden"===o.type&&e.getAttribute("name")===i)return e}if(null===(e=bd(e.nextSibling)))break}return null}(o,t.type,t.pendingProps,uo),null!==o?(t.stateNode=o,io=t,so=bd(o.firstChild),uo=!1,i=!0):i=!1),i||po(t)),G(t),i=t.type,s=t.pendingProps,a=null!==e?e.memoizedProps:null,o=s.children,ld(i,s)?o=null:null!==a&&ld(i,a)&&(t.flags|=32),null!==t.memoizedState&&(i=Ti(e,t,Ai,null,null,n),Gd._currentValue=i),_a(e,t),ja(e,t,o,n),t.child;case 6:return null===e&&ao&&((e=n=so)&&(n=function(e,t,n){if(""===t)return null;for(;3!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!n)return null;if(null===(e=bd(e.nextSibling)))return null}return e}(n,t.pendingProps,uo),null!==n?(t.stateNode=n,io=t,so=null,e=!0):e=!1),e||po(t)),null;case 13:return $a(e,t,n);case 4:return Q(t,t.stateNode.containerInfo),o=t.pendingProps,null===e?t.child=oa(t,null,o,n):ja(e,t,o,n),t.child;case 11:return Na(e,t,t.type,t.pendingProps,n);case 7:return ja(e,t,t.pendingProps,n),t.child;case 8:case 12:return ja(e,t,t.pendingProps.children,n),t.child;case 10:return o=t.pendingProps,wo(0,t.type,o.value),ja(e,t,o.children,n),t.child;case 9:return i=t.type._context,o=t.pendingProps.children,Mo(t),o=o(i=Oo(i)),t.flags|=1,ja(e,t,o,n),t.child;case 14:return Da(e,t,t.type,t.pendingProps,n);case 15:return Ia(e,t,t.type,t.pendingProps,n);case 19:return Ga(e,t,n);case 31:return o=t.pendingProps,n=t.mode,o={mode:o.mode,children:o.children},null===e?((n=qa(o,n)).ref=t.ref,t.child=n,n.return=t,t=n):((n=Ur(e.child,o)).ref=t.ref,t.child=n,n.return=t,t=n),t;case 22:return Ta(e,t,n);case 24:return Mo(t),o=Oo(zo),null===e?(null===(i=Wo())&&(i=iu,s=_o(),i.pooledCache=s,s.refCount++,null!==s&&(i.pooledCacheLanes|=n),i=s),t.memoizedState={parent:o,cache:i},ii(t),wo(0,zo,i)):(0!==(e.lanes&n)&&(si(e,t),fi(t,null,null,n),pi()),i=e.memoizedState,s=t.memoizedState,i.parent!==o?(i={parent:o,cache:o},t.memoizedState=i,0===t.lanes&&(t.memoizedState=t.updateQueue.baseState=i),wo(0,zo,o)):(o=s.cache,wo(0,zo,o),o!==i.cache&&Eo(t,[zo],n,!0))),ja(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function el(e){e.flags|=4}function tl(e,t){if("stylesheet"!==t.type||4&t.state.loading)e.flags&=-16777217;else if(e.flags|=16777216,!Vd(t)){if(null!==(t=sa.current)&&((4194048&au)===au?null!==aa:(62914560&au)!==au&&!(536870912&au)||t!==aa))throw ti=Yo,Ko;e.flags|=8192}}function nl(e,t){null!==t&&(e.flags|=4),16384&e.flags&&(t=22!==e.tag?Ee():536870912,e.lanes|=t,bu|=t)}function rl(e,t){if(!ao)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ol(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=65011712&o.subtreeFlags,r|=65011712&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function il(e,t,n){var o=t.pendingProps;switch(oo(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:case 1:return ol(t),null;case 3:return n=t.stateNode,o=null,null!==e&&(o=e.memoizedState.cache),t.memoizedState.cache!==o&&(t.flags|=2048),So(zo),K(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(mo(t)?el(t):null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,vo())),ol(t),null;case 26:return n=t.memoizedState,null===e?(el(t),null!==n?(ol(t),tl(t,n)):(ol(t),t.flags&=-16777217)):n?n!==e.memoizedState?(el(t),ol(t),tl(t,n)):(ol(t),t.flags&=-16777217):(e.memoizedProps!==o&&el(t),ol(t),t.flags&=-16777217),null;case 27:Y(t),n=q.current;var i=t.type;if(null!==e&&null!=t.stateNode)e.memoizedProps!==o&&el(t);else{if(!o){if(null===t.stateNode)throw Error(r(166));return ol(t),null}e=$.current,mo(t)?fo(t):(e=wd(i,o,n),t.stateNode=e,el(t))}return ol(t),null;case 5:if(Y(t),n=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==o&&el(t);else{if(!o){if(null===t.stateNode)throw Error(r(166));return ol(t),null}if(e=$.current,mo(t))fo(t);else{switch(i=id(q.current),e){case 1:e=i.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:e=i.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":e=i.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":e=i.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":(e=i.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e="string"==typeof o.is?i.createElement("select",{is:o.is}):i.createElement("select"),o.multiple?e.multiple=!0:o.size&&(e.size=o.size);break;default:e="string"==typeof o.is?i.createElement(n,{is:o.is}):i.createElement(n)}}e[Te]=t,e[ze]=o;e:for(i=t.child;null!==i;){if(5===i.tag||6===i.tag)e.appendChild(i.stateNode);else if(4!==i.tag&&27!==i.tag&&null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break e;for(;null===i.sibling;){if(null===i.return||i.return===t)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}t.stateNode=e;e:switch(nd(e,n,o),n){case"button":case"input":case"select":case"textarea":e=!!o.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&el(t)}}return ol(t),t.flags&=-16777217,null;case 6:if(e&&null!=t.stateNode)e.memoizedProps!==o&&el(t);else{if("string"!=typeof o&&null===t.stateNode)throw Error(r(166));if(e=q.current,mo(t)){if(e=t.stateNode,n=t.memoizedProps,o=null,null!==(i=io))switch(i.tag){case 27:case 5:o=i.memoizedProps}e[Te]=t,(e=!!(e.nodeValue===n||null!==o&&!0===o.suppressHydrationWarning||Xc(e.nodeValue,n)))||po(t)}else(e=id(e).createTextNode(o))[Te]=t,t.stateNode=e}return ol(t),null;case 13:if(o=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(i=mo(t),null!==o&&null!==o.dehydrated){if(null===e){if(!i)throw Error(r(318));if(!(i=null!==(i=t.memoizedState)?i.dehydrated:null))throw Error(r(317));i[Te]=t}else go(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;ol(t),i=!1}else i=vo(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return 256&t.flags?(da(t),t):(da(t),null)}if(da(t),128&t.flags)return t.lanes=n,t;if(n=null!==o,e=null!==e&&null!==e.memoizedState,n){i=null,null!==(o=t.child).alternate&&null!==o.alternate.memoizedState&&null!==o.alternate.memoizedState.cachePool&&(i=o.alternate.memoizedState.cachePool.pool);var s=null;null!==o.memoizedState&&null!==o.memoizedState.cachePool&&(s=o.memoizedState.cachePool.pool),s!==i&&(o.flags|=2048)}return n!==e&&n&&(t.child.flags|=8192),nl(t,t.updateQueue),ol(t),null;case 4:return K(),null===e&&Hc(t.stateNode.containerInfo),ol(t),null;case 10:return So(t.type),ol(t),null;case 19:if(H(pa),null===(i=t.memoizedState))return ol(t),null;if(o=!!(128&t.flags),null===(s=i.rendering))if(o)rl(i,!1);else{if(0!==hu||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(s=fa(e))){for(t.flags|=128,rl(i,!1),e=s.updateQueue,t.updateQueue=e,nl(t,e),t.subtreeFlags=0,e=n,n=t.child;null!==n;)Br(n,e),n=n.sibling;return V(pa,1&pa.current|2),t.child}e=e.sibling}null!==i.tail&&re()>Cu&&(t.flags|=128,o=!0,rl(i,!1),t.lanes=4194304)}else{if(!o)if(null!==(e=fa(s))){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,nl(t,e),rl(i,!0),null===i.tail&&"hidden"===i.tailMode&&!s.alternate&&!ao)return ol(t),null}else 2*re()-i.renderingStartTime>Cu&&536870912!==n&&(t.flags|=128,o=!0,rl(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(null!==(e=i.last)?e.sibling=s:t.child=s,i.last=s)}return null!==i.tail?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=re(),t.sibling=null,e=pa.current,V(pa,o?1&e|2:1&e),t):(ol(t),null);case 22:case 23:return da(t),ki(),o=null!==t.memoizedState,null!==e?null!==e.memoizedState!==o&&(t.flags|=8192):o&&(t.flags|=8192),o?!!(536870912&n)&&!(128&t.flags)&&(ol(t),6&t.subtreeFlags&&(t.flags|=8192)):ol(t),null!==(n=t.updateQueue)&&nl(t,n.retryQueue),n=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),o=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(o=t.memoizedState.cachePool.pool),o!==n&&(t.flags|=2048),null!==e&&H($o),null;case 24:return n=null,null!==e&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),So(zo),ol(t),null;case 25:case 30:return null}throw Error(r(156,t.tag))}function sl(e,t){switch(oo(t),t.tag){case 1:return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return So(zo),K(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 26:case 27:case 5:return Y(t),null;case 13:if(da(t),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(r(340));go()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return H(pa),null;case 4:return K(),null;case 10:return So(t.type),null;case 22:case 23:return da(t),ki(),null!==e&&H($o),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 24:return So(zo),null;default:return null}}function al(e,t){switch(oo(t),t.tag){case 3:So(zo),K();break;case 26:case 27:case 5:Y(t);break;case 4:K();break;case 13:da(t);break;case 19:H(pa);break;case 10:So(t.type);break;case 22:case 23:da(t),ki(),null!==e&&H($o);break;case 24:So(zo)}}function ll(e,t){try{var n=t.updateQueue,r=null!==n?n.lastEffect:null;if(null!==r){var o=r.next;n=o;do{if((n.tag&e)===e){r=void 0;var i=n.create,s=n.inst;r=i(),s.destroy=r}n=n.next}while(n!==o)}}catch(e){pc(t,t.return,e)}}function ul(e,t,n){try{var r=t.updateQueue,o=null!==r?r.lastEffect:null;if(null!==o){var i=o.next;r=i;do{if((r.tag&e)===e){var s=r.inst,a=s.destroy;if(void 0!==a){s.destroy=void 0,o=t;var l=n,u=a;try{u()}catch(e){pc(o,l,e)}}}r=r.next}while(r!==i)}}catch(e){pc(t,t.return,e)}}function cl(e){var t=e.updateQueue;if(null!==t){var n=e.stateNode;try{mi(t,n)}catch(t){pc(e,e.return,t)}}}function dl(e,t,n){n.props=ya(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){pc(e,t,n)}}function pl(e,t){try{var n=e.ref;if(null!==n){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;default:r=e.stateNode}"function"==typeof n?e.refCleanup=n(r):n.current=r}}catch(n){pc(e,t,n)}}function fl(e,t){var n=e.ref,r=e.refCleanup;if(null!==n)if("function"==typeof r)try{r()}catch(n){pc(e,t,n)}finally{e.refCleanup=null,null!=(e=e.alternate)&&(e.refCleanup=null)}else if("function"==typeof n)try{n(null)}catch(n){pc(e,t,n)}else n.current=null}function hl(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&r.focus();break e;case"img":n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){pc(e,e.return,t)}}function ml(e,t,n){try{var o=e.stateNode;!function(e,t,n,o){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,s=null,a=null,l=null,u=null,c=null,d=null;for(h in n){var p=n[h];if(n.hasOwnProperty(h)&&null!=p)switch(h){case"checked":case"value":break;case"defaultValue":u=p;default:o.hasOwnProperty(h)||ed(e,t,h,null,o,p)}}for(var f in o){var h=o[f];if(p=n[f],o.hasOwnProperty(f)&&(null!=h||null!=p))switch(f){case"type":s=h;break;case"name":i=h;break;case"checked":c=h;break;case"defaultChecked":d=h;break;case"value":a=h;break;case"defaultValue":l=h;break;case"children":case"dangerouslySetInnerHTML":if(null!=h)throw Error(r(137,t));break;default:h!==p&&ed(e,t,f,h,o,p)}}return void yt(e,a,l,u,c,d,s,i);case"select":for(s in h=a=l=f=null,n)if(u=n[s],n.hasOwnProperty(s)&&null!=u)switch(s){case"value":break;case"multiple":h=u;default:o.hasOwnProperty(s)||ed(e,t,s,null,o,u)}for(i in o)if(s=o[i],u=n[i],o.hasOwnProperty(i)&&(null!=s||null!=u))switch(i){case"value":f=s;break;case"defaultValue":l=s;break;case"multiple":a=s;default:s!==u&&ed(e,t,i,s,o,u)}return t=l,n=a,o=h,void(null!=f?xt(e,!!n,f,!1):!!o!=!!n&&(null!=t?xt(e,!!n,t,!0):xt(e,!!n,n?[]:"",!1)));case"textarea":for(l in h=f=null,n)if(i=n[l],n.hasOwnProperty(l)&&null!=i&&!o.hasOwnProperty(l))switch(l){case"value":case"children":break;default:ed(e,t,l,null,o,i)}for(a in o)if(i=o[a],s=n[a],o.hasOwnProperty(a)&&(null!=i||null!=s))switch(a){case"value":f=i;break;case"defaultValue":h=i;break;case"children":break;case"dangerouslySetInnerHTML":if(null!=i)throw Error(r(91));break;default:i!==s&&ed(e,t,a,i,o,s)}return void wt(e,f,h);case"option":for(var m in n)if(f=n[m],n.hasOwnProperty(m)&&null!=f&&!o.hasOwnProperty(m))if("selected"===m)e.selected=!1;else ed(e,t,m,null,o,f);for(u in o)if(f=o[u],h=n[u],o.hasOwnProperty(u)&&f!==h&&(null!=f||null!=h))if("selected"===u)e.selected=f&&"function"!=typeof f&&"symbol"!=typeof f;else ed(e,t,u,f,o,h);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)f=n[g],n.hasOwnProperty(g)&&null!=f&&!o.hasOwnProperty(g)&&ed(e,t,g,null,o,f);for(c in o)if(f=o[c],h=n[c],o.hasOwnProperty(c)&&f!==h&&(null!=f||null!=h))switch(c){case"children":case"dangerouslySetInnerHTML":if(null!=f)throw Error(r(137,t));break;default:ed(e,t,c,f,o,h)}return;default:if(Mt(t)){for(var v in n)f=n[v],n.hasOwnProperty(v)&&void 0!==f&&!o.hasOwnProperty(v)&&td(e,t,v,void 0,o,f);for(d in o)f=o[d],h=n[d],!o.hasOwnProperty(d)||f===h||void 0===f&&void 0===h||td(e,t,d,f,o,h);return}}for(var y in n)f=n[y],n.hasOwnProperty(y)&&null!=f&&!o.hasOwnProperty(y)&&ed(e,t,y,null,o,f);for(p in o)f=o[p],h=n[p],!o.hasOwnProperty(p)||f===h||null==f&&null==h||ed(e,t,p,f,o,h)}(o,e.type,n,t),o[ze]=t}catch(t){pc(e,e.return,t)}}function gl(e){return 5===e.tag||3===e.tag||26===e.tag||27===e.tag&&md(e.type)||4===e.tag}function vl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||gl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(27===e.tag&&md(e.type))continue e;if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function yl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?(9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).insertBefore(e,t):((t=9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Jc));else if(4!==r&&(27===r&&md(e.type)&&(n=e.stateNode,t=null),null!==(e=e.child)))for(yl(e,t,n),e=e.sibling;null!==e;)yl(e,t,n),e=e.sibling}function bl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&(27===r&&md(e.type)&&(n=e.stateNode),null!==(e=e.child)))for(bl(e,t,n),e=e.sibling;null!==e;)bl(e,t,n),e=e.sibling}function kl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);nd(t,r,n),t[Te]=e,t[ze]=n}catch(t){pc(e,e.return,t)}}var xl=!1,wl=!1,Sl=!1,Cl="function"==typeof WeakSet?WeakSet:Set,El=null;function Ll(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Fl(e,n),4&r&&ll(5,n);break;case 1:if(Fl(e,n),4&r)if(e=n.stateNode,null===t)try{e.componentDidMount()}catch(e){pc(n,n.return,e)}else{var o=ya(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){pc(n,n.return,e)}}64&r&&cl(n),512&r&&pl(n,n.return);break;case 3:if(Fl(e,n),64&r&&null!==(e=n.updateQueue)){if(t=null,null!==n.child)switch(n.child.tag){case 27:case 5:case 1:t=n.child.stateNode}try{mi(e,t)}catch(e){pc(n,n.return,e)}}break;case 27:null===t&&4&r&&kl(n);case 26:case 5:Fl(e,n),null===t&&4&r&&hl(n),512&r&&pl(n,n.return);break;case 12:Fl(e,n);break;case 13:Fl(e,n),4&r&&Dl(e,n),64&r&&(null!==(e=n.memoizedState)&&(null!==(e=e.dehydrated)&&function(e,t){var n=e.ownerDocument;if("$?"!==e.data||"complete"===n.readyState)t();else{var r=function(){t(),n.removeEventListener("DOMContentLoaded",r)};n.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}(e,n=gc.bind(null,n))));break;case 22:if(!(r=null!==n.memoizedState||xl)){t=null!==t&&null!==t.memoizedState||wl,o=xl;var i=wl;xl=r,(wl=t)&&!i?Bl(e,n,!!(8772&n.subtreeFlags)):Fl(e,n),xl=o,wl=i}break;case 30:break;default:Fl(e,n)}}function Pl(e){var t=e.alternate;null!==t&&(e.alternate=null,Pl(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&He(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,Ol=!1;function jl(e,t,n){for(n=n.child;null!==n;)Nl(e,t,n),n=n.sibling}function Nl(e,t,n){if(fe&&"function"==typeof fe.onCommitFiberUnmount)try{fe.onCommitFiberUnmount(pe,n)}catch(e){}switch(n.tag){case 26:wl||fl(n,t),jl(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode).parentNode.removeChild(n);break;case 27:wl||fl(n,t);var r=Ml,o=Ol;md(n.type)&&(Ml=n.stateNode,Ol=!1),jl(e,t,n),Sd(n.stateNode),Ml=r,Ol=o;break;case 5:wl||fl(n,t);case 6:if(r=Ml,o=Ol,Ml=null,jl(e,t,n),Ol=o,null!==(Ml=r))if(Ol)try{(9===Ml.nodeType?Ml.body:"HTML"===Ml.nodeName?Ml.ownerDocument.body:Ml).removeChild(n.stateNode)}catch(e){pc(n,t,e)}else try{Ml.removeChild(n.stateNode)}catch(e){pc(n,t,e)}break;case 18:null!==Ml&&(Ol?(gd(9===(e=Ml).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,n.stateNode),Op(e)):gd(Ml,n.stateNode));break;case 4:r=Ml,o=Ol,Ml=n.stateNode.containerInfo,Ol=!0,jl(e,t,n),Ml=r,Ol=o;break;case 0:case 11:case 14:case 15:wl||ul(2,n,t),wl||ul(4,n,t),jl(e,t,n);break;case 1:wl||(fl(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount&&dl(n,t,r)),jl(e,t,n);break;case 21:jl(e,t,n);break;case 22:wl=(r=wl)||null!==n.memoizedState,jl(e,t,n),wl=r;break;default:jl(e,t,n)}}function Dl(e,t){if(null===t.memoizedState&&(null!==(e=t.alternate)&&(null!==(e=e.memoizedState)&&null!==(e=e.dehydrated))))try{Op(e)}catch(e){pc(t,t.return,e)}}function Il(e,t){var n=function(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return null===t&&(t=e.stateNode=new Cl),t;case 22:return null===(t=(e=e.stateNode)._retryCache)&&(t=e._retryCache=new Cl),t;default:throw Error(r(435,e.tag))}}(e);t.forEach(function(t){var r=vc.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}function Tl(e,t){var n=t.deletions;if(null!==n)for(var o=0;o<n.length;o++){var i=n[o],s=e,a=t,l=a;e:for(;null!==l;){switch(l.tag){case 27:if(md(l.type)){Ml=l.stateNode,Ol=!1;break e}break;case 5:Ml=l.stateNode,Ol=!1;break e;case 3:case 4:Ml=l.stateNode.containerInfo,Ol=!0;break e}l=l.return}if(null===Ml)throw Error(r(160));Nl(s,a,i),Ml=null,Ol=!1,null!==(s=i.alternate)&&(s.return=null),i.return=null}if(13878&t.subtreeFlags)for(t=t.child;null!==t;)_l(t,e),t=t.sibling}var zl=null;function _l(e,t){var n=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Tl(t,e),Al(e),4&o&&(ul(3,e,e.return),ll(3,e),ul(5,e,e.return));break;case 1:Tl(t,e),Al(e),512&o&&(wl||null===n||fl(n,n.return)),64&o&&xl&&(null!==(e=e.updateQueue)&&(null!==(o=e.callbacks)&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=null===n?o:n.concat(o))));break;case 26:var i=zl;if(Tl(t,e),Al(e),512&o&&(wl||null===n||fl(n,n.return)),4&o){var s=null!==n?n.memoizedState:null;if(o=e.memoizedState,null===n)if(null===o)if(null===e.stateNode){e:{o=e.type,n=e.memoizedProps,i=i.ownerDocument||i;t:switch(o){case"title":(!(s=i.getElementsByTagName("title")[0])||s[Be]||s[Te]||"http://www.w3.org/2000/svg"===s.namespaceURI||s.hasAttribute("itemprop"))&&(s=i.createElement(o),i.head.insertBefore(s,i.querySelector("head > title"))),nd(s,o,n),s[Te]=e,Ze(s),o=s;break e;case"link":var a=Bd("link","href",i).get(o+(n.href||""));if(a)for(var l=0;l<a.length;l++)if((s=a[l]).getAttribute("href")===(null==n.href||""===n.href?null:n.href)&&s.getAttribute("rel")===(null==n.rel?null:n.rel)&&s.getAttribute("title")===(null==n.title?null:n.title)&&s.getAttribute("crossorigin")===(null==n.crossOrigin?null:n.crossOrigin)){a.splice(l,1);break t}nd(s=i.createElement(o),o,n),i.head.appendChild(s);break;case"meta":if(a=Bd("meta","content",i).get(o+(n.content||"")))for(l=0;l<a.length;l++)if((s=a[l]).getAttribute("content")===(null==n.content?null:""+n.content)&&s.getAttribute("name")===(null==n.name?null:n.name)&&s.getAttribute("property")===(null==n.property?null:n.property)&&s.getAttribute("http-equiv")===(null==n.httpEquiv?null:n.httpEquiv)&&s.getAttribute("charset")===(null==n.charSet?null:n.charSet)){a.splice(l,1);break t}nd(s=i.createElement(o),o,n),i.head.appendChild(s);break;default:throw Error(r(468,o))}s[Te]=e,Ze(s),o=s}e.stateNode=o}else Hd(i,e.type,e.stateNode);else e.stateNode=_d(i,o,e.memoizedProps);else s!==o?(null===s?null!==n.stateNode&&(n=n.stateNode).parentNode.removeChild(n):s.count--,null===o?Hd(i,e.type,e.stateNode):_d(i,o,e.memoizedProps)):null===o&&null!==e.stateNode&&ml(e,e.memoizedProps,n.memoizedProps)}break;case 27:Tl(t,e),Al(e),512&o&&(wl||null===n||fl(n,n.return)),null!==n&&4&o&&ml(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Tl(t,e),Al(e),512&o&&(wl||null===n||fl(n,n.return)),32&e.flags){i=e.stateNode;try{Ct(i,"")}catch(t){pc(e,e.return,t)}}4&o&&null!=e.stateNode&&ml(e,i=e.memoizedProps,null!==n?n.memoizedProps:i),1024&o&&(Sl=!0);break;case 6:if(Tl(t,e),Al(e),4&o){if(null===e.stateNode)throw Error(r(162));o=e.memoizedProps,n=e.stateNode;try{n.nodeValue=o}catch(t){pc(e,e.return,t)}}break;case 3:if(Ud=null,i=zl,zl=Ld(t.containerInfo),Tl(t,e),zl=i,Al(e),4&o&&null!==n&&n.memoizedState.isDehydrated)try{Op(t.containerInfo)}catch(t){pc(e,e.return,t)}Sl&&(Sl=!1,Rl(e));break;case 4:o=zl,zl=Ld(e.stateNode.containerInfo),Tl(t,e),Al(e),zl=o;break;case 12:default:Tl(t,e),Al(e);break;case 13:Tl(t,e),Al(e),8192&e.child.flags&&null!==e.memoizedState!=(null!==n&&null!==n.memoizedState)&&(Su=re()),4&o&&(null!==(o=e.updateQueue)&&(e.updateQueue=null,Il(e,o)));break;case 22:i=null!==e.memoizedState;var u=null!==n&&null!==n.memoizedState,c=xl,d=wl;if(xl=c||i,wl=d||u,Tl(t,e),wl=d,xl=c,Al(e),8192&o)e:for(t=e.stateNode,t._visibility=i?-2&t._visibility:1|t._visibility,i&&(null===n||u||xl||wl||Ul(e)),n=null,t=e;;){if(5===t.tag||26===t.tag){if(null===n){u=n=t;try{if(s=u.stateNode,i)"function"==typeof(a=s.style).setProperty?a.setProperty("display","none","important"):a.display="none";else{l=u.stateNode;var p=u.memoizedProps.style,f=null!=p&&p.hasOwnProperty("display")?p.display:null;l.style.display=null==f||"boolean"==typeof f?"":(""+f).trim()}}catch(e){pc(u,u.return,e)}}}else if(6===t.tag){if(null===n){u=t;try{u.stateNode.nodeValue=i?"":u.memoizedProps}catch(e){pc(u,u.return,e)}}}else if((22!==t.tag&&23!==t.tag||null===t.memoizedState||t===e)&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;null===t.sibling;){if(null===t.return||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}4&o&&(null!==(o=e.updateQueue)&&(null!==(n=o.retryQueue)&&(o.retryQueue=null,Il(e,n))));break;case 19:Tl(t,e),Al(e),4&o&&(null!==(o=e.updateQueue)&&(e.updateQueue=null,Il(e,o)));case 30:case 21:}}function Al(e){var t=e.flags;if(2&t){try{for(var n,o=e.return;null!==o;){if(gl(o)){n=o;break}o=o.return}if(null==n)throw Error(r(160));switch(n.tag){case 27:var i=n.stateNode;bl(e,vl(e),i);break;case 5:var s=n.stateNode;32&n.flags&&(Ct(s,""),n.flags&=-33),bl(e,vl(e),s);break;case 3:case 4:var a=n.stateNode.containerInfo;yl(e,vl(e),a);break;default:throw Error(r(161))}}catch(t){pc(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function Rl(e){if(1024&e.subtreeFlags)for(e=e.child;null!==e;){var t=e;Rl(t),5===t.tag&&1024&t.flags&&t.stateNode.reset(),e=e.sibling}}function Fl(e,t){if(8772&t.subtreeFlags)for(t=t.child;null!==t;)Ll(e,t.alternate,t),t=t.sibling}function Ul(e){for(e=e.child;null!==e;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:ul(4,t,t.return),Ul(t);break;case 1:fl(t,t.return);var n=t.stateNode;"function"==typeof n.componentWillUnmount&&dl(t,t.return,n),Ul(t);break;case 27:Sd(t.stateNode);case 26:case 5:fl(t,t.return),Ul(t);break;case 22:null===t.memoizedState&&Ul(t);break;default:Ul(t)}e=e.sibling}}function Bl(e,t,n){for(n=n&&!!(8772&t.subtreeFlags),t=t.child;null!==t;){var r=t.alternate,o=e,i=t,s=i.flags;switch(i.tag){case 0:case 11:case 15:Bl(o,i,n),ll(4,i);break;case 1:if(Bl(o,i,n),"function"==typeof(o=(r=i).stateNode).componentDidMount)try{o.componentDidMount()}catch(e){pc(r,r.return,e)}if(null!==(o=(r=i).updateQueue)){var a=r.stateNode;try{var l=o.shared.hiddenCallbacks;if(null!==l)for(o.shared.hiddenCallbacks=null,o=0;o<l.length;o++)hi(l[o],a)}catch(e){pc(r,r.return,e)}}n&&64&s&&cl(i),pl(i,i.return);break;case 27:kl(i);case 26:case 5:Bl(o,i,n),n&&null===r&&4&s&&hl(i),pl(i,i.return);break;case 12:Bl(o,i,n);break;case 13:Bl(o,i,n),n&&4&s&&Dl(o,i);break;case 22:null===i.memoizedState&&Bl(o,i,n),pl(i,i.return);break;case 30:break;default:Bl(o,i,n)}t=t.sibling}}function Hl(e,t){var n=null;null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),e=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(e=t.memoizedState.cachePool.pool),e!==n&&(null!=e&&e.refCount++,null!=n&&Ao(n))}function Vl(e,t){e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Ao(e))}function $l(e,t,n,r){if(10256&t.subtreeFlags)for(t=t.child;null!==t;)Wl(e,t,n,r),t=t.sibling}function Wl(e,t,n,r){var o=t.flags;switch(t.tag){case 0:case 11:case 15:$l(e,t,n,r),2048&o&&ll(9,t);break;case 1:case 13:default:$l(e,t,n,r);break;case 3:$l(e,t,n,r),2048&o&&(e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Ao(e)));break;case 12:if(2048&o){$l(e,t,n,r),e=t.stateNode;try{var i=t.memoizedProps,s=i.id,a=i.onPostCommit;"function"==typeof a&&a(s,null===t.alternate?"mount":"update",e.passiveEffectDuration,-0)}catch(e){pc(t,t.return,e)}}else $l(e,t,n,r);break;case 23:break;case 22:i=t.stateNode,s=t.alternate,null!==t.memoizedState?2&i._visibility?$l(e,t,n,r):Zl(e,t):2&i._visibility?$l(e,t,n,r):(i._visibility|=2,ql(e,t,n,r,!!(10256&t.subtreeFlags))),2048&o&&Hl(s,t);break;case 24:$l(e,t,n,r),2048&o&&Vl(t.alternate,t)}}function ql(e,t,n,r,o){for(o=o&&!!(10256&t.subtreeFlags),t=t.child;null!==t;){var i=e,s=t,a=n,l=r,u=s.flags;switch(s.tag){case 0:case 11:case 15:ql(i,s,a,l,o),ll(8,s);break;case 23:break;case 22:var c=s.stateNode;null!==s.memoizedState?2&c._visibility?ql(i,s,a,l,o):Zl(i,s):(c._visibility|=2,ql(i,s,a,l,o)),o&&2048&u&&Hl(s.alternate,s);break;case 24:ql(i,s,a,l,o),o&&2048&u&&Vl(s.alternate,s);break;default:ql(i,s,a,l,o)}t=t.sibling}}function Zl(e,t){if(10256&t.subtreeFlags)for(t=t.child;null!==t;){var n=e,r=t,o=r.flags;switch(r.tag){case 22:Zl(n,r),2048&o&&Hl(r.alternate,r);break;case 24:Zl(n,r),2048&o&&Vl(r.alternate,r);break;default:Zl(n,r)}t=t.sibling}}var Ql=8192;function Kl(e){if(e.subtreeFlags&Ql)for(e=e.child;null!==e;)Gl(e),e=e.sibling}function Gl(e){switch(e.tag){case 26:Kl(e),e.flags&Ql&&null!==e.memoizedState&&function(e,t,n){if(null===$d)throw Error(r(475));var o=$d;if(!("stylesheet"!==t.type||"string"==typeof n.media&&!1===matchMedia(n.media).matches||4&t.state.loading)){if(null===t.instance){var i=Nd(n.href),s=e.querySelector(Dd(i));if(s)return null!==(e=s._p)&&"object"==typeof e&&"function"==typeof e.then&&(o.count++,o=qd.bind(o),e.then(o,o)),t.state.loading|=4,t.instance=s,void Ze(s);s=e.ownerDocument||e,n=Id(n),(i=Cd.get(i))&&Rd(n,i),Ze(s=s.createElement("link"));var a=s;a._p=new Promise(function(e,t){a.onload=e,a.onerror=t}),nd(s,"link",n),t.instance=s}null===o.stylesheets&&(o.stylesheets=new Map),o.stylesheets.set(t,e),(e=t.state.preload)&&!(3&t.state.loading)&&(o.count++,t=qd.bind(o),e.addEventListener("load",t),e.addEventListener("error",t))}}(zl,e.memoizedState,e.memoizedProps);break;case 5:default:Kl(e);break;case 3:case 4:var t=zl;zl=Ld(e.stateNode.containerInfo),Kl(e),zl=t;break;case 22:null===e.memoizedState&&(null!==(t=e.alternate)&&null!==t.memoizedState?(t=Ql,Ql=16777216,Kl(e),Ql=t):Kl(e))}}function Yl(e){var t=e.alternate;if(null!==t&&null!==(e=t.child)){t.child=null;do{t=e.sibling,e.sibling=null,e=t}while(null!==e)}}function Xl(e){var t=e.deletions;if(16&e.flags){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];El=r,tu(r,e)}Yl(e)}if(10256&e.subtreeFlags)for(e=e.child;null!==e;)Jl(e),e=e.sibling}function Jl(e){switch(e.tag){case 0:case 11:case 15:Xl(e),2048&e.flags&&ul(9,e,e.return);break;case 3:case 12:default:Xl(e);break;case 22:var t=e.stateNode;null!==e.memoizedState&&2&t._visibility&&(null===e.return||13!==e.return.tag)?(t._visibility&=-3,eu(e)):Xl(e)}}function eu(e){var t=e.deletions;if(16&e.flags){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];El=r,tu(r,e)}Yl(e)}for(e=e.child;null!==e;){switch((t=e).tag){case 0:case 11:case 15:ul(8,t,t.return),eu(t);break;case 22:2&(n=t.stateNode)._visibility&&(n._visibility&=-3,eu(t));break;default:eu(t)}e=e.sibling}}function tu(e,t){for(;null!==El;){var n=El;switch(n.tag){case 0:case 11:case 15:ul(8,n,t);break;case 23:case 22:if(null!==n.memoizedState&&null!==n.memoizedState.cachePool){var r=n.memoizedState.cachePool.pool;null!=r&&r.refCount++}break;case 24:Ao(n.memoizedState.cache)}if(null!==(r=n.child))r.return=n,El=r;else e:for(n=e;null!==El;){var o=(r=El).sibling,i=r.return;if(Pl(r),r===n){El=null;break e}if(null!==o){o.return=i,El=o;break e}El=i}}}var nu={getCacheForType:function(e){var t=Oo(zo),n=t.data.get(e);return void 0===n&&(n=e(),t.data.set(e,n)),n}},ru="function"==typeof WeakMap?WeakMap:Map,ou=0,iu=null,su=null,au=0,lu=0,uu=null,cu=!1,du=!1,pu=!1,fu=0,hu=0,mu=0,gu=0,vu=0,yu=0,bu=0,ku=null,xu=null,wu=!1,Su=0,Cu=1/0,Eu=null,Lu=null,Pu=0,Mu=null,Ou=null,ju=0,Nu=0,Du=null,Iu=null,Tu=0,zu=null;function _u(){if(2&ou&&0!==au)return au&-au;if(null!==_.T){return 0!==Uo?Uo:Nc()}return De()}function Au(){0===yu&&(yu=536870912&au&&!ao?536870912:Ce());var e=sa.current;return null!==e&&(e.flags|=32),yu}function Ru(e,t,n){(e!==iu||2!==lu&&9!==lu)&&null===e.cancelPendingCommit||(Wu(e,0),Hu(e,au,yu,!1)),Pe(e,n),2&ou&&e===iu||(e===iu&&(!(2&ou)&&(gu|=n),4===hu&&Hu(e,au,yu,!1)),Cc(e))}function Fu(e,t,n){if(6&ou)throw Error(r(327));for(var o=!n&&!(124&t)&&0===(t&e.expiredLanes)||we(e,t),i=o?function(e,t){var n=ou;ou|=2;var o=Zu(),i=Qu();iu!==e||au!==t?(Eu=null,Cu=re()+500,Wu(e,t)):du=we(e,t);e:for(;;)try{if(0!==lu&&null!==su){t=su;var s=uu;t:switch(lu){case 1:lu=0,uu=null,tc(e,t,s,1);break;case 2:case 9:if(Xo(s)){lu=0,uu=null,ec(t);break}t=function(){2!==lu&&9!==lu||iu!==e||(lu=7),Cc(e)},s.then(t,t);break e;case 3:lu=7;break e;case 4:lu=5;break e;case 7:Xo(s)?(lu=0,uu=null,ec(t)):(lu=0,uu=null,tc(e,t,s,7));break;case 5:var a=null;switch(su.tag){case 26:a=su.memoizedState;case 5:case 27:var l=su;if(!a||Vd(a)){lu=0,uu=null;var u=l.sibling;if(null!==u)su=u;else{var c=l.return;null!==c?(su=c,nc(c)):su=null}break t}}lu=0,uu=null,tc(e,t,s,5);break;case 6:lu=0,uu=null,tc(e,t,s,6);break;case 8:$u(),hu=6;break e;default:throw Error(r(462))}}Xu();break}catch(t){qu(e,t)}return xo=ko=null,_.H=o,_.A=i,ou=n,null!==su?0:(iu=null,au=0,jr(),hu)}(e,t):Gu(e,t,!0),s=o;;){if(0===i){du&&!o&&Hu(e,t,0,!1);break}if(n=e.current.alternate,!s||Bu(n)){if(2===i){if(s=t,e.errorRecoveryDisabledLanes&s)var a=0;else a=0!==(a=-536870913&e.pendingLanes)?a:536870912&a?536870912:0;if(0!==a){t=a;e:{var l=e;i=ku;var u=l.current.memoizedState.isDehydrated;if(u&&(Wu(l,a).flags|=256),2!==(a=Gu(l,a,!1))){if(pu&&!u){l.errorRecoveryDisabledLanes|=s,gu|=s,i=4;break e}s=xu,xu=i,null!==s&&(null===xu?xu=s:xu.push.apply(xu,s))}i=a}if(s=!1,2!==i)continue}}if(1===i){Wu(e,0),Hu(e,t,0,!0);break}e:{switch(o=e,s=i){case 0:case 1:throw Error(r(345));case 4:if((4194048&t)!==t)break;case 6:Hu(o,t,yu,!cu);break e;case 2:xu=null;break;case 3:case 5:break;default:throw Error(r(329))}if((62914560&t)===t&&10<(i=Su+300-re())){if(Hu(o,t,yu,!cu),0!==xe(o,0,!0))break e;o.timeoutHandle=cd(Uu.bind(null,o,n,xu,Eu,wu,t,yu,gu,bu,cu,s,2,-0,0),i)}else Uu(o,n,xu,Eu,wu,t,yu,gu,bu,cu,s,0,-0,0)}break}i=Gu(e,t,!1),s=!1}Cc(e)}function Uu(e,t,n,o,i,s,a,l,u,c,d,p,f,h){if(e.timeoutHandle=-1,(8192&(p=t.subtreeFlags)||!(16785408&~p))&&($d={stylesheets:null,count:0,unsuspend:Wd},Gl(t),null!==(p=function(){if(null===$d)throw Error(r(475));var e=$d;return e.stylesheets&&0===e.count&&Qd(e,e.stylesheets),0<e.count?function(t){var n=setTimeout(function(){if(e.stylesheets&&Qd(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(n)}}:null}())))return e.cancelPendingCommit=p(oc.bind(null,e,t,s,n,o,i,a,l,u,d,1,f,h)),void Hu(e,s,a,!c);oc(e,t,s,n,o,i,a,l,u)}function Bu(e){for(var t=e;;){var n=t.tag;if((0===n||11===n||15===n)&&16384&t.flags&&(null!==(n=t.updateQueue)&&null!==(n=n.stores)))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!Yn(i(),o))return!1}catch(e){return!1}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Hu(e,t,n,r){t&=~vu,t&=~gu,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var o=t;0<o;){var i=31-me(o),s=1<<i;r[i]=-1,o&=~s}0!==n&&Me(e,n,t)}function Vu(){return!!(6&ou)||(Ec(0),!1)}function $u(){if(null!==su){if(0===lu)var e=su.return;else xo=ko=null,Ui(e=su),Ys=null,Xs=0,e=su;for(;null!==e;)al(e.alternate,e),e=e.return;su=null}}function Wu(e,t){var n=e.timeoutHandle;-1!==n&&(e.timeoutHandle=-1,dd(n)),null!==(n=e.cancelPendingCommit)&&(e.cancelPendingCommit=null,n()),$u(),iu=e,su=n=Ur(e.current,null),au=t,lu=0,uu=null,cu=!1,du=we(e,t),pu=!1,bu=yu=vu=gu=mu=hu=0,xu=ku=null,wu=!1,8&t&&(t|=32&t);var r=e.entangledLanes;if(0!==r)for(e=e.entanglements,r&=t;0<r;){var o=31-me(r),i=1<<o;t|=e[o],r&=~i}return fu=t,jr(),n}function qu(e,t){wi=null,_.H=Zs,t===Qo||t===Go?(t=ni(),lu=3):t===Ko?(t=ni(),lu=4):lu=t===Ma?8:null!==t&&"object"==typeof t&&"function"==typeof t.then?6:1,uu=t,null===su&&(hu=1,Sa(e,Lr(t,e.current)))}function Zu(){var e=_.H;return _.H=Zs,null===e?Zs:e}function Qu(){var e=_.A;return _.A=nu,e}function Ku(){hu=4,cu||(4194048&au)!==au&&null!==sa.current||(du=!0),!(134217727&mu)&&!(134217727&gu)||null===iu||Hu(iu,au,yu,!1)}function Gu(e,t,n){var r=ou;ou|=2;var o=Zu(),i=Qu();iu===e&&au===t||(Eu=null,Wu(e,t)),t=!1;var s=hu;e:for(;;)try{if(0!==lu&&null!==su){var a=su,l=uu;switch(lu){case 8:$u(),s=6;break e;case 3:case 2:case 9:case 6:null===sa.current&&(t=!0);var u=lu;if(lu=0,uu=null,tc(e,a,l,u),n&&du){s=0;break e}break;default:u=lu,lu=0,uu=null,tc(e,a,l,u)}}Yu(),s=hu;break}catch(t){qu(e,t)}return t&&e.shellSuspendCounter++,xo=ko=null,ou=r,_.H=o,_.A=i,null===su&&(iu=null,au=0,jr()),s}function Yu(){for(;null!==su;)Ju(su)}function Xu(){for(;null!==su&&!te();)Ju(su)}function Ju(e){var t=Ja(e.alternate,e,fu);e.memoizedProps=e.pendingProps,null===t?nc(e):su=t}function ec(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Ra(n,t,t.pendingProps,t.type,void 0,au);break;case 11:t=Ra(n,t,t.pendingProps,t.type.render,t.ref,au);break;case 5:Ui(t);default:al(n,t),t=Ja(n,t=su=Br(t,fu),fu)}e.memoizedProps=e.pendingProps,null===t?nc(e):su=t}function tc(e,t,n,o){xo=ko=null,Ui(t),Ys=null,Xs=0;var i=t.return;try{if(function(e,t,n,o,i){if(n.flags|=32768,null!==o&&"object"==typeof o&&"function"==typeof o.then){if(null!==(t=n.alternate)&&Lo(t,n,i,!0),null!==(n=sa.current)){switch(n.tag){case 13:return null===aa?Ku():null===n.alternate&&0===hu&&(hu=3),n.flags&=-257,n.flags|=65536,n.lanes=i,o===Yo?n.flags|=16384:(null===(t=n.updateQueue)?n.updateQueue=new Set([o]):t.add(o),fc(e,o,i)),!1;case 22:return n.flags|=65536,o===Yo?n.flags|=16384:(null===(t=n.updateQueue)?(t={transitions:null,markerInstances:null,retryQueue:new Set([o])},n.updateQueue=t):null===(n=t.retryQueue)?t.retryQueue=new Set([o]):n.add(o),fc(e,o,i)),!1}throw Error(r(435,n.tag))}return fc(e,o,i),Ku(),!1}if(ao)return null!==(t=sa.current)?(!(65536&t.flags)&&(t.flags|=256),t.flags|=65536,t.lanes=i,o!==co&&yo(Lr(e=Error(r(422),{cause:o}),n))):(o!==co&&yo(Lr(t=Error(r(423),{cause:o}),n)),(e=e.current.alternate).flags|=65536,i&=-i,e.lanes|=i,o=Lr(o,n),ci(e,i=Ea(e.stateNode,o,i)),4!==hu&&(hu=2)),!1;var s=Error(r(520),{cause:o});if(s=Lr(s,n),null===ku?ku=[s]:ku.push(s),4!==hu&&(hu=2),null===t)return!0;o=Lr(o,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,ci(n,e=Ea(n.stateNode,o,e)),!1;case 1:if(t=n.type,s=n.stateNode,!(128&n.flags||"function"!=typeof t.getDerivedStateFromError&&(null===s||"function"!=typeof s.componentDidCatch||null!==Lu&&Lu.has(s))))return n.flags|=65536,i&=-i,n.lanes|=i,Pa(i=La(i),e,n,o),ci(n,i),!1}n=n.return}while(null!==n);return!1}(e,i,t,n,au))return hu=1,Sa(e,Lr(n,e.current)),void(su=null)}catch(t){if(null!==i)throw su=i,t;return hu=1,Sa(e,Lr(n,e.current)),void(su=null)}32768&t.flags?(ao||1===o?e=!0:du||536870912&au?e=!1:(cu=e=!0,(2===o||9===o||3===o||6===o)&&(null!==(o=sa.current)&&13===o.tag&&(o.flags|=16384))),rc(t,e)):nc(t)}function nc(e){var t=e;do{if(32768&t.flags)return void rc(t,cu);e=t.return;var n=il(t.alternate,t,fu);if(null!==n)return void(su=n);if(null!==(t=t.sibling))return void(su=t);su=t=e}while(null!==t);0===hu&&(hu=5)}function rc(e,t){do{var n=sl(e.alternate,e);if(null!==n)return n.flags&=32767,void(su=n);if(null!==(n=e.return)&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&null!==(e=e.sibling))return void(su=e);su=e=n}while(null!==e);hu=6,su=null}function oc(e,t,n,o,i,s,a,l,u){e.cancelPendingCommit=null;do{uc()}while(0!==Pu);if(6&ou)throw Error(r(327));if(null!==t){if(t===e.current)throw Error(r(177));if(s=t.lanes|t.childLanes,function(e,t,n,r,o,i){var s=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 a=e.entanglements,l=e.expirationTimes,u=e.hiddenUpdates;for(n=s&~n;0<n;){var c=31-me(n),d=1<<c;a[c]=0,l[c]=-1;var p=u[c];if(null!==p)for(u[c]=null,c=0;c<p.length;c++){var f=p[c];null!==f&&(f.lane&=-536870913)}n&=~d}0!==r&&Me(e,r,0),0!==i&&0===o&&0!==e.tag&&(e.suspendedLanes|=i&~(s&~t))}(e,n,s|=Or,a,l,u),e===iu&&(su=iu=null,au=0),Ou=t,Mu=e,ju=n,Nu=s,Du=i,Iu=o,10256&t.subtreeFlags||10256&t.flags?(e.callbackNode=null,e.callbackPriority=0,J(ae,function(){return cc(),null})):(e.callbackNode=null,e.callbackPriority=0),o=!!(13878&t.flags),13878&t.subtreeFlags||o){o=_.T,_.T=null,i=A.p,A.p=2,a=ou,ou|=4;try{!function(e,t){if(e=e.containerInfo,rd=op,rr(e=nr(e))){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var o=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(o&&0!==o.rangeCount){n=o.anchorNode;var i=o.anchorOffset,s=o.focusNode;o=o.focusOffset;try{n.nodeType,s.nodeType}catch(e){n=null;break e}var a=0,l=-1,u=-1,c=0,d=0,p=e,f=null;t:for(;;){for(var h;p!==n||0!==i&&3!==p.nodeType||(l=a+i),p!==s||0!==o&&3!==p.nodeType||(u=a+o),3===p.nodeType&&(a+=p.nodeValue.length),null!==(h=p.firstChild);)f=p,p=h;for(;;){if(p===e)break t;if(f===n&&++c===i&&(l=a),f===s&&++d===o&&(u=a),null!==(h=p.nextSibling))break;f=(p=f).parentNode}p=h}n=-1===l||-1===u?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(od={focusedElem:e,selectionRange:n},op=!1,El=t;null!==El;)if(e=(t=El).child,1024&t.subtreeFlags&&null!==e)e.return=t,El=e;else for(;null!==El;){switch(s=(t=El).alternate,e=t.flags,t.tag){case 0:case 11:case 15:case 5:case 26:case 27:case 6:case 4:case 17:break;case 1:if(1024&e&&null!==s){e=void 0,n=t,i=s.memoizedProps,s=s.memoizedState,o=n.stateNode;try{var m=ya(n.type,i,(n.elementType,n.type));e=o.getSnapshotBeforeUpdate(m,s),o.__reactInternalSnapshotBeforeUpdate=e}catch(e){pc(n,n.return,e)}}break;case 3:if(1024&e)if(9===(n=(e=t.stateNode.containerInfo).nodeType))vd(e);else if(1===n)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":vd(e);break;default:e.textContent=""}break;default:if(1024&e)throw Error(r(163))}if(null!==(e=t.sibling)){e.return=t.return,El=e;break}El=t.return}}(e,t)}finally{ou=a,A.p=i,_.T=o}}Pu=1,ic(),sc(),ac()}}function ic(){if(1===Pu){Pu=0;var e=Mu,t=Ou,n=!!(13878&t.flags);if(13878&t.subtreeFlags||n){n=_.T,_.T=null;var r=A.p;A.p=2;var o=ou;ou|=4;try{_l(t,e);var i=od,s=nr(e.containerInfo),a=i.focusedElem,l=i.selectionRange;if(s!==a&&a&&a.ownerDocument&&tr(a.ownerDocument.documentElement,a)){if(null!==l&&rr(a)){var u=l.start,c=l.end;if(void 0===c&&(c=u),"selectionStart"in a)a.selectionStart=u,a.selectionEnd=Math.min(c,a.value.length);else{var d=a.ownerDocument||document,p=d&&d.defaultView||window;if(p.getSelection){var f=p.getSelection(),h=a.textContent.length,m=Math.min(l.start,h),g=void 0===l.end?m:Math.min(l.end,h);!f.extend&&m>g&&(s=g,g=m,m=s);var v=er(a,m),y=er(a,g);if(v&&y&&(1!==f.rangeCount||f.anchorNode!==v.node||f.anchorOffset!==v.offset||f.focusNode!==y.node||f.focusOffset!==y.offset)){var b=d.createRange();b.setStart(v.node,v.offset),f.removeAllRanges(),m>g?(f.addRange(b),f.extend(y.node,y.offset)):(b.setEnd(y.node,y.offset),f.addRange(b))}}}}for(d=[],f=a;f=f.parentNode;)1===f.nodeType&&d.push({element:f,left:f.scrollLeft,top:f.scrollTop});for("function"==typeof a.focus&&a.focus(),a=0;a<d.length;a++){var k=d[a];k.element.scrollLeft=k.left,k.element.scrollTop=k.top}}op=!!rd,od=rd=null}finally{ou=o,A.p=r,_.T=n}}e.current=t,Pu=2}}function sc(){if(2===Pu){Pu=0;var e=Mu,t=Ou,n=!!(8772&t.flags);if(8772&t.subtreeFlags||n){n=_.T,_.T=null;var r=A.p;A.p=2;var o=ou;ou|=4;try{Ll(e,t.alternate,t)}finally{ou=o,A.p=r,_.T=n}}Pu=3}}function ac(){if(4===Pu||3===Pu){Pu=0,ne();var e=Mu,t=Ou,n=ju,r=Iu;10256&t.subtreeFlags||10256&t.flags?Pu=5:(Pu=0,Ou=Mu=null,lc(e,e.pendingLanes));var o=e.pendingLanes;if(0===o&&(Lu=null),Ne(n),t=t.stateNode,fe&&"function"==typeof fe.onCommitFiberRoot)try{fe.onCommitFiberRoot(pe,t,void 0,!(128&~t.current.flags))}catch(e){}if(null!==r){t=_.T,o=A.p,A.p=2,_.T=null;try{for(var i=e.onRecoverableError,s=0;s<r.length;s++){var a=r[s];i(a.value,{componentStack:a.stack})}}finally{_.T=t,A.p=o}}3&ju&&uc(),Cc(e),o=e.pendingLanes,4194090&n&&42&o?e===zu?Tu++:(Tu=0,zu=e):Tu=0,Ec(0)}}function lc(e,t){0===(e.pooledCacheLanes&=t)&&(null!=(t=e.pooledCache)&&(e.pooledCache=null,Ao(t)))}function uc(e){return ic(),sc(),ac(),cc()}function cc(){if(5!==Pu)return!1;var e=Mu,t=Nu;Nu=0;var n=Ne(ju),o=_.T,i=A.p;try{A.p=32>n?32:n,_.T=null,n=Du,Du=null;var s=Mu,a=ju;if(Pu=0,Ou=Mu=null,ju=0,6&ou)throw Error(r(331));var l=ou;if(ou|=4,Jl(s.current),Wl(s,s.current,a,n),ou=l,Ec(0,!1),fe&&"function"==typeof fe.onPostCommitFiberRoot)try{fe.onPostCommitFiberRoot(pe,s)}catch(e){}return!0}finally{A.p=i,_.T=o,lc(e,t)}}function dc(e,t,n){t=Lr(n,t),null!==(e=li(e,t=Ea(e.stateNode,t,2),2))&&(Pe(e,2),Cc(e))}function pc(e,t,n){if(3===e.tag)dc(e,e,n);else for(;null!==t;){if(3===t.tag){dc(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Lu||!Lu.has(r))){e=Lr(n,e),null!==(r=li(t,n=La(2),2))&&(Pa(n,r,t,e),Pe(r,2),Cc(r));break}}t=t.return}}function fc(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new ru;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(pu=!0,o.add(n),e=hc.bind(null,e,t,n),t.then(e,e))}function hc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,iu===e&&(au&n)===n&&(4===hu||3===hu&&(62914560&au)===au&&300>re()-Su?!(2&ou)&&Wu(e,0):vu|=n,bu===au&&(bu=0)),Cc(e)}function mc(e,t){0===t&&(t=Ee()),null!==(e=Ir(e,t))&&(Pe(e,t),Cc(e))}function gc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),mc(e,n)}function vc(e,t){var n=0;switch(e.tag){case 13:var o=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:o=e.stateNode;break;case 22:o=e.stateNode._retryCache;break;default:throw Error(r(314))}null!==o&&o.delete(t),mc(e,n)}var yc=null,bc=null,kc=!1,xc=!1,wc=!1,Sc=0;function Cc(e){e!==bc&&null===e.next&&(null===bc?yc=bc=e:bc=bc.next=e),xc=!0,kc||(kc=!0,fd(function(){6&ou?J(ie,Lc):Pc()}))}function Ec(e,t){if(!wc&&xc){wc=!0;do{for(var n=!1,r=yc;null!==r;){if(0!==e){var o=r.pendingLanes;if(0===o)var i=0;else{var s=r.suspendedLanes,a=r.pingedLanes;i=(1<<31-me(42|e)+1)-1,i=201326741&(i&=o&~(s&~a))?201326741&i|1:i?2|i:0}0!==i&&(n=!0,jc(r,i))}else i=au,!(3&(i=xe(r,r===iu?i:0,null!==r.cancelPendingCommit||-1!==r.timeoutHandle)))||we(r,i)||(n=!0,jc(r,i));r=r.next}}while(n);wc=!1}}function Lc(){Pc()}function Pc(){xc=kc=!1;var e=0;0!==Sc&&(function(){var e=window.event;if(e&&"popstate"===e.type)return e!==ud&&(ud=e,!0);return ud=null,!1}()&&(e=Sc),Sc=0);for(var t=re(),n=null,r=yc;null!==r;){var o=r.next,i=Mc(r,t);0===i?(r.next=null,null===n?yc=o:n.next=o,null===o&&(bc=n)):(n=r,(0!==e||3&i)&&(xc=!0)),r=o}Ec(e)}function Mc(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=-62914561&e.pendingLanes;0<i;){var s=31-me(i),a=1<<s,l=o[s];-1===l?0!==(a&n)&&0===(a&r)||(o[s]=Se(a,t)):l<=t&&(e.expiredLanes|=a),i&=~a}if(n=au,n=xe(e,e===(t=iu)?n:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle),r=e.callbackNode,0===n||e===t&&(2===lu||9===lu)||null!==e.cancelPendingCommit)return null!==r&&null!==r&&ee(r),e.callbackNode=null,e.callbackPriority=0;if(!(3&n)||we(e,n)){if((t=n&-n)===e.callbackPriority)return t;switch(null!==r&&ee(r),Ne(n)){case 2:case 8:n=se;break;case 32:default:n=ae;break;case 268435456:n=ue}return r=Oc.bind(null,e),n=J(n,r),e.callbackPriority=t,e.callbackNode=n,t}return null!==r&&null!==r&&ee(r),e.callbackPriority=2,e.callbackNode=null,2}function Oc(e,t){if(0!==Pu&&5!==Pu)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(uc()&&e.callbackNode!==n)return null;var r=au;return 0===(r=xe(e,e===iu?r:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle))?null:(Fu(e,r,t),Mc(e,re()),null!=e.callbackNode&&e.callbackNode===n?Oc.bind(null,e):null)}function jc(e,t){if(uc())return null;Fu(e,t,!0)}function Nc(){return 0===Sc&&(Sc=Ce()),Sc}function Dc(e){return null==e||"symbol"==typeof e||"boolean"==typeof e?null:"function"==typeof e?e:Nt(""+e)}function Ic(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}for(var Tc=0;Tc<Sr.length;Tc++){var zc=Sr[Tc];Cr(zc.toLowerCase(),"on"+(zc[0].toUpperCase()+zc.slice(1)))}Cr(mr,"onAnimationEnd"),Cr(gr,"onAnimationIteration"),Cr(vr,"onAnimationStart"),Cr("dblclick","onDoubleClick"),Cr("focusin","onFocus"),Cr("focusout","onBlur"),Cr(yr,"onTransitionRun"),Cr(br,"onTransitionStart"),Cr(kr,"onTransitionCancel"),Cr(xr,"onTransitionEnd"),Ye("onMouseEnter",["mouseout","mouseover"]),Ye("onMouseLeave",["mouseout","mouseover"]),Ye("onPointerEnter",["pointerout","pointerover"]),Ye("onPointerLeave",["pointerout","pointerover"]),Ge("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ge("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ge("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ge("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ge("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ge("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var _c="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(" "),Ac=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(_c));function Rc(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var s=r.length-1;0<=s;s--){var a=r[s],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==i&&o.isPropagationStopped())break e;i=a,o.currentTarget=u;try{i(o)}catch(e){ba(e)}o.currentTarget=null,i=l}else for(s=0;s<r.length;s++){if(l=(a=r[s]).instance,u=a.currentTarget,a=a.listener,l!==i&&o.isPropagationStopped())break e;i=a,o.currentTarget=u;try{i(o)}catch(e){ba(e)}o.currentTarget=null,i=l}}}}function Fc(e,t){var n=t[Ae];void 0===n&&(n=t[Ae]=new Set);var r=e+"__bubble";n.has(r)||(Vc(t,e,2,!1),n.add(r))}function Uc(e,t,n){var r=0;t&&(r|=4),Vc(n,e,r,t)}var Bc="_reactListening"+Math.random().toString(36).slice(2);function Hc(e){if(!e[Bc]){e[Bc]=!0,Qe.forEach(function(t){"selectionchange"!==t&&(Ac.has(t)||Uc(t,!1,e),Uc(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Bc]||(t[Bc]=!0,Uc("selectionchange",!1,t))}}function Vc(e,t,n,r){switch(dp(t)){case 2:var o=ip;break;case 8:o=sp;break;default:o=ap}n=o.bind(null,t,n,e),o=void 0,!Bt||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function $c(e,t,n,r,o){var s=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var l=r.stateNode.containerInfo;if(l===o)break;if(4===a)for(a=r.return;null!==a;){var u=a.tag;if((3===u||4===u)&&a.stateNode.containerInfo===o)return;a=a.return}for(;null!==l;){if(null===(a=Ve(l)))return;if(5===(u=a.tag)||6===u||26===u||27===u){r=s=a;continue e}l=l.parentNode}}r=r.return}Rt(function(){var r=s,o=It(n),a=[];e:{var l=wr.get(e);if(void 0!==l){var u=tn,c=e;switch(e){case"keypress":if(0===Zt(n))break e;case"keydown":case"keyup":u=vn;break;case"focusin":c="focus",u=ln;break;case"focusout":c="blur",u=ln;break;case"beforeblur":case"afterblur":u=ln;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":u=sn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=an;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=bn;break;case mr:case gr:case vr:u=un;break;case xr:u=kn;break;case"scroll":case"scrollend":u=rn;break;case"wheel":u=xn;break;case"copy":case"cut":case"paste":u=cn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=yn;break;case"toggle":case"beforetoggle":u=wn}var d=!!(4&t),p=!d&&("scroll"===e||"scrollend"===e),f=d?null!==l?l+"Capture":null:l;d=[];for(var h,m=r;null!==m;){var g=m;if(h=g.stateNode,5!==(g=g.tag)&&26!==g&&27!==g||null===h||null===f||null!=(g=Ft(m,f))&&d.push(Wc(m,g,h)),p)break;m=m.return}0<d.length&&(l=new u(l,c,null,n,o),a.push({event:l,listeners:d}))}}if(!(7&t)){if(u="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===Dt||!(c=n.relatedTarget||n.fromElement)||!Ve(c)&&!c[_e])&&(u||l)&&(l=o.window===o?o:(l=o.ownerDocument)?l.defaultView||l.parentWindow:window,u?(u=r,null!==(c=(c=n.relatedTarget||n.toElement)?Ve(c):null)&&(p=i(c),d=c.tag,c!==p||5!==d&&27!==d&&6!==d)&&(c=null)):(u=null,c=r),u!==c)){if(d=sn,g="onMouseLeave",f="onMouseEnter",m="mouse","pointerout"!==e&&"pointerover"!==e||(d=yn,g="onPointerLeave",f="onPointerEnter",m="pointer"),p=null==u?l:We(u),h=null==c?l:We(c),(l=new d(g,m+"leave",u,n,o)).target=p,l.relatedTarget=h,g=null,Ve(o)===r&&((d=new d(f,m+"enter",c,n,o)).target=h,d.relatedTarget=p,g=d),p=g,u&&c)e:{for(f=c,m=0,h=d=u;h;h=Zc(h))m++;for(h=0,g=f;g;g=Zc(g))h++;for(;0<m-h;)d=Zc(d),m--;for(;0<h-m;)f=Zc(f),h--;for(;m--;){if(d===f||null!==f&&d===f.alternate)break e;d=Zc(d),f=Zc(f)}d=null}else d=null;null!==u&&Qc(a,l,u,d,!1),null!==c&&null!==p&&Qc(a,p,c,d,!0)}if("select"===(u=(l=r?We(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===u&&"file"===l.type)var v=Un;else if(Tn(l))if(Bn)v=Gn;else{v=Qn;var y=Zn}else!(u=l.nodeName)||"input"!==u.toLowerCase()||"checkbox"!==l.type&&"radio"!==l.type?r&&Mt(r.elementType)&&(v=Un):v=Kn;switch(v&&(v=v(e,r))?zn(a,v,n,o):(y&&y(e,l,r),"focusout"===e&&r&&"number"===l.type&&null!=r.memoizedProps.value&&kt(l,"number",l.value)),y=r?We(r):window,e){case"focusin":(Tn(y)||"true"===y.contentEditable)&&(ir=y,sr=r,ar=null);break;case"focusout":ar=sr=ir=null;break;case"mousedown":lr=!0;break;case"contextmenu":case"mouseup":case"dragend":lr=!1,ur(a,n,o);break;case"selectionchange":if(or)break;case"keydown":case"keyup":ur(a,n,o)}var b;if(Cn)e:{switch(e){case"compositionstart":var k="onCompositionStart";break e;case"compositionend":k="onCompositionEnd";break e;case"compositionupdate":k="onCompositionUpdate";break e}k=void 0}else Dn?jn(e,n)&&(k="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(k="onCompositionStart");k&&(Pn&&"ko"!==n.locale&&(Dn||"onCompositionStart"!==k?"onCompositionEnd"===k&&Dn&&(b=qt()):($t="value"in(Vt=o)?Vt.value:Vt.textContent,Dn=!0)),0<(y=qc(r,k)).length&&(k=new dn(k,e,null,n,o),a.push({event:k,listeners:y}),b?k.data=b:null!==(b=Nn(n))&&(k.data=b))),(b=Ln?function(e,t){switch(e){case"compositionend":return Nn(t);case"keypress":return 32!==t.which?null:(On=!0,Mn);case"textInput":return(e=t.data)===Mn&&On?null:e;default:return null}}(e,n):function(e,t){if(Dn)return"compositionend"===e||!Cn&&jn(e,t)?(e=qt(),Wt=$t=Vt=null,Dn=!1,e):null;switch(e){case"paste":default: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 Pn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(k=qc(r,"onBeforeInput")).length&&(y=new dn("onBeforeInput","beforeinput",null,n,o),a.push({event:y,listeners:k}),y.data=b)),function(e,t,n,r,o){if("submit"===t&&n&&n.stateNode===o){var i=Dc((o[ze]||null).action),s=r.submitter;s&&null!==(t=(t=s[ze]||null)?Dc(t.formAction):s.getAttribute("formAction"))&&(i=t,s=null);var a=new tn("action","action",null,r,o);e.push({event:a,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(0!==Sc){var e=s?Ic(o,s):new FormData(o);Is(n,{pending:!0,data:e,method:o.method,action:i},null,e)}}else"function"==typeof i&&(a.preventDefault(),e=s?Ic(o,s):new FormData(o),Is(n,{pending:!0,data:e,method:o.method,action:i},i,e))},currentTarget:o}]})}}(a,e,r,n,o)}Rc(a,t)})}function Wc(e,t,n){return{instance:e,listener:t,currentTarget:n}}function qc(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;if(5!==(o=o.tag)&&26!==o&&27!==o||null===i||(null!=(o=Ft(e,n))&&r.unshift(Wc(e,o,i)),null!=(o=Ft(e,t))&&r.push(Wc(e,o,i))),3===e.tag)return r;e=e.return}return[]}function Zc(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag&&27!==e.tag);return e||null}function Qc(e,t,n,r,o){for(var i=t._reactName,s=[];null!==n&&n!==r;){var a=n,l=a.alternate,u=a.stateNode;if(a=a.tag,null!==l&&l===r)break;5!==a&&26!==a&&27!==a||null===u||(l=u,o?null!=(u=Ft(n,i))&&s.unshift(Wc(n,u,l)):o||null!=(u=Ft(n,i))&&s.push(Wc(n,u,l))),n=n.return}0!==s.length&&e.push({event:t,listeners:s})}var Kc=/\r\n?/g,Gc=/\u0000|\uFFFD/g;function Yc(e){return("string"==typeof e?e:""+e).replace(Kc,"\n").replace(Gc,"")}function Xc(e,t){return t=Yc(t),Yc(e)===t}function Jc(){}function ed(e,t,n,o,i,s){switch(n){case"children":"string"==typeof o?"body"===t||"textarea"===t&&""===o||Ct(e,o):("number"==typeof o||"bigint"==typeof o)&&"body"!==t&&Ct(e,""+o);break;case"className":ot(e,"class",o);break;case"tabIndex":ot(e,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":ot(e,n,o);break;case"style":Pt(e,o,s);break;case"data":if("object"!==t){ot(e,"data",o);break}case"src":case"href":if(""===o&&("a"!==t||"href"!==n)){e.removeAttribute(n);break}if(null==o||"function"==typeof o||"symbol"==typeof o||"boolean"==typeof o){e.removeAttribute(n);break}o=Nt(""+o),e.setAttribute(n,o);break;case"action":case"formAction":if("function"==typeof o){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}if("function"==typeof s&&("formAction"===n?("input"!==t&&ed(e,t,"name",i.name,i,null),ed(e,t,"formEncType",i.formEncType,i,null),ed(e,t,"formMethod",i.formMethod,i,null),ed(e,t,"formTarget",i.formTarget,i,null)):(ed(e,t,"encType",i.encType,i,null),ed(e,t,"method",i.method,i,null),ed(e,t,"target",i.target,i,null))),null==o||"symbol"==typeof o||"boolean"==typeof o){e.removeAttribute(n);break}o=Nt(""+o),e.setAttribute(n,o);break;case"onClick":null!=o&&(e.onclick=Jc);break;case"onScroll":null!=o&&Fc("scroll",e);break;case"onScrollEnd":null!=o&&Fc("scrollend",e);break;case"dangerouslySetInnerHTML":if(null!=o){if("object"!=typeof o||!("__html"in o))throw Error(r(61));if(null!=(n=o.__html)){if(null!=i.children)throw Error(r(60));e.innerHTML=n}}break;case"multiple":e.multiple=o&&"function"!=typeof o&&"symbol"!=typeof o;break;case"muted":e.muted=o&&"function"!=typeof o&&"symbol"!=typeof o;break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":case"autoFocus":break;case"xlinkHref":if(null==o||"function"==typeof o||"boolean"==typeof o||"symbol"==typeof o){e.removeAttribute("xlink:href");break}n=Nt(""+o),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":null!=o&&"function"!=typeof o&&"symbol"!=typeof o?e.setAttribute(n,""+o):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":o&&"function"!=typeof o&&"symbol"!=typeof o?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":!0===o?e.setAttribute(n,""):!1!==o&&null!=o&&"function"!=typeof o&&"symbol"!=typeof o?e.setAttribute(n,o):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":null!=o&&"function"!=typeof o&&"symbol"!=typeof o&&!isNaN(o)&&1<=o?e.setAttribute(n,o):e.removeAttribute(n);break;case"rowSpan":case"start":null==o||"function"==typeof o||"symbol"==typeof o||isNaN(o)?e.removeAttribute(n):e.setAttribute(n,o);break;case"popover":Fc("beforetoggle",e),Fc("toggle",e),rt(e,"popover",o);break;case"xlinkActuate":it(e,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":it(e,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":it(e,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":it(e,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":it(e,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":it(e,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":it(e,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":it(e,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":it(e,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":rt(e,"is",o);break;case"innerText":case"textContent":break;default:(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])&&rt(e,n=Ot.get(n)||n,o)}}function td(e,t,n,o,i,s){switch(n){case"style":Pt(e,o,s);break;case"dangerouslySetInnerHTML":if(null!=o){if("object"!=typeof o||!("__html"in o))throw Error(r(61));if(null!=(n=o.__html)){if(null!=i.children)throw Error(r(60));e.innerHTML=n}}break;case"children":"string"==typeof o?Ct(e,o):("number"==typeof o||"bigint"==typeof o)&&Ct(e,""+o);break;case"onScroll":null!=o&&Fc("scroll",e);break;case"onScrollEnd":null!=o&&Fc("scrollend",e);break;case"onClick":null!=o&&(e.onclick=Jc);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":case"innerText":case"textContent":break;default:Ke.hasOwnProperty(n)||("o"!==n[0]||"n"!==n[1]||(i=n.endsWith("Capture"),t=n.slice(2,i?n.length-7:void 0),"function"==typeof(s=null!=(s=e[ze]||null)?s[n]:null)&&e.removeEventListener(t,s,i),"function"!=typeof o)?n in e?e[n]=o:!0===o?e.setAttribute(n,""):rt(e,n,o):("function"!=typeof s&&null!==s&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,o,i)))}}function nd(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Fc("error",e),Fc("load",e);var o,i=!1,s=!1;for(o in n)if(n.hasOwnProperty(o)){var a=n[o];if(null!=a)switch(o){case"src":i=!0;break;case"srcSet":s=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:ed(e,t,o,a,n,null)}}return s&&ed(e,t,"srcSet",n.srcSet,n,null),void(i&&ed(e,t,"src",n.src,n,null));case"input":Fc("invalid",e);var l=o=a=s=null,u=null,c=null;for(i in n)if(n.hasOwnProperty(i)){var d=n[i];if(null!=d)switch(i){case"name":s=d;break;case"type":a=d;break;case"checked":u=d;break;case"defaultChecked":c=d;break;case"value":o=d;break;case"defaultValue":l=d;break;case"children":case"dangerouslySetInnerHTML":if(null!=d)throw Error(r(137,t));break;default:ed(e,t,i,d,n,null)}}return bt(e,o,l,u,c,a,s,!1),void ft(e);case"select":for(s in Fc("invalid",e),i=a=o=null,n)if(n.hasOwnProperty(s)&&null!=(l=n[s]))switch(s){case"value":o=l;break;case"defaultValue":a=l;break;case"multiple":i=l;default:ed(e,t,s,l,n,null)}return t=o,n=a,e.multiple=!!i,void(null!=t?xt(e,!!i,t,!1):null!=n&&xt(e,!!i,n,!0));case"textarea":for(a in Fc("invalid",e),o=s=i=null,n)if(n.hasOwnProperty(a)&&null!=(l=n[a]))switch(a){case"value":i=l;break;case"defaultValue":s=l;break;case"children":o=l;break;case"dangerouslySetInnerHTML":if(null!=l)throw Error(r(91));break;default:ed(e,t,a,l,n,null)}return St(e,i,s,o),void ft(e);case"option":for(u in n)if(n.hasOwnProperty(u)&&null!=(i=n[u]))if("selected"===u)e.selected=i&&"function"!=typeof i&&"symbol"!=typeof i;else ed(e,t,u,i,n,null);return;case"dialog":Fc("beforetoggle",e),Fc("toggle",e),Fc("cancel",e),Fc("close",e);break;case"iframe":case"object":Fc("load",e);break;case"video":case"audio":for(i=0;i<_c.length;i++)Fc(_c[i],e);break;case"image":Fc("error",e),Fc("load",e);break;case"details":Fc("toggle",e);break;case"embed":case"source":case"link":Fc("error",e),Fc("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(c in n)if(n.hasOwnProperty(c)&&null!=(i=n[c]))switch(c){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:ed(e,t,c,i,n,null)}return;default:if(Mt(t)){for(d in n)n.hasOwnProperty(d)&&(void 0!==(i=n[d])&&td(e,t,d,i,n,void 0));return}}for(l in n)n.hasOwnProperty(l)&&(null!=(i=n[l])&&ed(e,t,l,i,n,null))}var rd=null,od=null;function id(e){return 9===e.nodeType?e:e.ownerDocument}function sd(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 ad(e,t){if(0===e)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return 1===e&&"foreignObject"===t?0:e}function ld(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"bigint"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ud=null;var cd="function"==typeof setTimeout?setTimeout:void 0,dd="function"==typeof clearTimeout?clearTimeout:void 0,pd="function"==typeof Promise?Promise:void 0,fd="function"==typeof queueMicrotask?queueMicrotask:void 0!==pd?function(e){return pd.resolve(null).then(e).catch(hd)}:cd;function hd(e){setTimeout(function(){throw e})}function md(e){return"head"===e}function gd(e,t){var n=t,r=0,o=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)){if(0<r&&8>r){n=r;var s=e.ownerDocument;if(1&n&&Sd(s.documentElement),2&n&&Sd(s.body),4&n)for(Sd(n=s.head),s=n.firstChild;s;){var a=s.nextSibling,l=s.nodeName;s[Be]||"SCRIPT"===l||"STYLE"===l||"LINK"===l&&"stylesheet"===s.rel.toLowerCase()||n.removeChild(s),s=a}}if(0===o)return e.removeChild(i),void Op(t);o--}else"$"===n||"$?"===n||"$!"===n?o++:r=n.charCodeAt(0)-48;else r=0;n=i}while(n);Op(t)}function vd(e){var t=e.firstChild;for(t&&10===t.nodeType&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":vd(n),He(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if("stylesheet"===n.rel.toLowerCase())continue}e.removeChild(n)}}function yd(e){return"$!"===e.data||"$?"===e.data&&"complete"===e.ownerDocument.readyState}function bd(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t||"F!"===t||"F"===t)break;if("/$"===t)return null}}return e}var kd=null;function xd(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}function wd(e,t,n){switch(t=id(n),e){case"html":if(!(e=t.documentElement))throw Error(r(452));return e;case"head":if(!(e=t.head))throw Error(r(453));return e;case"body":if(!(e=t.body))throw Error(r(454));return e;default:throw Error(r(451))}}function Sd(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);He(e)}var Cd=new Map,Ed=new Set;function Ld(e){return"function"==typeof e.getRootNode?e.getRootNode():9===e.nodeType?e:e.ownerDocument}var Pd=A.d;A.d={f:function(){var e=Pd.f(),t=Vu();return e||t},r:function(e){var t=$e(e);null!==t&&5===t.tag&&"form"===t.type?zs(t):Pd.r(e)},D:function(e){Pd.D(e),Od("dns-prefetch",e,null)},C:function(e,t){Pd.C(e,t),Od("preconnect",e,t)},L:function(e,t,n){Pd.L(e,t,n);var r=Md;if(r&&e&&t){var o='link[rel="preload"][as="'+vt(t)+'"]';"image"===t&&n&&n.imageSrcSet?(o+='[imagesrcset="'+vt(n.imageSrcSet)+'"]',"string"==typeof n.imageSizes&&(o+='[imagesizes="'+vt(n.imageSizes)+'"]')):o+='[href="'+vt(e)+'"]';var i=o;switch(t){case"style":i=Nd(e);break;case"script":i=Td(e)}Cd.has(i)||(e=c({rel:"preload",href:"image"===t&&n&&n.imageSrcSet?void 0:e,as:t},n),Cd.set(i,e),null!==r.querySelector(o)||"style"===t&&r.querySelector(Dd(i))||"script"===t&&r.querySelector(zd(i))||(nd(t=r.createElement("link"),"link",e),Ze(t),r.head.appendChild(t)))}},m:function(e,t){Pd.m(e,t);var n=Md;if(n&&e){var r=t&&"string"==typeof t.as?t.as:"script",o='link[rel="modulepreload"][as="'+vt(r)+'"][href="'+vt(e)+'"]',i=o;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=Td(e)}if(!Cd.has(i)&&(e=c({rel:"modulepreload",href:e},t),Cd.set(i,e),null===n.querySelector(o))){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(zd(i)))return}nd(r=n.createElement("link"),"link",e),Ze(r),n.head.appendChild(r)}}},X:function(e,t){Pd.X(e,t);var n=Md;if(n&&e){var r=qe(n).hoistableScripts,o=Td(e),i=r.get(o);i||((i=n.querySelector(zd(o)))||(e=c({src:e,async:!0},t),(t=Cd.get(o))&&Fd(e,t),Ze(i=n.createElement("script")),nd(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},r.set(o,i))}},S:function(e,t,n){Pd.S(e,t,n);var r=Md;if(r&&e){var o=qe(r).hoistableStyles,i=Nd(e);t=t||"default";var s=o.get(i);if(!s){var a={loading:0,preload:null};if(s=r.querySelector(Dd(i)))a.loading=5;else{e=c({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Cd.get(i))&&Rd(e,n);var l=s=r.createElement("link");Ze(l),nd(l,"link",e),l._p=new Promise(function(e,t){l.onload=e,l.onerror=t}),l.addEventListener("load",function(){a.loading|=1}),l.addEventListener("error",function(){a.loading|=2}),a.loading|=4,Ad(s,t,r)}s={type:"stylesheet",instance:s,count:1,state:a},o.set(i,s)}}},M:function(e,t){Pd.M(e,t);var n=Md;if(n&&e){var r=qe(n).hoistableScripts,o=Td(e),i=r.get(o);i||((i=n.querySelector(zd(o)))||(e=c({src:e,async:!0,type:"module"},t),(t=Cd.get(o))&&Fd(e,t),Ze(i=n.createElement("script")),nd(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},r.set(o,i))}}};var Md="undefined"==typeof document?null:document;function Od(e,t,n){var r=Md;if(r&&"string"==typeof t&&t){var o=vt(t);o='link[rel="'+e+'"][href="'+o+'"]',"string"==typeof n&&(o+='[crossorigin="'+n+'"]'),Ed.has(o)||(Ed.add(o),e={rel:e,crossOrigin:n,href:t},null===r.querySelector(o)&&(nd(t=r.createElement("link"),"link",e),Ze(t),r.head.appendChild(t)))}}function jd(e,t,n,o){var i,s,a,l,u=(u=q.current)?Ld(u):null;if(!u)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return"string"==typeof n.precedence&&"string"==typeof n.href?(t=Nd(n.href),(o=(n=qe(u).hoistableStyles).get(t))||(o={type:"style",instance:null,count:0,state:null},n.set(t,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if("stylesheet"===n.rel&&"string"==typeof n.href&&"string"==typeof n.precedence){e=Nd(n.href);var c=qe(u).hoistableStyles,d=c.get(e);if(d||(u=u.ownerDocument||u,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,d),(c=u.querySelector(Dd(e)))&&!c._p&&(d.instance=c,d.state.loading=5),Cd.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},Cd.set(e,n),c||(i=u,s=e,a=n,l=d.state,i.querySelector('link[rel="preload"][as="style"]['+s+"]")?l.loading=1:(s=i.createElement("link"),l.preload=s,s.addEventListener("load",function(){return l.loading|=1}),s.addEventListener("error",function(){return l.loading|=2}),nd(s,"link",a),Ze(s),i.head.appendChild(s))))),t&&null===o)throw Error(r(528,""));return d}if(t&&null!==o)throw Error(r(529,""));return null;case"script":return t=n.async,"string"==typeof(n=n.src)&&t&&"function"!=typeof t&&"symbol"!=typeof t?(t=Td(n),(o=(n=qe(u).hoistableScripts).get(t))||(o={type:"script",instance:null,count:0,state:null},n.set(t,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function Nd(e){return'href="'+vt(e)+'"'}function Dd(e){return'link[rel="stylesheet"]['+e+"]"}function Id(e){return c({},e,{"data-precedence":e.precedence,precedence:null})}function Td(e){return'[src="'+vt(e)+'"]'}function zd(e){return"script[async]"+e}function _d(e,t,n){if(t.count++,null===t.instance)switch(t.type){case"style":var o=e.querySelector('style[data-href~="'+vt(n.href)+'"]');if(o)return t.instance=o,Ze(o),o;var i=c({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return Ze(o=(e.ownerDocument||e).createElement("style")),nd(o,"style",i),Ad(o,n.precedence,e),t.instance=o;case"stylesheet":i=Nd(n.href);var s=e.querySelector(Dd(i));if(s)return t.state.loading|=4,t.instance=s,Ze(s),s;o=Id(n),(i=Cd.get(i))&&Rd(o,i),Ze(s=(e.ownerDocument||e).createElement("link"));var a=s;return a._p=new Promise(function(e,t){a.onload=e,a.onerror=t}),nd(s,"link",o),t.state.loading|=4,Ad(s,n.precedence,e),t.instance=s;case"script":return s=Td(n.src),(i=e.querySelector(zd(s)))?(t.instance=i,Ze(i),i):(o=n,(i=Cd.get(s))&&Fd(o=c({},n),i),Ze(i=(e=e.ownerDocument||e).createElement("script")),nd(i,"link",o),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(r(443,t.type))}else"stylesheet"===t.type&&!(4&t.state.loading)&&(o=t.instance,t.state.loading|=4,Ad(o,n.precedence,e));return t.instance}function Ad(e,t,n){for(var r=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=r.length?r[r.length-1]:null,i=o,s=0;s<r.length;s++){var a=r[s];if(a.dataset.precedence===t)i=a;else if(i!==o)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=9===n.nodeType?n.head:n).insertBefore(e,t.firstChild)}function Rd(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.title&&(e.title=t.title)}function Fd(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.integrity&&(e.integrity=t.integrity)}var Ud=null;function Bd(e,t,n){if(null===Ud){var r=new Map,o=Ud=new Map;o.set(n,r)}else(r=(o=Ud).get(n))||(r=new Map,o.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),o=0;o<n.length;o++){var i=n[o];if(!(i[Be]||i[Te]||"link"===e&&"stylesheet"===i.getAttribute("rel"))&&"http://www.w3.org/2000/svg"!==i.namespaceURI){var s=i.getAttribute(t)||"";s=e+s;var a=r.get(s);a?a.push(i):r.set(s,[i])}}return r}function Hd(e,t,n){(e=e.ownerDocument||e).head.insertBefore(n,"title"===t?e.querySelector("head > title"):null)}function Vd(e){return!!("stylesheet"!==e.type||3&e.state.loading)}var $d=null;function Wd(){}function qd(){if(this.count--,0===this.count)if(this.stylesheets)Qd(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}var Zd=null;function Qd(e,t){e.stylesheets=null,null!==e.unsuspend&&(e.count++,Zd=new Map,t.forEach(Kd,e),Zd=null,qd.call(e))}function Kd(e,t){if(!(4&t.state.loading)){var n=Zd.get(e);if(n)var r=n.get(null);else{n=new Map,Zd.set(e,n);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<o.length;i++){var s=o[i];"LINK"!==s.nodeName&&"not all"===s.getAttribute("media")||(n.set(s.dataset.precedence,s),r=s)}r&&n.set(null,r)}s=(o=t.instance).getAttribute("data-precedence"),(i=n.get(s)||r)===r&&n.set(null,o),n.set(s,o),this.count++,r=qd.bind(this),o.addEventListener("load",r),o.addEventListener("error",r),i?i.parentNode.insertBefore(o,i.nextSibling):(e=9===e.nodeType?e.head:e).insertBefore(o,e.firstChild),t.state.loading|=4}}var Gd={$$typeof:w,Provider:null,Consumer:null,_currentValue:R,_currentValue2:R,_threadCount:0};function Yd(e,t,n,r,o,i,s,a){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=Le(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Le(0),this.hiddenUpdates=Le(null),this.identifierPrefix=r,this.onUncaughtError=o,this.onCaughtError=i,this.onRecoverableError=s,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=a,this.incompleteTransitions=new Map}function Xd(e,t,n,r,o,i,s,a,l,u,c,d){return e=new Yd(e,t,n,s,a,l,u,d),t=1,!0===i&&(t|=24),i=Rr(3,null,null,t),e.current=i,i.stateNode=e,(t=_o()).refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:r,isDehydrated:n,cache:t},ii(i),e}function Jd(e){return e?e=_r:_r}function ep(e,t,n,r,o,i){o=Jd(o),null===r.context?r.context=o:r.pendingContext=o,(r=ai(t)).payload={element:n},null!==(i=void 0===i?null:i)&&(r.callback=i),null!==(n=li(e,r,t))&&(Ru(n,0,t),ui(n,e,t))}function tp(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function np(e,t){tp(e,t),(e=e.alternate)&&tp(e,t)}function rp(e){if(13===e.tag){var t=Ir(e,67108864);null!==t&&Ru(t,0,67108864),np(e,67108864)}}var op=!0;function ip(e,t,n,r){var o=_.T;_.T=null;var i=A.p;try{A.p=2,ap(e,t,n,r)}finally{A.p=i,_.T=o}}function sp(e,t,n,r){var o=_.T;_.T=null;var i=A.p;try{A.p=8,ap(e,t,n,r)}finally{A.p=i,_.T=o}}function ap(e,t,n,r){if(op){var o=lp(r);if(null===o)$c(e,t,r,up,n),kp(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return fp=xp(fp,e,t,n,r,o),!0;case"dragenter":return hp=xp(hp,e,t,n,r,o),!0;case"mouseover":return mp=xp(mp,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return gp.set(i,xp(gp.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,vp.set(i,xp(vp.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(kp(e,r),4&t&&-1<bp.indexOf(e)){for(;null!==o;){var i=$e(o);if(null!==i)switch(i.tag){case 3:if((i=i.stateNode).current.memoizedState.isDehydrated){var s=ke(i.pendingLanes);if(0!==s){var a=i;for(a.pendingLanes|=2,a.entangledLanes|=2;s;){var l=1<<31-me(s);a.entanglements[1]|=l,s&=~l}Cc(i),!(6&ou)&&(Cu=re()+500,Ec(0))}}break;case 13:null!==(a=Ir(i,2))&&Ru(a,0,2),Vu(),np(i,2)}if(null===(i=lp(r))&&$c(e,t,r,up,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else $c(e,t,r,null,n)}}function lp(e){return cp(e=It(e))}var up=null;function cp(e){if(up=null,null!==(e=Ve(e))){var t=i(e);if(null===t)e=null;else{var n=t.tag;if(13===n){if(null!==(e=s(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return up=e,null}function dp(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(oe()){case ie:return 2;case se:return 8;case ae:case le:return 32;case ue:return 268435456;default:return 32}default:return 32}}var pp=!1,fp=null,hp=null,mp=null,gp=new Map,vp=new Map,yp=[],bp="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 kp(e,t){switch(e){case"focusin":case"focusout":fp=null;break;case"dragenter":case"dragleave":hp=null;break;case"mouseover":case"mouseout":mp=null;break;case"pointerover":case"pointerout":gp.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":vp.delete(t.pointerId)}}function xp(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&(null!==(t=$e(t))&&rp(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function wp(e){var t=Ve(e.target);if(null!==t){var n=i(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=s(n)))return e.blockedOn=t,void function(e,t){var n=A.p;try{return A.p=e,t()}finally{A.p=n}}(e.priority,function(){if(13===n.tag){var e=_u();e=je(e);var t=Ir(n,e);null!==t&&Ru(t,0,e),np(n,e)}})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Sp(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=lp(e.nativeEvent);if(null!==n)return null!==(t=$e(n))&&rp(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);Dt=r,n.target.dispatchEvent(r),Dt=null,t.shift()}return!0}function Cp(e,t,n){Sp(e)&&n.delete(t)}function Ep(){pp=!1,null!==fp&&Sp(fp)&&(fp=null),null!==hp&&Sp(hp)&&(hp=null),null!==mp&&Sp(mp)&&(mp=null),gp.forEach(Cp),vp.forEach(Cp)}function Lp(t,n){t.blockedOn===n&&(t.blockedOn=null,pp||(pp=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Ep)))}var Pp=null;function Mp(t){Pp!==t&&(Pp=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Pp===t&&(Pp=null);for(var e=0;e<t.length;e+=3){var n=t[e],r=t[e+1],o=t[e+2];if("function"!=typeof r){if(null===cp(r||n))continue;break}var i=$e(n);null!==i&&(t.splice(e,3),e-=3,Is(i,{pending:!0,data:o,method:n.method,action:r},r,o))}}))}function Op(e){function t(t){return Lp(t,e)}null!==fp&&Lp(fp,e),null!==hp&&Lp(hp,e),null!==mp&&Lp(mp,e),gp.forEach(t),vp.forEach(t);for(var n=0;n<yp.length;n++){var r=yp[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<yp.length&&null===(n=yp[0]).blockedOn;)wp(n),null===n.blockedOn&&yp.shift();if(null!=(n=(e.ownerDocument||e).$$reactFormReplay))for(r=0;r<n.length;r+=3){var o=n[r],i=n[r+1],s=o[ze]||null;if("function"==typeof i)s||Mp(n);else if(s){var a=null;if(i&&i.hasAttribute("formAction")){if(o=i,s=i[ze]||null)a=s.formAction;else if(null!==cp(o))continue}else a=s.action;"function"==typeof a?n[r+1]=a:(n.splice(r,3),r-=3),Mp(n)}}}function jp(e){this._internalRoot=e}function Np(e){this._internalRoot=e}Np.prototype.render=jp.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(r(409));ep(t.current,_u(),e,t,null,null)},Np.prototype.unmount=jp.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;ep(e.current,2,null,e,null,null),Vu(),t[_e]=null}},Np.prototype.unstable_scheduleHydration=function(e){if(e){var t=De();e={blockedOn:null,target:e,priority:t};for(var n=0;n<yp.length&&0!==t&&t<yp[n].priority;n++);yp.splice(n,0,e),0===n&&wp(e)}};var Dp=t.version;if("19.1.0"!==Dp)throw Error(r(527,Dp,"19.1.0"));A.findDOMNode=function(e){var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(r(188));throw e=Object.keys(e).join(","),Error(r(268,e))}return e=function(e){var t=e.alternate;if(!t){if(null===(t=i(e)))throw Error(r(188));return t!==e?null:e}for(var n=e,o=t;;){var s=n.return;if(null===s)break;var l=s.alternate;if(null===l){if(null!==(o=s.return)){n=o;continue}break}if(s.child===l.child){for(l=s.child;l;){if(l===n)return a(s),e;if(l===o)return a(s),t;l=l.sibling}throw Error(r(188))}if(n.return!==o.return)n=s,o=l;else{for(var u=!1,c=s.child;c;){if(c===n){u=!0,n=s,o=l;break}if(c===o){u=!0,o=s,n=l;break}c=c.sibling}if(!u){for(c=l.child;c;){if(c===n){u=!0,n=l,o=s;break}if(c===o){u=!0,o=l,n=s;break}c=c.sibling}if(!u)throw Error(r(189))}}if(n.alternate!==o)throw Error(r(190))}if(3!==n.tag)throw Error(r(188));return n.stateNode.current===n?e:t}(t),e=null===(e=null!==e?l(e):null)?null:e.stateNode};var Ip={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:_,reconcilerVersion:"19.1.0"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var Tp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Tp.isDisabled&&Tp.supportsFiber)try{pe=Tp.inject(Ip),fe=Tp}catch(e){}}return u.createRoot=function(e,t){if(!o(e))throw Error(r(299));var n=!1,i="",s=ka,a=xa,l=wa;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(i=t.identifierPrefix),void 0!==t.onUncaughtError&&(s=t.onUncaughtError),void 0!==t.onCaughtError&&(a=t.onCaughtError),void 0!==t.onRecoverableError&&(l=t.onRecoverableError),void 0!==t.unstable_transitionCallbacks&&t.unstable_transitionCallbacks),t=Xd(e,1,!1,null,0,n,i,s,a,l,0,null),e[_e]=t.current,Hc(e),new jp(t)},u.hydrateRoot=function(e,t,n){if(!o(e))throw Error(r(299));var i=!1,s="",a=ka,l=xa,u=wa,c=null;return null!=n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(s=n.identifierPrefix),void 0!==n.onUncaughtError&&(a=n.onUncaughtError),void 0!==n.onCaughtError&&(l=n.onCaughtError),void 0!==n.onRecoverableError&&(u=n.onRecoverableError),void 0!==n.unstable_transitionCallbacks&&n.unstable_transitionCallbacks,void 0!==n.formState&&(c=n.formState)),(t=Xd(e,1,!0,t,0,i,s,a,l,u,0,c)).context=Jd(null),n=t.current,(s=ai(i=je(i=_u()))).callback=null,li(n,s,i),n=i,t.current.lanes=n,Pe(t,n),Cc(t),e[_e]=t.current,Hc(e),new Np(t)},u.version="19.1.0",u}var M,O,j=(w||(w=1,function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),l.exports=P()),l.exports),N=y(),D=e(N),I=L();function T(e){return T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},T(e)}function z(e){var t=function(e,t){if("object"!=T(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=T(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==T(t)?t:t+""}function _(e,t,n){return(t=z(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function A(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var R=(O||(O=1,M=function(e,t,n,r,o,i,s,a){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,o,i,s,a],c=0;(l=new Error(t.replace(/%s/g,function(){return u[c++]}))).name="Invariant Violation"}throw l.framesToPop=1,l}}),M),F=A(R),U=N.createContext(null);function B(e,t,n,r){var o,i,s={};return o=e,i=(e,o)=>{var i=n[o];i!==t[o]&&(s[o]=i,e(r,i))},Object.keys(o).forEach(e=>i(o[e],e)),s}function H(e,t,n){var r,o,i,s=(r=n,o=function(n,r,o){return"function"==typeof e[o]&&n.push(google.maps.event.addListener(t,r,e[o])),n},i=[],Object.keys(r).reduce(function(e,t){return o(e,r[t],t)},i));return s}function V(e){google.maps.event.removeListener(e)}function $(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach(V)}function W(e){var{updaterMap:t,eventMap:n,prevProps:r,nextProps:o,instance:i}=e,s=H(o,i,n);return B(t,r,o,i),s}var q={onDblClick:"dblclick",onDragEnd:"dragend",onDragStart:"dragstart",onMapTypeIdChanged:"maptypeid_changed",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseDown:"mousedown",onMouseUp:"mouseup",onRightClick:"rightclick",onTilesLoaded:"tilesloaded",onBoundsChanged:"bounds_changed",onCenterChanged:"center_changed",onClick:"click",onDrag:"drag",onHeadingChanged:"heading_changed",onIdle:"idle",onProjectionChanged:"projection_changed",onResize:"resize",onTiltChanged:"tilt_changed",onZoomChanged:"zoom_changed"},Z={extraMapTypes(e,t){t.forEach(function(t,n){e.mapTypes.set(String(n),t)})},center(e,t){e.setCenter(t)},clickableIcons(e,t){e.setClickableIcons(t)},heading(e,t){e.setHeading(t)},mapTypeId(e,t){e.setMapTypeId(t)},options(e,t){e.setOptions(t)},streetView(e,t){e.setStreetView(t)},tilt(e,t){e.setTilt(t)},zoom(e,t){e.setZoom(t)}};N.memo(function(e){var{children:t,options:n,id:r,mapContainerStyle:o,mapContainerClassName:i,center:s,onClick:l,onDblClick:u,onDrag:c,onDragEnd:d,onDragStart:p,onMouseMove:f,onMouseOut:h,onMouseOver:m,onMouseDown:g,onMouseUp:v,onRightClick:y,onCenterChanged:b,onLoad:k,onUnmount:x}=e,[w,S]=N.useState(null),C=N.useRef(null),[E,L]=N.useState(null),[P,M]=N.useState(null),[O,j]=N.useState(null),[D,I]=N.useState(null),[T,z]=N.useState(null),[_,A]=N.useState(null),[R,F]=N.useState(null),[B,H]=N.useState(null),[V,$]=N.useState(null),[W,q]=N.useState(null),[Z,Q]=N.useState(null),[K,G]=N.useState(null);return N.useEffect(()=>{n&&null!==w&&w.setOptions(n)},[w,n]),N.useEffect(()=>{null!==w&&void 0!==s&&w.setCenter(s)},[w,s]),N.useEffect(()=>{w&&u&&(null!==P&&google.maps.event.removeListener(P),M(google.maps.event.addListener(w,"dblclick",u)))},[u]),N.useEffect(()=>{w&&d&&(null!==O&&google.maps.event.removeListener(O),j(google.maps.event.addListener(w,"dragend",d)))},[d]),N.useEffect(()=>{w&&p&&(null!==D&&google.maps.event.removeListener(D),I(google.maps.event.addListener(w,"dragstart",p)))},[p]),N.useEffect(()=>{w&&g&&(null!==T&&google.maps.event.removeListener(T),z(google.maps.event.addListener(w,"mousedown",g)))},[g]),N.useEffect(()=>{w&&f&&(null!==_&&google.maps.event.removeListener(_),A(google.maps.event.addListener(w,"mousemove",f)))},[f]),N.useEffect(()=>{w&&h&&(null!==R&&google.maps.event.removeListener(R),F(google.maps.event.addListener(w,"mouseout",h)))},[h]),N.useEffect(()=>{w&&m&&(null!==B&&google.maps.event.removeListener(B),H(google.maps.event.addListener(w,"mouseover",m)))},[m]),N.useEffect(()=>{w&&v&&(null!==V&&google.maps.event.removeListener(V),$(google.maps.event.addListener(w,"mouseup",v)))},[v]),N.useEffect(()=>{w&&y&&(null!==W&&google.maps.event.removeListener(W),q(google.maps.event.addListener(w,"rightclick",y)))},[y]),N.useEffect(()=>{w&&l&&(null!==Z&&google.maps.event.removeListener(Z),Q(google.maps.event.addListener(w,"click",l)))},[l]),N.useEffect(()=>{w&&c&&(null!==K&&google.maps.event.removeListener(K),G(google.maps.event.addListener(w,"drag",c)))},[c]),N.useEffect(()=>{w&&b&&(null!==E&&google.maps.event.removeListener(E),L(google.maps.event.addListener(w,"center_changed",b)))},[l]),N.useEffect(()=>{var e=null===C.current?null:new google.maps.Map(C.current,n);return S(e),null!==e&&k&&k(e),()=>{null!==e&&x&&x(e)}},[]),a.jsx("div",{id:r,ref:C,style:o,className:i,children:a.jsx(U.Provider,{value:w,children:null!==w?t:null})})});class Q extends N.PureComponent{constructor(){super(...arguments),_(this,"state",{map:null}),_(this,"registeredEvents",[]),_(this,"mapRef",null),_(this,"getInstance",()=>null===this.mapRef?null:new google.maps.Map(this.mapRef,this.props.options)),_(this,"panTo",e=>{var t=this.getInstance();t&&t.panTo(e)}),_(this,"setMapCallback",()=>{null!==this.state.map&&this.props.onLoad&&this.props.onLoad(this.state.map)}),_(this,"getRef",e=>{this.mapRef=e})}componentDidMount(){var e=this.getInstance();this.registeredEvents=W({updaterMap:Z,eventMap:q,prevProps:{},nextProps:this.props,instance:e}),this.setState(function(){return{map:e}},this.setMapCallback)}componentDidUpdate(e){null!==this.state.map&&($(this.registeredEvents),this.registeredEvents=W({updaterMap:Z,eventMap:q,prevProps:e,nextProps:this.props,instance:this.state.map}))}componentWillUnmount(){null!==this.state.map&&(this.props.onUnmount&&this.props.onUnmount(this.state.map),$(this.registeredEvents))}render(){return a.jsx("div",{id:this.props.id,ref:this.getRef,style:this.props.mapContainerStyle,className:this.props.mapContainerClassName,children:a.jsx(U.Provider,{value:this.state.map,children:null!==this.state.map?this.props.children:null})})}}function K(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}function G(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function s(e){K(i,r,o,s,a,"next",e)}function a(e){K(i,r,o,s,a,"throw",e)}s(void 0)})}}function Y(e){var{googleMapsApiKey:t,googleMapsClientId:n,version:r="weekly",language:o,region:i,libraries:s,channel:a,mapIds:l,authReferrerPolicy:u,apiUrl:c="https://maps.googleapis.com"}=e,d=[];return F(t&&n||!(t&&n),"You need to specify either googleMapsApiKey or googleMapsClientId for @react-google-maps/api load script to work. You cannot use both at the same time."),t?d.push("key=".concat(t)):n&&d.push("client=".concat(n)),r&&d.push("v=".concat(r)),o&&d.push("language=".concat(o)),i&&d.push("region=".concat(i)),s&&s.length&&d.push("libraries=".concat(s.sort().join(","))),a&&d.push("channel=".concat(a)),l&&l.length&&d.push("map_ids=".concat(l.join(","))),u&&d.push("auth_referrer_policy=".concat(u)),d.push("loading=async"),d.push("callback=initMap"),"".concat(c,"/maps/api/js?").concat(d.join("&"))}var X="undefined"!=typeof document;function J(e){var{url:t,id:n,nonce:r}=e;return X?new Promise(function(e,o){var i=document.getElementById(n),s=window;if(i){var a=i.getAttribute("data-state");if(i.src===t&&"error"!==a){if("ready"===a)return e(n);var l=s.initMap,u=i.onerror;return s.initMap=function(){l&&l(),e(n)},void(i.onerror=function(e){u&&u(e),o(e)})}i.remove()}var c=document.createElement("script");c.type="text/javascript",c.src=t,c.id=n,c.async=!0,c.nonce=r||"",c.onerror=function(e){c.setAttribute("data-state","error"),o(e)},s.initMap=function(){c.setAttribute("data-state","ready"),e(n)},document.head.appendChild(c)}).catch(e=>{throw console.error("injectScript error: ",e),e}):Promise.reject(new Error("document is undefined"))}function ee(e){var t=e.href;return!(!t||0!==t.indexOf("https://fonts.googleapis.com/css?family=Roboto")&&0!==t.indexOf("https://fonts.googleapis.com/css?family=Google+Sans+Text"))||("style"===e.tagName.toLowerCase()&&e.styleSheet&&e.styleSheet.cssText&&0===e.styleSheet.cssText.replace("\r\n","").indexOf(".gm-style")?(e.styleSheet.cssText="",!0):"style"===e.tagName.toLowerCase()&&e.innerHTML&&0===e.innerHTML.replace("\r\n","").indexOf(".gm-style")?(e.innerHTML="",!0):"style"===e.tagName.toLowerCase()&&!e.styleSheet&&!e.innerHTML)}function te(){var e=document.getElementsByTagName("head")[0];if(e){var t=e.insertBefore.bind(e);e.insertBefore=function(n,r){return ee(n)||Reflect.apply(t,e,[n,r]),n};var n=e.appendChild.bind(e);e.appendChild=function(t){return ee(t)||Reflect.apply(n,e,[t]),t}}}var ne=!1;function re(){return a.jsx("div",{children:"Loading..."})}var oe,ie={id:"script-loader",version:"weekly"};class se extends N.PureComponent{constructor(){super(...arguments),_(this,"check",null),_(this,"state",{loaded:!1}),_(this,"cleanupCallback",()=>{delete window.google.maps,this.injectScript()}),_(this,"isCleaningUp",G(function*(){return new Promise(function(e){if(ne){if(X)var t=window.setInterval(function(){ne||(window.clearInterval(t),e())},1)}else e()})})),_(this,"cleanup",()=>{ne=!0;var e=document.getElementById(this.props.id);e&&e.parentNode&&e.parentNode.removeChild(e),Array.prototype.slice.call(document.getElementsByTagName("script")).filter(function(e){return"string"==typeof e.src&&e.src.includes("maps.googleapis")}).forEach(function(e){e.parentNode&&e.parentNode.removeChild(e)}),Array.prototype.slice.call(document.getElementsByTagName("link")).filter(function(e){return"https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Google+Sans"===e.href}).forEach(function(e){e.parentNode&&e.parentNode.removeChild(e)}),Array.prototype.slice.call(document.getElementsByTagName("style")).filter(function(e){return void 0!==e.innerText&&e.innerText.length>0&&e.innerText.includes(".gm-")}).forEach(function(e){e.parentNode&&e.parentNode.removeChild(e)})}),_(this,"injectScript",()=>{this.props.preventGoogleFontsLoading&&te(),F(!!this.props.id,'LoadScript requires "id" prop to be a string: %s',this.props.id),J({id:this.props.id,nonce:this.props.nonce,url:Y(this.props)}).then(()=>{this.props.onLoad&&this.props.onLoad(),this.setState(function(){return{loaded:!0}})}).catch(e=>{this.props.onError&&this.props.onError(e),console.error("\n          There has been an Error with loading Google Maps API script, please check that you provided correct google API key (".concat(this.props.googleMapsApiKey||"-",") or Client ID (").concat(this.props.googleMapsClientId||"-",") to <LoadScript />\n          Otherwise it is a Network issue.\n        "))})}),_(this,"getRef",e=>{this.check=e})}componentDidMount(){if(X){if(window.google&&window.google.maps&&!ne)return void console.error("google api is already presented");this.isCleaningUp().then(this.injectScript).catch(function(e){console.error("Error at injecting script after cleaning up: ",e)})}}componentDidUpdate(e){this.props.libraries!==e.libraries&&console.warn("Performance warning! LoadScript has been reloaded unintentionally! You should not pass `libraries` prop as new array. Please keep an array of libraries as static class property for Components and PureComponents, or just a const variable outside of component, or somewhere in config files or ENV variables"),X&&e.language!==this.props.language&&(this.cleanup(),this.setState(function(){return{loaded:!1}},this.cleanupCallback))}componentWillUnmount(){if(X){this.cleanup();window.setTimeout(()=>{this.check||(delete window.google,ne=!1)},1),this.props.onUnmount&&this.props.onUnmount()}}render(){return a.jsxs(a.Fragment,{children:[a.jsx("div",{ref:this.getRef}),this.state.loaded?this.props.children:this.props.loadingElement||a.jsx(re,{})]})}}function ae(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}_(se,"defaultProps",ie);var le,ue=["loadingElement","onLoad","onError","onUnmount","children"],ce=a.jsx(re,{});function de(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function pe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?de(Object(n),!0).forEach(function(t){_(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):de(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}N.memo(function(e){var{loadingElement:t,onLoad:n,onError:r,onUnmount:o,children:i}=e,s=ae(e,ue),{isLoaded:a,loadError:l}=function(e){var{id:t=ie.id,version:n=ie.version,nonce:r,googleMapsApiKey:o,googleMapsClientId:i,language:s,region:a,libraries:l,preventGoogleFontsLoading:u,channel:c,mapIds:d,authReferrerPolicy:p,apiUrl:f="https://maps.googleapis.com"}=e,h=N.useRef(!1),[m,g]=N.useState(!1),[v,y]=N.useState(void 0);N.useEffect(function(){return h.current=!0,()=>{h.current=!1}},[]),N.useEffect(function(){X&&u&&te()},[u]),N.useEffect(function(){m&&F(!!window.google,"useLoadScript was marked as loaded, but window.google is not present. Something went wrong.")},[m]);var b=Y({version:n,googleMapsApiKey:o,googleMapsClientId:i,language:s,region:a,libraries:l,channel:c,mapIds:d,authReferrerPolicy:p,apiUrl:f});N.useEffect(function(){function e(){h.current&&(g(!0),oe=b)}X&&(window.google&&window.google.maps&&oe===b?e():J({id:t,url:b,nonce:r}).then(e).catch(function(e){h.current&&y(e),console.warn("\n        There has been an Error with loading Google Maps API script, please check that you provided correct google API key (".concat(o||"-",") or Client ID (").concat(i||"-",")\n        Otherwise it is a Network issue.\n      ")),console.error(e)}))},[t,b,r]);var k=N.useRef(void 0);return N.useEffect(function(){k.current&&l!==k.current&&console.warn("Performance warning! LoadScript has been reloaded unintentionally! You should not pass `libraries` prop as new array. Please keep an array of libraries as static class property for Components and PureComponents, or just a const variable outside of component, or somewhere in config files or ENV variables"),k.current=l},[l]),{isLoaded:m,loadError:v,url:b}}(s);return N.useEffect(function(){a&&"function"==typeof n&&n()},[a,n]),N.useEffect(function(){l&&"function"==typeof r&&r(l)},[l,r]),N.useEffect(function(){return()=>{o&&o()}},[o]),a?i:t||ce}),"function"==typeof SuppressedError&&SuppressedError,function(e){e[e.INITIALIZED=0]="INITIALIZED",e[e.LOADING=1]="LOADING",e[e.SUCCESS=2]="SUCCESS",e[e.FAILURE=3]="FAILURE"}(le||(le={}));var fe={},he={options(e,t){e.setOptions(t)}};N.memo(function(e){var{options:t,onLoad:n,onUnmount:r}=e,o=N.useContext(U),[i,s]=N.useState(null);return N.useEffect(()=>{null!==i&&i.setMap(o)},[o]),N.useEffect(()=>{t&&null!==i&&i.setOptions(t)},[i,t]),N.useEffect(()=>{var e=new google.maps.TrafficLayer(pe(pe({},t),{},{map:o}));return s(e),n&&n(e),()=>{null!==i&&(r&&r(i),i.setMap(null))}},[]),null});class me extends N.PureComponent{constructor(){super(...arguments),_(this,"state",{trafficLayer:null}),_(this,"setTrafficLayerCallback",()=>{null!==this.state.trafficLayer&&this.props.onLoad&&this.props.onLoad(this.state.trafficLayer)}),_(this,"registeredEvents",[])}componentDidMount(){var e=new google.maps.TrafficLayer(pe(pe({},this.props.options),{},{map:this.context}));this.registeredEvents=W({updaterMap:he,eventMap:fe,prevProps:{},nextProps:this.props,instance:e}),this.setState(function(){return{trafficLayer:e}},this.setTrafficLayerCallback)}componentDidUpdate(e){null!==this.state.trafficLayer&&($(this.registeredEvents),this.registeredEvents=W({updaterMap:he,eventMap:fe,prevProps:e,nextProps:this.props,instance:this.state.trafficLayer}))}componentWillUnmount(){null!==this.state.trafficLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.trafficLayer),$(this.registeredEvents),this.state.trafficLayer.setMap(null))}render(){return null}}_(me,"contextType",U),N.memo(function(e){var{onLoad:t,onUnmount:n}=e,r=N.useContext(U),[o,i]=N.useState(null);return N.useEffect(()=>{null!==o&&o.setMap(r)},[r]),N.useEffect(()=>{var e=new google.maps.BicyclingLayer;return i(e),e.setMap(r),t&&t(e),()=>{null!==e&&(n&&n(e),e.setMap(null))}},[]),null});class ge extends N.PureComponent{constructor(){super(...arguments),_(this,"state",{bicyclingLayer:null}),_(this,"setBicyclingLayerCallback",()=>{null!==this.state.bicyclingLayer&&(this.state.bicyclingLayer.setMap(this.context),this.props.onLoad&&this.props.onLoad(this.state.bicyclingLayer))})}componentDidMount(){var e=new google.maps.BicyclingLayer;this.setState(()=>({bicyclingLayer:e}),this.setBicyclingLayerCallback)}componentWillUnmount(){null!==this.state.bicyclingLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.bicyclingLayer),this.state.bicyclingLayer.setMap(null))}render(){return null}}_(ge,"contextType",U),N.memo(function(e){var{onLoad:t,onUnmount:n}=e,r=N.useContext(U),[o,i]=N.useState(null);return N.useEffect(()=>{null!==o&&o.setMap(r)},[r]),N.useEffect(()=>{var e=new google.maps.TransitLayer;return i(e),e.setMap(r),t&&t(e),()=>{null!==o&&(n&&n(o),o.setMap(null))}},[]),null});class ve extends N.PureComponent{constructor(){super(...arguments),_(this,"state",{transitLayer:null}),_(this,"setTransitLayerCallback",()=>{null!==this.state.transitLayer&&(this.state.transitLayer.setMap(this.context),this.props.onLoad&&this.props.onLoad(this.state.transitLayer))})}componentDidMount(){var e=new google.maps.TransitLayer;this.setState(function(){return{transitLayer:e}},this.setTransitLayerCallback)}componentWillUnmount(){null!==this.state.transitLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.transitLayer),this.state.transitLayer.setMap(null))}render(){return null}}function ye(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function be(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ye(Object(n),!0).forEach(function(t){_(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ye(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}_(ve,"contextType",U);var ke={onCircleComplete:"circlecomplete",onMarkerComplete:"markercomplete",onOverlayComplete:"overlaycomplete",onPolygonComplete:"polygoncomplete",onPolylineComplete:"polylinecomplete",onRectangleComplete:"rectanglecomplete"},xe={drawingMode(e,t){e.setDrawingMode(t)},options(e,t){e.setOptions(t)}};N.memo(function(e){var{options:t,drawingMode:n,onCircleComplete:r,onMarkerComplete:o,onOverlayComplete:i,onPolygonComplete:s,onPolylineComplete:a,onRectangleComplete:l,onLoad:u,onUnmount:c}=e,d=N.useContext(U),[p,f]=N.useState(null),[h,m]=N.useState(null),[g,v]=N.useState(null),[y,b]=N.useState(null),[k,x]=N.useState(null),[w,S]=N.useState(null),[C,E]=N.useState(null);return N.useEffect(()=>{null!==p&&p.setMap(d)},[d]),N.useEffect(()=>{t&&null!==p&&p.setOptions(t)},[p,t]),N.useEffect(()=>{null!==p&&p.setDrawingMode(null!=n?n:null)},[p,n]),N.useEffect(()=>{p&&r&&(null!==h&&google.maps.event.removeListener(h),m(google.maps.event.addListener(p,"circlecomplete",r)))},[p,r]),N.useEffect(()=>{p&&o&&(null!==g&&google.maps.event.removeListener(g),v(google.maps.event.addListener(p,"markercomplete",o)))},[p,o]),N.useEffect(()=>{p&&i&&(null!==y&&google.maps.event.removeListener(y),b(google.maps.event.addListener(p,"overlaycomplete",i)))},[p,i]),N.useEffect(()=>{p&&s&&(null!==k&&google.maps.event.removeListener(k),x(google.maps.event.addListener(p,"polygoncomplete",s)))},[p,s]),N.useEffect(()=>{p&&a&&(null!==w&&google.maps.event.removeListener(w),S(google.maps.event.addListener(p,"polylinecomplete",a)))},[p,a]),N.useEffect(()=>{p&&l&&(null!==C&&google.maps.event.removeListener(C),E(google.maps.event.addListener(p,"rectanglecomplete",l)))},[p,l]),N.useEffect(()=>{F(!!google.maps.drawing,"Did you include prop libraries={['drawing']} in the URL? %s",google.maps.drawing);var e=new google.maps.drawing.DrawingManager(be(be({},t),{},{map:d}));return n&&e.setDrawingMode(n),r&&m(google.maps.event.addListener(e,"circlecomplete",r)),o&&v(google.maps.event.addListener(e,"markercomplete",o)),i&&b(google.maps.event.addListener(e,"overlaycomplete",i)),s&&x(google.maps.event.addListener(e,"polygoncomplete",s)),a&&S(google.maps.event.addListener(e,"polylinecomplete",a)),l&&E(google.maps.event.addListener(e,"rectanglecomplete",l)),f(e),u&&u(e),()=>{null!==p&&(h&&google.maps.event.removeListener(h),g&&google.maps.event.removeListener(g),y&&google.maps.event.removeListener(y),k&&google.maps.event.removeListener(k),w&&google.maps.event.removeListener(w),C&&google.maps.event.removeListener(C),c&&c(p),p.setMap(null))}},[]),null});class we extends N.PureComponent{constructor(e){super(e),_(this,"registeredEvents",[]),_(this,"state",{drawingManager:null}),_(this,"setDrawingManagerCallback",()=>{null!==this.state.drawingManager&&this.props.onLoad&&this.props.onLoad(this.state.drawingManager)}),F(!!google.maps.drawing,"Did you include prop libraries={['drawing']} in the URL? %s",google.maps.drawing)}componentDidMount(){var e=new google.maps.drawing.DrawingManager(be(be({},this.props.options),{},{map:this.context}));this.registeredEvents=W({updaterMap:xe,eventMap:ke,prevProps:{},nextProps:this.props,instance:e}),this.setState(function(){return{drawingManager:e}},this.setDrawingManagerCallback)}componentDidUpdate(e){null!==this.state.drawingManager&&($(this.registeredEvents),this.registeredEvents=W({updaterMap:xe,eventMap:ke,prevProps:e,nextProps:this.props,instance:this.state.drawingManager}))}componentWillUnmount(){null!==this.state.drawingManager&&(this.props.onUnmount&&this.props.onUnmount(this.state.drawingManager),$(this.registeredEvents),this.state.drawingManager.setMap(null))}render(){return null}}function Se(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ce(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Se(Object(n),!0).forEach(function(t){_(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Se(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}_(we,"contextType",U);var Ee={onAnimationChanged:"animation_changed",onClick:"click",onClickableChanged:"clickable_changed",onCursorChanged:"cursor_changed",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDraggableChanged:"draggable_changed",onDragStart:"dragstart",onFlatChanged:"flat_changed",onIconChanged:"icon_changed",onMouseDown:"mousedown",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onPositionChanged:"position_changed",onRightClick:"rightclick",onShapeChanged:"shape_changed",onTitleChanged:"title_changed",onVisibleChanged:"visible_changed",onZindexChanged:"zindex_changed"},Le={animation(e,t){e.setAnimation(t)},clickable(e,t){e.setClickable(t)},cursor(e,t){e.setCursor(t)},draggable(e,t){e.setDraggable(t)},icon(e,t){e.setIcon(t)},label(e,t){e.setLabel(t)},map(e,t){e.setMap(t)},opacity(e,t){e.setOpacity(t)},options(e,t){e.setOptions(t)},position(e,t){e.setPosition(t)},shape(e,t){e.setShape(t)},title(e,t){e.setTitle(t)},visible(e,t){e.setVisible(t)},zIndex(e,t){e.setZIndex(t)}},Pe={};N.memo(function(e){var{position:t,options:n,clusterer:r,noClustererRedraw:o,children:i,draggable:s,visible:l,animation:u,clickable:c,cursor:d,icon:p,label:f,opacity:h,shape:m,title:g,zIndex:v,onClick:y,onDblClick:b,onDrag:k,onDragEnd:x,onDragStart:w,onMouseOut:S,onMouseOver:C,onMouseUp:E,onMouseDown:L,onRightClick:P,onClickableChanged:M,onCursorChanged:O,onAnimationChanged:j,onDraggableChanged:D,onFlatChanged:I,onIconChanged:T,onPositionChanged:z,onShapeChanged:_,onTitleChanged:A,onVisibleChanged:R,onZindexChanged:F,onLoad:B,onUnmount:H}=e,V=N.useContext(U),[$,W]=N.useState(null),[q,Z]=N.useState(null),[Q,K]=N.useState(null),[G,Y]=N.useState(null),[X,J]=N.useState(null),[ee,te]=N.useState(null),[ne,re]=N.useState(null),[oe,ie]=N.useState(null),[se,ae]=N.useState(null),[le,ue]=N.useState(null),[ce,de]=N.useState(null),[pe,fe]=N.useState(null),[he,me]=N.useState(null),[ge,ve]=N.useState(null),[ye,be]=N.useState(null),[ke,xe]=N.useState(null),[we,Se]=N.useState(null),[Ee,Le]=N.useState(null),[Me,Oe]=N.useState(null),[je,Ne]=N.useState(null),[De,Ie]=N.useState(null),[Te,ze]=N.useState(null);N.useEffect(()=>{null!==$&&$.setMap(V)},[V]),N.useEffect(()=>{void 0!==n&&null!==$&&$.setOptions(n)},[$,n]),N.useEffect(()=>{void 0!==s&&null!==$&&$.setDraggable(s)},[$,s]),N.useEffect(()=>{t&&null!==$&&$.setPosition(t)},[$,t]),N.useEffect(()=>{void 0!==l&&null!==$&&$.setVisible(l)},[$,l]),N.useEffect(()=>{null==$||$.setAnimation(u)},[$,u]),N.useEffect(()=>{$&&void 0!==c&&$.setClickable(c)},[$,c]),N.useEffect(()=>{$&&void 0!==d&&$.setCursor(d)},[$,d]),N.useEffect(()=>{$&&void 0!==p&&$.setIcon(p)},[$,p]),N.useEffect(()=>{$&&void 0!==f&&$.setLabel(f)},[$,f]),N.useEffect(()=>{$&&void 0!==h&&$.setOpacity(h)},[$,h]),N.useEffect(()=>{$&&void 0!==m&&$.setShape(m)},[$,m]),N.useEffect(()=>{$&&void 0!==g&&$.setTitle(g)},[$,g]),N.useEffect(()=>{$&&void 0!==v&&$.setZIndex(v)},[$,v]),N.useEffect(()=>{$&&b&&(null!==q&&google.maps.event.removeListener(q),Z(google.maps.event.addListener($,"dblclick",b)))},[b]),N.useEffect(()=>{$&&x&&(null!==Q&&google.maps.event.removeListener(Q),K(google.maps.event.addListener($,"dragend",x)))},[x]),N.useEffect(()=>{$&&w&&(null!==G&&google.maps.event.removeListener(G),Y(google.maps.event.addListener($,"dragstart",w)))},[w]),N.useEffect(()=>{$&&L&&(null!==X&&google.maps.event.removeListener(X),J(google.maps.event.addListener($,"mousedown",L)))},[L]),N.useEffect(()=>{$&&S&&(null!==ee&&google.maps.event.removeListener(ee),te(google.maps.event.addListener($,"mouseout",S)))},[S]),N.useEffect(()=>{$&&C&&(null!==ne&&google.maps.event.removeListener(ne),re(google.maps.event.addListener($,"mouseover",C)))},[C]),N.useEffect(()=>{$&&E&&(null!==oe&&google.maps.event.removeListener(oe),ie(google.maps.event.addListener($,"mouseup",E)))},[E]),N.useEffect(()=>{$&&P&&(null!==se&&google.maps.event.removeListener(se),ae(google.maps.event.addListener($,"rightclick",P)))},[P]),N.useEffect(()=>{$&&y&&(null!==le&&google.maps.event.removeListener(le),ue(google.maps.event.addListener($,"click",y)))},[y]),N.useEffect(()=>{$&&k&&(null!==ce&&google.maps.event.removeListener(ce),de(google.maps.event.addListener($,"drag",k)))},[k]),N.useEffect(()=>{$&&M&&(null!==pe&&google.maps.event.removeListener(pe),fe(google.maps.event.addListener($,"clickable_changed",M)))},[M]),N.useEffect(()=>{$&&O&&(null!==he&&google.maps.event.removeListener(he),me(google.maps.event.addListener($,"cursor_changed",O)))},[O]),N.useEffect(()=>{$&&j&&(null!==ge&&google.maps.event.removeListener(ge),ve(google.maps.event.addListener($,"animation_changed",j)))},[j]),N.useEffect(()=>{$&&D&&(null!==ye&&google.maps.event.removeListener(ye),be(google.maps.event.addListener($,"draggable_changed",D)))},[D]),N.useEffect(()=>{$&&I&&(null!==ke&&google.maps.event.removeListener(ke),xe(google.maps.event.addListener($,"flat_changed",I)))},[I]),N.useEffect(()=>{$&&T&&(null!==we&&google.maps.event.removeListener(we),Se(google.maps.event.addListener($,"icon_changed",T)))},[T]),N.useEffect(()=>{$&&z&&(null!==Ee&&google.maps.event.removeListener(Ee),Le(google.maps.event.addListener($,"position_changed",z)))},[z]),N.useEffect(()=>{$&&_&&(null!==Me&&google.maps.event.removeListener(Me),Oe(google.maps.event.addListener($,"shape_changed",_)))},[_]),N.useEffect(()=>{$&&A&&(null!==je&&google.maps.event.removeListener(je),Ne(google.maps.event.addListener($,"title_changed",A)))},[A]),N.useEffect(()=>{$&&R&&(null!==De&&google.maps.event.removeListener(De),Ie(google.maps.event.addListener($,"visible_changed",R)))},[R]),N.useEffect(()=>{$&&F&&(null!==Te&&google.maps.event.removeListener(Te),ze(google.maps.event.addListener($,"zindex_changed",F)))},[F]),N.useEffect(()=>{var e=Ce(Ce(Ce({},n||Pe),r?Pe:{map:V}),{},{position:t}),i=new google.maps.Marker(e);return r?r.addMarker(i,!!o):i.setMap(V),t&&i.setPosition(t),void 0!==l&&i.setVisible(l),void 0!==s&&i.setDraggable(s),void 0!==c&&i.setClickable(c),"string"==typeof d&&i.setCursor(d),p&&i.setIcon(p),void 0!==f&&i.setLabel(f),void 0!==h&&i.setOpacity(h),m&&i.setShape(m),"string"==typeof g&&i.setTitle(g),"number"==typeof v&&i.setZIndex(v),b&&Z(google.maps.event.addListener(i,"dblclick",b)),x&&K(google.maps.event.addListener(i,"dragend",x)),w&&Y(google.maps.event.addListener(i,"dragstart",w)),L&&J(google.maps.event.addListener(i,"mousedown",L)),S&&te(google.maps.event.addListener(i,"mouseout",S)),C&&re(google.maps.event.addListener(i,"mouseover",C)),E&&ie(google.maps.event.addListener(i,"mouseup",E)),P&&ae(google.maps.event.addListener(i,"rightclick",P)),y&&ue(google.maps.event.addListener(i,"click",y)),k&&de(google.maps.event.addListener(i,"drag",k)),M&&fe(google.maps.event.addListener(i,"clickable_changed",M)),O&&me(google.maps.event.addListener(i,"cursor_changed",O)),j&&ve(google.maps.event.addListener(i,"animation_changed",j)),D&&be(google.maps.event.addListener(i,"draggable_changed",D)),I&&xe(google.maps.event.addListener(i,"flat_changed",I)),T&&Se(google.maps.event.addListener(i,"icon_changed",T)),z&&Le(google.maps.event.addListener(i,"position_changed",z)),_&&Oe(google.maps.event.addListener(i,"shape_changed",_)),A&&Ne(google.maps.event.addListener(i,"title_changed",A)),R&&Ie(google.maps.event.addListener(i,"visible_changed",R)),F&&ze(google.maps.event.addListener(i,"zindex_changed",F)),W(i),B&&B(i),()=>{null!==q&&google.maps.event.removeListener(q),null!==Q&&google.maps.event.removeListener(Q),null!==G&&google.maps.event.removeListener(G),null!==X&&google.maps.event.removeListener(X),null!==ee&&google.maps.event.removeListener(ee),null!==ne&&google.maps.event.removeListener(ne),null!==oe&&google.maps.event.removeListener(oe),null!==se&&google.maps.event.removeListener(se),null!==le&&google.maps.event.removeListener(le),null!==pe&&google.maps.event.removeListener(pe),null!==he&&google.maps.event.removeListener(he),null!==ge&&google.maps.event.removeListener(ge),null!==ye&&google.maps.event.removeListener(ye),null!==ke&&google.maps.event.removeListener(ke),null!==we&&google.maps.event.removeListener(we),null!==Ee&&google.maps.event.removeListener(Ee),null!==je&&google.maps.event.removeListener(je),null!==De&&google.maps.event.removeListener(De),null!==Te&&google.maps.event.removeListener(Te),H&&H(i),r?r.removeMarker(i,!!o):i&&i.setMap(null)}},[]);var _e=N.useMemo(()=>i?N.Children.map(i,e=>{if(!N.isValidElement(e))return e;var t=e;return N.cloneElement(t,{anchor:$})}):null,[i,$]);return a.jsx(a.Fragment,{children:_e})||null});class Me extends N.PureComponent{constructor(){super(...arguments),_(this,"registeredEvents",[])}componentDidMount(){var e=this;return G(function*(){var t=Ce(Ce(Ce({},e.props.options||Pe),e.props.clusterer?Pe:{map:e.context}),{},{position:e.props.position});e.marker=new google.maps.Marker(t),e.props.clusterer?e.props.clusterer.addMarker(e.marker,!!e.props.noClustererRedraw):e.marker.setMap(e.context),e.registeredEvents=W({updaterMap:Le,eventMap:Ee,prevProps:{},nextProps:e.props,instance:e.marker}),e.props.onLoad&&e.props.onLoad(e.marker)})()}componentDidUpdate(e){this.marker&&($(this.registeredEvents),this.registeredEvents=W({updaterMap:Le,eventMap:Ee,prevProps:e,nextProps:this.props,instance:this.marker}))}componentWillUnmount(){this.marker&&(this.props.onUnmount&&this.props.onUnmount(this.marker),$(this.registeredEvents),this.props.clusterer?this.props.clusterer.removeMarker(this.marker,!!this.props.noClustererRedraw):this.marker&&this.marker.setMap(null))}render(){return(this.props.children?N.Children.map(this.props.children,e=>{if(!N.isValidElement(e))return e;var t=e;return N.cloneElement(t,{anchor:this.marker})}):null)||null}}_(Me,"contextType",U);var Oe=function(){function e(t,n){t.getClusterer().extend(e,google.maps.OverlayView),this.cluster=t,this.clusterClassName=this.cluster.getClusterer().getClusterClass(),this.className=this.clusterClassName,this.styles=n,this.center=void 0,this.div=null,this.sums=null,this.visible=!1,this.boundsChangedListener=null,this.url="",this.height=0,this.width=0,this.anchorText=[0,0],this.anchorIcon=[0,0],this.textColor="black",this.textSize=11,this.textDecoration="none",this.fontWeight="bold",this.fontStyle="normal",this.fontFamily="Arial,sans-serif",this.backgroundPosition="0 0",this.cMouseDownInCluster=null,this.cDraggingMapByCluster=null,this.timeOut=null,this.setMap(t.getMap()),this.onBoundsChanged=this.onBoundsChanged.bind(this),this.onMouseDown=this.onMouseDown.bind(this),this.onClick=this.onClick.bind(this),this.onMouseOver=this.onMouseOver.bind(this),this.onMouseOut=this.onMouseOut.bind(this),this.onAdd=this.onAdd.bind(this),this.onRemove=this.onRemove.bind(this),this.draw=this.draw.bind(this),this.hide=this.hide.bind(this),this.show=this.show.bind(this),this.useStyle=this.useStyle.bind(this),this.setCenter=this.setCenter.bind(this),this.getPosFromLatLng=this.getPosFromLatLng.bind(this)}return e.prototype.onBoundsChanged=function(){this.cDraggingMapByCluster=this.cMouseDownInCluster},e.prototype.onMouseDown=function(){this.cMouseDownInCluster=!0,this.cDraggingMapByCluster=!1},e.prototype.onClick=function(e){if(this.cMouseDownInCluster=!1,!this.cDraggingMapByCluster){var t=this.cluster.getClusterer();if(google.maps.event.trigger(t,"click",this.cluster),google.maps.event.trigger(t,"clusterclick",this.cluster),t.getZoomOnClick()){var n=t.getMaxZoom(),r=this.cluster.getBounds(),o=t.getMap();null!==o&&"fitBounds"in o&&o.fitBounds(r),this.timeOut=window.setTimeout(function(){var e=t.getMap();if(null!==e){"fitBounds"in e&&e.fitBounds(r);var o=e.getZoom()||0;null!==n&&o>n&&e.setZoom(n+1)}},100)}e.cancelBubble=!0,e.stopPropagation&&e.stopPropagation()}},e.prototype.onMouseOver=function(){google.maps.event.trigger(this.cluster.getClusterer(),"mouseover",this.cluster)},e.prototype.onMouseOut=function(){google.maps.event.trigger(this.cluster.getClusterer(),"mouseout",this.cluster)},e.prototype.onAdd=function(){var e;this.div=document.createElement("div"),this.div.className=this.className,this.visible&&this.show(),null===(e=this.getPanes())||void 0===e||e.overlayMouseTarget.appendChild(this.div);var t=this.getMap();null!==t&&(this.boundsChangedListener=google.maps.event.addListener(t,"bounds_changed",this.onBoundsChanged),this.div.addEventListener("mousedown",this.onMouseDown),this.div.addEventListener("click",this.onClick),this.div.addEventListener("mouseover",this.onMouseOver),this.div.addEventListener("mouseout",this.onMouseOut))},e.prototype.onRemove=function(){this.div&&this.div.parentNode&&(this.hide(),null!==this.boundsChangedListener&&google.maps.event.removeListener(this.boundsChangedListener),this.div.removeEventListener("mousedown",this.onMouseDown),this.div.removeEventListener("click",this.onClick),this.div.removeEventListener("mouseover",this.onMouseOver),this.div.removeEventListener("mouseout",this.onMouseOut),this.div.parentNode.removeChild(this.div),null!==this.timeOut&&(window.clearTimeout(this.timeOut),this.timeOut=null),this.div=null)},e.prototype.draw=function(){if(this.visible&&null!==this.div&&this.center){var e=this.getPosFromLatLng(this.center);this.div.style.top=null!==e?"".concat(e.y,"px"):"0",this.div.style.left=null!==e?"".concat(e.x,"px"):"0"}},e.prototype.hide=function(){this.div&&(this.div.style.display="none"),this.visible=!1},e.prototype.show=function(){var e,t,n,r,o,i;if(this.div&&this.center){var s=null===this.sums||void 0===this.sums.title||""===this.sums.title?this.cluster.getClusterer().getTitle():this.sums.title,a=this.backgroundPosition.split(" "),l=parseInt((null===(e=a[0])||void 0===e?void 0:e.replace(/^\s+|\s+$/g,""))||"0",10),u=parseInt((null===(t=a[1])||void 0===t?void 0:t.replace(/^\s+|\s+$/g,""))||"0",10),c=this.getPosFromLatLng(this.center);this.div.className=this.className,this.div.setAttribute("style","cursor: pointer; position: absolute; top: ".concat(null!==c?"".concat(c.y,"px"):"0","; left: ").concat(null!==c?"".concat(c.x,"px"):"0","; width: ").concat(this.width,"px; height: ").concat(this.height,"px; "));var d=document.createElement("img");d.alt=s,d.src=this.url,d.width=this.width,d.height=this.height,d.setAttribute("style","position: absolute; top: ".concat(u,"px; left: ").concat(l,"px")),this.cluster.getClusterer().enableRetinaIcons||(d.style.clip="rect(-".concat(u,"px, -").concat(l+this.width,"px, -").concat(u+this.height,", -").concat(l,")"));var p=document.createElement("div");p.setAttribute("style","position: absolute; top: ".concat(this.anchorText[0],"px; left: ").concat(this.anchorText[1],"px; color: ").concat(this.textColor,"; font-size: ").concat(this.textSize,"px; font-family: ").concat(this.fontFamily,"; font-weight: ").concat(this.fontWeight,"; fontStyle: ").concat(this.fontStyle,"; text-decoration: ").concat(this.textDecoration,"; text-align: center; width: ").concat(this.width,"px; line-height: ").concat(this.height,"px")),(null===(n=this.sums)||void 0===n?void 0:n.text)&&(p.innerText="".concat(null===(r=this.sums)||void 0===r?void 0:r.text)),(null===(o=this.sums)||void 0===o?void 0:o.html)&&(p.innerHTML="".concat(null===(i=this.sums)||void 0===i?void 0:i.html)),this.div.innerHTML="",this.div.appendChild(d),this.div.appendChild(p),this.div.title=s,this.div.style.display=""}this.visible=!0},e.prototype.useStyle=function(e){this.sums=e;var t=this.cluster.getClusterer().getStyles(),n=t[Math.min(t.length-1,Math.max(0,e.index-1))];n&&(this.url=n.url,this.height=n.height,this.width=n.width,n.className&&(this.className="".concat(this.clusterClassName," ").concat(n.className)),this.anchorText=n.anchorText||[0,0],this.anchorIcon=n.anchorIcon||[this.height/2,this.width/2],this.textColor=n.textColor||"black",this.textSize=n.textSize||11,this.textDecoration=n.textDecoration||"none",this.fontWeight=n.fontWeight||"bold",this.fontStyle=n.fontStyle||"normal",this.fontFamily=n.fontFamily||"Arial,sans-serif",this.backgroundPosition=n.backgroundPosition||"0 0")},e.prototype.setCenter=function(e){this.center=e},e.prototype.getPosFromLatLng=function(e){var t=this.getProjection().fromLatLngToDivPixel(e);return null!==t&&(t.x-=this.anchorIcon[1],t.y-=this.anchorIcon[0]),t},e}(),je=function(){function e(e){this.markerClusterer=e,this.map=this.markerClusterer.getMap(),this.gridSize=this.markerClusterer.getGridSize(),this.minClusterSize=this.markerClusterer.getMinimumClusterSize(),this.averageCenter=this.markerClusterer.getAverageCenter(),this.markers=[],this.center=void 0,this.bounds=null,this.clusterIcon=new Oe(this,this.markerClusterer.getStyles()),this.getSize=this.getSize.bind(this),this.getMarkers=this.getMarkers.bind(this),this.getCenter=this.getCenter.bind(this),this.getMap=this.getMap.bind(this),this.getClusterer=this.getClusterer.bind(this),this.getBounds=this.getBounds.bind(this),this.remove=this.remove.bind(this),this.addMarker=this.addMarker.bind(this),this.isMarkerInClusterBounds=this.isMarkerInClusterBounds.bind(this),this.calculateBounds=this.calculateBounds.bind(this),this.updateIcon=this.updateIcon.bind(this),this.isMarkerAlreadyAdded=this.isMarkerAlreadyAdded.bind(this)}return e.prototype.getSize=function(){return this.markers.length},e.prototype.getMarkers=function(){return this.markers},e.prototype.getCenter=function(){return this.center},e.prototype.getMap=function(){return this.map},e.prototype.getClusterer=function(){return this.markerClusterer},e.prototype.getBounds=function(){for(var e=new google.maps.LatLngBounds(this.center,this.center),t=0,n=this.getMarkers();t<n.length;t++){var r=n[t].getPosition();r&&e.extend(r)}return e},e.prototype.remove=function(){this.clusterIcon.setMap(null),this.markers=[],delete this.markers},e.prototype.addMarker=function(e){var t,n;if(this.isMarkerAlreadyAdded(e))return!1;if(this.center){if(this.averageCenter&&(n=e.getPosition())){var r=this.markers.length+1;this.center=new google.maps.LatLng((this.center.lat()*(r-1)+n.lat())/r,(this.center.lng()*(r-1)+n.lng())/r),this.calculateBounds()}}else(n=e.getPosition())&&(this.center=n,this.calculateBounds());e.isAdded=!0,this.markers.push(e);var o=this.markers.length,i=this.markerClusterer.getMaxZoom(),s=null===(t=this.map)||void 0===t?void 0:t.getZoom();if(null!==i&&void 0!==s&&s>i)e.getMap()!==this.map&&e.setMap(this.map);else if(o<this.minClusterSize)e.getMap()!==this.map&&e.setMap(this.map);else if(o===this.minClusterSize)for(var a=0,l=this.markers;a<l.length;a++){l[a].setMap(null)}else e.setMap(null);return!0},e.prototype.isMarkerInClusterBounds=function(e){if(null!==this.bounds){var t=e.getPosition();if(t)return this.bounds.contains(t)}return!1},e.prototype.calculateBounds=function(){this.bounds=this.markerClusterer.getExtendedBounds(new google.maps.LatLngBounds(this.center,this.center))},e.prototype.updateIcon=function(){var e,t=this.markers.length,n=this.markerClusterer.getMaxZoom(),r=null===(e=this.map)||void 0===e?void 0:e.getZoom();null!==n&&void 0!==r&&r>n||t<this.minClusterSize?this.clusterIcon.hide():(this.center&&this.clusterIcon.setCenter(this.center),this.clusterIcon.useStyle(this.markerClusterer.getCalculator()(this.markers,this.markerClusterer.getStyles().length)),this.clusterIcon.show())},e.prototype.isMarkerAlreadyAdded=function(e){if(this.markers.includes)return this.markers.includes(e);for(var t=0;t<this.markers.length;t++)if(e===this.markers[t])return!0;return!1},e}();function Ne(e,t){var n=e.length,r=n.toString().length,o=Math.min(r,t);return{text:n.toString(),index:o,title:""}}var De=[53,56,66,78,90],Ie=function(){function e(t,n,r){void 0===n&&(n=[]),void 0===r&&(r={}),this.getMinimumClusterSize=this.getMinimumClusterSize.bind(this),this.setMinimumClusterSize=this.setMinimumClusterSize.bind(this),this.getEnableRetinaIcons=this.getEnableRetinaIcons.bind(this),this.setEnableRetinaIcons=this.setEnableRetinaIcons.bind(this),this.addToClosestCluster=this.addToClosestCluster.bind(this),this.getImageExtension=this.getImageExtension.bind(this),this.setImageExtension=this.setImageExtension.bind(this),this.getExtendedBounds=this.getExtendedBounds.bind(this),this.getAverageCenter=this.getAverageCenter.bind(this),this.setAverageCenter=this.setAverageCenter.bind(this),this.getTotalClusters=this.getTotalClusters.bind(this),this.fitMapToMarkers=this.fitMapToMarkers.bind(this),this.getIgnoreHidden=this.getIgnoreHidden.bind(this),this.setIgnoreHidden=this.setIgnoreHidden.bind(this),this.getClusterClass=this.getClusterClass.bind(this),this.setClusterClass=this.setClusterClass.bind(this),this.getTotalMarkers=this.getTotalMarkers.bind(this),this.getZoomOnClick=this.getZoomOnClick.bind(this),this.setZoomOnClick=this.setZoomOnClick.bind(this),this.getBatchSizeIE=this.getBatchSizeIE.bind(this),this.setBatchSizeIE=this.setBatchSizeIE.bind(this),this.createClusters=this.createClusters.bind(this),this.onZoomChanged=this.onZoomChanged.bind(this),this.getImageSizes=this.getImageSizes.bind(this),this.setImageSizes=this.setImageSizes.bind(this),this.getCalculator=this.getCalculator.bind(this),this.setCalculator=this.setCalculator.bind(this),this.removeMarkers=this.removeMarkers.bind(this),this.resetViewport=this.resetViewport.bind(this),this.getImagePath=this.getImagePath.bind(this),this.setImagePath=this.setImagePath.bind(this),this.pushMarkerTo=this.pushMarkerTo.bind(this),this.removeMarker=this.removeMarker.bind(this),this.clearMarkers=this.clearMarkers.bind(this),this.setupStyles=this.setupStyles.bind(this),this.getGridSize=this.getGridSize.bind(this),this.setGridSize=this.setGridSize.bind(this),this.getClusters=this.getClusters.bind(this),this.getMaxZoom=this.getMaxZoom.bind(this),this.setMaxZoom=this.setMaxZoom.bind(this),this.getMarkers=this.getMarkers.bind(this),this.addMarkers=this.addMarkers.bind(this),this.getStyles=this.getStyles.bind(this),this.setStyles=this.setStyles.bind(this),this.addMarker=this.addMarker.bind(this),this.onRemove=this.onRemove.bind(this),this.getTitle=this.getTitle.bind(this),this.setTitle=this.setTitle.bind(this),this.repaint=this.repaint.bind(this),this.onIdle=this.onIdle.bind(this),this.redraw=this.redraw.bind(this),this.onAdd=this.onAdd.bind(this),this.draw=this.draw.bind(this),this.extend=this.extend.bind(this),this.extend(e,google.maps.OverlayView),this.markers=[],this.clusters=[],this.listeners=[],this.activeMap=null,this.ready=!1,this.gridSize=r.gridSize||60,this.minClusterSize=r.minimumClusterSize||2,this.maxZoom=r.maxZoom||null,this.styles=r.styles||[],this.title=r.title||"",this.zoomOnClick=!0,void 0!==r.zoomOnClick&&(this.zoomOnClick=r.zoomOnClick),this.averageCenter=!1,void 0!==r.averageCenter&&(this.averageCenter=r.averageCenter),this.ignoreHidden=!1,void 0!==r.ignoreHidden&&(this.ignoreHidden=r.ignoreHidden),this.enableRetinaIcons=!1,void 0!==r.enableRetinaIcons&&(this.enableRetinaIcons=r.enableRetinaIcons),this.imagePath=r.imagePath||"https://developers.google.com/maps/documentation/javascript/examples/markerclusterer/m",this.imageExtension=r.imageExtension||"png",this.imageSizes=r.imageSizes||De,this.calculator=r.calculator||Ne,this.batchSize=r.batchSize||2e3,this.batchSizeIE=r.batchSizeIE||500,this.clusterClass=r.clusterClass||"cluster",-1!==navigator.userAgent.toLowerCase().indexOf("msie")&&(this.batchSize=this.batchSizeIE),this.timerRefStatic=null,this.setupStyles(),this.addMarkers(n,!0),this.setMap(t)}return e.prototype.onZoomChanged=function(){var e,t;this.resetViewport(!1),(null===(e=this.getMap())||void 0===e?void 0:e.getZoom())!==(this.get("minZoom")||0)&&(null===(t=this.getMap())||void 0===t?void 0:t.getZoom())!==this.get("maxZoom")||google.maps.event.trigger(this,"idle")},e.prototype.onIdle=function(){this.redraw()},e.prototype.onAdd=function(){var e=this.getMap();this.activeMap=e,this.ready=!0,this.repaint(),null!==e&&(this.listeners=[google.maps.event.addListener(e,"zoom_changed",this.onZoomChanged),google.maps.event.addListener(e,"idle",this.onIdle)])},e.prototype.onRemove=function(){for(var e=0,t=this.markers;e<t.length;e++){var n=t[e];n.getMap()!==this.activeMap&&n.setMap(this.activeMap)}for(var r=0,o=this.clusters;r<o.length;r++){o[r].remove()}this.clusters=[];for(var i=0,s=this.listeners;i<s.length;i++){var a=s[i];google.maps.event.removeListener(a)}this.listeners=[],this.activeMap=null,this.ready=!1},e.prototype.draw=function(){},e.prototype.getMap=function(){return null},e.prototype.getPanes=function(){return null},e.prototype.getProjection=function(){return{fromContainerPixelToLatLng:function(){return null},fromDivPixelToLatLng:function(){return null},fromLatLngToContainerPixel:function(){return null},fromLatLngToDivPixel:function(){return null},getVisibleRegion:function(){return null},getWorldWidth:function(){return 0}}},e.prototype.setMap=function(){},e.prototype.addListener=function(){return{remove:function(){}}},e.prototype.bindTo=function(){},e.prototype.get=function(){},e.prototype.notify=function(){},e.prototype.set=function(){},e.prototype.setValues=function(){},e.prototype.unbind=function(){},e.prototype.unbindAll=function(){},e.prototype.setupStyles=function(){if(!(this.styles.length>0))for(var e=0;e<this.imageSizes.length;e++)this.styles.push({url:"".concat(this.imagePath+(e+1),".").concat(this.imageExtension),height:this.imageSizes[e]||0,width:this.imageSizes[e]||0})},e.prototype.fitMapToMarkers=function(){for(var e=this.getMarkers(),t=new google.maps.LatLngBounds,n=0,r=e;n<r.length;n++){var o=r[n].getPosition();o&&t.extend(o)}var i=this.getMap();null!==i&&"fitBounds"in i&&i.fitBounds(t)},e.prototype.getGridSize=function(){return this.gridSize},e.prototype.setGridSize=function(e){this.gridSize=e},e.prototype.getMinimumClusterSize=function(){return this.minClusterSize},e.prototype.setMinimumClusterSize=function(e){this.minClusterSize=e},e.prototype.getMaxZoom=function(){return this.maxZoom},e.prototype.setMaxZoom=function(e){this.maxZoom=e},e.prototype.getStyles=function(){return this.styles},e.prototype.setStyles=function(e){this.styles=e},e.prototype.getTitle=function(){return this.title},e.prototype.setTitle=function(e){this.title=e},e.prototype.getZoomOnClick=function(){return this.zoomOnClick},e.prototype.setZoomOnClick=function(e){this.zoomOnClick=e},e.prototype.getAverageCenter=function(){return this.averageCenter},e.prototype.setAverageCenter=function(e){this.averageCenter=e},e.prototype.getIgnoreHidden=function(){return this.ignoreHidden},e.prototype.setIgnoreHidden=function(e){this.ignoreHidden=e},e.prototype.getEnableRetinaIcons=function(){return this.enableRetinaIcons},e.prototype.setEnableRetinaIcons=function(e){this.enableRetinaIcons=e},e.prototype.getImageExtension=function(){return this.imageExtension},e.prototype.setImageExtension=function(e){this.imageExtension=e},e.prototype.getImagePath=function(){return this.imagePath},e.prototype.setImagePath=function(e){this.imagePath=e},e.prototype.getImageSizes=function(){return this.imageSizes},e.prototype.setImageSizes=function(e){this.imageSizes=e},e.prototype.getCalculator=function(){return this.calculator},e.prototype.setCalculator=function(e){this.calculator=e},e.prototype.getBatchSizeIE=function(){return this.batchSizeIE},e.prototype.setBatchSizeIE=function(e){this.batchSizeIE=e},e.prototype.getClusterClass=function(){return this.clusterClass},e.prototype.setClusterClass=function(e){this.clusterClass=e},e.prototype.getMarkers=function(){return this.markers},e.prototype.getTotalMarkers=function(){return this.markers.length},e.prototype.getClusters=function(){return this.clusters},e.prototype.getTotalClusters=function(){return this.clusters.length},e.prototype.addMarker=function(e,t){this.pushMarkerTo(e),t||this.redraw()},e.prototype.addMarkers=function(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=e[n];r&&this.pushMarkerTo(r)}t||this.redraw()},e.prototype.pushMarkerTo=function(e){var t=this;e.getDraggable()&&google.maps.event.addListener(e,"dragend",function(){t.ready&&(e.isAdded=!1,t.repaint())}),e.isAdded=!1,this.markers.push(e)},e.prototype.removeMarker_=function(e){var t=-1;if(this.markers.indexOf)t=this.markers.indexOf(e);else for(var n=0;n<this.markers.length;n++)if(e===this.markers[n]){t=n;break}return-1!==t&&(e.setMap(null),this.markers.splice(t,1),!0)},e.prototype.removeMarker=function(e,t){var n=this.removeMarker_(e);return!t&&n&&this.repaint(),n},e.prototype.removeMarkers=function(e,t){for(var n=!1,r=0,o=e;r<o.length;r++){var i=o[r];n=n||this.removeMarker_(i)}return!t&&n&&this.repaint(),n},e.prototype.clearMarkers=function(){this.resetViewport(!0),this.markers=[]},e.prototype.repaint=function(){var e=this.clusters.slice();this.clusters=[],this.resetViewport(!1),this.redraw(),setTimeout(function(){for(var t=0,n=e;t<n.length;t++){n[t].remove()}},0)},e.prototype.getExtendedBounds=function(e){var t=this.getProjection(),n=t.fromLatLngToDivPixel(new google.maps.LatLng(e.getNorthEast().lat(),e.getNorthEast().lng()));null!==n&&(n.x+=this.gridSize,n.y-=this.gridSize);var r=t.fromLatLngToDivPixel(new google.maps.LatLng(e.getSouthWest().lat(),e.getSouthWest().lng()));if(null!==r&&(r.x-=this.gridSize,r.y+=this.gridSize),null!==n){var o=t.fromDivPixelToLatLng(n);null!==o&&e.extend(o)}if(null!==r){var i=t.fromDivPixelToLatLng(r);null!==i&&e.extend(i)}return e},e.prototype.redraw=function(){this.createClusters(0)},e.prototype.resetViewport=function(e){for(var t=0,n=this.clusters;t<n.length;t++){n[t].remove()}this.clusters=[];for(var r=0,o=this.markers;r<o.length;r++){var i=o[r];i.isAdded=!1,e&&i.setMap(null)}},e.prototype.distanceBetweenPoints=function(e,t){var n=(t.lat()-e.lat())*Math.PI/180,r=(t.lng()-e.lng())*Math.PI/180,o=Math.sin(n/2)*Math.sin(n/2)+Math.cos(e.lat()*Math.PI/180)*Math.cos(t.lat()*Math.PI/180)*Math.sin(r/2)*Math.sin(r/2);return 2*Math.atan2(Math.sqrt(o),Math.sqrt(1-o))*6371},e.prototype.isMarkerInBounds=function(e,t){var n=e.getPosition();return!!n&&t.contains(n)},e.prototype.addToClosestCluster=function(e){for(var t,n=4e4,r=null,o=0,i=this.clusters;o<i.length;o++){var s=(t=i[o]).getCenter(),a=e.getPosition();if(s&&a){var l=this.distanceBetweenPoints(s,a);l<n&&(n=l,r=t)}}r&&r.isMarkerInClusterBounds(e)?r.addMarker(e):((t=new je(this)).addMarker(e),this.clusters.push(t))},e.prototype.createClusters=function(e){var t=this;if(this.ready){0===e&&(google.maps.event.trigger(this,"clusteringbegin",this),null!==this.timerRefStatic&&(window.clearTimeout(this.timerRefStatic),delete this.timerRefStatic));for(var n=this.getMap(),r=(null!==n&&"getBounds"in n?n.getBounds():null),o=((null==n?void 0:n.getZoom())||0)>3?new google.maps.LatLngBounds(null==r?void 0:r.getSouthWest(),null==r?void 0:r.getNorthEast()):new google.maps.LatLngBounds(new google.maps.LatLng(85.02070771743472,-178.48388434375),new google.maps.LatLng(-85.08136444384544,178.00048865625)),i=this.getExtendedBounds(o),s=Math.min(e+this.batchSize,this.markers.length),a=e;a<s;a++){var l=this.markers[a];l&&!l.isAdded&&this.isMarkerInBounds(l,i)&&(!this.ignoreHidden||this.ignoreHidden&&l.getVisible())&&this.addToClosestCluster(l)}if(s<this.markers.length)this.timerRefStatic=window.setTimeout(function(){t.createClusters(s)},0);else{this.timerRefStatic=null,google.maps.event.trigger(this,"clusteringend",this);for(var u=0,c=this.clusters;u<c.length;u++){c[u].updateIcon()}}}},e.prototype.extend=function(e,t){return function(e){for(var t in e.prototype){var n=t;this.prototype[n]=e.prototype[n]}return this}.apply(e,[t])},e}();function Te(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var ze={onClick:"click",onClusteringBegin:"clusteringbegin",onClusteringEnd:"clusteringend",onMouseOut:"mouseout",onMouseOver:"mouseover"},_e={averageCenter(e,t){e.setAverageCenter(t)},batchSizeIE(e,t){e.setBatchSizeIE(t)},calculator(e,t){e.setCalculator(t)},clusterClass(e,t){e.setClusterClass(t)},enableRetinaIcons(e,t){e.setEnableRetinaIcons(t)},gridSize(e,t){e.setGridSize(t)},ignoreHidden(e,t){e.setIgnoreHidden(t)},imageExtension(e,t){e.setImageExtension(t)},imagePath(e,t){e.setImagePath(t)},imageSizes(e,t){e.setImageSizes(t)},maxZoom(e,t){e.setMaxZoom(t)},minimumClusterSize(e,t){e.setMinimumClusterSize(t)},styles(e,t){e.setStyles(t)},title(e,t){e.setTitle(t)},zoomOnClick(e,t){e.setZoomOnClick(t)}},Ae={};N.memo(function(e){var{children:t,options:n,averageCenter:r,batchSizeIE:o,calculator:i,clusterClass:s,enableRetinaIcons:a,gridSize:l,ignoreHidden:u,imageExtension:c,imagePath:d,imageSizes:p,maxZoom:f,minimumClusterSize:h,styles:m,title:g,zoomOnClick:v,onClick:y,onClusteringBegin:b,onClusteringEnd:k,onMouseOver:x,onMouseOut:w,onLoad:S,onUnmount:C}=e,[E,L]=N.useState(null),P=N.useContext(U),[M,O]=N.useState(null),[j,D]=N.useState(null),[I,T]=N.useState(null),[z,A]=N.useState(null),[R,F]=N.useState(null);return N.useEffect(()=>{E&&w&&(null!==z&&google.maps.event.removeListener(z),A(google.maps.event.addListener(E,ze.onMouseOut,w)))},[w]),N.useEffect(()=>{E&&x&&(null!==R&&google.maps.event.removeListener(R),F(google.maps.event.addListener(E,ze.onMouseOver,x)))},[x]),N.useEffect(()=>{E&&y&&(null!==M&&google.maps.event.removeListener(M),O(google.maps.event.addListener(E,ze.onClick,y)))},[y]),N.useEffect(()=>{E&&b&&(null!==j&&google.maps.event.removeListener(j),D(google.maps.event.addListener(E,ze.onClusteringBegin,b)))},[b]),N.useEffect(()=>{E&&k&&(null!==I&&google.maps.event.removeListener(I),D(google.maps.event.addListener(E,ze.onClusteringEnd,k)))},[k]),N.useEffect(()=>{void 0!==r&&null!==E&&_e.averageCenter(E,r)},[E,r]),N.useEffect(()=>{void 0!==o&&null!==E&&_e.batchSizeIE(E,o)},[E,o]),N.useEffect(()=>{void 0!==i&&null!==E&&_e.calculator(E,i)},[E,i]),N.useEffect(()=>{void 0!==s&&null!==E&&_e.clusterClass(E,s)},[E,s]),N.useEffect(()=>{void 0!==a&&null!==E&&_e.enableRetinaIcons(E,a)},[E,a]),N.useEffect(()=>{void 0!==l&&null!==E&&_e.gridSize(E,l)},[E,l]),N.useEffect(()=>{void 0!==u&&null!==E&&_e.ignoreHidden(E,u)},[E,u]),N.useEffect(()=>{void 0!==c&&null!==E&&_e.imageExtension(E,c)},[E,c]),N.useEffect(()=>{void 0!==d&&null!==E&&_e.imagePath(E,d)},[E,d]),N.useEffect(()=>{void 0!==p&&null!==E&&_e.imageSizes(E,p)},[E,p]),N.useEffect(()=>{void 0!==f&&null!==E&&_e.maxZoom(E,f)},[E,f]),N.useEffect(()=>{void 0!==h&&null!==E&&_e.minimumClusterSize(E,h)},[E,h]),N.useEffect(()=>{void 0!==m&&null!==E&&_e.styles(E,m)},[E,m]),N.useEffect(()=>{void 0!==g&&null!==E&&_e.title(E,g)},[E,g]),N.useEffect(()=>{void 0!==v&&null!==E&&_e.zoomOnClick(E,v)},[E,v]),N.useEffect(()=>{if(P){var e=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Te(Object(n),!0).forEach(function(t){_(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Te(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},n||Ae),t=new Ie(P,[],e);return r&&_e.averageCenter(t,r),o&&_e.batchSizeIE(t,o),i&&_e.calculator(t,i),s&&_e.clusterClass(t,s),a&&_e.enableRetinaIcons(t,a),l&&_e.gridSize(t,l),u&&_e.ignoreHidden(t,u),c&&_e.imageExtension(t,c),d&&_e.imagePath(t,d),p&&_e.imageSizes(t,p),f&&_e.maxZoom(t,f),h&&_e.minimumClusterSize(t,h),m&&_e.styles(t,m),g&&_e.title(t,g),v&&_e.zoomOnClick(t,v),w&&A(google.maps.event.addListener(t,ze.onMouseOut,w)),x&&F(google.maps.event.addListener(t,ze.onMouseOver,x)),y&&O(google.maps.event.addListener(t,ze.onClick,y)),b&&D(google.maps.event.addListener(t,ze.onClusteringBegin,b)),k&&T(google.maps.event.addListener(t,ze.onClusteringEnd,k)),L(t),S&&S(t),()=>{null!==z&&google.maps.event.removeListener(z),null!==R&&google.maps.event.removeListener(R),null!==M&&google.maps.event.removeListener(M),null!==j&&google.maps.event.removeListener(j),null!==I&&google.maps.event.removeListener(I),C&&C(t)}}},[]),null!==E&&t(E)||null});class Re extends N.PureComponent{constructor(){super(...arguments),_(this,"registeredEvents",[]),_(this,"state",{markerClusterer:null}),_(this,"setClustererCallback",()=>{null!==this.state.markerClusterer&&this.props.onLoad&&this.props.onLoad(this.state.markerClusterer)})}componentDidMount(){if(this.context){var e=new Ie(this.context,[],this.props.options);this.registeredEvents=W({updaterMap:_e,eventMap:ze,prevProps:{},nextProps:this.props,instance:e}),this.setState(()=>({markerClusterer:e}),this.setClustererCallback)}}componentDidUpdate(e){this.state.markerClusterer&&($(this.registeredEvents),this.registeredEvents=W({updaterMap:_e,eventMap:ze,prevProps:e,nextProps:this.props,instance:this.state.markerClusterer}))}componentWillUnmount(){null!==this.state.markerClusterer&&(this.props.onUnmount&&this.props.onUnmount(this.state.markerClusterer),$(this.registeredEvents),this.state.markerClusterer.setMap(null))}render(){return null!==this.state.markerClusterer?this.props.children(this.state.markerClusterer):null}}function Fe(e){e.cancelBubble=!0,e.stopPropagation&&e.stopPropagation()}_(Re,"contextType",U);var Ue=function(){function e(t){void 0===t&&(t={}),this.getCloseClickHandler=this.getCloseClickHandler.bind(this),this.closeClickHandler=this.closeClickHandler.bind(this),this.createInfoBoxDiv=this.createInfoBoxDiv.bind(this),this.addClickHandler=this.addClickHandler.bind(this),this.getCloseBoxImg=this.getCloseBoxImg.bind(this),this.getBoxWidths=this.getBoxWidths.bind(this),this.setBoxStyle=this.setBoxStyle.bind(this),this.setPosition=this.setPosition.bind(this),this.getPosition=this.getPosition.bind(this),this.setOptions=this.setOptions.bind(this),this.setContent=this.setContent.bind(this),this.setVisible=this.setVisible.bind(this),this.getContent=this.getContent.bind(this),this.getVisible=this.getVisible.bind(this),this.setZIndex=this.setZIndex.bind(this),this.getZIndex=this.getZIndex.bind(this),this.onRemove=this.onRemove.bind(this),this.panBox=this.panBox.bind(this),this.extend=this.extend.bind(this),this.close=this.close.bind(this),this.draw=this.draw.bind(this),this.show=this.show.bind(this),this.hide=this.hide.bind(this),this.open=this.open.bind(this),this.extend(e,google.maps.OverlayView),this.content=t.content||"",this.disableAutoPan=t.disableAutoPan||!1,this.maxWidth=t.maxWidth||0,this.pixelOffset=t.pixelOffset||new google.maps.Size(0,0),this.position=t.position||new google.maps.LatLng(0,0),this.zIndex=t.zIndex||null,this.boxClass=t.boxClass||"infoBox",this.boxStyle=t.boxStyle||{},this.closeBoxMargin=t.closeBoxMargin||"2px",this.closeBoxURL=t.closeBoxURL||"http://www.google.com/intl/en_us/mapfiles/close.gif",""===t.closeBoxURL&&(this.closeBoxURL=""),this.infoBoxClearance=t.infoBoxClearance||new google.maps.Size(1,1),void 0===t.visible&&(void 0===t.isHidden?t.visible=!0:t.visible=!t.isHidden),this.isHidden=!t.visible,this.alignBottom=t.alignBottom||!1,this.pane=t.pane||"floatPane",this.enableEventPropagation=t.enableEventPropagation||!1,this.div=null,this.closeListener=null,this.moveListener=null,this.mapListener=null,this.contextListener=null,this.eventListeners=null,this.fixedWidthSet=null}return e.prototype.createInfoBoxDiv=function(){var e=this;if(!this.div){this.div=document.createElement("div"),this.setBoxStyle(),"string"==typeof this.content?this.div.innerHTML=this.getCloseBoxImg()+this.content:(this.div.innerHTML=this.getCloseBoxImg(),this.div.appendChild(this.content));var t=this.getPanes();if(null!==t&&t[this.pane].appendChild(this.div),this.addClickHandler(),this.div.style.width)this.fixedWidthSet=!0;else if(0!==this.maxWidth&&this.div.offsetWidth>this.maxWidth)this.div.style.width=this.maxWidth+"px",this.fixedWidthSet=!0;else{var n=this.getBoxWidths();this.div.style.width=this.div.offsetWidth-n.left-n.right+"px",this.fixedWidthSet=!1}if(this.panBox(this.disableAutoPan),!this.enableEventPropagation){this.eventListeners=[];for(var r=0,o=["mousedown","mouseover","mouseout","mouseup","click","dblclick","touchstart","touchend","touchmove"];r<o.length;r++){var i=o[r];this.eventListeners.push(google.maps.event.addListener(this.div,i,Fe))}this.eventListeners.push(google.maps.event.addListener(this.div,"mouseover",function(){e.div&&(e.div.style.cursor="default")}))}this.contextListener=google.maps.event.addListener(this.div,"contextmenu",function(t){t.returnValue=!1,t.preventDefault&&t.preventDefault(),e.enableEventPropagation||Fe(t)}),google.maps.event.trigger(this,"domready")}},e.prototype.getCloseBoxImg=function(){var e="";return""!==this.closeBoxURL&&(e='<img alt=""',e+=' aria-hidden="true"',e+=" src='"+this.closeBoxURL+"'",e+=" align=right",e+=" style='",e+=" position: relative;",e+=" cursor: pointer;",e+=" margin: "+this.closeBoxMargin+";",e+="'>"),e},e.prototype.addClickHandler=function(){this.closeListener=this.div&&this.div.firstChild&&""!==this.closeBoxURL?google.maps.event.addListener(this.div.firstChild,"click",this.getCloseClickHandler()):null},e.prototype.closeClickHandler=function(e){e.cancelBubble=!0,e.stopPropagation&&e.stopPropagation(),google.maps.event.trigger(this,"closeclick"),this.close()},e.prototype.getCloseClickHandler=function(){return this.closeClickHandler},e.prototype.panBox=function(e){if(this.div&&!e){var t=this.getMap();if(t instanceof google.maps.Map){var n=0,r=0,o=t.getBounds();o&&!o.contains(this.position)&&t.setCenter(this.position);var i=t.getDiv(),s=i.offsetWidth,a=i.offsetHeight,l=this.pixelOffset.width,u=this.pixelOffset.height,c=this.div.offsetWidth,d=this.div.offsetHeight,p=this.infoBoxClearance.width,f=this.infoBoxClearance.height,h=this.getProjection().fromLatLngToContainerPixel(this.position);null!==h&&(h.x<-l+p?n=h.x+l-p:h.x+c+l+p>s&&(n=h.x+c+l+p-s),this.alignBottom?h.y<-u+f+d?r=h.y+u-f-d:h.y+u+f>a&&(r=h.y+u+f-a):h.y<-u+f?r=h.y+u-f:h.y+d+u+f>a&&(r=h.y+d+u+f-a)),0===n&&0===r||t.panBy(n,r)}}},e.prototype.setBoxStyle=function(){if(this.div){this.div.className=this.boxClass,this.div.style.cssText="";var e=this.boxStyle;for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(this.div.style[t]=e[t]);if(this.div.style.webkitTransform="translateZ(0)",void 0!==this.div.style.opacity&&""!==this.div.style.opacity){var n=parseFloat(this.div.style.opacity||"");this.div.style.msFilter='"progid:DXImageTransform.Microsoft.Alpha(Opacity='+100*n+')"',this.div.style.filter="alpha(opacity="+100*n+")"}this.div.style.position="absolute",this.div.style.visibility="hidden",null!==this.zIndex&&(this.div.style.zIndex=this.zIndex+""),this.div.style.overflow||(this.div.style.overflow="auto")}},e.prototype.getBoxWidths=function(){var e={top:0,bottom:0,left:0,right:0};if(!this.div)return e;if(document.defaultView){var t=this.div.ownerDocument,n=t&&t.defaultView?t.defaultView.getComputedStyle(this.div,""):null;n&&(e.top=parseInt(n.borderTopWidth||"",10)||0,e.bottom=parseInt(n.borderBottomWidth||"",10)||0,e.left=parseInt(n.borderLeftWidth||"",10)||0,e.right=parseInt(n.borderRightWidth||"",10)||0)}else if(document.documentElement.currentStyle){var r=this.div.currentStyle;r&&(e.top=parseInt(r.borderTopWidth||"",10)||0,e.bottom=parseInt(r.borderBottomWidth||"",10)||0,e.left=parseInt(r.borderLeftWidth||"",10)||0,e.right=parseInt(r.borderRightWidth||"",10)||0)}return e},e.prototype.onRemove=function(){this.div&&this.div.parentNode&&(this.div.parentNode.removeChild(this.div),this.div=null)},e.prototype.draw=function(){if(this.createInfoBoxDiv(),this.div){var e=this.getProjection().fromLatLngToDivPixel(this.position);null!==e&&(this.div.style.left=e.x+this.pixelOffset.width+"px",this.alignBottom?this.div.style.bottom=-(e.y+this.pixelOffset.height)+"px":this.div.style.top=e.y+this.pixelOffset.height+"px"),this.isHidden?this.div.style.visibility="hidden":this.div.style.visibility="visible"}},e.prototype.setOptions=function(e){void 0===e&&(e={}),void 0!==e.boxClass&&(this.boxClass=e.boxClass,this.setBoxStyle()),void 0!==e.boxStyle&&(this.boxStyle=e.boxStyle,this.setBoxStyle()),void 0!==e.content&&this.setContent(e.content),void 0!==e.disableAutoPan&&(this.disableAutoPan=e.disableAutoPan),void 0!==e.maxWidth&&(this.maxWidth=e.maxWidth),void 0!==e.pixelOffset&&(this.pixelOffset=e.pixelOffset),void 0!==e.alignBottom&&(this.alignBottom=e.alignBottom),void 0!==e.position&&this.setPosition(e.position),void 0!==e.zIndex&&this.setZIndex(e.zIndex),void 0!==e.closeBoxMargin&&(this.closeBoxMargin=e.closeBoxMargin),void 0!==e.closeBoxURL&&(this.closeBoxURL=e.closeBoxURL),void 0!==e.infoBoxClearance&&(this.infoBoxClearance=e.infoBoxClearance),void 0!==e.isHidden&&(this.isHidden=e.isHidden),void 0!==e.visible&&(this.isHidden=!e.visible),void 0!==e.enableEventPropagation&&(this.enableEventPropagation=e.enableEventPropagation),this.div&&this.draw()},e.prototype.setContent=function(e){this.content=e,this.div&&(this.closeListener&&(google.maps.event.removeListener(this.closeListener),this.closeListener=null),this.fixedWidthSet||(this.div.style.width=""),"string"==typeof e?this.div.innerHTML=this.getCloseBoxImg()+e:(this.div.innerHTML=this.getCloseBoxImg(),this.div.appendChild(e)),this.fixedWidthSet||(this.div.style.width=this.div.offsetWidth+"px","string"==typeof e?this.div.innerHTML=this.getCloseBoxImg()+e:(this.div.innerHTML=this.getCloseBoxImg(),this.div.appendChild(e))),this.addClickHandler()),google.maps.event.trigger(this,"content_changed")},e.prototype.setPosition=function(e){this.position=e,this.div&&this.draw(),google.maps.event.trigger(this,"position_changed")},e.prototype.setVisible=function(e){this.isHidden=!e,this.div&&(this.div.style.visibility=this.isHidden?"hidden":"visible")},e.prototype.setZIndex=function(e){this.zIndex=e,this.div&&(this.div.style.zIndex=e+""),google.maps.event.trigger(this,"zindex_changed")},e.prototype.getContent=function(){return this.content},e.prototype.getPosition=function(){return this.position},e.prototype.getZIndex=function(){return this.zIndex},e.prototype.getVisible=function(){var e=this.getMap();return null!=e&&!this.isHidden},e.prototype.show=function(){this.isHidden=!1,this.div&&(this.div.style.visibility="visible")},e.prototype.hide=function(){this.isHidden=!0,this.div&&(this.div.style.visibility="hidden")},e.prototype.open=function(e,t){var n=this;t&&(this.position=t.getPosition(),this.moveListener=google.maps.event.addListener(t,"position_changed",function(){var e=t.getPosition();n.setPosition(e)}),this.mapListener=google.maps.event.addListener(t,"map_changed",function(){n.setMap(t.map)})),this.setMap(e),this.div&&this.panBox()},e.prototype.close=function(){if(this.closeListener&&(google.maps.event.removeListener(this.closeListener),this.closeListener=null),this.eventListeners){for(var e=0,t=this.eventListeners;e<t.length;e++){var n=t[e];google.maps.event.removeListener(n)}this.eventListeners=null}this.moveListener&&(google.maps.event.removeListener(this.moveListener),this.moveListener=null),this.mapListener&&(google.maps.event.removeListener(this.mapListener),this.mapListener=null),this.contextListener&&(google.maps.event.removeListener(this.contextListener),this.contextListener=null),this.setMap(null)},e.prototype.extend=function(e,t){return function(e){for(var t in e.prototype)Object.prototype.hasOwnProperty.call(this,t)||(this.prototype[t]=e.prototype[t]);return this}.apply(e,[t])},e}(),Be=["position"],He=["position"];function Ve(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function $e(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ve(Object(n),!0).forEach(function(t){_(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ve(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var We,qe,Ze={onCloseClick:"closeclick",onContentChanged:"content_changed",onDomReady:"domready",onPositionChanged:"position_changed",onZindexChanged:"zindex_changed"},Qe={options(e,t){e.setOptions(t)},position(e,t){t instanceof google.maps.LatLng?e.setPosition(t):e.setPosition(new google.maps.LatLng(t.lat,t.lng))},visible(e,t){e.setVisible(t)},zIndex(e,t){e.setZIndex(t)}},Ke={};N.memo(function(e){var{children:t,anchor:n,options:r,position:o,zIndex:i,onCloseClick:s,onDomReady:a,onContentChanged:l,onPositionChanged:u,onZindexChanged:c,onLoad:d,onUnmount:p}=e,f=N.useContext(U),[h,m]=N.useState(null),[g,v]=N.useState(null),[y,b]=N.useState(null),[k,x]=N.useState(null),[w,S]=N.useState(null),[C,E]=N.useState(null),L=N.useRef(null);return N.useEffect(()=>{f&&null!==h&&(h.close(),n?h.open(f,n):h.getPosition()&&h.open(f))},[f,h,n]),N.useEffect(()=>{r&&null!==h&&h.setOptions(r)},[h,r]),N.useEffect(()=>{if(o&&null!==h){var e=o instanceof google.maps.LatLng?o:new google.maps.LatLng(o.lat,o.lng);h.setPosition(e)}},[o]),N.useEffect(()=>{"number"==typeof i&&null!==h&&h.setZIndex(i)},[i]),N.useEffect(()=>{h&&s&&(null!==g&&google.maps.event.removeListener(g),v(google.maps.event.addListener(h,"closeclick",s)))},[s]),N.useEffect(()=>{h&&a&&(null!==y&&google.maps.event.removeListener(y),b(google.maps.event.addListener(h,"domready",a)))},[a]),N.useEffect(()=>{h&&l&&(null!==k&&google.maps.event.removeListener(k),x(google.maps.event.addListener(h,"content_changed",l)))},[l]),N.useEffect(()=>{h&&u&&(null!==w&&google.maps.event.removeListener(w),S(google.maps.event.addListener(h,"position_changed",u)))},[u]),N.useEffect(()=>{h&&c&&(null!==C&&google.maps.event.removeListener(C),E(google.maps.event.addListener(h,"zindex_changed",c)))},[c]),N.useEffect(()=>{if(f){var e,t=r||Ke,{position:o}=t,i=ae(t,Be);!o||o instanceof google.maps.LatLng||(e=new google.maps.LatLng(o.lat,o.lng));var P=new Ue($e($e({},i),e?{position:e}:{}));L.current=document.createElement("div"),m(P),s&&v(google.maps.event.addListener(P,"closeclick",s)),a&&b(google.maps.event.addListener(P,"domready",a)),l&&x(google.maps.event.addListener(P,"content_changed",l)),u&&S(google.maps.event.addListener(P,"position_changed",u)),c&&E(google.maps.event.addListener(P,"zindex_changed",c)),P.setContent(L.current),n?P.open(f,n):P.getPosition()?P.open(f):F(!1,"You must provide either an anchor or a position prop for <InfoBox>."),d&&d(P)}return()=>{null!==h&&(g&&google.maps.event.removeListener(g),k&&google.maps.event.removeListener(k),y&&google.maps.event.removeListener(y),w&&google.maps.event.removeListener(w),C&&google.maps.event.removeListener(C),p&&p(h),h.close())}},[]),L.current?I.createPortal(N.Children.only(t),L.current):null});class Ge extends N.PureComponent{constructor(){super(...arguments),_(this,"registeredEvents",[]),_(this,"containerElement",null),_(this,"state",{infoBox:null}),_(this,"open",(e,t)=>{t?null!==this.context&&e.open(this.context,t):e.getPosition()?null!==this.context&&e.open(this.context):F(!1,"You must provide either an anchor or a position prop for <InfoBox>.")}),_(this,"setInfoBoxCallback",()=>{null!==this.state.infoBox&&null!==this.containerElement&&(this.state.infoBox.setContent(this.containerElement),this.open(this.state.infoBox,this.props.anchor),this.props.onLoad&&this.props.onLoad(this.state.infoBox))})}componentDidMount(){var e,t=this.props.options||{},{position:n}=t,r=ae(t,He);!n||n instanceof google.maps.LatLng||(e=new google.maps.LatLng(n.lat,n.lng));var o=new Ue($e($e({},r),e?{position:e}:{}));this.containerElement=document.createElement("div"),this.registeredEvents=W({updaterMap:Qe,eventMap:Ze,prevProps:{},nextProps:this.props,instance:o}),this.setState({infoBox:o},this.setInfoBoxCallback)}componentDidUpdate(e){var{infoBox:t}=this.state;null!==t&&($(this.registeredEvents),this.registeredEvents=W({updaterMap:Qe,eventMap:Ze,prevProps:e,nextProps:this.props,instance:t}))}componentWillUnmount(){var{onUnmount:e}=this.props,{infoBox:t}=this.state;null!==t&&(e&&e(t),$(this.registeredEvents),t.close())}render(){return this.containerElement?I.createPortal(N.Children.only(this.props.children),this.containerElement):null}}_(Ge,"contextType",U);var Ye=(qe||(qe=1,We=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,o,i;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(o=r;0!==o--;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=r;0!==o--;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;0!==o--;){var s=i[o];if(!e(t[s],n[s]))return!1}return!0}return t!=t&&n!=n}),We),Xe=A(Ye),Je=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array];class et{static from(e){if(!(e instanceof ArrayBuffer))throw new Error("Data must be an instance of ArrayBuffer.");var[t,n]=new Uint8Array(e,0,2);if(219!==t)throw new Error("Data does not appear to be in a KDBush format.");var r=n>>4;if(1!==r)throw new Error("Got v".concat(r," data when expected v").concat(1,"."));var o=Je[15&n];if(!o)throw new Error("Unrecognized array type.");var[i]=new Uint16Array(e,2,1),[s]=new Uint32Array(e,4,1);return new et(s,i,o,e)}constructor(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:64,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Float64Array,r=arguments.length>3?arguments[3]:void 0;if(isNaN(e)||e<0)throw new Error("Unpexpected numItems value: ".concat(e,"."));this.numItems=+e,this.nodeSize=Math.min(Math.max(+t,2),65535),this.ArrayType=n,this.IndexArrayType=e<65536?Uint16Array:Uint32Array;var o=Je.indexOf(this.ArrayType),i=2*e*this.ArrayType.BYTES_PER_ELEMENT,s=e*this.IndexArrayType.BYTES_PER_ELEMENT,a=(8-s%8)%8;if(o<0)throw new Error("Unexpected typed array class: ".concat(n,"."));r&&r instanceof ArrayBuffer?(this.data=r,this.ids=new this.IndexArrayType(this.data,8,e),this.coords=new this.ArrayType(this.data,8+s+a,2*e),this._pos=2*e,this._finished=!0):(this.data=new ArrayBuffer(8+i+s+a),this.ids=new this.IndexArrayType(this.data,8,e),this.coords=new this.ArrayType(this.data,8+s+a,2*e),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,16+o]),new Uint16Array(this.data,2,1)[0]=t,new Uint32Array(this.data,4,1)[0]=e)}add(e,t){var n=this._pos>>1;return this.ids[n]=n,this.coords[this._pos++]=e,this.coords[this._pos++]=t,n}finish(){var e=this._pos>>1;if(e!==this.numItems)throw new Error("Added ".concat(e," items when expected ").concat(this.numItems,"."));return tt(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(e,t,n,r){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");for(var{ids:o,coords:i,nodeSize:s}=this,a=[0,o.length-1,0],l=[];a.length;){var u=a.pop()||0,c=a.pop()||0,d=a.pop()||0;if(c-d<=s)for(var p=d;p<=c;p++){var f=i[2*p],h=i[2*p+1];f>=e&&f<=n&&h>=t&&h<=r&&l.push(o[p])}else{var m=d+c>>1,g=i[2*m],v=i[2*m+1];g>=e&&g<=n&&v>=t&&v<=r&&l.push(o[m]),(0===u?e<=g:t<=v)&&(a.push(d),a.push(m-1),a.push(1-u)),(0===u?n>=g:r>=v)&&(a.push(m+1),a.push(c),a.push(1-u))}}return l}within(e,t,n){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");for(var{ids:r,coords:o,nodeSize:i}=this,s=[0,r.length-1,0],a=[],l=n*n;s.length;){var u=s.pop()||0,c=s.pop()||0,d=s.pop()||0;if(c-d<=i)for(var p=d;p<=c;p++)it(o[2*p],o[2*p+1],e,t)<=l&&a.push(r[p]);else{var f=d+c>>1,h=o[2*f],m=o[2*f+1];it(h,m,e,t)<=l&&a.push(r[f]),(0===u?e-n<=h:t-n<=m)&&(s.push(d),s.push(f-1),s.push(1-u)),(0===u?e+n>=h:t+n>=m)&&(s.push(f+1),s.push(c),s.push(1-u))}}return a}}function tt(e,t,n,r,o,i){if(!(o-r<=n)){var s=r+o>>1;nt(e,t,s,r,o,i),tt(e,t,n,r,s-1,1-i),tt(e,t,n,s+1,o,1-i)}}function nt(e,t,n,r,o,i){for(;o>r;){if(o-r>600){var s=o-r+1,a=n-r+1,l=Math.log(s),u=.5*Math.exp(2*l/3),c=.5*Math.sqrt(l*u*(s-u)/s)*(a-s/2<0?-1:1);nt(e,t,n,Math.max(r,Math.floor(n-a*u/s+c)),Math.min(o,Math.floor(n+(s-a)*u/s+c)),i)}var d=t[2*n+i],p=r,f=o;for(rt(e,t,r,n),t[2*o+i]>d&&rt(e,t,r,o);p<f;){for(rt(e,t,p,f),p++,f--;t[2*p+i]<d;)p++;for(;t[2*f+i]>d;)f--}t[2*r+i]===d?rt(e,t,r,f):rt(e,t,++f,o),f<=n&&(r=f+1),n<=f&&(o=f-1)}}function rt(e,t,n,r){ot(e,n,r),ot(t,2*n,2*r),ot(t,2*n+1,2*r+1)}function ot(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function it(e,t,n,r){var o=e-n,i=t-r;return o*o+i*i}var st,at={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:e=>e},lt=Math.fround||(st=new Float32Array(1),e=>(st[0]=+e,st[0]));class ut{constructor(e){this.options=Object.assign(Object.create(at),e),this.trees=new Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(e){var{log:t,minZoom:n,maxZoom:r}=this.options;t&&console.time("total time");var o="prepare ".concat(e.length," points");t&&console.time(o),this.points=e;for(var i=[],s=0;s<e.length;s++){var a=e[s];if(a.geometry){var[l,u]=a.geometry.coordinates,c=lt(pt(l)),d=lt(ft(u));i.push(c,d,1/0,s,-1,1),this.options.reduce&&i.push(0)}}var p=this.trees[r+1]=this._createTree(i);t&&console.timeEnd(o);for(var f=r;f>=n;f--){var h=+Date.now();p=this.trees[f]=this._createTree(this._cluster(p,f)),t&&console.log("z%d: %d clusters in %dms",f,p.numItems,+Date.now()-h)}return t&&console.timeEnd("total time"),this}getClusters(e,t){var n=((e[0]+180)%360+360)%360-180,r=Math.max(-90,Math.min(90,e[1])),o=180===e[2]?180:((e[2]+180)%360+360)%360-180,i=Math.max(-90,Math.min(90,e[3]));if(e[2]-e[0]>=360)n=-180,o=180;else if(n>o){var s=this.getClusters([n,r,180,i],t),a=this.getClusters([-180,r,o,i],t);return s.concat(a)}var l=this.trees[this._limitZoom(t)],u=l.range(pt(n),ft(i),pt(o),ft(r)),c=l.data,d=[];for(var p of u){var f=this.stride*p;d.push(c[f+5]>1?ct(c,f,this.clusterProps):this.points[c[f+3]])}return d}getChildren(e){var t=this._getOriginId(e),n=this._getOriginZoom(e),r="No cluster with the specified id.",o=this.trees[n];if(!o)throw new Error(r);var i=o.data;if(t*this.stride>=i.length)throw new Error(r);var s=this.options.radius/(this.options.extent*Math.pow(2,n-1)),a=i[t*this.stride],l=i[t*this.stride+1],u=o.within(a,l,s),c=[];for(var d of u){var p=d*this.stride;i[p+4]===e&&c.push(i[p+5]>1?ct(i,p,this.clusterProps):this.points[i[p+3]])}if(0===c.length)throw new Error(r);return c}getLeaves(e,t,n){t=t||10,n=n||0;var r=[];return this._appendLeaves(r,e,t,n,0),r}getTile(e,t,n){var r=this.trees[this._limitZoom(e)],o=Math.pow(2,e),{extent:i,radius:s}=this.options,a=s/i,l=(n-a)/o,u=(n+1+a)/o,c={features:[]};return this._addTileFeatures(r.range((t-a)/o,l,(t+1+a)/o,u),r.data,t,n,o,c),0===t&&this._addTileFeatures(r.range(1-a/o,l,1,u),r.data,o,n,o,c),t===o-1&&this._addTileFeatures(r.range(0,l,a/o,u),r.data,-1,n,o,c),c.features.length?c:null}getClusterExpansionZoom(e){for(var t=this._getOriginZoom(e)-1;t<=this.options.maxZoom;){var n=this.getChildren(e);if(t++,1!==n.length)break;e=n[0].properties.cluster_id}return t}_appendLeaves(e,t,n,r,o){var i=this.getChildren(t);for(var s of i){var a=s.properties;if(a&&a.cluster?o+a.point_count<=r?o+=a.point_count:o=this._appendLeaves(e,a.cluster_id,n,r,o):o<r?o++:e.push(s),e.length===n)break}return o}_createTree(e){for(var t=new et(e.length/this.stride|0,this.options.nodeSize,Float32Array),n=0;n<e.length;n+=this.stride)t.add(e[n],e[n+1]);return t.finish(),t.data=e,t}_addTileFeatures(e,t,n,r,o,i){for(var s of e){var a=s*this.stride,l=t[a+5]>1,u=void 0,c=void 0,d=void 0;if(l)u=dt(t,a,this.clusterProps),c=t[a],d=t[a+1];else{var p=this.points[t[a+3]];u=p.properties;var[f,h]=p.geometry.coordinates;c=pt(f),d=ft(h)}var m={type:1,geometry:[[Math.round(this.options.extent*(c*o-n)),Math.round(this.options.extent*(d*o-r))]],tags:u},g=void 0;void 0!==(g=l||this.options.generateId?t[a+3]:this.points[t[a+3]].id)&&(m.id=g),i.features.push(m)}}_limitZoom(e){return Math.max(this.options.minZoom,Math.min(Math.floor(+e),this.options.maxZoom+1))}_cluster(e,t){for(var{radius:n,extent:r,reduce:o,minPoints:i}=this.options,s=n/(r*Math.pow(2,t)),a=e.data,l=[],u=this.stride,c=0;c<a.length;c+=u)if(!(a[c+2]<=t)){a[c+2]=t;var d=a[c],p=a[c+1],f=e.within(a[c],a[c+1],s),h=a[c+5],m=h;for(var g of f){var v=g*u;a[v+2]>t&&(m+=a[v+5])}if(m>h&&m>=i){var y=d*h,b=p*h,k=void 0,x=-1,w=(c/u<<5)+(t+1)+this.points.length;for(var S of f){var C=S*u;if(!(a[C+2]<=t)){a[C+2]=t;var E=a[C+5];y+=a[C]*E,b+=a[C+1]*E,a[C+4]=w,o&&(k||(k=this._map(a,c,!0),x=this.clusterProps.length,this.clusterProps.push(k)),o(k,this._map(a,C)))}}a[c+4]=w,l.push(y/m,b/m,1/0,w,-1,m),o&&l.push(x)}else{for(var L=0;L<u;L++)l.push(a[c+L]);if(m>1)for(var P of f){var M=P*u;if(!(a[M+2]<=t)){a[M+2]=t;for(var O=0;O<u;O++)l.push(a[M+O])}}}}return l}_getOriginId(e){return e-this.points.length>>5}_getOriginZoom(e){return(e-this.points.length)%32}_map(e,t,n){if(e[t+5]>1){var r=this.clusterProps[e[t+6]];return n?Object.assign({},r):r}var o=this.points[e[t+3]].properties,i=this.options.map(o);return n&&i===o?Object.assign({},i):i}}function ct(e,t,n){return{type:"Feature",id:e[t+3],properties:dt(e,t,n),geometry:{type:"Point",coordinates:[ht(e[t]),mt(e[t+1])]}}}function dt(e,t,n){var r=e[t+5],o=r>=1e4?"".concat(Math.round(r/1e3),"k"):r>=1e3?"".concat(Math.round(r/100)/10,"k"):r,i=e[t+6],s=-1===i?{}:Object.assign({},n[i]);return Object.assign(s,{cluster:!0,cluster_id:e[t+3],point_count:r,point_count_abbreviated:o})}function pt(e){return e/360+.5}function ft(e){var t=Math.sin(e*Math.PI/180),n=.5-.25*Math.log((1+t)/(1-t))/Math.PI;return n<0?0:n>1?1:n}function ht(e){return 360*(e-.5)}function mt(e){var t=(180-360*e)*Math.PI/180;return 360*Math.atan(Math.exp(t))/Math.PI-90}
/*! *****************************************************************************
	Copyright (c) Microsoft Corporation.

	Permission to use, copy, modify, and/or distribute this software for any
	purpose with or without fee is hereby granted.

	THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
	REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
	AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
	INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
	LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
	OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
	PERFORMANCE OF THIS SOFTWARE.
	***************************************************************************** */class gt{static isAdvancedMarkerAvailable(e){return google.maps.marker&&!0===e.getMapCapabilities().isAdvancedMarkersAvailable}static isAdvancedMarker(e){return google.maps.marker&&e instanceof google.maps.marker.AdvancedMarkerElement}static setMap(e,t){this.isAdvancedMarker(e)?e.map=t:e.setMap(t)}static getPosition(e){if(this.isAdvancedMarker(e)){if(e.position){if(e.position instanceof google.maps.LatLng)return e.position;if(e.position.lat&&e.position.lng)return new google.maps.LatLng(e.position.lat,e.position.lng)}return new google.maps.LatLng(null)}return e.getPosition()}static getVisible(e){return!!this.isAdvancedMarker(e)||e.getVisible()}}class vt{constructor(e){var{markers:t,position:n}=e;this.markers=t,n&&(n instanceof google.maps.LatLng?this._position=n:this._position=new google.maps.LatLng(n))}get bounds(){if(0!==this.markers.length||this._position){var e=new google.maps.LatLngBounds(this._position,this._position);for(var t of this.markers)e.extend(gt.getPosition(t));return e}}get position(){return this._position||this.bounds.getCenter()}get count(){return this.markers.filter(e=>gt.getVisible(e)).length}push(e){this.markers.push(e)}delete(){this.marker&&(gt.setMap(this.marker,null),this.marker=void 0),this.markers.length=0}}class yt{constructor(e){var{maxZoom:t=16}=e;this.maxZoom=t}noop(e){var{markers:t}=e;return kt(t)}}var bt,kt=e=>e.map(e=>new vt({position:gt.getPosition(e),markers:[e]}));class xt extends yt{constructor(e){var{maxZoom:t,radius:n=60}=e,r=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["maxZoom","radius"]);super({maxZoom:t}),this.state={zoom:-1},this.superCluster=new ut(Object.assign({maxZoom:this.maxZoom,radius:n},r))}calculate(e){var t=!1,n={zoom:e.map.getZoom()};if(!Xe(e.markers,this.markers)){t=!0,this.markers=[...e.markers];var r=this.markers.map(e=>{var t=gt.getPosition(e);return{type:"Feature",geometry:{type:"Point",coordinates:[t.lng(),t.lat()]},properties:{marker:e}}});this.superCluster.load(r)}return t||(this.state.zoom<=this.maxZoom||n.zoom<=this.maxZoom)&&(t=!Xe(this.state,n)),this.state=n,t&&(this.clusters=this.cluster(e)),{clusters:this.clusters,changed:t}}cluster(e){var{map:t}=e;return this.superCluster.getClusters([-180,-90,180,90],Math.round(t.getZoom())).map(e=>this.transformCluster(e))}transformCluster(e){var{geometry:{coordinates:[t,n]},properties:r}=e;if(r.cluster)return new vt({markers:this.superCluster.getLeaves(r.cluster_id,1/0).map(e=>e.properties.marker),position:{lat:n,lng:t}});var o=r.marker;return new vt({markers:[o],position:gt.getPosition(o)})}}class wt{constructor(e,t){this.markers={sum:e.length};var n=t.map(e=>e.count),r=n.reduce((e,t)=>e+t,0);this.clusters={count:t.length,markers:{mean:r/t.length,sum:r,min:Math.min(...n),max:Math.max(...n)}}}}class St{render(e,t,n){var{count:r,position:o}=e,i=r>Math.max(10,t.clusters.markers.mean)?"#ff0000":"#0000ff",s='<svg fill="'.concat(i,'" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 240" width="50" height="50">\n<circle cx="120" cy="120" opacity=".6" r="70" />\n<circle cx="120" cy="120" opacity=".3" r="90" />\n<circle cx="120" cy="120" opacity=".2" r="110" />\n<text x="50%" y="50%" style="fill:#fff" text-anchor="middle" font-size="50" dominant-baseline="middle" font-family="roboto,arial,sans-serif">').concat(r,"</text>\n</svg>"),a="Cluster of ".concat(r," markers"),l=Number(google.maps.Marker.MAX_ZINDEX)+r;if(gt.isAdvancedMarkerAvailable(n)){var u=(new DOMParser).parseFromString(s,"image/svg+xml").documentElement;u.setAttribute("transform","translate(0 25)");var c={map:n,position:o,zIndex:l,title:a,content:u};return new google.maps.marker.AdvancedMarkerElement(c)}var d={position:o,zIndex:l,title:a,icon:{url:"data:image/svg+xml;base64,".concat(btoa(s)),anchor:new google.maps.Point(25,25)}};return new google.maps.Marker(d)}}class Ct{constructor(){!function(e,t){for(var n in t.prototype)e.prototype[n]=t.prototype[n]}(Ct,google.maps.OverlayView)}}!function(e){e.CLUSTERING_BEGIN="clusteringbegin",e.CLUSTERING_END="clusteringend",e.CLUSTER_CLICK="click"}(bt||(bt={}));var Et=(e,t,n)=>{n.fitBounds(t.bounds)};class Lt extends Ct{constructor(e){var{map:t,markers:n=[],algorithmOptions:r={},algorithm:o=new xt(r),renderer:i=new St,onClusterClick:s=Et}=e;super(),this.markers=[...n],this.clusters=[],this.algorithm=o,this.renderer=i,this.onClusterClick=s,t&&this.setMap(t)}addMarker(e,t){this.markers.includes(e)||(this.markers.push(e),t||this.render())}addMarkers(e,t){e.forEach(e=>{this.addMarker(e,!0)}),t||this.render()}removeMarker(e,t){var n=this.markers.indexOf(e);return-1!==n&&(gt.setMap(e,null),this.markers.splice(n,1),t||this.render(),!0)}removeMarkers(e,t){var n=!1;return e.forEach(e=>{n=this.removeMarker(e,!0)||n}),n&&!t&&this.render(),n}clearMarkers(e){this.markers.length=0,e||this.render()}render(){var e=this.getMap();if(e instanceof google.maps.Map&&e.getProjection()){google.maps.event.trigger(this,bt.CLUSTERING_BEGIN,this);var{clusters:t,changed:n}=this.algorithm.calculate({markers:this.markers,map:e,mapCanvasProjection:this.getProjection()});if(n||null==n){var r=new Set;for(var o of t)1==o.markers.length&&r.add(o.markers[0]);var i=[];for(var s of this.clusters)null!=s.marker&&(1==s.markers.length?r.has(s.marker)||gt.setMap(s.marker,null):i.push(s.marker));this.clusters=t,this.renderClusters(),requestAnimationFrame(()=>i.forEach(e=>gt.setMap(e,null)))}google.maps.event.trigger(this,bt.CLUSTERING_END,this)}}onAdd(){this.idleListener=this.getMap().addListener("idle",this.render.bind(this)),this.render()}onRemove(){google.maps.event.removeListener(this.idleListener),this.reset()}reset(){this.markers.forEach(e=>gt.setMap(e,null)),this.clusters.forEach(e=>e.delete()),this.clusters=[]}renderClusters(){var e=new wt(this.markers,this.clusters),t=this.getMap();this.clusters.forEach(n=>{1===n.markers.length?n.marker=n.markers[0]:(n.marker=this.renderer.render(n,e,t),n.markers.forEach(e=>gt.setMap(e,null)),this.onClusterClick&&n.marker.addListener("click",e=>{google.maps.event.trigger(this,bt.CLUSTER_CLICK,n),this.onClusterClick(e,n,t)})),gt.setMap(n.marker,t)})}}function Pt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Mt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pt(Object(n),!0).forEach(function(t){_(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ot(e){var t=function(){F(!!N.useContext,"useGoogleMap is React hook and requires React version 16.8+");var e=N.useContext(U);return F(!!e,"useGoogleMap needs a GoogleMap available up in the tree"),e}(),[n,r]=N.useState(null);return N.useEffect(()=>{if(t&&null===n){var o=new Lt(Mt(Mt({},e),{},{map:t}));r(o)}},[t]),n}N.memo(function(e){var{children:t,options:n}=e,r=Ot(n);return null!==r?t(r):null});var jt={onCloseClick:"closeclick",onContentChanged:"content_changed",onDomReady:"domready",onPositionChanged:"position_changed",onZindexChanged:"zindex_changed"},Nt={options(e,t){e.setOptions(t)},position(e,t){e.setPosition(t)},zIndex(e,t){e.setZIndex(t)}};N.memo(function(e){var{children:t,anchor:n,options:r,position:o,zIndex:i,onCloseClick:s,onDomReady:a,onContentChanged:l,onPositionChanged:u,onZindexChanged:c,onLoad:d,onUnmount:p}=e,f=N.useContext(U),[h,m]=N.useState(null),[g,v]=N.useState(null),[y,b]=N.useState(null),[k,x]=N.useState(null),[w,S]=N.useState(null),[C,E]=N.useState(null),L=N.useRef(null);return N.useEffect(()=>{null!==h&&(h.close(),n?h.open(f,n):h.getPosition()&&h.open(f))},[f,h,n]),N.useEffect(()=>{r&&null!==h&&h.setOptions(r)},[h,r]),N.useEffect(()=>{o&&null!==h&&h.setPosition(o)},[o]),N.useEffect(()=>{"number"==typeof i&&null!==h&&h.setZIndex(i)},[i]),N.useEffect(()=>{h&&s&&(null!==g&&google.maps.event.removeListener(g),v(google.maps.event.addListener(h,"closeclick",s)))},[s]),N.useEffect(()=>{h&&a&&(null!==y&&google.maps.event.removeListener(y),b(google.maps.event.addListener(h,"domready",a)))},[a]),N.useEffect(()=>{h&&l&&(null!==k&&google.maps.event.removeListener(k),x(google.maps.event.addListener(h,"content_changed",l)))},[l]),N.useEffect(()=>{h&&u&&(null!==w&&google.maps.event.removeListener(w),S(google.maps.event.addListener(h,"position_changed",u)))},[u]),N.useEffect(()=>{h&&c&&(null!==C&&google.maps.event.removeListener(C),E(google.maps.event.addListener(h,"zindex_changed",c)))},[c]),N.useEffect(()=>{var e=new google.maps.InfoWindow(r);return m(e),L.current=document.createElement("div"),s&&v(google.maps.event.addListener(e,"closeclick",s)),a&&b(google.maps.event.addListener(e,"domready",a)),l&&x(google.maps.event.addListener(e,"content_changed",l)),u&&S(google.maps.event.addListener(e,"position_changed",u)),c&&E(google.maps.event.addListener(e,"zindex_changed",c)),e.setContent(L.current),o&&e.setPosition(o),i&&e.setZIndex(i),n?e.open(f,n):e.getPosition()?e.open(f):F(!1,"You must provide either an anchor (typically render it inside a <Marker>) or a position props for <InfoWindow>."),d&&d(e),()=>{g&&google.maps.event.removeListener(g),k&&google.maps.event.removeListener(k),y&&google.maps.event.removeListener(y),w&&google.maps.event.removeListener(w),C&&google.maps.event.removeListener(C),p&&p(e),e.close()}},[]),L.current?I.createPortal(N.Children.only(t),L.current):null});class Dt extends N.PureComponent{constructor(){super(...arguments),_(this,"registeredEvents",[]),_(this,"containerElement",null),_(this,"state",{infoWindow:null}),_(this,"open",(e,t)=>{t?e.open(this.context,t):e.getPosition()?e.open(this.context):F(!1,"You must provide either an anchor (typically render it inside a <Marker>) or a position props for <InfoWindow>.")}),_(this,"setInfoWindowCallback",()=>{null!==this.state.infoWindow&&null!==this.containerElement&&(this.state.infoWindow.setContent(this.containerElement),this.open(this.state.infoWindow,this.props.anchor),this.props.onLoad&&this.props.onLoad(this.state.infoWindow))})}componentDidMount(){var e=new google.maps.InfoWindow(this.props.options);this.containerElement=document.createElement("div"),this.registeredEvents=W({updaterMap:Nt,eventMap:jt,prevProps:{},nextProps:this.props,instance:e}),this.setState(()=>({infoWindow:e}),this.setInfoWindowCallback)}componentDidUpdate(e){null!==this.state.infoWindow&&($(this.registeredEvents),this.registeredEvents=W({updaterMap:Nt,eventMap:jt,prevProps:e,nextProps:this.props,instance:this.state.infoWindow}))}componentWillUnmount(){null!==this.state.infoWindow&&($(this.registeredEvents),this.props.onUnmount&&this.props.onUnmount(this.state.infoWindow),this.state.infoWindow.close())}render(){return this.containerElement?I.createPortal(N.Children.only(this.props.children),this.containerElement):null}}function It(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Tt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?It(Object(n),!0).forEach(function(t){_(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):It(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}_(Dt,"contextType",U);var zt={onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick"},_t={draggable(e,t){e.setDraggable(t)},editable(e,t){e.setEditable(t)},map(e,t){e.setMap(t)},options(e,t){e.setOptions(t)},path(e,t){e.setPath(t)},visible(e,t){e.setVisible(t)}},At={};N.memo(function(e){var{options:t,draggable:n,editable:r,visible:o,path:i,onDblClick:s,onDragEnd:a,onDragStart:l,onMouseDown:u,onMouseMove:c,onMouseOut:d,onMouseOver:p,onMouseUp:f,onRightClick:h,onClick:m,onDrag:g,onLoad:v,onUnmount:y}=e,b=N.useContext(U),[k,x]=N.useState(null),[w,S]=N.useState(null),[C,E]=N.useState(null),[L,P]=N.useState(null),[M,O]=N.useState(null),[j,D]=N.useState(null),[I,T]=N.useState(null),[z,_]=N.useState(null),[A,R]=N.useState(null),[F,B]=N.useState(null),[H,V]=N.useState(null),[$,W]=N.useState(null);return N.useEffect(()=>{null!==k&&k.setMap(b)},[b]),N.useEffect(()=>{void 0!==t&&null!==k&&k.setOptions(t)},[k,t]),N.useEffect(()=>{void 0!==n&&null!==k&&k.setDraggable(n)},[k,n]),N.useEffect(()=>{void 0!==r&&null!==k&&k.setEditable(r)},[k,r]),N.useEffect(()=>{void 0!==o&&null!==k&&k.setVisible(o)},[k,o]),N.useEffect(()=>{void 0!==i&&null!==k&&k.setPath(i)},[k,i]),N.useEffect(()=>{k&&s&&(null!==w&&google.maps.event.removeListener(w),S(google.maps.event.addListener(k,"dblclick",s)))},[s]),N.useEffect(()=>{k&&a&&(null!==C&&google.maps.event.removeListener(C),E(google.maps.event.addListener(k,"dragend",a)))},[a]),N.useEffect(()=>{k&&l&&(null!==L&&google.maps.event.removeListener(L),P(google.maps.event.addListener(k,"dragstart",l)))},[l]),N.useEffect(()=>{k&&u&&(null!==M&&google.maps.event.removeListener(M),O(google.maps.event.addListener(k,"mousedown",u)))},[u]),N.useEffect(()=>{k&&c&&(null!==j&&google.maps.event.removeListener(j),D(google.maps.event.addListener(k,"mousemove",c)))},[c]),N.useEffect(()=>{k&&d&&(null!==I&&google.maps.event.removeListener(I),T(google.maps.event.addListener(k,"mouseout",d)))},[d]),N.useEffect(()=>{k&&p&&(null!==z&&google.maps.event.removeListener(z),_(google.maps.event.addListener(k,"mouseover",p)))},[p]),N.useEffect(()=>{k&&f&&(null!==A&&google.maps.event.removeListener(A),R(google.maps.event.addListener(k,"mouseup",f)))},[f]),N.useEffect(()=>{k&&h&&(null!==F&&google.maps.event.removeListener(F),B(google.maps.event.addListener(k,"rightclick",h)))},[h]),N.useEffect(()=>{k&&m&&(null!==H&&google.maps.event.removeListener(H),V(google.maps.event.addListener(k,"click",m)))},[m]),N.useEffect(()=>{k&&g&&(null!==$&&google.maps.event.removeListener($),W(google.maps.event.addListener(k,"drag",g)))},[g]),N.useEffect(()=>{var e=new google.maps.Polyline(Tt(Tt({},t||At),{},{map:b}));return i&&e.setPath(i),void 0!==o&&e.setVisible(o),void 0!==r&&e.setEditable(r),void 0!==n&&e.setDraggable(n),s&&S(google.maps.event.addListener(e,"dblclick",s)),a&&E(google.maps.event.addListener(e,"dragend",a)),l&&P(google.maps.event.addListener(e,"dragstart",l)),u&&O(google.maps.event.addListener(e,"mousedown",u)),c&&D(google.maps.event.addListener(e,"mousemove",c)),d&&T(google.maps.event.addListener(e,"mouseout",d)),p&&_(google.maps.event.addListener(e,"mouseover",p)),f&&R(google.maps.event.addListener(e,"mouseup",f)),h&&B(google.maps.event.addListener(e,"rightclick",h)),m&&V(google.maps.event.addListener(e,"click",m)),g&&W(google.maps.event.addListener(e,"drag",g)),x(e),v&&v(e),()=>{null!==w&&google.maps.event.removeListener(w),null!==C&&google.maps.event.removeListener(C),null!==L&&google.maps.event.removeListener(L),null!==M&&google.maps.event.removeListener(M),null!==j&&google.maps.event.removeListener(j),null!==I&&google.maps.event.removeListener(I),null!==z&&google.maps.event.removeListener(z),null!==A&&google.maps.event.removeListener(A),null!==F&&google.maps.event.removeListener(F),null!==H&&google.maps.event.removeListener(H),y&&y(e),e.setMap(null)}},[]),null});class Rt extends N.PureComponent{constructor(){super(...arguments),_(this,"registeredEvents",[]),_(this,"state",{polyline:null}),_(this,"setPolylineCallback",()=>{null!==this.state.polyline&&this.props.onLoad&&this.props.onLoad(this.state.polyline)})}componentDidMount(){var e=new google.maps.Polyline(Tt(Tt({},this.props.options),{},{map:this.context}));this.registeredEvents=W({updaterMap:_t,eventMap:zt,prevProps:{},nextProps:this.props,instance:e}),this.setState(function(){return{polyline:e}},this.setPolylineCallback)}componentDidUpdate(e){null!==this.state.polyline&&($(this.registeredEvents),this.registeredEvents=W({updaterMap:_t,eventMap:zt,prevProps:e,nextProps:this.props,instance:this.state.polyline}))}componentWillUnmount(){null!==this.state.polyline&&(this.props.onUnmount&&this.props.onUnmount(this.state.polyline),$(this.registeredEvents),this.state.polyline.setMap(null))}render(){return null}}function Ft(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ut(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ft(Object(n),!0).forEach(function(t){_(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ft(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}_(Rt,"contextType",U);var Bt={onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick"},Ht={draggable(e,t){e.setDraggable(t)},editable(e,t){e.setEditable(t)},map(e,t){e.setMap(t)},options(e,t){e.setOptions(t)},path(e,t){e.setPath(t)},paths(e,t){e.setPaths(t)},visible(e,t){e.setVisible(t)}};N.memo(function(e){var{options:t,draggable:n,editable:r,visible:o,path:i,paths:s,onDblClick:a,onDragEnd:l,onDragStart:u,onMouseDown:c,onMouseMove:d,onMouseOut:p,onMouseOver:f,onMouseUp:h,onRightClick:m,onClick:g,onDrag:v,onLoad:y,onUnmount:b,onEdit:k}=e,x=N.useContext(U),[w,S]=N.useState(null),[C,E]=N.useState(null),[L,P]=N.useState(null),[M,O]=N.useState(null),[j,D]=N.useState(null),[I,T]=N.useState(null),[z,_]=N.useState(null),[A,R]=N.useState(null),[F,B]=N.useState(null),[H,V]=N.useState(null),[$,W]=N.useState(null),[q,Z]=N.useState(null);return N.useEffect(()=>{null!==w&&w.setMap(x)},[x]),N.useEffect(()=>{void 0!==t&&null!==w&&w.setOptions(t)},[w,t]),N.useEffect(()=>{void 0!==n&&null!==w&&w.setDraggable(n)},[w,n]),N.useEffect(()=>{void 0!==r&&null!==w&&w.setEditable(r)},[w,r]),N.useEffect(()=>{void 0!==o&&null!==w&&w.setVisible(o)},[w,o]),N.useEffect(()=>{void 0!==i&&null!==w&&w.setPath(i)},[w,i]),N.useEffect(()=>{void 0!==s&&null!==w&&w.setPaths(s)},[w,s]),N.useEffect(()=>{w&&"function"==typeof a&&(null!==C&&google.maps.event.removeListener(C),E(google.maps.event.addListener(w,"dblclick",a)))},[a]),N.useEffect(()=>{w&&(google.maps.event.addListener(w.getPath(),"insert_at",()=>{null==k||k(w)}),google.maps.event.addListener(w.getPath(),"set_at",()=>{null==k||k(w)}),google.maps.event.addListener(w.getPath(),"remove_at",()=>{null==k||k(w)}))},[w,k]),N.useEffect(()=>{w&&"function"==typeof l&&(null!==L&&google.maps.event.removeListener(L),P(google.maps.event.addListener(w,"dragend",l)))},[l]),N.useEffect(()=>{w&&"function"==typeof u&&(null!==M&&google.maps.event.removeListener(M),O(google.maps.event.addListener(w,"dragstart",u)))},[u]),N.useEffect(()=>{w&&"function"==typeof c&&(null!==j&&google.maps.event.removeListener(j),D(google.maps.event.addListener(w,"mousedown",c)))},[c]),N.useEffect(()=>{w&&"function"==typeof d&&(null!==I&&google.maps.event.removeListener(I),T(google.maps.event.addListener(w,"mousemove",d)))},[d]),N.useEffect(()=>{w&&"function"==typeof p&&(null!==z&&google.maps.event.removeListener(z),_(google.maps.event.addListener(w,"mouseout",p)))},[p]),N.useEffect(()=>{w&&"function"==typeof f&&(null!==A&&google.maps.event.removeListener(A),R(google.maps.event.addListener(w,"mouseover",f)))},[f]),N.useEffect(()=>{w&&"function"==typeof h&&(null!==F&&google.maps.event.removeListener(F),B(google.maps.event.addListener(w,"mouseup",h)))},[h]),N.useEffect(()=>{w&&"function"==typeof m&&(null!==H&&google.maps.event.removeListener(H),V(google.maps.event.addListener(w,"rightclick",m)))},[m]),N.useEffect(()=>{w&&"function"==typeof g&&(null!==$&&google.maps.event.removeListener($),W(google.maps.event.addListener(w,"click",g)))},[g]),N.useEffect(()=>{w&&"function"==typeof v&&(null!==q&&google.maps.event.removeListener(q),Z(google.maps.event.addListener(w,"drag",v)))},[v]),N.useEffect(()=>{var e=new google.maps.Polygon(Ut(Ut({},t),{},{map:x}));return i&&e.setPath(i),s&&e.setPaths(s),void 0!==o&&e.setVisible(o),void 0!==r&&e.setEditable(r),void 0!==n&&e.setDraggable(n),a&&E(google.maps.event.addListener(e,"dblclick",a)),l&&P(google.maps.event.addListener(e,"dragend",l)),u&&O(google.maps.event.addListener(e,"dragstart",u)),c&&D(google.maps.event.addListener(e,"mousedown",c)),d&&T(google.maps.event.addListener(e,"mousemove",d)),p&&_(google.maps.event.addListener(e,"mouseout",p)),f&&R(google.maps.event.addListener(e,"mouseover",f)),h&&B(google.maps.event.addListener(e,"mouseup",h)),m&&V(google.maps.event.addListener(e,"rightclick",m)),g&&W(google.maps.event.addListener(e,"click",g)),v&&Z(google.maps.event.addListener(e,"drag",v)),S(e),y&&y(e),()=>{null!==C&&google.maps.event.removeListener(C),null!==L&&google.maps.event.removeListener(L),null!==M&&google.maps.event.removeListener(M),null!==j&&google.maps.event.removeListener(j),null!==I&&google.maps.event.removeListener(I),null!==z&&google.maps.event.removeListener(z),null!==A&&google.maps.event.removeListener(A),null!==F&&google.maps.event.removeListener(F),null!==H&&google.maps.event.removeListener(H),null!==$&&google.maps.event.removeListener($),b&&b(e),e.setMap(null)}},[]),null});class Vt extends N.PureComponent{constructor(){super(...arguments),_(this,"registeredEvents",[])}componentDidMount(){var e=this.props.options||{};this.polygon=new google.maps.Polygon(e),this.polygon.setMap(this.context),this.registeredEvents=W({updaterMap:Ht,eventMap:Bt,prevProps:{},nextProps:this.props,instance:this.polygon}),this.props.onLoad&&this.props.onLoad(this.polygon)}componentDidUpdate(e){this.polygon&&($(this.registeredEvents),this.registeredEvents=W({updaterMap:Ht,eventMap:Bt,prevProps:e,nextProps:this.props,instance:this.polygon}))}componentWillUnmount(){this.polygon&&(this.props.onUnmount&&this.props.onUnmount(this.polygon),$(this.registeredEvents),this.polygon&&this.polygon.setMap(null))}render(){return null}}function $t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Wt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$t(Object(n),!0).forEach(function(t){_(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$t(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}_(Vt,"contextType",U);var qt={onBoundsChanged:"bounds_changed",onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick"},Zt={bounds(e,t){e.setBounds(t)},draggable(e,t){e.setDraggable(t)},editable(e,t){e.setEditable(t)},map(e,t){e.setMap(t)},options(e,t){e.setOptions(t)},visible(e,t){e.setVisible(t)}};N.memo(function(e){var{options:t,bounds:n,draggable:r,editable:o,visible:i,onDblClick:s,onDragEnd:a,onDragStart:l,onMouseDown:u,onMouseMove:c,onMouseOut:d,onMouseOver:p,onMouseUp:f,onRightClick:h,onClick:m,onDrag:g,onBoundsChanged:v,onLoad:y,onUnmount:b}=e,k=N.useContext(U),[x,w]=N.useState(null),[S,C]=N.useState(null),[E,L]=N.useState(null),[P,M]=N.useState(null),[O,j]=N.useState(null),[D,I]=N.useState(null),[T,z]=N.useState(null),[_,A]=N.useState(null),[R,F]=N.useState(null),[B,H]=N.useState(null),[V,$]=N.useState(null),[W,q]=N.useState(null),[Z,Q]=N.useState(null);return N.useEffect(()=>{null!==x&&x.setMap(k)},[k]),N.useEffect(()=>{void 0!==t&&null!==x&&x.setOptions(t)},[x,t]),N.useEffect(()=>{void 0!==r&&null!==x&&x.setDraggable(r)},[x,r]),N.useEffect(()=>{void 0!==o&&null!==x&&x.setEditable(o)},[x,o]),N.useEffect(()=>{void 0!==i&&null!==x&&x.setVisible(i)},[x,i]),N.useEffect(()=>{void 0!==n&&null!==x&&x.setBounds(n)},[x,n]),N.useEffect(()=>{x&&s&&(null!==S&&google.maps.event.removeListener(S),C(google.maps.event.addListener(x,"dblclick",s)))},[s]),N.useEffect(()=>{x&&a&&(null!==E&&google.maps.event.removeListener(E),L(google.maps.event.addListener(x,"dragend",a)))},[a]),N.useEffect(()=>{x&&l&&(null!==P&&google.maps.event.removeListener(P),M(google.maps.event.addListener(x,"dragstart",l)))},[l]),N.useEffect(()=>{x&&u&&(null!==O&&google.maps.event.removeListener(O),j(google.maps.event.addListener(x,"mousedown",u)))},[u]),N.useEffect(()=>{x&&c&&(null!==D&&google.maps.event.removeListener(D),I(google.maps.event.addListener(x,"mousemove",c)))},[c]),N.useEffect(()=>{x&&d&&(null!==T&&google.maps.event.removeListener(T),z(google.maps.event.addListener(x,"mouseout",d)))},[d]),N.useEffect(()=>{x&&p&&(null!==_&&google.maps.event.removeListener(_),A(google.maps.event.addListener(x,"mouseover",p)))},[p]),N.useEffect(()=>{x&&f&&(null!==R&&google.maps.event.removeListener(R),F(google.maps.event.addListener(x,"mouseup",f)))},[f]),N.useEffect(()=>{x&&h&&(null!==B&&google.maps.event.removeListener(B),H(google.maps.event.addListener(x,"rightclick",h)))},[h]),N.useEffect(()=>{x&&m&&(null!==V&&google.maps.event.removeListener(V),$(google.maps.event.addListener(x,"click",m)))},[m]),N.useEffect(()=>{x&&g&&(null!==W&&google.maps.event.removeListener(W),q(google.maps.event.addListener(x,"drag",g)))},[g]),N.useEffect(()=>{x&&v&&(null!==Z&&google.maps.event.removeListener(Z),Q(google.maps.event.addListener(x,"bounds_changed",v)))},[v]),N.useEffect(()=>{var e=new google.maps.Rectangle(Wt(Wt({},t),{},{map:k}));return void 0!==i&&e.setVisible(i),void 0!==o&&e.setEditable(o),void 0!==r&&e.setDraggable(r),void 0!==n&&e.setBounds(n),s&&C(google.maps.event.addListener(e,"dblclick",s)),a&&L(google.maps.event.addListener(e,"dragend",a)),l&&M(google.maps.event.addListener(e,"dragstart",l)),u&&j(google.maps.event.addListener(e,"mousedown",u)),c&&I(google.maps.event.addListener(e,"mousemove",c)),d&&z(google.maps.event.addListener(e,"mouseout",d)),p&&A(google.maps.event.addListener(e,"mouseover",p)),f&&F(google.maps.event.addListener(e,"mouseup",f)),h&&H(google.maps.event.addListener(e,"rightclick",h)),m&&$(google.maps.event.addListener(e,"click",m)),g&&q(google.maps.event.addListener(e,"drag",g)),v&&Q(google.maps.event.addListener(e,"bounds_changed",v)),w(e),y&&y(e),()=>{null!==S&&google.maps.event.removeListener(S),null!==E&&google.maps.event.removeListener(E),null!==P&&google.maps.event.removeListener(P),null!==O&&google.maps.event.removeListener(O),null!==D&&google.maps.event.removeListener(D),null!==T&&google.maps.event.removeListener(T),null!==_&&google.maps.event.removeListener(_),null!==R&&google.maps.event.removeListener(R),null!==B&&google.maps.event.removeListener(B),null!==V&&google.maps.event.removeListener(V),null!==W&&google.maps.event.removeListener(W),null!==Z&&google.maps.event.removeListener(Z),b&&b(e),e.setMap(null)}},[]),null});class Qt extends N.PureComponent{constructor(){super(...arguments),_(this,"registeredEvents",[]),_(this,"state",{rectangle:null}),_(this,"setRectangleCallback",()=>{null!==this.state.rectangle&&this.props.onLoad&&this.props.onLoad(this.state.rectangle)})}componentDidMount(){var e=new google.maps.Rectangle(Wt(Wt({},this.props.options),{},{map:this.context}));this.registeredEvents=W({updaterMap:Zt,eventMap:qt,prevProps:{},nextProps:this.props,instance:e}),this.setState(function(){return{rectangle:e}},this.setRectangleCallback)}componentDidUpdate(e){null!==this.state.rectangle&&($(this.registeredEvents),this.registeredEvents=W({updaterMap:Zt,eventMap:qt,prevProps:e,nextProps:this.props,instance:this.state.rectangle}))}componentWillUnmount(){null!==this.state.rectangle&&(this.props.onUnmount&&this.props.onUnmount(this.state.rectangle),$(this.registeredEvents),this.state.rectangle.setMap(null))}render(){return null}}function Kt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Gt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kt(Object(n),!0).forEach(function(t){_(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}_(Qt,"contextType",U);var Yt={onCenterChanged:"center_changed",onRadiusChanged:"radius_changed",onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick"},Xt={center(e,t){e.setCenter(t)},draggable(e,t){e.setDraggable(t)},editable(e,t){e.setEditable(t)},map(e,t){e.setMap(t)},options(e,t){e.setOptions(t)},radius(e,t){e.setRadius(t)},visible(e,t){e.setVisible(t)}},Jt={};N.memo(function(e){var{options:t,center:n,radius:r,draggable:o,editable:i,visible:s,onDblClick:a,onDragEnd:l,onDragStart:u,onMouseDown:c,onMouseMove:d,onMouseOut:p,onMouseOver:f,onMouseUp:h,onRightClick:m,onClick:g,onDrag:v,onCenterChanged:y,onRadiusChanged:b,onLoad:k,onUnmount:x}=e,w=N.useContext(U),[S,C]=N.useState(null),[E,L]=N.useState(null),[P,M]=N.useState(null),[O,j]=N.useState(null),[D,I]=N.useState(null),[T,z]=N.useState(null),[_,A]=N.useState(null),[R,F]=N.useState(null),[B,H]=N.useState(null),[V,$]=N.useState(null),[W,q]=N.useState(null),[Z,Q]=N.useState(null),[K,G]=N.useState(null),[Y,X]=N.useState(null);return N.useEffect(()=>{null!==S&&S.setMap(w)},[w]),N.useEffect(()=>{void 0!==t&&null!==S&&S.setOptions(t)},[S,t]),N.useEffect(()=>{void 0!==o&&null!==S&&S.setDraggable(o)},[S,o]),N.useEffect(()=>{void 0!==i&&null!==S&&S.setEditable(i)},[S,i]),N.useEffect(()=>{void 0!==s&&null!==S&&S.setVisible(s)},[S,s]),N.useEffect(()=>{"number"==typeof r&&null!==S&&S.setRadius(r)},[S,r]),N.useEffect(()=>{void 0!==n&&null!==S&&S.setCenter(n)},[S,n]),N.useEffect(()=>{S&&a&&(null!==E&&google.maps.event.removeListener(E),L(google.maps.event.addListener(S,"dblclick",a)))},[a]),N.useEffect(()=>{S&&l&&(null!==P&&google.maps.event.removeListener(P),M(google.maps.event.addListener(S,"dragend",l)))},[l]),N.useEffect(()=>{S&&u&&(null!==O&&google.maps.event.removeListener(O),j(google.maps.event.addListener(S,"dragstart",u)))},[u]),N.useEffect(()=>{S&&c&&(null!==D&&google.maps.event.removeListener(D),I(google.maps.event.addListener(S,"mousedown",c)))},[c]),N.useEffect(()=>{S&&d&&(null!==T&&google.maps.event.removeListener(T),z(google.maps.event.addListener(S,"mousemove",d)))},[d]),N.useEffect(()=>{S&&p&&(null!==_&&google.maps.event.removeListener(_),A(google.maps.event.addListener(S,"mouseout",p)))},[p]),N.useEffect(()=>{S&&f&&(null!==R&&google.maps.event.removeListener(R),F(google.maps.event.addListener(S,"mouseover",f)))},[f]),N.useEffect(()=>{S&&h&&(null!==B&&google.maps.event.removeListener(B),H(google.maps.event.addListener(S,"mouseup",h)))},[h]),N.useEffect(()=>{S&&m&&(null!==V&&google.maps.event.removeListener(V),$(google.maps.event.addListener(S,"rightclick",m)))},[m]),N.useEffect(()=>{S&&g&&(null!==W&&google.maps.event.removeListener(W),q(google.maps.event.addListener(S,"click",g)))},[g]),N.useEffect(()=>{S&&v&&(null!==Z&&google.maps.event.removeListener(Z),Q(google.maps.event.addListener(S,"drag",v)))},[v]),N.useEffect(()=>{S&&y&&(null!==K&&google.maps.event.removeListener(K),G(google.maps.event.addListener(S,"center_changed",y)))},[g]),N.useEffect(()=>{S&&b&&(null!==Y&&google.maps.event.removeListener(Y),X(google.maps.event.addListener(S,"radius_changed",b)))},[b]),N.useEffect(()=>{var e=new google.maps.Circle(Gt(Gt({},t||Jt),{},{map:w}));return"number"==typeof r&&e.setRadius(r),void 0!==n&&e.setCenter(n),"number"==typeof r&&e.setRadius(r),void 0!==s&&e.setVisible(s),void 0!==i&&e.setEditable(i),void 0!==o&&e.setDraggable(o),a&&L(google.maps.event.addListener(e,"dblclick",a)),l&&M(google.maps.event.addListener(e,"dragend",l)),u&&j(google.maps.event.addListener(e,"dragstart",u)),c&&I(google.maps.event.addListener(e,"mousedown",c)),d&&z(google.maps.event.addListener(e,"mousemove",d)),p&&A(google.maps.event.addListener(e,"mouseout",p)),f&&F(google.maps.event.addListener(e,"mouseover",f)),h&&H(google.maps.event.addListener(e,"mouseup",h)),m&&$(google.maps.event.addListener(e,"rightclick",m)),g&&q(google.maps.event.addListener(e,"click",g)),v&&Q(google.maps.event.addListener(e,"drag",v)),y&&G(google.maps.event.addListener(e,"center_changed",y)),b&&X(google.maps.event.addListener(e,"radius_changed",b)),C(e),k&&k(e),()=>{null!==E&&google.maps.event.removeListener(E),null!==P&&google.maps.event.removeListener(P),null!==O&&google.maps.event.removeListener(O),null!==D&&google.maps.event.removeListener(D),null!==T&&google.maps.event.removeListener(T),null!==_&&google.maps.event.removeListener(_),null!==R&&google.maps.event.removeListener(R),null!==B&&google.maps.event.removeListener(B),null!==V&&google.maps.event.removeListener(V),null!==W&&google.maps.event.removeListener(W),null!==K&&google.maps.event.removeListener(K),null!==Y&&google.maps.event.removeListener(Y),x&&x(e),e.setMap(null)}},[]),null});class en extends N.PureComponent{constructor(){super(...arguments),_(this,"registeredEvents",[]),_(this,"state",{circle:null}),_(this,"setCircleCallback",()=>{null!==this.state.circle&&this.props.onLoad&&this.props.onLoad(this.state.circle)})}componentDidMount(){var e=new google.maps.Circle(Gt(Gt({},this.props.options),{},{map:this.context}));this.registeredEvents=W({updaterMap:Xt,eventMap:Yt,prevProps:{},nextProps:this.props,instance:e}),this.setState(function(){return{circle:e}},this.setCircleCallback)}componentDidUpdate(e){null!==this.state.circle&&($(this.registeredEvents),this.registeredEvents=W({updaterMap:Xt,eventMap:Yt,prevProps:e,nextProps:this.props,instance:this.state.circle}))}componentWillUnmount(){var e;null!==this.state.circle&&(this.props.onUnmount&&this.props.onUnmount(this.state.circle),$(this.registeredEvents),null===(e=this.state.circle)||void 0===e||e.setMap(null))}render(){return null}}function tn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function nn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tn(Object(n),!0).forEach(function(t){_(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}_(en,"contextType",U);var rn={onClick:"click",onDblClick:"dblclick",onMouseDown:"mousedown",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick",onAddFeature:"addfeature",onRemoveFeature:"removefeature",onRemoveProperty:"removeproperty",onSetGeometry:"setgeometry",onSetProperty:"setproperty"},on={add(e,t){e.add(t)},addgeojson(e,t,n){e.addGeoJson(t,n)},contains(e,t){e.contains(t)},foreach(e,t){e.forEach(t)},loadgeojson(e,t,n,r){e.loadGeoJson(t,n,r)},overridestyle(e,t,n){e.overrideStyle(t,n)},remove(e,t){e.remove(t)},revertstyle(e,t){e.revertStyle(t)},controlposition(e,t){e.setControlPosition(t)},controls(e,t){e.setControls(t)},drawingmode(e,t){e.setDrawingMode(t)},map(e,t){e.setMap(t)},style(e,t){e.setStyle(t)},togeojson(e,t){e.toGeoJson(t)}};N.memo(function(e){var{options:t,onClick:n,onDblClick:r,onMouseDown:o,onMouseMove:i,onMouseOut:s,onMouseOver:a,onMouseUp:l,onRightClick:u,onAddFeature:c,onRemoveFeature:d,onRemoveProperty:p,onSetGeometry:f,onSetProperty:h,onLoad:m,onUnmount:g}=e,v=N.useContext(U),[y,b]=N.useState(null),[k,x]=N.useState(null),[w,S]=N.useState(null),[C,E]=N.useState(null),[L,P]=N.useState(null),[M,O]=N.useState(null),[j,D]=N.useState(null),[I,T]=N.useState(null),[z,_]=N.useState(null),[A,R]=N.useState(null),[F,B]=N.useState(null),[H,V]=N.useState(null),[$,W]=N.useState(null),[q,Z]=N.useState(null);return N.useEffect(()=>{null!==y&&y.setMap(v)},[v]),N.useEffect(()=>{y&&r&&(null!==k&&google.maps.event.removeListener(k),x(google.maps.event.addListener(y,"dblclick",r)))},[r]),N.useEffect(()=>{y&&o&&(null!==w&&google.maps.event.removeListener(w),S(google.maps.event.addListener(y,"mousedown",o)))},[o]),N.useEffect(()=>{y&&i&&(null!==C&&google.maps.event.removeListener(C),E(google.maps.event.addListener(y,"mousemove",i)))},[i]),N.useEffect(()=>{y&&s&&(null!==L&&google.maps.event.removeListener(L),P(google.maps.event.addListener(y,"mouseout",s)))},[s]),N.useEffect(()=>{y&&a&&(null!==M&&google.maps.event.removeListener(M),O(google.maps.event.addListener(y,"mouseover",a)))},[a]),N.useEffect(()=>{y&&l&&(null!==j&&google.maps.event.removeListener(j),D(google.maps.event.addListener(y,"mouseup",l)))},[l]),N.useEffect(()=>{y&&u&&(null!==I&&google.maps.event.removeListener(I),T(google.maps.event.addListener(y,"rightclick",u)))},[u]),N.useEffect(()=>{y&&n&&(null!==z&&google.maps.event.removeListener(z),_(google.maps.event.addListener(y,"click",n)))},[n]),N.useEffect(()=>{y&&c&&(null!==A&&google.maps.event.removeListener(A),R(google.maps.event.addListener(y,"addfeature",c)))},[c]),N.useEffect(()=>{y&&d&&(null!==F&&google.maps.event.removeListener(F),B(google.maps.event.addListener(y,"removefeature",d)))},[d]),N.useEffect(()=>{y&&p&&(null!==H&&google.maps.event.removeListener(H),V(google.maps.event.addListener(y,"removeproperty",p)))},[p]),N.useEffect(()=>{y&&f&&(null!==$&&google.maps.event.removeListener($),W(google.maps.event.addListener(y,"setgeometry",f)))},[f]),N.useEffect(()=>{y&&h&&(null!==q&&google.maps.event.removeListener(q),Z(google.maps.event.addListener(y,"setproperty",h)))},[h]),N.useEffect(()=>{if(null!==v){var e=new google.maps.Data(nn(nn({},t),{},{map:v}));r&&x(google.maps.event.addListener(e,"dblclick",r)),o&&S(google.maps.event.addListener(e,"mousedown",o)),i&&E(google.maps.event.addListener(e,"mousemove",i)),s&&P(google.maps.event.addListener(e,"mouseout",s)),a&&O(google.maps.event.addListener(e,"mouseover",a)),l&&D(google.maps.event.addListener(e,"mouseup",l)),u&&T(google.maps.event.addListener(e,"rightclick",u)),n&&_(google.maps.event.addListener(e,"click",n)),c&&R(google.maps.event.addListener(e,"addfeature",c)),d&&B(google.maps.event.addListener(e,"removefeature",d)),p&&V(google.maps.event.addListener(e,"removeproperty",p)),f&&W(google.maps.event.addListener(e,"setgeometry",f)),h&&Z(google.maps.event.addListener(e,"setproperty",h)),b(e),m&&m(e)}return()=>{y&&(null!==k&&google.maps.event.removeListener(k),null!==w&&google.maps.event.removeListener(w),null!==C&&google.maps.event.removeListener(C),null!==L&&google.maps.event.removeListener(L),null!==M&&google.maps.event.removeListener(M),null!==j&&google.maps.event.removeListener(j),null!==I&&google.maps.event.removeListener(I),null!==z&&google.maps.event.removeListener(z),null!==A&&google.maps.event.removeListener(A),null!==F&&google.maps.event.removeListener(F),null!==H&&google.maps.event.removeListener(H),null!==$&&google.maps.event.removeListener($),null!==q&&google.maps.event.removeListener(q),g&&g(y),y.setMap(null))}},[]),null});class sn extends N.PureComponent{constructor(){super(...arguments),_(this,"registeredEvents",[]),_(this,"state",{data:null}),_(this,"setDataCallback",()=>{null!==this.state.data&&this.props.onLoad&&this.props.onLoad(this.state.data)})}componentDidMount(){if(null!==this.context){var e=new google.maps.Data(nn(nn({},this.props.options),{},{map:this.context}));this.registeredEvents=W({updaterMap:on,eventMap:rn,prevProps:{},nextProps:this.props,instance:e}),this.setState(()=>({data:e}),this.setDataCallback)}}componentDidUpdate(e){null!==this.state.data&&($(this.registeredEvents),this.registeredEvents=W({updaterMap:on,eventMap:rn,prevProps:e,nextProps:this.props,instance:this.state.data}))}componentWillUnmount(){null!==this.state.data&&(this.props.onUnmount&&this.props.onUnmount(this.state.data),$(this.registeredEvents),this.state.data&&this.state.data.setMap(null))}render(){return null}}function an(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ln(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?an(Object(n),!0).forEach(function(t){_(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):an(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}_(sn,"contextType",U);var un={onClick:"click",onDefaultViewportChanged:"defaultviewport_changed",onStatusChanged:"status_changed"},cn={options(e,t){e.setOptions(t)},url(e,t){e.setUrl(t)},zIndex(e,t){e.setZIndex(t)}};class dn extends N.PureComponent{constructor(){super(...arguments),_(this,"registeredEvents",[]),_(this,"state",{kmlLayer:null}),_(this,"setKmlLayerCallback",()=>{null!==this.state.kmlLayer&&this.props.onLoad&&this.props.onLoad(this.state.kmlLayer)})}componentDidMount(){var e=new google.maps.KmlLayer(ln(ln({},this.props.options),{},{map:this.context}));this.registeredEvents=W({updaterMap:cn,eventMap:un,prevProps:{},nextProps:this.props,instance:e}),this.setState(function(){return{kmlLayer:e}},this.setKmlLayerCallback)}componentDidUpdate(e){null!==this.state.kmlLayer&&($(this.registeredEvents),this.registeredEvents=W({updaterMap:cn,eventMap:un,prevProps:e,nextProps:this.props,instance:this.state.kmlLayer}))}componentWillUnmount(){null!==this.state.kmlLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.kmlLayer),$(this.registeredEvents),this.state.kmlLayer.setMap(null))}render(){return null}}function pn(e,t){return"function"==typeof t?t(e.offsetWidth,e.offsetHeight):{x:0,y:0}}function fn(e,t){return new t(e.lat,e.lng)}function hn(e,t){return new t(new google.maps.LatLng(e.ne.lat,e.ne.lng),new google.maps.LatLng(e.sw.lat,e.sw.lng))}function mn(e,t,n,r){return void 0!==n?function(e,t,n){var r=e&&e.fromLatLngToDivPixel(n.getNorthEast()),o=e&&e.fromLatLngToDivPixel(n.getSouthWest());return r&&o?{left:"".concat(o.x+t.x,"px"),top:"".concat(r.y+t.y,"px"),width:"".concat(r.x-o.x-t.x,"px"),height:"".concat(o.y-r.y-t.y,"px")}:{left:"-9999px",top:"-9999px"}}(e,t,(o=n,i=google.maps.LatLngBounds,s=hn,o instanceof i?o:s(o,i))):function(e,t,n){var r=e&&e.fromLatLngToDivPixel(n);if(r){var{x:o,y:i}=r;return{left:"".concat(o+t.x,"px"),top:"".concat(i+t.y,"px")}}return{left:"-9999px",top:"-9999px"}}(e,t,function(e,t,n){return e instanceof t?e:n(e,t)}(r,google.maps.LatLng,fn));var o,i,s}function gn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function vn(e,t,n,r,o){class i extends google.maps.OverlayView{constructor(e,t,n,r){super(),this.container=e,this.pane=t,this.position=n,this.bounds=r}onAdd(){var e,t=null===(e=this.getPanes())||void 0===e?void 0:e[this.pane];null==t||t.appendChild(this.container)}draw(){var e=this.getProjection(),t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gn(Object(n),!0).forEach(function(t){_(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},this.container?pn(this.container,o):{x:0,y:0}),n=mn(e,t,this.bounds,this.position);for(var[r,i]of Object.entries(n))this.container.style[r]=i}onRemove(){null!==this.container.parentNode&&this.container.parentNode.removeChild(this.container)}}return new i(e,t,n,r)}function yn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function bn(e){return e?(e instanceof google.maps.LatLng?e:new google.maps.LatLng(e.lat,e.lng))+"":""}function kn(e){return e?(e instanceof google.maps.LatLngBounds?e:new google.maps.LatLngBounds(new google.maps.LatLng(e.south,e.east),new google.maps.LatLng(e.north,e.west)))+"":""}_(dn,"contextType",U),N.memo(function(e){var{position:t,bounds:n,mapPaneName:r,zIndex:o,onLoad:i,onUnmount:s,getPixelPositionOffset:a,children:l}=e,u=N.useContext(U),c=N.useMemo(()=>{var e=document.createElement("div");return e.style.position="absolute",e},[]),d=N.useMemo(()=>vn(c,r,t,n,a),[c,r,t,n]);return N.useEffect(()=>(null==i||i(d),null==d||d.setMap(u),()=>{null==s||s(d),null==d||d.setMap(null)}),[u,d]),N.useEffect(()=>{c.style.zIndex="".concat(o)},[o,c]),I.createPortal(l,c)});class xn extends N.PureComponent{constructor(e){super(e),_(this,"state",{paneEl:null,containerStyle:{position:"absolute"}}),_(this,"updatePane",()=>{var e=this.props.mapPaneName,t=this.overlayView.getPanes();F(!!e,"OverlayView requires props.mapPaneName but got %s",e),t?this.setState({paneEl:t[e]}):this.setState({paneEl:null})}),_(this,"onAdd",()=>{var e,t;this.updatePane(),null===(e=(t=this.props).onLoad)||void 0===e||e.call(t,this.overlayView)}),_(this,"onPositionElement",()=>{var e,t,n,r,o,i,s=this.overlayView.getProjection(),a=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yn(Object(n),!0).forEach(function(t){_(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({x:0,y:0},this.containerRef.current?pn(this.containerRef.current,this.props.getPixelPositionOffset):{}),l=mn(s,a,this.props.bounds,this.props.position);(o=l,i={left:this.state.containerStyle.left,top:this.state.containerStyle.top,width:this.state.containerStyle.width,height:this.state.containerStyle.height},o.left!==i.left||o.top!==i.top||o.width!==i.height||o.height!==i.height)&&this.setState({containerStyle:{top:null!==(e=l.top)&&void 0!==e?e:0,left:null!==(t=l.left)&&void 0!==t?t:0,width:null!==(n=l.width)&&void 0!==n?n:0,height:null!==(r=l.height)&&void 0!==r?r:0,position:"absolute"}})}),_(this,"draw",()=>{this.onPositionElement()}),_(this,"onRemove",()=>{var e,t;this.setState(()=>({paneEl:null})),null===(e=(t=this.props).onUnmount)||void 0===e||e.call(t,this.overlayView)}),this.containerRef=N.createRef();var t=new google.maps.OverlayView;t.onAdd=this.onAdd,t.draw=this.draw,t.onRemove=this.onRemove,this.overlayView=t}componentDidMount(){this.overlayView.setMap(this.context)}componentDidUpdate(e){var t=bn(e.position),n=bn(this.props.position),r=kn(e.bounds),o=kn(this.props.bounds);t===n&&r===o||this.overlayView.draw(),e.mapPaneName!==this.props.mapPaneName&&this.updatePane()}componentWillUnmount(){this.overlayView.setMap(null)}render(){var e=this.state.paneEl;return e?I.createPortal(a.jsx("div",{ref:this.containerRef,style:this.state.containerStyle,children:N.Children.only(this.props.children)}),e):null}}function wn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Sn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wn(Object(n),!0).forEach(function(t){_(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}_(xn,"FLOAT_PANE","floatPane"),_(xn,"MAP_PANE","mapPane"),_(xn,"MARKER_LAYER","markerLayer"),_(xn,"OVERLAY_LAYER","overlayLayer"),_(xn,"OVERLAY_MOUSE_TARGET","overlayMouseTarget"),_(xn,"contextType",U);var Cn={onDblClick:"dblclick",onClick:"click"},En={opacity(e,t){e.setOpacity(t)}};N.memo(function(e){var{url:t,bounds:n,options:r,visible:o}=e,i=N.useContext(U),s=new google.maps.LatLngBounds(new google.maps.LatLng(n.south,n.west),new google.maps.LatLng(n.north,n.east)),a=N.useMemo(()=>new google.maps.GroundOverlay(t,s,r),[]);return N.useEffect(()=>{null!==a&&a.setMap(i)},[i]),N.useEffect(()=>{void 0!==t&&null!==a&&(a.set("url",t),a.setMap(i))},[a,t]),N.useEffect(()=>{void 0!==o&&null!==a&&a.setOpacity(o?1:0)},[a,o]),N.useEffect(()=>{var e=new google.maps.LatLngBounds(new google.maps.LatLng(n.south,n.west),new google.maps.LatLng(n.north,n.east));void 0!==n&&null!==a&&(a.set("bounds",e),a.setMap(i))},[a,n]),null});class Ln extends N.PureComponent{constructor(){super(...arguments),_(this,"registeredEvents",[]),_(this,"state",{groundOverlay:null}),_(this,"setGroundOverlayCallback",()=>{null!==this.state.groundOverlay&&this.props.onLoad&&this.props.onLoad(this.state.groundOverlay)})}componentDidMount(){F(!!this.props.url||!!this.props.bounds,"For GroundOverlay, url and bounds are passed in to constructor and are immutable after instantiated. This is the behavior of Google Maps JavaScript API v3 ( See https://developers.google.com/maps/documentation/javascript/reference#GroundOverlay) Hence, use the corresponding two props provided by `react-google-maps-api`, url and bounds. In some cases, you'll need the GroundOverlay component to reflect the changes of url and bounds. You can leverage the React's key property to remount the component. Typically, just `key={url}` would serve your need. See https://github.com/tomchentw/react-google-maps/issues/655");var e=new google.maps.GroundOverlay(this.props.url,this.props.bounds,Sn(Sn({},this.props.options),{},{map:this.context}));this.registeredEvents=W({updaterMap:En,eventMap:Cn,prevProps:{},nextProps:this.props,instance:e}),this.setState(function(){return{groundOverlay:e}},this.setGroundOverlayCallback)}componentDidUpdate(e){null!==this.state.groundOverlay&&($(this.registeredEvents),this.registeredEvents=W({updaterMap:En,eventMap:Cn,prevProps:e,nextProps:this.props,instance:this.state.groundOverlay}))}componentWillUnmount(){this.state.groundOverlay&&(this.props.onUnmount&&this.props.onUnmount(this.state.groundOverlay),this.state.groundOverlay.setMap(null))}render(){return null}}function Pn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Mn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pn(Object(n),!0).forEach(function(t){_(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}_(Ln,"defaultProps",{onLoad:function(){}}),_(Ln,"contextType",U);var On={},jn={data(e,t){e.setData(t)},map(e,t){e.setMap(t)},options(e,t){e.setOptions(t)}};N.memo(function(e){var{data:t,onLoad:n,onUnmount:r,options:o}=e,i=N.useContext(U),[s,a]=N.useState(null);return N.useEffect(()=>{google.maps.visualization||F(!!google.maps.visualization,'Did you include prop libraries={["visualization"]} in useJsApiScript? %s',google.maps.visualization)},[]),N.useEffect(()=>{F(!!t,"data property is required in HeatmapLayer %s",t)},[t]),N.useEffect(()=>{null!==s&&s.setMap(i)},[i]),N.useEffect(()=>{o&&null!==s&&s.setOptions(o)},[s,o]),N.useEffect(()=>{var e=new google.maps.visualization.HeatmapLayer(Mn(Mn({},o),{},{data:t,map:i}));return a(e),n&&n(e),()=>{null!==s&&(r&&r(s),s.setMap(null))}},[]),null});class Nn extends N.PureComponent{constructor(){super(...arguments),_(this,"registeredEvents",[]),_(this,"state",{heatmapLayer:null}),_(this,"setHeatmapLayerCallback",()=>{null!==this.state.heatmapLayer&&this.props.onLoad&&this.props.onLoad(this.state.heatmapLayer)})}componentDidMount(){F(!!google.maps.visualization,'Did you include prop libraries={["visualization"]} to <LoadScript />? %s',google.maps.visualization),F(!!this.props.data,"data property is required in HeatmapLayer %s",this.props.data);var e=new google.maps.visualization.HeatmapLayer(Mn(Mn({},this.props.options),{},{data:this.props.data,map:this.context}));this.registeredEvents=W({updaterMap:jn,eventMap:On,prevProps:{},nextProps:this.props,instance:e}),this.setState(function(){return{heatmapLayer:e}},this.setHeatmapLayerCallback)}componentDidUpdate(e){$(this.registeredEvents),this.registeredEvents=W({updaterMap:jn,eventMap:On,prevProps:e,nextProps:this.props,instance:this.state.heatmapLayer})}componentWillUnmount(){null!==this.state.heatmapLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.heatmapLayer),$(this.registeredEvents),this.state.heatmapLayer.setMap(null))}render(){return null}}_(Nn,"contextType",U);var Dn={onCloseClick:"closeclick",onPanoChanged:"pano_changed",onPositionChanged:"position_changed",onPovChanged:"pov_changed",onResize:"resize",onStatusChanged:"status_changed",onVisibleChanged:"visible_changed",onZoomChanged:"zoom_changed"},In={register(e,t,n){e.registerPanoProvider(t,n)},links(e,t){e.setLinks(t)},motionTracking(e,t){e.setMotionTracking(t)},options(e,t){e.setOptions(t)},pano(e,t){e.setPano(t)},position(e,t){e.setPosition(t)},pov(e,t){e.setPov(t)},visible(e,t){e.setVisible(t)},zoom(e,t){e.setZoom(t)}};class Tn extends N.PureComponent{constructor(){super(...arguments),_(this,"registeredEvents",[]),_(this,"state",{streetViewPanorama:null}),_(this,"setStreetViewPanoramaCallback",()=>{null!==this.state.streetViewPanorama&&this.props.onLoad&&this.props.onLoad(this.state.streetViewPanorama)})}componentDidMount(){var e,t,n=null!==(e=null===(t=this.context)||void 0===t?void 0:t.getStreetView())&&void 0!==e?e:null;this.registeredEvents=W({updaterMap:In,eventMap:Dn,prevProps:{},nextProps:this.props,instance:n}),this.setState(()=>({streetViewPanorama:n}),this.setStreetViewPanoramaCallback)}componentDidUpdate(e){null!==this.state.streetViewPanorama&&($(this.registeredEvents),this.registeredEvents=W({updaterMap:In,eventMap:Dn,prevProps:e,nextProps:this.props,instance:this.state.streetViewPanorama}))}componentWillUnmount(){null!==this.state.streetViewPanorama&&(this.props.onUnmount&&this.props.onUnmount(this.state.streetViewPanorama),$(this.registeredEvents),this.state.streetViewPanorama.setVisible(!1))}render(){return null}}_(Tn,"contextType",U);class zn extends N.PureComponent{constructor(){super(...arguments),_(this,"state",{streetViewService:null}),_(this,"setStreetViewServiceCallback",()=>{null!==this.state.streetViewService&&this.props.onLoad&&this.props.onLoad(this.state.streetViewService)})}componentDidMount(){var e=new google.maps.StreetViewService;this.setState(function(){return{streetViewService:e}},this.setStreetViewServiceCallback)}componentWillUnmount(){null!==this.state.streetViewService&&this.props.onUnmount&&this.props.onUnmount(this.state.streetViewService)}render(){return null}}_(zn,"contextType",U);var _n={onDirectionsChanged:"directions_changed"},An={directions(e,t){e.setDirections(t)},map(e,t){e.setMap(t)},options(e,t){e.setOptions(t)},panel(e,t){e.setPanel(t)},routeIndex(e,t){e.setRouteIndex(t)}};class Rn extends N.PureComponent{constructor(){super(...arguments),_(this,"registeredEvents",[]),_(this,"state",{directionsRenderer:null}),_(this,"setDirectionsRendererCallback",()=>{null!==this.state.directionsRenderer&&(this.state.directionsRenderer.setMap(this.context),this.props.onLoad&&this.props.onLoad(this.state.directionsRenderer))})}componentDidMount(){var e=new google.maps.DirectionsRenderer(this.props.options);this.registeredEvents=W({updaterMap:An,eventMap:_n,prevProps:{},nextProps:this.props,instance:e}),this.setState(function(){return{directionsRenderer:e}},this.setDirectionsRendererCallback)}componentDidUpdate(e){null!==this.state.directionsRenderer&&($(this.registeredEvents),this.registeredEvents=W({updaterMap:An,eventMap:_n,prevProps:e,nextProps:this.props,instance:this.state.directionsRenderer}))}componentWillUnmount(){null!==this.state.directionsRenderer&&(this.props.onUnmount&&this.props.onUnmount(this.state.directionsRenderer),$(this.registeredEvents),this.state.directionsRenderer&&this.state.directionsRenderer.setMap(null))}render(){return null}}_(Rn,"contextType",U);var Fn={onPlacesChanged:"places_changed"},Un={bounds(e,t){e.setBounds(t)}};class Bn extends N.PureComponent{constructor(){super(...arguments),_(this,"registeredEvents",[]),_(this,"containerElement",N.createRef()),_(this,"state",{searchBox:null}),_(this,"setSearchBoxCallback",()=>{null!==this.state.searchBox&&this.props.onLoad&&this.props.onLoad(this.state.searchBox)})}componentDidMount(){if(F(!!google.maps.places,'You need to provide libraries={["places"]} prop to <LoadScript /> component %s',google.maps.places),null!==this.containerElement&&null!==this.containerElement.current){var e=this.containerElement.current.querySelector("input");if(null!==e){var t=new google.maps.places.SearchBox(e,this.props.options);this.registeredEvents=W({updaterMap:Un,eventMap:Fn,prevProps:{},nextProps:this.props,instance:t}),this.setState(function(){return{searchBox:t}},this.setSearchBoxCallback)}}}componentDidUpdate(e){null!==this.state.searchBox&&($(this.registeredEvents),this.registeredEvents=W({updaterMap:Un,eventMap:Fn,prevProps:e,nextProps:this.props,instance:this.state.searchBox}))}componentWillUnmount(){null!==this.state.searchBox&&(this.props.onUnmount&&this.props.onUnmount(this.state.searchBox),$(this.registeredEvents))}render(){return a.jsx("div",{ref:this.containerElement,children:N.Children.only(this.props.children)})}}_(Bn,"contextType",U);var Hn={onPlaceChanged:"place_changed"},Vn={bounds(e,t){e.setBounds(t)},restrictions(e,t){e.setComponentRestrictions(t)},fields(e,t){e.setFields(t)},options(e,t){e.setOptions(t)},types(e,t){e.setTypes(t)}};class $n extends N.PureComponent{constructor(){super(...arguments),_(this,"registeredEvents",[]),_(this,"containerElement",N.createRef()),_(this,"state",{autocomplete:null}),_(this,"setAutocompleteCallback",()=>{null!==this.state.autocomplete&&this.props.onLoad&&this.props.onLoad(this.state.autocomplete)})}componentDidMount(){var e;F(!!google.maps.places,'You need to provide libraries={["places"]} prop to <LoadScript /> component %s',google.maps.places);var t=null===(e=this.containerElement.current)||void 0===e?void 0:e.querySelector("input");if(t){var n=new google.maps.places.Autocomplete(t,this.props.options);this.registeredEvents=W({updaterMap:Vn,eventMap:Hn,prevProps:{},nextProps:this.props,instance:n}),this.setState(()=>({autocomplete:n}),this.setAutocompleteCallback)}}componentDidUpdate(e){$(this.registeredEvents),this.registeredEvents=W({updaterMap:Vn,eventMap:Hn,prevProps:e,nextProps:this.props,instance:this.state.autocomplete})}componentWillUnmount(){null!==this.state.autocomplete&&$(this.registeredEvents)}render(){return a.jsx("div",{ref:this.containerElement,className:this.props.className,children:N.Children.only(this.props.children)})}}_($n,"defaultProps",{className:""}),_($n,"contextType",U);let Wn,qn,Zn,Qn={data:""},Kn=e=>"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||Qn,Gn=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Yn=/\/\*[^]*?\*\/|  +/g,Xn=/\n+/g,Jn=(e,t)=>{let n="",r="",o="";for(let i in e){let s=e[i];"@"==i[0]?"i"==i[1]?n=i+" "+s+";":r+="f"==i[1]?Jn(s,i):i+"{"+Jn(s,"k"==i[1]?"":t)+"}":"object"==typeof s?r+=Jn(s,t?t.replace(/([^,])+/g,e=>i.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)):i):null!=s&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=Jn.p?Jn.p(i,s):i+":"+s+";")}return n+(t&&o?t+"{"+o+"}":o)+r},er={},tr=e=>{if("object"==typeof e){let t="";for(let n in e)t+=n+tr(e[n]);return t}return e},nr=(e,t,n,r,o)=>{let i=tr(e),s=er[i]||(er[i]=(e=>{let t=0,n=11;for(;t<e.length;)n=101*n+e.charCodeAt(t++)>>>0;return"go"+n})(i));if(!er[s]){let t=i!==e?e:(e=>{let t,n,r=[{}];for(;t=Gn.exec(e.replace(Yn,""));)t[4]?r.shift():t[3]?(n=t[3].replace(Xn," ").trim(),r.unshift(r[0][n]=r[0][n]||{})):r[0][t[1]]=t[2].replace(Xn," ").trim();return r[0]})(e);er[s]=Jn(o?{["@keyframes "+s]:t}:t,n?"":"."+s)}let a=n&&er.g?er.g:null;return n&&(er.g=er[s]),((e,t,n,r)=>{r?t.data=t.data.replace(r,e):-1===t.data.indexOf(e)&&(t.data=n?e+t.data:t.data+e)})(er[s],t,r,a),s};function rr(e){let t=this||{},n=e.call?e(t.p):e;return nr(n.unshift?n.raw?((e,t,n)=>e.reduce((e,r,o)=>{let i=t[o];if(i&&i.call){let e=i(n),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;i=t?"."+t:e&&"object"==typeof e?e.props?"":Jn(e,""):!1===e?"":e}return e+r+(null==i?"":i)},""))(n,[].slice.call(arguments,1),t.p):n.reduce((e,n)=>Object.assign(e,n&&n.call?n(t.p):n),{}):n,Kn(t.target),t.g,t.o,t.k)}rr.bind({g:1});let or=rr.bind({k:1});function ir(e,t){let n=this||{};return function(){let t=arguments;return function r(o,i){let s=Object.assign({},o),a=s.className||r.className;n.p=Object.assign({theme:qn&&qn()},s),n.o=/ *go\d+/.test(a),s.className=rr.apply(n,t)+(a?" "+a:"");let l=e;return e[0]&&(l=s.as||e,delete s.as),Zn&&l[0]&&Zn(s),Wn(l,s)}}}var sr=(e,t)=>(e=>"function"==typeof e)(e)?e(t):e,ar=(()=>{let e=0;return()=>(++e).toString()})(),lr=(()=>{let e;return()=>{if(void 0===e&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),ur=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,20)};case 1:return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case 2:let{toast:n}=t;return ur(e,{type:e.toasts.find(e=>e.id===n.id)?1:0,toast:n});case 3:let{toastId:r}=t;return{...e,toasts:e.toasts.map(e=>e.id===r||void 0===r?{...e,dismissed:!0,visible:!1}:e)};case 4:return void 0===t.toastId?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let o=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(e=>({...e,pauseDuration:e.pauseDuration+o}))}}},cr=[],dr={toasts:[],pausedAt:void 0},pr=e=>{dr=ur(dr,e),cr.forEach(e=>{e(dr)})},fr={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},hr=e=>(t,n)=>{let r=((e,t="blank",n)=>({createdAt:Date.now(),visible:!0,dismissed:!1,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...n,id:(null==n?void 0:n.id)||ar()}))(t,e,n);return pr({type:2,toast:r}),r.id},mr=(e,t)=>hr("blank")(e,t);mr.error=hr("error"),mr.success=hr("success"),mr.loading=hr("loading"),mr.custom=hr("custom"),mr.dismiss=e=>{pr({type:3,toastId:e})},mr.remove=e=>pr({type:4,toastId:e}),mr.promise=(e,t,n)=>{let r=mr.loading(t.loading,{...n,...null==n?void 0:n.loading});return"function"==typeof e&&(e=e()),e.then(e=>{let o=t.success?sr(t.success,e):void 0;return o?mr.success(o,{id:r,...n,...null==n?void 0:n.success}):mr.dismiss(r),e}).catch(e=>{let o=t.error?sr(t.error,e):void 0;o?mr.error(o,{id:r,...n,...null==n?void 0:n.error}):mr.dismiss(r)}),e};var gr=(e,t)=>{pr({type:1,toast:{id:e,height:t}})},vr=()=>{pr({type:5,time:Date.now()})},yr=new Map,br=e=>{let{toasts:t,pausedAt:n}=((e={})=>{let[t,n]=N.useState(dr),r=N.useRef(dr);N.useEffect(()=>(r.current!==dr&&n(dr),cr.push(n),()=>{let e=cr.indexOf(n);e>-1&&cr.splice(e,1)}),[]);let o=t.toasts.map(t=>{var n,r,o;return{...e,...e[t.type],...t,removeDelay:t.removeDelay||(null==(n=e[t.type])?void 0:n.removeDelay)||(null==e?void 0:e.removeDelay),duration:t.duration||(null==(r=e[t.type])?void 0:r.duration)||(null==e?void 0:e.duration)||fr[t.type],style:{...e.style,...null==(o=e[t.type])?void 0:o.style,...t.style}}});return{...t,toasts:o}})(e);N.useEffect(()=>{if(n)return;let e=Date.now(),r=t.map(t=>{if(t.duration===1/0)return;let n=(t.duration||0)+t.pauseDuration-(e-t.createdAt);if(!(n<0))return setTimeout(()=>mr.dismiss(t.id),n);t.visible&&mr.dismiss(t.id)});return()=>{r.forEach(e=>e&&clearTimeout(e))}},[t,n]);let r=N.useCallback(()=>{n&&pr({type:6,time:Date.now()})},[n]),o=N.useCallback((e,n)=>{let{reverseOrder:r=!1,gutter:o=8,defaultPosition:i}=n||{},s=t.filter(t=>(t.position||i)===(e.position||i)&&t.height),a=s.findIndex(t=>t.id===e.id),l=s.filter((e,t)=>t<a&&e.visible).length;return s.filter(e=>e.visible).slice(...r?[l+1]:[0,l]).reduce((e,t)=>e+(t.height||0)+o,0)},[t]);return N.useEffect(()=>{t.forEach(e=>{if(e.dismissed)((e,t=1e3)=>{if(yr.has(e))return;let n=setTimeout(()=>{yr.delete(e),pr({type:4,toastId:e})},t);yr.set(e,n)})(e.id,e.removeDelay);else{let t=yr.get(e.id);t&&(clearTimeout(t),yr.delete(e.id))}})},[t]),{toasts:t,handlers:{updateHeight:gr,startPause:vr,endPause:r,calculateOffset:o}}},kr=or`
from {
  transform: scale(0) rotate(45deg);
	opacity: 0;
}
to {
 transform: scale(1) rotate(45deg);
  opacity: 1;
}`,xr=or`
from {
  transform: scale(0);
  opacity: 0;
}
to {
  transform: scale(1);
  opacity: 1;
}`,wr=or`
from {
  transform: scale(0) rotate(90deg);
	opacity: 0;
}
to {
  transform: scale(1) rotate(90deg);
	opacity: 1;
}`,Sr=ir("div")`
  width: 20px;
  opacity: 0;
  height: 20px;
  border-radius: 10px;
  background: ${e=>e.primary||"#ff4b4b"};
  position: relative;
  transform: rotate(45deg);

  animation: ${kr} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
    forwards;
  animation-delay: 100ms;

  &:after,
  &:before {
    content: '';
    animation: ${xr} 0.15s ease-out forwards;
    animation-delay: 150ms;
    position: absolute;
    border-radius: 3px;
    opacity: 0;
    background: ${e=>e.secondary||"#fff"};
    bottom: 9px;
    left: 4px;
    height: 2px;
    width: 12px;
  }

  &:before {
    animation: ${wr} 0.15s ease-out forwards;
    animation-delay: 180ms;
    transform: rotate(90deg);
  }
`,Cr=or`
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
`,Er=ir("div")`
  width: 12px;
  height: 12px;
  box-sizing: border-box;
  border: 2px solid;
  border-radius: 100%;
  border-color: ${e=>e.secondary||"#e0e0e0"};
  border-right-color: ${e=>e.primary||"#616161"};
  animation: ${Cr} 1s linear infinite;
`,Lr=or`
from {
  transform: scale(0) rotate(45deg);
	opacity: 0;
}
to {
  transform: scale(1) rotate(45deg);
	opacity: 1;
}`,Pr=or`
0% {
	height: 0;
	width: 0;
	opacity: 0;
}
40% {
  height: 0;
	width: 6px;
	opacity: 1;
}
100% {
  opacity: 1;
  height: 10px;
}`,Mr=ir("div")`
  width: 20px;
  opacity: 0;
  height: 20px;
  border-radius: 10px;
  background: ${e=>e.primary||"#61d345"};
  position: relative;
  transform: rotate(45deg);

  animation: ${Lr} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
    forwards;
  animation-delay: 100ms;
  &:after {
    content: '';
    box-sizing: border-box;
    animation: ${Pr} 0.2s ease-out forwards;
    opacity: 0;
    animation-delay: 200ms;
    position: absolute;
    border-right: 2px solid;
    border-bottom: 2px solid;
    border-color: ${e=>e.secondary||"#fff"};
    bottom: 6px;
    left: 6px;
    height: 10px;
    width: 6px;
  }
`,Or=ir("div")`
  position: absolute;
`,jr=ir("div")`
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 20px;
  min-height: 20px;
`,Nr=or`
from {
  transform: scale(0.6);
  opacity: 0.4;
}
to {
  transform: scale(1);
  opacity: 1;
}`,Dr=ir("div")`
  position: relative;
  transform: scale(0.6);
  opacity: 0.4;
  min-width: 20px;
  animation: ${Nr} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
    forwards;
`,Ir=({toast:e})=>{let{icon:t,type:n,iconTheme:r}=e;return void 0!==t?"string"==typeof t?N.createElement(Dr,null,t):t:"blank"===n?null:N.createElement(jr,null,N.createElement(Er,{...r}),"loading"!==n&&N.createElement(Or,null,"error"===n?N.createElement(Sr,{...r}):N.createElement(Mr,{...r})))},Tr=e=>`\n0% {transform: translate3d(0,${-200*e}%,0) scale(.6); opacity:.5;}\n100% {transform: translate3d(0,0,0) scale(1); opacity:1;}\n`,zr=e=>`\n0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}\n100% {transform: translate3d(0,${-150*e}%,-1px) scale(.6); opacity:0;}\n`,_r=ir("div")`
  display: flex;
  align-items: center;
  background: #fff;
  color: #363636;
  line-height: 1.3;
  will-change: transform;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);
  max-width: 350px;
  pointer-events: auto;
  padding: 8px 10px;
  border-radius: 8px;
`,Ar=ir("div")`
  display: flex;
  justify-content: center;
  margin: 4px 10px;
  color: inherit;
  flex: 1 1 auto;
  white-space: pre-line;
`,Rr=N.memo(({toast:e,position:t,style:n,children:r})=>{let o=e.height?((e,t)=>{let n=e.includes("top")?1:-1,[r,o]=lr()?["0%{opacity:0;} 100%{opacity:1;}","0%{opacity:1;} 100%{opacity:0;}"]:[Tr(n),zr(n)];return{animation:t?`${or(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${or(o)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}})(e.position||t||"top-center",e.visible):{opacity:0},i=N.createElement(Ir,{toast:e}),s=N.createElement(Ar,{...e.ariaProps},sr(e.message,e));return N.createElement(_r,{className:e.className,style:{...o,...n,...e.style}},"function"==typeof r?r({icon:i,message:s}):N.createElement(N.Fragment,null,i,s))});!function(e,t,n,r){Jn.p=t,Wn=e,qn=n,Zn=r}(N.createElement);var Fr=({id:e,className:t,style:n,onHeightUpdate:r,children:o})=>{let i=N.useCallback(t=>{if(t){let n=()=>{let n=t.getBoundingClientRect().height;r(e,n)};n(),new MutationObserver(n).observe(t,{subtree:!0,childList:!0,characterData:!0})}},[e,r]);return N.createElement("div",{ref:i,className:t,style:n},o)},Ur=rr`
  z-index: 9999;
  > * {
    pointer-events: auto;
  }
`,Br=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:o,containerStyle:i,containerClassName:s})=>{let{toasts:a,handlers:l}=br(n);return N.createElement("div",{id:"_rht_toaster",style:{position:"fixed",zIndex:9999,top:16,left:16,right:16,bottom:16,pointerEvents:"none",...i},className:s,onMouseEnter:l.startPause,onMouseLeave:l.endPause},a.map(n=>{let i=n.position||t,s=((e,t)=>{let n=e.includes("top"),r=n?{top:0}:{bottom:0},o=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:lr()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...r,...o}})(i,l.calculateOffset(n,{reverseOrder:e,gutter:r,defaultPosition:t}));return N.createElement(Fr,{id:n.id,key:n.id,onHeightUpdate:l.updateHeight,className:n.visible?Ur:"",style:s},"custom"===n.type?sr(n.message,n):o?o(n):N.createElement(Rr,{toast:n,position:i}))}))},Hr=mr;
/**
	 * @license lucide-react v0.525.0 - ISC
	 *
	 * This source code is licensed under the ISC license.
	 * See the LICENSE file in the root directory of this source tree.
	 */
const Vr=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),$r=e=>{const t=(e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()))(e);return t.charAt(0).toUpperCase()+t.slice(1)},Wr=(...e)=>e.filter((e,t,n)=>Boolean(e)&&""!==e.trim()&&n.indexOf(e)===t).join(" ").trim(),qr=e=>{for(const t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0};
/**
	 * @license lucide-react v0.525.0 - ISC
	 *
	 * This source code is licensed under the ISC license.
	 * See the LICENSE file in the root directory of this source tree.
	 */
var Zr={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"};
/**
	 * @license lucide-react v0.525.0 - ISC
	 *
	 * This source code is licensed under the ISC license.
	 * See the LICENSE file in the root directory of this source tree.
	 */const Qr=N.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:s,...a},l)=>N.createElement("svg",{ref:l,...Zr,width:t,height:t,stroke:e,strokeWidth:r?24*Number(n)/Number(t):n,className:Wr("lucide",o),...!i&&!qr(a)&&{"aria-hidden":"true"},...a},[...s.map(([e,t])=>N.createElement(e,t)),...Array.isArray(i)?i:[i]])),Kr=(e,t)=>{const n=N.forwardRef(({className:n,...r},o)=>N.createElement(Qr,{ref:o,iconNode:t,className:Wr(`lucide-${Vr($r(e))}`,`lucide-${e}`,n),...r}));return n.displayName=$r(e),n},Gr=Kr("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"}]]),Yr=Kr("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"}]]),Xr=Kr("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),Jr=Kr("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]),eo=Kr("clock",[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]),to=Kr("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"}]]),no=Kr("expand",[["path",{d:"m15 15 6 6",key:"1s409w"}],["path",{d:"m15 9 6-6",key:"ko1vev"}],["path",{d:"M21 16v5h-5",key:"1ck2sf"}],["path",{d:"M21 8V3h-5",key:"1qoq8a"}],["path",{d:"M3 16v5h5",key:"1t08am"}],["path",{d:"m3 21 6-6",key:"wwnumi"}],["path",{d:"M3 8V3h5",key:"1ln10m"}],["path",{d:"M9 9 3 3",key:"v551iv"}]]),ro=Kr("grid-3x3",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]]),oo=Kr("hotel",[["path",{d:"M10 22v-6.57",key:"1wmca3"}],["path",{d:"M12 11h.01",key:"z322tv"}],["path",{d:"M12 7h.01",key:"1ivr5q"}],["path",{d:"M14 15.43V22",key:"1q2vjd"}],["path",{d:"M15 16a5 5 0 0 0-6 0",key:"o9wqvi"}],["path",{d:"M16 11h.01",key:"xkw8gn"}],["path",{d:"M16 7h.01",key:"1kdx03"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 7h.01",key:"1vti4s"}],["rect",{x:"4",y:"2",width:"16",height:"20",rx:"2",key:"1uxh74"}]]),io=Kr("image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]),so=Kr("images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]]),ao=Kr("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]),lo=Kr("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"}]]),uo=Kr("list",[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]]),co=Kr("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"}]]),po=Kr("map",[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]]),fo=Kr("maximize-2",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]]),ho=Kr("message-circle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]]),mo=Kr("minimize-2",[["path",{d:"m14 10 7-7",key:"oa77jy"}],["path",{d:"M20 10h-6V4",key:"mjg0md"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M4 14h6v6",key:"rmj7iw"}]]),go=Kr("pin",[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z",key:"1nkz8b"}]]),vo=Kr("plane",[["path",{d:"M17.8 19.2 16 11l3.5-3.5C21 6 21.5 4 21 3c-1-.5-3 0-4.5 1.5L13 8 4.8 6.2c-.5-.1-.9.1-1.1.5l-.3.5c-.2.5-.1 1 .3 1.3L9 12l-2 3H4l-1 1 3 2 2 3 1-1v-3l3-2 3.5 5.3c.3.4.8.5 1.3.3l.5-.2c.4-.3.6-.7.5-1.2z",key:"1v9wt8"}]]),yo=Kr("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"}]]),bo=Kr("tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]),ko=Kr("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);
/**
	 * @license lucide-react v0.525.0 - ISC
	 *
	 * This source code is licensed under the ISC license.
	 * See the LICENSE file in the root directory of this source tree.
	 */function xo(){}function wo(){}const So=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Co=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Eo={};function Lo(e,t){return(Eo.jsx?Co:So).test(e)}const Po=/[ \t\n\f\r]/g;function Mo(e){return""===e.replace(Po,"")}class Oo{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function jo(e,t){const n={},r={};for(const t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new Oo(n,r,t)}function No(e){return e.toLowerCase()}Oo.prototype.normal={},Oo.prototype.property={},Oo.prototype.space=void 0;class Do{constructor(e,t){this.attribute=t,this.property=e}}Do.prototype.attribute="",Do.prototype.booleanish=!1,Do.prototype.boolean=!1,Do.prototype.commaOrSpaceSeparated=!1,Do.prototype.commaSeparated=!1,Do.prototype.defined=!1,Do.prototype.mustUseProperty=!1,Do.prototype.number=!1,Do.prototype.overloadedBoolean=!1,Do.prototype.property="",Do.prototype.spaceSeparated=!1,Do.prototype.space=void 0;let Io=0;const To=Bo(),zo=Bo(),_o=Bo(),Ao=Bo(),Ro=Bo(),Fo=Bo(),Uo=Bo();function Bo(){return 2**++Io}var Ho=Object.freeze({__proto__:null,boolean:To,booleanish:zo,commaOrSpaceSeparated:Uo,commaSeparated:Fo,number:Ao,overloadedBoolean:_o,spaceSeparated:Ro});const Vo=Object.keys(Ho);class $o extends Do{constructor(e,t,n,r){let o=-1;if(super(e,t),Wo(this,"space",r),"number"==typeof n)for(;++o<Vo.length;){const e=Vo[o];Wo(this,Vo[o],(n&Ho[e])===Ho[e])}}}function Wo(e,t,n){n&&(e[t]=n)}function qo(e){const t={},n={};for(const[r,o]of Object.entries(e.properties)){const i=new $o(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[No(r)]=r,n[No(i.attribute)]=r}return new Oo(t,n,e.space)}$o.prototype.defined=!0;const Zo=qo({properties:{ariaActiveDescendant:null,ariaAtomic:zo,ariaAutoComplete:null,ariaBusy:zo,ariaChecked:zo,ariaColCount:Ao,ariaColIndex:Ao,ariaColSpan:Ao,ariaControls:Ro,ariaCurrent:null,ariaDescribedBy:Ro,ariaDetails:null,ariaDisabled:zo,ariaDropEffect:Ro,ariaErrorMessage:null,ariaExpanded:zo,ariaFlowTo:Ro,ariaGrabbed:zo,ariaHasPopup:null,ariaHidden:zo,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ro,ariaLevel:Ao,ariaLive:null,ariaModal:zo,ariaMultiLine:zo,ariaMultiSelectable:zo,ariaOrientation:null,ariaOwns:Ro,ariaPlaceholder:null,ariaPosInSet:Ao,ariaPressed:zo,ariaReadOnly:zo,ariaRelevant:null,ariaRequired:zo,ariaRoleDescription:Ro,ariaRowCount:Ao,ariaRowIndex:Ao,ariaRowSpan:Ao,ariaSelected:zo,ariaSetSize:Ao,ariaSort:null,ariaValueMax:Ao,ariaValueMin:Ao,ariaValueNow:Ao,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function Qo(e,t){return t in e?e[t]:t}function Ko(e,t){return Qo(e,t.toLowerCase())}const Go=qo({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Fo,acceptCharset:Ro,accessKey:Ro,action:null,allow:null,allowFullScreen:To,allowPaymentRequest:To,allowUserMedia:To,alt:null,as:null,async:To,autoCapitalize:null,autoComplete:Ro,autoFocus:To,autoPlay:To,blocking:Ro,capture:null,charSet:null,checked:To,cite:null,className:Ro,cols:Ao,colSpan:null,content:null,contentEditable:zo,controls:To,controlsList:Ro,coords:Ao|Fo,crossOrigin:null,data:null,dateTime:null,decoding:null,default:To,defer:To,dir:null,dirName:null,disabled:To,download:_o,draggable:zo,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:To,formTarget:null,headers:Ro,height:Ao,hidden:_o,high:Ao,href:null,hrefLang:null,htmlFor:Ro,httpEquiv:Ro,id:null,imageSizes:null,imageSrcSet:null,inert:To,inputMode:null,integrity:null,is:null,isMap:To,itemId:null,itemProp:Ro,itemRef:Ro,itemScope:To,itemType:Ro,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:To,low:Ao,manifest:null,max:null,maxLength:Ao,media:null,method:null,min:null,minLength:Ao,multiple:To,muted:To,name:null,nonce:null,noModule:To,noValidate:To,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:To,optimum:Ao,pattern:null,ping:Ro,placeholder:null,playsInline:To,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:To,referrerPolicy:null,rel:Ro,required:To,reversed:To,rows:Ao,rowSpan:Ao,sandbox:Ro,scope:null,scoped:To,seamless:To,selected:To,shadowRootClonable:To,shadowRootDelegatesFocus:To,shadowRootMode:null,shape:null,size:Ao,sizes:null,slot:null,span:Ao,spellCheck:zo,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Ao,step:null,style:null,tabIndex:Ao,target:null,title:null,translate:null,type:null,typeMustMatch:To,useMap:null,value:zo,width:Ao,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ro,axis:null,background:null,bgColor:null,border:Ao,borderColor:null,bottomMargin:Ao,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:To,declare:To,event:null,face:null,frame:null,frameBorder:null,hSpace:Ao,leftMargin:Ao,link:null,longDesc:null,lowSrc:null,marginHeight:Ao,marginWidth:Ao,noResize:To,noHref:To,noShade:To,noWrap:To,object:null,profile:null,prompt:null,rev:null,rightMargin:Ao,rules:null,scheme:null,scrolling:zo,standby:null,summary:null,text:null,topMargin:Ao,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Ao,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:To,disableRemotePlayback:To,prefix:null,property:null,results:Ao,security:null,unselectable:null},space:"html",transform:Ko}),Yo=qo({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",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",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",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",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",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",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Uo,accentHeight:Ao,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Ao,amplitude:Ao,arabicForm:null,ascent:Ao,attributeName:null,attributeType:null,azimuth:Ao,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Ao,by:null,calcMode:null,capHeight:Ao,className:Ro,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Ao,diffuseConstant:Ao,direction:null,display:null,dur:null,divisor:Ao,dominantBaseline:null,download:To,dx:null,dy:null,edgeMode:null,editable:null,elevation:Ao,enableBackground:null,end:null,event:null,exponent:Ao,externalResourcesRequired:null,fill:null,fillOpacity:Ao,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Fo,g2:Fo,glyphName:Fo,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Ao,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Ao,horizOriginX:Ao,horizOriginY:Ao,id:null,ideographic:Ao,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Ao,k:Ao,k1:Ao,k2:Ao,k3:Ao,k4:Ao,kernelMatrix:Uo,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Ao,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Ao,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Ao,overlineThickness:Ao,paintOrder:null,panose1:null,path:null,pathLength:Ao,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ro,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Ao,pointsAtY:Ao,pointsAtZ:Ao,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Uo,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Uo,rev:Uo,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Uo,requiredFeatures:Uo,requiredFonts:Uo,requiredFormats:Uo,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Ao,specularExponent:Ao,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Ao,strikethroughThickness:Ao,string:null,stroke:null,strokeDashArray:Uo,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Ao,strokeOpacity:Ao,strokeWidth:null,style:null,surfaceScale:Ao,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Uo,tabIndex:Ao,tableValues:null,target:null,targetX:Ao,targetY:Ao,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Uo,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Ao,underlineThickness:Ao,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Ao,values:null,vAlphabetic:Ao,vMathematical:Ao,vectorEffect:null,vHanging:Ao,vIdeographic:Ao,version:null,vertAdvY:Ao,vertOriginX:Ao,vertOriginY:Ao,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Ao,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Qo}),Xo=qo({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),Jo=qo({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Ko}),ei=qo({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),ti={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},ni=/[A-Z]/g,ri=/-[a-z]/g,oi=/^data[-\w.:]+$/i;function ii(e){return"-"+e.toLowerCase()}function si(e){return e.charAt(1).toUpperCase()}const ai=jo([Zo,Go,Xo,Jo,ei],"html"),li=jo([Zo,Yo,Xo,Jo,ei],"svg");var ui,ci,di,pi={};function fi(){if(di)return pi;di=1;var e=pi&&pi.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(pi,"__esModule",{value:!0}),pi.default=function(e,n){var r=null;if(!e||"string"!=typeof e)return r;var o=(0,t.default)(e),i="function"==typeof n;return o.forEach(function(e){if("declaration"===e.type){var t=e.property,o=e.value;i?n(t,o,e):o&&((r=r||{})[t]=o)}}),r};var t=e(function(){if(ci)return ui;ci=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,a=/^\s+|\s+$/g,l="";function u(e){return e?e.replace(a,l):l}return ui=function(a,c){if("string"!=typeof a)throw new TypeError("First argument must be a string");if(!a)return[];c=c||{};var d=1,p=1;function f(e){var n=e.match(t);n&&(d+=n.length);var r=e.lastIndexOf("\n");p=~r?e.length-r:p+e.length}function h(){var e={line:d,column:p};return function(t){return t.position=new m(e),y(),t}}function m(e){this.start=e,this.end={line:d,column:p},this.source=c.source}function g(e){var t=new Error(c.source+":"+d+":"+p+": "+e);if(t.reason=e,t.filename=c.source,t.line=d,t.column=p,t.source=a,!c.silent)throw t}function v(e){var t=e.exec(a);if(t){var n=t[0];return f(n),a=a.slice(n.length),t}}function y(){v(n)}function b(e){var t;for(e=e||[];t=k();)!1!==t&&e.push(t);return e}function k(){var e=h();if("/"==a.charAt(0)&&"*"==a.charAt(1)){for(var t=2;l!=a.charAt(t)&&("*"!=a.charAt(t)||"/"!=a.charAt(t+1));)++t;if(t+=2,l===a.charAt(t-1))return g("End of comment missing");var n=a.slice(2,t-2);return p+=2,f(n),a=a.slice(t),p+=2,e({type:"comment",comment:n})}}function x(){var t=h(),n=v(r);if(n){if(k(),!v(o))return g("property missing ':'");var a=v(i),c=t({type:"declaration",property:u(n[0].replace(e,l)),value:a?u(a[0].replace(e,l)):l});return v(s),c}}return m.prototype.content=a,y(),function(){var e,t=[];for(b(t);e=x();)!1!==e&&(t.push(e),b(t));return t}()},ui}());return pi}var hi,mi,gi,vi={};function yi(){if(hi)return vi;hi=1,Object.defineProperty(vi,"__esModule",{value:!0}),vi.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,i=function(e,t){return t.toUpperCase()},s=function(e,t){return"".concat(t,"-")};return vi.camelCase=function(a,l){return void 0===l&&(l={}),function(t){return!t||n.test(t)||e.test(t)}(a)?a:(a=a.toLowerCase(),(a=l.reactCompat?a.replace(o,s):a.replace(r,s)).replace(t,i))},vi}var bi=e(function(){if(gi)return mi;gi=1;var e=(mi&&mi.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(fi()),t=yi();function n(n,r){var o={};return n&&"string"==typeof n?((0,e.default)(n,function(e,n){e&&n&&(o[(0,t.camelCase)(e,r)]=n)}),o):o}return n.default=n,mi=n}());const ki=wi("end"),xi=wi("start");function wi(e){return function(t){const n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function Si(e){return e&&"object"==typeof e?"position"in e||"type"in e?Ei(e.position):"start"in e||"end"in e?Ei(e):"line"in e||"column"in e?Ci(e):"":""}function Ci(e){return Li(e&&e.line)+":"+Li(e&&e.column)}function Ei(e){return Ci(e&&e.start)+"-"+Ci(e&&e.end)}function Li(e){return e&&"number"==typeof e?e:1}class Pi extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",o={},i=!1;if(t&&(o="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!o.cause&&e&&(i=!0,r=e.message,o.cause=e),!o.ruleId&&!o.source&&"string"==typeof n){const e=n.indexOf(":");-1===e?o.ruleId=n:(o.source=n.slice(0,e),o.ruleId=n.slice(e+1))}if(!o.place&&o.ancestors&&o.ancestors){const e=o.ancestors[o.ancestors.length-1];e&&(o.place=e.position)}const s=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file,this.message=r,this.line=s?s.line:void 0,this.name=Si(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=i&&o.cause&&"string"==typeof o.cause.stack?o.cause.stack:"",this.actual,this.expected,this.note,this.url}}Pi.prototype.file="",Pi.prototype.name="",Pi.prototype.reason="",Pi.prototype.message="",Pi.prototype.stack="",Pi.prototype.column=void 0,Pi.prototype.line=void 0,Pi.prototype.ancestors=void 0,Pi.prototype.cause=void 0,Pi.prototype.fatal=void 0,Pi.prototype.place=void 0,Pi.prototype.ruleId=void 0,Pi.prototype.source=void 0;const Mi={}.hasOwnProperty,Oi=new Map,ji=/[A-Z]/g,Ni=new Set(["table","tbody","thead","tfoot","tr"]),Di=new Set(["td","th"]),Ii="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Ti(e,t){if(!t||void 0===t.Fragment)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if("function"!=typeof t.jsxDEV)throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=function(e,t){return n;function n(n,r,o,i){const s=Array.isArray(o.children),a=xi(n);return t(r,o,i,s,{columnNumber:a?a.column-1:void 0,fileName:e,lineNumber:a?a.line:void 0},void 0)}}(n,t.jsxDEV)}else{if("function"!=typeof t.jsx)throw new TypeError("Expected `jsx` in production options");if("function"!=typeof t.jsxs)throw new TypeError("Expected `jsxs` in production options");r=function(e,t,n){return r;function r(e,r,o,i){const s=Array.isArray(o.children)?n:t;return i?s(r,o,i):s(r,o)}}(0,t.jsx,t.jsxs)}const o={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?li:ai,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},i=zi(o,e,void 0);return i&&"string"!=typeof i?i:o.create(e,o.Fragment,{children:i||void 0},void 0)}function zi(e,t,n){return"element"===t.type?function(e,t,n){const r=e.schema;let o=r;"svg"===t.tagName.toLowerCase()&&"html"===r.space&&(o=li,e.schema=o);e.ancestors.push(t);const i=Ui(e,t.tagName,!1),s=function(e,t){const n={};let r,o;for(o in t.properties)if("children"!==o&&Mi.call(t.properties,o)){const i=Fi(e,o,t.properties[o]);if(i){const[o,s]=i;e.tableCellAlignToStyle&&"align"===o&&"string"==typeof s&&Di.has(t.tagName)?r=s:n[o]=s}}if(r){(n.style||(n.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=r}return n}(e,t);let a=Ri(e,t);Ni.has(t.tagName)&&(a=a.filter(function(e){return"string"!=typeof e||!("object"==typeof(t=e)?"text"===t.type&&Mo(t.value):Mo(t));var t}));return _i(e,s,i,t),Ai(s,a),e.ancestors.pop(),e.schema=r,e.create(t,i,s,n)}(e,t,n):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}Bi(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,n){const r=e.schema;let o=r;"svg"===t.name&&"html"===r.space&&(o=li,e.schema=o);e.ancestors.push(t);const i=null===t.name?e.Fragment:Ui(e,t.name,!0),s=function(e,t){const n={};for(const r of t.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&e.evaluater){const t=r.data.estree.body[0];xo(t.type);const o=t.expression;xo(o.type);const i=o.properties[0];xo(i.type),Object.assign(n,e.evaluater.evaluateExpression(i.argument))}else Bi(e,t.position);else{const o=r.name;let i;if(r.value&&"object"==typeof r.value)if(r.value.data&&r.value.data.estree&&e.evaluater){const t=r.value.data.estree.body[0];xo(t.type),i=e.evaluater.evaluateExpression(t.expression)}else Bi(e,t.position);else i=null===r.value||r.value;n[o]=i}return n}(e,t),a=Ri(e,t);return _i(e,s,i,t),Ai(s,a),e.ancestors.pop(),e.schema=r,e.create(t,i,s,n)}(e,t,n):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Bi(e,t.position)}(e,t):"root"===t.type?function(e,t,n){const r={};return Ai(r,Ri(e,t)),e.create(t,e.Fragment,r,n)}(e,t,n):"text"===t.type?function(e,t){return t.value}(0,t):void 0}function _i(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Ai(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Ri(e,t){const n=[];let r=-1;const o=e.passKeys?new Map:Oi;for(;++r<t.children.length;){const i=t.children[r];let s;if(e.passKeys){const e="element"===i.type?i.tagName:"mdxJsxFlowElement"===i.type||"mdxJsxTextElement"===i.type?i.name:void 0;if(e){const t=o.get(e)||0;s=e+"-"+t,o.set(e,t+1)}}const a=zi(e,i,s);void 0!==a&&n.push(a)}return n}function Fi(e,t,n){const r=function(e,t){const n=No(t);let r=t,o=Do;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&oi.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(ri,si);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!ri.test(e)){let n=e.replace(ni,ii);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}o=$o}return new o(r,t)}(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?function(e){const t={};return(""===e[e.length-1]?[...e,""]:e).join((t.padRight?" ":"")+","+(!1===t.padLeft?"":" ")).trim()}(n):n.join(" ").trim()),"style"===r.property){let t="object"==typeof n?n:function(e,t){try{return bi(t,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};const n=t,r=new Pi("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=Ii+"#cannot-parse-style-attribute",r}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){const t={};let n;for(n in e)Mi.call(e,n)&&(t[Hi(n)]=e[n]);return t}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?ti[r.property]||r.property:r.attribute,n]}}function Ui(e,t,n){let r;if(n)if(t.includes(".")){const e=t.split(".");let n,o=-1;for(;++o<e.length;){const t=Lo(e[o])?{type:"Identifier",name:e[o]}:{type:"Literal",value:e[o]};n=n?{type:"MemberExpression",object:n,property:t,computed:Boolean(o&&"Literal"===t.type),optional:!1}:t}r=n}else r=Lo(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else r={type:"Literal",value:t};if("Literal"===r.type){const t=r.value;return Mi.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);Bi(e)}function Bi(e,t){const n=new Pi("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=Ii+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Hi(e){let t=e.replace(ji,Vi);return"ms-"===t.slice(0,3)&&(t="-"+t),t}function Vi(e){return"-"+e.toLowerCase()}const $i={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},Wi={};function qi(e,t){return Zi(e,"boolean"!=typeof Wi.includeImageAlt||Wi.includeImageAlt,"boolean"!=typeof Wi.includeHtml||Wi.includeHtml)}function Zi(e,t,n){if(function(e){return Boolean(e&&"object"==typeof e)}(e)){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Qi(e.children,t,n)}return Array.isArray(e)?Qi(e,t,n):""}function Qi(e,t,n){const r=[];let o=-1;for(;++o<e.length;)r[o]=Zi(e[o],t,n);return r.join("")}const Ki=document.createElement("i");function Gi(e){const t="&"+e+";";Ki.innerHTML=t;const n=Ki.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&(n!==t&&n)}function Yi(e,t,n,r){const o=e.length;let i,s=0;if(t=t<0?-t>o?0:o+t:t>o?o:t,n=n>0?n:0,r.length<1e4)i=Array.from(r),i.unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);s<r.length;)i=r.slice(s,s+1e4),i.unshift(t,0),e.splice(...i),s+=1e4,t+=1e4}function Xi(e,t){return e.length>0?(Yi(e,e.length,0,t),e):t}const Ji={}.hasOwnProperty;function es(e){const t={};let n=-1;for(;++n<e.length;)ts(t,e[n]);return t}function ts(e,t){let n;for(n in t){const r=(Ji.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let i;if(o)for(i in o){Ji.call(r,i)||(r[i]=[]);const e=o[i];ns(r[i],Array.isArray(e)?e:e?[e]:[])}}}function ns(e,t){let n=-1;const r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);Yi(e,0,0,r)}function rs(e,t){const n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||!(65535&~n)||65534==(65535&n)||n>1114111?"�":String.fromCodePoint(n)}function os(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const is=vs(/[A-Za-z]/),ss=vs(/[\dA-Za-z]/),as=vs(/[#-'*+\--9=?A-Z^-~]/);function ls(e){return null!==e&&(e<32||127===e)}const us=vs(/\d/),cs=vs(/[\dA-Fa-f]/),ds=vs(/[!-/:-@[-`{-~]/);function ps(e){return null!==e&&e<-2}function fs(e){return null!==e&&(e<0||32===e)}function hs(e){return-2===e||-1===e||32===e}const ms=vs(/\p{P}|\p{S}/u),gs=vs(/\s/);function vs(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function ys(e){const t=[];let n=-1,r=0,o=0;for(;++n<e.length;){const i=e.charCodeAt(n);let s="";if(37===i&&ss(e.charCodeAt(n+1))&&ss(e.charCodeAt(n+2)))o=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(s=String.fromCharCode(i));else if(i>55295&&i<57344){const t=e.charCodeAt(n+1);i<56320&&t>56319&&t<57344?(s=String.fromCharCode(i,t),o=1):s="�"}else s=String.fromCharCode(i);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+o+1,s=""),o&&(n+=o,o=0)}return t.join("")+e.slice(r)}function bs(e,t,n,r){const o=r?r-1:Number.POSITIVE_INFINITY;let i=0;return function(r){if(hs(r))return e.enter(n),s(r);return t(r)};function s(r){return hs(r)&&i++<o?(e.consume(r),s):(e.exit(n),t(r))}}const ks={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,function(n){if(null===n)return void e.consume(n);return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),bs(e,t,"linePrefix")},function(t){return e.enter("paragraph"),r(t)});let n;return t;function r(t){const r=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):ps(t)?(e.consume(t),e.exit("chunkText"),r):(e.consume(t),o)}}};const xs={tokenize:function(e){const t=this,n=[];let r,o,i,s=0;return a;function a(r){if(s<n.length){const o=n[s];return t.containerState=o[1],e.attempt(o[0].continuation,l,u)(r)}return u(r)}function l(e){if(s++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&y();const n=t.events.length;let o,i=n;for(;i--;)if("exit"===t.events[i][0]&&"chunkFlow"===t.events[i][1].type){o=t.events[i][1].end;break}v(s);let a=n;for(;a<t.events.length;)t.events[a][1].end={...o},a++;return Yi(t.events,i+1,0,t.events.slice(n)),t.events.length=a,u(e)}return a(e)}function u(o){if(s===n.length){if(!r)return p(o);if(r.currentConstruct&&r.currentConstruct.concrete)return h(o);t.interrupt=Boolean(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(ws,c,d)(o)}function c(e){return r&&y(),v(s),p(e)}function d(e){return t.parser.lazy[t.now().line]=s!==n.length,i=t.now().offset,h(e)}function p(n){return t.containerState={},e.attempt(ws,f,h)(n)}function f(e){return s++,n.push([t.currentConstruct,t.containerState]),p(e)}function h(n){return null===n?(r&&y(),v(0),void e.consume(n)):(r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:o}),m(n))}function m(n){return null===n?(g(e.exit("chunkFlow"),!0),v(0),void e.consume(n)):ps(n)?(e.consume(n),g(e.exit("chunkFlow")),s=0,t.interrupt=void 0,a):(e.consume(n),m)}function g(e,n){const a=t.sliceStream(e);if(n&&a.push(null),e.previous=o,o&&(o.next=e),o=e,r.defineSkip(e.start),r.write(a),t.parser.lazy[e.start.line]){let e=r.events.length;for(;e--;)if(r.events[e][1].start.offset<i&&(!r.events[e][1].end||r.events[e][1].end.offset>i))return;const n=t.events.length;let o,a,l=n;for(;l--;)if("exit"===t.events[l][0]&&"chunkFlow"===t.events[l][1].type){if(o){a=t.events[l][1].end;break}o=!0}for(v(s),e=n;e<t.events.length;)t.events[e][1].end={...a},e++;Yi(t.events,l+1,0,t.events.slice(n)),t.events.length=e}}function v(r){let o=n.length;for(;o-- >r;){const r=n[o];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function y(){r.write([null]),o=void 0,r=void 0,t.containerState._closeFlow=void 0}}},ws={tokenize:function(e,t,n){return bs(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function Ss(e){return null===e||fs(e)||gs(e)?1:ms(e)?2:void 0}function Cs(e,t,n){const r=[];let o=-1;for(;++o<e.length;){const i=e[o].resolveAll;i&&!r.includes(i)&&(t=i(t,n),r.push(i))}return t}const Es={name:"attention",resolveAll:function(e,t){let n,r,o,i,s,a,l,u,c=-1;for(;++c<e.length;)if("enter"===e[c][0]&&"attentionSequence"===e[c][1].type&&e[c][1]._close)for(n=c;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[c][1]).charCodeAt(0)){if((e[n][1]._close||e[c][1]._open)&&(e[c][1].end.offset-e[c][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[c][1].end.offset-e[c][1].start.offset)%3))continue;a=e[n][1].end.offset-e[n][1].start.offset>1&&e[c][1].end.offset-e[c][1].start.offset>1?2:1;const d={...e[n][1].end},p={...e[c][1].start};Ls(d,-a),Ls(p,a),i={type:a>1?"strongSequence":"emphasisSequence",start:d,end:{...e[n][1].end}},s={type:a>1?"strongSequence":"emphasisSequence",start:{...e[c][1].start},end:p},o={type:a>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[c][1].start}},r={type:a>1?"strong":"emphasis",start:{...i.start},end:{...s.end}},e[n][1].end={...i.start},e[c][1].start={...s.end},l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=Xi(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=Xi(l,[["enter",r,t],["enter",i,t],["exit",i,t],["enter",o,t]]),l=Xi(l,Cs(t.parser.constructs.insideSpan.null,e.slice(n+1,c),t)),l=Xi(l,[["exit",o,t],["enter",s,t],["exit",s,t],["exit",r,t]]),e[c][1].end.offset-e[c][1].start.offset?(u=2,l=Xi(l,[["enter",e[c][1],t],["exit",e[c][1],t]])):u=0,Yi(e,n-1,c-n+3,l),c=n+l.length-u-2;break}c=-1;for(;++c<e.length;)"attentionSequence"===e[c][1].type&&(e[c][1].type="data");return e},tokenize:function(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,o=Ss(r);let i;return function(t){return i=t,e.enter("attentionSequence"),s(t)};function s(a){if(a===i)return e.consume(a),s;const l=e.exit("attentionSequence"),u=Ss(a),c=!u||2===u&&o||n.includes(a),d=!o||2===o&&u||n.includes(r);return l._open=Boolean(42===i?c:c&&(o||!d)),l._close=Boolean(42===i?d:d&&(u||!c)),t(a)}}};function Ls(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Ps={name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o};function o(t){return is(t)?(e.consume(t),i):64===t?n(t):l(t)}function i(e){return 43===e||45===e||46===e||ss(e)?(r=1,s(e)):l(e)}function s(t){return 58===t?(e.consume(t),r=0,a):(43===t||45===t||46===t||ss(t))&&r++<32?(e.consume(t),s):(r=0,l(t))}function a(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||ls(r)?n(r):(e.consume(r),a)}function l(t){return 64===t?(e.consume(t),u):as(t)?(e.consume(t),l):n(t)}function u(e){return ss(e)?c(e):n(e)}function c(n){return 46===n?(e.consume(n),r=0,u):62===n?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t):d(n)}function d(t){if((45===t||ss(t))&&r++<63){const n=45===t?d:c;return e.consume(t),n}return n(t)}}};const Ms={partial:!0,tokenize:function(e,t,n){return function(t){return hs(t)?bs(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||ps(e)?t(e):n(e)}}};const Os={continuation:{tokenize:function(e,t,n){const r=this;return function(t){if(hs(t))return bs(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t);return o(t)};function o(r){return e.attempt(Os,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){const r=this;return function(t){if(62===t){const n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),o}return n(t)};function o(n){return hs(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}};const js={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return ds(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}};const Ns={name:"characterReference",tokenize:function(e,t,n){const r=this;let o,i,s=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),a};function a(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),o=31,i=ss,u(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,i=cs,u):(e.enter("characterReferenceValue"),o=7,i=us,u(t))}function u(a){if(59===a&&s){const o=e.exit("characterReferenceValue");return i!==ss||Gi(r.sliceSerialize(o))?(e.enter("characterReferenceMarker"),e.consume(a),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(a)}return i(a)&&s++<o?(e.consume(a),u):n(a)}}};const Ds={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){if(null===t)return n(t);return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},Is={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){const r=this,o={partial:!0,tokenize:function(e,t,n){let o=0;return s;function s(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l}function l(t){return e.enter("codeFencedFence"),hs(t)?bs(e,u,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):u(t)}function u(t){return t===i?(e.enter("codeFencedFenceSequence"),c(t)):n(t)}function c(t){return t===i?(o++,e.consume(t),c):o>=a?(e.exit("codeFencedFenceSequence"),hs(t)?bs(e,d,"whitespace")(t):d(t)):n(t)}function d(r){return null===r||ps(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}};let i,s=0,a=0;return function(t){return function(t){const n=r.events[r.events.length-1];return s=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,i=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),l(t)}(t)};function l(t){return t===i?(a++,e.consume(t),l):a<3?n(t):(e.exit("codeFencedFenceSequence"),hs(t)?bs(e,u,"whitespace")(t):u(t))}function u(n){return null===n||ps(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check(Ds,f,y)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),c(n))}function c(t){return null===t||ps(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),u(t)):hs(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),bs(e,d,"whitespace")(t)):96===t&&t===i?n(t):(e.consume(t),c)}function d(t){return null===t||ps(t)?u(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(t))}function p(t){return null===t||ps(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),u(t)):96===t&&t===i?n(t):(e.consume(t),p)}function f(t){return e.attempt(o,y,h)(t)}function h(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),m}function m(t){return s>0&&hs(t)?bs(e,g,"linePrefix",s+1)(t):g(t)}function g(t){return null===t||ps(t)?e.check(Ds,f,y)(t):(e.enter("codeFlowValue"),v(t))}function v(t){return null===t||ps(t)?(e.exit("codeFlowValue"),g(t)):(e.consume(t),v)}function y(n){return e.exit("codeFenced"),t(n)}}};const Ts={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("codeIndented"),bs(e,o,"linePrefix",5)(t)};function o(e){const t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?i(e):n(e)}function i(t){return null===t?a(t):ps(t)?e.attempt(zs,i,a)(t):(e.enter("codeFlowValue"),s(t))}function s(t){return null===t||ps(t)?(e.exit("codeFlowValue"),i(t)):(e.consume(t),s)}function a(n){return e.exit("codeIndented"),t(n)}}},zs={partial:!0,tokenize:function(e,t,n){const r=this;return o;function o(t){return r.parser.lazy[r.now().line]?n(t):ps(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o):bs(e,i,"linePrefix",5)(t)}function i(e){const i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(e):ps(e)?o(e):n(e)}}};const _s={name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,o=3;if(!("lineEnding"!==e[o][1].type&&"space"!==e[o][1].type||"lineEnding"!==e[r][1].type&&"space"!==e[r][1].type))for(t=o;++t<r;)if("codeTextData"===e[t][1].type){e[o][1].type="codeTextPadding",e[r][1].type="codeTextPadding",o+=2,r-=2;break}t=o-1,r++;for(;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):t!==r&&"lineEnding"!==e[t][1].type||(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,o,i=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),s(t)};function s(t){return 96===t?(e.consume(t),i++,s):(e.exit("codeTextSequence"),a(t))}function a(t){return null===t?n(t):32===t?(e.enter("space"),e.consume(t),e.exit("space"),a):96===t?(o=e.enter("codeTextSequence"),r=0,u(t)):ps(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a):(e.enter("codeTextData"),l(t))}function l(t){return null===t||32===t||96===t||ps(t)?(e.exit("codeTextData"),a(t)):(e.consume(t),l)}function u(n){return 96===n?(e.consume(n),r++,u):r===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(o.type="codeTextData",l(n))}}};class As{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){const n=null==t?Number.POSITIVE_INFINITY:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){const r=t||0;this.setCursor(Math.trunc(e));const o=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return n&&Rs(this.left,n),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),Rs(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),Rs(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&0===this.right.length||e<0&&0===this.left.length))if(e<this.left.length){const t=this.left.splice(e,Number.POSITIVE_INFINITY);Rs(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);Rs(this.left,t.reverse())}}}function Rs(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function Fs(e){const t={};let n,r,o,i,s,a,l,u=-1;const c=new As(e);for(;++u<c.length;){for(;u in t;)u=t[u];if(n=c.get(u),u&&"chunkFlow"===n[1].type&&"listItemPrefix"===c.get(u-1)[1].type&&(a=n[1]._tokenizer.events,o=0,o<a.length&&"lineEndingBlank"===a[o][1].type&&(o+=2),o<a.length&&"content"===a[o][1].type))for(;++o<a.length&&"content"!==a[o][1].type;)"chunkText"===a[o][1].type&&(a[o][1]._isInFirstContentOfListItem=!0,o++);if("enter"===n[0])n[1].contentType&&(Object.assign(t,Us(c,u)),u=t[u],l=!0);else if(n[1]._container){for(o=u,r=void 0;o--;)if(i=c.get(o),"lineEnding"===i[1].type||"lineEndingBlank"===i[1].type)"enter"===i[0]&&(r&&(c.get(r)[1].type="lineEndingBlank"),i[1].type="lineEnding",r=o);else if("linePrefix"!==i[1].type&&"listItemIndent"!==i[1].type)break;r&&(n[1].end={...c.get(r)[1].start},s=c.slice(r,u),s.unshift(n),c.splice(r,u-r+1,s))}}return Yi(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!l}function Us(e,t){const n=e.get(t)[1],r=e.get(t)[2];let o=t-1;const i=[];let s=n._tokenizer;s||(s=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));const a=s.events,l=[],u={};let c,d,p=-1,f=n,h=0,m=0;const g=[m];for(;f;){for(;e.get(++o)[1]!==f;);i.push(o),f._tokenizer||(c=r.sliceStream(f),f.next||c.push(null),d&&s.defineSkip(f.start),f._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(c),f._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),d=f,f=f.next}for(f=n;++p<a.length;)"exit"===a[p][0]&&"enter"===a[p-1][0]&&a[p][1].type===a[p-1][1].type&&a[p][1].start.line!==a[p][1].end.line&&(m=p+1,g.push(m),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(s.events=[],f?(f._tokenizer=void 0,f.previous=void 0):g.pop(),p=g.length;p--;){const t=a.slice(g[p],g[p+1]),n=i.pop();l.push([n,n+t.length-1]),e.splice(n,2,t)}for(l.reverse(),p=-1;++p<l.length;)u[h+l[p][0]]=h+l[p][1],h+=l[p][1]-l[p][0]-1;return u}const Bs={resolve:function(e){return Fs(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?o(t):ps(t)?e.check(Hs,i,o)(t):(e.consume(t),r)}function o(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function i(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},Hs={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),bs(e,o,"linePrefix")};function o(o){if(null===o||ps(o))return n(o);const i=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}};function Vs(e,t,n,r,o,i,s,a,l){const u=l||Number.POSITIVE_INFINITY;let c=0;return function(t){if(60===t)return e.enter(r),e.enter(o),e.enter(i),e.consume(t),e.exit(i),d;if(null===t||32===t||41===t||ls(t))return n(t);return e.enter(r),e.enter(s),e.enter(a),e.enter("chunkString",{contentType:"string"}),h(t)};function d(n){return 62===n?(e.enter(i),e.consume(n),e.exit(i),e.exit(o),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),p(n))}function p(t){return 62===t?(e.exit("chunkString"),e.exit(a),d(t)):null===t||60===t||ps(t)?n(t):(e.consume(t),92===t?f:p)}function f(t){return 60===t||62===t||92===t?(e.consume(t),p):p(t)}function h(o){return c||null!==o&&41!==o&&!fs(o)?c<u&&40===o?(e.consume(o),c++,h):41===o?(e.consume(o),c--,h):null===o||32===o||40===o||ls(o)?n(o):(e.consume(o),92===o?m:h):(e.exit("chunkString"),e.exit(a),e.exit(s),e.exit(r),t(o))}function m(t){return 40===t||41===t||92===t?(e.consume(t),h):h(t)}}function $s(e,t,n,r,o,i){const s=this;let a,l=0;return function(t){return e.enter(r),e.enter(o),e.consume(t),e.exit(o),e.enter(i),u};function u(d){return l>999||null===d||91===d||93===d&&!a||94===d&&!l&&"_hiddenFootnoteSupport"in s.parser.constructs?n(d):93===d?(e.exit(i),e.enter(o),e.consume(d),e.exit(o),e.exit(r),t):ps(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),c(d))}function c(t){return null===t||91===t||93===t||ps(t)||l++>999?(e.exit("chunkString"),u(t)):(e.consume(t),a||(a=!hs(t)),92===t?d:c)}function d(t){return 91===t||92===t||93===t?(e.consume(t),l++,c):c(t)}}function Ws(e,t,n,r,o,i){let s;return function(t){if(34===t||39===t||40===t)return e.enter(r),e.enter(o),e.consume(t),e.exit(o),s=40===t?41:t,a;return n(t)};function a(n){return n===s?(e.enter(o),e.consume(n),e.exit(o),e.exit(r),t):(e.enter(i),l(n))}function l(t){return t===s?(e.exit(i),a(s)):null===t?n(t):ps(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),bs(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(t))}function u(t){return t===s||null===t||ps(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?c:u)}function c(t){return t===s||92===t?(e.consume(t),u):u(t)}}function qs(e,t){let n;return function r(o){if(ps(o))return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,r;if(hs(o))return bs(e,r,n?"linePrefix":"lineSuffix")(o);return t(o)}}const Zs={name:"definition",tokenize:function(e,t,n){const r=this;let o;return function(t){return e.enter("definition"),function(t){return $s.call(r,e,i,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function i(t){return o=os(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),s):n(t)}function s(t){return fs(t)?qs(e,a)(t):a(t)}function a(t){return Vs(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(Qs,u,u)(t)}function u(t){return hs(t)?bs(e,c,"whitespace")(t):c(t)}function c(i){return null===i||ps(i)?(e.exit("definition"),r.parser.defined.push(o),t(i)):n(i)}}},Qs={partial:!0,tokenize:function(e,t,n){return function(t){return fs(t)?qs(e,r)(t):n(t)};function r(t){return Ws(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function o(t){return hs(t)?bs(e,i,"whitespace")(t):i(t)}function i(e){return null===e||ps(e)?t(e):n(e)}}};const Ks={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return ps(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}};const Gs={name:"headingAtx",resolve:function(e,t){let n,r,o=e.length-2,i=3;"whitespace"===e[i][1].type&&(i+=2);o-2>i&&"whitespace"===e[o][1].type&&(o-=2);"atxHeadingSequence"===e[o][1].type&&(i===o-1||o-4>i&&"whitespace"===e[o-2][1].type)&&(o-=i+1===o?2:4);o>i&&(n={type:"atxHeadingText",start:e[i][1].start,end:e[o][1].end},r={type:"chunkText",start:e[i][1].start,end:e[o][1].end,contentType:"text"},Yi(e,i,o-i+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]]));return e},tokenize:function(e,t,n){let r=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),o(t)}(t)};function o(t){return 35===t&&r++<6?(e.consume(t),o):null===t||fs(t)?(e.exit("atxHeadingSequence"),i(t)):n(t)}function i(n){return 35===n?(e.enter("atxHeadingSequence"),s(n)):null===n||ps(n)?(e.exit("atxHeading"),t(n)):hs(n)?bs(e,i,"whitespace")(n):(e.enter("atxHeadingText"),a(n))}function s(t){return 35===t?(e.consume(t),s):(e.exit("atxHeadingSequence"),i(t))}function a(t){return null===t||35===t||fs(t)?(e.exit("atxHeadingText"),i(t)):(e.consume(t),a)}}};const Ys=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Xs=["pre","script","style","textarea"],Js={concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2));return e},tokenize:function(e,t,n){const r=this;let o,i,s,a,l;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),u}(t)};function u(a){return 33===a?(e.consume(a),c):47===a?(e.consume(a),i=!0,f):63===a?(e.consume(a),o=3,r.interrupt?t:T):is(a)?(e.consume(a),s=String.fromCharCode(a),h):n(a)}function c(i){return 45===i?(e.consume(i),o=2,d):91===i?(e.consume(i),o=5,a=0,p):is(i)?(e.consume(i),o=4,r.interrupt?t:T):n(i)}function d(o){return 45===o?(e.consume(o),r.interrupt?t:T):n(o)}function p(o){const i="CDATA[";return o===i.charCodeAt(a++)?(e.consume(o),6===a?r.interrupt?t:L:p):n(o)}function f(t){return is(t)?(e.consume(t),s=String.fromCharCode(t),h):n(t)}function h(a){if(null===a||47===a||62===a||fs(a)){const l=47===a,u=s.toLowerCase();return l||i||!Xs.includes(u)?Ys.includes(s.toLowerCase())?(o=6,l?(e.consume(a),m):r.interrupt?t(a):L(a)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(a):i?g(a):v(a)):(o=1,r.interrupt?t(a):L(a))}return 45===a||ss(a)?(e.consume(a),s+=String.fromCharCode(a),h):n(a)}function m(o){return 62===o?(e.consume(o),r.interrupt?t:L):n(o)}function g(t){return hs(t)?(e.consume(t),g):C(t)}function v(t){return 47===t?(e.consume(t),C):58===t||95===t||is(t)?(e.consume(t),y):hs(t)?(e.consume(t),v):C(t)}function y(t){return 45===t||46===t||58===t||95===t||ss(t)?(e.consume(t),y):b(t)}function b(t){return 61===t?(e.consume(t),k):hs(t)?(e.consume(t),b):v(t)}function k(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),l=t,x):hs(t)?(e.consume(t),k):w(t)}function x(t){return t===l?(e.consume(t),l=null,S):null===t||ps(t)?n(t):(e.consume(t),x)}function w(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||fs(t)?b(t):(e.consume(t),w)}function S(e){return 47===e||62===e||hs(e)?v(e):n(e)}function C(t){return 62===t?(e.consume(t),E):n(t)}function E(t){return null===t||ps(t)?L(t):hs(t)?(e.consume(t),E):n(t)}function L(t){return 45===t&&2===o?(e.consume(t),j):60===t&&1===o?(e.consume(t),N):62===t&&4===o?(e.consume(t),z):63===t&&3===o?(e.consume(t),T):93===t&&5===o?(e.consume(t),I):!ps(t)||6!==o&&7!==o?null===t||ps(t)?(e.exit("htmlFlowData"),P(t)):(e.consume(t),L):(e.exit("htmlFlowData"),e.check(ea,_,P)(t))}function P(t){return e.check(ta,M,_)(t)}function M(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),O}function O(t){return null===t||ps(t)?P(t):(e.enter("htmlFlowData"),L(t))}function j(t){return 45===t?(e.consume(t),T):L(t)}function N(t){return 47===t?(e.consume(t),s="",D):L(t)}function D(t){if(62===t){const n=s.toLowerCase();return Xs.includes(n)?(e.consume(t),z):L(t)}return is(t)&&s.length<8?(e.consume(t),s+=String.fromCharCode(t),D):L(t)}function I(t){return 93===t?(e.consume(t),T):L(t)}function T(t){return 62===t?(e.consume(t),z):45===t&&2===o?(e.consume(t),T):L(t)}function z(t){return null===t||ps(t)?(e.exit("htmlFlowData"),_(t)):(e.consume(t),z)}function _(n){return e.exit("htmlFlow"),t(n)}}},ea={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(Ms,t,n)}}},ta={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){if(ps(t))return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o;return n(t)};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}};const na={name:"htmlText",tokenize:function(e,t,n){const r=this;let o,i,s;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),a};function a(t){return 33===t?(e.consume(t),l):47===t?(e.consume(t),k):63===t?(e.consume(t),y):is(t)?(e.consume(t),S):n(t)}function l(t){return 45===t?(e.consume(t),u):91===t?(e.consume(t),i=0,f):is(t)?(e.consume(t),v):n(t)}function u(t){return 45===t?(e.consume(t),p):n(t)}function c(t){return null===t?n(t):45===t?(e.consume(t),d):ps(t)?(s=c,D(t)):(e.consume(t),c)}function d(t){return 45===t?(e.consume(t),p):c(t)}function p(e){return 62===e?N(e):45===e?d(e):c(e)}function f(t){const r="CDATA[";return t===r.charCodeAt(i++)?(e.consume(t),6===i?h:f):n(t)}function h(t){return null===t?n(t):93===t?(e.consume(t),m):ps(t)?(s=h,D(t)):(e.consume(t),h)}function m(t){return 93===t?(e.consume(t),g):h(t)}function g(t){return 62===t?N(t):93===t?(e.consume(t),g):h(t)}function v(t){return null===t||62===t?N(t):ps(t)?(s=v,D(t)):(e.consume(t),v)}function y(t){return null===t?n(t):63===t?(e.consume(t),b):ps(t)?(s=y,D(t)):(e.consume(t),y)}function b(e){return 62===e?N(e):y(e)}function k(t){return is(t)?(e.consume(t),x):n(t)}function x(t){return 45===t||ss(t)?(e.consume(t),x):w(t)}function w(t){return ps(t)?(s=w,D(t)):hs(t)?(e.consume(t),w):N(t)}function S(t){return 45===t||ss(t)?(e.consume(t),S):47===t||62===t||fs(t)?C(t):n(t)}function C(t){return 47===t?(e.consume(t),N):58===t||95===t||is(t)?(e.consume(t),E):ps(t)?(s=C,D(t)):hs(t)?(e.consume(t),C):N(t)}function E(t){return 45===t||46===t||58===t||95===t||ss(t)?(e.consume(t),E):L(t)}function L(t){return 61===t?(e.consume(t),P):ps(t)?(s=L,D(t)):hs(t)?(e.consume(t),L):C(t)}function P(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),o=t,M):ps(t)?(s=P,D(t)):hs(t)?(e.consume(t),P):(e.consume(t),O)}function M(t){return t===o?(e.consume(t),o=void 0,j):null===t?n(t):ps(t)?(s=M,D(t)):(e.consume(t),M)}function O(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||fs(t)?C(t):(e.consume(t),O)}function j(e){return 47===e||62===e||fs(e)?C(e):n(e)}function N(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function D(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),I}function I(t){return hs(t)?bs(e,T,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):T(t)}function T(t){return e.enter("htmlTextData"),s(t)}}};const ra={name:"labelEnd",resolveAll:function(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){const e="labelImage"===r.type?4:2;r.type="data",t+=e}}e.length!==n.length&&Yi(e,0,e.length,n);return e},resolveTo:function(e,t){let n,r,o,i,s=e.length,a=0;for(;s--;)if(n=e[s][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[s][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(o){if("enter"===e[s][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=s,"labelLink"!==n.type)){a=2;break}}else"labelEnd"===n.type&&(o=s);const l={type:"labelLink"===e[r][1].type?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[r][1].start},end:{...e[o][1].end}},c={type:"labelText",start:{...e[r+a+2][1].end},end:{...e[o-2][1].start}};return i=[["enter",l,t],["enter",u,t]],i=Xi(i,e.slice(r+1,r+a+3)),i=Xi(i,[["enter",c,t]]),i=Xi(i,Cs(t.parser.constructs.insideSpan.null,e.slice(r+a+4,o-3),t)),i=Xi(i,[["exit",c,t],e[o-2],e[o-1],["exit",u,t]]),i=Xi(i,e.slice(o+1)),i=Xi(i,[["exit",l,t]]),Yi(e,r,e.length,i),e},tokenize:function(e,t,n){const r=this;let o,i,s=r.events.length;for(;s--;)if(("labelImage"===r.events[s][1].type||"labelLink"===r.events[s][1].type)&&!r.events[s][1]._balanced){o=r.events[s][1];break}return function(t){if(!o)return n(t);if(o._inactive)return c(t);return i=r.parser.defined.includes(os(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),a};function a(t){return 40===t?e.attempt(oa,u,i?u:c)(t):91===t?e.attempt(ia,u,i?l:c)(t):i?u(t):c(t)}function l(t){return e.attempt(sa,u,c)(t)}function u(e){return t(e)}function c(e){return o._balanced=!0,n(e)}}},oa={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return fs(t)?qs(e,o)(t):o(t)}function o(t){return 41===t?u(t):Vs(e,i,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function i(t){return fs(t)?qs(e,a)(t):u(t)}function s(e){return n(e)}function a(t){return 34===t||39===t||40===t?Ws(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):u(t)}function l(t){return fs(t)?qs(e,u)(t):u(t)}function u(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},ia={tokenize:function(e,t,n){const r=this;return function(t){return $s.call(r,e,o,i,"reference","referenceMarker","referenceString")(t)};function o(e){return r.parser.defined.includes(os(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function i(e){return n(e)}}},sa={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}};const aa={name:"labelStartImage",resolveAll:ra.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),o};function o(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),i):n(t)}function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};const la={name:"labelStartLink",resolveAll:ra.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),o};function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};const ua={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),bs(e,t,"linePrefix")}}};const ca={name:"thematicBreak",tokenize:function(e,t,n){let r,o=0;return function(t){return e.enter("thematicBreak"),function(e){return r=e,i(e)}(t)};function i(i){return i===r?(e.enter("thematicBreakSequence"),s(i)):o>=3&&(null===i||ps(i))?(e.exit("thematicBreak"),t(i)):n(i)}function s(t){return t===r?(e.consume(t),o++,s):(e.exit("thematicBreakSequence"),hs(t)?bs(e,i,"whitespace")(t):i(t))}}};const da={continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Ms,o,i);function o(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,bs(e,t,"listItemIndent",r.containerState.size+1)(n)}function i(n){return r.containerState.furtherBlankLines||!hs(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,s(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(fa,t,s)(n))}function s(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,bs(e,e.attempt(da,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){const r=this,o=r.events[r.events.length-1];let i=o&&"linePrefix"===o[1].type?o[2].sliceSerialize(o[1],!0).length:0,s=0;return function(t){const o=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===o?!r.containerState.marker||t===r.containerState.marker:us(t)){if(r.containerState.type||(r.containerState.type=o,e.enter(o,{_container:!0})),"listUnordered"===o)return e.enter("listItemPrefix"),42===t||45===t?e.check(ca,n,l)(t):l(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),a(t)}return n(t)};function a(t){return us(t)&&++s<10?(e.consume(t),a):(!r.interrupt||s<2)&&(r.containerState.marker?t===r.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),l(t)):n(t)}function l(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(Ms,r.interrupt?n:u,e.attempt(pa,d,c))}function u(e){return r.containerState.initialBlankLine=!0,i++,d(e)}function c(t){return hs(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),d):n(t)}function d(n){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},pa={partial:!0,tokenize:function(e,t,n){const r=this;return bs(e,function(e){const o=r.events[r.events.length-1];return!hs(e)&&o&&"listItemPrefixWhitespace"===o[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},fa={partial:!0,tokenize:function(e,t,n){const r=this;return bs(e,function(e){const o=r.events[r.events.length-1];return o&&"listItemIndent"===o[1].type&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)}};const ha={name:"setextUnderline",resolveTo:function(e,t){let n,r,o,i=e.length;for(;i--;)if("enter"===e[i][0]){if("content"===e[i][1].type){n=i;break}"paragraph"===e[i][1].type&&(r=i)}else"content"===e[i][1].type&&e.splice(i,1),o||"definition"!==e[i][1].type||(o=i);const s={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};e[r][1].type="setextHeadingText",o?(e.splice(r,0,["enter",s,t]),e.splice(o+1,0,["exit",e[n][1],t]),e[n][1].end={...e[o][1].end}):e[n][1]=s;return e.push(["exit",s,t]),e},tokenize:function(e,t,n){const r=this;let o;return function(t){let s,a=r.events.length;for(;a--;)if("lineEnding"!==r.events[a][1].type&&"linePrefix"!==r.events[a][1].type&&"content"!==r.events[a][1].type){s="paragraph"===r.events[a][1].type;break}if(!r.parser.lazy[r.now().line]&&(r.interrupt||s))return e.enter("setextHeadingLine"),o=t,function(t){return e.enter("setextHeadingLineSequence"),i(t)}(t);return n(t)};function i(t){return t===o?(e.consume(t),i):(e.exit("setextHeadingLineSequence"),hs(t)?bs(e,s,"lineSuffix")(t):s(t))}function s(r){return null===r||ps(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}};const ma={tokenize:function(e){const t=this,n=e.attempt(Ms,function(r){if(null===r)return void e.consume(r);return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n},e.attempt(this.parser.constructs.flowInitial,r,bs(e,e.attempt(this.parser.constructs.flow,r,e.attempt(Bs,r)),"linePrefix")));return n;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}};const ga={resolveAll:ka()},va=ba("string"),ya=ba("text");function ba(e){return{resolveAll:ka("text"===e?xa:void 0),tokenize:function(t){const n=this,r=this.parser.constructs[e],o=t.attempt(r,i,s);return i;function i(e){return l(e)?o(e):s(e)}function s(e){if(null!==e)return t.enter("data"),t.consume(e),a;t.consume(e)}function a(e){return l(e)?(t.exit("data"),o(e)):(t.consume(e),a)}function l(e){if(null===e)return!0;const t=r[e];let o=-1;if(t)for(;++o<t.length;){const e=t[o];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function ka(e){return function(t,n){let r,o=-1;for(;++o<=t.length;)void 0===r?t[o]&&"data"===t[o][1].type&&(r=o,o++):t[o]&&"data"===t[o][1].type||(o!==r+2&&(t[r][1].end=t[o-1][1].end,t.splice(r+2,o-r-2),o=r+2),r=void 0);return e?e(t,n):t}}function xa(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){const r=e[n-1][1],o=t.sliceStream(r);let i,s=o.length,a=-1,l=0;for(;s--;){const e=o[s];if("string"==typeof e){for(a=e.length;32===e.charCodeAt(a-1);)l++,a--;if(a)break;a=-1}else if(-2===e)i=!0,l++;else if(-1!==e){s++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(l=0),l){const o={type:n===e.length||i||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?a:r.start._bufferIndex+a,_index:r.start._index+s,line:r.end.line,column:r.end.column-l,offset:r.end.offset-l},end:{...r.end}};r.end={...o.start},r.start.offset===r.end.offset?Object.assign(r,o):(e.splice(n,0,["enter",o,t],["exit",o,t]),n+=2)}n++}return e}const wa={42:da,43:da,45:da,48:da,49:da,50:da,51:da,52:da,53:da,54:da,55:da,56:da,57:da,62:Os},Sa={91:Zs},Ca={[-2]:Ts,[-1]:Ts,32:Ts},Ea={35:Gs,42:ca,45:[ha,ca],60:Js,61:ha,95:ca,96:Is,126:Is},La={38:Ns,92:js},Pa={[-5]:ua,[-4]:ua,[-3]:ua,33:aa,38:Ns,42:Es,60:[Ps,na],91:la,92:[Ks,js],93:ra,95:Es,96:_s},Ma={null:[Es,ga]};var Oa=Object.freeze({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:Sa,disable:{null:[]},document:wa,flow:Ea,flowInitial:Ca,insideSpan:Ma,string:La,text:Pa});function ja(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const o={},i=[];let s=[],a=[];const l={attempt:g(function(e,t){v(e,t.from)}),check:g(m),consume:function(e){ps(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,y()):-1!==e&&(r.column++,r.offset++);r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===s[r._index].length&&(r._bufferIndex=-1,r._index++));u.previous=e},enter:function(e,t){const n=t||{};return n.type=e,n.start=p(),u.events.push(["enter",n,u]),a.push(n),n},exit:function(e){const t=a.pop();return t.end=p(),u.events.push(["exit",t,u]),t},interrupt:g(m,{interrupt:!0})},u={code:null,containerState:{},defineSkip:function(e){o[e.line]=e.column,y()},events:[],now:p,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n=-1;const r=[];let o;for(;++n<e.length;){const i=e[n];let s;if("string"==typeof i)s=i;else switch(i){case-5:s="\r";break;case-4:s="\n";break;case-3:s="\r\n";break;case-2:s=t?" ":"\t";break;case-1:if(!t&&o)continue;s=" ";break;default:s=String.fromCharCode(i)}o=-2===i,r.push(s)}return r.join("")}(d(e),t)},sliceStream:d,write:function(e){if(s=Xi(s,e),f(),null!==s[s.length-1])return[];return v(t,0),u.events=Cs(i,u.events,u),u.events}};let c=t.tokenize.call(u,l);return t.resolveAll&&i.push(t),u;function d(e){return function(e,t){const n=t.start._index,r=t.start._bufferIndex,o=t.end._index,i=t.end._bufferIndex;let s;if(n===o)s=[e[n].slice(r,i)];else{if(s=e.slice(n,o),r>-1){const e=s[0];"string"==typeof e?s[0]=e.slice(r):s.shift()}i>0&&s.push(e[o].slice(0,i))}return s}(s,e)}function p(){const{_bufferIndex:e,_index:t,line:n,column:o,offset:i}=r;return{_bufferIndex:e,_index:t,line:n,column:o,offset:i}}function f(){let e;for(;r._index<s.length;){const t=s[r._index];if("string"==typeof t)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)h(t.charCodeAt(r._bufferIndex));else h(t)}}function h(e){c=c(e)}function m(e,t){t.restore()}function g(e,t){return function(n,o,i){let s,c,d,f;return Array.isArray(n)?h(n):"tokenize"in n?h([n]):function(e){return t;function t(t){const n=null!==t&&e[t],r=null!==t&&e.null;return h([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}(n);function h(e){return s=e,c=0,0===e.length?i:m(e[c])}function m(e){return function(n){f=function(){const e=p(),t=u.previous,n=u.currentConstruct,o=u.events.length,i=Array.from(a);return{from:o,restore:s};function s(){r=e,u.previous=t,u.currentConstruct=n,u.events.length=o,a=i,y()}}(),d=e,e.partial||(u.currentConstruct=e);if(e.name&&u.parser.constructs.disable.null.includes(e.name))return v();return e.tokenize.call(t?Object.assign(Object.create(u),t):u,l,g,v)(n)}}function g(t){return e(d,f),o}function v(e){return f.restore(),++c<s.length?m(s[c]):i}}}function v(e,t){e.resolveAll&&!i.includes(e)&&i.push(e),e.resolve&&Yi(u.events,t,u.events.length-t,e.resolve(u.events.slice(t),u)),e.resolveTo&&(u.events=e.resolveTo(u.events,u))}function y(){r.line in o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}const Na=/[\0\t\n\r]/g;const Da=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Ia(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return rs(n.slice(t?2:1),t?16:10)}return Gi(n)||e}const Ta={}.hasOwnProperty;function za(e,t,n){return"string"!=typeof t&&(n=t,t=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(te),autolinkProtocol:E,autolinkEmail:E,atxHeading:i(Y),blockQuote:i(q),characterEscape:E,characterReference:E,codeFenced:i(Z),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:i(Z,s),codeText:i(Q,s),codeTextData:E,data:E,codeFlowValue:E,definition:i(K),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:i(G),hardBreakEscape:i(X),hardBreakTrailing:i(X),htmlFlow:i(J,s),htmlFlowData:E,htmlText:i(J,s),htmlTextData:E,image:i(ee),label:s,link:i(te),listItem:i(re),listItemValue:p,listOrdered:i(ne,d),listUnordered:i(ne),paragraph:i(oe),reference:F,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:i(Y),strong:i(ie),thematicBreak:i(ae)},exit:{atxHeading:l(),atxHeadingSequence:x,autolink:l(),autolinkEmail:W,autolinkProtocol:$,blockQuote:l(),characterEscapeValue:L,characterReferenceMarkerHexadecimal:B,characterReferenceMarkerNumeric:B,characterReferenceValue:H,characterReference:V,codeFenced:l(g),codeFencedFence:m,codeFencedFenceInfo:f,codeFencedFenceMeta:h,codeFlowValue:L,codeIndented:l(v),codeText:l(N),codeTextData:L,data:L,definition:l(),definitionDestinationString:k,definitionLabelString:y,definitionTitleString:b,emphasis:l(),hardBreakEscape:l(M),hardBreakTrailing:l(M),htmlFlow:l(O),htmlFlowData:L,htmlText:l(j),htmlTextData:L,image:l(I),label:z,labelText:T,lineEnding:P,link:l(D),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:U,resourceDestinationString:_,resourceTitleString:A,resource:R,setextHeading:l(C),setextHeadingLineSequence:S,setextHeadingText:w,strong:l(),thematicBreak:l()}};Aa(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(e){let r={type:"root",children:[]};const i={stack:[r],tokenStack:[],config:t,enter:a,exit:u,buffer:s,resume:c,data:n},l=[];let d=-1;for(;++d<e.length;)if("listOrdered"===e[d][1].type||"listUnordered"===e[d][1].type)if("enter"===e[d][0])l.push(d);else{d=o(e,l.pop(),d)}for(d=-1;++d<e.length;){const n=t[e[d][0]];Ta.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},i),e[d][1])}if(i.tokenStack.length>0){const e=i.tokenStack[i.tokenStack.length-1];(e[1]||Fa).call(i,void 0,e[0])}for(r.position={start:_a(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:_a(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)r=t.transforms[d](r)||r;return r}function o(e,t,n){let r,o,i,s,a=t-1,l=-1,u=!1;for(;++a<=n;){const t=e[a];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?l++:l--,s=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||s||l||i||(i=a),s=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:s=void 0}if(!l&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===l&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let s=a;for(o=void 0;s--;){const t=e[s];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;o&&(e[o][1].type="lineEndingBlank",u=!0),t[1].type="lineEnding",o=s}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}i&&(!o||i<o)&&(r._spread=!0),r.end=Object.assign({},o?e[o][1].start:t[1].end),e.splice(o||a,0,["exit",r,t[2]]),a++,n++}if("listItemPrefix"===t[1].type){const o={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=o,e.splice(a,0,["enter",o,t[2]]),a++,n++,i=void 0,s=!0}}}return e[t][1]._spread=u,n}function i(e,t){return n;function n(n){a.call(this,e(n),n),t&&t.call(this,n)}}function s(){this.stack.push({type:"fragment",children:[]})}function a(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:_a(t.start),end:void 0}}function l(e){return t;function t(t){e&&e.call(this,t),u.call(this,t)}}function u(e,t){const n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw new Error("Cannot close `"+e.type+"` ("+Si({start:e.start,end:e.end})+"): it’s not open");if(r[0].type!==e.type)if(t)t.call(this,e,r[0]);else{(r[1]||Fa).call(this,e,r[0])}n.position.end=_a(e.end)}function c(){return qi(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function p(e){if(this.data.expectingFirstListItemValue){this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function f(){const e=this.resume();this.stack[this.stack.length-1].lang=e}function h(){const e=this.resume();this.stack[this.stack.length-1].meta=e}function m(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function g(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function v(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}function y(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=os(this.sliceSerialize(e)).toLowerCase()}function b(){const e=this.resume();this.stack[this.stack.length-1].title=e}function k(){const e=this.resume();this.stack[this.stack.length-1].url=e}function x(e){const t=this.stack[this.stack.length-1];if(!t.depth){const n=this.sliceSerialize(e).length;t.depth=n}}function w(){this.data.setextHeadingSlurpLineEnding=!0}function S(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2}function C(){this.data.setextHeadingSlurpLineEnding=void 0}function E(e){const t=this.stack[this.stack.length-1].children;let n=t[t.length-1];n&&"text"===n.type||(n=se(),n.position={start:_a(e.start),end:void 0},t.push(n)),this.stack.push(n)}function L(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=_a(e.end)}function P(e){const n=this.stack[this.stack.length-1];if(this.data.atHardBreak){return n.children[n.children.length-1].position.end=_a(e.end),void(this.data.atHardBreak=void 0)}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(E.call(this,e),L.call(this,e))}function M(){this.data.atHardBreak=!0}function O(){const e=this.resume();this.stack[this.stack.length-1].value=e}function j(){const e=this.resume();this.stack[this.stack.length-1].value=e}function N(){const e=this.resume();this.stack[this.stack.length-1].value=e}function D(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function I(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function T(e){const t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=function(e){return e.replace(Da,Ia)}(t),n.identifier=os(t).toLowerCase()}function z(){const e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];if(this.data.inReference=!0,"link"===n.type){const t=e.children;n.children=t}else n.alt=t}function _(){const e=this.resume();this.stack[this.stack.length-1].url=e}function A(){const e=this.resume();this.stack[this.stack.length-1].title=e}function R(){this.data.inReference=void 0}function F(){this.data.referenceType="collapsed"}function U(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=os(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"}function B(e){this.data.characterReferenceType=e.type}function H(e){const t=this.sliceSerialize(e),n=this.data.characterReferenceType;let r;if(n)r=rs(t,"characterReferenceMarkerNumeric"===n?10:16),this.data.characterReferenceType=void 0;else{r=Gi(t)}this.stack[this.stack.length-1].value+=r}function V(e){this.stack.pop().position.end=_a(e.end)}function $(e){L.call(this,e);this.stack[this.stack.length-1].url=this.sliceSerialize(e)}function W(e){L.call(this,e);this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)}function q(){return{type:"blockquote",children:[]}}function Z(){return{type:"code",lang:null,meta:null,value:""}}function Q(){return{type:"inlineCode",value:""}}function K(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function G(){return{type:"emphasis",children:[]}}function Y(){return{type:"heading",depth:0,children:[]}}function X(){return{type:"break"}}function J(){return{type:"html",value:""}}function ee(){return{type:"image",title:null,url:"",alt:null}}function te(){return{type:"link",title:null,url:"",children:[]}}function ne(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}function re(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}function oe(){return{type:"paragraph",children:[]}}function ie(){return{type:"strong",children:[]}}function se(){return{type:"text",value:""}}function ae(){return{type:"thematicBreak"}}}(n)(function(e){for(;!Fs(e););return e}(function(e){const t={constructs:es([Oa,...(e||{}).extensions||[]]),content:n(ks),defined:[],document:n(xs),flow:n(ma),lazy:{},string:n(va),text:n(ya)};return t;function n(e){return function(n){return ja(t,e,n)}}}(n).document().write(function(){let e,t=1,n="",r=!0;return function(o,i,s){const a=[];let l,u,c,d,p;for(o=n+("string"==typeof o?o.toString():new TextDecoder(i||void 0).decode(o)),c=0,n="",r&&(65279===o.charCodeAt(0)&&c++,r=void 0);c<o.length;){if(Na.lastIndex=c,l=Na.exec(o),d=l&&void 0!==l.index?l.index:o.length,p=o.charCodeAt(d),!l){n=o.slice(c);break}if(10===p&&c===d&&e)a.push(-3),e=void 0;else switch(e&&(a.push(-5),e=void 0),c<d&&(a.push(o.slice(c,d)),t+=d-c),p){case 0:a.push(65533),t++;break;case 9:for(u=4*Math.ceil(t/4),a.push(-2);t++<u;)a.push(-1);break;case 10:a.push(-4),t=1;break;default:e=!0,t=1}c=d+1}return s&&(e&&a.push(-5),n&&a.push(n),a.push(null)),a}}()(e,t,!0))))}function _a(e){return{line:e.line,column:e.column,offset:e.offset}}function Aa(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Aa(e,r):Ra(e,r)}}function Ra(e,t){let n;for(n in t)if(Ta.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function Fa(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Si({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Si({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Si({start:t.start,end:t.end})+") is still open")}function Ua(e){const t=this;t.parser=function(n){return za(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Ba(e,t){const n=t.referenceType;let r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];const o=e.all(t),i=o[0];i&&"text"===i.type?i.value="["+i.value:o.unshift({type:"text",value:"["});const s=o[o.length-1];return s&&"text"===s.type?s.value+=r:o.push({type:"text",value:r}),o}function Ha(e){const t=e.spread;return null==t?e.children.length>1:t}function Va(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),o=0;const i=[];for(;r;)i.push($a(t.slice(o,r.index),o>0,!0),r[0]),o=r.index+r[0].length,r=n.exec(t);return i.push($a(t.slice(o),o>0,!1)),i.join("")}function $a(e,t,n){let r=0,o=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(o-1);for(;9===t||32===t;)o--,t=e.codePointAt(o-1)}return o>r?e.slice(r,o):""}const Wa={blockquote:function(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){const n=t.value?t.value+"\n":"",r={};t.lang&&(r.className=["language-"+t.lang]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o},delete:function(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){const n="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),o=ys(r.toLowerCase()),i=e.footnoteOrder.indexOf(r);let s,a=e.footnoteCounts.get(r);void 0===a?(a=0,e.footnoteOrder.push(r),s=e.footnoteOrder.length):s=i+1,a+=1,e.footnoteCounts.set(r,a);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+o,id:n+"fnref-"+o+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,l);const u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)},heading:function(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Ba(e,t);const o={src:ys(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(o.title=r.title);const i={type:"element",tagName:"img",properties:o,children:[]};return e.patch(t,i),e.applyData(t,i)},image:function(e,t){const n={src:ys(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Ba(e,t);const o={href:ys(r.url||"")};null!==r.title&&void 0!==r.title&&(o.title=r.title);const i={type:"element",tagName:"a",properties:o,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)},link:function(e,t){const n={href:ys(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){const r=e.all(t),o=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=Ha(n[r])}return t}(n):Ha(t),i={},s=[];if("boolean"==typeof t.checked){const e=r[0];let n;e&&"element"===e.type&&"p"===e.tagName?n=e:(n={type:"element",tagName:"p",properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:"text",value:" "}),n.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let a=-1;for(;++a<r.length;){const e=r[a];(o||0!==a||"element"!==e.type||"p"!==e.tagName)&&s.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||o?s.push(e):s.push(...e.children)}const l=r[r.length-1];l&&(o||"element"!==l.type||"p"!==l.tagName)&&s.push({type:"text",value:"\n"});const u={type:"element",tagName:"li",properties:i,children:s};return e.patch(t,u),e.applyData(t,u)},list:function(e,t){const n={},r=e.all(t);let o=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++o<r.length;){const e=r[o];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const i={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,i),e.applyData(t,i)},paragraph:function(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){const n=e.all(t),r=n.shift(),o=[];if(r){const n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),o.push(n)}if(n.length>0){const r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},i=xi(t.children[1]),s=ki(t.children[t.children.length-1]);i&&s&&(r.position={start:i,end:s}),o.push(r)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,i),e.applyData(t,i)},tableCell:function(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){const r=n?n.children:void 0,o=0===(r?r.indexOf(t):1)?"th":"td",i=n&&"table"===n.type?n.align:void 0,s=i?i.length:t.children.length;let a=-1;const l=[];for(;++a<s;){const n=t.children[a],r={},s=i?i[a]:void 0;s&&(r.align=s);let u={type:"element",tagName:o,properties:r,children:[]};n&&(u.children=e.all(n),e.patch(n,u),u=e.applyData(n,u)),l.push(u)}const u={type:"element",tagName:"tr",properties:{},children:e.wrap(l,!0)};return e.patch(t,u),e.applyData(t,u)},text:function(e,t){const n={type:"text",value:Va(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:qa,yaml:qa,definition:qa,footnoteDefinition:qa};function qa(){}const Za="object"==typeof self?self:globalThis,Qa=e=>((e,t)=>{const n=(t,n)=>(e.set(n,t),t),r=o=>{if(e.has(o))return e.get(o);const[i,s]=t[o];switch(i){case 0:case-1:return n(s,o);case 1:{const e=n([],o);for(const t of s)e.push(r(t));return e}case 2:{const e=n({},o);for(const[t,n]of s)e[r(t)]=r(n);return e}case 3:return n(new Date(s),o);case 4:{const{source:e,flags:t}=s;return n(new RegExp(e,t),o)}case 5:{const e=n(new Map,o);for(const[t,n]of s)e.set(r(t),r(n));return e}case 6:{const e=n(new Set,o);for(const t of s)e.add(r(t));return e}case 7:{const{name:e,message:t}=s;return n(new Za[e](t),o)}case 8:return n(BigInt(s),o);case"BigInt":return n(Object(BigInt(s)),o);case"ArrayBuffer":return n(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:e}=new Uint8Array(s);return n(new DataView(e),s)}}return n(new Za[i](s),o)};return r})(new Map,e)(0),Ka="",{toString:Ga}={},{keys:Ya}=Object,Xa=e=>{const t=typeof e;if("object"!==t||!e)return[0,t];const n=Ga.call(e).slice(8,-1);switch(n){case"Array":return[1,Ka];case"Object":return[2,Ka];case"Date":return[3,Ka];case"RegExp":return[4,Ka];case"Map":return[5,Ka];case"Set":return[6,Ka];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},Ja=([e,t])=>0===e&&("function"===t||"symbol"===t),el=(e,{json:t,lossy:n}={})=>{const r=[];return((e,t,n,r)=>{const o=(e,t)=>{const o=r.push(e)-1;return n.set(t,o),o},i=r=>{if(n.has(r))return n.get(r);let[s,a]=Xa(r);switch(s){case 0:{let t=r;switch(a){case"bigint":s=8,t=r.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+a);t=null;break;case"undefined":return o([-1],r)}return o([s,t],r)}case 1:{if(a){let e=r;return"DataView"===a?e=new Uint8Array(r.buffer):"ArrayBuffer"===a&&(e=new Uint8Array(r)),o([a,[...e]],r)}const e=[],t=o([s,e],r);for(const t of r)e.push(i(t));return t}case 2:{if(a)switch(a){case"BigInt":return o([a,r.toString()],r);case"Boolean":case"Number":case"String":return o([a,r.valueOf()],r)}if(t&&"toJSON"in r)return i(r.toJSON());const n=[],l=o([s,n],r);for(const t of Ya(r))!e&&Ja(Xa(r[t]))||n.push([i(t),i(r[t])]);return l}case 3:return o([s,r.toISOString()],r);case 4:{const{source:e,flags:t}=r;return o([s,{source:e,flags:t}],r)}case 5:{const t=[],n=o([s,t],r);for(const[n,o]of r)(e||!Ja(Xa(n))&&!Ja(Xa(o)))&&t.push([i(n),i(o)]);return n}case 6:{const t=[],n=o([s,t],r);for(const n of r)!e&&Ja(Xa(n))||t.push(i(n));return n}}const{message:l}=r;return o([s,{name:a,message:l}],r)};return i})(!(t||n),!!t,new Map,r)(e),r};var tl="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?Qa(el(e,t)):structuredClone(e):(e,t)=>Qa(el(e,t));function nl(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function rl(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}const ol=function(e){if(null==e)return sl;if("function"==typeof e)return il(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=ol(e[n]);return il(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}(e):function(e){const t=e;return il(n);function n(n){const r=n;let o;for(o in e)if(r[o]!==t[o])return!1;return!0}}(e);if("string"==typeof e)return function(e){return il(t);function t(t){return t&&t.type===e}}(e);throw new Error("Expected function, string, or object as test")};function il(e){return function(t,n,r){return Boolean(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function sl(){return!0}const al=[],ll=!0,ul=!1;function cl(e,t,n,r){let o;"function"==typeof t&&"function"!=typeof n?(r=n,n=t):o=t;const i=ol(o),s=r?-1:1;!function e(o,a,l){const u=o&&"object"==typeof o?o:{};if("string"==typeof u.type){const e="string"==typeof u.tagName?u.tagName:"string"==typeof u.name?u.name:void 0;Object.defineProperty(c,"name",{value:"node ("+o.type+(e?"<"+e+">":"")+")"})}return c;function c(){let u,c,d,p=al;if((!t||i(o,a,l[l.length-1]||void 0))&&(p=function(e){if(Array.isArray(e))return e;if("number"==typeof e)return[ll,e];return null==e?al:[e]}(n(o,l)),p[0]===ul))return p;if("children"in o&&o.children){const t=o;if(t.children&&"skip"!==p[0])for(c=(r?t.children.length:-1)+s,d=l.concat(t);c>-1&&c<t.children.length;){const n=t.children[c];if(u=e(n,c,d)(),u[0]===ul)return u;c="number"==typeof u[1]?u[1]:c+s}}return p}}(e,void 0,[])()}function dl(e,t,n,r){let o,i,s;"function"==typeof t&&"function"!=typeof n?(i=void 0,s=t,o=n):(i=t,s=n,o=r),cl(e,i,function(e,t){const n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return s(e,r,n)},o)}const pl={}.hasOwnProperty,fl={};function hl(e,t){e.position&&(t.position=function(e){const t=xi(e),n=ki(e);if(t&&n)return{start:t,end:n}}(e))}function ml(e,t){let n=t;if(e&&e.data){const t=e.data.hName,r=e.data.hChildren,o=e.data.hProperties;if("string"==typeof t)if("element"===n.type)n.tagName=t;else{n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}}"element"===n.type&&o&&Object.assign(n.properties,tl(o)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function gl(e,t){const n=t.data||{},r=!("value"in t)||pl.call(n,"hProperties")||pl.call(n,"hChildren")?{type:"element",tagName:"div",properties:{},children:e.all(t)}:{type:"text",value:t.value};return e.patch(t,r),e.applyData(t,r)}function vl(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function yl(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function bl(e,t){const n=function(e,t){const n=t||fl,r=new Map,o=new Map,i=new Map,s={...Wa,...n.handlers},a={all:function(e){const t=[];if("children"in e){const n=e.children;let r=-1;for(;++r<n.length;){const o=a.one(n[r],e);if(o){if(r&&"break"===n[r-1].type&&(Array.isArray(o)||"text"!==o.type||(o.value=yl(o.value)),!Array.isArray(o)&&"element"===o.type)){const e=o.children[0];e&&"text"===e.type&&(e.value=yl(e.value))}Array.isArray(o)?t.push(...o):t.push(o)}}}return t},applyData:ml,definitionById:r,footnoteById:o,footnoteCounts:i,footnoteOrder:[],handlers:s,one:function(e,t){const n=e.type,r=a.handlers[n];if(pl.call(a.handlers,n)&&r)return r(a,e,t);if(a.options.passThrough&&a.options.passThrough.includes(n)){if("children"in e){const{children:t,...n}=e,r=tl(n);return r.children=a.all(e),r}return tl(e)}return(a.options.unknownHandler||gl)(a,e,t)},options:n,patch:hl,wrap:vl};return dl(e,function(e){if("definition"===e.type||"footnoteDefinition"===e.type){const t="definition"===e.type?r:o,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),a}(e,t),r=n.one(e,void 0),o=function(e){const t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||nl,r=e.options.footnoteBackLabel||rl,o=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let l=-1;for(;++l<e.footnoteOrder.length;){const o=e.footnoteById.get(e.footnoteOrder[l]);if(!o)continue;const i=e.all(o),s=String(o.identifier).toUpperCase(),u=ys(s.toLowerCase());let c=0;const d=[],p=e.footnoteCounts.get(s);for(;void 0!==p&&++c<=p;){d.length>0&&d.push({type:"text",value:" "});let e="string"==typeof n?n:n(l,c);"string"==typeof e&&(e={type:"text",value:e}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+u+(c>1?"-"+c:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(l,c),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}const f=i[i.length-1];if(f&&"element"===f.type&&"p"===f.tagName){const e=f.children[f.children.length-1];e&&"text"===e.type?e.value+=" ":f.children.push({type:"text",value:" "}),f.children.push(...d)}else i.push(...d);const h={type:"element",tagName:"li",properties:{id:t+"fn-"+u},children:e.wrap(i,!0)};e.patch(o,h),a.push(h)}if(0!==a.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...tl(s),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:"\n"}]}}(n),i=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return o&&i.children.push({type:"text",value:"\n"},o),i}function kl(e,t){return e&&"run"in e?async function(n,r){const o=bl(n,{file:r,...t});await e.run(o,r)}:function(n,r){return bl(n,{file:r,...e||t})}}function xl(e){if(e)throw e}var wl,Sl;var Cl=function(){if(Sl)return wl;Sl=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,o=e.call(n,"constructor"),i=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!o&&!i)return!1;for(r in n);return void 0===r||e.call(n,r)},s=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},a=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return wl=function e(){var t,n,r,l,u,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(n in t)r=a(d,n),d!==(l=a(t,n))&&(h&&l&&(i(l)||(u=o(l)))?(u?(u=!1,c=r&&o(r)?r:[]):c=r&&i(r)?r:{},s(d,{name:n,newValue:e(h,c,l)})):void 0!==l&&s(d,{name:n,newValue:l}));return d},wl}(),El=e(Cl);function Ll(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function Pl(){const e=[],t={run:function(...t){let n=-1;const r=t.pop();if("function"!=typeof r)throw new TypeError("Expected function as last argument, not "+r);!function o(i,...s){const a=e[++n];let l=-1;if(i)r(i);else{for(;++l<t.length;)null!==s[l]&&void 0!==s[l]||(s[l]=t[l]);t=s,a?function(e,t){let n;return r;function r(...t){const r=e.length>t.length;let s;r&&t.push(o);try{s=e.apply(this,t)}catch(e){if(r&&n)throw e;return o(e)}r||(s&&s.then&&"function"==typeof s.then?s.then(i,o):s instanceof Error?o(s):i(s))}function o(e,...r){n||(n=!0,t(e,...r))}function i(e){o(null,e)}}(a,o)(...s):r(null,...s)}}(null,...t)},use:function(n){if("function"!=typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}const Ml={basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');Ol(e);let n,r=0,o=-1,i=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else o<0&&(n=!0,o=i+1);return o<0?"":e.slice(r,o)}if(t===e)return"";let s=-1,a=t.length-1;for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else s<0&&(n=!0,s=i+1),a>-1&&(e.codePointAt(i)===t.codePointAt(a--)?a<0&&(o=i):(a=-1,o=s));r===o?o=s:o<0&&(o=e.length);return e.slice(r,o)},dirname:function(e){if(Ol(e),0===e.length)return".";let t,n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},extname:function(e){Ol(e);let t,n=e.length,r=-1,o=0,i=-1,s=0;for(;n--;){const a=e.codePointAt(n);if(47!==a)r<0&&(t=!0,r=n+1),46===a?i<0?i=n:1!==s&&(s=1):i>-1&&(s=-1);else if(t){o=n+1;break}}if(i<0||r<0||0===s||1===s&&i===r-1&&i===o+1)return"";return e.slice(i,r)},join:function(...e){let t,n=-1;for(;++n<e.length;)Ol(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){Ol(e);const t=47===e.codePointAt(0);let n=function(e,t){let n,r,o="",i=0,s=-1,a=0,l=-1;for(;++l<=e.length;){if(l<e.length)n=e.codePointAt(l);else{if(47===n)break;n=47}if(47===n){if(s===l-1||1===a);else if(s!==l-1&&2===a){if(o.length<2||2!==i||46!==o.codePointAt(o.length-1)||46!==o.codePointAt(o.length-2))if(o.length>2){if(r=o.lastIndexOf("/"),r!==o.length-1){r<0?(o="",i=0):(o=o.slice(0,r),i=o.length-1-o.lastIndexOf("/")),s=l,a=0;continue}}else if(o.length>0){o="",i=0,s=l,a=0;continue}t&&(o=o.length>0?o+"/..":"..",i=2)}else o.length>0?o+="/"+e.slice(s+1,l):o=e.slice(s+1,l),i=l-s-1;s=l,a=0}else 46===n&&a>-1?a++:a=-1}return o}(e,!t);0!==n.length||t||(n=".");n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/");return t?"/"+n:n}(t)},sep:"/"};function Ol(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const jl={cwd:function(){return"/"}};function Nl(e){return Boolean(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}function Dl(e){if("string"==typeof e)e=new URL(e);else if(!Nl(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){const e=t.codePointAt(n+2);if(70===e||102===e){const e=new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}const Il=["history","path","basename","stem","extname","dirname"];class Tl{constructor(e){let t;t=e?Nl(e)?{path:e}:"string"==typeof e||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":jl.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n,r=-1;for(;++r<Il.length;){const e=Il[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)Il.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?Ml.basename(this.path):void 0}set basename(e){_l(e,"basename"),zl(e,"basename"),this.path=Ml.join(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?Ml.dirname(this.path):void 0}set dirname(e){Al(this.basename,"dirname"),this.path=Ml.join(e||"",this.basename)}get extname(){return"string"==typeof this.path?Ml.extname(this.path):void 0}set extname(e){if(zl(e,"extname"),Al(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Ml.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){Nl(e)&&(e=Dl(e)),_l(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?Ml.basename(this.path,this.extname):void 0}set stem(e){_l(e,"stem"),zl(e,"stem"),this.path=Ml.join(this.dirname||"",e+(this.extname||""))}fail(e,t,n){const r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){const r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){const r=new Pi(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){if(void 0===this.value)return"";if("string"==typeof this.value)return this.value;return new TextDecoder(e||void 0).decode(this.value)}}function zl(e,t){if(e&&e.includes(Ml.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Ml.sep+"`")}function _l(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Al(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const Rl=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},Fl={}.hasOwnProperty;class Ul extends Rl{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=Pl()}copy(){const e=new Ul;let t=-1;for(;++t<this.attachers.length;){const n=this.attachers[t];e.use(...n)}return e.data(El(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2===arguments.length?($l("data",this.frozen),this.namespace[e]=t,this):Fl.call(this.namespace,e)&&this.namespace[e]||void 0:e?($l("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...n]=this.attachers[this.freezeIndex];if(!1===n[0])continue;!0===n[0]&&(n[0]=void 0);const r=t.call(e,...n);"function"==typeof r&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const t=Zl(e),n=this.parser||this.Parser;return Hl("parse",n),n(String(t),t)}process(e,t){const n=this;return this.freeze(),Hl("process",this.parser||this.Parser),Vl("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,o){const i=Zl(e),s=n.parse(i);function a(e,n){e||!n?o(e):r?r(n):t(void 0,n)}n.run(s,i,function(e,t,r){if(e||!t||!r)return a(e);const o=t,i=n.stringify(o,r);var s;"string"==typeof(s=i)||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(s)?r.value=i:r.result=i,a(e,r)})}}processSync(e){let t,n=!1;return this.freeze(),Hl("processSync",this.parser||this.Parser),Vl("processSync",this.compiler||this.Compiler),this.process(e,function(e,r){n=!0,xl(e),t=r}),ql("processSync","process",n),t}run(e,t,n){Wl(e),this.freeze();const r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?o(void 0,n):new Promise(o);function o(o,i){const s=Zl(t);r.run(e,s,function(t,r,s){const a=r||e;t?i(t):o?o(a):n(void 0,a,s)})}}runSync(e,t){let n,r=!1;return this.run(e,t,function(e,t){xl(e),n=t,r=!0}),ql("runSync","run",r),n}stringify(e,t){this.freeze();const n=Zl(t),r=this.compiler||this.Compiler;return Vl("stringify",r),Wl(e),r(e,n)}use(e,...t){const n=this.attachers,r=this.namespace;if($l("use",this.frozen),null==e);else if("function"==typeof e)a(e,t);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?s(e):i(e)}return this;function o(e){if("function"==typeof e)a(e,[]);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...n]=e;a(t,n)}else i(e)}}function i(e){if(!("plugins"in e)&&!("settings"in e))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");s(e.plugins),e.settings&&(r.settings=El(!0,r.settings,e.settings))}function s(e){let t=-1;if(null==e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;){o(e[t])}}}function a(e,t){let r=-1,o=-1;for(;++r<n.length;)if(n[r][0]===e){o=r;break}if(-1===o)n.push([e,...t]);else if(t.length>0){let[r,...i]=t;const s=n[o][1];Ll(s)&&Ll(r)&&(r=El(!0,s,r)),n[o]=[e,r,...i]}}}}const Bl=(new Ul).freeze();function Hl(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function Vl(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function $l(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Wl(e){if(!Ll(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function ql(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Zl(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new Tl(e)}const Ql=[],Kl={allowDangerousHtml:!0},Gl=/^(https?|ircs?|mailto|xmpp)$/i,Yl=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Xl(e){const t=function(e){const t=e.rehypePlugins||Ql,n=e.remarkPlugins||Ql,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Kl}:Kl,o=Bl().use(Ua).use(n).use(kl,r).use(t);return o}(e),n=function(e){const t=e.children||"",n=new Tl;"string"==typeof t&&(n.value=t);return n}(e);return function(e,t){const n=t.allowedElements,r=t.allowElement,o=t.components,i=t.disallowedElements,s=t.skipHtml,l=t.unwrapDisallowed,u=t.urlTransform||Jl;for(const e of Yl)Object.hasOwn(t,e.from)&&wo((e.from,e.to&&e.to,e.id));return dl(e,c),Ti(e,{Fragment:a.Fragment,components:o,ignoreInvalidStyle:!0,jsx:a.jsx,jsxs:a.jsxs,passKeys:!0,passNode:!0});function c(e,t,o){if("raw"===e.type&&o&&"number"==typeof t)return s?o.children.splice(t,1):o.children[t]={type:"text",value:e.value},t;if("element"===e.type){let t;for(t in $i)if(Object.hasOwn($i,t)&&Object.hasOwn(e.properties,t)){const n=e.properties[t],r=$i[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=u(String(n||""),t,e))}}if("element"===e.type){let s=n?!n.includes(e.tagName):!!i&&i.includes(e.tagName);if(!s&&r&&"number"==typeof t&&(s=!r(e,t,o)),s&&o&&"number"==typeof t)return l&&e.children?o.children.splice(t,1,...e.children):o.children.splice(t,1),t}}}(t.runSync(t.parse(n),n),e)}function Jl(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),o=e.indexOf("/");return-1===t||-1!==o&&t>o||-1!==n&&t>n||-1!==r&&t>r||Gl.test(e.slice(0,t))?e:""}function eu(e,t,n){const r=ol((n||{}).ignore||[]),o=function(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const e=n[r];t.push([tu(e[0]),nu(e[1])])}return t}(t);let i=-1;for(;++i<o.length;)cl(e,"text",s);function s(e,t){let n,s=-1;for(;++s<t.length;){const e=t[s],o=n?n.children:void 0;if(r(e,o?o.indexOf(e):void 0,n))return;n=e}if(n)return function(e,t){const n=t[t.length-1],r=o[i][0],s=o[i][1];let a=0;const l=n.children.indexOf(e);let u=!1,c=[];r.lastIndex=0;let d=r.exec(e.value);for(;d;){const n=d.index,o={index:d.index,input:d.input,stack:[...t,e]};let i=s(...d,o);if("string"==typeof i&&(i=i.length>0?{type:"text",value:i}:void 0),!1===i?r.lastIndex=n+1:(a!==n&&c.push({type:"text",value:e.value.slice(a,n)}),Array.isArray(i)?c.push(...i):i&&c.push(i),a=n+d[0].length,u=!0),!r.global)break;d=r.exec(e.value)}u?(a<e.value.length&&c.push({type:"text",value:e.value.slice(a)}),n.children.splice(l,1,...c)):c=[e];return l+c.length}(e,t)}}function tu(e){return"string"==typeof e?new RegExp(function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(e),"g"):e}function nu(e){return"function"==typeof e?e:function(){return e}}function ru(){return{type:"break"}}function ou(){return function(e){!function(e){eu(e,[/\r?\n|\r/g,ru])}(e)}}function iu(e,t){const n=String(e);if("string"!=typeof t)throw new TypeError("Expected character");let r=0,o=n.indexOf(t);for(;-1!==o;)r++,o=n.indexOf(t,o+t.length);return r}const su="phrasing",au=["autolink","link","image","label"];function lu(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function uu(e){this.config.enter.autolinkProtocol.call(this,e)}function cu(e){this.config.exit.autolinkProtocol.call(this,e)}function du(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function pu(e){this.config.exit.autolinkEmail.call(this,e)}function fu(e){this.exit(e)}function hu(e){eu(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,mu],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,gu]],{ignore:["link","linkReference"]})}function mu(e,t,n,r,o){let i="";if(!vu(o))return!1;if(/^w/i.test(t)&&(n=t+n,t="",i="http://"),!function(e){const t=e.split(".");if(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))return!1;return!0}(n))return!1;const s=function(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const o=iu(e,"(");let i=iu(e,")");for(;-1!==r&&o>i;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),i++;return[e,n]}(n+r);if(!s[0])return!1;const a={type:"link",title:null,url:i+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[a,{type:"text",value:s[1]}]:a}function gu(e,t,n,r){return!(!vu(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function vu(e,t){const n=e.input.charCodeAt(e.index-1);return(0===e.index||gs(n)||ms(n))&&(!t||47!==n)}function yu(){this.buffer()}function bu(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function ku(){this.buffer()}function xu(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function wu(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=os(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Su(e){this.exit(e)}function Cu(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=os(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Eu(e){this.exit(e)}function Lu(e,t,n,r){const o=n.createTracker(r);let i=o.move("[^");const s=n.enter("footnoteReference"),a=n.enter("reference");return i+=o.move(n.safe(n.associationId(e),{after:"]",before:i})),a(),s(),i+=o.move("]"),i}function Pu(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:function(e,n,r,o){const i=r.createTracker(o);let s=i.move("[^");const a=r.enter("footnoteDefinition"),l=r.enter("label");s+=i.move(r.safe(r.associationId(e),{before:s,after:"]"})),l(),s+=i.move("]:"),e.children&&e.children.length>0&&(i.shift(4),s+=i.move((t?"\n":" ")+r.indentLines(r.containerFlow(e,i.current()),t?Ou:Mu)));return a(),s},footnoteReference:Lu},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}}function Mu(e,t,n){return 0===t?e:Ou(e,t,n)}function Ou(e,t,n){return(n?"":"    ")+e}Lu.peek=function(){return"["};const ju=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function Nu(e){this.enter({type:"delete",children:[]},e)}function Du(e){this.exit(e)}function Iu(e,t,n,r){const o=n.createTracker(r),i=n.enter("strikethrough");let s=o.move("~~");return s+=n.containerPhrasing(e,{...o.current(),before:s,after:"~"}),s+=o.move("~~"),i(),s}function Tu(e){return e.length}function zu(e){return null==e?"":String(e)}function _u(e){const t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}function Au(e,t,n){return">"+(n?"":" ")+e}function Ru(e,t){return Fu(e,t.inConstruct,!0)&&!Fu(e,t.notInConstruct,!1)}function Fu(e,t,n){if("string"==typeof t&&(t=[t]),!t||0===t.length)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function Uu(e,t,n,r){let o=-1;for(;++o<n.unsafe.length;)if("\n"===n.unsafe[o].character&&Ru(n.stack,n.unsafe[o]))return/[ \t]/.test(r.before)?"":" ";return"\\\n"}function Bu(e,t,n){return(n?"":"    ")+e}function Hu(e){const t=e.options.quote||'"';if('"'!==t&&"'"!==t)throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function Vu(e){return"&#x"+e.toString(16).toUpperCase()+";"}function $u(e,t,n){const r=Ss(e),o=Ss(t);return void 0===r?void 0===o?"_"===n?{inside:!0,outside:!0}:{inside:!1,outside:!1}:1===o?{inside:!0,outside:!0}:{inside:!1,outside:!0}:1===r?void 0===o?{inside:!1,outside:!1}:1===o?{inside:!0,outside:!0}:{inside:!1,outside:!1}:void 0===o?{inside:!1,outside:!1}:1===o?{inside:!0,outside:!1}:{inside:!1,outside:!1}}function Wu(e,t,n,r){const o=function(e){const t=e.options.emphasis||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}(n),i=n.enter("emphasis"),s=n.createTracker(r),a=s.move(o);let l=s.move(n.containerPhrasing(e,{after:o,before:a,...s.current()}));const u=l.charCodeAt(0),c=$u(r.before.charCodeAt(r.before.length-1),u,o);c.inside&&(l=Vu(u)+l.slice(1));const d=l.charCodeAt(l.length-1),p=$u(r.after.charCodeAt(0),d,o);p.inside&&(l=l.slice(0,-1)+Vu(d));const f=s.move(o);return i(),n.attentionEncodeSurroundingInfo={after:p.outside,before:c.outside},a+l+f}function qu(e){return e.value||""}function Zu(e,t,n,r){const o=Hu(n),i='"'===o?"Quote":"Apostrophe",s=n.enter("image");let a=n.enter("label");const l=n.createTracker(r);let u=l.move("![");return u+=l.move(n.safe(e.alt,{before:u,after:"]",...l.current()})),u+=l.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(a=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":")",...l.current()}))),a(),e.title&&(a=n.enter(`title${i}`),u+=l.move(" "+o),u+=l.move(n.safe(e.title,{before:u,after:o,...l.current()})),u+=l.move(o),a()),u+=l.move(")"),s(),u}function Qu(e,t,n,r){const o=e.referenceType,i=n.enter("imageReference");let s=n.enter("label");const a=n.createTracker(r);let l=a.move("![");const u=n.safe(e.alt,{before:l,after:"]",...a.current()});l+=a.move(u+"]["),s();const c=n.stack;n.stack=[],s=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...a.current()});return s(),n.stack=c,i(),"full"!==o&&u&&u===d?"shortcut"===o?l=l.slice(0,-1):l+=a.move("]"):l+=a.move(d+"]"),l}function Ku(e,t,n){let r=e.value||"",o="`",i=-1;for(;new RegExp("(^|[^`])"+o+"([^`]|$)").test(r);)o+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++i<n.unsafe.length;){const e=n.unsafe[i],t=n.compilePattern(e);let o;if(e.atBreak)for(;o=t.exec(r);){let e=o.index;10===r.charCodeAt(e)&&13===r.charCodeAt(e-1)&&e--,r=r.slice(0,e)+" "+r.slice(o.index+1)}}return o+r+o}function Gu(e,t){const n=qi(e);return Boolean(!t.options.resourceLink&&e.url&&!e.title&&e.children&&1===e.children.length&&"text"===e.children[0].type&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}function Yu(e,t,n,r){const o=Hu(n),i='"'===o?"Quote":"Apostrophe",s=n.createTracker(r);let a,l;if(Gu(e,n)){const t=n.stack;n.stack=[],a=n.enter("autolink");let r=s.move("<");return r+=s.move(n.containerPhrasing(e,{before:r,after:">",...s.current()})),r+=s.move(">"),a(),n.stack=t,r}a=n.enter("link"),l=n.enter("label");let u=s.move("[");return u+=s.move(n.containerPhrasing(e,{before:u,after:"](",...s.current()})),u+=s.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(n.safe(e.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(l=n.enter("destinationRaw"),u+=s.move(n.safe(e.url,{before:u,after:e.title?" ":")",...s.current()}))),l(),e.title&&(l=n.enter(`title${i}`),u+=s.move(" "+o),u+=s.move(n.safe(e.title,{before:u,after:o,...s.current()})),u+=s.move(o),l()),u+=s.move(")"),a(),u}function Xu(e,t,n,r){const o=e.referenceType,i=n.enter("linkReference");let s=n.enter("label");const a=n.createTracker(r);let l=a.move("[");const u=n.containerPhrasing(e,{before:l,after:"]",...a.current()});l+=a.move(u+"]["),s();const c=n.stack;n.stack=[],s=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...a.current()});return s(),n.stack=c,i(),"full"!==o&&u&&u===d?"shortcut"===o?l=l.slice(0,-1):l+=a.move("]"):l+=a.move(d+"]"),l}function Ju(e){const t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function ec(e){const t=e.options.rule||"*";if("*"!==t&&"-"!==t&&"_"!==t)throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}Iu.peek=function(){return"~"},Wu.peek=function(e,t,n){return n.options.emphasis||"*"},qu.peek=function(){return"<"},Zu.peek=function(){return"!"},Qu.peek=function(){return"!"},Ku.peek=function(){return"`"},Yu.peek=function(e,t,n){return Gu(e,n)?"<":"["},Xu.peek=function(){return"["};const tc=ol(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function nc(e,t,n,r){const o=function(e){const t=e.options.strong||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}(n),i=n.enter("strong"),s=n.createTracker(r),a=s.move(o+o);let l=s.move(n.containerPhrasing(e,{after:o,before:a,...s.current()}));const u=l.charCodeAt(0),c=$u(r.before.charCodeAt(r.before.length-1),u,o);c.inside&&(l=Vu(u)+l.slice(1));const d=l.charCodeAt(l.length-1),p=$u(r.after.charCodeAt(0),d,o);p.inside&&(l=l.slice(0,-1)+Vu(d));const f=s.move(o+o);return i(),n.attentionEncodeSurroundingInfo={after:p.outside,before:c.outside},a+l+f}nc.peek=function(e,t,n){return n.options.strong||"*"};const rc={blockquote:function(e,t,n,r){const o=n.enter("blockquote"),i=n.createTracker(r);i.move("> "),i.shift(2);const s=n.indentLines(n.containerFlow(e,i.current()),Au);return o(),s},break:Uu,code:function(e,t,n,r){const o=function(e){const t=e.options.fence||"`";if("`"!==t&&"~"!==t)throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}(n),i=e.value||"",s="`"===o?"GraveAccent":"Tilde";if(function(e,t){return Boolean(!1===t.options.fences&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}(e,n)){const e=n.enter("codeIndented"),t=n.indentLines(i,Bu);return e(),t}const a=n.createTracker(r),l=o.repeat(Math.max(function(e,t){const n=String(e);let r=n.indexOf(t),o=r,i=0,s=0;if("string"!=typeof t)throw new TypeError("Expected substring");for(;-1!==r;)r===o?++i>s&&(s=i):i=1,o=r+t.length,r=n.indexOf(t,o);return s}(i,o)+1,3)),u=n.enter("codeFenced");let c=a.move(l);if(e.lang){const t=n.enter(`codeFencedLang${s}`);c+=a.move(n.safe(e.lang,{before:c,after:" ",encode:["`"],...a.current()})),t()}if(e.lang&&e.meta){const t=n.enter(`codeFencedMeta${s}`);c+=a.move(" "),c+=a.move(n.safe(e.meta,{before:c,after:"\n",encode:["`"],...a.current()})),t()}return c+=a.move("\n"),i&&(c+=a.move(i+"\n")),c+=a.move(l),u(),c},definition:function(e,t,n,r){const o=Hu(n),i='"'===o?"Quote":"Apostrophe",s=n.enter("definition");let a=n.enter("label");const l=n.createTracker(r);let u=l.move("[");return u+=l.move(n.safe(n.associationId(e),{before:u,after:"]",...l.current()})),u+=l.move("]: "),a(),!e.url||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(a=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":"\n",...l.current()}))),a(),e.title&&(a=n.enter(`title${i}`),u+=l.move(" "+o),u+=l.move(n.safe(e.title,{before:u,after:o,...l.current()})),u+=l.move(o),a()),s(),u},emphasis:Wu,hardBreak:Uu,heading:function(e,t,n,r){const o=Math.max(Math.min(6,e.depth||1),1),i=n.createTracker(r);if(function(e,t){let n=!1;return dl(e,function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return n=!0,ul}),Boolean((!e.depth||e.depth<3)&&qi(e)&&(t.options.setext||n))}(e,n)){const t=n.enter("headingSetext"),r=n.enter("phrasing"),s=n.containerPhrasing(e,{...i.current(),before:"\n",after:"\n"});return r(),t(),s+"\n"+(1===o?"=":"-").repeat(s.length-(Math.max(s.lastIndexOf("\r"),s.lastIndexOf("\n"))+1))}const s="#".repeat(o),a=n.enter("headingAtx"),l=n.enter("phrasing");i.move(s+" ");let u=n.containerPhrasing(e,{before:"# ",after:"\n",...i.current()});return/^[\t ]/.test(u)&&(u=Vu(u.charCodeAt(0))+u.slice(1)),u=u?s+" "+u:s,n.options.closeAtx&&(u+=" "+s),l(),a(),u},html:qu,image:Zu,imageReference:Qu,inlineCode:Ku,link:Yu,linkReference:Xu,list:function(e,t,n,r){const o=n.enter("list"),i=n.bulletCurrent;let s=e.ordered?function(e){const t=e.options.bulletOrdered||".";if("."!==t&&")"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}(n):Ju(n);const a=e.ordered?"."===s?")":".":function(e){const t=Ju(e),n=e.options.bulletOther;if(!n)return"*"===t?"-":"*";if("*"!==n&&"+"!==n&&"-"!==n)throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}(n);let l=!(!t||!n.bulletLastUsed)&&s===n.bulletLastUsed;if(!e.ordered){const t=e.children?e.children[0]:void 0;if("*"!==s&&"-"!==s||!t||t.children&&t.children[0]||"list"!==n.stack[n.stack.length-1]||"listItem"!==n.stack[n.stack.length-2]||"list"!==n.stack[n.stack.length-3]||"listItem"!==n.stack[n.stack.length-4]||0!==n.indexStack[n.indexStack.length-1]||0!==n.indexStack[n.indexStack.length-2]||0!==n.indexStack[n.indexStack.length-3]||(l=!0),ec(n)===s&&t){let t=-1;for(;++t<e.children.length;){const n=e.children[t];if(n&&"listItem"===n.type&&n.children&&n.children[0]&&"thematicBreak"===n.children[0].type){l=!0;break}}}}l&&(s=a),n.bulletCurrent=s;const u=n.containerFlow(e,r);return n.bulletLastUsed=s,n.bulletCurrent=i,o(),u},listItem:function(e,t,n,r){const o=function(e){const t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n);let i=n.bulletCurrent||Ju(n);t&&"list"===t.type&&t.ordered&&(i=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+i);let s=i.length+1;("tab"===o||"mixed"===o&&(t&&"list"===t.type&&t.spread||e.spread))&&(s=4*Math.ceil(s/4));const a=n.createTracker(r);a.move(i+" ".repeat(s-i.length)),a.shift(s);const l=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,a.current()),function(e,t,n){if(t)return(n?"":" ".repeat(s))+e;return(n?i:i+" ".repeat(s-i.length))+e});return l(),u},paragraph:function(e,t,n,r){const o=n.enter("paragraph"),i=n.enter("phrasing"),s=n.containerPhrasing(e,r);return i(),o(),s},root:function(e,t,n,r){const o=e.children.some(function(e){return tc(e)});return(o?n.containerPhrasing:n.containerFlow).call(n,e,r)},strong:nc,text:function(e,t,n,r){return n.safe(e.value,r)},thematicBreak:function(e,t,n){const r=(ec(n)+(n.options.ruleSpaces?" ":"")).repeat(function(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}(n));return n.options.ruleSpaces?r.slice(0,-1):r}};function oc(e){const t=e._align;this.enter({type:"table",align:t.map(function(e){return"none"===e?null:e}),children:[]},e),this.data.inTable=!0}function ic(e){this.exit(e),this.data.inTable=void 0}function sc(e){this.enter({type:"tableRow",children:[]},e)}function ac(e){this.exit(e)}function lc(e){this.enter({type:"tableCell",children:[]},e)}function uc(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,cc));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function cc(e,t){return"|"===t?t:e}function dc(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,o=t.stringLength,i=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,n){let r=rc.inlineCode(e,t,n);n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&"));return r},table:function(e,t,n,r){return a(function(e,t,n){const r=e.children;let o=-1;const i=[],s=t.enter("table");for(;++o<r.length;)i[o]=l(r[o],t,n);return s(),i}(e,n,r),e.align)},tableCell:s,tableRow:function(e,t,n,r){const o=l(e,n,r),i=a([o]);return i.slice(0,i.indexOf("\n"))}}};function s(e,t,n,r){const o=n.enter("tableCell"),s=n.enter("phrasing"),a=n.containerPhrasing(e,{...r,before:i,after:i});return s(),o(),a}function a(e,t){return function(e,t){const n=t||{},r=(n.align||[]).concat(),o=n.stringLength||Tu,i=[],s=[],a=[],l=[];let u=0,c=-1;for(;++c<e.length;){const t=[],r=[];let i=-1;for(e[c].length>u&&(u=e[c].length);++i<e[c].length;){const s=zu(e[c][i]);if(!1!==n.alignDelimiters){const e=o(s);r[i]=e,(void 0===l[i]||e>l[i])&&(l[i]=e)}t.push(s)}s[c]=t,a[c]=r}let d=-1;if("object"==typeof r&&"length"in r)for(;++d<u;)i[d]=_u(r[d]);else{const e=_u(r);for(;++d<u;)i[d]=e}d=-1;const p=[],f=[];for(;++d<u;){const e=i[d];let t="",r="";99===e?(t=":",r=":"):108===e?t=":":114===e&&(r=":");let o=!1===n.alignDelimiters?1:Math.max(1,l[d]-t.length-r.length);const s=t+"-".repeat(o)+r;!1!==n.alignDelimiters&&(o=t.length+o+r.length,o>l[d]&&(l[d]=o),f[d]=o),p[d]=s}s.splice(1,0,p),a.splice(1,0,f),c=-1;const h=[];for(;++c<s.length;){const e=s[c],t=a[c];d=-1;const r=[];for(;++d<u;){const o=e[d]||"";let s="",a="";if(!1!==n.alignDelimiters){const e=l[d]-(t[d]||0),n=i[d];114===n?s=" ".repeat(e):99===n?e%2?(s=" ".repeat(e/2+.5),a=" ".repeat(e/2-.5)):(s=" ".repeat(e/2),a=s):a=" ".repeat(e)}!1===n.delimiterStart||d||r.push("|"),!1===n.padding||!1===n.alignDelimiters&&""===o||!1===n.delimiterStart&&!d||r.push(" "),!1!==n.alignDelimiters&&r.push(s),r.push(o),!1!==n.alignDelimiters&&r.push(a),!1!==n.padding&&r.push(" "),!1===n.delimiterEnd&&d===u-1||r.push("|")}h.push(!1===n.delimiterEnd?r.join("").replace(/ +$/,""):r.join(""))}return h.join("\n")}(e,{align:t,alignDelimiters:r,padding:n,stringLength:o})}function l(e,t,n){const r=e.children;let o=-1;const i=[],a=t.enter("tableRow");for(;++o<r.length;)i[o]=s(r[o],0,t,n);return a(),i}}function pc(e){const t=this.stack[this.stack.length-2];t.type,t.checked="taskListCheckValueChecked"===e.type}function fc(e){const t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){const e=this.stack[this.stack.length-1];e.type;const n=e.children[0];if(n&&"text"===n.type){const r=t.children;let o,i=-1;for(;++i<r.length;){const e=r[i];if("paragraph"===e.type){o=e;break}}o===e&&(n.value=n.value.slice(1),0===n.value.length?e.children.shift():e.position&&n.position&&"number"==typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function hc(e,t,n,r){const o=e.children[0],i="boolean"==typeof e.checked&&o&&"paragraph"===o.type,s="["+(e.checked?"x":" ")+"] ",a=n.createTracker(r);i&&a.move(s);let l=rc.listItem(e,t,n,{...r,...a.current()});return i&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,function(e){return e+s})),l}const mc={tokenize:function(e,t,n){let r=0;return function t(i){if((87===i||119===i)&&r<3)return r++,e.consume(i),t;if(46===i&&3===r)return e.consume(i),o;return n(i)};function o(e){return null===e?n(e):t(e)}},partial:!0},gc={tokenize:function(e,t,n){let r,o,i;return s;function s(t){return 46===t||95===t?e.check(yc,l,a)(t):null===t||fs(t)||gs(t)||45!==t&&ms(t)?l(t):(i=!0,e.consume(t),s)}function a(t){return 95===t?r=!0:(o=r,r=void 0),e.consume(t),s}function l(e){return o||r||!i?n(e):t(e)}},partial:!0},vc={tokenize:function(e,t){let n=0,r=0;return o;function o(s){return 40===s?(n++,e.consume(s),o):41===s&&r<n?i(s):33===s||34===s||38===s||39===s||41===s||42===s||44===s||46===s||58===s||59===s||60===s||63===s||93===s||95===s||126===s?e.check(yc,t,i)(s):null===s||fs(s)||gs(s)?t(s):(e.consume(s),o)}function i(t){return 41===t&&r++,e.consume(t),o}},partial:!0},yc={tokenize:function(e,t,n){return r;function r(s){return 33===s||34===s||39===s||41===s||42===s||44===s||46===s||58===s||59===s||63===s||95===s||126===s?(e.consume(s),r):38===s?(e.consume(s),i):93===s?(e.consume(s),o):60===s||null===s||fs(s)||gs(s)?t(s):n(s)}function o(e){return null===e||40===e||91===e||fs(e)||gs(e)?t(e):r(e)}function i(e){return is(e)?s(e):n(e)}function s(t){return 59===t?(e.consume(t),r):is(t)?(e.consume(t),s):n(t)}},partial:!0},bc={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return ss(e)?n(e):t(e)}},partial:!0},kc={name:"wwwAutolink",tokenize:function(e,t,n){const r=this;return function(t){if(87!==t&&119!==t||!Ec.call(r,r.previous)||Oc(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(mc,e.attempt(gc,e.attempt(vc,o),n),n)(t)};function o(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:Ec},xc={name:"protocolAutolink",tokenize:function(e,t,n){const r=this;let o="",i=!1;return function(t){if((72===t||104===t)&&Lc.call(r,r.previous)&&!Oc(r.events))return e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),o+=String.fromCodePoint(t),e.consume(t),s;return n(t)};function s(t){if(is(t)&&o.length<5)return o+=String.fromCodePoint(t),e.consume(t),s;if(58===t){const n=o.toLowerCase();if("http"===n||"https"===n)return e.consume(t),a}return n(t)}function a(t){return 47===t?(e.consume(t),i?l:(i=!0,a)):n(t)}function l(t){return null===t||ls(t)||fs(t)||gs(t)||ms(t)?n(t):e.attempt(gc,e.attempt(vc,u),n)(t)}function u(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:Lc},wc={name:"emailAutolink",tokenize:function(e,t,n){const r=this;let o,i;return function(t){if(!Mc(t)||!Pc.call(r,r.previous)||Oc(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(t)};function s(t){return Mc(t)?(e.consume(t),s):64===t?(e.consume(t),a):n(t)}function a(t){return 46===t?e.check(bc,u,l)(t):45===t||95===t||ss(t)?(i=!0,e.consume(t),a):u(t)}function l(t){return e.consume(t),o=!0,a}function u(s){return i&&o&&is(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(s)):n(s)}},previous:Pc},Sc={};let Cc=48;for(;Cc<123;)Sc[Cc]=wc,Cc++,58===Cc?Cc=65:91===Cc&&(Cc=97);function Ec(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||fs(e)}function Lc(e){return!is(e)}function Pc(e){return!(47===e||Mc(e))}function Mc(e){return 43===e||45===e||46===e||95===e||ss(e)}function Oc(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}Sc[43]=wc,Sc[45]=wc,Sc[46]=wc,Sc[95]=wc,Sc[72]=[wc,xc],Sc[104]=[wc,xc],Sc[87]=[wc,kc],Sc[119]=[wc,kc];const jc={tokenize:function(e,t,n){const r=this;return bs(e,function(e){const o=r.events[r.events.length-1];return o&&"gfmFootnoteDefinitionIndent"===o[1].type&&4===o[2].sliceSerialize(o[1],!0).length?t(e):n(e)},"gfmFootnoteDefinitionIndent",5)},partial:!0};function Nc(e,t,n){const r=this;let o=r.events.length;const i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s;for(;o--;){const e=r.events[o][1];if("labelImage"===e.type){s=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(o){if(!s||!s._balanced)return n(o);const a=os(r.sliceSerialize({start:s.end,end:r.now()}));if(94!==a.codePointAt(0)||!i.includes(a.slice(1)))return n(o);return e.enter("gfmFootnoteCallLabelMarker"),e.consume(o),e.exit("gfmFootnoteCallLabelMarker"),t(o)}}function Dc(e,t){let n=e.length;for(;n--;)if("labelImage"===e[n][1].type&&"enter"===e[n][0]){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;const i={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},i.start),end:Object.assign({},i.end)},a=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",o,t],["exit",o,t],["enter",i,t],["enter",s,t],["exit",s,t],["exit",i,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...a),e}function Ic(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i,s=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),a};function a(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(a){if(s>999||93===a&&!i||null===a||91===a||fs(a))return n(a);if(93===a){e.exit("chunkString");const i=e.exit("gfmFootnoteCallString");return o.includes(os(r.sliceSerialize(i)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(a),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(a)}return fs(a)||(i=!0),s++,e.consume(a),92===a?u:l}function u(t){return 91===t||92===t||93===t?(e.consume(t),s++,l):l(t)}}function Tc(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i,s,a=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),l};function l(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",u):n(t)}function u(t){if(a>999||93===t&&!s||null===t||91===t||fs(t))return n(t);if(93===t){e.exit("chunkString");const n=e.exit("gfmFootnoteDefinitionLabelString");return i=os(r.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return fs(t)||(s=!0),a++,e.consume(t),92===t?c:u}function c(t){return 91===t||92===t||93===t?(e.consume(t),a++,u):u(t)}function d(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),o.includes(i)||o.push(i),bs(e,p,"gfmFootnoteDefinitionWhitespace")):n(t)}function p(e){return t(e)}}function zc(e,t,n){return e.check(Ms,t,e.attempt(jc,t,n))}function _c(e){e.exit("gfmFootnoteDefinition")}function Ac(e){let t=(e||{}).singleTilde;const n={name:"strikethrough",tokenize:function(e,n,r){const o=this.previous,i=this.events;let s=0;return function(t){if(126===o&&"characterEscape"!==i[i.length-1][1].type)return r(t);return e.enter("strikethroughSequenceTemporary"),a(t)};function a(i){const l=Ss(o);if(126===i)return s>1?r(i):(e.consume(i),s++,a);if(s<2&&!t)return r(i);const u=e.exit("strikethroughSequenceTemporary"),c=Ss(i);return u._open=!c||2===c&&Boolean(l),u._close=!l||2===l&&Boolean(c),n(i)}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let r=n;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset===e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";const o={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},i={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},s=[["enter",o,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",i,t]],a=t.parser.constructs.insideSpan.null;a&&Yi(s,s.length,0,Cs(a,e.slice(r+1,n),t)),Yi(s,s.length,0,[["exit",i,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",o,t]]),Yi(e,r-1,n-r+3,s),n=r+s.length-2;break}}n=-1;for(;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}};return null==t&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}}class Rc{constructor(){this.map=[]}add(e,t,n){!function(e,t,n,r){let o=0;if(0===n&&0===r.length)return;for(;o<e.map.length;){if(e.map[o][0]===t)return e.map[o][1]+=n,void e.map[o][2].push(...r);o+=1}e.map.push([t,n,r])}(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),0===this.map.length)return;let t=this.map.length;const n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(const t of r)e.push(t);r=n.pop()}this.map.length=0}}function Fc(e,t){let n=!1;const r=[];for(;t<e.length;){const o=e[t];if(n){if("enter"===o[0])"tableContent"===o[1].type&&r.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===o[1].type){if("tableDelimiterMarker"===e[t-1][1].type){const e=r.length-1;r[e]="left"===r[e]?"center":"right"}}else if("tableDelimiterRow"===o[1].type)break}else"enter"===o[0]&&"tableDelimiterRow"===o[1].type&&(n=!0);t+=1}return r}function Uc(e,t,n){const r=this;let o,i=0,s=0;return function(e){let t=r.events.length-1;for(;t>-1;){const e=r.events[t][1].type;if("lineEnding"!==e&&"linePrefix"!==e)break;t--}const o=t>-1?r.events[t][1].type:null,i="tableHead"===o||"tableRow"===o?k:a;if(i===k&&r.parser.lazy[r.now().line])return n(e);return i(e)};function a(t){return e.enter("tableHead"),e.enter("tableRow"),function(e){if(124===e)return l(e);return o=!0,s+=1,l(e)}(t)}function l(t){return null===t?n(t):ps(t)?s>1?(s=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d):n(t):hs(t)?bs(e,l,"whitespace")(t):(s+=1,o&&(o=!1,i+=1),124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),o=!0,l):(e.enter("data"),u(t)))}function u(t){return null===t||124===t||fs(t)?(e.exit("data"),l(t)):(e.consume(t),92===t?c:u)}function c(t){return 92===t||124===t?(e.consume(t),u):u(t)}function d(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter("tableDelimiterRow"),o=!1,hs(t)?bs(e,p,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):p(t))}function p(t){return 45===t||58===t?h(t):124===t?(o=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),f):b(t)}function f(t){return hs(t)?bs(e,h,"whitespace")(t):h(t)}function h(t){return 58===t?(s+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),m):45===t?(s+=1,m(t)):null===t||ps(t)?y(t):b(t)}function m(t){return 45===t?(e.enter("tableDelimiterFiller"),g(t)):b(t)}function g(t){return 45===t?(e.consume(t),g):58===t?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),v):(e.exit("tableDelimiterFiller"),v(t))}function v(t){return hs(t)?bs(e,y,"whitespace")(t):y(t)}function y(n){return 124===n?p(n):(null===n||ps(n))&&o&&i===s?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(n)):b(n)}function b(e){return n(e)}function k(t){return e.enter("tableRow"),x(t)}function x(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),x):null===n||ps(n)?(e.exit("tableRow"),t(n)):hs(n)?bs(e,x,"whitespace")(n):(e.enter("data"),w(n))}function w(t){return null===t||124===t||fs(t)?(e.exit("data"),x(t)):(e.consume(t),92===t?S:w)}function S(t){return 92===t||124===t?(e.consume(t),w):w(t)}}function Bc(e,t){let n,r,o,i=-1,s=!0,a=0,l=[0,0,0,0],u=[0,0,0,0],c=!1,d=0;const p=new Rc;for(;++i<e.length;){const f=e[i],h=f[1];"enter"===f[0]?"tableHead"===h.type?(c=!1,0!==d&&(Vc(p,t,d,n,r),r=void 0,d=0),n={type:"table",start:Object.assign({},h.start),end:Object.assign({},h.end)},p.add(i,0,[["enter",n,t]])):"tableRow"===h.type||"tableDelimiterRow"===h.type?(s=!0,o=void 0,l=[0,0,0,0],u=[0,i+1,0,0],c&&(c=!1,r={type:"tableBody",start:Object.assign({},h.start),end:Object.assign({},h.end)},p.add(i,0,[["enter",r,t]])),a="tableDelimiterRow"===h.type?2:r?3:1):!a||"data"!==h.type&&"tableDelimiterMarker"!==h.type&&"tableDelimiterFiller"!==h.type?"tableCellDivider"===h.type&&(s?s=!1:(0!==l[1]&&(u[0]=u[1],o=Hc(p,t,l,a,void 0,o)),l=u,u=[l[1],i,0,0])):(s=!1,0===u[2]&&(0!==l[1]&&(u[0]=u[1],o=Hc(p,t,l,a,void 0,o),l=[0,0,0,0]),u[2]=i)):"tableHead"===h.type?(c=!0,d=i):"tableRow"===h.type||"tableDelimiterRow"===h.type?(d=i,0!==l[1]?(u[0]=u[1],o=Hc(p,t,l,a,i,o)):0!==u[1]&&(o=Hc(p,t,u,a,i,o)),a=0):!a||"data"!==h.type&&"tableDelimiterMarker"!==h.type&&"tableDelimiterFiller"!==h.type||(u[3]=i)}for(0!==d&&Vc(p,t,d,n,r),p.consume(t.events),i=-1;++i<t.events.length;){const e=t.events[i];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=Fc(t.events,i))}return e}function Hc(e,t,n,r,o,i){const s=1===r?"tableHeader":2===r?"tableDelimiter":"tableData";0!==n[0]&&(i.end=Object.assign({},$c(t.events,n[0])),e.add(n[0],0,[["exit",i,t]]));const a=$c(t.events,n[1]);if(i={type:s,start:Object.assign({},a),end:Object.assign({},a)},e.add(n[1],0,[["enter",i,t]]),0!==n[2]){const o=$c(t.events,n[2]),i=$c(t.events,n[3]),s={type:"tableContent",start:Object.assign({},o),end:Object.assign({},i)};if(e.add(n[2],0,[["enter",s,t]]),2!==r){const r=t.events[n[2]],o=t.events[n[3]];if(r[1].end=Object.assign({},o[1].end),r[1].type="chunkText",r[1].contentType="text",n[3]>n[2]+1){const t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",s,t]])}return void 0!==o&&(i.end=Object.assign({},$c(t.events,o)),e.add(o,0,[["exit",i,t]]),i=void 0),i}function Vc(e,t,n,r,o){const i=[],s=$c(t.events,n);o&&(o.end=Object.assign({},s),i.push(["exit",o,t])),r.end=Object.assign({},s),i.push(["exit",r,t]),e.add(n+1,0,i)}function $c(e,t){const n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}const Wc={name:"tasklistCheck",tokenize:function(e,t,n){const r=this;return function(t){if(null!==r.previous||!r._gfmTasklistFirstContentOfListItem)return n(t);return e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),o};function o(t){return fs(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),i):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),i):n(t)}function i(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(t)}function s(r){return ps(r)?t(r):hs(r)?e.check({tokenize:qc},t,n)(r):n(r)}}};function qc(e,t,n){return bs(e,function(e){return null===e?n(e):t(e)},"whitespace")}const Zc={};function Qc(e){const t=e||Zc,n=this.data(),r=n.micromarkExtensions||(n.micromarkExtensions=[]),o=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),i=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);r.push(function(e){return es([{text:Sc},{document:{91:{name:"gfmFootnoteDefinition",tokenize:Tc,continuation:{tokenize:zc},exit:_c}},text:{91:{name:"gfmFootnoteCall",tokenize:Ic},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Nc,resolveTo:Dc}}},Ac(e),{flow:{null:{name:"table",tokenize:Uc,resolveAll:Bc}}},{text:{91:Wc}}])}(t)),o.push([{transforms:[hu],enter:{literalAutolink:lu,literalAutolinkEmail:uu,literalAutolinkHttp:uu,literalAutolinkWww:uu},exit:{literalAutolink:fu,literalAutolinkEmail:pu,literalAutolinkHttp:cu,literalAutolinkWww:du}},{enter:{gfmFootnoteCallString:yu,gfmFootnoteCall:bu,gfmFootnoteDefinitionLabelString:ku,gfmFootnoteDefinition:xu},exit:{gfmFootnoteCallString:wu,gfmFootnoteCall:Su,gfmFootnoteDefinitionLabelString:Cu,gfmFootnoteDefinition:Eu}},{canContainEols:["delete"],enter:{strikethrough:Nu},exit:{strikethrough:Du}},{enter:{table:oc,tableData:lc,tableHeader:lc,tableRow:sc},exit:{codeText:uc,table:ic,tableData:ac,tableHeader:ac,tableRow:ac}},{exit:{taskListCheckValueChecked:pc,taskListCheckValueUnchecked:pc,paragraph:fc}}]),i.push(function(e){return{extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:su,notInConstruct:au},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:su,notInConstruct:au},{character:":",before:"[ps]",after:"\\/",inConstruct:su,notInConstruct:au}]},Pu(e),{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:ju}],handlers:{delete:Iu}},dc(e),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:hc}}]}}(t))}const Kc=({markers:e,hoveredMarker:t})=>{const n=N.useRef(null);return N.useEffect(()=>{if(n.current&&e.length>0){const t=e[e.length-1];if(0===Number(t.lat)||0===Number(t.lng))return;Xc(n.current,{lat:t.lat,lng:t.lng},{zoom:13})}},[e]),N.useEffect(()=>{n.current&&t&&Xc(n.current,{lat:t.lat,lng:t.lng},{zoom:13})},[t]),a.jsx("div",{className:"map-section-container",children:a.jsx(Q,{mapContainerStyle:Gc,center:Yc,zoom:5,onLoad:e=>{n.current=e,e.setZoom(5),e.setCenter(Yc)},children:e?.length&&e.map(({label:e,lat:n,lng:r},o)=>{const i=t&&t.lat===n&&t.lng===r;return a.jsx(xn,{position:{lat:n,lng:r},mapPaneName:xn.OVERLAY_MOUSE_TARGET,children:a.jsxs("div",{className:"map-marker "+(i?"hovered":""),children:[a.jsx(go,{className:"map-marker-pin"}),a.jsx("div",{className:"map-marker-label",children:e})]})},o)})})})},Gc={width:"100%",height:"100%",borderRadius:"16px"},Yc={lat:25.276987,lng:55.296249};function Xc(e,t,n={}){const{steps:r=100,zoom:o=13}=n,i=e.getCenter();if(!i)return;const s=i.lat(),a=i.lng(),l=t.lat,u=t.lng,c=e.getZoom()??5,d=o-c;let p=0;!function n(){p++;const i=function(e){return e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2}(p/r),f=s+(l-s)*i,h=a+(u-a)*i,m=c+d*i;e.setCenter({lat:f,lng:h}),e.setZoom(m),p<r?requestAnimationFrame(n):(e.setCenter(t),e.setZoom(o))}()}const Jc=({isStreaming:e,itinerary:t,className:n=""})=>{const[r,o]=N.useState([]);return N.useEffect(()=>{if(t&&t.data&&Array.isArray(t.data.itinerarySummary)){const e=t.data.itinerarySummary.find(e=>"itinerary"===e["view-type"]);e&&e.itinerary&&Array.isArray(e.itinerary.days)&&e.itinerary.days.length>0&&o(e.itinerary.days.map((e,t)=>t))}},[t]),a.jsx("div",{className:`itinerary-section-container ${n}`,children:e?a.jsx("div",{className:"itinerary-section-loading",children:a.jsx("div",{className:"itinerary-section-spinner"})}):t?a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"itinerary-section-header",children:a.jsxs("div",{className:"itinerary-section-header-content",children:[a.jsx("p",{className:"itinerary-section-title",children:"Itinerary"}),a.jsxs("span",{className:"itinerary-section-days-count",children:[t.data.itinerarySummary.find(e=>"itinerary"===e["view-type"])?.itinerary.days.length||0," ","days"]})]})}),a.jsx("div",{className:"itinerary-section-content",children:a.jsx("div",{className:"itinerary-days",children:t.data.itinerarySummary.find(e=>"itinerary"===e["view-type"])?.itinerary.days.map((e,t)=>a.jsxs("div",{className:"itinerary-day",children:[a.jsxs("button",{onClick:()=>{o(e=>e.includes(t)?e.filter(e=>e!==t):[...e,t])},className:"itinerary-day-button",children:[a.jsxs("div",{className:"itinerary-day-info",children:[a.jsxs("p",{className:"itinerary-day-title",children:["Day ",e.day]}),e.date&&a.jsx("p",{className:"itinerary-day-date",children:new Date(e.date).toLocaleDateString("en-US",{day:"numeric",month:"short"})})]}),a.jsx(Xr,{className:"itinerary-day-chevron "+(r.includes(t)?"expanded":"collapsed")})]}),a.jsx("div",{className:"itinerary-day-content "+(r.includes(t)?"expanded":"collapsed"),children:e.inclusions?.length>0&&a.jsx("div",{className:"itinerary-day-inclusions",children:e.inclusions.filter(e=>"attraction"===e.type||"transport"===e.type).map((e,t)=>e.metadata&&e.metadata.length>0?a.jsx("div",{className:"itinerary-inclusion",children:a.jsxs("div",{className:"itinerary-inclusion-content",children:[a.jsx("div",{className:"itinerary-inclusion-icon-container",children:"attraction"===e.type?a.jsx(co,{className:"itinerary-inclusion-icon"}):a.jsx(Yr,{className:"itinerary-inclusion-icon"})}),a.jsxs("div",{className:"itinerary-inclusion-info",children:["attraction"===e.type&&e.metadata[0]?.name&&a.jsx("p",{className:"itinerary-inclusion-title",children:e.metadata[0].name}),"transport"===e.type&&a.jsx("p",{className:"itinerary-inclusion-title",children:e.metadata[0]?.["transport-type"]||e["transport-type"]||"Transport"}),a.jsxs("div",{className:"itinerary-inclusion-details",children:[e.time&&a.jsxs("div",{className:"itinerary-inclusion-detail",children:[a.jsx(eo,{className:"itinerary-inclusion-detail-icon"}),a.jsx("span",{children:e.time})]}),(e.metadata[0]?.payment||"transport"===e.type&&e.payment)&&a.jsxs("div",{className:"itinerary-inclusion-detail",children:[a.jsx(to,{className:"itinerary-inclusion-detail-icon"}),a.jsx("span",{children:"transport"===e.type&&e.payment||e.metadata[0]?.payment})]})]}),"attraction"===e.type&&e.metadata[0]?.description&&a.jsx("p",{className:"itinerary-inclusion-description",children:e.metadata[0].description}),a.jsx("span",{className:"itinerary-inclusion-badge "+("attraction"===e.type?"attraction":"transport"),children:e.type})]})]})},t):null)})})]},t))})})]}):a.jsx("div",{className:"itinerary-section-empty",children:a.jsxs("div",{className:"itinerary-section-empty-content",children:[a.jsx(oo,{className:"itinerary-section-empty-icon"}),a.jsx("p",{className:"itinerary-section-empty-title",children:"No itinerary available"}),a.jsx("p",{className:"itinerary-section-empty-subtitle",children:"Ask me to create one for you!"})]})})})},ed=({className:e="",isStreaming:t,itinerary:n})=>{const[r,o]=N.useState([]);return N.useEffect(()=>{o(["attractions","hotels","flights","transport"])},[]),a.jsx("div",{className:`inclusion-section-container ${e}`,children:t?a.jsx("div",{className:"inclusion-section-loading",children:a.jsx("div",{className:"inclusion-section-spinner"})}):n?a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"inclusion-section-header",children:a.jsx("p",{className:"inclusion-section-title",children:"Inclusions"})}),a.jsx("div",{className:"inclusion-section-content",children:(()=>{const e=n.data.itinerarySummary.find(e=>"inclusions"===e["view-type"]);return e?a.jsx("div",{className:"inclusion-section-items",children:e.inclusions.inclusions.length>0&&e.inclusions.inclusions.map((e,t)=>{const n=e.attractions||[],i=e.hotels||[],s=e.flights||[],l=e.transport||[],u=n.filter(e=>e.metadata&&e.metadata.length>0),c=s.filter(e=>e.metadata&&e.metadata.length>0),d=l.filter(e=>e.metadata&&e.metadata.length>0),p=i;return a.jsxs("div",{className:"inclusion-category",children:[u.length>0&&a.jsxs("div",{children:[a.jsxs("button",{onClick:()=>{o(e=>e.includes("attractions")?e.filter(e=>"attractions"!==e):[...e,"attractions"])},className:"inclusion-category-button",children:[a.jsx(Xr,{className:"inclusion-category-chevron "+(r.includes("attractions")?"expanded":"collapsed")}),a.jsxs("p",{className:"inclusion-category-title",children:["Attractions (",u.length,")"]})]}),a.jsx("div",{className:"inclusion-category-content "+(r.includes("attractions")?"expanded":"collapsed"),children:a.jsx("div",{className:"inclusion-items",children:u.map((e,t)=>a.jsx("div",{className:"inclusion-item",children:a.jsxs("div",{className:"inclusion-item-content",children:[a.jsx(lo,{className:"inclusion-item-icon"}),a.jsxs("div",{className:"inclusion-item-info",children:[a.jsx("h4",{className:"inclusion-item-title",children:e.metadata[0]?.name||"Attraction"}),e.metadata[0]?.description&&a.jsx("p",{className:"inclusion-item-description",children:e.metadata[0].description}),a.jsxs("div",{className:"inclusion-item-details",children:[e.time&&a.jsxs("span",{className:"inclusion-item-detail",children:[a.jsx(eo,{className:"inclusion-item-detail-icon"}),e.time]}),e.metadata[0]?.payment&&a.jsxs("span",{className:"inclusion-item-detail",children:[a.jsx(to,{className:"inclusion-item-detail-icon"}),e.metadata[0].payment]})]})]})]})},t))})})]}),p.length>0&&a.jsxs("div",{children:[a.jsxs("button",{onClick:()=>{o(e=>e.includes("hotels")?e.filter(e=>"hotels"!==e):[...e,"hotels"])},className:"inclusion-category-button",children:[a.jsx(Xr,{className:"inclusion-category-chevron "+(r.includes("hotels")?"expanded":"collapsed")}),a.jsxs("p",{className:"inclusion-category-title",children:["Hotels (",p.length,")"]})]}),a.jsx("div",{className:"inclusion-category-content "+(r.includes("hotels")?"expanded":"collapsed"),children:a.jsx("div",{className:"inclusion-items",children:p.map((e,t)=>a.jsx("div",{className:"inclusion-item",children:a.jsxs("div",{className:"inclusion-item-content",children:[a.jsx(oo,{className:"inclusion-item-icon"}),a.jsxs("div",{className:"inclusion-item-info",children:[a.jsx("h4",{className:"inclusion-item-title",children:e.name||"Hotel"}),a.jsxs("div",{className:"inclusion-item-details",children:[e["check-in"]&&a.jsxs("span",{className:"inclusion-item-detail",children:[a.jsx(eo,{className:"inclusion-item-detail-icon"}),"Check-in: ",e["check-in"]]}),e["check-out"]&&a.jsxs("span",{className:"inclusion-item-detail",children:[a.jsx(eo,{className:"inclusion-item-detail-icon"}),"Check-out:"," ",e["check-out"]]})]})]})]})},t))})})]}),c.length>0&&a.jsxs("div",{children:[a.jsxs("button",{onClick:()=>{o(e=>e.includes("flights")?e.filter(e=>"flights"!==e):[...e,"flights"])},className:"inclusion-category-button",children:[a.jsx(Xr,{className:"inclusion-category-chevron "+(r.includes("flights")?"expanded":"collapsed")}),a.jsxs("p",{className:"inclusion-category-title",children:["Flights (",c.length,")"]})]}),a.jsx("div",{className:"inclusion-category-content "+(r.includes("flights")?"expanded":"collapsed"),children:a.jsx("div",{className:"inclusion-items",children:c.map((e,t)=>a.jsx("div",{className:"inclusion-item",children:a.jsxs("div",{className:"inclusion-item-content",children:[a.jsx(vo,{className:"inclusion-item-icon"}),a.jsxs("div",{className:"inclusion-item-info",children:[a.jsx("h4",{className:"inclusion-item-title",children:e.metadata[0]?.airline||"Flight"}),a.jsxs("div",{className:"inclusion-item-details",children:[e.date&&a.jsxs("span",{className:"inclusion-item-detail",children:[a.jsx(eo,{className:"inclusion-item-detail-icon"}),e.date]}),e.metadata[0]?.from&&e.metadata[0]?.to&&a.jsxs("span",{className:"inclusion-item-detail",children:[a.jsx(co,{className:"inclusion-item-detail-icon"}),e.metadata[0].from," →"," ",e.metadata[0].to]})]})]})]})},t))})})]}),d.length>0&&a.jsxs("div",{children:[a.jsxs("button",{onClick:()=>{o(e=>e.includes("transport")?e.filter(e=>"transport"!==e):[...e,"transport"])},className:"inclusion-category-button",children:[a.jsx(Xr,{className:"inclusion-category-chevron "+(r.includes("transport")?"expanded":"collapsed")}),a.jsxs("p",{className:"inclusion-category-title",children:["Transport (",d.length,")"]})]}),a.jsx("div",{className:"inclusion-category-content "+(r.includes("transport")?"expanded":"collapsed"),children:a.jsx("div",{className:"inclusion-items",children:d.map((e,t)=>a.jsx("div",{className:"inclusion-item",children:a.jsxs("div",{className:"inclusion-item-content",children:[a.jsx(Yr,{className:"inclusion-item-icon"}),a.jsxs("div",{className:"inclusion-item-info",children:[a.jsx("h4",{className:"inclusion-item-title",children:e.metadata[0]?.["transport-type"]||"Transport"}),a.jsxs("div",{className:"inclusion-item-details",children:[e.time&&a.jsxs("span",{className:"inclusion-item-detail",children:[a.jsx(eo,{className:"inclusion-item-detail-icon"}),e.time]}),e.metadata[0]?.payment&&a.jsxs("span",{className:"inclusion-item-detail",children:[a.jsx(to,{className:"inclusion-item-detail-icon"}),e.metadata[0].payment]})]})]})]})},t))})})]})]},t)})}):a.jsxs("div",{className:"inclusion-section-empty-content",children:[a.jsx(oo,{className:"inclusion-section-empty-icon"}),a.jsx("p",{className:"inclusion-section-empty-title",children:"No inclusions available"})]})})()})]}):a.jsx("div",{className:"inclusion-section-empty",children:a.jsxs("div",{className:"inclusion-section-empty-content",children:[a.jsx(oo,{className:"inclusion-section-empty-icon"}),a.jsx("p",{className:"inclusion-section-empty-title",children:"No inclusions available"}),a.jsx("p",{className:"inclusion-section-empty-subtitle",children:"Ask me to create an itinerary!"})]})})})};var td="placeholder0897f3db9a66f710.png";const nd=({className:e="",hotelImagesData:t,isStreaming:n,selectedImageLink:r,setSelectedImageLink:o})=>{const[i,s]=N.useState("grid"),[l,u]=N.useState([]),[c,d]=N.useState(null);console.log("selectedImage**",{selectedImage:c,selectedImageLink:r});const p=Array.isArray(t)?t.reduce((e,t)=>{const n=t.image_type||"Other";return e[n]||(e[n]=[]),e[n].push(t),e},{}):{},f=Object.keys(p);return N.useEffect(()=>{f?.length&&0===l?.length&&u(f)},[t]),N.useEffect(()=>{if(console.log("Hotel Image - this is getting called",{expandedCategories:l,categories:f,selectedImageLink:r}),r&&r.image_type){const e=r.image_type;f.includes(e)&&!l.includes(e)&&u(t=>[...t,e]),setTimeout(()=>{const e=document.getElementById(r.image_url);e&&e.scrollIntoView({behavior:"smooth",block:"center"})},300),r.image_url&&d(r),console.log("selectedImageLink.image_url",r.image_url)}},[f,r,l]),console.log("hotelImagesData",t),a.jsx("div",{className:`hotel-images-container ${e}`,children:n?a.jsx("div",{className:"hotel-images-loading",children:a.jsxs("div",{className:"hotel-images-loading-content",children:[a.jsx("div",{className:"hotel-images-spinner"}),a.jsx("p",{className:"hotel-images-loading-text",children:"Loading hotel images..."})]})}):t&&t.length?a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"hotel-images-header",children:a.jsxs("div",{className:"hotel-images-header-content",children:[a.jsxs("div",{className:"hotel-images-header-info",children:[a.jsx("p",{className:"hotel-images-title",children:"Hotel Images"}),a.jsxs("span",{className:"hotel-images-count",children:[t.length," images"]})]}),a.jsxs("div",{className:"hotel-images-view-toggle",children:[a.jsx("button",{onClick:()=>s("grid"),className:"hotel-images-view-button "+("grid"===i?"active":""),children:a.jsx(ro,{className:"hotel-images-view-icon"})}),a.jsx("button",{onClick:()=>s("list"),className:"hotel-images-view-button "+("list"===i?"active":""),children:a.jsx(uo,{className:"hotel-images-view-icon"})})]})]})}),a.jsx("div",{className:"hotel-images-content",children:(()=>{const e=t.reduce((e,t)=>{const n=t.image_type||"Other";return e[n]||(e[n]=[]),e[n].push(t),e},{});return Object.keys(e).map(t=>a.jsxs("div",{className:"hotel-images-category",children:[a.jsxs("button",{onClick:()=>{u(e=>e.includes(t)?e.filter(e=>e!==t):[...e,t])},className:"hotel-images-category-button",children:[a.jsx(Xr,{className:"hotel-images-category-chevron "+(l.includes(t)?"expanded":"collapsed")}),a.jsxs("div",{className:"hotel-images-category-info",children:[a.jsx("p",{children:t}),a.jsxs("p",{className:"hotel-images-category-count",children:[e[t].length," images"]})]})]}),a.jsx("div",{className:"hotel-images-category-content "+(l.includes(t)?"expanded":"collapsed"),children:"grid"===i?a.jsx("div",{className:"hotel-images-grid",children:e[t].map((e,t)=>a.jsxs("div",{className:"hotel-images-grid-item",children:[a.jsx("div",{className:"hotel-images-grid-image-container",children:a.jsx("img",{src:e.image_url||"/placeholder.svg",alt:e.description||"Hotel image",className:"hotel-images-grid-image",loading:"lazy",onClick:()=>d(e),onError:e=>{e.target.src=td}})}),e.description&&a.jsx("div",{className:"hotel-images-grid-description",children:a.jsx("p",{children:e.description})})]},t))}):a.jsx("div",{className:"hotel-images-list",children:e[t].map((e,t)=>a.jsx("div",{className:"hotel-images-list-item",children:a.jsxs("div",{className:"hotel-images-list-content",children:[a.jsx("div",{className:"hotel-images-list-image-container",children:a.jsx("img",{src:e.image_url||"/placeholder.svg",alt:e.description||"Hotel image",className:"hotel-images-list-image",loading:"lazy",onClick:()=>d(e),onError:e=>{e.target.src=td}})}),a.jsxs("div",{className:"hotel-images-list-info",children:[a.jsx("p",{className:"hotel-images-list-title",children:e.description||"Hotel image"}),e.description&&a.jsx("p",{className:"hotel-images-list-description",children:e.description})]})]})},t))})})]},t))})()}),c?.image_url&&a.jsx(rd,{onClose:()=>{console.log("Debug** onclose"),d(null),o(null)},selectedImage:c,placeholderImg:td})]}):a.jsx("div",{className:"hotel-images-empty",children:a.jsxs("div",{className:"hotel-images-empty-content",children:[a.jsx(io,{className:"hotel-images-empty-icon"}),a.jsx("p",{className:"hotel-images-empty-title",children:"No images found"}),a.jsx("p",{className:"hotel-images-empty-subtitle",children:"Ask me to show hotel images!"})]})})})};function rd({selectedImage:e,onClose:t,placeholderImg:n="/placeholder.svg?height=400&width=600"}){const[r,o]=N.useState(!1);if(console.log("Debug** Coming Here ---",e,!e),!e)return null;return a.jsx("div",{className:"lightbox-overlay",onClick:e=>{console.log("Debug** Backdrop"),e.target===e.currentTarget&&t()},children:a.jsxs("div",{className:"lightbox-container",children:[a.jsx("button",{className:"close-button",onClick:t,"aria-label":"Close lightbox",children:a.jsx(ko,{className:"close-icon"})}),a.jsxs("div",{className:"lightbox-content",children:[a.jsx("div",{className:"image-section",children:a.jsx("img",{src:e.image_url||"/placeholder.svg",alt:e.description||e.image_name,className:"lightbox-image",onError:e=>{e.target.src=n}})}),a.jsx("div",{className:"info-panel",children:a.jsxs("div",{className:"info-content",children:[a.jsxs("div",{className:"header-section",children:[a.jsxs("div",{className:"header-label",children:[a.jsx(io,{className:"header-icon"}),a.jsx("span",{children:"Image Details"})]}),a.jsx("p",{className:"image-title",children:e.image_name||"Untitled Image"})]}),a.jsx("div",{className:"divider"}),e.description&&a.jsxs("div",{className:"description-section",children:[a.jsxs("div",{className:"section-label",children:[a.jsx(ao,{className:"section-icon"}),a.jsx("span",{children:"Description"})]}),a.jsx("p",{className:"description-text",children:e.description})]}),a.jsx("div",{className:"categories-section",children:a.jsxs("div",{className:"categories-wrapper",children:[a.jsxs("div",{className:"section-label",children:[a.jsx(bo,{className:"section-icon"}),a.jsx("span",{children:"Categories"})]}),a.jsxs("div",{className:"tags-container",children:[a.jsx("span",{className:"tag tag-primary",children:e.image_type}),a.jsx("span",{className:"tag tag-secondary",children:e.kind}),a.jsx("span",{className:"tag tag-secondary",children:e.section})]})]})}),a.jsx("div",{className:"divider"}),a.jsxs("div",{className:"metadata-section",children:[a.jsxs("button",{onClick:()=>{o(!r)},className:"metadata-toggle","aria-expanded":r,children:[a.jsx("h4",{className:"metadata-title",children:"Metadata"}),r?a.jsx(Jr,{className:"metadata-chevron"}):a.jsx(Xr,{className:"metadata-chevron"})]}),r&&a.jsxs("div",{className:"metadata-content",children:[a.jsxs("div",{className:"metadata-list",children:[a.jsxs("div",{className:"metadata-item",children:[a.jsx(co,{className:"metadata-icon"}),a.jsx("span",{className:"metadata-label",children:"Hotel ID:"}),a.jsx("span",{className:"metadata-value",children:e.hotel_id})]}),a.jsxs("div",{className:"metadata-item",children:[a.jsx(io,{className:"metadata-icon"}),a.jsx("span",{className:"metadata-label",children:"Type:"}),a.jsx("span",{className:"metadata-text",children:e.image_type})]}),a.jsxs("div",{className:"metadata-item",children:[a.jsx(bo,{className:"metadata-icon"}),a.jsx("span",{className:"metadata-label",children:"Section:"}),a.jsx("span",{className:"metadata-text",children:e.section})]})]}),a.jsx("div",{className:"url-section",children:a.jsxs("div",{className:"url-container",children:[a.jsxs("div",{className:"url-label",children:[a.jsx(io,{className:"metadata-icon"}),a.jsx("span",{children:"Image URL:"})]}),a.jsx("div",{className:"url-text",children:e.image_url})]})})]})]})]})})]})]})})}const od=({inputValue:e,setInputValue:t,isStreaming:n,handleSendMessage:r,handleKeyDown:o,textareaRef:i})=>a.jsx("div",{className:"chat-input-container",children:a.jsxs("div",{className:"chat-input-wrapper",children:[a.jsx("form",{onSubmit:e=>{e.preventDefault(),r()},className:"chat-input-form",children:a.jsx("textarea",{ref:i,value:e,onChange:e=>t(e.target.value),onKeyDown:o,className:"chat-input-textarea",placeholder:"Ask about rooms, itineraries, images...",disabled:n,rows:1})}),a.jsx("div",{className:"chat-input-actions",children:a.jsx(yo,{className:"chat-input-send-button "+(n||!e.trim()?"disabled":""),onClick:r})})]})}),id=[];for(let e=0;e<256;++e)id.push((e+256).toString(16).slice(1));let sd;const ad=new Uint8Array(16);var ld={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function ud(e,t,n){if(ld.randomUUID&&!e)return ld.randomUUID();const r=(e=e||{}).random??e.rng?.()??function(){if(!sd){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");sd=crypto.getRandomValues.bind(crypto)}return sd(ad)}();if(r.length<16)throw new Error("Random bytes length must be >= 16");return r[6]=15&r[6]|64,r[8]=63&r[8]|128,function(e,t=0){return(id[e[t+0]]+id[e[t+1]]+id[e[t+2]]+id[e[t+3]]+"-"+id[e[t+4]]+id[e[t+5]]+"-"+id[e[t+6]]+id[e[t+7]]+"-"+id[e[t+8]]+id[e[t+9]]+"-"+id[e[t+10]]+id[e[t+11]]+id[e[t+12]]+id[e[t+13]]+id[e[t+14]]+id[e[t+15]]).toLowerCase()}(r)}function cd({config:e={}}){const[t,n]=N.useState(!1),[r,o]=N.useState(!1),[i,s]=N.useState(!1),[l,u]=N.useState("chat"),[c,d]=N.useState("itinerary"),[p,f]=N.useState([]),[h,m]=N.useState(""),[g,v]=N.useState(!1),[y,b]=N.useState(),[k,x]=N.useState(),[w,S]=N.useState([]),[C,E]=N.useState([]),[L,P]=N.useState(),[M,O]=N.useState(null),[j,I]=N.useState();console.log("unifiedMessages",p),console.log("Debug hoveredMarker",L),console.log("isStreaming",g);const T=e.baseUrl||"https://trib-api.bukprotocol.ai",z=e.position||"bottom-right",_=e.theme||"light",{isConnected:A,userId:R}=(()=>{const e=!0,t=localStorage.getItem("userId");if(t)return{isConnected:e,userId:t};const n=ud();return localStorage.setItem("userId",n),{isConnected:e,userId:t}})(),F=N.useRef(null),U=N.useRef(null);N.useEffect(()=>{F.current&&(F.current.style.height="auto",F.current.style.height=`${F.current.scrollHeight}px`)},[h]);N.useEffect(()=>{U.current?.scrollIntoView({behavior:"smooth"})},[p,g,w]),N.useEffect(()=>{if(0===w.length)return;const e=w.flat();if(0===e.length)return;const t={id:`unified-${Date.now()}`,timestamp:Date.now(),statusContent:"",mainContent:"",places:[],itineraryData:null,hotelImagesData:[],isStreaming:!0,type:"ai_unified"},n=[];e.forEach(e=>{e?.metadata?.agent&&I(e?.metadata?.agent),console.log("part",e);const r="status_update"===e?.metadata?.category,o="text"===e?.type,i="place"===e?.type,s="data"===e?.type;if(o)r?t.statusContent+=e.text||"":t.mainContent+=e.text||"";else if(i)t.places.push(e.place);else if(s)if("hotel-agent"===e.metadata?.agent){const r={...e.data?.image,kind:e.data?.kind,section:e.data?.section};t.hotelImagesData=[...t.hotelImagesData,r],n.push(r)}else t.itineraryData=e,b(e)}),n.length>0&&x(n),f(e=>{const n=e.findIndex(e=>"ai_unified"===e.type&&e.isStreaming);if(-1!==n){const r=[...e];return r[n]=t,r}return[...e,t]})},[w]),N.useEffect(()=>{g||f(e=>e.map(e=>"ai_unified"===e.type&&e.isStreaming?{...e,isStreaming:!1}:e))},[g]);const B=async()=>{h.trim()&&await(async e=>{if(!A)return void Hr.error("Please login to send messages.");const t=e.trim();if(m(""),!t)return;const n={id:`user-${Date.now()}`,type:"user",content:t,timestamp:Date.now()};f(e=>[...e,n]),S([]),v(!0);let r=localStorage.getItem("sessionId");try{const e=await fetch(`${T}/route`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r?{message:t,userId:R,sessionId:r}:{message:t,userId:R})});if(!e.ok||!e.body)return console.error("❌ Invalid response"),Hr.error("Failed to get response from server"),void v(!1);const n=e.body.getReader(),o=new TextDecoder("utf-8");for(;;){const{value:e,done:t}=await n.read();if(t)break;const i=o.decode(e,{stream:!0}),s=i.split(/\r?\n/);for(let e of s)if(e=e.trim(),e){e.startsWith("data:")&&(e=e.replace(/^data:\s*/,""));try{const t=JSON.parse(e);if(console.log("parsed",t),t.sessionId&&!r&&(localStorage.setItem("sessionId",t.sessionId),r=t.sessionId),t?.status?.message?.parts){const e=t.status.message.parts.map(e=>({...e,metadata:t.status.metadata,sender:"ai"}));S(t=>[...t,e]);const n=e.filter(e=>"place"===e.type).map((e,t)=>({id:Date.now()+t,lat:e.place.latitude,lng:e.place.longitude,label:e.place.name}));E(e=>[...e,...n]);const r=e.find(e=>"data"===e.type);r&&"hotel-agent"!==r.metadata?.agent&&(console.log("🔍 Type data found:",r),b(r)),r&&"hotel-agent"===r.metadata?.agent&&(console.log("🏨 Hotel images data found:",r),x(r))}}catch(e){console.error("❌ Error parsing chunk:",i,e)}}}}catch(e){console.error("❌ Error in handleSend:",e),Hr.error("Failed to send message")}finally{console.log("🛑 Streaming ended"),v(!1)}})(h)},H=e=>{const t=e.replace(/\\\\n/g,"\n").replace(/\\n/g,"\n");return[/^#{1,6}\s+/m,/\*\*[^*]+\*\*/,/\*[^*]+\*/,/`[^`]+`/,/```[\s\S]*?```/,/^\s*[-*+]\s+/m,/^\s*\d+\.\s+/m,/^\s*\|.*\|.*$/m,/^\s*>\s+/m,/\[([^\]]+)\]$$([^)]+)$$/,/!\[([^\]]*)\]$$([^)]+)$$/,/^\s*---+\s*$/m,/\n\s*\n/].some(e=>e.test(t))},V=(e,t)=>({p:({children:n})=>a.jsx("p",{className:"markdown-paragraph",children:q(n,e,t)}),strong:({children:n})=>a.jsx("strong",{className:"markdown-strong",children:q(n,e,t)}),em:({children:n})=>a.jsx("em",{className:"markdown-em",children:q(n,e,t)}),code:({children:n})=>a.jsx("code",{className:"markdown-code",children:q(n,e,t)}),pre:({children:n})=>a.jsx("pre",{className:"markdown-pre",children:a.jsx("code",{className:"markdown-pre-code",children:q(n,e,t)})}),ul:({children:n})=>a.jsx("ul",{className:"markdown-ul",children:q(n,e,t)}),ol:({children:n})=>a.jsx("ol",{className:"markdown-ol",children:q(n,e,t)}),li:({children:n})=>a.jsx("li",{className:"markdown-li",children:q(n,e,t)}),a:({href:n,children:r})=>a.jsx("a",{href:n,className:"markdown-link",children:q(r,e,t)}),br:()=>a.jsx("br",{}),div:({children:n})=>a.jsx("div",{children:q(n,e,t)}),h1:({children:n})=>a.jsx("p",{className:"markdown-h1",children:q(n,e,t)}),h2:({children:n})=>a.jsx("p",{className:"markdown-h2",children:q(n,e,t)}),h3:({children:n})=>a.jsx("p",{className:"markdown-h3",children:q(n,e,t)}),h4:({children:n})=>a.jsx("h4",{className:"markdown-h4",children:q(n,e,t)}),h5:({children:n})=>a.jsx("h5",{className:"markdown-h5",children:q(n,e,t)}),h6:({children:n})=>a.jsx("h6",{className:"markdown-h6",children:q(n,e,t)}),blockquote:({children:n})=>a.jsx("blockquote",{className:"markdown-blockquote",children:q(n,e,t)}),hr:()=>a.jsx("hr",{className:"markdown-hr"}),table:({children:n})=>a.jsx("div",{className:"markdown-table-wrapper",children:a.jsx("table",{className:"markdown-table",children:q(n,e,t)})}),thead:({children:n})=>a.jsx("thead",{className:"markdown-thead",children:q(n,e,t)}),tbody:({children:n})=>a.jsx("tbody",{children:q(n,e,t)}),tr:({children:n})=>a.jsx("tr",{className:"markdown-tr",children:q(n,e,t)}),th:({children:n})=>a.jsx("th",{className:"markdown-th",children:q(n,e,t)}),td:({children:n})=>a.jsx("td",{className:"markdown-td",children:q(n,e,t)})}),$=e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),B())},W=(e,t,n)=>{const r=((e,t)=>{if(!t||0===t.length)return e;const n=[...Array.from(new Set(t.map(e=>e.section).filter(Boolean)))].sort((e,t)=>t.length-e.length),r=[];if(n.forEach(t=>{const n=new RegExp(`\\b${t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}\\b`,"gi");let o;for(;null!==(o=n.exec(e));){const e=o.index,i=o.index+o[0].length,s=r.some(t=>e>=t.start&&e<t.end||i>t.start&&i<=t.end);s||r.push({start:e,end:i,matchedText:o[0],section:t}),n.lastIndex===o.index&&n.lastIndex++}}),0===r.length)return e;const o=[];let i=0;return r.sort((e,t)=>e.start-t.start),r.forEach((n,r)=>{n.start>i&&o.push(e.slice(i,n.start)),o.push(a.jsxs("span",{className:"image-text-hyperlink",title:`Show images of ${n.section}`,onClick:()=>{const e=t.filter(e=>e.section.toLowerCase()===n.section.toLowerCase());console.log("Matched section:",n.section),console.log("Filtered hotel images:",e),O(e[0]),x(t),u("gallery"),d("gallery")},children:[a.jsx("span",{style:{fontSize:"14px"},children:"🖼️"}),n.matchedText," ",a.jsx("span",{style:{fontSize:"10px"},children:"↗"})]},`hotel-img-${r}`)),i=n.end}),i<e.length&&o.push(e.slice(i)),a.jsx(a.Fragment,{children:o})})(e,n);return"string"==typeof r?((e,t)=>{if(!t||0===t.length)return e;const n=[...t].sort((e,t)=>t.name.length-e.name.length),r=[];n.forEach(t=>{[new RegExp(`\\b${t.name.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}\\b`,"gi"),new RegExp(`${t.name.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}`,"gi"),new RegExp(`${t.name.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/\s+/g,"\\s*")}`,"gi")].forEach(n=>{let o;for(n.lastIndex=0;null!==(o=n.exec(e));){const e=o.index,i=o.index+o[0].length;r.some(t=>e>=t.start&&e<t.end||i>t.start&&i<=t.end||e<=t.start&&i>=t.end)||r.push({start:e,end:i,place:t,matchedText:o[0]}),n.lastIndex===o.index&&n.lastIndex++}})}),r.sort((e,t)=>e.start-t.start);const o=[];for(const e of r)o.some(t=>e.start>=t.start&&e.start<t.end||e.end>t.start&&t.end||e.start<=t.start&&e.end>=t.end)||o.push(e);if(0===o.length)return e;const i=[];let s=0;return o.forEach((t,n)=>{t.start>s&&i.push(e.slice(s,t.start)),i.push(a.jsxs("span",{className:"place-link",title:t.place.description||t.place.name,onMouseEnter:()=>{P({id:n,label:t?.place?.name,lat:t?.place?.latitude,lng:t?.place?.longitude}),u("map"),d("map"),E(e=>e.some(e=>e.lat===t?.place?.latitude&&e.lng===t?.place?.longitude)?e:[...e,{id:n,label:t?.place?.name,lat:t?.place?.latitude,lng:t?.place?.longitude}])},onMouseLeave:()=>P(void 0),onClick:()=>{const e=t?.place?.latitude,n=t?.place?.longitude,r=`https://www.google.com/maps?q=${e},${n}`;window.open(r,"_blank")},children:[a.jsx("span",{style:{fontSize:"14px"},children:"📍"}),t.matchedText," ",a.jsx("span",{style:{fontSize:"10px"},children:"↗"})]},`place-link-${n}-${t.start}`)),s=t.end}),s<e.length&&i.push(e.slice(s)),a.jsx(a.Fragment,{children:i})})(r,t):r},q=(e,t,n)=>"string"==typeof e?W(e,t,n):Array.isArray(e)?e.map((e,r)=>"string"==typeof e?a.jsx(D.Fragment,{children:W(e,t,n)},r):e):e,Z=j?"hotel-agent"===j?[{id:"chat",label:"Chat",icon:ho},{id:"map",label:"Map",icon:po},{id:"gallery",label:"Gallery",icon:so}]:"itinerary-agent"===j?[{id:"chat",label:"Chat",icon:ho},{id:"map",label:"Map",icon:po},{id:"itinerary",label:"Itinerary",icon:Gr},{id:"inclusion",label:"Inclusion",icon:oo}]:dd:dd,Q=()=>a.jsxs("div",{className:"chat-messages",children:[0===p.length&&!g&&a.jsxs("div",{className:"welcome-message",children:[a.jsx("p",{className:"welcome-title",children:"Where to today?"}),a.jsxs("div",{className:"welcome-content",children:[a.jsx(vo,{className:"welcome-icon"}),a.jsx("p",{className:"welcome-text",children:"Hey there! I'm here to assist you in planning your experience. Ask me anything travel related."})]})]}),p.sort((e,t)=>e.timestamp-t.timestamp).map(e=>"user"===e.type?a.jsx("div",{className:"user-message-container",children:a.jsx("div",{className:"user-message",children:a.jsx("p",{className:"user-message-text",children:e.content})})},e.id):((e,t)=>a.jsxs("div",{children:[e.statusContent.trim()&&a.jsx("div",{className:"status-content",children:a.jsx("div",{className:"status-content-text",children:e.statusContent.trim()})}),e.mainContent.trim()&&a.jsx("div",{className:"main-content",children:H(e.mainContent.trim())?a.jsx(Xl,{components:V(e.places||[],t||[]),remarkPlugins:[ou,Qc],children:e.mainContent.trim()}):a.jsx("div",{className:"main-content-text",children:e.mainContent.trim()})})]},e.id))(e,e.hotelImagesData)),g&&a.jsxs("div",{className:"streaming-indicator",children:[a.jsx("span",{className:"streaming-dot",children:"●"}),a.jsx("span",{className:"streaming-dot streaming-dot-delay-1",children:"●"}),a.jsx("span",{className:"streaming-dot streaming-dot-delay-2",children:"●"})]}),a.jsx("div",{ref:U,className:"messages-end"})]});return t?i?a.jsx("div",{className:"modal-overlay",children:a.jsxs("div",{className:"modal-container",children:[a.jsxs("div",{className:"chat-header",children:[a.jsxs("div",{className:"header-title",children:[a.jsx(ho,{className:"header-icon"}),a.jsx("p",{className:"header-text",children:"Hotel Assistant"})]}),a.jsxs("div",{className:"header-actions",children:[a.jsx("button",{onClick:()=>s(!1),className:"header-button",children:a.jsx(mo,{className:"header-button-icon"})}),a.jsx("button",{onClick:()=>{s(!1),n(!1)},className:"header-button",children:a.jsx(ko,{className:"header-button-icon"})})]})]}),a.jsxs("div",{className:"modal-content",children:[a.jsxs("div",{className:"modal-left-panel",children:[a.jsx("div",{className:"modal-panel-header",children:a.jsx("p",{className:"modal-panel-title",children:"Chat"})}),a.jsx("div",{className:"modal-chat-messages",children:a.jsx(Q,{})}),a.jsx(od,{handleKeyDown:$,handleSendMessage:B,inputValue:h,isStreaming:g,setInputValue:m,textareaRef:F})]}),a.jsxs("div",{className:"modal-right-panel",children:[a.jsx("div",{className:"modal-right-panel-header",children:a.jsx("div",{className:"modal-right-panel-tabs",children:Z.map(({id:e,label:t,icon:n})=>{const r=c===e;return a.jsxs("button",{onClick:()=>d(e),className:"modal-right-panel-tab "+(r?"active":""),"aria-pressed":r,children:[a.jsx(n,{className:"modal-right-panel-tab-icon"}),t]},e)})})}),"itinerary"===c?a.jsx(Jc,{isStreaming:g,itinerary:y}):"gallery"===c?a.jsx(nd,{hotelImagesData:k,isStreaming:g,selectedImageLink:M,setSelectedImageLink:O}):"map"===c?a.jsx(Kc,{markers:C,hoveredMarker:L}):a.jsx(ed,{isStreaming:g,itinerary:y})]})]})]})}):a.jsx("div",{className:`chat-widget-container ${z} ${_}`,children:a.jsxs("div",{className:"chat-widget-main "+(r?"minimized":""),children:[a.jsxs("div",{className:"widget-header",children:[a.jsxs("div",{className:"widget-header-title",children:[a.jsx(ho,{className:"widget-header-icon"}),a.jsx("p",{className:"widget-header-text",children:"Hotel Assistant"})]}),a.jsxs("div",{className:"widget-header-actions",children:[a.jsx("button",{onClick:()=>s(!0),className:"widget-header-button",title:"Expand",children:a.jsx(no,{className:"widget-header-button-icon"})}),a.jsx("button",{onClick:()=>o(!r),className:"widget-header-button",children:r?a.jsx(fo,{className:"widget-header-button-icon"}):a.jsx(mo,{className:"widget-header-button-icon"})}),a.jsx("button",{onClick:()=>n(!1),className:"widget-header-button",children:a.jsx(ko,{className:"widget-header-button-icon"})})]})]}),!r&&a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"widget-tabs",children:Z.map(({id:e,label:t,icon:n})=>a.jsxs("button",{onClick:()=>u(e),className:"widget-tab "+(l===e?"active":""),children:[a.jsx(n,{className:"widget-tab-icon"}),t]},e))}),a.jsxs("div",{className:"widget-content",children:["chat"===l&&a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"widget-chat-container",children:a.jsx(Q,{})}),a.jsx(od,{handleKeyDown:$,handleSendMessage:B,inputValue:h,isStreaming:g,setInputValue:m,textareaRef:F})]}),"itinerary"===l&&a.jsx(Jc,{isStreaming:g,itinerary:y}),"gallery"===l&&a.jsx(nd,{hotelImagesData:k,isStreaming:g,selectedImageLink:M,setSelectedImageLink:O}),"map"===l&&a.jsx(Kc,{markers:C,hoveredMarker:L}),"inclusion"===l&&a.jsx(ed,{isStreaming:g,itinerary:y})]})]})]})}):a.jsx("div",{className:`chat-widget ${z} ${_}`,children:a.jsx("button",{onClick:()=>n(!0),className:"chat-open-button",children:a.jsx(ho,{className:"chat-open-icon"})})})}const dd=[{id:"chat",label:"Chat",icon:ho},{id:"map",label:"Map",icon:po},{id:"itinerary",label:"Itinerary",icon:Gr},{id:"inclusion",label:"Inclusion",icon:oo},{id:"gallery",label:"Gallery",icon:so}],pd=(e={})=>{document.querySelectorAll("[data-hotel-ai-widget]").forEach(t=>{if(t.children.length>0)return;const n={...e,apiKey:t.getAttribute("data-api-key")||e.apiKey,baseUrl:t.getAttribute("data-base-url")||e.baseUrl,theme:t.getAttribute("data-theme")||e.theme,position:t.getAttribute("data-position")||e.position,googleMapsApiKey:t.getAttribute("data-google-maps-api-key")||e.googleMapsApiKey};j.createRoot(t).render(a.jsx(()=>a.jsxs("div",{className:`hotel-ai-widget-container ${n.theme||"light"}`,children:[a.jsx(Br,{position:"top-right"}),n.googleMapsApiKey?a.jsx(se,{googleMapsApiKey:n.googleMapsApiKey,libraries:["places"],children:a.jsx(cd,{config:n})}):a.jsx(cd,{config:n})]}),{}))})};return"loading"===document.readyState?document.addEventListener("DOMContentLoaded",()=>pd()):pd(),window.HotelChatWidget={init:pd},pd}();