PageSourceSearch

https://ratemyarea.com/assets/index-rCv-4_XT.js

js ratemyarea.com collected 2026-10-02 07:17:31 UTC 1,203,995 bytes, 974 lines download raw bytes

vendor: 4,979 bytes, lines 1-9
1var oU=Object.defineProperty;var CO=e=>{throw TypeError(e)};var aU=(e,t,n)=>t in e?oU(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var wt=(e,t,n)=>aU(e,typeof t!="symbol"?t+"":t,n),Bv=(e,t,n)=>t.has(e)||CO("Cannot "+n);var de=(e,t,n)=>(Bv(e,t,"read from private field"),n?n.call(e):t.get(e)),ot=(e,t,n)=>t.has(e)?CO("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),We=(e,t,n,r)=>(Bv(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Cn=(e,t,n)=>(Bv(e,t,"access private method"),n);var Hf=(e,t,n,r)=>({set _(i){We(e,t,i,n)},get _(){return de(e,t,r)}});function sU(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var Wf=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function lt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var zv={exports:{}},Bu={},Uv={exports:{}},tt={};/**
2 * @license React
3 * react.production.min.js
4 *
5 * Copyright (c) Facebook, Inc. and its affiliates.
6 *
7 * This source code is licensed under the MIT license found in the
8 * LICENSE file in the root directory of this source tree.
9 */var TO;function lU(){if(TO)return tt;TO=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.iterator;function g(q){return q===null||typeof q!="object"?null:(q=p&&q[p]||q["@@iterator"],typeof q=="function"?q:null)}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,x={};function y(q,V,M){this.props=q,this.context=V,this.refs=x,this.updater=M||v}y.prototype.isReactComponent={},y.prototype.setState=function(q,V){if(typeof q!="object"&&typeof q!="function"&&q!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,q,V,"setState")},y.prototype.forceUpdate=function(q){this.updater.enqueueForceUpdate(this,q,"forceUpdate")};function w(){}w.prototype=y.prototype;function A(q,V,M){this.props=q,this.context=V,this.refs=x,this.updater=M||v}var _=A.prototype=new w;_.constructor=A,S(_,y.prototype),_.isPureReactComponent=!0;var j=Array.isArray,k=Object.prototype.hasOwnProperty,O={current:null},T={key:!0,ref:!0,__self:!0,__source:!0};function N(q,V,M){var re,ce={},oe=null,ae=null;if(V!=null)for(re in V.ref!==void 0&&(ae=V.ref),V.key!==void 0&&(oe=""+V.key),V)k.call(V,re)&&!T.hasOwnProperty(re)&&(ce[re]=V[re]);var pe=arguments.length-2;if(pe===1)ce.children=M;else if(1<pe){for(var te=Array(pe),xe=0;xe<pe;xe++)te[xe]=arguments[xe+2];ce.children=te}if(q&&q.defaultProps)for(re in pe=q.defaultProps,pe)ce[re]===void 0&&(ce[re]=pe[re]);return{$$typeof:e,type:q,key:oe,ref:ae,props:ce,_owner:O.current}}function I(q,V){return{$$typeof:e,type:q.type,key:V,ref:q.ref,props:q.props,_owner:q._owner}}function z(q){return typeof q=="object"&&q!==null&&q.$$typeof===e}function F(q){var V={"=":"=0",":":"=2"};return"$"+q.replace(/[=:]/g,function(M){return V[M]})}var D=/\/+/g;function L(q,V){return typeof q=="object"&&q!==null&&q.key!=null?F(""+q.key):V.toString(36)}function B(q,V,M,re,ce){var oe=typeof q;(oe==="undefined"||oe==="boolean")&&(q=null);var ae=!1;if(q===null)ae=!0;else switch(oe){case"string":case"number":ae=!0;break;case"object":switch(q.$$typeof){case e:case t:ae=!0}}if(ae)return ae=q,ce=ce(ae),q=re===""?"."+L(ae,0):re,j(ce)?(M="",q!=null&&(M=q.replace(D,"$&/")+"/"),B(ce,V,M,"",function(xe){return xe})):ce!=null&&(z(ce)&&(ce=I(ce,M+(!ce.key||ae&&ae.key===ce.key?"":(""+ce.key).replace(D,"$&/")+"/")+q)),V.push(ce)),1;if(ae=0,re=re===""?".":re+":",j(q))for(var pe=0;pe<q.length;
vendor: 10,794 bytes, lines 9-33
9pe++){oe=q[pe];var te=re+L(oe,pe);ae+=B(oe,V,M,te,ce)}else if(te=g(q),typeof te=="function")for(q=te.call(q),pe=0;!(oe=q.next()).done;)oe=oe.value,te=re+L(oe,pe++),ae+=B(oe,V,M,te,ce);else if(oe==="object")throw V=String(q),Error("Objects are not valid as a React child (found: "+(V==="[object Object]"?"object with keys {"+Object.keys(q).join(", ")+"}":V)+"). If you meant to render a collection of children, use an array instead.");return ae}function U(q,V,M){if(q==null)return q;var re=[],ce=0;return B(q,re,"","",function(oe){return V.call(M,oe,ce++)}),re}function G(q){if(q._status===-1){var V=q._result;V=V(),V.then(function(M){(q._status===0||q._status===-1)&&(q._status=1,q._result=M)},function(M){(q._status===0||q._status===-1)&&(q._status=2,q._result=M)}),q._status===-1&&(q._status=0,q._result=V)}if(q._status===1)return q._result.default;throw q._result}var Z={current:null},Y={transition:null},ee={ReactCurrentDispatcher:Z,ReactCurrentBatchConfig:Y,ReactCurrentOwner:O};function R(){throw Error("act(...) is not supported in production builds of React.")}return tt.Children={map:U,forEach:function(q,V,M){U(q,function(){V.apply(this,arguments)},M)},count:function(q){var V=0;return U(q,function(){V++}),V},toArray:function(q){return U(q,function(V){return V})||[]},only:function(q){if(!z(q))throw Error("React.Children.only expected to receive a single React element child.");return q}},tt.Component=y,tt.Fragment=n,tt.Profiler=i,tt.PureComponent=A,tt.StrictMode=r,tt.Suspense=c,tt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ee,tt.act=R,tt.cloneElement=function(q,V,M){if(q==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+q+".");var re=S({},q.props),ce=q.key,oe=q.ref,ae=q._owner;if(V!=null){if(V.ref!==void 0&&(oe=V.ref,ae=O.current),V.key!==void 0&&(ce=""+V.key),q.type&&q.type.defaultProps)var pe=q.type.defaultProps;for(te in V)k.call(V,te)&&!T.hasOwnProperty(te)&&(re[te]=V[te]===void 0&&pe!==void 0?pe[te]:V[te])}var te=arguments.length-2;if(te===1)re.children=M;else if(1<te){pe=Array(te);for(var xe=0;xe<te;xe++)pe[xe]=arguments[xe+2];re.children=pe}return{$$typeof:e,type:q.type,key:ce,ref:oe,props:re,_owner:ae}},tt.createContext=function(q){return q={$$typeof:a,_currentValue:q,_currentValue2:q,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},q.Provider={$$typeof:o,_context:q},q.Consumer=q},tt.createElement=N,tt.createFactory=function(q){var V=N.bind(null,q);return V.type=q,V},tt.createRef=function(){return{current:null}},tt.forwardRef=function(q){return{$$typeof:l,render:q}},tt.isValidElement=z,tt.lazy=function(q){return{$$typeof:f,_payload:{_status:-1,_result:q},_init:G}},tt.memo=function(q,V){return{$$typeof:d,type:q,compare:V===void 0?null:V}},tt.startTransition=function(q){var V=Y.transition;Y.transition={};try{q()}finally{Y.transition=V}},tt.unstable_act=R,tt.useCallback=function(q,V){return Z.current.useCallback(q,V)},tt.useContext=function(q){return Z.current.useContext(q)},tt.useDebugValue=function(){},tt.useDeferredValue=function(q){return Z.current.useDeferredValue(q)},tt.useEffect=function(q,V){return Z.current.useEffect(q,V)},tt.useId=function(){return Z.current.useId()},tt.useImperativeHandle=function(q,V,M){return Z.current.useImperativeHandle(q,V,M)},tt.useInsertionEffect=function(q,V){return Z.current.useInsertionEffect(q,V)},tt.useLayoutEffect=function(q,V){return Z.current.useLayoutEffect(q,V)},tt.useMemo=function(q,V){return Z.current.useMemo(q,V)},tt.useReducer=function(q,V,M){return Z.current.useReducer(q,V,M)},tt.useRef=function(q){return Z.current.useRef(q)},tt.useState=function(q){return Z.current.useState(q)},tt.useSyncExternalStore=function(q,V,M){return Z.current.useSyncExternalStore(q,V,M)},tt.useTransition=function(){return Z.current.useTransition()},tt.version="18.3.1",tt}var NO;function $S(){return NO||(NO=1,Uv.exports=lU()),Uv.exports}/**
10 * @license React
11 * react-jsx-runtime.production.min.js
12 *
13 * Copyright (c) Facebook, Inc. and its affiliates.
14 *
15 * This source code is licensed under the MIT license found in the
16 * LICENSE file in the root directory of this source tree.
17 */var RO;function uU(){if(RO)return Bu;RO=1;var e=$S(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function a(l,c,d){var f,p={},g=null,v=null;d!==void 0&&(g=""+d),c.key!==void 0&&(g=""+c.key),c.ref!==void 0&&(v=c.ref);for(f in c)r.call(c,f)&&!o.hasOwnProperty(f)&&(p[f]=c[f]);if(l&&l.defaultProps)for(f in c=l.defaultProps,c)p[f]===void 0&&(p[f]=c[f]);return{$$typeof:t,type:l,key:g,ref:v,props:p,_owner:i.current}}return Bu.Fragment=n,Bu.jsx=a,Bu.jsxs=a,Bu}var IO;function cU(){return IO||(IO=1,zv.exports=uU()),zv.exports}var h=cU(),P=$S();const W=lt(P),Jh=sU({__proto__:null,default:W},[P]);var Vf={},qv={exports:{}},Xn={},Hv={exports:{}},Wv={};/**
18 * @license React
19 * scheduler.production.min.js
20 *
21 * Copyright (c) Facebook, Inc. and its affiliates.
22 *
23 * This source code is licensed under the MIT license found in the
24 * LICENSE file in the root directory of this source tree.
25 */var $O;function dU(){return $O||($O=1,(function(e){function t(Y,ee){var R=Y.length;Y.push(ee);e:for(;0<R;){var q=R-1>>>1,V=Y[q];if(0<i(V,ee))Y[q]=ee,Y[R]=V,R=q;else break e}}function n(Y){return Y.length===0?null:Y[0]}function r(Y){if(Y.length===0)return null;var ee=Y[0],R=Y.pop();if(R!==ee){Y[0]=R;e:for(var q=0,V=Y.length,M=V>>>1;q<M;){var re=2*(q+1)-1,ce=Y[re],oe=re+1,ae=Y[oe];if(0>i(ce,R))oe<V&&0>i(ae,ce)?(Y[q]=ae,Y[oe]=R,q=oe):(Y[q]=ce,Y[re]=R,q=re);else if(oe<V&&0>i(ae,R))Y[q]=ae,Y[oe]=R,q=oe;else break e}}return ee}function i(Y,ee){var R=Y.sortIndex-ee.sortIndex;return R!==0?R:Y.id-ee.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var c=[],d=[],f=1,p=null,g=3,v=!1,S=!1,x=!1,y=typeof setTimeout=="function"?setTimeout:null,w=typeof clearTimeout=="function"?clearTimeout:null,A=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function _(Y){for(var ee=n(d);ee!==null;){if(ee.callback===null)r(d);else if(ee.startTime<=Y)r(d),ee.sortIndex=ee.expirationTime,t(c,ee);else break;ee=n(d)}}function j(Y){if(x=!1,_(Y),!S)if(n(c)!==null)S=!0,G(k);else{var ee=n(d);ee!==null&&Z(j,ee.startTime-Y)}}function k(Y,ee){S=!1,x&&(x=!1,w(N),N=-1),v=!0;var R=g;try{for(_(ee),p=n(c);p!==null&&(!(p.expirationTime>ee)||Y&&!F());){var q=p.callback;if(typeof q=="function"){p.callback=null,g=p.priorityLevel;var V=q(p.expirationTime<=ee);ee=e.unstable_now(),typeof V=="function"?p.callback=V:p===n(c)&&r(c),_(ee)}else r(c);p=n(c)}if(p!==null)var M=!0;else{var re=n(d);re!==null&&Z(j,re.startTime-ee),M=!1}return M}finally{p=null,g=R,v=!1}}var O=!1,T=null,N=-1,I=5,z=-1;function F(){return!(e.unstable_now()-z<I)}function D(){if(T!==null){var Y=e.unstable_now();z=Y;var ee=!0;try{ee=T(!0,Y)}finally{ee?L():(O=!1,T=null)}}else O=!1}var L;if(typeof A=="function")L=function(){A(D)};else if(typeof MessageChannel<"u"){var B=new MessageChannel,U=B.port2;B.port1.onmessage=D,L=function(){U.postMessage(null)}}else L=function(){y(D,0)};function G(Y){T=Y,O||(O=!0,L())}function Z(Y,ee){N=y(function(){Y(e.unstable_now())},ee)}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(Y){Y.callback=null},e.unstable_continueExecution=function(){S||v||(S=!0,G(k))},e.unstable_forceFrameRate=function(Y){0>Y||125<Y?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):I=0<Y?Math.floor(1e3/Y):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(Y){switch(g){case 1:case 2:case 3:var ee=3;break;default:ee=g}var R=g;g=ee;try{return Y()}finally{g=R}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(Y,ee){switch(Y){case 1:case 2:case 3:case 4:case 5:break;default:Y=3}var R=g;g=Y;try{return ee()}finally{g=R}},e.unstable_scheduleCallback=function(Y,ee,R){var q=e.unstable_now();switch(typeof R=="object"&&R!==null?(R=R.delay,R=typeof R=="number"&&0<R?q+R:q):R=q,Y){case 1:var V=-1;break;case 2:V=250;break;case 5:V=1073741823;break;case 4:V=1e4;break;default:V=5e3}return V=R+V,Y={id:f++,callback:ee,priorityLevel:Y,startTime:R,expirationTime:V,sortIndex:-1},R>q?(Y.sortIndex=R,t(d,Y),n(c)===null&&Y===n(d)&&(x?(w(N),N=-1):x=!0,Z(j,R-q))):(Y.sortIndex=V,t(c,Y),S||v||(S=!0,G(k))),Y},e.unstable_shouldYield=F,e.unstable_wrapCallback=function(Y){var ee=g;return function(){var R=g;g=ee;try{return Y.apply(this,arguments)}finally{g=R}}}})(Wv)),Wv}var MO;function fU(){return MO||(MO=1,Hv.exports=dU()),Hv.exports}/**
26 * @license React
27 * react-dom.production.min.js
28 *
29 * Copyright (c) Facebook, Inc. and its affiliates.
30 *
31 * This source code is licensed under the MIT license found in the
32 * LICENSE file in the root directory of this source tree.
33 */var DO;function pU(){if(DO)return Xn;DO=1;var e=$S(),t=fU();function n(s){for(var u="https://reactjs.org/docs/error-decoder.html?invariant="+s,m=1;m<arguments.length;m++)u+="&args[]="+encodeURIComponent(arguments[m]);return"Minified React error #"+s+"; visit "+u+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,i={};function o(s,u){a(s,u),a(s+"Capture",u)}function a(s,u){for(i[s]=u,s=0;s<u.length;s++)r.add(u[s])}var l=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),c=Object.prototype.hasOwnProperty,d=/^[: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]*$/,f={},p={};function g(s){return c.call(p,s)?!0:c.call(f,s)?!1:d.test(s)?p[s]=!0:(f[s]=!0,!1)}function v(s,u,m,b){if(m!==null&&m.type===0)return!1;switch(typeof u){case"function":case"symbol":return!0;case"boolean":return b?!1:m!==null?!m.acceptsBooleans:(s=s.toLowerCase().slice(0,5),s!=="data-"&&s!=="aria-");default:return!1}}function S(s,u,m,b){if(u===null||typeof u>"u"||v(s,u,m,b))return!0;
vendor: 46,397 bytes, lines 33-38
33if(b)return!1;if(m!==null)switch(m.type){case 3:return!u;case 4:return u===!1;case 5:return isNaN(u);case 6:return isNaN(u)||1>u}return!1}function x(s,u,m,b,E,C,$){this.acceptsBooleans=u===2||u===3||u===4,this.attributeName=b,this.attributeNamespace=E,this.mustUseProperty=m,this.propertyName=s,this.type=u,this.sanitizeURL=C,this.removeEmptyString=$}var y={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(s){y[s]=new x(s,0,!1,s,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(s){var u=s[0];y[u]=new x(u,1,!1,s[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(s){y[s]=new x(s,2,!1,s.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(s){y[s]=new x(s,2,!1,s,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(s){y[s]=new x(s,3,!1,s.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(s){y[s]=new x(s,3,!0,s,null,!1,!1)}),["capture","download"].forEach(function(s){y[s]=new x(s,4,!1,s,null,!1,!1)}),["cols","rows","size","span"].forEach(function(s){y[s]=new x(s,6,!1,s,null,!1,!1)}),["rowSpan","start"].forEach(function(s){y[s]=new x(s,5,!1,s.toLowerCase(),null,!1,!1)});var w=/[\-:]([a-z])/g;function A(s){return s[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(s){var u=s.replace(w,A);y[u]=new x(u,1,!1,s,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(s){var u=s.replace(w,A);y[u]=new x(u,1,!1,s,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(s){var u=s.replace(w,A);y[u]=new x(u,1,!1,s,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(s){y[s]=new x(s,1,!1,s.toLowerCase(),null,!1,!1)}),y.xlinkHref=new x("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(s){y[s]=new x(s,1,!1,s.toLowerCase(),null,!0,!0)});function _(s,u,m,b){var E=y.hasOwnProperty(u)?y[u]:null;(E!==null?E.type!==0:b||!(2<u.length)||u[0]!=="o"&&u[0]!=="O"||u[1]!=="n"&&u[1]!=="N")&&(S(u,m,E,b)&&(m=null),b||E===null?g(u)&&(m===null?s.removeAttribute(u):s.setAttribute(u,""+m)):E.mustUseProperty?s[E.propertyName]=m===null?E.type===3?!1:"":m:(u=E.attributeName,b=E.attributeNamespace,m===null?s.removeAttribute(u):(E=E.type,m=E===3||E===4&&m===!0?"":""+m,b?s.setAttributeNS(b,u,m):s.setAttribute(u,m))))}var j=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,k=Symbol.for("react.element"),O=Symbol.for("react.portal"),T=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),I=Symbol.for("react.profiler"),z=Symbol.for("react.provider"),F=Symbol.for("react.context"),D=Symbol.for("react.forward_ref"),L=Symbol.for("react.suspense"),B=Symbol.for("react.suspense_list"),U=Symbol.for("react.memo"),G=Symbol.for("react.lazy"),Z=Symbol.for("react.offscreen"),Y=Symbol.iterator;function ee(s){return s===null||typeof s!="object"?null:(s=Y&&s[Y]||s["@@iterator"],typeof s=="function"?s:null)}var R=Object.assign,q;function V(s){if(q===void 0)try{throw Error()}catch(m){var u=m.stack.trim().match(/\n( *(at )?)/);q=u&&u[1]||""}return`
34`+q+s}var M=!1;function re(s,u){if(!s||M)return"";M=!0;var m=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(u)if(u=function(){throw Error()},Object.defineProperty(u.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(u,[])}catch(ie){var b=ie}Reflect.construct(s,[],u)}else{try{u.call()}catch(ie){b=ie}s.call(u.prototype)}else{try{throw Error()}catch(ie){b=ie}s()}}catch(ie){if(ie&&b&&typeof ie.stack=="string"){for(var E=ie.stack.split(`
35`),C=b.stack.split(`
36`),$=E.length-1,H=C.length-1;1<=$&&0<=H&&E[$]!==C[H];)H--;for(;1<=$&&0<=H;$--,H--)if(E[$]!==C[H]){if($!==1||H!==1)do if($--,H--,0>H||E[$]!==C[H]){var K=`
37`+E[$].replace(" at new "," at ");return s.displayName&&K.includes("<anonymous>")&&(K=K.replace("<anonymous>",s.displayName)),K}while(1<=$&&0<=H);break}}}finally{M=!1,Error.prepareStackTrace=m}return(s=s?s.displayName||s.name:"")?V(s):""}function ce(s){switch(s.tag){case 5:return V(s.type);case 16:return V("Lazy");case 13:return V("Suspense");case 19:return V("SuspenseList");case 0:case 2:case 15:return s=re(s.type,!1),s;case 11:return s=re(s.type.render,!1),s;case 1:return s=re(s.type,!0),s;default:return""}}function oe(s){if(s==null)return null;if(typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case T:return"Fragment";case O:return"Portal";case I:return"Profiler";case N:return"StrictMode";case L:return"Suspense";case B:return"SuspenseList"}if(typeof s=="object")switch(s.$$typeof){case F:return(s.displayName||"Context")+".Consumer";case z:return(s._context.displayName||"Context")+".Provider";case D:var u=s.render;return s=s.displayName,s||(s=u.displayName||u.name||"",s=s!==""?"ForwardRef("+s+")":"ForwardRef"),s;case U:return u=s.displayName||null,u!==null?u:oe(s.type)||"Memo";case G:u=s._payload,s=s._init;try{return oe(s(u))}catch{}}return null}function ae(s){var u=s.type;switch(s.tag){case 24:return"Cache";case 9:return(u.displayName||"Context")+".Consumer";case 10:return(u._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return s=u.render,s=s.displayName||s.name||"",u.displayName||(s!==""?"ForwardRef("+s+")":"ForwardRef");case 7:return"Fragment";case 5:return u;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return oe(u);case 8:return u===N?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof u=="function")return u.displayName||u.name||null;if(typeof u=="string")return u}return null}function pe(s){switch(typeof s){case"boolean":case"number":case"string":case"undefined":return s;case"object":return s;default:return""}}function te(s){var u=s.type;return(s=s.nodeName)&&s.toLowerCase()==="input"&&(u==="checkbox"||u==="radio")}function xe(s){var u=te(s)?"checked":"value",m=Object.getOwnPropertyDescriptor(s.constructor.prototype,u),b=""+s[u];if(!s.hasOwnProperty(u)&&typeof m<"u"&&typeof m.get=="function"&&typeof m.set=="function"){var E=m.get,C=m.set;return Object.defineProperty(s,u,{configurable:!0,get:function(){return E.call(this)},set:function($){b=""+$,C.call(this,$)}}),Object.defineProperty(s,u,{enumerable:m.enumerable}),{getValue:function(){return b},setValue:function($){b=""+$},stopTracking:function(){s._valueTracker=null,delete s[u]}}}}function je(s){s._valueTracker||(s._valueTracker=xe(s))}function se(s){if(!s)return!1;var u=s._valueTracker;if(!u)return!0;var m=u.getValue(),b="";return s&&(b=te(s)?s.checked?"true":"false":s.value),s=b,s!==m?(u.setValue(s),!0):!1}function Qe(s){if(s=s||(typeof document<"u"?document:void 0),typeof s>"u")return null;try{return s.activeElement||s.body}catch{return s.body}}function ge(s,u){var m=u.checked;return R({},u,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:m??s._wrapperState.initialChecked})}function Ae(s,u){var m=u.defaultValue==null?"":u.defaultValue,b=u.checked!=null?u.checked:u.defaultChecked;m=pe(u.value!=null?u.value:m),s._wrapperState={initialChecked:b,initialValue:m,controlled:u.type==="checkbox"||u.type==="radio"?u.checked!=null:u.value!=null}}function _e(s,u){u=u.checked,u!=null&&_(s,"checked",u,!1)}function Fe(s,u){_e(s,u);var m=pe(u.value),b=u.type;if(m!=null)b==="number"?(m===0&&s.value===""||s.value!=m)&&(s.value=""+m):s.value!==""+m&&(s.value=""+m);else if(b==="submit"||b==="reset"){s.removeAttribute("value");return}u.hasOwnProperty("value")?Ce(s,u.type,m):u.hasOwnProperty("defaultValue")&&Ce(s,u.type,pe(u.defaultValue)),u.checked==null&&u.defaultChecked!=null&&(s.defaultChecked=!!u.defaultChecked)}function et(s,u,m){if(u.hasOwnProperty("value")||u.hasOwnProperty("defaultValue")){var b=u.type;if(!(b!=="submit"&&b!=="reset"||u.value!==void 0&&u.value!==null))return;u=""+s._wrapperState.initialValue,m||u===s.value||(s.value=u),s.defaultValue=u}m=s.name,m!==""&&(s.name=""),s.defaultChecked=!!s._wrapperState.initialChecked,m!==""&&(s.name=m)}function Ce(s,u,m){(u!=="number"||Qe(s.ownerDocument)!==s)&&(m==null?s.defaultValue=""+s._wrapperState.initialValue:s.defaultValue!==""+m&&(s.defaultValue=""+m))}var ze=Array.isArray;function Ke(s,u,m,b){if(s=s.options,u){u={};for(var E=0;E<m.length;E++)u["$"+m[E]]=!0;for(m=0;m<s.length;m++)E=u.hasOwnProperty("$"+s[m].value),s[m].selected!==E&&(s[m].selected=E),E&&b&&(s[m].defaultSelected=!0)}else{for(m=""+pe(m),u=null,E=0;E<s.length;E++){if(s[E].value===m){s[E].selected=!0,b&&(s[E].defaultSelected=!0);return}u!==null||s[E].disabled||(u=s[E])}u!==null&&(u.selected=!0)}}function Ze(s,u){if(u.dangerouslySetInnerHTML!=null)throw Error(n(91));return R({},u,{value:void 0,defaultValue:void 0,children:""+s._wrapperState.initialValue})}function Tt(s,u){var m=u.value;if(m==null){if(m=u.children,u=u.defaultValue,m!=null){if(u!=null)throw Error(n(92));if(ze(m)){if(1<m.length)throw Error(n(93));m=m[0]}u=m}u==null&&(u=""),m=u}s._wrapperState={initialValue:pe(m)}}function Bt(s,u){var m=pe(u.value),b=pe(u.defaultValue);m!=null&&(m=""+m,m!==s.value&&(s.value=m),u.defaultValue==null&&s.defaultValue!==m&&(s.defaultValue=m)),b!=null&&(s.defaultValue=""+b)}function En(s){var u=s.textContent;u===s._wrapperState.initialValue&&u!==""&&u!==null&&(s.value=u)}function le(s){switch(s){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ye(s,u){return s==null||s==="http://www.w3.org/1999/xhtml"?le(u):s==="http://www.w3.org/2000/svg"&&u==="foreignObject"?"http://www.w3.org/1999/xhtml":s}var Le,Ge=(function(s){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(u,m,b,E){MSApp.execUnsafeLocalFunction(function(){return s(u,m,b,E)})}:s})(function(s,u){if(s.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in s)s.innerHTML=u;else{for(Le=Le||document.createElement("div"),Le.innerHTML="<svg>"+u.valueOf().toString()+"</svg>",u=Le.firstChild;s.firstChild;)s.removeChild(s.firstChild);for(;u.firstChild;)s.appendChild(u.firstChild)}});function it(s,u){if(u){var m=s.firstChild;if(m&&m===s.lastChild&&m.nodeType===3){m.nodeValue=u;return}}s.textContent=u}var Jt={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Fr=["Webkit","ms","Moz","O"];Object.keys(Jt).forEach(function(s){Fr.forEach(function(u){u=u+s.charAt(0).toUpperCase()+s.substring(1),Jt[u]=Jt[s]})});function Vt(s,u,m){return u==null||typeof u=="boolean"||u===""?"":m||typeof u!="number"||u===0||Jt.hasOwnProperty(s)&&Jt[s]?(""+u).trim():u+"px"}function br(s,u){s=s.style;for(var m in u)if(u.hasOwnProperty(m)){var b=m.indexOf("--")===0,E=Vt(m,u[m],b);m==="float"&&(m="cssFloat"),b?s.setProperty(m,E):s[m]=E}}var ji=R({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function bn(s,u){if(u){if(ji[s]&&(u.children!=null||u.dangerouslySetInnerHTML!=null))throw Error(n(137,s));if(u.dangerouslySetInnerHTML!=null){if(u.children!=null)throw Error(n(60));if(typeof u.dangerouslySetInnerHTML!="object"||!("__html"in u.dangerouslySetInnerHTML))throw Error(n(61))}if(u.style!=null&&typeof u.style!="object")throw Error(n(62))}}function oi(s,u){if(s.indexOf("-")===-1)return typeof u.is=="string";switch(s){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 ar=null;function tg(s){return s=s.target||s.srcElement||window,s.correspondingUseElement&&(s=s.correspondingUseElement),s.nodeType===3?s.parentNode:s}var ng=null,cs=null,ds=null;function KA(s){if(s=Eu(s)){if(typeof ng!="function")throw Error(n(280));var u=s.stateNode;u&&(u=of(u),ng(s.stateNode,s.type,u))}}function GA(s){cs?ds?ds.push(s):ds=[s]:cs=s}function YA(){if(cs){var s=cs,u=ds;if(ds=cs=null,KA(s),u)for(s=0;s<u.length;s++)KA(u[s])}}function XA(s,u){return s(u)}function QA(){}var rg=!1;function ZA(s,u,m){if(rg)return s(u,m);rg=!0;try{return XA(s,u,m)}finally{rg=!1,(cs!==null||ds!==null)&&(QA(),YA())}}function iu(s,u){var m=s.stateNode;if(m===null)return null;var b=of(m);if(b===null)return null;m=b[u];e:switch(u){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(b=!b.disabled)||(s=s.type,b=!(s==="button"||s==="input"||s==="select"||s==="textarea")),s=!b;break e;default:s=!1}if(s)return null;if(m&&typeof m!="function")throw Error(n(231,u,typeof m));return m}var ig=!1;if(l)try{var ou={};Object.defineProperty(ou,"passive",{get:function(){ig=!0}}),window.addEventListener("test",ou,ou),window.removeEventListener("test",ou,ou)}catch{ig=!1}function d5(s,u,m,b,E,C,$,H,K){var ie=Array.prototype.slice.call(arguments,3);try{u.apply(m,ie)}catch(he){this.onError(he)}}var au=!1,Md=null,Dd=!1,og=null,f5={onError:function(s){au=!0,Md=s}};function p5(s,u,m,b,E,C,$,H,K){au=!1,Md=null,d5.apply(f5,arguments)}function h5(s,u,m,b,E,C,$,H,K){if(p5.apply(this,arguments),au){if(au){var ie=Md;au=!1,Md=null}else throw Error(n(198));Dd||(Dd=!0,og=ie)}}function ia(s){var u=s,m=s;if(s.alternate)for(;u.return;)u=u.return;else{s=u;do u=s,(u.flags&4098)!==0&&(m=u.return),s=u.return;while(s)}return u.tag===3?m:null}function JA(s){if(s.tag===13){var u=s.memoizedState;if(u===null&&(s=s.alternate,s!==null&&(u=s.memoizedState)),u!==null)return u.dehydrated}return null}function eE(s){if(ia(s)!==s)throw Error(n(188))}function m5(s){var u=s.alternate;if(!u){if(u=ia(s),u===null)throw Error(n(188));return u!==s?null:s}for(var m=s,b=u;;){var E=m.return;if(E===null)break;var C=E.alternate;if(C===null){if(b=E.return,b!==null){m=b;continue}break}if(E.child===C.child){for(C=E.child;C;){if(C===m)return eE(E),s;if(C===b)return eE(E),u;C=C.sibling}throw Error(n(188))}if(m.return!==b.return)m=E,b=C;else{for(var $=!1,H=E.child;H;){if(H===m){$=!0,m=E,b=C;break}if(H===b){$=!0,b=E,m=C;break}H=H.sibling}if(!$){for(H=C.child;H;){if(H===m){$=!0,m=C,b=E;break}if(H===b){$=!0,b=C,m=E;break}H=H.sibling}if(!$)throw Error(n(189))}}if(m.alternate!==b)throw Error(n(190))}if(m.tag!==3)throw Error(n(188));return m.stateNode.current===m?s:u}function tE(s){return s=m5(s),s!==null?nE(s):null}function nE(s){if(s.tag===5||s.tag===6)return s;for(s=s.child;s!==null;){var u=nE(s);if(u!==null)return u;s=s.sibling}return null}var rE=t.unstable_scheduleCallback,iE=t.unstable_cancelCallback,g5=t.unstable_shouldYield,v5=t.unstable_requestPaint,zt=t.unstable_now,y5=t.unstable_getCurrentPriorityLevel,ag=t.unstable_ImmediatePriority,oE=t.unstable_UserBlockingPriority,Ld=t.unstable_NormalPriority,b5=t.unstable_LowPriority,aE=t.unstable_IdlePriority,Fd=null,ai=null;function x5(s){if(ai&&typeof ai.onCommitFiberRoot=="function")try{ai.onCommitFiberRoot(Fd,s,void 0,(s.current.flags&128)===128)}catch{}}var Br=Math.clz32?Math.clz32:_5,w5=Math.log,S5=Math.LN2;function _5(s){return s>>>=0,s===0?32:31-(w5(s)/S5|0)|0}var Bd=64,zd=4194304;function su(s){switch(s&-s){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return s&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return s&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return s}}function Ud(s,u){var m=s.pendingLanes;if(m===0)return 0;var b=0,E=s.suspendedLanes,C=s.pingedLanes,$=m&268435455;if($!==0){var H=$&~E;H!==0?b=su(H):(C&=$,C!==0&&(b=su(C)))}else $=m&~E,$!==0?b=su($):C!==0&&(b=su(C));if(b===0)return 0;if(u!==0&&u!==b&&(u&E)===0&&(E=b&-b,C=u&-u,E>=C||E===16&&(C&4194240)!==0))return u;if((b&4)!==0&&(b|=m&16),u=s.entangledLanes,u!==0)for(s=s.entanglements,u&=b;0<u;)m=31-Br(u),E=1<<m,b|=s[m],u&=~E;return b}function A5(s,u){switch(s){case 1:case 2:case 4:return u+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return u+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function E5(s,u){for(var m=s.suspendedLanes,b=s.pingedLanes,E=s.expirationTimes,C=s.pendingLanes;0<C;){var $=31-Br(C),H=1<<$,K=E[$];K===-1?((H&m)===0||(H&b)!==0)&&(E[$]=A5(H,u)):K<=u&&(s.expiredLanes|=H),C&=~H}}function sg(s){return s=s.pendingLanes&-1073741825,s!==0?s:s&1073741824?1073741824:0}function sE(){var s=Bd;return Bd<<=1,(Bd&4194240)===0&&(Bd=64),s}function lg(s){for(var u=[],m=0;31>m;m++)u.push(s);return u}function lu(s,u,m){s.pendingLanes|=u,u!==536870912&&(s.suspendedLanes=0,s.pingedLanes=0),s=s.eventTimes,u=31-Br(u),s[u]=m}function k5(s,u){var m=s.pendingLanes&~u;s.pendingLanes=u,s.suspendedLanes=0,s.pingedLanes=0,s.expiredLanes&=u,s.mutableReadLanes&=u,s.entangledLanes&=u,u=s.entanglements;var b=s.eventTimes;for(s=s.expirationTimes;0<m;){var E=31-Br(m),C=1<<E;u[E]=0,b[E]=-1,s[E]=-1,m&=~C}}function ug(s,u){var m=s.entangledLanes|=u;for(s=s.entanglements;m;){var b=31-Br(m),E=1<<b;E&u|s[b]&u&&(s[b]|=u),m&=~E}}var mt=0;function lE(s){return s&=-s,1<s?4<s?(s&268435455)!==0?16:536870912:4:1}var uE,cg,cE,dE,fE,dg=!1,qd=[],uo=null,co=null,fo=null,uu=new Map,cu=new Map,po=[],O5="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function pE(s,u){switch(s){case"focusin":case"focusout":uo=null;break;case"dragenter":case"dragleave":co=null;break;case"mouseover":case"mouseout":fo=null;break;case"pointerover":case"pointerout":uu.delete(u.pointerId);break;case"gotpointercapture":case"lostpointercapture":cu.delete(u.pointerId)}}function du(s,u,m,b,E,C){return s===null||s.nativeEvent!==C?(s={blockedOn:u,domEventName:m,eventSystemFlags:b,nativeEvent:C,targetContainers:[E]},u!==null&&(u=Eu(u),u!==null&&cg(u)),s):(s.eventSystemFlags|=b,u=s.targetContainers,E!==null&&u.indexOf(E)===-1&&u.push(E),s)}function P5(s,u,m,b,E){switch(u){case"focusin":return uo=du(uo,s,u,m,b,E),!0;case"dragenter":return co=du(co,s,u,m,b,E),!0;case"mouseover":return fo=du(fo,s,u,m,b,E),!0;case"pointerover":var C=E.pointerId;return uu.set(C,du(uu.get(C)||null,s,u,m,b,E)),!0;case"gotpointercapture":return C=E.pointerId,cu.set(C,du(cu.get(C)||null,s,u,m,b,E)),!0}return!1}function hE(s){var u=oa(s.target);if(u!==null){var m=ia(u);if(m!==null){if(u=m.tag,u===13){if(u=JA(m),u!==null){s.blockedOn=u,fE(s.priority,function(){cE(m)});return}}else if(u===3&&m.stateNode.current.memoizedState.isDehydrated){s.blockedOn=m.tag===3?m.stateNode.containerInfo:null;return}}}s.blockedOn=null}function Hd(s){if(s.blockedOn!==null)return!1;for(var u=s.targetContainers;0<u.length;){var m=pg(s.domEventName,s.eventSystemFlags,u[0],s.nativeEvent);if(m===null){m=s.nativeEvent;var b=new m.constructor(m.type,m);ar=b,m.target.dispatchEvent(b),ar=null}else return u=Eu(m),u!==null&&cg(u),s.blockedOn=m,!1;u.shift()}return!0}function mE(s,u,m){Hd(s)&&m.delete(u)}function j5(){dg=!1,uo!==null&&Hd(uo)&&(uo=null),co!==null&&Hd(co)&&(co=null),fo!==null&&Hd(fo)&&(fo=null),uu.forEach(mE),cu.forEach(mE)}function fu(s,u){s.blockedOn===u&&(s.blockedOn=null,dg||(dg=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,j5)))}function pu(s){function u(E){return fu(E,s)}if(0<qd.length){fu(qd[0],s);for(var m=1;m<qd.length;m++){var b=qd[m];b.blockedOn===s&&(b.blockedOn=null)}}for(uo!==null&&fu(uo,s),co!==null&&fu(co,s),fo!==null&&fu(fo,s),uu.forEach(u),cu.forEach(u),m=0;m<po.length;m++)b=po[m],b.blockedOn===s&&(b.blockedOn=null);for(;0<po.length&&(m=po[0],m.blockedOn===null);)hE(m),m.blockedOn===null&&po.shift()}var fs=j.ReactCurrentBatchConfig,Wd=!0;function C5(s,u,m,b){var E=mt,C=fs.transition;fs.transition=null;try{mt=1,fg(s,u,m,b)}finally{mt=E,fs.transition=C}}function T5(s,u,m,b){var E=mt,C=fs.transition;fs.transition=null;try{mt=4,fg(s,u,m,b)}finally{mt=E,fs.transition=C}}function fg(s,u,m,b){if(Wd){var E=pg(s,u,m,b);if(E===null)Cg(s,u,b,Vd,m),pE(s,b);else if(P5(E,s,u,m,b))b.stopPropagation();else if(pE(s,b),u&4&&-1<O5.indexOf(s)){for(;E!==null;){var C=Eu(E);if(C!==null&&uE(C),C=pg(s,u,m,b),C===null&&Cg(s,u,b,Vd,m),C===E)break;E=C}E!==null&&b.stopPropagation()}else Cg(s,u,b,null,m)}}var Vd=null;function pg(s,u,m,b){if(Vd=null,s=tg(b),s=oa(s),s!==null)if(u=ia(s),u===null)s=null;else if(m=u.tag,m===13){if(s=JA(u),s!==null)return s;s=null}else if(m===3){if(u.stateNode.current.memoizedState.isDehydrated)return u.tag===3?u.stateNode.containerInfo:null;s=null}else u!==s&&(s=null);return Vd=s,null}function gE(s){switch(s){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"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(y5()){case ag:return 1;case oE:return 4;case Ld:case b5:return 16;case aE:return 536870912;default:return 16}default:return 16}}var ho=null,hg=null,Kd=null;function vE(){if(Kd)return Kd;var s,u=hg,m=u.length,b,E="value"in ho?ho.value:ho.textContent,C=E.length;for(s=0;s<m&&u[s]===E[s];s++);var $=m-s;for(b=1;b<=$&&u[m-b]===E[C-b];b++);return Kd=E.slice(s,1<b?1-b:void 0)}function Gd(s){var u=s.keyCode;return"charCode"in s?(s=s.charCode,s===0&&u===13&&(s=13)):s=u,s===10&&(s=13),32<=s||s===13?s:0}function Yd(){return!0}function yE(){return!1}function sr(s){function u(m,b,E,C,$){this._reactName=m,this._targetInst=E,this.type=b,this.nativeEvent=C,this.target=$,this.currentTarget=null;for(var H in s)s.hasOwnProperty(H)&&(m=s[H],this[H]=m?m(C):C[H]);return this.isDefaultPrevented=(C.defaultPrevented!=null?C.defaultPrevented:C.returnValue===!1)?Yd:yE,this.isPropagationStopped=yE,this}return R(u.prototype,{preventDefault:function(){this.defaultPrevented=!0;var m=this.nativeEvent;m&&(m.preventDefault?m.preventDefault():typeof m.returnValue!="unknown"&&(m.returnValue=!1),this.isDefaultPrevented=Yd)},stopPropagation:function(){var m=this.nativeEvent;m&&(m.stopPropagation?m.stopPropagation():typeof m.cancelBubble!="unknown"&&(m.cancelBubble=!0),this.isPropagationStopped=Yd)},persist:function(){},isPersistent:Yd}),u}var ps={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(s){return s.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},mg=sr(ps),hu=R({},ps,{view:0,detail:0}),N5=sr(hu),gg,vg,mu,Xd=R({},hu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:bg,button:0,buttons:0,relatedTarget:function(s){return s.relatedTarget===void 0?s.fromElement===s.srcElement?s.toElement:s.fromElement:s.relatedTarget},movementX:function(s){return"movementX"in s?s.movementX:(s!==mu&&(mu&&s.type==="mousemove"?(gg=s.screenX-mu.screenX,vg=s.screenY-mu.screenY):vg=gg=0,mu=s),gg)},movementY:function(s){return"movementY"in s?s.movementY:vg}}),bE=sr(Xd),R5=R({},Xd,{dataTransfer:0}),I5=sr(R5),$5=R({},hu,{relatedTarget:0}),yg=sr($5),M5=R({},ps,{animationName:0,elapsedTime:0,pseudoElement:0}),D5=sr(M5),L5=R({},ps,{clipboardData:function(s){return"clipboardData"in s?s.clipboardData:window.clipboardData}}),F5=sr(L5),B5=R({},ps,{data:0}),xE=sr(B5),z5={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},U5={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"},q5={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function H5(s){var u=this.nativeEvent;return u.getModifierState?u.getModifierState(s):(s=q5[s])?!!u[s]:!1}function bg(){return H5}var W5=R({},hu,{key:function(s){if(s.key){var u=z5[s.key]||s.key;if(u!=="Unidentified")return u}return s.type==="keypress"?(s=Gd(s),s===13?"Enter":String.fromCharCode(s)):s.type==="keydown"||s.type==="keyup"?U5[s.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:bg,charCode:function(s){return s.type==="keypress"?Gd(s):0},keyCode:function(s){return s.type==="keydown"||s.type==="keyup"?s.keyCode:0},which:function(s){return s.type==="keypress"?Gd(s):s.type==="keydown"||s.type==="keyup"?s.keyCode:0}}),V5=sr(W5),K5=R({},Xd,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),wE=sr(K5),G5=R({},hu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:bg}),Y5=sr(G5),X5=R({},ps,{propertyName:0,elapsedTime:0,pseudoElement:0}),Q5=sr(X5),Z5=R({},Xd,{deltaX:function(s){return"deltaX"in s?s.deltaX:"wheelDeltaX"in s?-s.wheelDeltaX:0},deltaY:function(s){return"deltaY"in s?s.deltaY:"wheelDeltaY"in s?-s.wheelDeltaY:"wheelDelta"in s?-s.wheelDelta:0},deltaZ:0,deltaMode:0}),J5=sr(Z5),e8=[9,13,27,32],xg=l&&"CompositionEvent"in window,gu=null;l&&"documentMode"in document&&(gu=document.documentMode);var t8=l&&"TextEvent"in window&&!gu,SE=l&&(!xg||gu&&8<gu&&11>=gu),_E=" ",AE=!1;function EE(s,u){switch(s){case"keyup":return e8.indexOf(u.keyCode)!==-1;case"keydown":return u.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function kE(s){return s=s.detail,typeof s=="object"&&"data"in s?s.data:null}var hs=!1;function n8(s,u){switch(s){case"compositionend":return kE(u);case"keypress":return u.which!==32?null:(AE=!0,_E);case"textInput":return s=u.data,s===_E&&AE?null:s;default:return null}}function r8(s,u){if(hs)return s==="compositionend"||!xg&&EE(s,u)?(s=vE(),Kd=hg=ho=null,hs=!1,s):null;switch(s){case"paste":return null;case"keypress":if(!(u.ctrlKey||u.altKey||u.metaKey)||u.ctrlKey&&u.altKey){if(u.char&&1<u.char.length)return u.char;if(u.which)return String.fromCharCode(u.which)}return null;case"compositionend":return SE&&u.locale!=="ko"?null:u.data;default:return null}}var i8={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 OE(s){var u=s&&s.nodeName&&s.nodeName.toLowerCase();return u==="input"?!!i8[s.type]:u==="textarea"}function PE(s,u,m,b){GA(b),u=tf(u,"onChange"),0<u.length&&(m=new mg("onChange","change",null,m,b),s.push({event:m,listeners:u}))}var vu=null,yu=null;function o8(s){VE(s,0)}function Qd(s){var u=bs(s);if(se(u))return s}function a8(s,u){if(s==="change")return u}var jE=!1;if(l){var wg;if(l){var Sg="oninput"in document;if(!Sg){var CE=document.createElement("div");CE.setAttribute("oninput","return;"),Sg=typeof CE.oninput=="function"}wg=Sg}else wg=!1;jE=wg&&(!document.documentMode||9<document.documentMode)}function TE(){vu&&(vu.detachEvent("onpropertychange",NE),yu=vu=null)}function NE(s){if(s.propertyName==="value"&&Qd(yu)){var u=[];PE(u,yu,s,tg(s)),ZA(o8,u)}}function s8(s,u,m){s==="focusin"?(TE(),vu=u,yu=m,vu.attachEvent("onpropertychange",NE)):s==="focusout"&&TE()}function l8(s){if(s==="selectionchange"||s==="keyup"||s==="keydown")return Qd(yu)}function u8(s,u){if(s==="click")return Qd(u)}function c8(s,u){if(s==="input"||s==="change")return Qd(u)}function d8(s,u){return s===u&&(s!==0||1/s===1/u)||s!==s&&u!==u}var zr=typeof Object.is=="function"?Object.is:d8;function bu(s,u){if(zr(s,u))return!0;if(typeof s!="object"||s===null||typeof u!="object"||u===null)return!1;var m=Object.keys(s),b=Object.keys(u);if(m.length!==b.length)return!1;for(b=0;b<m.length;b++){var E=m[b];if(!c.call(u,E)||!zr(s[E],u[E]))return!1}return!0}function RE(s){for(;s&&s.firstChild;)s=s.firstChild;return s}function IE(s,u){var m=RE(s);s=0;for(var b;m;){if(m.nodeType===3){if(b=s+m.textContent.length,s<=u&&b>=u)return{node:m,offset:u-s};s=b}e:{for(;m;){if(m.nextSibling){m=m.nextSibling;break e}m=m.parentNode}m=void 0}m=RE(m)}}function $E(s,u){return s&&u?s===u?!0:s&&s.nodeType===3?!1:u&&u.nodeType===3?$E(s,u.parentNode):"contains"in s?s.contains(u):s.compareDocumentPosition?!!(s.compareDocumentPosition(u)&16):!1:!1}function ME(){for(var s=window,u=Qe();u instanceof s.HTMLIFrameElement;){try{var m=typeof u.contentWindow.location.href=="string"}catch{m=!1}if(m)s=u.contentWindow;else break;u=Qe(s.document)}return u}function _g(s){var u=s&&s.nodeName&&s.nodeName.toLowerCase();return u&&(u==="input"&&(s.type==="text"||s.type==="search"||s.type==="tel"||s.type==="url"||s.type==="password")||u==="textarea"||s.contentEditable==="true")}function f8(s){var u=ME(),m=s.focusedElem,b=s.selectionRange;if(u!==m&&m&&m.ownerDocument&&$E(m.ownerDocument.documentElement,m)){if(b!==null&&_g(m)){if(u=b.start,s=b.end,s===void 0&&(s=u),"selectionStart"in m)m.selectionStart=u,m.selectionEnd=Math.min(s,m.value.length);else if(s=(u=m.ownerDocument||document)&&u.defaultView||window,s.getSelection){s=s.getSelection();var E=m.textContent.length,C=Math.min(b.start,E);b=b.end===void 0?C:Math.min(b.end,E),!s.extend&&C>b&&(E=b,b=C,C=E),E=IE(m,C);var $=IE(m,b);E&&$&&(s.rangeCount!==1||s.anchorNode!==E.node||s.anchorOffset!==E.offset||s.focusNode!==$.node||s.focusOffset!==$.offset)&&(u=u.createRange(),u.setStart(E.node,E.offset),s.removeAllRanges(),C>b?(s.addRange(u),s.extend($.node,$.offset)):(u.setEnd($.node,$.offset),s.addRange(u)))}}for(u=[],s=m;s=s.parentNode;)s.nodeType===1&&u.push({element:s,left:s.scrollLeft,top:s.scrollTop});for(typeof m.focus=="function"&&m.focus(),m=0;m<u.length;m++)s=u[m],s.element.scrollLeft=s.left,s.element.scrollTop=s.top}}var p8=l&&"documentMode"in document&&11>=document.documentMode,ms=null,Ag=null,xu=null,Eg=!1;function DE(s,u,m){var b=m.window===m?m.document:m.nodeType===9?m:m.ownerDocument;Eg||ms==null||ms!==Qe(b)||(b=ms,"selectionStart"in b&&_g(b)?b={start:b.selectionStart,end:b.selectionEnd}:(b=(b.ownerDocument&&b.ownerDocument.defaultView||window).getSelection(),b={anchorNode:b.anchorNode,anchorOffset:b.anchorOffset,focusNode:b.focusNode,focusOffset:b.focusOffset}),xu&&bu(xu,b)||(xu=b,b=tf(Ag,"onSelect"),0<b.length&&(u=new mg("onSelect","select",null,u,m),s.push({event:u,listeners:b}),u.target=ms)))}function Zd(s,u){var m={};return m[s.toLowerCase()]=u.toLowerCase(),m["Webkit"+s]="webkit"+u,m["Moz"+s]="moz"+u,m}var gs={animationend:Zd("Animation","AnimationEnd"),animationiteration:Zd("Animation","AnimationIteration"),animationstart:Zd("Animation","AnimationStart"),transitionend:Zd("Transition","TransitionEnd")},kg={},LE={};l&&(LE=document.createElement("div").style,"AnimationEvent"in window||(delete gs.animationend.animation,delete gs.animationiteration.animation,delete gs.animationstart.animation),"TransitionEvent"in window||delete gs.transitionend.transition);function Jd(s){if(kg[s])return kg[s];if(!gs[s])return s;var u=gs[s],m;for(m in u)if(u.hasOwnProperty(m)&&m in LE)return kg[s]=u[m];return s}var FE=Jd("animationend"),BE=Jd("animationiteration"),zE=Jd("animationstart"),UE=Jd("transitionend"),qE=new Map,HE="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function mo(s,u){qE.set(s,u),o(u,[s])}for(var Og=0;Og<HE.length;Og++){var Pg=HE[Og],h8=Pg.toLowerCase(),m8=Pg[0].toUpperCase()+Pg.slice(1);mo(h8,"on"+m8)}mo(FE,"onAnimationEnd"),mo(BE,"onAnimationIteration"),mo(zE,"onAnimationStart"),mo("dblclick","onDoubleClick"),mo("focusin","onFocus"),mo("focusout","onBlur"),mo(UE,"onTransitionEnd"),a("onMouseEnter",["mouseout","mouseover"]),a("onMouseLeave",["mouseout","mouseover"]),a("onPointerEnter",["pointerout","pointerover"]),a("onPointerLeave",["pointerout","pointerover"]),o("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),o("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),o("onBeforeInput",["compositionend","keypress","textInput","paste"]),o("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),o("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),o("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var wu="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(" "),g8=new Set("cancel close invalid load scroll toggle".split(" ").concat(wu));function WE(s,u,m){var b=s.type||"unknown-event";s.currentTarget=m,h5(b,u,void 0,s),s.currentTarget=null}function VE(s,u){u=(u&4)!==0;for(var m=0;m<s.length;m++){var b=s[m],E=b.event;b=b.listeners;e:{var C=void 0;if(u)for(var $=b.length-1;0<=$;$--){var H=b[$],K=H.instance,ie=H.currentTarget;if(H=H.listener,K!==C&&E.isPropagationStopped())break e;WE(E,H,ie),C=K}else for($=0;$<b.length;$++){if(H=b[$],K=H.instance,ie=H.currentTarget,H=H.listener,K!==C&&E.isPropagationStopped())break e;WE(E,H,ie),C=K}}}if(Dd)throw s=og,Dd=!1,og=null,s}function Ot(s,u){var m=u[Mg];m===void 0&&(m=u[Mg]=new Set);var b=s+"__bubble";m.has(b)||(KE(u,s,2,!1),m.add(b))}function jg(s,u,m){var b=0;u&&(b|=4),KE(m,s,b,u)}var ef="_reactListening"+Math.random().toString(36).slice(2);function Su(s){if(!s[ef]){s[ef]=!0,r.forEach(function(m){m!=="selectionchange"&&(g8.has(m)||jg(m,!1,s),jg(m,!0,s))});var u=s.nodeType===9?s:s.ownerDocument;u===null||u[ef]||(u[ef]=!0,jg("selectionchange",!1,u))}}function KE(s,u,m,b){switch(gE(u)){case 1:var E=C5;break;case 4:E=T5;break;default:E=fg}m=E.bind(null,u,m,s),E=void 0,!ig||u!=="touchstart"&&u!=="touchmove"&&u!=="wheel"||(E=!0),b?E!==void 0?s.addEventListener(u,m,{capture:!0,passive:E}):s.addEventListener(u,m,!0):E!==void 0?s.addEventListener(u,m,{passive:E}):s.addEventListener(u,m,!1)}function Cg(s,u,m,b,E){var C=b;if((u&1)===0&&(u&2)===0&&b!==null)e:for(;;){if(b===null)return;var $=b.tag;if($===3||$===4){var H=b.stateNode.containerInfo;if(H===E||H.nodeType===8&&H.parentNode===E)break;if($===4)for($=b.return;$!==null;){var K=$.tag;if((K===3||K===4)&&(K=$.stateNode.containerInfo,K===E||K.nodeType===8&&K.parentNode===E))return;$=$.return}for(;H!==null;){if($=oa(H),$===null)return;if(K=$.tag,K===5||K===6){b=C=$;continue e}H=H.parentNode}}b=b.return}ZA(function(){var ie=C,he=tg(m),me=[];e:{var fe=qE.get(s);if(fe!==void 0){var ke=mg,Te=s;switch(s){case"keypress":if(Gd(m)===0)break e;case"keydown":case"keyup":ke=V5;break;case"focusin":Te="focus",ke=yg;break;case"focusout":Te="blur",ke=yg;break;case"beforeblur":case"afterblur":ke=yg;break;case"click":if(m.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ke=bE;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ke=I5;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ke=Y5;break;case FE:case BE:case zE:ke=D5;break;case UE:ke=Q5;break;case"scroll":ke=N5;break;case"wheel":ke=J5;break;case"copy":case"cut":case"paste":ke=F5;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ke=wE}var Ie=(u&4)!==0,Ut=!Ie&&s==="scroll",J=Ie?fe!==null?fe+"Capture":null:fe;Ie=[];for(var X=ie,ne;X!==null;){ne=X;var we=ne.stateNode;if(ne.tag===5&&we!==null&&(ne=we,J!==null&&(we=iu(X,J),we!=null&&Ie.push(_u(X,we,ne)))),Ut)break;X=X.return}0<Ie.length&&(fe=new ke(fe,Te,null,m,he),me.push({event:fe,listeners:Ie}))}}if((u&7)===0){e:{if(fe=s==="mouseover"||s==="pointerover",ke=s==="mouseout"||s==="pointerout",fe&&m!==ar&&(Te=m.relatedTarget||m.fromElement)&&(oa(Te)||Te[Ci]))break e;if((ke||fe)&&(fe=he.window===he?he:(fe=he.ownerDocument)?fe.defaultView||fe.parentWindow:window,ke?(Te=m.relatedTarget||m.toElement,ke=ie,Te=Te?oa(Te):null,Te!==null&&(Ut=ia(Te),Te!==Ut||Te.tag!==5&&Te.tag!==6)&&(Te=null)):(ke=null,Te=ie),ke!==Te)){if(Ie=bE,we="onMouseLeave",J="onMouseEnter",X="mouse",(s==="pointerout"||s==="pointerover")&&(Ie=wE,we="onPointerLeave",J="onPointerEnter",X="pointer"),Ut=ke==null?fe:bs(ke),ne=Te==null?fe:bs(Te),fe=new Ie(we,X+"leave",ke,m,he),fe.target=Ut,fe.relatedTarget=ne,we=null,oa(he)===ie&&(Ie=new Ie(J,X+"enter",Te,m,he),Ie.target=ne,Ie.relatedTarget=Ut,we=Ie),Ut=we,ke&&Te)t:{for(Ie=ke,J=Te,X=0,ne=Ie;ne;ne=vs(ne))X++;for(ne=0,we=J;we;we=vs(we))ne++;for(;0<X-ne;)Ie=vs(Ie),X--;for(;0<ne-X;)J=vs(J),ne--;for(;X--;){if(Ie===J||J!==null&&Ie===J.alternate)break t;Ie=vs(Ie),J=vs(J)}Ie=null}else Ie=null;ke!==null&&GE(me,fe,ke,Ie,!1),Te!==null&&Ut!==null&&GE(me,Ut,Te,Ie,!0)}}e:{if(fe=ie?bs(ie):window,ke=fe.nodeName&&fe.nodeName.toLowerCase(),ke==="select"||ke==="input"&&fe.type==="file")var $e=a8;else if(OE(fe))if(jE)$e=c8;else{$e=l8;var Me=s8}else(ke=fe.nodeName)&&ke.toLowerCase()==="input"&&(fe.type==="checkbox"||fe.type==="radio")&&($e=u8);if($e&&($e=$e(s,ie))){PE(me,$e,m,he);break e}Me&&Me(s,fe,ie),s==="focusout"&&(Me=fe._wrapperState)&&Me.controlled&&fe.type==="number"&&Ce(fe,"number",fe.value)}switch(Me=ie?bs(ie):window,s){case"focusin":(OE(Me)||Me.contentEditable==="true")&&(ms=Me,Ag=ie,xu=null);break;case"focusout":xu=Ag=ms=null;break;case"mousedown":Eg=!0;break;case"contextmenu":case"mouseup":case"dragend":Eg=!1,DE(me,m,he);break;case"selectionchange":if(p8)break;case"keydown":case"keyup":DE(me,m,he)}var De;if(xg)e:{switch(s){case"compositionstart":var qe="onCompositionStart";break e;case"compositionend":qe="onCompositionEnd";break e;case"compositionupdate":qe="onCompositionUpdate";break e}qe=void 0}else hs?EE(s,m)&&(qe="onCompositionEnd"):s==="keydown"&&m.keyCode===229&&(qe="onCompositionStart");qe&&(SE&&m.locale!=="ko"&&(hs||qe!=="onCompositionStart"?qe==="onCompositionEnd"&&hs&&(De=vE()):(ho=he,hg="value"in ho?ho.value:ho.textContent,hs=!0)),Me=tf(ie,qe),0<Me.length&&(qe=new xE(qe,s,null,m,he),me.push({event:qe,listeners:Me}),De?qe.data=De:(De=kE(m),De!==null&&(qe.data=De)))),(De=t8?n8(s,m):r8(s,m))&&(ie=tf(ie,"onBeforeInput"),0<ie.length&&(he=new xE("onBeforeInput","beforeinput",null,m,he),me.push({event:he,listeners:ie}),he.data=De))}VE(me,u)})}function _u(s,u,m){return{instance:s,listener:u,currentTarget:m}}function tf(s,u){for(var m=u+"Capture",b=[];s!==null;){var E=s,C=E.stateNode;E.tag===5&&C!==null&&(E=C,C=iu(s,m),C!=null&&b.unshift(_u(s,C,E)),C=iu(s,u),C!=null&&b.push(_u(s,C,E))),s=s.return}return b}function vs(s){if(s===null)return null;do s=s.return;while(s&&s.tag!==5);return s||null}function GE(s,u,m,b,E){for(var C=u._reactName,$=[];m!==null&&m!==b;){var H=m,K=H.alternate,ie=H.stateNode;if(K!==null&&K===b)break;H.tag===5&&ie!==null&&(H=ie,E?(K=iu(m,C),K!=null&&$.unshift(_u(m,K,H))):E||(K=iu(m,C),K!=null&&$.push(_u(m,K,H)))),m=m.return}$.length!==0&&s.push({event:u,listeners:$})}var v8=/\r\n?/g,y8=/\u0000|\uFFFD/g;function YE(s){return(typeof s=="string"?s:""+s).replace(v8,`
38`).replace(y8,"")}function nf(s,u,m){if(u=YE(u),YE(s)!==u&&m)throw Error(n(425))}function rf(){}var Tg=null,Ng=null;function Rg(s,u){return s==="textarea"||s==="noscript"||typeof u.children=="string"||typeof u.children=="number"||typeof u.dangerouslySetInnerHTML=="object"&&u.dangerouslySetInnerHTML!==null&&u.dangerouslySetInnerHTML.__html!=null}var Ig=typeof setTimeout=="function"?setTimeout:void 0,b8=typeof clearTimeout=="function"?clearTimeout:void 0,XE=typeof Promise=="function"?Promise:void 0,x8=typeof queueMicrotask=="function"?queueMicrotask:typeof XE<"u"?function(s){return XE.resolve(null).then(s).catch(w8)}:Ig;function w8(s){setTimeout(function(){throw s})}function $g(s,u){var m=u,b=0;do{var E=m.nextSibling;if(s.removeChild(m),E&&E.nodeType===8)if(m=E.data,m==="/$"){if(b===0){s.removeChild(E),pu(u);return}b--}else m!=="$"&&m!=="$?"&&m!=="$!"||b++;m=E}while(m);pu(u)}function go(s){for(;s!=null;s=s.nextSibling){var u=s.nodeType;if(u===1||u===3)break;if(u===8){if(u=s.data,u==="$"||u==="$!"||u==="$?")break;if(u==="/$")return null}}return s}function QE(s){s=s.previousSibling;for(var u=0;s;){if(s.nodeType===8){var m=s.data;if(m==="$"||m==="$!"||m==="$?"){if(u===0)return s;u--}else m==="/$"&&u++}s=s.previousSibling}return null}var ys=Math.random().toString(36).slice(2),si="__reactFiber$"+ys,Au="__reactProps$"+ys,Ci="__reactContainer$"+ys,Mg="__reactEvents$"+ys,S8="__reactListeners$"+ys,_8="__reactHandles$"+ys;function oa(s){var u=s[si];if(u)return u;for(var m=s.parentNode;m;){if(u=m[Ci]||m[si]){if(m=u.alternate,u.child!==null||m!==null&&m.child!==null)for(s=QE(s);s!==null;){if(m=s[si])return m;s=QE(s)}return u}s=m,m=s.parentNode}return null}function Eu(s){return s=s[si]||s[Ci],!s||s.tag!==5&&s.tag!==6&&s.tag!==13&&s.tag!==3?null:s}function bs(s){if(s.tag===5||s.tag===6)return s.stateNode;throw Error(n(33))}function of(s){return s[Au]||null}var Dg=[],xs=-1;function vo(s){return{current:s}}function Pt(s){0>xs||(s.current=Dg[xs],Dg[xs]=null,xs--)}function xt(s,u){xs++,Dg[xs]=s.current,s.current=u}var yo={},kn=vo(yo),Wn=vo(!1),aa=yo;function ws(s,u){var m=s.type.contextTypes;if(!m)return yo;var b=s.stateNode;if(b&&b.__reactInternalMemoizedUnmaskedChildContext===u)return b.__reactInternalMemoizedMaskedChildContext;var E={},C;for(C in m)E[C]=u[C];return b&&(s=s.stateNode,s.__reactInternalMemoizedUnmaskedChildContext=u,s.__reactInternalMemoizedMaskedChildContext=E),E}function Vn(s){return s=s.childContextTypes,s!=null}function af(){Pt(Wn),Pt(kn)}function ZE(s,u,m){if(kn.current!==yo)throw Error(n(168));xt(kn,u),xt(Wn,m)}function JE(s,u,m){var b=s.stateNode;if(u=u.childContextTypes,typeof b.getChildContext!="function")return m;b=b.getChildContext();for(var E in b)if(!(E in u))throw Error(n(108,ae(s)||"Unknown",E));return R({},m,b)}function sf(s){return s=(s=s.stateNode)&&s.__reactInternalMemoizedMergedChildContext||yo,aa=kn.current,xt(kn,s),xt(Wn,Wn.current),!0}function ek(s,u,m){var b=s.stateNode;if(!b)throw Error(n(169));m?(s=JE(s,u,aa),b.__reactInternalMemoizedMergedChildContext=s,Pt(Wn),Pt(kn),xt(kn,s)):Pt(Wn),xt(Wn,m)}var Ti=null,lf=!1,Lg=!1;function tk(s){Ti===null?Ti=[s]:Ti.push(s)}function A8(s){lf=!0,tk(s)}function bo(){if(!Lg&&Ti!==null){Lg=!0;var s=0,u=mt;try{var m=Ti;for(mt=1;
vendor: 5,924 bytes, line 38
38s<m.length;s++){var b=m[s];do b=b(!0);while(b!==null)}Ti=null,lf=!1}catch(E){throw Ti!==null&&(Ti=Ti.slice(s+1)),rE(ag,bo),E}finally{mt=u,Lg=!1}}return null}var Ss=[],_s=0,uf=null,cf=0,xr=[],wr=0,sa=null,Ni=1,Ri="";function la(s,u){Ss[_s++]=cf,Ss[_s++]=uf,uf=s,cf=u}function nk(s,u,m){xr[wr++]=Ni,xr[wr++]=Ri,xr[wr++]=sa,sa=s;var b=Ni;s=Ri;var E=32-Br(b)-1;b&=~(1<<E),m+=1;var C=32-Br(u)+E;if(30<C){var $=E-E%5;C=(b&(1<<$)-1).toString(32),b>>=$,E-=$,Ni=1<<32-Br(u)+E|m<<E|b,Ri=C+s}else Ni=1<<C|m<<E|b,Ri=s}function Fg(s){s.return!==null&&(la(s,1),nk(s,1,0))}function Bg(s){for(;s===uf;)uf=Ss[--_s],Ss[_s]=null,cf=Ss[--_s],Ss[_s]=null;for(;s===sa;)sa=xr[--wr],xr[wr]=null,Ri=xr[--wr],xr[wr]=null,Ni=xr[--wr],xr[wr]=null}var lr=null,ur=null,Nt=!1,Ur=null;function rk(s,u){var m=Er(5,null,null,0);m.elementType="DELETED",m.stateNode=u,m.return=s,u=s.deletions,u===null?(s.deletions=[m],s.flags|=16):u.push(m)}function ik(s,u){switch(s.tag){case 5:var m=s.type;return u=u.nodeType!==1||m.toLowerCase()!==u.nodeName.toLowerCase()?null:u,u!==null?(s.stateNode=u,lr=s,ur=go(u.firstChild),!0):!1;case 6:return u=s.pendingProps===""||u.nodeType!==3?null:u,u!==null?(s.stateNode=u,lr=s,ur=null,!0):!1;case 13:return u=u.nodeType!==8?null:u,u!==null?(m=sa!==null?{id:Ni,overflow:Ri}:null,s.memoizedState={dehydrated:u,treeContext:m,retryLane:1073741824},m=Er(18,null,null,0),m.stateNode=u,m.return=s,s.child=m,lr=s,ur=null,!0):!1;default:return!1}}function zg(s){return(s.mode&1)!==0&&(s.flags&128)===0}function Ug(s){if(Nt){var u=ur;if(u){var m=u;if(!ik(s,u)){if(zg(s))throw Error(n(418));u=go(m.nextSibling);var b=lr;u&&ik(s,u)?rk(b,m):(s.flags=s.flags&-4097|2,Nt=!1,lr=s)}}else{if(zg(s))throw Error(n(418));s.flags=s.flags&-4097|2,Nt=!1,lr=s}}}function ok(s){for(s=s.return;s!==null&&s.tag!==5&&s.tag!==3&&s.tag!==13;)s=s.return;lr=s}function df(s){if(s!==lr)return!1;if(!Nt)return ok(s),Nt=!0,!1;var u;if((u=s.tag!==3)&&!(u=s.tag!==5)&&(u=s.type,u=u!=="head"&&u!=="body"&&!Rg(s.type,s.memoizedProps)),u&&(u=ur)){if(zg(s))throw ak(),Error(n(418));for(;u;)rk(s,u),u=go(u.nextSibling)}if(ok(s),s.tag===13){if(s=s.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(n(317));e:{for(s=s.nextSibling,u=0;s;){if(s.nodeType===8){var m=s.data;if(m==="/$"){if(u===0){ur=go(s.nextSibling);break e}u--}else m!=="$"&&m!=="$!"&&m!=="$?"||u++}s=s.nextSibling}ur=null}}else ur=lr?go(s.stateNode.nextSibling):null;return!0}function ak(){for(var s=ur;s;)s=go(s.nextSibling)}function As(){ur=lr=null,Nt=!1}function qg(s){Ur===null?Ur=[s]:Ur.push(s)}var E8=j.ReactCurrentBatchConfig;function ku(s,u,m){if(s=m.ref,s!==null&&typeof s!="function"&&typeof s!="object"){if(m._owner){if(m=m._owner,m){if(m.tag!==1)throw Error(n(309));var b=m.stateNode}if(!b)throw Error(n(147,s));var E=b,C=""+s;return u!==null&&u.ref!==null&&typeof u.ref=="function"&&u.ref._stringRef===C?u.ref:(u=function($){var H=E.refs;$===null?delete H[C]:H[C]=$},u._stringRef=C,u)}if(typeof s!="string")throw Error(n(284));if(!m._owner)throw Error(n(290,s))}return s}function ff(s,u){throw s=Object.prototype.toString.call(u),Error(n(31,s==="[object Object]"?"object with keys {"+Object.keys(u).join(", ")+"}":s))}function sk(s){var u=s._init;return u(s._payload)}function lk(s){function u(J,X){if(s){var ne=J.deletions;ne===null?(J.deletions=[X],J.flags|=16):ne.push(X)}}function m(J,X){if(!s)return null;for(;X!==null;)u(J,X),X=X.sibling;return null}function b(J,X){for(J=new Map;X!==null;)X.key!==null?J.set(X.key,X):J.set(X.index,X),X=X.sibling;return J}function E(J,X){return J=Oo(J,X),J.index=0,J.sibling=null,J}function C(J,X,ne){return J.index=ne,s?(ne=J.alternate,ne!==null?(ne=ne.index,ne<X?(J.flags|=2,X):ne):(J.flags|=2,X)):(J.flags|=1048576,X)}function $(J){return s&&J.alternate===null&&(J.flags|=2),J}function H(J,X,ne,we){return X===null||X.tag!==6?(X=Iv(ne,J.mode,we),X.return=J,X):(X=E(X,ne),X.return=J,X)}function K(J,X,ne,we){var $e=ne.type;return $e===T?he(J,X,ne.props.children,we,ne.key):X!==null&&(X.elementType===$e||typeof $e=="object"&&$e!==null&&$e.$$typeof===G&&sk($e)===X.type)?(we=E(X,ne.props),we.ref=ku(J,X,ne),we.return=J,we):(we=Mf(ne.type,ne.key,ne.props,null,J.mode,we),we.ref=ku(J,X,ne),we.return=J,we)}function ie(J,X,ne,we){return X===null||X.tag!==4||X.stateNode.containerInfo!==ne.containerInfo||X.stateNode.implementation!==ne.implementation?(X=$v(ne,J.mode,we),X.return=J,X):(X=E(X,ne.children||[]),X.return=J,X)}function he(J,X,ne,we,$e){return X===null||X.tag!==7?(X=ga(ne,J.mode,we,$e),X.return=J,X):(X=E(X,ne),X.return=J,X)}function me(J,X,ne){if(typeof X=="string"&&X!==""||typeof X=="number")return X=Iv(""+X,J.mode,ne),X.return=J,X;if(typeof X=="object"&&X!==null){switch(X.$$typeof){case k:return ne=Mf(X.type,X.key,X.props,null,J.mode,ne),ne.ref=ku(J,null,X),ne.return=J,ne;case O:return X=$v(X,J.mode,ne),X.return=J,X;case G:var we=X._init;return me(J,we(X._payload),ne)}if(ze(X)||ee(X))return X=ga(X,J.mode,ne,null),X.return=J,X;ff(J,X)}return null}function fe(J,X,ne,we){var $e=X!==null?X.key:null;if(typeof ne=="string"&&ne!==""||typeof ne=="number")return $e!==null?null:H(J,X,""+ne,we);if(typeof ne=="object"&&ne!==null){switch(ne.$$typeof){case k:return ne.key===$e?K(J,X,ne,we):null;case O:return ne.key===$e?ie(J,X,ne,we):null;case G:return $e=ne._init,fe(J,X,$e(ne._payload),we)}if(ze(ne)||ee(ne))return $e!==null?null:he(J,X,ne,we,null);ff(J,ne)}return null}function ke(J,X,ne,we,$e){if(typeof we=="string"&&we!==""||typeof we=="number")return J=J.get(ne)||null,H(X,J,""+we,$e);if(typeof we=="object"&&we!==null){switch(we.$$typeof){case k:return J=J.get(we.key===null?ne:we.key)||null,K(X,J,we,$e);case O:return J=J.get(we.key===null?ne:we.key)||null,ie(X,J,we,$e);case G:var Me=we._init;return ke(J,X,ne,Me(we._payload),$e)}if(ze(we)||ee(we))return J=J.get(ne)||null,he(X,J,we,$e,null);ff(X,we)}return null}function Te(J,X,ne,we){for(var $e=null,Me=null,De=X,qe=X=0,dn=null;De!==null&&qe<ne.length;qe++){De.index>
vendor: 13,020 bytes, line 38
38qe?(dn=De,De=null):dn=De.sibling;var ut=fe(J,De,ne[qe],we);if(ut===null){De===null&&(De=dn);break}s&&De&&ut.alternate===null&&u(J,De),X=C(ut,X,qe),Me===null?$e=ut:Me.sibling=ut,Me=ut,De=dn}if(qe===ne.length)return m(J,De),Nt&&la(J,qe),$e;if(De===null){for(;qe<ne.length;qe++)De=me(J,ne[qe],we),De!==null&&(X=C(De,X,qe),Me===null?$e=De:Me.sibling=De,Me=De);return Nt&&la(J,qe),$e}for(De=b(J,De);qe<ne.length;qe++)dn=ke(De,J,qe,ne[qe],we),dn!==null&&(s&&dn.alternate!==null&&De.delete(dn.key===null?qe:dn.key),X=C(dn,X,qe),Me===null?$e=dn:Me.sibling=dn,Me=dn);return s&&De.forEach(function(Po){return u(J,Po)}),Nt&&la(J,qe),$e}function Ie(J,X,ne,we){var $e=ee(ne);if(typeof $e!="function")throw Error(n(150));if(ne=$e.call(ne),ne==null)throw Error(n(151));for(var Me=$e=null,De=X,qe=X=0,dn=null,ut=ne.next();De!==null&&!ut.done;qe++,ut=ne.next()){De.index>qe?(dn=De,De=null):dn=De.sibling;var Po=fe(J,De,ut.value,we);if(Po===null){De===null&&(De=dn);break}s&&De&&Po.alternate===null&&u(J,De),X=C(Po,X,qe),Me===null?$e=Po:Me.sibling=Po,Me=Po,De=dn}if(ut.done)return m(J,De),Nt&&la(J,qe),$e;if(De===null){for(;!ut.done;qe++,ut=ne.next())ut=me(J,ut.value,we),ut!==null&&(X=C(ut,X,qe),Me===null?$e=ut:Me.sibling=ut,Me=ut);return Nt&&la(J,qe),$e}for(De=b(J,De);!ut.done;qe++,ut=ne.next())ut=ke(De,J,qe,ut.value,we),ut!==null&&(s&&ut.alternate!==null&&De.delete(ut.key===null?qe:ut.key),X=C(ut,X,qe),Me===null?$e=ut:Me.sibling=ut,Me=ut);return s&&De.forEach(function(iU){return u(J,iU)}),Nt&&la(J,qe),$e}function Ut(J,X,ne,we){if(typeof ne=="object"&&ne!==null&&ne.type===T&&ne.key===null&&(ne=ne.props.children),typeof ne=="object"&&ne!==null){switch(ne.$$typeof){case k:e:{for(var $e=ne.key,Me=X;Me!==null;){if(Me.key===$e){if($e=ne.type,$e===T){if(Me.tag===7){m(J,Me.sibling),X=E(Me,ne.props.children),X.return=J,J=X;break e}}else if(Me.elementType===$e||typeof $e=="object"&&$e!==null&&$e.$$typeof===G&&sk($e)===Me.type){m(J,Me.sibling),X=E(Me,ne.props),X.ref=ku(J,Me,ne),X.return=J,J=X;break e}m(J,Me);break}else u(J,Me);Me=Me.sibling}ne.type===T?(X=ga(ne.props.children,J.mode,we,ne.key),X.return=J,J=X):(we=Mf(ne.type,ne.key,ne.props,null,J.mode,we),we.ref=ku(J,X,ne),we.return=J,J=we)}return $(J);case O:e:{for(Me=ne.key;X!==null;){if(X.key===Me)if(X.tag===4&&X.stateNode.containerInfo===ne.containerInfo&&X.stateNode.implementation===ne.implementation){m(J,X.sibling),X=E(X,ne.children||[]),X.return=J,J=X;break e}else{m(J,X);break}else u(J,X);X=X.sibling}X=$v(ne,J.mode,we),X.return=J,J=X}return $(J);case G:return Me=ne._init,Ut(J,X,Me(ne._payload),we)}if(ze(ne))return Te(J,X,ne,we);if(ee(ne))return Ie(J,X,ne,we);ff(J,ne)}return typeof ne=="string"&&ne!==""||typeof ne=="number"?(ne=""+ne,X!==null&&X.tag===6?(m(J,X.sibling),X=E(X,ne),X.return=J,J=X):(m(J,X),X=Iv(ne,J.mode,we),X.return=J,J=X),$(J)):m(J,X)}return Ut}var Es=lk(!0),uk=lk(!1),pf=vo(null),hf=null,ks=null,Hg=null;function Wg(){Hg=ks=hf=null}function Vg(s){var u=pf.current;Pt(pf),s._currentValue=u}function Kg(s,u,m){for(;s!==null;){var b=s.alternate;if((s.childLanes&u)!==u?(s.childLanes|=u,b!==null&&(b.childLanes|=u)):b!==null&&(b.childLanes&u)!==u&&(b.childLanes|=u),s===m)break;s=s.return}}function Os(s,u){hf=s,Hg=ks=null,s=s.dependencies,s!==null&&s.firstContext!==null&&((s.lanes&u)!==0&&(Kn=!0),s.firstContext=null)}function Sr(s){var u=s._currentValue;if(Hg!==s)if(s={context:s,memoizedValue:u,next:null},ks===null){if(hf===null)throw Error(n(308));ks=s,hf.dependencies={lanes:0,firstContext:s}}else ks=ks.next=s;return u}var ua=null;function Gg(s){ua===null?ua=[s]:ua.push(s)}function ck(s,u,m,b){var E=u.interleaved;return E===null?(m.next=m,Gg(u)):(m.next=E.next,E.next=m),u.interleaved=m,Ii(s,b)}function Ii(s,u){s.lanes|=u;var m=s.alternate;for(m!==null&&(m.lanes|=u),m=s,s=s.return;s!==null;)s.childLanes|=u,m=s.alternate,m!==null&&(m.childLanes|=u),m=s,s=s.return;return m.tag===3?m.stateNode:null}var xo=!1;function Yg(s){s.updateQueue={baseState:s.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function dk(s,u){s=s.updateQueue,u.updateQueue===s&&(u.updateQueue={baseState:s.baseState,firstBaseUpdate:s.firstBaseUpdate,lastBaseUpdate:s.lastBaseUpdate,shared:s.shared,effects:s.effects})}function $i(s,u){return{eventTime:s,lane:u,tag:0,payload:null,callback:null,next:null}}function wo(s,u,m){var b=s.updateQueue;if(b===null)return null;if(b=b.shared,(st&2)!==0){var E=b.pending;return E===null?u.next=u:(u.next=E.next,E.next=u),b.pending=u,Ii(s,m)}return E=b.interleaved,E===null?(u.next=u,Gg(b)):(u.next=E.next,E.next=u),b.interleaved=u,Ii(s,m)}function mf(s,u,m){if(u=u.updateQueue,u!==null&&(u=u.shared,(m&4194240)!==0)){var b=u.lanes;b&=s.pendingLanes,m|=b,u.lanes=m,ug(s,m)}}function fk(s,u){var m=s.updateQueue,b=s.alternate;if(b!==null&&(b=b.updateQueue,m===b)){var E=null,C=null;if(m=m.firstBaseUpdate,m!==null){do{var $={eventTime:m.eventTime,lane:m.lane,tag:m.tag,payload:m.payload,callback:m.callback,next:null};C===null?E=C=$:C=C.next=$,m=m.next}while(m!==null);C===null?E=C=u:C=C.next=u}else E=C=u;m={baseState:b.baseState,firstBaseUpdate:E,lastBaseUpdate:C,shared:b.shared,effects:b.effects},s.updateQueue=m;return}s=m.lastBaseUpdate,s===null?m.firstBaseUpdate=u:s.next=u,m.lastBaseUpdate=u}function gf(s,u,m,b){var E=s.updateQueue;xo=!1;var C=E.firstBaseUpdate,$=E.lastBaseUpdate,H=E.shared.pending;if(H!==null){E.shared.pending=null;var K=H,ie=K.next;K.next=null,$===null?C=ie:$.next=ie,$=K;var he=s.alternate;he!==null&&(he=he.updateQueue,H=he.lastBaseUpdate,H!==$&&(H===null?he.firstBaseUpdate=ie:H.next=ie,he.lastBaseUpdate=K))}if(C!==null){var me=E.baseState;$=0,he=ie=K=null,H=C;do{var fe=H.lane,ke=H.eventTime;if((b&fe)===fe){he!==null&&(he=he.next={eventTime:ke,lane:0,tag:H.tag,payload:H.payload,callback:H.callback,next:null});e:{var Te=s,Ie=H;switch(fe=u,ke=m,Ie.tag){case 1:if(Te=Ie.payload,typeof Te=="function"){me=Te.call(ke,me,fe);break e}me=Te;break e;case 3:Te.flags=Te.flags&-65537|128;case 0:if(Te=Ie.payload,fe=typeof Te=="function"?Te.call(ke,me,fe):Te,fe==null)break e;me=R({},me,fe);break e;case 2:xo=!0}}H.callback!==null&&H.lane!==0&&(s.flags|=64,fe=E.effects,fe===null?E.effects=[H]:fe.push(H))}else ke={eventTime:ke,lane:fe,tag:H.tag,payload:H.payload,callback:H.callback,next:null},he===null?(ie=he=ke,K=me):he=he.next=ke,$|=fe;if(H=H.next,H===null){if(H=E.shared.pending,H===null)break;fe=H,H=fe.next,fe.next=null,E.lastBaseUpdate=fe,E.shared.pending=null}}while(!0);if(he===null&&(K=me),E.baseState=K,E.firstBaseUpdate=ie,E.lastBaseUpdate=he,u=E.shared.interleaved,u!==null){E=u;do $|=E.lane,E=E.next;while(E!==u)}else C===null&&(E.shared.lanes=0);fa|=$,s.lanes=$,s.memoizedState=me}}function pk(s,u,m){if(s=u.effects,u.effects=null,s!==null)for(u=0;u<s.length;u++){var b=s[u],E=b.callback;if(E!==null){if(b.callback=null,b=m,typeof E!="function")throw Error(n(191,E));E.call(b)}}}var Ou={},li=vo(Ou),Pu=vo(Ou),ju=vo(Ou);function ca(s){if(s===Ou)throw Error(n(174));return s}function Xg(s,u){switch(xt(ju,u),xt(Pu,s),xt(li,Ou),s=u.nodeType,s){case 9:case 11:u=(u=u.documentElement)?u.namespaceURI:ye(null,"");break;default:s=s===8?u.parentNode:u,u=s.namespaceURI||null,s=s.tagName,u=ye(u,s)}Pt(li),xt(li,u)}function Ps(){Pt(li),Pt(Pu),Pt(ju)}function hk(s){ca(ju.current);var u=ca(li.current),m=ye(u,s.type);u!==m&&(xt(Pu,s),xt(li,m))}function Qg(s){Pu.current===s&&(Pt(li),Pt(Pu))}var $t=vo(0);function vf(s){for(var u=s;u!==null;){if(u.tag===13){var m=u.memoizedState;if(m!==null&&(m=m.dehydrated,m===null||m.data==="$?"||m.data==="$!"))return u}else if(u.tag===19&&u.memoizedProps.revealOrder!==void 0){if((u.flags&128)!==0)return u}else if(u.child!==null){u.child.return=u,u=u.child;continue}if(u===s)break;for(;u.sibling===null;){if(u.return===null||u.return===s)return null;u=u.return}u.sibling.return=u.return,u=u.sibling}return null}var Zg=[];function Jg(){for(var s=0;s<Zg.length;s++)Zg[s]._workInProgressVersionPrimary=null;Zg.length=0}var yf=j.ReactCurrentDispatcher,ev=j.ReactCurrentBatchConfig,da=0,Mt=null,en=null,un=null,bf=!1,Cu=!1,Tu=0,k8=0;function On(){throw Error(n(321))}function tv(s,u){if(u===null)return!1;for(var m=0;m<u.length&&m<s.length;m++)if(!zr(s[m],u[m]))return!1;return!0}function nv(s,u,m,b,E,C){if(da=C,Mt=u,u.memoizedState=null,u.updateQueue=null,u.lanes=0,yf.current=s===null||s.memoizedState===null?C8:T8,s=m(b,E),Cu){C=0;do{if(Cu=!1,Tu=0,25<=C)throw Error(n(301));C+=1,un=en=null,u.updateQueue=null,yf.current=N8,s=m(b,E)}while(Cu)}if(yf.current=Sf,u=en!==null&&en.next!==null,da=0,un=en=Mt=null,bf=!1,u)throw Error(n(300));return s}function rv(){var s=Tu!==0;return Tu=0,s}function ui(){var s={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return un===null?Mt.memoizedState=un=s:un=un.next=s,un}function _r(){if(en===null){var s=Mt.alternate;s=s!==null?s.memoizedState:null}else s=en.next;var u=un===null?Mt.memoizedState:un.next;if(u!==null)un=u,en=s;else{if(s===null)throw Error(n(310));en=s,s={memoizedState:en.memoizedState,baseState:en.baseState,baseQueue:en.baseQueue,queue:en.queue,next:null},un===null?Mt.memoizedState=un=s:un=un.next=s}return un}function Nu(s,u){return typeof u=="function"?u(s):u}function iv(s){var u=_r(),m=u.queue;if(m===null)throw Error(n(311));m.lastRenderedReducer=s;var b=en,E=b.baseQueue,C=m.pending;if(C!==null){if(E!==null){var $=E.next;E.next=C.next,C.next=$}b.baseQueue=E=C,m.pending=null}if(E!==null){C=E.next,b=b.baseState;var H=$=null,K=null,ie=C;do{var he=ie.lane;if((da&he)===he)K!==null&&(K=K.next={lane:0,action:ie.action,hasEagerState:ie.hasEagerState,eagerState:ie.eagerState,next:null}),b=ie.hasEagerState?ie.eagerState:s(b,ie.action);else{var me={lane:he,action:ie.action,hasEagerState:ie.hasEagerState,eagerState:ie.eagerState,next:null};K===null?(H=K=me,$=b):K=K.next=me,Mt.lanes|=he,fa|=he}ie=ie.next}while(ie!==null&&ie!==C);K===null?$=b:K.next=H,zr(b,u.memoizedState)||(Kn=!0),u.memoizedState=b,u.baseState=$,u.baseQueue=K,m.lastRenderedState=b}if(s=m.interleaved,s!==null){E=s;do C=E.lane,Mt.lanes|=C,fa|=C,E=E.next;while(E!==s)}else E===null&&(m.lanes=0);return[u.memoizedState,m.dispatch]}function ov(s){var u=_r(),m=u.queue;if(m===null)throw Error(n(311));m.lastRenderedReducer=s;var b=m.dispatch,E=m.pending,C=u.memoizedState;if(E!==null){m.pending=null;var $=E=E.next;do C=s(C,$.action),$=$.next;while($!==E);zr(C,u.memoizedState)||(Kn=!0),u.memoizedState=C,u.baseQueue===null&&(u.baseState=C),m.lastRenderedState=C}return[C,b]}function mk(){}function gk(s,u){var m=Mt,b=_r(),E=u(),C=!zr(b.memoizedState,E);if(C&&(b.memoizedState=E,Kn=!0),b=b.queue,av(bk.bind(null,m,b,s),[s]),b.getSnapshot!==u||C||un!==null&&un.memoizedState.tag&1){if(m.flags|=2048,Ru(9,yk.bind(null,m,b,E,u),void 0,null),cn===null)throw Error(n(349));(da&30)!==0||vk(m,u,E)}return E}function vk(s,u,m){s.flags|=16384,s={getSnapshot:u,value:m},u=Mt.updateQueue,u===null?(u={lastEffect:null,stores:null},Mt.updateQueue=u,u.stores=[s]):(m=u.stores,m===null?u.stores=[s]:m.push(s))}function yk(s,u,m,b){u.value=m,u.getSnapshot=b,xk(u)&&wk(s)}function bk(s,u,m){return m(function(){xk(u)&&wk(s)})}function xk(s){var u=s.getSnapshot;s=s.value;try{var m=u();return!zr(s,m)}catch{return!0}}function wk(s){var u=Ii(s,1);u!==null&&Vr(u,s,1,-1)}function Sk(s){var u=ui();return typeof s=="function"&&(s=s()),u.memoizedState=u.baseState=s,s={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Nu,lastRenderedState:s},u.queue=s,s=s.dispatch=j8.bind(null,Mt,s),[u.memoizedState,s]}function Ru(s,u,m,b){return s={tag:s,create:u,destroy:m,deps:b,next:null},u=Mt.updateQueue,u===null?(u={lastEffect:null,stores:null},Mt.updateQueue=u,u.lastEffect=s.next=s):(m=u.lastEffect,m===null?u.lastEffect=s.next=s:(b=m.next,m.next=s,s.next=b,u.lastEffect=s)),s}function _k(){return _r().memoizedState}function xf(s,u,m,b){var E=ui();Mt.flags|=s,E.memoizedState=Ru(1|u,m,void 0,b===void 0?null:b)}function wf(s,u,m,b){var E=_r();b=b===void 0?null:b;var C=void 0;if(en!==null){var $=en.memoizedState;if(C=$.destroy,b!==null&&tv(b,$.deps)){E.memoizedState=Ru(u,m,C,b);return}}Mt.flags|=s,E.memoizedState=Ru(1|u,m,C,b)}function Ak(s,u){return xf(8390656,8,s,u)}function av(s,u){return wf(2048,8,s,u)}function Ek(s,u){return wf(4,2,s,u)}function kk(s,u){return wf(4,4,s,u)}function Ok(s,u){if(typeof u=="function")return s=s(),u(s),function(){u(null)};if(u!=null)return s=s(),u.current=s,function(){u.current=null}}function Pk(s,u,m){return m=m!=null?m.concat([s]):null,wf(4,4,Ok.bind(null,u,s),m)}function sv(){}function jk(s,u){var m=_r();u=u===void 0?null:u;var b=m.memoizedState;return b!==null&&u!==null&&tv(u,b[1])?b[0]:(m.memoizedState=[s,u],s)}function Ck(s,u){var m=_r();u=u===void 0?null:u;var b=m.memoizedState;return b!==null&&u!==null&&tv(u,b[1])?b[0]:(s=s(),m.memoizedState=[s,u],s)}function Tk(s,u,m){return(da&21)===0?(s.baseState&&(s.baseState=!1,Kn=!0),s.memoizedState=m):(zr(m,u)||(m=sE(),Mt.lanes|=m,fa|=m,s.baseState=!0),u)}function O8(s,u){var m=mt;mt=m!==0&&4>m?m:4,s(!0);var b=ev.transition;ev.transition={};
vendor: 9,431 bytes, lines 38-40
38try{s(!1),u()}finally{mt=m,ev.transition=b}}function Nk(){return _r().memoizedState}function P8(s,u,m){var b=Eo(s);if(m={lane:b,action:m,hasEagerState:!1,eagerState:null,next:null},Rk(s))Ik(u,m);else if(m=ck(s,u,m,b),m!==null){var E=Bn();Vr(m,s,b,E),$k(m,u,b)}}function j8(s,u,m){var b=Eo(s),E={lane:b,action:m,hasEagerState:!1,eagerState:null,next:null};if(Rk(s))Ik(u,E);else{var C=s.alternate;if(s.lanes===0&&(C===null||C.lanes===0)&&(C=u.lastRenderedReducer,C!==null))try{var $=u.lastRenderedState,H=C($,m);if(E.hasEagerState=!0,E.eagerState=H,zr(H,$)){var K=u.interleaved;K===null?(E.next=E,Gg(u)):(E.next=K.next,K.next=E),u.interleaved=E;return}}catch{}finally{}m=ck(s,u,E,b),m!==null&&(E=Bn(),Vr(m,s,b,E),$k(m,u,b))}}function Rk(s){var u=s.alternate;return s===Mt||u!==null&&u===Mt}function Ik(s,u){Cu=bf=!0;var m=s.pending;m===null?u.next=u:(u.next=m.next,m.next=u),s.pending=u}function $k(s,u,m){if((m&4194240)!==0){var b=u.lanes;b&=s.pendingLanes,m|=b,u.lanes=m,ug(s,m)}}var Sf={readContext:Sr,useCallback:On,useContext:On,useEffect:On,useImperativeHandle:On,useInsertionEffect:On,useLayoutEffect:On,useMemo:On,useReducer:On,useRef:On,useState:On,useDebugValue:On,useDeferredValue:On,useTransition:On,useMutableSource:On,useSyncExternalStore:On,useId:On,unstable_isNewReconciler:!1},C8={readContext:Sr,useCallback:function(s,u){return ui().memoizedState=[s,u===void 0?null:u],s},useContext:Sr,useEffect:Ak,useImperativeHandle:function(s,u,m){return m=m!=null?m.concat([s]):null,xf(4194308,4,Ok.bind(null,u,s),m)},useLayoutEffect:function(s,u){return xf(4194308,4,s,u)},useInsertionEffect:function(s,u){return xf(4,2,s,u)},useMemo:function(s,u){var m=ui();return u=u===void 0?null:u,s=s(),m.memoizedState=[s,u],s},useReducer:function(s,u,m){var b=ui();return u=m!==void 0?m(u):u,b.memoizedState=b.baseState=u,s={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:s,lastRenderedState:u},b.queue=s,s=s.dispatch=P8.bind(null,Mt,s),[b.memoizedState,s]},useRef:function(s){var u=ui();return s={current:s},u.memoizedState=s},useState:Sk,useDebugValue:sv,useDeferredValue:function(s){return ui().memoizedState=s},useTransition:function(){var s=Sk(!1),u=s[0];return s=O8.bind(null,s[1]),ui().memoizedState=s,[u,s]},useMutableSource:function(){},useSyncExternalStore:function(s,u,m){var b=Mt,E=ui();if(Nt){if(m===void 0)throw Error(n(407));m=m()}else{if(m=u(),cn===null)throw Error(n(349));(da&30)!==0||vk(b,u,m)}E.memoizedState=m;var C={value:m,getSnapshot:u};return E.queue=C,Ak(bk.bind(null,b,C,s),[s]),b.flags|=2048,Ru(9,yk.bind(null,b,C,m,u),void 0,null),m},useId:function(){var s=ui(),u=cn.identifierPrefix;if(Nt){var m=Ri,b=Ni;m=(b&~(1<<32-Br(b)-1)).toString(32)+m,u=":"+u+"R"+m,m=Tu++,0<m&&(u+="H"+m.toString(32)),u+=":"}else m=k8++,u=":"+u+"r"+m.toString(32)+":";return s.memoizedState=u},unstable_isNewReconciler:!1},T8={readContext:Sr,useCallback:jk,useContext:Sr,useEffect:av,useImperativeHandle:Pk,useInsertionEffect:Ek,useLayoutEffect:kk,useMemo:Ck,useReducer:iv,useRef:_k,useState:function(){return iv(Nu)},useDebugValue:sv,useDeferredValue:function(s){var u=_r();return Tk(u,en.memoizedState,s)},useTransition:function(){var s=iv(Nu)[0],u=_r().memoizedState;return[s,u]},useMutableSource:mk,useSyncExternalStore:gk,useId:Nk,unstable_isNewReconciler:!1},N8={readContext:Sr,useCallback:jk,useContext:Sr,useEffect:av,useImperativeHandle:Pk,useInsertionEffect:Ek,useLayoutEffect:kk,useMemo:Ck,useReducer:ov,useRef:_k,useState:function(){return ov(Nu)},useDebugValue:sv,useDeferredValue:function(s){var u=_r();return en===null?u.memoizedState=s:Tk(u,en.memoizedState,s)},useTransition:function(){var s=ov(Nu)[0],u=_r().memoizedState;return[s,u]},useMutableSource:mk,useSyncExternalStore:gk,useId:Nk,unstable_isNewReconciler:!1};function qr(s,u){if(s&&s.defaultProps){u=R({},u),s=s.defaultProps;for(var m in s)u[m]===void 0&&(u[m]=s[m]);return u}return u}function lv(s,u,m,b){u=s.memoizedState,m=m(b,u),m=m==null?u:R({},u,m),s.memoizedState=m,s.lanes===0&&(s.updateQueue.baseState=m)}var _f={isMounted:function(s){return(s=s._reactInternals)?ia(s)===s:!1},enqueueSetState:function(s,u,m){s=s._reactInternals;var b=Bn(),E=Eo(s),C=$i(b,E);C.payload=u,m!=null&&(C.callback=m),u=wo(s,C,E),u!==null&&(Vr(u,s,E,b),mf(u,s,E))},enqueueReplaceState:function(s,u,m){s=s._reactInternals;var b=Bn(),E=Eo(s),C=$i(b,E);C.tag=1,C.payload=u,m!=null&&(C.callback=m),u=wo(s,C,E),u!==null&&(Vr(u,s,E,b),mf(u,s,E))},enqueueForceUpdate:function(s,u){s=s._reactInternals;var m=Bn(),b=Eo(s),E=$i(m,b);E.tag=2,u!=null&&(E.callback=u),u=wo(s,E,b),u!==null&&(Vr(u,s,b,m),mf(u,s,b))}};function Mk(s,u,m,b,E,C,$){return s=s.stateNode,typeof s.shouldComponentUpdate=="function"?s.shouldComponentUpdate(b,C,$):u.prototype&&u.prototype.isPureReactComponent?!bu(m,b)||!bu(E,C):!0}function Dk(s,u,m){var b=!1,E=yo,C=u.contextType;return typeof C=="object"&&C!==null?C=Sr(C):(E=Vn(u)?aa:kn.current,b=u.contextTypes,C=(b=b!=null)?ws(s,E):yo),u=new u(m,C),s.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=_f,s.stateNode=u,u._reactInternals=s,b&&(s=s.stateNode,s.__reactInternalMemoizedUnmaskedChildContext=E,s.__reactInternalMemoizedMaskedChildContext=C),u}function Lk(s,u,m,b){s=u.state,typeof u.componentWillReceiveProps=="function"&&u.componentWillReceiveProps(m,b),typeof u.UNSAFE_componentWillReceiveProps=="function"&&u.UNSAFE_componentWillReceiveProps(m,b),u.state!==s&&_f.enqueueReplaceState(u,u.state,null)}function uv(s,u,m,b){var E=s.stateNode;E.props=m,E.state=s.memoizedState,E.refs={},Yg(s);var C=u.contextType;typeof C=="object"&&C!==null?E.context=Sr(C):(C=Vn(u)?aa:kn.current,E.context=ws(s,C)),E.state=s.memoizedState,C=u.getDerivedStateFromProps,typeof C=="function"&&(lv(s,u,C,m),E.state=s.memoizedState),typeof u.getDerivedStateFromProps=="function"||typeof E.getSnapshotBeforeUpdate=="function"||typeof E.UNSAFE_componentWillMount!="function"&&typeof E.componentWillMount!="function"||(u=E.state,typeof E.componentWillMount=="function"&&E.componentWillMount(),typeof E.UNSAFE_componentWillMount=="function"&&E.UNSAFE_componentWillMount(),u!==E.state&&_f.enqueueReplaceState(E,E.state,null),gf(s,m,E,b),E.state=s.memoizedState),typeof E.componentDidMount=="function"&&(s.flags|=4194308)}function js(s,u){try{var m="",b=u;do m+=ce(b),b=b.return;while(b);var E=m}catch(C){E=`
39Error generating stack: `+C.message+`
40`+C.stack}return{value:s,source:u,stack:E,digest:null}}function cv(s,u,m){return{value:s,source:null,stack:m??null,digest:u??null}}function dv(s,u){try{console.error(u.value)}catch(m){setTimeout(function(){throw m})}}var R8=typeof WeakMap=="function"?WeakMap:Map;function Fk(s,u,m){m=$i(-1,m),m.tag=3,m.payload={element:null};var b=u.value;return m.callback=function(){Cf||(Cf=!0,kv=b),dv(s,u)},m}function Bk(s,u,m){m=$i(-1,m),m.tag=3;var b=s.type.getDerivedStateFromError;if(typeof b=="function"){var E=u.value;m.payload=function(){return b(E)},m.callback=function(){dv(s,u)}}var C=s.stateNode;return C!==null&&typeof C.componentDidCatch=="function"&&(m.callback=function(){dv(s,u),typeof b!="function"&&(_o===null?_o=new Set([this]):_o.add(this));var $=u.stack;this.componentDidCatch(u.value,{componentStack:$!==null?$:""})}),m}function zk(s,u,m){var b=s.pingCache;if(b===null){b=s.pingCache=new R8;var E=new Set;b.set(u,E)}else E=b.get(u),E===void 0&&(E=new Set,b.set(u,E));E.has(m)||(E.add(m),s=K8.bind(null,s,u,m),u.then(s,s))}function Uk(s){do{var u;if((u=s.tag===13)&&(u=s.memoizedState,u=u!==null?u.dehydrated!==null:!0),u)return s;s=s.return}while(s!==null);return null}function qk(s,u,m,b,E){return(s.mode&1)===0?(s===u?s.flags|=65536:(s.flags|=128,m.flags|=131072,m.flags&=-52805,m.tag===1&&(m.alternate===null?m.tag=17:(u=$i(-1,1),u.tag=2,wo(m,u,1))),m.lanes|=1),s):(s.flags|=65536,s.lanes=E,s)}var I8=j.ReactCurrentOwner,Kn=!1;function Fn(s,u,m,b){u.child=s===null?uk(u,null,m,b):Es(u,s.child,m,b)}function Hk(s,u,m,b,E){m=m.render;var C=u.ref;return Os(u,E),b=nv(s,u,m,b,C,E),m=rv(),s!==null&&!Kn?(u.updateQueue=s.updateQueue,u.flags&=-2053,s.lanes&=~E,Mi(s,u,E)):(Nt&&m&&Fg(u),u.flags|=1,Fn(s,u,b,E),u.child)}function Wk(s,u,m,b,E){if(s===null){var C=m.type;return typeof C=="function"&&!Rv(C)&&C.defaultProps===void 0&&m.compare===null&&m.defaultProps===void 0?(u.tag=15,u.type=C,Vk(s,u,C,b,E)):(s=Mf(m.type,null,b,u,u.mode,E),s.ref=u.ref,s.return=u,u.child=s)}if(C=s.child,(s.lanes&E)===0){var $=C.memoizedProps;if(m=m.compare,m=m!==null?m:bu,m($,b)&&s.ref===u.ref)return Mi(s,u,E)}return u.flags|=1,s=Oo(C,b),s.ref=u.ref,s.return=u,u.child=s}function Vk(s,u,m,b,E){if(s!==null){var C=s.memoizedProps;if(bu(C,b)&&s.ref===u.ref)if(Kn=!1,u.pendingProps=b=C,(s.lanes&E)!==0)(s.flags&131072)!==0&&(Kn=!0);else return u.lanes=s.lanes,Mi(s,u,E)}return fv(s,u,m,b,E)}function Kk(s,u,m){var b=u.pendingProps,E=b.children,C=s!==null?s.memoizedState:null;if(b.mode==="hidden")if((u.mode&1)===0)u.memoizedState={baseLanes:0,cachePool:null,transitions:null},xt(Ts,cr),cr|=m;else{if((m&1073741824)===0)return s=C!==null?C.baseLanes|m:m,u.lanes=u.childLanes=1073741824,u.memoizedState={baseLanes:s,cachePool:null,transitions:null},u.updateQueue=null,xt(Ts,cr),cr|=s,null;u.memoizedState={baseLanes:0,cachePool:null,transitions:null},b=C!==null?C.baseLanes:m,xt(Ts,cr),cr|=b}else C!==null?(b=C.baseLanes|m,u.memoizedState=null):b=m,xt(Ts,cr),cr|=b;return Fn(s,u,E,m),u.child}function Gk(s,u){var m=u.ref;(s===null&&m!==null||s!==null&&s.ref!==m)&&(u.flags|=512,u.flags|=2097152)}
vendor: 13,775 bytes, line 40
40function fv(s,u,m,b,E){var C=Vn(m)?aa:kn.current;return C=ws(u,C),Os(u,E),m=nv(s,u,m,b,C,E),b=rv(),s!==null&&!Kn?(u.updateQueue=s.updateQueue,u.flags&=-2053,s.lanes&=~E,Mi(s,u,E)):(Nt&&b&&Fg(u),u.flags|=1,Fn(s,u,m,E),u.child)}function Yk(s,u,m,b,E){if(Vn(m)){var C=!0;sf(u)}else C=!1;if(Os(u,E),u.stateNode===null)Ef(s,u),Dk(u,m,b),uv(u,m,b,E),b=!0;else if(s===null){var $=u.stateNode,H=u.memoizedProps;$.props=H;var K=$.context,ie=m.contextType;typeof ie=="object"&&ie!==null?ie=Sr(ie):(ie=Vn(m)?aa:kn.current,ie=ws(u,ie));var he=m.getDerivedStateFromProps,me=typeof he=="function"||typeof $.getSnapshotBeforeUpdate=="function";me||typeof $.UNSAFE_componentWillReceiveProps!="function"&&typeof $.componentWillReceiveProps!="function"||(H!==b||K!==ie)&&Lk(u,$,b,ie),xo=!1;var fe=u.memoizedState;$.state=fe,gf(u,b,$,E),K=u.memoizedState,H!==b||fe!==K||Wn.current||xo?(typeof he=="function"&&(lv(u,m,he,b),K=u.memoizedState),(H=xo||Mk(u,m,H,b,fe,K,ie))?(me||typeof $.UNSAFE_componentWillMount!="function"&&typeof $.componentWillMount!="function"||(typeof $.componentWillMount=="function"&&$.componentWillMount(),typeof $.UNSAFE_componentWillMount=="function"&&$.UNSAFE_componentWillMount()),typeof $.componentDidMount=="function"&&(u.flags|=4194308)):(typeof $.componentDidMount=="function"&&(u.flags|=4194308),u.memoizedProps=b,u.memoizedState=K),$.props=b,$.state=K,$.context=ie,b=H):(typeof $.componentDidMount=="function"&&(u.flags|=4194308),b=!1)}else{$=u.stateNode,dk(s,u),H=u.memoizedProps,ie=u.type===u.elementType?H:qr(u.type,H),$.props=ie,me=u.pendingProps,fe=$.context,K=m.contextType,typeof K=="object"&&K!==null?K=Sr(K):(K=Vn(m)?aa:kn.current,K=ws(u,K));var ke=m.getDerivedStateFromProps;(he=typeof ke=="function"||typeof $.getSnapshotBeforeUpdate=="function")||typeof $.UNSAFE_componentWillReceiveProps!="function"&&typeof $.componentWillReceiveProps!="function"||(H!==me||fe!==K)&&Lk(u,$,b,K),xo=!1,fe=u.memoizedState,$.state=fe,gf(u,b,$,E);var Te=u.memoizedState;H!==me||fe!==Te||Wn.current||xo?(typeof ke=="function"&&(lv(u,m,ke,b),Te=u.memoizedState),(ie=xo||Mk(u,m,ie,b,fe,Te,K)||!1)?(he||typeof $.UNSAFE_componentWillUpdate!="function"&&typeof $.componentWillUpdate!="function"||(typeof $.componentWillUpdate=="function"&&$.componentWillUpdate(b,Te,K),typeof $.UNSAFE_componentWillUpdate=="function"&&$.UNSAFE_componentWillUpdate(b,Te,K)),typeof $.componentDidUpdate=="function"&&(u.flags|=4),typeof $.getSnapshotBeforeUpdate=="function"&&(u.flags|=1024)):(typeof $.componentDidUpdate!="function"||H===s.memoizedProps&&fe===s.memoizedState||(u.flags|=4),typeof $.getSnapshotBeforeUpdate!="function"||H===s.memoizedProps&&fe===s.memoizedState||(u.flags|=1024),u.memoizedProps=b,u.memoizedState=Te),$.props=b,$.state=Te,$.context=K,b=ie):(typeof $.componentDidUpdate!="function"||H===s.memoizedProps&&fe===s.memoizedState||(u.flags|=4),typeof $.getSnapshotBeforeUpdate!="function"||H===s.memoizedProps&&fe===s.memoizedState||(u.flags|=1024),b=!1)}return pv(s,u,m,b,C,E)}function pv(s,u,m,b,E,C){Gk(s,u);var $=(u.flags&128)!==0;if(!b&&!$)return E&&ek(u,m,!1),Mi(s,u,C);b=u.stateNode,I8.current=u;var H=$&&typeof m.getDerivedStateFromError!="function"?null:b.render();return u.flags|=1,s!==null&&$?(u.child=Es(u,s.child,null,C),u.child=Es(u,null,H,C)):Fn(s,u,H,C),u.memoizedState=b.state,E&&ek(u,m,!0),u.child}function Xk(s){var u=s.stateNode;u.pendingContext?ZE(s,u.pendingContext,u.pendingContext!==u.context):u.context&&ZE(s,u.context,!1),Xg(s,u.containerInfo)}function Qk(s,u,m,b,E){return As(),qg(E),u.flags|=256,Fn(s,u,m,b),u.child}var hv={dehydrated:null,treeContext:null,retryLane:0};function mv(s){return{baseLanes:s,cachePool:null,transitions:null}}function Zk(s,u,m){var b=u.pendingProps,E=$t.current,C=!1,$=(u.flags&128)!==0,H;if((H=$)||(H=s!==null&&s.memoizedState===null?!1:(E&2)!==0),H?(C=!0,u.flags&=-129):(s===null||s.memoizedState!==null)&&(E|=1),xt($t,E&1),s===null)return Ug(u),s=u.memoizedState,s!==null&&(s=s.dehydrated,s!==null)?((u.mode&1)===0?u.lanes=1:s.data==="$!"?u.lanes=8:u.lanes=1073741824,null):($=b.children,s=b.fallback,C?(b=u.mode,C=u.child,$={mode:"hidden",children:$},(b&1)===0&&C!==null?(C.childLanes=0,C.pendingProps=$):C=Df($,b,0,null),s=ga(s,b,m,null),C.return=u,s.return=u,C.sibling=s,u.child=C,u.child.memoizedState=mv(m),u.memoizedState=hv,s):gv(u,$));if(E=s.memoizedState,E!==null&&(H=E.dehydrated,H!==null))return $8(s,u,$,b,H,E,m);if(C){C=b.fallback,$=u.mode,E=s.child,H=E.sibling;var K={mode:"hidden",children:b.children};return($&1)===0&&u.child!==E?(b=u.child,b.childLanes=0,b.pendingProps=K,u.deletions=null):(b=Oo(E,K),b.subtreeFlags=E.subtreeFlags&14680064),H!==null?C=Oo(H,C):(C=ga(C,$,m,null),C.flags|=2),C.return=u,b.return=u,b.sibling=C,u.child=b,b=C,C=u.child,$=s.child.memoizedState,$=$===null?mv(m):{baseLanes:$.baseLanes|m,cachePool:null,transitions:$.transitions},C.memoizedState=$,C.childLanes=s.childLanes&~m,u.memoizedState=hv,b}return C=s.child,s=C.sibling,b=Oo(C,{mode:"visible",children:b.children}),(u.mode&1)===0&&(b.lanes=m),b.return=u,b.sibling=null,s!==null&&(m=u.deletions,m===null?(u.deletions=[s],u.flags|=16):m.push(s)),u.child=b,u.memoizedState=null,b}function gv(s,u){return u=Df({mode:"visible",children:u},s.mode,0,null),u.return=s,s.child=u}function Af(s,u,m,b){return b!==null&&qg(b),Es(u,s.child,null,m),s=gv(u,u.pendingProps.children),s.flags|=2,u.memoizedState=null,s}function $8(s,u,m,b,E,C,$){if(m)return u.flags&256?(u.flags&=-257,b=cv(Error(n(422))),Af(s,u,$,b)):u.memoizedState!==null?(u.child=s.child,u.flags|=128,null):(C=b.fallback,E=u.mode,b=Df({mode:"visible",children:b.children},E,0,null),C=ga(C,E,$,null),C.flags|=2,b.return=u,C.return=u,b.sibling=C,u.child=b,(u.mode&1)!==0&&Es(u,s.child,null,$),u.child.memoizedState=mv($),u.memoizedState=hv,C);if((u.mode&1)===0)return Af(s,u,$,null);if(E.data==="$!"){if(b=E.nextSibling&&E.nextSibling.dataset,b)var H=b.dgst;return b=H,C=Error(n(419)),b=cv(C,b,void 0),Af(s,u,$,b)}if(H=($&s.childLanes)!==0,Kn||H){if(b=cn,b!==null){switch($&-$){case 4:E=2;break;case 16:E=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:E=32;break;case 536870912:E=268435456;break;default:E=0}E=(E&(b.suspendedLanes|$))!==0?0:E,E!==0&&E!==C.retryLane&&(C.retryLane=E,Ii(s,E),Vr(b,s,E,-1))}return Nv(),b=cv(Error(n(421))),Af(s,u,$,b)}return E.data==="$?"?(u.flags|=128,u.child=s.child,u=G8.bind(null,s),E._reactRetry=u,null):(s=C.treeContext,ur=go(E.nextSibling),lr=u,Nt=!0,Ur=null,s!==null&&(xr[wr++]=Ni,xr[wr++]=Ri,xr[wr++]=sa,Ni=s.id,Ri=s.overflow,sa=u),u=gv(u,b.children),u.flags|=4096,u)}function Jk(s,u,m){s.lanes|=u;var b=s.alternate;b!==null&&(b.lanes|=u),Kg(s.return,u,m)}function vv(s,u,m,b,E){var C=s.memoizedState;C===null?s.memoizedState={isBackwards:u,rendering:null,renderingStartTime:0,last:b,tail:m,tailMode:E}:(C.isBackwards=u,C.rendering=null,C.renderingStartTime=0,C.last=b,C.tail=m,C.tailMode=E)}function eO(s,u,m){var b=u.pendingProps,E=b.revealOrder,C=b.tail;if(Fn(s,u,b.children,m),b=$t.current,(b&2)!==0)b=b&1|2,u.flags|=128;else{if(s!==null&&(s.flags&128)!==0)e:for(s=u.child;s!==null;){if(s.tag===13)s.memoizedState!==null&&Jk(s,m,u);else if(s.tag===19)Jk(s,m,u);else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===u)break e;for(;s.sibling===null;){if(s.return===null||s.return===u)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}b&=1}if(xt($t,b),(u.mode&1)===0)u.memoizedState=null;else switch(E){case"forwards":for(m=u.child,E=null;m!==null;)s=m.alternate,s!==null&&vf(s)===null&&(E=m),m=m.sibling;m=E,m===null?(E=u.child,u.child=null):(E=m.sibling,m.sibling=null),vv(u,!1,E,m,C);break;case"backwards":for(m=null,E=u.child,u.child=null;E!==null;){if(s=E.alternate,s!==null&&vf(s)===null){u.child=E;break}s=E.sibling,E.sibling=m,m=E,E=s}vv(u,!0,m,null,C);break;case"together":vv(u,!1,null,null,void 0);break;default:u.memoizedState=null}return u.child}function Ef(s,u){(u.mode&1)===0&&s!==null&&(s.alternate=null,u.alternate=null,u.flags|=2)}function Mi(s,u,m){if(s!==null&&(u.dependencies=s.dependencies),fa|=u.lanes,(m&u.childLanes)===0)return null;if(s!==null&&u.child!==s.child)throw Error(n(153));if(u.child!==null){for(s=u.child,m=Oo(s,s.pendingProps),u.child=m,m.return=u;s.sibling!==null;)s=s.sibling,m=m.sibling=Oo(s,s.pendingProps),m.return=u;m.sibling=null}return u.child}function M8(s,u,m){switch(u.tag){case 3:Xk(u),As();break;case 5:hk(u);break;case 1:Vn(u.type)&&sf(u);break;case 4:Xg(u,u.stateNode.containerInfo);break;case 10:var b=u.type._context,E=u.memoizedProps.value;xt(pf,b._currentValue),b._currentValue=E;break;case 13:if(b=u.memoizedState,b!==null)return b.dehydrated!==null?(xt($t,$t.current&1),u.flags|=128,null):(m&u.child.childLanes)!==0?Zk(s,u,m):(xt($t,$t.current&1),s=Mi(s,u,m),s!==null?s.sibling:null);xt($t,$t.current&1);break;case 19:if(b=(m&u.childLanes)!==0,(s.flags&128)!==0){if(b)return eO(s,u,m);u.flags|=128}if(E=u.memoizedState,E!==null&&(E.rendering=null,E.tail=null,E.lastEffect=null),xt($t,$t.current),b)break;return null;case 22:case 23:return u.lanes=0,Kk(s,u,m)}return Mi(s,u,m)}var tO,yv,nO,rO;tO=function(s,u){for(var m=u.child;m!==null;){if(m.tag===5||m.tag===6)s.appendChild(m.stateNode);else if(m.tag!==4&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===u)break;for(;m.sibling===null;){if(m.return===null||m.return===u)return;m=m.return}m.sibling.return=m.return,m=m.sibling}},yv=function(){},nO=function(s,u,m,b){var E=s.memoizedProps;if(E!==b){s=u.stateNode,ca(li.current);var C=null;switch(m){case"input":E=ge(s,E),b=ge(s,b),C=[];break;case"select":E=R({},E,{value:void 0}),b=R({},b,{value:void 0}),C=[];break;case"textarea":E=Ze(s,E),b=Ze(s,b),C=[];break;default:typeof E.onClick!="function"&&typeof b.onClick=="function"&&(s.onclick=rf)}bn(m,b);var $;m=null;for(ie in E)if(!b.hasOwnProperty(ie)&&E.hasOwnProperty(ie)&&E[ie]!=null)if(ie==="style"){var H=E[ie];for($ in H)H.hasOwnProperty($)&&(m||(m={}),m[$]="")}else ie!=="dangerouslySetInnerHTML"&&ie!=="children"&&ie!=="suppressContentEditableWarning"&&ie!=="suppressHydrationWarning"&&ie!=="autoFocus"&&(i.hasOwnProperty(ie)?C||(C=[]):(C=C||[]).push(ie,null));for(ie in b){var K=b[ie];if(H=E!=null?E[ie]:void 0,b.hasOwnProperty(ie)&&K!==H&&(K!=null||H!=null))if(ie==="style")if(H){for($ in H)!H.hasOwnProperty($)||K&&K.hasOwnProperty($)||(m||(m={}),m[$]="");for($ in K)K.hasOwnProperty($)&&H[$]!==K[$]&&(m||(m={}),m[$]=K[$])}else m||(C||(C=[]),C.push(ie,m)),m=K;else ie==="dangerouslySetInnerHTML"?(K=K?K.__html:void 0,H=H?H.__html:void 0,K!=null&&H!==K&&(C=C||[]).push(ie,K)):ie==="children"?typeof K!="string"&&typeof K!="number"||(C=C||[]).push(ie,""+K):ie!=="suppressContentEditableWarning"&&ie!=="suppressHydrationWarning"&&(i.hasOwnProperty(ie)?(K!=null&&ie==="onScroll"&&Ot("scroll",s),C||H===K||(C=[])):(C=C||[]).push(ie,K))}m&&(C=C||[]).push("style",m);var ie=C;(u.updateQueue=ie)&&(u.flags|=4)}},rO=function(s,u,m,b){m!==b&&(u.flags|=4)};function Iu(s,u){if(!Nt)switch(s.tailMode){case"hidden":u=s.tail;for(var m=null;u!==null;)u.alternate!==null&&(m=u),u=u.sibling;m===null?s.tail=null:m.sibling=null;break;case"collapsed":m=s.tail;for(var b=null;m!==null;)m.alternate!==null&&(b=m),m=m.sibling;b===null?u||s.tail===null?s.tail=null:s.tail.sibling=null:b.sibling=null}}function Pn(s){var u=s.alternate!==null&&s.alternate.child===s.child,m=0,b=0;if(u)for(var E=s.child;E!==null;)m|=E.lanes|E.childLanes,b|=E.subtreeFlags&14680064,b|=E.flags&14680064,E.return=s,E=E.sibling;else for(E=s.child;E!==null;)m|=E.lanes|E.childLanes,b|=E.subtreeFlags,b|=E.flags,E.return=s,E=E.sibling;return s.subtreeFlags|=b,s.childLanes=m,u}function D8(s,u,m){var b=u.pendingProps;switch(Bg(u),u.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Pn(u),null;case 1:return Vn(u.type)&&af(),Pn(u),null;case 3:return b=u.stateNode,Ps(),Pt(Wn),Pt(kn),Jg(),b.pendingContext&&(b.context=b.pendingContext,b.pendingContext=null),(s===null||s.child===null)&&(df(u)?u.flags|=4:s===null||s.memoizedState.isDehydrated&&(u.flags&256)===0||(u.flags|=1024,Ur!==null&&(jv(Ur),Ur=null))),yv(s,u),Pn(u),null;case 5:Qg(u);var E=ca(ju.current);if(m=u.type,s!==null&&u.stateNode!=null)nO(s,u,m,b,E),s.ref!==u.ref&&(u.flags|=512,u.flags|=2097152);else{if(!b){if(u.stateNode===null)throw Error(n(166));return Pn(u),null}if(s=ca(li.current),df(u)){b=u.stateNode,m=u.type;var C=u.memoizedProps;switch(b[si]=u,b[Au]=C,s=(u.mode&1)!==0,m){case"dialog":Ot("cancel",b),Ot("close",b);break;case"iframe":case"object":case"embed":Ot("load",b);break;case"video":case"audio":for(E=0;E<wu.length;E++)Ot(wu[E],b);break;case"source":Ot("error",b);break;case"img":case"image":case"link":Ot("error",b),Ot("load",b);break;case"details":Ot("toggle",b);break;case"input":Ae(b,C),Ot("invalid",b);break;case"select":b._wrapperState={wasMultiple:!!C.multiple},Ot("invalid",b);break;case"textarea":Tt(b,C),Ot("invalid",b)}bn(m,C),E=null;for(var $ in C)if(C.hasOwnProperty($)){var H=C[$];$==="children"?typeof H=="string"?b.textContent!==H&&(C.suppressHydrationWarning!==!0&&nf(b.textContent,H,s),E=["children",H]):typeof H=="number"&&b.textContent!==""+H&&(C.suppressHydrationWarning!==!0&&nf(b.textContent,H,s),E=["children",""+H]):i.hasOwnProperty($)&&H!=null&&$==="onScroll"&&Ot("scroll",b)}switch(m){case"input":je(b),et(b,C,!0);break;case"textarea":je(b),En(b);break;case"select":case"option":break;default:typeof C.onClick=="function"&&(b.onclick=rf)}b=E,u.updateQueue=b,b!==null&&(u.flags|=4)}else{$=E.nodeType===9?E:E.ownerDocument,s==="http://www.w3.org/1999/xhtml"&&(s=le(m)),s==="http://www.w3.org/1999/xhtml"?m==="script"?(s=$.createElement("div"),s.innerHTML="<script><\/script>
40",s=s.removeChild(s.firstChild)):typeof b.is=="string"?s=$.createElement(m,{is:b.is}):(s=$.createElement(m),m==="select"&&($=s,b.multiple?$.multiple=!0:b.size&&($.size=b.size))):s=$.createElementNS(s,m),s[si]=u,s[Au]=b,tO(s,u,!1,!1),u.stateNode=s;e:{switch($=oi(m,b),m){case"dialog":Ot("cancel",s),Ot("close",s),E=b;break;case"iframe":case"object":case"embed":Ot("load",s),E=b;break;case"video":case"audio":for(E=0;E<wu.length;E++)Ot(wu[E],s);E=b;break;case"source":Ot("error",s),E=b;break;case"img":case"image":case"link":Ot("error",s),Ot("load",s),E=b;break;case"details":Ot("toggle",s),E=b;break;case"input":Ae(s,b),E=ge(s,b),Ot("invalid",s);break;case"option":E=b;break;case"select":s._wrapperState={wasMultiple:!!b.multiple},E=R({},b,{value:void 0}),Ot("invalid",s);break;case"textarea":Tt(s,b),E=Ze(s,b),Ot("invalid",s);break;default:E=b}bn(m,E),H=E;for(C in H)if(H.hasOwnProperty(C)){var K=H[C];C==="style"?br(s,K):C==="dangerouslySetInnerHTML"?(K=K?K.__html:void 0,K!=null&&Ge(s,K)):C==="children"?typeof K=="string"?(m!=="textarea"||K!=="")&&it(s,K):typeof K=="number"&&it(s,""+K):C!=="suppressContentEditableWarning"&&C!=="suppressHydrationWarning"&&C!=="autoFocus"&&(i.hasOwnProperty(C)?K!=null&&C==="onScroll"&&Ot("scroll",s):K!=null&&_(s,C,K,$))}switch(m){case"input":je(s),et(s,b,!1);break;case"textarea":je(s),En(s);break;case"option":b.value!=null&&s.setAttribute("value",""+pe(b.value));break;case"select":s.multiple=!!b.multiple,C=b.value,C!=null?Ke(s,!!b.multiple,C,!1):b.defaultValue!=null&&Ke(s,!!b.multiple,b.defaultValue,!0);break;default:typeof E.onClick=="function"&&(s.onclick=rf)}switch(m){case"button":case"input":case"select":case"textarea":b=!!b.autoFocus;break e;case"img":b=!0;break e;default:b=!1}}b&&(u.flags|=4)}u.ref!==null&&(u.flags|=512,u.flags|=2097152)}return Pn(u),null;case 6:if(s&&u.stateNode!=null)rO(s,u,s.memoizedProps,b);else{if(typeof b!="string"&&u.stateNode===null)throw Error(n(166));if(m=ca(ju.current),ca(li.current),df(u)){if(b=u.stateNode,m=u.memoizedProps,b[si]=u,(C=b.nodeValue!==m)&&(s=lr,s!==null))switch(s.tag){case 3:nf(b.nodeValue,m,(s.mode&1)!==0);break;case 5:s.memoizedProps.suppressHydrationWarning!==!0&&nf(b.nodeValue,m,(s.mode&1)!==0)}C&&(u.flags|=4)}else b=(m.nodeType===9?m:m.ownerDocument).createTextNode(b),b[si]=u,u.stateNode=b}return Pn(u),null;case 13:if(Pt($t),b=u.memoizedState,s===null||s.memoizedState!==null&&s.memoizedState.dehydrated!==null){if(Nt&&ur!==null&&(u.mode&1)!==0&&(u.flags&128)===0)ak(),As(),u.flags|=98560,C=!1;else if(C=df(u),b!==null&&b.dehydrated!==null){if(s===null){if(!C)throw Error(n(318));if(C=u.memoizedState,C=C!==null?C.dehydrated:null,!C)throw Error(n(317));C[si]=u}else As(),(u.flags&128)===0&&(u.memoizedState=null),u.flags|=4;Pn(u),C=!1}else Ur!==null&&(jv(Ur),Ur=null),C=!0;if(!C)return u.flags&65536?u:null}return(u.flags&128)!==0?(u.lanes=m,u):(b=b!==null,b!==(s!==null&&s.memoizedState!==null)&&b&&(u.child.flags|=8192,(u.mode&1)!==0&&(s===null||($t.current&1)!==0?tn===0&&(tn=3):Nv())),u.updateQueue!==null&&(u.flags|=4),Pn(u),null);case 4:return Ps(),yv(s,u),s===null&&Su(u.stateNode.containerInfo),Pn(u),null;case 10:return Vg(u.type._context),Pn(u),null;case 17:return Vn(u.type)&&af(),Pn(u),null;case 19:if(Pt($t),C=u.memoizedState,C===null)return Pn(u),null;if(b=(u.flags&128)!==0,$=C.rendering,$===null)if(b)Iu(C,!1);else{if(tn!==0||s!==null&&(s.flags&128)!==0)for(s=u.child;s!==null;){if($=vf(s),$!==null){for(u.flags|=128,Iu(C,!1),b=$.updateQueue,b!==null&&(u.updateQueue=b,u.flags|=4),u.subtreeFlags=0,b=m,m=u.child;m!==null;)C=m,s=b,C.flags&=14680066,$=C.alternate,$===null?(C.childLanes=0,C.lanes=s,C.child=null,C.subtreeFlags=0,C.memoizedProps=null,C.memoizedState=null,C.updateQueue=null,C.dependencies=null,C.stateNode=null):(C.childLanes=$.childLanes,C.lanes=$.lanes,C.child=$.child,C.subtreeFlags=0,C.deletions=null,C.memoizedProps=$.memoizedProps,C.memoizedState=$.memoizedState,C.updateQueue=$.updateQueue,C.type=$.type,s=$.dependencies,C.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext}),m=m.sibling;return xt($t,$t.current&1|2),u.child}s=s.sibling}C.tail!==null&&zt()>Ns&&(u.flags|=128,b=!0,Iu(C,!1),u.lanes=4194304)}else{if(!b)if(s=vf($),s!==null){if(u.flags|=128,b=!0,m=s.updateQueue,m!==null&&(u.updateQueue=m,u.flags|=4),Iu(C,!0),C.tail===null&&C.tailMode==="hidden"&&!$.alternate&&!Nt)return Pn(u),null}else 2*zt()-C.renderingStartTime>Ns&&m!==1073741824&&(u.flags|=128,b=!0,Iu(C,!1),u.lanes=4194304);C.isBackwards?($.sibling=u.child,u.child=$):(m=C.last,m!==null?m.sibling=$:u.child=$,C.last=$)}return C.tail!==null?(u=C.tail,C.rendering=u,C.tail=u.sibling,C.renderingStartTime=zt(),u.sibling=null,m=$t.current,xt($t,b?m&1|2:m&1),u):(Pn(u),null);case 22:case 23:return Tv(),b=u.memoizedState!==null,s!==null&&s.memoizedState!==null!==b&&(u.flags|=8192),b&&(u.mode&1)!==0?(cr&1073741824)!==0&&(Pn(u),u.subtreeFlags&6&&(u.flags|=8192)):Pn(u),null;case 24:return null;case 25:return null}throw Error(n(156,u.tag))}function L8(s,u){switch(Bg(u),u.tag){case 1:return Vn(u.type)&&af(),s=u.flags,s&65536?(u.flags=s&-65537|128,u):null;case 3:return Ps(),Pt(Wn),Pt(kn),Jg(),s=u.flags,(s&65536)!==0&&(s&128)===0?(u.flags=s&-65537|128,u):null;case 5:return Qg(u),null;case 13:if(Pt($t),s=u.memoizedState,s!==null&&s.dehydrated!==null){if(u.alternate===null)throw Error(n(340));As()}return s=u.flags,s&65536?(u.flags=s&-65537|128,u):null;case 19:return Pt($t),null;case 4:return Ps(),null;
vendor: 21,055 bytes, line 40
40case 10:return Vg(u.type._context),null;case 22:case 23:return Tv(),null;case 24:return null;default:return null}}var kf=!1,jn=!1,F8=typeof WeakSet=="function"?WeakSet:Set,Oe=null;function Cs(s,u){var m=s.ref;if(m!==null)if(typeof m=="function")try{m(null)}catch(b){Dt(s,u,b)}else m.current=null}function bv(s,u,m){try{m()}catch(b){Dt(s,u,b)}}var iO=!1;function B8(s,u){if(Tg=Wd,s=ME(),_g(s)){if("selectionStart"in s)var m={start:s.selectionStart,end:s.selectionEnd};else e:{m=(m=s.ownerDocument)&&m.defaultView||window;var b=m.getSelection&&m.getSelection();if(b&&b.rangeCount!==0){m=b.anchorNode;var E=b.anchorOffset,C=b.focusNode;b=b.focusOffset;try{m.nodeType,C.nodeType}catch{m=null;break e}var $=0,H=-1,K=-1,ie=0,he=0,me=s,fe=null;t:for(;;){for(var ke;me!==m||E!==0&&me.nodeType!==3||(H=$+E),me!==C||b!==0&&me.nodeType!==3||(K=$+b),me.nodeType===3&&($+=me.nodeValue.length),(ke=me.firstChild)!==null;)fe=me,me=ke;for(;;){if(me===s)break t;if(fe===m&&++ie===E&&(H=$),fe===C&&++he===b&&(K=$),(ke=me.nextSibling)!==null)break;me=fe,fe=me.parentNode}me=ke}m=H===-1||K===-1?null:{start:H,end:K}}else m=null}m=m||{start:0,end:0}}else m=null;for(Ng={focusedElem:s,selectionRange:m},Wd=!1,Oe=u;Oe!==null;)if(u=Oe,s=u.child,(u.subtreeFlags&1028)!==0&&s!==null)s.return=u,Oe=s;else for(;Oe!==null;){u=Oe;try{var Te=u.alternate;if((u.flags&1024)!==0)switch(u.tag){case 0:case 11:case 15:break;case 1:if(Te!==null){var Ie=Te.memoizedProps,Ut=Te.memoizedState,J=u.stateNode,X=J.getSnapshotBeforeUpdate(u.elementType===u.type?Ie:qr(u.type,Ie),Ut);J.__reactInternalSnapshotBeforeUpdate=X}break;case 3:var ne=u.stateNode.containerInfo;ne.nodeType===1?ne.textContent="":ne.nodeType===9&&ne.documentElement&&ne.removeChild(ne.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(we){Dt(u,u.return,we)}if(s=u.sibling,s!==null){s.return=u.return,Oe=s;break}Oe=u.return}return Te=iO,iO=!1,Te}function $u(s,u,m){var b=u.updateQueue;if(b=b!==null?b.lastEffect:null,b!==null){var E=b=b.next;do{if((E.tag&s)===s){var C=E.destroy;E.destroy=void 0,C!==void 0&&bv(u,m,C)}E=E.next}while(E!==b)}}function Of(s,u){if(u=u.updateQueue,u=u!==null?u.lastEffect:null,u!==null){var m=u=u.next;do{if((m.tag&s)===s){var b=m.create;m.destroy=b()}m=m.next}while(m!==u)}}function xv(s){var u=s.ref;if(u!==null){var m=s.stateNode;switch(s.tag){case 5:s=m;break;default:s=m}typeof u=="function"?u(s):u.current=s}}function oO(s){var u=s.alternate;u!==null&&(s.alternate=null,oO(u)),s.child=null,s.deletions=null,s.sibling=null,s.tag===5&&(u=s.stateNode,u!==null&&(delete u[si],delete u[Au],delete u[Mg],delete u[S8],delete u[_8])),s.stateNode=null,s.return=null,s.dependencies=null,s.memoizedProps=null,s.memoizedState=null,s.pendingProps=null,s.stateNode=null,s.updateQueue=null}function aO(s){return s.tag===5||s.tag===3||s.tag===4}function sO(s){e:for(;;){for(;s.sibling===null;){if(s.return===null||aO(s.return))return null;s=s.return}for(s.sibling.return=s.return,s=s.sibling;s.tag!==5&&s.tag!==6&&s.tag!==18;){if(s.flags&2||s.child===null||s.tag===4)continue e;s.child.return=s,s=s.child}if(!(s.flags&2))return s.stateNode}}function wv(s,u,m){var b=s.tag;if(b===5||b===6)s=s.stateNode,u?m.nodeType===8?m.parentNode.insertBefore(s,u):m.insertBefore(s,u):(m.nodeType===8?(u=m.parentNode,u.insertBefore(s,m)):(u=m,u.appendChild(s)),m=m._reactRootContainer,m!=null||u.onclick!==null||(u.onclick=rf));else if(b!==4&&(s=s.child,s!==null))for(wv(s,u,m),s=s.sibling;s!==null;)wv(s,u,m),s=s.sibling}function Sv(s,u,m){var b=s.tag;if(b===5||b===6)s=s.stateNode,u?m.insertBefore(s,u):m.appendChild(s);else if(b!==4&&(s=s.child,s!==null))for(Sv(s,u,m),s=s.sibling;s!==null;)Sv(s,u,m),s=s.sibling}var xn=null,Hr=!1;function So(s,u,m){for(m=m.child;m!==null;)lO(s,u,m),m=m.sibling}function lO(s,u,m){if(ai&&typeof ai.onCommitFiberUnmount=="function")try{ai.onCommitFiberUnmount(Fd,m)}catch{}switch(m.tag){case 5:jn||Cs(m,u);case 6:var b=xn,E=Hr;xn=null,So(s,u,m),xn=b,Hr=E,xn!==null&&(Hr?(s=xn,m=m.stateNode,s.nodeType===8?s.parentNode.removeChild(m):s.removeChild(m)):xn.removeChild(m.stateNode));break;case 18:xn!==null&&(Hr?(s=xn,m=m.stateNode,s.nodeType===8?$g(s.parentNode,m):s.nodeType===1&&$g(s,m),pu(s)):$g(xn,m.stateNode));break;case 4:b=xn,E=Hr,xn=m.stateNode.containerInfo,Hr=!0,So(s,u,m),xn=b,Hr=E;break;case 0:case 11:case 14:case 15:if(!jn&&(b=m.updateQueue,b!==null&&(b=b.lastEffect,b!==null))){E=b=b.next;do{var C=E,$=C.destroy;C=C.tag,$!==void 0&&((C&2)!==0||(C&4)!==0)&&bv(m,u,$),E=E.next}while(E!==b)}So(s,u,m);break;case 1:if(!jn&&(Cs(m,u),b=m.stateNode,typeof b.componentWillUnmount=="function"))try{b.props=m.memoizedProps,b.state=m.memoizedState,b.componentWillUnmount()}catch(H){Dt(m,u,H)}So(s,u,m);break;case 21:So(s,u,m);break;case 22:m.mode&1?(jn=(b=jn)||m.memoizedState!==null,So(s,u,m),jn=b):So(s,u,m);break;default:So(s,u,m)}}function uO(s){var u=s.updateQueue;if(u!==null){s.updateQueue=null;var m=s.stateNode;m===null&&(m=s.stateNode=new F8),u.forEach(function(b){var E=Y8.bind(null,s,b);m.has(b)||(m.add(b),b.then(E,E))})}}function Wr(s,u){var m=u.deletions;if(m!==null)for(var b=0;b<m.length;b++){var E=m[b];try{var C=s,$=u,H=$;e:for(;H!==null;){switch(H.tag){case 5:xn=H.stateNode,Hr=!1;break e;case 3:xn=H.stateNode.containerInfo,Hr=!0;break e;case 4:xn=H.stateNode.containerInfo,Hr=!0;break e}H=H.return}if(xn===null)throw Error(n(160));lO(C,$,E),xn=null,Hr=!1;var K=E.alternate;K!==null&&(K.return=null),E.return=null}catch(ie){Dt(E,u,ie)}}if(u.subtreeFlags&12854)for(u=u.child;u!==null;)cO(u,s),u=u.sibling}function cO(s,u){var m=s.alternate,b=s.flags;switch(s.tag){case 0:case 11:case 14:case 15:if(Wr(u,s),ci(s),b&4){try{$u(3,s,s.return),Of(3,s)}catch(Ie){Dt(s,s.return,Ie)}try{$u(5,s,s.return)}catch(Ie){Dt(s,s.return,Ie)}}break;case 1:Wr(u,s),ci(s),b&512&&m!==null&&Cs(m,m.return);break;case 5:if(Wr(u,s),ci(s),b&512&&m!==null&&Cs(m,m.return),s.flags&32){var E=s.stateNode;try{it(E,"")}catch(Ie){Dt(s,s.return,Ie)}}if(b&4&&(E=s.stateNode,E!=null)){var C=s.memoizedProps,$=m!==null?m.memoizedProps:C,H=s.type,K=s.updateQueue;if(s.updateQueue=null,K!==null)try{H==="input"&&C.type==="radio"&&C.name!=null&&_e(E,C),oi(H,$);var ie=oi(H,C);for($=0;$<K.length;$+=2){var he=K[$],me=K[$+1];he==="style"?br(E,me):he==="dangerouslySetInnerHTML"?Ge(E,me):he==="children"?it(E,me):_(E,he,me,ie)}switch(H){case"input":Fe(E,C);break;case"textarea":Bt(E,C);break;case"select":var fe=E._wrapperState.wasMultiple;E._wrapperState.wasMultiple=!!C.multiple;var ke=C.value;ke!=null?Ke(E,!!C.multiple,ke,!1):fe!==!!C.multiple&&(C.defaultValue!=null?Ke(E,!!C.multiple,C.defaultValue,!0):Ke(E,!!C.multiple,C.multiple?[]:"",!1))}E[Au]=C}catch(Ie){Dt(s,s.return,Ie)}}break;case 6:if(Wr(u,s),ci(s),b&4){if(s.stateNode===null)throw Error(n(162));E=s.stateNode,C=s.memoizedProps;try{E.nodeValue=C}catch(Ie){Dt(s,s.return,Ie)}}break;case 3:if(Wr(u,s),ci(s),b&4&&m!==null&&m.memoizedState.isDehydrated)try{pu(u.containerInfo)}catch(Ie){Dt(s,s.return,Ie)}break;case 4:Wr(u,s),ci(s);break;case 13:Wr(u,s),ci(s),E=s.child,E.flags&8192&&(C=E.memoizedState!==null,E.stateNode.isHidden=C,!C||E.alternate!==null&&E.alternate.memoizedState!==null||(Ev=zt())),b&4&&uO(s);break;case 22:if(he=m!==null&&m.memoizedState!==null,s.mode&1?(jn=(ie=jn)||he,Wr(u,s),jn=ie):Wr(u,s),ci(s),b&8192){if(ie=s.memoizedState!==null,(s.stateNode.isHidden=ie)&&!he&&(s.mode&1)!==0)for(Oe=s,he=s.child;he!==null;){for(me=Oe=he;Oe!==null;){switch(fe=Oe,ke=fe.child,fe.tag){case 0:case 11:case 14:case 15:$u(4,fe,fe.return);break;case 1:Cs(fe,fe.return);var Te=fe.stateNode;if(typeof Te.componentWillUnmount=="function"){b=fe,m=fe.return;try{u=b,Te.props=u.memoizedProps,Te.state=u.memoizedState,Te.componentWillUnmount()}catch(Ie){Dt(b,m,Ie)}}break;case 5:Cs(fe,fe.return);break;case 22:if(fe.memoizedState!==null){pO(me);continue}}ke!==null?(ke.return=fe,Oe=ke):pO(me)}he=he.sibling}e:for(he=null,me=s;;){if(me.tag===5){if(he===null){he=me;try{E=me.stateNode,ie?(C=E.style,typeof C.setProperty=="function"?C.setProperty("display","none","important"):C.display="none"):(H=me.stateNode,K=me.memoizedProps.style,$=K!=null&&K.hasOwnProperty("display")?K.display:null,H.style.display=Vt("display",$))}catch(Ie){Dt(s,s.return,Ie)}}}else if(me.tag===6){if(he===null)try{me.stateNode.nodeValue=ie?"":me.memoizedProps}catch(Ie){Dt(s,s.return,Ie)}}else if((me.tag!==22&&me.tag!==23||me.memoizedState===null||me===s)&&me.child!==null){me.child.return=me,me=me.child;continue}if(me===s)break e;for(;me.sibling===null;){if(me.return===null||me.return===s)break e;he===me&&(he=null),me=me.return}he===me&&(he=null),me.sibling.return=me.return,me=me.sibling}}break;case 19:Wr(u,s),ci(s),b&4&&uO(s);break;case 21:break;default:Wr(u,s),ci(s)}}function ci(s){var u=s.flags;if(u&2){try{e:{for(var m=s.return;m!==null;){if(aO(m)){var b=m;break e}m=m.return}throw Error(n(160))}switch(b.tag){case 5:var E=b.stateNode;b.flags&32&&(it(E,""),b.flags&=-33);var C=sO(s);Sv(s,C,E);break;case 3:case 4:var $=b.stateNode.containerInfo,H=sO(s);wv(s,H,$);break;default:throw Error(n(161))}}catch(K){Dt(s,s.return,K)}s.flags&=-3}u&4096&&(s.flags&=-4097)}function z8(s,u,m){Oe=s,dO(s)}function dO(s,u,m){for(var b=(s.mode&1)!==0;Oe!==null;){var E=Oe,C=E.child;if(E.tag===22&&b){var $=E.memoizedState!==null||kf;if(!$){var H=E.alternate,K=H!==null&&H.memoizedState!==null||jn;H=kf;var ie=jn;if(kf=$,(jn=K)&&!ie)for(Oe=E;Oe!==null;)$=Oe,K=$.child,$.tag===22&&$.memoizedState!==null?hO(E):K!==null?(K.return=$,Oe=K):hO(E);for(;C!==null;)Oe=C,dO(C),C=C.sibling;Oe=E,kf=H,jn=ie}fO(s)}else(E.subtreeFlags&8772)!==0&&C!==null?(C.return=E,Oe=C):fO(s)}}function fO(s){for(;Oe!==null;){var u=Oe;if((u.flags&8772)!==0){var m=u.alternate;try{if((u.flags&8772)!==0)switch(u.tag){case 0:case 11:case 15:jn||Of(5,u);break;case 1:var b=u.stateNode;if(u.flags&4&&!jn)if(m===null)b.componentDidMount();else{var E=u.elementType===u.type?m.memoizedProps:qr(u.type,m.memoizedProps);b.componentDidUpdate(E,m.memoizedState,b.__reactInternalSnapshotBeforeUpdate)}var C=u.updateQueue;C!==null&&pk(u,C,b);break;case 3:var $=u.updateQueue;if($!==null){if(m=null,u.child!==null)switch(u.child.tag){case 5:m=u.child.stateNode;break;case 1:m=u.child.stateNode}pk(u,$,m)}break;case 5:var H=u.stateNode;if(m===null&&u.flags&4){m=H;var K=u.memoizedProps;switch(u.type){case"button":case"input":case"select":case"textarea":K.autoFocus&&m.focus();break;case"img":K.src&&(m.src=K.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(u.memoizedState===null){var ie=u.alternate;if(ie!==null){var he=ie.memoizedState;if(he!==null){var me=he.dehydrated;me!==null&&pu(me)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}jn||u.flags&512&&xv(u)}catch(fe){Dt(u,u.return,fe)}}if(u===s){Oe=null;break}if(m=u.sibling,m!==null){m.return=u.return,Oe=m;break}Oe=u.return}}function pO(s){for(;Oe!==null;){var u=Oe;if(u===s){Oe=null;break}var m=u.sibling;if(m!==null){m.return=u.return,Oe=m;break}Oe=u.return}}function hO(s){for(;Oe!==null;){var u=Oe;try{switch(u.tag){case 0:case 11:case 15:var m=u.return;try{Of(4,u)}catch(K){Dt(u,m,K)}break;case 1:var b=u.stateNode;if(typeof b.componentDidMount=="function"){var E=u.return;try{b.componentDidMount()}catch(K){Dt(u,E,K)}}var C=u.return;try{xv(u)}catch(K){Dt(u,C,K)}break;case 5:var $=u.return;try{xv(u)}catch(K){Dt(u,$,K)}}}catch(K){Dt(u,u.return,K)}if(u===s){Oe=null;break}var H=u.sibling;if(H!==null){H.return=u.return,Oe=H;break}Oe=u.return}}var U8=Math.ceil,Pf=j.ReactCurrentDispatcher,_v=j.ReactCurrentOwner,Ar=j.ReactCurrentBatchConfig,st=0,cn=null,Kt=null,wn=0,cr=0,Ts=vo(0),tn=0,Mu=null,fa=0,jf=0,Av=0,Du=null,Gn=null,Ev=0,Ns=1/0,Di=null,Cf=!1,kv=null,_o=null,Tf=!1,Ao=null,Nf=0,Lu=0,Ov=null,Rf=-1,If=0;function Bn(){return(st&6)!==0?zt():Rf!==-1?Rf:Rf=zt()}function Eo(s){return(s.mode&1)===0?1:(st&2)!==0&&wn!==0?wn&-wn:E8.transition!==null?(If===0&&(If=sE()),If):(s=mt,s!==0||(s=window.event,s=s===void 0?16:gE(s.type)),s)}function Vr(s,u,m,b){if(50<Lu)throw Lu=0,Ov=null,Error(n(185));lu(s,m,b),((st&2)===0||s!==cn)&&(s===cn&&((st&2)===0&&(jf|=m),tn===4&&ko(s,wn)),Yn(s,b),m===1&&st===0&&(u.mode&1)===0&&(Ns=zt()+500,lf&&bo()))}function Yn(s,u){var m=s.callbackNode;E5(s,u);var b=Ud(s,s===cn?wn:0);if(b===0)m!==null&&iE(m),s.callbackNode=null,s.callbackPriority=0;else if(u=b&-b,s.callbackPriority!==u){if(m!=null&&iE(m),u===1)s.tag===0?A8(gO.bind(null,s)):tk(gO.bind(null,s)),x8(function(){(st&6)===0&&bo()}),m=null;else{switch(lE(b)){case 1:m=ag;break;case 4:m=oE;break;case 16:m=Ld;break;case 536870912:m=aE;break;default:m=Ld}m=AO(m,mO.bind(null,s))}s.callbackPriority=u,s.callbackNode=m}}function mO(s,u){if(Rf=-1,If=0,(st&6)!==0)throw Error(n(327));var m=s.callbackNode;if(Rs()&&s.callbackNode!==m)return null;var b=Ud(s,s===cn?wn:0);if(b===0)return null;if((b&30)!==0||(b&s.expiredLanes)!==0||u)u=$f(s,b);else{u=b;var E=st;st|=2;var C=yO();(cn!==s||wn!==u)&&(Di=null,Ns=zt()+500,ha(s,u));do try{W8();break}catch(H){vO(s,H)}while(!0);Wg(),Pf.current=C,st=E,Kt!==null?u=0:(cn=null,wn=0,u=tn)}if(u!==0){if(u===2&&(E=sg(s),E!==0&&(b=E,u=Pv(s,E))),u===1)throw m=Mu,ha(s,0),ko(s,b),Yn(s,zt()),m;if(u===6)ko(s,b);else{if(E=s.current.alternate,(b&30)===0&&!q8(E)&&(u=$f(s,b),u===2&&(C=sg(s),C!==0&&(b=C,u=Pv(s,C))),u===1))throw m=Mu,ha(s,0),ko(s,b),Yn(s,zt()),m;switch(s.finishedWork=E,s.finishedLanes=b,u){case 0:case 1:throw Error(n(345));case 2:ma(s,Gn,Di);break;case 3:if(ko(s,b),(b&130023424)===b&&(u=Ev+500-zt(),10<u)){if(Ud(s,0)!==0)break;if(E=s.suspendedLanes,(E&b)!==b){Bn(),s.pingedLanes|=s.suspendedLanes&E;break}s.timeoutHandle=Ig(ma.bind(null,s,Gn,Di),u);break}ma(s,Gn,Di);break;case 4:if(ko(s,b),(b&4194240)===b)break;for(u=s.eventTimes,E=-1;0<b;){var $=31-Br(b);C=1<<$,$=u[$],$>E&&(E=$),b&=~C}if(b=E,b=zt()-b,b=(120>b?120:480>b?480:1080>b?1080:1920>b?1920:3e3>b?3e3:4320>b?4320:1960*U8(b/1960))-b,10<b){s.timeoutHandle=Ig(ma.bind(null,s,Gn,Di),b);break}ma(s,Gn,Di);break;case 5:ma(s,Gn,Di);break;default:throw Error(n(329))}}}return Yn(s,zt()),s.callbackNode===m?mO.bind(null,s):null}function Pv(s,u){var m=Du;return s.current.memoizedState.isDehydrated&&(ha(s,u).flags|=256),s=$f(s,u),s!==2&&(u=Gn,Gn=m,u!==null&&jv(u)),s}function jv(s){Gn===null?Gn=s:Gn.push.apply(Gn,s)}function q8(s){for(var u=s;;){if(u.flags&16384){var m=u.updateQueue;if(m!==null&&(m=m.stores,m!==null))for(var b=0;b<m.length;b++){var E=m[b],C=E.getSnapshot;E=E.value;try{if(!zr(C(),E))return!1}catch{return!1}}}if(m=u.child,u.subtreeFlags&16384&&m!==null)m.return=u,u=m;else{if(u===s)break;for(;u.sibling===null;){if(u.return===null||u.return===s)return!0;u=u.return}u.sibling.return=u.return,u=u.sibling}}return!0}function ko(s,u){for(u&=~Av,u&=~jf,s.suspendedLanes|=u,s.pingedLanes&=~u,s=s.expirationTimes;0<u;){var m=31-Br(u),b=1<<m;s[m]=-1,u&=~b}}function gO(s){if((st&6)!==0)throw Error(n(327));Rs();var u=Ud(s,0);if((u&1)===0)return Yn(s,zt()),null;var m=$f(s,u);if(s.tag!==0&&m===2){var b=sg(s);b!==0&&(u=b,m=Pv(s,b))}if(m===1)throw m=Mu,ha(s,0),ko(s,u),Yn(s,zt()),m;if(m===6)throw Error(n(345));return s.finishedWork=s.current.alternate,s.finishedLanes=u,ma(s,Gn,Di),Yn(s,zt()),null}function Cv(s,u){var m=st;st|=1;try{return s(u)}finally{st=m,st===0&&(Ns=zt()+500,lf&&bo())}}function pa(s){Ao!==null&&Ao.tag===0&&(st&6)===0&&Rs();var u=st;st|=1;var m=Ar.transition,b=mt;try{if(Ar.transition=null,mt=1,s)return s()}finally{mt=b,Ar.transition=m,st=u,(st&6)===0&&bo()}}function Tv(){cr=Ts.current,Pt(Ts)}function ha(s,u){s.finishedWork=null,s.finishedLanes=0;var m=s.timeoutHandle;if(m!==-1&&(s.timeoutHandle=-1,b8(m)),Kt!==null)for(m=Kt.return;m!==null;){var b=m;switch(Bg(b),b.tag){case 1:b=b.type.childContextTypes,b!=null&&af();break;case 3:Ps(),Pt(Wn),Pt(kn),Jg();break;case 5:Qg(b);break;case 4:Ps();break;case 13:Pt($t);break;case 19:Pt($t);break;case 10:Vg(b.type._context);break;case 22:case 23:Tv()}m=m.return}if(cn=s,Kt=s=Oo(s.current,null),wn=cr=u,tn=0,Mu=null,Av=jf=fa=0,Gn=Du=null,ua!==null){for(u=0;u<ua.length;u++)if(m=ua[u],b=m.interleaved,b!==null){m.interleaved=null;var E=b.next,C=m.pending;if(C!==null){var $=C.next;C.next=E,b.next=$}m.pending=b}ua=null}return s}function vO(s,u){do{var m=Kt;try{if(Wg(),yf.current=Sf,bf){for(var b=Mt.memoizedState;b!==null;){var E=b.queue;E!==null&&(E.pending=null),b=b.next}bf=!1}if(da=0,un=en=Mt=null,Cu=!1,Tu=0,_v.current=null,m===null||m.return===null){tn=1,Mu=u,Kt=null;break}e:{var C=s,$=m.return,H=m,K=u;if(u=wn,H.flags|=32768,K!==null&&typeof K=="object"&&typeof K.then=="function"){var ie=K,he=H,me=he.tag;if((he.mode&1)===0&&(me===0||me===11||me===15)){var fe=he.alternate;fe?(he.updateQueue=fe.updateQueue,he.memoizedState=fe.memoizedState,he.lanes=fe.lanes):(he.updateQueue=null,he.memoizedState=null)}var ke=Uk($);if(ke!==null){ke.flags&=-257,qk(ke,$,H,C,u),ke.mode&1&&zk(C,ie,u),u=ke,K=ie;var Te=u.updateQueue;if(Te===null){var Ie=new Set;Ie.add(K),u.updateQueue=Ie}else Te.add(K);break e}else{if((u&1)===0){zk(C,ie,u),Nv();break e}K=Error(n(426))}}else if(Nt&&H.mode&1){var Ut=Uk($);if(Ut!==null){(Ut.flags&65536)===0&&(Ut.flags|=256),qk(Ut,$,H,C,u),qg(js(K,H));break e}}C=K=js(K,H),tn!==4&&(tn=2),Du===null?Du=[C]:Du.push(C),C=$;do{switch(C.tag){case 3:C.flags|=65536,u&=-u,C.lanes|=u;var J=Fk(C,K,u);fk(C,J);break e;case 1:H=K;var X=C.type,ne=C.stateNode;if((C.flags&128)===0&&(typeof X.getDerivedStateFromError=="function"||ne!==null&&typeof ne.componentDidCatch=="function"&&(_o===null||!_o.has(ne)))){C.flags|=65536,u&=-u,C.lanes|=u;var we=Bk(C,H,u);fk(C,we);break e}}C=C.return}while(C!==null)}xO(m)}catch($e){u=$e,Kt===m&&m!==null&&(Kt=m=m.return);continue}break}while(!0)}function yO(){var s=Pf.current;return Pf.current=Sf,s===null?Sf:s}function Nv(){(tn===0||tn===3||tn===2)&&(tn=4),cn===null||(fa&268435455)===0&&(jf&268435455)===0||ko(cn,wn)}function $f(s,u){var m=st;st|=2;var b=yO();(cn!==s||wn!==u)&&(Di=null,ha(s,u));do try{H8();break}catch(E){vO(s,E)}while(!0);if(Wg(),st=m,Pf.current=b,Kt!==null)throw Error(n(261));return cn=null,wn=0,tn}function H8(){for(;Kt!==null;)bO(Kt)}function W8(){for(;Kt!==null&&!g5();)bO(Kt)}function bO(s){var u=_O(s.alternate,s,cr);s.memoizedProps=s.pendingProps,u===null?xO(s):Kt=u,_v.current=null}function xO(s){var u=s;do{var m=u.alternate;if(s=u.return,(u.flags&32768)===0){if(m=D8(m,u,cr),m!==null){Kt=m;return}}else{if(m=L8(m,u),m!==null){m.flags&=32767,Kt=m;return}if(s!==null)s.flags|=32768,s.subtreeFlags=0,s.deletions=null;else{tn=6,Kt=null;return}}if(u=u.sibling,u!==null){Kt=u;return}Kt=u=s}while(u!==null);tn===0&&(tn=5)}function ma(s,u,m){var b=mt,E=Ar.transition;try{Ar.transition=null,mt=1,V8(s,u,m,b)}finally{Ar.transition=E,mt=b}return null}function V8(s,u,m,b){do Rs();while(Ao!==null);if((st&6)!==0)throw Error(n(327));m=s.finishedWork;var E=s.finishedLanes;if(m===null)return null;if(s.finishedWork=null,s.finishedLanes=0,m===s.current)throw Error(n(177));s.callbackNode=null,s.callbackPriority=0;var C=m.lanes|m.childLanes;if(k5(s,C),s===cn&&(Kt=cn=null,wn=0),(m.subtreeFlags&2064)===0&&(m.flags&2064)===0||Tf||(Tf=!0,AO(Ld,function(){return Rs(),null})),C=(m.flags&15990)!==0,(m.subtreeFlags&15990)!==0||C){C=Ar.transition,Ar.transition=null;var $=mt;mt=1;var H=st;st|=4,_v.current=null,B8(s,m),cO(m,s),f8(Ng),Wd=!!Tg,Ng=Tg=null,s.current=m,z8(m),v5(),st=H,mt=$,Ar.transition=C}else s.current=m;if(Tf&&(Tf=!1,Ao=s,Nf=E),C=s.pendingLanes,C===0&&(_o=null),x5(m.stateNode),Yn(s,zt()),u!==null)for(b=s.onRecoverableError,m=0;m<u.length;m++)E=u[m],b(E.value,{componentStack:E.stack,digest:E.digest});if(Cf)throw Cf=!1,s=kv,kv=null,s;return(Nf&1)!==0&&s.tag!==0&&Rs(),C=s.pendingLanes,(C&1)!==0?s===Ov?Lu++:(Lu=0,Ov=s):Lu=0,bo(),null}function Rs(){if(Ao!==null){var s=lE(Nf),u=Ar.transition,m=mt;try{if(Ar.transition=null,mt=16>s?16:s,Ao===null)var b=!1;else{if(s=Ao,Ao=null,Nf=0,(st&6)!==0)throw Error(n(331));var E=st;for(st|=4,Oe=s.current;Oe!==null;){var C=Oe,$=C.child;if((Oe.flags&16)!==0){var H=C.deletions;if(H!==null){for(var K=0;K<H.length;K++){var ie=H[K];for(Oe=ie;Oe!==null;){var he=Oe;switch(he.tag){case 0:case 11:case 15:$u(8,he,C)}var me=he.child;if(me!==null)me.return=he,Oe=me;else for(;Oe!==null;){he=Oe;var fe=he.sibling,ke=he.return;if(oO(he),he===ie){Oe=null;break}if(fe!==null){fe.return=ke,Oe=fe;break}Oe=ke}}}var Te=C.alternate;if(Te!==null){var Ie=Te.child;if(Ie!==null){Te.child=null;do{var Ut=Ie.sibling;Ie.sibling=null,Ie=Ut}while(Ie!==null)}}Oe=C}}if((C.subtreeFlags&2064)!==0&&$!==null)$.return=C,Oe=$;else e:for(;Oe!==null;){if(C=Oe,(C.flags&2048)!==0)switch(C.tag){case 0:case 11:case 15:$u(9,C,C.return)}var J=C.sibling;if(J!==null){J.return=C.return,Oe=J;break e}Oe=C.return}}var X=s.current;for(Oe=X;Oe!==null;){$=Oe;var ne=$.child;if(($.subtreeFlags&2064)!==0&&ne!==null)ne.return=$,Oe=ne;else e:for($=X;Oe!==null;){if(H=Oe,(H.flags&2048)!==0)try{switch(H.tag){case 0:case 11:case 15:Of(9,H)}}catch($e){Dt(H,H.return,$e)}if(H===$){Oe=null;break e}var we=H.sibling;if(we!==null){we.return=H.return,Oe=we;break e}Oe=H.return}}if(st=E,bo(),ai&&typeof ai.onPostCommitFiberRoot=="function")try{ai.onPostCommitFiberRoot(Fd,s)}catch{}b=!0}return b}finally{mt=m,Ar.transition=u}}return!1}
vendor: 4,617 bytes, line 40
40function wO(s,u,m){u=js(m,u),u=Fk(s,u,1),s=wo(s,u,1),u=Bn(),s!==null&&(lu(s,1,u),Yn(s,u))}function Dt(s,u,m){if(s.tag===3)wO(s,s,m);else for(;u!==null;){if(u.tag===3){wO(u,s,m);break}else if(u.tag===1){var b=u.stateNode;if(typeof u.type.getDerivedStateFromError=="function"||typeof b.componentDidCatch=="function"&&(_o===null||!_o.has(b))){s=js(m,s),s=Bk(u,s,1),u=wo(u,s,1),s=Bn(),u!==null&&(lu(u,1,s),Yn(u,s));break}}u=u.return}}function K8(s,u,m){var b=s.pingCache;b!==null&&b.delete(u),u=Bn(),s.pingedLanes|=s.suspendedLanes&m,cn===s&&(wn&m)===m&&(tn===4||tn===3&&(wn&130023424)===wn&&500>zt()-Ev?ha(s,0):Av|=m),Yn(s,u)}function SO(s,u){u===0&&((s.mode&1)===0?u=1:(u=zd,zd<<=1,(zd&130023424)===0&&(zd=4194304)));var m=Bn();s=Ii(s,u),s!==null&&(lu(s,u,m),Yn(s,m))}function G8(s){var u=s.memoizedState,m=0;u!==null&&(m=u.retryLane),SO(s,m)}function Y8(s,u){var m=0;switch(s.tag){case 13:var b=s.stateNode,E=s.memoizedState;E!==null&&(m=E.retryLane);break;case 19:b=s.stateNode;break;default:throw Error(n(314))}b!==null&&b.delete(u),SO(s,m)}var _O;_O=function(s,u,m){if(s!==null)if(s.memoizedProps!==u.pendingProps||Wn.current)Kn=!0;else{if((s.lanes&m)===0&&(u.flags&128)===0)return Kn=!1,M8(s,u,m);Kn=(s.flags&131072)!==0}else Kn=!1,Nt&&(u.flags&1048576)!==0&&nk(u,cf,u.index);switch(u.lanes=0,u.tag){case 2:var b=u.type;Ef(s,u),s=u.pendingProps;var E=ws(u,kn.current);Os(u,m),E=nv(null,u,b,s,E,m);var C=rv();return u.flags|=1,typeof E=="object"&&E!==null&&typeof E.render=="function"&&E.$$typeof===void 0?(u.tag=1,u.memoizedState=null,u.updateQueue=null,Vn(b)?(C=!0,sf(u)):C=!1,u.memoizedState=E.state!==null&&E.state!==void 0?E.state:null,Yg(u),E.updater=_f,u.stateNode=E,E._reactInternals=u,uv(u,b,s,m),u=pv(null,u,b,!0,C,m)):(u.tag=0,Nt&&C&&Fg(u),Fn(null,u,E,m),u=u.child),u;case 16:b=u.elementType;e:{switch(Ef(s,u),s=u.pendingProps,E=b._init,b=E(b._payload),u.type=b,E=u.tag=Q8(b),s=qr(b,s),E){case 0:u=fv(null,u,b,s,m);break e;case 1:u=Yk(null,u,b,s,m);break e;case 11:u=Hk(null,u,b,s,m);break e;case 14:u=Wk(null,u,b,qr(b.type,s),m);break e}throw Error(n(306,b,""))}return u;case 0:return b=u.type,E=u.pendingProps,E=u.elementType===b?E:qr(b,E),fv(s,u,b,E,m);case 1:return b=u.type,E=u.pendingProps,E=u.elementType===b?E:qr(b,E),Yk(s,u,b,E,m);case 3:e:{if(Xk(u),s===null)throw Error(n(387));b=u.pendingProps,C=u.memoizedState,E=C.element,dk(s,u),gf(u,b,null,m);var $=u.memoizedState;if(b=$.element,C.isDehydrated)if(C={element:b,isDehydrated:!1,cache:$.cache,pendingSuspenseBoundaries:$.pendingSuspenseBoundaries,transitions:$.transitions},u.updateQueue.baseState=C,u.memoizedState=C,u.flags&256){E=js(Error(n(423)),u),u=Qk(s,u,b,m,E);break e}else if(b!==E){E=js(Error(n(424)),u),u=Qk(s,u,b,m,E);break e}else for(ur=go(u.stateNode.containerInfo.firstChild),lr=u,Nt=!0,Ur=null,m=uk(u,null,b,m),u.child=m;m;)m.flags=m.flags&-3|4096,m=m.sibling;else{if(As(),b===E){u=Mi(s,u,m);break e}Fn(s,u,b,m)}u=u.child}return u;case 5:return hk(u),s===null&&Ug(u),b=u.type,E=u.pendingProps,C=s!==null?s.memoizedProps:null,$=E.children,Rg(b,E)?$=null:C!==null&&Rg(b,C)&&(u.flags|=32),Gk(s,u),Fn(s,u,$,m),u.child;case 6:return s===null&&Ug(u),null;case 13:return Zk(s,u,m);case 4:return Xg(u,u.stateNode.containerInfo),b=u.pendingProps,s===null?u.child=Es(u,null,b,m):Fn(s,u,b,m),u.child;case 11:return b=u.type,E=u.pendingProps,E=u.elementType===b?E:qr(b,E),Hk(s,u,b,E,m);case 7:return Fn(s,u,u.pendingProps,m),u.child;case 8:return Fn(s,u,u.pendingProps.children,m),u.child;case 12:return Fn(s,u,u.pendingProps.children,m),u.child;case 10:e:{if(b=u.type._context,E=u.pendingProps,C=u.memoizedProps,$=E.value,xt(pf,b._currentValue),b._currentValue=$,C!==null)if(zr(C.value,$)){if(C.children===E.children&&!Wn.current){u=Mi(s,u,m);break e}}else for(C=u.child,C!==null&&(C.return=u);C!==null;){var H=C.dependencies;if(H!==null){$=C.child;for(var K=H.firstContext;K!==null;){if(K.context===b){if(C.tag===1){K=$i(-1,m&-m),K.tag=2;var ie=C.updateQueue;if(ie!==null){ie=ie.shared;var he=ie.pending;he===null?K.next=K:(K.next=he.next,he.next=K),ie.pending=K}}C.lanes|=m,K=C.alternate,K!==null&&(K.lanes|=m),Kg(C.return,m,u),H.lanes|=m;break}K=K.next}}else if(C.tag===10)$=C.type===u.type?null:C.child;else if(C.tag===18){if($=C.return,$===null)throw Error(n(341));$.lanes|=m,H=$.alternate,H!==null&&(H.lanes|=m),Kg($,m,u),$=C.sibling}else $=C.child;if($!==null)$.return=C;else for($=C;$!==null;){if($===u){$=null;break}if(C=$.sibling,C!==null){C.return=$.return,$=C;break}$=$.return}C=$}Fn(s,u,E.children,m),u=u.child}return u;case 9:return E=u.type,b=u.pendingProps.children,Os(u,m),E=Sr(E),b=b(E),u.flags|=1,Fn(s,u,b,m),u.child;
vendor: 8,047 bytes, line 40
40case 14:return b=u.type,E=qr(b,u.pendingProps),E=qr(b.type,E),Wk(s,u,b,E,m);case 15:return Vk(s,u,u.type,u.pendingProps,m);case 17:return b=u.type,E=u.pendingProps,E=u.elementType===b?E:qr(b,E),Ef(s,u),u.tag=1,Vn(b)?(s=!0,sf(u)):s=!1,Os(u,m),Dk(u,b,E),uv(u,b,E,m),pv(null,u,b,!0,s,m);case 19:return eO(s,u,m);case 22:return Kk(s,u,m)}throw Error(n(156,u.tag))};function AO(s,u){return rE(s,u)}function X8(s,u,m,b){this.tag=s,this.key=m,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=u,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=b,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Er(s,u,m,b){return new X8(s,u,m,b)}function Rv(s){return s=s.prototype,!(!s||!s.isReactComponent)}function Q8(s){if(typeof s=="function")return Rv(s)?1:0;if(s!=null){if(s=s.$$typeof,s===D)return 11;if(s===U)return 14}return 2}function Oo(s,u){var m=s.alternate;return m===null?(m=Er(s.tag,u,s.key,s.mode),m.elementType=s.elementType,m.type=s.type,m.stateNode=s.stateNode,m.alternate=s,s.alternate=m):(m.pendingProps=u,m.type=s.type,m.flags=0,m.subtreeFlags=0,m.deletions=null),m.flags=s.flags&14680064,m.childLanes=s.childLanes,m.lanes=s.lanes,m.child=s.child,m.memoizedProps=s.memoizedProps,m.memoizedState=s.memoizedState,m.updateQueue=s.updateQueue,u=s.dependencies,m.dependencies=u===null?null:{lanes:u.lanes,firstContext:u.firstContext},m.sibling=s.sibling,m.index=s.index,m.ref=s.ref,m}function Mf(s,u,m,b,E,C){var $=2;if(b=s,typeof s=="function")Rv(s)&&($=1);else if(typeof s=="string")$=5;else e:switch(s){case T:return ga(m.children,E,C,u);case N:$=8,E|=8;break;case I:return s=Er(12,m,u,E|2),s.elementType=I,s.lanes=C,s;case L:return s=Er(13,m,u,E),s.elementType=L,s.lanes=C,s;case B:return s=Er(19,m,u,E),s.elementType=B,s.lanes=C,s;case Z:return Df(m,E,C,u);default:if(typeof s=="object"&&s!==null)switch(s.$$typeof){case z:$=10;break e;case F:$=9;break e;case D:$=11;break e;case U:$=14;break e;case G:$=16,b=null;break e}throw Error(n(130,s==null?s:typeof s,""))}return u=Er($,m,u,E),u.elementType=s,u.type=b,u.lanes=C,u}function ga(s,u,m,b){return s=Er(7,s,b,u),s.lanes=m,s}function Df(s,u,m,b){return s=Er(22,s,b,u),s.elementType=Z,s.lanes=m,s.stateNode={isHidden:!1},s}function Iv(s,u,m){return s=Er(6,s,null,u),s.lanes=m,s}function $v(s,u,m){return u=Er(4,s.children!==null?s.children:[],s.key,u),u.lanes=m,u.stateNode={containerInfo:s.containerInfo,pendingChildren:null,implementation:s.implementation},u}function Z8(s,u,m,b,E){this.tag=u,this.containerInfo=s,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=lg(0),this.expirationTimes=lg(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=lg(0),this.identifierPrefix=b,this.onRecoverableError=E,this.mutableSourceEagerHydrationData=null}function Mv(s,u,m,b,E,C,$,H,K){return s=new Z8(s,u,m,H,K),u===1?(u=1,C===!0&&(u|=8)):u=0,C=Er(3,null,null,u),s.current=C,C.stateNode=s,C.memoizedState={element:b,isDehydrated:m,cache:null,transitions:null,pendingSuspenseBoundaries:null},Yg(C),s}function J8(s,u,m){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:O,key:b==null?null:""+b,children:s,containerInfo:u,implementation:m}}function EO(s){if(!s)return yo;s=s._reactInternals;e:{if(ia(s)!==s||s.tag!==1)throw Error(n(170));var u=s;do{switch(u.tag){case 3:u=u.stateNode.context;break e;case 1:if(Vn(u.type)){u=u.stateNode.__reactInternalMemoizedMergedChildContext;break e}}u=u.return}while(u!==null);throw Error(n(171))}if(s.tag===1){var m=s.type;if(Vn(m))return JE(s,m,u)}return u}function kO(s,u,m,b,E,C,$,H,K){return s=Mv(m,b,!0,s,E,C,$,H,K),s.context=EO(null),m=s.current,b=Bn(),E=Eo(m),C=$i(b,E),C.callback=u??null,wo(m,C,E),s.current.lanes=E,lu(s,E,b),Yn(s,b),s}function Lf(s,u,m,b){var E=u.current,C=Bn(),$=Eo(E);return m=EO(m),u.context===null?u.context=m:u.pendingContext=m,u=$i(C,$),u.payload={element:s},b=b===void 0?null:b,b!==null&&(u.callback=b),s=wo(E,u,$),s!==null&&(Vr(s,E,$,C),mf(s,E,$)),$}function Ff(s){if(s=s.current,!s.child)return null;switch(s.child.tag){case 5:return s.child.stateNode;default:return s.child.stateNode}}function OO(s,u){if(s=s.memoizedState,s!==null&&s.dehydrated!==null){var m=s.retryLane;s.retryLane=m!==0&&m<u?m:u}}function Dv(s,u){OO(s,u),(s=s.alternate)&&OO(s,u)}function eU(){return null}var PO=typeof reportError=="function"?reportError:function(s){console.error(s)};function Lv(s){this._internalRoot=s}Bf.prototype.render=Lv.prototype.render=function(s){var u=this._internalRoot;if(u===null)throw Error(n(409));Lf(s,u,null,null)},Bf.prototype.unmount=Lv.prototype.unmount=function(){var s=this._internalRoot;if(s!==null){this._internalRoot=null;var u=s.containerInfo;pa(function(){Lf(null,s,null,null)}),u[Ci]=null}};function Bf(s){this._internalRoot=s}Bf.prototype.unstable_scheduleHydration=function(s){if(s){var u=dE();s={blockedOn:null,target:s,priority:u};for(var m=0;m<po.length&&u!==0&&u<po[m].priority;m++);po.splice(m,0,s),m===0&&hE(s)}};function Fv(s){return!(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11)}function zf(s){return!(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11&&(s.nodeType!==8||s.nodeValue!==" react-mount-point-unstable "))}function jO(){}function tU(s,u,m,b,E){if(E){if(typeof b=="function"){var C=b;b=function(){var ie=Ff($);C.call(ie)}}var $=kO(u,b,s,0,null,!1,!1,"",jO);return s._reactRootContainer=$,s[Ci]=$.current,Su(s.nodeType===8?s.parentNode:s),pa(),$}for(;E=s.lastChild;)s.removeChild(E);if(typeof b=="function"){var H=b;b=function(){var ie=Ff(K);H.call(ie)}}var K=Mv(s,0,!1,null,null,!1,!1,"",jO);return s._reactRootContainer=K,s[Ci]=K.current,Su(s.nodeType===8?s.parentNode:s),pa(function(){Lf(u,K,m,b)}),K}function Uf(s,u,m,b,E){var C=m._reactRootContainer;if(C){var $=C;if(typeof E=="function"){var H=E;E=function(){var K=Ff($);H.call(K)}}Lf(u,$,s,E)}else $=tU(m,u,s,E,b);return Ff($)}uE=function(s){switch(s.tag){case 3:var u=s.stateNode;if(u.current.memoizedState.isDehydrated){var m=su(u.pendingLanes);m!==0&&(ug(u,m|1),Yn(u,zt()),(st&6)===0&&(Ns=zt()+500,bo()))}break;case 13:pa(function(){var b=Ii(s,1);if(b!==null){var E=Bn();Vr(b,s,1,E)}}),Dv(s,1)}},cg=function(s){if(s.tag===13){var u=Ii(s,134217728);if(u!==null){var m=Bn();Vr(u,s,134217728,m)}Dv(s,134217728)}},cE=function(s){if(s.tag===13){var u=Eo(s),m=Ii(s,u);if(m!==null){var b=Bn();Vr(m,s,u,b)}Dv(s,u)}},dE=function(){return mt},fE=function(s,u){var m=mt;try{return mt=s,u()}finally{mt=m}},ng=function(s,u,m){switch(u){case"input":if(Fe(s,m),u=m.name,m.type==="radio"&&u!=null){for(m=s;m.parentNode;)m=m.parentNode;for(m=m.querySelectorAll("input[name="+JSON.stringify(""+u)+'][type="radio"]'),u=0;u<m.length;u++){var b=m[u];if(b!==s&&b.form===s.form){var E=of(b);if(!E)throw Error(n(90));se(b),Fe(b,E)}}}break;case"textarea":Bt(s,m);break;case"select":u=m.value,u!=null&&Ke(s,!!m.multiple,u,!1)}},XA=Cv,QA=pa;var nU={usingClientEntryPoint:!1,Events:[Eu,bs,of,GA,YA,Cv]},Fu={findFiberByHostInstance:oa,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},rU={bundleType:Fu.bundleType,version:Fu.version,rendererPackageName:Fu.rendererPackageName,rendererConfig:Fu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:j.ReactCurrentDispatcher,findHostInstanceByFiber:function(s){return s=tE(s),s===null?null:s.stateNode},findFiberByHostInstance:Fu.findFiberByHostInstance||eU,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};
40if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var qf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!qf.isDisabled&&qf.supportsFiber)try{Fd=qf.inject(rU),ai=qf}catch{}}return Xn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=nU,Xn.createPortal=function(s,u){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Fv(u))throw Error(n(200));return J8(s,u,null,m)},Xn.createRoot=function(s,u){if(!Fv(s))throw Error(n(299));var m=!1,b="",E=PO;return u!=null&&(u.unstable_strictMode===!0&&(m=!0),u.identifierPrefix!==void 0&&(b=u.identifierPrefix),u.onRecoverableError!==void 0&&(E=u.onRecoverableError)),u=Mv(s,1,!1,null,null,m,!1,b,E),s[Ci]=u.current,Su(s.nodeType===8?s.parentNode:s),new Lv(u)},Xn.findDOMNode=function(s){if(s==null)return null;if(s.nodeType===1)return s;var u=s._reactInternals;if(u===void 0)throw typeof s.render=="function"?Error(n(188)):(s=Object.keys(s).join(","),Error(n(268,s)));return s=tE(u),s=s===null?null:s.stateNode,s},Xn.flushSync=function(s){return pa(s)},Xn.hydrate=function(s,u,m){if(!zf(u))throw Error(n(200));return Uf(null,s,u,!0,m)},Xn.hydrateRoot=function(s,u,m){if(!Fv(s))throw Error(n(405));var b=m!=null&&m.hydratedSources||null,E=!1,C="",$=PO;if(m!=null&&(m.unstable_strictMode===!0&&(E=!0),m.identifierPrefix!==void 0&&(C=m.identifierPrefix),m.onRecoverableError!==void 0&&($=m.onRecoverableError)),u=kO(u,null,s,1,m??null,E,!1,C,$),s[Ci]=u.current,Su(s),b)for(s=0;s<b.length;s++)m=b[s],E=m._getVersion,E=E(m._source),u.mutableSourceEagerHydrationData==null?u.mutableSourceEagerHydrationData=[m,E]:u.mutableSourceEagerHydrationData.push(m,E);return new Bf(u)},Xn.render=function(s,u,m){if(!zf(u))throw Error(n(200));return Uf(null,s,u,!1,m)},Xn.unmountComponentAtNode=function(s){if(!zf(s))throw Error(n(40));return s._reactRootContainer?(pa(function(){Uf(null,null,s,!1,function(){s._reactRootContainer=null,s[Ci]=null})}),!0):!1},Xn.unstable_batchedUpdates=Cv,Xn.unstable_renderSubtreeIntoContainer=function(s,u,m,b){if(!zf(m))throw Error(n(200));if(s==null||s._reactInternals===void 0)throw Error(n(38));return Uf(s,u,m,!1,b)},Xn.version="18.3.1-next-f1338f8080-20240426",Xn}var LO;function kM(){if(LO)return qv.exports;LO=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),qv.exports=pU(),qv.exports}var FO;function hU(){if(FO)return Vf;FO=1;var e=kM();return Vf.createRoot=e.createRoot,Vf.hydrateRoot=e.hydrateRoot,Vf}var mU=hU();const gU=lt(mU),vU=20,yU=1e6,Hi={ADD_TOAST:"ADD_TOAST",UPDATE_TOAST:"UPDATE_TOAST",DISMISS_TOAST:"DISMISS_TOAST",REMOVE_TOAST:"REMOVE_TOAST"};let Vv=0;function bU(){return Vv=(Vv+1)%Number.MAX_VALUE,Vv.toString()}const Kv=new Map,BO=e=>{if(Kv.has(e))return;const t=setTimeout(()=>{Kv.delete(e),hc({type:Hi.REMOVE_TOAST,toastId:e})},yU);Kv.set(e,t)},xU=(e,t)=>{switch(t.type){case Hi.ADD_TOAST:return{...e,toasts:[t.toast,...e.toasts].slice(0,vU)};case Hi.UPDATE_TOAST:return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case Hi.DISMISS_TOAST:{const{toastId:n}=t;return n?BO(n):e.toasts.forEach(r=>{BO(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case Hi.REMOVE_TOAST:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},Op=[];let Pp={toasts:[]};function hc(e){Pp=xU(Pp,e),Op.forEach(t=>{t(Pp)})}function OM({...e}){const t=bU(),n=i=>hc({type:Hi.UPDATE_TOAST,toast:{...i,id:t}}),r=()=>hc({type:Hi.DISMISS_TOAST,toastId:t});return hc({type:Hi.ADD_TOAST,toast:{...e,id:t,open:!0,onOpenChange:i=>{i||r()}}}),{id:t,dismiss:r,update:n}}function Qa(){const[e,t]=P.useState(Pp);return P.useEffect(()=>(Op.push(t),()=>{const n=Op.indexOf(t);n>-1&&Op.splice(n,1)}),[e]),{...e,toast:OM,dismiss:n=>hc({type:Hi.DISMISS_TOAST,toastId:n})}}var MS=kM();const wU=lt(MS);function an(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e==null||e(i),n===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function zO(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function gd(...e){return t=>{let n=!1;const r=e.map(i=>{const o=zO(i,t);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let i=0;i<r.length;i++){const o=r[i];typeof o=="function"?o():zO(e[i],null)}}}}function yr(...e){return P.useCallback(gd(...e),e)}function SU(e,t){const n=P.createContext(t),r=o=>{const{children:a,...l}=o,c=P.useMemo(()=>l,Object.values(l));return h.jsx(n.Provider,{value:c,children:a})};r.displayName=e+"Provider";function i(o){const a=P.useContext(n);if(a)return a;
vendor: 13,801 bytes, line 40
40if(t!==void 0)return t;throw new Error(`\`${o}\` must be used within \`${e}\``)}return[r,i]}function em(e,t=[]){let n=[];function r(o,a){const l=P.createContext(a),c=n.length;n=[...n,a];const d=p=>{var w;const{scope:g,children:v,...S}=p,x=((w=g==null?void 0:g[e])==null?void 0:w[c])||l,y=P.useMemo(()=>S,Object.values(S));return h.jsx(x.Provider,{value:y,children:v})};d.displayName=o+"Provider";function f(p,g){var x;const v=((x=g==null?void 0:g[e])==null?void 0:x[c])||l,S=P.useContext(v);if(S)return S;if(a!==void 0)return a;throw new Error(`\`${p}\` must be used within \`${o}\``)}return[d,f]}const i=()=>{const o=n.map(a=>P.createContext(a));return function(l){const c=(l==null?void 0:l[e])||o;return P.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return i.scopeName=e,[r,_U(i,...t)]}function _U(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(o){const a=r.reduce((l,{useScope:c,scopeName:d})=>{const p=c(o)[`__scope${d}`];return{...l,...p}},{});return P.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function UO(e){const t=AU(e),n=P.forwardRef((r,i)=>{const{children:o,...a}=r,l=P.Children.toArray(o),c=l.find(kU);if(c){const d=c.props.children,f=l.map(p=>p===c?P.Children.count(d)>1?P.Children.only(null):P.isValidElement(d)?d.props.children:null:p);return h.jsx(t,{...a,ref:i,children:P.isValidElement(d)?P.cloneElement(d,void 0,f):null})}return h.jsx(t,{...a,ref:i,children:o})});return n.displayName=`${e}.Slot`,n}function AU(e){const t=P.forwardRef((n,r)=>{const{children:i,...o}=n;if(P.isValidElement(i)){const a=PU(i),l=OU(o,i.props);return i.type!==P.Fragment&&(l.ref=r?gd(r,a):a),P.cloneElement(i,l)}return P.Children.count(i)>1?P.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var EU=Symbol("radix.slottable");function kU(e){return P.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===EU}function OU(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...l)=>{const c=o(...l);return i(...l),c}:i&&(n[r]=i):r==="style"?n[r]={...i,...o}:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}function PU(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function jU(e){const t=e+"CollectionProvider",[n,r]=em(t),[i,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=x=>{const{scope:y,children:w}=x,A=W.useRef(null),_=W.useRef(new Map).current;return h.jsx(i,{scope:y,itemMap:_,collectionRef:A,children:w})};a.displayName=t;const l=e+"CollectionSlot",c=UO(l),d=W.forwardRef((x,y)=>{const{scope:w,children:A}=x,_=o(l,w),j=yr(y,_.collectionRef);return h.jsx(c,{ref:j,children:A})});d.displayName=l;const f=e+"CollectionItemSlot",p="data-radix-collection-item",g=UO(f),v=W.forwardRef((x,y)=>{const{scope:w,children:A,..._}=x,j=W.useRef(null),k=yr(y,j),O=o(f,w);return W.useEffect(()=>(O.itemMap.set(j,{ref:j,..._}),()=>void O.itemMap.delete(j))),h.jsx(g,{[p]:"",ref:k,children:A})});v.displayName=f;function S(x){const y=o(e+"CollectionConsumer",x);return W.useCallback(()=>{const A=y.collectionRef.current;if(!A)return[];const _=Array.from(A.querySelectorAll(`[${p}]`));return Array.from(y.itemMap.values()).sort((O,T)=>_.indexOf(O.ref.current)-_.indexOf(T.ref.current))},[y.collectionRef,y.itemMap])}return[{Provider:a,Slot:d,ItemSlot:v},S,r]}function CU(e){const t=TU(e),n=P.forwardRef((r,i)=>{const{children:o,...a}=r,l=P.Children.toArray(o),c=l.find(RU);if(c){const d=c.props.children,f=l.map(p=>p===c?P.Children.count(d)>1?P.Children.only(null):P.isValidElement(d)?d.props.children:null:p);return h.jsx(t,{...a,ref:i,children:P.isValidElement(d)?P.cloneElement(d,void 0,f):null})}return h.jsx(t,{...a,ref:i,children:o})});return n.displayName=`${e}.Slot`,n}function TU(e){const t=P.forwardRef((n,r)=>{const{children:i,...o}=n;if(P.isValidElement(i)){const a=$U(i),l=IU(o,i.props);return i.type!==P.Fragment&&(l.ref=r?gd(r,a):a),P.cloneElement(i,l)}return P.Children.count(i)>1?P.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var NU=Symbol("radix.slottable");function RU(e){return P.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===NU}function IU(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...l)=>{const c=o(...l);return i(...l),c}:i&&(n[r]=i):r==="style"?n[r]={...i,...o}:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}function $U(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var MU=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Dn=MU.reduce((e,t)=>{const n=CU(`Primitive.${t}`),r=P.forwardRef((i,o)=>{const{asChild:a,...l}=i,c=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(c,{...l,ref:o})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function PM(e,t){e&&MS.flushSync(()=>e.dispatchEvent(t))}function Xi(e){const t=P.useRef(e);return P.useEffect(()=>{t.current=e}),P.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function DU(e,t=globalThis==null?void 0:globalThis.document){const n=Xi(e);P.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var LU="DismissableLayer",Nw="dismissableLayer.update",FU="dismissableLayer.pointerDownOutside",BU="dismissableLayer.focusOutside",qO,jM=P.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),DS=P.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:o,onInteractOutside:a,onDismiss:l,...c}=e,d=P.useContext(jM),[f,p]=P.useState(null),g=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,v]=P.useState({}),S=yr(t,T=>p(T)),x=Array.from(d.layers),[y]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),w=x.indexOf(y),A=f?x.indexOf(f):-1,_=d.layersWithOutsidePointerEventsDisabled.size>0,j=A>=w,k=UU(T=>{const N=T.target,I=[...d.branches].some(z=>z.contains(N));!j||I||(i==null||i(T),a==null||a(T),T.defaultPrevented||l==null||l())},g),O=qU(T=>{const N=T.target;[...d.branches].some(z=>z.contains(N))||(o==null||o(T),a==null||a(T),T.defaultPrevented||l==null||l())},g);return DU(T=>{A===d.layers.size-1&&(r==null||r(T),!T.defaultPrevented&&l&&(T.preventDefault(),l()))},g),P.useEffect(()=>{if(f)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(qO=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),HO(),()=>{n&&d.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=qO)}},[f,g,n,d]),P.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),HO())},[f,d]),P.useEffect(()=>{const T=()=>v({});return document.addEventListener(Nw,T),()=>document.removeEventListener(Nw,T)},[]),h.jsx(Dn.div,{...c,ref:S,style:{pointerEvents:_?j?"auto":"none":void 0,...e.style},onFocusCapture:an(e.onFocusCapture,O.onFocusCapture),onBlurCapture:an(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:an(e.onPointerDownCapture,k.onPointerDownCapture)})});DS.displayName=LU;var zU="DismissableLayerBranch",CM=P.forwardRef((e,t)=>{const n=P.useContext(jM),r=P.useRef(null),i=yr(t,r);return P.useEffect(()=>{const o=r.current;if(o)return n.branches.add(o),()=>{n.branches.delete(o)}},[n.branches]),h.jsx(Dn.div,{...e,ref:i})});CM.displayName=zU;function UU(e,t=globalThis==null?void 0:globalThis.document){const n=Xi(e),r=P.useRef(!1),i=P.useRef(()=>{});return P.useEffect(()=>{const o=l=>{if(l.target&&!r.current){let c=function(){TM(FU,n,d,{discrete:!0})};const d={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=c,t.addEventListener("click",i.current,{once:!0})):c()}else t.removeEventListener("click",i.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",o),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function qU(e,t=globalThis==null?void 0:globalThis.document){const n=Xi(e),r=P.useRef(!1);return P.useEffect(()=>{const i=o=>{o.target&&!r.current&&TM(BU,n,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function HO(){const e=new CustomEvent(Nw);document.dispatchEvent(e)}function TM(e,t,n,{discrete:r}){const i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?PM(i,o):i.dispatchEvent(o)}var HU=DS,WU=CM,hl=globalThis!=null&&globalThis.document?P.useLayoutEffect:()=>{},VU="Portal",LS=P.forwardRef((e,t)=>{var l;const{container:n,...r}=e,[i,o]=P.useState(!1);hl(()=>o(!0),[]);const a=n||i&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return a?wU.createPortal(h.jsx(Dn.div,{...r,ref:t}),a):null});LS.displayName=VU;function KU(e,t){return P.useReducer((n,r)=>t[n][r]??n,e)}var vd=e=>{const{present:t,children:n}=e,r=GU(t),i=typeof n=="function"?n({present:r.isPresent}):P.Children.only(n),o=yr(r.ref,YU(i));return typeof n=="function"||r.isPresent?P.cloneElement(i,{ref:o}):null};vd.displayName="Presence";function GU(e){const[t,n]=P.useState(),r=P.useRef(null),i=P.useRef(e),o=P.useRef("none"),a=e?"mounted":"unmounted",[l,c]=KU(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return P.useEffect(()=>{const d=Kf(r.current);o.current=l==="mounted"?d:"none"},[l]),hl(()=>{const d=r.current,f=i.current;if(f!==e){const g=o.current,v=Kf(d);e?c("MOUNT"):v==="none"||(d==null?void 0:d.display)==="none"?c("UNMOUNT"):c(f&&g!==v?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,c]),hl(()=>{if(t){let d;const f=t.ownerDocument.defaultView??window,p=v=>{const x=Kf(r.current).includes(CSS.escape(v.animationName));if(v.target===t&&x&&(c("ANIMATION_END"),!i.current)){const y=t.style.animationFillMode;t.style.animationFillMode="forwards",d=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=y)})}},g=v=>{v.target===t&&(o.current=Kf(r.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{f.clearTimeout(d),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:P.useCallback(d=>{r.current=d?getComputedStyle(d):null,n(d)},[])}}function Kf(e){return(e==null?void 0:e.animationName)||"none"}function YU(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var XU=Jh[" useInsertionEffect ".trim().toString()]||hl;function NM({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[i,o,a]=QU({defaultProp:t,onChange:n}),l=e!==void 0,c=l?e:i;{const f=P.useRef(e!==void 0);P.useEffect(()=>{const p=f.current;p!==l&&console.warn(`${r} is changing from ${p?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=l},[l,r])}const d=P.useCallback(f=>{var p;if(l){const g=ZU(f)?f(e):f;g!==e&&((p=a.current)==null||p.call(a,g))}else o(f)},[l,e,o,a]);return[c,d]}function QU({defaultProp:e,onChange:t}){const[n,r]=P.useState(e),i=P.useRef(n),o=P.useRef(t);return XU(()=>{o.current=t},[t]),P.useEffect(()=>{var a;i.current!==n&&((a=o.current)==null||a.call(o,n),i.current=n)},[n,i]),[n,r,o]}function ZU(e){return typeof e=="function"}var JU=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),e6="VisuallyHidden",FS=P.forwardRef((e,t)=>h.jsx(Dn.span,{...e,ref:t,style:{...JU,...e.style}}));FS.displayName=e6;var BS="ToastProvider",[zS,t6,n6]=jU("Toast"),[RM]=em("Toast",[n6]),[r6,tm]=RM(BS),IM=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:i="right",swipeThreshold:o=50,children:a}=e,[l,c]=P.useState(null),[d,f]=P.useState(0),p=P.useRef(!1),g=P.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${BS}\`. Expected non-empty \`string\`.`),h.jsx(zS.Provider,{scope:t,children:h.jsx(r6,{scope:t,label:n,duration:r,swipeDirection:i,swipeThreshold:o,toastCount:d,viewport:l,onViewportChange:c,onToastAdd:P.useCallback(()=>f(v=>v+1),[]),onToastRemove:P.useCallback(()=>f(v=>v-1),[]),isFocusedToastEscapeKeyDownRef:p,isClosePausedRef:g,children:a})})};IM.displayName=BS;var $M="ToastViewport",i6=["F8"],Rw="toast.viewportPause",Iw="toast.viewportResume",MM=P.forwardRef((e,t)=>
40{const{__scopeToast:n,hotkey:r=i6,label:i="Notifications ({hotkey})",...o}=e,a=tm($M,n),l=t6(n),c=P.useRef(null),d=P.useRef(null),f=P.useRef(null),p=P.useRef(null),g=yr(t,p,a.onViewportChange),v=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),S=a.toastCount>0;P.useEffect(()=>{const y=w=>{var _;r.length!==0&&r.every(j=>w[j]||w.code===j)&&((_=p.current)==null||_.focus())};return document.addEventListener("keydown",y),()=>document.removeEventListener("keydown",y)},[r]),P.useEffect(()=>{const y=c.current,w=p.current;if(S&&y&&w){const A=()=>{if(!a.isClosePausedRef.current){const O=new CustomEvent(Rw);w.dispatchEvent(O),a.isClosePausedRef.current=!0}},_=()=>{if(a.isClosePausedRef.current){const O=new CustomEvent(Iw);w.dispatchEvent(O),a.isClosePausedRef.current=!1}},j=O=>{!y.contains(O.relatedTarget)&&_()},k=()=>{y.contains(document.activeElement)||_()};return y.addEventListener("focusin",A),y.addEventListener("focusout",j),y.addEventListener("pointermove",A),y.addEventListener("pointerleave",k),window.addEventListener("blur",A),window.addEventListener("focus",_),()=>{y.removeEventListener("focusin",A),y.removeEventListener("focusout",j),y.removeEventListener("pointermove",A),y.removeEventListener("pointerleave",k),window.removeEventListener("blur",A),window.removeEventListener("focus",_)}}},[S,a.isClosePausedRef]);const x=P.useCallback(({tabbingDirection:y})=>{const A=l().map(_=>{const j=_.ref.current,k=[j,...v6(j)];return y==="forwards"?k:k.reverse()});return(y==="forwards"?A.reverse():A).flat()},[l]);return P.useEffect(()=>{const y=p.current;if(y){const w=A=>{var k,O,T;const _=A.altKey||A.ctrlKey||A.metaKey;if(A.key==="Tab"&&!_){const N=document.activeElement,I=A.shiftKey;if(A.target===y&&I){(k=d.current)==null||k.focus();return}const D=x({tabbingDirection:I?"backwards":"forwards"}),L=D.findIndex(B=>B===N);Gv(D.slice(L+1))?A.preventDefault():I?(O=d.current)==null||O.focus():(T=f.current)==null||T.focus()}};return y.addEventListener("keydown",w),()=>y.removeEventListener("keydown",w)}},[l,x]),h.jsxs(WU,{ref:c,role:"region","aria-label":i.replace("{hotkey}",v),tabIndex:-1,style:{pointerEvents:S?void 0:"none"},children:[S&&h.jsx($w,{ref:d,onFocusFromOutsideViewport:()=>{const y=x({tabbingDirection:"forwards"});Gv(y)}}),h.jsx(zS.Slot,{scope:n,children:h.jsx(Dn.ol,{tabIndex:-1,...o,ref:g})}),S&&h.jsx($w,{ref:f,onFocusFromOutsideViewport:()=>{const y=x({tabbingDirection:"backwards"});Gv(y)}})]})});MM.displayName=$M;var DM="ToastFocusProxy",$w=P.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...i}=e,o=tm(DM,n);return h.jsx(FS,{tabIndex:0,...i,ref:t,style:{position:"fixed"},onFocus:a=>{var d;const l=a.relatedTarget;!((d=o.viewport)!=null&&d.contains(l))&&r()}})});$w.displayName=DM;var yd="Toast",o6="toast.swipeStart",a6="toast.swipeMove",s6="toast.swipeCancel",l6="toast.swipeEnd",LM=P.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:i,onOpenChange:o,...a}=e,[l,c]=NM({prop:r,defaultProp:i??!0,onChange:o,caller:yd});return h.jsx(vd,{present:n||l,children:h.jsx(d6,{open:l,...a,ref:t,onClose:()=>c(!1),onPause:Xi(e.onPause),onResume:Xi(e.onResume),onSwipeStart:an(e.onSwipeStart,d=>{d.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:an(e.onSwipeMove,d=>{const{x:f,y:p}=d.detail.delta;d.currentTarget.setAttribute("data-swipe","move"),d.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${f}px`),d.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${p}px`)}),onSwipeCancel:an(e.onSwipeCancel,d=>{d.currentTarget.setAttribute("data-swipe","cancel"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),d.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),d.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:an(e.onSwipeEnd,d=>{const{x:f,y:p}=d.detail.delta;d.currentTarget.setAttribute("data-swipe","end"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),d.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${f}px`),d.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${p}px`),c(!1)})})})});LM.displayName=yd;var[u6,c6]=RM(yd,{onClose(){}}),d6=P.forwardRef((e,t)=>
40{const{__scopeToast:n,type:r="foreground",duration:i,open:o,onClose:a,onEscapeKeyDown:l,onPause:c,onResume:d,onSwipeStart:f,onSwipeMove:p,onSwipeCancel:g,onSwipeEnd:v,...S}=e,x=tm(yd,n),[y,w]=P.useState(null),A=yr(t,B=>w(B)),_=P.useRef(null),j=P.useRef(null),k=i||x.duration,O=P.useRef(0),T=P.useRef(k),N=P.useRef(0),{onToastAdd:I,onToastRemove:z}=x,F=Xi(()=>{var U;(y==null?void 0:y.contains(document.activeElement))&&((U=x.viewport)==null||U.focus()),a()}),D=P.useCallback(B=>{!B||B===1/0||(window.clearTimeout(N.current),O.current=new Date().getTime(),N.current=window.setTimeout(F,B))},[F]);P.useEffect(()=>{const B=x.viewport;if(B){const U=()=>{D(T.current),d==null||d()},G=()=>{const Z=new Date().getTime()-O.current;T.current=T.current-Z,window.clearTimeout(N.current),c==null||c()};return B.addEventListener(Rw,G),B.addEventListener(Iw,U),()=>{B.removeEventListener(Rw,G),B.removeEventListener(Iw,U)}}},[x.viewport,k,c,d,D]),P.useEffect(()=>{o&&!x.isClosePausedRef.current&&D(k)},[o,k,x.isClosePausedRef,D]),P.useEffect(()=>(I(),()=>z()),[I,z]);const L=P.useMemo(()=>y?WM(y):null,[y]);return x.viewport?h.jsxs(h.Fragment,{children:[L&&h.jsx(f6,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite",children:L}),h.jsx(u6,{scope:n,onClose:F,children:MS.createPortal(h.jsx(zS.ItemSlot,{scope:n,children:h.jsx(HU,{asChild:!0,onEscapeKeyDown:an(l,()=>{x.isFocusedToastEscapeKeyDownRef.current||F(),x.isFocusedToastEscapeKeyDownRef.current=!1}),children:h.jsx(Dn.li,{tabIndex:0,"data-state":o?"open":"closed","data-swipe-direction":x.swipeDirection,...S,ref:A,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:an(e.onKeyDown,B=>{B.key==="Escape"&&(l==null||l(B.nativeEvent),B.nativeEvent.defaultPrevented||(x.isFocusedToastEscapeKeyDownRef.current=!0,F()))}),onPointerDown:an(e.onPointerDown,B=>{B.button===0&&(_.current={x:B.clientX,y:B.clientY})}),onPointerMove:an(e.onPointerMove,B=>{if(!_.current)return;const U=B.clientX-_.current.x,G=B.clientY-_.current.y,Z=!!j.current,Y=["left","right"].includes(x.swipeDirection),ee=["left","up"].includes(x.swipeDirection)?Math.min:Math.max,R=Y?ee(0,U):0,q=Y?0:ee(0,G),V=B.pointerType==="touch"?10:2,M={x:R,y:q},re={originalEvent:B,delta:M};Z?(j.current=M,Gf(a6,p,re,{discrete:!1})):WO(M,x.swipeDirection,V)?(j.current=M,Gf(o6,f,re,{discrete:!1}),B.target.setPointerCapture(B.pointerId)):(Math.abs(U)>V||Math.abs(G)>V)&&(_.current=null)}),onPointerUp:an(e.onPointerUp,B=>{const U=j.current,G=B.target;if(G.hasPointerCapture(B.pointerId)&&G.releasePointerCapture(B.pointerId),j.current=null,_.current=null,U){const Z=B.currentTarget,Y={originalEvent:B,delta:U};WO(U,x.swipeDirection,x.swipeThreshold)?Gf(l6,v,Y,{discrete:!0}):Gf(s6,g,Y,{discrete:!0}),Z.addEventListener("click",ee=>ee.preventDefault(),{once:!0})}})})})}),x.viewport)})]}):null}),f6=e=>{const{__scopeToast:t,children:n,...r}=e,i=tm(yd,t),[o,a]=P.useState(!1),[l,c]=P.useState(!1);return m6(()=>a(!0)),P.useEffect(()=>{const d=window.setTimeout(()=>c(!0),1e3);return()=>window.clearTimeout(d)},[]),l?null:h.jsx(LS,{asChild:!0,children:h.jsx(FS,{...r,children:o&&h.jsxs(h.Fragment,{children:[i.label," ",n]})})})},p6="ToastTitle",FM=P.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return h.jsx(Dn.div,{...r,ref:t})});FM.displayName=p6;var h6="ToastDescription",BM=P.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return h.jsx(Dn.div,{...r,ref:t})});BM.displayName=h6;var zM="ToastAction",UM=P.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?h.jsx(HM,{altText:n,asChild:!0,children:h.jsx(US,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${zM}\`. Expected non-empty \`string\`.`),null)});UM.displayName=zM;var qM="ToastClose",US=P.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,i=c6(qM,n);return h.jsx(HM,{asChild:!0,children:h.jsx(Dn.button,{type:"button",...r,ref:t,onClick:an(e.onClick,i.onClose)})})});US.displayName=qM;var HM=P.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...i}=e;return h.jsx(Dn.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...i,ref:t})});function WM(e){const t=[];
vendor: 6,364 bytes, lines 40-100
40return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),g6(r)){const i=r.ariaHidden||r.hidden||r.style.display==="none",o=r.dataset.radixToastAnnounceExclude==="";if(!i)if(o){const a=r.dataset.radixToastAnnounceAlt;a&&t.push(a)}else t.push(...WM(r))}}),t}function Gf(e,t,n,{discrete:r}){const i=n.originalEvent.currentTarget,o=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?PM(i,o):i.dispatchEvent(o)}var WO=(e,t,n=0)=>{const r=Math.abs(e.x),i=Math.abs(e.y),o=r>i;return t==="left"||t==="right"?o&&r>n:!o&&i>n};function m6(e=()=>{}){const t=Xi(e);hl(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function g6(e){return e.nodeType===e.ELEMENT_NODE}function v6(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Gv(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var y6=IM,VM=MM,KM=LM,GM=FM,YM=BM,XM=UM,QM=US;function ZM(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=ZM(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Xe(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=ZM(e))&&(r&&(r+=" "),r+=t);return r}const VO=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,KO=Xe,qS=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return KO(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:i,defaultVariants:o}=t,a=Object.keys(i).map(d=>{const f=n==null?void 0:n[d],p=o==null?void 0:o[d];if(f===null)return null;const g=VO(f)||VO(p);return i[d][g]}),l=n&&Object.entries(n).reduce((d,f)=>{let[p,g]=f;return g===void 0||(d[p]=g),d},{}),c=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((d,f)=>{let{class:p,className:g,...v}=f;return Object.entries(v).every(S=>{let[x,y]=S;return Array.isArray(y)?y.includes({...o,...l}[x]):{...o,...l}[x]===y})?[...d,p,g]:d},[]);return KO(e,a,c,n==null?void 0:n.class,n==null?void 0:n.className)};/**
41 * @license lucide-react v0.475.0 - ISC
42 *
43 * This source code is licensed under the ISC license.
44 * See the LICENSE file in the root directory of this source tree.
45 */const b6=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),JM=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
46 * @license lucide-react v0.475.0 - ISC
47 *
48 * This source code is licensed under the ISC license.
49 * See the LICENSE file in the root directory of this source tree.
50 */var x6={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"};/**
51 * @license lucide-react v0.475.0 - ISC
52 *
53 * This source code is licensed under the ISC license.
54 * See the LICENSE file in the root directory of this source tree.
55 */const w6=P.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:o,iconNode:a,...l},c)=>P.createElement("svg",{ref:c,...x6,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:JM("lucide",i),...l},[...a.map(([d,f])=>P.createElement(d,f)),...Array.isArray(o)?o:[o]]));/**
56 * @license lucide-react v0.475.0 - ISC
57 *
58 * This source code is licensed under the ISC license.
59 * See the LICENSE file in the root directory of this source tree.
60 */const Ct=(e,t)=>{const n=P.forwardRef(({className:r,...i},o)=>P.createElement(w6,{ref:o,iconNode:t,className:JM(`lucide-${b6(e)}`,r),...i}));return n.displayName=`${e}`,n};/**
61 * @license lucide-react v0.475.0 - ISC
62 *
63 * This source code is licensed under the ISC license.
64 * See the LICENSE file in the root directory of this source tree.
65 */const S6=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],_6=Ct("ArrowLeft",S6);/**
66 * @license lucide-react v0.475.0 - ISC
67 *
68 * This source code is licensed under the ISC license.
69 * See the LICENSE file in the root directory of this source tree.
70 */const A6=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],E6=Ct("ArrowRight",A6);/**
71 * @license lucide-react v0.475.0 - ISC
72 *
73 * This source code is licensed under the ISC license.
74 * See the LICENSE file in the root directory of this source tree.
75 */const k6=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],O6=Ct("Check",k6);/**
76 * @license lucide-react v0.475.0 - ISC
77 *
78 * This source code is licensed under the ISC license.
79 * See the LICENSE file in the root directory of this source tree.
80 */const P6=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],j6=Ct("Copy",P6);/**
81 * @license lucide-react v0.475.0 - ISC
82 *
83 * This source code is licensed under the ISC license.
84 * See the LICENSE file in the root directory of this source tree.
85 */const C6=[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]],T6=Ct("Download",C6);/**
86 * @license lucide-react v0.475.0 - ISC
87 *
88 * This source code is licensed under the ISC license.
89 * See the LICENSE file in the root directory of this source tree.
90 */const N6=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Qi=Ct("LoaderCircle",N6);/**
91 * @license lucide-react v0.475.0 - ISC
92 *
93 * This source code is licensed under the ISC license.
94 * See the LICENSE file in the root directory of this source tree.
95 */const R6=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],Qs=Ct("Lock",R6);/**
96 * @license lucide-react v0.475.0 - ISC
97 *
98 * This source code is licensed under the ISC license.
99 * See the LICENSE file in the root directory of this source tree.
100 */const I6=[["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",ke
100y:"u53s6r"}],["polyline",{points:"10 17 15 12 10 7",key:"1ail0h"}],["line",{x1:"15",x2:"3",y1:"12",y2:"12",key:"v6grx8"}]],$6=Ct("LogIn",I6);/**
101 * @license lucide-react v0.475.0 - ISC
102 *
103 * This source code is licensed under the ISC license.
104 * See the LICENSE file in the root directory of this source tree.
105 */const M6=[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]],Ec=Ct("Mail",M6);/**
106 * @license lucide-react v0.475.0 - ISC
107 *
108 * This source code is licensed under the ISC license.
109 * See the LICENSE file in the root directory of this source tree.
110 */const D6=[["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"}]],L6=Ct("MapPin",D6);/**
111 * @license lucide-react v0.475.0 - ISC
112 *
113 * This source code is licensed under the ISC license.
114 * See the LICENSE file in the root directory of this source tree.
115 */const F6=[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]],B6=Ct("Menu",F6);/**
116 * @license lucide-react v0.475.0 - ISC
117 *
118 * This source code is licensed under the ISC license.
119 * See the LICENSE file in the root directory of this source tree.
120 */const z6=[["path",{d:"M5 12h14",key:"1ays0h"}]],eD=Ct("Minus",z6);/**
121 * @license lucide-react v0.475.0 - ISC
122 *
123 * This source code is licensed under the ISC license.
124 * See the LICENSE file in the root directory of this source tree.
125 */const U6=[["rect",{x:"14",y:"4",width:"4",height:"16",rx:"1",key:"zuxfzm"}],["rect",{x:"6",y:"4",width:"4",height:"16",rx:"1",key:"1okwgv"}]],q6=Ct("Pause",U6);/**
126 * @license lucide-react v0.475.0 - ISC
127 *
128 * This source code is licensed under the ISC license.
129 * See the LICENSE file in the root directory of this source tree.
130 */const H6=[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]],W6=Ct("Play",H6);/**
131 * @license lucide-react v0.475.0 - ISC
132 *
133 * This source code is licensed under the ISC license.
134 * See the LICENSE file in the root directory of this source tree.
135 */const V6=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],K6=Ct("Plus",V6);/**
136 * @license lucide-react v0.475.0 - ISC
137 *
138 * This source code is licensed under the ISC license.
139 * See the LICENSE file in the root directory of this source tree.
140 */const G6=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],tD=Ct("RefreshCw",G6);/**
141 * @license lucide-react v0.475.0 - ISC
142 *
143 * This source code is licensed under the ISC license.
144 * See the LICENSE file in the root directory of this source tree.
145 */const Y6=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],X6=Ct("Search",Y6);/**
146 * @license lucide-react v0.475.0 - ISC
147 *
148 * This source code is licensed under the ISC license.
149 * See the LICENSE file in the root directory of this source tree.
150 */const Q6=[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]],nD=Ct("Share2",Q6);/**
151 * @license lucide-react v0.475.0 - ISC
152 *
153 * This source code is licensed under the ISC license.
154 * See the LICENSE file in the root directory of this source tree.
155 */const Z6=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],zu=Ct("ShieldCheck",Z6);/**
156 * @license lucide-react v0.475.0 - ISC
157 *
158 * This source code is licensed under the ISC license.
159 * See the LICENSE file in the root directory of this source tree.
160 */const J6=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],eq=Ct("Square",J6);/**
161 * @license lucide-react v0.475.0 - ISC
162 *
163 * This source code is licensed under the ISC license.
164 * See the LICENSE file in the root directory of this source tree.
165 */const tq=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],nq=Ct("Star",tq);/**
166 * @license lucide-react v0.475.0 - ISC
167 *
168 * This source code is licensed under the ISC license.
169 * See the LICENSE file in the root directory of this source tree.
170 */const rq=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],iq=Ct("TriangleAlert",rq);/**
171 * @license lucide-react v0.475.0 - ISC
172 *
173 * This source code is licensed under the ISC license.
174 * See the LICENSE file in the root directory of this source tree.
175 */const oq=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]],aq=Ct("UserPlus",oq);/**
176 * @license lucide-react v0.475.0 - ISC
177 *
178 * This source code is licensed under the ISC license.
179 * See the LICENSE file in the root directory of this source tree.
180 */const sq=[["path",{d:"M18 6 6 18",key:"1bl5f8"}
vendor: 4,329 bytes, lines 180-185
180],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],HS=Ct("X",sq);/**
181 * @license lucide-react v0.475.0 - ISC
182 *
183 * This source code is licensed under the ISC license.
184 * See the LICENSE file in the root directory of this source tree.
185 */const lq=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],uq=Ct("Zap",lq),cq=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},dq=(e,t)=>({classGroupId:e,validator:t}),rD=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Bp="-",GO=[],fq="arbitrary..",pq=e=>{const t=mq(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:a=>{if(a.startsWith("[")&&a.endsWith("]"))return hq(a);const l=a.split(Bp),c=l[0]===""&&l.length>1?1:0;return iD(l,c,t)},getConflictingClassGroupIds:(a,l)=>{if(l){const c=r[a],d=n[a];return c?d?cq(d,c):c:d||GO}return n[a]||GO}}},iD=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const i=e[t],o=n.nextPart.get(i);if(o){const d=iD(e,t+1,o);if(d)return d}const a=n.validators;if(a===null)return;const l=t===0?e.join(Bp):e.slice(t).join(Bp),c=a.length;for(let d=0;d<c;d++){const f=a[d];if(f.validator(l))return f.classGroupId}},hq=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?fq+r:void 0})(),mq=e=>{const{theme:t,classGroups:n}=e;return gq(n,t)},gq=(e,t)=>{const n=rD();for(const r in e){const i=e[r];WS(i,n,r,t)}return n},WS=(e,t,n,r)=>{const i=e.length;for(let o=0;o<i;o++){const a=e[o];vq(a,t,n,r)}},vq=(e,t,n,r)=>{if(typeof e=="string"){yq(e,t,n);return}if(typeof e=="function"){bq(e,t,n,r);return}xq(e,t,n,r)},yq=(e,t,n)=>{const r=e===""?t:oD(t,e);r.classGroupId=n},bq=(e,t,n,r)=>{if(wq(e)){WS(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(dq(n,e))},xq=(e,t,n,r)=>{const i=Object.entries(e),o=i.length;for(let a=0;a<o;a++){const[l,c]=i[a];WS(c,oD(t,l),n,r)}},oD=(e,t)=>{let n=e;const r=t.split(Bp),i=r.length;for(let o=0;o<i;o++){const a=r[o];let l=n.nextPart.get(a);l||(l=rD(),n.nextPart.set(a,l)),n=l}return n},wq=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Sq=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const i=(o,a)=>{n[o]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(o){let a=n[o];if(a!==void 0)return a;if((a=r[o])!==void 0)return i(o,a),a},set(o,a){o in n?n[o]=a:i(o,a)}}},Mw="!",YO=":",_q=[],XO=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),Aq=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=i=>{const o=[];let a=0,l=0,c=0,d;const f=i.length;for(let x=0;x<f;x++){const y=i[x];if(a===0&&l===0){if(y===YO){o.push(i.slice(c,x)),c=x+1;continue}if(y==="/"){d=x;continue}}y==="["?a++:y==="]"?a--:y==="("?l++:y===")"&&l--}const p=o.length===0?i:i.slice(c);let g=p,v=!1;p.endsWith(Mw)?(g=p.slice(0,-1),v=!0):p.startsWith(Mw)&&(g=p.slice(1),v=!0);const S=d&&d>c?d-c:void 0;return XO(o,v,g,S)};if(t){const i=t+YO,o=r;r=a=>a.startsWith(i)?o(a.slice(i.length)):XO(_q,!1,a,void 0,!0)}if(n){const i=r;r=o=>n({className:o,parseClassName:i})}return r},Eq=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let i=[];for(let o=0;o<n.length;o++){const a=n[o],l=a[0]==="[",c=t.has(a);l||c?(i.length>0&&(i.sort(),r.push(...i),i=[]),r.push(a)):i.push(a)}return i.length>0&&(i.sort(),r.push(...i)),r}},kq=e=>({cache:Sq(e.cacheSize),parseClassName:Aq(e),sortModifiers:Eq(e),...pq(e)}),Oq=/\s+/,Pq=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:o}=t,a=[],l=e.trim().split(Oq);let c="";for(let d=l.length-1;d>=0;d-=1){const f=l[d],{isExternal:p,modifiers:g,hasImportantModifier:v,baseClassName:S,maybePostfixModifierPosition:x}=n(f);if(p){c=f+(c.length>0?" "+c:c);continue}let y=!!x,w=r(y?S.substring(0,x):S);if(!w){if(!y){c=f+(c.length>0?" "+c:c);continue}if(w=r(S),!w){c=f+(c.length>0?" "+c:c);continue}y=!1}const A=g.length===0?"":g.length===1?g[0]:o(g).join(":"),_=v?A+Mw:A,j=_+w;if(a.indexOf(j)>-1)continue;a.push(j);const k=i(w,y);for(let O=0;O<k.length;++O){const T=k[O];a.push(_+T)}
vendor: 4,453 bytes, line 185
185c=f+(c.length>0?" "+c:c)}return c},jq=(...e)=>{let t=0,n,r,i="";for(;t<e.length;)(n=e[t++])&&(r=aD(n))&&(i&&(i+=" "),i+=r);return i},aD=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=aD(e[r]))&&(n&&(n+=" "),n+=t);return n},Cq=(e,...t)=>{let n,r,i,o;const a=c=>{const d=t.reduce((f,p)=>p(f),e());return n=kq(d),r=n.cache.get,i=n.cache.set,o=l,l(c)},l=c=>{const d=r(c);if(d)return d;const f=Pq(c,n);return i(c,f),f};return o=a,(...c)=>o(jq(...c))},Tq=[],nn=e=>{const t=n=>n[e]||Tq;return t.isThemeGetter=!0,t},sD=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,lD=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Nq=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Rq=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Iq=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,$q=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Mq=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Dq=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,jo=e=>Nq.test(e),Je=e=>!!e&&!Number.isNaN(Number(e)),Co=e=>!!e&&Number.isInteger(Number(e)),Yv=e=>e.endsWith("%")&&Je(e.slice(0,-1)),Li=e=>Rq.test(e),uD=()=>!0,Lq=e=>Iq.test(e)&&!$q.test(e),VS=()=>!1,Fq=e=>Mq.test(e),Bq=e=>Dq.test(e),zq=e=>!Ne(e)&&!Re(e),Uq=e=>Xo(e,fD,VS),Ne=e=>sD.test(e),va=e=>Xo(e,pD,Lq),QO=e=>Xo(e,Xq,Je),qq=e=>Xo(e,mD,uD),Hq=e=>Xo(e,hD,VS),ZO=e=>Xo(e,cD,VS),Wq=e=>Xo(e,dD,Bq),Yf=e=>Xo(e,gD,Fq),Re=e=>lD.test(e),Uu=e=>Za(e,pD),Vq=e=>Za(e,hD),JO=e=>Za(e,cD),Kq=e=>Za(e,fD),Gq=e=>Za(e,dD),Xf=e=>Za(e,gD,!0),Yq=e=>Za(e,mD,!0),Xo=(e,t,n)=>{const r=sD.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Za=(e,t,n=!1)=>{const r=lD.exec(e);return r?r[1]?t(r[1]):n:!1},cD=e=>e==="position"||e==="percentage",dD=e=>e==="image"||e==="url",fD=e=>e==="length"||e==="size"||e==="bg-size",pD=e=>e==="length",Xq=e=>e==="number",hD=e=>e==="family-name",mD=e=>e==="number"||e==="weight",gD=e=>e==="shadow",Qq=()=>{const e=nn("color"),t=nn("font"),n=nn("text"),r=nn("font-weight"),i=nn("tracking"),o=nn("leading"),a=nn("breakpoint"),l=nn("container"),c=nn("spacing"),d=nn("radius"),f=nn("shadow"),p=nn("inset-shadow"),g=nn("text-shadow"),v=nn("drop-shadow"),S=nn("blur"),x=nn("perspective"),y=nn("aspect"),w=nn("ease"),A=nn("animate"),_=()=>["auto","avoid","all","avoid-page","page","left","right","column"],j=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],k=()=>[...j(),Re,Ne],O=()=>["auto","hidden","clip","visible","scroll"],T=()=>["auto","contain","none"],N=()=>[Re,Ne,c],I=()=>[jo,"full","auto",...N()],z=()=>[Co,"none","subgrid",Re,Ne],F=()=>["auto",{span:["full",Co,Re,Ne]},Co,Re,Ne],D=()=>[Co,"auto",Re,Ne],L=()=>["auto","min","max","fr",Re,Ne],B=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],U=()=>["start","end","center","stretch","center-safe","end-safe"],G=()=>["auto",...N()],Z=()=>[jo,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...N()],Y=()=>[jo,"screen","full","dvw","lvw","svw","min","max","fit",...N()],ee=()=>[jo,"screen","full","lh","dvh","lvh","svh","min","max","fit",...N()],R=()=>[e,Re,Ne],q=()=>[...j(),JO,ZO,{position:[Re,Ne]}],V=()=>["no-repeat",{repeat:["","x","y","space","round"]}],M=()=>["auto","cover","contain",Kq,Uq,{size:[Re,Ne]}],re=()=>[Yv,Uu,va],ce=()=>["","none","full",d,Re,Ne],oe=()=>["",Je,Uu,va],ae=()=>["solid","dashed","dotted","double"],pe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],te=()=>[Je,Yv,JO,ZO],xe=()=>["","none",S,Re,Ne],je=()=>["none",Je,Re,Ne],se=()=>["none",Je,Re,Ne],Qe=()=>[Je,Re,Ne],ge=()=>[jo,"full",...N()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Li],breakpoint:[Li],color:[uD],container:[Li],"drop-shadow":[Li],ease:["in","out","in-out"],font:[zq],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Li],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Li],shadow:[Li],spacing:["px",Je],text:[Li],"text-shadow":[Li],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",jo,Ne,Re,y]}
vendor: 4,404 bytes, line 185
185],container:["container"],columns:[{columns:[Je,Ne,Re,l]}],"break-after":[{"break-after":_()}],"break-before":[{"break-before":_()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:k()}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:T()}],"overscroll-x":[{"overscroll-x":T()}],"overscroll-y":[{"overscroll-y":T()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:I()}],"inset-x":[{"inset-x":I()}],"inset-y":[{"inset-y":I()}],start:[{"inset-s":I(),start:I()}],end:[{"inset-e":I(),end:I()}],"inset-bs":[{"inset-bs":I()}],"inset-be":[{"inset-be":I()}],top:[{top:I()}],right:[{right:I()}],bottom:[{bottom:I()}],left:[{left:I()}],visibility:["visible","invisible","collapse"],z:[{z:[Co,"auto",Re,Ne]}],basis:[{basis:[jo,"full","auto",l,...N()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Je,jo,"auto","initial","none",Ne]}],grow:[{grow:["",Je,Re,Ne]}],shrink:[{shrink:["",Je,Re,Ne]}],order:[{order:[Co,"first","last","none",Re,Ne]}],"grid-cols":[{"grid-cols":z()}],"col-start-end":[{col:F()}],"col-start":[{"col-start":D()}],"col-end":[{"col-end":D()}],"grid-rows":[{"grid-rows":z()}],"row-start-end":[{row:F()}],"row-start":[{"row-start":D()}],"row-end":[{"row-end":D()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":L()}],"auto-rows":[{"auto-rows":L()}],gap:[{gap:N()}],"gap-x":[{"gap-x":N()}],"gap-y":[{"gap-y":N()}],"justify-content":[{justify:[...B(),"normal"]}],"justify-items":[{"justify-items":[...U(),"normal"]}],"justify-self":[{"justify-self":["auto",...U()]}],"align-content":[{content:["normal",...B()]}],"align-items":[{items:[...U(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...U(),{baseline:["","last"]}]}],"place-content":[{"place-content":B()}],"place-items":[{"place-items":[...U(),"baseline"]}],"place-self":[{"place-self":["auto",...U()]}],p:[{p:N()}],px:[{px:N()}],py:[{py:N()}],ps:[{ps:N()}],pe:[{pe:N()}],pbs:[{pbs:N()}],pbe:[{pbe:N()}],pt:[{pt:N()}],pr:[{pr:N()}],pb:[{pb:N()}],pl:[{pl:N()}],m:[{m:G()}],mx:[{mx:G()}],my:[{my:G()}],ms:[{ms:G()}],me:[{me:G()}],mbs:[{mbs:G()}],mbe:[{mbe:G()}],mt:[{mt:G()}],mr:[{mr:G()}],mb:[{mb:G()}],ml:[{ml:G()}],"space-x":[{"space-x":N()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":N()}],"space-y-reverse":["space-y-reverse"],size:[{size:Z()}],"inline-size":[{inline:["auto",...Y()]}],"min-inline-size":[{"min-inline":["auto",...Y()]}],"max-inline-size":[{"max-inline":["none",...Y()]}],"block-size":[{block:["auto",...ee()]}],"min-block-size":[{"min-block":["auto",...ee()]}],"max-block-size":[{"max-block":["none",...ee()]}],w:[{w:[l,"screen",...Z()]}],"min-w":[{"min-w":[l,"screen","none",...Z()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[a]},...Z()]}],h:[{h:["screen","lh",...Z()]}],"min-h":[{"min-h":["screen","lh","none",...Z()]}],"max-h":[{"max-h":["screen","lh",...Z()]}],"font-size":[{text:["base",n,Uu,va]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Yq,qq]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Yv,Ne]}],"font-family":[{font:[Vq,Hq,t]}],"font-features":[{"font-features":[Ne]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,Re,Ne]}
vendor: 9,093 bytes, line 185
185],"line-clamp":[{"line-clamp":[Je,"none",Re,QO]}],leading:[{leading:[o,...N()]}],"list-image":[{"list-image":["none",Re,Ne]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Re,Ne]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:R()}],"text-color":[{text:R()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ae(),"wavy"]}],"text-decoration-thickness":[{decoration:[Je,"from-font","auto",Re,va]}],"text-decoration-color":[{decoration:R()}],"underline-offset":[{"underline-offset":[Je,"auto",Re,Ne]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:N()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Re,Ne]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Re,Ne]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:q()}],"bg-repeat":[{bg:V()}],"bg-size":[{bg:M()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Co,Re,Ne],radial:["",Re,Ne],conic:[Co,Re,Ne]},Gq,Wq]}],"bg-color":[{bg:R()}],"gradient-from-pos":[{from:re()}],"gradient-via-pos":[{via:re()}],"gradient-to-pos":[{to:re()}],"gradient-from":[{from:R()}],"gradient-via":[{via:R()}],"gradient-to":[{to:R()}],rounded:[{rounded:ce()}],"rounded-s":[{"rounded-s":ce()}],"rounded-e":[{"rounded-e":ce()}],"rounded-t":[{"rounded-t":ce()}],"rounded-r":[{"rounded-r":ce()}],"rounded-b":[{"rounded-b":ce()}],"rounded-l":[{"rounded-l":ce()}],"rounded-ss":[{"rounded-ss":ce()}],"rounded-se":[{"rounded-se":ce()}],"rounded-ee":[{"rounded-ee":ce()}],"rounded-es":[{"rounded-es":ce()}],"rounded-tl":[{"rounded-tl":ce()}],"rounded-tr":[{"rounded-tr":ce()}],"rounded-br":[{"rounded-br":ce()}],"rounded-bl":[{"rounded-bl":ce()}],"border-w":[{border:oe()}],"border-w-x":[{"border-x":oe()}],"border-w-y":[{"border-y":oe()}],"border-w-s":[{"border-s":oe()}],"border-w-e":[{"border-e":oe()}],"border-w-bs":[{"border-bs":oe()}],"border-w-be":[{"border-be":oe()}],"border-w-t":[{"border-t":oe()}],"border-w-r":[{"border-r":oe()}],"border-w-b":[{"border-b":oe()}],"border-w-l":[{"border-l":oe()}],"divide-x":[{"divide-x":oe()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":oe()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ae(),"hidden","none"]}],"divide-style":[{divide:[...ae(),"hidden","none"]}],"border-color":[{border:R()}],"border-color-x":[{"border-x":R()}],"border-color-y":[{"border-y":R()}],"border-color-s":[{"border-s":R()}],"border-color-e":[{"border-e":R()}],"border-color-bs":[{"border-bs":R()}],"border-color-be":[{"border-be":R()}],"border-color-t":[{"border-t":R()}],"border-color-r":[{"border-r":R()}],"border-color-b":[{"border-b":R()}],"border-color-l":[{"border-l":R()}],"divide-color":[{divide:R()}],"outline-style":[{outline:[...ae(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Je,Re,Ne]}],"outline-w":[{outline:["",Je,Uu,va]}],"outline-color":[{outline:R()}],shadow:[{shadow:["","none",f,Xf,Yf]}],"shadow-color":[{shadow:R()}],"inset-shadow":[{"inset-shadow":["none",p,Xf,Yf]}],"inset-shadow-color":[{"inset-shadow":R()}],"ring-w":[{ring:oe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:R()}],"ring-offset-w":[{"ring-offset":[Je,va]}],"ring-offset-color":[{"ring-offset":R()}],"inset-ring-w":[{"inset-ring":oe()}],"inset-ring-color":[{"inset-ring":R()}],"text-shadow":[{"text-shadow":["none",g,Xf,Yf]}],"text-shadow-color":[{"text-shadow":R()}],opacity:[{opacity:[Je,Re,Ne]}],"mix-blend":[{"mix-blend":[...pe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":pe()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Je]}],"mask-image-linear-from-pos":[{"mask-linear-from":te()}],"mask-image-linear-to-pos":[{"mask-linear-to":te()}],"mask-image-linear-from-color":[{"mask-linear-from":R()}],"mask-image-linear-to-color":[{"mask-linear-to":R()}],"mask-image-t-from-pos":[{"mask-t-from":te()}],"mask-image-t-to-pos":[{"mask-t-to":te()}],"mask-image-t-from-color":[{"mask-t-from":R()}],"mask-image-t-to-color":[{"mask-t-to":R()}],"mask-image-r-from-pos":[{"mask-r-from":te()}],"mask-image-r-to-pos":[{"mask-r-to":te()}],"mask-image-r-from-color":[{"mask-r-from":R()}],"mask-image-r-to-color":[{"mask-r-to":R()}],"mask-image-b-from-pos":[{"mask-b-from":te()}],"mask-image-b-to-pos":[{"mask-b-to":te()}],"mask-image-b-from-color":[{"mask-b-from":R()}],"mask-image-b-to-color":[{"mask-b-to":R()}],"mask-image-l-from-pos":[{"mask-l-from":te()}],"mask-image-l-to-pos":[{"mask-l-to":te()}],"mask-image-l-from-color":[{"mask-l-from":R()}],"mask-image-l-to-color":[{"mask-l-to":R()}],"mask-image-x-from-pos":[{"mask-x-from":te()}],"mask-image-x-to-pos":[{"mask-x-to":te()}],"mask-image-x-from-color":[{"mask-x-from":R()}],"mask-image-x-to-color":[{"mask-x-to":R()}],"mask-image-y-from-pos":[{"mask-y-from":te()}],"mask-image-y-to-pos":[{"mask-y-to":te()}],"mask-image-y-from-color":[{"mask-y-from":R()}],"mask-image-y-to-color":[{"mask-y-to":R()}],"mask-image-radial":[{"mask-radial":[Re,Ne]}],"mask-image-radial-from-pos":[{"mask-radial-from":te()}],"mask-image-radial-to-pos":[{"mask-radial-to":te()}],"mask-image-radial-from-color":[{"mask-radial-from":R()}],"mask-image-radial-to-color":[{"mask-radial-to":R()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":j()}],"mask-image-conic-pos":[{"mask-conic":[Je]}],"mask-image-conic-from-pos":[{"mask-conic-from":te()}],"mask-image-conic-to-pos":[{"mask-conic-to":te()}],"mask-image-conic-from-color":[{"mask-conic-from":R()}],"mask-image-conic-to-color":[{"mask-conic-to":R()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:q()}],"mask-repeat":[{mask:V()}],"mask-size":[{mask:M()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Re,Ne]}],filter:[{filter:["","none",Re,Ne]}],blur:[{blur:xe()}],brightness:[{brightness:[Je,Re,Ne]}],contrast:[{contrast:[Je,Re,Ne]}],"drop-shadow":[{"drop-shadow":["","none",v,Xf,Yf]}],"drop-shadow-color":[{"drop-shadow":R()}],grayscale:[{grayscale:["",Je,Re,Ne]}],"hue-rotate":[{"hue-rotate":[Je,Re,Ne]}],invert:[{invert:["",Je,Re,Ne]}],saturate:[{saturate:[Je,Re,Ne]}],sepia:[{sepia:["",Je,Re,Ne]}],"backdrop-filter":[{"backdrop-filter":["","none",Re,Ne]}],"backdrop-blur":[{"backdrop-blur":xe()}],"backdrop-brightness":[{"backdrop-brightness":[Je,Re,Ne]}],"backdrop-contrast":[{"backdrop-contrast":[Je,Re,Ne]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Je,Re,Ne]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Je,Re,Ne]}],"backdrop-invert":[{"backdrop-invert":["",Je,Re,Ne]}],"backdrop-opacity":[{"backdrop-opacity":[Je,Re,Ne]}],"backdrop-saturate":[{"backdrop-saturate":[Je,Re,Ne]}],"backdrop-sepia":[{"backdrop-sepia":["",Je,Re,Ne]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":N()}],"border-spacing-x":[{"border-spacing-x":N()}],"border-spacing-y":[{"border-spacing-y":N()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Re,Ne]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Je,"initial",Re,Ne]}],ease:[{ease:["linear","initial",w,Re,Ne]}],delay:[{delay:[Je,Re,Ne]}],animate:[{animate:["none",A,Re,Ne]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[x,Re,Ne]}],"perspective-origin":[{"perspective-origin":k()}],rotate:[{rotate:je()}],"rotate-x":[{"rotate-x":je()}],"rotate-y":[{"rotate-y":je()}],"rotate-z":[{"rotate-z":je()}],scale:[{scale:se()}],"scale-x":[{"scale-x":se()}],"scale-y":[{"scale-y":se()}],"scale-z":[{"scale-z":se()}],"scale-3d":["scale-3d"],skew:[{skew:Qe()}],"skew-x":[{"skew-x":Qe()}],"skew-y":[{"skew-y":Qe()}],transform:[{transform:[Re,Ne,"","none","gpu","cpu"]}],"transform-origin":[{origin:k()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ge()}],"translate-x":[{"translate-x":ge()}],"translate-y":[{"translate-y":ge()}],"translate-z":[{"translate-z":ge()}],"translate-none":["translate-none"],accent:[{accent:R()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:R()}
vendor: 6,737 bytes, line 185
185],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Re,Ne]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":N()}],"scroll-mx":[{"scroll-mx":N()}],"scroll-my":[{"scroll-my":N()}],"scroll-ms":[{"scroll-ms":N()}],"scroll-me":[{"scroll-me":N()}],"scroll-mbs":[{"scroll-mbs":N()}],"scroll-mbe":[{"scroll-mbe":N()}],"scroll-mt":[{"scroll-mt":N()}],"scroll-mr":[{"scroll-mr":N()}],"scroll-mb":[{"scroll-mb":N()}],"scroll-ml":[{"scroll-ml":N()}],"scroll-p":[{"scroll-p":N()}],"scroll-px":[{"scroll-px":N()}],"scroll-py":[{"scroll-py":N()}],"scroll-ps":[{"scroll-ps":N()}],"scroll-pe":[{"scroll-pe":N()}],"scroll-pbs":[{"scroll-pbs":N()}],"scroll-pbe":[{"scroll-pbe":N()}],"scroll-pt":[{"scroll-pt":N()}],"scroll-pr":[{"scroll-pr":N()}],"scroll-pb":[{"scroll-pb":N()}],"scroll-pl":[{"scroll-pl":N()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Re,Ne]}],fill:[{fill:["none",...R()]}],"stroke-w":[{stroke:[Je,Uu,va,QO]}],stroke:[{stroke:["none",...R()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Zq=Cq(Qq);function vt(...e){return Zq(Xe(e))}const Jq=y6,vD=P.forwardRef(({className:e,...t},n)=>h.jsx(VM,{ref:n,className:vt("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));vD.displayName=VM.displayName;const e9=qS("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),yD=P.forwardRef(({className:e,variant:t,...n},r)=>h.jsx(KM,{ref:r,className:vt(e9({variant:t}),e),...n}));yD.displayName=KM.displayName;const t9=P.forwardRef(({className:e,...t},n)=>h.jsx(XM,{ref:n,className:vt("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));t9.displayName=XM.displayName;const bD=P.forwardRef(({className:e,...t},n)=>h.jsx(QM,{ref:n,className:vt("absolute right-2 top-2 rounded-md p-1 text-foreground
185/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:h.jsx(HS,{className:"h-4 w-4"})}));bD.displayName=QM.displayName;const xD=P.forwardRef(({className:e,...t},n)=>h.jsx(GM,{ref:n,className:vt("text-sm font-semibold",e),...t}));xD.displayName=GM.displayName;const wD=P.forwardRef(({className:e,...t},n)=>h.jsx(YM,{ref:n,className:vt("text-sm opacity-90",e),...t}));wD.displayName=YM.displayName;function n9(){const{toasts:e}=Qa();return h.jsxs(Jq,{children:[e.map(function({id:t,title:n,description:r,action:i,...o}){return h.jsxs(yD,{...o,children:[h.jsxs("div",{className:"grid gap-1",children:[n&&h.jsx(xD,{children:n}),r&&h.jsx(wD,{children:r})]}),i,h.jsx(bD,{})]},t)}),h.jsx(vD,{})]})}var nm=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},r9={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Do,IS,gM,i9=(gM=class{constructor(){ot(this,Do,r9);ot(this,IS,!1)}setTimeoutProvider(e){We(this,Do,e)}setTimeout(e,t){return de(this,Do).setTimeout(e,t)}clearTimeout(e){de(this,Do).clearTimeout(e)}setInterval(e,t){return de(this,Do).setInterval(e,t)}clearInterval(e){de(this,Do).clearInterval(e)}},Do=new WeakMap,IS=new WeakMap,gM),Dw=new i9;function o9(e){setTimeout(e,0)}var rm=typeof window>"u"||"Deno"in globalThis;function Gr(){}function a9(e,t){return typeof e=="function"?e(t):e}function s9(e){return typeof e=="number"&&e>=0&&e!==1/0}function l9(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Lw(e,t){return typeof e=="function"?e(t):e}function u9(e,t){return typeof e=="function"?e(t):e}function eP(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:a,stale:l}=e;if(a){if(r){if(t.queryHash!==KS(a,t.options))return!1}else if(!Oc(t.queryKey,a))return!1}if(n!=="all"){const c=t.isActive();if(n==="active"&&!c||n==="inactive"&&c)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||i&&i!==t.state.fetchStatus||o&&!o(t))}function tP(e,t){const{exact:n,status:r,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(kc(t.options.mutationKey)!==kc(o))return!1}else if(!Oc(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function KS(e,t){return((t==null?void 0:t.queryKeyHashFn)||kc)(e)}function kc(e){return JSON.stringify(e,(t,n)=>Fw(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function Oc(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Oc(e[n],t[n])):!1}var c9=Object.prototype.hasOwnProperty;function SD(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=nP(e)&&nP(t);if(!r&&!(Fw(e)&&Fw(t)))return t;const o=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),l=a.length,c=r?new Array(l):{};let d=0;for(let f=0;f<l;f++){const p=r?f:a[f],g=e[p],v=t[p];if(g===v){c[p]=g,(r?f<o:c9.call(e,p))&&d++;continue}if(g===null||v===null||typeof g!="object"||typeof v!="object"){c[p]=v;continue}const S=SD(g,v,n+1);c[p]=S,S===g&&d++}return o===l&&d===o?e:c}function nP(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Fw(e){if(!rP(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!rP(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function rP(e){return Object.prototype.toString.call(e)==="[object Object]"}function d9(e){return new Promise(t=>{Dw.setTimeout(t,e)})}function f9(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?SD(e,t):t}function p9(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function h9(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var GS=Symbol();function _D(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===GS?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function m9(e,t,n){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??(i=t()),r||(r=!0,i.aborted?n():i.addEventListener("abort",n,{once:!0})),i)}),e}var Ra,Lo,al,vM,g9=(vM=class extends nm{constructor(){super();ot(this,Ra);ot(this,Lo);ot(this,al);We(this,al,t=>{if(!rm&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){de(this,Lo)||this.setEventListener(de(this,al))}onUnsubscribe(){var t;this.hasListeners()||((t=de(this,Lo))==null||t.call(this),We(this,Lo,void 0))}setEventListener(t){var n;We(this,al,t),(n=de(this,Lo))==null||n.call(this),We(this,Lo,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){de(this,Ra)!==t&&(We(this,Ra,t),this.onFocus())}onFocus(){const t=this.isFocused();
vendor: 5,023 bytes, line 185
185this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof de(this,Ra)=="boolean"?de(this,Ra):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Ra=new WeakMap,Lo=new WeakMap,al=new WeakMap,vM),AD=new g9;function v9(){let e,t;const n=new Promise((i,o)=>{e=i,t=o});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}var y9=o9;function b9(){let e=[],t=0,n=l=>{l()},r=l=>{l()},i=y9;const o=l=>{t?e.push(l):i(()=>{n(l)})},a=()=>{const l=e;e=[],l.length&&i(()=>{r(()=>{l.forEach(c=>{n(c)})})})};return{batch:l=>{let c;t++;try{c=l()}finally{t--,t||a()}return c},batchCalls:l=>(...c)=>{o(()=>{l(...c)})},schedule:o,setNotifyFunction:l=>{n=l},setBatchNotifyFunction:l=>{r=l},setScheduler:l=>{i=l}}}var zn=b9(),sl,Fo,ll,yM,x9=(yM=class extends nm{constructor(){super();ot(this,sl,!0);ot(this,Fo);ot(this,ll);We(this,ll,t=>{if(!rm&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){de(this,Fo)||this.setEventListener(de(this,ll))}onUnsubscribe(){var t;this.hasListeners()||((t=de(this,Fo))==null||t.call(this),We(this,Fo,void 0))}setEventListener(t){var n;We(this,ll,t),(n=de(this,Fo))==null||n.call(this),We(this,Fo,t(this.setOnline.bind(this)))}setOnline(t){de(this,sl)!==t&&(We(this,sl,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return de(this,sl)}},sl=new WeakMap,Fo=new WeakMap,ll=new WeakMap,yM),zp=new x9;function w9(e){return Math.min(1e3*2**e,3e4)}function ED(e){return(e??"online")==="online"?zp.isOnline():!0}var Bw=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function kD(e){let t=!1,n=0,r;const i=v9(),o=()=>i.status!=="pending",a=x=>{var y;if(!o()){const w=new Bw(x);g(w),(y=e.onCancel)==null||y.call(e,w)}},l=()=>{t=!0},c=()=>{t=!1},d=()=>AD.isFocused()&&(e.networkMode==="always"||zp.isOnline())&&e.canRun(),f=()=>ED(e.networkMode)&&e.canRun(),p=x=>{o()||(r==null||r(),i.resolve(x))},g=x=>{o()||(r==null||r(),i.reject(x))},v=()=>new Promise(x=>{var y;r=w=>{(o()||d())&&x(w)},(y=e.onPause)==null||y.call(e)}).then(()=>{var x;r=void 0,o()||(x=e.onContinue)==null||x.call(e)}),S=()=>{if(o())return;let x;const y=n===0?e.initialPromise:void 0;try{x=y??e.fn()}catch(w){x=Promise.reject(w)}Promise.resolve(x).then(p).catch(w=>{var O;if(o())return;const A=e.retry??(rm?0:3),_=e.retryDelay??w9,j=typeof _=="function"?_(n,w):_,k=A===!0||typeof A=="number"&&n<A||typeof A=="function"&&A(n,w);if(t||!k){g(w);return}n++,(O=e.onFail)==null||O.call(e,n,w),d9(j).then(()=>d()?void 0:v()).then(()=>{t?g(w):S()})})};return{promise:i,status:()=>i.status,cancel:a,continue:()=>(r==null||r(),i),cancelRetry:l,continueRetry:c,canStart:f,start:()=>(f()?S():v().then(S),i)}}var Ia,bM,OD=(bM=class{constructor(){ot(this,Ia)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),s9(this.gcTime)&&We(this,Ia,Dw.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(rm?1/0:300*1e3))}clearGcTimeout(){de(this,Ia)&&(Dw.clearTimeout(de(this,Ia)),We(this,Ia,void 0))}},Ia=new WeakMap,bM),$a,ul,jr,Ma,pn,pd,Da,Yr,Bi,xM,S9=(xM=class extends OD{constructor(t){super();ot(this,Yr);ot(this,$a);ot(this,ul);ot(this,jr);ot(this,Ma);ot(this,pn);ot(this,pd);ot(this,Da);We(this,Da,!1),We(this,pd,t.defaultOptions),this.setOptions(t.options),this.observers=[],We(this,Ma,t.client),We(this,jr,de(this,Ma).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,We(this,$a,oP(this.options)),this.state=t.state??de(this,$a),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=de(this,pn))==null?void 0:t.promise}setOptions(t){if(this.options={...de(this,pd),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=oP(this.options);n.data!==void 0&&(this.setState(iP(n.data,n.dataUpdatedAt)),We(this,$a,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&de(this,jr).remove(this)}setData(t,n){const r=f9(this.state.data,t,this.options);return Cn(this,Yr,Bi).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){Cn(this,Yr,Bi).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=de(this,pn))==null?void 0:r.promise;return(i=de(this,pn))==null||i.cancel(t),n?n.then(Gr).catch(Gr):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(de(this,$a))}isActive(){return this.observers.some(t=>u9(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===GS||this.state.dataUpdateCount+this.state.errorUpdate
185Count===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Lw(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!l9(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=de(this,pn))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=de(this,pn))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),de(this,jr).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(de(this,pn)&&(de(this,Da)?de(this,pn).cancel({revert:!0}):de(this,pn).cancelRetry()),this.scheduleGc()),de(this,jr).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Cn(this,Yr,Bi).call(this,{type:"invalidate"})}async fetch(t,n){var c,d,f,p,g,v,S,x,y,w,A,_;if(this.state.fetchStatus!=="idle"&&((c=de(this,pn))==null?void 0:c.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(de(this,pn))return de(this,pn).continueRetry(),de(this,pn).promise}if(t&&this.setOptions(t),!this.options.queryFn){const j=this.observers.find(k=>k.options.queryFn);j&&this.setOptions(j.options)}const r=new AbortController,i=j=>{Object.defineProperty(j,"signal",{enumerable:!0,get:()=>(We(this,Da,!0),r.signal)})},o=()=>{const j=_D(this.options,n),O=(()=>{const T={client:de(this,Ma),queryKey:this.queryKey,meta:this.meta};return i(T),T})();return We(this,Da,!1),this.options.persister?this.options.persister(j,O,this):j(O)},l=(()=>{const j={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:de(this,Ma),state:this.state,fetchFn:o};return i(j),j})();(d=this.options.behavior)==null||d.onFetch(l,this),We(this,ul,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((f=l.fetchOptions)==null?void 0:f.meta))&&Cn(this,Yr,Bi).call(this,{type:"fetch",meta:(p=l.fetchOptions)==null?void 0:p.meta}),We(this,pn,kD({initialPromise:n==null?void 0:n.initialPromise,fn:l.fetchFn,onCancel:j=>{j instanceof Bw&&j.revert&&this.setState({...de(this,ul),fetchStatus:"idle"}),r.abort()},onFail:(j,k)=>{Cn(this,Yr,Bi).call(this,{type:"failed",failureCount:j,error:k})},onPause:()=>{Cn(this,Yr,Bi).call(this,{type:"pause"})},onContinue:()=>{Cn(this,Yr,Bi).call(this,{type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0}));try{const j=await de(this,pn).start();if(j===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(j),(v=(g=de(this,jr).config).onSuccess)==null||v.call(g,j,this),(x=(S=de(this,jr).config).onSettled)==null||x.call(S,j,this.state.error,this),j}catch(j){if(j instanceof Bw){if(j.silent)return de(this,pn).promise;if(j.revert){if(this.state.data===void 0)throw j;return this.state.data}}throw Cn(this,Yr,Bi).call(this,{type:"error",error:j}),(w=(y=de(this,jr).config).onError)==null||w.call(y,j,this),(_=(A=de(this,jr).config).onSettled)==null||_.call(A,this.state.data,j,this),j}finally{this.scheduleGc()}}},$a=new WeakMap,ul=new WeakMap,jr=new WeakMap,Ma=new WeakMap,pn=new WeakMap,pd=new WeakMap,Da=new WeakMap,Yr=new WeakSet,Bi=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,..._9(r.data,this.options),fetchMeta:t.meta??null};case"success":const i={...r,...iP(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return We(this,ul,t.manual?i:void 0),i;case"error":const o=t.error;
vendor: 4,307 bytes, line 185
185return{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),zn.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),de(this,jr).notify({query:this,type:"updated",action:t})})},xM);function _9(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:ED(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function iP(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function oP(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}function aP(e){return{onFetch:(t,n)=>{var f,p,g,v,S;const r=t.options,i=(g=(p=(f=t.fetchOptions)==null?void 0:f.meta)==null?void 0:p.fetchMore)==null?void 0:g.direction,o=((v=t.state.data)==null?void 0:v.pages)||[],a=((S=t.state.data)==null?void 0:S.pageParams)||[];let l={pages:[],pageParams:[]},c=0;const d=async()=>{let x=!1;const y=_=>{m9(_,()=>t.signal,()=>x=!0)},w=_D(t.options,t.fetchOptions),A=async(_,j,k)=>{if(x)return Promise.reject();if(j==null&&_.pages.length)return Promise.resolve(_);const T=(()=>{const F={client:t.client,queryKey:t.queryKey,pageParam:j,direction:k?"backward":"forward",meta:t.options.meta};return y(F),F})(),N=await w(T),{maxPages:I}=t.options,z=k?h9:p9;return{pages:z(_.pages,N,I),pageParams:z(_.pageParams,j,I)}};if(i&&o.length){const _=i==="backward",j=_?A9:sP,k={pages:o,pageParams:a},O=j(r,k);l=await A(k,O,_)}else{const _=e??o.length;do{const j=c===0?a[0]??r.initialPageParam:sP(r,l);if(c>0&&j==null)break;l=await A(l,j),c++}while(c<_)}return l};t.options.persister?t.fetchFn=()=>{var x,y;return(y=(x=t.options).persister)==null?void 0:y.call(x,d,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=d}}}function sP(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function A9(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var hd,pi,Nn,La,hi,No,wM,E9=(wM=class extends OD{constructor(t){super();ot(this,hi);ot(this,hd);ot(this,pi);ot(this,Nn);ot(this,La);We(this,hd,t.client),this.mutationId=t.mutationId,We(this,Nn,t.mutationCache),We(this,pi,[]),this.state=t.state||k9(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){de(this,pi).includes(t)||(de(this,pi).push(t),this.clearGcTimeout(),de(this,Nn).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){We(this,pi,de(this,pi).filter(n=>n!==t)),this.scheduleGc(),de(this,Nn).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){de(this,pi).length||(this.state.status==="pending"?this.scheduleGc():de(this,Nn).remove(this))}continue(){var t;return((t=de(this,La))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var a,l,c,d,f,p,g,v,S,x,y,w,A,_,j,k,O,T;const n=()=>{Cn(this,hi,No).call(this,{type:"continue"})},r={client:de(this,hd),meta:this.options.meta,mutationKey:this.options.mutationKey};We(this,La,kD({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(N,I)=>{Cn(this,hi,No).call(this,{type:"failed",failureCount:N,error:I})},onPause:()=>{Cn(this,hi,No).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>de(this,Nn).canRun(this)}));const i=this.state.status==="pending",o=!de(this,La).canStart();try{if(i)n();else{Cn(this,hi,No).call(this,{type:"pending",variables:t,isPaused:o}),de(this,Nn).config.onMutate&&await de(this,Nn).config.onMutate(t,this,r);
185const I=await((l=(a=this.options).onMutate)==null?void 0:l.call(a,t,r));I!==this.state.context&&Cn(this,hi,No).call(this,{type:"pending",context:I,variables:t,isPaused:o})}const N=await de(this,La).start();return await((d=(c=de(this,Nn).config).onSuccess)==null?void 0:d.call(c,N,t,this.state.context,this,r)),await((p=(f=this.options).onSuccess)==null?void 0:p.call(f,N,t,this.state.context,r)),await((v=(g=de(this,Nn).config).onSettled)==null?void 0:v.call(g,N,null,this.state.variables,this.state.context,this,r)),await((x=(S=this.options).onSettled)==null?void 0:x.call(S,N,null,t,this.state.context,r)),Cn(this,hi,No).call(this,{type:"success",data:N}),N}catch(N){try{await((w=(y=de(this,Nn).config).onError)==null?void 0:w.call(y,N,t,this.state.context,this,r))}catch(I){Promise.reject(I)}try{await((_=(A=this.options).onError)==null?void 0:_.call(A,N,t,this.state.context,r))}catch(I){Promise.reject(I)}try{await((k=(j=de(this,Nn).config).onSettled)==null?void 0:k.call(j,void 0,N,this.state.variables,this.state.context,this,r))}catch(I){Promise.reject(I)}try{await((T=(O=this.options).onSettled)==null?void 0:T.call(O,void 0,N,t,this.state.context,r))}catch(I){Promise.reject(I)}throw Cn(this,hi,No).call(this,{type:"error",error:N}),N}finally{de(this,Nn).runNext(this)}}},hd=new WeakMap,pi=new WeakMap,Nn=new WeakMap,La=new WeakMap,hi=new WeakSet,No=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),zn.batch(()=>{de(this,pi).forEach(r=>{r.onMutationUpdate(t)}),de(this,Nn).notify({mutation:this,type:"updated",action:t})})},wM);function k9(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var qi,Xr,md,SM,O9=(SM=class extends nm{constructor(t={}){super();ot(this,qi);ot(this,Xr);ot(this,md);this.config=t,We(this,qi,new Set),We(this,Xr,new Map),We(this,md,0)}build(t,n,r){const i=new E9({client:t,mutationCache:this,mutationId:++Hf(this,md)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){de(this,qi).add(t);const n=Qf(t);if(typeof n=="string"){const r=de(this,Xr).get(n);r?r.push(t):de(this,Xr).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(de(this,qi).delete(t)){const n=Qf(t);if(typeof n=="string"){const r=de(this,Xr).get(n);if(r)if(r.length>1){const i=r.indexOf(t);i!==-1&&r.splice(i,1)}else r[0]===t&&de(this,Xr).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Qf(t);if(typeof n=="string"){const r=de(this,Xr).get(n),i=r==null?void 0:r.find(o=>o.state.status==="pending");return!i||i===t}else return!0}runNext(t){var r;const n=Qf(t);if(typeof n=="string"){const i=(r=de(this,Xr).get(n))==null?void 0:r.find(o=>o!==t&&o.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}else return Promise.resolve()}clear(){zn.batch(()=>{de(this,qi).forEach(t=>{this.notify({type:"removed",mutation:t})}),de(this,qi).clear(),de(this,Xr).clear()})}getAll(){return Array.from(de(this,qi))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>tP(n,r))}findAll(t={}){return this.getAll().filter(n=>tP(t,n))}notify(t){zn.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return zn.batch(()=>Promise.all(t.map(n=>n.continue().catch(Gr))))}},qi=new WeakMap,Xr=new WeakMap,md=new WeakMap,SM);function Qf(e){var t;return(t=e.options.scope)==null?void 0:t.id}var mi,_M,P9=(_M=class extends nm{constructor(t={}){super();ot(this,mi);this.config=t,We(this,mi,new Map)}build(t,n,r){const i=n.queryKey,o=n.queryHash??KS(i,n);let a=this.get(o);return a||(a=new S9({client:t,queryKey:i,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(a)),a}add(t){de(this,mi).has(t.queryHash)||(de(this,mi).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=de(this,mi).get(t.queryHash);n&&(t.destroy(),n===t&&de(this,mi).delete(t.queryHash),this.notify({type:"removed",query:t}))}
185clear(){zn.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return de(this,mi).get(t)}getAll(){return[...de(this,mi).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>eP(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>eP(t,r)):n}notify(t){zn.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){zn.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){zn.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},mi=new WeakMap,_M),Lt,Bo,zo,cl,dl,Uo,fl,pl,AM,j9=(AM=class{constructor(e={}){ot(this,Lt);ot(this,Bo);ot(this,zo);ot(this,cl);ot(this,dl);ot(this,Uo);ot(this,fl);ot(this,pl);We(this,Lt,e.queryCache||new P9),We(this,Bo,e.mutationCache||new O9),We(this,zo,e.defaultOptions||{}),We(this,cl,new Map),We(this,dl,new Map),We(this,Uo,0)}mount(){Hf(this,Uo)._++,de(this,Uo)===1&&(We(this,fl,AD.subscribe(async e=>{e&&(await this.resumePausedMutations(),de(this,Lt).onFocus())})),We(this,pl,zp.subscribe(async e=>{e&&(await this.resumePausedMutations(),de(this,Lt).onOnline())})))}unmount(){var e,t;Hf(this,Uo)._--,de(this,Uo)===0&&((e=de(this,fl))==null||e.call(this),We(this,fl,void 0),(t=de(this,pl))==null||t.call(this),We(this,pl,void 0))}isFetching(e){return de(this,Lt).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return de(this,Bo).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=de(this,Lt).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=de(this,Lt).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Lw(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return de(this,Lt).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=de(this,Lt).get(r.queryHash),o=i==null?void 0:i.state.data,a=a9(t,o);if(a!==void 0)return de(this,Lt).build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return zn.batch(()=>de(this,Lt).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=de(this,Lt).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=de(this,Lt);zn.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=de(this,Lt);return zn.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=zn.batch(()=>de(this,Lt).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(Gr).catch(Gr)}invalidateQueries(e,t={}){return zn.batch(()=>(de(this,Lt).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=zn.batch(()=>de(this,Lt).findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let o=i.fetch(void 0,n);return n.throwOnError||(o=o.catch(Gr)),i.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(Gr)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=de(this,Lt).build(this,t);return n.isStaleByTime(Lw(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Gr).catch(Gr)}fetchInfiniteQuery(e){return e.behavior=aP(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Gr).catch(Gr)}ensureInfiniteQueryData(e){return e.behavior=aP(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return zp.isOnline()?de(this,Bo).resumePausedMutations():Promise.resolve()}getQueryCache(){return de(this,Lt)}getMutationCache(){return de(this,Bo)}getDefaultOptions(){return de(this,zo)}setDefaultOptions(e){We(this,zo,e)}setQueryDefaults(e,t){de(this,cl).set(kc(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...de(this,cl).values()],n={};return t.forEach(r=>{Oc(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){de(this,dl).set(kc(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...de(this,dl).values()],n={};return t.forEach(r=>{Oc(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...de(this,zo).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=KS(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===GS&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...de(this,zo).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){de(this,Lt).clear(),de(this,Bo).clear()}},Lt=new WeakMap,Bo=new WeakMap,zo=new WeakMap,cl=new WeakMap,dl=new WeakMap,Uo=new WeakMap,fl=new WeakMap,pl=new WeakMap,AM),C9=P.createContext(void 0),T9=({client:e,children:t})=>(P.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),h.jsx(C9.Provider,{value:e,children:t}));const N9=new j9({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:1}}});/**
186 * @remix-run/router v1.23.3
187 *
188 * Copyright (c) Remix Software Inc.
189 *
190 * This source code is licensed under the MIT license found in the
191 * LICENSE.md file in the root directory of this source tree.
192 *
193 * @license MIT
194 */function Pc(){return Pc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pc.apply(null,arguments)}var qo;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(qo||(qo={}));const lP="popstate";function R9(e){e===void 0&&(e={});function t(r,i){let{pathname:o,search:a,hash:l}=r.location;return zw("",{pathname:o,search:a,hash:l},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:Up(i)}return $9(t,n,null,e)}function qt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function YS(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function I9(){return Math.random().toString(36).substr(2,8)}function uP(e,t){return{usr:e.state,key:e.key,idx:t}}function zw(e,t,n,r){return n===void 0&&(n=null),Pc({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ul(t):t,{state:n,key:t&&t.key||r||I9()})}function Up(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Ul(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function $9(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,a=i.history,l=qo.Pop,c=null,d=f();d==null&&(d=0,a.replaceState(Pc({},a.state,{idx:d}),""));function f(){return(a.state||{idx:null}).idx}function p(){l=qo.Pop;let y=f(),w=y==null?null:y-d;d=y,c&&c({action:l,location:x.location,delta:w})}function g(y,w){l=qo.Push;let A=zw(x.location,y,w);d=f()+1;let _=uP(A,d),j=x.createHref(A);try{a.pushState(_,"",j)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;i.location.assign(j)}o&&c&&c({action:l,location:x.location,delta:1})}function v(y,w){l=qo.Replace;let A=zw(x.location,y,w);d=f();let _=uP(A,d),j=x.createHref(A);a.replaceState(_,"",j),o&&c&&c({action:l,location:x.location,delta:0})}function S(y){let w=i.location.origin!=="null"?i.location.origin:i.location.href,A=typeof y=="string"?y:Up(y);return A=A.replace(/ $/,"%20"),qt(w,"No window.location.(origin|href) available to create URL for href: "+A),new URL(A,w)}let x={get action(){return l},get location(){return e(i,a)},listen(y){if(c)throw new Error("A history only accepts one active listener");return i.addEventListener(lP,p),c=y,()=>{i.removeEventListener(lP,p),c=null}},createHref(y){return t(i,y)},createURL:S,encodeLocation(y){let w=S(y);return{pathname:w.pathname,search:w.search,hash:w.hash}},push:g,replace:v,go(y){return a.go(y)}};return x}var cP;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(cP||(cP={}));function M9(e,t,n){return n===void 0&&(n="/"),D9(e,t,n)}function D9(e,t,n,r){let i=typeof t=="string"?Ul(t):t,o=XS(i.pathname||"/",n);if(o==null)return null;let a=PD(e);L9(a);let l=null,c=X9(o);for(let d=0;l==null&&d<a.length;++d)l=K9(a[d],c);return l}function PD(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(o,a,l)=>{let c={relativePath:l===void 0?o.path||"":l,caseSensitive:o.caseSensitive===!0,childrenIndex:a,route:o};c.relativePath.startsWith("/")&&(qt(c.relativePath.startsWith(r),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+r+'" is not val
194id. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(r.length));let d=Vo([r,c.relativePath]),f=n.concat(c);o.children&&o.children.length>0&&(qt(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+d+'".')),PD(o.children,t,f,d)),!(o.path==null&&!o.index)&&t.push({path:d,score:W9(d,o.index),routesMeta:f})};return e.forEach((o,a)=>{var l;if(o.path===""||!((l=o.path)!=null&&l.includes("?")))i(o,a);else for(let c of jD(o.path))i(o,a,c)}),t}function jD(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let a=jD(r.join("/")),l=[];return l.push(...a.map(c=>c===""?o:[o,c].join("/"))),i&&l.push(...a),l.map(c=>e.startsWith("/")&&c===""?"/":c)}function L9(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:V9(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const F9=/^:[\w-]+$/,B9=3,z9=2,U9=1,q9=10,H9=-2,dP=e=>e==="*";function W9(e,t){let n=e.split("/"),r=n.length;return n.some(dP)&&(r+=H9),t&&(r+=z9),n.filter(i=>!dP(i)).reduce((i,o)=>i+(F9.test(o)?B9:o===""?U9:q9),r)}function V9(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function K9(e,t,n){let{routesMeta:r}=e,i={},o="/",a=[];for(let l=0;l<r.length;++l){let c=r[l],d=l===r.length-1,f=o==="/"?t:t.slice(o.length)||"/",p=G9({path:c.relativePath,caseSensitive:c.caseSensitive,end:d},f),g=c.route;if(!p)return null;
vendor: 7,205 bytes, lines 194-203
194Object.assign(i,p.params),a.push({params:i,pathname:Vo([o,p.pathname]),pathnameBase:tH(Vo([o,p.pathnameBase])),route:g}),p.pathnameBase!=="/"&&(o=Vo([o,p.pathnameBase]))}return a}function G9(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Y9(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let o=i[0],a=o.replace(/(.)\/+$/,"$1"),l=i.slice(1);return{params:r.reduce((d,f,p)=>{let{paramName:g,isOptional:v}=f;if(g==="*"){let x=l[p]||"";a=o.slice(0,o.length-x.length).replace(/(.)\/+$/,"$1")}const S=l[p];return v&&!S?d[g]=void 0:d[g]=(S||"").replace(/%2F/g,"/"),d},{}),pathname:o,pathnameBase:a,pattern:e}}function Y9(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),YS(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,l,c)=>(r.push({paramName:l,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function X9(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return YS(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function XS(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const Q9=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Z9=e=>Q9.test(e);function J9(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Ul(e):e,o;if(n)if(Z9(n))o=n;else{if(n.includes("//")){let a=n;n=CD(n),YS(!1,"Pathnames cannot have embedded double slashes - normalizing "+(a+" -> "+n))}n.startsWith("/")?o=fP(n.substring(1),"/"):o=fP(n,t)}else o=t;return{pathname:o,search:nH(r),hash:rH(i)}}function fP(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function Xv(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"].  Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function eH(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function QS(e,t){let n=eH(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function ZS(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Ul(e):(i=Pc({},e),qt(!i.pathname||!i.pathname.includes("?"),Xv("?","pathname","search",i)),qt(!i.pathname||!i.pathname.includes("#"),Xv("#","pathname","hash",i)),qt(!i.search||!i.search.includes("#"),Xv("#","search","hash",i)));let o=e===""||i.pathname==="",a=o?"/":i.pathname,l;if(a==null)l=n;else{let p=t.length-1;if(!r&&a.startsWith("..")){let g=a.split("/");for(;g[0]==="..";)g.shift(),p-=1;i.pathname=g.join("/")}l=p>=0?t[p]:"/"}let c=J9(i,l),d=a&&a!=="/"&&a.endsWith("/"),f=(o||a===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(d||f)&&(c.pathname+="/"),c}const CD=e=>e.replace(/\/\/+/g,"/"),Vo=e=>CD(e.join("/")),tH=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),nH=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,rH=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function iH(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const TD=["post","put","patch","delete"];new Set(TD);const oH=["get",...TD];new Set(oH);/**
195 * React Router v6.30.4
196 *
197 * Copyright (c) Remix Software Inc.
198 *
199 * This source code is licensed under the MIT license found in the
200 * LICENSE.md file in the root directory of this source tree.
201 *
202 * @license MIT
203 */function jc(){return jc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jc.apply(null,arguments)}const JS=P.createContext(null),aH=P.createContext(null),Qo=P.createContext(null),bd=P.createContext(null),no=P.createContext({outlet:null,matches:[],isDataRoute:!1}),ND=P.createContext(null);function sH(e,t){let{relative:n}=t===void 0?{}:t;ql()||qt(!1);let{basename:r,navigator:i}=P.useContext(Qo),{hash:o,pathname:a,search:l}=ID(e,{relative:n}),c=a;return r!=="/"&&(c=a==="/"?r:Vo([r,a])),i.createHref({pathname:c,search:l,hash:o})}function ql(){return P.useContext(bd)!=null}function ro(){return ql()||qt(!1),P.useContext(bd).location}function lH(){return P.useContext(bd).navigationType}function RD(e){P.useContext(Qo).static||P.useLayoutEffect(e)}function Ja(){let{isDataRoute:e}=P.useContext(no);return e?wH():uH()}function uH(){ql()||qt(!1);let e=P.useContext(JS),{basename:t,future:n,navigator:r}=P.useContext(Qo),{matches:i}=P.useContext(no),{pathname:o}=ro(),a=JSON.stringify(QS(i,n.v7_relativeSplatPath)),l=P.useRef(!1);return RD(()=>{l.current=!0}),P.useCallback(function(d,f){if(f===void 0&&(f={}),!l.current)return;if(typeof d=="number"){r.go(d);return}let p=ZS(d,JSON.parse(a),o,f.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:Vo([t,p.pathname])),(f.replace?r.replace:r.push)(p,f.state,f)},[t,r,a,o,e])}function im(){let{matches:e}=P.useContext(no),t=e[e.length-1];return t?t.params:{}}function ID(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=P.useContext(Qo),{matches:i}=P.useContext(no),{pathname:o}=ro(),a=JSON.stringify(QS(i,r.v7_relativeSplatPath));return P.useMemo(()=>ZS(e,JSON.parse(a),o,n==="path"),[e,a,o,n])}function cH(e,t){return dH(e,t)}function dH(e,t,n,r){ql()||qt(!1);let{navigator:i}=P.useContext(Qo),{matches:o}=P.useContext(no),a=o[o.length-1],l=a?a.params:{};a&&a.pathname;let c=a?a.pathnameBase:"/";a&&a.route;let d=ro(),f;if(t){var p;let y=typeof t=="string"?Ul(t):t;c==="/"||(p=y.pathname)!=null&&p.startsWith(c)||qt(!1),f=y}else f=d;let g=f.pathname||"/",v=g;if(c!=="/"){let y=c.replace(/^\//,"").split("/");v="/"+g.replace(/^\//,"").split("/").slice(y.length).join("/")}let S=M9(e,{pathname:v}),x=gH(S&&S.map(y=>Object.assign({},y,{params:Object.assign({},l,y.params),pathname:Vo([c,i.encodeLocation?i.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?c:Vo([c,i.encodeLocation?i.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),o,n,r);return t&&x?P.createElement(bd.Provider,{value:{location:jc({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:qo.Pop}},x):x}function fH(){let e=xH(),t=iH(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return P.createElement(P.Fragment,null,P.createElement("h2",null,"Unexpected Application 
203Error!"),P.createElement("h3",{style:{fontStyle:"italic"}},t),n?P.createElement("pre",{style:i},n):null,null)}const pH=P.createElement(fH,null);class hH extends P.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?P.createElement(no.Provider,{value:this.props.routeContext},P.createElement(ND.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function mH(e){let{routeContext:t,match:n,children:r}=e,i=P.useContext(JS);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),P.createElement(no.Provider,{value:t},r)}function gH(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if(!n)return null;if(n.errors)e=n.matches;else if((o=r)!=null&&o.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,l=(i=n)==null?void 0:i.errors;if(l!=null){let f=a.findIndex(p=>p.route.id&&(l==null?void 0:l[p.route.id])!==void 0);f>=0||qt(!1),a=a.slice(0,Math.min(a.length,f+1))}let c=!1,d=-1;if(n&&r&&r.v7_partialHydration)for(let f=0;f<a.length;f++){let p=a[f];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(d=f),p.route.id){let{loaderData:g,errors:v}=n,S=p.route.loader&&g[p.route.id]===void 0&&(!v||v[p.route.id]===void 0);if(p.route.lazy||S){c=!0,d>=0?a=a.slice(0,d+1):a=[a[0]];break}}}return a.reduceRight((f,p,g)=>{let v,S=!1,x=null,y=null;n&&(v=l&&p.route.id?l[p.route.id]:void 0,x=p.route.errorElement||pH,c&&(d<0&&g===0?(SH("route-fallback"),S=!0,y=null):d===g&&(S=!0,y=p.route.hydrateFallbackElement||null)));let w=t.concat(a.slice(0,g+1)),A=()=>{let _;return v?_=x:S?_=y:p.route.Component?_=P.createElement(p.route.Component,null):p.route.element?_=p.route.element:_=f,P.createElement(mH,{match:p,routeContext:{outlet:f,matches:w,isDataRoute:n!=null},children:_})};return n&&(p.route.ErrorBoundary||p.route.errorElement||g===0)?P.createElement(hH,{location:n.location,revalidation:n.revalidation,component:x,error:v,children:A(),routeContext:{outlet:null,matches:w,isDataRoute:!0}}):A()},null)}var $D=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})($D||{}),MD=(function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e})(MD||{});function vH(e){let t=P.useContext(JS);return t||qt(!1),t}function yH(e){let t=P.useContext(aH);return t||qt(!1),t}function bH(e){let t=P.useContext(no);return t||qt(!1),t}function DD(e){let t=bH(),n=t.matches[t.matches.length-1];return n.route.id||qt(!1),n.route.id}function xH(){var e;let t=P.useContext(ND),n=yH(),r=DD();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function wH(){let{router:e}=vH($D.UseNavigateStable),t=DD(MD.UseNavigateStable),n=P.useRef(!1);return RD(()=>{n.current=!0}),P.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,jc({fromRouteId:t},o)))},[e,t])}const pP={};function SH(e,t,n){pP[e]||(pP[e]=!0)}function _H(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function LD(e){let{to:t,replace:n,state:r,relative:i}=e;ql()||qt(!1);let{future:o,static:a}=P.useContext(Qo),{matches:l}=P.useContext(no),{pathname:c}=ro(),d=Ja(),f=ZS(t,QS(l,o.v7_relativeSplatPath),c,i==="path"),p=JSON.stringify(f);return P.useEffect(()=>d(JSON.parse(p),{replace:n,state:r,relative:i}),[d,p,i,n,r]),null}function fn(e){qt(!1)}function AH(e){let{basename:t="/",children:n=null,location:r,navigationType:i=qo.Pop,navigator:o,static:a=!1,future:l}=e;ql()&&qt(!1);let c=t.replace(/^\/*/,"/"),d=P.useMemo(()=>({basename:c,navigator:o,static:a,future:jc({v7_relativeSplatPath:!1},l)}),[c,l,o,a]);typeof r=="string"&&(r=Ul(r));let{pathname:f="/",search:p="",hash:g="",state:v=null,key:S="default"}=r,x=P.useMemo(()=>{let y=XS(f,c);return y==null?null:{location:{pathname:y,search:p,hash:g,state:v,key:S},navigationType:i}},[c,f,p,g,v,S,i]);return x==null?null:P.createElement(Qo.Provider,{value:d},P.createElement(bd.Provider,{children:n,value:x}))}function EH(e){let{children:t,location:n}=e;return cH(Uw(t),n)}new Promise(()=>{});function Uw(e,t){t===void 0&&(t=[]);let n=[];
203return P.Children.forEach(e,(r,i)=>{if(!P.isValidElement(r))return;let o=[...t,i];if(r.type===P.Fragment){n.push.apply(n,Uw(r.props.children,o));return}r.type!==fn&&qt(!1),!r.props.index||!r.props.children||qt(!1);let a={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=Uw(r.props.children,o)),n.push(a)}),n}/**
204 * React Router DOM v6.30.4
205 *
206 * Copyright (c) Remix Software Inc.
207 *
208 * This source code is licensed under the MIT license found in the
209 * LICENSE.md file in the root directory of this source tree.
210 *
211 * @license MIT
212 */function qw(){return qw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qw.apply(null,arguments)}function kH(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function OH(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function PH(e,t){return e.button===0&&(!t||t==="_self")&&!OH(e)}function Hw(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(i=>[n,i]):[[n,r]])},[]))}function jH(e,t){let n=Hw(e);return t&&t.forEach((r,i)=>{n.has(i)||t.getAll(i).forEach(o=>{n.append(i,o)})}),n}const CH=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],TH="6";try{window.__reactRouterVersion=TH}catch{}const NH="startTransition",hP=Jh[NH];function RH(e){let{basename:t,children:n,future:r,window:i}=e,o=P.useRef();o.current==null&&(o.current=R9({window:i,v5Compat:!0}));let a=o.current,[l,c]=P.useState({action:a.action,location:a.location}),{v7_startTransition:d}=r||{},f=P.useCallback(p=>{d&&hP?hP(()=>c(p)):c(p)},[c,d]);return P.useLayoutEffect(()=>a.listen(f),[a,f]),P.useEffect(()=>_H(r),[r]),P.createElement(AH,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:a,future:r})}const IH=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",$H=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,rt=P.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:a,state:l,target:c,to:d,preventScrollReset:f,viewTransition:p}=t,g=kH(t,CH),{basename:v}=P.useContext(Qo),S,x=!1;if(typeof d=="string"&&$H.test(d)&&(S=d,IH))try{let _=new URL(window.location.href),j=d.startsWith("//")?new URL(_.protocol+d):new URL(d),k=XS(j.pathname,v);j.origin===_.origin&&k!=null?d=k+j.search+j.hash:x=!0}catch{}let y=sH(d,{relative:i}),w=MH(d,{replace:a,state:l,target:c,preventScrollReset:f,relative:i,viewTransition:p});function A(_){r&&r(_),_.defaultPrevented||w(_)}return P.createElement("a",qw({},g,{href:S||y,onClick:x||o?r:A,ref:n,target:c}))});var mP;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(mP||(mP={}));var gP;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(gP||(gP={}));function MH(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:a,viewTransition:l}=t===void 0?{}:t,c=Ja(),d=ro(),f=ID(e,{relative:a});return P.useCallback(p=>{if(PH(p,n)){p.preventDefault();let g=r!==void 0?r:Up(d)===Up(f);c(e,{replace:g,state:i,preventScrollReset:o,relative:a,viewTransition:l})}},[d,c,f,r,i,n,e,o,a,l])}function FD(e){let t=P.useRef(Hw(e)),n=P.useRef(!1),r=ro(),i=P.useMemo(()=>jH(r.search,n.current?null:t.current),[r.search]),o=Ja(),a=P.useCallback((l,c)=>{const d=Hw(typeof l=="function"?l(i):l);n.current=!0,o("?"+d,c)},[o,i]);return[i,a]}function BD(e,t){return function(){return e.apply(t,arguments)}}const{toString:DH}=Object.prototype,{getPrototypeOf:ml}=Object,{iterator:xd,toStringTag:zD}=Symbol,qp=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Cc=(e,t)=>{let n=e;const r=[];for(;n!=null&&n!==Object.prototype;){if(r.indexOf(n)!==-1)return!1;if(r.push(n),qp(n,t))return!0;n=ml(n)}return!1},LH=(e,t)=>
vendor: 12,688 bytes, lines 212-214
212e!=null&&Cc(e,t)?e[t]:void 0,e_=(e=>t=>{const n=DH.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ni=e=>(e=e.toLowerCase(),t=>e_(t)===e),om=e=>t=>typeof t===e,{isArray:Ua}=Array,gl=om("undefined");function Hl(e){return e!==null&&!gl(e)&&e.constructor!==null&&!gl(e.constructor)&&nr(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const UD=ni("ArrayBuffer");function FH(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&UD(e.buffer),t}const BH=om("string"),nr=om("function"),qD=om("number"),Wl=e=>e!==null&&typeof e=="object",zH=e=>e===!0||e===!1,jp=e=>{if(!Wl(e))return!1;const t=ml(e);return(t===null||t===Object.prototype||ml(t)===null)&&!Cc(e,zD)&&!Cc(e,xd)},UH=e=>{if(!Wl(e)||Hl(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},qH=ni("Date"),HH=ni("File"),WH=e=>!!(e&&typeof e.uri<"u"),VH=e=>e&&typeof e.getParts<"u",KH=ni("Blob"),GH=ni("FileList"),YH=e=>Wl(e)&&nr(e.pipe);function XH(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const vP=XH(),yP=typeof vP.FormData<"u"?vP.FormData:void 0,QH=e=>{if(!e)return!1;if(yP&&e instanceof yP)return!0;const t=ml(e);if(!t||t===Object.prototype||!nr(e.append))return!1;const n=e_(e);return n==="formdata"||n==="object"&&nr(e.toString)&&e.toString()==="[object FormData]"},ZH=ni("URLSearchParams"),[JH,eW,tW,nW]=["ReadableStream","Request","Response","Headers"].map(ni),rW=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function wd(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),Ua(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(Hl(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),a=o.length;let l;for(r=0;r<a;r++)l=o[r],t.call(null,e[l],l,e)}}function HD(e,t){if(Hl(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const Oa=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,WD=e=>!gl(e)&&e!==Oa;function Ww(...e){const{caseless:t,skipUndefined:n}=WD(this)&&this||{},r={},i=(o,a)=>{if(a==="__proto__"||a==="constructor"||a==="prototype")return;const l=t&&typeof a=="string"&&HD(r,a)||a,c=qp(r,l)?r[l]:void 0;jp(c)&&jp(o)?r[l]=Ww(c,o):jp(o)?r[l]=Ww({},o):Ua(o)?r[l]=o.slice():(!n||!gl(o))&&(r[l]=o)};for(let o=0,a=e.length;o<a;o++){const l=e[o];if(!l||Hl(l)||(wd(l,i),typeof l!="object"||Ua(l)))continue;const c=Object.getOwnPropertySymbols(l);for(let d=0;d<c.length;d++){const f=c[d];mW.call(l,f)&&i(l[f],f)}}return r}const iW=(e,t,n,{allOwnKeys:r}={})=>(wd(t,(i,o)=>{n&&nr(i)?Object.defineProperty(e,o,{__proto__:null,value:BD(i,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,o,{__proto__:null,value:i,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),oW=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),aW=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},sW=(e,t,n,r)=>{let i,o,a;const l={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)a=i[o],(!r||r(a,e,t))&&!l[a]&&(t[a]=e[a],l[a]=!0);e=n!==!1&&ml(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},lW=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},uW=e=>{if(!e)return null;if(Ua(e))return e;let t=e.length;if(!qD(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},cW=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ml(Uint8Array)),dW=(e,t)=>{const r=(e&&e[xd]).call(e);let i;for(;(i=r.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},fW=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},pW=ni("HTMLFormElement"),hW=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),{propertyIsEnumerable:mW}=Object.prototype,gW=ni("RegExp"),VD=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};wd(n,(i,o)=>{let a;(a=t(i,o,e))!==!1&&(r[o]=a||i)}),Object.defineProperties(e,r)},vW=e=>{VD(e,(t,n)=>{if(nr(e)&&["arguments","caller","callee"].includes(n))return!1;const r=e[n];if(nr(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},yW=(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return Ua(e)?r(e):r(String(e).split(t)),n},bW=()=>{},xW=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function wW(e){return!!(e&&nr(e.append)&&e[zD]==="FormData"&&e[xd])}const SW=e=>{const t=new WeakSet,n=r=>{if(Wl(r)){if(t.has(r))return;if(Hl(r))return r;if(!("toJSON"in r)){t.add(r);const i=Ua(r)?[]:{};return wd(r,(o,a)=>{const l=n(o);!gl(l)&&(i[a]=l)}),t.delete(r),i}}return r};return n(e)},_W=ni("AsyncFunction"),AW=e=>e&&(Wl(e)||nr(e))&&nr(e.then)&&nr(e.catch),KD=((e,t)=>e?setImmediate:t?((n,r)=>(Oa.addEventListener("message",({source:i,data:o})=>{i===Oa&&o===n&&r.length&&r.shift()()},!1),i=>{r.push(i),Oa.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",nr(Oa.postMessage)),EW=typeof queueMicrotask<"u"?queueMicrotask.bind(Oa):typeof process<"u"&&process.nextTick||KD,GD=e=>e!=null&&nr(e[xd]),kW=e=>e!=null&&Cc(e,xd)&&GD(e),Q={isArray:Ua,isArrayBuffer:UD,isBuffer:Hl,isFormData:QH,isArrayBufferView:FH,isString:BH,isNumber:qD,isBoolean:zH,isObject:Wl,isPlainObject:jp,isEmptyObject:UH,isReadableStream:JH,isRequest:eW,isResponse:tW,isHeaders:nW,isUndefined:gl,isDate:qH,isFile:HH,isReactNativeBlob:WH,isReactNative:VH,isBlob:KH,isRegExp:gW,isFunction:nr,isStream:YH,isURLSearchParams:ZH,isTypedArray:cW,isFileList:GH,forEach:wd,merge:Ww,extend:iW,trim:rW,stripBOM:oW,inherits:aW,toFlatObject:sW,kindOf:e_,kindOfTest:ni,endsWith:lW,toArray:uW,forEachEntry:dW,matchAll:fW,isHTMLForm:pW,hasOwnProperty:qp,hasOwnProp:qp,hasOwnInPrototypeChain:Cc,getSafeProp:LH,reduceDescriptors:VD,freezeMethods:vW,toObjectSet:yW,toCamelCase:hW,noop:bW,toFiniteNumber:xW,findKey:HD,global:Oa,isContextDefined:WD,isSpecCompliantForm:wW,toJSONObject:SW,isAsyncFn:_W,isThenable:AW,setImmediate:KD,asap:EW,isIterable:GD,isSafeIterable:kW},OW=Q.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),PW=e=>{const t={};let n,r,i;return e&&e.split(`
213`).forEach(function(a){i=a.indexOf(":"),n=a.substring(0,i).trim().toLowerCase(),r=a.substring(i+1).trim(),!(!n||t[n]&&OW[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t};function jW(e){let t=0,n=e.length;for(;t<n;){const r=e.charCodeAt(t);if(r!==9&&r!==32)break;t+=1}for(;n>t;){const r=e.charCodeAt(n-1);if(r!==9&&r!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}const CW=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),TW=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function t_(e,t){return Q.isArray(e)?e.map(n=>t_(n,t)):jW(String(e).replace(t,""))}const NW=e=>t_(e,CW),RW=e=>t_(e,TW);function YD(e){const t=Object.create(null);return Q.forEach(e.toJSON(),(n,r)=>{t[r]=RW(n)}),t}const bP=Symbol("internals");function qu(e){return e&&String(e).trim().toLowerCase()}function Cp(e){return e===!1||e==null?e:Q.isArray(e)?e.map(Cp):NW(String(e))}function IW(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const $W=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Qv(e,t,n,r,i){if(Q.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!Q.isString(t)){if(Q.isString(r))return t.indexOf(r)!==-1;if(Q.isRegExp(r))return r.test(t)}}function MW(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function DW(e,t){const n=Q.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(i,o,a){return this[r].call(this,t,i,o,a)},configurable:!0})})}let Mn=class{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function o(l,c,d){const f=qu(c);if(!f)return;const p=Q.findKey(i,f);(!p||i[p]===void 0||d===!0||d===void 0&&i[p]!==!1)&&(i[p||c]=Cp(l))}const a=(l,c)=>Q.forEach(l,(d,f)=>o(d,f,c));if(Q.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(Q.isString(t)&&(t=t.trim())&&!$W(t))a(PW(t),n);else if(Q.isObject(t)&&Q.isSafeIterable(t)){let l=Object.create(null),c,d;for(const f of t){if(!Q.isArray(f))throw new TypeError("Object iterator must return a key-value pair");d=f[0],Q.hasOwnProp(l,d)?(c=l[d],l[d]=Q.isArray(c)?[...c,f[1]]:[c,f[1]]):l[d]=f[1]}a(l,n)}else t!=null&&o(n,t,r);return this}get(t,n){if(t=qu(t),t){const r=Q.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return IW(i);if(Q.isFunction(n))return n.call(this,i,r);if(Q.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=qu(t),t){const r=Q.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Qv(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function o(a){if(a=qu(a),a){const l=Q.findKey(r,a);l&&(!n||Qv(r,r[l],l,n))&&(delete r[l],i=!0)}}return Q.isArray(t)?t.forEach(o):o(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const o=n[r];(!t||Qv(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const n=this,r={};return Q.forEach(this,(i,o)=>{const a=Q.findKey(r,o);if(a){n[a]=Cp(i),delete n[o];return}const l=t?MW(o):String(o).trim();l!==o&&delete n[o],n[l]=Cp(i),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Q.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&Q.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
214`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[bP]=this[bP]={accessors:{}}).accessors,i=this.prototype;function o(a){const l=qu(a);r[l]||(DW(i,a),r[l]=!0)}return Q.isArray(t)?t.forEach(o):o(t),this}};Mn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Q.reduceDescriptors(Mn.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});Q.freezeMethods(Mn);const LW="[REDACTED ****]";function FW(e){if(Q.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(Q.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function BW(e,t){const n=new Set(t.map(o=>String(o).toLowerCase())),r=[],i=o=>{if(o===null||typeof o!="object"||Q.isBuffer(o))return o;if(r.indexOf(o)!==-1)return;o instanceof Mn&&(o=o.toJSON()),r.push(o);let a;if(Q.isArray(o))a=[],o.forEach((l,c)=>{const d=i(l);Q.isUndefined(d)||(a[c]=d)});else{if(!Q.isPlainObject(o)&&FW(o))return r.pop(),o;a=Object.create(null);for(const[l,c]of Object.entries(o)){const d=n.has(l.toLowerCase())?LW:i(c);Q.isUndefined(d)||(a[l]=d)}}return r.pop(),a};return i(e)}let Ee=class XD extends Error{static from(t,n,r,i,o,a){const l=new XD(t.message,n||t.code,r,i,o);return Object.defineProperty(l,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),l.name=t.name,t.status!=null&&l.status==null&&(l.status=t.status),a&&Object.assign(l,a),l}constructor(t,n,r,i,o){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),i&&(this.request=i),o&&(this.response=o,this.status=o.status)}toJSON(){const t=this.config,n=t&&Q.hasOwnProp(t,"redact")?t.redact:void 0,r=Q.isArray(n)&&n.length>0?BW(t,n):Q.toJSONObject(t);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:r,code:this.code,status:this.status}}};Ee.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";Ee.ERR_BAD_OPTION="ERR_BAD_OPTION";Ee.ECONNABORTED="ECONNABORTED";Ee.ETIMEDOUT="ETIMEDOUT";Ee.ECONNREFUSED="ECONNREFUSED";Ee.ERR_NETWORK="ERR_NETWORK";
vendor: 3,308 bytes, line 214
214Ee.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";Ee.ERR_DEPRECATED="ERR_DEPRECATED";Ee.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";Ee.ERR_BAD_REQUEST="ERR_BAD_REQUEST";Ee.ERR_CANCELED="ERR_CANCELED";Ee.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";Ee.ERR_INVALID_URL="ERR_INVALID_URL";Ee.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const zW=null,QD=100;function Vw(e){return Q.isPlainObject(e)||Q.isArray(e)}function ZD(e){return Q.endsWith(e,"[]")?e.slice(0,-2):e}function Zv(e,t,n){return e?e.concat(t).map(function(i,o){return i=ZD(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function UW(e){return Q.isArray(e)&&!e.some(Vw)}const qW=Q.toFlatObject(Q,{},null,function(t){return/^is[A-Z]/.test(t)});function am(e,t,n){if(!Q.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Q.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(A,_){return!Q.isUndefined(_[A])});const r=n.metaTokens,i=n.visitor||S,o=n.dots,a=n.indexes,l=n.Blob||typeof Blob<"u"&&Blob,c=n.maxDepth===void 0?QD:n.maxDepth,d=l&&Q.isSpecCompliantForm(t),f=[];if(!Q.isFunction(i))throw new TypeError("visitor must be a function");function p(w){if(w===null)return"";if(Q.isDate(w))return w.toISOString();if(Q.isBoolean(w))return w.toString();if(!d&&Q.isBlob(w))throw new Ee("Blob is not supported. Use a Buffer instead.");if(Q.isArrayBuffer(w)||Q.isTypedArray(w)){if(d&&typeof l=="function")return new l([w]);if(typeof Buffer<"u")return Buffer.from(w);throw new Ee("Blob is not supported. Use a Buffer instead.",Ee.ERR_NOT_SUPPORT)}return w}function g(w){if(w>c)throw new Ee("Object is too deeply nested ("+w+" levels). Max depth: "+c,Ee.ERR_FORM_DATA_DEPTH_EXCEEDED)}function v(w,A){if(c===1/0)return JSON.stringify(w);const _=[];return JSON.stringify(w,function(k,O){if(!Q.isObject(O))return O;for(;_.length&&_[_.length-1]!==this;)_.pop();return _.push(O),g(A+_.length-1),O})}function S(w,A,_){let j=w;if(Q.isReactNative(t)&&Q.isReactNativeBlob(w))return t.append(Zv(_,A,o),p(w)),!1;if(w&&!_&&typeof w=="object"){if(Q.endsWith(A,"{}"))A=r?A:A.slice(0,-2),w=v(w,1);else if(Q.isArray(w)&&UW(w)||(Q.isFileList(w)||Q.endsWith(A,"[]"))&&(j=Q.toArray(w)))return A=ZD(A),j.forEach(function(O,T){!(Q.isUndefined(O)||O===null)&&t.append(a===!0?Zv([A],T,o):a===null?A:A+"[]",p(O))}),!1}return Vw(w)?!0:(t.append(Zv(_,A,o),p(w)),!1)}const x=Object.assign(qW,{defaultVisitor:S,convertValue:p,isVisitable:Vw});function y(w,A,_=0){if(!Q.isUndefined(w)){if(g(_),f.indexOf(w)!==-1)throw new Error("Circular reference detected in "+A.join("."));f.push(w),Q.forEach(w,function(k,O){(!(Q.isUndefined(k)||k===null)&&i.call(t,k,Q.isString(O)?O.trim():O,A,x))===!0&&y(k,A?A.concat(O):[O],_+1)}),f.pop()}}if(!Q.isObject(e))throw new TypeError("data must be an object");return y(e),t}function xP(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(r){return t[r]})}function n_(e,t){this._pairs=[],e&&am(e,this,t)}const JD=n_.prototype;JD.append=function(t,n){this._pairs.push([t,n])};JD.toString=function(t){const n=t?r=>t.call(this,r,xP):xP;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function HW(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}
vendor: 2,722 bytes, line 214
214function eL(e,t,n){if(!t)return e;e=e||"";const r=Q.isFunction(n)?{serialize:n}:n,i=Q.getSafeProp(r,"encode")||HW,o=Q.getSafeProp(r,"serialize");let a;if(o?a=o(t,r):a=Q.isURLSearchParams(t)?t.toString():new n_(t,r).toString(i),a){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class wP{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Q.forEach(this.handlers,function(r){r!==null&&t(r)})}}const r_={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},WW=typeof URLSearchParams<"u"?URLSearchParams:n_,VW=typeof FormData<"u"?FormData:null,KW=typeof Blob<"u"?Blob:null,GW={isBrowser:!0,classes:{URLSearchParams:WW,FormData:VW,Blob:KW},protocols:["http","https","file","blob","url","data"]},i_=typeof window<"u"&&typeof document<"u",Kw=typeof navigator=="object"&&navigator||void 0,YW=i_&&(!Kw||["ReactNative","NativeScript","NS"].indexOf(Kw.product)<0),XW=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",QW=i_&&window.location.href||"http://localhost",ZW=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:i_,hasStandardBrowserEnv:YW,hasStandardBrowserWebWorkerEnv:XW,navigator:Kw,origin:QW},Symbol.toStringTag,{value:"Module"})),An={...ZW,...GW};function JW(e,t){return am(e,new An.classes.URLSearchParams,{visitor:function(n,r,i,o){return An.isNode&&Q.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}const SP=QD;function tL(e){if(e>SP)throw new Ee("FormData field is too deeply nested ("+e+" levels). Max depth: "+SP,Ee.ERR_FORM_DATA_DEPTH_EXCEEDED)}function e7(e){const t=[],n=/\w+|\[(\w*)]/g;let r;for(;(r=n.exec(e))!==null;)tL(t.length),t.push(r[0]==="[]"?"":r[1]||r[0]);return t}function t7(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],t[o]=e[o];return t}function nL(e){function t(n,r,i,o){tL(o);let a=n[o++];if(a==="__proto__")return!0;const l=Number.isFinite(+a),c=o>=n.length;return a=!a&&Q.isArray(i)?i.length:a,c?(Q.hasOwnProp(i,a)?i[a]=Q.isArray(i[a])?i[a].concat(r):[i[a],r]:i[a]=r,!l):((!Q.hasOwnProp(i,a)||!Q.isObject(i[a]))&&(i[a]=[]),t(n,r,i[a],o)&&Q.isArray(i[a])&&(i[a]=t7(i[a])),!l)}if(Q.isFormData(e)&&Q.isFunction(e.entries)){const n={};return Q.forEachEntry(e,(r,i)=>{t(e7(r),i,n,0)}),n}return null}const Is=(e,t)=>e!=null&&Q.hasOwnProp(e,t)?e[t]:void 0;
vendor: 19,224 bytes, lines 214-216
214function n7(e,t,n){if(Q.isString(e))try{return(t||JSON.parse)(e),Q.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Sd={transitional:r_,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=Q.isObject(t);if(o&&Q.isHTMLForm(t)&&(t=new FormData(t)),Q.isFormData(t))return i?JSON.stringify(nL(t)):t;if(Q.isArrayBuffer(t)||Q.isBuffer(t)||Q.isStream(t)||Q.isFile(t)||Q.isBlob(t)||Q.isReadableStream(t))return t;if(Q.isArrayBufferView(t))return t.buffer;if(Q.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(o){const c=Is(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return JW(t,c).toString();if((l=Q.isFileList(t))||r.indexOf("multipart/form-data")>-1){const d=Is(this,"env"),f=d&&d.FormData;return am(l?{"files[]":t}:t,f&&new f,c)}}return o||i?(n.setContentType("application/json",!1),n7(t)):t}],transformResponse:[function(t){const n=Is(this,"transitional")||Sd.transitional,r=n&&n.forcedJSONParsing,i=Is(this,"responseType"),o=i==="json";if(Q.isResponse(t)||Q.isReadableStream(t))return t;if(t&&Q.isString(t)&&(r&&!i||o)){const l=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t,Is(this,"parseReviver"))}catch(c){if(l)throw c.name==="SyntaxError"?Ee.from(c,Ee.ERR_BAD_RESPONSE,this,null,Is(this,"response")):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:An.classes.FormData,Blob:An.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Q.forEach(["delete","get","head","post","put","patch","query"],e=>{Sd.headers[e]={}});function Jv(e,t){const n=this||Sd,r=t||n,i=Mn.from(r.headers);let o=r.data;return Q.forEach(e,function(l){o=l.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function rL(e){return!!(e&&e.__CANCEL__)}let _d=class extends Ee{constructor(t,n,r){super(t??"canceled",Ee.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function iL(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Ee("Request failed with status code "+n.status,n.status>=400&&n.status<500?Ee.ERR_BAD_REQUEST:Ee.ERR_BAD_RESPONSE,n.config,n.request,n))}function r7(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function i7(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,o=0,a;return t=t!==void 0?t:1e3,function(c){const d=Date.now(),f=r[o];a||(a=d),n[i]=c,r[i]=d;let p=o,g=0;for(;p!==i;)g+=n[p++],p=p%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),d-a<t)return;const v=f&&d-f;return v?Math.round(g*1e3/v):void 0}}function o7(e,t){let n=0,r=1e3/t,i,o;const a=(d,f=Date.now())=>{n=f,i=null,o&&(clearTimeout(o),o=null),e(...d)};return[(...d)=>{const f=Date.now(),p=f-n;p>=r?a(d,f):(i=d,o||(o=setTimeout(()=>{o=null,a(i)},r-p)))},()=>i&&a(i)]}const Hp=(e,t,n=3)=>{let r=0;const i=i7(50,250);return o7(o=>{if(!o||typeof o.loaded!="number")return;const a=o.loaded,l=o.lengthComputable?o.total:void 0,c=l!=null?Math.min(a,l):a,d=Math.max(0,c-r),f=i(d);r=Math.max(r,c);const p={loaded:c,total:l,progress:l?c/l:void 0,bytes:d,rate:f||void 0,estimated:f&&l?(l-c)/f:void 0,event:o,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(p)},n)},_P=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},AP=e=>(...t)=>Q.asap(()=>e(...t)),a7=An.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,An.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(An.origin),An.navigator&&/(msie|trident)/i.test(An.navigator.userAgent)):()=>!0,s7=An.hasStandardBrowserEnv?{write(e,t,n,r,i,o,a){if(typeof document>"u")return;const l=[`${e}=${encodeURIComponent(t)}`];Q.isNumber(n)&&l.push(`expires=${new Date(n).toUTCString()}`),Q.isString(r)&&l.push(`path=${r}`),Q.isString(i)&&l.push(`domain=${i}`),o===!0&&l.push("secure"),Q.isString(a)&&l.push(`SameSite=${a}`),document.cookie=l.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.split(";");for(let n=0;n<t.length;n++){const r=t[n].replace(/^\s+/,""),i=r.indexOf("=");if(i!==-1&&r.slice(0,i)===e)try{return decodeURIComponent(r.slice(i+1))}catch{return r.slice(i+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function l7(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function u7(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}const c7=/^https?:(?!\/\/)/i,d7=/[\t\n\r]/g;function f7(e){let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t)}function p7(e){return f7(e).replace(d7,"")}function EP(e,t){if(typeof e=="string"&&c7.test(p7(e)))throw new Ee('Invalid URL: missing "//" after protocol',Ee.ERR_INVALID_URL,t)}function oL(e,t,n,r){EP(t,r);let i=!l7(t);return e&&(i||n===!1)?(EP(e,r),u7(e,t)):t}const kP=e=>e instanceof Mn?{...e}:e;function qa(e,t){e=e||{},t=t||{};const n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function r(f,p,g,v){return Q.isPlainObject(f)&&Q.isPlainObject(p)?Q.merge.call({caseless:v},f,p):Q.isPlainObject(p)?Q.merge({},p):Q.isArray(p)?p.slice():p}function i(f,p,g,v){if(Q.isUndefined(p)){if(!Q.isUndefined(f))return r(void 0,f,g,v)}else return r(f,p,g,v)}function o(f,p){if(!Q.isUndefined(p))return r(void 0,p)}function a(f,p){if(Q.isUndefined(p)){if(!Q.isUndefined(f))return r(void 0,f)}else return r(void 0,p)}function l(f){const p=Q.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!Q.isUndefined(p))if(Q.isPlainObject(p)){if(Q.hasOwnProp(p,f))return p[f]}else return;const g=Q.hasOwnProp(e,"transitional")?e.transitional:void 0;if(Q.isPlainObject(g)&&Q.hasOwnProp(g,f))return g[f]}function c(f,p,g){if(Q.hasOwnProp(t,g))return r(f,p);if(Q.hasOwnProp(e,g))return r(void 0,f)}const d={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,allowedSocketPaths:a,responseEncoding:a,validateStatus:c,headers:(f,p,g)=>i(kP(f),kP(p),g,!0)};return Q.forEach(Object.keys({...e,...t}),function(p){if(p==="__proto__"||p==="constructor"||p==="prototype")return;const g=Q.hasOwnProp(d,p)?d[p]:i,v=Q.hasOwnProp(e,p)?e[p]:void 0,S=Q.hasOwnProp(t,p)?t[p]:void 0,x=g(v,S,p);Q.isUndefined(x)&&g!==c||(n[p]=x)}),Q.hasOwnProp(t,"validateStatus")&&Q.isUndefined(t.validateStatus)&&l("validateStatusUndefinedResolves")===!1&&(Q.hasOwnProp(e,"validateStatus")?n.validateStatus=r(void 0,e.validateStatus):delete n.validateStatus),n}const h7=["content-type","content-length"];function m7(e,t,n){if(n!=="content-only"){e.set(t);return}Object.entries(t||{}).forEach(([r,i])=>{h7.includes(r.toLowerCase())&&e.set(r,i)})}const g7=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16)));function aL(e){const t=qa({},e),n=g=>Q.hasOwnProp(t,g)?t[g]:void 0,r=n("data");let i=n("withXSRFToken");const o=n("xsrfHeaderName"),a=n("xsrfCookieName");let l=n("headers");const c=n("auth"),d=n("baseURL"),f=n("allowAbsoluteUrls"),p=n("url");if(t.headers=l=Mn.from(l),t.url=eL(oL(d,p,f,t),n("params"),n("paramsSerializer")),c){const g=Q.getSafeProp(c,"username")||"",v=Q.getSafeProp(c,"password")||"";try{l.set("Authorization","Basic "+btoa(g+":"+(v?g7(v):"")))}catch(S){throw Ee.from(S,Ee.ERR_BAD_OPTION_VALUE,e)}}if(Q.isFormData(r)&&(An.hasStandardBrowserEnv||An.hasStandardBrowserWebWorkerEnv||Q.isReactNative(r)?l.setContentType(void 0):Q.isFunction(r.getHeaders)&&m7(l,r.getHeaders(),n("formDataHeaderPolicy"))),An.hasStandardBrowserEnv&&(Q.isFunction(i)&&(i=i(t)),i===!0||i==null&&a7(t.url))){const v=o&&a&&s7.read(a);v&&l.set(o,v)}return t}const v7=typeof XMLHttpRequest<"u",y7=v7&&function(e){return new Promise(function(n,r){const i=aL(e);let o=i.data;const a=Mn.from(i.headers).normalize();let{responseType:l,onUploadProgress:c,onDownloadProgress:d}=i,f,p,g,v,S;function x(){v&&v(),S&&S(),i.cancelToken&&i.cancelToken.unsubscribe(f),i.signal&&i.signal.removeEventListener("abort",f)}let y=new XMLHttpRequest;y.open(i.method.toUpperCase(),i.url,!0),y.timeout=i.timeout;function w(){if(!y)return;const _=Mn.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders()),k={data:!l||l==="text"||l==="json"?y.responseText:y.response,status:y.status,statusText:y.statusText,headers:_,config:e,request:y};iL(function(T){n(T),x()},function(T){r(T),x()},k),y=null}"onloadend"in y?y.onloadend=w:y.onreadystatechange=function(){!y||y.readyState!==4||y.status===0&&!(y.responseURL&&y.responseURL.startsWith("file:"))||setTimeout(w)},y.onabort=function(){y&&(r(new Ee("Request aborted",Ee.ECONNABORTED,e,y)),x(),y=null)},y.onerror=function(j){const k=j&&j.message?j.message:"Network Error",O=new Ee(k,Ee.ERR_NETWORK,e,y);O.event=j||null,r(O),x(),y=null},y.ontimeout=function(){let j=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const k=i.transitional||r_;i.timeoutErrorMessage&&(j=i.timeoutErrorMessage),r(new Ee(j,k.clarifyTimeoutError?Ee.ETIMEDOUT:Ee.ECONNABORTED,e,y)),x(),y=null},o===void 0&&a.setContentType(null),"setRequestHeader"in y&&Q.forEach(YD(a),function(j,k){y.setRequestHeader(k,j)}),Q.isUndefined(i.withCredentials)||(y.withCredentials=!!i.withCredentials),l&&l!=="json"&&(y.responseType=i.responseType),d&&([g,S]=Hp(d,!0),y.addEventListener("progress",g)),c&&y.upload&&([p,v]=Hp(c),y.upload.addEventListener("progress",p),y.upload.addEventListener("loadend",v)),(i.cancelToken||i.signal)&&(f=_=>{y&&(r(!_||_.type?new _d(null,e,y):_),y.abort(),x(),y=null)},i.cancelToken&&i.cancelToken.subscribe(f),i.signal&&(i.signal.aborted?f():i.signal.addEventListener("abort",f)));const A=r7(i.url);if(A&&!An.protocols.includes(A)){r(new Ee("Unsupported protocol "+A+":",Ee.ERR_BAD_REQUEST,e)),x();return}y.send(o||null)})},b7=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const n=new AbortController;let r=!1;const i=function(c){if(!r){r=!0,a();const d=c instanceof Error?c:this.reason;n.abort(d instanceof Ee?d:new _d(d instanceof Error?d.message:d))}};let o=t&&setTimeout(()=>{o=null,i(new Ee(`timeout of ${t}ms exceeded`,Ee.ETIMEDOUT))},t);const a=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(i):c.removeEventListener("abort",i)}),e=null)};e.forEach(c=>c.addEventListener("abort",i,{once:!0}));const{signal:l}=n;return l.unsubscribe=()=>Q.asap(a),l},x7=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},w7=async function*(e,t){for await(const n of S7(e))yield*x7(n,t)},S7=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},OP=(e,t,n,r)=>{const i=w7(e,t);let o=0,a,l=c=>{a||(a=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:d,value:f}=await i.next();if(d){l(),c.close();return}let p=f.byteLength;if(n){let g=o+=p;n(g)}c.enqueue(new Uint8Array(f))}catch(d){throw l(d),d}},cancel(c){return l(c),i.return()}},{highWaterMark:2})},Wp=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,_7=(e,t,n)=>t+2<n&&Wp(e.charCodeAt(t+1))&&Wp(e.charCodeAt(t+2));function A7(e){if(!e||typeof e!="string"||!e.startsWith("data:"))return 0;const t=e.indexOf(",");if(t<0)return 0;const n=e.slice(5,t),r=e.slice(t+1);if(/;base64/i.test(n)){let a=r.length;const l=r.length;for(let v=0;v<l;v++)if(r.charCodeAt(v)===37&&v+2<l){const S=r.charCodeAt(v+1),x=r.charCodeAt(v+2);Wp(S)&&Wp(x)&&(a-=2,v+=2)}let c=0,d=l-1;const f=v=>v>=2&&r.charCodeAt(v-2)===37&&r.charCodeAt(v-1)===51&&(r.charCodeAt(v)===68||r.charCodeAt(v)===100);d>=0&&(r.charCodeAt(d)===61?(c++,d--):f(d)&&(c++,d-=3)),c===1&&d>=0&&(r.charCodeAt(d)===61||f(d))&&c++;const g=Math.floor(a/4)*3-(c||0);return g>0?g:0}let o=0;for(let a=0,l=r.length;a<l;a++){const c=r.charCodeAt(a);if(c===37&&_7(r,a,l))o+=1,a+=2;else if(c<128)o+=1;else if(c<2048)o+=2;else if(c>=55296&&c<=56319&&a+1<l){const d=r.charCodeAt(a+1);d>=56320&&d<=57343?(o+=4,a++):o+=3}else o+=3}return o}const o_="1.18.1",PP=64*1024,{isFunction:Zf}=Q,E7=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16))),jP=e=>{if(!Q.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},CP=(e,...t)=>{try{return!!e(...t)}catch{return!1}},k7=e=>{const t=e.indexOf("://");let n=e;return t!==-1&&(n=n.slice(t+3)),n.includes("@")||n.includes(":")},O7=e=>{const t=Q.global!==void 0&&Q.global!==null?Q.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=Q.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:i,Request:o,Response:a}=e,l=i?Zf(i):typeof fetch=="function",c=Zf(o),d=Zf(a);if(!l)return!1;const f=l&&Zf(n),p=l&&(typeof r=="function"?(w=>A=>w.encode(A))(new r):async w=>new Uint8Array(await new o(w).arrayBuffer())),g=c&&f&&CP(()=>{let w=!1;const A=new o(An.origin,{body:new n,method:"POST",get duplex(){return w=!0,"half"}}),_=A.headers.has("Content-Type");return A.body!=null&&A.body.cancel(),w&&!_}),v=d&&f&&CP(()=>Q.isReadableStream(new a("").body)),S={stream:v&&(w=>w.body)};l&&["text","arrayBuffer","blob","formData","stream"].forEach(w=>{!S[w]&&(S[w]=(A,_)=>{let j=A&&A[w];if(j)return j.call(A);throw new Ee(`Response type '${w}' is not supported`,Ee.ERR_NOT_SUPPORT,_)})});const x=async w=>{if(w==null)return 0;if(Q.isBlob(w))return w.size;if(Q.isSpecCompliantForm(w))return(await new o(An.origin,{method:"POST",body:w}).arrayBuffer()).byteLength;if(Q.isArrayBufferView(w)||Q.isArrayBuffer(w))return w.byteLength;if(Q.isURLSearchParams(w)&&(w=w+""),Q.isString(w))return(await p(w)).byteLength},y=async(w,A)=>{const _=Q.toFiniteNumber(w.getContentLength());return _??x(A)};return async w=>{let{url:A,method:_,data:j,signal:k,cancelToken:O,timeout:T,onDownloadProgress:N,onUploadProgress:I,responseType:z,headers:F,withCredentials:D="same-origin",fetchOptions:L,maxContentLength:B,maxBodyLength:U}=aL(w);const G=Q.isNumber(B)&&B>-1,Z=Q.isNumber(U)&&U>-1,Y=oe=>Q.hasOwnProp(w,oe)?w[oe]:void 0;let ee=i||fetch;z=z?(z+"").toLowerCase():"text";let R=b7([k,O&&O.toAbortSignal()],T),q=null;const V=R&&R.unsubscribe&&(()=>{R.unsubscribe()});let M,re=null;const ce=()=>new Ee("Request body larger than maxBodyLength limit",Ee.ERR_BAD_REQUEST,w,q);try{let oe;const ae=Y("auth");if(ae){const _e=Q.getSafeProp(ae,"username")||"",Fe=Q.getSafeProp(ae,"password")||"";oe={username:_e,password:Fe}}if(k7(A)){const _e=new URL(A,An.origin);if(!oe&&(_e.username||_e.password)){const Fe=jP(_e.username),et=jP(_e.password);oe={username:Fe,password:et}}(_e.username||_e.password)&&(_e.username="",_e.password="",A=_e.href)}if(oe&&(F.delete("authorization"),F.set("Authorization","Basic "+btoa(E7((oe.username||"")+":"+(oe.password||""))))),G&&typeof A=="string"&&A.startsWith("data:")&&A7(A)>B)throw new Ee("maxContentLength size of "+B+" exceeded",Ee.ERR_BAD_RESPONSE,w,q);if(Z&&_!=="get"&&_!=="head"){const _e=await x(j);if(typeof _e=="number"&&isFinite(_e)&&(M=_e,_e>U))throw ce()}const pe=Z&&(Q.isReadableStream(j)||Q.isStream(j)),te=(_e,Fe,et)=>OP(_e,PP,Ce=>{if(Z&&Ce>U)throw re=ce();Fe&&Fe(Ce)},et);if(g&&_!=="get"&&_!=="head"&&(I||pe)){if(M=M??await y(F,j),M!==0||pe){let _e=new o(A,{method:"POST",body:j,duplex:"half"}),Fe;if(Q.isFormData(j)&&(Fe=_e.headers.get("content-type"))&&F.setContentType(Fe),_e.body){const[et,Ce]=I&&_P(M,Hp(AP(I)))||[];j=te(_e.body,et,Ce)}}}else if(pe&&!c&&f&&_!=="get"&&_!=="head")j=te(j);else if(pe&&c&&!g&&_!=="get"&&_!=="head")throw new Ee("Stream request bodies are not supported by the current fetch implementation",Ee.ERR_NOT_SUPPORT,w,q);Q.isString(D)||(D=D?"include":"omit");const xe=c&&"credentials"in o.prototype;if(Q.isFormData(j)){const _e=F.getContentType();_e&&/^multipart\/form-data/i.test(_e)&&!/boundary=/i.test(_e)&&F.delete("content-type")}F.set("User-Agent","axios/"+o_,!1);const je={...L,signal:R,method:_.toUpperCase(),headers:YD(F.normalize()),body:j,duplex:"half",credentials:xe?D:void 0};q=c&&new o(A,je);let se=await(c?ee(q,L):ee(A,je));const Qe=Mn.from(se.headers);if(G){const _e=Q.toFiniteNumber(Qe.getContentLength());if(_e!=null&&_e>B)throw new Ee("maxContentLength size of "+B+" exceeded",Ee.ERR_BAD_RESPONSE,w,q)}const ge=v&&(z==="stream"||z==="response");if(v&&se.body&&(N||G||ge&&V)){const _e={};["status","statusText","headers"].forEach(Ze=>{_e[Ze]=se[Ze]});const Fe=Q.toFiniteNumber(Qe.getContentLength()),[et,Ce]=N&&_P(Fe,Hp(AP(N),!0))||[];let ze=0;const Ke=Ze=>{if(G&&(ze=Ze,ze>B))throw new Ee("maxContentLength size of "+B+" exceeded",Ee.ERR_BAD_RESPONSE,w,q);et&&et(Ze)};se=new a(OP(se.body,PP,Ke,()=>{Ce&&Ce(),V&&V()}),_e)}z=z||"text";let Ae=await S[Q.findKey(S,z)||"text"](se,w);if(G&&!v&&!ge){let _e;if(Ae!=null&&(typeof Ae.byteLength=="number"?_e=Ae.byteLength:typeof Ae.size=="number"?_e=Ae.size:typeof Ae=="string"&&(_e=typeof r=="function"?new r().encode(Ae).byteLength:Ae.length)),typeof _e=="number"&&_e>B)throw new Ee("maxContentLength size of "+B+" exceeded",Ee.ERR_BAD_RESPONSE,w,q)}return!ge&&V&&V(),await new Promise((_e,Fe)=>{iL(_e,Fe,{data:Ae,headers:Mn.from(se.headers),status:se.status,statusText:se.statusText,config:w,request:q})})}catch(oe){if(V&&V(),R&&R.aborted&&R.reason instanceof Ee){const ae=R.reason;throw ae.config=w,q&&(ae.request=q),oe!==ae&&Object.defineProperty(ae,"cause",{__proto__:null,value:oe,writable:!0,enumerable:!1,configurable:!0}),ae}if(re)throw q&&!re.request&&(re.request=q),re;if(oe instanceof Ee)throw q&&!oe.request&&(oe.request=q),oe;if(oe&&oe.name==="TypeError"&&/Load failed|fetch/i.test(oe.message)){const ae=new Ee("Network Error",Ee.ERR_NETWORK,w,q,oe&&oe.response);throw Object.defineProperty(ae,"cause",{__proto__:null,value:oe.cause||oe,writable:!0,enumerable:!1,configurable:!0}),ae}throw Ee.from(oe,oe&&oe.code,w,q,oe&&oe.response)}}},P7=new Map,sL=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:i}=t,o=[r,i,n];let a=o.length,l=a,c,d,f=P7;for(;l--;)c=o[l],d=f.get(c),d===void 0&&f.set(c,d=l?new Map:O7(t)),f=d;return d};sL();const a_={http:zW,xhr:y7,fetch:{get:sL}};Q.forEach(a_,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const TP=e=>`- ${e}`,j7=e=>Q.isFunction(e)||e===null||e===!1;function C7(e,t){e=Q.isArray(e)?e:[e];const{length:n}=e;let r,i;const o={};for(let a=0;a<n;a++){r=e[a];let l;if(i=r,!j7(r)&&(i=a_[(l=String(r)).toLowerCase()],i===void 0))throw new Ee(`Unknown adapter '${l}'`);if(i&&(Q.isFunction(i)||(i=i.get(t))))break;o[l||"#"+a]=i}if(!i){const a=Object.entries(o).map(([c,d])=>`adapter ${c} `+(d===!1?"is not supported by the environment":"is not available in the build"));let l=n?a.length>1?`since :
215`+a.map(TP).join(`
216`):" "+TP(a[0]):"as no adapter specified";throw new Ee("There is no suitable adapter to dispatch the request "+l,Ee.ERR_NOT_SUPPORT)}return i}
vendor: 5,332 bytes, lines 216-220
216const lL={getAdapter:C7,adapters:a_};function ey(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new _d(null,e)}function NP(e){return ey(e),e.headers=Mn.from(e.headers),e.data=Jv.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),lL.getAdapter(e.adapter||Sd.adapter,e)(e).then(function(r){ey(e),e.response=r;try{r.data=Jv.call(e,e.transformResponse,r)}finally{delete e.response}return r.headers=Mn.from(r.headers),r},function(r){if(!rL(r)&&(ey(e),r&&r.response)){e.response=r.response;try{r.response.data=Jv.call(e,e.transformResponse,r.response)}finally{delete e.response}r.response.headers=Mn.from(r.response.headers)}return Promise.reject(r)})}const sm={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{sm[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const RP={};sm.transitional=function(t,n,r){function i(o,a){return"[Axios v"+o_+"] Transitional option '"+o+"'"+a+(r?". "+r:"")}return(o,a,l)=>{if(t===!1)throw new Ee(i(a," has been removed"+(n?" in "+n:"")),Ee.ERR_DEPRECATED);return n&&!RP[a]&&(RP[a]=!0,console.warn(i(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,a,l):!0}};sm.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function T7(e,t,n){if(typeof e!="object"||e===null)throw new Ee("options must be an object",Ee.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],a=Object.prototype.hasOwnProperty.call(t,o)?t[o]:void 0;if(a){const l=e[o],c=l===void 0||a(l,o,e);if(c!==!0)throw new Ee("option "+o+" must be "+c,Ee.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Ee("Unknown option "+o,Ee.ERR_BAD_OPTION)}}const Tp={assertOptions:T7,validators:sm},Tn=Tp.validators;let Fa=class{constructor(t){this.defaults=t||{},this.interceptors={request:new wP,response:new wP}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const o=(()=>{if(!i.stack)return"";const a=i.stack.indexOf(`
217`);return a===-1?"":i.stack.slice(a+1)})();try{if(!r.stack)r.stack=o;else if(o){const a=o.indexOf(`
218`),l=a===-1?-1:o.indexOf(`
219`,a+1),c=l===-1?"":o.slice(l+1);String(r.stack).endsWith(c)||(r.stack+=`
220`+o)}}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=qa(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&Tp.assertOptions(r,{silentJSONParsing:Tn.transitional(Tn.boolean),forcedJSONParsing:Tn.transitional(Tn.boolean),clarifyTimeoutError:Tn.transitional(Tn.boolean),legacyInterceptorReqResOrdering:Tn.transitional(Tn.boolean),advertiseZstdAcceptEncoding:Tn.transitional(Tn.boolean),validateStatusUndefinedResolves:Tn.transitional(Tn.boolean)},!1),i!=null&&(Q.isFunction(i)?n.paramsSerializer={serialize:i}:Tp.assertOptions(i,{encode:Tn.function,serialize:Tn.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Tp.assertOptions(n,{baseUrl:Tn.spelling("baseURL"),withXsrfToken:Tn.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=o&&Q.merge(o.common,o[n.method]);o&&Q.forEach(["delete","get","head","post","put","patch","query","common"],S=>{delete o[S]}),n.headers=Mn.concat(a,o);const l=[];let c=!0;this.interceptors.request.forEach(function(x){if(typeof x.runWhen=="function"&&x.runWhen(n)===!1)return;c=c&&x.synchronous;const y=n.transitional||r_;y&&y.legacyInterceptorReqResOrdering?l.unshift(x.fulfilled,x.rejected):l.push(x.fulfilled,x.rejected)});const d=[];this.interceptors.response.forEach(function(x){d.push(x.fulfilled,x.rejected)});let f,p=0,g;if(!c){const S=[NP.bind(this),void 0];for(S.unshift(...l),S.push(...d),g=S.length,f=Promise.resolve(n);p<g;)f=f.then(S[p++],S[p++]);return f}g=l.length;let v=n;for(;p<g;){const S=l[p++],x=l[p++];try{v=S(v)}catch(y){x.call(this,y);break}}try{f=NP.call(this,v)}catch(S){return Promise.reject(S)}for(p=0,g=d.length;p<g;)f=f.then(d[p++],d[p++]);return f}getUri(t){t=qa(this.defaults,t);const n=oL(t.baseURL,t.url,t.allowAbsoluteUrls,t);return eL(n,t.params,t.paramsSerializer)}};Q.forEach(["delete","get","head","options"],function(t){Fa.prototype[t]=function(n,r){return this.request(qa(r||{},{method:t,url:n,data:r&&Q.hasOwnProp(r,"data")?r.data:void 0}))}});Q.forEach(["post","put","patch","query"],function(t){function n(r){return function(o,a,l){return this.request(qa(l||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:a}))}}Fa.prototype[t]=n(),t!=="query"&&(Fa.prototype[t+"Form"]=n(!0))});let N7=class uL{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(i=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const a=new Promise(l=>{r.subscribe(l),o=l}).then(i);return a.cancel=function(){r.unsubscribe(o)},a},t(function(o,a,l){r.reason||(r.reason=new _d(o,a,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}
220subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new uL(function(i){t=i}),cancel:t}}};function R7(e){return function(n){return e.apply(null,n)}}function I7(e){return Q.isObject(e)&&e.isAxiosError===!0}const Gw={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Gw).forEach(([e,t])=>{Gw[t]=e});function cL(e){const t=new Fa(e),n=BD(Fa.prototype.request,t);return Q.extend(n,Fa.prototype,t,{allOwnKeys:!0}),Q.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return cL(qa(e,i))},n}const Wt=cL(Sd);Wt.Axios=Fa;Wt.CanceledError=_d;Wt.CancelToken=N7;Wt.isCancel=rL;Wt.VERSION=o_;Wt.toFormData=am;Wt.AxiosError=Ee;Wt.Cancel=Wt.CanceledError;Wt.all=function(t){return Promise.all(t)};Wt.spread=R7;Wt.isAxiosError=I7;Wt.mergeConfig=qa;Wt.AxiosHeaders=Mn;Wt.formToJSON=e=>nL(Q.isHTMLForm(e)?new FormData(e):e);Wt.getAdapter=lL.getAdapter;Wt.HttpStatusCode=Gw;Wt.default=Wt;const{Axios:uxe,AxiosError:cxe,CanceledError:dxe,isCancel:fxe,CancelToken:pxe,VERSION:hxe,all:mxe,Cancel:gxe,isAxiosError:vxe,spread:yxe,toFormData:bxe,AxiosHeaders:xxe,HttpStatusCode:wxe,formToJSON:Sxe,getAdapter:_xe,mergeConfig:Axe,create:Exe}=Wt,dL=typeof window>"u",IP=!dL&&window.self!==window.top,$7=!dL&&typeof document>"u",fL=()=>Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15),Sn=[];for(let e=0;e<256;++e)Sn.push((e+256).toString(16).slice(1));function M7(e,t=0){return(Sn[e[t+0]]+Sn[e[t+1]]+Sn[e[t+2]]+Sn[e[t+3]]+"-"+Sn[e[t+4]]+Sn[e[t+5]]+"-"+Sn[e[t+6]]+Sn[e[t+7]]+"-"+Sn[e[t+8]]+Sn[e[t+9]]+"-"+Sn[e[t+10]]+Sn[e[t+11]]+Sn[e[t+12]]+Sn[e[t+13]]+Sn[e[t+14]]+Sn[e[t+15]]).toLowerCase()}let ty;const D7=new Uint8Array(16);function L7(){if(!ty){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");ty=crypto.getRandomValues.bind(crypto)}return ty(D7)}const F7=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),$P={randomUUID:F7};function B7(e,t,n){var i;e=e||{};const r=e.random??((i=e.rng)==null?void 0:i.call(e))??L7();if(r.length<16)throw new Error("Random bytes length must be >= 16");return r[6]=r[6]&15|64,r[8]=r[8]&63|128,M7(r)}function z7(e,t,n){return $P.randomUUID&&!e?$P.randomUUID():B7(e)}const Hu=typeof window<"u"?window:{base44SharedInstances:{}};function U7(e,t){return Hu.base44SharedInstances||(Hu.base44SharedInstances={}),Hu.base44SharedInstances[e]||(Hu.base44SharedInstances[e]={instance:t()}),Hu.base44SharedInstances[e].instance}const q7="__user_heartbeat_event__",H7="__initialization_event__",W7="__session_duration_event__",MP="analytics-enable",DP="base44_analytics_session_id",V7={enabled:!0,maxQueueSize:1e3,throttleTime:1e3,batchSize:30,heartBeatInterval:60*1e3},K7="analytics",ht=U7(K7,()=>({requestsQueue:[],isProcessing:!1,isHeartBeatProcessing:!1,wasInitializationTracked:!1,sessionContext:null,sessionStartTime:null,fallbackSessionId:null,config:{...V7,...tV()}})),G7=({axiosClient:e,serverUrl:t,appId:n,userAuthModule:r,enabled:i})=>{var o;const{maxQueueSize:a,throttleTime:l,batchSize:c}=ht.config;if(!i||!(!((o=ht.config)===null||o===void 0)&&o.enabled)||$7)return{track:()=>{},cleanup:()=>{}};let d;const f=`${t}/api/apps/${n}/analytics/track/batch`,p=async j=>{await e.request({method:"POST",url:`/apps/${n}/analytics/track/batch`,data:{events:j}})},g=j=>{try{const k=JSON.stringify({events:j}),O=new Blob([k],{type:"application/json"});return typeof navigator>"u"||k.length>6e4||!navigator.sendBeacon(f,O)}catch{return!1}},v=async(j,k={})=>
220{if(j.length===0)return;const O=await eV(r),T=j.map(J7(O));try{(!k.isBeacon||!g(T))&&await p(T)}catch{}},S=()=>{FP(v,{throttleTime:l,batchSize:c})},x=j=>{if(ht.requestsQueue.length>=a)return;const k=Z7();ht.requestsQueue.push({...j,...k}),S()},y=()=>{FP(v,{throttleTime:l,batchSize:c}),d=BP(x),X7()},w=()=>{LP(),d==null||d(),Q7(x);const j=ht.requestsQueue.splice(0);v(j,{isBeacon:!0})},A=()=>{typeof window>"u"||(document.visibilityState==="hidden"?w():document.visibilityState==="visible"&&y())},_=()=>{LP(),d==null||d(),typeof window<"u"&&window.removeEventListener("visibilitychange",A)};return S(),d=BP(x),Y7(x),typeof window<"u"&&window.addEventListener("visibilitychange",A),{track:x,cleanup:_}};function LP(){ht.isProcessing=!1}async function FP(e,t){if(ht.isProcessing)return;ht.isProcessing=!0;const{throttleTime:n=1e3,batchSize:r=30}=t??{};for(;ht.isProcessing&&ht.requestsQueue.length>0;){const i=ht.requestsQueue.splice(0,r);i.length&&await e(i),await new Promise(o=>setTimeout(o,n))}ht.isProcessing=!1}function BP(e){var t;if(typeof window>"u"||ht.isHeartBeatProcessing||((t=ht.config.heartBeatInterval)!==null&&t!==void 0?t:0)<10)return()=>{};ht.isHeartBeatProcessing=!0;const n=setInterval(()=>{e({eventName:q7})},ht.config.heartBeatInterval);return()=>{clearInterval(n),ht.isHeartBeatProcessing=!1}}function Y7(e){typeof window>"u"||ht.wasInitializationTracked||(ht.wasInitializationTracked=!0,e({eventName:H7,properties:{referrer:document==null?void 0:document.referrer}}))}function X7(){typeof window>"u"||ht.sessionStartTime!==null||(ht.sessionStartTime=new Date().toISOString())}function Q7(e){if(typeof window>"u"||ht.sessionStartTime===null)return;const t=new Date().getTime()-new Date(ht.sessionStartTime).getTime();ht.sessionStartTime=null,e({eventName:W7,properties:{sessionDuration:t}})}function Z7(){var e,t;return{timestamp:new Date().toISOString(),pageUrl:typeof window<"u"&&(t=(e=window.location)===null||e===void 0?void 0:e.pathname)!==null&&t!==void 0?t:null}}function J7(e){return t=>({event_name:t.eventName,properties:t.properties,timestamp:t.timestamp,page_url:t.pageUrl,...e})}let sc=null;function zP(){ht.sessionContext=null,sc=null}async function eV(e){if(!ht.sessionContext){if(!e.hasToken())return{user_id:null,session_id:Vp()};if(!sc){const r=Vp();sc=e.me().then(i=>({user_id:i.id,session_id:r})).catch(()=>({user_id:null,session_id:r}))}const t=sc,n=await t;return sc===t&&(ht.sessionContext=n),n}return ht.sessionContext}function tV(){if(typeof window>"u"||!window.location)return;const t=new URLSearchParams(window.location.search).get(MP);if(t==null||!t.length)return;const n=new URLSearchParams(window.location.search);n.delete(MP);const r=window.location.pathname+(n.toString()?"?"+n.toString():"");return window.history.replaceState({},"",r),{enabled:t==="true"}}function UP(){var e;return(e=ht.fallbackSessionId)!==null&&e!==void 0?e:ht.fallbackSessionId=fL()}function Vp(){if(typeof window>"u")return UP();try{const e=localStorage.getItem(DP);if(!e){const t=fL();return localStorage.setItem(DP,t),t}return e}catch{return UP()}}class nV extends Error{constructor(t,n,r,i,o){super(t),this.name="Base44Error",this.status=n,this.code=r,this.data=i,this.originalError=o}toJSON(){return{name:this.name,message:this.message,status:this.status,code:this.code,data:this.data}}}function Ws({baseURL:e,headers:t={},token:n,interceptResponses:r=!0,onError:i}){const o=Wt.create({baseURL:e,headers:{"Content-Type":"application/json",Accept:"application/json",...t}});return n&&(o.defaults.headers.common.Authorization=`Bearer ${n}`),o.interceptors.request.use(a=>{typeof window<"u"&&(window.location&&a.headers.set("X-Origin-URL",window.location.href),a.headers.get("Authorization")||a.headers.set("X-Base44-Anonymous-Id",Vp()));const l=z7();if(a.requestId=l,IP)try{window.parent.postMessage({type:"api-request-start",requestId:l,data:{url:e+a.url,method:a.method,body:a.data instanceof FormData?"[FormData object]":a.data}},"*")}catch{}return a}),r&&o.interceptors.response.use(a=>{var l;const c=(l=a.config)===null||l===void 0?void 0:l.requestId;try{IP&&c&&window.parent.postMessage({type:"api-request-end",requestId:c,data:{statusCode:a.status,response:a.data}},"*")}catch{}return a.data},a=>{var l,c,d,f,p,g,v,S,x,y,w,A;const _=(l=a.response)===null||l===void 0?void 0:l.data,j=((c=_==null?void 0:_.error)===null||c===void 0?void 0:c.message)||(_==null?void 0:_.message)||(_==null?void 0:_.detail)||a.message,k=new nV(j,(d=a.response)===null||d===void 0?void 0:d.status,(y=(g=(p=(f=_==null?void 0:_.error)===null||f===void 0?void 0:f.code)!==null&&p!==void 0?p:_==null?void 0:_.code)!==null&&g!==void 0?g:(x=(S=(v=a.response)===null||v===void 0?void 0:v.headers)===null||S===void 0?void 0:S.get)===null||x===void 0?void 0:x.call(S,"x-base44-connector-error"))!==null&&y!==void 0?y:(A=(w=a.response)===null||w===void 0?void 0:w.headers)===null||A===void 0?void 0:A["x-base44-connector-error"],_,a);return i==null||i(k),Promise.reject(k)}),o}function qP(e){const{axios:t,appId:n,getSocket:r}=e;return new Proxy({},{get(i,o){if(!(typeof o!="string"||o==="then"||o.startsWith("_")))return oV(t,n,o,r)}})}function rV(e){var t;try{const n=JSON.parse(e);return{type:n.type,data:n.data,id:n.id||((t=n.data)===null||t===void 0?void 0:t.id),timestamp:n.timestamp||new Date().toISOString()}}catch(n){return console.warn("[Base44 SDK] Failed to parse realtime message:",n),null}}const iV=100;function HP(e){return typeof e=="object"&&e!==null}function oV(e,t,n,r){const i=`/apps/${t}/entities/${n}`,o=c=>Array.isArray(c)?c.join(","):c,a=(c,d,f,p,g)=>{const v={};return g&&(v.q=JSON.stringify(g)),c&&(v.sort=c),d&&(v.limit=d),f&&(v.skip=f),p&&(v.fields=o(p)),e.get(i,{params:v})},l=(c,d)=>{const f={};return d&&(f.q=JSON.stringify(d)),f.limit=c.limit||iV,c.cursor&&(f.cursor=c.cursor),"distinct"in c?f.distinct=c.distinct:(c.sort&&(f.sort=c.sort),c.fields&&(f.fields=o(c.fields))),e.get(`${i}/v2/list`,{params:f})};return{async list(...c){const[d,f,p,g]=c;return HP(d)?l(d):a(d,f,p,g)},async filter(c,...d){const[f,p,g,v]=d;return HP(f)?l(f,c):a(f,p,g,v,c)},async get(c){return e.get(`${i}/${c}`)},async create(c){return e.post(i,c)},async update(c,d){return e.put(`${i}/${c}`,d)},async delete(c){return e.delete(`${i}/${c}`)},async deleteMany(c){return e.delete(i,{data:c})},async bulkCreate(c){return e.post(`${i}/bulk`,c)},async updateMany(c,d){return e.patch(`${i}/update-many`,{query:c,data:d})},async count(c){const d={};return c&&(d.q=JSON.stringify(c)),(await e.get(`${i}/count`,{params:d})).count},async aggregate(c){return e.post(`${i}
220/aggregate`,c)},async upsert(c,d){return e.post(`${i}/upsert`,{records:c,key:d.key})},async bulkUpdate(c){return e.put(`${i}/bulk`,c)},async importEntities(c){const d=new FormData;return d.append("file",c,c.name),e.post(`${i}/import`,d,{headers:{"Content-Type":"multipart/form-data"}})},subscribe(c){const d=`entities:${t}:${n}`;return r().subscribeToRoom(d,{update_model:g=>{var v;const S=rV(g.data);if(S){S.type!=="delete"&&(!((v=S.data)===null||v===void 0)&&v._oversize)&&console.error(`[Base44 SDK] Realtime broadcast for ${n}#${S.id} was oversize and got slimmed for transport. Fields >10 KB are empty and the rest of the record may be a stub. Call \`entities.${n}.get("${S.id}")\` to fetch the full record.`);try{c(S)}catch(x){console.error("[Base44 SDK] Subscription callback error:",x)}}}})}}}function aV(e,t){return{async call(n,r,i){if(!(n!=null&&n.trim()))throw new Error("Integration slug is required and cannot be empty");if(!(r!=null&&r.trim()))throw new Error("Operation ID is required and cannot be empty");const{pathParams:o,queryParams:a,...l}=i??{},c={...l,...o&&{path_params:o},...a&&{query_params:a}};return await e.post(`/apps/${t}/integrations/custom/${n}/${r}`,c)}}}function WP(e,t){const n=aV(e,t);return new Proxy({},{get(r,i){if(!(typeof i!="string"||i==="then"||i.startsWith("_")))return i==="custom"?n:new Proxy({},{get(o,a){if(!(typeof a!="string"||a==="then"||a.startsWith("_")))return async l=>{if(typeof l=="string")throw new Error(`Integration ${a} must receive an object with named parameters, received: ${l}`);let c,d;return l instanceof FormData||l&&Object.values(l).some(f=>f instanceof File)?(c=new FormData,Object.keys(l).forEach(f=>{l[f]instanceof File?c.append(f,l[f],l[f].name):typeof l[f]=="object"&&l[f]!==null?c.append(f,JSON.stringify(l[f])):c.append(f,l[f])}),d="multipart/form-data"):(c=l,d="application/json"),i==="Core"?e.post(`/apps/${t}/integration-endpoints/Core/${a}`,c||l,{headers:{"Content-Type":d}}):e.post(`/apps/${t}/integration-endpoints/installable/${i}/integration-endpoints/${a}`,c||l,{headers:{"Content-Type":d}})}}})}})}function sV(){return typeof window>"u"?!1:window!==window.parent}function lV(e,t,n){const o=Math.round(window.screenX+(window.outerWidth-500)/2),a=Math.round(window.screenY+(window.outerHeight-600)/2),l=window.open(e,"base44_auth",`width=500,height=600,left=${o},top=${a},resizable=yes,scrollbars=yes`);if(!l)return;const c=()=>{window.removeEventListener("message",d),clearInterval(f),l.closed||l.close()},d=p=>{var g;if(p.origin!==n||p.source!==l||!(!((g=p.data)===null||g===void 0)&&g.access_token))return;c();const v=new URL(t),{access_token:S,is_new_user:x}=p.data;v.searchParams.set("access_token",S),x!=null&&v.searchParams.set("is_new_user",String(x)),window.location.href=v.toString()},f=setInterval(()=>{l.closed&&c()},500);window.addEventListener("message",d)}function uV(e,t,n,r){let i=null;const o=()=>{i=null};let a=!!r.token;return{hasToken(){return a},async me(){const l=i??e.get(`/apps/${n}/entities/User/me`).finally(()=>{i===l&&(i=null)});return i=l,l},async updateMe(l){return e.put(`/apps/${n}/entities/User/me`,l)},redirectToLogin(l){if(typeof window>"u")throw new Error("Login method can only be used in a browser environment");const c=l?new URL(l,window.location.origin).toString():window.location.href,d=`${r.appBaseUrl}/login?from_url=${encodeURIComponent(c)}`;window.location.href=d},loginWithProvider(l,c="/"){const d=new URL(c,window.location.origin).toString(),f=`app_id=${n}&from_url=${encodeURIComponent(d)}`;let p;l==="sso"?p=`/apps/${n}/auth/sso/login`:p=`/apps/auth${l==="google"?"":`/${l}`}/login`;const g=`${r.appBaseUrl}/api${p}?${f}`;if(sV()){const v=`${g}&popup_origin=${encodeURIComponent(window.location.origin)}`;return lV(v,d,window.location.origin)}window.location.href=g},logout(l){if(delete e.defaults.headers.common.Authorization,o(),zP(),a=!1,typeof window<"u"){if(window.localStorage)try{window.localStorage.removeItem("base44_access_token"),window.localStorage.removeItem("token")}catch(f){console.error("Failed to remove token from localStorage:",f)}const c=l||window.location.href,d=`${r.appBaseUrl}/api/apps/auth/logout?from_url=${encodeURIComponent(c)}`;window.location.href=d}},setToken(l,c=!0){if(l&&(o(),zP(),a=!0,e.defaults.headers.common.Authorization=`Bearer ${l}`,t.defaults.headers.common.Authorization=`Bearer ${l}`,c&&typeof window<"u"&&window.localStorage))try{window.localStorage.setItem("base44_access_token",l),window.localStorage.setItem("token",l)}catch(d){console.error("Failed to save token to localStorage:",d)}},async loginViaEmailPassword(l,c,d){var f;try{const p=await e.post(`/apps/${n}/auth/login`,{email:l,password:c,...d&&{turnstile_token:d}}),{access_token:g,user:v}=p;return g&&this.setToken(g),{access_token:g,user:v}}catch(p){throw((f=p.response)===null||f===void 0?void 0:f.status)===401&&await this.logout(),p}},async isAuthenticated(){try{return await this.me(),!0}catch{return!1}},inviteUser(l,c){return e.post(`/apps/${n}/users/invite-user`,{user_email:l,role:c})},register(l){return e.post(`/apps/${n}/auth/register`,l)},verifyOtp({email:l,otpCode:c}){return e.post(`/apps/${n}/auth/verify-otp`,{email:l,otp_code:c})},resendOtp(l){return e.post(`/apps/${n}/auth/resend-otp`,{email:l})},resetPasswordRequest(l){return e.post(`/apps/${n}/auth/reset-password-request`,{email:l})},resetPassword({resetToken:l,newPassword:c}){return e.post(`/apps/${n}/auth/reset-password`,{reset_token:l,new_password:c})},changePassword({userId:l,currentPassword:c,newPassword:d}){return e.post(`/apps/${n}/auth/change-password`,{user_id:l,current_password:c,new_password:d})}}}function cV(e,t){return{async getAccessToken(n){const r=`/apps/${t}/auth/sso/accesstoken/${n}`;return e.get(r)},async getIdToken(n){const r=`/apps/${t}/auth/sso/idtoken/${n}`;return e.get(r)}}}const dV=new Set(["GET","POST","PUT","PATCH","DELETE","HEAD"]);
220function fV(e,t){return{async getAccessToken(n){if(!n||typeof n!="string")throw new Error("Integration type is required and must be a string");return(await e.get(`/apps/${t}/external-auth/tokens/${encodeURIComponent(n)}`)).access_token},async getConnection(n){var r;if(!n||typeof n!="string")throw new Error("Integration type is required and must be a string");const o=await e.get(`/apps/${t}/external-auth/tokens/${encodeURIComponent(n)}`);return{accessToken:o.access_token,connectionConfig:(r=o.connection_config)!==null&&r!==void 0?r:null}},async getWorkspaceConnection(n){var r;if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");const o=await e.get(`/apps/${t}/external-auth/tokens/connectors/${encodeURIComponent(n)}`);return{accessToken:o.access_token,connectionConfig:(r=o.connection_config)!==null&&r!==void 0?r:null}},async getCurrentAppUserAccessToken(n){if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");return(await e.get(`/apps/${t}/app-user-auth/connectors/${encodeURIComponent(n)}/token`)).access_token},async getCurrentAppUserConnection(n){var r;if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");const o=await e.get(`/apps/${t}/app-user-auth/connectors/${encodeURIComponent(n)}/token`);return{accessToken:o.access_token,connectionConfig:(r=o.connection_config)!==null&&r!==void 0?r:null}},async callApi(n,r){return pL(n,"Integration type"),pV(e,`/apps/${t}/connectors/${encodeURIComponent(n)}/call`,r)}}}function pL(e,t){if(!e||typeof e!="string")throw new Error(`${t} is required and must be a string`)}async function pV(e,t,n){var r,i,o,a,l,c,d,f,p;if(!n||typeof n!="object")throw new Error("Request is required and must be an object");pL(n.path,"Request path");const g=(r=n.method)!==null&&r!==void 0?r:"GET";if(!dV.has(g))throw new Error("Request method must be one of GET, POST, PUT, PATCH, DELETE, or HEAD");const S=await e.post(t,{method:g,...n.host==null?{}:{host:n.host},path:n.path,query:(i=n.query)!==null&&i!==void 0?i:{},headers:(o=n.headers)!==null&&o!==void 0?o:{},body:(a=n.body)!==null&&a!==void 0?a:null});return{success:S.success,phase:S.phase,status:(l=S.status_code)!==null&&l!==void 0?l:null,data:S.data,dataBase64:(c=S.data_base64)!==null&&c!==void 0?c:null,contentType:(d=S.content_type)!==null&&d!==void 0?d:null,headers:(f=S.headers)!==null&&f!==void 0?f:{},creditsCharged:(p=S.credits_charged)!==null&&p!==void 0?p:0}}function hV(e,t){return{async connectAppUser(n){if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");return(await e.post(`/apps/${t}/app-user-auth/connectors/${encodeURIComponent(n)}/initiate`)).redirect_url},async disconnectAppUser(n){if(!n||typeof n!="string")throw new Error("Connector ID is required and must be a string");await e.delete(`/apps/${t}/app-user-auth/connectors/${encodeURIComponent(n)}`)}}}function Ho(e={}){const{storageKey:t="base44_access_token",paramName:n="access_token",saveToStorage:r=!0,removeFromUrl:i=!0}=e;let o=null;if(typeof window<"u"&&window.location)try{const a=new URLSearchParams(window.location.search);if(o=a.get(n),o){if(r&&mV(o,{storageKey:t}),i){a.delete(n);const l=`${window.location.pathname}${a.toString()?`?${a.toString()}`:""}${window.location.hash}`;window.history.replaceState({},document.title,l)}return o}}catch(a){console.error("Error retrieving token from URL:",a)}if(typeof window<"u"&&window.localStorage)try{return o=window.localStorage.getItem(t),o}catch(a){console.error("Error retrieving token from local storage:",a)}return null}function mV(e,t){const{storageKey:n="base44_access_token"}=t;if(typeof window>"u"||!window.localStorage||!e)return!1;try{return window.localStorage.setItem(n,e),window.localStorage.setItem("token",e),!0}catch(r){return console.error("Error saving token to local storage:",r),!1}}function gV({axios:e,serviceRoleAxios:t,appId:n,serverUrl:r,functionsVersion:i,platformHeaders:o}){const a=new Headers(o),l=c=>{const d=c.defaults.headers.common.Authorization;return typeof d=="string"&&d.startsWith("Bearer ")?d:null};return async function(d,f={}){vV(d);const{fetch:p=fetch,...g}=f,v=new Headers(f.headers),S=(x,y)=>{y&&!v.has(x)&&v.set(x,y)};return S("Authorization",l(e)),S("Base44-Service-Authorization",l(t)),S("Base44-App-Id",n),S("Base44-Api-Url",r),S("Base44-Functions-Version",i),S("Base44-State",a.get("Base44-State")),S("X-Data-Env",a.get("X-Data-Env")),p(d,{...g,headers:v})}}function vV(e){if(typeof e!="string"||e==="")throw new Error("fetchWithAuth() requires a path, such as '/api/orders'.");const t=e.replace(/[\t\n\r]/g,"").replace(/^[\x00-\x20]+/,"");if(!t.startsWith("/")||t.startsWith("//")||t.startsWith("/\\"))throw new Error(`fetchWithAuth() only sends requests to your app's own origin, so your app's credentials never reach a third party. "${e}" is not a path on it — pass a relative path such as '/api/orders'. Use base44.functions.fetch() to call a Base44 backend function, or plain fetch() for another origin.`)}function VP(e,t,n){const r=(o,a)=>o?`${String(o).replace(/\/$/,"")}${a}`:a,i=o=>{const a=new Headers;if(n!=null&&n.getAuthHeaders){const l=n.getAuthHeaders();Object.entries(l).forEach(([c,d])=>{d!=null&&a.set(c,String(d))})}
220return o&&new Headers(o).forEach((l,c)=>{a.set(c,l)}),a};return{async invoke(o,a){if(typeof a=="string")throw new Error(`Function ${o} must receive an object with named parameters, received: ${a}`);let l,c;return a instanceof FormData||a&&Object.values(a).some(d=>d instanceof File)?(l=new FormData,Object.keys(a).forEach(d=>{a[d]instanceof File?l.append(d,a[d],a[d].name):typeof a[d]=="object"&&a[d]!==null?l.append(d,JSON.stringify(a[d])):l.append(d,a[d])}),c="multipart/form-data"):(l=a,c="application/json"),e.post(`/apps/${t}/functions/${o}`,l||a,{headers:{"Content-Type":c}})},async fetch(o,a={}){const c=`/functions${o.startsWith("/")?o:`/${o}`}`,d=i(a.headers),f={...a,headers:d};return await fetch(r(n==null?void 0:n.baseURL,c),f)}}}function KP({axios:e,getSocket:t,appId:n,serverUrl:r,token:i}){const o=`/apps/${n}/agents`,a={},l=()=>e.get(`${o}/conversations`),c=x=>e.get(`${o}/conversations/${x}`);return{getConversations:l,getConversation:c,listConversations:x=>e.get(`${o}/conversations`,{params:x}),createConversation:x=>e.post(`${o}/conversations`,x),addMessage:async(x,y)=>e.post(`${o}/conversations/v2/${x.id}/messages`,y),subscribeToConversation:(x,y)=>{const w=`/agent-conversations/${x}`,A=t(),_=c(x).then(j=>(a[x]=j,j));return A.subscribeToRoom(w,{connect:()=>{},update_model:async({data:j})=>{const k=JSON.parse(j);if(k._message){await _;const O=k._message,T=a[x];if(T){const N=T.messages||[],I=N.findIndex(F=>F.id===O.id),z=I!==-1?N.map((F,D)=>D===I?O:F):[...N,O];a[x]={...T,messages:z},y==null||y(a[x])}}}})},getWhatsAppConnectURL:x=>{const y=`${r}/api/apps/${n}/agents/${encodeURIComponent(x)}/whatsapp`,w=i??Ho();return w?`${y}?token=${w}`:y},getTelegramConnectURL:x=>{const y=`${r}/api/apps/${n}/agents/${encodeURIComponent(x)}/telegram`,w=i??Ho();return w?`${y}?token=${w}`:y}}}const GP={openai:"openai",typesafe:"typesafe"};function YP({serverUrl:e,token:t,appId:n,headers:r={}}){return{connection:({provider:o="openai"}={})=>{var a;if(!Object.prototype.hasOwnProperty.call(GP,o))throw new Error(`Unsupported AI Gateway provider: ${o}`);const l=GP[o];return{baseURL:`${e}/api/apps/${n}/ai/${l}/v1`,token:(a=t??Ho())!==null&&a!==void 0?a:"",headers:{...r}}}}}function XP(e,t){const n=`/app-logs/${t}`;return{async logUserInApp(r){await e.post(`${n}/log-user-in-app/${r}`)},async fetchLogs(r={}){return await e.get(n,{params:r})},async getStats(r={}){return await e.get(`${n}/stats`,{params:r})}}}function yV(e,t){return{async getPublicSettings(){return e.get(`/apps/public/prod/public-settings/by-id/${t}`)}}}function bV(e,t){return{async inviteUser(n,r){if(r!=="user"&&r!=="admin")throw new Error(`Invalid role: "${r}". Role must be either "user" or "admin".`);return await e.post(`/apps/${t}/runtime/users/invite-user`,{user_email:n,role:r})}}}const _i=Object.create(null);_i.open="0";_i.close="1";_i.ping="2";_i.pong="3";_i.message="4";_i.upgrade="5";_i.noop="6";const Np=Object.create(null);Object.keys(_i).forEach(e=>{Np[_i[e]]=e});const Yw={type:"error",data:"parser error"},hL=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",mL=typeof ArrayBuffer=="function",gL=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,s_=({type:e,data:t},n,r)=>hL&&t instanceof Blob?n?r(t):QP(t,r):mL&&(t instanceof ArrayBuffer||gL(t))?n?r(t):QP(new Blob([t]),r):r(_i[e]+(t||"")),QP=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)};function ZP(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let ny;function xV(e,t){if(hL&&e.data instanceof Blob)return e.data.arrayBuffer().then(ZP).then(t);if(mL&&(e.data instanceof ArrayBuffer||gL(e.data)))return t(ZP(e.data));s_(e,!1,n=>{ny||(ny=new TextEncoder),t(ny.encode(n))})}const JP="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",lc=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<JP.length;e++)lc[JP.charCodeAt(e)]=e;const wV=e=>{let t=e.length*.75,n=e.length,r,i=0,o,a,l,c;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const d=new ArrayBuffer(t),f=new Uint8Array(d);for(r=0;r<n;r+=4)o=lc[e.charCodeAt(r)],a=lc[e.charCodeAt(r+1)],l=lc[e.charCodeAt(r+2)],c=lc[e.charCodeAt(r+3)],f[i++]=o<<2|a>>4,f[i++]=(a&15)<<4|l>>2,f[i++]=(l&3)<<6|c&63;return d},SV=typeof ArrayBuffer=="function",l_=(e,t)=>
vendor: 4,460 bytes, line 220
220{if(typeof e!="string")return{type:"message",data:vL(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:_V(e.substring(1),t)}:Np[n]?e.length>1?{type:Np[n],data:e.substring(1)}:{type:Np[n]}:Yw},_V=(e,t)=>{if(SV){const n=wV(e);return vL(n,t)}else return{base64:!0,data:e}},vL=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},yL="�",AV=(e,t)=>{const n=e.length,r=new Array(n);let i=0;e.forEach((o,a)=>{s_(o,!1,l=>{r[a]=l,++i===n&&t(r.join(yL))})})},EV=(e,t)=>{const n=e.split(yL),r=[];for(let i=0;i<n.length;i++){const o=l_(n[i],t);if(r.push(o),o.type==="error")break}return r};function kV(){return new TransformStream({transform(e,t){xV(e,n=>{const r=n.length;let i;if(r<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,r);else if(r<65536){i=new Uint8Array(3);const o=new DataView(i.buffer);o.setUint8(0,126),o.setUint16(1,r)}else{i=new Uint8Array(9);const o=new DataView(i.buffer);o.setUint8(0,127),o.setBigUint64(1,BigInt(r))}e.data&&typeof e.data!="string"&&(i[0]|=128),t.enqueue(i),t.enqueue(n)})}})}let ry;function Jf(e){return e.reduce((t,n)=>t+n.length,0)}function ep(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let r=0;for(let i=0;i<t;i++)n[i]=e[0][r++],r===e[0].length&&(e.shift(),r=0);return e.length&&r<e[0].length&&(e[0]=e[0].slice(r)),n}function OV(e,t){ry||(ry=new TextDecoder);const n=[];let r=0,i=-1,o=!1;return new TransformStream({transform(a,l){for(n.push(a);;){if(r===0){if(Jf(n)<1)break;const c=ep(n,1);o=(c[0]&128)===128,i=c[0]&127,i<126?r=3:i===126?r=1:r=2}else if(r===1){if(Jf(n)<2)break;const c=ep(n,2);i=new DataView(c.buffer,c.byteOffset,c.length).getUint16(0),r=3}else if(r===2){if(Jf(n)<8)break;const c=ep(n,8),d=new DataView(c.buffer,c.byteOffset,c.length),f=d.getUint32(0);if(f>Math.pow(2,21)-1){l.enqueue(Yw);break}i=f*Math.pow(2,32)+d.getUint32(4),r=3}else{if(Jf(n)<i)break;const c=ep(n,i);l.enqueue(l_(o?c:ry.decode(c),t)),r=0}if(i===0||i>e){l.enqueue(Yw);break}}}})}const bL=4;function Xt(e){if(e)return PV(e)}function PV(e){for(var t in Xt.prototype)e[t]=Xt.prototype[t];return e}Xt.prototype.on=Xt.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};Xt.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};Xt.prototype.off=Xt.prototype.removeListener=Xt.prototype.removeAllListeners=Xt.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var r,i=0;i<n.length;i++)if(r=n[i],r===t||r.fn===t){n.splice(i,1);break}return n.length===0&&delete this._callbacks["$"+e],this};Xt.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){n=n.slice(0);for(var r=0,i=n.length;r<i;++r)n[r].apply(this,t)}return this};Xt.prototype.emitReserved=Xt.prototype.emit;Xt.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};Xt.prototype.hasListeners=function(e){return!!this.listeners(e).length};const lm=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0),Tr=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),jV="arraybuffer";function xL(e,...t){return t.reduce((n,r)=>(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const CV=Tr.setTimeout,TV=Tr.clearTimeout;function um(e,t){t.useNativeTimers?(e.setTimeoutFn=CV.bind(Tr),e.clearTimeoutFn=TV.bind(Tr)):(e.setTimeoutFn=Tr.setTimeout.bind(Tr),e.clearTimeoutFn=Tr.clearTimeout.bind(Tr))}const NV=1.33;function RV(e){return typeof e=="string"?IV(e):Math.ceil((e.byteLength||e.size)*NV)}function IV(e){let t=0,n=0;for(let r=0,i=e.length;r<i;r++)t=e.charCodeAt(r),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(r++,n+=4);return n}function wL(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function $V(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function MV(e){let t={},n=e.split("&");for(let r=0,i=n.length;r<i;r++){let o=n[r].split("=");
vendor: 5,415 bytes, line 220
220t[decodeURIComponent(o[0])]=decodeURIComponent(o[1])}return t}class DV extends Error{constructor(t,n,r){super(t),this.description=n,this.context=r,this.type="TransportError"}}class u_ extends Xt{constructor(t){super(),this.writable=!1,um(this,t),this.opts=t,this.query=t.query,this.socket=t.socket,this.supportsBinary=!t.forceBase64}onError(t,n,r){return super.emitReserved("error",new DV(t,n,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){const n=l_(t,this.socket.binaryType);this.onPacket(n)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,n={}){return t+"://"+this._hostname()+this._port()+this.opts.path+this._query(n)}_hostname(){const t=this.opts.hostname;return t.indexOf(":")===-1?t:"["+t+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(this.opts.port)!==443||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(t){const n=$V(t);return n.length?"?"+n:""}}class LV extends u_{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(t){this.readyState="pausing";const n=()=>{this.readyState="paused",t()};if(this._polling||!this.writable){let r=0;this._polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};EV(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,AV(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=wL()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}}let SL=!1;try{SL=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const FV=SL;function BV(){}class zV extends LV{constructor(t){if(super(t),typeof location<"u"){const n=location.protocol==="https:";let r=location.port;r||(r=n?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||r!==t.port}}doWrite(t,n){const r=this.request({method:"POST",data:t});r.on("success",n),r.on("error",(i,o)=>{this.onError("xhr post error",i,o)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=t}}class xi extends Xt{constructor(t,n,r){super(),this.createRequest=t,um(this,r),this._opts=r,this._method=r.method||"GET",this._uri=n,this._data=r.data!==void 0?r.data:null,this._create()}_create(){var t;const n=xL(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this._opts.xd;const r=this._xhr=this.createRequest(n);try{r.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let i in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(i)&&r.setRequestHeader(i,this._opts.extraHeaders[i])}}catch{}if(this._method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(r),"withCredentials"in r&&(r.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(r.timeout=this._opts.requestTimeout),r.onreadystatechange=()=>{var i;r.readyState===3&&((i=this._opts.cookieJar)===null||i===void 0||i.parseCookies(r.getResponseHeader("set-cookie"))),r.readyState===4&&(r.status===200||r.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof r.status=="number"?r.status:0)},0))},r.send(this._data)}catch(i){this.setTimeoutFn(()=>{this._onError(i)},0);return}typeof document<"u"&&(this._index=xi.requestsCount++,xi.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=BV,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete xi.requests[this._index],this._xhr=null}}_onLoad(){const t=this._xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}xi.requestsCount=0;xi.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",ej);else if(typeof addEventListener=="function"){const e="onpagehide"in Tr?"pagehide":"unload";addEventListener(e,ej,!1)}}function ej(){for(let e in xi.requests)xi.requests.hasOwnProperty(e)&&xi.requests[e].abort()}const UV=(function(){const e=_L({xdomain:!1});return e&&e.responseType!==null})();class qV extends zV{constructor(t){super(t);const n=t&&t.forceBase64;this.supportsBinary=UV&&!n}
vendor: 11,170 bytes, line 220
220request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new xi(_L,this.uri(),t)}}function _L(e){const t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||FV))return new XMLHttpRequest}catch{}if(!t)try{return new Tr[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const AL=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class HV extends u_{get name(){return"websocket"}doOpen(){const t=this.uri(),n=this.opts.protocols,r=AL?{}:xL(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,n,r)}catch(i){return this.emitReserved("error",i)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const r=t[n],i=n===t.length-1;s_(r,this.supportsBinary,o=>{try{this.doWrite(r,o)}catch{}i&&lm(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=wL()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}}const iy=Tr.WebSocket||Tr.MozWebSocket;class WV extends HV{createSocket(t,n,r){return AL?new iy(t,n,r):n?new iy(t,n):new iy(t)}doWrite(t,n){this.ws.send(n)}}class VV extends u_{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved("error",t)}this._transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(t=>{const n=OV(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=t.readable.pipeThrough(n).getReader(),i=kV();i.readable.pipeTo(t.writable),this._writer=i.writable.getWriter();const o=()=>{r.read().then(({done:l,value:c})=>{l||(this.onPacket(c),o())}).catch(l=>{})};o();const a={type:"open"};this.query.sid&&(a.data=`{"sid":"${this.query.sid}"}`),this._writer.write(a).then(()=>this.onOpen())})})}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const r=t[n],i=n===t.length-1;this._writer.write(r).then(()=>{i&&lm(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}}const KV={websocket:WV,webtransport:VV,polling:qV},GV=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,YV=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Xw(e){if(e.length>8e3)throw"URI too long";const t=e,n=e.indexOf("["),r=e.indexOf("]");n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let i=GV.exec(e||""),o={},a=14;for(;a--;)o[YV[a]]=i[a]||"";return n!=-1&&r!=-1&&(o.source=t,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=XV(o,o.path),o.queryKey=QV(o,o.query),o}function XV(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&r.splice(0,1),t.slice(-1)=="/"&&r.splice(r.length-1,1),r}function QV(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,i,o){i&&(n[i]=o)}),n}const Qw=typeof addEventListener=="function"&&typeof removeEventListener=="function",Rp=[];Qw&&addEventListener("offline",()=>{Rp.forEach(e=>e())},!1);class Ko extends Xt{constructor(t,n){if(super(),this.binaryType=jV,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(n=t,t=null),t){const r=Xw(t);n.hostname=r.host,n.secure=r.protocol==="https"||r.protocol==="wss",n.port=r.port,r.query&&(n.query=r.query)}else n.host&&(n.hostname=Xw(n.host).host);um(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},n.transports.forEach(r=>{const i=r.prototype.name;this.transports.push(i),this._transportsByName[i]=r}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=MV(this.opts.query)),Qw&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},Rp.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=bL,n.transport=t,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](r)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const t=this.opts.rememberUpgrade&&Ko.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const n=this.createTransport(t);n.open(),this.setTransport(n)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",n=>this._onClose("transport close",n))}onOpen(){this.readyState="open",Ko.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const n=new Error("server error");n.code=t.data,this._onError(n);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r<this.writeBuffer.length;r++){const i=this.writeBuffer[r].data;if(i&&(n+=RV(i)),r>0&&n>this._maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,lm(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,n,r){return this._sendPacket("message",t,n,r),this}send(t,n,r){return this._sendPacket("message",t,n,r),this}_sendPacket(t,n,r,i){if(typeof n=="function"&&(i=n,n=void 0),typeof r=="function"&&(i=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const o={type:t,data:n,options:r};this.emitReserved("packetCreate",o),this.writeBuffer.push(o),i&&this.once("flush",i),this.flush()}close(){const t=()=>{this._onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():t()}):this.upgrading?r():t()),this}_onError(t){if(Ko.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,n){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),Qw&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const r=Rp.indexOf(this._offlineEventListener);r!==-1&&Rp.splice(r,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this._prevBufferLen=0}}}Ko.protocol=bL;class ZV extends Ko{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let t=0;t<this._upgrades.length;t++)this._probe(this._upgrades[t])}_probe(t){let n=this.createTransport(t),r=!1;Ko.priorWebsocketSuccess=!1;const i=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",p=>{if(!r)if(p.type==="pong"&&p.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;Ko.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(f(),this.setTransport(n),n.send([{type:"upgrade"}
vendor: 10,501 bytes, line 220
220]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const g=new Error("probe error");g.transport=n.name,this.emitReserved("upgradeError",g)}}))};function o(){r||(r=!0,f(),n.close(),n=null)}const a=p=>{const g=new Error("probe error: "+p);g.transport=n.name,o(),this.emitReserved("upgradeError",g)};function l(){a("transport closed")}function c(){a("socket closed")}function d(p){n&&p.name!==n.name&&o()}const f=()=>{n.removeListener("open",i),n.removeListener("error",a),n.removeListener("close",l),this.off("close",c),this.off("upgrading",d)};n.once("open",i),n.once("error",a),n.once("close",l),this.once("close",c),this.once("upgrading",d),this._upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){const n=[];for(let r=0;r<t.length;r++)~this.transports.indexOf(t[r])&&n.push(t[r]);return n}}let JV=class extends ZV{constructor(t,n={}){const r=typeof t=="object",i=r?{...t}:{...n};(!i.transports||i.transports&&typeof i.transports[0]=="string")&&(i.transports=(i.transports||["polling","websocket","webtransport"]).map(o=>KV[o]).filter(o=>!!o)),super(r?i:t,i)}};function eK(e,t="",n){let r=e;n=n||typeof location<"u"&&location,e==null&&(e=n.protocol+"//"+n.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=n.protocol+e:e=n.host+e),/^(https?|wss?):\/\//.test(e)||(typeof n<"u"?e=n.protocol+"//"+e:e="https://"+e),r=Xw(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const o=r.host.indexOf(":")!==-1?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+o+":"+r.port+t,r.href=r.protocol+"://"+o+(n&&n.port===r.port?"":":"+r.port),r}const tK=typeof ArrayBuffer=="function",nK=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,EL=Object.prototype.toString,rK=typeof Blob=="function"||typeof Blob<"u"&&EL.call(Blob)==="[object BlobConstructor]",iK=typeof File=="function"||typeof File<"u"&&EL.call(File)==="[object FileConstructor]";function c_(e){return tK&&(e instanceof ArrayBuffer||nK(e))||rK&&e instanceof Blob||iK&&e instanceof File}function Ip(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n<r;n++)if(Ip(e[n]))return!0;return!1}if(c_(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return Ip(e.toJSON(),!0);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&Ip(e[n]))return!0;return!1}function oK(e){const t=[],n=e.data,r=e;return r.data=Zw(n,t),r.attachments=t.length,{packet:r,buffers:t}}function Zw(e,t){if(!e)return e;if(c_(e)){const n={_placeholder:!0,num:t.length};return t.push(e),n}else if(Array.isArray(e)){const n=new Array(e.length);for(let r=0;r<e.length;r++)n[r]=Zw(e[r],t);return n}else if(typeof e=="object"&&!(e instanceof Date)){const n={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=Zw(e[r],t));return n}return e}function aK(e,t){return e.data=Jw(e.data,t),delete e.attachments,e}function Jw(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=Jw(e[n],t);else if(typeof e=="object")for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=Jw(e[n],t));return e}const sK=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];var at;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(at||(at={}));class lK{constructor(t){this.replacer=t}encode(t){return(t.type===at.EVENT||t.type===at.ACK)&&Ip(t)?this.encodeAsBinary({type:t.type===at.EVENT?at.BINARY_EVENT:at.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let n=""+t.type;return(t.type===at.BINARY_EVENT||t.type===at.BINARY_ACK)&&(n+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(n+=t.nsp+","),t.id!=null&&(n+=t.id),t.data!=null&&(n+=JSON.stringify(t.data,this.replacer)),n}encodeAsBinary(t){const n=oK(t),r=this.encodeAsString(n.packet),i=n.buffers;return i.unshift(r),i}}class d_ extends Xt{constructor(t){super(),this.opts=Object.assign({reviver:void 0,maxAttachments:10},typeof t=="function"?{reviver:t}:t)}add(t){let n;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=this.decodeString(t);const r=n.type===at.BINARY_EVENT;r||n.type===at.BINARY_ACK?(n.type=r?at.EVENT:at.ACK,this.reconstructor=new uK(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(c_(t)||t.base64)if(this.reconstructor)n=this.reconstructor.takeBinaryData(t),n&&(this.reconstructor=null,super.emitReserved("decoded",n));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let n=0;const r={type:Number(t.charAt(0))};if(at[r.type]===void 0)throw new Error("unknown packet type "+r.type);if(r.type===at.BINARY_EVENT||r.type===at.BINARY_ACK){const o=n+1;for(;t.charAt(++n)!=="-"&&n!=t.length;);const a=t.substring(o,n);if(a!=Number(a)||t.charAt(n)!=="-")throw new Error("Illegal attachments");const l=Number(a);if(!cK(l)||l<0)throw new Error("Illegal attachments");if(l>this.opts.maxAttachments)throw new Error("too many attachments");r.attachments=l}if(t.charAt(n+1)==="/"){const o=n+1;for(;++n&&!(t.charAt(n)===","||n===t.length););r.nsp=t.substring(o,n)}else r.nsp="/";const i=t.charAt(n+1);if(i!==""&&Number(i)==i){const o=n+1;for(;++n;){const a=t.charAt(n);if(a==null||Number(a)!=a){--n;break}if(n===t.length)break}r.id=Number(t.substring(o,n+1))}if(t.charAt(++n)){const o=this.tryParse(t.substr(n));if(d_.isPayloadValid(r.type,o))r.data=o;else throw new Error("invalid payload")}return r}tryParse(t){try{return JSON.parse(t,this.opts.reviver)}catch{return!1}}static isPayloadValid(t,n){switch(t){case at.CONNECT:return tj(n);case at.DISCONNECT:return n===void 0;case at.CONNECT_ERROR:return typeof n=="string"||tj(n);case at.EVENT:case at.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&sK.indexOf(n[0])===-1);case at.ACK:case at.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class uK{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const n=aK(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const cK=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e};function tj(e){return Object.prototype.toString.call(e)==="[object Object]"}const dK=Object.freeze(Object.defineProperty({__proto__:null,Decoder:d_,Encoder:lK,get PacketType(){return at}},Symbol.toStringTag,{value:"Module"}));function Qr(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const fK=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class kL extends Xt{constructor(t,n,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=n,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[Qr(t,"open",this.onopen.bind(this)),Qr(t,"packet",this.onpacket.bind(this)),Qr(t,"error",this.onerror.bind(this)),Qr(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...n){var r,i,o;if(fK.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(n.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(n),this;const a={type:at.EVENT,data:n};if(a.options={},a.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const f=this.ids++,p=n.pop();this._registerAckCallback(f,p),a.id=f}const l=(i=(r=this.io.engine)===null||r===void 0?void 0:r.transport)===null||i===void 0?void 0:i.writable,c=this.connected&&!(!((o=this.io.engine)===null||o===void 0)&&o._hasPingExpired());return this.flags.volatile&&!l||(c?(this.notifyOutgoingListeners(a),this.packet(a)):this.sendBuffer.push(a)),this.flags={},this}_registerAckCallback(t,n){var r;const i=(r=this.flags.timeout)!==null&&r!==void 0?r:this._opts.ackTimeout;if(i===void 0){this.acks[t]=n;return}const o=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let l=0;l<this.sendBuffer.length;l++)this.sendBuffer[l].id===t&&this.sendBuffer.splice(l,1);n.call(this,new Error("operation has timed out"))},i),a=(...l)=>{this.io.clearTimeoutFn(o),n.apply(this,l)};a.withError=!0,this.acks[t]=a}emitWithAck(t,...n){return new Promise((r,i)=>{const o=(a,l)=>a?i(a):r(l);o.withError=!0,n.push(o),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((i,...o)=>(this._queue[0],i!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(i)):(this._queue.shift(),n&&n(null,...o)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:at.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n),this._clearAcks()}
vendor: 7,087 bytes, line 220
220_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(r=>String(r.id)===t)){const r=this.acks[t];delete this.acks[t],r.withError&&r.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case at.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case at.EVENT:case at.BINARY_EVENT:this.onevent(t);break;case at.ACK:case at.BINARY_ACK:this.onack(t);break;case at.DISCONNECT:this.ondisconnect();break;case at.CONNECT_ERROR:this.destroy();const r=new Error(t.data.message);r.data=t.data.data,this.emitReserved("connect_error",r);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const n=this;let r=!1;return function(...i){r||(r=!0,n.packet({type:at.ACK,id:t,data:i}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(delete this.acks[t.id],n.withError&&t.data.unshift(null),n.apply(this,t.data))}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:at.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){const n=this._anyOutgoingListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const n=this._anyOutgoingListeners.slice();for(const r of n)r.apply(this,t.data)}}}function Vl(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}Vl.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=(Math.floor(t*10)&1)==0?e-n:e+n}return Math.min(e,this.max)|0};Vl.prototype.reset=function(){this.attempts=0};Vl.prototype.setMin=function(e){this.ms=e};Vl.prototype.setMax=function(e){this.max=e};Vl.prototype.setJitter=function(e){this.jitter=e};class e1 extends Xt{constructor(t,n){var r;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,um(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new Vl({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const i=n.parser||dK;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new JV(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const i=Qr(n,"open",function(){r.onopen(),t&&t()}),o=l=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",l),t?t(l):this.maybeReconnectOnOpen()},a=Qr(n,"error",o);if(this._timeout!==!1){const l=this._timeout,c=this.setTimeoutFn(()=>{i(),o(new Error("timeout")),n.close()},l);this.opts.autoUnref&&c.unref(),this.subs.push(()=>{this.clearTimeoutFn(c)})}return this.subs.push(i),this.subs.push(a),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(Qr(t,"ping",this.onping.bind(this)),Qr(t,"data",this.ondata.bind(this)),Qr(t,"error",this.onerror.bind(this)),Qr(t,"close",this.onclose.bind(this)),Qr(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){lm(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let r=this.nsps[t];return r?this._autoConnect&&!r.active&&r.connect():(r=new kL(this,t,n),this.nsps[t]=r),r}_destroy(t){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let r=0;r<n.length;r++)this.engine.write(n[r],t.options)}
220cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,n){var r;this.cleanup(),(r=this.engine)===null||r===void 0||r.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(i=>{i?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",i)):t.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const Wu={};function $p(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=eK(e,t.path||"/socket.io"),r=n.source,i=n.id,o=n.path,a=Wu[i]&&o in Wu[i].nsps,l=t.forceNew||t["force new connection"]||t.multiplex===!1||a;let c;return l?c=new e1(r,t):(Wu[i]||(Wu[i]=new e1(r,t)),c=Wu[i]),n.query&&!t.query&&(t.query=n.queryKey),c.socket(n.path,t)}Object.assign($p,{Manager:e1,Socket:kL,io:$p,connect:$p});const pK=250;function nj(e,t){var n;const r=(n=e.token)!==null&&n!==void 0?n:Ho(),i={app_id:e.appId};r?i.token=r:i.anonymous_id=Vp();const o=$p(e.serverUrl,{path:e.mountPath,transports:e.transports,query:i});return o.on("connect",async()=>{var a;return console.log("connect",o.id),(a=t.connect)===null||a===void 0?void 0:a.call(t)}),o.on("update_model",async a=>{var l;return(l=t.update_model)===null||l===void 0?void 0:l.call(t,a)}),o.on("error",async a=>{var l;return(l=t.error)===null||l===void 0?void 0:l.call(t,a)}),o.on("connect_error",async a=>{var l;return console.error("connect_error",a),(l=t.error)===null||l===void 0?void 0:l.call(t,a)}),o}function hK({config:e}){let t={...e};const n={},r={},i={connect:async()=>{const w=[];Object.keys(n).forEach(A=>{const _=g(A);_.length!==0&&(d(A),_.forEach(({connect:j})=>{const k=async()=>j==null?void 0:j();w.push(k())}))}),await Promise.all(w)},update_model:async w=>{const _=g(w.room).map(j=>{var k;return(k=j.update_model)===null||k===void 0?void 0:k.call(j,w)});await Promise.all(_)},error:async w=>{console.error("error",w);const A=Object.values(n).flat().map(_=>{var j;return(j=_.error)===null||j===void 0?void 0:j.call(_,w)});await Promise.all(A)}};let o=nj(e,i);function a(){l()}function l(){S(),o&&o.disconnect()}function c(w){a(),t={...t,...w},o=nj(t,i)}function d(w){o.emit("join",w)}function f(w){o.emit("leave",w)}async function p(w,A){var _;const j=JSON.stringify(A);return(_=i.update_model)===null||_===void 0?void 0:_.call(i,{room:w,data:j})}function g(w){var A;return(A=n[w])!==null&&A!==void 0?A:[]}function v(w){const A=r[w];A&&(clearTimeout(A),delete r[w])}function S(){Object.keys(r).forEach(w=>{var A,_;clearTimeout(r[w]),delete r[w],((_=(A=n[w])===null||A===void 0?void 0:A.length)!==null&&_!==void 0?_:0)===0&&delete n[w]})}function x(w){v(w),r[w]=setTimeout(()=>{var A,_;delete r[w],!(((_=(A=n[w])===null||A===void 0?void 0:A.length)!==null&&_!==void 0?_:0)>0)&&(f(w),delete n[w])},pK)}return{socket:o,subscribeToRoom:(w,A)=>{n[w]?v(w):(d(w),n[w]=[]),n[w].push(A);let _=!1;return()=>{var j,k;_||(_=!0,n[w]=(k=(j=n[w])===null||j===void 0?void 0:j.filter(O=>O!==A))!==null&&k!==void 0?k:[],n[w].length===0&&x(w))}},updateConfig:c,updateModel:p,disconnect:l}}(!globalThis.EventTarget||!globalThis.Event)&&console.error(`
221  PartySocket requires a global 'EventTarget' class to be available!
222  You can polyfill this global by adding this to your code before any partysocket imports: 
223  
224  \`\`\`
225  import 'partysocket/event-target-polyfill';
226  \`\`\`
227  Please file an issue at https://github.com/partykit/partykit if you're still having trouble.
228`);
vendor: 5,074 bytes, line 228
228var OL=class extends Event{constructor(t,n){super("error",n);wt(this,"message");wt(this,"error");this.message=t.message,this.error=t}},PL=class extends Event{constructor(t=1e3,n="",r){super("close",r);wt(this,"code");wt(this,"reason");wt(this,"wasClean",!0);this.code=t,this.reason=n}},oy={Event,ErrorEvent:OL,CloseEvent:PL};function mK(e,t){if(!e)throw new Error(t)}function gK(e){return new e.constructor(e.type,e)}function vK(e){return"data"in e?new MessageEvent(e.type,e):"code"in e||"reason"in e?new PL(e.code||1999,e.reason||"unknown reason",e):"error"in e?new OL(e.error,e):new Event(e.type,e)}var EM,yK=typeof process<"u"&&typeof((EM=process.versions)==null?void 0:EM.node)<"u"&&typeof document>"u",tp=yK?vK:gK,ya={maxReconnectionDelay:1e4,minReconnectionDelay:1e3+Math.random()*4e3,minUptime:5e3,reconnectionDelayGrowFactor:1.3,connectionTimeout:4e3,maxRetries:1/0,maxEnqueuedMessages:1/0},rj=!1,bK=class Sa extends EventTarget{constructor(n,r,i={}){super();wt(this,"_ws");wt(this,"_retryCount",-1);wt(this,"_uptimeTimeout");wt(this,"_connectTimeout");wt(this,"_shouldReconnect",!0);wt(this,"_connectLock",!1);wt(this,"_binaryType","blob");wt(this,"_closeCalled",!1);wt(this,"_messageQueue",[]);wt(this,"_url");wt(this,"_protocols");wt(this,"_options");wt(this,"onclose",null);wt(this,"onerror",null);wt(this,"onmessage",null);wt(this,"onopen",null);wt(this,"_handleOpen",n=>{this._debug("open event");const{minUptime:r=ya.minUptime}=this._options;clearTimeout(this._connectTimeout),this._uptimeTimeout=setTimeout(()=>this._acceptOpen(),r),mK(this._ws,"WebSocket is not defined"),this._ws.binaryType=this._binaryType,this._messageQueue.forEach(i=>{var o;return(o=this._ws)==null?void 0:o.send(i)}),this._messageQueue=[],this.onopen&&this.onopen(n),this.dispatchEvent(tp(n))});wt(this,"_handleMessage",n=>{this._debug("message event"),this.onmessage&&this.onmessage(n),this.dispatchEvent(tp(n))});wt(this,"_handleError",n=>{this._debug("error event",n.message),this._disconnect(void 0,n.message==="TIMEOUT"?"timeout":void 0),this.onerror&&this.onerror(n),this._debug("exec error listeners"),this.dispatchEvent(tp(n)),this._connect()});wt(this,"_handleClose",n=>{this._debug("close event"),this._clearTimeouts(),this._shouldReconnect&&this._connect(),this.onclose&&this.onclose(n),this.dispatchEvent(tp(n))});this._url=n,this._protocols=r,this._options=i,this._options.startClosed&&(this._shouldReconnect=!1),this._connect()}static get CONNECTING(){return 0}static get OPEN(){return 1}static get CLOSING(){return 2}static get CLOSED(){return 3}get CONNECTING(){return Sa.CONNECTING}get OPEN(){return Sa.OPEN}get CLOSING(){return Sa.CLOSING}get CLOSED(){return Sa.CLOSED}get binaryType(){return this._ws?this._ws.binaryType:this._binaryType}set binaryType(n){this._binaryType=n,this._ws&&(this._ws.binaryType=n)}get retryCount(){return Math.max(this._retryCount,0)}get bufferedAmount(){return this._messageQueue.reduce((r,i)=>(typeof i=="string"?r+=i.length:i instanceof Blob?r+=i.size:r+=i.byteLength,r),0)+(this._ws?this._ws.bufferedAmount:0)}get extensions(){return this._ws?this._ws.extensions:""}get protocol(){return this._ws?this._ws.protocol:""}get readyState(){return this._ws?this._ws.readyState:this._options.startClosed?Sa.CLOSED:Sa.CONNECTING}get url(){return this._ws?this._ws.url:""}get shouldReconnect(){return this._shouldReconnect}close(n=1e3,r){if(this._closeCalled=!0,this._shouldReconnect=!1,this._clearTimeouts(),!this._ws){this._debug("close enqueued: no ws instance");return}if(this._ws.readyState===this.CLOSED){this._debug("close: already closed");return}this._ws.close(n,r)}reconnect(n,r){this._shouldReconnect=!0,this._closeCalled=!1,this._retryCount=-1,!this._ws||this._ws.readyState===this.CLOSED?this._connect():(this._disconnect(n,r),this._connect())}send(n){if(this._ws&&this._ws.readyState===this.OPEN)this._debug("send",n),this._ws.send(n);else{const{maxEnqueuedMessages:r=ya.maxEnqueuedMessages}=this._options;this._messageQueue.length<r&&(this._debug("enqueue",n),this._messageQueue.push(n))}}_debug(...n){this._options.debug&&console.log.apply(console,["RWS>",...n])}_getNextDelay(){const{reconnectionDelayGrowFactor:n=ya.reconnectionDelayGrowFactor,minReconnectionDelay:r=ya.minReconnectionDelay,maxReconnectionDelay:i=ya.maxReconnectionDelay}=this._options;let o=0;return this._retryCount>0&&(o=r*Math.pow(n,this._retryCount-1),o>i&&(o=i)),this._debug("next delay",o),o}_wait(){return new Promise(n=>{setTimeout(n,this._getNextDelay())})}_getNextProtocols(n){if(!n)return Promise.resolve(null);if(typeof n=="string"||Array.isArray(n))return Promise.resolve(n);if(typeof n=="function"){const r=n();if(!r)return Promise.resolve(null);if(typeof r=="string"||Array.isArray(r))return Promise.resolve(r);if(r.then)return r}throw Error("Invalid protocols")}_getNextUrl(n){if(typeof n=="string")return Promise.resolve(n);if(typeof n=="function"){const r=n();if(typeof r=="string")return Promise.resolve(r);if(r.then)return r}throw Error("Invalid URL")}_connect(){if(this._connectLock||!this._shouldReconnect)return;this._connectLock=!0;
228const{maxRetries:n=ya.maxRetries,connectionTimeout:r=ya.connectionTimeout}=this._options;if(this._retryCount>=n){this._debug("max retries reached",this._retryCount,">=",n);return}this._retryCount++,this._debug("connect",this._retryCount),this._removeListeners(),this._wait().then(()=>Promise.all([this._getNextUrl(this._url),this._getNextProtocols(this._protocols||null)])).then(([i,o])=>{if(this._closeCalled){this._connectLock=!1;return}!this._options.WebSocket&&typeof WebSocket>"u"&&!rj&&(console.error(`‼️ No WebSocket implementation available. You should define options.WebSocket. 
229
230For example, if you're using node.js, run \`npm install ws\`, and then in your code:
231
232import PartySocket from 'partysocket';
233import WS from 'ws';
234
235const partysocket = new PartySocket({
236  host: "127.0.0.1:1999",
237  room: "test-room",
238  WebSocket: WS
239});
240
241`),rj=!0);const a=this._options.WebSocket||WebSocket;this._debug("connect",{url:i,protocols:o}),this._ws=o?new a(i,o):new a(i),this._ws.binaryType=this._binaryType,this._connectLock=!1,this._addListeners(),this._connectTimeout=setTimeout(()=>this._handleTimeout(),r)}).catch(i=>{this._connectLock=!1,this._handleError(new oy.ErrorEvent(Error(i.message),this))})}_handleTimeout(){this._debug("timeout event"),this._handleError(new oy.ErrorEvent(Error("TIMEOUT"),this))}_disconnect(n=1e3,r){if(this._clearTimeouts(),!!this._ws){this._removeListeners();try{this._ws.close(n,r),this._handleClose(new oy.CloseEvent(n,r,this))}catch{}}}_acceptOpen(){this._debug("accept open"),this._retryCount=0}_removeListeners(){this._ws&&(this._debug("removeListeners"),this._ws.removeEventListener("open",this._handleOpen),this._ws.removeEventListener("close",this._handleClose),this._ws.removeEventListener("message",this._handleMessage),this._ws.removeEventListener("error",this._handleError))}_addListeners(){this._ws&&(this._debug("addListeners"),this._ws.addEventListener("open",this._handleOpen),this._ws.addEventListener("close",this._handleClose),this._ws.addEventListener("message",this._handleMessage),this._ws.addEventListener("error",this._handleError))}_clearTimeouts(){clearTimeout(this._connectTimeout),clearTimeout(this._uptimeTimeout)}};/*!
242 * Reconnecting WebSocket
243 * by Pedro Ladaria <[email protected]>
244 * https://github.com/pladaria/reconnecting-websocket
245 * License MIT
246 */const xK=1e3,wK=3e3,SK=new Set([405,409,422,503]),_K=new Set([400,403,404]);function AK(e){const t=e&&typeof e=="object"?e.status:void 0;return typeof t=="number"?t:void 0}function EK(e){return e instanceof Error?e:new Error(String(e))}class kK{constructor(t,n,r,i,o){var a;this.onClose=o,this.listeners=new Set,this.heartbeat=null,this.closed=!1,this.id=(a=i==null?void 0:i.id)!==null&&a!==void 0?a:crypto.randomUUID();let l=r.transport==="proxy";const c=async()=>{var g;if(this.closed)throw new Error("Actor connection is closed");if(!l)try{const{websocket_url:v,token:S}=await r.mintConnectionToken(t,n,this.id),x=v.includes("?")?"&":"?";return`${v}${x}token=${encodeURIComponent(S)}`}catch(v){const S=AK(v);if(!(r.transport!=="direct"&&S!==void 0&&SK.has(S))){S!==void 0&&_K.has(S)&&this.close();try{(g=r.onMintError)===null||g===void 0||g.call(r,EK(v))}catch{}throw v}l=!0}return PK(r.host,t,n,this.id,r.appId,r.getAuthToken(),r.functionsVersion)},d=new bK(c);this.ws=d;let f=Date.now();const p=()=>{f=Date.now()};d.addEventListener("open",p),d.addEventListener("message",g=>{p();let v;try{v=JSON.parse(g.data)}catch{return}if((v&&typeof v=="object"?v.type:void 0)!=="__pong")for(const x of this.listeners)x(v)}),this.heartbeat=setInterval(()=>{if(Date.now()-f>wK){p(),d.readyState===d.OPEN&&d.reconnect();return}try{d.send(JSON.stringify({type:"__ping"}))}catch{}},xK)}subscribe(t){return this.listeners.add(t),{unsubscribe:()=>{this.listeners.delete(t)}}}send(t){this.closed||this.ws.send(JSON.stringify(t))}close(){this.closed||(this.closed=!0,this.heartbeat&&(clearInterval(this.heartbeat),this.heartbeat=null),this.listeners.clear(),this.ws.close(),this.onClose())}}function OK(e,t,n,r){let i=null;return{connect(o){if(i)return i;const a=new kK(e,t,n,o,()=>{r.delete(a),i===a&&(i=null)});return i=a,r.add(a),a}}}function PK(e,t,n,r,i,o,a){let l=e.replace(/^(http|https|ws|wss):\/\//,"");l.endsWith("/")&&(l=l.slice(0,-1));const c=l.startsWith("localhost:")||l.startsWith("127.0.0.1:")||l.startsWith("192.168.")||l.startsWith("10.")||l.startsWith("172.")&&l.split(".")[1]>="16"&&l.split(".")[1]<="31"||l.startsWith("[::ffff:7f00:1]:"),d=new URLSearchParams([["_pk",r],["app_id",i],["handler",t]]);return o&&d.append("token",o),a&&d.append("fv",a),`${c?"ws":"wss"}://${l}/parties/${t}/${n}?${d}`}function jK(e,t){return e&&!e.startsWith("/")?e:t??e}function CK(e){const t=new Set;return{module:new Proxy({}
246,{get(r,i){if(!(typeof i!="string"||i==="then"))return o=>OK(i,o,e,t)}}),closeAll:()=>{for(const r of[...t])r.close()}}}function TK(e){var t,n,r,i;const{serverUrl:o="https://base44.app",appId:a,analytics:l,token:c,serviceToken:d,requiresAuth:f=!1,appBaseUrl:p,options:g,functionsVersion:v,headers:S}=e,x=typeof p=="string"?p:"",y={serverUrl:o,mountPath:"/ws-user-apps/socket.io/",transports:["websocket"],appId:a,token:c};let w=null;const A=()=>(w||(w=hK({config:y})),w),_={...S,"X-App-Id":String(a)},j=S==null?void 0:S["Base44-State"],k=j?{"Base44-State":j}:{},O=v?{..._,"Base44-Functions-Version":v}:_,T=Ws({baseURL:`${o}/api`,headers:_,token:c,onError:g==null?void 0:g.onError}),N=Ws({baseURL:`${o}/api`,headers:O,token:c,interceptResponses:!1,onError:g==null?void 0:g.onError}),I={..._,...c?{"on-behalf-of":`Bearer ${c}`}:{}},z=Ws({baseURL:`${o}/api`,headers:I,token:d,onError:g==null?void 0:g.onError}),F=Ws({baseURL:`${o}/api`,headers:O,token:d,interceptResponses:!1}),D=Ws({baseURL:`${o}/api`,headers:_}),L=uV(T,N,a,{appBaseUrl:x,token:c});if(typeof window<"u"){const Y=c||Ho();Y&&L.setToken(Y)}const B=CK({appId:a,host:jK(o,typeof window<"u"?(t=window.location)===null||t===void 0?void 0:t.origin:void 0),functionsVersion:v,getAuthToken:()=>c||Ho(),mintConnectionToken:async(Y,ee,R)=>{const q=c||Ho();return await D.post(`/apps/${a}/actors/${encodeURIComponent(Y)}/connection-token`,{room:ee,connection_id:R},{headers:{...q?{Authorization:`Bearer ${q}`}:{},...v?{"Base44-Functions-Version":v}:{}}})},transport:g==null?void 0:g.actorsTransport,onMintError:g==null?void 0:g.onError}),U={entities:qP({axios:T,appId:a,getSocket:A}),integrations:WP(T,a),connectors:hV(T,a),auth:L,functions:VP(N,a,{getAuthHeaders:()=>{const Y={},ee=c||Ho();return ee&&(Y.Authorization=`Bearer ${ee}`),Y},baseURL:(n=N.defaults)===null||n===void 0?void 0:n.baseURL}),agents:KP({axios:T,getSocket:A,appId:a,serverUrl:o,token:c}),aiGateway:YP({serverUrl:o,token:c,appId:a,headers:k}),appLogs:XP(T,a),app:yV(T,a),users:bV(T,a),analytics:G7({axiosClient:T,serverUrl:o,appId:a,userAuthModule:L,enabled:(r=l==null?void 0:l.enabled)!==null&&r!==void 0?r:!0}),actors:B.module,cleanup:()=>{U.analytics.cleanup(),B.closeAll(),w&&w.disconnect()}},G={entities:qP({axios:z,appId:a,getSocket:A}),integrations:WP(z,a),sso:cV(z,a),connectors:fV(z,a),functions:VP(F,a,{getAuthHeaders:()=>{const Y={};return d&&(Y.Authorization=`Bearer ${d}`),Y},baseURL:(i=F.defaults)===null||i===void 0?void 0:i.baseURL}),agents:KP({axios:z,getSocket:A,appId:a,serverUrl:o,token:c}),aiGateway:YP({serverUrl:o,token:d,appId:a,headers:k}),appLogs:XP(z,a),cleanup:()=>{w&&w.disconnect()}};return f&&typeof window<"u"&&setTimeout(async()=>{try{await U.auth.isAuthenticated()||U.auth.redirectToLogin(window.location.href)}catch(Y){console.error("Authentication check failed:",Y),U.auth.redirectToLogin(window.location.href)}},0),{...U,fetchWithAuth:gV({axios:T,serviceRoleAxios:z,appId:String(a),serverUrl:o,functionsVersion:v,platformHeaders:S}),setToken(Y){U.auth.setToken(Y),w&&w.updateConfig({token:Y}),y.token=Y},getConfig(){return{serverUrl:o,appId:a,requiresAuth:f}},get asServiceRole(){if(!d)throw new Error("Service token is required to use asServiceRole. Please provide a serviceToken when creating the client.");return G}}}const jL=typeof window>"u",NK=(()=>{const e=new Map;return{getItem:t=>e.has(t)?e.get(t):null,setItem:(t,n)=>e.set(t,String(n)),removeItem:t=>e.delete(t)}})(),RK=jL?{localStorage:NK}:window,mc=RK.localStorage,IK=e=>e.replace(/([A-Z])/g,"_$1").toLowerCase(),$s=(e,{defaultValue:t=void 0,removeFromUrl:n=!1}={})=>{if(jL)return t;const r=`base44_${IK(e)}`,i=new URLSearchParams(window.location.search),o=i.get(e);if(n){i.delete(e);const l=`${window.location.pathname}${i.toString()?`?${i.toString()}`:""}${window.location.hash}`;window.history.replaceState({},document.title,l)}if(o)return mc.setItem(r,o),o;if(t)return mc.setItem(r,t),t;const a=mc.getItem(r);return a||null},$K=()=>($s("clear_access_token")==="true"&&(mc.removeItem("base44_access_token"),mc.removeItem("token")),{appId:$s("app_id",{defaultValue:"6a5ed82794deadf361ff45ba"}),token:$s("access_token",{removeFromUrl:!0}),fromUrl:$s("from_url",{defaultValue:window.location.href}),functionsVersion:$s("functions_version",{defaultValue:"prod"}),appBaseUrl:$s("app_base_url",{defaultValue:void 0})}),Ui={...$K()},{appId:MK,token:DK,functionsVersion:LK,appBaseUrl:FK}=Ui,BK=typeof window<"u"&&/\.base44\.app$/.test(window.location.hostname),zK=BK?"":"https://base44.app",Qt=TK({appId:MK,token:DK,functionsVersion:LK,serverUrl:zK,requiresAuth:!1,appBaseUrl:FK}),f_=globalThis.__RMA_AUTH_CONTEXT__||P.createContext(null);globalThis.__RMA_AUTH_CONTEXT__=f_;const ij=({children:e})=>{const[t,n]=P.useState(null),[r,i]=P.useState(!1),[o,a]=P.useState(!0),[l,c]=P.useState(!0),[d,f]=P.useState(null),[p,g]=P.useState(!1),[v,S]=P.useState(null),x=P.useCallback(async()=>{var _,j;a(!0);try{const k=await Qt.auth.me();if(!(k!=null&&k.id))throw new Error("Authenticated session did not return a user.");return n(k),i(!0),g(!0),f(null),k}catch(k){return n(null),i(!1),g(!0),(k==null?void 0:k.status)!==401&&(k==null?void 0:k.status)!==403&&((_=k==null?void 0:k.response)==null?void 0:_.status)!==401&&((j=k==null?void 0:k.response)==null?void 0:j.status)!==403&&console.warn("User auth check failed:",k),null}finally{a(!1)}},[]),y=P.useCallback(async()=>{var _,j,k;c(!0),f(null);try{const O=Ws({baseURL:"/api/apps/public",headers:{"X-App-Id":Ui.appId},interceptResponses:!0});try{const T=await O.get(`/prod/public-settings/by-id/${Ui.appId}`);S(T),await x()}catch(T){console.error("App state check failed:",T);
246const N=(T==null?void 0:T.status)??((_=T==null?void 0:T.response)==null?void 0:_.status),I=(T==null?void 0:T.data)??((j=T==null?void 0:T.response)==null?void 0:j.data);if(N===403&&((k=I==null?void 0:I.extra_data)!=null&&k.reason)){const z=I.extra_data.reason;f(z==="auth_required"?{type:"auth_required",message:"Authentication required"}:z==="user_not_registered"?{type:"user_not_registered",message:"User not registered for this app"}:{type:z,message:T.message})}else f({type:"unknown",message:T.message||"Failed to load app"});a(!1)}}catch(O){console.error("Unexpected error:",O),f({type:"unknown",message:O.message||"An unexpected error occurred"}),a(!1)}finally{c(!1)}},[x]);P.useEffect(()=>{y()},[y]);const w=P.useCallback((_=!0)=>{n(null),i(!1),g(!0),_?Qt.auth.logout(`${window.location.origin}/`):Qt.auth.logout()},[]),A=P.useCallback(()=>{Qt.auth.redirectToLogin(window.location.href)},[]);return h.jsx(f_.Provider,{value:{user:t,isAuthenticated:r,isLoadingAuth:o,isLoadingPublicSettings:l,authError:d,appPublicSettings:v,authChecked:p,logout:w,navigateToLogin:A,checkUserAuth:x,checkAppState:y},children:e})},es=()=>{const e=P.useContext(f_);if(!e)throw new Error("useAuth must be used within an AuthProvider");return e};function UK(){const e=ro(),t=Ja(),{user:n,isAuthenticated:r,isLoadingAuth:i}=es(),o=e.pathname.substring(1);return h.jsx("div",{className:"min-h-screen flex items-center justify-center p-6 bg-slate-50",children:h.jsx("div",{className:"max-w-md w-full",children:h.jsxs("div",{className:"text-center space-y-6",children:[h.jsxs("div",{className:"space-y-2",children:[h.jsx("h1",{className:"text-7xl font-light text-slate-300",children:"404"}),h.jsx("div",{className:"h-0.5 w-16 bg-slate-200 mx-auto"})]}),h.jsxs("div",{className:"space-y-3",children:[h.jsx("h2",{className:"text-2xl font-medium text-slate-800",children:"Page Not Found"}),h.jsxs("p",{className:"text-slate-600 leading-relaxed",children:["The page ",h.jsxs("span",{className:"font-medium text-slate-700",children:['"',o,'"']})," could not be found in this application."]})]}),!i&&r&&(n==null?void 0:n.role)==="admin"&&h.jsx("div",{className:"mt-8 p-4 bg-slate-100 rounded-lg border border-slate-200",children:h.jsxs("div",{className:"flex items-start space-x-3",children:[h.jsx("div",{className:"flex-shrink-0 w-5 h-5 rounded-full bg-orange-100 flex items-center justify-center mt-0.5",children:h.jsx("div",{className:"w-2 h-2 rounded-full bg-orange-400"})}),h.jsxs("div",{className:"text-left space-y-1",children:[h.jsx("p",{className:"text-sm font-medium text-slate-700",children:"Admin Note"}),h.jsx("p",{className:"text-sm text-slate-600 leading-relaxed",children:"This route is not implemented or no longer exists."})]})]})}),h.jsx("div",{className:"pt-6",children:h.jsxs("button",{type:"button",onClick:()=>t("/"),className:"inline-flex items-center px-4 py-2 text-sm font-medium text-slate-700 bg-white border border-slate-200 rounded-lg hover:bg-slate-50 hover:border-slate-300 transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-slate-500",children:[h.jsx("svg",{className:"w-4 h-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:h.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"})}),"Go Home"]})})]})})})}const qK=()=>h.jsx("div",{className:"flex flex-col items-center justify-center min-h-screen bg-gradient-to-b from-white to-slate-50",children:h.jsx("div",{className:"max-w-md w-full p-8 bg-white rounded-lg shadow-lg border border-slate-100",children:h.jsxs("div",{className:"text-center",children:[h.jsx("div",{className:"inline-flex items-center justify-center w-16 h-16 mb-6 rounded-full bg-orange-100",children:h.jsx("svg",{className:"w-8 h-8 text-orange-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:h.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})})}),h.jsx("h1",{className:"text-3xl font-bold text-slate-900 mb-4",children:"Access Restricted"}),h.jsx("p",{className:"text-slate-600 mb-8",children:"You are not registered to use this application. Please contact the app administrator to request access."}),h.jsxs("div",{className:"p-4 bg-slate-50 rounded-md text-sm text-slate-600",children:[h.jsx("p",{children:"If you believe this is an error, you can:"}),h.jsxs("ul",{className:"list-disc list-inside mt-2 space-y-1",children:[h.jsx("li",{children:"Verify you are logged in with the correct account"}),h.jsx("li",{children:"Contact the app administrator for access"}),h.jsx("li",{children:"Try logging out and back in again"})]})]})]})})}),HK=e=>{const t=e.slice(1);try{return decodeURIComponent(t)}catch{return t}};function WK(){const{pathname:e,hash:t}=ro(),n=lH();return P.useEffect(()=>{if(n!=="POP"){if(t){const r=HK(t),i=window.setTimeout(()=>{var o;(o=document.getElementById(r))==null||o.scrollIntoView({behavior:"smooth"})},50);return()=>window.clearTimeout(i)}window.scrollTo({top:0,left:0,behavior:"instant"})}},[e,t,n]),null}class VK extends W.Component{constructor(t){super(t),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(t,n){console.error("[AppErrorBoundary] Unhandled render error",t,n)}render(){return this.state.hasError?h.jsx("main",{className:"grid min-h-screen place-items-center bg-background px-6 text-center text-foreground",children:h.jsxs("div",{className:"max-w-md",children:[h.jsx("h1",{className:"text-2xl font-bold",children:"Something went wrong"}),h.jsx("p",{className:"mt-2 text-sm text-muted-foreground",children:"The page hit an unexpected error. Reload the app to recover."}),h.jsxs("div",{className:"mt-6 flex justify-center gap-3",children:[h.jsx("button",{type:"button",className:"rounded-md border border-border px-4 py-2 text-sm font-semibold",onClick:()=>{window.location.href="/"},children:"Go home"}),h.jsx("button",{type:"button",className:"rounded-md bg-primary px-4 py-2 text-sm font-semibold text-primary-foreground",onClick:()=>window.location.reload(),children:"Reload"})]})]})}):this.props.children}}const Qn=async(e,t)=>{try{return(await Qt.functions.invoke(e,t)).data}catch(n){throw n}},mn={getAreaPage:(e,t=!1)=>Qn("getAreaPage",{slugOrZip:e,forceFresh:t}),getAreaBackfillStatus:(e,t)=>Qn("getAreaPage",{slugOrZip:e,backfillStatusOnly:!0,missingSections:t}),searchAreas:e=>Qn("searchAreas",{query:e}),toggleSavedArea:(e,t)=>Qn("toggleSavedArea",{areaId:e,saved:t}),toggleHelpfulVote:(e,t)=>
246Qn("toggleHelpfulVote",{reviewId:e,voteType:"helpful",active:t}),reportReview:(e,t,n)=>Qn("reportReview",{reviewId:e,reason:t,details:n}),submitReview:e=>Qn("submitReview",{data:e}),updateReview:(e,t)=>Qn("updateReview",{reviewId:e,data:t}),getSavedAreas:()=>Qn("getSavedAreas",{}),claimAreaProfile:e=>Qn("claimAreaProfile",{query:e}),reloadStaleArea:e=>Qn("reloadStaleArea",{areaId:e}),getSiteSetting:()=>Qn("getSiteSetting",{}),getCityPage:(e,t="")=>Qn("getCityPage",{slug:e,cityName:t}),getCountyPage:e=>Qn("getCountyPage",{slug:e})},KK=new Set(["us","usa"]);function CL(e={}){const t=String(e.countrycode||e.country_code||"").trim().toLowerCase(),n=String(e.country||"").trim().toLowerCase();return t?KK.has(t):n==="united states"||n==="united states of america"||n==="usa"||n==="us"}function t1(e){const t=String(e||"").trim();return/^\d{5}$/.test(t)?t:null}function GK(e){const[t,n]=P.useState([]);return P.useEffect(()=>{const r=String(e||"").trim();if(r.length<2){n([]);return}let i=!0;const o=window.setTimeout(async()=>{try{const a=await mn.searchAreas(r);if(!i)return;const c=(a.photonFeatures||[]).map(f=>f.properties||{}).filter(CL).map(f=>{const p=f.city||f.town||f.village||f.hamlet||f.name||"",g=f.state||"",v=f.osm_value==="postcode",S=String(f.name||f.county||"").trim(),x=f.osm_value==="county"||/\b(county|parish|borough|census area)\b/i.test(S),y=t1(f.postcode)||t1(f.name);return v&&y?{full_name:y,full_geoid:`${f.osm_type||"feature"}:${f.osm_id||`zip-${y}`}`,sumlevel:"860"}:x&&S&&g?{full_name:`${S}, ${g}`,full_geoid:`${f.osm_type||"feature"}:${f.osm_id||`${S}-${g}`}`,sumlevel:"050"}:!p||!g?null:{full_name:`${p}, ${g}`,full_geoid:`${f.osm_type||"feature"}:${f.osm_id||`${p}-${g}`}`,sumlevel:"160"}}).filter(Boolean),d=[...new Map(c.map(f=>[f.full_name,f])).values()];i&&n(d.slice(0,8))}catch{i&&n([])}},250);return()=>{i=!1,window.clearTimeout(o)}},[e]),t}function YK(e,t){const n=e.street||e.name||"",r=e.housenumber?`${e.housenumber} ${n}`.trim():t&&n?`${t} ${n}`.trim():n,i=e.city||e.locality||e.town||e.village||e.county||"",o=[e.state,e.postcode].filter(Boolean).join(" ");return[r,i,o].filter(Boolean).join(", ")}function XK(e){const[t,n]=P.useState([]);return P.useEffect(()=>{const r=String(e||"").trim(),i=r.length>=3&&/^\d/.test(r)&&!/^\d{5}$/.test(r);if(r.length<2||!i){n([]);return}let o=!0;const a=window.setTimeout(async()=>{try{const l=await mn.searchAreas(r);if(!o)return;const c=(r.match(/^\s*(\d+[a-z]?)\s+/i)||[])[1]||"",f=(l.photonFeatures||[]).map(g=>g.properties||{}).filter(CL).map(g=>({display:YK(g,c),postcode:t1(g.postcode)})).filter(g=>g.display&&g.postcode),p=[...new Map(f.map(g=>[g.display,g])).values()];o&&n(p.slice(0,6))}catch{o&&n([])}},250);return()=>{o=!1,window.clearTimeout(a)}},[e]),t}function TL({variant:e="compact",initialValue:t=""}){const[n,r]=P.useState(t),[i,o]=P.useState(!1),[a,l]=P.useState(!1),[c,d]=P.useState([]),[f,p]=P.useState(""),g=Ja(),v=GK(n),S=XK(n),x=async O=>{var N,I,z,F;const T=String(O||"").trim();if(T){if(/^\d{5}$/.test(T)){o(!1),g(`/area/${T}`);return}l(!0),p(""),d([]);try{const D=await mn.claimAreaProfile(T);if((D.status==="countyAggregate"||D.status==="cityAggregate")&&D.route){o(!1),g(D.route);return}if(D.status==="selectionRequired"){const B=(D.alternatives||[])[0];if(B!=null&&B.name){const U=B.name.split(", ").pop(),G=B.city.toLowerCase().replace(/[^a-z0-9]+/g,"-");g(`/city/${G}-${U.toLowerCase()}?name=${encodeURIComponent(B.city)}`);return}d(D.alternatives||[]),o(!0);return}const L=((N=D.area)==null?void 0:N.slug)||D.canonicalZip;o(!1),g(`/area/${encodeURIComponent(L)}`)}catch(D){((I=D==null?void 0:D.response)==null?void 0:I.status)===429?p("The server is busy. Please try again in a moment."):p(((F=(z=D==null?void 0:D.response)==null?void 0:z.data)==null?void 0:F.error)||(D==null?void 0:D.message)||"Search failed. Please try again."),o(!0)}finally{l(!1)}}},y=O=>{O.preventDefault(),o(!1),x(n)},w=O=>{r(O.full_name),o(!1),x(O.full_name)},A=O=>{r(O.zipCode),o(!1),x(O.zipCode)},_=O=>{r(O.display),o(!1),x(O.postcode)},j=e==="compact",k=i&&(c.length>0||S.length>0||v.length>0);return h.jsxs("form",{onSubmit:y,onBlur:O=>!O.currentTarget.contains(O.relatedTarget)&&o(!1),className:"relative",children:[j?h.jsxs("div",{className:"flex h-[46px] items-center gap-2 rounded-full bg-white px-4 text-[#111]",children:[h.jsx("input",{value:n,onChange:O=>{r(O.target.value),d([]),p(""),o(!0)},onFocus:()=>o(!0),"aria-label":"Search a ZIP code, city, county, or address",autoComplete:"off",placeholder:"Search a ZIP code, city, county, or address",className:"min-w-0 flex-1 border-0 bg-transparent text-[15px] text-[#111] outline-none"}),h.jsx("button",{type:"submit","aria-label":"Search",disabled:a,className:"grid h-8 w-8 shrink-0 place-items-center rounded-full bg-[#101014] text-white disabled:opacity-60",children:a?h.jsx(Qi,{className:"h-4 w-4 animate-spin"}):h.jsx(X6,{className:"h-4 w-4"})})]}):h.jsxs("div",{className:"mx-auto flex w-full max-w-3xl items-center gap-3 max-sm:flex-col",children:[h.jsx("input",{value:n,onChange:O=>{r(O.target.value),d([]),p(""),o(!0)},onFocus:()=>o(!0),"aria-label":"Search a ZIP code, city, county, or address",autoComplete:"off",placeholder:"Search a ZIP code, city, county, or address",className:"h-16 min-w-0 flex-1 rounded-md border-2 border-foreground bg-card px-5 text-base outline-none"}),h.jsx("button",{type:"submit",disabled:a,className:"h-16 rounded-md border-2 border-foreground bg-chart-1 px-7 font-black disabled:opacity-60",children:a?"Searching…":"Check the area"})]}),f&&i&&h.jsx("div",{className:"absolute left-0 top-[calc(100%+8px)] z-50 w-full rounded-md border border-border bg-card px-4 py-3 text-sm text-destructive shadow-lg",children:f}),k&&h.jsx("div",{className:"absolute left-0 top-[calc(100%+8px)] z-50 w-full overflow-hidden rounded-md border border-border bg-card text-card-foreground shadow-lg",children:c.length>0?h.jsxs(h.Fragment,{children:[h.jsx("div",{className:"px-4 py-2 text-xs font-bold text-muted-foreground",children:"Choose a ZIP code"}),c.map(O=>h.jsxs("button",{type:"button",onMouseDown:T=>T.preventDefault(),onClick:()=>A(O),className:"block w-full px-4 py-3 text-left text-sm hover:bg-accent focus:bg-accent focus:outline-none",children:[h.jsx("span",{className:"font-bold",children:O.zipCode})," · ",O.city,", ",O.state]},O.zipCode))]}):h.jsxs(h.Fragment,{children:[S.length>0&&h.jsxs(h.Fragment,{children:[h.jsx("div",{className:"px-4 py-2 text-xs font-bold text-muted-foreground",children:"Matching addresses"}),S.map(O=>h.jsx("button",{type:"button",onMouseDown:T=>T.preventDefault(),onClick:()=>_(O),className:"block w-full px-4 py-3 text-left text-sm hover:bg-accent focus:bg-accent focus:outline-none",children:h.jsx("span",{className:"line-clamp-1",children:O.display})},O.display))]}),v.length>0&&h.jsx("div",{className:"px-4 py-2 text-xs font-bold text-muted-foreground",style:{borderTop:S.length?"1px solid var(--border)":"none"},children:"Places"}),v.map(O=>h.jsx("button",{type:"button",onMouseDown:T=>T.preventDefault(),onClick:()=>w(O),className:"block w-full px-4 py-3 text-left text-sm hover:bg-accent focus:bg-accent focus:outline-none",children:O.sumlevel==="860"?`ZIP ${O.full_name}`:O.sumlevel==="050"?`County · ${O.full_name}`:O.full_name},O.full_geoid))]})})]})}function Ht(){const{user:e,isAuthenticated:t,isLoadingAuth:n,logout:r}=es(),[i,o]=P.useState(!1),a=(e==null?void 0:e.role)==="admin",l=(e==null?void 0:e.full_name)||(e==null?void 0:e.name)||(e==null?void 0:e.email)||"Account",c=()=>{o(!1),r(!0)},d=()=>t?h.jsxs(h.Fragment,{children:[h.jsx("span",{className:"max-w-[220px] truncate text-white/75",title:l,children:l}),h.jsx("button",{type:"button",onClick:c,className:"rounded-full border border-white px-4 py-2 font-extrabold transition-colors hover:bg-white hover:text-[#101014]",children:"Log Out"})]}):h.jsxs(h.Fragment,{children:[h.jsx(rt,{to:"/login",onClick:()=>o(!1),className:"hover:underline",children:"Log In"}),h.jsx(rt,{to:"/register",onClick:()=>o(!1),className:"rounded-full border border-white px-4 py-2 font-extrabold transition-colors hover:bg-white hover:text-[#101014]",children:"Sign Up"})]});return h.jsxs("header",{className:"sticky top-0 z-50 bg-[#101014] text-white",style:{borderBottom:"1px solid #25252a"},children:[h.jsxs("div",{className:"flex h-[76px] items-center gap-6 px-[max(24px,5vw)]",children:[h.jsx(rt,{to:"/",className:"hidden whitespace-nowrap text-[18px] font-extrabold sm:inline",children:"Rate My Area"}),h.jsx("div",{className:"ml-3 w-[min(620px,46vw)] max-md:ml-0 max-md:flex-1 max-md:w-auto",children:h.jsx(TL,{variant:"compact"})}),h.jsxs("nav",{className:"ml-auto hidden items-center gap-[18px] text-sm font-extrabold md:flex",children:[h.jsx(rt,{to:"/blog",className:"hover:underline",children:"Blog"}),h.jsx(rt,{to:"/compare",className:"hover:underline",children:"Compare"}),a&&h.jsx(rt,{to:"/admin",className:"hover:underline",children:"Admin"}),h.jsx(rt,{to:"/saved",className:"hover:underline",children:"Saved"}),!n&&d()]}),h.jsx("button",{type:"button",className:"ml-auto grid h-10 w-10 shrink-0 place-items-center rounded-md border border-white/30 md:hidden","aria-label":i?"Close menu":"Open menu","aria-expanded":i,onClick:()=>o(f=>!f),children:i?h.jsx(HS,{className:"h-5 w-5"}):h.jsx(B6,{className:"h-5 w-5"})})]}),i&&h.jsxs("nav",{className:"grid gap-4 border-t border-white/10 px-[max(24px,5vw)] py-5 text-sm font-extrabold md:hidden",children:[h.jsx(rt,{to:"/blog",onClick:()=>o(!1),children:"Blog"}),h.jsx(rt,{to:"/compare",onClick:()=>o(!1),children:"Compare"}),a&&h.jsx(rt,{to:"/admin",onClick:()=>o(!1),children:"Admin"}),h.jsx(rt,{to:"/saved",onClick:()=>o(!1),children:"Saved"}),!n&&d()]})]})}const QK=["90210","10001","94110"];function ZK(){return h.jsxs("section",{className:"relative flex min-h-[620px] items-center justify-center px-6 py-20 text-center",children:[h.jsx("span",{className:"absolute left-[7%] top-[16%] -rotate-6 border-2 border-foreground bg-chart-2 px-3 py-2 font-black max-md:hidden",children:"Housing"}),h.jsx("span",{className:"absolute right-[8%] top-[20%] rotate-6 border-2 border-foreground bg-chart-1 px-3 py-2 font-black max-md:hidden",children:"Demographics"}
246),h.jsx("span",{className:"absolute bottom-[15%] left-[12%] rotate-3 border-2 border-foreground bg-chart-4 px-3 py-2 font-black max-md:hidden",children:"Commutes"}),h.jsxs("div",{className:"relative z-10 w-full max-w-5xl",children:[h.jsx("div",{className:"mb-6 inline-block rounded border-2 border-foreground bg-chart-2 px-3 py-2 text-xs font-black",children:"Know before you go"}),h.jsx("h1",{className:"text-6xl font-black leading-[0.92] tracking-[-0.07em] md:text-8xl lg:text-9xl",children:"Rate My Area before you move in."}),h.jsx("p",{className:"mx-auto my-8 max-w-3xl text-lg leading-7 text-muted-foreground",children:"Search a U.S. ZIP code, city, or county for official population, housing, income, and commuting data—plus sourced community insights and reviews."}),h.jsx(TL,{variant:"hero"}),h.jsxs("div",{className:"mt-4 text-xs text-muted-foreground",children:["Try: ",QK.map((e,t)=>h.jsxs(rt,{to:`/area/${e}`,className:"font-bold underline",children:[t?", ":"",e]},e))]})]})]})}const JK=[["01","Housing","Rent, home values, income, and household data."],["02","Demographics","Population, age, families, and education."],["03","Transportation","Commute time and how residents get to work."],["04","Site reviews","Firsthand experiences submitted on Rate My Area."]];function eG(){return h.jsx("section",{className:"relative z-10 mx-auto -mt-9 grid w-[88vw] max-w-6xl grid-cols-4 gap-3 max-md:grid-cols-2 max-sm:grid-cols-1",children:JK.map(([e,t,n],r)=>h.jsxs("article",{className:`min-h-40 border-2 border-foreground p-5 shadow-[7px_7px_0_hsl(var(--foreground)/.05)] ${r===0?"bg-chart-2":r===1?"bg-chart-3":r===2?"bg-chart-1":"bg-card"}`,children:[h.jsx("div",{className:"mb-7 text-xs font-black",children:e}),h.jsx("h2",{className:"mb-2 text-xl font-black",children:t}),h.jsx("p",{className:"text-sm leading-6",children:n})]},t))})}function tG(){return h.jsxs("section",{className:"mx-auto max-w-4xl px-6 py-16 text-center",children:[h.jsx("h2",{className:"text-3xl font-black tracking-tight md:text-4xl",children:"Research and rate your area"}),h.jsx("p",{className:"mt-5 text-lg leading-8 text-muted-foreground",children:"Rate My Area helps you compare neighborhoods before choosing where to live. Search by U.S. ZIP code or city to explore resident reviews alongside official housing, population, household income, and commuting data."})]})}const nG=[["1","Search a place","Enter a five-digit ZIP code or a complete U.S. street address."],["2","See official data","Review the latest available ACS five-year estimates for the ZIP area."],["3","Read local reviews","Balance public statistics with experiences submitted on this site."]];function rG(){return h.jsxs("section",{id:"how-it-works",className:"mx-auto w-[84vw] max-w-6xl py-28",children:[h.jsxs("div",{className:"mb-12 max-w-3xl",children:[h.jsx("span",{className:"inline-block border-2 border-foreground bg-chart-3 px-3 py-2 text-xs font-black",children:"How it works"}),h.jsx("h2",{className:"mt-4 text-5xl font-black tracking-tight",children:"A clearer picture of any area."}),h.jsx("p",{className:"mt-4 text-lg leading-8 text-muted-foreground",children:"Government estimates and site reviews are presented with their year and source, without unsupported ZIP-level claims."})]}),h.jsx("div",{className:"grid grid-cols-3 gap-5 max-md:grid-cols-1",children:nG.map(([e,t,n])=>h.jsxs("article",{className:"min-h-64 border-2 border-foreground bg-card p-7",children:[h.jsx("div",{className:"mb-10 grid h-12 w-12 place-items-center border-2 border-foreground bg-chart-3 text-xl font-black",children:e}),h.jsx("h3",{className:"text-2xl font-black",children:t}),h.jsx("p",{className:"mt-2 leading-7 text-muted-foreground",children:n})]},e))})]})}function iG(){return h.jsxs(h.Fragment,{children:[h.jsx(Ht,{}),h.jsxs("main",{children:[h.jsx(ZK,{}),h.jsx(eG,{}),h.jsx(tG,{}),h.jsx(rG,{})]}),h.jsxs("footer",{className:"mx-[6.5vw] flex justify-between gap-4 border-t border-foreground py-8 text-xs",children:[h.jsx("span",{children:"© 2026 Rate My Area"}),h.jsxs("span",{className:"flex gap-4",children:[h.jsx(rt,{to:"/about",className:"underline",children:"About"}),h.jsx(rt,{to:"/contact",className:"underline",children:"Contact"})]})]})]})}var oG=Symbol.for("react.lazy"),Kp=Jh[" use ".trim().toString()];function aG(e){return typeof e=="object"&&e!==null&&"then"in e}function NL(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===oG&&"_payload"in e&&aG(e._payload)}function p_(e){const t=lG(e),n=P.forwardRef((r,i)=>{let{children:o,...a}=r;NL(o)&&typeof Kp=="function"&&(o=Kp(o._payload));const l=P.Children.toArray(o),c=l.find(cG);if(c){const d=c.props.children,f=l.map(p=>p===c?P.Children.count(d)>1?P.Children.only(null):P.isValidElement(d)?d.props.children:null:p);return h.jsx(t,{...a,ref:i,children:P.isValidElement(d)?P.cloneElement(d,void 0,f):null})}return h.jsx(t,{...a,ref:i,children:o})});return n.displayName=`${e}.Slot`,n}var sG=p_("Slot");function lG(e){const t=P.forwardRef((n,r)=>{let{children:i,...o}=n;if(NL(i)&&typeof Kp=="function"&&(i=Kp(i._payload)),P.isValidElement(i)){const a=fG(i),l=dG(o,i.props);return i.type!==P.Fragment&&(l.ref=r?gd(r,a):a),P.cloneElement(i,l)}return P.Children.count(i)>1?P.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var uG=Symbol("radix.slottable");function cG(e){return P.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===uG}function dG(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...l)=>{const c=o(...l);return i(...l),c}:i&&(n[r]=i):r==="style"?n[r]={...i,...o}
246:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}function fG(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const h_=qS("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),Rt=P.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...i},o)=>{const a=r?sG:"button";return h.jsx(a,{className:vt(h_({variant:t,size:n,className:e})),ref:o,...i})});Rt.displayName="Button";const gr=P.forwardRef(({className:e,type:t,...n},r)=>h.jsx("input",{type:t,className:vt("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,...n}));gr.displayName="Input";var pG=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],hG=pG.reduce((e,t)=>{const n=p_(`Primitive.${t}`),r=P.forwardRef((i,o)=>{const{asChild:a,...l}=i,c=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(c,{...l,ref:o})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),mG="Label",RL=P.forwardRef((e,t)=>h.jsx(hG.label,{...e,ref:t,onMouseDown:n=>{var i;n.target.closest("button, input, select, textarea")||((i=e.onMouseDown)==null||i.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));RL.displayName=mG;var IL=RL;const gG=qS("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),vn=P.forwardRef(({className:e,...t},n)=>h.jsx(IL,{ref:n,className:vt(gG(),e),...t}));vn.displayName=IL.displayName;function Jr({icon:e,title:t,subtitle:n=null,footer:r=null,children:i=null}){return h.jsx("div",{className:"min-h-screen flex items-center justify-center bg-background px-4",children:h.jsxs("div",{className:"w-full max-w-md",children:[h.jsxs("div",{className:"text-center mb-10",children:[h.jsx("div",{className:"inline-flex items-center justify-center w-14 h-14 rounded-2xl bg-primary mb-4",children:h.jsx(e,{className:"w-7 h-7 text-primary-foreground","aria-hidden":"true"})}),h.jsx("h1",{className:"text-3xl font-bold tracking-tight text-foreground",children:t}),n&&h.jsx("p",{className:"text-muted-foreground mt-2",children:n})]}),h.jsx("div",{className:"bg-card rounded-2xl shadow-sm border border-border p-8",children:i}),r&&h.jsx("p",{className:"text-center text-sm text-muted-foreground mt-6",children:r})]})})}const vG=["access_token","clear_access_token","app_id","app_base_url","functions_version","from_url"];function oj(e){let t=String(e||"");for(let n=0;n<3;n+=1){if(/[\\\u0000-\u001f\u007f]/.test(t)||t.startsWith("//"))return!0;let r;try{r=decodeURIComponent(t)}catch{return!0}if(r===t)return!1;t=r}return/[\\\u0000-\u001f\u007f]/.test(t)||t.startsWith("//")}function n1(e,t){if(!e)return"/";const n=String(e).trim();if(!n||oj(n))return"/";
246try{const r=new URL(n,t);if(r.origin!==t)return"/";for(const o of vG)r.searchParams.delete(o);const i=`${r.pathname}${r.search}${r.hash}`;return!i.startsWith("/")||oj(i)?"/":i}catch{return"/"}}function $L(e="from"){const t=new URLSearchParams(window.location.search).get(e);return n1(t,window.location.origin)}function yG(e){var t,n,r;return(e==null?void 0:e.access_token)||(e==null?void 0:e.accessToken)||(e==null?void 0:e.token)||((t=e==null?void 0:e.data)==null?void 0:t.access_token)||((n=e==null?void 0:e.data)==null?void 0:n.accessToken)||((r=e==null?void 0:e.data)==null?void 0:r.token)||null}function ML(e,t){const n=yG(t);return n&&typeof(e==null?void 0:e.setToken)=="function"&&e.setToken(n),n}function bG(){const[e,t]=P.useState(""),[n,r]=P.useState(""),[i,o]=P.useState(""),[a,l]=P.useState(!1),c=$L("from"),{checkUserAuth:d}=es(),f=async p=>{p.preventDefault(),o(""),l(!0);try{const g=await Qt.auth.loginViaEmailPassword(e,n);if(ML(Qt.auth,g),!await d())throw new Error("Login completed, but the session could not be verified. Please try again.");window.location.assign(c)}catch(g){o(g.message||"Invalid email or password")}finally{l(!1)}};return h.jsxs(Jr,{icon:$6,title:"Welcome back",subtitle:"Log in to your account",footer:h.jsxs(h.Fragment,{children:["Don't have an account?"," ",h.jsx(rt,{to:`/register?from=${encodeURIComponent(c)}`,className:"text-primary font-medium hover:underline",children:"Create one"})]}),children:[i&&h.jsx("div",{className:"mb-4 p-3 rounded-lg bg-destructive/10 text-destructive text-sm",children:i}),h.jsxs("form",{onSubmit:f,className:"space-y-4",children:[h.jsxs("div",{className:"space-y-2",children:[h.jsx(vn,{htmlFor:"email",children:"Email"}),h.jsxs("div",{className:"relative",children:[h.jsx(Ec,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground","aria-hidden":"true"}),h.jsx(gr,{id:"email",type:"email",autoComplete:"email",autoFocus:!0,placeholder:"[email protected]",value:e,onChange:p=>t(p.target.value),className:"pl-10 h-12",required:!0})]})]}),h.jsxs("div",{className:"space-y-2",children:[h.jsxs("div",{className:"flex items-center justify-between",children:[h.jsx(vn,{htmlFor:"password",children:"Password"}),h.jsx(rt,{to:"/forgot-password",className:"text-xs text-primary hover:underline",children:"Forgot password?"})]}),h.jsxs("div",{className:"relative",children:[h.jsx(Qs,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground","aria-hidden":"true"}),h.jsx(gr,{id:"password",type:"password",autoComplete:"current-password",placeholder:"••••••••",value:n,onChange:p=>r(p.target.value),className:"pl-10 h-12",required:!0})]})]}),h.jsx(Rt,{type:"submit",className:"w-full h-12 font-medium",disabled:a,children:a?h.jsxs(h.Fragment,{children:[h.jsx(Qi,{className:"w-4 h-4 mr-2 animate-spin"}),"Logging in..."]}):"Log in"})]})]})}var xG=Object.defineProperty,wG=Object.defineProperties,SG=Object.getOwnPropertyDescriptors,Gp=Object.getOwnPropertySymbols,DL=Object.prototype.hasOwnProperty,LL=Object.prototype.propertyIsEnumerable,aj=(e,t,n)=>t in e?xG(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,_G=(e,t)=>{for(var n in t||(t={}))DL.call(t,n)&&aj(e,n,t[n]);if(Gp)for(var n of Gp(t))LL.call(t,n)&&aj(e,n,t[n]);return e},AG=(e,t)=>wG(e,SG(t)),EG=(e,t)=>{var n={};for(var r in e)DL.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Gp)for(var r of Gp(e))t.indexOf(r)<0&&LL.call(e,r)&&(n[r]=e[r]);return n};function kG(e){let t=setTimeout(e,0),n=setTimeout(e,10),r=setTimeout(e,50);return[t,n,r]}function OG(e){let t=P.useRef();return P.useEffect(()=>{t.current=e}),t.current}var PG=18,FL=40,jG=`${FL}px`,CG=["[data-lastpass-icon-root]","com-1password-button","[data-dashlanecreated]",'[style$="2147483647 !important;"]'].join(",");function TG({containerRef:e,inputRef:t,pushPasswordManagerStrategy:n,isFocused:r}){let[i,o]=P.useState(!1),[a,l]=P.useState(!1),[c,d]=P.useState(!1),f=P.useMemo(()=>n==="none"?!1:(n==="increase-width"||n==="experimental-no-flickering")&&i&&a,[i,a,n]),p=P.useCallback(()=>{let g=e.current,v=t.current;if(!g||!v||c||n==="none")return;let S=g,x=S.getBoundingClientRect().left+S.offsetWidth,y=S.getBoundingClientRect().top+S.offsetHeight/2,w=x-PG,A=y;document.querySelectorAll(CG).length===0&&document.elementFromPoint(w,A)===g||(o(!0),d(!0))},[e,t,c,n]);return P.useEffect(()=>{let g=e.current;if(!g||n==="none")return;function v(){let x=window.innerWidth-g.getBoundingClientRect().right;l(x>=FL)}v();let S=setInterval(v,1e3);return()=>{clearInterval(S)}},[e,n]),P.useEffect(()=>{let g=r||document.activeElement===t.current;if(n==="none"||!g)return;let v=setTimeout(p,0),S=setTimeout(p,2e3),x=setTimeout(p,5e3),y=setTimeout(()=>{d(!0)},6e3);return()=>{clearTimeout(v),clearTimeout(S),clearTimeout(x),clearTimeout(y)}},[t,r,n,p]),{hasPWMBadge:i,willPushPWMBadge:f,PWM_BADGE_SPACE_WIDTH:jG}}var BL=P.createContext({}),zL=P.forwardRef((e,t)=>
vendor: 1,479 bytes, line 246
246{var n=e,{value:r,onChange:i,maxLength:o,textAlign:a="left",pattern:l,placeholder:c,inputMode:d="numeric",onComplete:f,pushPasswordManagerStrategy:p="increase-width",pasteTransformer:g,containerClassName:v,noScriptCSSFallback:S=NG,render:x,children:y}=n,w=EG(n,["value","onChange","maxLength","textAlign","pattern","placeholder","inputMode","onComplete","pushPasswordManagerStrategy","pasteTransformer","containerClassName","noScriptCSSFallback","render","children"]),A,_,j,k,O;let[T,N]=P.useState(typeof w.defaultValue=="string"?w.defaultValue:""),I=r??T,z=OG(I),F=P.useCallback(ge=>{i==null||i(ge),N(ge)},[i]),D=P.useMemo(()=>l?typeof l=="string"?new RegExp(l):l:null,[l]),L=P.useRef(null),B=P.useRef(null),U=P.useRef({value:I,onChange:F,isIOS:typeof window<"u"&&((_=(A=window==null?void 0:window.CSS)==null?void 0:A.supports)==null?void 0:_.call(A,"-webkit-touch-callout","none"))}),G=P.useRef({prev:[(j=L.current)==null?void 0:j.selectionStart,(k=L.current)==null?void 0:k.selectionEnd,(O=L.current)==null?void 0:O.selectionDirection]});P.useImperativeHandle(t,()=>L.current,[]),P.useEffect(()=>{let ge=L.current,Ae=B.current;if(!ge||!Ae)return;U.current.value!==ge.value&&U.current.onChange(ge.value),G.current.prev=[ge.selectionStart,ge.selectionEnd,ge.selectionDirection];function _e(){if(document.activeElement!==ge){V(null),re(null);return}let Ce=ge.selectionStart,ze=ge.selectionEnd,Ke=ge.selectionDirection,Ze=ge.maxLength,Tt=ge.value,Bt=G.current.prev,En=-1,le=-1,ye;
246if(Tt.length!==0&&Ce!==null&&ze!==null){let Jt=Ce===ze,Fr=Ce===Tt.length&&Tt.length<Ze;if(Jt&&!Fr){let Vt=Ce;if(Vt===0)En=0,le=1,ye="forward";else if(Vt===Ze)En=Vt-1,le=Vt,ye="backward";else if(Ze>1&&Tt.length>1){let br=0;if(Bt[0]!==null&&Bt[1]!==null){ye=Vt<Bt[1]?"backward":"forward";let ji=Bt[0]===Bt[1]&&Bt[0]<Ze;ye==="backward"&&!ji&&(br=-1)}En=br+Vt,le=br+Vt+1}}En!==-1&&le!==-1&&En!==le&&L.current.setSelectionRange(En,le,ye)}let Le=En!==-1?En:Ce,Ge=le!==-1?le:ze,it=ye??Ke;V(Le),re(Ge),G.current.prev=[Le,Ge,it]}if(document.addEventListener("selectionchange",_e,{capture:!0}),_e(),document.activeElement===ge&&R(!0),!document.getElementById("input-otp-style")){let Ce=document.createElement("style");if(Ce.id="input-otp-style",document.head.appendChild(Ce),Ce.sheet){let ze="background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;";Vu(Ce.sheet,"[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"),Vu(Ce.sheet,`[data-input-otp]:autofill { ${ze} }`),Vu(Ce.sheet,`[data-input-otp]:-webkit-autofill { ${ze} }`),Vu(Ce.sheet,"@supports (-webkit-touch-callout: none) { [data-input-otp] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }"),Vu(Ce.sheet,"[data-input-otp] + * { pointer-events: all !important; }")}}let Fe=()=>{Ae&&Ae.style.setProperty("--root-height",`${ge.clientHeight}px`)};Fe();let et=new ResizeObserver(Fe);return et.observe(ge),()=>{document.removeEventListener("selectionchange",_e,{capture:!0}),et.disconnect()}},[]);let[Z,Y]=P.useState(!1),[ee,R]=P.useState(!1),[q,V]=P.useState(null),[M,re]=P.useState(null);P.useEffect(()=>{kG(()=>{var ge,Ae,_e,Fe;(ge=L.current)==null||ge.dispatchEvent(new Event("input"));let et=(Ae=L.current)==null?void 0:Ae.selectionStart,Ce=(_e=L.current)==null?void 0:_e.selectionEnd,ze=(Fe=L.current)==null?void 0:Fe.selectionDirection;et!==null&&Ce!==null&&(V(et),re(Ce),G.current.prev=[et,Ce,ze])})},[I,ee]),P.useEffect(()=>{z!==void 0&&I!==z&&z.length<o&&I.length===o&&(f==null||f(I))},[o,f,z,I]);let ce=TG({containerRef:B,inputRef:L,pushPasswordManagerStrategy:p,isFocused:ee}),oe=P.useCallback(ge=>{let Ae=ge.currentTarget.value.slice(0,o);if(Ae.length>0&&D&&!D.test(Ae)){ge.preventDefault();return}typeof z=="string"&&Ae.length<z.length&&document.dispatchEvent(new Event("selectionchange")),F(Ae)},[o,F,z,D]),ae=P.useCallback(()=>{var ge;if(L.current){let Ae=Math.min(L.current.value.length,o-1),_e=L.current.value.length;(ge=L.current)==null||ge.setSelectionRange(Ae,_e),V(Ae),re(_e)}R(!0)},[o]),pe=P.useCallback(ge=>{var Ae,_e;let Fe=L.current;if(!g&&(!U.current.isIOS||!ge.clipboardData||!Fe))return;let et=ge.clipboardData.getData("text/plain"),Ce=g?g(et):et;ge.preventDefault();let ze=(Ae=L.current)==null?void 0:Ae.selectionStart,Ke=(_e=L.current)==null?void 0:_e.selectionEnd,Ze=(ze!==Ke?I.slice(0,ze)+Ce+I.slice(Ke):I.slice(0,ze)+Ce+I.slice(ze)).slice(0,o);if(Ze.length>0&&D&&!D.test(Ze))return;Fe.value=Ze,F(Ze);let Tt=Math.min(Ze.length,o-1),Bt=Ze.length;Fe.setSelectionRange(Tt,Bt),V(Tt),re(Bt)},[o,F,D,I]),te=P.useMemo(()=>({position:"relative",cursor:w.disabled?"default":"text",userSelect:"none",WebkitUserSelect:"none",pointerEvents:"none"}),[w.disabled]),xe=P.useMemo(()=>({position:"absolute",inset:0,width:ce.willPushPWMBadge?`calc(100% + ${ce.PWM_BADGE_SPACE_WIDTH})`:"100%",clipPath:ce.willPushPWMBadge?`inset(0 ${ce.PWM_BADGE_SPACE_WIDTH} 0 0)`:void 0,height:"100%",display:"flex",textAlign:a,opacity:"1",color:"transparent",pointerEvents:"all",background:"transparent",caretColor:"transparent",border:"0 solid transparent",outline:"0 solid transparent",boxShadow:"none",lineHeight:"1",letterSpacing:"-.5em",fontSize:"var(--root-height)",fontFamily:"monospace",fontVariantNumeric:"tabular-nums"}),[ce.PWM_BADGE_SPACE_WIDTH,ce.willPushPWMBadge,a]),je=P.useMemo(()=>P.createElement("input",AG(_G({autoComplete:w.autoComplete||"one-time-code"},w),{"data-input-otp":!0,"data-input-otp-placeholder-shown":I.length===0||void 0,"data-input-otp-mss":q,"data-input-otp-mse":M,inputMode:d,pattern:D==null?void 0:D.source,"aria-placeholder":c,style:xe,maxLength:o,value:I,ref:L,onPaste:ge=>{var Ae;pe(ge),(Ae=w.onPaste)==null||Ae.call(w,ge)},onChange:oe,onMouseOver:ge=>{var Ae;Y(!0),(Ae=w.onMouseOver)==null||Ae.call(w,ge)},onMouseLeave:ge=>{var Ae;Y(!1),(Ae=w.onMouseLeave)==null||Ae.call(w,ge)},onFocus:ge=>{var Ae;ae(),(Ae=w.onFocus)==null||Ae.call(w,ge)},onBlur:ge=>{var Ae;R(!1),(Ae=w.onBlur)==null||Ae.call(w,ge)}})),[oe,ae,pe,d,xe,o,M,q,w,D==null?void 0:D.source,I]),se=P.useMemo(()=>({slots:Array.from({length:o}).map((ge,Ae)=>{var _e;let Fe=ee&&q!==null&&M!==null&&(q===M&&Ae===q||Ae>=q&&Ae<M),et=I[Ae]!==void 0?I[Ae]:null,Ce=I[0]!==void 0?null:(_e=c==null?void 0:c[Ae])!=null?_e:null;return{char:et,placeholderChar:Ce,isActive:Fe,hasFakeCaret:Fe&&et===null}}
246),isFocused:ee,isHovering:!w.disabled&&Z}),[ee,Z,o,M,q,w.disabled,I]),Qe=P.useMemo(()=>x?x(se):P.createElement(BL.Provider,{value:se},y),[y,se,x]);return P.createElement(P.Fragment,null,S!==null&&P.createElement("noscript",null,P.createElement("style",null,S)),P.createElement("div",{ref:B,"data-input-otp-container":!0,style:te,className:v},Qe,P.createElement("div",{style:{position:"absolute",inset:0,pointerEvents:"none"}},je)))});zL.displayName="Input";function Vu(e,t){try{e.insertRule(t)}catch{console.error("input-otp could not insert CSS rule:",t)}}var NG=`
247[data-input-otp] {
248  --nojs-bg: white !important;
249  --nojs-fg: black !important;
250
251  background-color: var(--nojs-bg) !important;
252  color: var(--nojs-fg) !important;
253  caret-color: var(--nojs-fg) !important;
254  letter-spacing: .25em !important;
255  text-align: center !important;
256  border: 1px solid var(--nojs-fg) !important;
257  border-radius: 4px !important;
258  width: 100% !important;
259}
260@media (prefers-color-scheme: dark) {
261  [data-input-otp] {
262    --nojs-bg: black !important;
263    --nojs-fg: white !important;
264  }
265}`;const UL=P.forwardRef(({className:e,containerClassName:t,...n},r)=>h.jsx(zL,{ref:r,containerClassName:vt("flex items-center gap-2 has-[:disabled]:opacity-50",t),className:vt("disabled:cursor-not-allowed",e),...n}));UL.displayName="InputOTP";const qL=P.forwardRef(({className:e,...t},n)=>h.jsx("div",{ref:n,className:vt("flex items-center",e),...t}));qL.displayName="InputOTPGroup";const _a=P.forwardRef(({index:e,className:t,...n},r)=>{const i=P.useContext(BL),{char:o,hasFakeCaret:a,isActive:l}=i.slots[e];return h.jsxs("div",{ref:r,className:vt("relative flex h-9 w-9 items-center justify-center border-y border-r border-input text-sm shadow-sm transition-all first:rounded-l-md first:border-l last:rounded-r-md",l&&"z-10 ring-1 ring-ring",t),...n,children:[o,a&&h.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:h.jsx("div",{className:"h-4 w-px animate-caret-blink bg-foreground duration-1000"})})]})});_a.displayName="InputOTPSlot";const RG=P.forwardRef(({...e},t)=>h.jsx("div",{ref:t,role:"separator",...e,children:h.jsx(eD,{})}));RG.displayName="InputOTPSeparator";function IG(){const[e,t]=P.useState(""),[n,r]=P.useState(""),[i,o]=P.useState(""),[a,l]=P.useState(""),[c,d]=P.useState(!1),[f,p]=P.useState(!1),[g,v]=P.useState(""),S=$L("from"),{checkUserAuth:x}=es(),y=async _=>{if(_.preventDefault(),l(""),n!==i){l("Passwords do not match");return}d(!0);try{await Qt.auth.register({email:e,password:n}),p(!0)}catch(j){l(j.message||"Registration failed")}finally{d(!1)}},w=async()=>{l(""),d(!0);try{const _=await Qt.auth.verifyOtp({email:e,otpCode:g});if(ML(Qt.auth,_),!await x())throw new Error("Email was verified, but the signed-in session could not be established. Please log in.");window.location.assign(S)}catch(_){l(_.message||"Invalid verification code")}finally{d(!1)}},A=async()=>{l("");try{await Qt.auth.resendOtp(e),OM({title:"Code sent",description:"Check your email for the new code."})}catch(_){l(_.message||"Failed to resend code")}};return f?h.jsxs(Jr,{icon:Ec,title:"Verify your email",subtitle:`We sent a code to ${e}`,children:[a&&h.jsx("div",{className:"mb-4 p-3 rounded-lg bg-destructive/10 text-destructive text-sm",children:a}),h.jsx("div",{className:"flex justify-center mb-6",children:h.jsx(UL,{maxLength:6,value:g,onChange:v,autoFocus:!0,autoComplete:"one-time-code",children:h.jsxs(qL,{children:[h.jsx(_a,{index:0}),h.jsx(_a,{index:1}),h.jsx(_a,{index:2}),h.jsx(_a,{index:3}),h.jsx(_a,{index:4}),h.jsx(_a,{index:5})]})})}),h.jsx(Rt,{className:"w-full h-12 font-medium",onClick:w,disabled:c||g.length<6,children:c?h.jsxs(h.Fragment,{children:[h.jsx(Qi,{className:"w-4 h-4 mr-2 animate-spin"}),"Verifying..."]}):"Verify"}),h.jsxs("p",{className:"text-center text-sm text-muted-foreground mt-4",children:["Didn't receive the code?"," ",h.jsx("button",{type:"button",onClick:A,className:"text-primary font-medium hover:underline",children:"Resend"})]})]}):h.jsxs(Jr,{icon:aq,title:"Create your account",subtitle:"Sign up to get started",footer
265:h.jsxs(h.Fragment,{children:["Already have an account?"," ",h.jsx(rt,{to:`/login?from=${encodeURIComponent(S)}`,className:"text-primary font-medium hover:underline",children:"Log in"})]}),children:[a&&h.jsx("div",{className:"mb-4 p-3 rounded-lg bg-destructive/10 text-destructive text-sm",children:a}),h.jsxs("form",{onSubmit:y,className:"space-y-4",children:[h.jsxs("div",{className:"space-y-2",children:[h.jsx(vn,{htmlFor:"email",children:"Email"}),h.jsxs("div",{className:"relative",children:[h.jsx(Ec,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground","aria-hidden":"true"}),h.jsx(gr,{id:"email",type:"email",autoComplete:"email",autoFocus:!0,placeholder:"[email protected]",value:e,onChange:_=>t(_.target.value),className:"pl-10 h-12",required:!0})]})]}),h.jsxs("div",{className:"space-y-2",children:[h.jsx(vn,{htmlFor:"password",children:"Password"}),h.jsxs("div",{className:"relative",children:[h.jsx(Qs,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground","aria-hidden":"true"}),h.jsx(gr,{id:"password",type:"password",autoComplete:"new-password",placeholder:"••••••••",value:n,onChange:_=>r(_.target.value),className:"pl-10 h-12",required:!0})]})]}),h.jsxs("div",{className:"space-y-2",children:[h.jsx(vn,{htmlFor:"confirm",children:"Confirm Password"}),h.jsxs("div",{className:"relative",children:[h.jsx(Qs,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground","aria-hidden":"true"}),h.jsx(gr,{id:"confirm",type:"password",autoComplete:"new-password",placeholder:"••••••••",value:i,onChange:_=>o(_.target.value),className:"pl-10 h-12",required:!0})]})]}),h.jsx(Rt,{type:"submit",className:"w-full h-12 font-medium",disabled:c,children:c?h.jsxs(h.Fragment,{children:[h.jsx(Qi,{className:"w-4 h-4 mr-2 animate-spin"}),"Creating account..."]}):"Create account"})]})]})}function $G(){const[e,t]=P.useState(""),[n,r]=P.useState(!1),[i,o]=P.useState(!1),a=async l=>{l.preventDefault(),r(!0);try{await Qt.auth.resetPasswordRequest(e)}catch{}finally{r(!1),o(!0)}};return h.jsx(Jr,{icon:Ec,title:"Reset password",subtitle:"We'll send you a link to reset it",footer:h.jsxs(rt,{to:"/login",className:"text-primary font-medium hover:underline",children:[h.jsx(_6,{className:"w-3 h-3 inline mr-1"}),"Back to log in"]}),children:i?h.jsx("p",{className:"text-sm text-foreground text-center",children:"If an account exists with that email, you'll receive a password reset link shortly."}):h.jsxs("form",{onSubmit:a,className:"space-y-4",children:[h.jsxs("div",{className:"space-y-2",children:[h.jsx(vn,{htmlFor:"email",children:"Email address"}),h.jsxs("div",{className:"relative",children:[h.jsx(Ec,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground","aria-hidden":"true"}),h.jsx(gr,{id:"email",type:"email",autoComplete:"email",autoFocus:!0,placeholder:"[email protected]",value:e,onChange:l=>t(l.target.value),className:"pl-10 h-12",required:!0})]})]}),h.jsx(Rt,{type:"submit",className:"w-full h-12 font-medium",disabled:n,children:n?h.jsxs(h.Fragment,{children:[h.jsx(Qi,{className:"w-4 h-4 mr-2 animate-spin"}),"Sending..."]}):"Send reset link"})]})})}function MG(){const[e]=FD(),t=e.get("token"),[n,r]=P.useState(""),[i,o]=P.useState(""),[a,l]=P.useState(""),[c,d]=P.useState(!1),f=async p=>{if(p.preventDefault(),l(""),n!==i){l("Passwords do not match");return}d(!0);try{await Qt.auth.resetPassword({resetToken:t,newPassword:n}),window.location.href="/login"}catch(g){l(g.message||"Failed to reset password")}finally{d(!1)}};return t?h.jsxs(Jr,{icon:Qs,title:"New password",subtitle:"Enter your new password below",children:[a&&h.jsx("div",{className:"mb-4 p-3 rounded-lg bg-destructive/10 text-destructive text-sm",children:a}),h.jsxs("form",{onSubmit:f,className:"space-y-4",children:[h.jsxs("div",{className:"space-y-2",children:[h.jsx(vn,{htmlFor:"password",children:"New Password"}),h.jsxs("div",{className:"relative",children:[h.jsx(Qs,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground","aria-hidden":"true"}),h.jsx(gr,{id:"password",type:"password",autoComplete:"new-password",autoFocus:!0,placeholder:"••••••••",value:n,onChange:p=>r(p.target.value),className:"pl-10 h-12",required:!0})]})]}),h.jsxs("div",{className:"space-y-2",children:[h.jsx(vn,{htmlFor:"confirm",children:"Confirm Password"}),h.jsxs("div",{className:"relative",children:[h.jsx(Qs,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground","aria-hidden":"true"}),h.jsx(gr,{id:"confirm",type:"password",autoComplete:"new-password",placeholder:"••••••••",value:i,onChange:p=>o(p.target.value),className:"pl-10 h-12",required:!0})]})]}),h.jsx(Rt,{type:"submit",className:"w-full h-12 font-medium",disabled:c,
265children:c?h.jsxs(h.Fragment,{children:[h.jsx(Qi,{className:"w-4 h-4 mr-2 animate-spin"}),"Resetting..."]}):"Reset password"})]})]}):h.jsx(Jr,{icon:iq,title:"Invalid reset link",subtitle:"This password reset link is missing or invalid",footer:h.jsx(rt,{to:"/forgot-password",className:"text-primary font-medium hover:underline",children:"Request a new link"}),children:h.jsx("p",{className:"text-sm text-foreground text-center",children:"The link you used appears to be incomplete. Please request a new password reset email."})})}function DG(){return h.jsxs(h.Fragment,{children:[h.jsx(Ht,{}),h.jsxs("main",{className:"mx-auto max-w-3xl px-6 py-16",children:[h.jsx("p",{className:"mb-3 text-sm font-black uppercase tracking-widest text-muted-foreground",children:"About Rate My Area"}),h.jsx("h1",{className:"mb-8 text-5xl font-black",children:"Know a neighborhood before you move."}),h.jsxs("div",{className:"space-y-5 text-lg leading-8 text-muted-foreground",children:[h.jsx("p",{children:"Rate My Area helps people understand what everyday life may be like in a U.S. neighborhood before they rent, buy, relocate, or visit. Enter an address, ZIP code, city, or neighborhood to see a clear local profile built from public demographic, housing, income, education, and transportation data. The app brings those facts together with firsthand community reviews, giving visitors both reliable statistics and the lived experiences that numbers alone cannot explain."}),h.jsx("p",{children:"The service is designed for renters comparing apartments, home buyers researching a long-term move, families evaluating a new community, students and professionals relocating for school or work, and anyone curious about another part of the country. Every area page makes complicated public information easier to scan, compare, and understand. Community members can also contribute their own ratings and written reviews so future movers can benefit from current and former residents."}),h.jsx("p",{children:"Rate My Area is built and maintained by an independent product team focused on making neighborhood research more useful, transparent, and accessible. Public statistics are sourced from trusted government datasets, including U.S. Census information, while community perspectives are clearly identified by their source. The team continues to improve coverage, presentation, and review quality so people can approach an important moving decision with more context and confidence."})]})]})]})}function LG(){return h.jsxs(h.Fragment,{children:[h.jsx(Ht,{}),h.jsxs("main",{className:"mx-auto max-w-3xl px-6 py-16",children:[h.jsx("p",{className:"mb-3 text-sm font-black uppercase tracking-widest text-muted-foreground",children:"Contact"}),h.jsx("h1",{className:"mb-6 text-5xl font-black",children:"Get in touch."}),h.jsx("p",{className:"max-w-2xl text-lg leading-8 text-muted-foreground",children:"Have a question, correction, or suggestion for Rate My Area? Send us a message and include the ZIP code or area name when your note relates to a specific location."}),h.jsx("a",{href:"mailto:[email protected]",className:"mt-8 inline-block rounded-md bg-primary px-6 py-3 font-bold text-primary-foreground",children:"[email protected]"})]})]})}const Pa=["safety","schools","activities","foodNightlife","transportation","affordability"],Ai={safety:"Safety",schools:"Schools",activities:"Activities",foodNightlife:"Food & Nightlife",transportation:"Transportation",affordability:"Affordability",walkability:"Walkability",community:"Community"},Yp=e=>e>=3.8?"good":e>=2.8?"mid":"bad",$r=e=>{if(e==null||e==="")return"—";const t=Number(e);return Number.isFinite(t)?t>=1e6?`$${(t/1e6).toFixed(1)}M`:`$${t.toLocaleString()}`:"—"},FG={Alabama:"AL",Alaska:"AK",Arizona:"AZ",Arkansas:"AR",California:"CA",Colorado:"CO",Connecticut:"CT",Delaware:"DE",Florida:"FL",Georgia:"GA",Hawaii:"HI",Idaho:"ID",Illinois:"IL",Indiana:"IN",Iowa:"IA",Kansas:"KS",Kentucky:"KY",Louisiana:"LA",Maine:"ME",Maryland:"MD",Massachusetts:"MA",Michigan:"MI",Minnesota:"MN",Mississippi:"MS",Missouri:"MO",Montana:"MT",Nebraska:"NE",Nevada:"NV","New Hampshire":"NH","New Jersey":"NJ","New Mexico":"NM","New York":"NY","North Carolina":"NC","North Dakota":"ND",Ohio:"OH",Oklahoma:"OK",Oregon:"OR",Pennsylvania:"PA","Rhode Island":"RI","South Carolina":"SC","South Dakota":"SD",Tennessee:"TN",Texas:"TX",Utah:"UT",Vermont:"VT",Virginia:"VA",Washington:"WA","West Virginia":"WV",Wisconsin:"WI",Wyoming:"WY","District of Columbia":"DC"},HL=e=>{const t=String(e||"").trim();return/^[A-Za-z]{2}$/.test(t)?t.toUpperCase():FG[t]||t};function cm(e){const t=Number(e);if(!Number.isFinite(t))return"";const n=Number(t.toFixed(1));return n>=9?"Excellent":n>=7.5?"Above Average":n>=5.5?"Average":n>=4?"Below Average":n>
265=2.5?"Poor":"Very Poor"}function BG({area:e,categoryScores:t,isSaved:n,onSave:r,onRate:i,onCompare:o,simpleMode:a,isCountyLevel:l}){const c=e.overallScore!=null&&Number(e.overallScore)>0,d=Math.max(0,Number(e.reviewCount)||0),f=e.objectiveScore!=null&&Number(e.objectiveScore)>0,p=f?Math.max(0,Math.min(.15,Number(e.reviewInfluenceWeight)||0)):0,v=(e.scoreGate||"ready")==="loading",S=(Array.isArray(e.cityAliases)?e.cityAliases:[]).filter(x=>x&&String(x).toLowerCase()!==String(e.city||"").toLowerCase());return h.jsxs(h.Fragment,{children:[h.jsxs("section",{className:"area-row",children:[h.jsxs("div",{children:[h.jsxs("h1",{children:[e.zipCode," — ",e.name]}),h.jsxs("div",{className:"sub",children:[e.county?`${e.county}, `:"",e.state]}),S.length>0&&h.jsxs("div",{className:"sub",children:["Also associated with: ",S.join(", ")]})]}),h.jsxs("div",{className:"area-actions",children:[h.jsx("button",{type:"button",className:"btn","aria-pressed":!!n,onClick:r,children:n?"Saved":"Save"}),h.jsx("button",{type:"button",className:"btn primary",onClick:i,children:"Rate this area"}),h.jsx("button",{type:"button",className:"btn dark",onClick:o,children:"Compare"})]})]}),!a&&h.jsxs("section",{className:"hero",children:[h.jsxs("div",{className:"overall bg-[#ffffc7]",children:[h.jsx("div",{className:"kicker",children:"OVERALL AREA SCORE"}),h.jsx("div",{className:"score-big",children:v?h.jsx("span",{className:"inline-block h-12 w-12 animate-spin rounded-full border-4 border-slate-200 border-t-slate-800",role:"status","aria-label":"Calculating area score"}):c?h.jsxs(h.Fragment,{children:[(Number(e.overallScore)*2).toFixed(1),h.jsx("span",{style:{fontSize:"0.36em",fontWeight:800,letterSpacing:0},children:" /10"})]}):"—"}),h.jsx("div",{className:"grade",children:v?"Calculating area score":c?cm(Number(e.overallScore)*2):"Insufficient data"}),h.jsx("div",{className:"review-count",children:v?"Objective area data is being populated.":c?`Based on data and ${d} review${d===1?"":"s"}`:"An objective Area Score is not yet available."}),l&&h.jsx("div",{className:"review-count",style:{color:"#92400e",marginTop:4},children:"Some Census data uses county-level estimates."})]}),h.jsx("div",{className:"metrics",children:Pa.map(x=>{const y=t[x],A=!y||y.valueClass==="unavailable"?null:Number((y==null?void 0:y.score)||0),_=A!=null?Yp(A):"";return h.jsxs("div",{className:"metric",children:[h.jsxs("div",{className:"metric-top",children:[h.jsx("span",{className:"metric-name",children:Ai[x]}),h.jsx("span",{className:`metric-score${_?` ${_}`:""}`,children:A==null?"N/A":(A*2).toFixed(1)})]}),h.jsx("div",{className:"track",children:h.jsx("div",{className:`fill${_?` ${_}`:""}`,style:{width:A!=null?`${A*20}%`:"0%"}})})]},x)})}),h.jsxs("aside",{className:"method",children:[h.jsx("h3",{children:"Score breakdown"}),(()=>{const x=f?Math.round(p*1e3)/10:0,y=f?Math.round((1-p)*1e3)/10:0;return h.jsxs(h.Fragment,{children:[h.jsxs("div",{className:"method-row",children:[h.jsxs("div",{className:"method-label",children:[h.jsx("span",{children:"Area data"}),h.jsxs("span",{children:[y,"%"]})]}),h.jsx("div",{className:"track",children:h.jsx("div",{className:"fill good",style:{width:`${y}%`}})})]}),h.jsxs("div",{className:"method-row",children:[h.jsxs("div",{className:"method-label",children:[h.jsx("span",{children:"Resident reviews"}),h.jsxs("span",{children:[x,"%"]})]}),h.jsx("div",{className:"track",children:h.jsx("div",{className:"fill mid",style:{width:`${x}%`}})})]}),h.jsx("small",{children:f?d<75?`${d} scored review${d===1?"":"s"}. Review influence rises smoothly with sample size and caps at 15% at 75+ reviews.`:"Resident reviews have reached the 15% maximum influence.":"Reviews cannot create an Area Score without usable objective area data."})]})})()]})]})]})}const zG=[{label:"Population",note:"2023 estimate",get:e=>e.population!=null?Number(e.population).toLocaleString():"—"},{label:"Median Rent",note:"Studio",get:e=>$r(e.medianRent)}
265,{label:"Home Value",note:"Median",get:e=>$r(e.medianHomeValue)},{label:"Commute",note:"Average",get:e=>e.averageCommuteMinutes!=null?`${Math.round(e.averageCommuteMinutes)} min`:"—"},{label:"Median Income",note:"Household",get:e=>$r(e.medianHouseholdIncome)}];function UG({area:e,summary:t,active:n,isCountyLevel:r}){const i=e.updatedAt?new Date(e.updatedAt).toLocaleDateString("en-US",{month:"long",year:"numeric"}):null,o=((t==null?void 0:t.strengths)||[]).slice(0,3),a=((t==null?void 0:t.tradeoffs)||[]).slice(0,3);return h.jsxs("section",{className:`section${n?" active":""}`,id:"overview",children:[h.jsxs("div",{className:"section-head",children:[h.jsxs("div",{children:[h.jsx("h2",{children:"Area Overview"}),r&&h.jsx("span",{className:"geo-badge",children:"County-level data"})]}),i&&h.jsxs("div",{className:"source",children:["Updated ",i]})]}),h.jsx("div",{className:"facts",children:zG.map((l,c)=>h.jsxs("div",{className:"fact",children:[h.jsx("div",{className:"fact-label",children:l.label}),h.jsx("div",{className:"fact-value",children:l.get(e)}),h.jsx("div",{className:"fact-note",children:r?`County est. · ${l.note}`:l.note})]},c))}),h.jsxs("div",{className:"summary-grid",children:[h.jsxs("article",{className:"card",children:[h.jsx("h3",{children:"Should you move here?"}),h.jsx("p",{children:(t==null?void 0:t.summary)||"A summary is not yet available for this area."})]}),h.jsxs("div",{className:"two-col",children:[h.jsxs("article",{className:"card",children:[h.jsx("h3",{children:"Top strengths"}),h.jsxs("div",{className:"clean-list",children:[o.map((l,c)=>h.jsxs("div",{children:["✓ ",l]},c)),!o.length&&h.jsx("div",{children:"—"})]})]}),h.jsxs("article",{className:"card",children:[h.jsx("h3",{children:"Top tradeoffs"}),h.jsxs("div",{className:"clean-list",children:[a.map((l,c)=>h.jsxs("div",{children:["× ",l]},c)),!a.length&&h.jsx("div",{children:"—"})]})]})]})]})]})}function vl(e){try{const t=new URL(String(e||"").trim());return!["http:","https:"].includes(t.protocol)||!t.hostname||t.username||t.password?null:t.href}catch{return null}}function qG({rows:e,max:t,suffix:n=""}){if(e.length<2)return null;const r=t||Math.ceil(Math.max(...e.map(i=>i.value),1)*10)/10;return h.jsxs("div",{className:"insight-chart",children:[h.jsxs("div",{className:"insight-chart-scale",children:[h.jsx("span",{children:"0"}),h.jsxs("span",{children:[r,n]})]}),e.map((i,o)=>h.jsxs("div",{className:"insight-chart-row",children:[h.jsx("span",{className:"insight-chart-label",title:i.label,children:i.label}),h.jsx("div",{className:"insight-chart-track",role:"img","aria-label":`${i.label}: ${i.display}`,children:h.jsx("span",{style:{width:`${Math.max(0,Math.min(100,i.value/r*100))}%`}})}),h.jsx("strong",{children:i.display})]},i.key||o))]})}function sj({parts:e,variant:t="donut",label:n}){if(t==="donut"){const r=e[0];return h.jsxs("div",{className:"composition composition-donut",children:[h.jsx("div",{className:"composition-ring",style:{"--portion":`${r.value}%`},role:"img","aria-label":`${n}: ${e.map(i=>`${i.label} ${i.display}`).join(", ")}`,children:h.jsxs("span",{children:["Occupied",h.jsx("br",{}),"homes"]})}),h.jsx("div",{className:"composition-key",children:e.map((i,o)=>h.jsxs("div",{children:[h.jsx("span",{className:`composition-dot portion-${o}`}),h.jsx("span",{children:i.label}),h.jsx("strong",{children:i.display})]},i.label))})]})}return h.jsxs("div",{className:"composition composition-stack",children:[h.jsx("div",{className:"composition-track",role:"img","aria-label":`${n}: ${e.map(r=>`${r.label} ${r.display}`).join(", ")}`,children:e.map((r,i)=>h.jsx("span",{className:`portion-${i}`,style:{width:`${r.value}%`}},r.label))}),h.jsx("div",{className:"composition-key",children:e.map((r,i)=>h.jsxs("div",{children:[h.jsx("span",{className:`composition-dot portion-${i}`}),h.jsx("span",{children:r.label}),h.jsx("strong",{children:r.display})]},r.label))})]})}function HG({id:e,rows:t,county:n,note:r}){if(!t.length)return h.jsx("div",{className:"insight-surface insight-empty",children:r||"Data is not currently available for this area."});const o=(e==="crime"?t.filter(y=>/crime rate/i.test(y.name||"")&&/^\d+(?:\.\d+)?\s*\/1k$/i.test(String(y.result).trim())):e==="housing"?t.filter(y=>
265["ownerOccupied","renterOccupied"].includes(y.metricKey)&&y.rawValue!=null):t.filter(y=>y.rawValue!=null&&/^\d+(?:\.\d+)?%$/.test(String(y.result).trim()))).map(y=>({key:y.metricKey,label:y.name,display:y.result,value:e==="crime"?parseFloat(y.result):Number(y.rawValue)})).filter(y=>Number.isFinite(y.value)&&y.value>=0),a=o.length>=2?new Set(o.map(y=>y.key||y.label)):new Set,l=t.filter(y=>!a.has(y.metricKey||y.name)),c=o.find(y=>y.key==="ownerOccupied"),d=o.find(y=>y.key==="renterOccupied"),f=e==="housing"&&c&&d&&Math.abs(c.value+d.value-100)<=1,g=["publicTransportation","walkedToWork","workedFromHome"].map(y=>o.find(w=>w.key===y)),v=g.reduce((y,w)=>y+((w==null?void 0:w.value)||0),0),S=e==="transportation"&&g.every(Boolean)&&v<=100,x=S?[...g,{label:"Other travel modes",value:Math.max(0,100-v),display:`${Math.max(0,100-v).toFixed(1)}%`}]:[];return h.jsxs("div",{className:"insight-surface",children:[e==="crime"&&l.some(y=>/grade/i.test(y.name||""))&&h.jsxs("div",{className:"insight-group",children:[h.jsx("h3",{children:"Crime grades"}),h.jsx("div",{className:"insight-grades",children:l.filter(y=>/grade/i.test(y.name||"")).map((y,w)=>h.jsxs("div",{children:[h.jsx("span",{children:y.name}),h.jsx("strong",{className:`crime-grade grade-${/^[ab]/i.test(String(y.result))?"high":/^c/i.test(String(y.result))?"mid":/^[df]/i.test(String(y.result))?"low":"none"}`,children:y.result||"—"})]},y.metricKey||w))})]}),o.length>=2&&h.jsxs("div",{className:"insight-group",children:[h.jsx("h3",{children:e==="crime"?"Crime rates compared":e==="housing"?"Owner vs. renter occupancy":"How people get to work"}),h.jsx("p",{children:e==="crime"?"Reported incidents per 1,000 residents":e==="housing"?"Share of occupied homes":"Share of workers age 16 and over"}),f?h.jsx(sj,{label:"Occupied housing",parts:[c,d]}):S?h.jsx(sj,{label:"Commute modes",variant:"stack",parts:x}):h.jsx(qG,{rows:o,max:e==="crime"?void 0:100,suffix:e==="crime"?" /1k":"%"})]}),l.filter(y=>e!=="crime"||!/grade/i.test(y.name||"")).length>0&&h.jsxs("div",{className:"insight-group",children:[h.jsx("h3",{children:e==="crime"?"Other crime details":e==="housing"?"Housing costs & affordability":"Commute & travel"}),h.jsx("div",{className:"insight-facts",children:l.filter(y=>e!=="crime"||!/grade/i.test(y.name||"")).map((y,w)=>h.jsxs("div",{children:[h.jsxs("span",{children:[y.name,y.detail&&h.jsx("small",{children:y.detail})]}),h.jsx("strong",{children:y.result??"—"})]},y.metricKey||w))})]}),n&&h.jsx("p",{className:"insight-county",children:"County-level estimates shown above."})]})}const WG=e=>e==null?"none":e>=7?"good":e>=4?"mid":"low",VG=e=>{const t=String(e||"").toLowerCase(),n=(t.match(/\d+/g)||[]).map(Number),r=/pk|pre/.test(t),i=n.length?Math.min(...n):null,o=r?0:i;return o==null?"other":o>=9?"high":o>=6?"middle":"elementary"},WL=e=>{const t=String(e.level||"").toLowerCase();return t.includes("e")?"elementary":t.includes("h")?"high":t.includes("m")?"middle":VG(e.gradeRange||e.gradesServed)},KG={elementary:"Elementary",middle:"Middle",high:"High School",other:"School"},lj=(e,t)=>{const n=e.rating==null?-1:e.rating,r=t.rating==null?-1:t.rating;if(r!==n)return r-n;const i=e.distanceMiles==null?1/0:e.distanceMiles,o=t.distanceMiles==null?1/0:t.distanceMiles;return i!==o?i-o:(e.sortOrder||0)-(t.sortOrder||0)};function GG({s:e,i:t,sourceLabel:n}){return h.jsxs("article",{className:"school-card",children:[h.jsx("span",{className:"school-level-pill",children:KG[WL(e)]}),h.jsx("h3",{className:"school-card-title",children:e.name}),h.jsxs("div",{className:"school-meta",children:[e.gradeRange?h.jsxs(h.Fragment,{children:["Grades ",e.gradeRange]}):null,e.distanceMiles!=null?h.jsxs(h.Fragment,{children:[" • ",Number(e.distanceMiles).toFixed(1)," miles"]}):null]}),!e.isUnavailable&&h.jsxs("div",{className:"school-rating-row",children:[h.jsx("div",{className:`gs-badge ${WG(e.rating)}`,children:e.rating!=null?`${e.rating}/10`:"—"}),h.jsx("span",{className:"gs-badge-label",children:"Rating"})]}),e.subRatings&&e.subRatings.length>0&&h.jsx("div",{className:"gs-sublist",children:e.subRatings.map((r,i)=>h.jsxs("div",{className:"gs-subrow",children:[h.jsx("span",{className:"gs-sub-label",children:r.label}),h.jsx("span",{className:"gs-sub-score",children:r.score!=null?`${r.score}/10`:"—"})]},i))})]},t)}function YG({data:e}
265){const[t,n]=P.useState(!1),r=(e==null?void 0:e.schools)||[];if(!r.length)return h.jsx("div",{className:"data-card",children:h.jsx("div",{className:"data-row",children:h.jsx("div",{className:"data-detail",children:(e==null?void 0:e.availabilityNote)||"Data is not currently available for this area."})})});const i={elementary:[],middle:[],high:[],other:[]};r.forEach(f=>i[WL(f)].push(f));const o=[];["elementary","middle","high"].forEach(f=>{const p=i[f].slice().sort(lj)[0];p&&o.push(p)});const a=new Set(o),l=r.filter(f=>!a.has(f)).slice().sort(lj);for(;o.length<3&&l.length;){const f=l.shift();o.push(f),a.add(f)}const c=r.filter(f=>!a.has(f)),d=t?[...o,...c]:o;return h.jsxs(h.Fragment,{children:[h.jsx("div",{className:"school-cards",children:d.map((f,p)=>h.jsx(GG,{s:f,i:p,sourceLabel:e==null?void 0:e.sourceLabel},p))}),c.length>0&&h.jsx("button",{type:"button",className:"school-more-btn",onClick:()=>n(f=>!f),children:t?h.jsxs(h.Fragment,{children:["Show fewer schools ",h.jsx(eD,{size:14})]}):h.jsxs(h.Fragment,{children:["Show ",c.length," more school",c.length>1?"s":""," ",h.jsx(K6,{size:14})]})})]})}function uc({id:e,active:t,title:n,subtitle:r="",data:i}){const o=Array.isArray(i==null?void 0:i.rows)?i.rows:[],a=(i==null?void 0:i.sourceLabel)||"",l=(i==null?void 0:i.sourceUrl)||null,c=(i==null?void 0:i.geoScope)||null,d=/county-level/i.test(c||""),f=!c||/ZCTA/i.test(c)&&!d,p=i!=null&&i.sourceYear?`Data as of ${i.sourceYear}`:i!=null&&i.retrievalDate?`Updated ${new Date(i.retrievalDate).toLocaleDateString("en-US",{month:"short",year:"numeric"})}`:"",g=f?"":e==="crime"?`Crime statistics are reported for ${c} because local police do not publish ZIP-code-level crime rates.`:e==="schools"?`School data are reported for ${c}. ZIP-code-level school statistics are not published.`:`Statistics are reported for ${c}.`;return h.jsxs("section",{className:`section${t?" active":""}`,id:e,children:[h.jsxs("div",{className:"section-head",children:[h.jsxs("div",{children:[h.jsx("h2",{children:n}),d&&h.jsx("span",{className:"geo-badge",children:"County-level data"})]}),h.jsxs("div",{className:"source",children:[p&&h.jsx("span",{style:{display:"block",marginBottom:4},children:p}),e!=="schools"&&(vl(l)?h.jsx("a",{href:vl(l),target:"_blank",rel:"noreferrer",children:a}):a)]})]}),g&&h.jsx("div",{className:"geo-scope-note",style:{background:"#fff7ed",border:"1px solid #fed7aa",color:"#9a3412",borderRadius:8,padding:"10px 14px",fontSize:13,marginBottom:12,lineHeight:1.5},children:g}),e==="schools"?h.jsx(YG,{data:i}):h.jsx(HG,{id:e,rows:o,county:d,note:i==null?void 0:i.availabilityNote})]})}var ay,uj;function ir(){if(uj)return ay;uj=1;var e=Array.isArray;return ay=e,ay}var sy,cj;function VL(){if(cj)return sy;cj=1;var e=typeof Wf=="object"&&Wf&&Wf.Object===Object&&Wf;return sy=e,sy}var ly,dj;function Oi(){if(dj)return ly;dj=1;var e=VL(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return ly=n,ly}var uy,fj;function Ad(){if(fj)return uy;fj=1;var e=Oi(),t=e.Symbol;return uy=t,uy}var cy,pj;function XG(){if(pj)return cy;pj=1;var e=Ad(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,i=e?e.toStringTag:void 0;function o(a){var l=n.call(a,i),c=a[i];try{a[i]=void 0;var d=!0}catch{}var f=r.call(a);return d&&(l?a[i]=c:delete a[i]),f}return cy=o,cy}var dy,hj;function QG(){if(hj)return dy;hj=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return dy=n,dy}var fy,mj;function io(){if(mj)return fy;mj=1;var e=Ad(),t=XG(),n=QG(),r="[object Null]",i="[object Undefined]",o=e?e.toStringTag:void 0;function a(l){return l==null?l===void 0?i:r:o&&o in Object(l)?t(l):n(l)}return fy=a,fy}var py,gj;function oo(){if(gj)return py;gj=1;function e(t){return t!=null&&typeof t=="object"}return py=e,py}var hy,vj;function Kl(){if(vj)return hy;vj=1;var e=io(),t=oo(),n="[object Symbol]";function r(i){return typeof i=="symbol"||t(i)&&e(i)==n}return hy=r,hy}var my,yj;function m_(){if(yj)return my;yj=1;var e=ir(),t=Kl(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function i(o,a){if(e(o))return!1;var l=typeof o;return l=="number"||l=="symbol"||l=="boolean"||o==null||t(o)?!0:r.test(o)||!n.test(o)||a!=null&&o in Object(a)}return my=i,my}var gy,bj;function Zo(){if(bj)return gy;bj=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return gy=e,gy}var vy,xj;function g_(){if(xj)return vy;xj=1;var e=io(),t=Zo(),n="[object AsyncFunction]",r="[object Function]",i="[object GeneratorFunction]",o="[object Proxy]";function a(l){if(!t(l))return!1;var c=e(l);return c==r||c==i||c==n||c==o}return vy=a,vy}var yy,wj;function ZG(){if(wj)return yy;wj=1;
vendor: 4,755 bytes, line 265
265var e=Oi(),t=e["__core-js_shared__"];return yy=t,yy}var by,Sj;function JG(){if(Sj)return by;Sj=1;var e=ZG(),t=(function(){var r=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""})();function n(r){return!!t&&t in r}return by=n,by}var xy,_j;function KL(){if(_j)return xy;_j=1;var e=Function.prototype,t=e.toString;function n(r){if(r!=null){try{return t.call(r)}catch{}try{return r+""}catch{}}return""}return xy=n,xy}var wy,Aj;function eY(){if(Aj)return wy;Aj=1;var e=g_(),t=JG(),n=Zo(),r=KL(),i=/[\\^$.*+?()[\]{}|]/g,o=/^\[object .+?Constructor\]$/,a=Function.prototype,l=Object.prototype,c=a.toString,d=l.hasOwnProperty,f=RegExp("^"+c.call(d).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function p(g){if(!n(g)||t(g))return!1;var v=e(g)?f:o;return v.test(r(g))}return wy=p,wy}var Sy,Ej;function tY(){if(Ej)return Sy;Ej=1;function e(t,n){return t==null?void 0:t[n]}return Sy=e,Sy}var _y,kj;function ts(){if(kj)return _y;kj=1;var e=eY(),t=tY();function n(r,i){var o=t(r,i);return e(o)?o:void 0}return _y=n,_y}var Ay,Oj;function dm(){if(Oj)return Ay;Oj=1;var e=ts(),t=e(Object,"create");return Ay=t,Ay}var Ey,Pj;function nY(){if(Pj)return Ey;Pj=1;var e=dm();function t(){this.__data__=e?e(null):{},this.size=0}return Ey=t,Ey}var ky,jj;function rY(){if(jj)return ky;jj=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return ky=e,ky}var Oy,Cj;function iY(){if(Cj)return Oy;Cj=1;var e=dm(),t="__lodash_hash_undefined__",n=Object.prototype,r=n.hasOwnProperty;function i(o){var a=this.__data__;if(e){var l=a[o];return l===t?void 0:l}return r.call(a,o)?a[o]:void 0}return Oy=i,Oy}var Py,Tj;function oY(){if(Tj)return Py;Tj=1;var e=dm(),t=Object.prototype,n=t.hasOwnProperty;function r(i){var o=this.__data__;return e?o[i]!==void 0:n.call(o,i)}return Py=r,Py}var jy,Nj;function aY(){if(Nj)return jy;Nj=1;var e=dm(),t="__lodash_hash_undefined__";function n(r,i){var o=this.__data__;return this.size+=this.has(r)?0:1,o[r]=e&&i===void 0?t:i,this}return jy=n,jy}var Cy,Rj;function sY(){if(Rj)return Cy;Rj=1;var e=nY(),t=rY(),n=iY(),r=oY(),i=aY();function o(a){var l=-1,c=a==null?0:a.length;for(this.clear();++l<c;){var d=a[l];this.set(d[0],d[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=i,Cy=o,Cy}var Ty,Ij;function lY(){if(Ij)return Ty;Ij=1;function e(){this.__data__=[],this.size=0}return Ty=e,Ty}var Ny,$j;function v_(){if($j)return Ny;$j=1;function e(t,n){return t===n||t!==t&&n!==n}return Ny=e,Ny}var Ry,Mj;function fm(){if(Mj)return Ry;Mj=1;var e=v_();function t(n,r){for(var i=n.length;i--;)if(e(n[i][0],r))return i;return-1}return Ry=t,Ry}var Iy,Dj;function uY(){if(Dj)return Iy;Dj=1;var e=fm(),t=Array.prototype,n=t.splice;function r(i){var o=this.__data__,a=e(o,i);if(a<0)return!1;var l=o.length-1;return a==l?o.pop():n.call(o,a,1),--this.size,!0}return Iy=r,Iy}var $y,Lj;function cY(){if(Lj)return $y;Lj=1;var e=fm();function t(n){var r=this.__data__,i=e(r,n);return i<0?void 0:r[i][1]}return $y=t,$y}var My,Fj;function dY(){if(Fj)return My;Fj=1;var e=fm();function t(n){return e(this.__data__,n)>-1}return My=t,My}var Dy,Bj;function fY(){if(Bj)return Dy;Bj=1;var e=fm();function t(n,r){var i=this.__data__,o=e(i,n);return o<0?(++this.size,i.push([n,r])):i[o][1]=r,this}return Dy=t,Dy}var Ly,zj;function pm(){if(zj)return Ly;zj=1;var e=lY(),t=uY(),n=cY(),r=dY(),i=fY();function o(a){var l=-1,c=a==null?0:a.length;for(this.clear();++l<c;){var d=a[l];this.set(d[0],d[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=i,Ly=o,Ly}var Fy,Uj;function y_(){if(Uj)return Fy;Uj=1;var e=ts(),t=Oi(),n=e(t,"Map");return Fy=n,Fy}var By,qj;function pY(){if(qj)return By;qj=1;var e=sY(),t=pm(),n=y_();function r(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}return By=r,By}var zy,Hj;function hY(){if(Hj)return zy;Hj=1;function e(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}return zy=e,zy}var Uy,Wj;function hm(){if(Wj)return Uy;Wj=1;var e=hY();function t(n,r){var i=n.__data__;return e(r)?i[typeof r=="string"?"string":"hash"]:i.map}return Uy=t,Uy}var qy,Vj;function mY(){if(Vj)return qy;Vj=1;var e=hm();function t(n){var r=e(this,n).delete(n);return this.size-=r?1:0,r}return qy=t,qy}var Hy,Kj;function gY(){if(Kj)return Hy;Kj=1;var e=hm();function t(n){return e(this,n).get(n)}return Hy=t,Hy}var Wy,Gj;function vY(){if(Gj)return Wy;Gj=1;var e=hm();function t(n){return e(this,n).has(n)}return Wy=t,Wy}var Vy,Yj;function yY(){if(Yj)return Vy;Yj=1;var e=hm();function t(n,r){var i=e(this,n),o=i.size;return i.set(n,r),this.size+=i.size==o?0:1,this}return Vy=t,Vy}
vendor: 11,090 bytes, lines 265-273
265var Ky,Xj;function b_(){if(Xj)return Ky;Xj=1;var e=pY(),t=mY(),n=gY(),r=vY(),i=yY();function o(a){var l=-1,c=a==null?0:a.length;for(this.clear();++l<c;){var d=a[l];this.set(d[0],d[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=i,Ky=o,Ky}var Gy,Qj;function GL(){if(Qj)return Gy;Qj=1;var e=b_(),t="Expected a function";function n(r,i){if(typeof r!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var o=function(){var a=arguments,l=i?i.apply(this,a):a[0],c=o.cache;if(c.has(l))return c.get(l);var d=r.apply(this,a);return o.cache=c.set(l,d)||c,d};return o.cache=new(n.Cache||e),o}return n.Cache=e,Gy=n,Gy}var Yy,Zj;function bY(){if(Zj)return Yy;Zj=1;var e=GL(),t=500;function n(r){var i=e(r,function(a){return o.size===t&&o.clear(),a}),o=i.cache;return i}return Yy=n,Yy}var Xy,Jj;function xY(){if(Jj)return Xy;Jj=1;var e=bY(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=e(function(i){var o=[];return i.charCodeAt(0)===46&&o.push(""),i.replace(t,function(a,l,c,d){o.push(c?d.replace(n,"$1"):l||a)}),o});return Xy=r,Xy}var Qy,eC;function x_(){if(eC)return Qy;eC=1;function e(t,n){for(var r=-1,i=t==null?0:t.length,o=Array(i);++r<i;)o[r]=n(t[r],r,t);return o}return Qy=e,Qy}var Zy,tC;function wY(){if(tC)return Zy;tC=1;var e=Ad(),t=x_(),n=ir(),r=Kl(),i=e?e.prototype:void 0,o=i?i.toString:void 0;function a(l){if(typeof l=="string")return l;if(n(l))return t(l,a)+"";if(r(l))return o?o.call(l):"";var c=l+"";return c=="0"&&1/l==-1/0?"-0":c}return Zy=a,Zy}var Jy,nC;function YL(){if(nC)return Jy;nC=1;var e=wY();function t(n){return n==null?"":e(n)}return Jy=t,Jy}var eb,rC;function XL(){if(rC)return eb;rC=1;var e=ir(),t=m_(),n=xY(),r=YL();function i(o,a){return e(o)?o:t(o,a)?[o]:n(r(o))}return eb=i,eb}var tb,iC;function mm(){if(iC)return tb;iC=1;var e=Kl();function t(n){if(typeof n=="string"||e(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}return tb=t,tb}var nb,oC;function w_(){if(oC)return nb;oC=1;var e=XL(),t=mm();function n(r,i){i=e(i,r);for(var o=0,a=i.length;r!=null&&o<a;)r=r[t(i[o++])];return o&&o==a?r:void 0}return nb=n,nb}var rb,aC;function QL(){if(aC)return rb;aC=1;var e=w_();function t(n,r,i){var o=n==null?void 0:e(n,r);return o===void 0?i:o}return rb=t,rb}var SY=QL();const vr=lt(SY);var ib,sC;function _Y(){if(sC)return ib;sC=1;function e(t){return t==null}return ib=e,ib}var AY=_Y();const nt=lt(AY);var ob,lC;function EY(){if(lC)return ob;lC=1;var e=io(),t=ir(),n=oo(),r="[object String]";function i(o){return typeof o=="string"||!t(o)&&n(o)&&e(o)==r}return ob=i,ob}var kY=EY();const Ha=lt(kY);var OY=g_();const Ve=lt(OY);var PY=Zo();const Gl=lt(PY);var ab={exports:{}},ft={};/**
266 * @license React
267 * react-is.production.min.js
268 *
269 * Copyright (c) Facebook, Inc. and its affiliates.
270 *
271 * This source code is licensed under the MIT license found in the
272 * LICENSE file in the root directory of this source tree.
273 */var uC;function jY(){if(uC)return ft;uC=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),a=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),S;S=Symbol.for("react.module.reference");function x(y){if(typeof y=="object"&&y!==null){var w=y.$$typeof;switch(w){case e:switch(y=y.type,y){case n:case i:case r:case d:case f:return y;default:switch(y=y&&y.$$typeof,y){case l:case a:case c:case g:case p:case o:return y;default:return w}}case t:return w}}}return ft.ContextConsumer=a,ft.ContextProvider=o,ft.Element=e,ft.ForwardRef=c,ft.Fragment=n,ft.Lazy=g,ft.Memo=p,ft.Portal=t,ft.Profiler=i,ft.StrictMode=r,ft.Suspense=d,ft.SuspenseList=f,ft.isAsyncMode=function(){return!1},ft.isConcurrentMode=function(){return!1},ft.isContextConsumer=function(y){return x(y)===a},ft.isContextProvider=function(y){return x(y)===o},ft.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===e},ft.isForwardRef=function(y){return x(y)===c},ft.isFragment=function(y){return x(y)===n},ft.isLazy=function(y){return x(y)===g},ft.isMemo=function(y){return x(y)===p},ft.isPortal=function(y){return x(y)===t},ft.isProfiler=function(y){return x(y)===i},ft.isStrictMode=function(y){return x(y)===r},ft.isSuspense=function(y){return x(y)===d},ft.isSuspenseList=function(y){return x(y)===f},ft.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===n||y===i||y===r||y===d||y===f||y===v||typeof y=="object"&&y!==null&&(y.$$typeof===g||y.$$typeof===p||y.$$typeof===o||y.$$typeof===a||y.$$typeof===c||y.$$typeof===S||y.getModuleId!==void 0)},ft.typeOf=x,ft}var cC;function CY(){return cC||(cC=1,ab.exports=jY()),ab.exports}var TY=CY(),sb,dC;function ZL(){if(dC)return sb;dC=1;var e=io(),t=oo(),n="[object Number]";function r(i){return typeof i=="number"||t(i)&&e(i)==n}return sb=r,sb}var lb,fC;function NY(){if(fC)return lb;fC=1;var e=ZL();function t(n){return e(n)&&n!=+n}return lb=t,lb}var RY=NY();const Ed=lt(RY);var IY=ZL();const $Y=lt(IY);var Un=function(t){return t===0?0:t>0?1:-1},ja=function(t){return Ha(t)&&t.indexOf("%")===t.length-1},Se=function(t){return $Y(t)&&!Ed(t)},MY=function(t){return nt(t)},sn=function(t){return Se(t)||Ha(t)},DY=0,kd=function(t){var n=++DY;return"".concat(t||"").concat(n)},qn=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!Se(t)&&!Ha(t))return r;var o;if(ja(t)){var a=t.indexOf("%");o=n*parseFloat(t.slice(0,a))/100}else o=+t;return Ed(o)&&(o=r),i&&o>n&&(o=n),o},Mo=function(t){if(!t)return null;var n=Object.keys(t);return n&&n.length?t[n[0]]:null},LY=function(t){if(!Array.isArray(t))return!1;for(var n=t.length,r={},i=0;i<n;i++)if(!r[t[i]])r[t[i]]=!0;else return!0;return!1},Io=function(t,n){return Se(t)&&Se(n)?function(r){return t+r*(n-t)}:function(){return n}};function r1(e,t,n){return!e||!e.length?null:e.find(function(r){return r&&(typeof t=="function"?t(r):vr(r,t))===n})}var FY=function(t,n){return Se(t)&&Se(n)?t-n:Ha(t)&&Ha(n)?t.localeCompare(n):t instanceof Date&&n instanceof Date?t.getTime()-n.getTime():String(t).localeCompare(String(n))};function Zs(e,t){for(var n in e)if({}.hasOwnProperty.call(e,n)&&(!{}.hasOwnProperty.call(t,n)||e[n]!==t[n]))return!1;for(var r in t)if({}.hasOwnProperty.call(t,r)&&!{}.hasOwnProperty.call(e,r))return!1;return!0}function i1(e){"@babel/helpers - typeof";return i1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i1(e)}var BY=["viewBox","children"],zY=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],pC=["points","pathLength"],ub={svg:BY,polygon:pC,polyline:pC},S_=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onF
273ocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],Xp=function(t,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var r=t;if(P.isValidElement(t)&&(r=t.props),!Gl(r))return null;var i={};return Object.keys(r).forEach(function(o){S_.includes(o)&&(i[o]=n||function(a){return r[o](r,a)})}),i},UY=function(t,n,r){return function(i){return t(n,r,i),null}},Wa=function(t,n,r){if(!Gl(t)||i1(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(o){var a=t[o];S_.includes(o)&&typeof a=="function"&&(i||(i={}),i[o]=UY(a,n,r))}),i},qY=["children"],HY=["children"];function hC(e,t){if(e==null)return{};var n=WY(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function WY(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var mC={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},Gi=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},gC=null,cb=null,__=function e(t){if(t===gC&&Array.isArray(cb))return cb;var n=[];return P.Children.forEach(t,function(r){nt(r)||(TY.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),cb=n,gC=t,n};function Mr(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(i){return Gi(i)}):r=[Gi(t)],__(e).forEach(function(i){var o=vr(i,"type.displayName")||vr(i,"type.n
273ame");r.indexOf(o)!==-1&&n.push(i)}),n}function pr(e,t){var n=Mr(e,t);return n&&n[0]}var vC=function(t){if(!t||!t.props)return!1;var n=t.props,r=n.width,i=n.height;return!(!Se(r)||r<=0||!Se(i)||i<=0)},VY=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],KY=function(t){return t&&t.type&&Ha(t.type)&&VY.indexOf(t.type)>=0},GY=function(t,n,r,i){var o,a=(o=ub==null?void 0:ub[i])!==null&&o!==void 0?o:[];return n.startsWith("data-")||!Ve(t)&&(i&&a.includes(n)||zY.includes(n))||r&&S_.includes(n)},Ue=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(P.isValidElement(t)&&(i=t.props),!Gl(i))return null;var o={};
vendor: 4,443 bytes, line 273
273return Object.keys(i).forEach(function(a){var l;GY((l=i)===null||l===void 0?void 0:l[a],a,n,r)&&(o[a]=i[a])}),o},o1=function e(t,n){if(t===n)return!0;var r=P.Children.count(t);if(r!==P.Children.count(n))return!1;if(r===0)return!0;if(r===1)return yC(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var i=0;i<r;i++){var o=t[i],a=n[i];if(Array.isArray(o)||Array.isArray(a)){if(!e(o,a))return!1}else if(!yC(o,a))return!1}return!0},yC=function(t,n){if(nt(t)&&nt(n))return!0;if(!nt(t)&&!nt(n)){var r=t.props||{},i=r.children,o=hC(r,qY),a=n.props||{},l=a.children,c=hC(a,HY);return i&&l?Zs(o,c)&&o1(i,l):!i&&!l?Zs(o,c):!1}return!1},bC=function(t,n){var r=[],i={};return __(t).forEach(function(o,a){if(KY(o))r.push(o);else if(o){var l=Gi(o.type),c=n[l]||{},d=c.handler,f=c.once;if(d&&(!f||!i[l])){var p=d(o,l,a);r.push(p),i[l]=!0}}}),r},YY=function(t){var n=t&&t.type;return n&&mC[n]?mC[n]:null},XY=function(t,n){return __(n).indexOf(t)},QY=["children","width","height","viewBox","className","style","title","desc"];function a1(){return a1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a1.apply(this,arguments)}function ZY(e,t){if(e==null)return{};var n=JY(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function JY(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function s1(e){var t=e.children,n=e.width,r=e.height,i=e.viewBox,o=e.className,a=e.style,l=e.title,c=e.desc,d=ZY(e,QY),f=i||{width:n,height:r,x:0,y:0},p=Xe("recharts-surface",o);return W.createElement("svg",a1({},Ue(d,!0,"svg"),{className:p,width:n,height:r,style:a,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),W.createElement("title",null,l),W.createElement("desc",null,c),t)}var eX=["children","className"];function l1(){return l1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l1.apply(this,arguments)}function tX(e,t){if(e==null)return{};var n=nX(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function nX(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var gt=W.forwardRef(function(e,t){var n=e.children,r=e.className,i=tX(e,eX),o=Xe("recharts-layer",r);return W.createElement("g",l1({className:o},Ue(i,!0),{ref:t}),n)}),ti=function(t,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o]},db,xC;function rX(){if(xC)return db;xC=1;function e(t,n,r){var i=-1,o=t.length;n<0&&(n=-n>o?0:o+n),r=r>o?o:r,r<0&&(r+=o),o=n>r?0:r-n>>>0,n>>>=0;for(var a=Array(o);++i<o;)a[i]=t[i+n];return a}return db=e,db}var fb,wC;function iX(){if(wC)return fb;wC=1;var e=rX();function t(n,r,i){var o=n.length;return i=i===void 0?o:i,!r&&i>=o?n:e(n,r,i)}return fb=t,fb}var pb,SC;function JL(){if(SC)return pb;SC=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",i=t+n+r,o="\\ufe0e\\ufe0f",a="\\u200d",l=RegExp("["+a+e+i+o+"]");function c(d){return l.test(d)}return pb=c,pb}var hb,_C;function oX(){if(_C)return hb;_C=1;function e(t){return t.split("")}return hb=e,hb}var mb,AC;function aX(){if(AC)return mb;AC=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",i=t+n+r,o="\\ufe0e\\ufe0f",a="["+e+"]",l="["+i+"]",c="\\ud83c[\\udffb-\\udfff]",d="(?:"+l+"|"+c+")",f="[^"+e+"]",p="(?:\\ud83c[\\udde6-\\uddff]){2}",g="[\\ud800-\\udbff][\\udc00-\\udfff]",v="\\u200d",S=d+"?",x="["+o+"]?",y="(?:"+v+"(?:"+[f,p,g].join("|")+")"+x+S+")*",w=x+S+y,A="(?:"+[f+l+"?",l,p,g,a].join("|")+")",_=RegExp(c+"(?="+c+")|"+A+w,"g");function j(k){return k.match(_)||[]}return mb=j,mb}var gb,EC;function sX(){if(EC)return gb;EC=1;var e=oX(),t=JL(),n=aX();function r(i){return t(i)?n(i):e(i)}return gb=r,gb}var vb,kC;function lX(){if(kC)return vb;kC=1;var e=iX(),t=JL(),n=sX(),r=YL();function i(o){return function(a){a=r(a);
vendor: 3,959 bytes, line 273
273var l=t(a)?n(a):void 0,c=l?l[0]:a.charAt(0),d=l?e(l,1).join(""):a.slice(1);return c[o]()+d}}return vb=i,vb}var yb,OC;function uX(){if(OC)return yb;OC=1;var e=lX(),t=e("toUpperCase");return yb=t,yb}var cX=uX();const gm=lt(cX);function At(e){return function(){return e}}const e3=Math.cos,Qp=Math.sin,ri=Math.sqrt,Zp=Math.PI,vm=2*Zp,u1=Math.PI,c1=2*u1,Aa=1e-6,dX=c1-Aa;function t3(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function fX(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return t3;const n=10**t;return function(r){this._+=r[0];for(let i=1,o=r.length;i<o;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}class pX{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?t3:fX(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,i){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(t,n,r,i,o,a){this._append`C${+t},${+n},${+r},${+i},${this._x1=+o},${this._y1=+a}`}arcTo(t,n,r,i,o){if(t=+t,n=+n,r=+r,i=+i,o=+o,o<0)throw new Error(`negative radius: ${o}`);let a=this._x1,l=this._y1,c=r-t,d=i-n,f=a-t,p=l-n,g=f*f+p*p;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(g>Aa)if(!(Math.abs(p*c-d*f)>Aa)||!o)this._append`L${this._x1=t},${this._y1=n}`;else{let v=r-a,S=i-l,x=c*c+d*d,y=v*v+S*S,w=Math.sqrt(x),A=Math.sqrt(g),_=o*Math.tan((u1-Math.acos((x+g-y)/(2*w*A)))/2),j=_/A,k=_/w;Math.abs(j-1)>Aa&&this._append`L${t+j*f},${n+j*p}`,this._append`A${o},${o},0,0,${+(p*v>f*S)},${this._x1=t+k*c},${this._y1=n+k*d}`}}arc(t,n,r,i,o,a){if(t=+t,n=+n,r=+r,a=!!a,r<0)throw new Error(`negative radius: ${r}`);let l=r*Math.cos(i),c=r*Math.sin(i),d=t+l,f=n+c,p=1^a,g=a?i-o:o-i;this._x1===null?this._append`M${d},${f}`:(Math.abs(this._x1-d)>Aa||Math.abs(this._y1-f)>Aa)&&this._append`L${d},${f}`,r&&(g<0&&(g=g%c1+c1),g>dX?this._append`A${r},${r},0,1,${p},${t-l},${n-c}A${r},${r},0,1,${p},${this._x1=d},${this._y1=f}`:g>Aa&&this._append`A${r},${r},0,${+(g>=u1)},${p},${this._x1=t+r*Math.cos(o)},${this._y1=n+r*Math.sin(o)}`)}rect(t,n,r,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}}function A_(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new pX(t)}function E_(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function n3(e){this._context=e}n3.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function ym(e){return new n3(e)}function r3(e){return e[0]}function i3(e){return e[1]}function o3(e,t){var n=At(!0),r=null,i=ym,o=null,a=A_(l);e=typeof e=="function"?e:e===void 0?r3:At(e),t=typeof t=="function"?t:t===void 0?i3:At(t);function l(c){var d,f=(c=E_(c)).length,p,g=!1,v;for(r==null&&(o=i(v=a())),d=0;d<=f;++d)!(d<f&&n(p=c[d],d,c))===g&&((g=!g)?o.lineStart():o.lineEnd()),g&&o.point(+e(p,d,c),+t(p,d,c));if(v)return o=null,v+""||null}return l.x=function(c){return arguments.length?(e=typeof c=="function"?c:At(+c),l):e},l.y=function(c){return arguments.length?(t=typeof c=="function"?c:At(+c),l):t},l.defined=function(c){return arguments.length?(n=typeof c=="function"?c:At(!!c),l):n},l.curve=function(c){return arguments.length?(i=c,r!=null&&(o=i(r)),l):i},l.context=function(c){return arguments.length?(c==null?r=o=null:o=i(r=c),l):r},l}
vendor: 10,203 bytes, line 273
273function np(e,t,n){var r=null,i=At(!0),o=null,a=ym,l=null,c=A_(d);e=typeof e=="function"?e:e===void 0?r3:At(+e),t=typeof t=="function"?t:At(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?i3:At(+n);function d(p){var g,v,S,x=(p=E_(p)).length,y,w=!1,A,_=new Array(x),j=new Array(x);for(o==null&&(l=a(A=c())),g=0;g<=x;++g){if(!(g<x&&i(y=p[g],g,p))===w)if(w=!w)v=g,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),S=g-1;S>=v;--S)l.point(_[S],j[S]);l.lineEnd(),l.areaEnd()}w&&(_[g]=+e(y,g,p),j[g]=+t(y,g,p),l.point(r?+r(y,g,p):_[g],n?+n(y,g,p):j[g]))}if(A)return l=null,A+""||null}function f(){return o3().defined(i).curve(a).context(o)}return d.x=function(p){return arguments.length?(e=typeof p=="function"?p:At(+p),r=null,d):e},d.x0=function(p){return arguments.length?(e=typeof p=="function"?p:At(+p),d):e},d.x1=function(p){return arguments.length?(r=p==null?null:typeof p=="function"?p:At(+p),d):r},d.y=function(p){return arguments.length?(t=typeof p=="function"?p:At(+p),n=null,d):t},d.y0=function(p){return arguments.length?(t=typeof p=="function"?p:At(+p),d):t},d.y1=function(p){return arguments.length?(n=p==null?null:typeof p=="function"?p:At(+p),d):n},d.lineX0=d.lineY0=function(){return f().x(e).y(t)},d.lineY1=function(){return f().x(e).y(n)},d.lineX1=function(){return f().x(r).y(t)},d.defined=function(p){return arguments.length?(i=typeof p=="function"?p:At(!!p),d):i},d.curve=function(p){return arguments.length?(a=p,o!=null&&(l=a(o)),d):a},d.context=function(p){return arguments.length?(p==null?o=l=null:l=a(o=p),d):o},d}class a3{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function hX(e){return new a3(e,!0)}function mX(e){return new a3(e,!1)}const k_={draw(e,t){const n=ri(t/Zp);e.moveTo(n,0),e.arc(0,0,n,0,vm)}},gX={draw(e,t){const n=ri(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},s3=ri(1/3),vX=s3*2,yX={draw(e,t){const n=ri(t/vX),r=n*s3;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},bX={draw(e,t){const n=ri(t),r=-n/2;e.rect(r,r,n,n)}},xX=.8908130915292852,l3=Qp(Zp/10)/Qp(7*Zp/10),wX=Qp(vm/10)*l3,SX=-e3(vm/10)*l3,_X={draw(e,t){const n=ri(t*xX),r=wX*n,i=SX*n;e.moveTo(0,-n),e.lineTo(r,i);for(let o=1;o<5;++o){const a=vm*o/5,l=e3(a),c=Qp(a);e.lineTo(c*n,-l*n),e.lineTo(l*r-c*i,c*r+l*i)}e.closePath()}},bb=ri(3),AX={draw(e,t){const n=-ri(t/(bb*3));e.moveTo(0,n*2),e.lineTo(-bb*n,-n),e.lineTo(bb*n,-n),e.closePath()}},kr=-.5,Or=ri(3)/2,d1=1/ri(12),EX=(d1/2+1)*3,kX={draw(e,t){const n=ri(t/EX),r=n/2,i=n*d1,o=r,a=n*d1+n,l=-o,c=a;e.moveTo(r,i),e.lineTo(o,a),e.lineTo(l,c),e.lineTo(kr*r-Or*i,Or*r+kr*i),e.lineTo(kr*o-Or*a,Or*o+kr*a),e.lineTo(kr*l-Or*c,Or*l+kr*c),e.lineTo(kr*r+Or*i,kr*i-Or*r),e.lineTo(kr*o+Or*a,kr*a-Or*o),e.lineTo(kr*l+Or*c,kr*c-Or*l),e.closePath()}};function OX(e,t){let n=null,r=A_(i);e=typeof e=="function"?e:At(e||k_),t=typeof t=="function"?t:At(t===void 0?64:+t);function i(){let o;if(n||(n=o=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),o)return n=null,o+""||null}return i.type=function(o){return arguments.length?(e=typeof o=="function"?o:At(o),i):e},i.size=function(o){return arguments.length?(t=typeof o=="function"?o:At(+o),i):t},i.context=function(o){return arguments.length?(n=o??null,i):n},i}function Jp(){}function eh(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function u3(e){this._context=e}u3.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:eh(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:eh(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function PX(e){return new u3(e)}function c3(e){this._context=e}c3.prototype={areaStart:Jp,areaEnd:Jp,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:eh(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function jX(e){return new c3(e)}function d3(e){this._context=e}d3.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:eh(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function CX(e){return new d3(e)}function f3(e){this._context=e}f3.prototype={areaStart:Jp,areaEnd:Jp,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function TX(e){return new f3(e)}function PC(e){return e<0?-1:1}function jC(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),a=(n-e._y1)/(i||r<0&&-0),l=(o*i+a*r)/(r+i);return(PC(o)+PC(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(l))||0}function CC(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function xb(e,t,n){var r=e._x0,i=e._y0,o=e._x1,a=e._y1,l=(o-r)/3;e._context.bezierCurveTo(r+l,i+l*t,o-l,a-l*n,o,a)}function th(e){this._context=e}th.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:xb(this,this._t0,CC(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,xb(this,CC(this,n=jC(this,e,t)),n);break;default:xb(this,this._t0,n=jC(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function p3(e){this._context=new h3(e)}(p3.prototype=Object.create(th.prototype)).point=function(e,t){th.prototype.point.call(this,t,e)};function h3(e){this._context=e}h3.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,o){this._context.bezierCurveTo(t,e,r,n,o,i)}};function NX(e){return new th(e)}function RX(e){return new p3(e)}function m3(e){this._context=e}m3.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=TC(e),i=TC(t),o=0,a=1;a<n;++o,++a)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],e[a],t[a]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function TC(e){var t,n=e.length-1,r,i=new Array(n),o=new Array(n),a=new Array(n);for(i[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,o[t]=4,a[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,o[n-1]=7,a[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/o[t-1],o[t]-=r,a[t]-=r*a[t-1];for(i[n-1]=a[n-1]/o[n-1],t=n-2;t>=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(o[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)o[t]=2*e[t+1]-i[t+1];return[i,o]}function IX(e){return new m3(e)}function bm(e,t){this._context=e,this._t=t}bm.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;
vendor: 10,780 bytes, lines 273-276
273default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function $X(e){return new bm(e,.5)}function MX(e){return new bm(e,0)}function DX(e){return new bm(e,1)}function yl(e,t){if((a=e.length)>1)for(var n=1,r,i,o=e[t[0]],a,l=o.length;n<a;++n)for(i=o,o=e[t[n]],r=0;r<l;++r)o[r][1]+=o[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function f1(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function LX(e,t){return e[t]}function FX(e){const t=[];return t.key=e,t}function BX(){var e=At([]),t=f1,n=yl,r=LX;function i(o){var a=Array.from(e.apply(this,arguments),FX),l,c=a.length,d=-1,f;for(const p of o)for(l=0,++d;l<c;++l)(a[l][d]=[0,+r(p,a[l].key,d,o)]).data=p;for(l=0,f=E_(t(a));l<c;++l)a[f[l]].index=l;return n(a,f),a}return i.keys=function(o){return arguments.length?(e=typeof o=="function"?o:At(Array.from(o)),i):e},i.value=function(o){return arguments.length?(r=typeof o=="function"?o:At(+o),i):r},i.order=function(o){return arguments.length?(t=o==null?f1:typeof o=="function"?o:At(Array.from(o)),i):t},i.offset=function(o){return arguments.length?(n=o??yl,i):n},i}function zX(e,t){if((r=e.length)>0){for(var n,r,i=0,o=e[0].length,a;i<o;++i){for(a=n=0;n<r;++n)a+=e[n][i][1]||0;if(a)for(n=0;n<r;++n)e[n][i][1]/=a}yl(e,t)}}function UX(e,t){if((i=e.length)>0){for(var n=0,r=e[t[0]],i,o=r.length;n<o;++n){for(var a=0,l=0;a<i;++a)l+=e[a][n][1]||0;r[n][1]+=r[n][0]=-l/2}yl(e,t)}}function qX(e,t){if(!(!((a=e.length)>0)||!((o=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,o,a;r<o;++r){for(var l=0,c=0,d=0;l<a;++l){for(var f=e[t[l]],p=f[r][1]||0,g=f[r-1][1]||0,v=(p-g)/2,S=0;S<l;++S){var x=e[t[S]],y=x[r][1]||0,w=x[r-1][1]||0;v+=y-w}c+=p,d+=v*p}i[r-1][1]+=i[r-1][0]=n,c&&(n-=d/c)}i[r-1][1]+=i[r-1][0]=n,yl(e,t)}}function Tc(e){"@babel/helpers - typeof";return Tc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tc(e)}var HX=["type","size","sizeType"];function p1(){return p1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p1.apply(this,arguments)}function NC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function RC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?NC(Object(n),!0).forEach(function(r){WX(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):NC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function WX(e,t,n){return t=VX(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function VX(e){var t=KX(e,"string");return Tc(t)=="symbol"?t:t+""}function KX(e,t){if(Tc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Tc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function GX(e,t){if(e==null)return{};var n=YX(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function YX(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var g3={symbolCircle:k_,symbolCross:gX,symbolDiamond:yX,symbolSquare:bX,symbolStar:_X,symbolTriangle:AX,symbolWye:kX},XX=Math.PI/180,QX=function(t){var n="symbol".concat(gm(t));return g3[n]||k_},ZX=function(t,n,r){if(n==="area")return t;switch(r){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var i=18*XX;return 1.25*t*t*(Math.tan(i)-Math.tan(i*2)*Math.pow(Math.tan(i),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},JX=function(t,n){g3["symbol".concat(gm(t))]=n},O_=function(t){var n=t.type,r=n===void 0?"circle":n,i=t.size,o=i===void 0?64:i,a=t.sizeType,l=a===void 0?"area":a,c=GX(t,HX),d=RC(RC({},c),{},{type:r,size:o,sizeType:l}),f=function(){var y=QX(r),w=OX().type(y).size(ZX(o,l,r));return w()},p=d.className,g=d.cx,v=d.cy,S=Ue(d,!0);return g===+g&&v===+v&&o===+o?W.createElement("path",p1({},S,{className:Xe("recharts-symbols",p),transform:"translate(".concat(g,", ").concat(v,")"),d:f()})):null};O_.registerSymbol=JX;function bl(e){"@babel/helpers - typeof";return bl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bl(e)}function h1(){return h1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},h1.apply(this,arguments)}function IC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function eQ(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?IC(Object(n),!0).forEach(function(r){Nc(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):IC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function tQ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nQ(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,y3(r.key),r)}}function rQ(e,t,n){return t&&nQ(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function iQ(e,t,n){return t=nh(t),oQ(e,v3()?Reflect.construct(t,n||[],nh(e).constructor):t.apply(e,n))}function oQ(e,t){if(t&&(bl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return aQ(e)}function aQ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v3(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(v3=function(){return!!e})()}function nh(e){return nh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},nh(e)}function sQ(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&m1(e,t)}function m1(e,t){return m1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},m1(e,t)}function Nc(e,t,n){return t=y3(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y3(e){var t=lQ(e,"string");return bl(t)=="symbol"?t:t+""}function lQ(e,t){if(bl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(bl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Pr=32,P_=(function(e){function t(){return tQ(this,t),iQ(this,t,arguments)}return sQ(t,e),rQ(t,[{key:"renderIcon",value:function(r){var i=this.props.inactiveColor,o=Pr/2,a=Pr/6,l=Pr/3,c=r.inactive?i:r.color;if(r.type==="plainline")return W.createElement("line",{strokeWidth:4,fill:"none",stroke:c,strokeDasharray:r.payload.strokeDasharray,x1:0,y1:o,x2:Pr,y2:o,className:"recharts-legend-icon"});if(r.type==="line")return W.createElement("path",{strokeWidth:4,fill:"none",stroke:c,d:"M0,".concat(o,"h").concat(l,`
274            A`).concat(a,",").concat(a,",0,1,1,").concat(2*l,",").concat(o,`
275            H`).concat(Pr,"M").concat(2*l,",").concat(o,`
276            A`).concat(a,",").concat(a,",0,1,1,").concat(l,",").concat(o),className:"recharts-legend-icon"});if(r.type==="rect")return W.createElement("path",{stroke:"none",fill:c,d:"M0,".concat(Pr/8,"h").concat(Pr,"v").concat(Pr*3/4,"h").concat(-Pr,"z"),className:"recharts-legend-icon"});if(W.isValidElement(r.legendIcon)){var d=eQ({},r);return delete d.legendIcon,W.cloneElement(r.legendIcon,d)}return W.createElement(O_,{fill:c,cx:o,cy:o,size:Pr,sizeType:"diameter",type:r.type})}},{key:"renderItems",value:function(){var r=this,i=this.props,o=i.payload,a=i.iconSize,l=i.layout,c=i.formatter,d=i.inactiveColor,f={x:0,y:0,width:Pr,height:Pr},p={display:l==="horizontal"?"inline-block":"block",marginRight:10},g={display:"inline-block",verticalAlign:"middle",marginRight:4};return o.map(function(v,S){var x=v.formatter||c,y=Xe(Nc(Nc({"recharts-legend-item":!0},"legend-item-".concat(S),!0),"inactive",v.inactive));if(v.type==="none")return null;var w=Ve(v.value)?null:v.value;ti(!Ve(v.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var A=v.inactive?d:v.color;return W.createElement("li",h1({className:y,style:p,key:"legend-item-".concat(S)},Wa(r.props,v,S)),W.createElement(s1,{width:a,height:a,viewBox:f,style:g},r.renderIcon(v)),W.createElement("span",{className:"recharts-legend-item-text",style:{color:A}},x?x(w,v,S):w))})}},{key:"render",value:function(){var r=this.props,i=r.payload,o=r.layout,a=r.align;if(!i||!i.length)return null;var l={padding:0,margin:0,textAlign:o==="horizontal"?a:"left"};return W.createElement("ul",{className:"recharts-default-legend",style:l},this.renderItems())}}])})(P.PureComponent);Nc(P_,"displayName","Legend");Nc(P_,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var wb,$C;function uQ(){if($C)return wb;$C=1;var e=pm();function t(){this.__data__=new e,this.size=0}return wb=t,wb}var Sb,MC;function cQ(){if(MC)return Sb;MC=1;function e(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r}return Sb=e,Sb}var _b,DC;function dQ(){if(DC)return _b;DC=1;function e(t){return this.__data__.get(t)}return _b=e,_b}var Ab,LC;function fQ(){if(LC)return Ab;LC=1;function e(t){return this.__data__.has(t)}return Ab=e,Ab}var Eb,FC;
vendor: 4,146 bytes, line 276
276function pQ(){if(FC)return Eb;FC=1;var e=pm(),t=y_(),n=b_(),r=200;function i(o,a){var l=this.__data__;if(l instanceof e){var c=l.__data__;if(!t||c.length<r-1)return c.push([o,a]),this.size=++l.size,this;l=this.__data__=new n(c)}return l.set(o,a),this.size=l.size,this}return Eb=i,Eb}var kb,BC;function b3(){if(BC)return kb;BC=1;var e=pm(),t=uQ(),n=cQ(),r=dQ(),i=fQ(),o=pQ();function a(l){var c=this.__data__=new e(l);this.size=c.size}return a.prototype.clear=t,a.prototype.delete=n,a.prototype.get=r,a.prototype.has=i,a.prototype.set=o,kb=a,kb}var Ob,zC;function hQ(){if(zC)return Ob;zC=1;var e="__lodash_hash_undefined__";function t(n){return this.__data__.set(n,e),this}return Ob=t,Ob}var Pb,UC;function mQ(){if(UC)return Pb;UC=1;function e(t){return this.__data__.has(t)}return Pb=e,Pb}var jb,qC;function x3(){if(qC)return jb;qC=1;var e=b_(),t=hQ(),n=mQ();function r(i){var o=-1,a=i==null?0:i.length;for(this.__data__=new e;++o<a;)this.add(i[o])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,jb=r,jb}var Cb,HC;function w3(){if(HC)return Cb;HC=1;function e(t,n){for(var r=-1,i=t==null?0:t.length;++r<i;)if(n(t[r],r,t))return!0;return!1}return Cb=e,Cb}var Tb,WC;function S3(){if(WC)return Tb;WC=1;function e(t,n){return t.has(n)}return Tb=e,Tb}var Nb,VC;function _3(){if(VC)return Nb;VC=1;var e=x3(),t=w3(),n=S3(),r=1,i=2;function o(a,l,c,d,f,p){var g=c&r,v=a.length,S=l.length;if(v!=S&&!(g&&S>v))return!1;var x=p.get(a),y=p.get(l);if(x&&y)return x==l&&y==a;var w=-1,A=!0,_=c&i?new e:void 0;for(p.set(a,l),p.set(l,a);++w<v;){var j=a[w],k=l[w];if(d)var O=g?d(k,j,w,l,a,p):d(j,k,w,a,l,p);if(O!==void 0){if(O)continue;A=!1;break}if(_){if(!t(l,function(T,N){if(!n(_,N)&&(j===T||f(j,T,c,d,p)))return _.push(N)})){A=!1;break}}else if(!(j===k||f(j,k,c,d,p))){A=!1;break}}return p.delete(a),p.delete(l),A}return Nb=o,Nb}var Rb,KC;function gQ(){if(KC)return Rb;KC=1;var e=Oi(),t=e.Uint8Array;return Rb=t,Rb}var Ib,GC;function vQ(){if(GC)return Ib;GC=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(i,o){r[++n]=[o,i]}),r}return Ib=e,Ib}var $b,YC;function j_(){if(YC)return $b;YC=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(i){r[++n]=i}),r}return $b=e,$b}var Mb,XC;function yQ(){if(XC)return Mb;XC=1;var e=Ad(),t=gQ(),n=v_(),r=_3(),i=vQ(),o=j_(),a=1,l=2,c="[object Boolean]",d="[object Date]",f="[object Error]",p="[object Map]",g="[object Number]",v="[object RegExp]",S="[object Set]",x="[object String]",y="[object Symbol]",w="[object ArrayBuffer]",A="[object DataView]",_=e?e.prototype:void 0,j=_?_.valueOf:void 0;function k(O,T,N,I,z,F,D){switch(N){case A:if(O.byteLength!=T.byteLength||O.byteOffset!=T.byteOffset)return!1;O=O.buffer,T=T.buffer;case w:return!(O.byteLength!=T.byteLength||!F(new t(O),new t(T)));case c:case d:case g:return n(+O,+T);case f:return O.name==T.name&&O.message==T.message;case v:case x:return O==T+"";case p:var L=i;case S:var B=I&a;if(L||(L=o),O.size!=T.size&&!B)return!1;var U=D.get(O);if(U)return U==T;I|=l,D.set(O,T);var G=r(L(O),L(T),I,z,F,D);return D.delete(O),G;case y:if(j)return j.call(O)==j.call(T)}return!1}return Mb=k,Mb}var Db,QC;function A3(){if(QC)return Db;QC=1;function e(t,n){for(var r=-1,i=n.length,o=t.length;++r<i;)t[o+r]=n[r];return t}return Db=e,Db}var Lb,ZC;function bQ(){if(ZC)return Lb;ZC=1;var e=A3(),t=ir();function n(r,i,o){var a=i(r);return t(r)?a:e(a,o(r))}return Lb=n,Lb}var Fb,JC;function xQ(){if(JC)return Fb;JC=1;function e(t,n){for(var r=-1,i=t==null?0:t.length,o=0,a=[];++r<i;){var l=t[r];n(l,r,t)&&(a[o++]=l)}return a}return Fb=e,Fb}var Bb,eT;function wQ(){if(eT)return Bb;eT=1;function e(){return[]}return Bb=e,Bb}var zb,tT;function SQ(){if(tT)return zb;tT=1;var e=xQ(),t=wQ(),n=Object.prototype,r=n.propertyIsEnumerable,i=Object.getOwnPropertySymbols,o=i?function(a){return a==null?[]:(a=Object(a),e(i(a),function(l){return r.call(a,l)}))}:t;return zb=o,zb}var Ub,nT;function _Q(){if(nT)return Ub;nT=1;function e(t,n){for(var r=-1,i=Array(t);++r<t;)i[r]=n(r);return i}return Ub=e,Ub}var qb,rT;function AQ(){if(rT)return qb;rT=1;var e=io(),t=oo(),n="[object Arguments]";function r(i){return t(i)&&e(i)==n}return qb=r,qb}var Hb,iT;
vendor: 4,785 bytes, line 276
276function C_(){if(iT)return Hb;iT=1;var e=AQ(),t=oo(),n=Object.prototype,r=n.hasOwnProperty,i=n.propertyIsEnumerable,o=e((function(){return arguments})())?e:function(a){return t(a)&&r.call(a,"callee")&&!i.call(a,"callee")};return Hb=o,Hb}var cc={exports:{}},Wb,oT;function EQ(){if(oT)return Wb;oT=1;function e(){return!1}return Wb=e,Wb}cc.exports;var aT;function E3(){return aT||(aT=1,(function(e,t){var n=Oi(),r=EQ(),i=t&&!t.nodeType&&t,o=i&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===i,l=a?n.Buffer:void 0,c=l?l.isBuffer:void 0,d=c||r;e.exports=d})(cc,cc.exports)),cc.exports}var Vb,sT;function T_(){if(sT)return Vb;sT=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function n(r,i){var o=typeof r;return i=i??e,!!i&&(o=="number"||o!="symbol"&&t.test(r))&&r>-1&&r%1==0&&r<i}return Vb=n,Vb}var Kb,lT;function N_(){if(lT)return Kb;lT=1;var e=9007199254740991;function t(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=e}return Kb=t,Kb}var Gb,uT;function kQ(){if(uT)return Gb;uT=1;var e=io(),t=N_(),n=oo(),r="[object Arguments]",i="[object Array]",o="[object Boolean]",a="[object Date]",l="[object Error]",c="[object Function]",d="[object Map]",f="[object Number]",p="[object Object]",g="[object RegExp]",v="[object Set]",S="[object String]",x="[object WeakMap]",y="[object ArrayBuffer]",w="[object DataView]",A="[object Float32Array]",_="[object Float64Array]",j="[object Int8Array]",k="[object Int16Array]",O="[object Int32Array]",T="[object Uint8Array]",N="[object Uint8ClampedArray]",I="[object Uint16Array]",z="[object Uint32Array]",F={};F[A]=F[_]=F[j]=F[k]=F[O]=F[T]=F[N]=F[I]=F[z]=!0,F[r]=F[i]=F[y]=F[o]=F[w]=F[a]=F[l]=F[c]=F[d]=F[f]=F[p]=F[g]=F[v]=F[S]=F[x]=!1;function D(L){return n(L)&&t(L.length)&&!!F[e(L)]}return Gb=D,Gb}var Yb,cT;function k3(){if(cT)return Yb;cT=1;function e(t){return function(n){return t(n)}}return Yb=e,Yb}var dc={exports:{}};dc.exports;var dT;function OQ(){return dT||(dT=1,(function(e,t){var n=VL(),r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===r,a=o&&n.process,l=(function(){try{var c=i&&i.require&&i.require("util").types;return c||a&&a.binding&&a.binding("util")}catch{}})();e.exports=l})(dc,dc.exports)),dc.exports}var Xb,fT;function O3(){if(fT)return Xb;fT=1;var e=kQ(),t=k3(),n=OQ(),r=n&&n.isTypedArray,i=r?t(r):e;return Xb=i,Xb}var Qb,pT;function PQ(){if(pT)return Qb;pT=1;var e=_Q(),t=C_(),n=ir(),r=E3(),i=T_(),o=O3(),a=Object.prototype,l=a.hasOwnProperty;function c(d,f){var p=n(d),g=!p&&t(d),v=!p&&!g&&r(d),S=!p&&!g&&!v&&o(d),x=p||g||v||S,y=x?e(d.length,String):[],w=y.length;for(var A in d)(f||l.call(d,A))&&!(x&&(A=="length"||v&&(A=="offset"||A=="parent")||S&&(A=="buffer"||A=="byteLength"||A=="byteOffset")||i(A,w)))&&y.push(A);return y}return Qb=c,Qb}var Zb,hT;function jQ(){if(hT)return Zb;hT=1;var e=Object.prototype;function t(n){var r=n&&n.constructor,i=typeof r=="function"&&r.prototype||e;return n===i}return Zb=t,Zb}var Jb,mT;function P3(){if(mT)return Jb;mT=1;function e(t,n){return function(r){return t(n(r))}}return Jb=e,Jb}var ex,gT;function CQ(){if(gT)return ex;gT=1;var e=P3(),t=e(Object.keys,Object);return ex=t,ex}var tx,vT;function TQ(){if(vT)return tx;vT=1;var e=jQ(),t=CQ(),n=Object.prototype,r=n.hasOwnProperty;function i(o){if(!e(o))return t(o);var a=[];for(var l in Object(o))r.call(o,l)&&l!="constructor"&&a.push(l);return a}return tx=i,tx}var nx,yT;function Od(){if(yT)return nx;yT=1;var e=g_(),t=N_();function n(r){return r!=null&&t(r.length)&&!e(r)}return nx=n,nx}var rx,bT;function xm(){if(bT)return rx;bT=1;var e=PQ(),t=TQ(),n=Od();function r(i){return n(i)?e(i):t(i)}return rx=r,rx}var ix,xT;function NQ(){if(xT)return ix;xT=1;var e=bQ(),t=SQ(),n=xm();function r(i){return e(i,n,t)}return ix=r,ix}var ox,wT;function RQ(){if(wT)return ox;wT=1;var e=NQ(),t=1,n=Object.prototype,r=n.hasOwnProperty;function i(o,a,l,c,d,f){var p=l&t,g=e(o),v=g.length,S=e(a),x=S.length;if(v!=x&&!p)return!1;for(var y=v;y--;){var w=g[y];if(!(p?w in a:r.call(a,w)))return!1}var A=f.get(o),_=f.get(a);if(A&&_)return A==a&&_==o;var j=!0;f.set(o,a),f.set(a,o);for(var k=p;++y<v;){w=g[y];var O=o[w],T=a[w];if(c)var N=p?c(T,O,w,a,o,f):c(O,T,w,o,a,f);if(!(N===void 0?O===T||d(O,T,l,c,f):N)){j=!1;break}k||(k=w=="constructor")}if(j&&!k){var I=o.constructor,z=a.constructor;I!=z&&"constructor"in o&&"constructor"in a&&!(typeof I=="function"&&I instanceof I&&typeof z=="function"&&z instanceof z)&&(j=!1)}return f.delete(o),f.delete(a),j}return ox=i,ox}var ax,ST;function IQ(){if(ST)return ax;ST=1;var e=ts(),t=Oi(),n=e(t,"DataView");return ax=n,ax}var sx,_T;function $Q(){if(_T)return sx;_T=1;var e=ts(),t=Oi(),n=e(t,"Promise");return sx=n,sx}var lx,AT;function j3(){if(AT)return lx;AT=1;var e=ts(),t=Oi(),n=e(t,"Set");return lx=n,lx}var ux,ET;function MQ(){if(ET)return ux;ET=1;var e=ts(),t=Oi(),n=e(t,"WeakMap");return ux=n,ux}
vendor: 1,051 bytes, line 276
276var cx,kT;function DQ(){if(kT)return cx;kT=1;var e=IQ(),t=y_(),n=$Q(),r=j3(),i=MQ(),o=io(),a=KL(),l="[object Map]",c="[object Object]",d="[object Promise]",f="[object Set]",p="[object WeakMap]",g="[object DataView]",v=a(e),S=a(t),x=a(n),y=a(r),w=a(i),A=o;return(e&&A(new e(new ArrayBuffer(1)))!=g||t&&A(new t)!=l||n&&A(n.resolve())!=d||r&&A(new r)!=f||i&&A(new i)!=p)&&(A=function(_){var j=o(_),k=j==c?_.constructor:void 0,O=k?a(k):"";if(O)switch(O){case v:return g;case S:return l;case x:return d;case y:return f;case w:return p}return j}),cx=A,cx}var dx,OT;function LQ(){if(OT)return dx;OT=1;var e=b3(),t=_3(),n=yQ(),r=RQ(),i=DQ(),o=ir(),a=E3(),l=O3(),c=1,d="[object Arguments]",f="[object Array]",p="[object Object]",g=Object.prototype,v=g.hasOwnProperty;function S(x,y,w,A,_,j){var k=o(x),O=o(y),T=k?f:i(x),N=O?f:i(y);T=T==d?p:T,N=N==d?p:N;var I=T==p,z=N==p,F=T==N;if(F&&a(x)){if(!a(y))return!1;k=!0,I=!1}if(F&&!I)return j||(j=new e),k||l(x)?t(x,y,w,A,_,j):n(x,y,T,w,A,_,j);if(!(w&c)){var D=I&&v.call(x,"__wrapped__"),L=z&&v.call(y,"__wrapped__");
vendor: 44,557 bytes, lines 276-283
276if(D||L){var B=D?x.value():x,U=L?y.value():y;return j||(j=new e),_(B,U,w,A,j)}}return F?(j||(j=new e),r(x,y,w,A,_,j)):!1}return dx=S,dx}var fx,PT;function R_(){if(PT)return fx;PT=1;var e=LQ(),t=oo();function n(r,i,o,a,l){return r===i?!0:r==null||i==null||!t(r)&&!t(i)?r!==r&&i!==i:e(r,i,o,a,n,l)}return fx=n,fx}var px,jT;function FQ(){if(jT)return px;jT=1;var e=b3(),t=R_(),n=1,r=2;function i(o,a,l,c){var d=l.length,f=d,p=!c;if(o==null)return!f;for(o=Object(o);d--;){var g=l[d];if(p&&g[2]?g[1]!==o[g[0]]:!(g[0]in o))return!1}for(;++d<f;){g=l[d];var v=g[0],S=o[v],x=g[1];if(p&&g[2]){if(S===void 0&&!(v in o))return!1}else{var y=new e;if(c)var w=c(S,x,v,o,a,y);if(!(w===void 0?t(x,S,n|r,c,y):w))return!1}}return!0}return px=i,px}var hx,CT;function C3(){if(CT)return hx;CT=1;var e=Zo();function t(n){return n===n&&!e(n)}return hx=t,hx}var mx,TT;function BQ(){if(TT)return mx;TT=1;var e=C3(),t=xm();function n(r){for(var i=t(r),o=i.length;o--;){var a=i[o],l=r[a];i[o]=[a,l,e(l)]}return i}return mx=n,mx}var gx,NT;function T3(){if(NT)return gx;NT=1;function e(t,n){return function(r){return r==null?!1:r[t]===n&&(n!==void 0||t in Object(r))}}return gx=e,gx}var vx,RT;function zQ(){if(RT)return vx;RT=1;var e=FQ(),t=BQ(),n=T3();function r(i){var o=t(i);return o.length==1&&o[0][2]?n(o[0][0],o[0][1]):function(a){return a===i||e(a,i,o)}}return vx=r,vx}var yx,IT;function UQ(){if(IT)return yx;IT=1;function e(t,n){return t!=null&&n in Object(t)}return yx=e,yx}var bx,$T;function qQ(){if($T)return bx;$T=1;var e=XL(),t=C_(),n=ir(),r=T_(),i=N_(),o=mm();function a(l,c,d){c=e(c,l);for(var f=-1,p=c.length,g=!1;++f<p;){var v=o(c[f]);if(!(g=l!=null&&d(l,v)))break;l=l[v]}return g||++f!=p?g:(p=l==null?0:l.length,!!p&&i(p)&&r(v,p)&&(n(l)||t(l)))}return bx=a,bx}var xx,MT;function HQ(){if(MT)return xx;MT=1;var e=UQ(),t=qQ();function n(r,i){return r!=null&&t(r,i,e)}return xx=n,xx}var wx,DT;function WQ(){if(DT)return wx;DT=1;var e=R_(),t=QL(),n=HQ(),r=m_(),i=C3(),o=T3(),a=mm(),l=1,c=2;function d(f,p){return r(f)&&i(p)?o(a(f),p):function(g){var v=t(g,f);return v===void 0&&v===p?n(g,f):e(p,v,l|c)}}return wx=d,wx}var Sx,LT;function Yl(){if(LT)return Sx;LT=1;function e(t){return t}return Sx=e,Sx}var _x,FT;function VQ(){if(FT)return _x;FT=1;function e(t){return function(n){return n==null?void 0:n[t]}}return _x=e,_x}var Ax,BT;function KQ(){if(BT)return Ax;BT=1;var e=w_();function t(n){return function(r){return e(r,n)}}return Ax=t,Ax}var Ex,zT;function GQ(){if(zT)return Ex;zT=1;var e=VQ(),t=KQ(),n=m_(),r=mm();function i(o){return n(o)?e(r(o)):t(o)}return Ex=i,Ex}var kx,UT;function Pi(){if(UT)return kx;UT=1;var e=zQ(),t=WQ(),n=Yl(),r=ir(),i=GQ();function o(a){return typeof a=="function"?a:a==null?n:typeof a=="object"?r(a)?t(a[0],a[1]):e(a):i(a)}return kx=o,kx}var Ox,qT;function N3(){if(qT)return Ox;qT=1;function e(t,n,r,i){for(var o=t.length,a=r+(i?1:-1);i?a--:++a<o;)if(n(t[a],a,t))return a;return-1}return Ox=e,Ox}var Px,HT;function YQ(){if(HT)return Px;HT=1;function e(t){return t!==t}return Px=e,Px}var jx,WT;function XQ(){if(WT)return jx;WT=1;function e(t,n,r){for(var i=r-1,o=t.length;++i<o;)if(t[i]===n)return i;return-1}return jx=e,jx}var Cx,VT;function QQ(){if(VT)return Cx;VT=1;var e=N3(),t=YQ(),n=XQ();function r(i,o,a){return o===o?n(i,o,a):e(i,t,a)}return Cx=r,Cx}var Tx,KT;function ZQ(){if(KT)return Tx;KT=1;var e=QQ();function t(n,r){var i=n==null?0:n.length;return!!i&&e(n,r,0)>-1}return Tx=t,Tx}var Nx,GT;function JQ(){if(GT)return Nx;GT=1;function e(t,n,r){for(var i=-1,o=t==null?0:t.length;++i<o;)if(r(n,t[i]))return!0;return!1}return Nx=e,Nx}var Rx,YT;function eZ(){if(YT)return Rx;YT=1;function e(){}return Rx=e,Rx}var Ix,XT;function tZ(){if(XT)return Ix;XT=1;var e=j3(),t=eZ(),n=j_(),r=1/0,i=e&&1/n(new e([,-0]))[1]==r?function(o){return new e(o)}:t;return Ix=i,Ix}var $x,QT;function nZ(){if(QT)return $x;QT=1;var e=x3(),t=ZQ(),n=JQ(),r=S3(),i=tZ(),o=j_(),a=200;function l(c,d,f){var p=-1,g=t,v=c.length,S=!0,x=[],y=x;if(f)S=!1,g=n;else if(v>=a){var w=d?null:i(c);if(w)return o(w);S=!1,g=r,y=new e}else y=d?[]:x;e:for(;++p<v;){var A=c[p],_=d?d(A):A;if(A=f||A!==0?A:0,S&&_===_){for(var j=y.length;j--;)if(y[j]===_)continue e;d&&y.push(_),x.push(A)}else g(y,_,f)||(y!==x&&y.push(_),x.push(A))}return x}return $x=l,$x}var Mx,ZT;function rZ(){if(ZT)return Mx;ZT=1;var e=Pi(),t=nZ();function n(r,i){return r&&r.length?t(r,e(i,2)):[]}return Mx=n,Mx}var iZ=rZ();const JT=lt(iZ);function R3(e,t,n){return t===!0?JT(e,n):Ve(t)?JT(e,t):e}function xl(e){"@babel/helpers - typeof";return xl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xl(e)}var oZ=["ref"];function eN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Fi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?eN(Object(n),!0).forEach(function(r){wm(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function aZ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tN(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,$3(r.key),r)}}function sZ(e,t,n){return t&&tN(e.prototype,t),n&&tN(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function lZ(e,t,n){return t=rh(t),uZ(e,I3()?Reflect.construct(t,n||[],rh(e).constructor):t.apply(e,n))}function uZ(e,t){if(t&&(xl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return cZ(e)}function cZ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function I3(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(I3=function(){return!!e})()}function rh(e){return rh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},rh(e)}function dZ(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&g1(e,t)}function g1(e,t){return g1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},g1(e,t)}function wm(e,t,n){return t=$3(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $3(e){var t=fZ(e,"string");return xl(t)=="symbol"?t:t+""}function fZ(e,t){if(xl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(xl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function pZ(e,t){if(e==null)return{};var n=hZ(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function hZ(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function mZ(e){return e.value}function gZ(e,t){if(W.isValidElement(e))return W.cloneElement(e,t);if(typeof e=="function")return W.createElement(e,t);t.ref;var n=pZ(t,oZ);return W.createElement(P_,n)}var nN=1,Js=(function(e){function t(){var n;aZ(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=lZ(this,t,[].concat(i)),wm(n,"lastBoundingBox",{width:-1,height:-1}),n}return dZ(t,e),sZ(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();return r.height=this.wrapperNode.offsetHeight,r.width=this.wrapperNode.offsetWidth,r}return null}},{key:"updateBBox",value:function(){var r=this.props.onBBoxUpdate,i=this.getBBox();i?(Math.abs(i.width-this.lastBoundingBox.width)>nN||Math.abs(i.height-this.lastBoundingBox.height)>nN)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,r&&r(i)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,r&&r(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Fi({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(r){var i=this.props,o=i.layout,a=i.align,l=i.verticalAlign,c=i.margin,d=i.chartWidth,f=i.chartHeight,p,g;if(!r||(r.left===void 0||r.left===null)&&(r.right===void 0||r.right===null))if(a==="center"&&o==="vertical"){var v=this.getBBoxSnapshot();p={left:((d||0)-v.width)/2}}else p=a==="right"?{right:c&&c.right||0}:{left:c&&c.left||0};if(!r||(r.top===void 0||r.top===null)&&(r.bottom===void 0||r.bottom===null))if(l==="middle"){var S=this.getBBoxSnapshot();g={top:((f||0)-S.height)/2}}else g=l==="bottom"?{bottom:c&&c.bottom||0}:{top:c&&c.top||0};return Fi(Fi({},p),g)}},{key:"render",value:function(){var r=this,i=this.props,o=i.content,a=i.width,l=i.height,c=i.wrapperStyle,d=i.payloadUniqBy,f=i.payload,p=Fi(Fi({position:"absolute",width:a||"auto",height:l||"auto"},this.getDefaultPosition(c)),c);return W.createElement("div",{className:"recharts-legend-wrapper",style:p,ref:function(v){r.wrapperNode=v}},gZ(o,Fi(Fi({},this.props),{},{payload:R3(f,d,mZ)})))}}],[{key:"getWithHeight",value:function(r,i){var o=Fi(Fi({},this.defaultProps),r.props),a=o.layout;return a==="vertical"&&Se(r.props.height)?{height:r.props.height}:a==="horizontal"?{width:r.props.width||i}:null}}])})(P.PureComponent);wm(Js,"displayName","Legend");wm(Js,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Dx,rN;function vZ(){if(rN)return Dx;rN=1;var e=Ad(),t=C_(),n=ir(),r=e?e.isConcatSpreadable:void 0;function i(o){return n(o)||t(o)||!!(r&&o&&o[r])}return Dx=i,Dx}var Lx,iN;function M3(){if(iN)return Lx;iN=1;var e=A3(),t=vZ();function n(r,i,o,a,l){var c=-1,d=r.length;for(o||(o=t),l||(l=[]);++c<d;){var f=r[c];i>0&&o(f)?i>1?n(f,i-1,o,a,l):e(l,f):a||(l[l.length]=f)}return l}return Lx=n,Lx}var Fx,oN;function yZ(){if(oN)return Fx;oN=1;function e(t){return function(n,r,i){for(var o=-1,a=Object(n),l=i(n),c=l.length;c--;){var d=l[t?c:++o];if(r(a[d],d,a)===!1)break}return n}}return Fx=e,Fx}var Bx,aN;function bZ(){if(aN)return Bx;aN=1;var e=yZ(),t=e();return Bx=t,Bx}var zx,sN;function D3(){if(sN)return zx;sN=1;var e=bZ(),t=xm();function n(r,i){return r&&e(r,i,t)}return zx=n,zx}var Ux,lN;function xZ(){if(lN)return Ux;lN=1;var e=Od();function t(n,r){return function(i,o){if(i==null)return i;if(!e(i))return n(i,o);for(var a=i.length,l=r?a:-1,c=Object(i);(r?l--:++l<a)&&o(c[l],l,c)!==!1;);return i}}return Ux=t,Ux}var qx,uN;function I_(){if(uN)return qx;uN=1;var e=D3(),t=xZ(),n=t(e);return qx=n,qx}var Hx,cN;function L3(){if(cN)return Hx;cN=1;var e=I_(),t=Od();function n(r,i){var o=-1,a=t(r)?Array(r.length):[];return e(r,function(l,c,d){a[++o]=i(l,c,d)}),a}return Hx=n,Hx}var Wx,dN;function wZ(){if(dN)return Wx;dN=1;function e(t,n){var r=t.length;for(t.sort(n);r--;)t[r]=t[r].value;return t}return Wx=e,Wx}var Vx,fN;function SZ(){if(fN)return Vx;fN=1;var e=Kl();function t(n,r){if(n!==r){var i=n!==void 0,o=n===null,a=n===n,l=e(n),c=r!==void 0,d=r===null,f=r===r,p=e(r);if(!d&&!p&&!l&&n>r||l&&c&&f&&!d&&!p||o&&c&&f||!i&&f||!a)return 1;if(!o&&!l&&!p&&n<r||p&&i&&a&&!o&&!l||d&&i&&a||!c&&a||!f)return-1}return 0}return Vx=t,Vx}var Kx,pN;function _Z(){if(pN)return Kx;pN=1;var e=SZ();function t(n,r,i){for(var o=-1,a=n.criteria,l=r.criteria,c=a.length,d=i.length;++o<c;){var f=e(a[o],l[o]);if(f){if(o>=d)return f;var p=i[o];return f*(p=="desc"?-1:1)}}return n.index-r.index}return Kx=t,Kx}var Gx,hN;function AZ(){if(hN)return Gx;hN=1;var e=x_(),t=w_(),n=Pi(),r=L3(),i=wZ(),o=k3(),a=_Z(),l=Yl(),c=ir();function d(f,p,g){p.length?p=e(p,function(x){return c(x)?function(y){return t(y,x.length===1?x[0]:x)}:x}):p=[l];var v=-1;p=e(p,o(n));var S=r(f,function(x,y,w){var A=e(p,function(_){return _(x)});return{criteria:A,index:++v,value:x}});return i(S,function(x,y){return a(x,y,g)})}return Gx=d,Gx}var Yx,mN;function EZ(){if(mN)return Yx;mN=1;function e(t,n,r){switch(r.length){case 0:return t.call(n);case 1:return t.call(n,r[0]);case 2:return t.call(n,r[0],r[1]);case 3:return t.call(n,r[0],r[1],r[2])}return t.apply(n,r)}return Yx=e,Yx}var Xx,gN;function kZ(){if(gN)return Xx;gN=1;var e=EZ(),t=Math.max;function n(r,i,o){return i=t(i===void 0?r.length-1:i,0),function(){for(var a=arguments,l=-1,c=t(a.length-i,0),d=Array(c);++l<c;)d[l]=a[i+l];l=-1;for(var f=Array(i+1);++l<i;)f[l]=a[l];return f[i]=o(d),e(r,this,f)}}return Xx=n,Xx}var Qx,vN;function OZ(){if(vN)return Qx;vN=1;function e(t){return function(){return t}}return Qx=e,Qx}var Zx,yN;function F3(){if(yN)return Zx;yN=1;var e=ts(),t=(function(){try{var n=e(Object,"defineProperty");return n({},"",{}),n}catch{}})();return Zx=t,Zx}var Jx,bN;function PZ(){if(bN)return Jx;bN=1;var e=OZ(),t=F3(),n=Yl(),r=t?function(i,o){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(o),writable:!0})}:n;return Jx=r,Jx}var e0,xN;function jZ(){if(xN)return e0;xN=1;var e=800,t=16,n=Date.now;function r(i){var o=0,a=0;return function(){var l=n(),c=t-(l-a);if(a=l,c>0){if(++o>=e)return arguments[0]}else o=0;return i.apply(void 0,arguments)}}return e0=r,e0}var t0,wN;function CZ(){if(wN)return t0;wN=1;var e=PZ(),t=jZ(),n=t(e);return t0=n,t0}var n0,SN;function TZ(){if(SN)return n0;SN=1;var e=Yl(),t=kZ(),n=CZ();function r(i,o){return n(t(i,o,e),i+"")}return n0=r,n0}var r0,_N;function Sm(){if(_N)return r0;_N=1;var e=v_(),t=Od(),n=T_(),r=Zo();function i(o,a,l){if(!r(l))return!1;var c=typeof a;return(c=="number"?t(l)&&n(a,l.length):c=="string"&&a in l)?e(l[a],o):!1}return r0=i,r0}var i0,AN;function NZ(){if(AN)return i0;AN=1;var e=M3(),t=AZ(),n=TZ(),r=Sm(),i=n(function(o,a){if(o==null)return[];var l=a.length;return l>1&&r(o,a[0],a[1])?a=[]:l>2&&r(a[0],a[1],a[2])&&(a=[a[0]]),t(o,e(a,1),[])});return i0=i,i0}var RZ=NZ();const $_=lt(RZ);function Rc(e){"@babel/helpers - typeof";return Rc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rc(e)}function v1(){return v1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v1.apply(this,arguments)}function IZ(e,t){return LZ(e)||DZ(e,t)||MZ(e,t)||$Z()}function $Z(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
277In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function MZ(e,t){if(e){if(typeof e=="string")return EN(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return EN(e,t)}}function EN(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function DZ(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,l=[],c=!0,d=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(f){d=!0,i=f}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(d)throw i}}return l}}function LZ(e){if(Array.isArray(e))return e}function kN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function o0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?kN(Object(n),!0).forEach(function(r){FZ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function FZ(e,t,n){return t=BZ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function BZ(e){var t=zZ(e,"string");return Rc(t)=="symbol"?t:t+""}function zZ(e,t){if(Rc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Rc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function UZ(e){return Array.isArray(e)&&sn(e[0])&&sn(e[1])?e.join(" ~ "):e}var qZ=function(t){var n=t.separator,r=n===void 0?" : ":n,i=t.contentStyle,o=i===void 0?{}:i,a=t.itemStyle,l=a===void 0?{}:a,c=t.labelStyle,d=c===void 0?{}:c,f=t.payload,p=t.formatter,g=t.itemSorter,v=t.wrapperClassName,S=t.labelClassName,x=t.label,y=t.labelFormatter,w=t.accessibilityLayer,A=w===void 0?!1:w,_=function(){if(f&&f.length){var D={padding:0,margin:0},L=(g?$_(f,g):f).map(function(B,U){if(B.type==="none")return null;var G=o0({display:"block",paddingTop:4,paddingBottom:4,color:B.color||"#000"},l),Z=B.formatter||p||UZ,Y=B.value,ee=B.name,R=Y,q=ee;if(Z&&R!=null&&q!=null){var V=Z(Y,ee,B,U,f);if(Array.isArray(V)){var M=IZ(V,2);R=M[0],q=M[1]}else R=V}return W.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(U),style:G},sn(q)?W.createElement("span",{className:"recharts-tooltip-item-name"},q):null,sn(q)?W.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,W.createElement("span",{className:"recharts-tooltip-item-value"},R),W.createElement("span",{className:"recharts-tooltip-item-unit"},B.unit||""))});return W.createElement("ul",{className:"recharts-tooltip-item-list",style:D},L)}return null},j=o0({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},o),k=o0({margin:0},d),O=!nt(x),T=O?x:"",N=Xe("recharts-default-tooltip",v),I=Xe("recharts-tooltip-label",S);O&&y&&f!==void 0&&f!==null&&(T=y(x,f));var z=A?{role:"status","aria-live":"assertive"}:{};return W.createElement("div",v1({className:N,style:j},z),W.createElement("p",{className:I,style:k},W.isValidElement(T)?T:"".concat(T)),_())};function Ic(e){"@babel/helpers - typeof";return Ic=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ic(e)}function rp(e,t,n){return t=HZ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function HZ(e){var t=WZ(e,"string");return Ic(t)=="symbol"?t:t+""}function WZ(e,t){if(Ic(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ic(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ku="recharts-tooltip-wrapper",VZ={visibility:"hidden"};function KZ(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return Xe(Ku,rp(rp(rp(rp({},"".concat(Ku,"-right"),Se(n)&&t&&Se(t.x)&&n>=t.x),"".concat(Ku,"-left"),Se(n)&&t&&Se(t.x)&&n<t.x),"".concat(Ku,"-bottom"),Se(r)&&t&&Se(t.y)&&r>=t.y),"".concat(Ku,"-top"),Se(r)&&t&&Se(t.y)&&r<t.y))}function ON(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,i=e.offsetTopLeft,o=e.position,a=e.reverseDirection,l=e.tooltipDimension,c=e.viewBox,d=e.viewBoxDimension;if(o&&Se(o[r]))return o[r];var f=n[r]-l-i,p=n[r]+i;if(t[r])return a[r]?f:p;if(a[r]){var g=f,v=c[r];return g<v?Math.max(p,c[r]):Math.max(f,c[r])}var S=p+l,x=c[r]+d;return S>x?Math.max(f,c[r]):Math.max(p,c[r])}function GZ(e){var t=e.translateX,n=e.translateY,r=e.useTranslate3d;return{transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}function YZ(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,i=e.position,o=e.reverseDirection,a=e.tooltipBox,l=e.useTranslate3d,c=e.viewBox,d,f,p;return a.height>0&&a.width>0&&n?(f=ON({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:i,reverseDirection:o,tooltipDimension:a.width,viewBox:c,viewBoxDimension:c.width}),p=ON({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:i,reverseDirection:o,tooltipDimension:a.height,viewBox:c,viewBoxDimension:c.height}),d=GZ({translateX:f,translateY:p,useTranslate3d:l})):d=VZ,{cssProperties:d,cssClasses:KZ({translateX:f,translateY:p,coordinate:n})}}function wl(e){"@babel/helpers - typeof";return wl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wl(e)}function PN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function jN(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?PN(Object(n),!0).forEach(function(r){b1(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function XZ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function QZ(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,z3(r.key),r)}}function ZZ(e,t,n){return t&&QZ(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function JZ(e,t,n){return t=ih(t),eJ(e,B3()?Reflect.construct(t,n||[],ih(e).constructor):t.apply(e,n))}function eJ(e,t){if(t&&(wl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return tJ(e)}function tJ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function B3(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(B3=function(){return!!e})()}function ih(e){return ih=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ih(e)}function nJ(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&y1(e,t)}function y1(e,t){return y1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},y1(e,t)}function b1(e,t,n){return t=z3(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function z3(e){var t=rJ(e,"string");return wl(t)=="symbol"?t:t+""}function rJ(e,t){if(wl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(wl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var CN=1,iJ=(function(e){function t(){var n;XZ(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=JZ(this,t,[].concat(i)),b1(n,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),b1(n,"handleKeyDown",function(a){if(a.key==="Escape"){var l,c,d,f;n.setState({dismissed:!0,dismissedAtCoordinate:{x:(l=(c=n.props.coordinate)===null||c===void 0?void 0:c.x)!==null&&l!==void 0?l:0,y:(d=(f=n.props.coordinate)===null||f===void 0?void 0:f.y)!==null&&d!==void 0?d:0}})}}),n}return nJ(t,e),ZZ(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-this.state.lastBoundingBox.width)>CN||Math.abs(r.height-this.state.lastBoundingBox.height)>CN)&&this.setState({lastBoundingBox:{width:r.width,height:r.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var r,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((r=this.props.coordinate)===null||r===void 0?void 0:r.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var r=this,i=this.props,o=i.active,a=i.allowEscapeViewBox,l=i.animationDuration,c=i.animationEasing,d=i.children,f=i.coordinate,p=i.hasPayload,g=i.isAnimationActive,v=i.offset,S=i.position,x=i.reverseDirection,y=i.useTranslate3d,w=i.viewBox,A=i.wrapperStyle,_=YZ({allowEscapeViewBox:a,coordinate:f,offsetTopLeft:v,position:S,reverseDirection:x,tooltipBox:this.state.lastBoundingBox,useTranslate3d:y,viewBox:w}),j=_.cssClasses,k=_.cssProperties,O=jN(jN({transition:g&&o?"transform ".concat(l,"ms ").concat(c):void 0},k),{},{pointerEvents:"none",visibility:!this.state.dismissed&&o&&p?"visible":"hidden",position:"absolute",top:0,left:0},A);return W.createElement("div",{tabIndex:-1,className:j,style:O,ref:function(N){r.wrapperNode=N}},d)}}])})(P.PureComponent),oJ=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Xl={isSsr:oJ()};function Sl(e){"@babel/helpers - typeof";return Sl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Sl(e)}function TN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function NN(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?TN(Object(n),!0).forEach(function(r){M_(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function aJ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sJ(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,q3(r.key),r)}}function lJ(e,t,n){return t&&sJ(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function uJ(e,t,n){return t=oh(t),cJ(e,U3()?Reflect.construct(t,n||[],oh(e).constructor):t.apply(e,n))}function cJ(e,t){if(t&&(Sl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return dJ(e)}function dJ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function U3(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(U3=function(){return!!e})()}function oh(e){return oh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},oh(e)}function fJ(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&x1(e,t)}function x1(e,t){return x1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},x1(e,t)}function M_(e,t,n){return t=q3(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function q3(e){var t=pJ(e,"string");return Sl(t)=="symbol"?t:t+""}function pJ(e,t){if(Sl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Sl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function hJ(e){return e.dataKey}function mJ(e,t){return W.isValidElement(e)?W.cloneElement(e,t):typeof e=="function"?W.createElement(e,t):W.createElement(qZ,t)}var Cr=(function(e){function t(){return aJ(this,t),uJ(this,t,arguments)}return fJ(t,e),lJ(t,[{key:"render",value:function(){var r=this,i=this.props,o=i.active,a=i.allowEscapeViewBox,l=i.animationDuration,c=i.animationEasing,d=i.content,f=i.coordinate,p=i.filterNull,g=i.isAnimationActive,v=i.offset,S=i.payload,x=i.payloadUniqBy,y=i.position,w=i.reverseDirection,A=i.useTranslate3d,_=i.viewBox,j=i.wrapperStyle,k=S??[];p&&k.length&&(k=R3(S.filter(function(T){return T.value!=null&&(T.hide!==!0||r.props.includeHidden)}),x,hJ));var O=k.length>0;return W.createElement(iJ,{allowEscapeViewBox:a,animationDuration:l,animationEasing:c,isAnimationActive:g,active:o,coordinate:f,hasPayload:O,offset:v,position:y,reverseDirection:w,useTranslate3d:A,viewBox:_,wrapperStyle:j},mJ(d,NN(NN({},this.props),{},{payload:k})))}}])})(P.PureComponent);M_(Cr,"displayName","Tooltip");M_(Cr,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Xl.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var a0,RN;function gJ(){if(RN)return a0;RN=1;var e=Oi(),t=function(){return e.Date.now()};return a0=t,a0}var s0,IN;function vJ(){if(IN)return s0;IN=1;var e=/\s/;function t(n){for(var r=n.length;r--&&e.test(n.charAt(r)););return r}return s0=t,s0}var l0,$N;function yJ(){if($N)return l0;$N=1;var e=vJ(),t=/^\s+/;function n(r){return r&&r.slice(0,e(r)+1).replace(t,"")}return l0=n,l0}var u0,MN;function H3(){if(MN)return u0;MN=1;var e=yJ(),t=Zo(),n=Kl(),r=NaN,i=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,a=/^0o[0-7]+$/i,l=parseInt;function c(d){if(typeof d=="number")return d;if(n(d))return r;if(t(d)){var f=typeof d.valueOf=="function"?d.valueOf():d;d=t(f)?f+"":f}if(typeof d!="string")return d===0?d:+d;d=e(d);var p=o.test(d);return p||a.test(d)?l(d.slice(2),p?2:8):i.test(d)?r:+d}return u0=c,u0}var c0,DN;function bJ(){if(DN)return c0;DN=1;var e=Zo(),t=gJ(),n=H3(),r="Expected a function",i=Math.max,o=Math.min;function a(l,c,d){var f,p,g,v,S,x,y=0,w=!1,A=!1,_=!0;if(typeof l!="function")throw new TypeError(r);c=n(c)||0,e(d)&&(w=!!d.leading,A="maxWait"in d,g=A?i(n(d.maxWait)||0,c):g,_="trailing"in d?!!d.trailing:_);function j(L){var B=f,U=p;return f=p=void 0,y=L,v=l.apply(U,B),v}function k(L){return y=L,S=setTimeout(N,c),w?j(L):v}function O(L){var B=L-x,U=L-y,G=c-B;return A?o(G,g-U):G}function T(L){var B=L-x,U=L-y;return x===void 0||B>=c||B<0||A&&U>=g}function N(){var L=t();if(T(L))return I(L);S=setTimeout(N,O(L))}function I(L){return S=void 0,_&&f?j(L):(f=p=void 0,v)}function z(){S!==void 0&&clearTimeout(S),y=0,f=x=p=S=void 0}function F(){return S===void 0?v:I(t())}function D(){var L=t(),B=T(L);if(f=arguments,p=this,x=L,B){if(S===void 0)return k(x);if(A)return clearTimeout(S),S=setTimeout(N,c),j(x)}return S===void 0&&(S=setTimeout(N,c)),v}return D.cancel=z,D.flush=F,D}return c0=a,c0}var d0,LN;function xJ(){if(LN)return d0;LN=1;var e=bJ(),t=Zo(),n="Expected a function";function r(i,o,a){var l=!0,c=!0;if(typeof i!="function")throw new TypeError(n);return t(a)&&(l="leading"in a?!!a.leading:l,c="trailing"in a?!!a.trailing:c),e(i,o,{leading:l,maxWait:o,trailing:c})}return d0=r,d0}var wJ=xJ();const W3=lt(wJ);function $c(e){"@babel/helpers - typeof";return $c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$c(e)}function FN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ip(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?FN(Object(n),!0).forEach(function(r){SJ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function SJ(e,t,n){return t=_J(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _J(e){var t=AJ(e,"string");return $c(t)=="symbol"?t:t+""}function AJ(e,t){if($c(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if($c(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function EJ(e,t){return jJ(e)||PJ(e,t)||OJ(e,t)||kJ()}function kJ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
278In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function OJ(e,t){if(e){if(typeof e=="string")return BN(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return BN(e,t)}}function BN(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function PJ(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,l=[],c=!0,d=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(f){d=!0,i=f}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(d)throw i}}return l}}function jJ(e){if(Array.isArray(e))return e}var D_=P.forwardRef(function(e,t){var n=e.aspect,r=e.initialDimension,i=r===void 0?{width:-1,height:-1}:r,o=e.width,a=o===void 0?"100%":o,l=e.height,c=l===void 0?"100%":l,d=e.minWidth,f=d===void 0?0:d,p=e.minHeight,g=e.maxHeight,v=e.children,S=e.debounce,x=S===void 0?0:S,y=e.id,w=e.className,A=e.onResize,_=e.style,j=_===void 0?{}:_,k=P.useRef(null),O=P.useRef();O.current=A,P.useImperativeHandle(t,function(){return Object.defineProperty(k.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),k.current},configurable:!0})});var T=P.useState({containerWidth:i.width,containerHeight:i.height}),N=EJ(T,2),I=N[0],z=N[1],F=P.useCallback(function(L,B){z(function(U){var G=Math.round(L),Z=Math.round(B);return U.containerWidth===G&&U.containerHeight===Z?U:{containerWidth:G,containerHeight:Z}})},[]);P.useEffect(function(){var L=function(ee){var R,q=ee[0].contentRect,V=q.width,M=q.height;F(V,M),(R=O.current)===null||R===void 0||R.call(O,V,M)};x>0&&(L=W3(L,x,{trailing:!0,leading:!1}));var B=new ResizeObserver(L),U=k.current.getBoundingClientRect(),G=U.width,Z=U.height;return F(G,Z),B.observe(k.current),function(){B.disconnect()}},[F,x]);var D=P.useMemo(function(){var L=I.containerWidth,B=I.containerHeight;if(L<0||B<0)return null;ti(ja(a)||ja(c),`The width(%s) and height(%s) are both fixed numbers,
279       maybe you don't need to use a ResponsiveContainer.`,a,c),ti(!n||n>0,"The aspect(%s) must be greater than zero.",n);var U=ja(a)?L:a,G=ja(c)?B:c;n&&n>0&&(U?G=U/n:G&&(U=G*n),g&&G>g&&(G=g)),ti(U>0||G>0,`The width(%s) and height(%s) of chart should be greater than 0,
280       please check the style of container, or the props width(%s) and height(%s),
281       or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
282       height and width.`,U,G,a,c,f,p,n);var Z=!Array.isArray(v)&&Gi(v.type).endsWith("Chart");return W.Children.map(v,function(Y){return W.isValidElement(Y)?P.cloneElement(Y,ip({width:U,height:G},Z?{style:ip({height:"100%",width:"100%",maxHeight:G,maxWidth:U},Y.props.style)}:{})):Y})},[n,v,c,g,p,f,I,a]);return W.createElement("div",{id:y?"".concat(y):void 0,className:Xe("recharts-responsive-container",w),style:ip(ip({},j),{},{width:a,height:c,minWidth:f,minHeight:p,maxHeight:g}),ref:k},D)}),_m=function(t){return null};_m.displayName="Cell";function Mc(e){"@babel/helpers - typeof";return Mc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mc(e)}function zN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function w1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zN(Object(n),!0).forEach(function(r){CJ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function CJ(e,t,n){return t=TJ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function TJ(e){var t=NJ(e,"string");return Mc(t)=="symbol"?t:t+""}function NJ(e,t){if(Mc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Mc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ms={widthCache:{},cacheCount:0},RJ=2e3,IJ={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},UN="recharts_measurement_span";function $J(e){var t=w1({},e);return Object.keys(t).forEach(function(n){t[n]||delete t[n]}),t}var gc=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Xl.isSsr)return{width:0,height:0};var r=$J(n),i=JSON.stringify({text:t,copyStyle:r});if(Ms.widthCache[i])return Ms.widthCache[i];try{var o=document.getElementById(UN);o||(o=document.createElement("span"),o.setAttribute("id",UN),o.setAttribute("aria-hidden","true"),document.body.appendChild(o));var a=w1(w1({},IJ),r);Object.assign(o.style,a),o.textContent="".concat(t);var l=o.getBoundingClientRect(),c={width:l.width,height:l.height};return Ms.widthCache[i]=c,++Ms.cacheCount>RJ&&(Ms.cacheCount=0,Ms.widthCache={}),c}catch{return{width:0,height:0}}},MJ=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function Dc(e){"@babel/helpers - typeof";return Dc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dc(e)}function ah(e,t){return BJ(e)||FJ(e,t)||LJ(e,t)||DJ()}function DJ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
283In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function LJ(e,t){if(e){if(typeof e=="string")return qN(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return qN(e,t)}}function qN(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function FJ(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,l=[],c=!0,d=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(f){d=!0,i=f}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(d)throw i}}return l}}function BJ(e){if(Array.isArray(e))return e}function zJ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function HN(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,qJ(r.key),r)}}function UJ(e,t,n){return t&&HN(e.prototype,t),n&&HN(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function qJ(e){var t=HJ(e,"string");return Dc(t)=="symbol"?t:t+""}function HJ(e,t){if(Dc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Dc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var WN=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,VN=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,WJ=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,VJ=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,V3={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},KJ=Object.keys(V3),Vs="NaN";function GJ(e,t){return e*V3[t]}var op=(function(){function e(t,n){zJ(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=""),n!==""&&!WJ.test(n)&&(this.num=NaN,this.unit=""),KJ.includes(n)&&(this.num=GJ(t,n),this.unit="px")}return UJ(e,[{key:"add",value:function(n){return this.unit!==n.unit?new e(NaN,""):new e(this.num+n.num,this.unit)}},{key:"subtract",value:function(n){return this.unit!==n.unit?new e(NaN,""):new e(this.num-n.num,this.unit)}},{key:"multiply",value:function(n){return this.unit!==""&&n.unit!==""&&this.unit!==n.unit?new e(NaN,""):new e(this.num*n.num,this.unit||n.unit)}},{key:"divide",value:function(n){return this.unit!==""&&n.unit!==""&&this.unit!==n.unit?new e(NaN,""):new e(this.num/n.num,this.unit||n.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}],[{key:"parse",value:function(n){var r,i=(r=VJ.exec(n))!==null&&r!==void 0?r:[],o=ah(i,3),a=o[1],l=o[2];return new e(parseFloat(a),l??"")}}])})();function K3(e){if(e.includes(Vs))return Vs;for(var t=e;t.includes("*")||t.includes("/");){var n,r=(n=WN.exec(t))!==null&&n!==void 0?n:[],i=ah(r,4),o=i[1],a=i[2],l=i[3],c=op.parse(o??""),d=op.parse(l??""),f=a==="*"?c.multiply(d):c.divide(d);if(f.isNaN())return Vs;t=t.replace(WN,f.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var p,g=(p=VN.exec(t))!==null&&p!==void 0?p:[],v=ah(g,4),S=v[1],x=v[2],y=v[3],w=op.parse(S??""),A=op.parse(y??""),_=x==="+"?w.add(A):w.subtract(A);if(_.isNaN())return Vs;t=t.replace(VN,_.toString())}return t}var KN=/\(([^()]*)\)/;function YJ(e){for(var t=e;t.includes("(");){var n=KN.exec(t),r=ah(n,2),i=r[1];t=t.replace(KN,K3(i))}return t}function XJ(e){var t=e.replace(/\s+/g,"");return t=YJ(t),t=K3(t),t}function QJ(e){try{return XJ(e)}catch{return Vs}}function f0(e){var t=QJ(e.slice(5,-1));return t===Vs?"":t}var ZJ=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],JJ=["dx","dy","angle","className","breakAll"];function S1(){return S1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},S1.apply(this,arguments)}function GN(e,t){if(e==null)return{};var n=eee(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function eee(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function YN(e,t){return iee(e)||ree(e,t)||nee(e,t)||tee()}
283function tee(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
284In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nee(e,t){if(e){if(typeof e=="string")return XN(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return XN(e,t)}}function XN(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ree(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,l=[],c=!0,d=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(f){d=!0,i=f}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(d)throw i}}return l}}function iee(e){if(Array.isArray(e))return e}var G3=/[ \f\n\r\t\v\u2028\u2029]+/,Y3=function(t){var n=t.children,r=t.breakAll,i=t.style;try{var o=[];nt(n)||(r?o=n.toString().split(""):o=n.toString().split(G3));var a=o.map(function(c){return{word:c,width:gc(c,i).width}}),l=r?0:gc(" ",i).width;return{wordsWithComputedWidth:a,spaceWidth:l}}catch{return null}},oee=function(t,n,r,i,o){var a=t.maxLines,l=t.children,c=t.style,d=t.breakAll,f=Se(a),p=l,g=function(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return U.reduce(function(G,Z){var Y=Z.word,ee=Z.width,R=G[G.length-1];if(R&&(i==null||o||R.width+ee+r<Number(i)))R.words.push(Y),R.width+=ee+r;else{var q={words:[Y],width:ee};G.push(q)}return G},[])},v=g(n),S=function(U){return U.reduce(function(G,Z){return G.width>Z.width?G:Z})};if(!f)return v;for(var x="…",y=function(U){var G=p.slice(0,U),Z=Y3({breakAll:d,style:c,children:G+x}).wordsWithComputedWidth,Y=g(Z),ee=Y.length>a||S(Y).width>Number(i);return[ee,Y]},w=0,A=p.length-1,_=0,j;w<=A&&_<=p.length-1;){var k=Math.floor((w+A)/2),O=k-1,T=y(O),N=YN(T,2),I=N[0],z=N[1],F=y(k),D=YN(F,1),L=D[0];if(!I&&!L&&(w=k+1),I&&L&&(A=k-1),!I&&L){j=z;break}_++}return j||v},QN=function(t){var n=nt(t)?[]:t.toString().split(G3);return[{words:n}]},aee=function(t){var n=t.width,r=t.scaleToFit,i=t.children,o=t.style,a=t.breakAll,l=t.maxLines;if((n||r)&&!Xl.isSsr){var c,d,f=Y3({breakAll:a,children:i,style:o});if(f){var p=f.wordsWithComputedWidth,g=f.spaceWidth;c=p,d=g}else return QN(i);return oee({breakAll:a,children:i,maxLines:l,style:o},c,d,n,r)}return QN(i)},ZN="#808080",Va=function(t){var n=t.x,r=n===void 0?0:n,i=t.y,o=i===void 0?0:i,a=t.lineHeight,l=a===void 0?"1em":a,c=t.capHeight,d=c===void 0?"0.71em":c,f=t.scaleToFit,p=f===void 0?!1:f,g=t.textAnchor,v=g===void 0?"start":g,S=t.verticalAnchor,x=S===void 0?"end":S,y=t.fill,w=y===void 0?ZN:y,A=GN(t,ZJ),_=P.useMemo(function(){return aee({breakAll:A.breakAll,children:A.children,maxLines:A.maxLines,scaleToFit:p,style:A.style,width:A.width})},[A.breakAll,A.children,A.maxLines,p,A.style,A.width]),j=A.dx,k=A.dy,O=A.angle,T=A.className,N=A.breakAll,I=GN(A,JJ);if(!sn(r)||!sn(o))return null;var z=r+(Se(j)?j:0),F=o+(Se(k)?k:0),D;switch(x){case"start":D=f0("calc(".concat(d,")"));break;case"middle":D=f0("calc(".concat((_.length-1)/2," * -").concat(l," + (").concat(d," / 2))"));break;default:D=f0("calc(".concat(_.length-1," * -").concat(l,")"));break}var L=[];if(p){var B=_[0].width,U=A.width;L.push("scale(".concat((Se(U)?U/B:1)/B,")"))}return O&&L.push("rotate(".concat(O,", ").concat(z,", ").concat(F,")")),L.length&&(I.transform=L.join(" ")),W.createElement("text",S1({},Ue(I,!0),{x:z,y:F,className:Xe("recharts-text",T),textAnchor:v,fill:w.includes("url")?ZN:w}),_.map(function(G,Z){var Y=G.words.join(N?"":" ");return W.createElement("tspan",{x:z,dy:Z===0?D:l,key:"".concat(Y,"-").concat(Z)},Y)}))};function Go(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function see(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function L_(e){let t,n,r;e.length!==2?(t=Go,n=(l,c)=>Go(e(l),c),r=(l,c)=>e(l)-c):(t=e===Go||e===see?e:lee,n=e,r=e);function i(l,c,d=0,f=l.length){if(d<f){if(t(c,c)!==0)return f;do{const p=d+f>>>1;n(l[p],c)<0?d=p+1:f=p}while(d<f)}return d}function o(l,c,d=0,f=l.length){if(d<f){if(t(c,c)!==0)return f;do{const p=d+f>>>1;n(l[p],c)<=0?d=p+1:f=p}while(d<f)}return d}function a(l,c,d=0,f=l.length){const p=i(l,c,d,f-1);return p>d&&r(l[p-1],c)>-r(l[p],c)?p-1:p}return{left:i,center:a,right:o}}function lee(){return 0}function X3(e){return e===null?NaN:+e}function*uee(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const cee=L_(Go),Pd=cee.right;L_(X3).center;class JN extends Map{constructor(t,n=pee){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,i]of t)this.set(r,i)}get(t){return super.get(eR(this,t))}has(t){return super.has(eR(this,t))}set(t,n){return super.set(dee(this,t),n)}delete(t){return super.delete(fee(this,t))}}function eR({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function dee({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function fee({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function pee(e){return e!==null&&typeof e=="object"?e.valueOf():e}function hee(e=Go){if(e===Go)return Q3;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function Q3(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const mee=Math.sqrt(50),gee=Math.sqrt(10),vee=Math.sqrt(2);
284function sh(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),o=r/Math.pow(10,i),a=o>=mee?10:o>=gee?5:o>=vee?2:1;let l,c,d;return i<0?(d=Math.pow(10,-i)/a,l=Math.round(e*d),c=Math.round(t*d),l/d<e&&++l,c/d>t&&--c,d=-d):(d=Math.pow(10,i)*a,l=Math.round(e/d),c=Math.round(t/d),l*d<e&&++l,c*d>t&&--c),c<l&&.5<=n&&n<2?sh(e,t,n*2):[l,c,d]}function _1(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[i,o,a]=r?sh(t,e,n):sh(e,t,n);if(!(o>=i))return[];const l=o-i+1,c=new Array(l);if(r)if(a<0)for(let d=0;d<l;++d)c[d]=(o-d)/-a;else for(let d=0;d<l;++d)c[d]=(o-d)*a;else if(a<0)for(let d=0;d<l;++d)c[d]=(i+d)/-a;else for(let d=0;d<l;++d)c[d]=(i+d)*a;return c}function A1(e,t,n){return t=+t,e=+e,n=+n,sh(e,t,n)[2]}function E1(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?A1(t,e,n):A1(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function tR(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function nR(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function Z3(e,t,n=0,r=1/0,i){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(i=i===void 0?Q3:hee(i);r>n;){if(r-n>600){const c=r-n+1,d=t-n+1,f=Math.log(c),p=.5*Math.exp(2*f/3),g=.5*Math.sqrt(f*p*(c-p)/c)*(d-c/2<0?-1:1),v=Math.max(n,Math.floor(t-d*p/c+g)),S=Math.min(r,Math.floor(t+(c-d)*p/c+g));Z3(e,t,v,S,i)}const o=e[t];let a=n,l=r;for(Gu(e,n,t),i(e[r],o)>0&&Gu(e,n,r);a<l;){for(Gu(e,a,l),++a,--l;i(e[a],o)<0;)++a;for(;i(e[l],o)>0;)--l}i(e[n],o)===0?Gu(e,n,l):(++l,Gu(e,l,r)),l<=t&&(n=l+1),t<=l&&(r=l-1)}return e}function Gu(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function yee(e,t,n){if(e=Float64Array.from(uee(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return nR(e);if(t>=1)return tR(e);var r,i=(r-1)*t,o=Math.floor(i),a=tR(Z3(e,o).subarray(0,o+1)),l=nR(e.subarray(o+1));return a+(l-a)*(i-o)}}function bee(e,t,n=X3){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,o=Math.floor(i),a=+n(e[o],o,e),l=+n(e[o+1],o+1,e);return a+(l-a)*(i-o)}}function xee(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,o=new Array(i);++r<i;)o[r]=e+r*n;return o}function Lr(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function ao(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const k1=Symbol("implicit");function F_(){var e=new JN,t=[],n=[],r=k1;function i(o){let a=e.get(o);if(a===void 0){if(r!==k1)return r;e.set(o,a=t.push(o)-1)}return n[a%n.length]}return i.domain=function(o){if(!arguments.length)return t.slice();t=[],e=new JN;for(const a of o)e.has(a)||e.set(a,t.push(a)-1);return i},i.range=function(o){return arguments.length?(n=Array.from(o),i):n.slice()},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return F_(t,n).unknown(r)},Lr.apply(i,arguments),i}function Lc(){var e=F_().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,o,a,l=!1,c=0,d=0,f=.5;delete e.unknown;function p(){var g=t().length,v=i<r,S=v?i:r,x=v?r:i;o=(x-S)/Math.max(1,g-c+d*2),l&&(o=Math.floor(o)),S+=(x-S-o*(g-c))*f,a=o*(1-c),l&&(S=Math.round(S),a=Math.round(a));var y=xee(g).map(function(w){return S+o*w});return n(v?y.reverse():y)}return e.domain=function(g){return arguments.length?(t(g),p()):t()},e.range=function(g){return arguments.length?([r,i]=g,r=+r,i=+i,p()):[r,i]},e.rangeRound=function(g){return[r,i]=g,r=+r,i=+i,l=!0,p()},e.bandwidth=function(){return a},e.step=function(){return o},e.round=function(g){return arguments.length?(l=!!g,p()):l},e.padding=function(g){return arguments.length?(c=Math.min(1,d=+g),p()):c},e.paddingInner=function(g){return arguments.length?(c=Math.min(1,g),p()):c},e.paddingOuter=function(g){return arguments.length?(d=+g,p()):d},e.align=function(g){return arguments.length?(f=Math.max(0,Math.min(1,g)),p()):f},e.copy=function(){return Lc(t(),[r,i]).round(l).paddingInner(c).paddingOuter(d).align(f)},Lr.apply(p(),arguments)}function J3(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return J3(t())},e}function vc(){return J3(Lc.apply(null,arguments).paddingInner(1))}function B_(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function e4(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}
vendor: 11,284 bytes, line 284
284function jd(){}var Fc=.7,lh=1/Fc,el="\\s*([+-]?\\d+)\\s*",Bc="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",wi="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",wee=/^#([0-9a-f]{3,8})$/,See=new RegExp(`^rgb\\(${el},${el},${el}\\)$`),_ee=new RegExp(`^rgb\\(${wi},${wi},${wi}\\)$`),Aee=new RegExp(`^rgba\\(${el},${el},${el},${Bc}\\)$`),Eee=new RegExp(`^rgba\\(${wi},${wi},${wi},${Bc}\\)$`),kee=new RegExp(`^hsl\\(${Bc},${wi},${wi}\\)$`),Oee=new RegExp(`^hsla\\(${Bc},${wi},${wi},${Bc}\\)$`),rR={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};B_(jd,zc,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:iR,formatHex:iR,formatHex8:Pee,formatHsl:jee,formatRgb:oR,toString:oR});function iR(){return this.rgb().formatHex()}function Pee(){return this.rgb().formatHex8()}function jee(){return t4(this).formatHsl()}function oR(){return this.rgb().formatRgb()}function zc(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=wee.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?aR(t):n===3?new tr(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?ap(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?ap(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=See.exec(e))?new tr(t[1],t[2],t[3],1):(t=_ee.exec(e))?new tr(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Aee.exec(e))?ap(t[1],t[2],t[3],t[4]):(t=Eee.exec(e))?ap(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=kee.exec(e))?uR(t[1],t[2]/100,t[3]/100,1):(t=Oee.exec(e))?uR(t[1],t[2]/100,t[3]/100,t[4]):rR.hasOwnProperty(e)?aR(rR[e]):e==="transparent"?new tr(NaN,NaN,NaN,0):null}function aR(e){return new tr(e>>16&255,e>>8&255,e&255,1)}function ap(e,t,n,r){return r<=0&&(e=t=n=NaN),new tr(e,t,n,r)}function Cee(e){return e instanceof jd||(e=zc(e)),e?(e=e.rgb(),new tr(e.r,e.g,e.b,e.opacity)):new tr}function O1(e,t,n,r){return arguments.length===1?Cee(e):new tr(e,t,n,r??1)}function tr(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}B_(tr,O1,e4(jd,{brighter(e){return e=e==null?lh:Math.pow(lh,e),new tr(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Fc:Math.pow(Fc,e),new tr(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new tr(Ba(this.r),Ba(this.g),Ba(this.b),uh(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:sR,formatHex:sR,formatHex8:Tee,formatRgb:lR,toString:lR}));function sR(){return`#${Ca(this.r)}${Ca(this.g)}${Ca(this.b)}`}function Tee(){return`#${Ca(this.r)}${Ca(this.g)}${Ca(this.b)}${Ca((isNaN(this.opacity)?1:this.opacity)*255)}`}function lR(){const e=uh(this.opacity);return`${e===1?"rgb(":"rgba("}${Ba(this.r)}, ${Ba(this.g)}, ${Ba(this.b)}${e===1?")":`, ${e})`}`}function uh(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ba(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ca(e){return e=Ba(e),(e<16?"0":"")+e.toString(16)}function uR(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ei(e,t,n,r)}function t4(e){if(e instanceof ei)return new ei(e.h,e.s,e.l,e.opacity);if(e instanceof jd||(e=zc(e)),!e)return new ei;if(e instanceof ei)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,l=o-i,c=(o+i)/2;return l?(t===o?a=(n-r)/l+(n<r)*6:n===o?a=(r-t)/l+2:a=(t-n)/l+4,l/=c<.5?o+i:2-o-i,a*=60):l=c>0&&c<1?0:a,new ei(a,l,c,e.opacity)}function Nee(e,t,n,r){return arguments.length===1?t4(e):new ei(e,t,n,r??1)}function ei(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}B_(ei,Nee,e4(jd,{brighter(e){return e=e==null?lh:Math.pow(lh,e),new ei(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Fc:Math.pow(Fc,e),new ei(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new tr(p0(e>=240?e-240:e+120,i,r),p0(e,i,r),p0(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new ei(cR(this.h),sp(this.s),sp(this.l),uh(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=uh(this.opacity);return`${e===1?"hsl(":"hsla("}${cR(this.h)}, ${sp(this.s)*100}%, ${sp(this.l)*100}%${e===1?")":`, ${e})`}`}}));function cR(e){return e=(e||0)%360,e<0?e+360:e}function sp(e){return Math.max(0,Math.min(1,e||0))}function p0(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const z_=e=>()=>e;function Ree(e,t){return function(n){return e+n*t}}function Iee(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function $ee(e){return(e=+e)==1?n4:function(t,n){return n-t?Iee(t,n,e):z_(isNaN(t)?n:t)}}function n4(e,t){var n=t-e;return n?Ree(e,n):z_(isNaN(e)?t:e)}const dR=(function e(t){var n=$ee(t);function r(i,o){var a=n((i=O1(i)).r,(o=O1(o)).r),l=n(i.g,o.g),c=n(i.b,o.b),d=n4(i.opacity,o.opacity);return function(f){return i.r=a(f),i.g=l(f),i.b=c(f),i.opacity=d(f),i+""}}return r.gamma=e,r})(1);function Mee(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(o){for(i=0;i<n;++i)r[i]=e[i]*(1-o)+t[i]*o;return r}}function Dee(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Lee(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),o=new Array(n),a;for(a=0;a<r;++a)i[a]=Ql(e[a],t[a]);for(;a<n;++a)o[a]=t[a];return function(l){for(a=0;a<r;++a)o[a]=i[a](l);return o}}function Fee(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function ch(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Bee(e,t){var n={},r={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?n[i]=Ql(e[i],t[i]):r[i]=t[i];return function(o){for(i in n)r[i]=n[i](o);return r}}var P1=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,h0=new RegExp(P1.source,"g");function zee(e){return function(){return e}}function Uee(e){return function(t){return e(t)+""}}function qee(e,t){var n=P1.lastIndex=h0.lastIndex=0,r,i,o,a=-1,l=[],c=[];for(e=e+"",t=t+"";(r=P1.exec(e))&&(i=h0.exec(t));)(o=i.index)>n&&(o=t.slice(n,o),l[a]?l[a]+=o:l[++a]=o),(r=r[0])===(i=i[0])?l[a]?l[a]+=i:l[++a]=i:(l[++a]=null,c.push({i:a,x:ch(r,i)})),n=h0.lastIndex;return n<t.length&&(o=t.slice(n),l[a]?l[a]+=o:l[++a]=o),l.length<2?c[0]?Uee(c[0].x):zee(t):(t=c.length,function(d){for(var f=0,p;f<t;++f)l[(p=c[f]).i]=p.x(d);return l.join("")})}function Ql(e,t){var n=typeof t,r;return t==null||n==="boolean"?z_(t):(n==="number"?ch:n==="string"?(r=zc(t))?(t=r,dR):qee:t instanceof zc?dR:t instanceof Date?Fee:Dee(t)?Mee:Array.isArray(t)?Lee:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?Bee:ch)(e,t)}function U_(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function Hee(e,t){t===void 0&&(t=e,e=Ql);for(var n=0,r=t.length-1,i=t[0],o=new Array(r<0?0:r);n<r;)o[n]=e(i,i=t[++n]);return function(a){var l=Math.max(0,Math.min(r-1,Math.floor(a*=r)));return o[l](a-l)}}function Wee(e){return function(){return e}}function dh(e){return+e}var fR=[0,1];function Hn(e){return e}function j1(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:Wee(isNaN(t)?NaN:.5)}function Vee(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function Kee(e,t,n){var r=e[0],i=e[1],o=t[0],a=t[1];return i<r?(r=j1(i,r),o=n(a,o)):(r=j1(r,i),o=n(o,a)),function(l){return o(r(l))}}function Gee(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),o=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)i[a]=j1(e[a],e[a+1]),o[a]=n(t[a],t[a+1]);return function(l){var c=Pd(e,l,1,r)-1;return o[c](i[c](l))}}function Cd(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Am(){var e=fR,t=fR,n=Ql,r,i,o,a=Hn,l,c,d;function f(){var g=Math.min(e.length,t.length);return a!==Hn&&(a=Vee(e[0],e[g-1])),l=g>2?Gee:Kee,c=d=null,p}function p(g){return g==null||isNaN(g=+g)?o:(c||(c=l(e.map(r),t,n)))(r(a(g)))}return p.invert=function(g){return a(i((d||(d=l(t,e.map(r),ch)))(g)))},p.domain=function(g){return arguments.length?(e=Array.from(g,dh),f()):e.slice()},p.range=function(g){return arguments.length?(t=Array.from(g),f()):t.slice()},p.rangeRound=function(g){return t=Array.from(g),n=U_,f()},p.clamp=function(g){return arguments.length?(a=g?!0:Hn,f()):a!==Hn},p.interpolate=function(g){return arguments.length?(n=g,f()):n},p.unknown=function(g){return arguments.length?(o=g,p):o},function(g,v){return r=g,i=v,f()}}function q_(){return Am()(Hn,Hn)}
vendor: 5,612 bytes, line 284
284function Yee(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function fh(e,t){if(!isFinite(e)||e===0)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function _l(e){return e=fh(Math.abs(e)),e?e[1]:NaN}function Xee(e,t){return function(n,r){for(var i=n.length,o=[],a=0,l=e[0],c=0;i>0&&l>0&&(c+l+1>r&&(l=Math.max(1,r-c)),o.push(n.substring(i-=l,i+l)),!((c+=l+1)>r));)l=e[a=(a+1)%e.length];return o.reverse().join(t)}}function Qee(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var Zee=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Uc(e){if(!(t=Zee.exec(e)))throw new Error("invalid format: "+e);var t;return new H_({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Uc.prototype=H_.prototype;function H_(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}H_.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function Jee(e){e:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case".":r=i=n;break;case"0":r===0&&(r=n),i=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var ph;function ete(e,t){var n=fh(e,t);if(!n)return ph=void 0,e.toPrecision(t);var r=n[0],i=n[1],o=i-(ph=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+fh(e,Math.max(0,t+o-1))[0]}function pR(e,t){var n=fh(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const hR={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:Yee,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>pR(e*100,t),r:pR,s:ete,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function mR(e){return e}var gR=Array.prototype.map,vR=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function tte(e){var t=e.grouping===void 0||e.thousands===void 0?mR:Xee(gR.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",o=e.numerals===void 0?mR:Qee(gR.call(e.numerals,String)),a=e.percent===void 0?"%":e.percent+"",l=e.minus===void 0?"−":e.minus+"",c=e.nan===void 0?"NaN":e.nan+"";function d(p,g){p=Uc(p);var v=p.fill,S=p.align,x=p.sign,y=p.symbol,w=p.zero,A=p.width,_=p.comma,j=p.precision,k=p.trim,O=p.type;O==="n"?(_=!0,O="g"):hR[O]||(j===void 0&&(j=12),k=!0,O="g"),(w||v==="0"&&S==="=")&&(w=!0,v="0",S="=");var T=(g&&g.prefix!==void 0?g.prefix:"")+(y==="$"?n:y==="#"&&/[boxX]/.test(O)?"0"+O.toLowerCase():""),N=(y==="$"?r:/[%p]/.test(O)?a:"")+(g&&g.suffix!==void 0?g.suffix:""),I=hR[O],z=/[defgprs%]/.test(O);j=j===void 0?6:/[gprs]/.test(O)?Math.max(1,Math.min(21,j)):Math.max(0,Math.min(20,j));function F(D){var L=T,B=N,U,G,Z;if(O==="c")B=I(D)+B,D="";else{D=+D;var Y=D<0||1/D<0;if(D=isNaN(D)?c:I(Math.abs(D),j),k&&(D=Jee(D)),Y&&+D==0&&x!=="+"&&(Y=!1),L=(Y?x==="("?x:l:x==="-"||x==="("?"":x)+L,B=(O==="s"&&!isNaN(D)&&ph!==void 0?vR[8+ph/3]:"")+B+(Y&&x==="("?")":""),z){for(U=-1,G=D.length;++U<G;)if(Z=D.charCodeAt(U),48>Z||Z>57){B=(Z===46?i+D.slice(U+1):D.slice(U))+B,D=D.slice(0,U);break}}}_&&!w&&(D=t(D,1/0));var ee=L.length+D.length+B.length,R=ee<A?new Array(A-ee+1).join(v):"";switch(_&&w&&(D=t(R+D,R.length?A-B.length:1/0),R=""),S){case"<":D=L+D+B+R;break;case"=":D=L+R+D+B;break;case"^":D=R.slice(0,ee=R.length>>1)+L+D+B+R.slice(ee);break;default:D=R+L+D+B;break}return o(D)}return F.toString=function(){return p+""},F}function f(p,g){var v=Math.max(-8,Math.min(8,Math.floor(_l(g)/3)))*3,S=Math.pow(10,-v),x=d((p=Uc(p),p.type="f",p),{suffix:vR[8+v/3]});return function(y){return x(S*y)}}return{format:d,formatPrefix:f}}var lp,W_,r4;nte({thousands:",",grouping:[3],currency:["$",""]});function nte(e){return lp=tte(e),W_=lp.format,r4=lp.formatPrefix,lp}function rte(e){return Math.max(0,-_l(Math.abs(e)))}function ite(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(_l(t)/3)))*3-_l(Math.abs(e)))}function ote(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,_l(t)-_l(e))+1}function i4(e,t,n,r){var i=E1(e,t,n),o;switch(r=Uc(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(o=ite(i,a))&&(r.precision=o),r4(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=ote(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=rte(i))&&(r.precision=o-(r.type==="%")*2);break}}return W_(r)}function Jo(e){var t=e.domain;return e.ticks=function(n){var r=t();return _1(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return i4(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);
vendor: 4,449 bytes, line 284
284var r=t(),i=0,o=r.length-1,a=r[i],l=r[o],c,d,f=10;for(l<a&&(d=a,a=l,l=d,d=i,i=o,o=d);f-- >0;){if(d=A1(a,l,n),d===c)return r[i]=a,r[o]=l,t(r);if(d>0)a=Math.floor(a/d)*d,l=Math.ceil(l/d)*d;else if(d<0)a=Math.ceil(a*d)/d,l=Math.floor(l*d)/d;else break;c=d}return e},e}function hh(){var e=q_();return e.copy=function(){return Cd(e,hh())},Lr.apply(e,arguments),Jo(e)}function o4(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,dh),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return o4(e).unknown(t)},e=arguments.length?Array.from(e,dh):[0,1],Jo(n)}function a4(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],o=e[r],a;return o<i&&(a=n,n=r,r=a,a=i,i=o,o=a),e[n]=t.floor(i),e[r]=t.ceil(o),e}function yR(e){return Math.log(e)}function bR(e){return Math.exp(e)}function ate(e){return-Math.log(-e)}function ste(e){return-Math.exp(-e)}function lte(e){return isFinite(e)?+("1e"+e):e<0?0:e}function ute(e){return e===10?lte:e===Math.E?Math.exp:t=>Math.pow(e,t)}function cte(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function xR(e){return(t,n)=>-e(-t,n)}function V_(e){const t=e(yR,bR),n=t.domain;let r=10,i,o;function a(){return i=cte(r),o=ute(r),n()[0]<0?(i=xR(i),o=xR(o),e(ate,ste)):e(yR,bR),t}return t.base=function(l){return arguments.length?(r=+l,a()):r},t.domain=function(l){return arguments.length?(n(l),a()):n()},t.ticks=l=>{const c=n();let d=c[0],f=c[c.length-1];const p=f<d;p&&([d,f]=[f,d]);let g=i(d),v=i(f),S,x;const y=l==null?10:+l;let w=[];if(!(r%1)&&v-g<y){if(g=Math.floor(g),v=Math.ceil(v),d>0){for(;g<=v;++g)for(S=1;S<r;++S)if(x=g<0?S/o(-g):S*o(g),!(x<d)){if(x>f)break;w.push(x)}}else for(;g<=v;++g)for(S=r-1;S>=1;--S)if(x=g>0?S/o(-g):S*o(g),!(x<d)){if(x>f)break;w.push(x)}w.length*2<y&&(w=_1(d,f,y))}else w=_1(g,v,Math.min(v-g,y)).map(o);return p?w.reverse():w},t.tickFormat=(l,c)=>{if(l==null&&(l=10),c==null&&(c=r===10?"s":","),typeof c!="function"&&(!(r%1)&&(c=Uc(c)).precision==null&&(c.trim=!0),c=W_(c)),l===1/0)return c;const d=Math.max(1,r*l/t.ticks().length);return f=>{let p=f/o(Math.round(i(f)));return p*r<r-.5&&(p*=r),p<=d?c(f):""}},t.nice=()=>n(a4(n(),{floor:l=>o(Math.floor(i(l))),ceil:l=>o(Math.ceil(i(l)))})),t}function s4(){const e=V_(Am()).domain([1,10]);return e.copy=()=>Cd(e,s4()).base(e.base()),Lr.apply(e,arguments),e}function wR(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function SR(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function K_(e){var t=1,n=e(wR(t),SR(t));return n.constant=function(r){return arguments.length?e(wR(t=+r),SR(t)):t},Jo(n)}function l4(){var e=K_(Am());return e.copy=function(){return Cd(e,l4()).constant(e.constant())},Lr.apply(e,arguments)}function _R(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function dte(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function fte(e){return e<0?-e*e:e*e}function G_(e){var t=e(Hn,Hn),n=1;function r(){return n===1?e(Hn,Hn):n===.5?e(dte,fte):e(_R(n),_R(1/n))}return t.exponent=function(i){return arguments.length?(n=+i,r()):n},Jo(t)}function Y_(){var e=G_(Am());return e.copy=function(){return Cd(e,Y_()).exponent(e.exponent())},Lr.apply(e,arguments),e}function pte(){return Y_.apply(null,arguments).exponent(.5)}function AR(e){return Math.sign(e)*e*e}function hte(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function u4(){var e=q_(),t=[0,1],n=!1,r;function i(o){var a=hte(e(o));return isNaN(a)?r:n?Math.round(a):a}return i.invert=function(o){return e.invert(AR(o))},i.domain=function(o){return arguments.length?(e.domain(o),i):e.domain()},i.range=function(o){return arguments.length?(e.range((t=Array.from(o,dh)).map(AR)),i):t.slice()},i.rangeRound=function(o){return i.range(o).round(!0)},i.round=function(o){return arguments.length?(n=!!o,i):n},i.clamp=function(o){return arguments.length?(e.clamp(o),i):e.clamp()},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return u4(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},Lr.apply(i,arguments),Jo(i)}function c4(){var e=[],t=[],n=[],r;function i(){var a=0,l=Math.max(1,t.length);for(n=new Array(l-1);++a<l;)n[a-1]=bee(e,a/l);return o}function o(a){return a==null||isNaN(a=+a)?r:t[Pd(n,a)]}return o.invertExtent=function(a){var l=t.indexOf(a);return l<0?[NaN,NaN]:[l>0?n[l-1]:e[0],l<n.length?n[l]:e[e.length-1]]}
284,o.domain=function(a){if(!arguments.length)return e.slice();e=[];for(let l of a)l!=null&&!isNaN(l=+l)&&e.push(l);return e.sort(Go),i()},o.range=function(a){return arguments.length?(t=Array.from(a),i()):t.slice()},o.unknown=function(a){return arguments.length?(r=a,o):r},o.quantiles=function(){return n.slice()},o.copy=function(){return c4().domain(e).range(t).unknown(r)},Lr.apply(o,arguments)}function d4(){var e=0,t=1,n=1,r=[.5],i=[0,1],o;function a(c){return c!=null&&c<=c?i[Pd(r,c,0,n)]:o}function l(){var c=-1;for(r=new Array(n);++c<n;)r[c]=((c+1)*t-(c-n)*e)/(n+1);return a}return a.domain=function(c){return arguments.length?([e,t]=c,e=+e,t=+t,l()):[e,t]},a.range=function(c){return arguments.length?(n=(i=Array.from(c)).length-1,l()):i.slice()},a.invertExtent=function(c){var d=i.indexOf(c);return d<0?[NaN,NaN]:d<1?[e,r[0]]:d>=n?[r[n-1],t]:[r[d-1],r[d]]},a.unknown=function(c){return arguments.length&&(o=c),a},a.thresholds=function(){return r.slice()},a.copy=function(){return d4().domain([e,t]).range(i).unknown(o)},Lr.apply(Jo(a),arguments)}function f4(){var e=[.5],t=[0,1],n,r=1;function i(o){return o!=null&&o<=o?t[Pd(e,o,0,r)]:n}return i.domain=function(o){return arguments.length?(e=Array.from(o),r=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(o){return arguments.length?(t=Array.from(o),r=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(o){var a=t.indexOf(o);return[e[a-1],e[a]]},i.unknown=function(o){return arguments.length?(n=o,i):n},i.copy=function(){return f4().domain(e).range(t).unknown(n)},Lr.apply(i,arguments)}const m0=new Date,g0=new Date;function ln(e,t,n,r){function i(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return i.floor=o=>(e(o=new Date(+o)),o),i.ceil=o=>(e(o=new Date(o-1)),t(o,1),e(o),o),i.round=o=>{const a=i(o),l=i.ceil(o);return o-a<l-o?a:l},i.offset=(o,a)=>(t(o=new Date(+o),a==null?1:Math.floor(a)),o),i.range=(o,a,l)=>{const c=[];if(o=i.ceil(o),l=l==null?1:Math.floor(l),!(o<a)||!(l>0))return c;let d;do c.push(d=new Date(+o)),t(o,l),e(o);while(d<o&&o<a);return c},i.filter=o=>ln(a=>{if(a>=a)for(;e(a),!o(a);)a.setTime(a-1)},(a,l)=>{if(a>=a)if(l<0)for(;++l<=0;)for(;t(a,-1),!o(a););else for(;--l>=0;)for(;t(a,1),!o(a););}),n&&(i.count=(o,a)=>(m0.setTime(+o),g0.setTime(+a),e(m0),e(g0),Math.floor(n(m0,g0))),i.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?i.filter(r?a=>r(a)%o===0:a=>i.count(0,a)%o===0):i)),i}const mh=ln(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);mh.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?ln(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):mh);mh.range;const Wi=1e3,Ir=Wi*60,Vi=Ir*60,Zi=Vi*24,X_=Zi*7,ER=Zi*30,v0=Zi*365,Ta=ln(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Wi)},(e,t)=>(t-e)/Wi,e=>e.getUTCSeconds());Ta.range;const Q_=ln(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Wi)},(e,t)=>{e.setTime(+e+t*Ir)},(e,t)=>(t-e)/Ir,e=>e.getMinutes());Q_.range;const Z_=ln(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Ir)},(e,t)=>(t-e)/Ir,e=>e.getUTCMinutes());Z_.range;const J_=ln(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Wi-e.getMinutes()*Ir)},(e,t)=>{e.setTime(+e+t*Vi)},(e,t)=>(t-e)/Vi,e=>e.getHours());J_.range;const eA=ln(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Vi)},(e,t)=>(t-e)/Vi,e=>e.getUTCHours());eA.range;const Td=ln(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Ir)/Zi,e=>e.getDate()-1);Td.range;const Em=ln(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Zi,e=>e.getUTCDate()-1);Em.range;const p4=ln(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Zi,e=>Math.floor(e/Zi));p4.range;function ns(e){return ln(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Ir)/X_)}const km=ns(0),gh=ns(1),mte=ns(2),gte=ns(3),Al=ns(4),vte=ns(5),yte=ns(6);km.range;gh.range;mte.range;gte.range;Al.range;vte.range;yte.range;function rs(e){return ln(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/X_)}const Om=rs(0),vh=rs(1),bte=rs(2),xte=rs(3),El=rs(4),wte=rs(5),Ste=rs(6);Om.range;vh.range;bte.range;xte.range;El.range;wte.range;Ste.range;const tA=ln(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());tA.range;const nA=ln(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());nA.range;const Ji=ln(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());Ji.every=e=>
vendor: 6,199 bytes, line 284
284!isFinite(e=Math.floor(e))||!(e>0)?null:ln(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});Ji.range;const eo=ln(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());eo.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:ln(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});eo.range;function h4(e,t,n,r,i,o){const a=[[Ta,1,Wi],[Ta,5,5*Wi],[Ta,15,15*Wi],[Ta,30,30*Wi],[o,1,Ir],[o,5,5*Ir],[o,15,15*Ir],[o,30,30*Ir],[i,1,Vi],[i,3,3*Vi],[i,6,6*Vi],[i,12,12*Vi],[r,1,Zi],[r,2,2*Zi],[n,1,X_],[t,1,ER],[t,3,3*ER],[e,1,v0]];function l(d,f,p){const g=f<d;g&&([d,f]=[f,d]);const v=p&&typeof p.range=="function"?p:c(d,f,p),S=v?v.range(d,+f+1):[];return g?S.reverse():S}function c(d,f,p){const g=Math.abs(f-d)/p,v=L_(([,,y])=>y).right(a,g);if(v===a.length)return e.every(E1(d/v0,f/v0,p));if(v===0)return mh.every(Math.max(E1(d,f,p),1));const[S,x]=a[g/a[v-1][2]<a[v][2]/g?v-1:v];return S.every(x)}return[l,c]}const[_te,Ate]=h4(eo,nA,Om,p4,eA,Z_),[Ete,kte]=h4(Ji,tA,km,Td,J_,Q_);function y0(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function b0(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Yu(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function Ote(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,a=e.shortDays,l=e.months,c=e.shortMonths,d=Xu(i),f=Qu(i),p=Xu(o),g=Qu(o),v=Xu(a),S=Qu(a),x=Xu(l),y=Qu(l),w=Xu(c),A=Qu(c),_={a:Z,A:Y,b:ee,B:R,c:null,d:TR,e:TR,f:Xte,g:ane,G:lne,H:Kte,I:Gte,j:Yte,L:m4,m:Qte,M:Zte,p:q,q:V,Q:IR,s:$R,S:Jte,u:ene,U:tne,V:nne,w:rne,W:ine,x:null,X:null,y:one,Y:sne,Z:une,"%":RR},j={a:M,A:re,b:ce,B:oe,c:null,d:NR,e:NR,f:pne,g:_ne,G:Ene,H:cne,I:dne,j:fne,L:v4,m:hne,M:mne,p:ae,q:pe,Q:IR,s:$R,S:gne,u:vne,U:yne,V:bne,w:xne,W:wne,x:null,X:null,y:Sne,Y:Ane,Z:kne,"%":RR},k={a:z,A:F,b:D,B:L,c:B,d:jR,e:jR,f:qte,g:PR,G:OR,H:CR,I:CR,j:Fte,L:Ute,m:Lte,M:Bte,p:I,q:Dte,Q:Wte,s:Vte,S:zte,u:Nte,U:Rte,V:Ite,w:Tte,W:$te,x:U,X:G,y:PR,Y:OR,Z:Mte,"%":Hte};_.x=O(n,_),_.X=O(r,_),_.c=O(t,_),j.x=O(n,j),j.X=O(r,j),j.c=O(t,j);function O(te,xe){return function(je){var se=[],Qe=-1,ge=0,Ae=te.length,_e,Fe,et;for(je instanceof Date||(je=new Date(+je));++Qe<Ae;)te.charCodeAt(Qe)===37&&(se.push(te.slice(ge,Qe)),(Fe=kR[_e=te.charAt(++Qe)])!=null?_e=te.charAt(++Qe):Fe=_e==="e"?" ":"0",(et=xe[_e])&&(_e=et(je,Fe)),se.push(_e),ge=Qe+1);return se.push(te.slice(ge,Qe)),se.join("")}}function T(te,xe){return function(je){var se=Yu(1900,void 0,1),Qe=N(se,te,je+="",0),ge,Ae;if(Qe!=je.length)return null;if("Q"in se)return new Date(se.Q);if("s"in se)return new Date(se.s*1e3+("L"in se?se.L:0));if(xe&&!("Z"in se)&&(se.Z=0),"p"in se&&(se.H=se.H%12+se.p*12),se.m===void 0&&(se.m="q"in se?se.q:0),"V"in se){if(se.V<1||se.V>53)return null;"w"in se||(se.w=1),"Z"in se?(ge=b0(Yu(se.y,0,1)),Ae=ge.getUTCDay(),ge=Ae>4||Ae===0?vh.ceil(ge):vh(ge),ge=Em.offset(ge,(se.V-1)*7),se.y=ge.getUTCFullYear(),se.m=ge.getUTCMonth(),se.d=ge.getUTCDate()+(se.w+6)%7):(ge=y0(Yu(se.y,0,1)),Ae=ge.getDay(),ge=Ae>4||Ae===0?gh.ceil(ge):gh(ge),ge=Td.offset(ge,(se.V-1)*7),se.y=ge.getFullYear(),se.m=ge.getMonth(),se.d=ge.getDate()+(se.w+6)%7)}else("W"in se||"U"in se)&&("w"in se||(se.w="u"in se?se.u%7:"W"in se?1:0),Ae="Z"in se?b0(Yu(se.y,0,1)).getUTCDay():y0(Yu(se.y,0,1)).getDay(),se.m=0,se.d="W"in se?(se.w+6)%7+se.W*7-(Ae+5)%7:se.w+se.U*7-(Ae+6)%7);return"Z"in se?(se.H+=se.Z/100|0,se.M+=se.Z%100,b0(se)):y0(se)}}function N(te,xe,je,se){for(var Qe=0,ge=xe.length,Ae=je.length,_e,Fe;Qe<ge;){if(se>=Ae)return-1;if(_e=xe.charCodeAt(Qe++),_e===37){if(_e=xe.charAt(Qe++),Fe=k[_e in kR?xe.charAt(Qe++):_e],!Fe||(se=Fe(te,je,se))<0)return-1}else if(_e!=je.charCodeAt(se++))return-1}return se}function I(te,xe,je){var se=d.exec(xe.slice(je));return se?(te.p=f.get(se[0].toLowerCase()),je+se[0].length):-1}function z(te,xe,je){var se=v.exec(xe.slice(je));return se?(te.w=S.get(se[0].toLowerCase()),je+se[0].length):-1}function F(te,xe,je){var se=p.exec(xe.slice(je));return se?(te.w=g.get(se[0].toLowerCase()),je+se[0].length):-1}function D(te,xe,je){var se=w.exec(xe.slice(je));return se?(te.m=A.get(se[0].toLowerCase()),je+se[0].length):-1}function L(te,xe,je){var se=x.exec(xe.slice(je));return se?(te.m=y.get(se[0].toLowerCase()),je+se[0].length):-1}function B(te,xe,je){return N(te,t,xe,je)}function U(te,xe,je){return N(te,n,xe,je)}function G(te,xe,je){return N(te,r,xe,je)}function Z(te){return a[te.getDay()]}function Y(te){return o[te.getDay()]}function ee(te){return c[te.getMonth()]}function R(te){return l[te.getMonth()]}function q(te){return i[+(te.getHours()>=12)]}function V(te){return 1+~~(te.getMonth()/3)}function M(te){return a[te.getUTCDay()]}function re(te){return o[te.getUTCDay()]}function ce(te){return c[te.getUTCMonth()]}function oe(te){return l[te.getUTCMonth()]}function ae(te){return i[+(te.getUTCHours()>=12)]}function pe(te){return 1+~~(te.getUTCMonth()/3)}return{format:function(te){var xe=O(te+="",_);return xe.toString=function(){return te},xe},parse:function(te){var xe=T(te+="",!1);return xe.toString=function(){return te},xe},utcFormat:function(te){var xe=O(te+="",j);return xe.toString=function(){return te},xe},utcParse:function(te){var xe=T(te+="",!0);return xe.toString=function(){return te},xe}}}var kR={"-":"",_:" ",0:"0"},yn=/^\s*\d+/,Pte=/^%/,jte=/[\\^$*+?|[\]().{}]/g;function ct(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(t)+i:i)}function Cte(e){return e.replace(jte,"\\$&")}function Xu(e){return new RegExp("^(?:"+e.map(Cte).join("|")+")","i")}function Qu(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function Tte(e,t,n){var r=yn.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Nte(e,t,n){var r=yn.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Rte(e,t,n){var r=yn.exec(t.slice(n,n+2));
vendor: 4,106 bytes, line 284
284return r?(e.U=+r[0],n+r[0].length):-1}function Ite(e,t,n){var r=yn.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function $te(e,t,n){var r=yn.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function OR(e,t,n){var r=yn.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function PR(e,t,n){var r=yn.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Mte(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Dte(e,t,n){var r=yn.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function Lte(e,t,n){var r=yn.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function jR(e,t,n){var r=yn.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Fte(e,t,n){var r=yn.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function CR(e,t,n){var r=yn.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Bte(e,t,n){var r=yn.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function zte(e,t,n){var r=yn.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Ute(e,t,n){var r=yn.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function qte(e,t,n){var r=yn.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Hte(e,t,n){var r=Pte.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Wte(e,t,n){var r=yn.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Vte(e,t,n){var r=yn.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function TR(e,t){return ct(e.getDate(),t,2)}function Kte(e,t){return ct(e.getHours(),t,2)}function Gte(e,t){return ct(e.getHours()%12||12,t,2)}function Yte(e,t){return ct(1+Td.count(Ji(e),e),t,3)}function m4(e,t){return ct(e.getMilliseconds(),t,3)}function Xte(e,t){return m4(e,t)+"000"}function Qte(e,t){return ct(e.getMonth()+1,t,2)}function Zte(e,t){return ct(e.getMinutes(),t,2)}function Jte(e,t){return ct(e.getSeconds(),t,2)}function ene(e){var t=e.getDay();return t===0?7:t}function tne(e,t){return ct(km.count(Ji(e)-1,e),t,2)}function g4(e){var t=e.getDay();return t>=4||t===0?Al(e):Al.ceil(e)}function nne(e,t){return e=g4(e),ct(Al.count(Ji(e),e)+(Ji(e).getDay()===4),t,2)}function rne(e){return e.getDay()}function ine(e,t){return ct(gh.count(Ji(e)-1,e),t,2)}function one(e,t){return ct(e.getFullYear()%100,t,2)}function ane(e,t){return e=g4(e),ct(e.getFullYear()%100,t,2)}function sne(e,t){return ct(e.getFullYear()%1e4,t,4)}function lne(e,t){var n=e.getDay();return e=n>=4||n===0?Al(e):Al.ceil(e),ct(e.getFullYear()%1e4,t,4)}function une(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+ct(t/60|0,"0",2)+ct(t%60,"0",2)}function NR(e,t){return ct(e.getUTCDate(),t,2)}function cne(e,t){return ct(e.getUTCHours(),t,2)}function dne(e,t){return ct(e.getUTCHours()%12||12,t,2)}function fne(e,t){return ct(1+Em.count(eo(e),e),t,3)}function v4(e,t){return ct(e.getUTCMilliseconds(),t,3)}function pne(e,t){return v4(e,t)+"000"}function hne(e,t){return ct(e.getUTCMonth()+1,t,2)}function mne(e,t){return ct(e.getUTCMinutes(),t,2)}function gne(e,t){return ct(e.getUTCSeconds(),t,2)}function vne(e){var t=e.getUTCDay();return t===0?7:t}function yne(e,t){return ct(Om.count(eo(e)-1,e),t,2)}function y4(e){var t=e.getUTCDay();return t>=4||t===0?El(e):El.ceil(e)}function bne(e,t){return e=y4(e),ct(El.count(eo(e),e)+(eo(e).getUTCDay()===4),t,2)}function xne(e){return e.getUTCDay()}function wne(e,t){return ct(vh.count(eo(e)-1,e),t,2)}function Sne(e,t){return ct(e.getUTCFullYear()%100,t,2)}function _ne(e,t){return e=y4(e),ct(e.getUTCFullYear()%100,t,2)}function Ane(e,t){return ct(e.getUTCFullYear()%1e4,t,4)}function Ene(e,t){var n=e.getUTCDay();return e=n>=4||n===0?El(e):El.ceil(e),ct(e.getUTCFullYear()%1e4,t,4)}function kne(){return"+0000"}function RR(){return"%"}function IR(e){return+e}function $R(e){return Math.floor(+e/1e3)}var Ds,b4,x4;One({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
284ay","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function One(e){return Ds=Ote(e),b4=Ds.format,Ds.parse,x4=Ds.utcFormat,Ds.utcParse,Ds}function Pne(e){return new Date(e)}function jne(e){return e instanceof Date?+e:+new Date(+e)}function rA(e,t,n,r,i,o,a,l,c,d){var f=q_(),p=f.invert,g=f.domain,v=d(".%L"),S=d(":%S"),x=d("%I:%M"),y=d("%I %p"),w=d("%a %d"),A=d("%b %d"),_=d("%B"),j=d("%Y");function k(O){return(c(O)<O?v:l(O)<O?S:a(O)<O?x:o(O)<O?y:r(O)<O?i(O)<O?w:A:n(O)<O?_:j)(O)}return f.invert=function(O){return new Date(p(O))},f.domain=function(O){return arguments.length?g(Array.from(O,jne)):g().map(Pne)},f.ticks=function(O){var T=g();return e(T[0],T[T.length-1],O??10)},f.tickFormat=function(O,T){return T==null?k:d(T)},f.nice=function(O){var T=g();return(!O||typeof O.range!="function")&&(O=t(T[0],T[T.length-1],O??10)),O?g(a4(T,O)):f},f.copy=function(){return Cd(f,rA(e,t,n,r,i,o,a,l,c,d))},f}function Cne(){return Lr.apply(rA(Ete,kte,Ji,tA,km,Td,J_,Q_,Ta,b4).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Tne(){return Lr.apply(rA(_te,Ate,eo,nA,Om,Em,eA,Z_,Ta,x4).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Pm(){var e=0,t=1,n,r,i,o,a=Hn,l=!1,c;function d(p){return p==null||isNaN(p=+p)?c:a(i===0?.5:(p=(o(p)-n)*i,l?Math.max(0,Math.min(1,p)):p))}d.domain=function(p){return arguments.length?([e,t]=p,n=o(e=+e),r=o(t=+t),i=n===r?0:1/(r-n),d):[e,t]},d.clamp=function(p){return arguments.length?(l=!!p,d):l},d.interpolator=function(p){return arguments.length?(a=p,d):a};function f(p){return function(g){var v,S;return arguments.length?([v,S]=g,a=p(v,S),d):[a(0),a(1)]}}return d.range=f(Ql),d.rangeRound=f(U_),d.unknown=function(p){return arguments.length?(c=p,d):c},function(p){return o=p,n=p(e),r=p(t),i=n===r?0:1/(r-n),d}}function ea(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function w4(){var e=Jo(Pm()(Hn));return e.copy=function(){return ea(e,w4())},ao.apply(e,arguments)}function S4(){var e=V_(Pm()).domain([1,10]);return e.copy=function(){return ea(e,S4()).base(e.base())},ao.apply(e,arguments)}function _4(){var e=K_(Pm());return e.copy=function(){return ea(e,_4()).constant(e.constant())},ao.apply(e,arguments)}function iA(){var e=G_(Pm());return e.copy=function(){return ea(e,iA()).exponent(e.exponent())},ao.apply(e,arguments)}function Nne(){return iA.apply(null,arguments).exponent(.5)}function A4(){var e=[],t=Hn;function n(r){if(r!=null&&!isNaN(r=+r))return t((Pd(e,r,1)-1)/(e.length-1))}return n.domain=function(r){if(!arguments.length)return e.slice();e=[];for(let i of r)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(Go),n},n.interpolator=function(r){return arguments.length?(t=r,n):t},n.range=function(){return e.map((r,i)=>t(i/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(i,o)=>yee(e,o/r))},n.copy=function(){return A4(t).domain(e)},ao.apply(n,arguments)}function jm(){var e=0,t=.5,n=1,r=1,i,o,a,l,c,d=Hn,f,p=!1,g;function v(x){return isNaN(x=+x)?g:(x=.5+((x=+f(x))-o)*(r*x<r*o?l:c),d(p?Math.max(0,Math.min(1,x)):x))}v.domain=function(x){return arguments.length?([e,t,n]=x,i=f(e=+e),o=f(t=+t),a=f(n=+n),l=i===o?0:.5/(o-i),c=o===a?0:.5/(a-o),r=o<i?-1:1,v):[e,t,n]},v.clamp=function(x){return arguments.length?(p=!!x,v):p},v.interpolator=function(x){return arguments.length?(d=x,v):d};function S(x){return function(y){var w,A,_;return arguments.length?([w,A,_]=y,d=Hee(x,[w,A,_]),v):[d(0),d(.5),d(1)]}}return v.range=S(Ql),v.rangeRound=S(U_),v.unknown=function(x){return arguments.length?(g=x,v):g},function(x){return f=x,i=x(e),o=x(t),a=x(n),l=i===o?0:.5/(o-i),c=o===a?0:.5/(a-o),r=o<i?-1:1,v}}function E4(){var e=Jo(jm()(Hn));return e.copy=function(){return ea(e,E4())},ao.apply(e,arguments)}function k4(){var e=V_(jm()).domain([.1,1,10]);return e.copy=function(){return ea(e,k4()).base(e.base())},ao.apply(e,arguments)}function O4(){var e=K_(jm());return e.copy=function(){return ea(e,O4()).constant(e.constant())},ao.apply(e,arguments)}function oA(){var e=G_(jm());return e.copy=function(){return ea(e,oA()).exponent(e.exponent())},ao.apply(e,arguments)}function Rne(){return oA.apply(null,arguments).exponent(.5)}const MR=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Lc,scaleDiverging:E4,scaleDivergingLog:k4,scaleDivergingPow:oA,scaleDivergingSqrt:Rne,scaleDivergingSymlog:O4,scaleIdentity:o4,scaleImplicit:k1,scaleLinear:hh,scaleLog:s4,scaleOrdinal:F_,scalePoint:vc,scalePow:Y_,scaleQuantile:c4,scaleQuantize:d4,scaleRadial:u4,scaleSequential:w4,scaleSequentialLog:S4,scaleSequentialPow:iA,scaleSequentialQuantile:A4,scaleSequentialSqrt:Nne,scaleSequentialSymlog:_4,scaleSqrt:pte,scaleSymlog:l4,scaleThreshold:f4,scaleTime:Cne,scaleUtc:Tne,tickFormat:i4},Symbol.toStringTag,{value:"Module"}));var x0,DR;function Cm(){if(DR)return x0;DR=1;var e=Kl();function t(n,r,i){for(var o=-1,a=n.length;++o<a;){var l=n[o],c=r(l);
vendor: 69,735 bytes, lines 284-311
284if(c!=null&&(d===void 0?c===c&&!e(c):i(c,d)))var d=c,f=l}return f}return x0=t,x0}var w0,LR;function P4(){if(LR)return w0;LR=1;function e(t,n){return t>n}return w0=e,w0}var S0,FR;function Ine(){if(FR)return S0;FR=1;var e=Cm(),t=P4(),n=Yl();function r(i){return i&&i.length?e(i,n,t):void 0}return S0=r,S0}var $ne=Ine();const Tm=lt($ne);var _0,BR;function j4(){if(BR)return _0;BR=1;function e(t,n){return t<n}return _0=e,_0}var A0,zR;function Mne(){if(zR)return A0;zR=1;var e=Cm(),t=j4(),n=Yl();function r(i){return i&&i.length?e(i,n,t):void 0}return A0=r,A0}var Dne=Mne();const Nm=lt(Dne);var E0,UR;function Lne(){if(UR)return E0;UR=1;var e=x_(),t=Pi(),n=L3(),r=ir();function i(o,a){var l=r(o)?e:n;return l(o,t(a,3))}return E0=i,E0}var k0,qR;function Fne(){if(qR)return k0;qR=1;var e=M3(),t=Lne();function n(r,i){return e(t(r,i),1)}return k0=n,k0}var Bne=Fne();const zne=lt(Bne);var O0,HR;function Une(){if(HR)return O0;HR=1;var e=R_();function t(n,r){return e(n,r)}return O0=t,O0}var qne=Une();const Rm=lt(qne);var Zl=1e9,Hne={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},sA,It=!0,Dr="[DecimalError] ",za=Dr+"Invalid argument: ",aA=Dr+"Exponent out of range: ",Jl=Math.floor,Ea=Math.pow,Wne=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,hr,hn=1e7,jt=7,C4=9007199254740991,yh=Jl(C4/jt),Pe={};Pe.absoluteValue=Pe.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};Pe.comparedTo=Pe.cmp=function(e){var t,n,r,i,o=this;if(e=new o.constructor(e),o.s!==e.s)return o.s||-e.s;if(o.e!==e.e)return o.e>e.e^o.s<0?1:-1;for(r=o.d.length,i=e.d.length,t=0,n=r<i?r:i;t<n;++t)if(o.d[t]!==e.d[t])return o.d[t]>e.d[t]^o.s<0?1:-1;return r===i?0:r>i^o.s<0?1:-1};Pe.decimalPlaces=Pe.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*jt;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};Pe.dividedBy=Pe.div=function(e){return Yi(this,new this.constructor(e))};Pe.dividedToIntegerBy=Pe.idiv=function(e){var t=this,n=t.constructor;return bt(Yi(t,new n(e),0,1),n.precision)};Pe.equals=Pe.eq=function(e){return!this.cmp(e)};Pe.exponent=function(){return Zt(this)};Pe.greaterThan=Pe.gt=function(e){return this.cmp(e)>0};Pe.greaterThanOrEqualTo=Pe.gte=function(e){return this.cmp(e)>=0};Pe.isInteger=Pe.isint=function(){return this.e>this.d.length-2};Pe.isNegative=Pe.isneg=function(){return this.s<0};Pe.isPositive=Pe.ispos=function(){return this.s>0};Pe.isZero=function(){return this.s===0};Pe.lessThan=Pe.lt=function(e){return this.cmp(e)<0};Pe.lessThanOrEqualTo=Pe.lte=function(e){return this.cmp(e)<1};Pe.logarithm=Pe.log=function(e){var t,n=this,r=n.constructor,i=r.precision,o=i+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(hr))throw Error(Dr+"NaN");if(n.s<1)throw Error(Dr+(n.s?"NaN":"-Infinity"));return n.eq(hr)?new r(0):(It=!1,t=Yi(qc(n,o),qc(e,o),o),It=!0,bt(t,i))};Pe.minus=Pe.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?R4(t,e):T4(t,(e.s=-e.s,e))};Pe.modulo=Pe.mod=function(e){var t,n=this,r=n.constructor,i=r.precision;if(e=new r(e),!e.s)throw Error(Dr+"NaN");return n.s?(It=!1,t=Yi(n,e,0,1).times(e),It=!0,n.minus(t)):bt(new r(n),i)};Pe.naturalExponential=Pe.exp=function(){return N4(this)};Pe.naturalLogarithm=Pe.ln=function(){return qc(this)};Pe.negated=Pe.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};Pe.plus=Pe.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?T4(t,e):R4(t,(e.s=-e.s,e))};Pe.precision=Pe.sd=function(e){var t,n,r,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(za+e);if(t=Zt(i)+1,r=i.d.length-1,n=r*jt+1,r=i.d[r],r){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return e&&t>n?t:n};Pe.squareRoot=Pe.sqrt=function(){var e,t,n,r,i,o,a,l=this,c=l.constructor;if(l.s<1){if(!l.s)return new c(0);throw Error(Dr+"NaN")}for(e=Zt(l),It=!1,i=Math.sqrt(+l),i==0||i==1/0?(t=bi(l.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Jl((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),r=new c(t)):r=new c(i.toString()),n=c.precision,i=a=n+3;;)if(o=r,r=o.plus(Yi(l,o,a+2)).times(.5),bi(o.d).slice(0,a)===(t=bi(r.d)).slice(0,a)){if(t=t.slice(a-3,a+1),i==a&&t=="4999"){if(bt(o,n+1,0),o.times(o).eq(l)){r=o;break}}else if(t!="9999")break;a+=4}return It=!0,bt(r,n)};Pe.times=Pe.mul=function(e){var t,n,r,i,o,a,l,c,d,f=this,p=f.constructor,g=f.d,v=(e=new p(e)).d;if(!f.s||!e.s)return new p(0);for(e.s*=f.s,n=f.e+e.e,c=g.length,d=v.length,c<d&&(o=g,g=v,v=o,a=c,c=d,d=a),o=[],a=c+d,r=a;r--;)o.push(0);for(r=d;--r>=0;){for(t=0,i=c+r;i>r;)l=o[i]+v[r]*g[i-r-1]+t,o[i--]=l%hn|0,t=l/hn|0;o[i]=(o[i]+t)%hn|0}for(;!o[--a];)o.pop();return t?++n:o.shift(),e.d=o,e.e=n,It?bt(e,p.precision):e};Pe.toDecimalPlaces=Pe.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(Ei(e,0,Zl),t===void 0?t=r.rounding:Ei(t,0,8),bt(n,e+Zt(n)+1,t))};Pe.toExponential=function(e,t){var n,r=this,i=r.constructor;return e===void 0?n=Ka(r,!0):(Ei(e,0,Zl),t===void 0?t=i.rounding:Ei(t,0,8),r=bt(new i(r),e+1,t),n=Ka(r,!0,e+1)),n};Pe.toFixed=function(e,t){var n,r,i=this,o=i.constructor;return e===void 0?Ka(i):(Ei(e,0,Zl),t===void 0?t=o.rounding:Ei(t,0,8),r=bt(new o(i),e+Zt(i)+1,t),n=Ka(r.abs(),!1,e+Zt(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)};Pe.toInteger=Pe.toint=function(){var e=this,t=e.constructor;return bt(new t(e),Zt(e)+1,t.rounding)};Pe.toNumber=function(){return+this};Pe.toPower=Pe.pow=function(e){var t,n,r,i,o,a,l=this,c=l.constructor,d=12,f=+(e=new c(e));if(!e.s)return new c(hr);if(l=new c(l),!l.s){if(e.s<1)throw Error(Dr+"Infinity");return l}if(l.eq(hr))return l;if(r=c.precision,e.eq(hr))return bt(l,r);if(t=e.e,n=e.d.length-1,a=t>=n,o=l.s,a){if((n=f<0?-f:f)<=C4){for(i=new c(hr),t=Math.ceil(r/jt+4),It=!1;n%2&&(i=i.times(l),VR(i.d,t)),n=Jl(n/2),n!==0;)l=l.times(l),VR(l.d,t);return It=!0,e.s<0?new c(hr).div(i):bt(i,r)}}else if(o<0)throw Error(Dr+"NaN");return o=o<0&&e.d[Math.max(t,n)]&1?-1:1,l.s=1,It=!1,i=e.times(qc(l,r+d)),It=!0,i=N4(i),i.s=o,i};Pe.toPrecision=function(e,t){var n,r,i=this,o=i.constructor;return e===void 0?(n=Zt(i),r=Ka(i,n<=o.toExpNeg||n>=o.toExpPos)):(Ei(e,1,Zl),t===void 0?t=o.rounding:Ei(t,0,8),i=bt(new o(i),e,t),n=Zt(i),r=Ka(i,e<=n||n<=o.toExpNeg,e)),r};Pe.toSignificantDigits=Pe.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(Ei(e,1,Zl),t===void 0?t=r.rounding:Ei(t,0,8)),bt(new r(n),e,t)};Pe.toString=Pe.valueOf=Pe.val=Pe.toJSON=Pe[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Zt(e),n=e.constructor;return Ka(e,t<=n.toExpNeg||t>=n.toExpPos)};function T4(e,t){var n,r,i,o,a,l,c,d,f=e.constructor,p=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),It?bt(t,p):t;if(c=e.d,d=t.d,a=e.e,i=t.e,c=c.slice(),o=a-i,o){for(o<0?(r=c,o=-o,l=d.length):(r=d,i=a,l=c.length),a=Math.ceil(p/jt),l=a>l?a+1:l+1,o>l&&(o=l,r.length=1),r.reverse();o--;)r.push(0);r.reverse()}for(l=c.length,o=d.length,l-o<0&&(o=l,r=d,d=c,c=r),n=0;o;)n=(c[--o]=c[o]+d[o]+n)/hn|0,c[o]%=hn;for(n&&(c.unshift(n),++i),l=c.length;c[--l]==0;)c.pop();return t.d=c,t.e=i,It?bt(t,p):t}function Ei(e,t,n){if(e!==~~e||e<t||e>n)throw Error(za+e)}function bi(e){var t,n,r,i=e.length-1,o="",a=e[0];if(i>0){for(o+=a,t=1;t<i;t++)r=e[t]+"",n=jt-r.length,n&&(o+=$o(n)),o+=r;a=e[t],r=a+"",n=jt-r.length,n&&(o+=$o(n))}else if(a===0)return"0";for(;a%10===0;)a/=10;return o+a}var Yi=(function(){function e(r,i){var o,a=0,l=r.length;for(r=r.slice();l--;)o=r[l]*i+a,r[l]=o%hn|0,a=o/hn|0;return a&&r.unshift(a),r}function t(r,i,o,a){var l,c;if(o!=a)c=o>a?1:-1;else for(l=c=0;l<o;l++)if(r[l]!=i[l]){c=r[l]>i[l]?1:-1;break}return c}function n(r,i,o){for(var a=0;o--;)r[o]-=a,a=r[o]<i[o]?1:0,r[o]=a*hn+r[o]-i[o];for(;!r[0]&&r.length>1;)r.shift()}return function(r,i,o,a){var l,c,d,f,p,g,v,S,x,y,w,A,_,j,k,O,T,N,I=r.constructor,z=r.s==i.s?1:-1,F=r.d,D=i.d;if(!r.s)return new I(r);if(!i.s)throw Error(Dr+"Division by zero");for(c=r.e-i.e,T=D.length,k=F.length,v=new I(z),S=v.d=[],d=0;D[d]==(F[d]||0);)++d;if(D[d]>(F[d]||0)&&--c,o==null?A=o=I.precision:a?A=o+(Zt(r)-Zt(i))+1:A=o,A<0)return new I(0);if(A=A/jt+2|0,d=0,T==1)for(f=0,D=D[0],A++;(d<k||f)&&A--;d++)_=f*hn+(F[d]||0),S[d]=_/D|0,f=_%D|0;else{for(f=hn/(D[0]+1)|0,f>1&&(D=e(D,f),F=e(F,f),T=D.length,k=F.length),j=T,x=F.slice(0,T),y=x.length;y<T;)x[y++]=0;N=D.slice(),N.unshift(0),O=D[0],D[1]>=hn/2&&++O;do f=0,l=t(D,x,T,y),l<0?(w=x[0],T!=y&&(w=w*hn+(x[1]||0)),f=w/O|0,f>1?(f>=hn&&(f=hn-1),p=e(D,f),g=p.length,y=x.length,l=t(p,x,g,y),l==1&&(f--,n(p,T<g?N:D,g))):(f==0&&(l=f=1),p=D.slice()),g=p.length,g<y&&p.unshift(0),n(x,p,y),l==-1&&(y=x.length,l=t(D,x,T,y),l<1&&(f++,n(x,T<y?N:D,y))),y=x.length):l===0&&(f++,x=[0]),S[d++]=f,l&&x[0]?x[y++]=F[j]||0:(x=[F[j]],y=1);while((j++<k||x[0]!==void 0)&&A--)}return S[0]||S.shift(),v.e=c,bt(v,a?o+Zt(v)+1:o)}})();function N4(e,t){var n,r,i,o,a,l,c=0,d=0,f=e.constructor,p=f.precision;if(Zt(e)>16)throw Error(aA+Zt(e));if(!e.s)return new f(hr);for(It=!1,l=p,a=new f(.03125);e.abs().gte(.1);)e=e.times(a),d+=5;for(r=Math.log(Ea(2,d))/Math.LN10*2+5|0,l+=r,n=i=o=new f(hr),f.precision=l;;){if(i=bt(i.times(e),l),n=n.times(++c),a=o.plus(Yi(i,n,l)),bi(a.d).slice(0,l)===bi(o.d).slice(0,l)){for(;d--;)o=bt(o.times(o),l);return f.precision=p,t==null?(It=!0,bt(o,p)):o}o=a}}function Zt(e){for(var t=e.e*jt,n=e.d[0];n>=10;n/=10)t++;return t}function P0(e,t,n){if(t>e.LN10.sd())throw It=!0,n&&(e.precision=n),Error(Dr+"LN10 precision limit exceeded");return bt(new e(e.LN10),t)}function $o(e){for(var t="";e--;)t+="0";return t}function qc(e,t){var n,r,i,o,a,l,c,d,f,p=1,g=10,v=e,S=v.d,x=v.constructor,y=x.precision;if(v.s<1)throw Error(Dr+(v.s?"NaN":"-Infinity"));if(v.eq(hr))return new x(0);if(t==null?(It=!1,d=y):d=t,v.eq(10))return t==null&&(It=!0),P0(x,d);if(d+=g,x.precision=d,n=bi(S),r=n.charAt(0),o=Zt(v),Math.abs(o)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)v=v.times(e),n=bi(v.d),r=n.charAt(0),p++;o=Zt(v),r>1?(v=new x("0."+n),o++):v=new x(r+"."+n.slice(1))}else return c=P0(x,d+2,y).times(o+""),v=qc(new x(r+"."+n.slice(1)),d-g).plus(c),x.precision=y,t==null?(It=!0,bt(v,y)):v;for(l=a=v=Yi(v.minus(hr),v.plus(hr),d),f=bt(v.times(v),d),i=3;;){if(a=bt(a.times(f),d),c=l.plus(Yi(a,new x(i),d)),bi(c.d).slice(0,d)===bi(l.d).slice(0,d))return l=l.times(2),o!==0&&(l=l.plus(P0(x,d+2,y).times(o+""))),l=Yi(l,new x(p),d),x.precision=y,t==null?(It=!0,bt(l,y)):l;l=c,i+=2}}function WR(e,t){var n,r,i;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;)++r;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(r,i),t){if(i-=r,n=n-r-1,e.e=Jl(n/jt),e.d=[],r=(n+1)%jt,n<0&&(r+=jt),r<i){for(r&&e.d.push(+t.slice(0,r)),i-=jt;r<i;)e.d.push(+t.slice(r,r+=jt));t=t.slice(r),r=jt-t.length}else r-=i;for(;r--;)t+="0";if(e.d.push(+t),It&&(e.e>yh||e.e<-yh))throw Error(aA+n)}else e.s=0,e.e=0,e.d=[0];return e}function bt(e,t,n){var r,i,o,a,l,c,d,f,p=e.d;for(a=1,o=p[0];o>=10;o/=10)a++;if(r=t-a,r<0)r+=jt,i=t,d=p[f=0];else{if(f=Math.ceil((r+1)/jt),o=p.length,f>=o)return e;for(d=o=p[f],a=1;o>=10;o/=10)a++;r%=jt,i=r-jt+a}if(n!==void 0&&(o=Ea(10,a-i-1),l=d/o%10|0,c=t<0||p[f+1]!==void 0||d%o,c=n<4?(l||c)&&(n==0||n==(e.s<0?3:2)):l>5||l==5&&(n==4||c||n==6&&(r>0?i>0?d/Ea(10,a-i):0:p[f-1])%10&1||n==(e.s<0?8:7))),t<1||!p[0])return c?(o=Zt(e),p.length=1,t=t-o-1,p[0]=Ea(10,(jt-t%jt)%jt),e.e=Jl(-t/jt)||0):(p.length=1,p[0]=e.e=e.s=0),e;if(r==0?(p.length=f,o=1,f--):(p.length=f+1,o=Ea(10,jt-r),p[f]=i>0?(d/Ea(10,a-i)%Ea(10,i)|0)*o:0),c)for(;;)if(f==0){(p[0]+=o)==hn&&(p[0]=1,++e.e);break}else{if(p[f]+=o,p[f]!=hn)break;p[f--]=0,o=1}for(r=p.length;p[--r]===0;)p.pop();if(It&&(e.e>yh||e.e<-yh))throw Error(aA+Zt(e));return e}function R4(e,t){var n,r,i,o,a,l,c,d,f,p,g=e.constructor,v=g.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new g(e),It?bt(t,v):t;if(c=e.d,p=t.d,r=t.e,d=e.e,c=c.slice(),a=d-r,a){for(f=a<0,f?(n=c,a=-a,l=p.length):(n=p,r=d,l=c.length),i=Math.max(Math.ceil(v/jt),l)+2,a>i&&(a=i,n.length=1),n.reverse(),i=a;i--;)n.push(0);n.reverse()}else{for(i=c.length,l=p.length,f=i<l,f&&(l=i),i=0;i<l;i++)if(c[i]!=p[i]){f=c[i]<p[i];break}a=0}for(f&&(n=c,c=p,p=n,t.s=-t.s),l=c.length,i=p.length-l;i>0;--i)c[l++]=0;for(i=p.length;i>a;){if(c[--i]<p[i]){for(o=i;o&&c[--o]===0;)c[o]=hn-1;--c[o],c[i]+=hn}c[i]-=p[i]}for(;c[--l]===0;)c.pop();for(;c[0]===0;c.shift())--r;return c[0]?(t.d=c,t.e=r,It?bt(t,v):t):new g(0)}function Ka(e,t,n){var r,i=Zt(e),o=bi(e.d),a=o.length;return t?(n&&(r=n-a)>0?o=o.charAt(0)+"."+o.slice(1)+$o(r):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+$o(-i-1)+o,n&&(r=n-a)>0&&(o+=$o(r))):i>=a?(o+=$o(i+1-a),n&&(r=n-i-1)>0&&(o=o+"."+$o(r))):((r=i+1)<a&&(o=o.slice(0,r)+"."+o.slice(r)),n&&(r=n-a)>0&&(i+1===a&&(o+="."),o+=$o(r))),e.s<0?"-"+o:o}function VR(e,t){if(e.length>t)return e.length=t,!0}function I4(e){var t,n,r;function i(o){var a=this;if(!(a instanceof i))return new i(o);if(a.constructor=i,o instanceof i){a.s=o.s,a.e=o.e,a.d=(o=o.d)?o.slice():o;return}if(typeof o=="number"){if(o*0!==0)throw Error(za+o);if(o>0)a.s=1;else if(o<0)o=-o,a.s=-1;else{a.s=0,a.e=0,a.d=[0];return}if(o===~~o&&o<1e7){a.e=0,a.d=[o];return}return WR(a,o.toString())}else if(typeof o!="string")throw Error(za+o);if(o.charCodeAt(0)===45?(o=o.slice(1),a.s=-1):a.s=1,Wne.test(o))WR(a,o);else throw Error(za+o)}if(i.prototype=Pe,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=I4,i.config=i.set=Vne,e===void 0&&(e={}),e)for(r=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<r.length;)e.hasOwnProperty(n=r[t++])||(e[n]=this[n]);return i.config(e),i}function Vne(e){if(!e||typeof e!="object")throw Error(Dr+"Object expected");var t,n,r,i=["precision",1,Zl,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((r=e[n=i[t]])!==void 0)if(Jl(r)===r&&r>=i[t+1]&&r<=i[t+2])this[n]=r;else throw Error(za+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(za+n+": "+r);return this}var sA=I4(Hne);hr=new sA(1);const yt=sA;function Kne(e){return Qne(e)||Xne(e)||Yne(e)||Gne()}function Gne(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
285In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Yne(e,t){if(e){if(typeof e=="string")return C1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return C1(e,t)}}function Xne(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function Qne(e){if(Array.isArray(e))return C1(e)}function C1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Zne=function(t){return t},$4={},M4=function(t){return t===$4},KR=function(t){return function n(){return arguments.length===0||arguments.length===1&&M4(arguments.length<=0?void 0:arguments[0])?n:t.apply(void 0,arguments)}},Jne=function e(t,n){return t===1?n:KR(function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=i.filter(function(l){return l!==$4}).length;return a>=t?n.apply(void 0,i):e(t-a,KR(function(){for(var l=arguments.length,c=new Array(l),d=0;d<l;d++)c[d]=arguments[d];var f=i.map(function(p){return M4(p)?c.shift():p});return n.apply(void 0,Kne(f).concat(c))}))})},Im=function(t){return Jne(t.length,t)},T1=function(t,n){for(var r=[],i=t;i<n;++i)r[i-t]=i;return r},ere=Im(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(n){return t[n]}).map(e)}),tre=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return Zne;var i=n.reverse(),o=i[0],a=i.slice(1);return function(){return a.reduce(function(l,c){return c(l)},o.apply(void 0,arguments))}},N1=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},D4=function(t){var n=null,r=null;return function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n&&o.every(function(l,c){return l===n[c]})||(n=o,r=t.apply(void 0,o)),r}};function nre(e){var t;return e===0?t=1:t=Math.floor(new yt(e).abs().log(10).toNumber())+1,t}function rre(e,t,n){for(var r=new yt(e),i=0,o=[];r.lt(t)&&i<1e5;)o.push(r.toNumber()),r=r.add(n),i++;return o}var ire=Im(function(e,t,n){var r=+e,i=+t;return r+n*(i-r)}),ore=Im(function(e,t,n){var r=t-+e;return r=r||1/0,(n-e)/r}),are=Im(function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))});const $m={rangeStep:rre,getDigitCount:nre,interpolateNumber:ire,uninterpolateNumber:ore,uninterpolateTruncation:are};function R1(e){return ure(e)||lre(e)||L4(e)||sre()}function sre(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
286In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lre(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function ure(e){if(Array.isArray(e))return I1(e)}function Hc(e,t){return fre(e)||dre(e,t)||L4(e,t)||cre()}function cre(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
287In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function L4(e,t){if(e){if(typeof e=="string")return I1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return I1(e,t)}}function I1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function dre(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,i=!1,o=void 0;try{for(var a=e[Symbol.iterator](),l;!(r=(l=a.next()).done)&&(n.push(l.value),!(t&&n.length===t));r=!0);}catch(c){i=!0,o=c}finally{try{!r&&a.return!=null&&a.return()}finally{if(i)throw o}}return n}}function fre(e){if(Array.isArray(e))return e}function F4(e){var t=Hc(e,2),n=t[0],r=t[1],i=n,o=r;return n>r&&(i=r,o=n),[i,o]}function B4(e,t,n){if(e.lte(0))return new yt(0);var r=$m.getDigitCount(e.toNumber()),i=new yt(10).pow(r),o=e.div(i),a=r!==1?.05:.1,l=new yt(Math.ceil(o.div(a).toNumber())).add(n).mul(a),c=l.mul(i);return t?c:new yt(Math.ceil(c))}function pre(e,t,n){var r=1,i=new yt(e);if(!i.isint()&&n){var o=Math.abs(e);o<1?(r=new yt(10).pow($m.getDigitCount(e)-1),i=new yt(Math.floor(i.div(r).toNumber())).mul(r)):o>1&&(i=new yt(Math.floor(e)))}else e===0?i=new yt(Math.floor((t-1)/2)):n||(i=new yt(Math.floor(e)));var a=Math.floor((t-1)/2),l=tre(ere(function(c){return i.add(new yt(c-a).mul(r)).toNumber()}),T1);return l(0,t)}function z4(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new yt(0),tickMin:new yt(0),tickMax:new yt(0)};var o=B4(new yt(t).sub(e).div(n-1),r,i),a;e<=0&&t>=0?a=new yt(0):(a=new yt(e).add(t).div(2),a=a.sub(new yt(a).mod(o)));var l=Math.ceil(a.sub(e).div(o).toNumber()),c=Math.ceil(new yt(t).sub(a).div(o).toNumber()),d=l+c+1;return d>n?z4(e,t,n,r,i+1):(d<n&&(c=t>0?c+(n-d):c,l=t>0?l:l+(n-d)),{step:o,tickMin:a.sub(new yt(l).mul(o)),tickMax:a.add(new yt(c).mul(o))})}function hre(e){var t=Hc(e,2),n=t[0],r=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=Math.max(i,2),l=F4([n,r]),c=Hc(l,2),d=c[0],f=c[1];if(d===-1/0||f===1/0){var p=f===1/0?[d].concat(R1(T1(0,i-1).map(function(){return 1/0}))):[].concat(R1(T1(0,i-1).map(function(){return-1/0})),[f]);return n>r?N1(p):p}if(d===f)return pre(d,i,o);var g=z4(d,f,a,o),v=g.step,S=g.tickMin,x=g.tickMax,y=$m.rangeStep(S,x.add(new yt(.1).mul(v)),v);return n>r?N1(y):y}function mre(e,t){var n=Hc(e,2),r=n[0],i=n[1],o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=F4([r,i]),l=Hc(a,2),c=l[0],d=l[1];if(c===-1/0||d===1/0)return[r,i];if(c===d)return[c];var f=Math.max(t,2),p=B4(new yt(d).sub(c).div(f-1),o,0),g=[].concat(R1($m.rangeStep(new yt(c),new yt(d).sub(new yt(.99).mul(p)),p)),[d]);return r>i?N1(g):g}var gre=D4(hre),vre=D4(mre),yre="Invariant failed";function Ga(e,t){throw new Error(yre)}var bre=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function kl(e){"@babel/helpers - typeof";return kl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},kl(e)}function bh(){return bh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bh.apply(this,arguments)}function xre(e,t){return Are(e)||_re(e,t)||Sre(e,t)||wre()}function wre(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
288In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Sre(e,t){if(e){if(typeof e=="string")return GR(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return GR(e,t)}}function GR(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _re(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,l=[],c=!0,d=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(f){d=!0,i=f}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(d)throw i}}return l}}function Are(e){if(Array.isArray(e))return e}function Ere(e,t){if(e==null)return{};var n=kre(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function kre(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Ore(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Pre(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,H4(r.key),r)}}function jre(e,t,n){return t&&Pre(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Cre(e,t,n){return t=xh(t),Tre(e,U4()?Reflect.construct(t,n||[],xh(e).constructor):t.apply(e,n))}function Tre(e,t){if(t&&(kl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Nre(e)}function Nre(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function U4(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(U4=function(){return!!e})()}function xh(e){return xh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},xh(e)}function Rre(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$1(e,t)}function $1(e,t){return $1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},$1(e,t)}function q4(e,t,n){return t=H4(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function H4(e){var t=Ire(e,"string");return kl(t)=="symbol"?t:t+""}function Ire(e,t){if(kl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(kl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Mm=(function(e){function t(){return Ore(this,t),Cre(this,t,arguments)}return Rre(t,e),jre(t,[{key:"render",value:function(){var r=this.props,i=r.offset,o=r.layout,a=r.width,l=r.dataKey,c=r.data,d=r.dataPointFormatter,f=r.xAxis,p=r.yAxis,g=Ere(r,bre),v=Ue(g,!1);this.props.direction==="x"&&f.type!=="number"&&Ga();var S=c.map(function(x){var y=d(x,l),w=y.x,A=y.y,_=y.value,j=y.errorVal;if(!j)return null;var k=[],O,T;if(Array.isArray(j)){var N=xre(j,2);O=N[0],T=N[1]}else O=T=j;if(o==="vertical"){var I=f.scale,z=A+i,F=z+a,D=z-a,L=I(_-O),B=I(_+T);k.push({x1:B,y1:F,x2:B,y2:D}),k.push({x1:L,y1:z,x2:B,y2:z}),k.push({x1:L,y1:F,x2:L,y2:D})}else if(o==="horizontal"){var U=p.scale,G=w+i,Z=G-a,Y=G+a,ee=U(_-O),R=U(_+T);k.push({x1:Z,y1:R,x2:Y,y2:R}),k.push({x1:G,y1:ee,x2:G,y2:R}),k.push({x1:Z,y1:ee,x2:Y,y2:ee})}return W.createElement(gt,bh({className:"recharts-errorBar",key:"bar-".concat(k.map(function(q){return"".concat(q.x1,"-").concat(q.x2,"-").concat(q.y1,"-").concat(q.y2)}))},v),k.map(function(q){return W.createElement("line",bh({},q,{key:"line-".concat(q.x1,"-").concat(q.x2,"-").concat(q.y1,"-").concat(q.y2)}))}))});return W.createElement(gt,{className:"recharts-errorBars"},S)}}])})(W.Component);q4(Mm,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});q4(Mm,"displayName","ErrorBar");function Wc(e){"@babel/helpers - typeof";return Wc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wc(e)}function YR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ba(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?YR(Object(n),!0).forEach(function(r){$re(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $re(e,t,n){return t=Mre(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mre(e){var t=Dre(e,"string");return Wc(t)=="symbol"?t:t+""}function Dre(e,t){if(Wc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Wc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var W4=function(t){var n=t.children,r=t.formattedGraphicalItems,i=t.legendWidth,o=t.legendContent,a=pr(n,Js);if(!a)return null;var l=Js.defaultProps,c=l!==void 0?ba(ba({},l),a.props):{},d;return a.props&&a.props.payload?d=a.props&&a.props.payload:o==="children"?d=(r||[]).reduce(function(f,p){var g=p.item,v=p.props,S=v.sectors||v.data||[];return f.concat(S.map(function(x){return{type:a.props.iconType||g.props.legendType,value:x.name,color:x.fill,payload:x}}))},[]):d=(r||[]).map(function(f){var p=f.item,g=p.type.defaultProps,v=g!==void 0?ba(ba({},g),p.props):{},S=v.dataKey,x=v.name,y=v.legendType,w=v.hide;return{inactive:w,dataKey:S,type:c.iconType||y||"square",color:lA(p),value:x||S,payload:v}}),ba(ba(ba({},c),Js.getWithHeight(a,i)),{},{payload:d,item:a})};function Vc(e){"@babel/helpers - typeof";return Vc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vc(e)}function XR(e){return zre(e)||Bre(e)||Fre(e)||Lre()}function Lre(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
289In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Fre(e,t){if(e){if(typeof e=="string")return M1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return M1(e,t)}}function Bre(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function zre(e){if(Array.isArray(e))return M1(e)}function M1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function QR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ft(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?QR(Object(n),!0).forEach(function(r){tl(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function tl(e,t,n){return t=Ure(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ure(e){var t=qre(e,"string");return Vc(t)=="symbol"?t:t+""}function qre(e,t){if(Vc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Vc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function $n(e,t,n){return nt(e)||nt(t)?n:sn(t)?vr(e,t,n):Ve(t)?t(e):n}function yc(e,t,n,r){var i=zne(e,function(l){return $n(l,t)});if(n==="number"){var o=i.filter(function(l){return Se(l)||parseFloat(l)});return o.length?[Nm(o),Tm(o)]:[1/0,-1/0]}var a=r?i.filter(function(l){return!nt(l)}):i;return a.map(function(l){return sn(l)||l instanceof Date?l:""})}var Hre=function(t){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,a=-1,l=(n=r==null?void 0:r.length)!==null&&n!==void 0?n:0;if(l<=1)return 0;if(o&&o.axisType==="angleAxis"&&Math.abs(Math.abs(o.range[1]-o.range[0])-360)<=1e-6)for(var c=o.range,d=0;d<l;d++){var f=d>0?i[d-1].coordinate:i[l-1].coordinate,p=i[d].coordinate,g=d>=l-1?i[0].coordinate:i[d+1].coordinate,v=void 0;if(Un(p-f)!==Un(g-p)){var S=[];if(Un(g-p)===Un(c[1]-c[0])){v=g;var x=p+c[1]-c[0];S[0]=Math.min(x,(x+f)/2),S[1]=Math.max(x,(x+f)/2)}else{v=f;var y=g+c[1]-c[0];S[0]=Math.min(p,(y+p)/2),S[1]=Math.max(p,(y+p)/2)}var w=[Math.min(p,(v+p)/2),Math.max(p,(v+p)/2)];if(t>w[0]&&t<=w[1]||t>=S[0]&&t<=S[1]){a=i[d].index;break}}else{var A=Math.min(f,g),_=Math.max(f,g);if(t>(A+p)/2&&t<=(_+p)/2){a=i[d].index;break}}}else for(var j=0;j<l;j++)if(j===0&&t<=(r[j].coordinate+r[j+1].coordinate)/2||j>0&&j<l-1&&t>(r[j].coordinate+r[j-1].coordinate)/2&&t<=(r[j].coordinate+r[j+1].coordinate)/2||j===l-1&&t>(r[j].coordinate+r[j-1].coordinate)/2){a=r[j].index;break}return a},lA=function(t){var n,r=t,i=r.type.displayName,o=(n=t.type)!==null&&n!==void 0&&n.defaultProps?Ft(Ft({},t.type.defaultProps),t.props):t.props,a=o.stroke,l=o.fill,c;switch(i){case"Line":c=a;break;case"Area":case"Radar":c=a&&a!=="none"?a:l;break;default:c=l;break}return c},Wre=function(t){var n=t.barSize,r=t.totalSize,i=t.stackGroups,o=i===void 0?{}:i;if(!o)return{};for(var a={},l=Object.keys(o),c=0,d=l.length;c<d;c++)for(var f=o[l[c]].stackGroups,p=Object.keys(f),g=0,v=p.length;g<v;g++){var S=f[p[g]],x=S.items,y=S.cateAxisId,w=x.filter(function(T){return Gi(T.type).indexOf("Bar")>=0});if(w&&w.length){var A=w[0].type.defaultProps,_=A!==void 0?Ft(Ft({},A),w[0].props):w[0].props,j=_.barSize,k=_[y];a[k]||(a[k]=[]);var O=nt(j)?n:j;a[k].push({item:w[0],stackList:w.slice(1),barSize:nt(O)?void 0:qn(O,r,0)})}}return a},Vre=function(t){var n=t.barGap,r=t.barCategoryGap,i=t.bandSize,o=t.sizeList,a=o===void 0?[]:o,l=t.maxBarSize,c=a.length;if(c<1)return null;var d=qn(n,i,0,!0),f,p=[];if(a[0].barSize===+a[0].barSize){var g=!1,v=i/c,S=a.reduce(function(j,k){return j+k.barSize||0},0);S+=(c-1)*d,S>=i&&(S-=(c-1)*d,d=0),S>=i&&v>0&&(g=!0,v*=.9,S=c*v);var x=(i-S)/2>>0,y={offset:x-d,size:0};f=a.reduce(function(j,k){var O={item:k.item,position:{offset:y.offset+y.size+d,size:g?v:k.barSize}},T=[].concat(XR(j),[O]);return y=T[T.length-1].position,k.stackList&&k.stackList.length&&k.stackList.forEach(function(N){T.push({item:N,position:y})}),T},p)}else{var w=qn(r,i,0,!0);i-2*w-(c-1)*d<=0&&(d=0);var A=(i-2*w-(c-1)*d)/c;A>1&&(A>>=0);var _=l===+l?Math.min(A,l):A;f=a.reduce(function(j,k,O){var T=[].concat(XR(j),[{item:k.item,position:{offset:w+(A+d)*O+(A-_)/2,size:_}}]);return k.stackList&&k.stackList.length&&k.stackList.forEach(function(N){T.push({item:N,position:T[T.length-1].position})}),T},p)}return f},Kre=function(t,n,r,i){var o=r.children,a=r.width,l=r.margin,c=a-(l.left||0)-(l.right||0),d=W4({children:o,legendWidth:c});if(d){var f=i||{},p=f.width,g=f.height,v=d.align,S=d.verticalAlign,x=d.layout;if((x==="vertical"||x==="horizontal"&&S==="middle")&&v!=="center"&&Se(t[v]))return Ft(Ft({},t),{},tl({},v,t[v]+(p||0)));if((x==="horizontal"||x==="vertical"&&v==="center")&&S!=="middle"&&Se(t[S]))return Ft(Ft({},t),{},tl({},S,t[S]+(g||0)))}return t},Gre=function(t,n,r){return nt(n)?!0:t==="horizontal"?n==="yAxis":t==="vertical"||r==="x"?n==="xAxis":r==="y"?n==="yAxis":!0},V4=function(t,n,r,i,o){var a=n.props.children,l=Mr(a,Mm).filter(function(d){return Gre(i,o,d.props.direction)});if(l&&l.length){var c=l.map(function(d){return d.props.dataKey});return t.reduce(function(d,f){var p=$n(f,r);if(nt(p))return d;var g=Array.isArray(p)?[Nm(p),Tm(p)]:[p,p],v=c.reduce(function(S,x){var y=$n(f,x,0),w=g[0]-Math.abs(Array.isArray(y)?y[0]:y),A=g[1]+Math.abs(Array.isArray(y)?y[1]:y);return[Math.min(w,S[0]),Math.max(A,S[1])]},[1/0,-1/0]);return[Math.min(v[0],d[0]),Math.max(v[1],d[1])]},[1/0,-1/0])}return null},Yre=function(t,n,r,i,o){var a=n.map(function(l){return V4(t,l,r,o,i)}).filter(function(l){return!nt(l)});return a&&a.length?a.reduce(function(l,c){return[Math.min(l[0],c[0]),Math.max(l[1],c[1])]},[1/0,-1/0]):null},K4=function(t,n,r,i,o){var a=n.map(function(c){var d=c.props.dataKey;return r==="number"&&d&&V4(t,c,d,i)||yc(t,d,r,o)});if(r==="number")return a.reduce(function(c,d){return[Math.min(c[0],d[0]),Math.max(c[1],d[1])]},[1/0,-1/0]);var l={};return a.reduce(function(c,d){for(var f=0,p=d.length;f<p;f++)l[d[f]]||(l[d[f]]=!0,c.push(d[f]));return c},[])},G4=function(t,n){return t==="horizontal"&&n==="xAxis"||t==="vertical"&&n==="yAxis"||t==="centric"&&n==="angleAxis"||t==="radial"&&n==="radiusAxis"},Y4=function(t,n,r,i){if(i)return t.map(function(c){return c.coordinate});var o,a,l=t.map(function(c){return c.coordinate===n&&(o=!0),c.coordinate===r&&(a=!0),c.coordinate});return o||l.push(n),a||l.push(r),l},Ki=function(t,n,r){if(!t)return null;var i=t.scale,o=t.duplicateDomain,a=t.type,l=t.range,c=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,d=(n||r)&&a==="category"&&i.bandwidth?i.bandwidth()/c:0;if(d=t.axisType==="angleAxis"&&(l==null?void 0:l.length)>=2?Un(l[0]-l[1])*2*d:d,n&&(t.ticks||t.niceTicks)){var f=(t.ticks||t.niceTicks).map(function(p){var g=o?o.indexOf(p):p;return{coordinate:i(g)+d,value:p,offset:d}});return f.filter(function(p){return!Ed(p.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(p,g){return{coordinate:i(p)+d,value:p,index:g,offset:d}}):i.ticks&&!r?i.ticks(t.tickCount).map(function(p){return{coordinate:i(p)+d,value:p,offset:d}}):i.domain().map(function(p,g){return{coordinate:i(p)+d,value:o?o[p]:p,index:g,offset:d}})},j0=new WeakMap,up=function(t,n){if(typeof n!="function")return t;j0.has(t)||j0.set(t,new WeakMap);var r=j0.get(t);if(r.has(n))return r.get(n);var i=function(){t.apply(void 0,arguments),n.apply(void 0,arguments)};return r.set(n,i),i},X4=function(t,n,r){var i=t.scale,o=t.type,a=t.layout,l=t.axisType;if(i==="auto")return a==="radial"&&l==="radiusAxis"?{scale:Lc(),realScaleType:"band"}:a==="radial"&&l==="angleAxis"?{scale:hh(),realScaleType:"linear"}:o==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:vc(),realScaleType:"point"}:o==="category"?{scale:Lc(),realScaleType:"band"}:{scale:hh(),realScaleType:"linear"};if(Ha(i)){var c="scale".concat(gm(i));return{scale:(MR[c]||vc)(),realScaleType:MR[c]?c:"point"}}return Ve(i)?{scale:i}:{scale:vc(),realScaleType:"point"}},ZR=1e-4,Q4=function(t){var n=t.domain();if(!(!n||n.length<=2)){var r=n.length,i=t.range(),o=Math.min(i[0],i[1])-ZR,a=Math.max(i[0],i[1])+ZR,l=t(n[0]),c=t(n[r-1]);(l<o||l>a||c<o||c>a)&&t.domain([n[0],n[r-1]])}},Xre=function(t,n){if(!t)return null;for(var r=0,i=t.length;r<i;r++)if(t[r].item===n)return t[r].position;return null},Qre=function(t,n){if(!n||n.length!==2||!Se(n[0])||!Se(n[1]))return t;var r=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]),o=[t[0],t[1]];return(!Se(t[0])||t[0]<r)&&(o[0]=r),(!Se(t[1])||t[1]>i)&&(o[1]=i),o[0]>i&&(o[0]=i),o[1]<r&&(o[1]=r),o},Zre=function(t){var n=t.length;if(!(n<=0))for(var r=0,i=t[0].length;r<i;++r)for(var o=0,a=0,l=0;l<n;++l){var c=Ed(t[l][r][1])?t[l][r][0]:t[l][r][1];c>=0?(t[l][r][0]=o,t[l][r][1]=o+c,o=t[l][r][1]):(t[l][r][0]=a,t[l][r][1]=a+c,a=t[l][r][1])}},Jre=function(t){var n=t.length;if(!(n<=0))for(var r=0,i=t[0].length;r<i;++r)for(var o=0,a=0;a<n;++a){var l=Ed(t[a][r][1])?t[a][r][0]:t[a][r][1];l>=0?(t[a][r][0]=o,t[a][r][1]=o+l,o=t[a][r][1]):(t[a][r][0]=0,t[a][r][1]=0)}},eie={sign:Zre,expand:zX,none:yl,silhouette:UX,wiggle:qX,positive:Jre},tie=function(t,n,r){var i=n.map(function(l){return l.props.dataKey}),o=eie[r],a=BX().keys(i).value(function(l,c){return+$n(l,c,0)}).order(f1).offset(o);return a(t)},nie=function(t,n,r,i,o,a){if(!t)return null;var l=a?n.reverse():n,c={},d=l.reduce(function(p,g){var v,S=(v=g.type)!==null&&v!==void 0&&v.defaultProps?Ft(Ft({},g.type.defaultProps),g.props):g.props,x=S.stackId,y=S.hide;if(y)return p;var w=S[r],A=p[w]||{hasStack:!1,stackGroups:{}};if(sn(x)){var _=A.stackGroups[x]||{numericAxisId:r,cateAxisId:i,items:[]};_.items.push(g),A.hasStack=!0,A.stackGroups[x]=_}else A.stackGroups[kd("_stackId_")]={numericAxisId:r,cateAxisId:i,items:[g]};return Ft(Ft({},p),{},tl({},w,A))},c),f={};return Object.keys(d).reduce(function(p,g){var v=d[g];if(v.hasStack){var S={};v.stackGroups=Object.keys(v.stackGroups).reduce(function(x,y){var w=v.stackGroups[y];return Ft(Ft({},x),{},tl({},y,{numericAxisId:r,cateAxisId:i,items:w.items,stackedData:tie(t,w.items,o)}))},S)}return Ft(Ft({},p),{},tl({},g,v))},f)},Z4=function(t,n){var r=n.realScaleType,i=n.type,o=n.tickCount,a=n.originalDomain,l=n.allowDecimals,c=r||n.scale;if(c!=="auto"&&c!=="linear")return null;if(o&&i==="number"&&a&&(a[0]==="auto"||a[1]==="auto")){var d=t.domain();if(!d.length)return null;var f=gre(d,o,l);return t.domain([Nm(f),Tm(f)]),{niceTicks:f}}if(o&&i==="number"){var p=t.domain(),g=vre(p,o,l);return{niceTicks:g}}return null},JR=function(t){var n=t.axis,r=t.ticks,i=t.offset,o=t.bandSize,a=t.entry,l=t.index;if(n.type==="category")return r[l]?r[l].coordinate+i:null;var c=$n(a,n.dataKey,n.domain[l]);return nt(c)?null:n.scale(c)-o/2+i},rie=function(t){var n=t.numericAxis,r=n.scale.domain();if(n.type==="number"){var i=Math.min(r[0],r[1]),o=Math.max(r[0],r[1]);return i<=0&&o>=0?0:o<0?o:i}return r[0]},iie=function(t,n){var r,i=(r=t.type)!==null&&r!==void 0&&r.defaultProps?Ft(Ft({},t.type.defaultProps),t.props):t.props,o=i.stackId;if(sn(o)){var a=n[o];if(a){var l=a.items.indexOf(t);return l>=0?a.stackedData[l]:null}}return null},oie=function(t){return t.reduce(function(n,r){return[Nm(r.concat([n[0]]).filter(Se)),Tm(r.concat([n[1]]).filter(Se))]},[1/0,-1/0])},J4=function(t,n,r){return Object.keys(t).reduce(function(i,o){var a=t[o],l=a.stackedData,c=l.reduce(function(d,f){var p=oie(f.slice(n,r+1));return[Math.min(d[0],p[0]),Math.max(d[1],p[1])]},[1/0,-1/0]);return[Math.min(c[0],i[0]),Math.max(c[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},e2=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,t2=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,D1=function(t,n,r){if(Ve(t))return t(n,r);if(!Array.isArray(t))return n;var i=[];if(Se(t[0]))i[0]=r?t[0]:Math.min(t[0],n[0]);else if(e2.test(t[0])){var o=+e2.exec(t[0])[1];i[0]=n[0]-o}else Ve(t[0])?i[0]=t[0](n[0]):i[0]=n[0];if(Se(t[1]))i[1]=r?t[1]:Math.max(t[1],n[1]);else if(t2.test(t[1])){var a=+t2.exec(t[1])[1];i[1]=n[1]+a}else Ve(t[1])?i[1]=t[1](n[1]):i[1]=n[1];return i},wh=function(t,n,r){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!r||i>0)return i}if(t&&n&&n.length>=2){for(var o=$_(n,function(p){return p.coordinate}),a=1/0,l=1,c=o.length;l<c;l++){var d=o[l],f=o[l-1];a=Math.min((d.coordinate||0)-(f.coordinate||0),a)}return a===1/0?0:a}return r?void 0:0},n2=function(t,n,r){return!t||!t.length||Rm(t,vr(r,"type.defaultProps.domain"))?n:t},eF=function(t,n){var r=t.type.defaultProps?Ft(Ft({},t.type.defaultProps),t.props):t.props,i=r.dataKey,o=r.name,a=r.unit,l=r.formatter,c=r.tooltipType,d=r.chartType,f=r.hide;return Ft(Ft({},Ue(t,!1)),{},{dataKey:i,unit:a,formatter:l,name:o||i,color:lA(t),value:$n(n,i),type:c,payload:n,chartType:d,hide:f})};function Kc(e){"@babel/helpers - typeof";return Kc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kc(e)}function r2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function zi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?r2(Object(n),!0).forEach(function(r){tF(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function tF(e,t,n){return t=aie(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aie(e){var t=sie(e,"string");return Kc(t)=="symbol"?t:t+""}function sie(e,t){if(Kc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Kc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function lie(e,t){return fie(e)||die(e,t)||cie(e,t)||uie()}function uie(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
290In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cie(e,t){if(e){if(typeof e=="string")return i2(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i2(e,t)}}function i2(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function die(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,l=[],c=!0,d=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(f){d=!0,i=f}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(d)throw i}}return l}}function fie(e){if(Array.isArray(e))return e}var Sh=Math.PI/180,pie=function(t){return t*180/Math.PI},kt=function(t,n,r,i){return{x:t+Math.cos(-Sh*i)*r,y:n+Math.sin(-Sh*i)*r}},nF=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(r.left||0)-(r.right||0)),Math.abs(n-(r.top||0)-(r.bottom||0)))/2},hie=function(t,n,r,i,o){var a=t.width,l=t.height,c=t.startAngle,d=t.endAngle,f=qn(t.cx,a,a/2),p=qn(t.cy,l,l/2),g=nF(a,l,r),v=qn(t.innerRadius,g,0),S=qn(t.outerRadius,g,g*.8),x=Object.keys(n);return x.reduce(function(y,w){var A=n[w],_=A.domain,j=A.reversed,k;if(nt(A.range))i==="angleAxis"?k=[c,d]:i==="radiusAxis"&&(k=[v,S]),j&&(k=[k[1],k[0]]);else{k=A.range;var O=k,T=lie(O,2);c=T[0],d=T[1]}var N=X4(A,o),I=N.realScaleType,z=N.scale;z.domain(_).range(k),Q4(z);var F=Z4(z,zi(zi({},A),{},{realScaleType:I})),D=zi(zi(zi({},A),F),{},{range:k,radius:S,realScaleType:I,scale:z,cx:f,cy:p,innerRadius:v,outerRadius:S,startAngle:c,endAngle:d});return zi(zi({},y),{},tF({},w,D))},{})},mie=function(t,n){var r=t.x,i=t.y,o=n.x,a=n.y;return Math.sqrt(Math.pow(r-o,2)+Math.pow(i-a,2))},gie=function(t,n){var r=t.x,i=t.y,o=n.cx,a=n.cy,l=mie({x:r,y:i},{x:o,y:a});if(l<=0)return{radius:l};var c=(r-o)/l,d=Math.acos(c);return i>a&&(d=2*Math.PI-d),{radius:l,angle:pie(d),angleInRadian:d}},vie=function(t){var n=t.startAngle,r=t.endAngle,i=Math.floor(n/360),o=Math.floor(r/360),a=Math.min(i,o);return{startAngle:n-a*360,endAngle:r-a*360}},yie=function(t,n){var r=n.startAngle,i=n.endAngle,o=Math.floor(r/360),a=Math.floor(i/360),l=Math.min(o,a);return t+l*360},o2=function(t,n){var r=t.x,i=t.y,o=gie({x:r,y:i},n),a=o.radius,l=o.angle,c=n.innerRadius,d=n.outerRadius;if(a<c||a>d)return!1;if(a===0)return!0;var f=vie(n),p=f.startAngle,g=f.endAngle,v=l,S;if(p<=g){for(;v>g;)v-=360;for(;v<p;)v+=360;S=v>=p&&v<=g}else{for(;v>p;)v-=360;for(;v<g;)v+=360;S=v>=g&&v<=p}return S?zi(zi({},n),{},{radius:a,angle:yie(v,n)}):null},rF=function(t){return!P.isValidElement(t)&&!Ve(t)&&typeof t!="boolean"?t.className:""};function Gc(e){"@babel/helpers - typeof";return Gc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gc(e)}var bie=["offset"];function xie(e){return Aie(e)||_ie(e)||Sie(e)||wie()}function wie(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
291In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Sie(e,t){if(e){if(typeof e=="string")return L1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return L1(e,t)}}function _ie(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Aie(e){if(Array.isArray(e))return L1(e)}function L1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Eie(e,t){if(e==null)return{};var n=kie(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function kie(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function a2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function on(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?a2(Object(n),!0).forEach(function(r){Oie(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Oie(e,t,n){return t=Pie(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pie(e){var t=jie(e,"string");return Gc(t)=="symbol"?t:t+""}function jie(e,t){if(Gc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Gc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Yc(){return Yc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yc.apply(this,arguments)}var Cie=function(t){var n=t.value,r=t.formatter,i=nt(t.children)?n:t.children;return Ve(r)?r(i):i},Tie=function(t,n){var r=Un(n-t),i=Math.min(Math.abs(n-t),360);return r*i},Nie=function(t,n,r){var i=t.position,o=t.viewBox,a=t.offset,l=t.className,c=o,d=c.cx,f=c.cy,p=c.innerRadius,g=c.outerRadius,v=c.startAngle,S=c.endAngle,x=c.clockWise,y=(p+g)/2,w=Tie(v,S),A=w>=0?1:-1,_,j;i==="insideStart"?(_=v+A*a,j=x):i==="insideEnd"?(_=S-A*a,j=!x):i==="end"&&(_=S+A*a,j=x),j=w<=0?j:!j;var k=kt(d,f,y,_),O=kt(d,f,y,_+(j?1:-1)*359),T="M".concat(k.x,",").concat(k.y,`
292    A`).concat(y,",").concat(y,",0,1,").concat(j?0:1,`,
293    `).concat(O.x,",").concat(O.y),N=nt(t.id)?kd("recharts-radial-line-"):t.id;return W.createElement("text",Yc({},r,{dominantBaseline:"central",className:Xe("recharts-radial-bar-label",l)}),W.createElement("defs",null,W.createElement("path",{id:N,d:T})),W.createElement("textPath",{xlinkHref:"#".concat(N)},n))},Rie=function(t){var n=t.viewBox,r=t.offset,i=t.position,o=n,a=o.cx,l=o.cy,c=o.innerRadius,d=o.outerRadius,f=o.startAngle,p=o.endAngle,g=(f+p)/2;if(i==="outside"){var v=kt(a,l,d+r,g),S=v.x,x=v.y;return{x:S,y:x,textAnchor:S>=a?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:a,y:l,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:a,y:l,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:a,y:l,textAnchor:"middle",verticalAnchor:"end"};var y=(c+d)/2,w=kt(a,l,y,g),A=w.x,_=w.y;return{x:A,y:_,textAnchor:"middle",verticalAnchor:"middle"}},Iie=function(t){var n=t.viewBox,r=t.parentViewBox,i=t.offset,o=t.position,a=n,l=a.x,c=a.y,d=a.width,f=a.height,p=f>=0?1:-1,g=p*i,v=p>0?"end":"start",S=p>0?"start":"end",x=d>=0?1:-1,y=x*i,w=x>0?"end":"start",A=x>0?"start":"end";if(o==="top"){var _={x:l+d/2,y:c-p*i,textAnchor:"middle",verticalAnchor:v};return on(on({},_),r?{height:Math.max(c-r.y,0),width:d}:{})}if(o==="bottom"){var j={x:l+d/2,y:c+f+g,textAnchor:"middle",verticalAnchor:S};return on(on({},j),r?{height:Math.max(r.y+r.height-(c+f),0),width:d}:{})}if(o==="left"){var k={x:l-y,y:c+f/2,textAnchor:w,verticalAnchor:"middle"};return on(on({},k),r?{width:Math.max(k.x-r.x,0),height:f}:{})}if(o==="right"){var O={x:l+d+y,y:c+f/2,textAnchor:A,verticalAnchor:"middle"};return on(on({},O),r?{width:Math.max(r.x+r.width-O.x,0),height:f}:{})}var T=r?{width:d,height:f}:{};return o==="insideLeft"?on({x:l+y,y:c+f/2,textAnchor:A,verticalAnchor:"middle"},T):o==="insideRight"?on({x:l+d-y,y:c+f/2,textAnchor:w,verticalAnchor:"middle"},T):o==="insideTop"?on({x:l+d/2,y:c+g,textAnchor:"middle",verticalAnchor:S},T):o==="insideBottom"?on({x:l+d/2,y:c+f-g,textAnchor:"middle",verticalAnchor:v},T):o==="insideTopLeft"?on({x:l+y,y:c+g,textAnchor:A,verticalAnchor:S},T):o==="insideTopRight"?on({x:l+d-y,y:c+g,textAnchor:w,verticalAnchor:S},T):o==="insideBottomLeft"?on({x:l+y,y:c+f-g,textAnchor:A,verticalAnchor:v},T):o==="insideBottomRight"?on({x:l+d-y,y:c+f-g,textAnchor:w,verticalAnchor:v},T):Gl(o)&&(Se(o.x)||ja(o.x))&&(Se(o.y)||ja(o.y))?on({x:l+qn(o.x,d),y:c+qn(o.y,f),textAnchor:"end",verticalAnchor:"end"},T):on({x:l+d/2,y:c+f/2,textAnchor:"middle",verticalAnchor:"middle"},T)},$ie=function(t){return"cx"in t&&Se(t.cx)};function gn(e){var t=e.offset,n=t===void 0?5:t,r=Eie(e,bie),i=on({offset:n},r),o=i.viewBox,a=i.position,l=i.value,c=i.children,d=i.content,f=i.className,p=f===void 0?"":f,g=i.textBreakAll;if(!o||nt(l)&&nt(c)&&!P.isValidElement(d)&&!Ve(d))return null;if(P.isValidElement(d))return P.cloneElement(d,i);var v;if(Ve(d)){if(v=P.createElement(d,i),P.isValidElement(v))return v}else v=Cie(i);var S=$ie(o),x=Ue(i,!0);if(S&&(a==="insideStart"||a==="insideEnd"||a==="end"))return Nie(i,v,x);var y=S?Rie(i):Iie(i);return W.createElement(Va,Yc({className:Xe("recharts-label",p)},x,y,{breakAll:g}),v)}gn.displayName="Label";var iF=function(t){var n=t.cx,r=t.cy,i=t.angle,o=t.startAngle,a=t.endAngle,l=t.r,c=t.radius,d=t.innerRadius,f=t.outerRadius,p=t.x,g=t.y,v=t.top,S=t.left,x=t.width,y=t.height,w=t.clockWise,A=t.labelViewBox;if(A)return A;if(Se(x)&&Se(y)){if(Se(p)&&Se(g))return{x:p,y:g,width:x,height:y};if(Se(v)&&Se(S))return{x:v,y:S,width:x,height:y}}return Se(p)&&Se(g)?{x:p,y:g,width:0,height:0}:Se(n)&&Se(r)?{cx:n,cy:r,startAngle:o||i||0,endAngle:a||i||0,innerRadius:d||0,outerRadius:f||c||l||0,clockWise:w}:t.viewBox?t.viewBox:{}},Mie=function(t,n){return t?t===!0?W.createElement(gn,{key:"label-implicit",viewBox:n}):sn(t)?W.createElement(gn,{key:"label-implicit",viewBox:n,value:t}):P.isValidElement(t)?t.type===gn?P.cloneElement(t,{key:"label-implicit",viewBox:n}):W.createElement(gn,{key:"label-implicit",content:t,viewBox:n}):Ve(t)?W.createElement(gn,{key:"label-implicit",content:t,viewBox:n}):Gl(t)?W.createElement(gn,Yc({viewBox:n},t,{key:"label-implicit"})):null:null},Die=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&r&&!t.label)return null;var i=t.children,o=iF(t),a=Mr(i,gn).map(function(c,d){return P.cloneElement(c,{viewBox:n||o,key:"label-".concat(d)})});if(!r)return a;var l=Mie(t.label,n||o);return[l].concat(xie(a))};gn.parseViewBox=iF;gn.renderCallByParent=Die;var C0,s2;function Lie(){if(s2)return C0;s2=1;function e(t){var n=t==null?0:t.length;return n?t[n-1]:void 0}return C0=e,C0}var Fie=Lie();const Bie=lt(Fie);function Xc(e){"@babel/helpers - typeof";return Xc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xc(e)}var zie=["valueAccessor"],Uie=["data","dataKey","clockWise","id","textBreakAll"];function qie(e){return Kie(e)||Vie(e)||Wie(e)||Hie()}function Hie(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
294In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Wie(e,t){if(e){if(typeof e=="string")return F1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return F1(e,t)}}function Vie(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Kie(e){if(Array.isArray(e))return F1(e)}function F1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _h(){return _h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_h.apply(this,arguments)}function l2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function u2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?l2(Object(n),!0).forEach(function(r){Gie(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Gie(e,t,n){return t=Yie(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yie(e){var t=Xie(e,"string");return Xc(t)=="symbol"?t:t+""}function Xie(e,t){if(Xc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Xc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function c2(e,t){if(e==null)return{};var n=Qie(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Qie(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var Zie=function(t){return Array.isArray(t.value)?Bie(t.value):t.value};function Yo(e){var t=e.valueAccessor,n=t===void 0?Zie:t,r=c2(e,zie),i=r.data,o=r.dataKey,a=r.clockWise,l=r.id,c=r.textBreakAll,d=c2(r,Uie);return!i||!i.length?null:W.createElement(gt,{className:"recharts-label-list"},i.map(function(f,p){var g=nt(o)?n(f,p):$n(f&&f.payload,o),v=nt(l)?{}:{id:"".concat(l,"-").concat(p)};return W.createElement(gn,_h({},Ue(f,!0),d,v,{parentViewBox:f.parentViewBox,value:g,textBreakAll:c,viewBox:gn.parseViewBox(nt(a)?f:u2(u2({},f),{},{clockWise:a})),key:"label-".concat(p),index:p}))}))}Yo.displayName="LabelList";function Jie(e,t){return e?e===!0?W.createElement(Yo,{key:"labelList-implicit",data:t}):W.isValidElement(e)||Ve(e)?W.createElement(Yo,{key:"labelList-implicit",data:t,content:e}):Gl(e)?W.createElement(Yo,_h({data:t},e,{key:"labelList-implicit"})):null:null}function eoe(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&n&&!e.label)return null;var r=e.children,i=Mr(r,Yo).map(function(a,l){return P.cloneElement(a,{data:t,key:"labelList-".concat(l)})});if(!n)return i;var o=Jie(e.label,t);return[o].concat(qie(i))}Yo.renderCallByParent=eoe;function Qc(e){"@babel/helpers - typeof";return Qc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qc(e)}function B1(){return B1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},B1.apply(this,arguments)}function d2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function f2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?d2(Object(n),!0).forEach(function(r){toe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function toe(e,t,n){return t=noe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function noe(e){var t=roe(e,"string");return Qc(t)=="symbol"?t:t+""}function roe(e,t){if(Qc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Qc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ioe=function(t,n){var r=Un(n-t),i=Math.min(Math.abs(n-t),359.999);return r*i},cp=function(t){var n=t.cx,r=t.cy,i=t.radius,o=t.angle,a=t.sign,l=t.isExternal,c=t.cornerRadius,d=t.cornerIsExternal,f=c*(l?1:-1)+i,p=Math.asin(c/f)/Sh,g=d?o:o+a*p,v=kt(n,r,f,g),S=kt(n,r,i,g),x=d?o-a*p:o,y=kt(n,r,f*Math.cos(p*Sh),x);return{center:v,circleTangency:S,lineTangency:y,theta:p}},oF=function(t){var n=t.cx,r=t.cy,i=t.innerRadius,o=t.outerRadius,a=t.startAngle,l=t.endAngle,c=ioe(a,l),d=a+c,f=kt(n,r,o,a),p=kt(n,r,o,d),g="M ".concat(f.x,",").concat(f.y,`
295    A `).concat(o,",").concat(o,`,0,
296    `).concat(+(Math.abs(c)>180),",").concat(+(a>d),`,
297    `).concat(p.x,",").concat(p.y,`
298  `);if(i>0){var v=kt(n,r,i,a),S=kt(n,r,i,d);g+="L ".concat(S.x,",").concat(S.y,`
299            A `).concat(i,",").concat(i,`,0,
300            `).concat(+(Math.abs(c)>180),",").concat(+(a<=d),`,
301            `).concat(v.x,",").concat(v.y," Z")}else g+="L ".concat(n,",").concat(r," Z");return g},ooe=function(t){var n=t.cx,r=t.cy,i=t.innerRadius,o=t.outerRadius,a=t.cornerRadius,l=t.forceCornerRadius,c=t.cornerIsExternal,d=t.startAngle,f=t.endAngle,p=Un(f-d),g=cp({cx:n,cy:r,radius:o,angle:d,sign:p,cornerRadius:a,cornerIsExternal:c}),v=g.circleTangency,S=g.lineTangency,x=g.theta,y=cp({cx:n,cy:r,radius:o,angle:f,sign:-p,cornerRadius:a,cornerIsExternal:c}),w=y.circleTangency,A=y.lineTangency,_=y.theta,j=c?Math.abs(d-f):Math.abs(d-f)-x-_;if(j<0)return l?"M ".concat(S.x,",").concat(S.y,`
302        a`).concat(a,",").concat(a,",0,0,1,").concat(a*2,`,0
303        a`).concat(a,",").concat(a,",0,0,1,").concat(-a*2,`,0
304      `):oF({cx:n,cy:r,innerRadius:i,outerRadius:o,startAngle:d,endAngle:f});var k="M ".concat(S.x,",").concat(S.y,`
305    A`).concat(a,",").concat(a,",0,0,").concat(+(p<0),",").concat(v.x,",").concat(v.y,`
306    A`).concat(o,",").concat(o,",0,").concat(+(j>180),",").concat(+(p<0),",").concat(w.x,",").concat(w.y,`
307    A`).concat(a,",").concat(a,",0,0,").concat(+(p<0),",").concat(A.x,",").concat(A.y,`
308  `);if(i>0){var O=cp({cx:n,cy:r,radius:i,angle:d,sign:p,isExternal:!0,cornerRadius:a,cornerIsExternal:c}),T=O.circleTangency,N=O.lineTangency,I=O.theta,z=cp({cx:n,cy:r,radius:i,angle:f,sign:-p,isExternal:!0,cornerRadius:a,cornerIsExternal:c}),F=z.circleTangency,D=z.lineTangency,L=z.theta,B=c?Math.abs(d-f):Math.abs(d-f)-I-L;if(B<0&&a===0)return"".concat(k,"L").concat(n,",").concat(r,"Z");k+="L".concat(D.x,",").concat(D.y,`
309      A`).concat(a,",").concat(a,",0,0,").concat(+(p<0),",").concat(F.x,",").concat(F.y,`
310      A`).concat(i,",").concat(i,",0,").concat(+(B>180),",").concat(+(p>0),",").concat(T.x,",").concat(T.y,`
311      A`).concat(a,",").concat(a,",0,0,").concat(+(p<0),",").concat(N.x,",").concat(N.y,"Z")}else k+="L".concat(n,",").concat(r,"Z");return k},aoe={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},aF=function(t){var n=f2(f2({},aoe),t),r=n.cx,i=n.cy,o=n.innerRadius,a=n.outerRadius,l=n.cornerRadius,c=n.forceCornerRadius,d=n.cornerIsExternal,f=n.startAngle,p=n.endAngle,g=n.className;if(a<o||f===p)return null;var v=Xe("recharts-sector",g),S=a-o,x=qn(l,S,0,!0),y;return x>0&&Math.abs(f-p)<360?y=ooe({cx:r,cy:i,innerRadius:o,outerRadius:a,cornerRadius:Math.min(x,S/2),forceCornerRadius:c,cornerIsExternal:d,startAngle:f,endAngle:p}):y=oF({cx:r,cy:i,innerRadius:o,outerRadius:a,startAngle:f,endAngle:p}),W.createElement("path",B1({},Ue(n,!0),{className:v,d:y,role:"img"}))};function Zc(e){"@babel/helpers - typeof";return Zc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zc(e)}function z1(){return z1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},z1.apply(this,arguments)}function p2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function h2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?p2(Object(n),!0).forEach(function(r){soe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function soe(e,t,n){return t=loe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function loe(e){var t=uoe(e,"string");return Zc(t)=="symbol"?t:t+""}function uoe(e,t){if(Zc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Zc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var m2={curveBasisClosed:jX,curveBasisOpen:CX,curveBasis:PX,curveBumpX:hX,curveBumpY:mX,curveLinearClosed:TX,curveLinear:ym,curveMonotoneX:NX,curveMonotoneY:RX,curveNatural:IX,curveStep:$X,curveStepAfter:DX,curveStepBefore:MX},dp=function(t){return t.x===+t.x&&t.y===+t.y},Zu=function(t){return t.x},Ju=function(t){return t.y},coe=function(t,n){if(Ve(t))return t;var r="curve".concat(gm(t));return(r==="curveMonotone"||r==="curveBump")&&n?m2["".concat(r).concat(n==="vertical"?"Y":"X")]:m2[r]||ym},doe=function(t){var n=t.type,r=n===void 0?"linear":n,i=t.points,o=i===void 0?[]:i,a=t.baseLine,l=t.layout,c=t.connectNulls,d=c===void 0?!1:c,f=coe(r,l),p=d?o.filter(function(x){return dp(x)}):o,g;if(Array.isArray(a)){var v=d?a.filter(function(x){return dp(x)}):a,S=p.map(function(x,y){return h2(h2({},x),{},{base:v[y]})});return l==="vertical"?g=np().y(Ju).x1(Zu).x0(function(x){return x.base.x}):g=np().x(Zu).y1(Ju).y0(function(x){return x.base.y}),g.defined(dp).curve(f),g(S)}return l==="vertical"&&Se(a)?g=np().y(Ju).x1(Zu).x0(a):Se(a)?g=np().x(Zu).y1(Ju).y0(a):g=o3().x(Zu).y(Ju),g.defined(dp).curve(f),g(p)},U1=function(t){var n=t.className,r=t.points,i=t.path,o=t.pathRef;if((!r||!r.length)&&!i)return null;var a=r&&r.length?doe(t):i;return P.createElement("path",z1({},Ue(t,!1),Xp(t),{className:Xe("recharts-curve",n),d:a,ref:o}))},T0={exports:{}},N0,g2;function foe(){if(g2)return N0;g2=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return N0=e,N0}var R0,v2;function poe(){if(v2)return R0;v2=1;var e=foe();function t(){}function n(){}return n.resetWarningCache=t,R0=function(){function r(a,l,c,d,f,p){if(p!==e){var g=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw g.name="Invariant Violation",g}}r.isRequired=r;function i(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o},R0}var y2;function hoe(){return y2||(y2=1,T0.exports=poe()()),T0.exports}var moe=hoe();const pt=lt(moe),{getOwnPropertyNames:goe,getOwnPropertySymbols:voe}=Object,{hasOwnProperty:yoe}=Object.prototype;function I0(e,t){return function(r,i,o){return e(r,i,o)&&t(r,i,o)}}function fp(e){return function(n,r,i){if(!n||!r||typeof n!="object"||typeof r!="object")return e(n,r,i);const{cache:o}=i,a=o.get(n),l=o.get(r);if(a&&l)return a===r&&l===n;o.set(n,r),o.set(r,n);const c=e(n,r,i);return o.delete(n),o.delete(r),c}}function boe(e){return e!=null?e[Symbol.toStringTag]:void 0}function b2(e){return goe(e).concat(voe(e))}const xoe=Object.hasOwn||((e,t)=>yoe.call(e,t));function is(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const woe="__v",Soe="__o",_oe="_owner",{getOwnPropertyDescriptor:x2,keys:w2}=Object;function Aoe(e,t){return e.byteLength===t.byteLength&&Ah(new Uint8Array(e),new Uint8Array(t))}function Eoe(e,t,n){let r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function koe(e,t){return e.byteLength===t.byteLength&&Ah(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function Ooe(e,t){return is(e.getTime(),t.getTime())}function Poe(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function joe(e,t){return e===t}function S2(e,t,n){const r=e.size;if(r!==t.size)return!1;if(!r)return!0;const i=new Array(r),o=e.entries();let a,l,c=0;for(;(a=o.next())&&!a.done;){const d=t.entries();let f=!1,p=0;for(;(l=d.next())&&!l.done;){if(i[p]){p++;continue}const g=a.value,v=l.value;if(n.equals(g[0],v[0],c,p,e,t,n)&&n.equals(g[1],v[1],g[0],v[0],e,t,n)){f=i[p]=!0;break}p++}if(!f)return!1;c++}return!0}const Coe=is;function Toe(e,t,n){const r=w2(e);let i=r.length;if(w2(t).length!==i)return!1;for(;i-- >0;)if(!sF(e,t,n,r[i]))return!1;return!0}function ec(e,t,n){const r=b2(e);let i=r.length;if(b2(t).length!==i)return!1;let o,a,l;for(;i-- >0;)if(o=r[i],!sF(e,t,n,o)||(a=x2(e,o),l=x2(t,o),(a||l)&&(!a||!l||a.configurable!==l.configurable||a.enumerable!==l.enumerable||a.writable!==l.writable)))return!1;return!0}function Noe(e,t){return is(e.valueOf(),t.valueOf())}function Roe(e,t){return e.source===t.source&&e.flags===t.flags}function _2(e,t,n){const r=e.size;if(r!==t.size)return!1;if(!r)return!0;const i=new Array(r),o=e.values();let a,l;for(;(a=o.next())&&!a.done;){const c=t.values();let d=!1,f=0;for(;(l=c.next())&&!l.done;){if(!i[f]&&n.equals(a.value,l.value,a.value,l.value,e,t,n)){d=i[f]=!0;break}f++}if(!d)return!1}return!0}function Ah(e,t){let n=e.byteLength;if(t.byteLength!==n||e.byteOffset!==t.byteOffset)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}function Ioe(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function sF(e,t,n,r){return(r===_oe||r===Soe||r===woe)&&(e.$$typeof||t.$$typeof)?!0:xoe(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}const $oe="[object ArrayBuffer]",Moe="[object Arguments]",Doe="[object Boolean]",Loe="[object DataView]",Foe="[object Date]",Boe="[object Error]",zoe="[object Map]",Uoe="[object Number]",qoe="[object Object]",Hoe="[object RegExp]",Woe="[object Set]",Voe="[object String]",Koe={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array
311]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},Goe="[object URL]",Yoe=Object.prototype.toString;function Xoe({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:n,areDatesEqual:r,areErrorsEqual:i,areFunctionsEqual:o,areMapsEqual:a,areNumbersEqual:l,areObjectsEqual:c,arePrimitiveWrappersEqual:d,areRegExpsEqual:f,areSetsEqual:p,areTypedArraysEqual:g,areUrlsEqual:v,unknownTagComparators:S}){return function(y,w,A){if(y===w)return!0;if(y==null||w==null)return!1;const _=typeof y;if(_!==typeof w)return!1;if(_!=="object")return _==="number"?l(y,w,A):_==="function"?o(y,w,A):!1;const j=y.constructor;if(j!==w.constructor)return!1;if(j===Object)return c(y,w,A);if(Array.isArray(y))return t(y,w,A);if(j===Date)return r(y,w,A);if(j===RegExp)return f(y,w,A);if(j===Map)return a(y,w,A);if(j===Set)return p(y,w,A);const k=Yoe.call(y);if(k===Foe)return r(y,w,A);if(k===Hoe)return f(y,w,A);if(k===zoe)return a(y,w,A);if(k===Woe)return p(y,w,A);if(k===qoe)return typeof y.then!="function"&&typeof w.then!="function"&&c(y,w,A);if(k===Goe)return v(y,w,A);if(k===Boe)return i(y,w,A);if(k===Moe)return c(y,w,A);if(Koe[k])return g(y,w,A);if(k===$oe)return e(y,w,A);if(k===Loe)return n(y,w,A);if(k===Doe||k===Uoe||k===Voe)return d(y,w,A);if(S){let O=S[k];if(!O){const T=boe(y);T&&(O=S[T])}if(O)return O(y,w,A)}return!1}}function Qoe({circular:e,createCustomConfig:t,strict:n}){let r={areArrayBuffersEqual:Aoe,areArraysEqual:n?ec:Eoe,areDataViewsEqual:koe,areDatesEqual:Ooe,areErrorsEqual:Poe,areFunctionsEqual:joe,areMapsEqual:n?I0(S2,ec):S2,areNumbersEqual:Coe,areObjectsEqual:n?ec:Toe,arePrimitiveWrappersEqual:Noe,areRegExpsEqual:Roe,areSetsEqual:n?I0(_2,ec):_2,areTypedArraysEqual:n?I0(Ah,ec):Ah,areUrlsEqual:Ioe,unknownTagComparators:void 0};if(t&&(r=Object.assign({},r,t(r))),e){const i=fp(r.areArraysEqual),o=fp(r.areMapsEqual),a=fp(r.areObjectsEqual),l=fp(r.areSetsEqual);r=Object.assign({},r,{areArraysEqual:i,areMapsEqual:o,areObjectsEqual:a,areSetsEqual:l})}return r}function Zoe(e){return function(t,n,r,i,o,a,l){return e(t,n,l)}}function Joe({circular:e,comparator:t,createState:n,equals:r,strict:i}){if(n)return function(l,c){const{cache:d=e?new WeakMap:void 0,meta:f}=n();return t(l,c,{cache:d,equals:r,meta:f,strict:i})};if(e)return function(l,c){return t(l,c,{cache:new WeakMap,equals:r,meta:void 0,strict:i})};const o={cache:void 0,equals:r,meta:void 0,strict:i};return function(l,c){return t(l,c,o)}}const eae=ta();ta({strict:!0});ta({circular:!0});ta({circular:!0,strict:!0});ta({createInternalComparator:()=>is});ta({strict:!0,createInternalComparator:()=>is});ta({circular:!0,createInternalComparator:()=>is});ta({circular:!0,createInternalComparator:()=>is,strict:!0});function ta(e={}){const{circular:t=!1,createInternalComparator:n,createState:r,strict:i=!1}=e,o=Qoe(e),a=Xoe(o),l=n?n(a):Zoe(a);return Joe({circular:t,comparator:a,createState:r,equals:l,strict:i})}function tae(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function A2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=-1,r=function i(o){n<0&&(n=o),o-n>t?(e(o),n=-1):tae(i)};requestAnimationFrame(r)}function q1(e){"@babel/helpers - typeof";return q1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},q1(e)}function nae(e){return aae(e)||oae(e)||iae(e)||rae()}function rae(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
312In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function iae(e,t){if(e){if(typeof e=="string")return E2(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return E2(e,t)}}function E2(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function oae(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function aae(e){if(Array.isArray(e))return e}function sae(){var e={},t=function(){return null}
vendor: 11,210 bytes, lines 312-317
312,n=!1,r=function i(o){if(!n){if(Array.isArray(o)){if(!o.length)return;var a=o,l=nae(a),c=l[0],d=l.slice(1);if(typeof c=="number"){A2(i.bind(null,d),c);return}i(c),A2(i.bind(null,d));return}q1(o)==="object"&&(e=o,t(e)),typeof o=="function"&&o()}};return{stop:function(){n=!0},start:function(o){n=!1,r(o)},subscribe:function(o){return t=o,function(){t=function(){return null}}}}}function Jc(e){"@babel/helpers - typeof";return Jc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jc(e)}function k2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function O2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?k2(Object(n),!0).forEach(function(r){lF(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function lF(e,t,n){return t=lae(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lae(e){var t=uae(e,"string");return Jc(t)==="symbol"?t:String(t)}function uae(e,t){if(Jc(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Jc(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var cae=function(t,n){return[Object.keys(t),Object.keys(n)].reduce(function(r,i){return r.filter(function(o){return i.includes(o)})})},dae=function(t){return t},fae=function(t){return t.replace(/([A-Z])/g,function(n){return"-".concat(n.toLowerCase())})},bc=function(t,n){return Object.keys(n).reduce(function(r,i){return O2(O2({},r),{},lF({},i,t(i,n[i])))},{})},P2=function(t,n,r){return t.map(function(i){return"".concat(fae(i)," ").concat(n,"ms ").concat(r)}).join(",")};function pae(e,t){return gae(e)||mae(e,t)||uF(e,t)||hae()}function hae(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
313In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mae(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,l=[],c=!0,d=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(f){d=!0,i=f}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(d)throw i}}return l}}function gae(e){if(Array.isArray(e))return e}function vae(e){return xae(e)||bae(e)||uF(e)||yae()}function yae(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
314In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function uF(e,t){if(e){if(typeof e=="string")return H1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return H1(e,t)}}function bae(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function xae(e){if(Array.isArray(e))return H1(e)}function H1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Eh=1e-4,cF=function(t,n){return[0,3*t,3*n-6*t,3*t-3*n+1]},dF=function(t,n){return t.map(function(r,i){return r*Math.pow(n,i)}).reduce(function(r,i){return r+i})},j2=function(t,n){return function(r){var i=cF(t,n);return dF(i,r)}},wae=function(t,n){return function(r){var i=cF(t,n),o=[].concat(vae(i.map(function(a,l){return a*l}).slice(1)),[0]);return dF(o,r)}},C2=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n[0],o=n[1],a=n[2],l=n[3];if(n.length===1)switch(n[0]){case"linear":i=0,o=0,a=1,l=1;break;case"ease":i=.25,o=.1,a=.25,l=1;break;case"ease-in":i=.42,o=0,a=1,l=1;break;case"ease-out":i=.42,o=0,a=.58,l=1;break;case"ease-in-out":i=0,o=0,a=.58,l=1;break;default:{var c=n[0].split("(");if(c[0]==="cubic-bezier"&&c[1].split(")")[0].split(",").length===4){var d=c[1].split(")")[0].split(",").map(function(y){return parseFloat(y)}),f=pae(d,4);i=f[0],o=f[1],a=f[2],l=f[3]}}}var p=j2(i,a),g=j2(o,l),v=wae(i,a),S=function(w){return w>1?1:w<0?0:w},x=function(w){for(var A=w>1?1:w,_=A,j=0;j<8;++j){var k=p(_)-A,O=v(_);if(Math.abs(k-A)<Eh||O<Eh)return g(_);_=S(_-k/O)}return g(_)};return x.isStepper=!1,x},Sae=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.stiff,r=n===void 0?100:n,i=t.damping,o=i===void 0?8:i,a=t.dt,l=a===void 0?17:a,c=function(f,p,g){var v=-(f-p)*r,S=g*o,x=g+(v-S)*l/1e3,y=g*l/1e3+f;return Math.abs(y-p)<Eh&&Math.abs(x)<Eh?[p,0]:[y,x]};return c.isStepper=!0,c.dt=l,c},_ae=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n[0];if(typeof i=="string")switch(i){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return C2(i);case"spring":return Sae();default:if(i.split("(")[0]==="cubic-bezier")return C2(i)}return typeof i=="function"?i:null};function ed(e){"@babel/helpers - typeof";return ed=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ed(e)}function T2(e){return kae(e)||Eae(e)||fF(e)||Aae()}function Aae(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
315In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Eae(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function kae(e){if(Array.isArray(e))return V1(e)}function N2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function _n(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?N2(Object(n),!0).forEach(function(r){W1(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function W1(e,t,n){return t=Oae(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Oae(e){var t=Pae(e,"string");return ed(t)==="symbol"?t:String(t)}function Pae(e,t){if(ed(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ed(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function jae(e,t){return Nae(e)||Tae(e,t)||fF(e,t)||Cae()}function Cae(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
316In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fF(e,t){if(e){if(typeof e=="string")return V1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return V1(e,t)}}function V1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Tae(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,l=[],c=!0,d=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(f){d=!0,i=f}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(d)throw i}}return l}}function Nae(e){if(Array.isArray(e))return e}var kh=function(t,n,r){return t+(n-t)*r},K1=function(t){var n=t.from,r=t.to;return n!==r},Rae=function e(t,n,r){var i=bc(function(o,a){if(K1(a)){var l=t(a.from,a.to,a.velocity),c=jae(l,2),d=c[0],f=c[1];return _n(_n({},a),{},{from:d,velocity:f})}return a},n);return r<1?bc(function(o,a){return K1(a)?_n(_n({},a),{},{velocity:kh(a.velocity,i[o].velocity,r),from:kh(a.from,i[o].from,r)}):a},n):e(t,i,r-1)};const Iae=(function(e,t,n,r,i){var o=cae(e,t),a=o.reduce(function(y,w){return _n(_n({},y),{},W1({},w,[e[w],t[w]]))},{}),l=o.reduce(function(y,w){return _n(_n({},y),{},W1({},w,{from:e[w],velocity:0,to:t[w]}))},{}),c=-1,d,f,p=function(){return null},g=function(){return bc(function(w,A){return A.from},l)},v=function(){return!Object.values(l).filter(K1).length},S=function(w){d||(d=w);var A=w-d,_=A/n.dt;l=Rae(n,l,_),i(_n(_n(_n({},e),t),g())),d=w,v()||(c=requestAnimationFrame(p))},x=function(w){f||(f=w);var A=(w-f)/r,_=bc(function(k,O){return kh.apply(void 0,T2(O).concat([n(A)]))},a);if(i(_n(_n(_n({},e),t),_)),A<1)c=requestAnimationFrame(p);else{var j=bc(function(k,O){return kh.apply(void 0,T2(O).concat([n(1)]))},a);i(_n(_n(_n({},e),t),j))}};return p=n.isStepper?S:x,function(){return requestAnimationFrame(p),function(){cancelAnimationFrame(c)}}});function Ol(e){"@babel/helpers - typeof";return Ol=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ol(e)}var $ae=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function Mae(e,t){if(e==null)return{};var n=Dae(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Dae(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function $0(e){return zae(e)||Bae(e)||Fae(e)||Lae()}function Lae(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
317In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Fae(e,t){if(e){if(typeof e=="string")return G1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return G1(e,t)}}function Bae(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function zae(e){if(Array.isArray(e))return G1(e)}function G1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function R2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Kr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};
317t%2?R2(Object(n),!0).forEach(function(r){fc(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function fc(e,t,n){return t=pF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Uae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qae(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,pF(r.key),r)}}function Hae(e,t,n){return t&&qae(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function pF(e){var t=Wae(e,"string");return Ol(t)==="symbol"?t:String(t)}function Wae(e,t){if(Ol(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ol(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Vae(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Y1(e,t)}
vendor: 47,204 bytes, lines 317-330
317function Y1(e,t){return Y1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Y1(e,t)}function Kae(e){var t=Gae();return function(){var r=Oh(e),i;if(t){var o=Oh(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return X1(this,i)}}function X1(e,t){if(t&&(Ol(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Q1(e)}function Q1(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Gae(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Oh(e){return Oh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Oh(e)}var to=(function(e){Vae(n,e);var t=Kae(n);function n(r,i){var o;Uae(this,n),o=t.call(this,r,i);var a=o.props,l=a.isActive,c=a.attributeName,d=a.from,f=a.to,p=a.steps,g=a.children,v=a.duration;if(o.handleStyleChange=o.handleStyleChange.bind(Q1(o)),o.changeStyle=o.changeStyle.bind(Q1(o)),!l||v<=0)return o.state={style:{}},typeof g=="function"&&(o.state={style:f}),X1(o);if(p&&p.length)o.state={style:p[0].style};else if(d){if(typeof g=="function")return o.state={style:d},X1(o);o.state={style:c?fc({},c,d):d}}else o.state={style:{}};return o}return Hae(n,[{key:"componentDidMount",value:function(){var i=this.props,o=i.isActive,a=i.canBegin;this.mounted=!0,!(!o||!a)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var o=this.props,a=o.isActive,l=o.canBegin,c=o.attributeName,d=o.shouldReAnimate,f=o.to,p=o.from,g=this.state.style;if(l){if(!a){var v={style:c?fc({},c,f):f};this.state&&g&&(c&&g[c]!==f||!c&&g!==f)&&this.setState(v);return}if(!(eae(i.to,f)&&i.canBegin&&i.isActive)){var S=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var x=S||d?p:i.to;if(this.state&&g){var y={style:c?fc({},c,x):x};(c&&g[c]!==x||!c&&g!==x)&&this.setState(y)}this.runAnimation(Kr(Kr({},this.props),{},{from:x,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var o=this,a=i.from,l=i.to,c=i.duration,d=i.easing,f=i.begin,p=i.onAnimationEnd,g=i.onAnimationStart,v=Iae(a,l,_ae(d),c,this.changeStyle),S=function(){o.stopJSAnimation=v()};this.manager.start([g,f,S,c,p])}},{key:"runStepAnimation",value:function(i){var o=this,a=i.steps,l=i.begin,c=i.onAnimationStart,d=a[0],f=d.style,p=d.duration,g=p===void 0?0:p,v=function(x,y,w){if(w===0)return x;var A=y.duration,_=y.easing,j=_===void 0?"ease":_,k=y.style,O=y.properties,T=y.onAnimationEnd,N=w>0?a[w-1]:y,I=O||Object.keys(k);if(typeof j=="function"||j==="spring")return[].concat($0(x),[o.runJSAnimation.bind(o,{from:N.style,to:k,duration:A,easing:j}),A]);var z=P2(I,A,j),F=Kr(Kr(Kr({},N.style),k),{},{transition:z});return[].concat($0(x),[F,A,T]).filter(dae)};return this.manager.start([c].concat($0(a.reduce(v,[f,Math.max(g,l)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=sae());var o=i.begin,a=i.duration,l=i.attributeName,c=i.to,d=i.easing,f=i.onAnimationStart,p=i.onAnimationEnd,g=i.steps,v=i.children,S=this.manager;if(this.unSubscribe=S.subscribe(this.handleStyleChange),typeof d=="function"||typeof v=="function"||d==="spring"){this.runJSAnimation(i);return}if(g.length>1){this.runStepAnimation(i);return}var x=l?fc({},l,c):c,y=P2(Object.keys(x),a,d);S.start([f,o,Kr(Kr({},x),{},{transition:y}),a,p])}},{key:"render",value:function(){var i=this.props,o=i.children;i.begin;var a=i.duration;i.attributeName,i.easing;var l=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var c=Mae(i,$ae),d=P.Children.count(o),f=this.state.style;if(typeof o=="function")return o(f);if(!l||d===0||a<=0)return o;var p=function(v){var S=v.props,x=S.style,y=x===void 0?{}:x,w=S.className,A=P.cloneElement(v,Kr(Kr({},c),{},{style:Kr(Kr({},y),f),className:w}));return A};return d===1?p(P.Children.only(o)):W.createElement("div",null,P.Children.map(o,function(g){return p(g)}))}}]),n})(P.PureComponent);to.displayName="Animate";to.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};to.propTypes={from:pt.oneOfType([pt.object,pt.string]),to:pt.oneOfType([pt.object,pt.string]),attributeName:pt.string,duration:pt.number,begin:pt.number,easing:pt.oneOfType([pt.string,pt.func]),steps:pt.arrayOf(pt.shape({duration:pt.number.isRequired,style:pt.object.isRequired,easing:pt.oneOfType([pt.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),pt.func]),properties:pt.arrayOf("string"),onAnimationEnd:pt.func})),children:pt.oneOfType([pt.node,pt.func]),isActive:pt.bool,canBegin:pt.bool,onAnimationEnd:pt.func,shouldReAnimate:pt.bool,onAnimationStart:pt.func,onAnimationReStart:pt.func};function td(e){"@babel/helpers - typeof";return td=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},td(e)}function Ph(){return Ph=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ph.apply(this,arguments)}function Yae(e,t){return Jae(e)||Zae(e,t)||Qae(e,t)||Xae()}function Xae(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
318In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Qae(e,t){if(e){if(typeof e=="string")return I2(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return I2(e,t)}}function I2(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Zae(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,l=[],c=!0,d=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(f){d=!0,i=f}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(d)throw i}}return l}}function Jae(e){if(Array.isArray(e))return e}function $2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function M2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$2(Object(n),!0).forEach(function(r){ese(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ese(e,t,n){return t=tse(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tse(e){var t=nse(e,"string");return td(t)=="symbol"?t:t+""}function nse(e,t){if(td(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(td(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var D2=function(t,n,r,i,o){var a=Math.min(Math.abs(r)/2,Math.abs(i)/2),l=i>=0?1:-1,c=r>=0?1:-1,d=i>=0&&r>=0||i<0&&r<0?1:0,f;if(a>0&&o instanceof Array){for(var p=[0,0,0,0],g=0,v=4;g<v;g++)p[g]=o[g]>a?a:o[g];f="M".concat(t,",").concat(n+l*p[0]),p[0]>0&&(f+="A ".concat(p[0],",").concat(p[0],",0,0,").concat(d,",").concat(t+c*p[0],",").concat(n)),f+="L ".concat(t+r-c*p[1],",").concat(n),p[1]>0&&(f+="A ".concat(p[1],",").concat(p[1],",0,0,").concat(d,`,
319        `).concat(t+r,",").concat(n+l*p[1])),f+="L ".concat(t+r,",").concat(n+i-l*p[2]),p[2]>0&&(f+="A ".concat(p[2],",").concat(p[2],",0,0,").concat(d,`,
320        `).concat(t+r-c*p[2],",").concat(n+i)),f+="L ".concat(t+c*p[3],",").concat(n+i),p[3]>0&&(f+="A ".concat(p[3],",").concat(p[3],",0,0,").concat(d,`,
321        `).concat(t,",").concat(n+i-l*p[3])),f+="Z"}else if(a>0&&o===+o&&o>0){var S=Math.min(a,o);f="M ".concat(t,",").concat(n+l*S,`
322            A `).concat(S,",").concat(S,",0,0,").concat(d,",").concat(t+c*S,",").concat(n,`
323            L `).concat(t+r-c*S,",").concat(n,`
324            A `).concat(S,",").concat(S,",0,0,").concat(d,",").concat(t+r,",").concat(n+l*S,`
325            L `).concat(t+r,",").concat(n+i-l*S,`
326            A `).concat(S,",").concat(S,",0,0,").concat(d,",").concat(t+r-c*S,",").concat(n+i,`
327            L `).concat(t+c*S,",").concat(n+i,`
328            A `).concat(S,",").concat(S,",0,0,").concat(d,",").concat(t,",").concat(n+i-l*S," Z")}else f="M ".concat(t,",").concat(n," h ").concat(r," v ").concat(i," h ").concat(-r," Z");return f},rse=function(t,n){if(!t||!n)return!1;var r=t.x,i=t.y,o=n.x,a=n.y,l=n.width,c=n.height;if(Math.abs(l)>0&&Math.abs(c)>0){var d=Math.min(o,o+l),f=Math.max(o,o+l),p=Math.min(a,a+c),g=Math.max(a,a+c);return r>=d&&r<=f&&i>=p&&i<=g}return!1},ise={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},uA=function(t){var n=M2(M2({},ise),t),r=P.useRef(),i=P.useState(-1),o=Yae(i,2),a=o[0],l=o[1];P.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var j=r.current.getTotalLength();j&&l(j)}catch{}},[]);var c=n.x,d=n.y,f=n.width,p=n.height,g=n.radius,v=n.className,S=n.animationEasing,x=n.animationDuration,y=n.animationBegin,w=n.isAnimationActive,A=n.isUpdateAnimationActive;if(c!==+c||d!==+d||f!==+f||p!==+p||f===0||p===0)return null;var _=Xe("recharts-rectangle",v);return A?W.createElement(to,{canBegin:a>0,from:{width:f,height:p,x:c,y:d},to:{width:f,height:p,x:c,y:d},duration:x,animationEasing:S,isActive:A},function(j){var k=j.width,O=j.height,T=j.x,N=j.y;return W.createElement(to,{canBegin:a>0,from:"0px ".concat(a===-1?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:y,duration:x,isActive:w,easing:S},W.createElement("path",Ph({},Ue(n,!0),{className:_,d:D2(T,N,k,O,g),ref:r})))}):W.createElement("path",Ph({},Ue(n,!0),{className:_,d:D2(c,d,f,p,g)}))},ose=["points","className","baseLinePoints","connectNulls"];function Ks(){return Ks=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ks.apply(this,arguments)}function ase(e,t){if(e==null)return{};var n=sse(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function sse(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function L2(e){return dse(e)||cse(e)||use(e)||lse()}function lse(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
329In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function use(e,t){if(e){if(typeof e=="string")return Z1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Z1(e,t)}}function cse(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function dse(e){if(Array.isArray(e))return Z1(e)}function Z1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var F2=function(t){return t&&t.x===+t.x&&t.y===+t.y},fse=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=[[]];return t.forEach(function(r){F2(r)?n[n.length-1].push(r):n[n.length-1].length>0&&n.push([])}),F2(t[0])&&n[n.length-1].push(t[0]),n[n.length-1].length<=0&&(n=n.slice(0,-1)),n},xc=function(t,n){var r=fse(t);n&&(r=[r.reduce(function(o,a){return[].concat(L2(o),L2(a))},[])]);var i=r.map(function(o){return o.reduce(function(a,l,c){return"".concat(a).concat(c===0?"M":"L").concat(l.x,",").concat(l.y)},"")}).join("");return r.length===1?"".concat(i,"Z"):i},pse=function(t,n,r){var i=xc(t,r);return"".concat(i.slice(-1)==="Z"?i.slice(0,-1):i,"L").concat(xc(n.reverse(),r).slice(1))},hse=function(t){var n=t.points,r=t.className,i=t.baseLinePoints,o=t.connectNulls,a=ase(t,ose);if(!n||!n.length)return null;var l=Xe("recharts-polygon",r);if(i&&i.length){var c=a.stroke&&a.stroke!=="none",d=pse(n,i,o);return W.createElement("g",{className:l},W.createElement("path",Ks({},Ue(a,!0),{fill:d.slice(-1)==="Z"?a.fill:"none",stroke:"none",d})),c?W.createElement("path",Ks({},Ue(a,!0),{fill:"none",d:xc(n,o)})):null,c?W.createElement("path",Ks({},Ue(a,!0),{fill:"none",d:xc(i,o)})):null)}var f=xc(n,o);return W.createElement("path",Ks({},Ue(a,!0),{fill:f.slice(-1)==="Z"?a.fill:"none",className:l,d:f}))};function J1(){return J1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},J1.apply(this,arguments)}var cA=function(t){var n=t.cx,r=t.cy,i=t.r,o=t.className,a=Xe("recharts-dot",o);return n===+n&&r===+r&&i===+i?P.createElement("circle",J1({},Ue(t,!1),Xp(t),{className:a,cx:n,cy:r,r:i})):null};function nd(e){"@babel/helpers - typeof";return nd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nd(e)}var mse=["x","y","top","left","width","height","className"];function eS(){return eS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},eS.apply(this,arguments)}function B2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function gse(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?B2(Object(n),!0).forEach(function(r){vse(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):B2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function vse(e,t,n){return t=yse(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yse(e){var t=bse(e,"string");return nd(t)=="symbol"?t:t+""}function bse(e,t){if(nd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(nd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function xse(e,t){if(e==null)return{};var n=wse(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function wse(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var Sse=function(t,n,r,i,o,a){return"M".concat(t,",").concat(o,"v").concat(i,"M").concat(a,",").concat(n,"h").concat(r)},_se=function(t){var n=t.x,r=n===void 0?0:n,i=t.y,o=i===void 0?0:i,a=t.top,l=a===void 0?0:a,c=t.left,d=c===void 0?0:c,f=t.width,p=f===void 0?0:f,g=t.height,v=g===void 0?0:g,S=t.className,x=xse(t,mse),y=gse({x:r,y:o,top:l,left:d,width:p,height:v},x);return!Se(r)||!Se(o)||!Se(p)||!Se(v)||!Se(l)||!Se(d)?null:W.createElement("path",eS({},Ue(y,!0),{className:Xe("recharts-cross",S),d:Sse(r,o,p,v,l,d)}))},M0,z2;function Ase(){if(z2)return M0;z2=1;var e=Cm(),t=P4(),n=Pi();function r(i,o){return i&&i.length?e(i,n(o,2),t):void 0}return M0=r,M0}var Ese=Ase();const kse=lt(Ese);var D0,U2;function Ose(){if(U2)return D0;U2=1;var e=Cm(),t=Pi(),n=j4();function r(i,o){return i&&i.length?e(i,t(o,2),n):void 0}return D0=r,D0}var Pse=Ose();const jse=lt(Pse);var Cse=["cx","cy","angle","ticks","axisLine"],Tse=["ticks","tick","angle","tickFormatter","stroke"];function Pl(e){"@babel/helpers - typeof";return Pl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pl(e)}function wc(){return wc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wc.apply(this,arguments)}function q2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function xa(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?q2(Object(n),!0).forEach(function(r){Dm(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function H2(e,t){if(e==null)return{};var n=Nse(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Nse(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Rse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function W2(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,mF(r.key),r)}}function Ise(e,t,n){return t&&W2(e.prototype,t),n&&W2(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function $se(e,t,n){return t=jh(t),Mse(e,hF()?Reflect.construct(t,n||[],jh(e).constructor):t.apply(e,n))}function Mse(e,t){if(t&&(Pl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Dse(e)}function Dse(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(hF=function(){return!!e})()}function jh(e){return jh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},jh(e)}function Lse(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tS(e,t)}function tS(e,t){return tS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},tS(e,t)}function Dm(e,t,n){return t=mF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mF(e){var t=Fse(e,"string");return Pl(t)=="symbol"?t:t+""}function Fse(e,t){if(Pl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Pl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Lm=(function(e){function t(){return Rse(this,t),$se(this,t,arguments)}return Lse(t,e),Ise(t,[{key:"getTickValueCoord",value:function(r){var i=r.coordinate,o=this.props,a=o.angle,l=o.cx,c=o.cy;return kt(l,c,i,a)}},{key:"getTickTextAnchor",value:function(){var r=this.props.orientation,i;switch(r){case"left":i="end";break;case"right":i="start";break;default:i="middle";break}return i}},{key:"getViewBox",value:function(){var r=this.props,i=r.cx,o=r.cy,a=r.angle,l=r.ticks,c=kse(l,function(f){return f.coordinate||0}),d=jse(l,function(f){return f.coordinate||0});return{cx:i,cy:o,startAngle:a,endAngle:a,innerRadius:d.coordinate||0,outerRadius:c.coordinate||0}}},{key:"renderAxisLine",value:function(){var r=this.props,i=r.cx,o=r.cy,a=r.angle,l=r.ticks,c=r.axisLine,d=H2(r,Cse),f=l.reduce(function(S,x){return[Math.min(S[0],x.coordinate),Math.max(S[1],x.coordinate)]},[1/0,-1/0]),p=kt(i,o,f[0],a),g=kt(i,o,f[1],a),v=xa(xa(xa({},Ue(d,!1)),{},{fill:"none"},Ue(c,!1)),{},{x1:p.x,y1:p.y,x2:g.x,y2:g.y});return W.createElement("line",wc({className:"recharts-polar-radius-axis-line"},v))}},{key:"renderTicks",value:function(){var r=this,i=this.props,o=i.ticks,a=i.tick,l=i.angle,c=i.tickFormatter,d=i.stroke,f=H2(i,Tse),p=this.getTickTextAnchor(),g=Ue(f,!1),v=Ue(a,!1),S=o.map(function(x,y){var w=r.getTickValueCoord(x),A=xa(xa(xa(xa({textAnchor:p,transform:"rotate(".concat(90-l,", ").concat(w.x,", ").concat(w.y,")")},g),{},{stroke:"none",fill:d},v),{},{index:y},w),{},{payload:x});return W.createElement(gt,wc({className:Xe("recharts-polar-radius-axis-tick",rF(a)),key:"tick-".concat(x.coordinate)},Wa(r.props,x,y)),t.renderTickItem(a,A,c?c(x.value,y):x.value))});return W.createElement(gt,{className:"recharts-polar-radius-axis-ticks"},S)}},{key:"render",value:function(){var r=this.props,i=r.ticks,o=r.axisLine,a=r.tick;return!i||!i.length?null:W.createElement(gt,{className:Xe("recharts-polar-radius-axis",this.props.className)},o&&this.renderAxisLine(),a&&this.renderTicks(),gn.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(r,i,o){var a;return W.isValidElement(r)?a=W.cloneElement(r,i):Ve(r)?a=r(i):a=W.createElement(Va,wc({},i,{className:"recharts-polar-radius-axis-tick-value"}),o),a}}])})(P.PureComponent);Dm(Lm,"displayName","PolarRadiusAxis");Dm(Lm,"axisType","radiusAxis");Dm(Lm,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});function jl(e){"@babel/helpers - typeof";return jl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jl(e)}function ka(){return ka=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ka.apply(this,arguments)}function V2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function wa(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?V2(Object(n),!0).forEach(function(r){Fm(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):V2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Bse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function K2(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,vF(r.key),r)}}function zse(e,t,n){return t&&K2(e.prototype,t),n&&K2(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Use(e,t,n){return t=Ch(t),qse(e,gF()?Reflect.construct(t,n||[],Ch(e).constructor):t.apply(e,n))}function qse(e,t){if(t&&(jl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Hse(e)}function Hse(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(gF=function(){return!!e})()}function Ch(e){return Ch=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ch(e)}function Wse(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&nS(e,t)}function nS(e,t){return nS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},nS(e,t)}function Fm(e,t,n){return t=vF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vF(e){var t=Vse(e,"string");return jl(t)=="symbol"?t:t+""}function Vse(e,t){if(jl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(jl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Kse=Math.PI/180,G2=1e-5,Bm=(function(e){function t(){return Bse(this,t),Use(this,t,arguments)}return Wse(t,e),zse(t,[{key:"getTickLineCoord",value:function(r){var i=this.props,o=i.cx,a=i.cy,l=i.radius,c=i.orientation,d=i.tickSize,f=d||8,p=kt(o,a,l,r.coordinate),g=kt(o,a,l+(c==="inner"?-1:1)*f,r.coordinate);return{x1:p.x,y1:p.y,x2:g.x,y2:g.y}}},{key:"getTickTextAnchor",value:function(r){var i=this.props.orientation,o=Math.cos(-r.coordinate*Kse),a;return o>G2?a=i==="outer"?"start":"end":o<-G2?a=i==="outer"?"end":"start":a="middle",a}},{key:"renderAxisLine",value:function(){var r=this.props,i=r.cx,o=r.cy,a=r.radius,l=r.axisLine,c=r.axisLineType,d=wa(wa({},Ue(this.props,!1)),{},{fill:"none"},Ue(l,!1));if(c==="circle")return W.createElement(cA,ka({className:"recharts-polar-angle-axis-line"},d,{cx:i,cy:o,r:a}));var f=this.props.ticks,p=f.map(function(g){return kt(i,o,a,g.coordinate)});return W.createElement(hse,ka({className:"recharts-polar-angle-axis-line"},d,{points:p}))}},{key:"renderTicks",value:function(){var r=this,i=this.props,o=i.ticks,a=i.tick,l=i.tickLine,c=i.tickFormatter,d=i.stroke,f=Ue(this.props,!1),p=Ue(a,!1),g=wa(wa({},f),{},{fill:"none"},Ue(l,!1)),v=o.map(function(S,x){var y=r.getTickLineCoord(S),w=r.getTickTextAnchor(S),A=wa(wa(wa({textAnchor:w},f),{},{stroke:"none",fill:d},p),{},{index:x,payload:S,x:y.x2,y:y.y2});return W.createElement(gt,ka({className:Xe("recharts-polar-angle-axis-tick",rF(a)),key:"tick-".concat(S.coordinate)},Wa(r.props,S,x)),l&&W.createElement("line",ka({className:"recharts-polar-angle-axis-tick-line"},g,y)),a&&t.renderTickItem(a,A,c?c(S.value,x):S.value))});return W.createElement(gt,{className:"recharts-polar-angle-axis-ticks"},v)}},{key:"render",value:function(){var r=this.props,i=r.ticks,o=r.radius,a=r.axisLine;return o<=0||!i||!i.length?null:W.createElement(gt,{className:Xe("recharts-polar-angle-axis",this.props.className)},a&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(r,i,o){var a;return W.isValidElement(r)?a=W.cloneElement(r,i):Ve(r)?a=r(i):a=W.createElement(Va,ka({},i,{className:"recharts-polar-angle-axis-tick-value"}),o),a}}])})(P.PureComponent);Fm(Bm,"displayName","PolarAngleAxis");Fm(Bm,"axisType","angleAxis");Fm(Bm,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var L0,Y2;function Gse(){if(Y2)return L0;Y2=1;var e=P3(),t=e(Object.getPrototypeOf,Object);return L0=t,L0}var F0,X2;function Yse(){if(X2)return F0;X2=1;var e=io(),t=Gse(),n=oo(),r="[object Object]",i=Function.prototype,o=Object.prototype,a=i.toString,l=o.hasOwnProperty,c=a.call(Object);function d(f){if(!n(f)||e(f)!=r)return!1;var p=t(f);if(p===null)return!0;var g=l.call(p,"constructor")&&p.constructor;return typeof g=="function"&&g instanceof g&&a.call(g)==c}return F0=d,F0}var Xse=Yse();const Qse=lt(Xse);var B0,Q2;function Zse(){if(Q2)return B0;Q2=1;var e=io(),t=oo(),n="[object Boolean]";function r(i){return i===!0||i===!1||t(i)&&e(i)==n}return B0=r,B0}var Jse=Zse();const ele=lt(Jse);function rd(e){"@babel/helpers - typeof";return rd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rd(e)}function Th(){return Th=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Th.apply(this,arguments)}function tle(e,t){return ole(e)||ile(e,t)||rle(e,t)||nle()}function nle(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
330In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rle(e,t){if(e){if(typeof e=="string")return Z2(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Z2(e,t)}}function Z2(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ile(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,l=[],c=!0,d=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(f){d=!0,i=f}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(d)throw i}}return l}}function ole(e){if(Array.isArray(e))return e}function J2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function eI(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?J2(Object(n),!0).forEach(function(r){ale(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):J2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ale(e,t,n){return t=sle(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sle(e){var t=lle(e,"string");return rd(t)=="symbol"?t:t+""}function lle(e,t){if(rd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(rd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var tI=function(t,n,r,i,o){var a=r-i,l;return l="M ".concat(t,",").concat(n),l+="L ".concat(t+r,",").concat(n),l+="L ".concat(t+r-a/2,",").concat(n+o),l+="L ".concat(t+r-a/2-i,",").concat(n+o),l+="L ".concat(t,",").concat(n," Z"),l},ule={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},cle=function(t){var n=eI(eI({},ule),t),r=P.useRef(),i=P.useState(-1),o=tle(i,2),a=o[0],l=o[1];P.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var _=r.current.getTotalLength();_&&l(_)}catch{}},[]);var c=n.x,d=n.y,f=n.upperWidth,p=n.lowerWidth,g=n.height,v=n.className,S=n.animationEasing,x=n.animationDuration,y=n.animationBegin,w=n.isUpdateAnimationActive;if(c!==+c||d!==+d||f!==+f||p!==+p||g!==+g||f===0&&p===0||g===0)return null;var A=Xe("recharts-trapezoid",v);return w?W.createElement(to,{canBegin:a>0,from:{upperWidth:0,lowerWidth:0,height:g,x:c,y:d},to:{upperWidth:f,lowerWidth:p,height:g,x:c,y:d},duration:x,animationEasing:S,isActive:w},function(_){var j=_.upperWidth,k=_.lowerWidth,O=_.height,T=_.x,N=_.y;return W.createElement(to,{canBegin:a>0,from:"0px ".concat(a===-1?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:y,duration:x,easing:S},W.createElement("path",Th({},Ue(n,!0),{className:A,d:tI(T,N,j,k,O),ref:r})))}):W.createElement("g",null,W.createElement("path",Th({},Ue(n,!0),{className:A,d:tI(c,d,f,p,g)})))},dle=["option","shapeType","propTransformer","activeClassName","isActive"];function id(e){"@babel/helpers - typeof";return id=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},id(e)}function fle(e,t){if(e==null)return{};var n=ple(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ple(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function nI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Nh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?nI(Object(n),!0).forEach(function(r){hle(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function hle(e,t,n){return t=mle(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mle(e){var t=gle(e,"string");return id(t)=="symbol"?t:t+""}function gle(e,t){if(id(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(id(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function vle(e,t){return Nh(Nh({},t),e)}function yle(e,t){return e==="symbols"}function rI(e){var t=e.shapeType,n=e.elementProps;switch(t){case"rectangle":return W.createElement(uA,n);case"trapezoid":return W.createElement(cle,n);case"sector":return W.createElement(aF,n);case"symbols":if(yle(t))return W.createElement(O_,n);break;default:return null}}function ble(e){return P.isValidElement(e)?e.props:e}function yF(e){var t=e.option,n=e.shapeType,r=e.propTransformer,i=r===void 0?vle:r,o=e.activeClassName,a=o===void 0?"recharts-active-shape":o,l=e.isActive,c=fle(e,dle),d;if(P.isValidElement(t))d=P.cloneElement(t,Nh(Nh({},c),ble(t)));else if(Ve(t))d=t(c);else if(Qse(t)&&!ele(t)){var f=i(t,c);d=W.createElement(rI,{shapeType:n,elementProps:f})}else{var p=c;d=W.createElement(rI,{shapeType:n,elementProps:p})}return l?W.createElement(gt,{className:a},d):d}function zm(e,t){return t!=null&&"trapezoids"in e.props}function Um(e,t){return t!=null&&"sectors"in e.props}function od(e,t){return t!=null&&"points"in e.props}function xle(e,t){var n,r,i=e.x===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.x)||e.x===t.x,o=e.y===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.y)||e.y===t.y;return i&&o}function wle(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function Sle(e,t){var n=e.x===t.x,r=e.y===t.y,i=e.z===t.z;return n&&r&&i}function _le(e,t){var n;return zm(e,t)?n=xle:Um(e,t)?n=wle:od(e,t)&&(n=Sle),n}function Ale(e,t){var n;return zm(e,t)?n="trapezoids":Um(e,t)?n="sectors":od(e,t)&&(n="points"),n}function Ele(e,t){if(zm(e,t)){var n;return(n=t.tooltipPayload)===null||n===void 0||(n=n[0])===null||n===void 0||(n=n.payload)===null||n===void 0?void 0:n.payload}if(Um(e,t)){var r;return(r=t.tooltipPayload)===null||r===void 0||(r=r[0])===null||r===void 0||(r=r.payload)===null||r===void 0?void 0:r.payload}return od(e,t)?t.payload:{}}function kle(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,i=Ale(n,t),o=Ele(n,t),a=r.filter(function(c,d){var f=Rm(o,c),p=n.props[i].filter(function(S){var x=_le(n,t);return x(S,t)}),g=n.props[i].indexOf(p[p.length-1]),v=d===g;return f&&v}),l=r.indexOf(a[a.length-1]);return l}var Mp;function Cl(e){"@babel/helpers - typeof";return Cl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cl(e)}function Gs(){return Gs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Gs.apply(this,arguments)}function iI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function _t(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?iI(Object(n),!0).forEach(function(r){Rr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ole(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oI(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,xF(r.key),r)}}function Ple(e,t,n){return t&&oI(e.prototype,t),n&&oI(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function jle(e,t,n){return t=Rh(t),Cle(e,bF()?Reflect.construct(t,n||[],Rh(e).constructor):t.apply(e,n))}function Cle(e,t){if(t&&(Cl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Tle(e)}function Tle(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(bF=function(){return!!e})()}function Rh(e){return Rh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Rh(e)}function Nle(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&rS(e,t)}function rS(e,t){return rS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},rS(e,t)}function Rr(e,t,n){return t=xF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xF(e){var t=Rle(e,"string");return Cl(t)=="symbol"?t:t+""}function Rle(e,t){if(Cl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Cl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var so=(function(e){function t(n){var r;return Ole(this,t),r=jle(this,t,[n]),Rr(r,"pieRef",null),Rr(r,"sectorRefs",[]),Rr(r,"id",kd("recharts-pie-")),Rr(r,"handleAnimationEnd",function(){var i=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),Ve(i)&&i()}),Rr(r,"handleAnimationStart",function(){var i=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),Ve(i)&&i()}),r.state={isAnimationFinished:!n.isAnimationActive,prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,sectorToFocus:0},r}return Nle(t,e),Ple(t,[{key:"isActiveIndex",value:function(r){var i=this.props.activeIndex;return Array.isArray(i)?i.indexOf(r)!==-1:r===i}},{key:"hasActiveIndex",value:function(){var r=this.props.activeIndex;return Array.isArray(r)?r.length!==0:r||r===0}},{key:"renderLabels",value:function(r){var i=this.props.isAnimationActive;if(i&&!this.state.isAnimationFinished)return null;var o=this.props,a=o.label,l=o.labelLine,c=o.dataKey,d=o.valueKey,f=Ue(this.props,!1),p=Ue(a,!1),g=Ue(l,!1),v=a&&a.offsetRadius||20,S=r.map(function(x,y){var w=(x.startAngle+x.endAngle)/2,A=kt(x.cx,x.cy,x.outerRadius+v,w),_=_t(_t(_t(_t({},f),x),{},{stroke:"none"},p),{},{index:y,textAnchor:t.getTextAnchor(A.x,x.cx)},A),j=_t(_t(_t(_t({},f),x),{},{fill:"none",stroke:x.fill},g),{},{index:y,points:[kt(x.cx,x.cy,x.outerRadius,w),A]}),k=c;return nt(c)&&nt(d)?k="value":nt(c)&&(k=d),W.createElement(gt,{key:"label-".concat(x.startAngle,"-").concat(x.endAngle,"-").concat(x.midAngle,"-").concat(y)},l&&t.renderLabelLineItem(l,j,"line"),t.renderLabelItem(a,_,$n(x,k)))});return W.createElement(gt,{className:"recharts-pie-labels"},S)}},{key:"renderSectorsStatically",value:function(r){var i=this,o=this.props,a=o.activeShape,l=o.blendStroke,c=o.inactiveShape;return r.map(function(d,f){if((d==null?void 0:d.startAngle)===0&&(d==null?void 0:d.endAngle)===0&&r.length!==1)return null;var p=i.isActiveIndex(f),g=c&&i.hasActiveIndex()?c:null,v=p?a:g,S=_t(_t({},d),{},{stroke:l?d.fill:d.stroke,tabIndex:-1});return W.createElement(gt,Gs({ref:function(y){y&&!i.sectorRefs.includes(y)&&i.sectorRefs.push(y)},tabIndex:-1,className:"recharts-pie-sector"},Wa(i.props,d,f),{key:"sector-".concat(d==null?void 0:d.startAngle,"-").concat(d==null?void 0:d.endAngle,"-").concat(d.midAngle,"-").concat(f)}),W.createElement(yF,Gs({option:v,isActive:p,shapeType:"sector"},S)))})}},{key:"renderSectorsWithAnimation",value:function(){var r=this,i=this.props,o=i.sectors,a=i.isAnimationActive,l=i.animationBegin,c=i.animationDuration,d=i.animationEasing,f=i.animationId,p=this.state,g=p.prevSectors,v=p.prevIsAnimationActive;return W.createElement(to,{begin:l,duration:c,isActive:a,easing:d,from:{t:0},to:{t:1},key:"pie-".concat(f,"-").concat(v),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(S){var x=S.t,y=[],w=o&&o[0],A=w.startAngle;return o.forEach(function(_,j){var k=g&&g[j],O=j>0?vr(_,"paddingAngle",0):0;if(k){var T=Io(k.endAngle-k.startAngle,_.endAngle-_.startAngle),N=_t(_t({},_),{},{startAngle:A+O,endAngle:A+T(x)+O});y.push(N),A=N.endAngle}else{var I=_.endAngle,z=_.startAngle,F=Io(0,I-z),D=F(x),L=_t(_t({},_),{},{startAngle:A+O,endAngle:A+D+O});y.push(L),A=L.endAngle}}),W.createElement(gt,null,r.renderSectorsStatically(y))})}},{key:"attachKeyboardHandlers",value:function(r){var i=this;r.onkeydown=function(o){if(!o.altKey)switch(o.key){case"ArrowLeft":{var a=++i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[a].focus(),i.setState({sectorToFocus:a});break}case"ArrowRight":{var l=--i.state.sectorToFocus<0?i.sectorRefs.length-1:i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[l].focus(),i.setState({sectorToFocus:l});break}case"Escape":{i.sectorRefs[i.state.sectorToFocus].blur(),i.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var r=this.props,i=r.sectors,o=r.isAnimationActive,a=this.state.prevSectors;return o&&i&&i.length&&(!a||!Rm(a,i))?this.renderSectorsWithAnimation():this.renderSectorsStatically(i)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var r=this,i=this.props,o=i.hide,a=i.sectors,l=i.className,c=i.label,d=i.cx,f=i.cy,p=i.innerRadius,g=i.outerRadius,v=i.isAnimationActive,S=this.state.isAnimationFinished;if(o||!a||!a.length||!Se(d)||!Se(f)||!Se(p)||!Se(g))return null;var x=Xe("recharts-pie",l);return W.createElement(gt,{tabIndex:this.props.rootTabIndex,className:x,ref:function(w){r.pieRef=w}},this.renderSectors(),c&&this.renderLabels(a),gn.renderCallByParent(this.props,null,!1),(!v||S)&&Yo.renderCallByParent(this.props,a,!1))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return i.prevIsAnimationActive!==r.isAnimationActive?{prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,curSectors:r.sectors,prevSectors:[],isAnimationFinished:!0}:r.isAnimationActive&&r.animationId!==i.prevAnimationId?{prevAnimationId:r.animationId,curSectors:r.sectors,prevSectors:i.curSectors,isAnimationFinished:!0}:r.sectors!==i.curSectors?{curSectors:r.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(r,i){return r>i?"start":r<i?"end":"middle"}},{key:"renderLabelLineItem",value:function(r,i,o){if(W.isValidElement(r))return W.cloneElement(r,i);if(Ve(r))return r(i);var a=Xe("recharts-pie-label-line",typeof r!="boolean"?r.className:"");return W.createElement(U1,Gs({},i,{key:o,type:"linear",className:a}))}},{key:"renderLabelItem",value:function(r,i,o){if(W.isValidElement(r))return W.cloneElement(r,i);var a=o;if(Ve(r)&&(a=r(i),W.isValidElement(a)))return a;var l=Xe("recharts-pie-label-text",typeof r!="boolean"&&!Ve(r)?r.className:"");return W.createElement(Va,Gs({},i,{alignmentBaseline:"middle",className:l}),a)}}])})(P.PureComponent);Mp=so;Rr(so,"displayName","Pie");Rr(so,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",cx:"50%",cy:"50%",startAngle:0,endAngle:360,innerRadius:0,outerRadius:"80%",paddingAngle:0,labelLine:!0,hide:!1,minAngle:0,isAnimationActive:!Xl.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});Rr(so,"parseDeltaAngle",function(e,t){var n=Un(t-e),r=Math.min(Math.abs(t-e),360);return n*r});Rr(so,"getRealPieData",function(e){var t=e.data,n=e.children,r=Ue(e,!1),i=Mr(n,_m);return t&&t.length?t.map(function(o,a){return _t(_t(_t({payload:o},r),o),i&&i[a]&&i[a].props)}):i&&i.length?i.map(function(o){return _t(_t({},r),o.props)}):[]});Rr(so,"parseCoordinateOfPie",function(e,t){var n=t.top,r=t.left,i=t.width,o=t.height,a=nF(i,o),l=r+qn(e.cx,i,i/2),c=n+qn(e.cy,o,o/2),d=qn(e.innerRadius,a,0),f=qn(e.outerRadius,a,a*.8),p=e.maxRadius||Math.sqrt(i*i+o*o)/2;return{cx:l,cy:c,innerRadius:d,outerRadius:f,maxRadius:p}});Rr(so,"getComposedData",function(e){var t=e.item,n=e.offset,r=t.type.defaultProps!==void 0?_t(_t({},t.type.defaultProps),t.props):t.props,i=Mp.getRealPieData(r);if(!i||!i.length)return null;var o=r.cornerRadius,a=r.startAngle,l=r.endAngle,c=r.paddingAngle,d=r.dataKey,f=r.nameKey,p=r.valueKey,g=r.tooltipType,v=Math.abs(r.minAngle),S=Mp.parseCoordinateOfPie(r,n),x=Mp.parseDeltaAngle(a,l),y=Math.abs(x),w=d;nt(d)&&nt(p)?(ti(!1,`Use "dataKey" to specify the value of pie,
331      the props "valueKey" will be deprecated in 1.1.0`),w="value"):nt(d)&&(ti(!1,`Use "dataKey" to specify the value of pie,
332      the props "valueKey" will be deprecated in 1.1.0`),w=p);var A=i.filter(function(N){return $n(N,w,0)!==0}).length,_=(y>=360?A:A-1)*c,j=y-A*v-_,k=i.reduce(function(N,I){var z=$n(I,w,0);return N+(Se(z)?z:0)},0),O;if(k>0){var T;O=i.map(function(N,I){var z=$n(N,w,0),F=$n(N,f,I),D=(Se(z)?z:0)/k,L;I?L=T.endAngle+Un(x)*c*(z!==0?1:0):L=a;var B=L+Un(x)*((z!==0?v:0)+D*j),U=(L+B)/2,G=(S.innerRadius+S.outerRadius)/2,Z=[{name:F,value:z,payload:N,dataKey:w,type:g}],Y=kt(S.cx,S.cy,G,U);return T=_t(_t(_t({percent:D,cornerRadius:o,name:F,tooltipPayload:Z,midAngle:U,middleRadius:G,tooltipPosition:Y},N),S),{},{value:$n(N,w),startAngle:L,endAngle:B,payload:N,paddingAngle:Un(x)*c}),T})}return _t(_t({},S),{},{sectors:O,data:i})});var z0,aI;function Ile(){if(aI)return z0;aI=1;var e=Math.ceil,t=Math.max;function n(r,i,o,a){for(var l=-1,c=t(e((i-r)/(o||1)),0),d=Array(c);c--;)d[a?c:++l]=r,r+=o;return d}return z0=n,z0}var U0,sI;function wF(){if(sI)return U0;sI=1;var e=H3(),t=1/0,n=17976931348623157e292;function r(i){if(!i)return i===0?i:0;if(i=e(i),i===t||i===-t){var o=i<0?-1:1;return o*n}return i===i?i:0}return U0=r,U0}var q0,lI;function $le(){if(lI)return q0;lI=1;var e=Ile(),t=Sm(),n=wF();function r(i){return function(o,a,l){return l&&typeof l!="number"&&t(o,a,l)&&(a=l=void 0),o=n(o),a===void 0?(a=o,o=0):a=n(a),l=l===void 0?o<a?1:-1:n(l),e(o,a,l,i)}}return q0=r,q0}var H0,uI;function Mle(){if(uI)return H0;uI=1;var e=$le(),t=e();return H0=t,H0}var Dle=Mle();const Ih=lt(Dle);function ad(e){"@babel/helpers - typeof";return ad=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ad(e)}function cI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function dI(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?cI(Object(n),!0).forEach(function(r){SF(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function SF(e,t,n){return t=Lle(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lle(e){var t=Fle(e,"string");return ad(t)=="symbol"?t:t+""}function Fle(e,t){if(ad(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ad(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ble=["Webkit","Moz","O","ms"],zle=function(t,n){var r=t.replace(/(\w)/,function(o){return o.toUpperCase()}),i=Ble.reduce(function(o,a){return dI(dI({},o),{},SF({},a+r,n))},{});return i[t]=n,i};function Tl(e){"@babel/helpers - typeof";return Tl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tl(e)}function $h(){return $h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$h.apply(this,arguments)}function fI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function W0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?fI(Object(n),!0).forEach(function(r){fr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ule(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pI(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,AF(r.key),r)}}function qle(e,t,n){return t&&pI(e.prototype,t),n&&pI(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Hle(e,t,n){return t=Mh(t),Wle(e,_F()?Reflect.construct(t,n||[],Mh(e).constructor):t.apply(e,n))}function Wle(e,t){if(t&&(Tl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Vle(e)}function Vle(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _F(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_F=function(){return!!e})()}
vendor: 109,160 bytes, lines 332-336
332function Mh(e){return Mh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Mh(e)}function Kle(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&iS(e,t)}function iS(e,t){return iS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},iS(e,t)}function fr(e,t,n){return t=AF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function AF(e){var t=Gle(e,"string");return Tl(t)=="symbol"?t:t+""}function Gle(e,t){if(Tl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Tl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Yle=function(t){var n=t.data,r=t.startIndex,i=t.endIndex,o=t.x,a=t.width,l=t.travellerWidth;if(!n||!n.length)return{};var c=n.length,d=vc().domain(Ih(0,c)).range([o,o+a-l]),f=d.domain().map(function(p){return d(p)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:d(r),endX:d(i),scale:d,scaleValues:f}},hI=function(t){return t.changedTouches&&!!t.changedTouches.length},Nl=(function(e){function t(n){var r;return Ule(this,t),r=Hle(this,t,[n]),fr(r,"handleDrag",function(i){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(i):r.state.isSlideMoving&&r.handleSlideDrag(i)}),fr(r,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&r.handleDrag(i.changedTouches[0])}),fr(r,"handleDragEnd",function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=r.props,o=i.endIndex,a=i.onDragEnd,l=i.startIndex;a==null||a({endIndex:o,startIndex:l})}),r.detachDragEndListener()}),fr(r,"handleLeaveWrapper",function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))}),fr(r,"handleEnterSlideOrTraveller",function(){r.setState({isTextActive:!0})}),fr(r,"handleLeaveSlideOrTraveller",function(){r.setState({isTextActive:!1})}),fr(r,"handleSlideDragStart",function(i){var o=hI(i)?i.changedTouches[0]:i;r.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:o.pageX}),r.attachDragEndListener()}),r.travellerDragStartHandlers={startX:r.handleTravellerDragStart.bind(r,"startX"),endX:r.handleTravellerDragStart.bind(r,"endX")},r.state={},r}return Kle(t,e),qle(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(r){var i=r.startX,o=r.endX,a=this.state.scaleValues,l=this.props,c=l.gap,d=l.data,f=d.length-1,p=Math.min(i,o),g=Math.max(i,o),v=t.getIndexInRange(a,p),S=t.getIndexInRange(a,g);return{startIndex:v-v%c,endIndex:S===f?f:S-S%c}}},{key:"getTextOfTick",value:function(r){var i=this.props,o=i.data,a=i.tickFormatter,l=i.dataKey,c=$n(o[r],l,r);return Ve(a)?a(c,r):c}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(r){var i=this.state,o=i.slideMoveStartX,a=i.startX,l=i.endX,c=this.props,d=c.x,f=c.width,p=c.travellerWidth,g=c.startIndex,v=c.endIndex,S=c.onChange,x=r.pageX-o;x>0?x=Math.min(x,d+f-p-l,d+f-p-a):x<0&&(x=Math.max(x,d-a,d-l));var y=this.getIndex({startX:a+x,endX:l+x});(y.startIndex!==g||y.endIndex!==v)&&S&&S(y),this.setState({startX:a+x,endX:l+x,slideMoveStartX:r.pageX})}},{key:"handleTravellerDragStart",value:function(r,i){var o=hI(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:r,brushMoveStartX:o.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(r){var i=this.state,o=i.brushMoveStartX,a=i.movingTravellerId,l=i.endX,c=i.startX,d=this.state[a],f=this.props,p=f.x,g=f.width,v=f.travellerWidth,S=f.onChange,x=f.gap,y=f.data,w={startX:this.state.startX,endX:this.state.endX},A=r.pageX-o;A>0?A=Math.min(A,p+g-v-d):A<0&&(A=Math.max(A,p-d)),w[a]=d+A;var _=this.getIndex(w),j=_.startIndex,k=_.endIndex,O=function(){var N=y.length-1;return a==="startX"&&(l>c?j%x===0:k%x===0)||l<c&&k===N||a==="endX"&&(l>c?k%x===0:j%x===0)||l>c&&k===N};this.setState(fr(fr({},a,d+A),"brushMoveStartX",r.pageX),function(){S&&O()&&S(_)})}},{key:"handleTravellerMoveKeyboard",value:function(r,i){var o=this,a=this.state,l=a.scaleValues,c=a.startX,d=a.endX,f=this.state[i],p=l.indexOf(f);if(p!==-1){var g=p+r;if(!(g===-1||g>=l.length)){var v=l[g];i==="startX"&&v>=d||i==="endX"&&v<=c||this.setState(fr({},i,v),function(){o.props.onChange(o.getIndex({startX:o.state.startX,endX:o.state.endX}))})}}}},{key:"renderBackground",value:function(){var r=this.props,i=r.x,o=r.y,a=r.width,l=r.height,c=r.fill,d=r.stroke;return W.createElement("rect",{stroke:d,fill:c,x:i,y:o,width:a,height:l})}},{key:"renderPanorama",value:function(){var r=this.props,i=r.x,o=r.y,a=r.width,l=r.height,c=r.data,d=r.children,f=r.padding,p=P.Children.only(d);return p?W.cloneElement(p,{x:i,y:o,width:a,height:l,margin:f,compact:!0,data:c}):null}},{key:"renderTravellerLayer",value:function(r,i){var o,a,l=this,c=this.props,d=c.y,f=c.travellerWidth,p=c.height,g=c.traveller,v=c.ariaLabel,S=c.data,x=c.startIndex,y=c.endIndex,w=Math.max(r,this.props.x),A=W0(W0({},Ue(this.props,!1)),{},{x:w,y:d,width:f,height:p}),_=v||"Min value: ".concat((o=S[x])===null||o===void 0?void 0:o.name,", Max value: ").concat((a=S[y])===null||a===void 0?void 0:a.name);return W.createElement(gt,{tabIndex:0,role:"slider","aria-label":_,"aria-valuenow":r,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(k){["ArrowLeft","ArrowRight"].includes(k.key)&&(k.preventDefault(),k.stopPropagation(),l.handleTravellerMoveKeyboard(k.key==="ArrowRight"?1:-1,i))},onFocus:function(){l.setState({isTravellerFocused:!0})},onBlur:function(){l.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(g,A))}},{key:"renderSlide",value:function(r,i){var o=this.props,a=o.y,l=o.height,c=o.stroke,d=o.travellerWidth,f=Math.min(r,i)+d,p=Math.max(Math.abs(i-r)-d,0);return W.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:c,fillOpacity:.2,x:f,y:a,width:p,height:l})}},{key:"renderText",value:function(){var r=this.props,i=r.startIndex,o=r.endIndex,a=r.y,l=r.height,c=r.travellerWidth,d=r.stroke,f=this.state,p=f.startX,g=f.endX,v=5,S={pointerEvents:"none",fill:d};return W.createElement(gt,{className:"recharts-brush-texts"},W.createElement(Va,$h({textAnchor:"end",verticalAnchor:"middle",x:Math.min(p,g)-v,y:a+l/2},S),this.getTextOfTick(i)),W.createElement(Va,$h({textAnchor:"start",verticalAnchor:"middle",x:Math.max(p,g)+c+v,y:a+l/2},S),this.getTextOfTick(o)))}},{key:"render",value:function(){var r=this.props,i=r.data,o=r.className,a=r.children,l=r.x,c=r.y,d=r.width,f=r.height,p=r.alwaysShowText,g=this.state,v=g.startX,S=g.endX,x=g.isTextActive,y=g.isSlideMoving,w=g.isTravellerMoving,A=g.isTravellerFocused;if(!i||!i.length||!Se(l)||!Se(c)||!Se(d)||!Se(f)||d<=0||f<=0)return null;var _=Xe("recharts-brush",o),j=W.Children.count(a)===1,k=zle("userSelect","none");return W.createElement(gt,{className:_,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:k},this.renderBackground(),j&&this.renderPanorama(),this.renderSlide(v,S),this.renderTravellerLayer(v,"startX"),this.renderTravellerLayer(S,"endX"),(x||y||w||A||p)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(r){var i=r.x,o=r.y,a=r.width,l=r.height,c=r.stroke,d=Math.floor(o+l/2)-1;return W.createElement(W.Fragment,null,W.createElement("rect",{x:i,y:o,width:a,height:l,fill:c,stroke:"none"}),W.createElement("line",{x1:i+1,y1:d,x2:i+a-1,y2:d,fill:"none",stroke:"#fff"}),W.createElement("line",{x1:i+1,y1:d+2,x2:i+a-1,y2:d+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(r,i){var o;return W.isValidElement(r)?o=W.cloneElement(r,i):Ve(r)?o=r(i):o=t.renderDefaultTraveller(i),o}},{key:"getDerivedStateFromProps",value:function(r,i){var o=r.data,a=r.width,l=r.x,c=r.travellerWidth,d=r.updateId,f=r.startIndex,p=r.endIndex;if(o!==i.prevData||d!==i.prevUpdateId)return W0({prevData:o,prevTravellerWidth:c,prevUpdateId:d,prevX:l,prevWidth:a},o&&o.length?Yle({data:o,width:a,x:l,travellerWidth:c,startIndex:f,endIndex:p}):{scale:null,scaleValues:null});if(i.scale&&(a!==i.prevWidth||l!==i.prevX||c!==i.prevTravellerWidth)){i.scale.range([l,l+a-c]);var g=i.scale.domain().map(function(v){return i.scale(v)});return{prevData:o,prevTravellerWidth:c,prevUpdateId:d,prevX:l,prevWidth:a,startX:i.scale(r.startIndex),endX:i.scale(r.endIndex),scaleValues:g}}return null}},{key:"getIndexInRange",value:function(r,i){for(var o=r.length,a=0,l=o-1;l-a>1;){var c=Math.floor((a+l)/2);r[c]>i?l=c:a=c}return i>=r[l]?l:a}}])})(P.PureComponent);fr(Nl,"displayName","Brush");fr(Nl,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var V0,mI;function Xle(){if(mI)return V0;mI=1;var e=I_();function t(n,r){var i;return e(n,function(o,a,l){return i=r(o,a,l),!i}),!!i}return V0=t,V0}var K0,gI;function Qle(){if(gI)return K0;gI=1;var e=w3(),t=Pi(),n=Xle(),r=ir(),i=Sm();function o(a,l,c){var d=r(a)?e:n;return c&&i(a,l,c)&&(l=void 0),d(a,t(l,3))}return K0=o,K0}var Zle=Qle();const Jle=lt(Zle);var Si=function(t,n){var r=t.alwaysShow,i=t.ifOverflow;return r&&(i="extendDomain"),i===n},G0,vI;function eue(){if(vI)return G0;vI=1;var e=F3();function t(n,r,i){r=="__proto__"&&e?e(n,r,{configurable:!0,enumerable:!0,value:i,writable:!0}):n[r]=i}return G0=t,G0}var Y0,yI;function tue(){if(yI)return Y0;yI=1;var e=eue(),t=D3(),n=Pi();function r(i,o){var a={};return o=n(o,3),t(i,function(l,c,d){e(a,c,o(l,c,d))}),a}return Y0=r,Y0}var nue=tue();const rue=lt(nue);var X0,bI;function iue(){if(bI)return X0;bI=1;function e(t,n){for(var r=-1,i=t==null?0:t.length;++r<i;)if(!n(t[r],r,t))return!1;return!0}return X0=e,X0}var Q0,xI;function oue(){if(xI)return Q0;xI=1;var e=I_();function t(n,r){var i=!0;return e(n,function(o,a,l){return i=!!r(o,a,l),i}),i}return Q0=t,Q0}var Z0,wI;function aue(){if(wI)return Z0;wI=1;var e=iue(),t=oue(),n=Pi(),r=ir(),i=Sm();function o(a,l,c){var d=r(a)?e:t;return c&&i(a,l,c)&&(l=void 0),d(a,n(l,3))}return Z0=o,Z0}var sue=aue();const EF=lt(sue);var lue=["x","y"];function sd(e){"@babel/helpers - typeof";return sd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sd(e)}function oS(){return oS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oS.apply(this,arguments)}function SI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function tc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?SI(Object(n),!0).forEach(function(r){uue(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function uue(e,t,n){return t=cue(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cue(e){var t=due(e,"string");return sd(t)=="symbol"?t:t+""}function due(e,t){if(sd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(sd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function fue(e,t){if(e==null)return{};var n=pue(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function pue(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function hue(e,t){var n=e.x,r=e.y,i=fue(e,lue),o="".concat(n),a=parseInt(o,10),l="".concat(r),c=parseInt(l,10),d="".concat(t.height||i.height),f=parseInt(d,10),p="".concat(t.width||i.width),g=parseInt(p,10);return tc(tc(tc(tc(tc({},t),i),a?{x:a}:{}),c?{y:c}:{}),{},{height:f,width:g,name:t.name,radius:t.radius})}function _I(e){return W.createElement(yF,oS({shapeType:"rectangle",propTransformer:hue,activeClassName:"recharts-active-bar"},e))}var mue=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(r,i){if(typeof t=="number")return t;var o=Se(r)||MY(r);return o?t(r,i):(o||Ga(),n)}},gue=["value","background"],kF;function Rl(e){"@babel/helpers - typeof";return Rl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rl(e)}function vue(e,t){if(e==null)return{};var n=yue(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function yue(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Dh(){return Dh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Dh.apply(this,arguments)}function AI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Gt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?AI(Object(n),!0).forEach(function(r){Wo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function bue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function EI(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,PF(r.key),r)}}function xue(e,t,n){return t&&EI(e.prototype,t),n&&EI(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function wue(e,t,n){return t=Lh(t),Sue(e,OF()?Reflect.construct(t,n||[],Lh(e).constructor):t.apply(e,n))}function Sue(e,t){if(t&&(Rl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _ue(e)}function _ue(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function OF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(OF=function(){return!!e})()}function Lh(e){return Lh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Lh(e)}function Aue(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&aS(e,t)}function aS(e,t){return aS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},aS(e,t)}function Wo(e,t,n){return t=PF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function PF(e){var t=Eue(e,"string");return Rl(t)=="symbol"?t:t+""}function Eue(e,t){if(Rl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Rl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var na=(function(e){function t(){var n;bue(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=wue(this,t,[].concat(i)),Wo(n,"state",{isAnimationFinished:!1}),Wo(n,"id",kd("recharts-bar-")),Wo(n,"handleAnimationEnd",function(){var a=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),a&&a()}),Wo(n,"handleAnimationStart",function(){var a=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),a&&a()}),n}return Aue(t,e),xue(t,[{key:"renderRectanglesStatically",value:function(r){var i=this,o=this.props,a=o.shape,l=o.dataKey,c=o.activeIndex,d=o.activeBar,f=Ue(this.props,!1);return r&&r.map(function(p,g){var v=g===c,S=v?d:a,x=Gt(Gt(Gt({},f),p),{},{isActive:v,option:S,index:g,dataKey:l,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return W.createElement(gt,Dh({className:"recharts-bar-rectangle"},Wa(i.props,p,g),{key:"rectangle-".concat(p==null?void 0:p.x,"-").concat(p==null?void 0:p.y,"-").concat(p==null?void 0:p.value,"-").concat(g)}),W.createElement(_I,x))})}},{key:"renderRectanglesWithAnimation",value:function(){var r=this,i=this.props,o=i.data,a=i.layout,l=i.isAnimationActive,c=i.animationBegin,d=i.animationDuration,f=i.animationEasing,p=i.animationId,g=this.state.prevData;return W.createElement(to,{begin:c,duration:d,isActive:l,easing:f,from:{t:0},to:{t:1},key:"bar-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(v){var S=v.t,x=o.map(function(y,w){var A=g&&g[w];if(A){var _=Io(A.x,y.x),j=Io(A.y,y.y),k=Io(A.width,y.width),O=Io(A.height,y.height);return Gt(Gt({},y),{},{x:_(S),y:j(S),width:k(S),height:O(S)})}if(a==="horizontal"){var T=Io(0,y.height),N=T(S);return Gt(Gt({},y),{},{y:y.y+y.height-N,height:N})}var I=Io(0,y.width),z=I(S);return Gt(Gt({},y),{},{width:z})});return W.createElement(gt,null,r.renderRectanglesStatically(x))})}},{key:"renderRectangles",value:function(){var r=this.props,i=r.data,o=r.isAnimationActive,a=this.state.prevData;return o&&i&&i.length&&(!a||!Rm(a,i))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(i)}},{key:"renderBackground",value:function(){var r=this,i=this.props,o=i.data,a=i.dataKey,l=i.activeIndex,c=Ue(this.props.background,!1);return o.map(function(d,f){d.value;var p=d.background,g=vue(d,gue);if(!p)return null;var v=Gt(Gt(Gt(Gt(Gt({},g),{},{fill:"#eee"},p),c),Wa(r.props,d,f)),{},{onAnimationStart:r.handleAnimationStart,onAnimationEnd:r.handleAnimationEnd,dataKey:a,index:f,className:"recharts-bar-background-rectangle"});return W.createElement(_I,Dh({key:"background-bar-".concat(f),option:r.props.background,isActive:f===l},v))})}},{key:"renderErrorBar",value:function(r,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var o=this.props,a=o.data,l=o.xAxis,c=o.yAxis,d=o.layout,f=o.children,p=Mr(f,Mm);if(!p)return null;var g=d==="vertical"?a[0].height/2:a[0].width/2,v=function(y,w){var A=Array.isArray(y.value)?y.value[1]:y.value;return{x:y.x,y:y.y,value:A,errorVal:$n(y,w)}},S={clipPath:r?"url(#clipPath-".concat(i,")"):null};return W.createElement(gt,S,p.map(function(x){return W.cloneElement(x,{key:"error-bar-".concat(i,"-").concat(x.props.dataKey),data:a,xAxis:l,yAxis:c,layout:d,offset:g,dataPointFormatter:v})}))}},{key:"render",value:function(){var r=this.props,i=r.hide,o=r.data,a=r.className,l=r.xAxis,c=r.yAxis,d=r.left,f=r.top,p=r.width,g=r.height,v=r.isAnimationActive,S=r.background,x=r.id;if(i||!o||!o.length)return null;var y=this.state.isAnimationFinished,w=Xe("recharts-bar",a),A=l&&l.allowDataOverflow,_=c&&c.allowDataOverflow,j=A||_,k=nt(x)?this.id:x;return W.createElement(gt,{className:w},A||_?W.createElement("defs",null,W.createElement("clipPath",{id:"clipPath-".concat(k)},W.createElement("rect",{x:A?d:d-p/2,y:_?f:f-g/2,width:A?p:p*2,height:_?g:g*2}))):null,W.createElement(gt,{className:"recharts-bar-rectangles",clipPath:j?"url(#clipPath-".concat(k,")"):null},S?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(j,k),(!v||y)&&Yo.renderCallByParent(this.props,o))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return r.animationId!==i.prevAnimationId?{prevAnimationId:r.animationId,curData:r.data,prevData:i.curData}:r.data!==i.curData?{curData:r.data}:null}}])})(P.PureComponent);kF=na;Wo(na,"displayName","Bar");Wo(na,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Xl.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});Wo(na,"getComposedData",function(e){var t=e.props,n=e.item,r=e.barPosition,i=e.bandSize,o=e.xAxis,a=e.yAxis,l=e.xAxisTicks,c=e.yAxisTicks,d=e.stackedData,f=e.dataStartIndex,p=e.displayedData,g=e.offset,v=Xre(r,n);if(!v)return null;var S=t.layout,x=n.type.defaultProps,y=x!==void 0?Gt(Gt({},x),n.props):n.props,w=y.dataKey,A=y.children,_=y.minPointSize,j=S==="horizontal"?a:o,k=d?j.scale.domain():null,O=rie({numericAxis:j}),T=Mr(A,_m),N=p.map(function(I,z){var F,D,L,B,U,G;d?F=Qre(d[f+z],k):(F=$n(I,w),Array.isArray(F)||(F=[O,F]));var Z=mue(_,kF.defaultProps.minPointSize)(F[1],z);if(S==="horizontal"){var Y,ee=[a.scale(F[0]),a.scale(F[1])],R=ee[0],q=ee[1];D=JR({axis:o,ticks:l,bandSize:i,offset:v.offset,entry:I,index:z}),L=(Y=q??R)!==null&&Y!==void 0?Y:void 0,B=v.size;var V=R-q;if(U=Number.isNaN(V)?0:V,G={x:D,y:a.y,width:B,height:a.height},Math.abs(Z)>0&&Math.abs(U)<Math.abs(Z)){var M=Un(U||Z)*(Math.abs(Z)-Math.abs(U));L-=M,U+=M}}else{var re=[o.scale(F[0]),o.scale(F[1])],ce=re[0],oe=re[1];if(D=ce,L=JR({axis:a,ticks:c,bandSize:i,offset:v.offset,entry:I,index:z}),B=oe-ce,U=v.size,G={x:o.x,y:L,width:o.width,height:U},Math.abs(Z)>0&&Math.abs(B)<Math.abs(Z)){var ae=Un(B||Z)*(Math.abs(Z)-Math.abs(B));B+=ae}}return Gt(Gt(Gt({},I),{},{x:D,y:L,width:B,height:U,value:d?F:F[1],payload:I,background:G},T&&T[z]&&T[z].props),{},{tooltipPayload:[eF(n,I)],tooltipPosition:{x:D+B/2,y:L+U/2}})});return Gt({data:N,layout:S},g)});function ld(e){"@babel/helpers - typeof";return ld=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ld(e)}function kue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kI(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,jF(r.key),r)}}function Oue(e,t,n){return t&&kI(e.prototype,t),n&&kI(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function OI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Zr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?OI(Object(n),!0).forEach(function(r){qm(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function qm(e,t,n){return t=jF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jF(e){var t=Pue(e,"string");return ld(t)=="symbol"?t:t+""}function Pue(e,t){if(ld(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ld(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var jue=function(t,n,r,i,o){var a=t.width,l=t.height,c=t.layout,d=t.children,f=Object.keys(n),p={left:r.left,leftMirror:r.left,right:a-r.right,rightMirror:a-r.right,top:r.top,topMirror:r.top,bottom:l-r.bottom,bottomMirror:l-r.bottom},g=!!pr(d,na);return f.reduce(function(v,S){var x=n[S],y=x.orientation,w=x.domain,A=x.padding,_=A===void 0?{}:A,j=x.mirror,k=x.reversed,O="".concat(y).concat(j?"Mirror":""),T,N,I,z,F;if(x.type==="number"&&(x.padding==="gap"||x.padding==="no-gap")){var D=w[1]-w[0],L=1/0,B=x.categoricalDomain.sort(FY);if(B.forEach(function(re,ce){ce>0&&(L=Math.min((re||0)-(B[ce-1]||0),L))}),Number.isFinite(L)){var U=L/D,G=x.layout==="vertical"?r.height:r.width;if(x.padding==="gap"&&(T=U*G/2),x.padding==="no-gap"){var Z=qn(t.barCategoryGap,U*G),Y=U*G/2;T=Y-Z-(Y-Z)/G*Z}}}i==="xAxis"?N=[r.left+(_.left||0)+(T||0),r.left+r.width-(_.right||0)-(T||0)]:i==="yAxis"?N=c==="horizontal"?[r.top+r.height-(_.bottom||0),r.top+(_.top||0)]:[r.top+(_.top||0)+(T||0),r.top+r.height-(_.bottom||0)-(T||0)]:N=x.range,k&&(N=[N[1],N[0]]);var ee=X4(x,o,g),R=ee.scale,q=ee.realScaleType;R.domain(w).range(N),Q4(R);var V=Z4(R,Zr(Zr({},x),{},{realScaleType:q}));i==="xAxis"?(F=y==="top"&&!j||y==="bottom"&&j,I=r.left,z=p[O]-F*x.height):i==="yAxis"&&(F=y==="left"&&!j||y==="right"&&j,I=p[O]-F*x.width,z=r.top);var M=Zr(Zr(Zr({},x),V),{},{realScaleType:q,x:I,y:z,scale:R,width:i==="xAxis"?r.width:x.width,height:i==="yAxis"?r.height:x.height});return M.bandSize=wh(M,V),!x.hide&&i==="xAxis"?p[O]+=(F?-1:1)*M.height:x.hide||(p[O]+=(F?-1:1)*M.width),Zr(Zr({},v),{},qm({},S,M))},{})},CF=function(t,n){var r=t.x,i=t.y,o=n.x,a=n.y;return{x:Math.min(r,o),y:Math.min(i,a),width:Math.abs(o-r),height:Math.abs(a-i)}},Cue=function(t){var n=t.x1,r=t.y1,i=t.x2,o=t.y2;return CF({x:n,y:r},{x:i,y:o})},TF=(function(){function e(t){kue(this,e),this.scale=t}return Oue(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.bandAware,o=r.position;if(n!==void 0){if(o)switch(o){case"start":return this.scale(n);case"middle":{var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+a}case"end":{var l=this.bandwidth?this.bandwidth():0;return this.scale(n)+l}default:return this.scale(n)}if(i){var c=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+c}return this.scale(n)}}},{key:"isInRange",value:function(n){var r=this.range(),i=r[0],o=r[r.length-1];return i<=o?n>=i&&n<=o:n>=o&&n<=i}}],[{key:"create",value:function(n){return new e(n)}}])})();qm(TF,"EPS",1e-4);var dA=function(t){var n=Object.keys(t).reduce(function(r,i){return Zr(Zr({},r),{},qm({},i,TF.create(t[i])))},{});return Zr(Zr({},n),{},{apply:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=o.bandAware,l=o.position;return rue(i,function(c,d){return n[d].apply(c,{bandAware:a,position:l})})},isInRange:function(i){return EF(i,function(o,a){return n[a].isInRange(o)})}})};function Tue(e){return(e%180+180)%180}var Nue=function(t){var n=t.width,r=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=Tue(i),a=o*Math.PI/180,l=Math.atan(r/n),c=a>l&&a<Math.PI-l?r/Math.sin(a):n/Math.cos(a);return Math.abs(c)},J0,PI;function Rue(){if(PI)return J0;PI=1;var e=Pi(),t=Od(),n=xm();function r(i){return function(o,a,l){var c=Object(o);if(!t(o)){var d=e(a,3);o=n(o),a=function(p){return d(c[p],p,c)}}var f=i(o,a,l);return f>-1?c[d?o[f]:f]:void 0}}return J0=r,J0}var ew,jI;function Iue(){if(jI)return ew;jI=1;var e=wF();function t(n){var r=e(n),i=r%1;return r===r?i?r-i:r:0}return ew=t,ew}var tw,CI;function $ue(){if(CI)return tw;CI=1;var e=N3(),t=Pi(),n=Iue(),r=Math.max;function i(o,a,l){var c=o==null?0:o.length;if(!c)return-1;var d=l==null?0:n(l);return d<0&&(d=r(c+d,0)),e(o,t(a,3),d)}return tw=i,tw}var nw,TI;function Mue(){if(TI)return nw;TI=1;var e=Rue(),t=$ue(),n=e(t);return nw=n,nw}var Due=Mue();const Lue=lt(Due);var Fue=GL();const Bue=lt(Fue);var zue=Bue(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")}),fA=P.createContext(void 0),pA=P.createContext(void 0),NF=P.createContext(void 0),RF=P.createContext({}),IF=P.createContext(void 0),$F=P.createContext(0),MF=P.createContext(0),NI=function(t){var n=t.state,r=n.xAxisMap,i=n.yAxisMap,o=n.offset,a=t.clipPathId,l=t.children,c=t.width,d=t.height,f=zue(o);return W.createElement(fA.Provider,{value:r},W.createElement(pA.Provider,{value:i},W.createElement(RF.Provider,{value:o},W.createElement(NF.Provider,{value:f},W.createElement(IF.Provider,{value:a},W.createElement($F.Provider,{value:d},W.createElement(MF.Provider,{value:c},l)))))))},Uue=function(){return P.useContext(IF)},DF=function(t){var n=P.useContext(fA);n==null&&Ga();var r=n[t];return r==null&&Ga(),r},que=function(){var t=P.useContext(fA);return Mo(t)},Hue=function(){var t=P.useContext(pA),n=Lue(t,function(r){return EF(r.domain,Number.isFinite)});return n||Mo(t)},LF=function(t){var n=P.useContext(pA);n==null&&Ga();var r=n[t];return r==null&&Ga(),r},Wue=function(){var t=P.useContext(NF);return t},Vue=function(){return P.useContext(RF)},hA=function(){return P.useContext(MF)},mA=function(){return P.useContext($F)};function Il(e){"@babel/helpers - typeof";return Il=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Il(e)}function Kue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Gue(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,BF(r.key),r)}}function Yue(e,t,n){return t&&Gue(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Xue(e,t,n){return t=Fh(t),Que(e,FF()?Reflect.construct(t,n||[],Fh(e).constructor):t.apply(e,n))}function Que(e,t){if(t&&(Il(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Zue(e)}function Zue(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function FF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(FF=function(){return!!e})()}function Fh(e){return Fh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Fh(e)}function Jue(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&sS(e,t)}function sS(e,t){return sS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},sS(e,t)}function RI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function II(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?RI(Object(n),!0).forEach(function(r){gA(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function gA(e,t,n){return t=BF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function BF(e){var t=ece(e,"string");return Il(t)=="symbol"?t:t+""}function ece(e,t){if(Il(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Il(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function tce(e,t){return oce(e)||ice(e,t)||rce(e,t)||nce()}function nce(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
333In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rce(e,t){if(e){if(typeof e=="string")return $I(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $I(e,t)}}function $I(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ice(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,l=[],c=!0,d=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(f){d=!0,i=f}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(d)throw i}}return l}}function oce(e){if(Array.isArray(e))return e}function lS(){return lS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lS.apply(this,arguments)}var ace=function(t,n){var r;return W.isValidElement(t)?r=W.cloneElement(t,n):Ve(t)?r=t(n):r=W.createElement("line",lS({},n,{className:"recharts-reference-line-line"})),r},sce=function(t,n,r,i,o,a,l,c,d){var f=o.x,p=o.y,g=o.width,v=o.height;if(r){var S=d.y,x=t.y.apply(S,{position:a});if(Si(d,"discard")&&!t.y.isInRange(x))return null;var y=[{x:f+g,y:x},{x:f,y:x}];return c==="left"?y.reverse():y}if(n){var w=d.x,A=t.x.apply(w,{position:a});if(Si(d,"discard")&&!t.x.isInRange(A))return null;var _=[{x:A,y:p+v},{x:A,y:p}];return l==="top"?_.reverse():_}if(i){var j=d.segment,k=j.map(function(O){return t.apply(O,{position:a})});return Si(d,"discard")&&Jle(k,function(O){return!t.isInRange(O)})?null:k}return null};function lce(e){var t=e.x,n=e.y,r=e.segment,i=e.xAxisId,o=e.yAxisId,a=e.shape,l=e.className,c=e.alwaysShow,d=Uue(),f=DF(i),p=LF(o),g=Wue();if(!d||!g)return null;ti(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var v=dA({x:f.scale,y:p.scale}),S=sn(t),x=sn(n),y=r&&r.length===2,w=sce(v,S,x,y,g,e.position,f.orientation,p.orientation,e);if(!w)return null;var A=tce(w,2),_=A[0],j=_.x,k=_.y,O=A[1],T=O.x,N=O.y,I=Si(e,"hidden")?"url(#".concat(d,")"):void 0,z=II(II({clipPath:I},Ue(e,!0)),{},{x1:j,y1:k,x2:T,y2:N});return W.createElement(gt,{className:Xe("recharts-reference-line",l)},ace(a,z),gn.renderCallByParent(e,Cue({x1:j,y1:k,x2:T,y2:N})))}var vA=(function(e){function t(){return Kue(this,t),Xue(this,t,arguments)}return Jue(t,e),Yue(t,[{key:"render",value:function(){return W.createElement(lce,this.props)}}])})(W.Component);gA(vA,"displayName","ReferenceLine");gA(vA,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function uS(){return uS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uS.apply(this,arguments)}function $l(e){"@babel/helpers - typeof";return $l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$l(e)}function MI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function DI(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?MI(Object(n),!0).forEach(function(r){Hm(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function uce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cce(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,UF(r.key),r)}}function dce(e,t,n){return t&&cce(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function fce(e,t,n){return t=Bh(t),pce(e,zF()?Reflect.construct(t,n||[],Bh(e).constructor):t.apply(e,n))}function pce(e,t){if(t&&($l(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return hce(e)}function hce(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function zF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(zF=function(){return!!e})()}function Bh(e){return Bh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Bh(e)}function mce(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&cS(e,t)}function cS(e,t){return cS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},cS(e,t)}function Hm(e,t,n){return t=UF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function UF(e){var t=gce(e,"string");return $l(t)=="symbol"?t:t+""}function gce(e,t){if($l(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if($l(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var vce=function(t){var n=t.x,r=t.y,i=t.xAxis,o=t.yAxis,a=dA({x:i.scale,y:o.scale}),l=a.apply({x:n,y:r},{bandAware:!0});return Si(t,"discard")&&!a.isInRange(l)?null:l},Wm=(function(e){function t(){return uce(this,t),fce(this,t,arguments)}return mce(t,e),dce(t,[{key:"render",value:function(){var r=this.props,i=r.x,o=r.y,a=r.r,l=r.alwaysShow,c=r.clipPathId,d=sn(i),f=sn(o);if(ti(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!d||!f)return null;var p=vce(this.props);if(!p)return null;var g=p.x,v=p.y,S=this.props,x=S.shape,y=S.className,w=Si(this.props,"hidden")?"url(#".concat(c,")"):void 0,A=DI(DI({clipPath:w},Ue(this.props,!0)),{},{cx:g,cy:v});return W.createElement(gt,{className:Xe("recharts-reference-dot",y)},t.renderDot(x,A),gn.renderCallByParent(this.props,{x:g-a,y:v-a,width:2*a,height:2*a}))}}])})(W.Component);Hm(Wm,"displayName","ReferenceDot");Hm(Wm,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});Hm(Wm,"renderDot",function(e,t){var n;return W.isValidElement(e)?n=W.cloneElement(e,t):Ve(e)?n=e(t):n=W.createElement(cA,uS({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),n});function dS(){return dS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dS.apply(this,arguments)}function Ml(e){"@babel/helpers - typeof";return Ml=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ml(e)}function LI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function FI(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?LI(Object(n),!0).forEach(function(r){Vm(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function yce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bce(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,HF(r.key),r)}}function xce(e,t,n){return t&&bce(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function wce(e,t,n){return t=zh(t),Sce(e,qF()?Reflect.construct(t,n||[],zh(e).constructor):t.apply(e,n))}function Sce(e,t){if(t&&(Ml(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _ce(e)}function _ce(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(qF=function(){return!!e})()}function zh(e){return zh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},zh(e)}function Ace(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&fS(e,t)}function fS(e,t){return fS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},fS(e,t)}function Vm(e,t,n){return t=HF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function HF(e){var t=Ece(e,"string");return Ml(t)=="symbol"?t:t+""}function Ece(e,t){if(Ml(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ml(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var kce=function(t,n,r,i,o){var a=o.x1,l=o.x2,c=o.y1,d=o.y2,f=o.xAxis,p=o.yAxis;if(!f||!p)return null;var g=dA({x:f.scale,y:p.scale}),v={x:t?g.x.apply(a,{position:"start"}):g.x.rangeMin,y:r?g.y.apply(c,{position:"start"}):g.y.rangeMin},S={x:n?g.x.apply(l,{position:"end"}):g.x.rangeMax,y:i?g.y.apply(d,{position:"end"}):g.y.rangeMax};return Si(o,"discard")&&(!g.isInRange(v)||!g.isInRange(S))?null:CF(v,S)},Km=(function(e){function t(){return yce(this,t),wce(this,t,arguments)}return Ace(t,e),xce(t,[{key:"render",value:function(){var r=this.props,i=r.x1,o=r.x2,a=r.y1,l=r.y2,c=r.className,d=r.alwaysShow,f=r.clipPathId;ti(d===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var p=sn(i),g=sn(o),v=sn(a),S=sn(l),x=this.props.shape;if(!p&&!g&&!v&&!S&&!x)return null;var y=kce(p,g,v,S,this.props);if(!y&&!x)return null;var w=Si(this.props,"hidden")?"url(#".concat(f,")"):void 0;return W.createElement(gt,{className:Xe("recharts-reference-area",c)},t.renderRect(x,FI(FI({clipPath:w},Ue(this.props,!0)),y)),gn.renderCallByParent(this.props,y))}}])})(W.Component);Vm(Km,"displayName","ReferenceArea");Vm(Km,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});Vm(Km,"renderRect",function(e,t){var n;return W.isValidElement(e)?n=W.cloneElement(e,t):Ve(e)?n=e(t):n=W.createElement(uA,dS({},t,{className:"recharts-reference-area-rect"})),n});function WF(e,t,n){if(t<1)return[];if(t===1&&n===void 0)return e;for(var r=[],i=0;i<e.length;i+=t)r.push(e[i]);return r}function Oce(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return Nue(r,n)}function Pce(e,t,n){var r=n==="width",i=e.x,o=e.y,a=e.width,l=e.height;return t===1?{start:r?i:o,end:r?i+a:o+l}:{start:r?i+a:o+l,end:r?i:o}}function Uh(e,t,n,r,i){if(e*t<e*r||e*t>e*i)return!1;var o=n();return e*(t-e*o/2-r)>=0&&e*(t+e*o/2-i)<=0}function jce(e,t){return WF(e,t+1)}function Cce(e,t,n,r,i){for(var o=(r||[]).slice(),a=t.start,l=t.end,c=0,d=1,f=a,p=function(){var S=r==null?void 0:r[c];if(S===void 0)return{v:WF(r,d)};var x=c,y,w=function(){return y===void 0&&(y=n(S,x)),y},A=S.coordinate,_=c===0||Uh(e,A,w,f,l);_||(c=0,f=a,d+=1),_&&(f=A+e*(w()/2+i),c+=d)},g;d<=o.length;)if(g=p(),g)return g.v;return[]}function ud(e){"@babel/helpers - typeof";return ud=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ud(e)}function BI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Rn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?BI(Object(n),!0).forEach(function(r){Tce(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Tce(e,t,n){return t=Nce(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nce(e){var t=Rce(e,"string");return ud(t)=="symbol"?t:t+""}function Rce(e,t){if(ud(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ud(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ice(e,t,n,r,i){for(var o=(r||[]).slice(),a=o.length,l=t.start,c=t.end,d=function(g){var v=o[g],S,x=function(){return S===void 0&&(S=n(v,g)),S};if(g===a-1){var y=e*(v.coordinate+e*x()/2-c);o[g]=v=Rn(Rn({},v),{},{tickCoord:y>0?v.coordinate-y*e:v.coordinate})}else o[g]=v=Rn(Rn({},v),{},{tickCoord:v.coordinate});var w=Uh(e,v.tickCoord,x,l,c);w&&(c=v.tickCoord-e*(x()/2+i),o[g]=Rn(Rn({},v),{},{isShow:!0}))},f=a-1;f>=0;f--)d(f);return o}function $ce(e,t,n,r,i,o){var a=(r||[]).slice(),l=a.length,c=t.start,d=t.end;if(o){var f=r[l-1],p=n(f,l-1),g=e*(f.coordinate+e*p/2-d);a[l-1]=f=Rn(Rn({},f),{},{tickCoord:g>0?f.coordinate-g*e:f.coordinate});var v=Uh(e,f.tickCoord,function(){return p},c,d);v&&(d=f.tickCoord-e*(p/2+i),a[l-1]=Rn(Rn({},f),{},{isShow:!0}))}for(var S=o?l-1:l,x=function(A){var _=a[A],j,k=function(){return j===void 0&&(j=n(_,A)),j};if(A===0){var O=e*(_.coordinate-e*k()/2-c);a[A]=_=Rn(Rn({},_),{},{tickCoord:O<0?_.coordinate-O*e:_.coordinate})}else a[A]=_=Rn(Rn({},_),{},{tickCoord:_.coordinate});var T=Uh(e,_.tickCoord,k,c,d);T&&(c=_.tickCoord+e*(k()/2+i),a[A]=Rn(Rn({},_),{},{isShow:!0}))},y=0;y<S;y++)x(y);return a}function yA(e,t,n){var r=e.tick,i=e.ticks,o=e.viewBox,a=e.minTickGap,l=e.orientation,c=e.interval,d=e.tickFormatter,f=e.unit,p=e.angle;if(!i||!i.length||!r)return[];if(Se(c)||Xl.isSsr)return jce(i,typeof c=="number"&&Se(c)?c:0);var g=[],v=l==="top"||l==="bottom"?"width":"height",S=f&&v==="width"?gc(f,{fontSize:t,letterSpacing:n}):{width:0,height:0},x=function(_,j){var k=Ve(d)?d(_.value,j):_.value;return v==="width"?Oce(gc(k,{fontSize:t,letterSpacing:n}),S,p):gc(k,{fontSize:t,letterSpacing:n})[v]},y=i.length>=2?Un(i[1].coordinate-i[0].coordinate):1,w=Pce(o,y,v);return c==="equidistantPreserveStart"?Cce(y,w,x,i,a):(c==="preserveStart"||c==="preserveStartEnd"?g=$ce(y,w,x,i,a,c==="preserveStartEnd"):g=Ice(y,w,x,i,a),g.filter(function(A){return A.isShow}))}var Mce=["viewBox"],Dce=["viewBox"],Lce=["ticks"];function Dl(e){"@babel/helpers - typeof";return Dl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dl(e)}function Ys(){return Ys=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ys.apply(this,arguments)}function zI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function rn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zI(Object(n),!0).forEach(function(r){bA(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function rw(e,t){if(e==null)return{};var n=Fce(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Fce(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Bce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function UI(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,KF(r.key),r)}}function zce(e,t,n){return t&&UI(e.prototype,t),n&&UI(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Uce(e,t,n){return t=qh(t),qce(e,VF()?Reflect.construct(t,n||[],qh(e).constructor):t.apply(e,n))}function qce(e,t){if(t&&(Dl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Hce(e)}function Hce(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function VF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(VF=function(){return!!e})()}function qh(e){return qh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},qh(e)}function Wce(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&pS(e,t)}function pS(e,t){return pS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},pS(e,t)}function bA(e,t,n){return t=KF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function KF(e){var t=Vce(e,"string");return Dl(t)=="symbol"?t:t+""}function Vce(e,t){if(Dl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Dl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var eu=(function(e){function t(n){var r;return Bce(this,t),r=Uce(this,t,[n]),r.state={fontSize:"",letterSpacing:""},r}return Wce(t,e),zce(t,[{key:"shouldComponentUpdate",value:function(r,i){var o=r.viewBox,a=rw(r,Mce),l=this.props,c=l.viewBox,d=rw(l,Dce);return!Zs(o,c)||!Zs(a,d)||!Zs(i,this.state)}},{key:"componentDidMount",value:function(){var r=this.layerReference;if(r){var i=r.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];i&&this.setState({fontSize:window.getComputedStyle(i).fontSize,letterSpacing:window.getComputedStyle(i).letterSpacing})}}},{key:"getTickLineCoord",value:function(r){var i=this.props,o=i.x,a=i.y,l=i.width,c=i.height,d=i.orientation,f=i.tickSize,p=i.mirror,g=i.tickMargin,v,S,x,y,w,A,_=p?-1:1,j=r.tickSize||f,k=Se(r.tickCoord)?r.tickCoord:r.coordinate;switch(d){case"top":v=S=r.coordinate,y=a+ +!p*c,x=y-_*j,A=x-_*g,w=k;break;case"left":x=y=r.coordinate,S=o+ +!p*l,v=S-_*j,w=v-_*g,A=k;break;case"right":x=y=r.coordinate,S=o+ +p*l,v=S+_*j,w=v+_*g,A=k;break;default:v=S=r.coordinate,y=a+ +p*c,x=y+_*j,A=x+_*g,w=k;break}return{line:{x1:v,y1:x,x2:S,y2:y},tick:{x:w,y:A}}}},{key:"getTickTextAnchor",value:function(){var r=this.props,i=r.orientation,o=r.mirror,a;switch(i){case"left":a=o?"start":"end";break;case"right":a=o?"end":"start";break;default:a="middle";break}return a}},{key:"getTickVerticalAnchor",value:function(){var r=this.props,i=r.orientation,o=r.mirror,a="end";switch(i){case"left":case"right":a="middle";break;case"top":a=o?"start":"end";break;default:a=o?"end":"start";break}return a}},{key:"renderAxisLine",value:function(){var r=this.props,i=r.x,o=r.y,a=r.width,l=r.height,c=r.orientation,d=r.mirror,f=r.axisLine,p=rn(rn(rn({},Ue(this.props,!1)),Ue(f,!1)),{},{fill:"none"});if(c==="top"||c==="bottom"){var g=+(c==="top"&&!d||c==="bottom"&&d);p=rn(rn({},p),{},{x1:i,y1:o+g*l,x2:i+a,y2:o+g*l})}else{var v=+(c==="left"&&!d||c==="right"&&d);p=rn(rn({},p),{},{x1:i+v*a,y1:o,x2:i+v*a,y2:o+l})}return W.createElement("line",Ys({},p,{className:Xe("recharts-cartesian-axis-line",vr(f,"className"))}))}},{key:"renderTicks",value:function(r,i,o){var a=this,l=this.props,c=l.tickLine,d=l.stroke,f=l.tick,p=l.tickFormatter,g=l.unit,v=yA(rn(rn({},this.props),{},{ticks:r}),i,o),S=this.getTickTextAnchor(),x=this.getTickVerticalAnchor(),y=Ue(this.props,!1),w=Ue(f,!1),A=rn(rn({},y),{},{fill:"none"},Ue(c,!1)),_=v.map(function(j,k){var O=a.getTickLineCoord(j),T=O.line,N=O.tick,I=rn(rn(rn(rn({textAnchor:S,verticalAnchor:x},y),{},{stroke:"none",fill:d},w),N),{},{index:k,payload:j,visibleTicksCount:v.length,tickFormatter:p});return W.createElement(gt,Ys({className:"recharts-cartesian-axis-tick",key:"tick-".concat(j.value,"-").concat(j.coordinate,"-").concat(j.tickCoord)},Wa(a.props,j,k)),c&&W.createElement("line",Ys({},A,T,{className:Xe("recharts-cartesian-axis-tick-line",vr(c,"className"))})),f&&t.renderTickItem(f,I,"".concat(Ve(p)?p(j.value,k):j.value).concat(g||"")))});return W.createElement("g",{className:"recharts-cartesian-axis-ticks"},_)}},{key:"render",value:function(){var r=this,i=this.props,o=i.axisLine,a=i.width,l=i.height,c=i.ticksGenerator,d=i.className,f=i.hide;if(f)return null;var p=this.props,g=p.ticks,v=rw(p,Lce),S=g;return Ve(c)&&(S=g&&g.length>0?c(this.props):c(v)),a<=0||l<=0||!S||!S.length?null:W.createElement(gt,{className:Xe("recharts-cartesian-axis",d),ref:function(y){r.layerReference=y}},o&&this.renderAxisLine(),this.renderTicks(S,this.state.fontSize,this.state.letterSpacing),gn.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(r,i,o){var a,l=Xe(i.className,"recharts-cartesian-axis-tick-value");return W.isValidElement(r)?a=W.cloneElement(r,rn(rn({},i),{},{className:l})):Ve(r)?a=r(rn(rn({},i),{},{className:l})):a=W.createElement(Va,Ys({},i,{className:"recharts-cartesian-axis-tick-value"}),o),a}}])})(P.Component);bA(eu,"displayName","CartesianAxis");bA(eu,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var Kce=["x1","y1","x2","y2","key"],Gce=["offset"];function Ya(e){"@babel/helpers - typeof";return Ya=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ya(e)}function qI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function In(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qI(Object(n),!0).forEach(function(r){Yce(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Yce(e,t,n){return t=Xce(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xce(e){var t=Qce(e,"string");return Ya(t)=="symbol"?t:t+""}function Qce(e,t){if(Ya(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ya(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Na(){return Na=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Na.apply(this,arguments)}function HI(e,t){if(e==null)return{};var n=Zce(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Zce(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var Jce=function(t){var n=t.fill;if(!n||n==="none")return null;var r=t.fillOpacity,i=t.x,o=t.y,a=t.width,l=t.height,c=t.ry;return W.createElement("rect",{x:i,y:o,ry:c,width:a,height:l,stroke:"none",fill:n,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function GF(e,t){var n;if(W.isValidElement(e))n=W.cloneElement(e,t);else if(Ve(e))n=e(t);else{var r=t.x1,i=t.y1,o=t.x2,a=t.y2,l=t.key,c=HI(t,Kce),d=Ue(c,!1);d.offset;var f=HI(d,Gce);n=W.createElement("line",Na({},f,{x1:r,y1:i,x2:o,y2:a,fill:"none",key:l}))}return n}function ede(e){var t=e.x,n=e.width,r=e.horizontal,i=r===void 0?!0:r,o=e.horizontalPoints;if(!i||!o||!o.length)return null;var a=o.map(function(l,c){var d=In(In({},e),{},{x1:t,y1:l,x2:t+n,y2:l,key:"line-".concat(c),index:c});return GF(i,d)});return W.createElement("g",{className:"recharts-cartesian-grid-horizontal"},a)}function tde(e){var t=e.y,n=e.height,r=e.vertical,i=r===void 0?!0:r,o=e.verticalPoints;if(!i||!o||!o.length)return null;var a=o.map(function(l,c){var d=In(In({},e),{},{x1:l,y1:t,x2:l,y2:t+n,key:"line-".concat(c),index:c});return GF(i,d)});return W.createElement("g",{className:"recharts-cartesian-grid-vertical"},a)}function nde(e){var t=e.horizontalFill,n=e.fillOpacity,r=e.x,i=e.y,o=e.width,a=e.height,l=e.horizontalPoints,c=e.horizontal,d=c===void 0?!0:c;if(!d||!t||!t.length)return null;var f=l.map(function(g){return Math.round(g+i-i)}).sort(function(g,v){return g-v});i!==f[0]&&f.unshift(0);var p=f.map(function(g,v){var S=!f[v+1],x=S?i+a-g:f[v+1]-g;if(x<=0)return null;var y=v%t.length;return W.createElement("rect",{key:"react-".concat(v),y:g,x:r,height:x,width:o,stroke:"none",fill:t[y],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return W.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},p)}function rde(e){var t=e.vertical,n=t===void 0?!0:t,r=e.verticalFill,i=e.fillOpacity,o=e.x,a=e.y,l=e.width,c=e.height,d=e.verticalPoints;if(!n||!r||!r.length)return null;var f=d.map(function(g){return Math.round(g+o-o)}).sort(function(g,v){return g-v});o!==f[0]&&f.unshift(0);var p=f.map(function(g,v){var S=!f[v+1],x=S?o+l-g:f[v+1]-g;if(x<=0)return null;var y=v%r.length;return W.createElement("rect",{key:"react-".concat(v),x:g,y:a,width:x,height:c,stroke:"none",fill:r[y],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return W.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},p)}var ide=function(t,n){var r=t.xAxis,i=t.width,o=t.height,a=t.offset;return Y4(yA(In(In(In({},eu.defaultProps),r),{},{ticks:Ki(r,!0),viewBox:{x:0,y:0,width:i,height:o}})),a.left,a.left+a.width,n)},ode=function(t,n){var r=t.yAxis,i=t.width,o=t.height,a=t.offset;return Y4(yA(In(In(In({},eu.defaultProps),r),{},{ticks:Ki(r,!0),viewBox:{x:0,y:0,width:i,height:o}})),a.top,a.top+a.height,n)},Ls={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function xA(e){var t,n,r,i,o,a,l=hA(),c=mA(),d=Vue(),f=In(In({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:Ls.stroke,fill:(n=e.fill)!==null&&n!==void 0?n:Ls.fill,horizontal:(r=e.horizontal)!==null&&r!==void 0?r:Ls.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:Ls.horizontalFill,vertical:(o=e.vertical)!==null&&o!==void 0?o:Ls.vertical,verticalFill:(a=e.verticalFill)!==null&&a!==void 0?a:Ls.verticalFill,x:Se(e.x)?e.x:d.left,y:Se(e.y)?e.y:d.top,width:Se(e.width)?e.width:d.width,height:Se(e.height)?e.height:d.height}),p=f.x,g=f.y,v=f.width,S=f.height,x=f.syncWithTicks,y=f.horizontalValues,w=f.verticalValues,A=que(),_=Hue();if(!Se(v)||v<=0||!Se(S)||S<=0||!Se(p)||p!==+p||!Se(g)||g!==+g)return null;var j=f.verticalCoordinatesGenerator||ide,k=f.horizontalCoordinatesGenerator||ode,O=f.horizontalPoints,T=f.verticalPoints;if((!O||!O.length)&&Ve(k)){var N=y&&y.length,I=k({yAxis:_?In(In({},_),{},{ticks:N?y:_.ticks}):void 0,width:l,height:c,offset:d},N?!0:x);ti(Array.isArray(I),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(Ya(I),"]")),Array.isArray(I)&&(O=I)}if((!T||!T.length)&&Ve(j)){var z=w&&w.length,F=j({xAxis:A?In(In({},A),{},{ticks:z?w:A.ticks}):void 0,width:l,height:c,offset:d},z?!0:x);ti(Array.isArray(F),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(Ya(F),"]")),Array.isArray(F)&&(T=F)}return W.createElement("g",{className:"recharts-cartesian-grid"},W.createElement(Jce,{fill:f.fill,fillOpacity:f.fillOpacity,x:f.x,y:f.y,width:f.width,height:f.height,ry:f.ry}),W.createElement(ede,Na({},f,{offset:d,horizontalPoints:O,xAxis:A,yAxis:_})),W.createElement(tde,Na({},f,{offset:d,verticalPoints:T,xAxis:A,yAxis:_})),W.createElement(nde,Na({},f,{horizontalPoints:O})),W.createElement(rde,Na({},f,{verticalPoints:T})))}xA.displayName="CartesianGrid";function Ll(e){"@babel/helpers - typeof";return Ll=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ll(e)}function ade(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sde(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,QF(r.key),r)}}function lde(e,t,n){return t&&sde(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ude(e,t,n){return t=Hh(t),cde(e,YF()?Reflect.construct(t,n||[],Hh(e).constructor):t.apply(e,n))}function cde(e,t){if(t&&(Ll(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return dde(e)}function dde(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function YF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(YF=function(){return!!e})()}function Hh(e){return Hh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Hh(e)}function fde(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&hS(e,t)}function hS(e,t){return hS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},hS(e,t)}function XF(e,t,n){return t=QF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function QF(e){var t=pde(e,"string");return Ll(t)=="symbol"?t:t+""}function pde(e,t){if(Ll(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ll(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function mS(){return mS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mS.apply(this,arguments)}function hde(e){var t=e.xAxisId,n=hA(),r=mA(),i=DF(t);return i==null?null:P.createElement(eu,mS({},i,{className:Xe("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:n,height:r},ticksGenerator:function(a){return Ki(a,!0)}}))}var Nd=(function(e){function t(){return ade(this,t),ude(this,t,arguments)}return fde(t,e),lde(t,[{key:"render",value:function(){return P.createElement(hde,this.props)}}])})(P.Component);XF(Nd,"displayName","XAxis");XF(Nd,"defaultProps",{allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0});function Fl(e){"@babel/helpers - typeof";return Fl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fl(e)}function mde(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gde(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,eB(r.key),r)}}function vde(e,t,n){return t&&gde(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function yde(e,t,n){return t=Wh(t),bde(e,ZF()?Reflect.construct(t,n||[],Wh(e).constructor):t.apply(e,n))}function bde(e,t){if(t&&(Fl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xde(e)}function xde(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ZF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ZF=function(){return!!e})()}function Wh(e){return Wh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Wh(e)}function wde(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&gS(e,t)}function gS(e,t){return gS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},gS(e,t)}function JF(e,t,n){return t=eB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eB(e){var t=Sde(e,"string");return Fl(t)=="symbol"?t:t+""}function Sde(e,t){if(Fl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Fl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function vS(){return vS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vS.apply(this,arguments)}var _de=function(t){var n=t.yAxisId,r=hA(),i=mA(),o=LF(n);return o==null?null:P.createElement(eu,vS({},o,{className:Xe("recharts-".concat(o.axisType," ").concat(o.axisType),o.className),viewBox:{x:0,y:0,width:r,height:i},ticksGenerator:function(l){return Ki(l,!0)}}))},Rd=(function(e){function t(){return mde(this,t),yde(this,t,arguments)}return wde(t,e),vde(t,[{key:"render",value:function(){return P.createElement(_de,this.props)}}])})(P.Component);JF(Rd,"displayName","YAxis");JF(Rd,"defaultProps",{allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1});function WI(e){return Ode(e)||kde(e)||Ede(e)||Ade()}function Ade(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
334In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ede(e,t){if(e){if(typeof e=="string")return yS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return yS(e,t)}}function kde(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Ode(e){if(Array.isArray(e))return yS(e)}function yS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var bS=function(t,n,r,i,o){var a=Mr(t,vA),l=Mr(t,Wm),c=[].concat(WI(a),WI(l)),d=Mr(t,Km),f="".concat(i,"Id"),p=i[0],g=n;if(c.length&&(g=c.reduce(function(x,y){if(y.props[f]===r&&Si(y.props,"extendDomain")&&Se(y.props[p])){var w=y.props[p];return[Math.min(x[0],w),Math.max(x[1],w)]}return x},g)),d.length){var v="".concat(p,"1"),S="".concat(p,"2");g=d.reduce(function(x,y){if(y.props[f]===r&&Si(y.props,"extendDomain")&&Se(y.props[v])&&Se(y.props[S])){var w=y.props[v],A=y.props[S];return[Math.min(x[0],w,A),Math.max(x[1],w,A)]}return x},g)}return o&&o.length&&(g=o.reduce(function(x,y){return Se(y)?[Math.min(x[0],y),Math.max(x[1],y)]:x},g)),g},iw={exports:{}},VI;function Pde(){return VI||(VI=1,(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function i(c,d,f){this.fn=c,this.context=d,this.once=f||!1}function o(c,d,f,p,g){if(typeof f!="function")throw new TypeError("The listener must be a function");var v=new i(f,p||c,g),S=n?n+d:d;return c._events[S]?c._events[S].fn?c._events[S]=[c._events[S],v]:c._events[S].push(v):(c._events[S]=v,c._eventsCount++),c}function a(c,d){--c._eventsCount===0?c._events=new r:delete c._events[d]}function l(){this._events=new r,this._eventsCount=0}l.prototype.eventNames=function(){var d=[],f,p;if(this._eventsCount===0)return d;for(p in f=this._events)t.call(f,p)&&d.push(n?p.slice(1):p);return Object.getOwnPropertySymbols?d.concat(Object.getOwnPropertySymbols(f)):d},l.prototype.listeners=function(d){var f=n?n+d:d,p=this._events[f];if(!p)return[];if(p.fn)return[p.fn];for(var g=0,v=p.length,S=new Array(v);g<v;g++)S[g]=p[g].fn;return S},l.prototype.listenerCount=function(d){var f=n?n+d:d,p=this._events[f];return p?p.fn?1:p.length:0},l.prototype.emit=function(d,f,p,g,v,S){var x=n?n+d:d;if(!this._events[x])return!1;var y=this._events[x],w=arguments.length,A,_;if(y.fn){switch(y.once&&this.removeListener(d,y.fn,void 0,!0),w){case 1:return y.fn.call(y.context),!0;case 2:return y.fn.call(y.context,f),!0;case 3:return y.fn.call(y.context,f,p),!0;case 4:return y.fn.call(y.context,f,p,g),!0;case 5:return y.fn.call(y.context,f,p,g,v),!0;case 6:return y.fn.call(y.context,f,p,g,v,S),!0}for(_=1,A=new Array(w-1);_<w;_++)A[_-1]=arguments[_];y.fn.apply(y.context,A)}else{var j=y.length,k;for(_=0;_<j;_++)switch(y[_].once&&this.removeListener(d,y[_].fn,void 0,!0),w){case 1:y[_].fn.call(y[_].context);break;case 2:y[_].fn.call(y[_].context,f);break;case 3:y[_].fn.call(y[_].context,f,p);break;case 4:y[_].fn.call(y[_].context,f,p,g);break;default:if(!A)for(k=1,A=new Array(w-1);k<w;k++)A[k-1]=arguments[k];y[_].fn.apply(y[_].context,A)}}return!0},l.prototype.on=function(d,f,p){return o(this,d,f,p,!1)},l.prototype.once=function(d,f,p){return o(this,d,f,p,!0)},l.prototype.removeListener=function(d,f,p,g){var v=n?n+d:d;if(!this._events[v])return this;if(!f)return a(this,v),this;var S=this._events[v];if(S.fn)S.fn===f&&(!g||S.once)&&(!p||S.context===p)&&a(this,v);else{for(var x=0,y=[],w=S.length;x<w;x++)(S[x].fn!==f||g&&!S[x].once||p&&S[x].context!==p)&&y.push(S[x]);y.length?this._events[v]=y.length===1?y[0]:y:a(this,v)}return this},l.prototype.removeAllListeners=function(d){var f;return d?(f=n?n+d:d,this._events[f]&&a(this,f)):(this._events=new r,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=n,l.EventEmitter=l,e.exports=l})(iw)),iw.exports}var jde=Pde();const Cde=lt(jde);var ow=new Cde,aw="recharts.syncMouseEvents";function cd(e){"@babel/helpers - typeof";return cd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cd(e)}function Tde(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Nde(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,tB(r.key),r)}}function Rde(e,t,n){return t&&Nde(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function sw(e,t,n){return t=tB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tB(e){var t=Ide(e,"string");return cd(t)=="symbol"?t:t+""}function Ide(e,t){if(cd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(cd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var $de=(function(){function e(){Tde(this,e),sw(this,"activeIndex",0),sw(this,"coordinateList",[]),sw(this,"layout","horizontal")}return Rde(e,[{key:"setDetails",value:function(n){var r,i=n.coordinateList,o=i===void 0?null:i,a=n.container,l=a===void 0?null:a,c=n.layout,d=c===void 0?null:c,f=n.offset,p=f===void 0?null:f,g=n.mouseHandlerCallback,v=g===void 0?null:g;this.coordinateList=(r=o??this.coordinateList)!==null&&r!==void 0?r:[],this.container=l??this.container,this.layout=d??this.layout,this.offset=p??this.offset,this.mouseHandlerCallback=v??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(n){if(this.coordinateList.length!==0)switch(n.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(n){this.activeIndex=n}},{key:"spoofMouse",value:function(){var n,r;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var i=this.container.getBoundingClientRect(),o=i.x,a=i.y,l=i.height,c=this.coordinateList[this.activeIndex].coordinate,d=((n=window)===null||n===void 0?void 0:n.scrollX)||0,f=((r=window)===null||r===void 0?void 0:r.scrollY)||0,p=o+c+d,g=a+this.offset.top+l/2+f;this.mouseHandlerCallback({pageX:p,pageY:g})}}}])})();function Mde(e,t,n){if(n==="number"&&t===!0&&Array.isArray(e)){var r=e==null?void 0:e[0],i=e==null?void 0:e[1];if(r&&i&&Se(r)&&Se(i))return!0}return!1}function Dde(e,t,n,r){var i=r/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:n.left+.5,y:e==="horizontal"?n.top+.5:t.y-i,width:e==="horizontal"?r:n.width-1,height:e==="horizontal"?n.height-1:r}}function nB(e){var t=e.cx,n=e.cy,r=e.radius,i=e.startAngle,o=e.endAngle,a=kt(t,n,r,i),l=kt(t,n,r,o);return{points:[a,l],cx:t,cy:n,radius:r,startAngle:i,endAngle:o}}function Lde(e,t,n){var r,i,o,a;if(e==="horizontal")r=t.x,o=r,i=n.top,a=n.top+n.height;else if(e==="vertical")i=t.y,a=i,r=n.left,o=n.left+n.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var l=t.cx,c=t.cy,d=t.innerRadius,f=t.outerRadius,p=t.angle,g=kt(l,c,d,p),v=kt(l,c,f,p);r=g.x,i=g.y,o=v.x,a=v.y}else return nB(t);return[{x:r,y:i},{x:o,y:a}]}function dd(e){"@babel/helpers - typeof";return dd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dd(e)}function KI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function pp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?KI(Object(n),!0).forEach(function(r){Fde(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Fde(e,t,n){return t=Bde(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bde(e){var t=zde(e,"string");return dd(t)=="symbol"?t:t+""}function zde(e,t){if(dd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(dd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ude(e){var t,n,r=e.element,i=e.tooltipEventType,o=e.isActive,a=e.activeCoordinate,l=e.activePayload,c=e.offset,d=e.activeTooltipIndex,f=e.tooltipAxisBandSize,p=e.layout,g=e.chartName,v=(t=r.props.cursor)!==null&&t!==void 0?t:(n=r.type.defaultProps)===null||n===void 0?void 0:n.cursor;if(!r||!v||!o||!a||g!=="ScatterChart"&&i!=="axis")return null;var S,x=U1;if(g==="ScatterChart")S=a,x=_se;else if(g==="BarChart")S=Dde(p,a,c,f),x=uA;else if(p==="radial"){var y=nB(a),w=y.cx,A=y.cy,_=y.radius,j=y.startAngle,k=y.endAngle;S={cx:w,cy:A,startAngle:j,endAngle:k,innerRadius:_,outerRadius:_},x=aF}else S={points:Lde(p,a,c)},x=U1;var O=pp(pp(pp(pp({stroke:"#ccc",pointerEvents:"none"},c),S),Ue(v,!1)),{},{payload:l,payloadIndex:d,className:Xe("recharts-tooltip-cursor",v.className)});return P.isValidElement(v)?P.cloneElement(v,O):P.createElement(x,O)}var qde=["item"],Hde=["children","className","width","height","style","compact","title","desc"];function Bl(e){"@babel/helpers - typeof";return Bl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bl(e)}function Xs(){return Xs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xs.apply(this,arguments)}function GI(e,t){return Kde(e)||Vde(e,t)||iB(e,t)||Wde()}function Wde(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
335In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Vde(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,l=[],c=!0,d=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(f){d=!0,i=f}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(d)throw i}}return l}}function Kde(e){if(Array.isArray(e))return e}function YI(e,t){if(e==null)return{};var n=Gde(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Gde(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Yde(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xde(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,oB(r.key),r)}}function Qde(e,t,n){return t&&Xde(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Zde(e,t,n){return t=Vh(t),Jde(e,rB()?Reflect.construct(t,n||[],Vh(e).constructor):t.apply(e,n))}function Jde(e,t){if(t&&(Bl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return efe(e)}function efe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(rB=function(){return!!e})()}function Vh(e){return Vh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Vh(e)}function tfe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&xS(e,t)}function xS(e,t){return xS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},xS(e,t)}function zl(e){return ife(e)||rfe(e)||iB(e)||nfe()}function nfe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
336In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function iB(e,t){if(e){if(typeof e=="string")return wS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return wS(e,t)}}function rfe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ife(e){if(Array.isArray(e))return wS(e)}function wS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function XI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ue(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?XI(Object(n),!0).forEach(function(r){Be(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Be(e,t,n){return t=oB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oB(e){var t=ofe(e,"string");return Bl(t)=="symbol"?t:t+""}function ofe(e,t){if(Bl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Bl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var afe={xAxis:["bottom","top"],yAxis:["left","right"]},sfe={width:"100%",height:"100%"},aB={x:0,y:0};function hp(e){return e}var lfe=function(t,n){return n==="horizontal"?t.x:n==="vertical"?t.y:n==="centric"?t.angle:t.radius},ufe=function(t,n,r,i){var o=n.find(function(f){return f&&f.index===r});if(o){if(t==="horizontal")return{x:o.coordinate,y:i.y};if(t==="vertical")return{x:i.x,y:o.coordinate};if(t==="centric"){var a=o.coordinate,l=i.radius;return ue(ue(ue({},i),kt(i.cx,i.cy,l,a)),{},{angle:a,radius:l})}var c=o.coordinate,d=i.angle;return ue(ue(ue({},i),kt(i.cx,i.cy,c,d)),{},{angle:d,radius:c})}return aB},Gm=function(t,n){var r=n.graphicalItems,i=n.dataStartIndex,o=n.dataEndIndex,a=(r??[]).reduce(function(l,c){var d=c.props.data;return d&&d.length?[].concat(zl(l),zl(d)):l},[]);return a.length>0?a:t&&t.length&&Se(i)&&Se(o)?t.slice(i,o+1):[]};function sB(e){return e==="number"?[0,"auto"]:void 0}var SS=function(t,n,r,i){var o=t.graphicalItems,a=t.tooltipAxis,l=Gm(n,t);return r<0||!o||!o.length||r>=l.length?null:o.reduce(function(c,d){var f,p=(f=d.props.data)!==null&&f!==void 0?f:n;p&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=r&&(p=p.slice(t.dataStartIndex,t.dataEndIndex+1));var g;if(a.dataKey&&!a.allowDuplicatedCategory){var v=p===void 0?l:p;g=r1(v,a.dataKey,i)}else g=p&&p[r]||l[r];return g?[].concat(zl(c),[eF(d,g)]):c},[])},QI=function(t,n,r,i){var o=i||{x:t.chartX,y:t.chartY},a=lfe(o,r),l=t.orderedTooltipTicks,c=t.tooltipAxis,d=t.tooltipTicks,f=Hre(a,l,d,c);if(f>=0&&d){var p=d[f]&&d[f].value,g=SS(t,n,f,p),v=ufe(r,l,f,o);return{activeTooltipIndex:f,activeLabel:p,activePayload:g,activeCoordinate:v}}return null},cfe=function(t,n){var r=n.axes,i=n.graphicalItems,o=n.axisType,a=n.axisIdKey,l=n.stackGroups,c=n.dataStartIndex,d=n.dataEndIndex,f=t.layout,p=t.children,g=t.stackOffset,v=G4(f,o);return r.reduce(function(S,x){var y,w=x.type.defaultProps!==void 0?ue(ue({},x.type.defaultProps),x.props):x.props,A=w.type,_=w.dataKey,j=w.allowDataOverflow,k=w.allowDuplicatedCategory,O=w.scale,T=w.ticks,N=w.includeHidden,I=w[a];if(S[I])return S;var z=Gm(t.data,{graphicalItems:i.filter(function(V){var M,re=a in V.props?V.props[a]:(M=V.type.defaultProps)===null||M===void 0?void 0:M[a];return re===I}),dataStartIndex:c,dataEndIndex:d}),F=z.length,D,L,B;Mde(w.domain,j,A)&&(D=D1(w.domain,null,j),v&&(A==="number"||O!=="auto")&&(B=yc(z,_,"category")));var U=sB(A);if(!D||D.length===0){var G,Z=(G=w.domain)!==null&&G!==void 0?G:U;if(_){if(D=yc(z,_,A),A==="category"&&v){var Y=LY(D);k&&Y?(L=D,D=Ih(0,F)):k||(D=n2(Z,D,x).reduce(function(V,M){return V.indexOf(M)>=0?V:[].concat(zl(V),[M])},[]))}else if(A==="category")k?D=D.filter(function(V){return V!==""&&!nt(V)}):D=n2(Z,D,x).reduce(function(V,M){return V.indexOf(M)>=0||M===""||nt(M)?V:[].concat(zl(V),[M])},[]);else if(A==="number"){var ee=Yre(z,i.filter(function(V){var M,re,ce=a in V.props?V.props[a]:(M=V.type.defaultProps)===null||M===void 0?void 0:M[a],oe="hide"in V.props?V.props.hide:(re=V.type.defaultProps)===null||re===void 0?void 0:re.hide;return ce===I&&(N||!oe)}),_,o,f);ee&&(D=ee)}v&&(A==="number"||O!=="auto")&&(B=yc(z,_,"category"))}else v?D=Ih(0,F):l&&l[I]&&l[I].hasStack&&A==="number"?D=g==="expand"?[0,1]:J4(l[I].stackGroups,c,d):D=K4(z,i.filter(function(V){var M=a in V.props?V.props[a]:V.type.defaultProps[a],re="hide"in V.props?V.props.hide:V.type.defaultProps.hide;return M===I&&(N||!re)}),A,f,!0);if(A==="number")D=bS(p,D,I,o,T),Z&&(D=D1(Z,D,j));else if(A==="category"&&Z){var R=Z,q=D.every(function(V){return R.indexOf(V)>=0});q&&(D=R)}}return ue(ue({},S),{},Be({},I,ue(ue({},w),{},{axisType:o,domain:D,categoricalDomain:B,duplicateDomain:L,originalDomain:(y=w.domain)!==null&&y!==void 0?y:U,isCategorical:v,layout:f})))},{})},dfe=function(t,n){var r=n.graphicalItems,i=n.Axis,o=n.axisType,a=n.axisIdKey,l=n.stackGroups,c=n.dataStartIndex,d=n.dataEndIndex,f=t.layout,p=t.children,g=Gm(t.data,{graphicalItems:r,dataStartIndex:c,dataEndIndex:d}),v=g.length,S=G4(f,o),x=-1;return r.reduce(function(y,w){var A=w.type.defaultProps!==void 0?ue(ue({},w.type.defaultProps),w.props):w.props,_=A[a],j=sB("number");if(!y[_]){x++;var k;return S?k=Ih(0,v):l&&l[_]&&l[_].hasStack?(k=J4(l[_].stackGroups,c,d),k=bS(p,k,_,o)):(k=D1(j,K4(g,r.filter(function(O){var T,N,I=a in O.props?O.props[a]:(T=O.type.defaultProps)===null||T===void 0?void 0:T[a],z="hide"in O.props?O.props.hide:(N=O.type.defaultProps)===null||N===void 0?void 0:N.hide;return I===_&&!z}),"number",f),i.defaultProps.allowDataOverflow),k=bS(p,k,_,o)),ue(ue({},y),{},Be({},_,ue(ue({axisType:o},i.defaultProps),{},{hide:!0,orientation:vr(afe,"".concat(o,".").concat(x%2),null),domain:k,originalDomain:j,isCategorical:S,layout:f})))}return y},{})},ffe=function(t,n){var r=n.axisType,i=r===void 0?"xAxis":r,o=n.AxisComp,a=n.graphicalItems,l=n.stackGroups,c=n.dataStartIndex,d=n.dataEndIndex,f=t.children,p="".concat(i,"Id"),g=Mr(f,o),v={};return g&&g.length?v=cfe(t,{axes:g,graphicalItems:a,axisType:i,axisIdKey:p,stackGroups:l,dataStartIndex:c,dataEndIndex:d}):a&&a.length&&(v=dfe(t,{Axis:o,graphicalItems:a,axisType:i,axisIdKey:p,stackGroups:l,dataStartIndex:c,dataEndIndex:d})),v},pfe=function(t){var n=Mo(t),r=Ki(n,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:$_(r,function(i){return i.coordinate}),tooltipAxis:n,tooltipAxisBandSize:wh(n,r)}},ZI=function(t){var n=t.children,r=t.defaultShowTooltip,i=pr(n,Nl),o=0,a=0;return t.data&&t.data.length!==0&&(a=t.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(o=i.props.startIndex),i.props.endIndex>=0&&(a=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:o,dataEndIndex:a,activeTooltipIndex:-1,isTooltipActive:!!r}},hfe=function(t){return!t||!t.length?!1:t.some(function(n){var r=Gi(n&&n.type);return r&&r.indexOf("Bar")>=0})},JI=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},mfe=function(t,n){var r=t.props,i=t.graphicalItems,o=t.xAxisMap,a=o===void 0?{}:o,l=t.yAxisMap,c=l===void 0?{}:l,d=r.width,f=r.height,p=r.children,g=r.margin||{},v=pr(p,Nl),S=pr(p,Js),x=Object.keys(c).reduce(function(k,O){var T=c[O],N=T.orientation;return!T.mirror&&!T.hide?ue(ue({},k),{},Be({},N,k[N]+T.width)):k},{left:g.left||0,right:g.right||0}),y=Object.keys(a).reduce(function(k,O){var T=a[O],N=T.orientation;return!T.mirror&&!T.hide?ue(ue({},k),{},Be({},N,vr(k,"".concat(N))+T.height)):k},{top:g.top||0,bottom:g.bottom||0}),w=ue(ue({},y),x),A=w.bottom;v&&(w.bottom+=v.props.height||Nl.defaultProps.height),S&&n&&(w=Kre(w,i,r,n));var _=d-w.left-w.right,j=f-w.top-w.bottom;return ue(ue({brushBottom:A},w),{},{width:Math.max(_,0),height:Math.max(j,0)})},gfe=function(t,n){if(n==="xAxis")return t[n].width;if(n==="yAxis")return t[n].height},lB=function(t){var n=t.chartName,r=t.GraphicalChild,i=t.defaultTooltipEventType,o=i===void 0?"axis":i,a=t.validateTooltipEventTypes,l=a===void 0?["axis"]:a,c=t.axisComponents,d=t.legendContent,f=t.formatAxisMap,p=t.defaultProps,g=function(w,A){var _=A.graphicalItems,j=A.stackGroups,k=A.offset,O=A.updateId,T=A.dataStartIndex,N=A.dataEndIndex,I=w.barSize,z=w.layout,F=w.barGap,D=w.barCategoryGap,L=w.maxBarSize,B=JI(z),U=B.numericAxisName,G=B.cateAxisName,Z=hfe(_),Y=[];return _.forEach(function(ee,R){var q=Gm(w.data,{graphicalItems:[ee],dataStartIndex:T,dataEndIndex:N}),V=ee.type.defaultProps!==void 0?ue(ue({},ee.type.defaultProps),ee.props):ee.props,M=V.dataKey,re=V.maxBarSize,ce=V["".concat(U,"Id")],oe=V["".concat(G,"Id")],ae={},pe=c.reduce(function(Ke,Ze){var Tt=A["".concat(Ze.axisType,"Map")],Bt=V["".concat(Ze.axisType,"Id")];Tt&&Tt[Bt]||Ze.axisType==="zAxis"||Ga();var En=Tt[Bt];return ue(ue({},Ke),{},Be(Be({},Ze.axisType,En),"".concat(Ze.axisType,"Ticks"),Ki(En)))},ae),te=pe[G],xe=pe["".concat(G,"Ticks")],je=j&&j[ce]&&j[ce].hasStack&&iie(ee,j[ce].stackGroups),se=Gi(ee.type).indexOf("Bar")>=0,Qe=wh(te,xe),ge=[],Ae=Z&&Wre({barSize:I,stackGroups:j,totalSize:gfe(pe,G)});if(se){var _e,Fe,et=nt(re)?L:re,Ce=(_e=(Fe=wh(te,xe,!0))!==null&&Fe!==void 0?Fe:et)!==null&&_e!==void 0?_e:0;ge=Vre({barGap:F,barCategoryGap:D,bandSize:Ce!==Qe?Ce:Qe,sizeList:Ae[oe],maxBarSize:et}),Ce!==Qe&&(ge=ge.map(function(Ke){return ue(ue({},Ke),{},{position:ue(ue({},Ke.position),{},{offset:Ke.position.offset-Ce/2})})}))}var ze=ee&&ee.type&&ee.type.getComposedData;ze&&Y.push({props:ue(ue({},ze(ue(ue({},pe),{},{displayedData:q,props:w,dataKey:M,item:ee,bandSize:Qe,barPosition:ge,offset:k,stackedData:je,layout:z,dataStartIndex:T,dataEndIndex:N}))),{},Be(Be(Be({key:ee.key||"item-".concat(R)},U,pe[U]),G,pe[G]),"animationId",O)),childIndex:XY(ee,w.children),item:ee})}),Y},v=function(w,A){var _=w.props,j=w.dataStartIndex,k=w.dataEndIndex,O=w.updateId;if(!vC({props:_}))return null;var T=_.children,N=_.layout,I=_.stackOffset,z=_.data,F=_.reverseStackOrder,D=JI(N),L=D.numericAxisName,B=D.cateAxisName,U=Mr(T,r),G=nie(z,U,"".concat(L,"Id"),"".concat(B,"Id"),I,F),Z=c.reduce(function(V,M){var re="".concat(M.axisType,"Map");return ue(ue({},V),{},Be({},re,ffe(_,ue(ue({},M),{},{graphicalItems:U,stackGroups:M.axisType===L&&G,dataStartIndex:j,dataEndIndex:k}))))},{}),Y=mfe(ue(ue({},Z),{},{props:_,graphicalItems:U}),A==null?void 0:A.legendBBox);Object.keys(Z).forEach(function(V){Z[V]=f(_,Z[V],Y,V.replace("Map",""),n)});var ee=Z["".concat(B,"Map")],R=pfe(ee),q=g(_,ue(ue({},Z),{},{dataStartIndex:j,dataEndIndex:k,updateId:O,graphicalItems:U,stackGroups:G,offset:Y}));return ue(ue({formattedGraphicalItems:q,graphicalItems:U,offset:Y,stackGroups:G},R),Z)},S=(function(y){function w(A){var _,j,k;return Yde(this,w),k=Zde(this,w,[A]),Be(k,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),Be(k,"accessibilityManager",new $de),Be(k,"handleLegendBBoxUpdate",function(O){if(O){var T=k.state,N=T.dataStartIndex,I=T.dataEndIndex,z=T.updateId;k.setState(ue({legendBBox:O},v({props:k.props,dataStartIndex:N,dataEndIndex:I,updateId:z},ue(ue({},k.state),{},{legendBBox:O}))))}}),Be(k,"handleReceiveSyncEvent",function(O,T,N){if(k.props.syncId===O){if(N===k.eventEmitterSymbol&&typeof k.props.syncMethod!="function")return;k.applySyncEvent(T)}}),Be(k,"handleBrushChange",function(O){var T=O.startIndex,N=O.endIndex;if(T!==k.state.dataStartIndex||N!==k.state.dataEndIndex){var I=k.state.updateId;k.setState(function(){return ue({dataStartIndex:T,dataEndIndex:N},v({props:k.props,dataStartIndex:T,dataEndIndex:N,updateId:I},k.state))}),k.triggerSyncEvent({dataStartIndex:T,dataEndIndex:N})}}),Be(k,"handleMouseEnter",function(O){var T=k.getMouseInfo(O);if(T){var N=ue(ue({},T),{},{isTooltipActive:!0});k.setState(N),k.triggerSyncEvent(N);var I=k.props.onMouseEnter;Ve(I)&&I(N,O)}}),Be(k,"triggeredAfterMouseMove",function(O){var T=k.getMouseInfo(O),N=T?ue(ue({},T),{},{isTooltipActive:!0}):{isTooltipActive:!1};k.setState(N),k.triggerSyncEvent(N);var I=k.props.onMouseMove;Ve(I)&&I(N,O)}),Be(k,"handleItemMouseEnter",function(O){k.setState(function(){return{isTooltipActive:!0,activeItem:O,activePayload:O.tooltipPayload,activeCoordinate:O.tooltipPosition||{x:O.cx,y:O.cy}}})}),Be(k,"handleItemMouseLeave",function(){k.setState(function(){return{isTooltipActive:!1}})}),Be(k,"handleMouseMove",function(O){O.persist(),k.throttleTriggeredAfterMouseMove(O)}),Be(k,"handleMouseLeave",function(O){k.throttleTriggeredAfterMouseMove.cancel();var T={isTooltipActive:!1};k.setState(T),k.triggerSyncEvent(T);var N=k.props.onMouseLeave;Ve(N)&&N(T,O)}),Be(k,"handleOuterEvent",function(O){var T=YY(O),N=vr(k.props,"".concat(T));if(T&&Ve(N)){var I,z;/.*touch.*/i.test(T)?z=k.getMouseInfo(O.changedTouches[0]):z=k.getMouseInfo(O),N((I=z)!==null&&I!==void 0?I:{},O)}}),Be(k,"handleClick",function(O){var T=k.getMouseInfo(O);if(T){var N=ue(ue({},T),{},{isTooltipActive:!0});k.setState(N),k.triggerSyncEvent(N);var I=k.props.onClick;Ve(I)&&I(N,O)}}),Be(k,"handleMouseDown",function(O){var T=k.props.onMouseDown;if(Ve(T)){var N=k.getMouseInfo(O);T(N,O)}}),Be(k,"handleMouseUp",function(O){var T=k.props.onMouseUp;if(Ve(T)){var N=k.getMouseInfo(O);T(N,O)}}),Be(k,"handleTouchMove",function(O){O.changedTouches!=null&&O.changedTouches.length>0&&k.throttleTriggeredAfterMouseMove(O.changedTouches[0])}),Be(k,"handleTouchStart",function(O){O.changedTouches!=null&&O.changedTouches.length>0&&k.handleMouseDown(O.changedTouches[0])}),Be(k,"handleTouchEnd",function(O){O.changedTouches!=null&&O.changedTouches.length>0&&k.handleMouseUp(O.changedTouches[0])}),Be(k,"handleDoubleClick",function(O){var T=k.props.onDoubleClick;if(Ve(T)){var N=k.getMouseInfo(O);T(N,O)}}),Be(k,"handleContextMenu",function(O){var T=k.props.onContextMenu;if(Ve(T)){var N=k.getMouseInfo(O);T(N,O)}}),Be(k,"triggerSyncEvent",function(O){k.props.syncId!==void 0&&ow.emit(aw,k.props.syncId,O,k.eventEmitterSymbol)}),Be(k,"applySyncEvent",function(O){var T=k.props,N=T.layout,I=T.syncMethod,z=k.state.updateId,F=O.dataStartIndex,D=O.dataEndIndex;if(O.dataStartIndex!==void 0||O.dataEndIndex!==void 0)k.setState(ue({dataStartIndex:F,dataEndIndex:D},v({props:k.props,dataStartIndex:F,dataEndIndex:D,updateId:z},k.state)));else if(O.activeTooltipIndex!==void 0){var L=O.chartX,B=O.chartY,U=O.activeTooltipIndex,G=k.state,Z=G.offset,Y=G.tooltipTicks;if(!Z)return;if(typeof I=="function")U=I(Y,O);else if(I==="value"){U=-1;for(var ee=0;ee<Y.length;ee++)if(Y[ee].value===O.activeLabel){U=ee;break}}var R=ue(ue({},Z),{},{x:Z.left,y:Z.top}),q=Math.min(L,R.x+R.width),V=Math.min(B,R.y+R.height),M=Y[U]&&Y[U].value,re=SS(k.state,k.props.data,U),ce=Y[U]?{x:N==="horizontal"?Y[U].coordinate:q,y:N==="horizontal"?V:Y[U].coordinate}:aB;k.setState(ue(ue({},O),{},{activeLabel:M,activeCoordinate:ce,activePayload:re,activeTooltipIndex:U}))}else k.setState(O)}),Be(k,"renderCursor",function(O){var T,N=k.state,I=N.isTooltipActive,z=N.activeCoordinate,F=N.activePayload,D=N.offset,L=N.activeTooltipIndex,B=N.tooltipAxisBandSize,U=k.getTooltipEventType(),G=(T=O.props.active)!==null&&T!==void 0?T:I,Z=k.props.layout,Y=O.key||"_recharts-cursor";return W.createElement(Ude,{key:Y,activeCoordinate:z,activePayload:F,activeTooltipIndex:L,chartName:n,element:O,isActive:G,layout:Z,offset:D,tooltipAxisBandSize:B,tooltipEventType:U})}),Be(k,"renderPolarAxis",function(O,T,N){var I=vr(O,"type.axisType"),z=vr(k.state,"".concat(I,"Map")),F=O.type.defaultProps,D=F!==void 0?ue(ue({},F),O.props):O.props,L=z&&z[D["".concat(I,"Id")]];return P.cloneElement(O,ue(ue({},L),{},{className:Xe(I,L.className),key:O.key||"".concat(T,"-").concat(N),ticks:Ki(L,!0)}))}),Be(k,"renderPolarGrid",function(O){var T=O.props,N=T.radialLines,I=T.polarAngles,z=T.polarRadius,F=k.state,D=F.radiusAxisMap,L=F.angleAxisMap,B=Mo(D),U=Mo(L),G=U.cx,Z=U.cy,Y=U.innerRadius,ee=U.outerRadius;return P.cloneElement(O,{polarAngles:Array.isArray(I)?I:Ki(U,!0).map(function(R){return R.coordinate}),polarRadius:Array.isArray(z)?z:Ki(B,!0).map(function(R){return R.coordinate}),cx:G,cy:Z,innerRadius:Y,outerRadius:ee,key:O.key||"polar-grid",radialLines:N})}),Be(k,"renderLegend",function(){var O=k.state.formattedGraphicalItems,T=k.props,N=T.children,I=T.width,z=T.height,F=k.props.margin||{},D=I-(F.left||0)-(F.right||0),L=W4({children:N,formattedGraphicalItems:O,legendWidth:D,legendContent:d});if(!L)return null;var B=L.item,U=YI(L,qde);return P.cloneElement(B,ue(ue({},U),{},{chartWidth:I,chartHeight:z,margin:F,onBBoxUpdate:k.handleLegendBBoxUpdate}))}),Be(k,"renderTooltip",function(){var O,T=k.props,N=T.children,I=T.accessibilityLayer,z=pr(N,Cr);if(!z)return null;var F=k.state,D=F.isTooltipActive,L=F.activeCoordinate,B=F.activePayload,U=F.activeLabel,G=F.offset,Z=(O=z.props.active)!==null&&O!==void 0?O:D;return P.cloneElement(z,{viewBox:ue(ue({},G),{},{x:G.left,y:G.top}),active:Z,label:U,payload:Z?B:[],coordinate:L,accessibilityLayer:I})}),Be(k,"renderBrush",function(O){var T=k.props,N=T.margin,I=T.data,z=k.state,F=z.offset,D=z.dataStartIndex,L=z.dataEndIndex,B=z.updateId;return P.cloneElement(O,{key:O.key||"_recharts-brush",onChange:up(k.handleBrushChange,O.props.onChange),data:I,x:Se(O.props.x)?O.props.x:F.left,y:Se(O.props.y)?O.props.y:F.top+F.height+F.brushBottom-(N.bottom||0),width:Se(O.props.width)?O.props.width:F.width,startIndex:D,endIndex:L,updateId:"brush-".concat(B)})}),Be(k,"renderReferenceElement",function(O,T,N){if(!O)return null;var I=k,z=I.clipPathId,F=k.state,D=F.xAxisMap,L=F.yAxisMap,B=F.offset,U=O.type.defaultProps||{},G=O.props,Z=G.xAxisId,Y=Z===void 0?U.xAxisId:Z,ee=G.yAxisId,R=ee===void 0?U.yAxisId:ee;return P.cloneElement(O,{key:O.key||"".concat(T,"-").concat(N),xAxis:D[Y],yAxis:L[R],viewBox:{x:B.left,y:B.top,width:B.width,height:B.height},clipPathId:z})}),Be(k,"renderActivePoints",function(O){var T=O.item,N=O.activePoint,I=O.basePoint,z=O.childIndex,F=O.isRange,D=[],L=T.props.key,B=T.item.type.defaultProps!==void 0?ue(ue({},T.item.type.defaultProps),T.item.props):T.item.props,U=B.activeDot,G=B.dataKey,Z=ue(ue({index:z,dataKey:G,cx:N.x,cy:N.y,r:4,fill:lA(T.item),strokeWidth:2,stroke:"#fff",payload:N.payload,value:N.value},Ue(U,!1)),Xp(U));return D.push(w.renderActiveDot(U,Z,"".concat(L,"-activePoint-").concat(z))),I?D.push(w.renderActiveDot(U,ue(ue({},Z),{},{cx:I.x,cy:I.y}),"".concat(L,"-basePoint-").concat(z))):F&&D.push(null),D}),Be(k,"renderGraphicChild",function(O,T,N){var I=k.filterFormatItem(O,T,N);if(!I)return null;var z=k.getTooltipEventType(),F=k.state,D=F.isTooltipActive,L=F.tooltipAxis,B=F.activeTooltipIndex,U=F.activeLabel,G=k.props.children,Z=pr(G,Cr),Y=I.props,ee=Y.points,R=Y.isRange,q=Y.baseLine,V=I.item.type.defaultProps!==void 0?ue(ue({},I.item.type.defaultProps),I.item.props):I.item.props,M=V.activeDot,re=V.hide,ce=V.activeBar,oe=V.activeShape,ae=!!(!re&&D&&Z&&(M||ce||oe)),pe={};z!=="axis"&&Z&&Z.props.trigger==="click"?pe={onClick:up(k.handleItemMouseEnter,O.props.onClick)}:z!=="axis"&&(pe={onMouseLeave:up(k.handleItemMouseLeave,O.props.onMouseLeave),onMouseEnter:up(k.handleItemMouseEnter,O.props.onMouseEnter)});var te=P.cloneElement(O,ue(ue({},I.props),pe));function xe(Ze){return typeof L.dataKey=="function"?L.dataKey(Ze.payload):null}if(ae)if(B>=0){var je,se;if(L.dataKey&&!L.allowDuplicatedCategory){var Qe=typeof L.dataKey=="function"?xe:"payload.".concat(L.dataKey.toString());je=r1(ee,Qe,U),se=R&&q&&r1(q,Qe,U)}else je=ee==null?void 0:ee[B],se=R&&q&&q[B];if(oe||ce){var ge=O.props.activeIndex!==void 0?O.props.activeIndex:B;return[P.cloneElement(O,ue(ue(ue({},I.props),pe),{},{activeIndex:ge})),null,null]}if(!nt(je))return[te].concat(zl(k.renderActivePoints({item:I,activePoint:je,basePoint:se,childIndex:B,isRange:R})))}else{var Ae,_e=(Ae=k.getItemByXY(k.state.activeCoordinate))!==null&&Ae!==void 0?Ae:{graphicalItem:te},Fe=_e.graphicalItem,et=Fe.item,Ce=et===void 0?O:et,ze=Fe.childIndex,Ke=ue(ue(ue({},I.props),pe),{},{activeIndex:ze});return[P.cloneElement(Ce,Ke),null,null]}return R?[te,null,null]:[te,null]}),Be(k,"renderCustomized",function(O,T,N){return P.cloneElement(O,ue(ue({key:"recharts-customized-".concat(N)},k.props),k.state))}),Be(k,"renderMap",{CartesianGrid:{handler:hp,once:!0},ReferenceArea:{handler:k.renderReferenceElement},ReferenceLine:{handler:hp},ReferenceDot:{handler:k.renderReferenceElement},XAxis:{handler:hp},YAxis:{handler:hp},Brush:{handler:k.renderBrush,once:!0},Bar:{handler:k.renderGraphicChild},Line:{handler:k.renderGraphicChild},Area:{handler:k.renderGraphicChild},Radar:{handler:k.renderGraphicChild},RadialBar:{handler:k.renderGraphicChild},Scatter:{handler:k.renderGraphicChild},Pie:{handler:k.renderGraphicChild},Funnel:{handler:k.renderGraphicChild},Tooltip:{handler:k.renderCursor,once:!0},PolarGrid:{handler:k.renderPolarGrid,once:!0},PolarAngleAxis:{handler:k.renderPolarAxis},PolarRadiusAxis:{handler:k.renderPolarAxis},Customized:{handler:k.renderCustomized}}),k.clipPathId="".concat((_=A.id)!==null&&_!==void 0?_:kd("recharts"),"-clip"),k.throttleTriggeredAfterMouseMove=W3(k.triggeredAfterMouseMove,(j=A.throttleDelay)!==null&&j!==void 0?j:1e3/60),k.state={},k}return tfe(w,y),Qde(w,[{key:"componentDidMount",value:function(){var _,j;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(_=this.props.margin.left)!==null&&_!==void 0?_:0,top:(j=this.props.margin.top)!==null&&j!==void 0?j:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var _=this.props,j=_.children,k=_.data,O=_.height,T=_.layout,N=pr(j,Cr);if(N){var I=N.props.defaultIndex;if(!(typeof I!="number"||I<0||I>this.state.tooltipTicks.length-1)){var z=this.state.tooltipTicks[I]&&this.state.tooltipTicks[I].value,F=SS(this.state,k,I,z),D=this.state.tooltipTicks[I].coordinate,L=(this.state.offset.top+O)/2,B=T==="horizontal",U=B?{x:D,y:L}:{y:D,x:L},G=this.state.formattedGraphicalItems.find(function(Y){var ee=Y.item;return ee.type.name==="Scatter"});G&&(U=ue(ue({},U),G.props.points[I].tooltipPosition),F=G.props.points[I].tooltipPayload);var Z={activeTooltipIndex:I,isTooltipActive:!0,activeLabel:z,activePayload:F,activeCoordinate:U};this.setState(Z),this.renderCursor(N),this.accessibilityManager.setIndex(I)}}}},{key:"getSnapshotBeforeUpdate",value:function(_,j){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==j.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==_.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==_.margin){var k,O;this.accessibilityManager.setDetails({offset:{left:(k=this.props.margin.left)!==null&&k!==void 0?k:0,top:(O=this.props.margin.top)!==null&&O!==void 0?O:0}})}return null}},{key:"componentDidUpdate",value:function(_){o1([pr(_.children,Cr)],[pr(this.props.children,Cr)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var _=pr(this.props.children,Cr);if(_&&typeof _.props.shared=="boolean"){var j=_.props.shared?"axis":"item";return l.indexOf(j)>=0?j:o}return o}},{key:"getMouseInfo",value:function(_){if(!this.container)return null;var j=this.container,k=j.getBoundingClientRect(),O=MJ(k),T={chartX:Math.round(_.pageX-O.left),chartY:Math.round(_.pageY-O.top)},N=k.width/j.offsetWidth||1,I=this.inRange(T.chartX,T.chartY,N);if(!I)return null;var z=this.state,F=z.xAxisMap,D=z.yAxisMap,L=this.getTooltipEventType(),B=QI(this.state,this.props.data,this.props.layout,I);if(L!=="axis"&&F&&D){var U=Mo(F).scale,G=Mo(D).scale,Z=U&&U.invert?U.invert(T.chartX):null,Y=G&&G.invert?G.invert(T.chartY):null;return ue(ue({},T),{},{xValue:Z,yValue:Y},B)}return B?ue(ue({},T),B):null}},{key:"inRange",value:function(_,j){var k=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,O=this.props.layout,T=_/k,N=j/k;if(O==="horizontal"||O==="vertical"){var I=this.state.offset,z=T>=I.left&&T<=I.left+I.width&&N>=I.top&&N<=I.top+I.height;return z?{x:T,y:N}:null}var F=this.state,D=F.angleAxisMap,L=F.radiusAxisMap;if(D&&L){var B=Mo(D);return o2({x:T,y:N},B)}return null}},{key:"parseEventsOfWrapper",value:function(){var _=this.props.children,j=this.getTooltipEventType(),k=pr(_,Cr),O={};k&&j==="axis"&&(k.props.trigger==="click"?O={onClick:this.handleClick}:O={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var T=Xp(this.props,this.handleOuterEvent);return ue(ue({},T),O)}},{key:"addListener",value:function(){ow.on(aw,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){ow.removeListener(aw,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(_,j,k){for(var O=this.state.formattedGraphicalItems,T=0,N=O.length;T<N;T++){var I=O[T];if(I.item===_||I.props.key===_.key||j===Gi(I.item.type)&&k===I.childIndex)return I}return null}},{key:"renderClipPath",value:function(){var _=this.clipPathId,j=this.state.offset,k=j.left,O=j.top,T=j.height,N=j.width;return W.createElement("defs",null,W.createElement("clipPath",{id:_},W.createElement("rect",{x:k,y:O,height:T,width:N})))}},{key:"getXScales",value:function(){var _=this.state.xAxisMap;return _?Object.entries(_).reduce(function(j,k){var O=GI(k,2),T=O[0],N=O[1];return ue(ue({},j),{},Be({},T,N.scale))},{}):null}},{key:"getYScales",value:function(){var _=this.state.yAxisMap;return _?Object.entries(_).reduce(function(j,k){var O=GI(k,2),T=O[0],N=O[1];return ue(ue({},j),{},Be({},T,N.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(_){var j;return(j=this.state.xAxisMap)===null||j===void 0||(j=j[_])===null||j===void 0?void 0:j.scale}},{key:"getYScaleByAxisId",value:function(_){var j;return(j=this.state.yAxisMap)===null||j===void 0||(j=j[_])===null||j===void 0?void 0:j.scale}},{key:"getItemByXY",value:function(_){var j=this.state,k=j.formattedGraphicalItems,O=j.activeItem;if(k&&k.length)for(var T=0,N=k.length;T<N;T++){var I=k[T],z=I.props,F=I.item,D=F.type.defaultProps!==void 0?ue(ue({},F.type.defaultProps),F.props):F.props,L=Gi(F.type);if(L==="Bar"){var B=(z.data||[]).find(function(Y){return rse(_,Y)});
336if(B)return{graphicalItem:I,payload:B}}else if(L==="RadialBar"){var U=(z.data||[]).find(function(Y){return o2(_,Y)});if(U)return{graphicalItem:I,payload:U}}else if(zm(I,O)||Um(I,O)||od(I,O)){var G=kle({graphicalItem:I,activeTooltipItem:O,itemData:D.data}),Z=D.activeIndex===void 0?G:D.activeIndex;return{graphicalItem:ue(ue({},I),{},{childIndex:Z}),payload:od(I,O)?D.data[G]:I.props.data[G]}}}return null}},{key:"render",value:function(){var _=this;if(!vC(this))return null;var j=this.props,k=j.children,O=j.className,T=j.width,N=j.height,I=j.style,z=j.compact,F=j.title,D=j.desc,L=YI(j,Hde),B=Ue(L,!1);if(z)return W.createElement(NI,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},W.createElement(s1,Xs({},B,{width:T,height:N,title:F,desc:D}),this.renderClipPath(),bC(k,this.renderMap)));if(this.props.accessibilityLayer){var U,G;B.tabIndex=(U=this.props.tabIndex)!==null&&U!==void 0?U:0,B.role=(G=this.props.role)!==null&&G!==void 0?G:"application",B.onKeyDown=function(Y){_.accessibilityManager.keyboardEvent(Y)},B.onFocus=function(){_.accessibilityManager.focus()}}var Z=this.parseEventsOfWrapper();return W.createElement(NI,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},W.createElement("div",Xs({className:Xe("recharts-wrapper",O),style:ue({position:"relative",cursor:"default",width:T,height:N},I)},Z,{ref:function(ee){_.container=ee}}),W.createElement(s1,Xs({},B,{width:T,height:N,title:F,desc:D,style:sfe}),this.renderClipPath(),bC(k,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(P.Component);Be(S,"displayName",n),Be(S,"defaultProps",ue({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},p)),Be(S,"getDerivedStateFromProps",function(y,w){var A=y.dataKey,_=y.data,j=y.children,k=y.width,O=y.height,T=y.layout,N=y.stackOffset,I=y.margin,z=w.dataStartIndex,F=w.dataEndIndex;if(w.updateId===void 0){var D=ZI(y);return ue(ue(ue({},D),{},{updateId:0},v(ue(ue({props:y},D),{},{updateId:0}),w)),{},{prevDataKey:A,prevData:_,prevWidth:k,prevHeight:O,prevLayout:T,prevStackOffset:N,prevMargin:I,prevChildren:j})}if(A!==w.prevDataKey||_!==w.prevData||k!==w.prevWidth||O!==w.prevHeight||T!==w.prevLayout||N!==w.prevStackOffset||!Zs(I,w.prevMargin)){var L=ZI(y),B={chartX:w.chartX,chartY:w.chartY,isTooltipActive:w.isTooltipActive},U=ue(ue({},QI(w,_,T)),{},{updateId:w.updateId+1}),G=ue(ue(ue({},L),B),U);return ue(ue(ue({},G),v(ue({props:y},G),w)),{},{prevDataKey:A,prevData:_,prevWidth:k,prevHeight:O,prevLayout:T,prevStackOffset:N,prevMargin:I,prevChildren:j})}if(!o1(j,w.prevChildren)){var Z,Y,ee,R,q=pr(j,Nl),V=q&&(Z=(Y=q.props)===null||Y===void 0?void 0:Y.startIndex)!==null&&Z!==void 0?Z:z,M=q&&(ee=(R=q.props)===null||R===void 0?void 0:R.endIndex)!==null&&ee!==void 0?ee:F,re=V!==z||M!==F,ce=!nt(_),oe=ce&&!re?w.updateId:w.updateId+1;return ue(ue({updateId:oe},v(ue(ue({props:y},w),{},{updateId:oe,dataStartIndex:V,dataEndIndex:M}),w)),{},{prevChildren:j,dataStartIndex:V,dataEndIndex:M})}return null}),Be(S,"renderActiveDot",function(y,w,A){var _;return P.isValidElement(y)?_=P.cloneElement(y,w):Ve(y)?_=y(w):_=W.createElement(cA,w),W.createElement(gt,{className:"recharts-active-dot",key:A},_)});var x=P.forwardRef(function(w,A){return W.createElement(S,Xs({},w,{ref:A}))});return x.displayName=S.displayName,x},uB=lB({chartName:"BarChart",GraphicalChild:na,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:Nd},{axisType:"yAxis",AxisComp:Rd}],formatAxisMap:jue}),vfe=lB({chartName:"PieChart",GraphicalChild:so,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:Bm},{axisType:"radiusAxis",AxisComp:Lm}],formatAxisMap:hie,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});const mp=["#111216","#68c587","#f2c94c","#e97878","#5b9bd5","#a98bc4","#9ad29a","#c0c2c6"];function e$({rows:e,emptyNote:t="Data is not currently available.",unit:n="%"}){const r=(e||[]).filter(i=>i&&i.rawValue!=null&&Number(i.rawValue)>0).map(i=>({name:i.name,value:Number(i.rawValue)}));return r.length?h.jsxs("div",{className:"donut-wrap",children:[h.jsx("div",{style:{position:"relative",height:175},children:h.jsx(D_,{width:"100%",height:"100%",children:h.jsxs(vfe,{children:[h.jsx(so,{data:r,dataKey:"value",nameKey:"name",innerRadius:48,outerRadius:78,paddingAngle:1,stroke:"#fff",children:r.map((i,o)=>h.jsx(_m,{fill:mp[o%mp.length]},o))}),h.jsx(Cr,{formatter:i=>`${i}${n}`})]})})}),h.jsx("div",{className:"donut-legend",children:r.map((i,o)=>h.jsxs("div",{className:"legend-item",children:[h.jsx("span",{className:"legend-dot",style:{background:mp[o%mp.length]}}),h.jsx("span",{style:{fontWeight:800},children:i.name}),h.jsxs("span",{style:{marginLeft:"auto",fontWeight:950},children:[i.value,n]})]},o))})]}):h.jsx("div",{className:"demo-note",children:t})}function yfe({rows:e}){const t=(e||[]).filter(n=>n&&n.rawValue!=null).map(n=>({name:n.name,value:Number(n.rawValue)}));return t.length?h.jsx(D_,{width:"100%",height:"100%",children:h.jsxs(uB,{data:t,margin:{left:-18,right:8,top:8,bottom:0},children:[h.jsx(xA,{strokeDasharray:"3 3",vertical:!1,stroke:"#eee"}),h.jsx(Nd,{dataKey:"name",tick:{fontSize:11},interval:0,angle:-30,textAnchor:"end",height:50}),h.jsx(Rd,{tick:{fontSize:11}}),h.jsx(Cr,{}),h.jsx(na,{dataKey:"value",radius:[4,4,0,0],fill:"#111216"})]})}):h.jsx("div",{className:"demo-note",children:"Age distribution is not currently available."})}function bfe({rows:e}){const t=(e||[]).filter(n=>n&&n.rawValue!=null).map(n=>({name:n.name,value:Number(n.rawValue)}));return t.length?h.jsx(D_,{width:"100%",height:"100%",children:h.jsxs(uB,{data:t,margin:{left:-18,right:8,top:8,bottom:0},children:[h.jsx(xA,{strokeDasharray:"3 3",vertical:!1,stroke:"#eee"}),h.jsx(Nd,{dataKey:"name",tick:{fontSize:9},interval:0,angle:-40,textAnchor:"end",height:64}),h.jsx(Rd,{tick:{fontSize:10}}),h.jsx(Cr,{}),h.jsx(na,{dataKey:"value",radius:[3,3,0,0],fill:"#f2c94c"})]})}):h.jsx("div",{className:"demo-note",children:"Income distribution is not currently available."})}function gp({rows:e}){const t=(e||[]).filter(n=>n&&n.result!=null);return t.length?h.jsx("div",{className:"demo-stats",children:t.map((n,r)=>h.jsxs("div",{className:"demo-stat",children:[h.jsx("span",{className:"v",children:n.result}),h.jsx("span",{className:"l",children:n.name})]},r))}):h.jsx("div",{className:"demo-note",children:"Data is not currently available for this area."})}function t$({rows:e}){const t=(e||[]).filter(r=>r&&r.rawValue!=null);if(!t.length)return h.jsx("div",{className:"demo-note",children:"Data is not currently available for this area."});const n=Math.max(...t.map(r=>Number(r.rawValue)||0),1);return h.jsx("div",{className:"demo-bars",children:t.map((r,i)=>h.jsxs("div",{className:"demo-bar-row",children:[h.jsx("span",{className:"lab",children:r.name}),h.jsx("div",{className:"track",children:h.jsx("div",{className:"fill",style:{width:`${Math.min(100,(Number(r.rawValue)||0)/n*100)}%`}})}),h.jsx("span",{className:"pct",children:r.result})]},i))})}function n$({rows:e}){const t=(e||[]).filter(n=>n&&n.rawValue!=null);return t.length?h.jsx("ol",{className:"demo-list",children:t.map((n,r)=>h.jsxs("li",{children:[h.jsx("span",{children:n.name}),h.jsx("b",{children:n.result})]},r))}):h.jsx("div",{className:"demo-note",children:"Not currently available."})}function xfe({rows:e}){const t=(e||[]).filter(n=>n&&n.rawValue!=null);return t.length?h.jsx("div",{className:"diversity",children:t.map((n,r)=>h.jsxs("div",{className:"diversity-card",children:[h.jsx("div",{className:"sc",children:n.result}),h.jsx("div",{className:"lab",children:n.name}),h.jsx("div",{className:"track",style:{marginTop:12},children:h.jsx("div",{className:"fill",style:{width:`${(Number(n.rawValue)||0)/10*100}%`,background:"var(--ink)"}})}),h.jsx("div",{style:{marginTop:8,fontSize:12,color:"var(--muted)"},children:n.detail})]},r))}):h.jsx("div",{className:"demo-note",children:"Diversity scores are not yet available."})}function di({title:e,sub:t,children:n,full:r=!1}){return h.jsxs("article",{className:`demo-card${r?" full":""}`,children:[h.jsx("h3",{children:e}),h.jsx("p",{className:"sub",children:t}),n]})}function cB({data:e,area:t,active:n}){var S,x,y;const r=e||{},i=w=>{var A;return((A=r[w])==null?void 0:A.rows)||[]},o=Object.values(r).some(w=>{var A;return(A=w==null?void 0:w.rows)==null?void 0:A.length}),a=((S=r.demo_population)==null?void 0:S.geoScope)||null,l=/county-level/i.test(a||""),c=((x=r.demo_population)==null?void 0:x.sourceLabel)||"U.S. Census Bureau · ACS 5-year",d=(y=r.demo_population)==null?void 0:y.sourceUrl,f=(()=>{var w,A;return(w=r.demo_population)!=null&&w.sourceYear?`Data as of ${r.demo_population.sourceYear}`:(A=r.demo_population)!=null&&A.retrievalDate?`Updated ${new Date(r.demo_population.retrievalDate).toLocaleDateString("en-US",{month:"short",year:"numeric"})}`:""})(),p=i("demo_languages"),g=p.filter(w=>w.metricKey!=="englishLessThanVeryWell"),v=p.find(w=>w.metricKey==="englishLessThanVeryWell");return h.jsxs("section",{className:`section${n?" active":""}`,id:"demographics",children:[h.jsxs("div",{className:"section-head",children:[h.jsxs("div",{children:[h.jsx("h2",{children:"Demographics"}),l&&h.jsx("span",{className:"geo-badge",children:"County-level data"})]}),h.jsxs("div",{className:"source",children:[f&&h.jsx("span",{style:{display:"block",marginBottom:4},children:f}),vl(d)?h.jsx("a",{href:vl(d),target:"_blank",rel:"noreferrer",children:c}):c]})]}),o?h.jsxs("div",{className:"demo-grid",children:[h.jsxs("div",{className:"demo-column",children:[h.jsx(di,{title:"Population",sub:l?"U.S. Census ACS · County-level estimate (ZIP not a ZCTA)":t!=null&&t.zipCode?`U.S. Census ACS · ZCTA ${t.zipCode}`:`Aggregated from researched ZIP profiles · ${(t==null?void 0:t.boundaryType)||"Area"}`,children:h.jsx(gp,{rows:i("demo_population")})}),h.jsxs(di,{title:"Income",sub:"Household earnings & distribution",children:[h.jsx(gp,{rows:i("demo_income")}),h.jsx("div",{className:"chart-box",style:{marginTop:14},children:h.jsx(bfe,{rows:i("demo_income_dist")})})]}),h.jsx(di,{title:"Housing",sub:"Tenure, value, and vacancy",children:h.jsx(gp,{rows:i("demo_housing")})}),h.jsx(di,{title:"Families",sub:"Household & family composition",children:h.jsx(t$,{rows:i("demo_fam
336ilies")})}),h.jsxs(di,{title:"Employment",sub:"Workforce, industries, and occupations",children:[h.jsx(gp,{rows:i("demo_employment")}),h.jsx("div",{className:"demo-list-head",children:"Top industries"}),h.jsx(n$,{rows:i("demo_industries")}),h.jsx("div",{className:"demo-list-head",children:"Top occupations"}),h.jsx(n$,{rows:i("demo_occupations")})]})]}),h.jsxs("div",{className:"demo-column",children:[h.jsx(di,{title:"Race & Ethnicity",sub:"Share of total population (non-overlapping)",children:h.jsx(e$,{rows:i("demo_race"),emptyNote:"Race & ethnicity data is not currently available."})}),h.jsxs(di,{title:"Languages Spoken",sub:"Population 5 years and over",children:[h.jsx(e$,{rows:g,emptyNote:"Language data is not currently available."}),h.jsxs("div",{className:"demo-note",children:["Speak English less than “very well”: ",(v==null?void 0:v.result)||"—"]})]}),h.jsx(di,{title:"Age Distribution",sub:"Residents by age band",children:h.jsx("div",{className:"chart-box",children:h.jsx(yfe,{rows:i("demo_age")})})}),h.jsx(di,{title:"Education",sub:"Highest attainment, adults 25+",children:h.jsx(t$,{rows:i("demo_education")})})]})]}):h.jsx("div",{className:"demo-card full",children:"Detailed demographics are being enriched for this area. Please check back shortly."}),o&&h.jsx("div",{className:"demo-diversity-row",children:h.jsx(di,{title:"Diversity Score",sub:"Entropy-based diversity (0–10). Descriptive only — not part of the area score.",children:h.jsx(xfe,{rows:i("demo_diversity")})})}),h.jsx("div",{className:"demo-note",style:{marginTop:16},children:"Race, ethnicity, and language are descriptive census attributes and are never rated or included in the area score."})]})}var wfe=Jh[" useId ".trim().toString()]||(()=>{}),Sfe=0;function lw(e){const[t,n]=P.useState(wfe());return hl(()=>{n(r=>r??String(Sfe++))},[e]),e||(t?`radix-${t}`:"")}var uw="focusScope.autoFocusOnMount",cw="focusScope.autoFocusOnUnmount",r$={bubbles:!1,cancelable:!0},_fe="FocusScope",dB=P.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...a}=e,[l,c]=P.useState(null),d=Xi(i),f=Xi(o),p=P.useRef(null),g=yr(t,x=>c(x)),v=P.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;P.useEffect(()=>{if(r){let x=function(_){if(v.paused||!l)return;const j=_.target;l.contains(j)?p.current=j:Ro(p.current,{select:!0})},y=function(_){if(v.paused||!l)return;const j=_.relatedTarget;j!==null&&(l.contains(j)||Ro(p.current,{select:!0}))},w=function(_){if(document.activeElement===document.body)for(const k of _)k.removedNodes.length>0&&Ro(l)};document.addEventListener("focusin",x),document.addEventListener("focusout",y);const A=new MutationObserver(w);return l&&A.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",x),document.removeEventListener("focusout",y),A.disconnect()}}},[r,l,v.paused]),P.useEffect(()=>{if(l){o$.add(v);const x=document.activeElement;if(!l.contains(x)){const w=new CustomEvent(uw,r$);l.addEventListener(uw,d),l.dispatchEvent(w),w.defaultPrevented||(Afe(jfe(fB(l)),{select:!0}),document.activeElement===x&&Ro(l))}return()=>{l.removeEventListener(uw,d),setTimeout(()=>{const w=new CustomEvent(cw,r$);l.addEventListener(cw,f),l.dispatchEvent(w),w.defaultPrevented||Ro(x??document.body,{select:!0}),l.removeEventListener(cw,f),o$.remove(v)},0)}}},[l,d,f,v]);const S=P.useCallback(x=>{if(!n&&!r||v.paused)return;const y=x.key==="Tab"&&!x.altKey&&!x.ctrlKey&&!x.metaKey,w=document.activeElement;if(y&&w){const A=x.currentTarget,[_,j]=Efe(A);_&&j?!x.shiftKey&&w===j?(x.preventDefault(),n&&Ro(_,{select:!0})):x.shiftKey&&w===_&&(x.preventDefault(),n&&Ro(j,{select:!0})):w===A&&x.preventDefault()}},[n,r,v.paused]);return h.jsx(Dn.div,{tabIndex:-1,...a,ref:g,onKeyDown:S})});dB.displayName=_fe;function Afe(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Ro(r,{select:t}),document.activeElement!==n)return}function Efe(e){const t=fB(e),n=i$(t,e),r=i$(t.reverse(),e);return[n,r]}function fB(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function i$(e,t){for(const n of e)if(!kfe(n,{upTo:t}))return n}function kfe(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Ofe(e){return e instanceof HTMLInputElement&&"select"in e}function Ro(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Ofe(e)&&t&&e.select()}}var o$=Pfe();function Pfe(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=a$(e,t),e.unshift(t)},remove(t){var n;e=a$(e,t),(n=e[0])==null||n.resume()}}}function a$(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function jfe(e){return e.filter(t=>t.tagName!=="A")}var dw=0;function Cfe(){P.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??s$()),document.body.insertAdjacentElement("beforeend",e[1]??s$()),dw++,()=>{dw===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),dw--}},[])}function s$(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.
vendor: 5,687 bytes, lines 336-351
336style.position="fixed",e.style.pointerEvents="none",e}var vi=function(){return vi=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},vi.apply(this,arguments)};function pB(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function Tfe(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}var Dp="right-scroll-bar-position",Lp="width-before-scroll-bar",Nfe="with-scroll-bars-hidden",Rfe="--removed-body-scroll-bar-size";function fw(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Ife(e,t){var n=P.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=t,n.facade}var $fe=typeof window<"u"?P.useLayoutEffect:P.useEffect,l$=new WeakMap;function Mfe(e,t){var n=Ife(null,function(r){return e.forEach(function(i){return fw(i,r)})});return $fe(function(){var r=l$.get(n);if(r){var i=new Set(r),o=new Set(e),a=n.current;i.forEach(function(l){o.has(l)||fw(l,null)}),o.forEach(function(l){i.has(l)||fw(l,a)})}l$.set(n,e)},[e]),n}function Dfe(e){return e}function Lfe(e,t){t===void 0&&(t=Dfe);var n=[],r=!1,i={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(o){var a=t(o,r);return n.push(a),function(){n=n.filter(function(l){return l!==a})}},assignSyncMedium:function(o){for(r=!0;n.length;){var a=n;n=[],a.forEach(o)}n={push:function(l){return o(l)},filter:function(){return n}}},assignMedium:function(o){r=!0;var a=[];if(n.length){var l=n;n=[],l.forEach(o),a=n}var c=function(){var f=a;a=[],f.forEach(o)},d=function(){return Promise.resolve().then(c)};d(),n={push:function(f){a.push(f),d()},filter:function(f){return a=a.filter(f),n}}}};return i}function Ffe(e){e===void 0&&(e={});var t=Lfe(null);return t.options=vi({async:!0,ssr:!1},e),t}var hB=function(e){var t=e.sideCar,n=pB(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return P.createElement(r,vi({},n))};hB.isSideCarExport=!0;function Bfe(e,t){return e.useMedium(t),hB}var mB=Ffe(),pw=function(){},Ym=P.forwardRef(function(e,t){var n=P.useRef(null),r=P.useState({onScrollCapture:pw,onWheelCapture:pw,onTouchMoveCapture:pw}),i=r[0],o=r[1],a=e.forwardProps,l=e.children,c=e.className,d=e.removeScrollBar,f=e.enabled,p=e.shards,g=e.sideCar,v=e.noRelative,S=e.noIsolation,x=e.inert,y=e.allowPinchZoom,w=e.as,A=w===void 0?"div":w,_=e.gapMode,j=pB(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=g,O=Mfe([n,t]),T=vi(vi({},j),i);return P.createElement(P.Fragment,null,f&&P.createElement(k,{sideCar:mB,removeScrollBar:d,shards:p,noRelative:v,noIsolation:S,inert:x,setCallbacks:o,allowPinchZoom:!!y,lockRef:n,gapMode:_}),a?P.cloneElement(P.Children.only(l),vi(vi({},T),{ref:O})):P.createElement(A,vi({},T,{className:c,ref:O}),l))});Ym.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ym.classNames={fullWidth:Lp,zeroRight:Dp};var zfe=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Ufe(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=zfe();return t&&e.setAttribute("nonce",t),e}function qfe(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Hfe(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Wfe=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Ufe())&&(qfe(t,n),Hfe(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Vfe=function(){var e=Wfe();return function(t,n){P.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},gB=function(){var e=Vfe(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},Kfe={left:0,top:0,right:0,gap:0},hw=function(e){return parseInt(e||"",10)||0},Gfe=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[hw(n),hw(r),hw(i)]},Yfe=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Kfe;var t=Gfe(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Xfe=gB(),nl="data-scroll-locked",Qfe=function(e,t,n,r){var i=e.left,o=e.top,a=e.right,l=e.gap;return n===void 0&&(n="margin"),`
337  .`.concat(Nfe,` {
338   overflow: hidden `).concat(r,`;
339   padding-right: `).concat(l,"px ").concat(r,`;
340  }
341  body[`).concat(nl,`] {
342    overflow: hidden `).concat(r,`;
343    overscroll-behavior: contain;
344    `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
345    padding-left: `.concat(i,`px;
346    padding-top: `).concat(o,`px;
347    padding-right: `).concat(a,`px;
348    margin-left:0;
349    margin-top:0;
350    margin-right: `).concat(l,"px ").concat(r,`;
351    `),n==="padding"&&"padding-right: ".concat(l,"px ").concat(r,";
351")].filter(Boolean).join(""),`
352  }
353  
354  .`).concat(Dp,` {
355    right: `).concat(l,"px ").concat(r,`;
356  }
357  
358  .`).concat(Lp,` {
359    margin-right: `).concat(l,"px ").concat(r,`;
360  }
361  
362  .`).concat(Dp," .").concat(Dp,` {
363    right: 0 `).concat(r,`;
364  }
365  
366  .`).concat(Lp," .").concat(Lp,` {
367    margin-right: 0 `).concat(r,`;
368  }
369  
370  body[`).concat(nl,`] {
371    `).concat(Rfe,": ").concat(l,`px;
372  }
373`)},u$=function(){var e=parseInt(document.body.getAttribute(nl)||"0",10);return isFinite(e)?e:0},Zfe=function(){P.useEffect(function(){return document.body.setAttribute(nl,(u$()+1).toString()),function(){var e=u$()-1;e<=0?document.body.removeAttribute(nl):document.body.setAttribute(nl,e.toString())}},[])},Jfe=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r;Zfe();var o=P.useMemo(function(){return Yfe(i)},[i]);return P.createElement(Xfe,{styles:Qfe(o,!t,i,n?"":"!important")})},_S=!1;if(typeof window<"u")try{var vp=Object.defineProperty({},"passive",{get:function(){return _S=!0,!0}});window.addEventListener("test",vp,vp),window.removeEventListener("test",vp,vp)}catch{_S=!1}var Fs=_S?{passive:!1}:!1,epe=function(e){return e.tagName==="TEXTAREA"},vB=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!epe(e)&&n[t]==="visible")},tpe=function(e){return vB(e,"overflowY")},npe=function(e){return vB(e,"overflowX")},c$=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=yB(e,r);if(i){var o=bB(e,r),a=o[1],l=o[2];if(a>l)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},rpe=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},ipe=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},yB=function(e,t){return e==="v"?tpe(t):npe(t)},bB=function(e,t){return e==="v"?rpe(t):ipe(t)},ope=function(e,t){return e==="h"&&t==="rtl"?-1:1},ape=function(e,t,n,r,i){var o=ope(e,window.getComputedStyle(t).direction),a=o*r,l=n.target,c=t.contains(l),d=!1,f=a>0,p=0,g=0;do{if(!l)break;var v=bB(e,l),S=v[0],x=v[1],y=v[2],w=x-y-o*S;(S||w)&&yB(e,l)&&(p+=w,g+=S);var A=l.parentNode;l=A&&A.nodeType===Node.DOCUMENT_FRAGMENT_NODE?A.host:A}while(!c&&l!==document.body||c&&(t.contains(l)||t===l));return(f&&Math.abs(p)<1||!f&&Math.abs(g)<1)&&(d=!0),d},yp=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},d$=function(e){return[e.deltaX,e.deltaY]},f$=function(e){return e&&"current"in e?e.current:e},spe=function(e,t){return e[0]===t[0]&&e[1]===t[1]},lpe=function(e){return`
374  .block-interactivity-`.concat(e,` {pointer-events: none;}
375  .allow-interactivity-`).concat(e,` {pointer-events: all;}
376`)},upe=0,Bs=[];function cpe(e){var t=P.useRef([]),n=P.useRef([0,0]),r=P.useRef(),i=P.useState(upe++)[0],o=P.useState(gB)[0],a=P.useRef(e);P.useEffect(function(){a.current=e},[e]),P.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var x=Tfe([e.lockRef.current],(e.shards||[]).map(f$),!0).filter(Boolean);return x.forEach(function(y){return y.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),x.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var l=P.useCallback(function(x,y){if("touches"in x&&x.touches.length===2||x.type==="wheel"&&x.ctrlKey)return!a.current.allowPinchZoom;var w=yp(x),A=n.current,_="deltaX"in x?x.deltaX:A[0]-w[0],j="deltaY"in x?x.deltaY:A[1]-w[1],k,O=x.target,T=Math.abs(_)>Math.abs(j)?"h":"v";if("touches"in x&&T==="h"&&O.type==="range")return!1;var N=window.getSelection(),I=N&&N.anchorNode,z=I?I===O||I.contains(O):!1;if(z)return!1;var F=c$(T,O);if(!F)return!0;if(F?k=T:(k=T==="v"?"h":"v",F=c$(T,O)),!F)return!1;if(!r.current&&"changedTouches"in x&&(_||j)&&(r.current=k),!k)return!0;var D=r.current||k;return ape(D,y,x,D==="h"?_:j)},[]),c=P.useCallback(function(x){var y=x;if(!(!Bs.length||Bs[Bs.length-1]!==o)){var w="deltaY"in y?d$(y):yp(y),A=t.current.filter(function(k){return k.name===y.type&&(k.target===y.target||y.target===k.shadowParent)&&spe(k.delta,w)})[0];if(A&&A.should){y.cancelable&&y.preventDefault();return}
vendor: 10,451 bytes, lines 376-380
376if(!A){var _=(a.current.shards||[]).map(f$).filter(Boolean).filter(function(k){return k.contains(y.target)}),j=_.length>0?l(y,_[0]):!a.current.noIsolation;j&&y.cancelable&&y.preventDefault()}}},[]),d=P.useCallback(function(x,y,w,A){var _={name:x,delta:y,target:w,should:A,shadowParent:dpe(w)};t.current.push(_),setTimeout(function(){t.current=t.current.filter(function(j){return j!==_})},1)},[]),f=P.useCallback(function(x){n.current=yp(x),r.current=void 0},[]),p=P.useCallback(function(x){d(x.type,d$(x),x.target,l(x,e.lockRef.current))},[]),g=P.useCallback(function(x){d(x.type,yp(x),x.target,l(x,e.lockRef.current))},[]);P.useEffect(function(){return Bs.push(o),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:g}),document.addEventListener("wheel",c,Fs),document.addEventListener("touchmove",c,Fs),document.addEventListener("touchstart",f,Fs),function(){Bs=Bs.filter(function(x){return x!==o}),document.removeEventListener("wheel",c,Fs),document.removeEventListener("touchmove",c,Fs),document.removeEventListener("touchstart",f,Fs)}},[]);var v=e.removeScrollBar,S=e.inert;return P.createElement(P.Fragment,null,S?P.createElement(o,{styles:lpe(i)}):null,v?P.createElement(Jfe,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function dpe(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const fpe=Bfe(mB,cpe);var xB=P.forwardRef(function(e,t){return P.createElement(Ym,vi({},e,{ref:t,sideCar:fpe}))});xB.classNames=Ym.classNames;var ppe=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},zs=new WeakMap,bp=new WeakMap,xp={},mw=0,wB=function(e){return e&&(e.host||wB(e.parentNode))},hpe=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=wB(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},mpe=function(e,t,n,r){var i=hpe(t,Array.isArray(e)?e:[e]);xp[n]||(xp[n]=new WeakMap);var o=xp[n],a=[],l=new Set,c=new Set(i),d=function(p){!p||l.has(p)||(l.add(p),d(p.parentNode))};i.forEach(d);var f=function(p){!p||c.has(p)||Array.prototype.forEach.call(p.children,function(g){if(l.has(g))f(g);else try{var v=g.getAttribute(r),S=v!==null&&v!=="false",x=(zs.get(g)||0)+1,y=(o.get(g)||0)+1;zs.set(g,x),o.set(g,y),a.push(g),x===1&&S&&bp.set(g,!0),y===1&&g.setAttribute(n,"true"),S||g.setAttribute(r,"true")}catch(w){console.error("aria-hidden: cannot operate on ",g,w)}})};return f(t),l.clear(),mw++,function(){a.forEach(function(p){var g=zs.get(p)-1,v=o.get(p)-1;zs.set(p,g),o.set(p,v),g||(bp.has(p)||p.removeAttribute(r),bp.delete(p)),v||p.removeAttribute(n)}),mw--,mw||(zs=new WeakMap,zs=new WeakMap,bp=new WeakMap,xp={})}},gpe=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=ppe(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live], script"))),mpe(r,i,n,"aria-hidden")):function(){return null}};function vpe(e){const t=ype(e),n=P.forwardRef((r,i)=>{const{children:o,...a}=r,l=P.Children.toArray(o),c=l.find(xpe);if(c){const d=c.props.children,f=l.map(p=>p===c?P.Children.count(d)>1?P.Children.only(null):P.isValidElement(d)?d.props.children:null:p);return h.jsx(t,{...a,ref:i,children:P.isValidElement(d)?P.cloneElement(d,void 0,f):null})}return h.jsx(t,{...a,ref:i,children:o})});return n.displayName=`${e}.Slot`,n}function ype(e){const t=P.forwardRef((n,r)=>{const{children:i,...o}=n;if(P.isValidElement(i)){const a=Spe(i),l=wpe(o,i.props);return i.type!==P.Fragment&&(l.ref=r?gd(r,a):a),P.cloneElement(i,l)}return P.Children.count(i)>1?P.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var bpe=Symbol("radix.slottable");function xpe(e){return P.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===bpe}function wpe(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...l)=>{const c=o(...l);return i(...l),c}:i&&(n[r]=i):r==="style"?n[r]={...i,...o}:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}function Spe(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Xm="Dialog",[SB,_B]=em(Xm),[_pe,ii]=SB(Xm),AB=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:o,modal:a=!0}=e,l=P.useRef(null),c=P.useRef(null),[d,f]=NM({prop:r,defaultProp:i??!1,onChange:o,caller:Xm});return h.jsx(_pe,{scope:t,triggerRef:l,contentRef:c,contentId:lw(),titleId:lw(),descriptionId:lw(),open:d,onOpenChange:f,onOpenToggle:P.useCallback(()=>f(p=>!p),[f]),modal:a,children:n})};AB.displayName=Xm;var EB="DialogTrigger",kB=P.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=ii(EB,n),o=yr(t,i.triggerRef);return h.jsx(Dn.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":_A(i.open),...r,ref:o,onClick:an(e.onClick,i.onOpenToggle)})});kB.displayName=EB;var wA="DialogPortal",[Ape,OB]=SB(wA,{forceMount:void 0}),PB=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:i}=e,o=ii(wA,t);return h.jsx(Ape,{scope:t,forceMount:n,children:P.Children.map(r,a=>h.jsx(vd,{present:n||o.open,children:h.jsx(LS,{asChild:!0,container:i,children:a})}))})};PB.displayName=wA;var Kh="DialogOverlay",jB=P.forwardRef((e,t)=>{const n=OB(Kh,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=ii(Kh,e.__scopeDialog);return o.modal?h.jsx(vd,{present:r||o.open,children:h.jsx(kpe,{...i,ref:t})}):null});jB.displayName=Kh;var Epe=vpe("DialogOverlay.RemoveScroll"),kpe=P.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=ii(Kh,n);return h.jsx(xB,{as:Epe,allowPinchZoom:!0,shards:[i.contentRef],children:h.jsx(Dn.div,{"data-state":_A(i.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Xa="DialogContent",CB=P.forwardRef((e,t)=>{const n=OB(Xa,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=ii(Xa,e.__scopeDialog);return h.jsx(vd,{present:r||o.open,children:o.modal?h.jsx(Ope,{...i,ref:t}):h.jsx(Ppe,{...i,ref:t})})});CB.displayName=Xa;var Ope=P.forwardRef((e,t)=>{const n=ii(Xa,e.__scopeDialog),r=P.useRef(null),i=yr(t,n.contentRef,r);return P.useEffect(()=>{const o=r.current;if(o)return gpe(o)},[]),h.jsx(TB,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:an(e.onCloseAutoFocus,o=>{var a;o.preventDefault(),(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:an(e.onPointerDownOutside,o=>{const a=o.detail.originalEvent,l=a.button===0&&a.ctrlKey===!0;(a.button===2||l)&&o.preventDefault()}),onFocusOutside:an(e.onFocusOutside,o=>o.preventDefault())})}),Ppe=P.forwardRef((e,t)=>{const n=ii(Xa,e.__scopeDialog),r=P.useRef(!1),i=P.useRef(!1);return h.jsx(TB,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var a,l;(a=e.onCloseAutoFocus)==null||a.call(e,o),o.defaultPrevented||(r.current||(l=n.triggerRef.current)==null||l.focus(),o.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:o=>{var c,d;(c=e.onInteractOutside)==null||c.call(e,o),o.defaultPrevented||(r.current=!0,o.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const a=o.target;((d=n.triggerRef.current)==null?void 0:d.contains(a))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&i.current&&o.preventDefault()}})}),TB=P.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:o,...a}=e,l=ii(Xa,n),c=P.useRef(null),d=yr(t,c);return Cfe(),h.jsxs(h.Fragment,{children:[h.jsx(dB,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:o,children:h.jsx(DS,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":_A(l.open),...a,ref:d,onDismiss:()=>l.onOpenChange(!1)})}),h.jsxs(h.Fragment,{children:[h.jsx(Cpe,{titleId:l.titleId}),h.jsx(Npe,{contentRef:c,descriptionId:l.descriptionId})]})]})}),SA="DialogTitle",NB=P.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=ii(SA,n);return h.jsx(Dn.h2,{id:i.titleId,...r,ref:t})});NB.displayName=SA;var RB="DialogDescription",IB=P.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=ii(RB,n);return h.jsx(Dn.p,{id:i.descriptionId,...r,ref:t})});IB.displayName=RB;var $B="DialogClose",MB=P.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=ii($B,n);return h.jsx(Dn.button,{type:"button",...r,ref:t,onClick:an(e.onClick,()=>i.onOpenChange(!1))})});MB.displayName=$B;function _A(e){return e?"open":"closed"}var DB="DialogTitleWarning",[jpe,LB]=SU(DB,{contentName:Xa,titleName:SA,docsSlug:"dialog"}),Cpe=({titleId:e})=>{const t=LB(DB),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
377
378If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
379
380For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return P.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Tpe="DialogDescriptionWarning",Npe=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${LB(Tpe).contentName}}.`;return P.useEffect(()=>{var o;const i=(o=e.current)==null?void 0:o.getAttribute("aria-describedby");t&&i&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},FB=AB,Rpe=kB,BB=PB,AA=jB,EA=CB,kA=NB,OA=IB,PA=MB;const tu=FB,Ipe=BB,zB=P.forwardRef(({className:e="",...t},n)=>h.jsx(AA,{ref:n,className:vt("fixed inset-0 z-50 bg-black/80  data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));zB.displayName=AA.displayName;const os=P.forwardRef(({className:e="",children:t,...n},r)=>h.jsxs(Ipe,{children:[h.jsx(zB,{}),h.jsxs(EA,{ref:r,className:vt("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rou
380nded-lg",e),...n,children:[t,h.jsxs(PA,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[h.jsx(HS,{className:"h-4 w-4"}),h.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));os.displayName=EA.displayName;const as=({className:e="",...t})=>h.jsx("div",{className:vt("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});as.displayName="DialogHeader";const Qm=({className:e="",...t})=>h.jsx("div",{className:vt("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Qm.displayName="DialogFooter";const ss=P.forwardRef(({className:e="",...t},n)=>h.jsx(kA,{ref:n,className:vt("text-lg font-semibold leading-none tracking-tight",e),...t}));ss.displayName=kA.displayName;const ls=P.forwardRef(({className:e="",...t},n)=>h.jsx(OA,{ref:n,className:vt("text-sm text-muted-foreground",e),...t}));ls.displayName=OA.displayName;const wp=1200,gw=1200,p$=(e,t,n)=>Math.max(t,Math.min(n,e)),pc=e=>String(e??"").replace(/\s+/g," ").trim(),Us=(e,t,n,r,i,o)=>{const a=Math.min(o,r/2,i/2);e.beginPath(),e.moveTo(t+a,n),e.arcTo(t+r,n,t+r,n+i,a),e.arcTo(t+r,n+i,t,n+i,a),e.arcTo(t,n+i,t,n,a),e.arcTo(t,n,t+r,n,a),e.closePath()},vw=(e,t,n,r,i=26,o=800)=>{let a=r;for(;a>i;){if(e.font=`${o} ${a}px Inter, Arial, sans-serif`,e.measureText(t).width<=n)return a;a-=2}return i},$pe=(e,t,n,r=6)=>{const i=pc(t).split(" ").filter(Boolean);if(!i.length)return[];const o=[];let a="";for(const c of i){const d=a?`${a} ${c}`:c;if(e.measureText(d).width<=n){a=d;continue}if(a&&o.push(a),a=c,o.length>=r)break}if(o.length<r&&a&&o.push(a),o.join(" ").split(" ").length<i.length&&o.length){let c=o[o.length-1];for(;c.length>1&&e.measureText(`${c}…`).width>n;)c=c.slice(0,-1);o[o.length-1]=`${c.replace(/[.,;:!?-]+$/,"")}…`}return o.slice(0,r)},h$=[[235,250,239],[232,244,255],[255,247,222],[244,238,255]],Mpe=(e,t,n,r,i)=>{t.forEach((o,a)=>e.fillText(o,n,r+a*i))};function Dpe(e,t){return`${`${(e==null?void 0:e.city)||(e==null?void 0:e.name)||"area"}-${(t==null?void 0:t.zipCode)||(e==null?void 0:e.zipCode)||""}-${(t==null?void 0:t.title)||"review"}`.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,90)||"ratemyarea-review"}.png`}async function Lpe({review:e,area:t,labels:n={}}){if(typeof document>"u")throw new Error("Image generation requires a browser");const r=document.createElement("canvas");r.width=wp,r.height=gw;const i=r.getContext("2d");if(!i)throw new Error("Canvas is not supported in this browser");const o=[(t==null?void 0:t.city)||(t==null?void 0:t.name),t==null?void 0:t.state,(e==null?void 0:e.zipCode)||(t==null?void 0:t.zipCode)].filter(Boolean).join(" ").toUpperCase(),a=Number(e==null?void 0:e.overallScore),l=Number.isFinite(a)?p$(a*2,0,10).toFixed(1):"—",c=pc((t==null?void 0:t.name)||(t==null?void 0:t.city))||"Rate My Area",d=pc(e==null?void 0:e.title)||"Area review",f=pc(e==null?void 0:e.body)||"See the full review on RateMyArea.com",p=(Array.isArray(e==null?void 0:e.categoryRatings)?e.categoryRatings:[]).map(y=>({label:n[y==null?void 0:y.category]||pc(y==null?void 0:y.category),score:Number(y==null?void 0:y.score)})).filter(y=>y.label&&Number.isFinite(y.score)).slice(0,4);i.fillStyle="#f7f8fa",i.fillRect(0,0,wp,gw),i.shadowColor="rgba(15, 23, 42, 0.10)",i.shadowBlur=28,i.shadowOffsetY=12,Us(i,28,28,wp-56,gw-56,34),i.fillStyle="#ffffff",i.fill(),i.shadowColor="transparent",Us(i,78,70,150,100,9),i.fillStyle="#080b10",i.fill(),i.fillStyle="#ffffff",i.font="900 54px Inter, Arial, sans-serif",i.fillText("RMA",98,140),i.fillStyle="#5d6678",i.font="600 22px Inter, Arial, sans-serif",i.fillText("REAL DATA. REAL PEOPLE.",260,108),i.fillText("A BRIGHTER MOVE.",260,142),i.textAlign="right",i.font="600 24px Inter, Arial, sans-serif",i.fillText(o||"RATE MY AREA",wp-78,112),i.textAlign="left";const g=vw(i,c,650,68,38,900);i.font=`900 ${g}px Inter, Arial, sans-serif`,i.fillStyle="#090b0f",i.fillText(c,78,260),i.font="600 25px Inter, Arial, sans-serif",i.fillStyle="#596273",i.fillText(o||"AREA REVIEW",80,308);const v=i.createLinearGradient(760,195,1110,410);v.addColorStop(0,"#fff2b8"),v.addColorStop(1,"#ffe58a"),Us(i,760,188,360,225,22),i.fillStyle=v,i.fill(),i.fillStyle="#101216",i.font="800 24px Inter, Arial, sans-serif",i.fillText("REVIEW SCORE",795,232),i.font="900 92px Inter, Arial, sans-serif",i.fillText(l,792,332),i.font="700 34px Inter, Arial, sans-serif",i.fillStyle="#5b6472",i.fillText("/ 10",965,330),Us(i,78,365,1042,p.length?360:470,24),i.fillStyle="#f3f4f6",i.fill(),i.fillStyle="#101216",i.font="800 22px Inter, Arial, sans-serif",i.fillText("REVIEW",112,410);const S=vw(i,d,950,31,23,850);i.font=`850 ${S}px Inter, Arial, sans-serif`,i.fillText(d,112,458),i.font="500 31px Inter, Arial, sans-serif",i.fillStyle="#252a32";const x=$pe(i,`“${f}”`,960,p.length?5:8);if(Mpe(i,x,112,510,47),p.length){const A=(1042-16*(p.length-1))/p.length;p.forEach((_,j)=>{const k=78+j*(A+16),O=755;Us(i,k,O,A,190,20);const[T,N,I]=h$[j%h$.length];i.fillStyle=`rgb(${T}, ${N}, ${I})`,i.fill(),i.fillStyle="#111318",i.font="800 20px Inter, Arial, sans-serif";const z=vw(i,String(_.label).toUpperCase(),A-32,20,15,800);i.font=`800 ${z}px Inter, Arial, sans-serif`,i.fillText(String(_.label).toUpperCase(),k+20,O+45),i.font="900 54px Inter, Arial, sans-serif",i.fillText(p$(_.score*2,0,10).toFixed(1),k+20,O+112),i.font="600 19px Inter, Arial, sans-serif",i.fillStyle="#596273",i.fillText("out of 10",k+20,O+150)})}
380return Us(i,78,985,1042,130,22),i.fillStyle="#080b10",i.fill(),i.fillStyle="#d0d5dc",i.font="500 22px Inter, Arial, sans-serif",i.fillText("See the full area breakdown at",118,1037),i.fillStyle="#ffffff",i.font="900 40px Inter, Arial, sans-serif",i.fillText("RateMyArea.com",118,1086),await new Promise((y,w)=>{r.toBlob(A=>A?y(A):w(new Error("Could not create review image")),"image/png",.95)})}function m$(e,t){const n=URL.createObjectURL(e),r=document.createElement("a");r.href=n,r.download=t,document.body.appendChild(r),r.click(),r.remove(),setTimeout(()=>URL.revokeObjectURL(n),1e3)}function Fpe({open:e,onOpenChange:t,review:n,area:r}){const[i,o]=P.useState(null),[a,l]=P.useState(""),[c,d]=P.useState(!1),[f,p]=P.useState("");if(P.useEffect(()=>{if(!e||!n||!r)return;let A=!1,_="";return d(!0),p(""),Lpe({review:n,area:{...r,state:HL(r.state)},labels:Ai}).then(j=>{A||(_=URL.createObjectURL(j),o(j),l(_))}).catch(j=>{A||p((j==null?void 0:j.message)||"Could not create image")}).finally(()=>{A||d(!1)}),()=>{A=!0,_&&URL.revokeObjectURL(_),o(null),l("")}},[e,n,r]),!n||!r)return null;const g=Dpe(r,n),v=typeof window<"u"?window.location.href:"https://ratemyarea.com",S=`${n.title||"Area review"} — ${r.name||r.city||"Rate My Area"}`,x=async()=>{var A;if(i){p("");try{const _=typeof File<"u"?new File([i],g,{type:"image/png"}):null;if(_&&navigator.share&&((A=navigator.canShare)!=null&&A.call(navigator,{files:[_]}))){await navigator.share({title:"Rate My Area review",text:S,files:[_]});return}if(navigator.share){await navigator.share({title:"Rate My Area review",text:S,url:v});return}m$(i,g),p("Image downloaded. Share it from your device.")}catch(_){(_==null?void 0:_.name)!=="AbortError"&&p("Sharing was unavailable. You can download the image instead.")}}},y=()=>{i&&(m$(i,g),p("Image downloaded."))},w=async()=>{try{await navigator.clipboard.writeText(v),p("Link copied.")}catch{p("Could not copy the link on this device.")}};return h.jsx(tu,{open:e,onOpenChange:t,children:h.jsxs(os,{className:"max-h-[92vh] max-w-2xl overflow-y-auto",children:[h.jsxs(as,{children:[h.jsx(ss,{children:"Share this review"}),h.jsx(ls,{children:"Share a branded review image to social apps or messages, or save it as a PNG."})]}),h.jsx("div",{className:"overflow-hidden rounded-2xl border bg-muted/30",children:a?h.jsx("img",{src:a,alt:"Rate My Area review share preview",className:"block h-auto w-full"}):h.jsx("div",{className:"flex aspect-square items-center justify-center text-sm text-muted-foreground",children:c?"Creating share image…":"Preview unavailable"})}),h.jsxs("div",{className:"grid gap-2 sm:grid-cols-3",children:[h.jsxs("button",{type:"button",className:"inline-flex items-center justify-center gap-2 rounded-md bg-foreground px-4 py-2.5 text-sm font-semibold text-background hover:opacity-90 disabled:cursor-not-allowed disabled:opacity-50",disabled:!i||c,onClick:x,children:[h.jsx(nD,{className:"h-4 w-4"})," Share to apps"]}),h.jsxs("button",{type:"button",className:"inline-flex items-center justify-center gap-2 rounded-md border border-border bg-background px-4 py-2.5 text-sm font-semibold hover:bg-muted disabled:cursor-not-allowed disabled:opacity-50",disabled:!i||c,onClick:y,children:[h.jsx(T6,{className:"h-4 w-4"})," Download PNG"]}),h.jsxs("button",{type:"button",className:"inline-flex items-center justify-center gap-2 rounded-md border border-border bg-background px-4 py-2.5 text-sm font-semibold hover:bg-muted",onClick:w,children:[f==="Link copied."?h.jsx(O6,{className:"h-4 w-4"}):h.jsx(j6,{className:"h-4 w-4"})," Copy link"]})]}),f&&h.jsx("p",{className:"text-center text-sm text-muted-foreground",children:f})]})})}const Bpe=e=>e&&e.charAt(0).toUpperCase()+e.slice(1);function Gh({review:e,area:t,helpfulCount:n=0,helpfulActive:r=!1,helpfulPending:i=!1,onHelpful:o=null,onReport:a=null}){const[l,c]=P.useState(!1),d=e.sourceType==="publicDiscussion",f=e.sourceType==="aiStarter"||e.sourceType==="uploadedStarter",p=Number(e.overallScore),g=Number.isFinite(p),v=g?Yp(p):"",S=d?e.updatedAt?`Updated ${new Date(e.updatedAt).toLocaleDateString("en-US",{month:"long",year:"numeric"})}`:"":e.createdAt?new Date(e.createdAt).toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"}):"",x=`${t.city||t.name||"Area"}${t.state?`, ${HL(t.state)}`:""}
380`,y=d?"Summary of cited public discussions":`${e.isVerifiedResident?"Verified resident":f?"Area review":"Resident review"} · ${x}`,w=e.categoryRatings||[],A=vl(e.sourceUrl),_=d&&!!A,j=!d&&!f&&typeof o=="function",k=!d&&!f&&typeof a=="function",O=_||j||k;return h.jsxs(h.Fragment,{children:[h.jsxs("article",{className:"review",children:[h.jsxs("div",{className:"review-score",children:[h.jsx("strong",{children:d?"Public discussion":"Overall"}),h.jsx("div",{className:v,children:g?(p*2).toFixed(1):"—"})]}),h.jsxs("div",{className:"review-main",children:[h.jsxs("div",{className:"review-top",children:[h.jsx("h3",{children:e.title}),h.jsxs("div",{className:"review-top-actions",children:[h.jsx("div",{className:"review-date",children:S}),h.jsxs("button",{type:"button",className:"review-share-trigger",onClick:()=>c(!0),"aria-label":"Share this review",children:[h.jsx(nD,{className:"h-4 w-4"}),h.jsx("span",{children:"Share"})]})]})]}),h.jsxs("div",{className:"reviewer-badges",children:[e.zipCode&&h.jsxs(rt,{className:"reviewer-badge hover:underline",to:`/area/${e.zipCode}`,title:`Open ZIP ${e.zipCode}`,children:["ZIP ",e.zipCode]}),d?h.jsxs(h.Fragment,{children:[h.jsx("span",{className:"reviewer-badge",children:"Cited public discussion"}),h.jsx("span",{className:"reviewer-badge",children:"Not a resident review"})]}):h.jsxs(h.Fragment,{children:[e.isVerifiedResident&&h.jsx("span",{className:"reviewer-badge",children:"✓ Verified resident"}),e.reviewerType&&h.jsx("span",{className:"reviewer-badge",children:Bpe(e.reviewerType)}),e.yearsInArea!=null&&h.jsxs("span",{className:"reviewer-badge",children:["Lived here ",e.yearsInArea," years"]})]})]}),h.jsx("p",{children:e.body}),w.length>0&&h.jsx("div",{className:"review-ratings",children:w.map((T,N)=>{const I=Number(T.score),z=Number.isFinite(I)?Yp(I):"";return h.jsxs("div",{className:"rating-row",children:[h.jsx("span",{children:Ai[T.category]||T.category}),h.jsx("span",{className:"segment-bar","aria-label":`${Ai[T.category]||T.category}: ${Number.isFinite(I)?(I*2).toFixed(1):"not rated"} out of 10`,children:[0,1,2,3,4,5,6,7,8,9].map(F=>h.jsx("i",{className:`segment${F<I*2&&z?` on ${z}`:""}`},F))})]},`${T.category||"rating"}-${N}`)})}),h.jsxs("div",{className:"review-footer",children:[h.jsx("div",{className:"meta",children:y}),O&&h.jsxs("div",{className:"review-actions",children:[_&&h.jsx("button",{type:"button",onClick:()=>window.open(A,"_blank","noopener,noreferrer"),children:"View source"}),j&&h.jsxs("button",{type:"button","aria-pressed":r,disabled:i,onClick:o,children:[r?"Helpful ✓":"Helpful"," ",n]}),k&&h.jsx("button",{type:"button",onClick:a,children:"Report"})]})]})]})]}),h.jsx(Fpe,{open:l,onOpenChange:c,review:e,area:t})]})}function zpe({page:e,helpfulCounts:t,helpfulActive:n,helpfulPending:r,onHelpful:i,onReport:o,onSubmit:a,hasCurrentUserReview:l=!1,simpleMode:c}){var F,D;const[d,f]=P.useState("all"),[p,g]=P.useState(!1),v=e.area,S=[...e.reviews||[]].sort((L,B)=>L.sourceType===B.sourceType?Date.parse(B.createdAt||0)-Date.parse(L.createdAt||0):L.sourceType==="publicDiscussion"?1:-1),x=e.starterPerspectives||[],w=[...S.filter(L=>L.sourceType==="residentReview"),...x],A=S.some(L=>L.sourceType==="publicDiscussion"),_=d==="public"&&!A?"all":d,j=L=>_==="all"?!0:_==="resident"?L.sourceType!=="publicDiscussion":L.sourceType==="publicDiscussion",k=Math.max(0,Number(v.reviewCount)||w.length),O=Number(v.residentReviewScore),T=k>0&&Number.isFinite(O)&&O>0?O:w.length?w.reduce((L,B)=>L+Number(B.overallScore||0),0)/w.length:null,N=Pa.map(L=>{var Z;const B=(Z=e.communityCategoryAverages)==null?void 0:Z[L],U=Number(B==null?void 0:B.avg),G=Number(B==null?void 0:B.count)||0;return{cat:L,avg:Number.isFinite(U)&&G>0?U:null,count:G}}),I=(((F=e.summary)==null?void 0:F.mostMentionedPositives)||[]).slice(0,3),z=(((D=e.summary)==null?void 0:D.mostMentionedNegatives)||[]).slice(0,3);return h.jsxs(h.Fragment,{children:[h.jsxs("section",{className:`review-summary${c?" simple":""}`,children:[h.jsxs("article",{className:"review-summary-card",children:[h.jsxs("div",{className:c?"community-score-box":"",children:[h.jsx("h3",{children:"Community rating"}),h.jsxs("div",{className:"review-overall",children:[h.jsx("strong",{children:T!=null?(Number(T)*2).toFixed(1):"—"}),h.jsxs("span",{children:["/ 10 · from ",k," review",k===1?"":"s"]})]})]}),c&&h.jsx("div",{className:"metrics",style:{marginTop:12},children:N.map(({cat:L,avg:B})=>{const U=B!=null?Yp(B):"";return h.jsxs("div",{className:"metric",children:[h.jsxs("div",{className:"metric-top",children:[h.jsx("span",{className:"metric-name",children:Ai[L]}),h.jsx("span",{className:`metric-score${U?` ${U}`:""}`,children:B==null?"N/A":(B*2).toFixed(1)})]}),h.jsx("div",{className:"track",children:h.jsx("div",{className:`fill${U?` ${U}`:""}`,style:{width:B!=null?`${B*20}%`:"0%"}})})]},L)})})]}),!c&&h.jsxs(h.Fragment,{children:[h.jsxs("article",{className:"review-summary-card",children:[h.jsx("h3",{children:"Most mentioned positives"}),h.jsx("div",{className:"mention-list",children:I.length?I.map((L,B)=>h.jsxs("div",{className:"mention good-text",children:[h.jsx("span",{children:L.label}),h.jsxs("b",{children:[L.count," mention",L.count===1?"":"s"]})]},B)):h.jsx("div",{className:"text-sm text-muted-foreground",children:"Not enough reviews yet"})})]}),h.jsxs("article",{className:"review-summary-card",children:[h.jsx("h3",{children:"Most mentioned drawbacks"}),h.jsx("div",{className:"mention-list",children:z.length?z.map((L,B)=>h.jsxs("div",{className:"mention bad-text",children:[h.jsx("span",{children:L.label}),h.jsxs("b",{children:[L.count," mention",L.count===1?"":"s"]})]},B)):h.jsx("div",{className:"text-sm text-muted-foreground",children:"Not enough reviews yet"})})]})]})]}),h.jsxs("div",{className:"reviews-title",children:[h.jsx("div",{children:h.jsx("h2",{children:"Reviews"})}),h.jsxs("div",{className:"filter-pills",children:[h.jsx("button",{type:"button",className:`filter${_==="all"?" active":""}`,onClick:()=>f("all"),children:"All"}),h.jsx("button",{type:"button",className:`filter${_==="resident"?" active":""}`,onClick:()=>f("resident"),children:"Area reviews"}),A&&h.jsx("button",{type:"button",className:`filter${_==="public"?" active":""}`,onClick:()=>
380f("public"),children:"Public discussions"})]})]}),h.jsxs("div",{className:"reviews-scrollbox",children:[S.filter(j).map(L=>h.jsx(Gh,{review:L,area:v,helpfulCount:t[L.id]??L.helpfulCount??0,helpfulActive:!!(n!=null&&n[L.id]),helpfulPending:!!(r!=null&&r[L.id]),onHelpful:()=>i==null?void 0:i(L),onReport:()=>o==null?void 0:o(L)},L.id)),_!=="public"&&x.map((L,B)=>h.jsx(Gh,{review:{...L,sourceType:L.sourceType||"aiStarter",categoryRatings:L.categoryRatings||[]},area:v,helpfulCount:0},`sp-${B}`))]}),h.jsxs("section",{className:"review-callout",children:[h.jsxs("div",{children:[h.jsxs("h3",{children:["Review ",v.name]}),h.jsx("p",{children:"Share your experience as a resident, renter, homeowner, parent, or commuter."})]}),h.jsxs("div",{className:"actions",children:[h.jsx("button",{type:"button",className:"btn dark",onClick:a,children:l?"Edit your review":"Write a review"}),h.jsx("button",{type:"button",className:"btn",onClick:()=>g(!0),children:"Review guidelines"})]})]}),h.jsx(tu,{open:p,onOpenChange:g,children:h.jsxs(os,{className:"max-w-lg",children:[h.jsxs(as,{children:[h.jsx(ss,{children:"Review guidelines"}),h.jsx(ls,{children:"Help other people by sharing specific, firsthand experience."})]}),h.jsxs("div",{className:"space-y-3 text-sm text-muted-foreground",children:[h.jsxs("p",{children:[h.jsx("strong",{className:"text-foreground",children:"Be firsthand."})," Review places you have actually lived in, rented in, owned in, parented in, or regularly commuted through."]}),h.jsxs("p",{children:[h.jsx("strong",{className:"text-foreground",children:"Be specific."})," Explain what worked or did not work for you instead of posting vague praise or criticism."]}),h.jsxs("p",{children:[h.jsx("strong",{className:"text-foreground",children:"Protect privacy."})," Do not include private addresses, phone numbers, or identifying information about other people."]}),h.jsxs("p",{children:[h.jsx("strong",{className:"text-foreground",children:"Keep it civil and accurate."})," No harassment, spam, fabricated claims, or discriminatory attacks."]}),h.jsx("p",{children:"Reviews may be moderated before publication and may be removed if they violate these guidelines."})]})]})})]})}function Upe({summary:e,onOpenArea:t}){const n=Array.isArray(e==null?void 0:e.nearbyAlternatives)?e.nearbyAlternatives:[];return h.jsxs(h.Fragment,{children:[h.jsx("div",{className:"section-head",style:{marginTop:"46px"},children:h.jsxs("div",{children:[h.jsx("h2",{children:"Nearby alternatives"}),h.jsx("p",{children:"Similar areas worth comparing."})]})}),h.jsx("div",{className:"nearby",children:n.length?n.slice(0,6).map((r,i)=>{const o=Number(r.overallScore),a=r.overallScore!=null&&Number.isFinite(o)&&o>0;return h.jsxs("div",{className:"nearby-card",children:[h.jsxs("div",{className:"nearby-top",children:[h.jsx("span",{children:r.name||"—"}),a&&h.jsx("span",{children:(o*2).toFixed(1)})]}),h.jsx("p",{children:r.reason||""}),r.slug&&h.jsx("button",{type:"button",style:{marginTop:"10px",border:0,background:"none",padding:0,color:"#303238",fontWeight:800,textDecoration:"underline",cursor:"pointer",fontSize:"13px"},onClick:()=>t(r.slug),children:"View area →"})]},i)}):h.jsxs("div",{className:"nearby-card",children:[h.jsx("div",{className:"nearby-top",children:h.jsx("span",{children:"Unavailable"})}),h.jsx("p",{children:"No nearby alternatives are available for this area."})]})})]})}const UB=P.forwardRef(({className:e,...t},n)=>h.jsx("textarea",{className:vt("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:n,...t}));UB.displayName="Textarea";const qpe=e=>{const t=Number(e);return Number.isFinite(t)?Math.max(1,Math.min(5,t/2)):null},g$=e=>{const t=Number(e);return Number.isFinite(t)?Math.round(t*2):null},Hpe=[{value:"resident",label:"Resident"},{value:"renter",label:"Renter"},{value:"homeowner",label:"Homeowner"},{value:"parent",label:"Parent"},{value:"commuter",label:"Commuter"},{value:"visitor",label:"Visitor"},{value:"professional",label:"Professional"}];function qB({open:e,area:t,onClose:n,onSubmit:r,draft:i}){const o=!!(i!=null&&i.reviewId),[a,l]=P.useState((i==null?void 0:i.title)||""),[c,d]=P.useState((i==null?void 0:i.body)||""),[f,p]=P.useState((i==null?void 0:i.reviewerType)||"resident"),[g,v]=P.useState((i==null?void 0:i.yearsInArea)!=null?String(i.yearsInArea):""),[S,x]=P.useState(()=>{const T=Object.fromEntries(Pa.map(N=>[N,8]));if(i!=null&&i.categoryRatings)for(const N of i.categoryRatings)N.category&&N.score!=null&&(T[N.category]=g$(N.score)??8);return T}),[y,w]=P.useState(!1),[A,_]=P.useState(""),j=()=>
380{l((i==null?void 0:i.title)||""),d((i==null?void 0:i.body)||""),p((i==null?void 0:i.reviewerType)||"resident"),v((i==null?void 0:i.yearsInArea)!=null?String(i.yearsInArea):"");const T=Object.fromEntries(Pa.map(N=>[N,8]));if(i!=null&&i.categoryRatings)for(const N of i.categoryRatings)N.category&&N.score!=null&&(T[N.category]=g$(N.score)??8);x(T),_("")},k=()=>{j(),n()},O=async()=>{var T,N;if(!a.trim()||!c.trim()){_("Please add a title and your review.");return}w(!0),_("");try{await r({title:a.trim(),body:c.trim(),reviewerType:f,residencyStatus:"current",yearsInArea:Number(g)||0,categoryRatings:Pa.map(I=>({category:I,score:qpe(S[I])}))}),j(),n()}catch(I){_(((N=(T=I==null?void 0:I.response)==null?void 0:T.data)==null?void 0:N.error)||(I==null?void 0:I.message)||"Could not submit your review.")}finally{w(!1)}};return h.jsx(tu,{open:e,onOpenChange:T=>!T&&k(),children:h.jsxs(os,{className:"max-h-[90vh] overflow-y-auto sm:max-w-lg",children:[h.jsxs(as,{children:[h.jsx(ss,{children:o?"Edit your review":`Review ${(t==null?void 0:t.name)||"this area"}`}),h.jsx(ls,{children:o?"Update your experience. Changes go back to moderation before they affect the score.":"Share your honest experience as a resident. Your review goes to moderation before it appears."})]}),h.jsxs("div",{className:"grid gap-4 py-2",children:[h.jsxs("div",{className:"grid gap-2",children:[h.jsx(vn,{htmlFor:"review-title",children:"Title"}),h.jsx(gr,{id:"review-title",value:a,onChange:T=>l(T.target.value),placeholder:"A short summary",maxLength:140})]}),h.jsxs("div",{className:"grid gap-2",children:[h.jsx(vn,{htmlFor:"review-body",children:"Your review"}),h.jsx(UB,{id:"review-body",value:c,onChange:T=>d(T.target.value),placeholder:"What's it like to live here?",rows:4,maxLength:4e3})]}),h.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[h.jsxs("div",{className:"grid gap-2",children:[h.jsx(vn,{htmlFor:"reviewer-type",children:"You are a"}),h.jsx("select",{id:"reviewer-type",className:"h-9 rounded-md border border-input bg-background px-2 text-sm",value:f,onChange:T=>p(T.target.value),children:Hpe.map(T=>h.jsx("option",{value:T.value,children:T.label},T.value))})]}),h.jsxs("div",{className:"grid gap-2",children:[h.jsx(vn,{htmlFor:"years-in-area",children:"Years in area"}),h.jsx(gr,{id:"years-in-area",type:"number",min:"0",max:"100",value:g,onChange:T=>v(T.target.value),placeholder:"0"})]})]}),h.jsxs("div",{className:"grid gap-2",children:[h.jsx(vn,{children:"Category ratings (1–10)"}),h.jsx("div",{className:"grid gap-2",children:Pa.map(T=>h.jsxs("div",{className:"flex items-center justify-between gap-3",children:[h.jsx("span",{className:"text-sm",children:Ai[T]}),h.jsx("div",{className:"flex flex-wrap justify-end gap-1",children:[1,2,3,4,5,6,7,8,9,10].map(N=>h.jsx("button",{type:"button",onClick:()=>x(I=>({...I,[T]:N})),className:`h-6 w-6 rounded-md border text-xs ${S[T]>=N?"border-primary bg-primary text-primary-foreground":"border-input bg-background"}`,children:N},N))})]},T))})]}),A&&h.jsx("p",{className:"text-sm text-destructive",children:A})]}),h.jsxs(Qm,{children:[h.jsx(Rt,{variant:"outline",onClick:k,disabled:y,children:"Cancel"}),h.jsx(Rt,{onClick:O,disabled:y,children:y?"Saving…":o?"Save changes":"Submit review"})]})]})})}const Wpe=[["spam","Spam"],["harassment","Harassment"],["falseInformation","False information"],["privacy","Privacy / personal information"],["other","Other"]];function jA({open:e,onOpenChange:t,onSubmit:n,busy:r=!1}){const[i,o]=P.useState("other"),[a,l]=P.useState("");P.useEffect(()=>{e||(o("other"),l(""))},[e]);const c=async d=>{d.preventDefault(),await(n==null?void 0:n({reason:i,details:a.trim()}))};return h.jsx(tu,{open:e,onOpenChange:r?void 0:t,children:h.jsx(os,{className:"max-w-md",children:h.jsxs("form",{onSubmit:c,children:[h.jsxs(as,{children:[h.jsx(ss,{children:"Report review"}),h.jsx(ls,{children:"Tell us what is wrong with this review. Reports are reviewed by moderators."})]}),h.jsxs("div",{className:"mt-5 space-y-4",children:[h.jsxs("label",{className:"block text-sm font-medium",children:["Reason",h.jsx("select",{value:i,onChange:d=>o(d.target.value),disabled:r,className:"mt-1 w-full rounded-md border border-input bg-background px-3 py-2 text-sm",children:Wpe.map(([d,f])=>h.jsx("option",{value:d,children:f},d))})]}),h.jsxs("label",{className:"block text-sm font-medium",children:["Additional details ",h.jsx("span",{className:"font-normal text-muted-foreground",children:"(optional)"}),h.jsx("textarea",{value:a,onChange:d=>l(d.target.value.slice(0,1e3)),disabled:r,rows:4,maxLength:1e3,className:"mt-1 w-full resize-y rounded-md border border-input bg-background px-3 py-2 text-sm",placeholder:"Add context that will help a moderator review the report."})]})]}),h.jsxs(Qm,{className:"mt-6",children:[h.jsx(Rt,{type:"button",variant:"outline",disabled:r,onClick:()=>t==null?void 0:t(!1),children:"Cancel"}),h.jsx(Rt,{type:"submit",disabled:r,children:r?"Submitting…":"Submit report"})]})]})})})}const Vpe=365*24*60*60*1e3;function Kpe({generatedAt:e,onReload:t}){const[n,r]=P.useState(!1),{toast:i}=Qa();if(!e)return null;const o=Date.parse(e);if(!Number.isFinite(o))return null;const a=Math.max(0,Date.now()-o);if(a<Vpe)return null;const l=Math.floor(a/(1440*60*1e3)),c=async()=>{var d,f;r(!0);try{await t()}catch(p){i({variant:"destructive",title:"Reload failed",description:((f=(d=p==null?void 0:p.response)==null?void 0:d.data)==null?void 0:f.error)||(p==null?void 0:p.message)||"Please try again later."})}finally{r(!1)}};return h.jsx("div",{className:"area-ii",style:{marginBottom:"24px"},children:h.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"18px",flexWrap:"wrap",padding:"18px 22px",border:"2px s
380olid #ffd84d",background:"#fffbe6",borderRadius:"12px"},children:[h.jsxs("div",{children:[h.jsxs("div",{style:{fontWeight:900,fontSize:"16px"},children:["This area's data is ",l," days old"]}),h.jsx("div",{style:{color:"#6f727b",fontSize:"14px",marginTop:"2px"},children:"We refresh sources every 365 days. Click to pull the latest census, crime, and school data."})]}),h.jsxs("button",{type:"button",className:"btn primary",onClick:c,disabled:n,style:{display:"flex",alignItems:"center",gap:"8px",whiteSpace:"nowrap",opacity:n?.6:1},children:[h.jsx(tD,{size:16,className:n?"animate-spin":""}),n?"Reloading…":"Reload Data"]})]})})}const v$=[{id:"overview",label:"Overview"},{id:"crime",label:"Crime & Safety"},{id:"schools",label:"Schools"},{id:"housing",label:"Housing"},{id:"transport",label:"Transportation"},{id:"demographics",label:"Demographics"}],Gpe={crime:{title:"Crime & Safety",subtitle:"Reported incidents and resident perception."},schools:{title:"Schools",subtitle:"Nearby public and private schools."},housing:{title:"Housing",subtitle:"Ownership, rent, and affordability."},transport:{title:"Transportation",subtitle:"Walking, biking, transit, and driving."},demographics:{title:"Demographics",subtitle:"Population, age, and education."}},Ype={crime:"crime",schools:"schools",housing:"housing",transport:"transportation",demographics:"demographics"};function Xpe({page:e,service:t,callbacks:n,onReload:r,simpleMode:i}){const[o,a]=P.useState("overview"),[l,c]=P.useState(!1),[d,f]=P.useState(null),[p,g]=P.useState(e.currentUserReview||null),[v,S]=P.useState(!!e.isSaved),[x,y]=P.useState(()=>Object.fromEntries((e.reviews||[]).map(ae=>[ae.id,ae.helpfulCount||0]))),[w,A]=P.useState(()=>Object.fromEntries((e.reviews||[]).map(ae=>[ae.id,ae.userHelpfulVote==="helpful"]))),[_,j]=P.useState({}),[k,O]=P.useState(!1),[T,N]=P.useState(null),[I,z]=P.useState(!1),{toast:F}=Qa(),D=n.navigate||{},L=e.area,B=(()=>{var te;const ae=e.tabData||{};return[ae.housing,ae.transportation,ae.crime,(te=ae.demographics)==null?void 0:te.demo_population].some(xe=>/county-level/i.test((xe==null?void 0:xe.geoScope)||""))})(),U=L.slug||L.zipCode||"",G=`rma_review_draft_${L.id}`;P.useEffect(()=>{g(e.currentUserReview||null)},[e.currentUserReview]),P.useEffect(()=>{try{const ae=localStorage.getItem(G);if(ae&&!e.currentUserReview){const pe=JSON.parse(ae);f(pe),c(!0)}}catch{}},[G,e.currentUserReview]);const Z=!!e.isAuthenticated,Y=ae=>Z?!0:(F({title:ae}),D.navigateToRegister&&D.navigateToRegister(`/area/${U}`),!1),ee=ae=>{var pe,te,xe;((pe=ae==null?void 0:ae.response)==null?void 0:pe.status)===401?D.navigateToLogin&&D.navigateToLogin(`/area/${U}`):F({variant:"destructive",title:"Action failed",description:((xe=(te=ae==null?void 0:ae.response)==null?void 0:te.data)==null?void 0:xe.error)||(ae==null?void 0:ae.message)||"Please try again."})},R=async()=>{if(!Y("You need to sign up to save areas.")||k)return;const ae=!v;O(!0);try{const pe=await t.toggleSavedArea(L.id,ae);S(!!pe.saved),F({title:pe.saved?"Area saved":"Area removed from saved areas"})}catch(pe){ee(pe)}finally{O(!1)}},q=()=>{const ae=n.addToCompare?n.addToCompare(L):{added:!1,list:[]},pe=(ae.list||[]).length;if(!ae.added){F({title:"Already in comparison",description:`${L.name} is already in your comparison (${pe}/4).`});return}pe>=2?(F({title:"Added to comparison",description:`${L.name} added (${pe}/4). Opening your comparison.`}),D.navigateToCompare&&D.navigateToCompare()):F({title:"Added to comparison",description:`${L.name} added (${pe}/4). Add one more area to compare side by side.`})},V=()=>{p&&f({...p,reviewId:p.id}),c(!0)},M=async ae=>{var je,se;if(!Z){try{localStorage.setItem(G,JSON.stringify(ae))}catch{}F({title:"Sign in to submit your review — your draft is saved."}),D.navigateToRegister?D.navigateToRegister(`/area/${U}`):D.navigateToLogin&&D.navigateToLogin(`/area/${U}`);return}const pe=(d==null?void 0:d.reviewId)||null,te=pe?await t.updateReview(pe,ae):await t.submitReview({areaId:L.id,...ae}),xe=pe||te.reviewId||((je=te.review)==null?void 0:je.id)||null;
380g(xe?{id:xe,...ae,status:te.status||((se=te.review)==null?void 0:se.status)||"pending"}:p);try{localStorage.removeItem(G),f(null)}catch{}F({title:pe?"Your review changes were submitted for moderation.":te.message||"Your review was submitted for moderation."})},re=async ae=>{if(_[ae.id])return;const pe=!w[ae.id];j(te=>({...te,[ae.id]:!0}));try{const te=await t.toggleHelpfulVote(ae.id,pe);y(xe=>({...xe,[ae.id]:te.helpfulCount})),A(xe=>({...xe,[ae.id]:!!te.active}))}catch(te){ee(te)}finally{j(te=>({...te,[ae.id]:!1}))}},ce=ae=>N(ae),oe=async({reason:ae,details:pe})=>{if(!(!T||I)){z(!0);try{await t.reportReview(T.id,ae,pe),F({title:"Report submitted",description:"Thanks for helping keep reviews useful."}),N(null)}catch(te){ee(te)}finally{z(!1)}}};return h.jsxs("div",{className:"area-ii",children:[h.jsxs("main",{children:[h.jsx("div",{className:"crumb",style:{cursor:"pointer"},onClick:()=>D.navigateHome&&D.navigateHome(),children:"← Back to search"}),!i&&h.jsx(Kpe,{generatedAt:L.generatedAt,onReload:r}),h.jsx(BG,{area:L,categoryScores:e.categoryScores,isSaved:v,onSave:R,onRate:V,onCompare:q,simpleMode:i,isCountyLevel:B}),!i&&h.jsxs(h.Fragment,{children:[h.jsx("nav",{className:"tabs",children:v$.map(ae=>h.jsx("button",{type:"button",className:`tab${o===ae.id?" active":""}`,onClick:()=>a(ae.id),children:ae.label},ae.id))}),h.jsx(UG,{area:L,summary:e.summary,active:o==="overview",isCountyLevel:B}),v$.filter(ae=>ae.id!=="overview").map(ae=>{var te,xe;if(ae.id==="demographics")return h.jsx(cB,{data:(te=e.tabData)==null?void 0:te.demographics,area:L,active:o==="demographics"},"demographics");const pe=Gpe[ae.id];return h.jsx(uc,{id:ae.id,active:o===ae.id,title:pe.title,subtitle:pe.subtitle,data:(xe=e.tabData)==null?void 0:xe[Ype[ae.id]]},ae.id)})]}),h.jsx(zpe,{page:e,helpfulCounts:x,helpfulActive:w,helpfulPending:_,onHelpful:re,onReport:ce,onSubmit:V,hasCurrentUserReview:!!p,simpleMode:i}),!i&&h.jsx(Upe,{summary:e.summary,onOpenArea:ae=>D.navigateToArea&&D.navigateToArea(ae)}),h.jsx("footer",{children:i?"Community reviews only.":"Demographic attributes are descriptive only and are never included in the area score."})]}),h.jsx(qB,{open:l,area:L,onClose:()=>c(!1),onSubmit:M,draft:d},d?`draft-${L.id}`:`fresh-${L.id}`),h.jsx(jA,{open:!!T,onOpenChange:ae=>{ae||N(null)},onSubmit:oe,busy:I})]})}const Qpe=`
381:root{
382  --ink:#111318;--muted:#737985;--line:#e2e5ea;--bg:#f2f3f5;--surface:#fff;
383  --yellow:#ffd84d;--yellowSoft:#fff8c7;--green:#55bd7d;--greenSoft:#e9f8ef;
384  --red:#ec726f;--redSoft:#fde9e8;--mid:#e5b94c;--midSoft:#fff4d8;
385  --blue:#537b8c;--purple:#7462c7;--shadow:0 12px 34px rgba(18,21,26,.045)
386}
387*{box-sizing:border-box}
388html{scroll-behavior:smooth}
389body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
390button,input{font:inherit}button{cursor:pointer}
391.topbar{height:78px;display:flex;align-items:center;gap:26px;padding:0 4.5vw;background:#0f1014;color:white}
392.brand{font-weight:900;font-size:20px;white-space:nowrap}
393.search{flex:1;max-width:650px;height:46px;display:flex;align-items:center;padding:0 10px 0 18px;background:#fff;color:#222;border-radius:999px}
394.search input{flex:1;border:0;outline:0;background:transparent}
395.search button{width:34px;height:34px;border:0;border-radius:50%;background:#111318;color:white}
396.nav{margin-left:auto;display:flex;align-items:center;gap:22px;font-size:14px;font-weight:800}
397.nav .signup{padding:9px 15px;border:1px solid #777e88;border-radius:999px}
398.page{width:min(1180px,92vw);margin:42px auto 90px}
399.back{font-size:14px;color:#7a808a;margin-bottom:26px}
400.hero{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:34px}
401.hero h1{margin:0;font-size:44px;line-height:1.03;letter-spacing:-1.8px}
402.sub{margin-top:9px;color:var(--muted);font-size:17px}
403.hero-actions{display:flex;gap:10px}
404.btn{height:46px;padding:0 20px;border:1.5px solid #15171d;border-radius:10px;background:white;font-weight:900}
405.btn.yellow{background:var(--yellow)}
406.btn.dark{background:#111318;color:#fff}
407.btn.share{display:inline-flex;gap:8px;align-items:center}
408
409/* Score */
410.score-card{display:grid;grid-template-columns:290px minmax(0,1fr);overflow:hidden;background:#fff;border:1px solid var(--line);border-radius:22px;box-shadow:var(--shadow)}
411.overall{position:relative;background:linear-gradient(180deg,#fffecb,#fff5aa);border-right:1px solid rgba(17,19,24,.06)}
412.overall-inner{min-height:334px;padding:44px 28px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
413.kicker{font-size:12px;font-weight:900;letter-spacing:1.9px;text-transform:uppercase;color:#363b45}
414.big-score{display:flex;align-items:flex-end;
414gap:7px;margin:18px 0 11px}
415.big-score strong{font-size:86px;line-height:.84;letter-spacing:-4.5px}
416.big-score span{margin-bottom:7px;font-size:25px;font-weight:900;color:#4f5560}
417.grade{padding:6px 13px;border-radius:999px;background:rgba(255,255,255,.68);border:1px solid rgba(43,138,77,.15);color:#2b8a4d;font-size:14px;font-weight:900}
418.based{margin-top:13px;color:#676d77;font-size:13px}
419.share-round{position:absolute;top:16px;right:16px;width:40px;height:40px;display:grid;place-items:center;border-radius:50%;border:1px solid rgba(17,19,24,.12);background:rgba(255,255,255,.9);box-shadow:0 6px 16px rgba(0,0,0,.06)}
420.score-right{display:flex;flex-direction:column;min-width:0}
421.cat-grid{flex:1;display:grid;grid-template-columns:1fr 1fr;gap:30px 40px;padding:34px 38px 28px}
422.cat-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:11px}
423.cat-name{font-size:16px;font-weight:900}
424.cat-score{min-width:52px;padding:6px 9px;border-radius:8px;text-align:center;font-size:18px;font-weight:900}
425.good-bg{background:var(--greenSoft)}.mid-bg{background:var(--midSoft)}.low-bg{background:var(--redSoft)}.na-bg{background:#f3f4f6}
426.track{height:9px;border-radius:999px;background:#eceff2;overflow:hidden}.fill{height:100%;border-radius:999px}.good-fill{background:var(--green)}.mid-fill{background:var(--mid)}.low-fill{background:var(--red)}
427.method{position:relative;min-height:46px;display:flex;align-items:center;gap:8px;padding:10px 38px 11px;border-top:1px solid #e9ebef;background:#fbfbfc;color:#6d7380;font-size:13px}
428.info-wrap{position:relative;display:inline-flex}.info-btn{width:20px;height:20px;display:grid;place-items:center;padding:0;border-radius:50%;border:1.4px solid #858b96;background:#fff;color:#6f7580;font-size:11px;font-weight:900}
429.tooltip{position:absolute;bottom:31px;left:50%;width:365px;z-index:100;padding:16px 17px;border-radius:14px;color:#fff;background:rgba(47,51,59,.8);border:1px solid rgba(255,255,255,.24);box-shadow:0 14px 36px rgba(0,0,0,.2);backdrop-filter:blur(16px) saturate(130%);opacity:0;visibility:hidden;transform:translate(-50%,6px);transition:.17s ease;pointer-events:none}
430.tooltip strong{display:block;margin-bottom:6px;font-size:14px}.tooltip span{display:block;color:#eef1f5;font-size:13px;line-height:1.48}
431.info-wrap:hover .tooltip,.info-wrap.open .tooltip{opacity:1;visibility:visible;transform:translate(-50%,0)}
432
433/* Tabs */
434.tabs{display:flex;gap:7px;margin-top:22px;padding:10px;border:1px solid var(--line);border-radius:14px;background:rgba(255,255,255,.86);box-shadow:0 8px 24px rgba(18,21,26,.025);overflow:auto}
435.tab{flex:none;padding:10px 14px;border:1px solid transparent;border-radius:10px;background:transparent;color:#666d78;font-size:14px;font-weight:850}
436.tab.active{background:#fff;color:#111318;border-color:#d9dde3;box-shadow:0 4px 12px rgba(17,19,24,.06)}
437.tab:hover{background:#f6f7f9;color:#111}
438
439.content{padding-top:40px}
440.view{display:none}.view.active{display:block}
441.section{margin-bottom:34px;padding:38px 40px 42px;background:#fff;border:1px solid var(--line);border-radius:22px;box-shadow:var(--shadow)}
442.section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:28px}
443.section-head h2{margin:0;font-size:30px;letter-spacing:-.7px}.source{text-align:right;color:#7c828d;font-size:12px;line-height:1.45}
444.section-intro{margin:-12px 0 28px;color:#767d88;font-size:14px}
445
446/* Overview */
447.headline-metrics{display:grid;grid-template-columns:repeat(5,1fr);gap:0;padding:3px 0 24px;border-bottom:1px solid var(--line)}
448.metric{padding:10px 22px 10px 0}.metric:not(:last-child){margin-right:22px;padding-right:22px;border-right:1px solid var(--line)}
449.eyebrow{font-size:11px;font-weight:900;letter-spacing:1.45px;text-transform:uppercase;color:#818793}.metric strong{display:block;margin-top:10px;font-size:27px}.metric small{display:block;margin-top:7px;color:#818793}
450.summary-block{display:grid;grid-template-columns:1.55fr .75fr;gap:42px;margin-top:34px}
451.summary-copy h3,.glance h3{margin:0 0 14px;font-size:19px}.summary-copy p{margin:0;color:#424954;line-height:1.7;font-size:15px}
452.glance{padding-left:30px;border-left:1px solid var(--line)}.point{margin:0 0 15px;color:#4b525d;font-size:14px;line-height:1.45}.point strong{color:#111}
453
454/* Common visual cards */
455.visual-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}
456.visual-card{padding:26px;border:1px solid var(--line);border-radius:16px;background:#fff}
457.visual-card h3{margin:0 0 7px;font-size:18px}.muted{color:#7d838e;font-size:13px}
458
459/* Crime */
460.callout{margin-bottom:20px;padding:13px 16px;border:1px solid #f1c484;background:#fff9ef;border-radius:12px;color:#9a4d20;font-size:13px}
461.crime-grades{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
462.crime-grade{padding:20px;border-radius:15px;background:#f8f9fa}.crime-grade small{display:block;color:#747b86;margin-bottom:12px}
463.grade-circle{width:54px;height:54px;display:grid;place-items:center;border-radius:50%;background:#fde8e7;color:#b64f49;font-size:18px;font-weight:900}.grade-circle.good{background:#e8f7ee;color:#2b8b4f}
464.rate-list{margin-top:30px}.rate-list h3{margin:0 0 18px;font-size:18px}
465.rate-row{display:grid;grid-template-columns:180px 1fr 95px;gap:16px;align-items:center;margin:17px 0;font-size:13px}.rate-track{height:13px;background:#eceef2;border-radius:999px;overflow:hidden}.rate-fill{height:100%;background:#567f90;border-radius:999px}.rate-val{font-weight:900}
466.crime-donut-wrap{display:flex;align-items:center;justify-content:center;min-height:220px}
467.crime-donut{width:170px;height:170px;border-radius:50%;background:conic-gradient(#ec726f 0 13%,#d25c58 13% 82%,#55bd7d 82% 100%);position:relative}
468.crime-donut:after{content:"";position:absolute;inset:39px;background:#fff;border-radius:50%}
469.crime-donut-center{position:absolute;inset:39px;display:grid;place-items:center;text-align:center;font-size:15px;font-weight:900;z-index:1;line-height:1.15}
470.crime-donut-center small{display:block;font-size:10px;font-weight:800;color:#7c828c;margin-top:2px}
471
472/* Schools */
473.schools{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
474.school{padding:26px;border:1px solid var(--line);border-radius:17px;background:#fff}.school-type{display:inline-flex;padding:6px 10px;border-radius:999px;background:#eef1ff;color:#4f57c9;font-size:11px;font-weight:900}.school h3{margin:17px 0 8px;font-size:19px}.school p{margin:0;color:#757c87}
475.school-rating{display:flex;align-items:center;gap:15px;margin-top:22px}.ring{--p:40%;width:70px;height:70px;border-radius:50%;background:conic-gradient(#0d7897 var(--p),#e8ecef 0);position:relative;display:grid;place-items:center}.ring:after{content:"";position:absolute;inset:8px;background:#fff;border-radius:50%}.ring strong{position:relative;z-index:1;font-size:18px}.school-meta b{display:block}
475.school-meta span{display:block;margin-top:3px;color:#7a808b;font-size:12px}
476
477/* Housing */
478.housing-layout{display:grid;grid-template-columns:1fr 1fr;gap:28px}
479.donut-wrap{display:flex;align-items:center;justify-content:center;gap:38px;margin-top:24px}.donut{width:178px;height:178px;border-radius:50%;background:conic-gradient(#20303a 0 17.6%,#73c4aa 17.6% 100%);display:grid;place-items:center}.donut:after{content:"Occupied\\A homes";white-space:pre;width:102px;height:102px;border-radius:50%;background:#fff;display:grid;place-items:center;text-align:center;font-weight:900}
480.legend{display:flex;flex-direction:column;gap:14px}.legend-row{display:flex;align-items:center;gap:9px;font-size:14px}.swatch{width:11px;height:11px;border-radius:3px}
481.cost-bars{display:flex;flex-direction:column;gap:20px;margin-top:23px}.cost-row .label{display:flex;justify-content:space-between;gap:16px;margin-bottom:8px;font-size:13px}.cost-row .label strong{font-size:14px}.cost-track{height:12px;background:#eceef2;border-radius:99px;overflow:hidden}.cost-track span{display:block;height:100%;border-radius:99px}
482
483/* Transportation */
484.transport-kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:28px}.transport-kpi{padding:22px;border-radius:16px;background:#f8f9fa}.transport-kpi span{display:block;color:#7a818c;font-size:12px;font-weight:800;text-transform:uppercase}.transport-kpi strong{display:block;margin-top:8px;font-size:28px}
485.transport-row{display:grid;grid-template-columns:190px 1fr 70px;gap:16px;align-items:center;margin:18px 0}.dark-fill{height:11px;background:#111318;border-radius:99px}
486.transport-compare{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:30px}.transport-mini{text-align:center;padding:20px;border-top:1px solid var(--line)}.transport-mini strong{display:block;font-size:26px}.transport-mini span{display:block;margin-top:5px;color:#7a818c;font-size:12px}
487
488/* Demographics graphs restored */
489.demo-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}
490.demo-card{padding:24px;border:1px solid var(--line);border-radius:17px;background:#fff}.demo-card h3{margin:0 0 7px;font-size:18px}
491.demo-kpis{display:grid;grid-template-columns:1fr 1fr;gap:18px 28px;margin-top:20px}.demo-kpi strong{display:block;font-size:23px}.demo-kpi small{display:block;margin-top:4px;color:#838994;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.7px}
492.ethnicity{display:grid;grid-template-columns:155px 1fr;gap:24px;align-items:center;margin-top:18px}.eth-donut{width:150px;height:150px;border-radius:50%;background:conic-gradient(#111319 0 63.6%,#56bb78 63.6% 68.2%,#f0c149 68.2% 81.9%,#eb7772 81.9% 82%,#7295cd 82% 89.3%,#8a6bc4 89.3% 100%);position:relative}.eth-donut:after{content:"";position:absolute;inset:38px;background:#fff;border-radius:50%}
493.eth-list{display:flex;flex-direction:column;gap:9px;font-size:12px}.eth-item{display:flex;justify-content:space-between;gap:10px}
494.bar-chart{height:150px;display:flex;align-items:flex-end;gap:7px;margin-top:22px;padding-bottom:23px;border-bottom:1px solid #e8eaee;position:relative}.bar-chart:after{content:"Income distribution";position:absolute;bottom:0;left:0;color:#8a909a;font-size:10px}
495.bar-chart i{flex:1;background:#efbe3c;border-radius:4px 4px 0 0}
496.age-chart i{background:#111318}
497.hbars{display:flex;flex-direction:column;gap:12px;margin-top:18px}.hbar-row{display:grid;grid-template-columns:145px 1fr 48px;gap:10px;align-items:center;font-size:12px}.hbar-track{height:10px;background:#eceef1;border-radius:99px;overflow:hidden}.hbar-track span{display:block;height:100%;background:#111318;border-radius:99px}
498.family-bars .hbar-track span{background:#6c7380}
499.employment-list{display:grid;grid-template-columns:1fr auto;gap:10px 20px;margin-top:19px;font-size:12px}.employment-list b{text-align:right}
500.diversity-row{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.diversity-card{padding:20px;border:1px solid var(--line);border-radius:15px}.diversity-card strong{display:block;font-size:28px}.diversity-card small{display:block;margin:6px 0 12px;color:#7f8690}.diversity-track{height:9px;background:#eceef1;border-radius:99px;overflow:hidden}
500.diversity-track span{display:block;height:100%;background:#111318;border-radius:99px}
501
502/* Community + reviews */
503.community{display:grid;grid-template-columns:220px 1fr 1fr;gap:28px;padding:30px 34px;background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow)}
504.community h3{margin:0 0 12px;font-size:17px}.community-score{font-size:52px;font-weight:900;letter-spacing:-2px}.community-copy{color:#7b818d;font-size:13px;line-height:1.5}
505.reviews{margin-top:34px;padding:36px 38px 40px;background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow)}
506.review-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:10px}.review-head h2{margin:0;font-size:30px}.filters{display:flex;gap:8px}.filter{padding:9px 13px;border-radius:999px;border:1px solid var(--line);background:#fff;font-size:13px;font-weight:850}.filter.active{background:#111318;color:#fff;border-color:#111318}
507.review-card{display:grid;grid-template-columns:95px 1fr;gap:28px;padding:30px 0;border-top:1px solid var(--line)}.review-card:last-of-type{border-bottom:1px solid var(--line)}
508.review-score small{display:block;margin-bottom:10px;font-weight:900}.review-score strong{display:grid;width:76px;height:76px;place-items:center;border-radius:14px;background:#fff0a9;font-size:31px}.review-card.public .review-score strong{background:#dff7e9}
509.review-top{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}.review-title{font-size:20px;font-weight:850}.review-date{color:#676e79;font-size:13px;font-weight:800}
510.tags{display:flex;gap:7px;flex-wrap:wrap;margin:9px 0}.tag{padding:6px 10px;border:1px solid #dfe2e7;border-radius:999px;background:#fff;font-size:12px;font-weight:800}
511.review-copy{margin-top:12px;color:#424954;line-height:1.6}.review-cats{display:grid;grid-template-columns:1fr 1fr;gap:14px 32px;margin-top:24px}.review-cat{display:grid;grid-template-columns:135px 1fr 35px;gap:10px;align-items:center;font-size:13px;font-weight:850}.review-meter{height:9px;background:#eceef1;border-radius:99px;overflow:hidden}.review-meter span{display:block;height:100%;border-radius:99px}.m-good{background:#63d6ad}.m-mid{background:#f1cf55}.m-bad{background:#f2898e}
512.write-review{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-top:28px;padding:24px 0 0}.write-review h3{margin:0 0 6px;font-size:18px}.write-review p{margin:0;color:#767d88;font-size:13px}
513
514/* Alternatives */
515.alts{margin-top:34px;padding:32px 36px 34px;background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow)}.alts h2{margin:0;font-size:30px}.alts>p{margin:7px 0 18px;color:#767d88}.alt-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.alt{padding:20px 0 0;border-top:1px solid var(--line)}.alt h3{margin:0 0 9px;font-size:17px}.alt p{margin:0;color:#656c77;line-height:1.5;font-size:13px}
516.footer-note{margin:34px 2px 0;padding-top:18px;border-top:1px solid var(--line);color:#828895;font-size:11px}
517
518/* Share modal */
519.backdrop{position:fixed;inset:0;z-index:100;display:none;align-items:center;justify-content:center;padding:24px;background:rgba(10,12,16,.72)}.backdrop.show{display:flex}
520.modal{width:min(790px,96vw);max-height:92vh;overflow:auto;background:#fff;border-radius:18px;box-shadow:0 28px 90px rgba(0,0,0,.35)}.modal-head{display:flex;justify-content:space-between;align-items:center;padding:18px 22px 8px}.close{width:38px;height:38px;border:0;border-radius:50%;background:#f0f1f3;font-size:22px}
521.snapshot-frame{margin:10px 28px 24px;padding:18px;border-radius:18px;background:#f2f3f5;border:1px solid #d8dbe1}.snapshot{padding:27px;border-radius:16px;background:#fff;border:1px solid #e4e6ea}.snap-top{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:22px}.lockup{display:flex;align-items:center;gap:14px}.logo{width:76px;height:60px;background:#0f1115;color:#fff;display:grid;place-items:center;font-size:30px;font-weight:900;border-radius:4px}.brand-tag{font-size:12px;font-weight:900;line-height:1.35;color:#667087}.snap-loc{font-size:13px;font-weight:900;color:#6d7588}
522.snap-title-row{display:grid;grid-template-columns:1fr 205px;
522gap:20px}.snap-title-row h2{margin:0;font-size:38px}.snap-sub{margin-top:4px;color:#687184;font-weight:800}.snap-scorebox{background:#ffe89a;border-radius:15px;padding:17px 19px}.snap-scorebox small{font-weight:900}.snap-score{display:flex;gap:6px;align-items:flex-end;margin-top:8px}.snap-score strong{font-size:54px;line-height:.9}.snap-score span{font-weight:900;font-size:21px;color:#5d6170}.snap-grade{margin-top:7px;color:#2f9853;font-size:13px;font-weight:900}
523.snap-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:18px}.snap-cat{padding:14px 12px;border-radius:12px;min-height:100px}.snap-cat small{font-weight:900}.snap-cat strong{display:block;font-size:29px;margin-top:7px}.snap-cat span{font-size:11px;color:#667087;font-weight:800}.sg{background:#e9f8ef}.sm{background:#fff5d8}.sl{background:#fde8e7}.sn{background:#f3f4f6}
524.cta{margin-top:17px;padding:16px 18px;border-radius:12px;background:#0f1115;color:#fff;display:flex;align-items:center;justify-content:space-between}.cta small{color:#cbd0d9}.cta strong{display:block;font-size:23px;margin-top:2px}.modal-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;padding:0 28px 28px}.modal-actions button{height:50px;border-radius:10px;border:1px solid #ccd1d8;background:#fff;font-weight:900}.modal-actions .primary{background:#0f1115;color:#fff;border-color:#0f1115}
525
526@media(max-width:900px){
527  .nav{display:none}.hero{align-items:flex-start;flex-direction:column}.score-card{grid-template-columns:1fr}.overall{border-right:0;border-bottom:1px solid rgba(17,19,24,.06)}.cat-grid{grid-template-columns:1fr}
528  .headline-metrics{grid-template-columns:1fr 1fr}.metric{border-right:0!important;margin-right:0!important;border-bottom:1px solid var(--line)}
529  .summary-block,.visual-grid,.housing-layout,.demo-grid,.community{grid-template-columns:1fr}.glance{padding-left:0;border-left:0;padding-top:25px;border-top:1px solid var(--line)}
530  .schools{grid-template-columns:1fr}.crime-grades{grid-template-columns:1fr 1fr}.transport-kpis,.transport-compare{grid-template-columns:1fr}.review-card{grid-template-columns:1fr}.review-cats{grid-template-columns:1fr}.alt-grid{grid-template-columns:1fr}.diversity-row{grid-template-columns:1fr}.snap-title-row{grid-template-columns:1fr}
531}
532@media(max-width:620px){
533  .topbar{padding:0 16px}.search{display:none}.page{width:94vw}.hero h1{font-size:34px}.section,.reviews,.alts,.community{padding:24px 18px;border-radius:16px}.cat-grid{padding:26px 22px 20px}.method{padding:10px 22px 11px}
534  .headline-metrics{grid-template-columns:1fr}.rate-row,.transport-row{grid-template-columns:1fr}.crime-grades{grid-template-columns:1fr}.school-rating{align-items:flex-start}.ethnicity{grid-template-columns:1fr}.review-top,.write-review{flex-direction:column;align-items:flex-start}.review-cat{grid-template-columns:110px 1fr 30px}.snap-grid{grid-template-columns:1fr 1fr}.modal-actions{grid-template-columns:1fr;padding:0 12px 18px}.snapshot-frame{margin:8px 12px 16px;padding:12px}
535}
536
537/* ===== v3: demographics aligned to original UI + refined original review behavior ===== */
538.demo-grid-v3{
539  display:grid;
540  grid-template-columns:repeat(2,minmax(0,1fr));
541  gap:18px;
542}
543.demo-card-v3{
544  min-width:0;
545  padding:22px;
546  background:#fff;
547  border:1px solid var(--line);
548  border-radius:16px;
549}
550.demo-card-v3.full{grid-column:1/-1}
551.demo-card-v3 h3{margin:0 0 4px;font-size:19px}
552.demo-card-v3 .demo-sub{margin:0 0 16px;color:#7b818c;font-size:13px}
553.demo-stats-v3{
554  display:grid;
555  grid-template-columns:1fr 1fr;
556  gap:18px 22px;
557  margin-top:18px;
558}
559.demo-stat-v3 strong{display:block;font-size:23px;letter-spacing:-.02em}
560.demo-stat-v3 span{
561  display:block;margin-top:4px;color:#858b95;
562  font-size:10px;font-weight:900;letter-spacing:.65px;text-transform:uppercase
563}
564.demo-donut-layout{
565  display:grid;
566  grid-template-columns:180px minmax(0,1fr);
567  gap:18px;
568  align-items:center;
569  min-height:190px;
570}
571.demo-donut-v3{
572  width:168px;height:168px;border-radius:50%;position:relative;
573  justify-self:center;
574}
575.demo-donut-v3:after{
576  content:"";position:absolute;inset:43px;background:#fff;border-radius:50%;
577}
578.demo-donut-race{
579  background:conic-gradient(
580    #111216 0 63.6%,
581    #68c587 63.6% 68.2%,
582    #f2c94c 68.2% 81.9%,
583    #e97878 81.9% 82%,
584    #5b9bd5 82% 89.3%,
585    #a98bc4 89.3% 100%
586  );
587}
588.demo-donut-language{
589  background:conic-gradient(
590    #111216 0 62%,
591    #68c587 62% 82%,
592    #f2c94c 82% 90%,
593    #5b9bd5 90% 96%,
594    #a98bc4 96% 100%
595  );
596}
597.demo-legend-v3{display:grid;gap:9px;font-size:13px}
598.demo-legend-row{display:flex;align-items:center;gap:9px;min-width:0}
599.demo-dot{width:11px;height:11px;border-radius:3px;flex:none}
600.demo-legend-row b{margin-left:auto}
601.demo-chart-box-v3{
602  width:100%;
603  height:230px;
604  margin-top:10px;
605  padding-top:4px;
606}
607.demo-chart-box-v3 svg{display:block;width:100%;height:100%;overflow:visible}
608.demo-axis-text{font-size:9px;fill:#7c828c}
609.demo-axis-grid{stroke:#eceef1;stroke-width:1}
610.demo-age-bar{fill:#111216}
611.demo-income-bar{fill:#f2c94c}
612.demo-bars-v3{display:grid;gap:13px;margin-top:8px}
613.demo-bar-v3{
614  display:grid;
615  grid-template-columns:150px 1fr 52px;
616  align-items:center;
617  gap:12px;
618  font-size:13px;
619}
620.demo-bar-v3 .lab{font-weight:850}
621.demo-bar-v3 .bar-track{height:9px;background:#ececef;border-radius:999px;overflow:hidden}
622.demo-bar-v3 .bar-fill{height:100%;background:#111216;border-radius:999px}
623.demo-bar-v3 .pct{text-align:right;font-weight:900}
624.demo-list-head-v3{
625  margin:18px 0 7px;
626  color:#7b818c;
627  font-size:11px;
628  font-weight:900;
629  text-transform:uppercase;
630  letter-spacing:.6px;
631}
632.demo-top-list{
633  display:grid;
634  gap:8px;
635  margin:0;
636  padding:0;
637  list-style:none;
638}
639.demo-top-list li{
640  display:flex;justify-content:space-between;gap:16px;
641  font-size:13px;font-weight:700
642}
643.diversity-v3{
644  display:grid;grid-template-columns:repeat(3,1fr);gap:14px;
645}
646.diversity-card-v3{
647  padding:20px;border:1px solid var(--line);border-radius:13px;background:#fff;
648}
649.diversity-card-v3 strong{display:block;font-size:30px}
650.diversity-card-v3 span{display:block;margin-top:3px;font-size:13px;font-weight:850}
651.diversity-track-v3{height:9px;margin-top:12px;background:#eceef1;border-radius:99px;overflow:hidden}
652.diversity-track-v3 i{display:block;height:100%;background:#111216;border-radius:99px}
653
654/* Review summary mirrors actual AreaReviews behavior */
655.review-summary-v3{
656  display:grid;
657  grid-template-columns:220px 1fr 1fr;
658  gap:18px;
659  margin-top:34px;
660}
661.review-summary-card-v3{
662  padding:22px;
663  background:#fff;
664  border:1px solid var(--line);
665  border-radius:14px;
666  box-shadow:0 6px 18px rgba(17,19,24,.025);
667}
668.review-summary-card-v3 h3{margin:0 0 12px;font-size:18px}
669.community-rating-v3{display:flex;align-items:flex-end;gap:11px}
670.community-rating-v3 strong{font-size:54px;line-height:.9;letter-spacing:-.04em}
671.community-rating-v3 span{padding-bottom:5px;color:#7b818d;font-size:13px}
672.mention-list-v3{display:grid;gap:10px;font-size:14px}
673.mention-v3{display:flex;justify-content:space-between;gap:14px}
674.mention-v3.good b{color:#2b8d49}.mention-v3.bad b{color:#b54a54}
675
676/* Reviews keep original visual/behavior, but polish spacing */
677.reviews-v3{
678  margin-top:24px;
679  padding:30px 32px 32px;
680  background:#fff;
681  border:1px solid var(--line);
682  border-radius:20px;
683  box-shadow:var(--shadow);
684}
685.reviews-title-v3{
686  display:flex;justify-content:space-between;align-items:flex-end;
687  gap:20px;margin-bottom:18px
688}
689.reviews-title-v3 h2{margin:0;font-size:30px}
690.filter-pills-v3{display:flex;gap:8px;flex-wrap:wrap}
691.filter-v3{
692  padding:8px 12px;border-radius:999px;border:1px solid var(--line);
693  background:#fff;font-weight:850;font-size:13px
694}
695.filter-v3.active{background:#111318;color:#fff;border-color:#111318}
696.reviews-scrollbox-v3{
697  max-height:700px;
698  overflow-y:auto;
699  padding:14px 14px 2px;
700  background:#fff;
701  border:1px solid var(--line);
702  border-radius:12px;
703}
704.review-original{
705  display:grid;
706  grid-template-columns:96px minmax(0,1fr);
707  gap:28px;
708  margin-bottom:12px;
709  padding:28px 30px 30px;
710  background:#f3f3f4;
711}
712.review-score-v3 small{
713  display:block;margin-bottom:10px;font-size:12px;font-weight:900
714}
715.review-score-box-v3{
716  display:grid;
717  width:74px;height:74px;
718  place-items:center;
719  border-radius:0;
720  font-size:31px;font-weight:950;
721}
722.review-score-box-v3.mid{background:#ffe462}
723.review-score-box-v3.good{background:#73e6bc}
724.review-score-box-v3.bad{background:#ff9ba2}
725.review-main-v3{min-width:0}
726.review-top-v3{
727  display:flex;justify-content:space-between;align-items:flex-start;
728  gap:20px;margin-bottom:8px
729}
730.review-top-v3 h3{margin:0;font-size:21px;letter-spacing:-.01em}
731.review-top-actions-v3{display:flex;align-items:center;gap:12px;flex-shrink:0}
732.review-date-v3{font-size:13px;font-weight:800;white-space:nowrap}
733.review-share-v3{
734  display:inline-flex;align-items:center;gap:6px;
735  padding:7px 10px;border:1px solid #cfd2d8;
736  border-radius:999px;background:#fff;color:#202126;
737  font-size:12px;font-weight:850
738}
739.reviewer-badges-v3{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:14px}
740.reviewer-badge-v3{
741  padding:6px 9px;border:1px solid #d8d9dc;background:#fff;
742  border-radius:999px;font-size:11px;font-weight:800
743}
744.review-body-v3{
745  margin:0 0 22px;max-width:820px;
746  color:#202126;font-size:17px;line-height:1.58
747}
748.review-ratings-v3{
749  display:grid;
750  grid-template-columns:1fr 1fr;
751  gap:12px 42px;
752  max-width:790px;
753}
754.rating-row-v3{
755  display:grid;
756  grid-template-columns:145px 1fr;
757  gap:14px;
758  align-items:center;
759}
760.rating-row-v3>span:first-child{font-size:14px;font-weight:850}
761.segment-bar-v3{
762  display:grid;
763  grid-template-columns:repeat(10,1fr);
764  gap:2px;
765  max-width:178px
766}
767.segment-bar-v3 i{height:17px;background:#dedfe2}
768.segment-bar-v3 i.good{background:#73e6bc}
769.segment-bar-v3 i.mid{background:#ffe462}
770.segment-bar-v3 i.bad{background:#ff9ba2}
771.review-footer-v3{
772  display:flex;align-items:center;justify-content:space-between;
773  gap:18px;margin-top:26px
774}
775.review-meta-v3{color:#7b818d;font-size:12px}
776.review-actions-v3{display:flex;gap:18px;font-size:13px;font-weight:800}
777.review-actions-v3 button{border:0;background:none;padding:0;color:#303238;font-weight:800}
778.review-actions-v3 button:hover{text-decoration:underline}
779.review-callout-v3{
780  display:flex;justify-content:space-between;align-items:center;
781  gap:20px;margin-top:24px;
781padding:24px 26px;
782  background:#fff;border:2px solid #111318
783}
784.review-callout-v3 h3{margin:0 0 7px;font-size:21px}
785.review-callout-v3 p{margin:0;color:#7b818d;font-size:14px}
786
787@media(max-width:900px){
788  .demo-grid-v3{grid-template-columns:1fr}
789  .demo-donut-layout{grid-template-columns:170px 1fr}
790  .review-summary-v3{grid-template-columns:1fr}
791  .review-original{grid-template-columns:1fr}
792  .review-ratings-v3{grid-template-columns:1fr}
793}
794@media(max-width:620px){
795  .demo-donut-layout{grid-template-columns:1fr}
796  .demo-bar-v3{grid-template-columns:120px 1fr 48px}
797  .diversity-v3{grid-template-columns:1fr}
798  .reviews-v3{padding:24px 18px}
799  .reviews-title-v3{align-items:flex-start;flex-direction:column}
800  .review-original{padding:22px}
801  .review-top-v3{flex-direction:column;gap:7px}
802  .review-top-actions-v3{width:100%;justify-content:space-between}
803  .rating-row-v3{grid-template-columns:125px 1fr}
804  .review-footer-v3{flex-direction:column;align-items:flex-start}
805  .review-callout-v3{flex-direction:column;align-items:flex-start}
806}
807`,ve=e=>String(e??"").replace(/[&<>"']/g,t=>({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"})[t]),y$=["safety","schools","activities","foodNightlife","transportation","affordability"],Zpe=e=>{const t={};for(const n of(e==null?void 0:e.rows)||[])n.metricKey&&(t[n.metricKey]=n);return t},gi=(e,t)=>{const n=e&&Zpe(e)[t];return n&&n.rawValue!=null?Number(n.rawValue):null},HB=e=>{if(!e||e.valueClass==="unavailable")return null;const t=Number(e.score);return Number.isFinite(t)&&t>0?t:null},Jpe=e=>e==null?"na":e>=3.8?"good":e>=2.8?"mid":"low";function ehe(e,t){const n=HB(t[e]),r=Jpe(n),i=r==="na"?"na-bg":`${r}-bg`,o=n==null?"N/A":(n*2).toFixed(1),a=n==null?"":`<div class="fill ${r}-fill" style="width:${Math.min(100,n*20)}%"></div>`;return`<div><div class="cat-head"><span class="cat-name">${ve(Ai[e])}</span><span class="cat-score ${i}">${o}</span></div><div class="track">${a}</div></div>`}function the(e,t){const n=HB(t[e]),r=n==null?"sn":n>=3.8?"sg":n>=2.8?"sm":"sl",i=n==null?"N/A":(n*2).toFixed(1),o=n==null?"objective data pending":"out of 10";return`<div class="snap-cat ${r}"><small>${ve(Ai[e].toUpperCase())}</small><strong>${i}</strong><span>${o}</span></div>`}const nhe=["#111216","#68c587","#f2c94c","#e97878","#5b9bd5","#a98bc4"],rhe=["#111216","#68c587","#f2c94c","#5b9bd5","#a98bc4"];function ihe(e,t){const n=(e||[]).filter(a=>a.rawValue!=null&&Number(a.rawValue)>0).slice(0,t.length);if(!n.length)return null;const r=n.reduce((a,l)=>a+Number(l.rawValue),0)||1;let i=0;return`conic-gradient(${n.map((a,l)=>{const c=Number(a.rawValue)/r*100,d=`${t[l]} ${i.toFixed(2)}% ${(i+c).toFixed(2)}%`;return i+=c,d}).join(",")})`}function b$(e,t,n){const r=(e||[]).filter(l=>l.rawValue!=null&&Number(l.rawValue)>0).slice(0,t.length);if(!r.length)return`<div class="muted">${ve(n)}</div>`;const i=ihe(e,t),o=r.reduce((l,c)=>l+Number(c.rawValue),0)||1,a=r.map((l,c)=>{const d=Math.round(Number(l.rawValue)/o*1e3)/10;return`<div class="demo-legend-row"><i class="demo-dot" style="background:${t[c]}"></i><span>${ve(l.name)}</span><b>${d}%</b></div>`}).join("");return`<div class="demo-donut-layout"><div class="demo-donut-v3" style="background:${i}"></div><div class="demo-legend-v3">${a}</div></div>`}function ohe(e){const t=(e||[]).filter(p=>p.rawValue!=null);if(!t.length)return'<div class="muted">Age data is not currently available.</div>';const n=[];for(const p of t){const g=String(p.name||"");if(/^75\+|75 ?\+/.test(g)){const v=n[n.length-1];if(v&&/65/.test(v.label)){v.value+=Number(p.rawValue),v.label="65+";continue}}/65/.test(g)?n.push({label:"65+",value:Number(p.rawValue)}):n.push({label:g,value:Number(p.rawValue)})}const r=Math.max(...n.map(p=>p.value),1),i=28,o=176,a=o-i,l=44,c=53,d=n.map((p,g)=>{const v=Math.max(2,p.value/r*a),S=c+g*l,x=o-v;return`<rect x="${S}" y="${x}" width="29" height="${v.toFixed(1)}" rx="4" class="demo-age-bar"/>`}).join(""),f=n.map((p,g)=>`<text transform="translate(${c+g*l+14} 194) rotate(-30)" text-anchor="end">${ve(p.label)}</text>`).join("");return`<div class="demo-chart-box-v3"><svg viewBox="0 0 520 225" role="img" aria-label="Age distribution bar chart">
808    <line x1="42" y1="28" x2="500" y2="28" class="demo-axis-grid"/><line x1="42" y1="70" x2="500" y2="70" class="demo-axis-grid"/><line x1="42" y1="112" x2="500" y2="112" class="demo-axis-grid"/><line x1="42" y1="154" x2="500" y2="154" class="demo-axis-grid"/><line x1="42" y1="176" x2="500" y2="176" stroke="#cfd3d8"/>
809    ${d}<g class="demo-axis-text">${f}</g></svg></div>`}function ahe(e){const t=(e||[]).filter(p=>p.rawValue!=null);if(!t.length)return'<div class="muted">Income distribution is not currently available.</div>';const n=Math.max(...t.map(p=>Number(p.rawValue)),1),r=28,i=176,o=i-r;t.length;const a=25,l=11,c=50,d=t.map((p,g)=>{const v=Math.max(2,Number(p.rawValue)/n*o),S=c+g*(a+l),x=i-v;return`<rect x="${S}" y="${x}" width="${a}" height="${v.toFixed(1)}" rx="3" class="demo-income-bar"/>`}).join(""),f=t.map((p,g)=>`<text transform="translate(${c+g*(a+l)+a/2} 197) rotate(-40)" text-anchor="end">${ve(p.name)}</text>`).join("");return`<div class="demo-chart-box-v3"><svg viewBox="0 0 520 225" role="img" aria-label="Income distribution histogram">
810    <line x1="42" y1="28" x2="500" y2="28" class="demo-axis-grid"/><line x1="42" y1="70" x2="500" y2="70" class="demo-axis-grid"/><line x1="42" y1="112" x2="500" y2="112" class="demo-axis-grid"/><line x1="42" y1="154" x2="500" y2="154" class="demo-axis-grid"/><line x1="42" y1="176" x2="500" y2="176" stroke="#cfd3d8"/>
811    ${d}<g class="demo-axis-text">${f}</g></svg></div>`}function x$(e){const t=(e||[]).filter(r=>r.rawValue!=null);if(!t.length)return'<div class="muted">Data is not currently available.</div>';const n=Math.max(...t.map(r=>Number(r.rawValue)||0),1);return`<div class="demo-bars-v3">${t.map(r=>{const i=Math.min(100,(Number(r.rawValue)||0)/n*100);return`<div class="demo-bar-v3"><span class="lab">${ve(r.name)}</span><div class="bar-track"><div class="bar-fill" style="width:${i}%"></div></div><span class="pct">${ve(r.result)}</span></div>`}).join("")}</div>`}function Sp(e){const t=(e||[]).filter(n=>n&&n.result!=null&&n.result!=="—");return t.length?`<div class="demo-stats-v3">${t.map(n=>`<div class="demo-stat-v3"><strong>${ve(n.result)}</strong><span>${ve(n.name)}</span></div>`).join("")}</div>`:'<div class="muted">Data is not currently available.</div>'}function w$(e,t){const n=(e||[]).filter(r=>r&&r.result!=null&&r.result!=="—");return n.length?`<div class="demo-list-head-v3">${ve(t)}</div><ul class="demo-top-list">${n.map(r=>`<li><span>${ve(r.name)}</span><b>${ve(r.result)}</b></li>`).join("")}</ul>`:""}function she(e){const t=e.crime||{},n=t.rows||[],r=I=>{const z=n.find(F=>new RegExp(I,"i").test(F.name));return z?String(z.result).trim():"—"},i=I=>n.find(F=>new RegExp(I,"i").test(F.name)),o=r("^Overall Crime Grade$"),a=r("^Violent Crime Grade$"),l=r("^Property Crime Grade$"),c=r("^Other Crime Grade$"),d=I=>/^[AB]/.test(String(I)),f=I=>{if(!I)return null;const z=String(I.result||"").replace(/\/1k/i,"").trim().match(/-?\d+(\.\d+)?/);return z?Number(z[0]):null},p=i("Violent Crime Rate"),g=i("Property Crime Rate"),v=i("Other Crime Rate"),S=f(p),x=f(g),y=f(v),w=S!=null||x!=null||y!=null,A=(S||0)+(x||0)+(y||0)||1;let _="";if(w){const I=(S||0)/A*100,z=(x||0)/A*100,F=S!=null?ve(S.toFixed(1)):"—";_=`<div class="crime-donut" style="background:conic-gradient(#ec726f 0 ${I.toFixed(1)}%,#d25c58 ${I.toFixed(1)}% ${(I+z).toFixed(1)}%,#55bd7d ${(I+z).toFixed(1)}% 100%)"><div class="crime-donut-center">${F}<small>incidents /1k</small></div></div>`}else _='<div class="muted">Crime rate breakdown is not currently available.</div>';const j=Math.max(S||0,x||0,y||0,1),k=I=>{if(!I)return"";const z=f(I),F=z!=null?z/j*100:0;return`<div class="rate-row"><b>${ve(I.name)}</b><div class="rate-track"><div class="rate-fill" style="width:${Math.min(100,Math.max(0,F))}%"></div></div><span class="rate-val">${ve(I.result)}</span></div>`},O=t.geoScope&&!/ZCTA|ZIP/.test(t.geoScope)?`<div class="callout">Crime statistics are reported for ${ve(t.geoScope)} because local police do not publish ZIP-code-level crime rates.</div>`:"",T=t.sourceLabel?`<div class="source">Updated ${ve(t.sourceYear||"recent")}<br>${ve(t.sourceLabel)}</div>`:"",N=n.length?'<div class="section-intro">A more visual read of both the crime grades and how incident rates compare.</div>':"";return n.length?`<section class="view section" id="crime">
812    <div class="section-head"><h2>Crime &amp; Safety</h2>${T}</div>
813    ${N}${O}
814    <div class="visual-grid">
815      <div class="visual-card"><h3>Crime grades</h3><div class="crime-grades" style="margin-top:20px">
816        <div class="crime-grade"><small>Overall</small><div class="grade-circle${d(o)?" good":""}">${ve(o)}</div></div>
817        <div class="crime-grade"><small>Violent</small><div class="grade-circle${d(a)?" good":""}">${ve(a)}</div></div>
818        <div class="crime-grade"><small>Property</small><div class="grade-circle${d(l)?" good":""}">${ve(l)}</div></div>
819        <div class="crime-grade"><small>Other</small><div class="grade-circle${d(c)?" good":""}">${ve(c)}</div></div>
820      </div></div>
821      <div class="visual-card"><h3>Crime mix</h3><div class="muted">Visual share of reported incident categories</div><div class="crime-donut-wrap">${_}</div></div>
822    </div>
823    <div class="visual-card" style="margin-top:24px"><div class="rate-list" style="margin-top:0"><h3>Rates per 1,000 residents</h3>${k(p)}${k(g)}${k(v)}</div></div>
824  </section>`:`<section class="view section" id="crime"><div class="section-head"><h2>Crime &amp; Safety</h2>${T}</div><div class="muted">${ve(t.availabilityNote||"Reliable crime data is not currently available for this area.")}</div></section>`}function lhe(e,t){const n=e.schools||{},r=n.schools||[],i=n.sourceLabel?`<div class="source">Updated ${ve(n.sourceYear||"recent")}<br>${ve(n.sourceLabel)}</div>`:`<div class="source">Data as of ${ve(n.sourceYear||"2026")}</div>`;if(!r.length)return`<section class="view section" id="schools"><div class="section-head"><h2>Schools</h2>${i}</div><div class="muted">${ve(n.availabilityNote||"School data is not currently available for this area.")}</div></section>`;
824const o='<div class="section-intro">Nearby rated public schools shown by level, with a visual rating ring for faster scanning.</div>',a=r.slice(0,6).map(l=>{const c=l.schoolType?l.schoolType.charAt(0).toUpperCase()+l.schoolType.slice(1):"School",d=l.gradeRange?`Grades ${ve(l.gradeRange)}`:l.gradesServed?ve(l.gradesServed):"",f=l.distanceMiles!=null?`${Number(l.distanceMiles).toFixed(1)} miles`:"",p=Number(l.rating),g=Number.isFinite(p)&&p>0,v=g?`<div class="ring" style="--p:${Math.min(100,p/10*100)}%"><strong>${p.toFixed(0)}/10</strong></div>`:"",S=l.isUnavailable||!g?'<div class="muted" style="margin-top:22px">Rating not available</div>':`<div class="school-rating">${v}<div class="school-meta"><b>SchoolDigger rating</b><span>Nearby public school</span></div></div>`;return`<div class="school"><span class="school-type">${ve(c)}</span><h3>${ve(l.name)}</h3><p>${[d,f].filter(Boolean).join(" · ")||"—"}</p>${S}</div>`}).join("");return`<section class="view section" id="schools"><div class="section-head"><h2>Schools</h2>${i}</div>${o}<div class="schools">${a}</div></section>`}function uhe(e,t){const n=e.housing||{},r=gi(n,"ownerOccupied"),i=gi(n,"renterOccupied"),o=gi(n,"housingCostBurden"),a=t.medianRent??gi(n,"medianRent"),l=t.medianHomeValue??gi(n,"medianHomeValue"),c=t.medianHouseholdIncome??gi(n,"medianHouseholdIncome"),d=n.sourceLabel?`<div class="source">Updated ${ve(n.sourceYear||"recent")}<br>${ve(n.sourceLabel)}</div>`:"",f='<div class="section-intro">Tenure and affordability presented visually instead of as a list of raw numbers.</div>';let p='<div class="visual-card"><h3>Owner vs. renter occupancy</h3><div class="muted">Share of occupied homes</div><div class="muted" style="margin-top:18px">Occupancy data is not currently available.</div></div>';if(r!=null||i!=null){const x=r??0,y=i??0,w=x+y||1,A=x/w*100;p=`<div class="visual-card"><h3>Owner vs. renter occupancy</h3><div class="muted">Share of occupied homes</div>
825      <div class="donut-wrap"><div class="donut" style="background:conic-gradient(#20303a 0 ${A.toFixed(1)}%,#73c4aa ${A.toFixed(1)}% 100%)"></div>
826      <div class="legend"><div class="legend-row"><i class="swatch" style="background:#20303a"></i>Owner occupied<b>${x.toFixed(1)}%</b></div><div class="legend-row"><i class="swatch" style="background:#73c4aa"></i>Renter occupied<b>${y.toFixed(1)}%</b></div></div></div></div>`}const g=(x,y,w,A)=>`<div class="cost-row"><div class="label"><span>${ve(x)}</span><strong>${ve(y)}</strong></div><div class="cost-track"><span style="width:${Math.min(100,Math.max(0,w))}%;background:${A}"></span></div></div>`,S=o!=null||a!=null||l!=null||c!=null?`<div class="visual-card"><h3>Housing costs</h3><div class="muted">Relative scale of the main affordability measures</div><div class="cost-bars">
827      ${o!=null?g("Housing cost burden",`${o.toFixed(1)}%`,o,"#ec726f"):""}
828      ${a!=null?g("Median rent",$r(a),a/4500*100,"#e5b94c"):""}
829      ${l!=null?g("Median home value",$r(l),l/15e5*100,"#111318"):""}
830      ${c!=null?g("Median household income",$r(c),c/265e3*100,"#55bd7d"):""}
831    </div></div>`:'<div class="visual-card"><h3>Housing costs</h3><div class="muted">Housing cost data is not currently available.</div></div>';return`<section class="view section" id="housing"><div class="section-head"><h2>Housing</h2>${d}</div>${f}
832    <div class="housing-layout">${p}${S}</div></section>`}function che(e,t){const n=e.transportation||{},r=gi(n,"averageCommute"),i=gi(n,"publicTransportation"),o=gi(n,"walkedToWork"),a=gi(n,"workedFromHome"),l=n.sourceLabel?`<div class="source">Updated ${ve(n.sourceYear||"recent")}<br>${ve(n.sourceLabel)}</div>`:"",c='<div class="section-intro">Commute behavior and travel patterns summarized with large visual comparisons.</div>',d=(S,x,y)=>`<div class="transport-kpi"><span>${ve(S)}</span><strong>${x==null?"—":ve(x)}${y||""}</strong></div>`,f=S=>S==null?"—":`${Number(S).toFixed(1)}%`,p=(S,x)=>`<div class="transport-row"><b>${ve(S)}</b><div class="track"><div class="dark-fill" style="width:${Math.min(100,x||0)}%"></div></div><strong>${f(x)}</strong></div>`,g=(S,x)=>`<div class="transport-mini"><strong>${f(S)}</strong><span>${ve(x)}</span></div>`;return r!=null||i!=null||o!=null||a!=null?`<section class="view section" id="transportation"><div class="section-head"><h2>Transportation</h2>${l}</div>${c}
833    <div class="transport-kpis">${d("Average commute",r!=null?Math.round(r):null," min")}${d("Public transit",i,"%")}
833${d("Work from home",a,"%")}</div>
834    <div class="visual-card"><h3>How people get to work</h3>${p("Public Transportation",i)}${p("Walked to Work",o)}${p("Worked from Home",a)}
835      <div class="transport-compare">${g(i,"Transit")}${g(o,"Walking")}${g(a,"Remote")}</div>
836    </div>
837  </section>`:`<section class="view section" id="transportation"><div class="section-head"><h2>Transportation</h2>${l}</div><div class="muted">${ve(n.availabilityNote||"Transportation data is not currently available for this area.")}</div></section>`}function dhe(e,t){const n=e.demographics||{},r=p=>n[p]||{},i=Object.values(n).some(p=>(p.rows||[]).length),o=r("demo_population"),a=o.sourceLabel?`<div class="source">Updated ${ve(o.sourceYear||"recent")}<br>${ve(o.sourceLabel)}</div>`:"";if(!i)return`<section class="view section" id="demographics"><div class="section-head"><h2>Demographics</h2>${a}</div><div class="demo-card-v3 full">Detailed demographics are being enriched for this area. Please check back shortly.</div></section>`;const l=(r("demo_languages").rows||[]).filter(p=>p.metricKey!=="englishLessThanVeryWell"),c=(r("demo_languages").rows||[]).find(p=>p.metricKey==="englishLessThanVeryWell"),d=r("demo_diversity").rows||[],f=d.length?`<div class="diversity-v3">${d.map(p=>{const g=Number(p.rawValue)||0;return`<div class="diversity-card-v3"><strong>${ve(p.result)}</strong><span>${ve(p.name)}</span><div class="diversity-track-v3"><i style="width:${Math.min(100,g*10)}%"></i></div></div>`}).join("")}</div>`:"";return`<section class="view section" id="demographics"><div class="section-head"><h2>Demographics</h2>${a}</div>
838    <div class="demo-grid-v3">
839      <article class="demo-card-v3"><h3>Population</h3><p class="demo-sub">U.S. Census ACS · ZCTA ${ve(t.zipCode)}</p>${Sp(o.rows)}</article>
840      <article class="demo-card-v3"><h3>Race &amp; Ethnicity</h3><p class="demo-sub">Share of total population</p>${b$(r("demo_race").rows,nhe,"Race & ethnicity data is not currently available.")}</article>
841      <article class="demo-card-v3"><h3>Languages Spoken</h3><p class="demo-sub">Population 5 years and over</p>${b$(l,rhe,"Language data is not currently available.")}${c?`<div class="muted" style="margin-top:12px">Speak English less than “very well”: ${ve(c.result)}</div>`:""}</article>
842      <article class="demo-card-v3"><h3>Age Distribution</h3><p class="demo-sub">Residents by age band</p>${ohe(r("demo_age").rows)}</article>
843      <article class="demo-card-v3"><h3>Education</h3><p class="demo-sub">Highest attainment, adults 25+</p>${x$(r("demo_education").rows)}</article>
844      <article class="demo-card-v3"><h3>Income</h3><p class="demo-sub">Household earnings &amp; distribution</p>${Sp(r("demo_income").rows)}${ahe(r("demo_income_dist").rows)}</article>
845      <article class="demo-card-v3"><h3>Housing</h3><p class="demo-sub">Tenure, value, and vacancy</p>${Sp(r("demo_housing").rows)}</article>
846      <article class="demo-card-v3"><h3>Families</h3><p class="demo-sub">Household &amp; family composition</p>${x$(r("demo_families").rows)}</article>
847      <article class="demo-card-v3"><h3>Employment</h3><p class="demo-sub">Workforce, industries, and occupations</p>${Sp(r("demo_employment").rows)}${w$(r("demo_industries").rows,"Top industries")}${w$(r("demo_occupations").rows,"Top occupations")}</article>
848      ${f?`<article class="demo-card-v3 full"><h3>Diversity Score</h3><p class="demo-sub">Entropy-based diversity (0–10). Descriptive only — not part of the area score.</p>${f}</article>`:""}
849    </div>
850    <div class="muted" style="margin-top:16px">Race, ethnicity, and language are descriptive census attributes and are never rated or included in the area score.</div>
851  </section>`}function fhe(e){const t=Number(e);return Number.isFinite(t)?t>=4?"good":t>=2.5?"mid":"bad":"mid"}function phe(e){const t=Number(e);if(!Number.isFinite(t)||t<=0)return Array.from({length:10},()=>"<i></i>").join("");const n=Math.round(t/5*10),r=t>=4?"good":t>=2.5?"mid":"bad";return Array.from({length:10},(i,o)=>o<n?`<i class="${r}"></i>`:"<i></i>").join("")}function hhe(e,t){var x,y;const n=e.area,r=[...e.reviews||[]].sort((w,A)=>w.sourceType===A.sourceType?Date.parse(A.createdAt||0)-Date.parse(w.createdAt||0):w.sourceType==="publicDiscussion"?1:-1),i=e.starterPerspectives||[],o=[...r,...i.map(w=>({...w,sourceType:w.sourceType||"aiStarter",id:`sp-${w.id||Math.random()}`}))],a=w=>{try{return new Date(w).toLocaleDateString("en-US",{month:"long",year:"numeric"})}catch{return""}},l=o.map(w=>{var U,G;const A=w.sourceType==="publicDiscussion",_=w.sourceType==="aiStarter"||w.sourceType==="uploadedStarter",j=A?"Public discu
851ssion":_?"RMA analysis":"Overall",k=fhe(w.overallScore),O=w.overallScore!=null?(Number(w.overallScore)*2).toFixed(1):"—",T=(w.categoryRatings||[]).filter(Z=>Z&&Z.category),N=T.length?`<div class="review-ratings-v3">${T.map(Z=>`<div class="rating-row-v3"><span>${ve(Ai[Z.category]||Z.category)}</span><span class="segment-bar-v3">${phe(Z.score)}</span></div>`).join("")}</div>`:"",I=[];!A&&!_?(I.push(`<span class="reviewer-badge-v3">ZIP ${ve(n.zipCode)}</span>`),I.push('<span class="reviewer-badge-v3">Resident review</span>'),w.yearsInArea&&I.push(`<span class="reviewer-badge-v3">Lived here ${ve(w.yearsInArea)} year${w.yearsInArea===1?"":"s"}</span>`)):A?(I.push('<span class="reviewer-badge-v3">Cited public discussion</span>'),I.push('<span class="reviewer-badge-v3">Not a resident review</span>')):I.push(`<span class="reviewer-badge-v3">${ve(w.label||"AI-generated starter perspective")}</span>`);const z=A?"Summary of cited public discussions":`${_?"RMA analysis":"Resident review"} · ${ve(n.name)}`,F=((U=t.helpfulCounts)==null?void 0:U[w.id])??w.helpfulCount??0,D=!!((G=t.helpfulActive)!=null&&G[w.id]),L=A?w.sourceUrl?`<div class="review-actions-v3"><button data-action="source" data-url="${ve(w.sourceUrl)}">View source</button></div>`:"":`<div class="review-actions-v3"><button data-action="helpful" data-review-id="${ve(w.id)}">${D?"Helpful ✓":`Helpful ${F}`}</button><button data-action="report" data-review-id="${ve(w.id)}">Report</button></div>`;return`<article class="review-original" data-source-type="${A?"public":"resident"}">
852      <div class="review-score-v3"><small>${ve(j)}</small><div class="review-score-box-v3 ${k}">${O}</div></div>
853      <div class="review-main-v3">
854        <div class="review-top-v3"><h3>${ve(w.title||"Review")}</h3><div class="review-top-actions-v3"><div class="review-date-v3">${ve(a(w.createdAt||w.generatedAt))}</div><button class="review-share-v3" data-action="share">↗ Share</button></div></div>
855        <div class="reviewer-badges-v3">${I.join("")}</div>
856        <p class="review-body-v3">${ve(w.body||"")}</p>
857        ${N}
858        <div class="review-footer-v3"><div class="review-meta-v3">${z}</div>${L}</div>
859      </div>
860    </article>`}).join(""),c=Math.max(0,Number(n.reviewCount)||0),d=Number(n.residentReviewScore),f=o.filter(w=>w.sourceType!=="publicDiscussion"),p=c>0&&Number.isFinite(d)&&d>0?d:f.length?f.reduce((w,A)=>w+Number(A.overallScore||0),0)/f.length:null,g=(((x=e.summary)==null?void 0:x.mostMentionedPositives)||[]).slice(0,3),v=(((y=e.summary)==null?void 0:y.mostMentionedNegatives)||[]).slice(0,3),S=(w,A)=>`<div class="mention-v3 ${A}"><span>${ve(w.label)}</span><b>${w.count} mention${w.count===1?"":"s"}</b></div>`;return`<section class="review-summary-v3">
861    <article class="review-summary-card-v3"><h3>Community rating</h3><div class="community-rating-v3"><strong>${p!=null?(p*2).toFixed(1):"—"}</strong><span>/ 10 · from ${c} review${c===1?"":"s"}</span></div></article>
862    <article class="review-summary-card-v3"><h3>Most mentioned positives</h3><div class="mention-list-v3">${g.length?g.map(w=>S(w,"good")).join(""):'<div class="muted">Not enough reviews yet</div>'}</div></article>
863    <article class="review-summary-card-v3"><h3>Most mentioned drawbacks</h3><div class="mention-list-v3">${v.length?v.map(w=>S(w,"bad")).join(""):'<div class="muted">Not enough reviews yet</div>'}</div></article>
864  </section>
865  <section class="reviews-v3">
866    <div class="reviews-title-v3"><h2>Reviews</h2><div class="filter-pills-v3"><button class="filter-v3 active" data-action="filter" data-filter="all">All</button><button class="filter-v3" data-action="filter" data-filter="resident">Area reviews</button><button class="filter-v3" data-action="filter" data-filter="public">Public discussions</button></div></div>
867    <div class="reviews-scrollbox-v3" id="reviewsBox">${l||'<div class="muted">No reviews yet. Be the first to share your experience.</div>'}</div>
868    <section class="review-callout-v3"><div><h3>Review ${ve(n.name)}</h3><p>Share your experience as a resident, renter, homeowner, parent, or commuter.</p></div><div class="hero-actions"><button class="btn dark" data-action="rate">${t.hasCurrentUserReview?"Edit your review":"Write a review"}</button><button class="btn" data-action="guidelines">Review guidelines</button></div></section>
869  </section>`}function mhe(e){const t=Array.isArray(e==null?void 0:e.nearbyAlternatives)?e.nearbyAlternatives:[];return t.length?`<section class="alts"><h2>Nearby alternatives</h2><p>Similar areas worth comparing.</p><div class="alt-grid">${t.slice(0,3).map(r=>{const i=Number(r.overallScore),o=r.overallScore!=null&&Number.isFinite(i)&&i>0;return`<div class="alt"${r.slug?` data-action="nearby" data-slug="${ve(r.slug)}"`:""}><h3>${ve(r.name)}</h3><p>${ve(r.reason||"")}</p>${o?`<p style="margin-top:8px;font-weight:900">Score ${(i*2).toFixed(1)}/10</p>`:""}</div>`}).join("")}</div></section>`:""}function ghe(e,t={}){const n=e.area,r=e.categoryScores||{},i=e.summary||{},o=e.tabData||{},a=!!e.simpleMode,l=n.overallScore!=null&&Number(n.overallScore)>0,d=(n.scoreGate||"ready")==="loading",f=l?(Number(n.overallScore)*2).toFixed(1):"—",p=d?"Calculating area score":l?cm(Number(n.overallScore)*2):"Insufficient data",g=Math.max(0,Number(n.reviewCount)||0),v=d?"Objective area data is being populated.":l?`Based on data and ${g} review${g===1?"":"s"}`:"An objective Area Score is not yet available.",S=d?'<span class="inline-block" style="display:inline-block;width:48px;height:48px;border:4px solid #e2e5ea;border-top-color:#111318;border-radius:50%;animation:rma-v3-spin 1s linear infinite"></span>':`<div class="big-score"><strong>${ve(f)}</strong><span>/10</span></div>`,x=n.updatedAt?new Date(n.updatedAt).toLocaleDateString("en-US",{month:"long",year:"numeric"}
869):"",y=n.population!=null?Number(n.population).toLocaleString():"—",w=n.averageCommuteMinutes!=null?`${Math.round(n.averageCommuteMinutes)} min`:"—",A=(i.strengths||[]).slice(0,3),_=(i.tradeoffs||[]).slice(0,3),j=[...A.map(U=>`<p class="point"><strong>Strength:</strong> ${ve(U)}</p>`),..._.map(U=>`<p class="point"><strong>Tradeoff:</strong> ${ve(U)}</p>`)].join("")||'<p class="point">A summary is not yet available for this area.</p>',k=y$.map(U=>ehe(U,r)).join(""),O=y$.map(U=>the(U,r)).join(""),T=`<section class="view active section" id="overview">
870    <div class="section-head"><h2>Area Overview</h2>${x?`<div class="source">Updated ${ve(x)}</div>`:""}</div>
871    <div class="headline-metrics">
872      <div class="metric"><div class="eyebrow">Population</div><strong>${ve(y)}</strong><small>2023 estimate</small></div>
873      <div class="metric"><div class="eyebrow">Median rent</div><strong>${ve($r(n.medianRent))}</strong><small>Monthly</small></div>
874      <div class="metric"><div class="eyebrow">Home value</div><strong>${ve($r(n.medianHomeValue))}</strong><small>Median</small></div>
875      <div class="metric"><div class="eyebrow">Commute</div><strong>${ve(w)}</strong><small>Average</small></div>
876      <div class="metric"><div class="eyebrow">Median income</div><strong>${ve($r(n.medianHouseholdIncome))}</strong><small>Household</small></div>
877    </div>
878    <div class="summary-block">
879      <div class="summary-copy"><h3>Should you move here?</h3><p>${ve(i.summary||"A summary is not yet available for this area.")}</p></div>
880      <div class="glance"><h3>At a glance</h3>${j}</div>
881    </div>
882  </section>`,N=a?"":`${T}${she(o)}${lhe(o)}${uhe(o,n)}${che(o)}${dhe(o,n)}`,I=a?"":`<nav class="tabs">
883    <button class="tab active" data-view="overview">Overview</button>
884    <button class="tab" data-view="crime">Crime &amp; Safety</button>
885    <button class="tab" data-view="schools">Schools</button>
886    <button class="tab" data-view="housing">Housing</button>
887    <button class="tab" data-view="transportation">Transportation</button>
888    <button class="tab" data-view="demographics">Demographics</button>
889  </nav>`,z=a?"":`<section class="score-card">
890    <aside class="overall"><button class="share-round" id="scoreShare" data-action="share">↗</button>
891      <div class="overall-inner"><div class="kicker">Overall Area Score</div>${S}<div class="grade">${ve(p)}</div><div class="based">${ve(v)}</div></div>
892    </aside>
893    <div class="score-right"><div class="cat-grid">${k}</div>
894      <div class="method"><span>Calculated from objective area data and resident reviews.</span>
895        <span class="info-wrap" id="infoWrap"><button class="info-btn" id="infoBtn">i</button>
896          <span class="tooltip"><strong>How the score works</strong><span>Rate My Area combines objective category data into the Area Score. Resident reviews start with a small influence and increase with sample size, capped at 15%. Categories without reliable data are excluded rather than estimated.</span></span>
897        </span>
898      </div>
899    </div>
900  </section>`,F=hhe(e,t),D=a?"":mhe(i),L=a?"Community reviews only.":"Demographic attributes are descriptive only and are never included in the area score.",B=`<div class="backdrop" id="shareModal"><div class="modal">
901    <div class="modal-head"><strong>Share area snapshot</strong><button class="close" id="closeModal" data-action="closeModal">×</button></div>
902    <div class="snapshot-frame"><div class="snapshot">
903      <div class="snap-top"><div class="lockup"><div class="logo">RMA</div><div class="brand-tag">REAL DATA. REAL PEOPLE.<br>A BRIGHTER MOVE.</div></div><div class="snap-loc">${ve((n.city||n.name||"").toUpperCase())} ${ve(n.state||"")} ${ve(n.zipCode||"")}</div></div>
904      <div class="snap-title-row"><div><h2>${ve(n.name)}</h2><div class="snap-sub">${ve(n.zipCode||"")} · ${ve(n.county||"")}${n.county?", ":""}${ve(n.state||"")}</div></div>
905        <div class="snap-scorebox"><small>OVERALL AREA SCORE</small><div class="snap-score"><strong>${ve(f)}</strong><span>/10</span></div><div class="snap-grade">${ve(p)}</div></div></div>
906      <div class="snap-grid">${O}</div>
907      <div class="cta"><div><small>See the full area breakdown</small><strong>RateMyArea.com</strong></div><span>→</span></div>
908    </div></div>
909    <div class="modal-actions"><button class="primary" data-action="shareApps">↗ Share to apps</button><button data-action="copyLink">⧉ Copy link</button><button data-action="closeModal">Close</button></div>
910  </div></div>`;return`<style>@keyframes rma-v3-spin{to{transform:rotate(360deg)}}</style>
911  <main class="page">
912    <div class="back" data-action="back">← Back to search</div>
913    <section class="hero"><div><h1>${ve(n.zipCode)} — ${ve(n.name)}</h1><div class="sub">${ve(n.county?`${n.county}, `:"")}${ve(n.state||"")}</div></div>
914      <div class="hero-actions"><button class="btn yellow" data-action="rate">Rate this area</button><button class="btn share" data-action="share" id="heroShare">↗ Share</button></div>
915    </section>
916    ${z}
917    ${I}
918    <div class="content">${N}</div>
919    ${F}
920    ${D}
920
921    <div class="footer-note">${ve(L)}</div>
922  </main>
923  ${B}`}function vhe({page:e,service:t,callbacks:n,onReload:r,simpleMode:i}){const o=P.useRef(null),[a,l]=P.useState(!1),[c,d]=P.useState(null),[f,p]=P.useState(e.currentUserReview||null),[g,v]=P.useState(!!e.isSaved),[S,x]=P.useState(()=>Object.fromEntries((e.reviews||[]).map(re=>[re.id,re.helpfulCount||0]))),[y,w]=P.useState(()=>Object.fromEntries((e.reviews||[]).map(re=>[re.id,re.userHelpfulVote==="helpful"]))),[A,_]=P.useState({}),[j,k]=P.useState(!1),[O,T]=P.useState(null),[N,I]=P.useState(!1),[z,F]=P.useState(!1),{toast:D}=Qa(),L=n.navigate||{},B=e.area,U=B.slug||B.zipCode||"",G=`rma_review_draft_${B.id}`;P.useEffect(()=>{p(e.currentUserReview||null)},[e.currentUserReview]),P.useEffect(()=>{try{const re=localStorage.getItem(G);if(re&&!e.currentUserReview){const ce=JSON.parse(re);d(ce),l(!0)}}catch{}},[G,e.currentUserReview]);const Z=!!e.isAuthenticated,Y=re=>{var ce,oe,ae;((ce=re==null?void 0:re.response)==null?void 0:ce.status)===401?L.navigateToLogin&&L.navigateToLogin(`/area/${U}`):D({variant:"destructive",title:"Action failed",description:((ae=(oe=re==null?void 0:re.response)==null?void 0:oe.data)==null?void 0:ae.error)||(re==null?void 0:re.message)||"Please try again."})},ee=()=>{f&&d({...f,reviewId:f.id}),l(!0)},R=async re=>{var pe,te;if(!Z){try{localStorage.setItem(G,JSON.stringify(re))}catch{}D({title:"Sign in to submit your review — your draft is saved."}),L.navigateToRegister?L.navigateToRegister(`/area/${U}`):L.navigateToLogin&&L.navigateToLogin(`/area/${U}`);return}const ce=(c==null?void 0:c.reviewId)||null,oe=ce?await t.updateReview(ce,re):await t.submitReview({areaId:B.id,...re}),ae=ce||oe.reviewId||((pe=oe.review)==null?void 0:pe.id)||null;p(ae?{id:ae,...re,status:oe.status||((te=oe.review)==null?void 0:te.status)||"pending"}:f);try{localStorage.removeItem(G),d(null)}catch{}D({title:ce?"Your review changes were submitted for moderation.":oe.message||"Your review was submitted for moderation."})},q=async re=>{if(A[re])return;const ce=!y[re];_(oe=>({...oe,[re]:!0}));try{const oe=await t.toggleHelpfulVote(re,ce);x(ae=>({...ae,[re]:oe.helpfulCount})),w(ae=>({...ae,[re]:!!oe.active}))}catch(oe){Y(oe)}finally{_(oe=>({...oe,[re]:!1}))}},V=async({reason:re,details:ce})=>{if(!(!O||N)){I(!0);try{await t.reportReview(O.id,re,ce),D({title:"Report submitted",description:"Thanks for helping keep reviews useful."}),T(null)}catch(oe){Y(oe)}finally{I(!1)}}},M=ghe(e,{helpfulCounts:S,helpfulActive:y,hasCurrentUserReview:!!f});return P.useEffect(()=>{const re=o.current;if(!re)return;const ce=[...re.querySelectorAll(".tab")],oe=[...re.querySelectorAll(".view")],ae=ce.map(Ce=>{const ze=()=>{ce.forEach(Ze=>Ze.classList.remove("active")),oe.forEach(Ze=>Ze.classList.remove("active")),Ce.classList.add("active");const Ke=re.querySelector(`#${Ce.dataset.view}`);Ke&&Ke.classList.add("active")};return Ce.addEventListener("click",ze),[Ce,ze]}),pe=re.querySelector("#infoWrap"),te=re.querySelector("#infoBtn"),xe=Ce=>{Ce.stopPropagation(),pe==null||pe.classList.toggle("open")},je=()=>pe==null?void 0:pe.classList.remove("open");te==null||te.addEventListener("click",xe),document.addEventListener("click",je);const se=re.querySelector("#shareModal"),Qe=()=>se==null?void 0:se.classList.add("show"),ge=()=>se==null?void 0:se.classList.remove("show"),Ae=Ce=>{Ce.target===se&&ge()},_e=[...re.querySelectorAll('[data-action="filter"]')],Fe=_e.map(Ce=>{const ze=()=>{_e.forEach(Tt=>Tt.classList.remove("active")),Ce.classList.add("active");const Ke=Ce.dataset.filter;[...re.querySelectorAll("#reviewsBox .review-original")].forEach(Tt=>{const Bt=Tt.dataset.sourceType;Tt.style.display=Ke==="all"||Bt===Ke?"":"none"})};return Ce.addEventListener("click",ze),[Ce,ze]}),et=Ce=>{var Ze;const ze=Ce.target.closest("[data-action]");if(!ze)return;const Ke=ze.dataset.action;if(Ke==="back")L.navigateHome&&L.navigateHome();else if(Ke==="rate")ee();else if(Ke==="share")Qe();else if(Ke==="closeModal")ge();else if(Ke==="guidelines")F(!0);else if(Ke==="helpful")q(ze.dataset.reviewId);else if(Ke==="report"){const Tt=(e.reviews||[]).find(Bt=>Bt.id===ze.dataset.reviewId);Tt&&T(Tt)}else Ke==="nearby"?L.navigateToArea&&L.navigateToArea(ze.dataset.slug):Ke==="source"?ze.dataset.url&&window.open(ze.dataset.url,"_blank","noopener,noreferrer"):Ke==="copyLink"?(Ze=navigator.clipboard)==null||Ze.writeText(window.location.href).then(()=>D({title:"Link copied"})).catch(()=>{}):Ke==="shareApps"&&(navigator.share?navigator.share({title:B.name,url:window.location.href}).catch(()=>{}):D({title:"Link copied",description:"Share this area with anyone."}))};return re.addEventListener("click",et),se==null||se.addEventListener("click",Ae),()=>{ae.forEach(([Ce,ze])=>Ce.removeEventListener("click",ze)),Fe.forEach(([Ce,ze])=>Ce.removeEventListener("click",ze)),te==null||te.removeEventListener("click",xe),document.removeEventListener("click",je),re.removeEventListener("click",et),se==null||se.removeEventListener("click",Ae)}},[M,B.id]),h.jsxs("div",{className:"rma-v3-root",ref:o,children:[h.jsx("style",{children:Qpe}),h.jsx("div",{dangerouslySetInnerHTML:{__html:M}}),h.jsx(qB,{open:a,area:B,onClose:()=>l(!1),onSubmit:R,draft:c},c?`draft-${B.id}`:`fresh-${B.id}`),h.jsx(jA,{open:!!O,onOpenChange:re=>{re||T(null)},onSubmit:V,busy:N}),h.jsx(tu,{open:z,onOpenChange:F,children:h.jsxs(os,{className:"max-w-lg",children:[h.jsxs(as,{children:[h.jsx(ss,{children:"Review guidelines"}),h.jsx(ls,{children:"Help other people by sharing specific, firsthand experience."})]}),h.jsxs("div",{className:"space-y-3 text-sm text-muted-foreground",children:[h.jsxs("p",{children:[h.jsx("strong",{className:"text-foreground",children:"Be firsthand."})," Review places you have actually lived in, rented in, owned in, parented in, or regularly commuted through."]}),h.jsxs("p",{children:[h.jsx("strong",{className:"text-foreground",children:"Be specific."})," Explain what worked or did not work for you instead of posting vague praise or criticism."]}),h.jsxs("p",{children:[h.jsx("strong",{className:"text-foreground",children:"Protect privacy."})," Do not include private addresses, phone numbers, or identifying information about other people."]}),h.jsxs("p",{children:[h.jsx("strong",{className:"text-foreground",children:"Keep it civil and accurate."})," No harassment, spam, fabricated claims, or discriminatory attacks."]}),h.jsx("p",{children:"Reviews may be moderated before publication and may be removed if they violate these guidelines."})]})]})})]})}const CA="rma_compare_areas",WB=4,yhe=e=>e&&typeof e=="object"&&typeof e.areaId=="string"&&e.areaId.trim(),Yh=()=>{try{const e=JSON.parse(localStorage.getItem(CA)||"[]");if(!Array.isArray(e))return[];const t=new Set,n=[];for(const r of e)!yhe(r)||t.has(r.areaId)||(t.add(r.areaId),n.push(r));return n.slice(-WB)}catch{return[]}},VB=e=>{try{return localStorage.setItem(CA,JSON.stringify(e)),!0}catch{return!1}},bhe=()=>Yh(),xhe=e=>{if(!(e!=null&&e.id))return{list:Yh(),added:!1};const t=Yh();if(t.some(o=>o.areaId===e.id))return{list:t,added:!1};const n={areaId:e.id,slug:e.slug,zipCode:e.zipCode,name:e.name,state:e.state,city:e.city,addedAt:Date.now()},r=[...t,n].slice(-WB),i=VB(r);return{list:i?r:t,added:i}},whe=e=>{const t=Yh(),n=t.filter(r=>r.areaId!==e);return VB(n)?n:t},She=()=>{try{return localStorage.removeItem(CA),!0}catch{return!1}}
923,_he={census:"census-acs-2024-v1",crime:"zyla-crime-v1",schools:"schooldigger-exact-join-v5",summary:"ai-summary-v1",categoryScores:"deterministic-affordability-simple-v3"},KB={census:["census-acs-2024-v1","census-acs-place-fallback-v3","census-acs-place-fallback-v2"],crime:["zyla-crime-v1","zyla-crime-v2"],schools:["schooldigger-exact-join-v5","schooldigger-v2"],summary:["ai-summary-v1"],categoryScores:["deterministic-affordability-simple-v3"]};function GB(e,t){const n=e==null?void 0:e.sectionVersions;if(!n||typeof n!="object"||Array.isArray(n))return null;const r=n[t];return typeof r=="string"&&r?r:null}function Ahe(e,t){const n=GB(e,t);return n?(KB[t]||[]).includes(n):!1}function Ehe(e){const t=[];for(const n of Object.keys(_he)){const r=GB(e,n);r&&!(KB[n]||[]).includes(r)&&t.push(n)}return t}const khe=["safety","schools","activities","foodNightlife","transportation","affordability"];function Ohe(e){var o,a,l,c,d,f,p,g,v,S,x,y;if(!e||e.simpleMode)return[];const t=e.tabData||{},n=t.demographics||{},r=[];(a=(o=t.crime)==null?void 0:o.rows)!=null&&a.length||r.push("crime"),(c=(l=t.schools)==null?void 0:l.schools)!=null&&c.length||r.push("schools"),(!((f=(d=n.demo_population)==null?void 0:d.rows)!=null&&f.length)||!((g=(p=t.housing)==null?void 0:p.rows)!=null&&g.length)||!((S=(v=t.transportation)==null?void 0:v.rows)!=null&&S.length))&&r.push("census"),(x=e.summary)!=null&&x.summary||r.push("summary"),khe.some(w=>{var A;return!((A=e.categoryScores)!=null&&A[w])})&&r.push("categoryScores");const i=e==null?void 0:e.area;if(i){const w=i.sectionBackfill||{};for(const A of Ehe(i))r.push(A);for(let A=r.length-1;A>=0;A--){const _=r[A];Ahe(i,_)&&((y=w[_])==null?void 0:y.status)==="succeeded"&&r.splice(A,1)}}return[...new Set(r)]}function Phe(e){const t=Array.isArray(e==null?void 0:e.missing)?e.missing:[],n=(e==null?void 0:e.status)==="complete"||(e==null?void 0:e.status)==="settled";return{missing:t,finished:n,nextRetryAt:(e==null?void 0:e.nextRetryAt)||null,inProgress:!!(e!=null&&e.inProgress)}}function jhe(e){let t=null;return()=>(t||(t=e()),t)}const Che=750,yw=[1e3,2e3,3e3],nc=5e3,The=300*1e3,Nhe=600*1e3,Rhe=e=>{var n;const t=(n=e==null?void 0:e.response)==null?void 0:n.status;return!t&&(e!=null&&e.message)?/5\d{2}|network|timeout|fetch|rate limit/i.test(e.message):t===429||t>=500||t===530},S$=async e=>{var n;let t;for(let r=0;r<=yw.length;r++)try{return await e()}catch(i){if(t=i,((n=i==null?void 0:i.response)==null?void 0:n.status)===404)throw i;if(r<yw.length&&Rhe(i)){await new Promise(o=>setTimeout(o,yw[r]));continue}throw i}throw t};function _$(){var f,p,g,v,S,x,y;const{slugOrZip:e=""}=im(),t=Ja(),[n,r]=P.useState({phase:"loading",page:null,alternatives:[],error:""}),[i,o]=P.useState(0),[a,l]=P.useState(!1);P.useEffect(()=>{let w=!0,A=null;const _=()=>{A&&(clearTimeout(A),A=null)},j=()=>{_();const T=Date.now(),N=async()=>{if(w){if(Date.now()-T>Nhe){_(),r({phase:"failed",page:null,alternatives:[],error:"Generation timed out. Please try searching again."});return}try{const I=await mn.getAreaPage(e);if(!w)return;if(I.status==="ready"){_(),r({phase:"ready",page:I,alternatives:[],error:""});return}if(I.status==="failed"){_(),r({phase:"failed",page:null,alternatives:[],error:I.error||"Generation failed."});return}}catch{}w&&(A=setTimeout(N,Che))}};N()},k=async()=>{var T,N;try{const I=await S$(()=>mn.claimAreaProfile(e));if(!w)return;if(I.status==="selectionRequired"){r({phase:"selectionRequired",page:null,alternatives:I.alternatives||[],error:""});return}r({phase:"generating",page:{area:I.area},alternatives:[],error:""}),j()}catch(I){w&&r({phase:"failed",page:null,alternatives:[],error:((N=(T=I==null?void 0:I.response)==null?void 0:T.data)==null?void 0:N.error)||(I==null?void 0:I.message)||"Could not start research."})}};return e&&(async()=>{var T,N,I,z,F,D;r({phase:"loading",page:null,alternatives:[],error:""});try{const L=await S$(()=>mn.getAreaPage(e));if(!w)return;if(L.status==="ready"){r({phase:"ready",page:L,alternatives:[],error:""});return}if(L.status==="generating"){r({phase:"generating",page:L,alternatives:[],error:""}),j();return}if(L.status==="failed"){r({phase:"failed",page:null,alternatives:[],error:L.error||"Generation failed."});return}}catch(L){if(((T=L==null?void 0:L.response)==null?void 0:T.status)===404){await k();return}if(((N=L==null?void 0:L.response)==null?void 0:N.status)===429){w&&r({ph
923ase:"busy",page:null,alternatives:[],error:((z=(I=L==null?void 0:L.response)==null?void 0:I.data)==null?void 0:z.error)||"The server is busy. Retrying…"});return}w&&r({phase:"failed",page:null,alternatives:[],error:((D=(F=L==null?void 0:L.response)==null?void 0:F.data)==null?void 0:D.error)||(L==null?void 0:L.message)||"Could not load this area."})}})(),()=>{w=!1,_()}},[e,i]),P.useEffect(()=>{var N;if(n.phase!=="ready"||!n.page)return;const w=Array.isArray((N=n.page)==null?void 0:N.missing)?n.page.missing:Ohe(n.page);if(!w.length)return;let A=!0,_=null;const j=()=>{_&&(clearTimeout(_),_=null),A&&l(!1)};let k=w;const O=jhe(()=>mn.getAreaPage(e,!0));l(!1);const T=async()=>{if(!A)return;let I=nc;try{const z=await mn.getAreaBackfillStatus(e,k);if(!A)return;if(z.status==="generating"){j(),r({phase:"generating",page:z,alternatives:[],error:""});return}const F=Phe(z);if(k=F.missing,r(D=>{if(D.phase!=="ready")return D;const L=z.area?{...D.page.area,...z.area}:D.page.area,B=z.categoryScores?{...D.page.categoryScores,...z.categoryScores}:D.page.categoryScores,U=z.tabData?{...D.page.tabData,...z.tabData}:D.page.tabData,G=z.summary?{...D.page.summary||{},...z.summary}:D.page.summary;return{...D,page:{...D.page,area:L,categoryScores:B,tabData:U,summary:G,missing:F.missing}}}),l(!!z.inProgress),F.finished&&!F.nextRetryAt){const D=await O();if(!A)return;j(),r({phase:"ready",page:D,alternatives:[],error:""});return}if(z.inProgress)I=nc;else if(F.nextRetryAt){const L=new Date(F.nextRetryAt).getTime()-Date.now()+250;I=Math.max(nc,Math.min(L,The))}}catch{I=nc}A&&(_=setTimeout(T,I))};return _=setTimeout(T,nc),()=>{A=!1,_&&clearTimeout(_)}},[n.phase,(p=(f=n.page)==null?void 0:f.area)==null?void 0:p.id,e]),P.useEffect(()=>{if(n.phase!=="busy")return;const w=setTimeout(()=>o(A=>A+1),4e3);return()=>clearTimeout(w)},[n.phase,i]);const c=async()=>{var w,A;(A=(w=n.page)==null?void 0:w.area)!=null&&A.id&&(await mn.reloadStaleArea(n.page.area.id),o(_=>_+1))},d={navigate:{navigateHome:()=>t("/"),navigateToArea:w=>t(`/area/${w}`),navigateToLogin:w=>t(`/login?from=${encodeURIComponent(w)}`),navigateToRegister:w=>t(`/register${w?`?from=${encodeURIComponent(w)}`:""}`),navigateToCompare:()=>t("/compare"),navigateToSaved:()=>t("/saved")},addToCompare:w=>xhe(w)};return e?h.jsxs("div",{className:"min-h-screen bg-[#fafafa]",children:[h.jsx(Ht,{}),n.phase==="loading"&&h.jsx("div",{className:"grid min-h-[calc(100vh-76px)] place-items-center",children:h.jsx("div",{className:"h-8 w-8 animate-spin rounded-full border-4 border-slate-200 border-t-slate-800"})}),n.phase==="generating"&&h.jsx("div",{className:"grid min-h-[calc(100vh-76px)] place-items-center p-8 text-center",children:h.jsxs("div",{children:[h.jsx("div",{className:"mx-auto mb-4 h-8 w-8 animate-spin rounded-full border-4 border-slate-200 border-t-slate-800"}),h.jsxs("p",{className:"text-lg font-semibold text-slate-800",children:["Researching ",((v=(g=n.page)==null?void 0:g.area)==null?void 0:v.name)||"this area","…"]}),h.jsx("p",{className:"mt-1 text-sm text-slate-500",children:(S=n.page)!=null&&S.simpleMode?"Setting up this area for community reviews. This only takes a moment.":"Gathering census data, sourced community insights, and area review content. This only happens once."})]})}),n.phase==="busy"&&h.jsx("div",{className:"grid min-h-[calc(100vh-76px)] place-items-center p-8 text-center",children:h.jsxs("div",{children:[h.jsx("div",{className:"mx-auto mb-4 h-8 w-8 animate-spin rounded-full border-4 border-slate-200 border-t-slate-800"}),h.jsx("p",{className:"text-lg font-semibold text-slate-800",children:"The server is busy."}),h.jsx("p",{className:"mt-1 text-sm text-slate-500",children:n.error||"Retrying in a moment…"}),h.jsx("button",{type:"button",className:"mt-4 rounded-md bg-slate-900 px-4 py-2 text-sm font-semibold text-white",onClick:()=>o(w=>w+1),children:"Retry now"})]})}),n.phase==="failed"&&h.jsx("div",{className:"grid min-h-[calc(100vh-76px)] place-items-center p-8 text-center",children:h.jsxs("div",{children:[h.jsx("p",{className:"text-lg font-semibold text-slate-800",children:"We couldn't generate this area profile."}),h.jsx("p",{className:"mt-1 text-sm text-slate-500",children:n.error||"Please try again later."}),h.jsx(rt,{to:"/",className:"mt-4 inline-block font-bold underline",children:"Back to search"})]})}),n.phase==="selectionRequired"&&h.jsxs("div",{className:"mx-auto max-w-2xl p-8",children:[h.jsx("h1",{className:"text-2xl font-bold",children:"Choose a ZIP code"}),h.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:"That city has several ZIP codes. Pick one to view its area profile."}),h.jsx("div",{className:"mt-6 grid gap-3",children:n.alternatives.map(w=>h.jsxs(rt,{to:`/area/${w.zipCode}`,className:"flex items-center justify-between rounded-md border border-border bg-card px-4 py-3 hover:bg-accent",children:[h.jsxs("span",{children:[h.jsx("span",{className:"font-bold",children:w.zipCode})," · ",w.city,", ",w.state]}),h.jsx("span",{className:"text-sm text-muted-foreground",children:"View →"})]},w.zipCode))}),h.jsx(rt,{to:"/",className:"mt-6 inline-block font-bold underline",children:"Back to search"})]}),n.phase==="ready"&&n.page&&(new URLSearchParams(window.location.search).get("v2")==="1"?h.jsx(Xpe,{page:n.page,simpleMode:!!((x=n.page)!=null&&x.simpleMode),service:mn,callbacks:d,onReload:c}):h.jsx(vhe,{page:n.page,simpleMode:!!((y=n.page)!=null&&y.simpleMode),service:mn,callbacks:d,onReload:c})),a&&h.jsxs("div",{className:"fixed bottom-4 right-4 z-50 flex items-center gap-2 rounded-full border border-border bg-card px-4 py-2 text-sm shadow-lg",children:[h.jsx("span",{className:"h-3 w-3 animate-spin rounded-full border-2 border-slate-200 border-t-slate-800"}),h.jsx("span",{className:"text-slate-700",children:"Updating area data…"})]})]}):h.jsxs("div",{className:"min-h-screen bg-[#fafafa]",children:[h.jsx(Ht,{}),h.jsx("div",{className:"grid min-h-[calc(100vh-76px)] place-items-center p-8 text-center",children:h.jsxs("div",{children:[h.jsx("h1",{className:"text-2xl font-bold",children:"Search for an area"}),h.jsx("p",{className:"mt-2 text-muted-foreground",children:"Use the search bar above to find a ZIP code or city."}),h.jsx(rt,{to:"/",className:"mt-4 inline-block font-bold underline",children:"Back to home"})]})})]})}function Ihe(){const[e,t]=P.useState([]),[n,r]=P.useState(!0);P.useEffect(()=>{let a=!0;const l=document.title;document.title="Compare Areas — Rate My Area";const c=bhe();return c.length?(Promise.all(c.map(d=>mn.getAreaPage(d.slug||d.zipCode).catch(()=>null))).then(d=>{a&&(t(d.filter(f=>(f==null?void 0:f.status)==="ready"&&(f==null?void 0:f.area))),r(!1))}),()=>{a=!1,document.title=l}):(t([]),r(!1),()=>{document.title=l})},[]);const i=a=>{whe(a),t(l=>l.filter(c=>{var d;return((d=c.area)==null?void 0:d.id)!==a}))},o=()=>{She(),t([])};return h.jsxs("div",{className:"min-h-screen bg-[#fafafa]",children:[h.jsx(Ht,{}),h.jsxs("div",{className:"mx-auto max-w-5xl p-8",children:[h.jsxs("div",{className:"mb-6 flex items-center justify-between",children:[h.jsx("h1",{className:"text-2xl font-bold",children:"Compare Areas"}),h.jsxs("div",{className:"flex gap-3",children:[h.jsx(rt,{to:"/",children:h.jsx(Rt,{variant:"outline",children:"Back home"})}),e.length>0&&h.jsx(Rt,{variant:"outline",onClick:o,children:"Clear all"})]})]}),n?h.jsx("div",{className:"grid min-h-[40vh] place-items-center",children:h.jsx("div",{className:"h-8 w-8 animate-spin rounded-full border-4 border-slate-200 border-t-slate-800"})}):e.length===0?h.jsx("p",{className:"text-muted-foreground",children:"No areas selected for comparison. Use the Compare button on an area page to add it here."}):h.jsx("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-3",children:e.map(a=>{var c;const l=a.area;return h.jsxs("div",{className:"rounded-lg border bg-card p-4",children:[h.jsxs("div",{className:"flex items-start justify-between",children:[h.jsx(rt,{to:`/area/${l.slug}`,className:"font-semibold hover:underline",children:l.name}),h.jsx(Rt,{variant:"ghost",size:"sm",onClick:()=>i(l.id),children:"Remove"})]}),h.jsxs("div",{className:"mt-2 text-sm text-muted-foreground",children:[l.city,", ",l.state," · ",l.zipCode]}),h.jsxs("div",{className:"mt-3 grid grid-cols-2 gap-2 text-sm",children:[h.jsxs("div",{children:[h.jsxs("div",{children:["Overall: ",h.jsx("strong",{children:Number.isFinite(Number(l.overallScore))?(Number(l.overallScore)*2).toFixed(1):"—"})," / 10"]}),Number.isFinite(Number(l.overallScore))&&h.jsx("div",{className:"mt-1 font-semibold",children:cm(Number(l.overallScore)*2)})]}),h.jsxs("div",{children:["Reviews: ",h.jsx("strong",{children:l.reviewCount})]}),h.jsxs("div",{children:["Population: ",h.jsx("strong",{children:((c=l.population)==null?void 0:c.toLocaleStr
923ing())||"—"})]}),h.jsxs("div",{children:["Median rent: ",h.jsx("strong",{children:l.medianRent?`$${l.medianRent.toLocaleString()}`:"—"})]})]})]},l.id)})})]})]})}function $he(){const{isAuthenticated:e,isLoadingAuth:t}=es(),[n,r]=P.useState({loading:!0,items:[],error:""});P.useEffect(()=>{if(document.title="Saved Areas — Rate My Area",t)return;if(!e){r({loading:!1,items:[],error:""});return}let o=!0;return r(a=>({...a,loading:!0,error:""})),mn.getSavedAreas().then(a=>{o&&r({loading:!1,items:a.items||[],error:""})}).catch(a=>{var l,c;o&&r({loading:!1,items:[],error:((c=(l=a==null?void 0:a.response)==null?void 0:l.data)==null?void 0:c.error)||a.message||"Could not load saved areas."})}),()=>{o=!1}},[e,t]);const i=async o=>{try{await mn.toggleSavedArea(o,!1),r(a=>({...a,items:a.items.filter(l=>l.area.id!==o)}))}catch(a){r(l=>{var c,d;return{...l,error:((d=(c=a==null?void 0:a.response)==null?void 0:c.data)==null?void 0:d.error)||a.message||"Could not remove."}})}};return t?h.jsxs("div",{className:"min-h-screen bg-[#fafafa]",children:[h.jsx(Ht,{}),h.jsx("div",{className:"grid min-h-[calc(100vh-76px)] place-items-center",children:h.jsx("div",{className:"h-8 w-8 animate-spin rounded-full border-4 border-slate-200 border-t-slate-800"})})]}):e?h.jsxs("div",{className:"min-h-screen bg-[#fafafa]",children:[h.jsx(Ht,{}),h.jsxs("div",{className:"mx-auto max-w-4xl p-8",children:[h.jsxs("div",{className:"mb-6 flex items-center justify-between",children:[h.jsx("h1",{className:"text-2xl font-bold",children:"Saved Areas"}),h.jsx(rt,{to:"/",children:h.jsx(Rt,{variant:"outline",children:"Back home"})})]}),n.loading?h.jsx("div",{className:"grid min-h-[40vh] place-items-center",children:h.jsx("div",{className:"h-8 w-8 animate-spin rounded-full border-4 border-slate-200 border-t-slate-800"})}):h.jsxs(h.Fragment,{children:[n.error&&h.jsx("p",{className:"mb-4 text-sm text-destructive",children:n.error}),n.items.length===0?h.jsx("p",{className:"text-muted-foreground",children:"You haven't saved any areas yet. Use the Save button on an area page to add it here."}):h.jsx("div",{className:"grid gap-4",children:n.items.map(({savedId:o,area:a})=>h.jsxs("div",{className:"flex items-start justify-between rounded-lg border bg-card p-4",children:[h.jsxs("div",{children:[h.jsx(rt,{to:`/area/${a.slug}`,className:"font-semibold hover:underline",children:a.name}),h.jsxs("div",{className:"text-sm text-muted-foreground",children:[a.city,", ",a.state," · ",a.zipCode]}),h.jsxs("div",{className:"mt-1 text-sm",children:["Overall: ",h.jsx("strong",{children:Number.isFinite(Number(a.overallScore))?(Number(a.overallScore)*2).toFixed(1):"—"})," / 10 · ",a.reviewCount," reviews"]})]}),h.jsx(Rt,{variant:"ghost",size:"sm",onClick:()=>i(a.id),children:"Remove"})]},o))})]})]})]}):h.jsx(LD,{to:"/login?from=/saved",replace:!0})}const Zn=async(e,t)=>(await Qt.functions.invoke(e,t)).data,Mhe=e=>e.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"").slice(0,180),er={getAdminDashboard:()=>Zn("getAdminDashboard",{}),generateBlogPost:e=>Zn("generateBlogPost",{sourceUrl:e}),publishBlogPost:e=>Qt.entities.BlogPost.create({...e,slug:`${Mhe(e.title)||"article"}-${globalThis.crypto.randomUUID()}`,status:"published",authorName:"Rate My Area Editorial Team",publishedAt:new Date().toISOString()}),uploadBulkReviews:e=>Zn("uploadBulkReviews",{fileUrl:e}),adminDeleteArea:e=>Zn("adminDeleteArea",{areaId:e}),adminModerateReview:(e,t)=>Zn("adminModerateReview",{reviewId:e,action:t}),refreshAreaResearch:e=>Zn("refreshAreaResearch",{areaId:e}),getSiteSetting:()=>Zn("getSiteSetting",{}),setSimpleMode:(e,t)=>Zn("setSimpleMode",{passkey:e,simpleMode:t}),preloadStates:()=>Zn("preloadState",{action:"states"}),preloadStatus:e=>Zn("preloadState",{action:"status",jobId:e}),preloadStart:(e,t,n)=>Zn("preloadState",{action:"start",state:e,mode:t,passkey:n}),preloadPause:e=>Zn("preloadState",{action:"pause",jobId:e}),preloadResume:e=>Zn("preloadState",{action:"resume",jobId:e}),preloadCancel:e=>Zn("preloadState",{action:"cancel",jobId:e})};function Dhe({open:e,onOpenChange:t,turningOn:n,onConfirm:r}){const[i,o]=P.useState(""),[a,l]=P.useState(""),[c,d]=P.useState(!1),f=P.useRef(null);P.useEffect(()=>{e&&(o(""),l(""),d(!1),setTimeout(()=>{var g;return(g=f.current)==null?void 0:g.focus()},50))},[e]);const p=async()=>{var g,v;if(i){d(!0),l("");try{await r(i),t(!1)}catch(S){l(((v=(g=S==null?void 0:S.response)==null?void 0:g.data)==null?void 0:v.error)||(S==null?void 0:S.message)||(S==null?void 0:S.error)||"Could not change Simple Mode."),d(!1)}}};return h.jsx(tu,{open:e,onOpenChange:t,children:h.jsxs(os,{className:"max-w-sm",children:[h.jsxs(as,{children:[h.jsx(ss,{children:"Simple Mode passkey"}),h.jsxs(ls,{children:["Enter the passkey to ",n?"turn ON":"turn OFF"," Simple Mode."]})]}),h.jsxs("div",{className:"space-y-2",children:[h.jsx(vn,{htmlFor:"simple-mode-passkey",children:"Passkey"}),h.jsx(gr,{id:"simple-mode-passkey",ref:f,type:"password",autoComplete:"off",value:i,onChange:g=>o(g.target.value),onKeyDown:g=>{g.key==="Enter"&&p()},disabled:c}),a&&h.jsx("p",{className:"text-sm text-destructive",children:a})]}),h.jsxs(Qm,{children:[h.jsx(Rt,{variant:"outline",onClick:()=>
923t(!1),disabled:c,children:"Cancel"}),h.jsx(Rt,{onClick:p,disabled:c||!i,children:c?"Verifying…":`Turn ${n?"ON":"OFF"}`})]})]})})}function Lhe({dashboard:e,simpleMode:t,onToggleSimpleMode:n}){var l;const[r,i]=P.useState(!1);if(!e)return h.jsx("p",{className:"text-muted-foreground",children:"Loading stats…"});const{stats:o}=e,a=[{label:"Total Areas",value:o.totalAreas,sub:`${o.readyAreas} ready · ${o.generatingAreas} generating · ${o.failedAreas} failed`},{label:"Pending Reviews",value:o.pendingReviews,sub:"Awaiting moderation"},{label:"Approved Reviews",value:o.approvedReviews,sub:`${o.rejectedReviews} rejected`},{label:"Total Users",value:o.totalUsers,sub:"Registered accounts"}];return h.jsxs("div",{children:[h.jsx("div",{className:"mb-6 rounded-lg border border-border bg-card p-5",children:h.jsxs("div",{className:"flex items-center justify-between",children:[h.jsxs("div",{children:[h.jsx("h3",{className:"text-base font-semibold",children:"Simple Mode"}),h.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:t?"ON — Area pages show community reviews only. Research panels are hidden and data generation is paused.":"OFF — Area pages show full research panels (Overview, Crime, Schools, Housing, Transportation, Demographics)."})]}),h.jsx("button",{type:"button",onClick:()=>i(!0),className:`rounded-md px-5 py-2 text-sm font-semibold ${t?"bg-green-600 text-white":"bg-foreground text-background"}`,children:t?"Turn OFF":"Turn ON"}),h.jsx(Dhe,{open:r,onOpenChange:i,turningOn:!t,onConfirm:c=>n(c,!t)})]})}),h.jsx("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4",children:a.map(c=>h.jsxs("div",{className:"rounded-lg border border-border bg-card p-5",children:[h.jsx("div",{className:"text-sm font-medium text-muted-foreground",children:c.label}),h.jsx("div",{className:"mt-2 text-3xl font-bold",children:c.value}),h.jsx("div",{className:"mt-1 text-xs text-muted-foreground",children:c.sub})]},c.label))}),((l=e.areas)==null?void 0:l.length)>0&&h.jsxs("div",{className:"mt-8",children:[h.jsx("h3",{className:"mb-3 text-lg font-semibold",children:"Recently Updated Areas"}),h.jsx("div",{className:"rounded-lg border border-border bg-card overflow-hidden",children:h.jsxs("table",{className:"w-full text-sm",children:[h.jsx("thead",{className:"bg-muted/50 text-left text-xs uppercase text-muted-foreground",children:h.jsxs("tr",{children:[h.jsx("th",{className:"px-4 py-3 font-medium",children:"Area"}),h.jsx("th",{className:"px-4 py-3 font-medium",children:"ZIP"}),h.jsx("th",{className:"px-4 py-3 font-medium",children:"Status"}),h.jsx("th",{className:"px-4 py-3 font-medium",children:"Score"}),h.jsx("th",{className:"px-4 py-3 font-medium",children:"Reviews"})]})}),h.jsx("tbody",{children:e.areas.slice(0,8).map(c=>h.jsxs("tr",{className:"border-t border-border",children:[h.jsx("td",{className:"px-4 py-3 font-medium",children:c.name}),h.jsx("td",{className:"px-4 py-3",children:c.zipCode}),h.jsx("td",{className:"px-4 py-3",children:h.jsx("span",{className:`rounded px-2 py-0.5 text-xs font-medium ${c.status==="ready"?"bg-green-100 text-green-700":c.status==="generating"?"bg-yellow-100 text-yellow-700":"bg-red-100 text-red-700"}`,children:c.status})}),h.jsxs("td",{className:"px-4 py-3",children:[c.overallScore?(Number(c.overallScore)*2).toFixed(1):"—"," / 10"]}),h.jsx("td",{className:"px-4 py-3",children:c.reviewCount||0})]},c.id))})]})})]})]})}var Fhe=Symbol("radix.slottable");function Bhe(e){const t=({children:n})=>h.jsx(h.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Fhe,t}var YB="AlertDialog",[zhe]=em(YB,[_B]),lo=_B(),XB=e=>{const{__scopeAlertDialog:t,...n}=e,r=lo(t);return h.jsx(FB,{...r,...n,modal:!0})};XB.displayName=YB;var Uhe="AlertDialogTrigger",qhe=P.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,i=lo(n);return h.jsx(Rpe,{...i,...r,ref:t})});qhe.displayName=Uhe;var Hhe="AlertDialogPortal",QB=e=>{const{__scopeAlertDialog:t,...n}=e,r=lo(t);return h.jsx(BB,{...r,...n})};QB.displayName=Hhe;var Whe="AlertDialogOverlay",ZB=P.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,i=lo(n);return h.jsx(AA,{...i,...r,ref:t})});ZB.displayName=Whe;var rl="AlertDialogContent",[Vhe,Khe]=zhe(rl),Ghe=Bhe("AlertDialogContent"),JB=P.forwardRef((e,t)=>
923{const{__scopeAlertDialog:n,children:r,...i}=e,o=lo(n),a=P.useRef(null),l=yr(t,a),c=P.useRef(null);return h.jsx(jpe,{contentName:rl,titleName:ez,docsSlug:"alert-dialog",children:h.jsx(Vhe,{scope:n,cancelRef:c,children:h.jsxs(EA,{role:"alertdialog",...o,...i,ref:l,onOpenAutoFocus:an(i.onOpenAutoFocus,d=>{var f;d.preventDefault(),(f=c.current)==null||f.focus({preventScroll:!0})}),onPointerDownOutside:d=>d.preventDefault(),onInteractOutside:d=>d.preventDefault(),children:[h.jsx(Ghe,{children:r}),h.jsx(Xhe,{contentRef:a})]})})})});JB.displayName=rl;var ez="AlertDialogTitle",tz=P.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,i=lo(n);return h.jsx(kA,{...i,...r,ref:t})});tz.displayName=ez;var nz="AlertDialogDescription",rz=P.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,i=lo(n);return h.jsx(OA,{...i,...r,ref:t})});rz.displayName=nz;var Yhe="AlertDialogAction",iz=P.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,i=lo(n);return h.jsx(PA,{...i,...r,ref:t})});iz.displayName=Yhe;var oz="AlertDialogCancel",az=P.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,{cancelRef:i}=Khe(oz,n),o=lo(n),a=yr(t,i);return h.jsx(PA,{...o,...r,ref:a})});az.displayName=oz;var Xhe=({contentRef:e})=>{const t=`\`${rl}\` requires a description for the component to be accessible for screen reader users.
924
925You can add a description to the \`${rl}\` by passing a \`${nz}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
926
927Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${rl}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
928
929For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return P.useEffect(()=>{var r;document.getElementById((r=e.current)==null?void 0:r.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},Qhe=XB,Zhe=QB,sz=ZB,lz=JB,uz=iz,cz=az,dz=tz,fz=rz;const Jhe=Qhe,eme=Zhe,pz=P.forwardRef(({className:e,...t},n)=>h.jsx(sz,{className:vt("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n}));pz.displayName=sz.displayName;const hz=P.forwardRef(({className:e,...t},n)=>h.jsxs(eme,{children:[h.jsx(pz,{}),h.jsx(lz,{ref:n,className:vt("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...t})]}));hz.displayName=lz.displayName;const mz=({className:e="",...t})=>h.jsx("div",{className:vt("flex flex-col space-y-2 text-center sm:text-left",e),...t});mz.displayName="AlertDialogHeader";const gz=({className:e="",...t})=>h.jsx("div",{className:vt("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});gz.displayName="AlertDialogFooter";const vz=P.forwardRef(({className:e,...t},n)=>h.jsx(dz,{ref:n,className:vt("text-lg font-semibold",e),...t}));vz.displayName=dz.displayName;const yz=P.forwardRef(({className:e,...t},n)=>h.jsx(fz,{ref:n,className:vt("text-sm text-muted-foreground",e),...t}));yz.displayName=fz.displayName;const bz=P.forwardRef(({className:e,...t},n)=>h.jsx(uz,{ref:n,className:vt(h_(),e),...t}));bz.displayName=uz.displayName;const xz=P.forwardRef(({className:e,...t},n)=>h.jsx(cz,{ref:n,className:vt(h_({variant:"outline"}),"mt-2 sm:mt-0",e),...t}));xz.displayName=cz.displayName;function tme({dashboard:e,onAction:t}){const[n,r]=P.useState(""),[i,o]=P.useState(null),[a,l]=P.useState(null),{toast:c}=Qa();if(!e)return h.jsx("p",{className:"text-muted-foreground",children:"Loading areas…"});const d=e.areas||[],f=n?d.filter(g=>{var S,x,y;const v=n.toLowerCase();return((S=g.name)==null?void 0:S.toLowerCase().includes(v))||((x=g.zipCode)==null?void 0:x.includes(v))||((y=g.city)==null?void 0:y.toLowerCase().includes(v))}):d,p=async()=>{var v,S;const g=a;if(!(!g||i)){l(null),o(g.areaId);try{g.type==="refresh"?(await t.refresh(g.areaId),c({title:"Area regeneration started",description:"The refreshed profile will appear when research f
929inishes."})):(await t.deleteArea(g.areaId),c({title:"Area deleted"}))}catch(x){c({variant:"destructive",title:g.type==="refresh"?"Refresh failed":"Delete failed",description:((S=(v=x==null?void 0:x.response)==null?void 0:v.data)==null?void 0:S.error)||(x==null?void 0:x.message)||"Please try again."})}finally{o(null)}}};return h.jsxs("div",{children:[h.jsx("input",{type:"text",placeholder:"Search by name, ZIP, or city…",value:n,onChange:g=>r(g.target.value),className:"mb-4 w-full max-w-md rounded-md border border-input bg-background px-3 py-2 text-sm"}),h.jsx("div",{className:"overflow-hidden rounded-lg border border-border bg-card",children:h.jsxs("table",{className:"w-full text-sm",children:[h.jsx("thead",{className:"bg-muted/50 text-left text-xs uppercase text-muted-foreground",children:h.jsxs("tr",{children:[h.jsx("th",{className:"px-4 py-3 font-medium",children:"Area"}),h.jsx("th",{className:"px-4 py-3 font-medium",children:"ZIP"}),h.jsx("th",{className:"px-4 py-3 font-medium",children:"Status"}),h.jsx("th",{className:"px-4 py-3 font-medium",children:"Score"}),h.jsx("th",{className:"px-4 py-3 font-medium",children:"Reviews"}),h.jsx("th",{className:"px-4 py-3 font-medium",children:"Updated"}),h.jsx("th",{className:"px-4 py-3 text-right font-medium",children:"Actions"})]})}),h.jsxs("tbody",{children:[f.map(g=>h.jsxs("tr",{className:"border-t border-border hover:bg-muted/30",children:[h.jsx("td",{className:"px-4 py-3 font-medium",children:g.name}),h.jsx("td",{className:"px-4 py-3",children:g.zipCode}),h.jsx("td",{className:"px-4 py-3",children:h.jsx("span",{className:`rounded px-2 py-0.5 text-xs font-medium ${g.status==="ready"?"bg-green-100 text-green-700":g.status==="generating"?"bg-yellow-100 text-yellow-700":"bg-red-100 text-red-700"}`,children:g.status})}),h.jsxs("td",{className:"px-4 py-3",children:[g.overallScore?(Number(g.overallScore)*2).toFixed(1):"—"," / 10"]}),h.jsx("td",{className:"px-4 py-3",children:g.reviewCount||0}),h.jsx("td",{className:"px-4 py-3 text-xs text-muted-foreground",children:g.updatedAt?new Date(g.updatedAt).toLocaleDateString():"—"}),h.jsxs("td",{className:"px-4 py-3 text-right",children:[h.jsx("button",{type:"button",onClick:()=>l({type:"refresh",areaId:g.id,name:g.name}),disabled:i===g.id,className:"mr-2 text-xs font-semibold text-blue-600 hover:underline disabled:opacity-50",children:i===g.id?"Working…":"Refresh"}),h.jsx("button",{type:"button",onClick:()=>l({type:"delete",areaId:g.id,name:g.name}),disabled:i===g.id,className:"text-xs font-semibold text-red-600 hover:underline disabled:opacity-50",children:"Delete"})]})]},g.id)),!f.length&&h.jsx("tr",{children:h.jsx("td",{colSpan:7,className:"px-4 py-8 text-center text-muted-foreground",children:"No areas found."})})]})]})}),h.jsx(Jhe,{open:!!a,onOpenChange:g=>{!g&&!i&&l(null)},children:h.jsxs(hz,{children:[h.jsxs(mz,{children:[h.jsx(vz,{children:(a==null?void 0:a.type)==="delete"?`Delete ${(a==null?void 0:a.name)||"this area"}?`:"Regenerate this area?"}),h.jsx(yz,{children:(a==null?void 0:a.type)==="delete"?"This removes the area, reviews, statistics, saved references, and cached research. This cannot be undone.":"This re-runs the area's census, crime, school, and AI research and replaces the generated profile data."})]}),h.jsxs(gz,{children:[h.jsx(xz,{disabled:!!i,children:"Cancel"}),h.jsx(bz,{onClick:p,disabled:!!i,children:(a==null?void 0:a.type)==="delete"?"Delete area":"Regenerate"})]})]})})]})}function nme({dashboard:e,onAction:t}){const[n,r]=P.useState("pending"),[i,o]=P.useState(null),{toast:a}=Qa();if(!e)return h.jsx("p",{className:"text-muted-foreground",children:"Loading reviews…"});const l=[...e.pendingReviews||[],...e.recentReviews||[],...e.rejectedReviews||[]],c=n==="all"?l:l.filter(f=>f.status===n),d=async(f,p,g)=>{var v,S;o(f);try{await t.moderate(f,p),a({title:`${g} complete`})}catch(x){a({variant:"destructive",title:`${g} failed`,description:((S=(v=x==null?void 0:x.response)==null?void 0:v.data)==null?void 0:S.error)||(x==null?void 0:x.message)||"Please try again."})}finally{o(null)}};return h.jsxs("div",{children:[h.jsx("div",{className:"mb-4 flex gap-2",children:["pending","approved","rejected","all"].map(f=>{var p;return h.jsxs("button",{type:"button",onClick:()=>r(f),className:`rounded-full px-4 py-1.5 text-sm font-medium capitalize ${n===f?"bg-foreground text-background":"border border-border bg-background hover:bg-muted"}`,children:[f==="all"?"All":f,f==="pending"&&((p=e.pendingReviews)==null?void 0:p.length)>0?` (${e.pendingReviews.length})`:""]},f)})}),h.jsxs("div",{className:"space-y-3",children:[c.map(f=>h.jsx("div",{className:"rounded-lg border border-border bg-card p-4",children:h.jsxs("div",{className:"flex items-start justify-between gap-4",children:[h.jsxs("div",{className:"min-w-0 flex-1",children:[h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx("h4",{className:"truncate font-semibold",children:f.title}),h.jsx("span",{className:`rounded px-2 py-0.5 text-xs font-medium ${f.status==="approved"?"bg-green-100 text-green-700":f.status==="pending"?"bg-yellow-100 text-yellow-700":"bg-red-100 text-red-700"}`,children:f.status}),h.jsx("span",{className:"rounded bg-muted px-2 py-0.5 text-xs",children:f.sourceType})]}),h.jsxs("div",{className:"mt-1 text-sm text-muted-foreground",children:[f.areaName," (",f.areaZip,") · Score: ",f.overallScore!=null?(Number(f.overallScore)*2).toFixed(1):"—"," / 10 · ",f.reviewerType," · ",f.createdAt?new Date(f.createdAt).toLocaleDateString():""]}),h.jsx("p",{className:"mt-2 text-sm text-foreground line-clamp-3",children:f.body})]}),h.jsxs("div",{className:"flex flex-shrink-0 flex-col gap-2",children:[f.status!=="approved"&&h.jsx("button",{type:"button",onClick:()=>d(f.id,"approve","Approve"),disabled:i===f.id,className:"rounded-md bg-green-600 px-3 py-1.5 text-xs font-semibold text-white hover:bg-green-700 disabled:opacity-50",children:"Approve"}),f.status!=="rejected"&&h.jsx("button",{type:"button",onClick:()=>d(f.id,"reject","Reject"),disabled:i===f.id,className:"rounded-md bg-yellow-500 px-3 py-1.5 text-xs font-semibold text-white hover:bg-yellow-600 disabled:opacity-50",children:"Reject"}),h.jsx("button",{type:"button",onClick:()=>d(f.id,"delete","Delete"),disabled:i===f.id,className:"rounded-md bg-red-600 px-3 py-1.5 text-xs font-semibold text-white hover:bg-red-700 disabled:opacity-50",children:"Delete"})]})]})},f.id)),!c.length&&h.jsxs("div",{className:"rounded-lg border border-border bg-card p-8 text-center text-muted-foreground",children:["No ",n!=="all"?n:""," reviews found."]})]})]})}function rme({onUploadComplete:e}){var f,p;const[t,n]=P.useState(null),[r,i]=P.useState(!1),[o,a]=P.useState(null),[l,c]=P.useState(""),d=async()=>{var g,v;if(t){i(!0),c(""),a(null);try{const{file_url:S}=await Qt.integrations.Core.UploadFile({file:t}),x=await(await Qt.functions.invoke("uploadBulkReviews",{fileUrl:S})).data;a(x),e&&e()}catch(S){c(((v=(g=S==null?void 0:S.response)==null?void 0:g.data)==null?void 0:v.error)||(S==null?void 0:S.message)||"Upload failed.")}finally{i(!1)}}};return h.jsxs("div",{className:"space-y-6",children:[h.jsxs("div",{className:"rounded-lg border border-border bg-card p-6",children:[h.jsx("h3",{className:"text-lg font-semibold",children:"Bulk Upload Starter Reviews"}),h.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:"Upload starter reviews for area pages. Active starter reviews contribute to the official community score and review confidence. Each time a new real resident review is a
929pproved, exactly one starter review is removed and replaced by that permanent resident review."}),h.jsxs("div",{className:"mt-4 flex items-center gap-4",children:[h.jsx("input",{type:"file",accept:".json,application/json",onChange:g=>{var v;return n(((v=g.target.files)==null?void 0:v[0])||null)},className:"text-sm"}),h.jsx("button",{type:"button",onClick:d,disabled:!t||r,className:"rounded-md bg-foreground px-5 py-2 text-sm font-semibold text-background hover:opacity-90 disabled:opacity-50",children:r?"Uploading…":"Upload & Process"})]}),l&&h.jsx("p",{className:"mt-3 text-sm text-red-600",children:l}),o&&h.jsxs("div",{className:"mt-4 rounded-md border border-border bg-muted/30 p-4 text-sm",children:[h.jsx("div",{className:"font-semibold",children:"Upload complete"}),h.jsxs("ul",{className:"mt-2 space-y-1 text-muted-foreground",children:[h.jsxs("li",{children:["Total starter reviews in file: ",o.total]}),h.jsxs("li",{children:["Successfully created: ",o.created]}),o.skippedDuplicates>0&&h.jsxs("li",{children:["Skipped (already in system): ",o.skippedDuplicates]}),((f=o.areasCreated)==null?void 0:f.length)>0&&h.jsxs("li",{children:["New areas created: ",o.areasCreated.join(", ")]}),((p=o.errors)==null?void 0:p.length)>0&&h.jsxs("li",{className:"text-red-600",children:["Errors (",o.errors.length,"):",h.jsxs("ul",{className:"mt-1 ml-4 list-disc",children:[o.errors.slice(0,10).map((g,v)=>h.jsxs("li",{children:["Row ",g.index+1," [",g.zip_code||"?","]: ",g.error]},v)),o.errors.length>10&&h.jsxs("li",{children:["…and ",o.errors.length-10," more"]})]})]})]})]})]}),h.jsxs("div",{className:"rounded-lg border border-border bg-card p-6",children:[h.jsx("h3",{className:"text-lg font-semibold",children:"File Format"}),h.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:"Your JSON file must be an array of starter-review objects. Here's the exact format:"}),h.jsxs("div",{className:"mt-4",children:[h.jsx("h4",{className:"mb-2 text-sm font-semibold",children:"Required Fields"}),h.jsxs("ul",{className:"text-sm space-y-1 text-muted-foreground",children:[h.jsxs("li",{children:[h.jsx("code",{className:"rounded bg-muted px-1.5 py-0.5 text-xs",children:"zip_code"}),' — 5-digit ZIP code (string, e.g. "90210")']}),h.jsxs("li",{children:[h.jsx("code",{className:"rounded bg-muted px-1.5 py-0.5 text-xs",children:"title"})," — Short headline (max 140 characters)"]}),h.jsxs("li",{children:[h.jsx("code",{className:"rounded bg-muted px-1.5 py-0.5 text-xs",children:"body"})," — Area-analysis text (max 4,000 characters)"]}),h.jsxs("li",{children:[h.jsx("code",{className:"rounded bg-muted px-1.5 py-0.5 text-xs",children:"category_ratings"})," — Object with 1-6 categories, each scored 1-5"]})]}),h.jsx("p",{className:"mt-2 text-xs text-muted-foreground",children:"Valid categories: safety, schools, affordability, transportation, activities, foodNightlife"})]}),h.jsxs("div",{className:"mt-4",children:[h.jsx("h4",{className:"mb-2 text-sm font-semibold",children:"Optional Fields"}),h.jsx("ul",{className:"text-sm space-y-1 text-muted-foreground",children:h.jsxs("li",{children:[h.jsx("code",{className:"rounded bg-muted px-1.5 py-0.5 text-xs",children:"overall_score"})," — 1-5 (auto-calculated from category ratings if omitted)"]})})]}),h.jsxs("div",{className:"mt-4",children:[h.jsx("h4",{className:"mb-2 text-sm font-semibold",children:"Example File"}),h.jsx("pre",{className:"overflow-x-auto rounded-md bg-[#1e1e2e] p-4 text-xs text-[#cdd6f4]",children:`[
930  {
931    "zip_code": "90210",
932    "title": "RMA area snapshot",
933    "body": "RMA analysis indicates strong school access and safety signals, with affordability as the main tradeoff. Transportation is more car-dependent than the most transit-oriented markets.",
934    "category_ratings": {
935      "safety": 5,
936      "schools": 5,
937      "affordability": 2,
938      "transportation": 3,
939      "activities": 4,
940      "foodNightlife": 4
941    }
942  },
943  {
944    "zip_code": "10001",
945    "title": "RMA area snapshot",
946    "body": "RMA analysis indicates excellent transportation, activities, and food access, with housing affordability as the largest tradeoff.",
947    "category_ratings": {
948      "safety": 4,
949      "schools": 3,
950      "affordability": 2,
951      "transportation": 5,
952      "activities": 5,
953      "foodNightlife": 5
954    }
955  }
956]`})]}),h.jsxs("div",{className:"mt-4 rounded-md bg-blue-50 p-3 text-sm text-blue-900",children:[h.jsx("strong",{children:"Tip:"})," You can include analysis entries for many different ZIP codes in a single file. If a ZIP code hasn't been searched yet, the system creates the area and starts generating its data profile automatically — using your uploaded RMA analysis entries as supplemental context, so it loads faster for the first visitor."]})]})]})}function ime(){const[e,t]=P.useState(""),[n,r]=P.useState(!1),[i,o]=P.useState(""),[a,l]=P.useState(null),c=async d=>{var f,p;d.preventDefault(),r(!0),o(""),l(null);try{const g=await er.generateBlogPost(e);l(g.post),t("")}catch(g){o(((p=(f=g==null?void 0:g.response)==null?void 0:f.data)==null?void 0:p.error)||(g==null?void 0:g.message)||"Article generation failed.")}finally{r(!1)}};return h.jsxs("section",{className:"rounded-lg border border-border bg-card p-6",children:[h.jsx("h2",{className:"text-xl font-bold",children:"Create from a source link"}),h.jsx("p",{className:"mt-2 text-sm leading-6 text-muted-foreground",children:"AI will analyze the page, write an original article for Rate My Area, attribute the source, and publish it immediately."}),h.jsxs("form",{onSubmit:c,className:"mt-5 flex flex-col gap-3 sm:flex-row",children:[h.jsx("input",{type:"url",required:!0,value:e,onCh
956ange:d=>t(d.target.value),placeholder:"https://example.com/article",className:"min-w-0 flex-1 rounded-md border border-input bg-background px-3 py-2 text-sm"}),h.jsx("button",{type:"button",disabled:n,className:"rounded-md bg-primary px-5 py-2 text-sm font-bold text-primary-foreground disabled:opacity-50",children:n?"Analyzing & publishing…":"Generate & publish"})]}),i&&h.jsx("p",{className:"mt-3 text-sm text-destructive",children:i}),a&&h.jsxs("p",{className:"mt-4 text-sm font-semibold",children:["Published: ",h.jsx(rt,{className:"underline",to:`/blog/${a.slug}`,children:a.title})]})]})}const A$={title:"",excerpt:"",content:""};function ome(){const[e,t]=P.useState(A$),[n,r]=P.useState(!1),[i,o]=P.useState(null),[a,l]=P.useState(""),c=f=>t(p=>({...p,[f.target.name]:f.target.value})),d=async f=>{f.preventDefault(),r(!0),l(""),o(null);try{const p=await er.publishBlogPost(e);o(p),t(A$)}catch(p){l((p==null?void 0:p.message)||"Publishing failed.")}finally{r(!1)}};return h.jsxs("section",{className:"rounded-lg border border-border bg-card p-6",children:[h.jsx("h2",{className:"text-xl font-bold",children:"Write an original post"}),h.jsxs("form",{onSubmit:d,className:"mt-5 space-y-4",children:[h.jsx("input",{name:"title",required:!0,value:e.title,onChange:c,placeholder:"Article title",className:"w-full rounded-md border border-input bg-background px-3 py-2 text-sm"}),h.jsx("textarea",{name:"excerpt",required:!0,maxLength:500,value:e.excerpt,onChange:c,placeholder:"Short summary",className:"min-h-20 w-full rounded-md border border-input bg-background px-3 py-2 text-sm"}),h.jsx("textarea",{name:"content",required:!0,value:e.content,onChange:c,placeholder:"Article content in Markdown",className:"min-h-64 w-full rounded-md border border-input bg-background px-3 py-2 font-mono text-sm"}),h.jsx("button",{type:"button",disabled:n,className:"rounded-md bg-primary px-5 py-2 text-sm font-bold text-primary-foreground disabled:opacity-50",children:n?"Publishing…":"Publish now"})]}),a&&h.jsx("p",{className:"mt-3 text-sm text-destructive",children:a}),i&&h.jsxs("p",{className:"mt-4 text-sm font-semibold",children:["Published: ",h.jsx(rt,{className:"underline",to:`/blog/${i.slug}`,children:i.title})]})]})}function ame(){return h.jsxs("div",{className:"space-y-6",children:[h.jsx(ime,{}),h.jsx(ome,{})]})}function sme(e,t=[]){let n=[];function r(o,a){const l=P.createContext(a);l.displayName=o+"Context";const c=n.length;n=[...n,a];const d=p=>{var w;const{scope:g,children:v,...S}=p,x=((w=g==null?void 0:g[e])==null?void 0:w[c])||l,y=P.useMemo(()=>S,Object.values(S));return h.jsx(x.Provider,{value:y,children:v})};d.displayName=o+"Provider";function f(p,g){var x;const v=((x=g==null?void 0:g[e])==null?void 0:x[c])||l,S=P.useContext(v);if(S)return S;if(a!==void 0)return a;throw new Error(`\`${p}\` must be used within \`${o}\``)}return[d,f]}const i=()=>{const o=n.map(a=>P.createContext(a));return function(l){const c=(l==null?void 0:l[e])||o;return P.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return i.scopeName=e,[r,lme(i,...t)]}function lme(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(o){const a=r.reduce((l,{useScope:c,scopeName:d})=>{const p=c(o)[`__scope${d}`];return{...l,...p}},{});return P.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}var ume=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],wz=ume.reduce((e,t)=>{const n=p_(`Primitive.${t}`),r=P.forwardRef((i,o)=>{const{asChild:a,...l}=i,c=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(c,{...l,ref:o})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),TA="Progress",NA=100,[cme]=sme(TA),[dme,fme]=cme(TA),Sz=P.forwardRef((e,t)=>{const{__scopeProgress:n,value:r=null,max:i,getValueLabel:o=pme,...a}=e;(i||i===0)&&!E$(i)&&console.error(hme(`${i}`,"Progress"));const l=E$(i)?i:NA;r!==null&&!k$(r,l)&&console.error(mme(`${r}`,"Progress"));const c=k$(r,l)?r:null,d=Xh(c)?o(c,l):void 0;return h.jsx(dme,{scope:n,value:c,max:l,children:h.jsx(wz.div,{"aria-valuemax":l,"aria-valuemin":0,"aria-valuenow":Xh(c)?c:void 0,"aria-valuetext":d,role:"progressbar","data-state":Ez(c,l),"data-value":c??void 0,"data-max":l,...a,ref:t})})});Sz.displayName=TA;var _z="ProgressIndicator",Az=P.forwardRef((e,t)=>
956{const{__scopeProgress:n,...r}=e,i=fme(_z,n);return h.jsx(wz.div,{"data-state":Ez(i.value,i.max),"data-value":i.value??void 0,"data-max":i.max,...r,ref:t})});Az.displayName=_z;function pme(e,t){return`${Math.round(e/t*100)}%`}function Ez(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function Xh(e){return typeof e=="number"}function E$(e){return Xh(e)&&!isNaN(e)&&e>0}function k$(e,t){return Xh(e)&&!isNaN(e)&&e<=t&&e>=0}function hme(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${NA}\`.`}function mme(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
957  - a positive number
958  - less than the value passed to \`max\` (or ${NA} if no \`max\` prop is set)
959  - \`null\` or \`undefined\` if the progress is indeterminate.
960
961Defaulting to \`null\`.`}var kz=Sz,gme=Az;const Oz=P.forwardRef(({className:e,value:t,...n},r)=>h.jsx(kz,{ref:r,className:vt("relative h-2 w-full overflow-hidden rounded-full bg-primary/20",e),...n,children:h.jsx(gme,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})}));Oz.displayName=kz.displayName;const O$={inventory:"Building ZIP inventory",census:"Loading census data",enrichment:"Loading crime & schools",scoring:"Calculating scores",done:"Complete"},P$={running:"bg-blue-100 text-blue-700",paused:"bg-amber-100 text-amber-700",completed:"bg-emerald-100 text-emerald-700",cancelled:"bg-slate-100 text-slate-600",failed:"bg-red-100 text-red-700",queued:"bg-slate-100 text-slate-600"};function vme(){const[e,t]=P.useState([]),[n,r]=P.useState(""),[i,o]=P.useState("top200"),[a,l]=P.useState(""),[c,d]=P.useState(!1),[f,p]=P.useState(""),[g,v]=P.useState([]),S=P.useRef(null),x=P.useCallback(async()=>{try{const k=await er.preloadStates();t((k==null?void 0:k.states)||[])}catch{}},[]),y=P.useCallback(async()=>{try{const k=await er.preloadStatus();v((k==null?void 0:k.jobs)||[])}catch{}},[]);P.useEffect(()=>{x(),y()},[x,y]),P.useEffect(()=>{if(g.some(O=>O.status==="running")){if(S.current)return;S.current=setInterval(y,4e3)}else S.current&&(clearInterval(S.current),S.current=null);return()=>{S.current&&(clearInterval(S.current),S.current=null)}},[g,y]);const w=async()=>{if(p(""),!n){p("Select a state.");return}d(!0);try{const k=await er.preloadStart(n,i,a);if(k!=null&&k.error){p(k.error);return}l(""),await y()}catch(k){p((k==null?void 0:k.message)||"Could not start preload.")}finally{d(!1)}},A=async(k,O)=>{d(!0),p("");try{const T=await O(k);T!=null&&T.error&&p(T.error),await y()}catch(T){p((T==null?void 0:T.message)||"Action failed.")}finally{d(!1)}},_=g.find(k=>k.status==="running"||k.status==="paused"),j=g.filter(k=>k.status!=="running"&&k.status!=="paused").slice(0,5);return h.jsxs("div",{className:"space-y-6",children:[h.jsxs("div",{className:"rounded-lg border bg-card p-6",children:[h.jsx("h2",{className:"text-lg font-semibold",children:"Preload State Data"}),h.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:"Generate objective area profiles (census, crime, schools, scores) for a 
961whole state, ranked by population. Runs in the background — you can close this page. AI summaries are not generated here."}),h.jsxs("div",{className:"mt-5 grid gap-4 sm:grid-cols-2",children:[h.jsxs("div",{children:[h.jsx(vn,{htmlFor:"preload-state",children:"State"}),h.jsxs("select",{id:"preload-state",value:n,onChange:k=>r(k.target.value),className:"mt-1.5 h-10 w-full rounded-md border border-input bg-background px-3 text-sm",children:[h.jsx("option",{value:"",children:"Select a state…"}),e.map(k=>h.jsx("option",{value:k.code,children:k.name},k.code))]})]}),h.jsxs("div",{children:[h.jsx(vn,{children:"Mode"}),h.jsxs("div",{className:"mt-1.5 flex gap-2",children:[h.jsx("button",{type:"button",onClick:()=>o("top200"),className:`flex-1 rounded-md border px-3 py-2 text-sm font-medium ${i==="top200"?"border-foreground bg-foreground text-background":"border-input bg-background"}`,children:"Top 200 ZIPs"}),h.jsx("button",{type:"button",onClick:()=>o("all"),className:`flex-1 rounded-md border px-3 py-2 text-sm font-medium ${i==="all"?"border-foreground bg-foreground text-background":"border-input bg-background"}`,children:"Load Everything"})]})]})]}),i==="all"&&h.jsxs("div",{className:"mt-4",children:[h.jsx(vn,{htmlFor:"preload-passkey",children:"Admin passkey (required for Load Everything)"}),h.jsx(gr,{id:"preload-passkey",type:"password",value:a,onChange:k=>l(k.target.value),placeholder:"Enter admin passkey",className:"mt-1.5 max-w-sm"})]}),f&&h.jsx("p",{className:"mt-4 text-sm text-red-600",children:f}),h.jsxs("div",{className:"mt-5 flex items-center gap-3",children:[h.jsxs(Rt,{onClick:w,disabled:c||!n||i==="all"&&!a,children:[c?h.jsx(Qi,{className:"mr-2 h-4 w-4 animate-spin"}):h.jsx(uq,{className:"mr-2 h-4 w-4"}),"Start preload"]}),_&&h.jsx("span",{className:"text-sm text-muted-foreground",children:"A job is already active — manage it below."})]})]}),_&&h.jsxs("div",{className:"rounded-lg border bg-card p-6",children:[h.jsxs("div",{className:"flex items-center justify-between",children:[h.jsxs("div",{children:[h.jsxs("h3",{className:"font-semibold",children:[_.state," · ",_.mode==="all"?"All ZIPs":"Top 200"]}),h.jsx("p",{className:"text-sm text-muted-foreground",children:O$[_.phase]||_.phase})]}),h.jsx("span",{className:`rounded-full px-3 py-1 text-xs font-semibold ${P$[_.status]||""}`,children:_.status})]}),h.jsxs("div",{className:"mt-4",children:[h.jsxs("div",{className:"flex justify-between text-sm",children:[h.jsxs("span",{children:[_.completedZips," / ",_.totalZips||"…"," ZIPs"]}),h.jsxs("span",{className:"text-muted-foreground",children:[_.progress,"% · ETA ",_.eta]})]}),h.jsx(Oz,{value:_.progress,className:"mt-2"})]}),h.jsxs("div",{className:"mt-4 grid grid-cols-2 gap-3 text-sm sm:grid-cols-4",children:[h.jsx(_p,{label:"Current ZIP",value:_.currentZip||"—"}),h.jsx(_p,{label:"Successful",value:_.successfulZips}),h.jsx(_p,{label:"Retryable",value:_.retryableZips}),h.jsx(_p,{label:"Inventory",value:_.inventoryTotal||_.totalZips||"—"})]}),_.error&&h.jsx("p",{className:"mt-3 text-sm text-amber-600",children:_.error}),h.jsxs("div",{className:"mt-5 flex flex-wrap gap-2",children:[_.status==="running"&&h.jsxs(Rt,{variant:"outline",size:"sm",onClick:()=>A(_.id,er.preloadPause),disabled:c,children:[h.jsx(q6,{className:"mr-2 h-4 w-4"})," Pause"]}),_.status==="paused"&&h.jsxs(Rt,{variant:"outline",size:"sm",onClick:()=>A(_.id,er.preloadResume),disabled:c,children:[h.jsx(W6,{className:"mr-2 h-4 w-4"})," Resume"]}),h.jsxs(Rt,{variant:"outline",size:"sm",onClick:y,disabled:c,children:[h.jsx(tD,{className:"mr-2 h-4 w-4"})," Refresh"]}),(_.status==="running"||_.status==="paused")&&h.jsxs(Rt,{variant:"outline",size:"sm",onClick:()=>A(_.id,er.preloadCancel),disabled:c,children:[h.jsx(eq,{className:"mr-2 h-4 w-4"})," Cancel"]})]})]}),j.length>0&&h.jsxs("div",{className:"rounded-lg border bg-card p-6",children:[h.jsx("h3",{className:"font-semibold",children:"Recent jobs"}),h.jsx("div",{className:"mt-3 divide-y",children:j.map(k=>h.jsxs("div",{className:"flex items-center justify-between py-2.5 text-sm",children:[h.jsxs("span",{children:[k.state," · ",k.mode==="all"?"All":"Top 200"," · ",O$[k.phase]||k.phase]}),h.jsxs("span",{className:"flex items-center gap-3",children:[h.jsxs("span",{className:"text-muted-foreground",children:[k.completedZips,"/",k.totalZips||"—"]}
961),h.jsx("span",{className:`rounded-full px-2.5 py-0.5 text-xs font-semibold ${P$[k.status]||""}`,children:k.status})]})]},k.id))})]})]})}function _p({label:e,value:t}){return h.jsxs("div",{className:"rounded-md border bg-background px-3 py-2",children:[h.jsx("div",{className:"text-xs text-muted-foreground",children:e}),h.jsx("div",{className:"mt-0.5 truncate font-medium",children:t})]})}const yme=[{id:"overview",label:"Overview"},{id:"areas",label:"Areas"},{id:"reviews",label:"Reviews"},{id:"upload",label:"Upload Reviews"},{id:"preload",label:"Preload Data"},{id:"blog",label:"Blog"}];function bme(){const{user:e,isAuthenticated:t,isLoadingAuth:n}=es(),[r,i]=P.useState("overview"),[o,a]=P.useState(null),[l,c]=P.useState(!0),[d,f]=P.useState(!1),[p,g]=P.useState(""),v=P.useCallback(async()=>{c(!0),g("");try{const[y,w]=await Promise.all([er.getAdminDashboard(),er.getSiteSetting()]);a(y),f(!!(w!=null&&w.simpleMode))}catch(y){console.error("Dashboard load failed",y),g((y==null?void 0:y.message)||"Could not load the admin dashboard.")}finally{c(!1)}},[]),S=async(y,w)=>{const A=await er.setSimpleMode(y,w);if(A!=null&&A.error)throw new Error(A.error);return f(!!(A!=null&&A.simpleMode)),A};P.useEffect(()=>{t&&(e==null?void 0:e.role)==="admin"?v():c(!1)},[t,e,v]);const x={refresh:async y=>{await er.refreshAreaResearch(y),await v()},deleteArea:async y=>{await er.adminDeleteArea(y),await v()},moderate:async(y,w)=>{await er.adminModerateReview(y,w),await v()}};return n?h.jsxs("div",{className:"min-h-screen bg-[#fafafa]",children:[h.jsx(Ht,{}),h.jsx("div",{className:"grid min-h-[calc(100vh-76px)] place-items-center",children:h.jsx("div",{className:"h-8 w-8 animate-spin rounded-full border-4 border-slate-200 border-t-slate-800"})})]}):t?(e==null?void 0:e.role)!=="admin"?h.jsxs("div",{className:"min-h-screen bg-[#fafafa]",children:[h.jsx(Ht,{}),h.jsx("div",{className:"grid min-h-[calc(100vh-76px)] place-items-center p-8 text-center",children:h.jsxs("div",{children:[h.jsx("h1",{className:"text-2xl font-bold",children:"Access Denied"}),h.jsx("p",{className:"mt-2 text-muted-foreground",children:"You need admin access to view this page."})]})})]}):h.jsxs("div",{className:"min-h-screen bg-[#fafafa]",children:[h.jsx(Ht,{}),h.jsxs("div",{className:"mx-auto max-w-6xl px-6 py-8",children:[h.jsx("h1",{className:"text-3xl font-bold",children:"Admin Panel"}),h.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:"Manage areas, moderate reviews, and bulk-upload content."}),h.jsx("nav",{className:"mt-6 flex gap-1 border-b border-border",children:yme.map(y=>h.jsx("button",{type:"button",onClick:()=>i(y.id),className:`-mb-px border-b-2 px-4 py-2.5 text-sm font-semibold transition-colors ${r===y.id?"border-foreground text-foreground":"border-transparent text-muted-foreground hover:text-foreground"}`,children:y.label},y.id))}),h.jsx("div",{className:"mt-6",children:l?h.jsx("div",{className:"grid place-items-center py-20",children:h.jsx("div",{className:"h-8 w-8 animate-spin rounded-full border-4 border-slate-200 border-t-slate-800"})}):p?h.jsxs("div",{className:"rounded-lg border bg-card p-6",children:[h.jsx("h2",{className:"font-semibold",children:"Could not load admin data"}),h.jsx("p",{className:"mt-2 text-sm text-muted-foreground",children:p}),h.jsx("button",{type:"button",className:"mt-4 rounded-md bg-foreground px-4 py-2 text-sm font-semibold text-background",onClick:v,children:"Try again"})]}):h.jsxs(h.Fragment,{children:[r==="overview"&&h.jsx(Lhe,{dashboard:o,simpleMode:d,onToggleSimpleMode:S}),r==="areas"&&h.jsx(tme,{dashboard:o,onAction:x}),r==="reviews"&&h.jsx(nme,{dashboard:o,onAction:x}),r==="upload"&&h.jsx(rme,{onUploadComplete:v}),r==="preload"&&h.jsx(vme,{}),r==="blog"&&h.jsx(ame,{})]})})]})]}):h.jsx(LD,{to:"/login?from=/admin",replace:!0})}function xme({post:e}){return h.jsxs("article",{className:"flex h-full flex-col overflow-hidden rounded-lg border border-border bg-card",children:[e.coverImageUrl&&h.jsx(rt,{to:`/blog/${e.slug}`,className:"block aspect-[16/9] w-full overflow-hidden bg-muted",children:h.jsx("img",{src:e.coverImageUrl,alt:e.title,className:"h-full w-full object-cover",loading:"lazy"})}),h.jsxs("div",{className:"flex flex-1 flex-col p-6",children:[h.jsx("p",{className:"text-xs font-bold uppercase tracking-wider text-muted-foreground",children:new Date(e.publishedAt).toLocaleDateString()}),h.jsx("h2",{className:"mt-3 text-2xl font-black leading-tight",children:h.jsx(rt,{to:`/blog/${e.slug}`,className:"hover:underline",children:e.title})}),h.jsx("p",{className:"mt-4 flex-1 leading-7 text-muted-foreground",children:e.excerpt}),h.jsx(rt,{to:`/blog/${e.slug}`,className:"mt-6 text-sm font-black underline",children:"Read article"})]})]})}function wme(){const[e,t]=P.useState(null),[n,r]=P.useState(""),[i,o]=P.useState(0),a=P.useCallback(()=>o(l=>l+1),[]);return P.useEffect(()=>{let l=!0;return t(null),r(""),Qt.entities.BlogPost.list("-publishedAt",50).then(c=>{l&&t(c)}).catch(()=>{l&&(t([]),r("We could not load the blog right now."))}),()=>{l=!1}},[i]),h.jsxs("div",{className:"min-h-screen bg-background",children:[h.jsx(Ht,{}),h.jsxs("main",{className:"mx-auto max-w-6xl px-6 py-16",children:[h.jsxs("header",{className:"max-w-3xl",children:[h.jsx("p",{className:"text-sm font-black uppercase tracking-widest text-muted-foreground",children:"Rate My Area Blog"}),h.jsx("h1",{className:"mt-3 text-5xl font-black tracking-tight md:text-6xl",children:"Neighborhood insights for smarter moves."}),h.jsx("p",{className:"mt-5 text-lg leading-8 text-muted-foreground",children:"Practical guides about neighborhoods, housing, moving, and community life."})]}),e===null?h.jsx("div",{className:"mt-14 h-8 w-8 animate-spin rounded-full border-4 border-muted border-t-foreground","aria-label":"Loading articles"}):n?h.jsxs("div",{className:"mt-14 rounded-lg border bg-card p-6",children:[h.jsx("p",{className:"font-semibold",children:n}),h.jsx("button",{type:"button",className:"mt-4 rounded-md bg-primary px-4 py-2 text-sm font-semibold text-primary-foreground",onClick:a,children:"Try again"})]}):e.length?h.jsx("section",{className:"mt-14 grid gap-6 md:grid-cols-2 lg:grid-cols-3",children:e.map(l=>h.jsx(xme,{post:l},l.id))}):h.jsx("p",{className:"mt-14 text-muted-foreground",children:"No articles have been published yet."})]})]})}function Sme(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const _me=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ame=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Eme={};function j$(e,t){return(Eme.jsx?Ame:_me).test(e)}const kme=/[ \t\n\f\r]/g;function Ome(e){return typeof e=="object"?e.type==="text"?C$(e.value):!1:C$(e)}function C$(e){return e.replace(kme,"")===""}class Id{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Id.prototype.normal={};Id.prototype.property={};Id.prototype.space=void 0;function Pz(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new Id(n,r,t)}function AS(e){return e.toLowerCase()}class or{constructor(t,n){this.attribute=n,this.property=t}}or.prototype.attribute="";or.prototype.booleanish=!1;or.prototype.boolean=!1;or.prototype.commaOrSpaceSeparated=!1;or.prototype.commaSeparated=!1;or.prototype.defined=!1;or.prototype.mustUseProperty=!1;or.prototype.number=!1;or.prototype.overloadedBoolean=!1;or.prototype.property="";or.prototype.spaceSeparated=!1;or.prototype.space=void 0;let Pme=0;const Ye=us(),Yt=us(),ES=us(),be=us(),St=us(),il=us(),dr=us();function us(){return 2**++Pme}const kS=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ye,booleanish:Yt,commaOrSpaceSeparated:dr,commaSeparated:il,number:be,overloadedBoolean:ES,spaceSeparated:St},Symbol.toStringTag,{value:"Module"})),bw=Object.keys(kS);class RA extends or{constructor(t,n,r,i){let o=-1;if(super(t,n),T$(this,"space",i),typeof r=="number")for(;++o<bw.length;){const a=bw[o];T$(this,bw[o],(r&kS[a])===kS[a])}}}RA.prototype.defined=!0;function T$(e,t,n){n&&(e[t]=n)}function nu(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const o=new RA(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[AS(r)]=r,n[AS(o.attribute)]=r}return new Id(t,n,e.space)}const jz=nu({properties:{ariaActiveDescendant:null,ariaAtomic:Yt,ariaAutoComplete:null,ariaBusy:Yt,ariaChecked:Yt,ariaColCount:be,ariaColIndex:be,ariaColSpan:be,ariaControl
vendor: 5,436 bytes, line 961
961s:St,ariaCurrent:null,ariaDescribedBy:St,ariaDetails:null,ariaDisabled:Yt,ariaDropEffect:St,ariaErrorMessage:null,ariaExpanded:Yt,ariaFlowTo:St,ariaGrabbed:Yt,ariaHasPopup:null,ariaHidden:Yt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:St,ariaLevel:be,ariaLive:null,ariaModal:Yt,ariaMultiLine:Yt,ariaMultiSelectable:Yt,ariaOrientation:null,ariaOwns:St,ariaPlaceholder:null,ariaPosInSet:be,ariaPressed:Yt,ariaReadOnly:Yt,ariaRelevant:null,ariaRequired:Yt,ariaRoleDescription:St,ariaRowCount:be,ariaRowIndex:be,ariaRowSpan:be,ariaSelected:Yt,ariaSetSize:be,ariaSort:null,ariaValueMax:be,ariaValueMin:be,ariaValueNow:be,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Cz(e,t){return t in e?e[t]:t}function Tz(e,t){return Cz(e,t.toLowerCase())}const jme=nu({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:il,acceptCharset:St,accessKey:St,action:null,allow:null,allowFullScreen:Ye,allowPaymentRequest:Ye,allowUserMedia:Ye,alt:null,as:null,async:Ye,autoCapitalize:null,autoComplete:St,autoFocus:Ye,autoPlay:Ye,blocking:St,capture:null,charSet:null,checked:Ye,cite:null,className:St,cols:be,colSpan:null,content:null,contentEditable:Yt,controls:Ye,controlsList:St,coords:be|il,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ye,defer:Ye,dir:null,dirName:null,disabled:Ye,download:ES,draggable:Yt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ye,formTarget:null,headers:St,height:be,hidden:ES,high:be,href:null,hrefLang:null,htmlFor:St,httpEquiv:St,id:null,imageSizes:null,imageSrcSet:null,inert:Ye,inputMode:null,integrity:null,is:null,isMap:Ye,itemId:null,itemProp:St,itemRef:St,itemScope:Ye,itemType:St,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ye,low:be,manifest:null,max:null,maxLength:be,media:null,method:null,min:null,minLength:be,multiple:Ye,muted:Ye,name:null,nonce:null,noModule:Ye,noValidate:Ye,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:Ye,optimum:be,pattern:null,ping:St,placeholder:null,playsInline:Ye,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ye,referrerPolicy:null,rel:St,required:Ye,reversed:Ye,rows:be,rowSpan:be,sandbox:St,scope:null,scoped:Ye,seamless:Ye,selected:Ye,shadowRootClonable:Ye,shadowRootDelegatesFocus:Ye,shadowRootMode:null,shape:null,size:be,sizes:null,slot:null,span:be,spellCheck:Yt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:be,step:null,style:null,tabIndex:be,target:null,title:null,translate:null,type:null,typeMustMatch:Ye,useMap:null,value:Yt,width:be,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:St,axis:null,background:null,bgColor:null,border:be,borderColor:null,bottomMargin:be,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ye,declare:Ye,event:null,face:null,frame:null,frameBorder:null,hSpace:be,leftMargin:be,link:null,longDesc:null,lowSrc:null,marginHeight:be,marginWidth:be,noResize:Ye,noHref:Ye,noShade:Ye,noWrap:Ye,object:null,profile:null,prompt:null,rev:null,rightMargin:be,rules:null,scheme:null,scrolling:Yt,standby:null,summary:null,text:null,topMargin:be,valueType:null,version:null,vAlign:null,vLink:null,vSpace:be,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ye,disableRemotePlayback:Ye,prefix:null,property:null,results:be,security:null,unselectable:null},space:"html",transform:Tz}),Cme=nu({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",colorRen
961dering:"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:dr,accentHeight:be,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:be,amplitude:be,arabicForm:null,ascent:be,attributeName:null,attributeType:null,azimuth:be,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:be,by:null,calcMode:null,capHeight:be,className:St,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRen
961dering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:be,diffuseConstant:be,direction:null,display:null,dur:null,divisor:be,dominantBaseline:null,download:Ye,dx:null,dy:null,edgeMode:null,editable:null,elevation:be,enableBackground:null,end:null,event:null,exponent:be,externalResourcesRequired:null,fill:null,fillOpacity:be,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:il,g2:il,glyphName:il,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:be,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:be,horizOriginX:be,horizOriginY:be,id:null,ideographic:be,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:be,k:be,k1:be,k2:be,k3:be,k4:be,kernelMatrix:dr,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:be,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:be,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:be,overlineThickness:be,paintOrder:null,panose1:null,path:null,pathLength:be,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:St,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:be,pointsAtY:be,pointsAtZ:be,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:dr,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:dr,rev:dr,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:dr,requiredFeatures:dr,requiredFonts:dr,requiredFormats:dr,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:be,specularExponent:be,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:be,strikethroughThickness:be,string:null,stroke:null,strokeDashArray:dr,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:be,strokeOpacity:be,strokeWidth:null,style:null,surfaceScale:be,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:dr,tabIndex:be,tableValues:null,target:null,targetX:be,targetY:be,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:dr,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:be,underlineThickness:be,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:be,values:null,vAlphabetic:be,vMathematical:be,vectorEffect:null,vHanging:be,vIdeographic:be,version:null,vertAdvY:be,vertOriginX:be,vertOriginY:be,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:be,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Cz}),Nz=nu({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}
vendor: 4,105 bytes, lines 961-962
961,space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),Rz=nu({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Tz}),Iz=nu({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Tme={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"},Nme=/[A-Z]/g,N$=/-[a-z]/g,Rme=/^data[-\w.:]+$/i;function Ime(e,t){const n=AS(t);let r=t,i=or;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Rme.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(N$,Mme);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!N$.test(o)){let a=o.replace(Nme,$me);a.charAt(0)!=="-"&&(a="-"+a),t="data"+a}}i=RA}return new i(r,t)}function $me(e){return"-"+e.toLowerCase()}function Mme(e){return e.charAt(1).toUpperCase()}const Dme=Pz([jz,jme,Nz,Rz,Iz],"html"),IA=Pz([jz,Cme,Nz,Rz,Iz],"svg");function Lme(e){return e.join(" ").trim()}var qs={},xw,R$;function Fme(){if(R$)return xw;R$=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,l=/^\s+|\s+$/g,c=`
962`,d="/",f="*",p="",g="comment",v="declaration";function S(y,w){if(typeof y!="string")throw new TypeError("First argument must be a string");if(!y)return[];w=w||{};var A=1,_=1;function j(B){var U=B.match(t);U&&(A+=U.length);var G=B.lastIndexOf(c);_=~G?B.length-G:_+B.length}function k(){var B={line:A,column:_};return function(U){return U.position=new O(B),I(),U}}function O(B){this.start=B,this.end={line:A,column:_},this.source=w.source}O.prototype.content=y;function T(B){var U=new Error(w.source+":"+A+":"+_+": "+B);if(U.reason=B,U.filename=w.source,U.line=A,U.column=_,U.source=y,!w.silent)throw U}function N(B){var U=B.exec(y);if(U){var G=U[0];return j(G),y=y.slice(G.length),U}}function I(){N(n)}function z(B){var U;for(B=B||[];U=F();)U!==!1&&B.push(U);return B}function F(){var B=k();if(!(d!=y.charAt(0)||f!=y.charAt(1))){for(var U=2;p!=y.charAt(U)&&(f!=y.charAt(U)||d!=y.charAt(U+1));)++U;if(U+=2,p===y.charAt(U-1))return T("End of comment missing");var G=y.slice(2,U-2);return _+=2,j(G),y=y.slice(U),_+=2,B({type:g,comment:G})}}function D(){var B=k(),U=N(r);if(U){if(F(),!N(i))return T("property missing ':'");var G=N(o),Z=B({type:v,property:x(U[0].replace(e,p)),value:G?x(G[0].replace(e,p)):p});return N(a),Z}}function L(){var B=[];z(B);for(var U;U=D();)U!==!1&&(B.push(U),z(B));return B}return I(),L()}function x(y){return y?y.replace(l,p):p}return xw=S,xw}var I$;function Bme(){if(I$)return qs;I$=1;var e=qs&&qs.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(qs,"__esModule",{value:!0}),qs.default=n;const t=e(Fme());function n(r,i){let o=null;if(!r||typeof r!="string")return o;const a=(0,t.default)(r),l=typeof i=="function";return a.forEach(c=>{if(c.type!=="declaration")return;const{property:d,value:f}=c;l?i(d,f,c):f&&(o=o||{},o[d]=f)}),o}return qs}var rc={},$$;function zme(){if($$)return rc;$$=1,Object.defineProperty(rc,"__esModule",{value:!0}),rc.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,o=function(d){return!d||n.test(d)||e.test(d)},a=function(d,f){return f.toUpperCase()},l=function(d,f){return"".concat(f,"-")},c=function(d,f){return f===void 0&&(f={}),o(d)?d:(d=d.toLowerCase(),f.reactCompat?d=d.replace(i,l):d=d.replace(r,l),d.replace(t,a))};return rc.camelCase=c,rc}var ic,M$;function Ume(){if(M$)return ic;M$=1;var e=ic&&ic.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},t=e(Bme()),n=zme();function r(i,o){var a={};
vendor: 2,744 bytes, line 962
962return!i||typeof i!="string"||(0,t.default)(i,function(l,c){l&&c&&(a[(0,n.camelCase)(l,o)]=c)}),a}return r.default=r,ic=r,ic}var qme=Ume();const Hme=lt(qme),$z=Mz("end"),$A=Mz("start");function Mz(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function Wme(e){const t=$A(e),n=$z(e);if(t&&n)return{start:t,end:n}}function Sc(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?D$(e.position):"start"in e||"end"in e?D$(e):"line"in e||"column"in e?OS(e):""}function OS(e){return L$(e&&e.line)+":"+L$(e&&e.column)}function D$(e){return OS(e&&e.start)+"-"+OS(e&&e.end)}function L$(e){return e&&typeof e=="number"?e:1}class Ln extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",o={},a=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof t=="string"?i=t:!o.cause&&t&&(a=!0,i=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof r=="string"){const c=r.indexOf(":");c===-1?o.ruleId=r:(o.source=r.slice(0,c),o.ruleId=r.slice(c+1))}if(!o.place&&o.ancestors&&o.ancestors){const c=o.ancestors[o.ancestors.length-1];c&&(o.place=c.position)}const l=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=l?l.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=l?l.line:void 0,this.name=Sc(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=a&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Ln.prototype.file="";Ln.prototype.name="";Ln.prototype.reason="";Ln.prototype.message="";Ln.prototype.stack="";Ln.prototype.column=void 0;Ln.prototype.line=void 0;Ln.prototype.ancestors=void 0;Ln.prototype.cause=void 0;Ln.prototype.fatal=void 0;Ln.prototype.place=void 0;Ln.prototype.ruleId=void 0;Ln.prototype.source=void 0;const MA={}.hasOwnProperty,Vme=new Map,Kme=/[A-Z]/g,Gme=new Set(["table","tbody","thead","tfoot","tr"]),Yme=new Set(["td","th"]),Dz="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Xme(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=ige(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");
vendor: 6,347 bytes, line 962
962if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=rge(n,t.jsx,t.jsxs)}const i={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:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?IA:Dme,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=Lz(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function Lz(e,t,n){if(t.type==="element")return Qme(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Zme(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return ege(e,t,n);if(t.type==="mdxjsEsm")return Jme(e,t);if(t.type==="root")return tge(e,t,n);if(t.type==="text")return nge(e,t)}function Qme(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=IA,e.schema=i),e.ancestors.push(t);const o=Bz(e,t.tagName,!1),a=oge(e,t);let l=LA(e,t);return Gme.has(t.tagName)&&(l=l.filter(function(c){return typeof c=="string"?!Ome(c):!0})),Fz(e,a,o,t),DA(a,l),e.ancestors.pop(),e.schema=r,e.create(t,o,a,n)}function Zme(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}fd(e,t.position)}function Jme(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);fd(e,t.position)}function ege(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=IA,e.schema=i),e.ancestors.push(t);const o=t.name===null?e.Fragment:Bz(e,t.name,!0),a=age(e,t),l=LA(e,t);return Fz(e,a,o,t),DA(a,l),e.ancestors.pop(),e.schema=r,e.create(t,o,a,n)}function tge(e,t,n){const r={};return DA(r,LA(e,t)),e.create(t,e.Fragment,r,n)}function nge(e,t){return t.value}function Fz(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function DA(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function rge(e,t,n){return r;function r(i,o,a,l){const d=Array.isArray(a.children)?n:t;return l?d(o,a,l):d(o,a)}}function ige(e,t){return n;function n(r,i,o,a){const l=Array.isArray(o.children),c=$A(r);return t(i,o,a,l,{columnNumber:c?c.column-1:void 0,fileName:e,lineNumber:c?c.line:void 0},void 0)}}function oge(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&MA.call(t.properties,i)){const o=sge(e,i,t.properties[i]);if(o){const[a,l]=o;e.tableCellAlignToStyle&&a==="align"&&typeof l=="string"&&Yme.has(t.tagName)?r=l:n[a]=l}}if(r){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function age(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const o=r.data.estree.body[0];o.type;const a=o.expression;a.type;const l=a.properties[0];l.type,Object.assign(n,e.evaluater.evaluateExpression(l.argument))}else fd(e,t.position);else{const i=r.name;let o;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const l=r.value.data.estree.body[0];l.type,o=e.evaluater.evaluateExpression(l.expression)}else fd(e,t.position);else o=r.value===null?!0:r.value;n[i]=o}return n}function LA(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:Vme;for(;++r<t.children.length;){const o=t.children[r];let a;if(e.passKeys){const c=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(c){const d=i.get(c)||0;a=c+"-"+d,i.set(c,d+1)}}const l=Lz(e,o,a);l!==void 0&&n.push(l)}return n}function sge(e,t,n){const r=Ime(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?Sme(n):Lme(n)),r.property==="style"){let i=typeof n=="object"?n:lge(e,String(n));return e.stylePropertyNameCase==="css"&&(i=uge(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?Tme[r.property]||r.property:r.attribute,n]}}function lge(e,t){try{return Hme(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new Ln("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=Dz+"#cannot-parse-style-attribute",i}}function Bz(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let o=-1,a;for(;++o<i.length;){const l=j$(i[o])?{type:"Identifier",name:i[o]}:{type:"Literal",value:i[o]};a=a?{type:"MemberExpression",object:a,property:l,computed:!!(o&&l.type==="Literal"),optional:!1}:l}r=a}else r=j$(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return MA.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);fd(e)}function fd(e,t){const n=new Ln("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=Dz+"#cannot-handle-mdx-estrees-without-createevaluater",n}function uge(e){const t={};let n;for(n in e)MA.call(e,n)&&(t[cge(n)]=e[n]);return t}function cge(e){let t=e.replace(Kme,dge);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function dge(e){return"-"+e.toLowerCase()}const ww={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"]},fge={};function pge(e,t){const n=fge,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return zz(e,r,i)}function zz(e,t,n){if(hge(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return F$(e.children,t,n)}return Array.isArray(e)?F$(e,t,n):""}function F$(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=zz(e[i],t,n);return r.join("")}function hge(e){return!!(e&&typeof e=="object")}const B$=document.createElement("i");function FA(e){const t="&"+e+";";B$.innerHTML=t;const n=B$.textContent;
vendor: 14,538 bytes, line 962
962return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function ki(e,t,n,r){const i=e.length;let o=0,a;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)a=Array.from(r),a.unshift(t,n),e.splice(...a);else for(n&&e.splice(t,n);o<r.length;)a=r.slice(o,o+1e4),a.unshift(t,0),e.splice(...a),o+=1e4,t+=1e4}function Nr(e,t){return e.length>0?(ki(e,e.length,0,t),e):t}const z$={}.hasOwnProperty;function mge(e){const t={};let n=-1;for(;++n<e.length;)gge(t,e[n]);return t}function gge(e,t){let n;for(n in t){const i=(z$.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let a;if(o)for(a in o){z$.call(i,a)||(i[a]=[]);const l=o[a];vge(i[a],Array.isArray(l)?l:l?[l]:[])}}}function vge(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);ki(e,0,0,r)}function Uz(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function ol(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const yi=ra(/[A-Za-z]/),mr=ra(/[\dA-Za-z]/),yge=ra(/[#-'*+\--9=?A-Z^-~]/);function PS(e){return e!==null&&(e<32||e===127)}const jS=ra(/\d/),bge=ra(/[\dA-Fa-f]/),xge=ra(/[!-/:-@[-`{-~]/);function He(e){return e!==null&&e<-2}function rr(e){return e!==null&&(e<0||e===32)}function dt(e){return e===-2||e===-1||e===32}const wge=ra(new RegExp("\\p{P}|\\p{S}","u")),Sge=ra(/\s/);function ra(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function ru(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const o=e.charCodeAt(n);let a="";if(o===37&&mr(e.charCodeAt(n+1))&&mr(e.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(a=String.fromCharCode(o));else if(o>55295&&o<57344){const l=e.charCodeAt(n+1);o<56320&&l>56319&&l<57344?(a=String.fromCharCode(o,l),i=1):a="�"}else a=String.fromCharCode(o);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+i+1,a=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function Et(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return a;function a(c){return dt(c)?(e.enter(n),l(c)):t(c)}function l(c){return dt(c)&&o++<i?(e.consume(c),l):(e.exit(n),t(c))}}const _ge={tokenize:Age};function Age(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),Et(e,t,"linePrefix")}function i(l){return e.enter("paragraph"),o(l)}function o(l){const c=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=c),n=c,a(l)}function a(l){if(l===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(l);return}return He(l)?(e.consume(l),e.exit("chunkText"),o):(e.consume(l),a)}}const Ege={tokenize:kge},U$={tokenize:Oge};function kge(e){const t=this,n=[];let r=0,i,o,a;return l;function l(_){if(r<n.length){const j=n[r];return t.containerState=j[1],e.attempt(j[0].continuation,c,d)(_)}return d(_)}function c(_){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&A();const j=t.events.length;let k=j,O;for(;k--;)if(t.events[k][0]==="exit"&&t.events[k][1].type==="chunkFlow"){O=t.events[k][1].end;break}w(r);let T=j;for(;T<t.events.length;)t.events[T][1].end={...O},T++;return ki(t.events,k+1,0,t.events.slice(j)),t.events.length=T,d(_)}return l(_)}function d(_){if(r===n.length){if(!i)return g(_);if(i.currentConstruct&&i.currentConstruct.concrete)return S(_);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(U$,f,p)(_)}function f(_){return i&&A(),w(r),g(_)}function p(_){return t.parser.lazy[t.now().line]=r!==n.length,a=t.now().offset,S(_)}function g(_){return t.containerState={},e.attempt(U$,v,S)(_)}function v(_){return r++,n.push([t.currentConstruct,t.containerState]),g(_)}function S(_){if(_===null){i&&A(),w(0),e.consume(_);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:o}),x(_)}function x(_){if(_===null){y(e.exit("chunkFlow"),!0),w(0),e.consume(_);return}return He(_)?(e.consume(_),y(e.exit("chunkFlow")),r=0,t.interrupt=void 0,l):(e.consume(_),x)}function y(_,j){const k=t.sliceStream(_);if(j&&k.push(null),_.previous=o,o&&(o.next=_),o=_,i.defineSkip(_.start),i.write(k),t.parser.lazy[_.start.line]){let O=i.events.length;for(;O--;)if(i.events[O][1].start.offset<a&&(!i.events[O][1].end||i.events[O][1].end.offset>a))return;const T=t.events.length;let N=T,I,z;for(;N--;)if(t.events[N][0]==="exit"&&t.events[N][1].type==="chunkFlow"){if(I){z=t.events[N][1].end;break}I=!0}for(w(r),O=T;O<t.events.length;)t.events[O][1].end={...z},O++;ki(t.events,N+1,0,t.events.slice(T)),t.events.length=O}}function w(_){let j=n.length;for(;j-- >_;){const k=n[j];t.containerState=k[1],k[0].exit.call(t,e)}n.length=_}function A(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function Oge(e,t,n){return Et(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function q$(e){if(e===null||rr(e)||Sge(e))return 1;if(wge(e))return 2}function BA(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}const CS={name:"attention",resolveAll:Pge,tokenize:jge};function Pge(e,t){let n=-1,r,i,o,a,l,c,d,f;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;c=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const p={...e[r][1].end},g={...e[n][1].start};H$(p,-c),H$(g,c),a={type:c>1?"strongSequence":"emphasisSequence",start:p,end:{...e[r][1].end}},l={type:c>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:g},o={type:c>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:c>1?"strong":"emphasis",start:{...a.start},end:{...l.end}},e[r][1].end={...a.start},e[n][1].start={...l.end},d=[],e[r][1].end.offset-e[r][1].start.offset&&(d=Nr(d,[["enter",e[r][1],t],["exit",e[r][1],t]])),d=Nr(d,[["enter",i,t],["enter",a,t],["exit",a,t],["enter",o,t]]),d=Nr(d,BA(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),d=Nr(d,[["exit",o,t],["enter",l,t],["exit",l,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(f=2,d=Nr(d,[["enter",e[n][1],t],["exit",e[n][1],t]])):f=0,ki(e,r-1,n-r+3,d),n=r+d.length-f-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function jge(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=q$(r);let o;return a;function a(c){return o=c,e.enter("attentionSequence"),l(c)}function l(c){if(c===o)return e.consume(c),l;const d=e.exit("attentionSequence"),f=q$(c),p=!f||f===2&&i||n.includes(c),g=!i||i===2&&f||n.includes(r);return d._open=!!(o===42?p:p&&(i||!g)),d._close=!!(o===42?g:g&&(f||!p)),t(c)}}function H$(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Cge={name:"autolink",tokenize:Tge};function Tge(e,t,n){let r=0;return i;function i(v){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(v),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(v){return yi(v)?(e.consume(v),a):v===64?n(v):d(v)}function a(v){return v===43||v===45||v===46||mr(v)?(r=1,l(v)):d(v)}function l(v){return v===58?(e.consume(v),r=0,c):(v===43||v===45||v===46||mr(v))&&r++<32?(e.consume(v),l):(r=0,d(v))}function c(v){return v===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(v),e.exit("autolinkMarker"),e.exit("autolink"),t):v===null||v===32||v===60||PS(v)?n(v):(e.consume(v),c)}function d(v){return v===64?(e.consume(v),f):yge(v)?(e.consume(v),d):n(v)}function f(v){return mr(v)?p(v):n(v)}function p(v){return v===46?(e.consume(v),r=0,f):v===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(v),e.exit("autolinkMarker"),e.exit("autolink"),t):g(v)}function g(v){if((v===45||mr(v))&&r++<63){const S=v===45?g:p;return e.consume(v),S}return n(v)}}const Zm={partial:!0,tokenize:Nge};function Nge(e,t,n){return r;function r(o){return dt(o)?Et(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||He(o)?t(o):n(o)}}const qz={continuation:{tokenize:Ige},exit:$ge,name:"blockQuote",tokenize:Rge};function Rge(e,t,n){const r=this;return i;function i(a){if(a===62){const l=r.containerState;return l.open||(e.enter("blockQuote",{_container:!0}),l.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(a),e.exit("blockQuoteMarker"),o}return n(a)}function o(a){return dt(a)?(e.enter("blockQuotePrefixWhitespace"),e.consume(a),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(a))}}function Ige(e,t,n){const r=this;return i;function i(a){return dt(a)?Et(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a):o(a)}function o(a){return e.attempt(qz,t,n)(a)}}function $ge(e){e.exit("blockQuote")}const Hz={name:"characterEscape",tokenize:Mge};function Mge(e,t,n){return r;function r(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),i}function i(o){return xge(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}const Wz={name:"characterReference",tokenize:Dge};function Dge(e,t,n){const r=this;let i=0,o,a;return l;function l(p){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),c}function c(p){return p===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(p),e.exit("characterReferenceMarkerNumeric"),d):(e.enter("characterReferenceValue"),o=31,a=mr,f(p))}function d(p){return p===88||p===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(p),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,a=bge,f):(e.enter("characterReferenceValue"),o=7,a=jS,f(p))}function f(p){if(p===59&&i){const g=e.exit("characterReferenceValue");return a===mr&&!FA(r.sliceSerialize(g))?n(p):(e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return a(p)&&i++<o?(e.consume(p),f):n(p)}}const W$={partial:!0,tokenize:Fge},V$={concrete:!0,name:"codeFenced",tokenize:Lge};function Lge(e,t,n){const r=this,i={partial:!0,tokenize:k};let o=0,a=0,l;return c;function c(O){return d(O)}function d(O){const T=r.events[r.events.length-1];return o=T&&T[1].type==="linePrefix"?T[2].sliceSerialize(T[1],!0).length:0,l=O,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),f(O)}function f(O){return O===l?(a++,e.consume(O),f):a<3?n(O):(e.exit("codeFencedFenceSequence"),dt(O)?Et(e,p,"whitespace")(O):p(O))}function p(O){return O===null||He(O)?(e.exit("codeFencedFence"),r.interrupt?t(O):e.check(W$,x,j)(O)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),g(O))}function g(O){return O===null||He(O)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),p(O)):dt(O)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Et(e,v,"whitespace")(O)):O===96&&O===l?n(O):(e.consume(O),g)}function v(O){return O===null||He(O)?p(O):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),S(O))}function S(O){return O===null||He(O)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),p(O)):O===96&&O===l?n(O):(e.consume(O),S)}function x(O){return e.attempt(i,j,y)(O)}function y(O){return e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),w}function w(O){return o>0&&dt(O)?Et(e,A,"linePrefix",o+1)(O):A(O)}function A(O){return O===null||He(O)?e.check(W$,x,j)(O):(e.enter("codeFlowValue"),_(O))}function _(O){return O===null||He(O)?(e.exit("codeFlowValue"),A(O)):(e.consume(O),_)}function j(O){return e.exit("codeFenced"),t(O)}function k(O,T,N){let I=0;return z;function z(U){return O.enter("lineEnding"),O.consume(U),O.exit("lineEnding"),F}function F(U){return O.enter("codeFencedFence"),dt(U)?Et(O,D,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(U):D(U)}function D(U){return U===l?(O.enter("codeFencedFenceSequence"),L(U)):N(U)}function L(U){return U===l?(I++,O.consume(U),L):I>=a?(O.exit("codeFencedFenceSequence"),dt(U)?Et(O,B,"whitespace")(U):B(U)):N(U)}function B(U){return U===null||He(U)?(O.exit("codeFencedFence"),T(U)):N(U)}}}function Fge(e,t,n){const r=this;return i;function i(a){return a===null?n(a):(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o)}function o(a){return r.parser.lazy[r.now().line]?n(a):t(a)}}const Sw={name:"codeIndented",tokenize:zge},Bge={partial:!0,tokenize:Uge};function zge(e,t,n){const r=this;return i;function i(d){return e.enter("codeIndented"),Et(e,o,"linePrefix",5)(d)}function o(d){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?a(d):n(d)}function a(d){return d===null?c(d):He(d)?e.attempt(Bge,a,c)(d):(e.enter("codeFlowValue"),l(d))}function l(d){return d===null||He(d)?(e.exit("codeFlowValue"),a(d)):(e.consume(d),l)}function c(d){return e.exit("codeIndented"),t(d)}}function Uge(e,t,n){const r=this;return i;function i(a){return r.parser.lazy[r.now().line]?n(a):He(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),i):Et(e,o,"linePrefix",5)(a)}function o(a){const l=r.events[r.events.length-1];return l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(a):He(a)?i(a):n(a)}}const qge={name:"codeText",previous:Wge,resolve:Hge,tokenize:Vge};function Hge(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function Wge(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Vge(e,t,n){let r=0,i,o;return a;
vendor: 5,347 bytes, line 962
962function a(p){return e.enter("codeText"),e.enter("codeTextSequence"),l(p)}function l(p){return p===96?(e.consume(p),r++,l):(e.exit("codeTextSequence"),c(p))}function c(p){return p===null?n(p):p===32?(e.enter("space"),e.consume(p),e.exit("space"),c):p===96?(o=e.enter("codeTextSequence"),i=0,f(p)):He(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),c):(e.enter("codeTextData"),d(p))}function d(p){return p===null||p===32||p===96||He(p)?(e.exit("codeTextData"),c(p)):(e.consume(p),d)}function f(p){return p===96?(e.consume(p),i++,f):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(p)):(o.type="codeTextData",d(p))}}class Kge{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const o=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&oc(this.left,r),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),oc(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),oc(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);oc(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);oc(this.left,n.reverse())}}}function oc(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 Vz(e){const t={};let n=-1,r,i,o,a,l,c,d;const f=new Kge(e);for(;++n<f.length;){for(;n in t;)n=t[n];if(r=f.get(n),n&&r[1].type==="chunkFlow"&&f.get(n-1)[1].type==="listItemPrefix"&&(c=r[1]._tokenizer.events,o=0,o<c.length&&c[o][1].type==="lineEndingBlank"&&(o+=2),o<c.length&&c[o][1].type==="content"))for(;++o<c.length&&c[o][1].type!=="content";)c[o][1].type==="chunkText"&&(c[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,Gge(f,n)),n=t[n],d=!0);else if(r[1]._container){for(o=n,i=void 0;o--;)if(a=f.get(o),a[1].type==="lineEnding"||a[1].type==="lineEndingBlank")a[0]==="enter"&&(i&&(f.get(i)[1].type="lineEndingBlank"),a[1].type="lineEnding",i=o);else if(!(a[1].type==="linePrefix"||a[1].type==="listItemIndent"))break;i&&(r[1].end={...f.get(i)[1].start},l=f.slice(i,n),l.unshift(r),f.splice(i,n-i+1,l))}}return ki(e,0,Number.POSITIVE_INFINITY,f.slice(0)),!d}function Gge(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const o=[];let a=n._tokenizer;a||(a=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(a._contentTypeTextTrailing=!0));const l=a.events,c=[],d={};let f,p,g=-1,v=n,S=0,x=0;const y=[x];for(;v;){for(;e.get(++i)[1]!==v;);o.push(i),v._tokenizer||(f=r.sliceStream(v),v.next||f.push(null),p&&a.defineSkip(v.start),v._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(f),v._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),p=v,v=v.next}for(v=n;++g<l.length;)l[g][0]==="exit"&&l[g-1][0]==="enter"&&l[g][1].type===l[g-1][1].type&&l[g][1].start.line!==l[g][1].end.line&&(x=g+1,y.push(x),v._tokenizer=void 0,v.previous=void 0,v=v.next);for(a.events=[],v?(v._tokenizer=void 0,v.previous=void 0):y.pop(),g=y.length;g--;){const w=l.slice(y[g],y[g+1]),A=o.pop();c.push([A,A+w.length-1]),e.splice(A,2,w)}for(c.reverse(),g=-1;++g<c.length;)d[S+c[g][0]]=S+c[g][1],S+=c[g][1]-c[g][0]-1;return d}const Yge={resolve:Qge,tokenize:Zge},Xge={partial:!0,tokenize:Jge};function Qge(e){return Vz(e),e}function Zge(e,t){let n;return r;function r(l){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(l)}function i(l){return l===null?o(l):He(l)?e.check(Xge,a,o)(l):(e.consume(l),i)}function o(l){return e.exit("chunkContent"),e.exit("content"),t(l)}function a(l){return e.consume(l),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function Jge(e,t,n){const r=this;return i;function i(a){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),Et(e,o,"linePrefix")}function o(a){if(a===null||He(a))return n(a);const l=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(a):e.interrupt(r.parser.constructs.flow,n,t)(a)}}function Kz(e,t,n,r,i,o,a,l,c){const d=c||Number.POSITIVE_INFINITY;let f=0;return p;function p(w){return w===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(w),e.exit(o),g):w===null||w===32||w===4
vendor: 21,091 bytes, line 962
9621||PS(w)?n(w):(e.enter(r),e.enter(a),e.enter(l),e.enter("chunkString",{contentType:"string"}),x(w))}function g(w){return w===62?(e.enter(o),e.consume(w),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),v(w))}function v(w){return w===62?(e.exit("chunkString"),e.exit(l),g(w)):w===null||w===60||He(w)?n(w):(e.consume(w),w===92?S:v)}function S(w){return w===60||w===62||w===92?(e.consume(w),v):v(w)}function x(w){return!f&&(w===null||w===41||rr(w))?(e.exit("chunkString"),e.exit(l),e.exit(a),e.exit(r),t(w)):f<d&&w===40?(e.consume(w),f++,x):w===41?(e.consume(w),f--,x):w===null||w===32||w===40||PS(w)?n(w):(e.consume(w),w===92?y:x)}function y(w){return w===40||w===41||w===92?(e.consume(w),x):x(w)}}function Gz(e,t,n,r,i,o){const a=this;let l=0,c;return d;function d(v){return e.enter(r),e.enter(i),e.consume(v),e.exit(i),e.enter(o),f}function f(v){return l>999||v===null||v===91||v===93&&!c||v===94&&!l&&"_hiddenFootnoteSupport"in a.parser.constructs?n(v):v===93?(e.exit(o),e.enter(i),e.consume(v),e.exit(i),e.exit(r),t):He(v)?(e.enter("lineEnding"),e.consume(v),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),p(v))}function p(v){return v===null||v===91||v===93||He(v)||l++>999?(e.exit("chunkString"),f(v)):(e.consume(v),c||(c=!dt(v)),v===92?g:p)}function g(v){return v===91||v===92||v===93?(e.consume(v),l++,p):p(v)}}function Yz(e,t,n,r,i,o){let a;return l;function l(g){return g===34||g===39||g===40?(e.enter(r),e.enter(i),e.consume(g),e.exit(i),a=g===40?41:g,c):n(g)}function c(g){return g===a?(e.enter(i),e.consume(g),e.exit(i),e.exit(r),t):(e.enter(o),d(g))}function d(g){return g===a?(e.exit(o),c(a)):g===null?n(g):He(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),Et(e,d,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(g))}function f(g){return g===a||g===null||He(g)?(e.exit("chunkString"),d(g)):(e.consume(g),g===92?p:f)}function p(g){return g===a||g===92?(e.consume(g),f):f(g)}}function _c(e,t){let n;return r;function r(i){return He(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):dt(i)?Et(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const eve={name:"definition",tokenize:nve},tve={partial:!0,tokenize:rve};function nve(e,t,n){const r=this;let i;return o;function o(v){return e.enter("definition"),a(v)}function a(v){return Gz.call(r,e,l,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(v)}function l(v){return i=ol(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),v===58?(e.enter("definitionMarker"),e.consume(v),e.exit("definitionMarker"),c):n(v)}function c(v){return rr(v)?_c(e,d)(v):d(v)}function d(v){return Kz(e,f,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(v)}function f(v){return e.attempt(tve,p,p)(v)}function p(v){return dt(v)?Et(e,g,"whitespace")(v):g(v)}function g(v){return v===null||He(v)?(e.exit("definition"),r.parser.defined.push(i),t(v)):n(v)}}function rve(e,t,n){return r;function r(l){return rr(l)?_c(e,i)(l):n(l)}function i(l){return Yz(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(l)}function o(l){return dt(l)?Et(e,a,"whitespace")(l):a(l)}function a(l){return l===null||He(l)?t(l):n(l)}}const ive={name:"hardBreakEscape",tokenize:ove};function ove(e,t,n){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return He(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const ave={name:"headingAtx",resolve:sve,tokenize:lve};function sve(e,t){let n=e.length-2,r=3,i,o;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},o={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},ki(e,r,n-r+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function lve(e,t,n){let r=0;return i;function i(f){return e.enter("atxHeading"),o(f)}function o(f){return e.enter("atxHeadingSequence"),a(f)}function a(f){return f===35&&r++<6?(e.consume(f),a):f===null||rr(f)?(e.exit("atxHeadingSequence"),l(f)):n(f)}function l(f){return f===35?(e.enter("atxHeadingSequence"),c(f)):f===null||He(f)?(e.exit("atxHeading"),t(f)):dt(f)?Et(e,l,"whitespace")(f):(e.enter("atxHeadingText"),d(f))}function c(f){return f===35?(e.consume(f),c):(e.exit("atxHeadingSequence"),l(f))}function d(f){return f===null||f===35||rr(f)?(e.exit("atxHeadingText"),l(f)):(e.consume(f),d)}}const uve=["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"],K$=["pre","script","style","textarea"],cve={concrete:!0,name:"htmlFlow",resolveTo:pve,tokenize:hve},dve={partial:!0,tokenize:gve},fve={partial:!0,tokenize:mve};function pve(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function hve(e,t,n){const r=this;let i,o,a,l,c;return d;function d(M){return f(M)}function f(M){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(M),p}function p(M){return M===33?(e.consume(M),g):M===47?(e.consume(M),o=!0,x):M===63?(e.consume(M),i=3,r.interrupt?t:R):yi(M)?(e.consume(M),a=String.fromCharCode(M),y):n(M)}function g(M){return M===45?(e.consume(M),i=2,v):M===91?(e.consume(M),i=5,l=0,S):yi(M)?(e.consume(M),i=4,r.interrupt?t:R):n(M)}function v(M){return M===45?(e.consume(M),r.interrupt?t:R):n(M)}function S(M){const re="CDATA[";return M===re.charCodeAt(l++)?(e.consume(M),l===re.length?r.interrupt?t:D:S):n(M)}function x(M){return yi(M)?(e.consume(M),a=String.fromCharCode(M),y):n(M)}function y(M){if(M===null||M===47||M===62||rr(M)){const re=M===47,ce=a.toLowerCase();return!re&&!o&&K$.includes(ce)?(i=1,r.interrupt?t(M):D(M)):uve.includes(a.toLowerCase())?(i=6,re?(e.consume(M),w):r.interrupt?t(M):D(M)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(M):o?A(M):_(M))}return M===45||mr(M)?(e.consume(M),a+=String.fromCharCode(M),y):n(M)}function w(M){return M===62?(e.consume(M),r.interrupt?t:D):n(M)}function A(M){return dt(M)?(e.consume(M),A):z(M)}function _(M){return M===47?(e.consume(M),z):M===58||M===95||yi(M)?(e.consume(M),j):dt(M)?(e.consume(M),_):z(M)}function j(M){return M===45||M===46||M===58||M===95||mr(M)?(e.consume(M),j):k(M)}function k(M){return M===61?(e.consume(M),O):dt(M)?(e.consume(M),k):_(M)}function O(M){return M===null||M===60||M===61||M===62||M===96?n(M):M===34||M===39?(e.consume(M),c=M,T):dt(M)?(e.consume(M),O):N(M)}function T(M){return M===c?(e.consume(M),c=null,I):M===null||He(M)?n(M):(e.consume(M),T)}function N(M){return M===null||M===34||M===39||M===47||M===60||M===61||M===62||M===96||rr(M)?k(M):(e.consume(M),N)}function I(M){return M===47||M===62||dt(M)?_(M):n(M)}function z(M){return M===62?(e.consume(M),F):n(M)}function F(M){return M===null||He(M)?D(M):dt(M)?(e.consume(M),F):n(M)}function D(M){return M===45&&i===2?(e.consume(M),G):M===60&&i===1?(e.consume(M),Z):M===62&&i===4?(e.consume(M),q):M===63&&i===3?(e.consume(M),R):M===93&&i===5?(e.consume(M),ee):He(M)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(dve,V,L)(M)):M===null||He(M)?(e.exit("htmlFlowData"),L(M)):(e.consume(M),D)}function L(M){return e.check(fve,B,V)(M)}function B(M){return e.enter("lineEnding"),e.consume(M),e.exit("lineEnding"),U}function U(M){return M===null||He(M)?L(M):(e.enter("htmlFlowData"),D(M))}function G(M){return M===45?(e.consume(M),R):D(M)}function Z(M){return M===47?(e.consume(M),a="",Y):D(M)}function Y(M){if(M===62){const re=a.toLowerCase();return K$.includes(re)?(e.consume(M),q):D(M)}return yi(M)&&a.length<8?(e.consume(M),a+=String.fromCharCode(M),Y):D(M)}function ee(M){return M===93?(e.consume(M),R):D(M)}function R(M){return M===62?(e.consume(M),q):M===45&&i===2?(e.consume(M),R):D(M)}function q(M){return M===null||He(M)?(e.exit("htmlFlowData"),V(M)):(e.consume(M),q)}function V(M){return e.exit("htmlFlow"),t(M)}}function mve(e,t,n){const r=this;return i;function i(a){return He(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o):n(a)}function o(a){return r.parser.lazy[r.now().line]?n(a):t(a)}}function gve(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Zm,t,n)}}const vve={name:"htmlText",tokenize:yve};function yve(e,t,n){const r=this;let i,o,a;return l;function l(R){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(R),c}function c(R){return R===33?(e.consume(R),d):R===47?(e.consume(R),k):R===63?(e.consume(R),_):yi(R)?(e.consume(R),N):n(R)}function d(R){return R===45?(e.consume(R),f):R===91?(e.consume(R),o=0,S):yi(R)?(e.consume(R),A):n(R)}function f(R){return R===45?(e.consume(R),v):n(R)}function p(R){return R===null?n(R):R===45?(e.consume(R),g):He(R)?(a=p,Z(R)):(e.consume(R),p)}function g(R){return R===45?(e.consume(R),v):p(R)}function v(R){return R===62?G(R):R===45?g(R):p(R)}function S(R){const q="CDATA[";return R===q.charCodeAt(o++)?(e.consume(R),o===q.length?x:S):n(R)}function x(R){return R===null?n(R):R===93?(e.consume(R),y):He(R)?(a=x,Z(R)):(e.consume(R),x)}function y(R){return R===93?(e.consume(R),w):x(R)}function w(R){return R===62?G(R):R===93?(e.consume(R),w):x(R)}function A(R){return R===null||R===62?G(R):He(R)?(a=A,Z(R)):(e.consume(R),A)}function _(R){return R===null?n(R):R===63?(e.consume(R),j):He(R)?(a=_,Z(R)):(e.consume(R),_)}function j(R){return R===62?G(R):_(R)}function k(R){return yi(R)?(e.consume(R),O):n(R)}function O(R){return R===45||mr(R)?(e.consume(R),O):T(R)}function T(R){return He(R)?(a=T,Z(R)):dt(R)?(e.consume(R),T):G(R)}function N(R){return R===45||mr(R)?(e.consume(R),N):R===47||R===62||rr(R)?I(R):n(R)}function I(R){return R===47?(e.consume(R),G):R===58||R===95||yi(R)?(e.consume(R),z):He(R)?(a=I,Z(R)):dt(R)?(e.consume(R),I):G(R)}function z(R){return R===45||R===46||R===58||R===95||mr(R)?(e.consume(R),z):F(R)}function F(R){return R===61?(e.consume(R),D):He(R)?(a=F,Z(R)):dt(R)?(e.consume(R),F):I(R)}function D(R){return R===null||R===60||R===61||R===62||R===96?n(R):R===34||R===39?(e.consume(R),i=R,L):He(R)?(a=D,Z(R)):dt(R)?(e.consume(R),D):(e.consume(R),B)}function L(R){return R===i?(e.consume(R),i=void 0,U):R===null?n(R):He(R)?(a=L,Z(R)):(e.consume(R),L)}function B(R){return R===null||R===34||R===39||R===60||R===61||R===96?n(R):R===47||R===62||rr(R)?I(R):(e.consume(R),B)}function U(R){return R===47||R===62||rr(R)?I(R):n(R)}function G(R){return R===62?(e.consume(R),e.exit("htmlTextData"),e.exit("htmlText"),t):n(R)}function Z(R){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(R),e.exit("lineEnding"),Y}function Y(R){return dt(R)?Et(e,ee,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(R):ee(R)}function ee(R){return e.enter("htmlTextData"),a(R)}}const zA={name:"labelEnd",resolveAll:Sve,resolveTo:_ve,tokenize:Ave},bve={tokenize:Eve},xve={tokenize:kve},wve={tokenize:Ove};function Sve(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&ki(e,0,e.length,n),e}function _ve(e,t){let n=e.length,r=0,i,o,a,l;for(;n--;)if(i=e[n][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(a){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(a=n);const c={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},d={type:"label",start:{...e[o][1].start},end:{...e[a][1].end}},f={type:"labelText",start:{...e[o+r+2][1].end},end:{...e[a-2][1].start}};return l=[["enter",c,t],["enter",d,t]],l=Nr(l,e.slice(o+1,o+r+3)),l=Nr(l,[["enter",f,t]]),l=Nr(l,BA(t.parser.constructs.insideSpan.null,e.slice(o+r+4,a-3),t)),l=Nr(l,[["exit",f,t],e[a-2],e[a-1],["exit",d,t]]),l=Nr(l,e.slice(a+1)),l=Nr(l,[["exit",c,t]]),ki(e,o,e.length,l),e}function Ave(e,t,n){const r=this;let i=r.events.length,o,a;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){o=r.events[i][1];break}return l;function l(g){return o?o._inactive?p(g):(a=r.parser.defined.includes(ol(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(g),e.exit("labelMarker"),e.exit("labelEnd"),c):n(g)}function c(g){return g===40?e.attempt(bve,f,a?f:p)(g):g===91?e.attempt(xve,f,a?d:p)(g):a?f(g):p(g)}function d(g){return e.attempt(wve,f,p)(g)}function f(g){return t(g)}function p(g){return o._balanced=!0,n(g)}}function Eve(e,t,n){return r;function r(p){return e.enter("resource"),e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),i}function i(p){return rr(p)?_c(e,o)(p):o(p)}function o(p){return p===41?f(p):Kz(e,a,l,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(p)}function a(p){return rr(p)?_c(e,c)(p):f(p)}function l(p){return n(p)}function c(p){return p===34||p===39||p===40?Yz(e,d,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(p):f(p)}function d(p){return rr(p)?_c(e,f)(p):f(p)}function f(p){return p===41?(e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),e.exit("resource"),t):n(p)}}function kve(e,t,n){const r=this;return i;function i(l){return Gz.call(r,e,o,a,"reference","referenceMarker","referenceString")(l)}function o(l){return r.parser.defined.includes(ol(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(l):n(l)}function a(l){return n(l)}}function Ove(e,t,n){return r;function r(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),i}function i(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):n(o)}}const Pve={name:"labelStartImage",resolveAll:zA.resolveAll,tokenize:jve};function jve(e,t,n){const r=this;return i;function i(l){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(l),e.exit("labelImageMarker"),o}function o(l){return l===91?(e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelImage"),a):n(l)}function a(l){return l===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(l):t(l)}}const Cve={name:"labelStartLink",resolveAll:zA.resolveAll,tokenize:Tve};function Tve(e,t,n){const r=this;return i;function i(a){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelLink"),o}function o(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):t(a)}}const _w={name:"lineEnding",tokenize:Nve};function Nve(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Et(e,t,"linePrefix")}}const Fp={name:"thematicBreak",tokenize:Rve};function Rve(e,t,n){let r=0,i;return o;function o(d){return e.enter("thematicBreak"),a(d)}function a(d){return i=d,l(d)}function l(d){return d===i?(e.enter("thematicBreakSequence"),c(d)):r>=3&&(d===null||He(d))?(e.exit("thematicBreak"),t(d)):n(d)}function c(d){return d===i?(e.consume(d),r++,c):(e.exit("thematicBreakSequence"),dt(d)?Et(e,l,"whitespace")(d):l(d))}}const Jn={continuation:{tokenize:Dve},exit:Fve,name:"list",tokenize:Mve},Ive={partial:!0,tokenize:Bve},$ve={partial:!0,tokenize:Lve};function Mve(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,a=0;return l;function l(v){const S=r.containerState.type||(v===42||v===43||v===45?"listUnordered":"listOrdered");if(S==="listUnordered"?!r.containerState.marker||v===r.containerState.marker:jS(v)){if(r.containerState.type||(r.containerState.type=S,e.enter(S,{_container:!0})),S==="listUnordered")return e.enter("listItemPrefix"),v===42||v===45?e.check(Fp,n,d)(v):d(v);if(!r.interrupt||v===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),c(v)}return n(v)}function c(v){return jS(v)&&++a<10?(e.consume(v),c):(!r.interrupt||a<2)&&(r.containerState.marker?v===r.containerState.marker:v===41||v===46)?(e.exit("listItemValue"),d(v)):n(v)}function d(v){return e.enter("listItemMarker"),e.consume(v),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||v,e.check(Zm,r.interrupt?n:f,e.attempt(Ive,g,p))}function f(v){return r.containerState.initialBlankLine=!0,o++,g(v)}function p(v){return dt(v)?(e.enter("listItemPrefixWhitespace"),e.consume(v),e.exit("listItemPrefixWhitespace"),g):n(v)}function g(v){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(v)}}function Dve(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Zm,i,o);function i(l){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Et(e,t,"listItemIndent",r.containerState.size+1)(l)}function o(l){return r.containerState.furtherBlankLines||!dt(l)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(l)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt($ve,t,a)(l))}function a(l){return r.containerState._closeFlow=!0,r.interrupt=void 0,Et(e,e.attempt(Jn,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l)}}function Lve(e,t,n){const r=this;return Et(e,i,"listItemIndent",r.containerState.size+1);function i(o){const a=r.events[r.events.length-1];return a&&a[1].type==="listItemIndent"&&a[2].sliceSerialize(a[1],!0).length===r.containerState.size?t(o):n(o)}}function Fve(e){e.exit(this.containerState.type)}function Bve(e,t,n){const r=this;return Et(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){const a=r.events[r.events.length-1];return!dt(o)&&a&&a[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const G$={name:"setextUnderline",resolveTo:zve,tokenize:Uve};function zve(e,t){let n=e.length,r,i,o;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!o&&e[n][1].type==="definition"&&(o=n);const a={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",a,t]),e.splice(o+1,0,["exit",e[r][1],t]),e[r][1].end={...e[o][1].end}):e[r][1]=a,e.push(["exit",a,t]),e}function Uve(e,t,n){const r=this;let i;return o;function o(d){let f=r.events.length,p;for(;f--;)if(r.events[f][1].type!=="lineEnding"&&r.events[f][1].type!=="linePrefix"&&r.events[f][1].type!=="content"){p=r.events[f][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||p)?(e.enter("setextHeadingLine"),i=d,a(d)):n(d)}function a(d){return e.enter("setextHeadingLineSequence"),l(d)}function l(d){return d===i?(e.consume(d),l):(e.exit("setextHeadingLineSequence"),dt(d)?Et(e,c,"lineSuffix")(d):c(d))}function c(d){return d===null||He(d)?(e.exit("setextHeadingLine"),t(d)):n(d)}}const qve={tokenize:Hve};function Hve(e){const t=this,n=e.attempt(Zm,r,e.attempt(this.parser.constructs.flowInitial,i,Et(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Yge,i)),"linePrefix")));return n;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const Wve={resolveAll:Qz()},Vve=Xz("string"),Kve=Xz("text");function Xz(e){return{resolveAll:Qz(e==="text"?Gve:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],o=n.attempt(i,a,l);return a;function a(f){return d(f)?o(f):l(f)}function l(f){if(f===null){n.consume(f);return}return n.enter("data"),n.consume(f),c}function c(f){return d(f)?(n.exit("data"),o(f)):(n.consume(f),c)}function d(f){if(f===null)return!0;const p=i[f];let g=-1;if(p)for(;++g<p.length;){const v=p[g];if(!v.previous||v.previous.call(r,r.previous))return!0}return!1}}}function Qz(e){return t;function t(n,r){let i=-1,o;for(;++i<=n.length;)o===void 0?n[i]&&n[i][1].type==="data"&&(o=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==o+2&&(n[o][1].end=n[i-1][1].end,n.splice(o+2,i-o-2),i=o+2),o=void 0);return e?e(n,r):n}}function Gve(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let o=i.length,a=-1,l=0,c;for(;o--;){const d=i[o];
vendor: 1,940 bytes, line 962
962if(typeof d=="string"){for(a=d.length;d.charCodeAt(a-1)===32;)l++,a--;if(a)break;a=-1}else if(d===-2)c=!0,l++;else if(d!==-1){o++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(l=0),l){const d={type:n===e.length||c||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?a:r.start._bufferIndex+a,_index:r.start._index+o,line:r.end.line,column:r.end.column-l,offset:r.end.offset-l},end:{...r.end}};r.end={...d.start},r.start.offset===r.end.offset?Object.assign(r,d):(e.splice(n,0,["enter",d,t],["exit",d,t]),n+=2)}n++}return e}const Yve={42:Jn,43:Jn,45:Jn,48:Jn,49:Jn,50:Jn,51:Jn,52:Jn,53:Jn,54:Jn,55:Jn,56:Jn,57:Jn,62:qz},Xve={91:eve},Qve={[-2]:Sw,[-1]:Sw,32:Sw},Zve={35:ave,42:Fp,45:[G$,Fp],60:cve,61:G$,95:Fp,96:V$,126:V$},Jve={38:Wz,92:Hz},eye={[-5]:_w,[-4]:_w,[-3]:_w,33:Pve,38:Wz,42:CS,60:[Cge,vve],91:Cve,92:[ive,Hz],93:zA,95:CS,96:qge},tye={null:[CS,Wve]},nye={null:[42,95]},rye={null:[]},iye=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:nye,contentInitial:Xve,disable:rye,document:Yve,flow:Zve,flowInitial:Qve,insideSpan:tye,string:Jve,text:eye},Symbol.toStringTag,{value:"Module"}));function oye(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 i={},o=[];let a=[],l=[];const c={attempt:T(k),check:T(O),consume:A,enter:_,exit:j,interrupt:T(O,{interrupt:!0})},d={code:null,containerState:{},defineSkip:x,events:[],now:S,parser:e,previous:null,sliceSerialize:g,sliceStream:v,write:p};let f=t.tokenize.call(d,c);return t.resolveAll&&o.push(t),d;function p(F){return a=Nr(a,F),y(),a[a.length-1]!==null?[]:(N(t,0),d.events=BA(o,d.events,d),d.events)}function g(F,D){return sye(v(F),D)}function v(F){return aye(a,F)}function S(){const{_bufferIndex:F,_index:D,line:L,column:B,offset:U}=r;return{_bufferIndex:F,_index:D,line:L,column:B,offset:U}}function x(F){i[F.line]=F.column,z()}function y(){let F;for(;r._index<a.length;){const D=a[r._index];
vendor: 13,939 bytes, lines 962-964
962if(typeof D=="string")for(F=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===F&&r._bufferIndex<D.length;)w(D.charCodeAt(r._bufferIndex));else w(D)}}function w(F){f=f(F)}function A(F){He(F)?(r.line++,r.column=1,r.offset+=F===-3?2:1,z()):F!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++)),d.previous=F}function _(F,D){const L=D||{};return L.type=F,L.start=S(),d.events.push(["enter",L,d]),l.push(L),L}function j(F){const D=l.pop();return D.end=S(),d.events.push(["exit",D,d]),D}function k(F,D){N(F,D.from)}function O(F,D){D.restore()}function T(F,D){return L;function L(B,U,G){let Z,Y,ee,R;return Array.isArray(B)?V(B):"tokenize"in B?V([B]):q(B);function q(oe){return ae;function ae(pe){const te=pe!==null&&oe[pe],xe=pe!==null&&oe.null,je=[...Array.isArray(te)?te:te?[te]:[],...Array.isArray(xe)?xe:xe?[xe]:[]];return V(je)(pe)}}function V(oe){return Z=oe,Y=0,oe.length===0?G:M(oe[Y])}function M(oe){return ae;function ae(pe){return R=I(),ee=oe,oe.partial||(d.currentConstruct=oe),oe.name&&d.parser.constructs.disable.null.includes(oe.name)?ce():oe.tokenize.call(D?Object.assign(Object.create(d),D):d,c,re,ce)(pe)}}function re(oe){return F(ee,R),U}function ce(oe){return R.restore(),++Y<Z.length?M(Z[Y]):G}}}function N(F,D){F.resolveAll&&!o.includes(F)&&o.push(F),F.resolve&&ki(d.events,D,d.events.length-D,F.resolve(d.events.slice(D),d)),F.resolveTo&&(d.events=F.resolveTo(d.events,d))}function I(){const F=S(),D=d.previous,L=d.currentConstruct,B=d.events.length,U=Array.from(l);return{from:B,restore:G};function G(){r=F,d.previous=D,d.currentConstruct=L,d.events.length=B,l=U,z()}}function z(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function aye(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex;let a;if(n===i)a=[e[n].slice(r,o)];else{if(a=e.slice(n,i),r>-1){const l=a[0];typeof l=="string"?a[0]=l.slice(r):a.shift()}o>0&&a.push(e[i].slice(0,o))}return a}function sye(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const o=e[n];let a;if(typeof o=="string")a=o;else switch(o){case-5:{a="\r";break}case-4:{a=`
963`;break}case-3:{a=`\r
964`;break}case-2:{a=t?" ":"	";break}case-1:{if(!t&&i)continue;a=" ";break}default:a=String.fromCharCode(o)}i=o===-2,r.push(a)}return r.join("")}function lye(e){const r={constructs:mge([iye,...(e||{}).extensions||[]]),content:i(_ge),defined:[],document:i(Ege),flow:i(qve),lazy:{},string:i(Vve),text:i(Kve)};return r;function i(o){return a;function a(l){return oye(r,o,l)}}}function uye(e){for(;!Vz(e););return e}const Y$=/[\0\t\n\r]/g;function cye(){let e=1,t="",n=!0,r;return i;function i(o,a,l){const c=[];let d,f,p,g,v;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(a||void 0).decode(o)),p=0,t="",n&&(o.charCodeAt(0)===65279&&p++,n=void 0);p<o.length;){if(Y$.lastIndex=p,d=Y$.exec(o),g=d&&d.index!==void 0?d.index:o.length,v=o.charCodeAt(g),!d){t=o.slice(p);break}if(v===10&&p===g&&r)c.push(-3),r=void 0;else switch(r&&(c.push(-5),r=void 0),p<g&&(c.push(o.slice(p,g)),e+=g-p),v){case 0:{c.push(65533),e++;break}case 9:{for(f=Math.ceil(e/4)*4,c.push(-2);e++<f;)c.push(-1);break}case 10:{c.push(-4),e=1;break}default:r=!0,e=1}p=g+1}return l&&(r&&c.push(-5),t&&c.push(t),c.push(null)),c}}const dye=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function fye(e){return e.replace(dye,pye)}function pye(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),o=i===120||i===88;return Uz(n.slice(o?2:1),o?16:10)}return FA(n)||e}const Zz={}.hasOwnProperty;function hye(e,t,n){return typeof t!="string"&&(n=t,t=void 0),mye(n)(uye(lye(n).document().write(cye()(e,t,!0))))}function mye(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(Ce),autolinkProtocol:I,autolinkEmail:I,atxHeading:o(Ae),blockQuote:o(xe),characterEscape:I,characterReference:I,codeFenced:o(je),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:o(je,a),codeText:o(se,a),codeTextData:I,data:I,codeFlowValue:I,definition:o(Qe),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:o(ge),hardBreakEscape:o(_e),hardBreakTrailing:o(_e),htmlFlow:o(Fe,a),htmlFlowData:I,htmlText:o(Fe,a),htmlTextData:I,image:o(et),label:a,link:o(Ce),listItem:o(Ke),listItemValue:g,listOrdered:o(ze,p),listUnordered:o(ze),paragraph:o(Ze),reference:M,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:o(Ae),strong:o(Tt),thematicBreak:o(En)},exit:{atxHeading:c(),atxHeadingSequence:k,autolink:c(),autolinkEmail:te,autolinkProtocol:pe,blockQuote:c(),characterEscapeValue:z,characterReferenceMarkerHexadecimal:ce,characterReferenceMarkerNumeric:ce,characterReferenceValue:oe,characterReference:ae,codeFenced:c(y),codeFencedFence:x,codeFencedFenceInfo:v,codeFencedFenceMeta:S,codeFlowValue:z,codeIndented:c(w),codeText:c(U),codeTextData:z,data:z,definition:c(),definitionDestinationString:j,definitionLabelString:A,definitionTitleString:_,emphasis:c(),hardBreakEscape:c(D),hardBreakTrailing:c(D),htmlFlow:c(L),htmlFlowData:z,htmlText:c(B),htmlTextData:z,image:c(Z),label:ee,labelText:Y,lineEnding:F,link:c(G),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:re,resourceDestinationString:R,resourceTitleString:q,resource:V,setextHeading:c(N),setextHeadingLineSequence:T,setextHeadingText:O,strong:c(),thematicBreak:c()}};Jz(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(le){let ye={type:"root",children:[]};const Le={stack:[ye],tokenStack:[],config:t,enter:l,exit:d,buffer:a,resume:f,data:n},Ge=[];let it=-1;for(;++it<le.length;)if(le[it][1].type==="listOrdered"||le[it][1].type==="listUnordered")if(le[it][0]==="enter")Ge.push(it);else{const Jt=Ge.pop();it=i(le,Jt,it)}for(it=-1;++it<le.length;){const Jt=t[le[it][0]];Zz.call(Jt,le[it][1].type)&&Jt[le[it][1].type].call(Object.assign({sliceSerialize:le[it][2].sliceSerialize},Le),le[it][1])}if(Le.tokenStack.length>0){const Jt=Le.tokenStack[Le.tokenStack.length-1];(Jt[1]||X$).call(Le,void 0,Jt[0])}for(ye.position={start:To(le.length>0?le[0][1].start:{line:1,column:1,offset:0}),end:To(le.length>0?le[le.length-2][1].end:{line:1,column:1,offset:0})},it=-1;++it<t.transforms.length;)ye=t.transforms[it](ye)||ye;return ye}function i(le,ye,Le){let Ge=ye-1,it=-1,Jt=!1,Fr,Vt,br,ji;for(;++Ge<=Le;){const bn=le[Ge];switch(bn[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{bn[0]==="enter"?it++:it--,ji=void 0;break}case"lineEndingBlank":{bn[0]==="enter"&&(Fr&&!ji&&!it&&!br&&(br=Ge),ji=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:ji=void 0}if(!it&&bn[0]==="enter"&&bn[1].type==="listItemPrefix"||it===-1&&bn[0]==="exit"&&(bn[1].type==="listUnordered"||bn[1].type==="listOrdered")){if(Fr){let oi=Ge;for(Vt=void 0;oi--;){const ar=le[oi];if(ar[1].type==="lineEnding"||ar[1].type==="lineEndingBlank"){if(ar[0]==="exit")continue;Vt&&(le[Vt][1].type="lineEndingBlank",Jt=!0),ar[1].type="lineEnding",Vt=oi}else if(!(ar[1].type==="linePrefix"||ar[1].type==="blockQuotePrefix"||ar[1].type==="blockQuotePrefixWhitespace"||ar[1].type==="blockQuoteMarker"||ar[1].type==="listItemIndent"))break}br&&(!Vt||br<Vt)&&(Fr._spread=!0),Fr.end=Object.assign({},Vt?le[Vt][1].start:bn[1].end),le.splice(Vt||Ge,0,["exit",Fr,bn[2]]),Ge++,Le++}if(bn[1].type==="listItemPrefix"){const oi={type:"listItem",_spread:!1,start:Object.assign({},bn[1].start),end:void 0};Fr=oi,le.splice(Ge,0,["enter",oi,bn[2]]),Ge++,Le++,br=void 0,ji=!0}}}return le[ye][1]._spread=Jt,Le}function o(le,ye){return Le;function Le(Ge){l.call(this,le(Ge),Ge),ye&&ye.call(this,Ge)}}function a(){this.stack.push({type:"fragment",children:[]})}function l(le,ye,Le){this.stack[this.stack.length-1].children.push(le),this.stack.push(le),this.tokenStack.push([ye,Le||void 0]),le.position={start:To(ye.start),end:void 0}}function c(le){return ye;function ye(Le){le&&le.call(this,Le),d.call(this,Le)}}function d(le,ye){const Le=this.stack.pop(),Ge=this.tokenStack.pop();if(Ge)Ge[0].type!==le.type&&(ye?ye.call(this,le,Ge[0]):(Ge[1]||X$).call(this,le,Ge[0]));else throw new Error("Cannot close `"+le.type+"` ("+Sc({start:le.start,end:le.end})+"): it’s not open");Le.position.end=To(le.end)}function f(){return pge(this.stack.pop())}function p(){this.data.expectingFirstListItemValue=!0}function g(le){if(this.data.expectingFirstListItemValue){const ye=this.stack[this.stack.length-2];ye.start=Number.parseInt(this.sliceSerialize(le),10),this.data.expectingFirstListItemValue=void 0}}function v(){const le=this.resume(),ye=this.stack[this.stack.length-1];ye.lang=le}function S(){const le=this.resume(),ye=this.stack[this.stack.length-1];ye.meta=le}function x(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function y(){const le=this.resume(),ye=this.stack[this.stack.length-1];ye.value=le.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function w(){const le=this.resume(),ye=this.stack[this.stack.length-1];ye.value=le.replace(/(\r?\n|\r)$/g,"")}function A(le){const ye=this.resume(),Le=this.stack[this.stack.length-1];Le.label=ye,Le.identifier=ol(this.sliceSerialize(le)).toLowerCase()}function _(){const le=this.resume(),ye=this.stack[this.stack.length-1];ye.title=le}function j(){const le=this.resume(),ye=this.stack[this.stack.length-1];ye.url=le}function k(le){const ye=this.stack[this.stack.length-1];if(!ye.depth){const Le=this.sliceSerialize(le).length;ye.depth=Le}}function O(){this.data.setextHeadingSlurpLineEnding=!0}function T(le){const ye=this.stack[this.stack.length-1];ye.depth=this.sliceSerialize(le).codePointAt(0)===61?1:2}function N(){this.data.setextHeadingSlurpLineEnding=void 0}function I(le){const Le=this.stack[this.stack.length-1].children;let Ge=Le[Le.length-1];(!Ge||Ge.type!=="text")&&(Ge=Bt(),Ge.position={start:To(le.start),end:void 0},Le.push(Ge)),this.stack.push(Ge)}function z(le){const ye=this.stack.pop();ye.value+=this.sliceSerialize(le),ye.position.end=To(le.end)}function F(le){const ye=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Le=ye.children[ye.children.length-1];Le.position.end=To(le.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(ye.type)&&(I.call(this,le),z.call(this,le))}function D(){this.data.atHardBreak=!0}function L(){const le=this.resume(),ye=this.stack[this.stack.length-1];ye.value=le}function B(){const le=this.resume(),ye=this.stack[this.stack.length-1];ye.value=le}function U(){const le=this.resume(),ye=this.stack[this.stack.length-1];ye.value=le}function G(){const le=this.stack[this.stack.length-1];if(this.data.inReference){const ye=this.data.referenceType||"shortcut";le.type+="Reference",le.referenceType=ye,delete le.url,delete le.title}else delete le.identifier,delete le.label;this.data.referenceType=void 0}function Z(){const le=this.stack[this.stack.length-1];if(this.data.inReference){const ye=this.data.referenceType||"shortcut";le.type+="Reference",le.referenceType=ye,delete le.url,delete le.title}else delete le.identifier,delete le.label;this.data.referenceType=void 0}function Y(le){const ye=this.sliceSerialize(le),Le=this.stack[this.stack.length-2];Le.label=fye(ye),Le.identifier=ol(ye).toLowerCase()}function ee(){const le=this.stack[this.stack.length-1],ye=this.resume(),Le=this.stack[this.stack.length-1];if(this.data.inReference=!0,Le.type==="link"){const Ge=le.children;Le.children=Ge}else Le.alt=ye}function R(){const le=this.resume(),ye=this.stack[this.stack.length-1];ye.url=le}function q(){const le=this.resume(),ye=this.stack[this.stack.length-1];ye.title=le}function V(){this.data.inReference=void 0}function M(){this.data.referenceType="collapsed"}function re(le){const ye=this.resume(),Le=this.stack[this.stack.length-1];Le.label=ye,Le.identifier=ol(this.sliceSerialize(le)).toLowerCase(),this.data.referenceType="full"}function ce(le){this.data.characterReferenceType=le.type}function oe(le){const ye=this.sliceSerialize(le),Le=this.data.characterReferenceType;let Ge;Le?(Ge=Uz(ye,Le==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Ge=FA(ye);const it=this.stack[this.stack.length-1];it.value+=Ge}function ae(le){const ye=this.stack.pop();ye.position.end=To(le.end)}function pe(le){z.call(this,le);const ye=this.stack[this.stack.length-1];ye.url=this.sliceSerialize(le)}function te(le){z.call(this,le);const ye=this.stack[this.stack.length-1];ye.url="mailto:"+this.sliceSerialize(le)}function xe(){return{type:"blockquote",children:[]}}function je(){return{type:"code",lang:null,meta:null,value:""}}function se(){return{type:"inlineCode",value:""}}function Qe(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function ge(){return{type:"emphasis",children:[]}}function Ae(){return{type:"heading",depth:0,children:[]}}function _e(){return{type:"break"}}function Fe(){return{type:"html",value:""}}function et(){return{type:"image",title:null,url:"",alt:null}}function Ce(){return{type:"link",title:null,url:"",children:[]}}function ze(le){return{type:"list",ordered:le.type==="listOrdered",start:null,spread:le._spread,children:[]}}function Ke(le){return{type:"listItem",spread:le._spread,checked:null,children:[]}}function Ze(){return{type:"paragraph",children:[]}}function Tt(){return{type:"strong",children:[]}}function Bt(){return{type:"text",value:""}}function En(){return{type:"thematicBreak"}}}function To(e){return{line:e.line,column:e.column,offset:e.offset}}function Jz(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Jz(e,r):gye(e,r)}}function gye(e,t){let n;for(n in t)if(Zz.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}}}
vendor: 10,833 bytes, lines 964-968
964function X$(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Sc({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Sc({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Sc({start:t.start,end:t.end})+") is still open")}function vye(e){const t=this;t.parser=n;function n(r){return hye(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function yye(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)}function bye(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
965`}]}function xye(e,t){const n=t.value?t.value+`
966`:"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);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}function wye(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Sye(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function _ye(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=ru(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let a,l=e.footnoteCounts.get(r);l===void 0?(l=0,e.footnoteOrder.push(r),a=e.footnoteOrder.length):a=o+1,l+=1,e.footnoteCounts.set(r,l);const c={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(l>1?"-"+l:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,c);const d={type:"element",tagName:"sup",properties:{},children:[c]};return e.patch(t,d),e.applyData(t,d)}function Aye(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Eye(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function e5(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),o=i[0];o&&o.type==="text"?o.value="["+o.value:i.unshift({type:"text",value:"["});const a=i[i.length-1];return a&&a.type==="text"?a.value+=r:i.push({type:"text",value:r}),i}function kye(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return e5(e,t);const i={src:ru(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)}function Oye(e,t){const n={src:ru(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function Pye(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)}function jye(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return e5(e,t);const i={href:ru(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function Cye(e,t){const n={href:ru(t.url)};t.title!==null&&t.title!==void 0&&(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)}function Tye(e,t,n){const r=e.all(t),i=n?Nye(n):t5(t),o={},a=[];if(typeof t.checked=="boolean"){const f=r[0];let p;f&&f.type==="element"&&f.tagName==="p"?p=f:(p={type:"element",tagName:"p",properties:{},children:[]},r.unshift(p)),p.children.length>0&&p.children.unshift({type:"text",value:" "}),p.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let l=-1;for(;++l<r.length;){const f=r[l];(i||l!==0||f.type!=="element"||f.tagName!=="p")&&a.push({type:"text",value:`
967`}),f.type==="element"&&f.tagName==="p"&&!i?a.push(...f.children):a.push(f)}const c=r[r.length-1];c&&(i||c.type!=="element"||c.tagName!=="p")&&a.push({type:"text",value:`
968`});const d={type:"element",tagName:"li",properties:o,children:a};return e.patch(t,d),e.applyData(t,d)}function Nye(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=t5(n[r])}return t}function t5(e){const t=e.spread;return t??e.children.length>1}function Rye(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const a=r[i];if(a.type==="element"&&a.tagName==="li"&&a.properties&&Array.isArray(a.properties.className)&&a.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)}function Iye(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function $ye(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function Mye(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Dye(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const a={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],a),i.push(a)}if(n.length>0){const a={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},l=$A(t.children[1]),c=$z(t.children[t.children.length-1]);l&&c&&(a.position={start:l,end:c}),i.push(a)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)}function Lye(e,t,n){const r=n?n.children:void 0,o=(r?r.indexOf(t):1)===0?"th":"td",a=n&&n.type==="table"?n.align:void 0,l=a?a.length:t.children.length;let c=-1;const d=[];for(;++c<l;){const p=t.children[c],g={},v=a?a[c]:void 0;v&&(g.align=v);let S={type:"element",tagName:o,properties:g,children:[]};p&&(S.children=e.all(p),e.patch(p,S),S=e.applyData(p,S)),d.push(S)}const f={type:"element",tagName:"tr",properties:{},children:e.wrap(d,!0)};return e.patch(t,f),e.applyData(t,f)}function Fye(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const Q$=9,Z$=32;function Bye(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const o=[];for(;r;)o.push(J$(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(J$(t.slice(i),i>0,!1)),o.join("")}function J$(e,t,n){let r=0,i=e.length;if(t){let o=e.codePointAt(r);for(;o===Q$||o===Z$;)r++,o=e.codePointAt(r)}if(n){let o=e.codePointAt(i-1);for(;o===Q$||o===Z$;)i--,o=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function zye(e,t){const n={type:"text",value:Bye(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Uye(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const qye={blockquote:yye,break:bye,code:xye,delete:wye,emphasis:Sye,footnoteReference:_ye,heading:Aye,html:Eye,imageReference:kye,image:Oye,inlineCode:Pye,linkReference:jye,link:Cye,listItem:Tye,list:Rye,paragraph:Iye,root:$ye,strong:Mye,table:Dye,tableCell:Fye,tableRow:Lye,text:zye,thematicBreak:Uye,toml:Ap,yaml:Ap,definition:Ap,footnoteDefinition:Ap};function Ap(){}const n5=-1,Jm=0,Ac=1,Qh=2,UA=3,qA=4,HA=5,WA=6,r5=7,i5=8,eM=typeof self=="object"?self:globalThis,Hye=(e,t)=>{const n=(i,o)=>(e.set(o,i),i),r=i=>{if(e.has(i))return e.get(i);const[o,a]=t[i];switch(o){case Jm:case n5:return n(a,i);case Ac:{const l=n([],i);for(const c of a)l.push(r(c));return l}case Qh:{const l=n({},i);for(const[c,d]of a)l[r(c)]=r(d);return l}case UA:return n(new Date(a),i);case qA:{const{source:l,flags:c}=a;return n(new RegExp(l,c),i)}case HA:{const l=n(new Map,i);for(const[c,d]of a)l.set(r(c),r(d));return l}case WA:{const l=n(new Set,i);for(const c of a)l.add(r(c));return l}case r5:{const{name:l,message:c}=a;return n(new eM[l](c),i)}case i5:return n(BigInt(a),i);case"BigInt":return n(Object(BigInt(a)),i);case"ArrayBuffer":return n(new Uint8Array(a).buffer,a);case"DataView":{const{buffer:l}=new Uint8Array(a);return n(new DataView(l),a)}}return n(new eM[o](a),i)};return r},tM=e=>Hye(new Map,e)(0),Hs="",{toString:Wye}={},{keys:Vye}=Object,ac=e=>{const t=typeof e;if(t!=="object"||!e)return[Jm,t];const n=Wye.call(e).slice(8,-1);switch(n){case"Array":return[Ac,Hs];case"Object":return[Qh,Hs];case"Date":return[UA,Hs];case"RegExp":return[qA,Hs];case"Map":return[HA,Hs];case"Set":return[WA,Hs];case"DataView":return[Ac,n]}return n.includes("Array")?[Ac,n]:n.includes("Error")?[r5,n]:[Qh,n]},Ep=([e,t])=>e===Jm&&(t==="function"||t==="symbol"),Kye=(e,t,n,r)=>{const i=(a,l)=>{const c=r.push(a)-1;return n.set(l,c),c},o=a=>{if(n.has(a))return n.get(a);let[l,c]=ac(a);switch(l){case Jm:{let f=a;switch(c){case"bigint":l=i5,f=a.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+c);f=null;break;case"undefined":return i([n5],a)}return i([l,f],a)}case Ac:{if(c){let g=a;return c==="DataView"?g=new Uint8Array(a.buffer):c==="ArrayBuffer"&&(g=new Uint8Array(a)),i([c,[...g]],a)}const f=[],p=i([l,f],a);for(const g of a)f.push(o(g));return p}case Qh:{if(c)switch(c){case"BigInt":return i([c,a.toString()],a);case"Boolean":case"Number":case"String":return i([c,a.valueOf()],a)}if(t&&"toJSON"in a)return o(a.toJSON());const f=[],p=i([l,f],a);for(const g of Vye(a))(e||!Ep(ac(a[g])))&&f.push([o(g),o(a[g])]);return p}case UA:return i([l,a.toISOString()],a);case qA:{const{source:f,flags:p}=a;return i([l,{source:f,flags:p}],a)}case HA:{const f=[],p=i([l,f],a);for(const[g,v]of a)(e||!(Ep(ac(g))||Ep(ac(v))))&&f.push([o(g),o(v)]);return p}case WA:{const f=[],p=i([l,f],a);for(const g of a)(e||!Ep(ac(g)))&&f.push(o(g));return p}}const{message:d}=a;return i([l,{name:c,message:d}],a)};return o},nM=(e,{json:t,lossy:n}={})=>{const r=[];return Kye(!(t||n),!!t,new Map,r)(e),r},Zh=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?tM(nM(e,t)):structuredClone(e):(e,t)=>tM(nM(e,t));function Gye(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 Yye(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}
vendor: 4,262 bytes, lines 968-970
968function Xye(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Gye,r=e.options.footnoteBackLabel||Yye,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",a=e.options.footnoteLabelProperties||{className:["sr-only"]},l=[];let c=-1;for(;++c<e.footnoteOrder.length;){const d=e.footnoteById.get(e.footnoteOrder[c]);if(!d)continue;const f=e.all(d),p=String(d.identifier).toUpperCase(),g=ru(p.toLowerCase());let v=0;const S=[],x=e.footnoteCounts.get(p);for(;x!==void 0&&++v<=x;){S.length>0&&S.push({type:"text",value:" "});let A=typeof n=="string"?n:n(c,v);typeof A=="string"&&(A={type:"text",value:A}),S.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+g+(v>1?"-"+v:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(c,v),className:["data-footnote-backref"]},children:Array.isArray(A)?A:[A]})}const y=f[f.length-1];if(y&&y.type==="element"&&y.tagName==="p"){const A=y.children[y.children.length-1];A&&A.type==="text"?A.value+=" ":y.children.push({type:"text",value:" "}),y.children.push(...S)}else f.push(...S);const w={type:"element",tagName:"li",properties:{id:t+"fn-"+g},children:e.wrap(f,!0)};e.patch(d,w),l.push(w)}if(l.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...Zh(a),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
969`},{type:"element",tagName:"ol",properties:{},children:e.wrap(l,!0)},{type:"text",value:`
970`}]}}const o5=(function(e){if(e==null)return ebe;if(typeof e=="function")return eg(e);if(typeof e=="object")return Array.isArray(e)?Qye(e):Zye(e);if(typeof e=="string")return Jye(e);throw new Error("Expected function, string, or object as test")});function Qye(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=o5(e[n]);return eg(r);function r(...i){let o=-1;for(;++o<t.length;)if(t[o].apply(this,i))return!0;return!1}}function Zye(e){const t=e;return eg(n);function n(r){const i=r;let o;for(o in e)if(i[o]!==t[o])return!1;return!0}}function Jye(e){return eg(t);function t(n){return n&&n.type===e}}function eg(e){return t;function t(n,r,i){return!!(tbe(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function ebe(){return!0}function tbe(e){return e!==null&&typeof e=="object"&&"type"in e}const a5=[],nbe=!0,rM=!1,rbe="skip";function ibe(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const o=o5(i),a=r?-1:1;l(e,void 0,[])();function l(c,d,f){const p=c&&typeof c=="object"?c:{};if(typeof p.type=="string"){const v=typeof p.tagName=="string"?p.tagName:typeof p.name=="string"?p.name:void 0;Object.defineProperty(g,"name",{value:"node ("+(c.type+(v?"<"+v+">":""))+")"})}return g;function g(){let v=a5,S,x,y;if((!t||o(c,d,f[f.length-1]||void 0))&&(v=obe(n(c,f)),v[0]===rM))return v;if("children"in c&&c.children){const w=c;if(w.children&&v[0]!==rbe)for(x=(r?w.children.length:-1)+a,y=f.concat(w);x>-1&&x<w.children.length;){const A=w.children[x];if(S=l(A,x,y)(),S[0]===rM)return S;x=typeof S[1]=="number"?S[1]:x+a}}return v}}}function obe(e){return Array.isArray(e)?e:typeof e=="number"?[nbe,e]:e==null?a5:[e]}function s5(e,t,n,r){let i,o,a;typeof t=="function"&&typeof n!="function"?(o=void 0,a=t,i=n):(o=t,a=n,i=r),ibe(e,o,l,i);function l(c,d){const f=d[d.length-1],p=f?f.children.indexOf(c):void 0;return a(c,p,f)}}const TS={}.hasOwnProperty,abe={};function sbe(e,t){const n=t||abe,r=new Map,i=new Map,o=new Map,a={...qye,...n.handlers},l={all:d,applyData:ube,definitionById:r,footnoteById:i,footnoteCounts:o,footnoteOrder:[],handlers:a,one:c,options:n,patch:lbe,wrap:dbe};return s5(e,function(f){if(f.type==="definition"||f.type==="footnoteDefinition"){const p=f.type==="definition"?r:i,g=String(f.identifier).toUpperCase();p.has(g)||p.set(g,f)}}),l;function c(f,p){const g=f.type,v=l.handlers[g];if(TS.call(l.handlers,g)&&v)return v(l,f,p);if(l.options.passThrough&&l.options.passThrough.includes(g)){if("children"in f){const{children:x,...y}=f,w=Zh(y);return w.children=l.all(f),w}return Zh(f)}return(l.options.unknownHandler||cbe)(l,f,p)}function d(f){const p=[];if("children"in f){const g=f.children;let v=-1;for(;++v<g.length;){const S=l.one(g[v],f);
vendor: 11,486 bytes, lines 970-974
970if(S){if(v&&g[v-1].type==="break"&&(!Array.isArray(S)&&S.type==="text"&&(S.value=iM(S.value)),!Array.isArray(S)&&S.type==="element")){const x=S.children[0];x&&x.type==="text"&&(x.value=iM(x.value))}Array.isArray(S)?p.push(...S):p.push(S)}}}return p}}function lbe(e,t){e.position&&(t.position=Wme(e))}function ube(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,o=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const a="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:a}}n.type==="element"&&o&&Object.assign(n.properties,Zh(o)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function cbe(e,t){const n=t.data||{},r="value"in t&&!(TS.call(n,"hProperties")||TS.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function dbe(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
971`});++r<e.length;)r&&n.push({type:"text",value:`
972`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
973`}),n}function iM(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function oM(e,t){const n=sbe(e,t),r=n.one(e,void 0),i=Xye(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:`
974`},i),o}function fbe(e,t){return e&&"run"in e?async function(n,r){const i=oM(n,{file:r,...t});await e.run(i,r)}:function(n,r){return oM(n,{file:r,...e||t})}}function aM(e){if(e)throw e}var Aw,sM;function pbe(){if(sM)return Aw;sM=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(d){return typeof Array.isArray=="function"?Array.isArray(d):t.call(d)==="[object Array]"},o=function(d){if(!d||t.call(d)!=="[object Object]")return!1;var f=e.call(d,"constructor"),p=d.constructor&&d.constructor.prototype&&e.call(d.constructor.prototype,"isPrototypeOf");if(d.constructor&&!f&&!p)return!1;var g;for(g in d);return typeof g>"u"||e.call(d,g)},a=function(d,f){n&&f.name==="__proto__"?n(d,f.name,{enumerable:!0,configurable:!0,value:f.newValue,writable:!0}):d[f.name]=f.newValue},l=function(d,f){if(f==="__proto__")if(e.call(d,f)){if(r)return r(d,f).value}else return;return d[f]};return Aw=function c(){var d,f,p,g,v,S,x=arguments[0],y=1,w=arguments.length,A=!1;for(typeof x=="boolean"&&(A=x,x=arguments[1]||{},y=2),(x==null||typeof x!="object"&&typeof x!="function")&&(x={});y<w;++y)if(d=arguments[y],d!=null)for(f in d)p=l(x,f),g=l(d,f),x!==g&&(A&&g&&(o(g)||(v=i(g)))?(v?(v=!1,S=p&&i(p)?p:[]):S=p&&o(p)?p:{},a(x,{name:f,newValue:c(A,S,g)})):typeof g<"u"&&a(x,{name:f,newValue:g}));return x},Aw}var hbe=pbe();const Ew=lt(hbe);function NS(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function mbe(){const e=[],t={run:n,use:r};return t;function n(...i){let o=-1;const a=i.pop();if(typeof a!="function")throw new TypeError("Expected function as last argument, not "+a);l(null,...i);function l(c,...d){const f=e[++o];let p=-1;if(c){a(c);return}for(;++p<i.length;)(d[p]===null||d[p]===void 0)&&(d[p]=i[p]);i=d,f?gbe(f,l)(...d):a(null,...d)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function gbe(e,t){let n;return r;function r(...a){const l=e.length>a.length;let c;l&&a.push(i);try{c=e.apply(this,a)}catch(d){const f=d;if(l&&n)throw f;return i(f)}l||(c&&c.then&&typeof c.then=="function"?c.then(o,i):c instanceof Error?i(c):o(c))}function i(a,...l){n||(n=!0,t(a,...l))}function o(a){i(null,a)}}const fi={basename:vbe,dirname:ybe,extname:bbe,join:xbe,sep:"/"};function vbe(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');$d(e);let n=0,r=-1,i=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else r<0&&(o=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let a=-1,l=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else a<0&&(o=!0,a=i+1),l>-1&&(e.codePointAt(i)===t.codePointAt(l--)?l<0&&(r=i):(l=-1,r=a));return n===r?r=a:r<0&&(r=e.length),e.slice(n,r)}function ybe(e){if($d(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function bbe(e){$d(e);let t=e.length,n=-1,r=0,i=-1,o=0,a;for(;t--;){const l=e.codePointAt(t);if(l===47){if(a){r=t+1;break}continue}n<0&&(a=!0,n=t+1),l===46?i<0?i=t:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||n<0||o===0||o===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function xbe(...e){let t=-1,n;for(;++t<e.length;)$d(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":wbe(n)}function wbe(e){$d(e);const t=e.codePointAt(0)===47;let n=Sbe(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function Sbe(e,t){let n="",r=0,i=-1,o=0,a=-1,l,c;for(;++a<=e.length;){if(a<e.length)l=e.codePointAt(a);else{if(l===47)break;l=47}if(l===47){if(!(i===a-1||o===1))if(i!==a-1&&o===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(c=n.lastIndexOf("/"),c!==n.length-1){c<0?(n="",r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf("/")),i=a,o=0;continue}}else if(n.length>0){n="",r=0,i=a,o=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,a):n=e.slice(i+1,a),r=a-i-1;i=a,o=0}else l===46&&o>-1?o++:o=-1}return n}function $d(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const _be={cwd:Abe};function Abe(){return"/"}function RS(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Ebe(e){if(typeof e=="string")e=new URL(e);else if(!RS(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(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return kbe(e)}function kbe(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const kw=["history","path","basename","stem","extname","dirname"];class l5{constructor(t){let n;t?RS(t)?n={path:t}:typeof t=="string"||Obe(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":_be.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<kw.length;){const o=kw[r];o in n&&n[o]!==void 0&&n[o]!==null&&(this[o]=o==="history"?[...n[o]]:n[o])}let i;for(i in n)kw.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?fi.basename(this.path):void 0}set basename(t){Pw(t,"basename"),Ow(t,"basename"),this.path=fi.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?fi.dirname(this.path):void 0}set dirname(t){lM(this.basename,"dirname"),this.path=fi.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?fi.extname(this.path):void 0}set extname(t){if(Ow(t,"extname"),lM(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=fi.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){RS(t)&&(t=Ebe(t)),Pw(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?fi.basename(this.path,this.extname):void 0}set stem(t){Pw(t,"stem"),Ow(t,"stem"),this.path=fi.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new Ln(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Ow(e,t){if(e&&e.includes(fi.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+fi.sep+"`")}function Pw(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function lM(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function Obe(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Pbe=(function(e){const r=this.constructor.prototype,i=r[e],o=function(){return i.apply(o,arguments)};return Object.setPrototypeOf(o,r),o}),jbe={}.hasOwnProperty;class VA extends Pbe{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=mbe()}copy(){const t=new VA;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(Ew(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Tw("data",this.frozen),this.namespace[t]=n,this):jbe.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Tw("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=kp(t),r=this.parser||this.Parser;return jw("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),jw("process",this.parser||this.Parser),Cw("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(o,a){const l=kp(t),c=r.parse(l);r.run(c,l,function(f,p,g){if(f||!p||!g)return d(f);const v=p,S=r.stringify(v,g);Nbe(S)?g.value=S:g.result=S,d(f,g)});function d(f,p){f||!p?a(f):o?o(p):n(void 0,p)}}}processSync(t){let n=!1,r;return this.freeze(),jw("processSync",this.parser||this.Parser),Cw("processSync",this.compiler||this.Compiler),this.process(t,i),cM("processSync","process",n),r;function i(o,a){n=!0,aM(o),r=a}}run(t,n,r){uM(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?o(void 0,r):new Promise(o);function o(a,l){const c=kp(n);i.run(t,c,d);function d(f,p,g){const v=p||t;f?l(f):a?a(v):r(void 0,v,g)}}}runSync(t,n){let r=!1,i;return this.run(t,n,o),cM("runSync","run",r),i;function o(a,l){aM(a),i=l,r=!0}}stringify(t,n){this.freeze();const r=kp(n),i=this.compiler||this.Compiler;return Cw("stringify",i),uM(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(Tw("use",this.frozen),t!=null)if(typeof t=="function")c(t,n);else if(typeof t=="object")Array.isArray(t)?l(t):a(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;
vendor: 4,826 bytes, line 974
974function o(d){if(typeof d=="function")c(d,[]);else if(typeof d=="object")if(Array.isArray(d)){const[f,...p]=d;c(f,p)}else a(d);else throw new TypeError("Expected usable value, not `"+d+"`")}function a(d){if(!("plugins"in d)&&!("settings"in d))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");l(d.plugins),d.settings&&(i.settings=Ew(!0,i.settings,d.settings))}function l(d){let f=-1;if(d!=null)if(Array.isArray(d))for(;++f<d.length;){const p=d[f];o(p)}else throw new TypeError("Expected a list of plugins, not `"+d+"`")}function c(d,f){let p=-1,g=-1;for(;++p<r.length;)if(r[p][0]===d){g=p;break}if(g===-1)r.push([d,...f]);else if(f.length>0){let[v,...S]=f;const x=r[g][1];NS(x)&&NS(v)&&(v=Ew(!0,x,v)),r[g]=[d,v,...S]}}}}const Cbe=new VA().freeze();function jw(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Cw(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Tw(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 uM(e){if(!NS(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function cM(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function kp(e){return Tbe(e)?e:new l5(e)}function Tbe(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Nbe(e){return typeof e=="string"||Rbe(e)}function Rbe(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Ibe="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",dM=[],fM={allowDangerousHtml:!0},$be=/^(https?|ircs?|mailto|xmpp)$/i,Mbe=[{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:"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 Dbe(e){const t=Lbe(e),n=Fbe(e);return Bbe(t.runSync(t.parse(n),n),e)}function Lbe(e){const t=e.rehypePlugins||dM,n=e.remarkPlugins||dM,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...fM}:fM;return Cbe().use(vye).use(n).use(fbe,r).use(t)}function Fbe(e){const t=e.children||"",n=new l5;return typeof t=="string"&&(n.value=t),n}function Bbe(e,t){const n=t.allowedElements,r=t.allowElement,i=t.components,o=t.disallowedElements,a=t.skipHtml,l=t.unwrapDisallowed,c=t.urlTransform||zbe;for(const f of Mbe)Object.hasOwn(t,f.from)&&(""+f.from+(f.to?"use `"+f.to+"` instead":"remove it")+Ibe+f.id,void 0);return t.className&&(e={type:"element",tagName:"div",properties:{className:t.className},children:e.type==="root"?e.children:[e]}),s5(e,d),Xme(e,{Fragment:h.Fragment,components:i,ignoreInvalidStyle:!0,jsx:h.jsx,jsxs:h.jsxs,passKeys:!0,passNode:!0});function d(f,p,g){if(f.type==="raw"&&g&&typeof p=="number")return a?g.children.splice(p,1):g.children[p]={type:"text",value:f.value},p;if(f.type==="element"){let v;for(v in ww)if(Object.hasOwn(ww,v)&&Object.hasOwn(f.properties,v)){const S=f.properties[v],x=ww[v];(x===null||x.includes(f.tagName))&&(f.properties[v]=c(String(S||""),v,f))}}if(f.type==="element"){let v=n?!n.includes(f.tagName):o?o.includes(f.tagName):!1;if(!v&&r&&typeof p=="number"&&(v=!r(f,p,g)),v&&g&&typeof p=="number")return l&&f.children?g.children.splice(p,1,...f.children):g.children.splice(p,1),p}}}function zbe(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||$be.test(e.slice(0,t))?e:""}function Ube({post:e}){return h.jsxs(h.Fragment,{children:[h.jsxs("header",{className:"mx-auto max-w-4xl pt-12 text-center md:pt-16",children:[h.jsx(rt,{to:"/blog",className:"inline-flex border-b-2 border-foreground pb-1 text-sm font-black",children:"← All articles"}
974),h.jsx("div",{className:"mx-auto mt-10 w-fit rounded-full border-2 border-foreground bg-chart-3 px-4 py-1.5 text-xs font-black uppercase tracking-[0.18em]",children:"Neighborhood guide"}),h.jsx("h1",{className:"mt-6 text-4xl font-black leading-[1.05] tracking-tight sm:text-5xl md:text-6xl",children:e.title}),h.jsx("p",{className:"mx-auto mt-6 max-w-3xl text-lg leading-8 text-muted-foreground md:text-xl",children:e.excerpt}),h.jsxs("p",{className:"mt-6 text-sm font-bold text-muted-foreground",children:["By ",e.authorName," · ",new Date(e.publishedAt).toLocaleDateString()]})]}),e.coverImageUrl&&h.jsx("div",{className:"mt-12 overflow-hidden rounded-lg border-2 border-foreground bg-muted shadow-[8px_8px_0_0_hsl(var(--foreground))]",children:h.jsx("img",{src:e.coverImageUrl,alt:e.title,className:"max-h-[620px] w-full object-cover"})})]})}const pM=e=>e==null?"—":Number(e).toLocaleString(),qbe=e=>e==null?"—":`$${Math.round(Number(e)/1e3)}k`;function Hbe({area:e}){const t=e.slug||e.zipCode;return h.jsxs(rt,{to:`/area/${encodeURIComponent(t)}`,className:"group my-8 block rounded-lg border-2 border-foreground bg-card p-5 shadow-[5px_5px_0_0_hsl(var(--chart-1))] transition-transform hover:-translate-y-0.5 md:p-6",children:[h.jsxs("div",{className:"flex flex-col gap-5 sm:flex-row sm:items-center sm:justify-between",children:[h.jsxs("div",{children:[h.jsxs("div",{className:"flex items-center gap-2 text-xs font-black uppercase tracking-[0.14em] text-muted-foreground",children:[h.jsx(L6,{className:"h-4 w-4"})," Area snapshot"]}),h.jsx("h4",{className:"mt-2 text-2xl font-black",children:e.name}),h.jsxs("p",{className:"mt-1 text-sm text-muted-foreground",children:[e.city,", ",e.state," · ",e.zipCode]})]}),h.jsxs("div",{className:"flex items-center gap-2 rounded-md border-2 border-foreground bg-chart-3 px-4 py-3",children:[h.jsx(nq,{className:"h-5 w-5 fill-current"}),h.jsx("span",{className:"text-2xl font-black",children:(Number(e.overallScore||0)*2).toFixed(1)}),h.jsx("span",{className:"text-sm font-bold",children:"/ 10"})]})]}),h.jsxs("div",{className:"mt-5 grid grid-cols-3 border-y border-border py-4 text-center",children:[h.jsxs("div",{children:[h.jsx("strong",{className:"block text-lg",children:pM(e.reviewCount)}),h.jsx("span",{className:"text-xs text-muted-foreground",children:"Reviews"})]}),h.jsxs("div",{className:"border-x border-border",children:[h.jsx("strong",{className:"block text-lg",children:pM(e.population)}),h.jsx("span",{className:"text-xs text-muted-foreground",children:"Population"})]}),h.jsxs("div",{children:[h.jsx("strong",{className:"block text-lg",children:qbe(e.medianHomeValue)}),h.jsx("span",{className:"text-xs text-muted-foreground",children:"Home value"})]})]}),h.jsxs("div",{className:"mt-4 flex items-center justify-end gap-2 text-sm font-black",children:["Explore this area ",h.jsx(E6,{className:"h-4 w-4"})]})]})}const u5=e=>Array.isArray(e)?e.map(u5).join(""):String(e||""),hM=e=>String(e||"").toLowerCase().replace(/[^a-z0-9]+/g," ").trim();function Wbe(e,t){var r;const n=hM(u5(e));return((r=t.flatMap(i=>[i.name,i.city].filter(Boolean).map(o=>({area:i,label:hM(o)}))).filter(({label:i})=>i.length>=4&&` ${n} `.includes(` ${i} `)).sort((i,o)=>o.label.length-i.label.length)[0])==null?void 0:r.area)||null}function Vbe(){var c;const{slug:e}=im(),[t,n]=P.useState(void 0),[r,i]=P.useState([]);if(P.useEffect(()=>{let d=!0;return n(void 0),Promise.all([Qt.entities.BlogPost.filter({slug:e},null,1),Qt.entities.Area.list("-reviewCount",200).catch(()=>[])]).then(([f,p])=>{d&&(n(f[0]||null),i(p))}).catch(()=>{d&&(n(null),i([]))}),()=>{d=!1}},[e]),P.useEffect(()=>{let d=document.querySelector('meta[name="description"]');return t&&(document.title=`${t.title} | Rate My Area`,d||(d=document.createElement("meta"),d.name="description",document.head.appendChild(d)),d.content=t.excerpt),()=>{document.title="Rate My Area | Neighborhood Reviews & Area Insights",d&&(d.content="Read resident reviews and data-backed neighborhood insights on Rate My Area.")}},[t]),t===void 0)return h.jsxs(h.Fragment,{children:[h.jsx(Ht,{}),h.jsx("div",{className:"grid min-h-[50vh] place-items-center",children:h.jsx("div",{className:"h-8 w-8 animate-spin rounded-full border-4 border-muted border-t-foreground"})})]});if(!t)return h.jsxs(h.Fragment,{children:[h.jsx(Ht,{}),h.jsxs("main",{className:"mx-auto max-w-3xl px-6 py-20",children:[h.jsx("h1",{className:"text-4xl font-black",children:"Article not found"}),h.jsx(rt,{to:"/blog",className:"mt-5 inline-block underline",children:"Back to the blog"})]})]});const o=vl(t.sourceUrl),a={"@context":"https://schema.org","@type":"BlogPosting",headline:t.title,de
974scription:t.excerpt,datePublished:t.publishedAt,author:{"@type":"Organization",name:t.authorName},image:t.coverImageUrl||((c=t.images)==null?void 0:c[0])},l=({level:d,children:f})=>{const p=Wbe(f,r),g=d===2?"mb-4 mt-14 border-t-2 border-foreground pt-8 text-3xl font-black tracking-tight md:text-4xl":"mb-3 mt-9 text-2xl font-black",v=d===2?"h2":"h3";return h.jsxs(h.Fragment,{children:[h.jsx(v,{className:g,children:f}),p&&h.jsx(Hbe,{area:p})]})};return h.jsxs("div",{className:"min-h-screen bg-background",children:[h.jsx(Ht,{}),h.jsxs("main",{className:"mx-auto max-w-5xl px-5 pb-20 sm:px-8",children:[h.jsx(Ube,{post:t}),h.jsxs("article",{className:"mx-auto mt-14 max-w-3xl",children:[h.jsx(Dbe,{components:{h2:({children:d})=>h.jsx(l,{level:2,children:d}),h3:({children:d})=>h.jsx(l,{level:3,children:d}),p:d=>h.jsx("p",{className:"my-6 text-lg leading-8 text-foreground/90",...d}),ul:d=>h.jsx("ul",{className:"my-6 list-disc space-y-3 pl-6 text-lg leading-8",...d}),ol:d=>h.jsx("ol",{className:"my-6 list-decimal space-y-3 pl-6 text-lg leading-8",...d}),blockquote:d=>h.jsx("blockquote",{className:"my-8 border-l-4 border-chart-1 bg-muted px-6 py-4 text-xl font-semibold leading-8",...d}),a:d=>h.jsx("a",{className:"font-bold decoration-2 underline underline-offset-4",...d}),img:d=>h.jsx("img",{...d,className:"my-10 w-full rounded-lg border-2 border-foreground object-cover shadow-[5px_5px_0_0_hsl(var(--chart-1))]",loading:"lazy"})},children:t.content}),o&&h.jsxs("aside",{className:"mt-14 rounded-lg border-2 border-foreground bg-muted p-6 text-sm text-muted-foreground",children:[h.jsx("span",{className:"font-black text-foreground",children:"Research note"}),h.jsx("br",{}),"Inspired by research from ",h.jsx("a",{href:o,target:"_blank",rel:"noreferrer",className:"font-bold underline",children:t.sourceTitle||"the original source"}),"."]})]}),h.jsx("script",{type:"application/ld+json",children:JSON.stringify(a)})]})]})}const Kbe=[{id:"overview",label:"Overview"},{id:"crime",label:"Crime & Safety"},{id:"schools",label:"Schools"},{id:"housing",label:"Housing"},{id:"transportation",label:"Transportation"},{id:"demographics",label:"Demographics"}];function Gbe(e){return e>=3.8?"bg-emerald-50 border-emerald-200":e>=2.8?"bg-amber-50 border-amber-200":"bg-rose-50 border-rose-200"}function Ybe({area:e}){const t=[["Population",e.population!=null?Number(e.population).toLocaleString():"—"],["Weighted ZIP median home value",$r(e.medianHomeValue)],["Weighted ZIP median rent",$r(e.medianRent)],["Weighted ZIP median household income",$r(e.medianHouseholdIncome)],["Average commute",e.averageCommuteMinutes!=null?`${Number(e.averageCommuteMinutes).toFixed(1)} min`:"—"]];return h.jsx("div",{className:"grid grid-cols-2 gap-3 md:grid-cols-5",children:t.map(([n,r])=>h.jsxs("div",{className:"rounded-xl border border-border bg-card p-4",children:[h.jsx("div",{className:"text-xs font-bold uppercase tracking-wide text-muted-foreground",children:n}),h.jsx("div",{className:"mt-2 text-xl font-black",children:r})]},n))})}function Xbe({kind:e,items:t}){if(!(t!=null&&t.length))return null;const n=e==="ZIP code";return h.jsxs("section",{className:"mt-8",children:[h.jsx("h2",{className:"mb-4 text-xl font-black",children:n?"ZIP Codes":"Cities"}),h.jsx("div",{className:"grid grid-cols-2 gap-3 sm:grid-cols-3 lg:grid-cols-4",children:t.map(r=>{const i=n?r.zipCode:r.city,o=n?r.slug?`/area/${r.slug}`:`/area/${r.zipCode}`:`/city/${r.slug}?name=${encodeURIComponent(r.city)}`,a=n?r.zipCode:r.city,l=n?r.status==="ready":r.researchedZipCount>0;return h.jsxs(rt,{to:o,className:"rounded-xl border border-border bg-card p-4 transition hover:-translate-y-0.5 hover:shadow-sm",children:[h.jsx("div",{className:"text-lg font-black",children:a}),l&&Number(r.overallScore)>0?h.jsxs("div",{className:"mt-2 text-sm font-bold",children:["RMA ",(Number(r.overallScore)*2).toFixed(1)," / 10"]}):h.jsx("div",{className:"mt-2 text-xs text-muted-foreground",children:"Not fully researched"}),!n&&h.jsxs("div",{className:"mt-1 text-xs text-muted-foreground",children:[r.researchedZipCount," researched ZIP",r.researchedZipCount===1?"":"s",r.zipCount>r.researchedZipCount?` · ${r.zipCount} known in RMA`:""]}),Number(r.reviewCount)>0&&h.jsxs("div",{className:"mt-1 text-xs text-muted-foreground",children:[r.reviewCount," reviews"]})]},i)})})]})}function c5({data:e,routeBase:t,childKind:n,children:r}){var G,Z,Y,ee,R,q,V;const i=Ja(),{toast:o}=Qa(),[a,l]=P.useState("overview"),[c,d]=P.useState(()=>Object.fromEntries(((e==null?void 0:e.reviews)||[]).map(M=>[M.id,M.helpfulCount||0]))),[f,p]=P.useState(()=>Object.fromEntries(((e==null?void 0:e.reviews)||[]).map(M=>[M.id,M.userHelpfulVote==="helpful"]))),[g,v]=P.useState({}),[S,x]=P.useState(null),[y,w]=P.useState(!1),[A,_]=P.useState("all"),j=e.area||{name:e.city||e.county,city:e.city,county:e.county,state:e.state},k=e.reviews||[],O=e.starterPerspectives||[],T=e.categoryScores||{},N=n==="ZIP code",I=N?[...new Set([...k,...O].map(M=>
974M.zipCode).filter(Boolean))].sort():[],z=A==="all"||I.includes(A)?A:"all",F=z==="all"?k:k.filter(M=>M.zipCode===z),D=z==="all"?O:O.filter(M=>M.zipCode===z),L=M=>{var re,ce,oe,ae;if(((re=M==null?void 0:M.response)==null?void 0:re.status)===401||((ce=M==null?void 0:M.response)==null?void 0:ce.status)===403){i(`/login?from=${encodeURIComponent(t)}`);return}o({variant:"destructive",title:"Action failed",description:((ae=(oe=M==null?void 0:M.response)==null?void 0:oe.data)==null?void 0:ae.error)||(M==null?void 0:M.message)||"Please try again."})},B=async M=>{if(g[M.id])return;const re=!f[M.id];v(ce=>({...ce,[M.id]:!0}));try{const ce=await mn.toggleHelpfulVote(M.id,re);d(oe=>({...oe,[M.id]:ce.helpfulCount})),p(oe=>({...oe,[M.id]:!!ce.active}))}catch(ce){L(ce)}finally{v(ce=>({...ce,[M.id]:!1}))}},U=async({reason:M,details:re})=>{if(!(!S||y)){w(!0);try{await mn.reportReview(S.id,M,re),o({title:"Report submitted",description:"Thanks for helping keep reviews useful."}),x(null)}catch(ce){L(ce)}finally{w(!1)}}};return h.jsxs("div",{className:"min-h-screen bg-[#fafafa]",children:[h.jsx(Ht,{}),h.jsxs("main",{className:"mx-auto max-w-6xl px-6 py-8",children:[h.jsx("button",{type:"button",onClick:()=>i("/"),className:"text-sm font-bold text-muted-foreground hover:text-foreground",children:"← Back to search"}),h.jsxs("header",{className:"mt-6 rounded-2xl border border-border bg-card p-6 md:p-8",children:[h.jsxs("div",{className:"flex flex-col justify-between gap-6 md:flex-row md:items-start",children:[h.jsxs("div",{children:[h.jsx("div",{className:"text-xs font-black uppercase tracking-[0.22em] text-muted-foreground",children:j.boundaryType||"Area aggregate"}),h.jsxs("h1",{className:"mt-2 text-4xl font-black tracking-tight md:text-6xl",children:[j.name,", ",e.state]}),h.jsxs("p",{className:"mt-3 max-w-2xl text-sm text-muted-foreground",children:["Population-weighted RMA data aggregated from ",((G=e.coverage)==null?void 0:G.researchedZips)||0," researched ZIP code",((Z=e.coverage)==null?void 0:Z.researchedZips)===1?"":"s","."]})]}),h.jsxs("div",{className:`min-w-[190px] rounded-2xl border p-5 ${Gbe(Number(j.overallScore)||0)}`,children:[h.jsx("div",{className:"text-xs font-black uppercase tracking-wider",children:"RMA Score"}),h.jsxs("div",{className:"mt-1 text-5xl font-black",children:[Number(j.overallScore)>0?(Number(j.overallScore)*2).toFixed(1):"—",h.jsx("span",{className:"text-lg",children:" / 10"})]}),Number(j.overallScore)>0&&h.jsx("div",{className:"mt-1 text-sm font-bold",children:cm(Number(j.overallScore)*2)}),h.jsxs("div",{className:"mt-2 text-xs text-muted-foreground",children:[j.reviewCount||0," scored review",j.reviewCount===1?"":"s"]})]})]}),h.jsx("div",{className:"mt-6 grid grid-cols-2 gap-3 sm:grid-cols-3 lg:grid-cols-6",children:Pa.map(M=>{var ce;const re=Number((ce=T==null?void 0:T[M])==null?void 0:ce.score);return h.jsxs("div",{className:"rounded-xl border border-border bg-background p-3",children:[h.jsx("div",{className:"text-xs font-bold text-muted-foreground",children:Ai[M]}),h.jsx("div",{className:"mt-1 text-2xl font-black",children:Number.isFinite(re)&&re>0?(re*2).toFixed(1):"—"})]},M)})})]}),h.jsx(Xbe,{kind:n,items:r}),h.jsx("nav",{className:"mt-10 flex gap-2 overflow-x-auto border-b border-border pb-2",children:Kbe.map(M=>h.jsx("button",{type:"button",onClick:()=>l(M.id),className:`whitespace-nowrap rounded-md px-3 py-2 text-sm font-bold ${a===M.id?"bg-foreground text-background":"hover:bg-accent"}`,children:M.label},M.id))}),h.jsxs("div",{className:"mt-6",children:[a==="overview"&&h.jsx(Ybe,{area:j}),a==="crime"&&h.jsx("div",{className:"area-ii",children:h.jsx(uc,{id:"crime",active:!0,title:"Crime & Safety",data:(Y=e.tabData)==null?void 0:Y.crime})}),a==="schools"&&h.jsx("div",{className:"area-ii",children:h.jsx(uc,{id:"schools",active:!0,title:"Schools",data:(ee=e.tabData)==null?void 0:ee.schools})}),a==="housing"&&h.jsx("div",{className:"area-ii",children:h.jsx(uc,{id:"housing",active:!0,title:"Housing",data:(R=e.tabData)==null?void 0:R.housing})}),a==="transportation"&&h.jsx("div",{className:"area-ii",children:h.jsx(uc,{id:"transportation",active:!0,title:"Trans
974portation",data:(q=e.tabData)==null?void 0:q.transportation})}),a==="demographics"&&h.jsx("div",{className:"area-ii",children:h.jsx(cB,{data:(V=e.tabData)==null?void 0:V.demographics,area:j,active:!0})})]}),h.jsxs("section",{className:"mt-12",children:[h.jsxs("div",{className:"mb-4 flex flex-col gap-3 sm:flex-row sm:items-end sm:justify-between",children:[h.jsxs("div",{children:[h.jsxs("h2",{className:"text-2xl font-black",children:["Reviews from ",e.city||e.county]}),N&&(k.length>0||O.length>0)&&h.jsxs("p",{className:"mt-1 text-sm text-muted-foreground",children:["Reviews are shown from the ZIP codes inside ",e.city,". Each review keeps its ZIP context."]})]}),N&&I.length>1&&h.jsxs("label",{className:"flex items-center gap-2 text-sm font-bold",children:[h.jsx("span",{className:"text-muted-foreground",children:"Filter ZIP"}),h.jsxs("select",{value:z,onChange:M=>_(M.target.value),className:"rounded-lg border border-border bg-card px-3 py-2 text-sm font-semibold outline-none focus:ring-2 focus:ring-ring","aria-label":"Filter city reviews by ZIP code",children:[h.jsx("option",{value:"all",children:"All ZIP codes"}),I.map(M=>h.jsx("option",{value:M,children:M},M))]})]})]}),F.length===0&&D.length===0?h.jsx("p",{className:"rounded-xl border border-border bg-card p-8 text-center text-muted-foreground",children:z==="all"?"No reviews yet.":`No reviews yet for ZIP ${z}.`}):h.jsxs("div",{className:"area-ii",children:[F.map(M=>h.jsx(Gh,{review:M,area:j,helpfulCount:c[M.id]??M.helpfulCount??0,helpfulActive:!!f[M.id],helpfulPending:!!g[M.id],onHelpful:M.sourceType==="residentReview"?()=>B(M):void 0,onReport:M.sourceType==="residentReview"?()=>x(M):void 0},M.id)),D.map(M=>h.jsx(Gh,{review:M,area:j,helpfulCount:0},`starter-${M.id}`))]})]})]}),h.jsx(jA,{open:!!S,onOpenChange:M=>{M||x(null)},onSubmit:U,busy:y})]})}function Qbe(){const{slug:e}=im(),[t]=FD(),n=t.get("name")||"",[r,i]=P.useState(void 0);if(P.useEffect(()=>{let a=!0;return i(void 0),mn.getCityPage(e,n).then(l=>{a&&i(l)}).catch(l=>{var d;if(!a)return;if(((d=l==null?void 0:l.response)==null?void 0:d.status)===404){i(null);return}i({transient:!0})}),()=>{a=!1}},[e,n]),r===void 0)return h.jsxs("div",{className:"min-h-screen bg-[#fafafa]",children:[h.jsx(Ht,{}),h.jsx("div",{className:"grid min-h-[calc(100vh-76px)] place-items-center",children:h.jsx("div",{className:"h-8 w-8 animate-spin rounded-full border-4 border-slate-200 border-t-slate-800"})})]});if(!r)return h.jsxs("div",{className:"min-h-screen bg-[#fafafa]",children:[h.jsx(Ht,{}),h.jsx("div",{className:"grid min-h-[calc(100vh-76px)] place-items-center p-8 text-center",children:h.jsxs("div",{children:[h.jsx("h1",{className:"text-2xl font-bold",children:"City not found"}),h.jsx("p",{className:"mt-2 text-muted-foreground",children:"We couldn't build this city aggregate yet."})]})})]});if(r.transient)return h.jsxs("div",{className:"min-h-screen bg-[#fafafa]",children:[h.jsx(Ht,{}),h.jsx("div",{className:"grid min-h-[calc(100vh-76px)] place-items-center p-8 text-center",children:h.jsxs("div",{children:[h.jsx("div",{className:"mx-auto mb-4 h-8 w-8 animate-spin rounded-full border-4 border-slate-200 border-t-slate-800"}),h.jsx("p",{className:"text-lg font-semibold text-slate-800",children:"Loading city data…"}),h.jsx("p",{className:"mt-1 text-sm text-slate-500",children:"The server is busy. This should resolve in a moment."}),h.jsx("button",{type:"button",className:"mt-4 rounded-md bg-slate-900 px-4 py-2 text-sm font-semibold text-white",onClick:()=>window.location.reload(),children:"Retry"})]})})]});const o=n?`/city/${e}?name=${encodeURIComponent(n)}`:`/city/${e}`;return h.jsx(c5,{data:r,routeBase:o,childKind:"ZIP code",children:r.zipAreas||[]})}function Zbe(){const{slug:e}=im(),[t,n]=P.useState(void 0);return P.useEffect(()=>{let r=!0;return n(void 0),mn.getCountyPage(e).then(i=>{r&&n(i)}).catch(()=>{r&&n(null)}),()=>{r=!1}},[e]),t===void 0?h.jsxs("div",{className:"min-h-screen bg-[#fafafa]",children:[h.jsx(Ht,{}),h.jsx("div",{className:"grid min-h-[calc(100vh-76px)] place-items-center",children:h.jsx("div",{className:"h-8 w-8 animate-spin rounded-full border-4 border-slate-200 border-t-slate-800"})})]}):t?h.jsx(c5,{data:t,routeBase:`/county/${e}`,childKind:"city",children:t.cityAreas||[]}):h.jsxs("div",{className:"min-h-screen bg-[#fafafa]",children:[h.jsx(Ht,{}),h.jsx("div",{className:"grid min-h-[calc(100vh-76px)] place-items-center p-8 text-center",children:h.jsxs("div",{children:[h.jsx("h1",{className:"text-2xl font-bold",children:"County not found"}),h.jsx("p",{className:"mt-2 text-muted-foreground",children:"RMA does not have researched ZIP profiles for this county yet."})]})})]})}const Jbe=new Set(["javascript:","data:","file:","vbscript:","blob:"]);function exe(e){const t=String(e||"").trim();if(/[\\\u0000-\u001f\u007f]/.test(t)||/%(?:0[0-9a-f]|1[0-9a-f]|7f)/i.test(t))return{safe:!1,customScheme:!1,url:""};const n=t.match(/^([a-z][a-z0-9+.-]*:)/i);if(!n)return{safe:!1,customScheme:!1,url:""};const r=n[1].toLowerCase();if(Jbe.has(r))return{safe:!1,customScheme:!1,url:""};if(r==="http:"||r==="https:")try{const i=new URL(t);return!i.hostname||i.username||i.password?{safe:!1,customScheme:!1,url:""}:{safe:!0,customScheme:!1,url:i.href}}catch{return{safe:!1,customScheme:!1,url:""}}return{safe:!0,customScheme:!0,url:t}}
974function mM(e,t,n){const r=n1(e||"/login",n),i=new URL(r,n),o=n1(t||"/",n);return i.searchParams.set("returnTo",o),i.searchParams.set("from_url",o),`${i.pathname}${i.search}`}function txe(){const e=new URLSearchParams(window.location.search).get("ctx"),[t,n]=P.useState(null),[r,i]=P.useState(!0),[o,a]=P.useState(!1),[l,c]=P.useState(""),[d,f]=P.useState(""),[p,g]=P.useState("");P.useEffect(()=>{(async()=>{let w=!1;try{if(!e){f("This authorization link is invalid or has expired.");return}const A=new Headers;Ui.token&&A.set("Authorization","Bearer "+Ui.token);const _=await fetch(`/api/apps/${Ui.appId}/mcp/consent-info?handle=${encodeURIComponent(e)}`,{credentials:"include",headers:A});if(!_.ok){f("This authorization link is invalid or has expired.");return}const j=await _.json();if(!j.authenticated){const k=window.location.pathname+"?ctx="+encodeURIComponent(e);w=!0,window.location.href=mM(j.login_path,k,window.location.origin);return}n(j)}catch{f("Could not load this authorization request. Please try again.")}finally{w||i(!1)}})()},[e]);const v=async w=>{a(!0),f("");try{const A=new Headers({"Content-Type":"application/json"});Ui.token&&A.set("Authorization","Bearer "+Ui.token);const _=await fetch(`/api/apps/${Ui.appId}/mcp/authorize-grant`,{method:"POST",credentials:"include",headers:A,body:JSON.stringify({ctx:e,action:w})});if(!_.ok){if(_.status===401){const O=window.location.pathname+"?ctx="+encodeURIComponent(e);window.location.href=mM(t&&t.login_path,O,window.location.origin);return}if([400,403,404,409].includes(_.status)){let O="";try{O=(await _.json()).detail}catch{}g(O||"This authorization can no longer be completed. Reconnect from your AI client to try again."),a(!1);return}throw new Error("Could not complete authorization. Please try again.")}const j=await _.json(),k=exe(j.redirect_url);if(!k.safe){g("The authorization server returned an unsafe redirect. Reconnect from your AI client to try again."),a(!1);return}window.location.href=k.url,k.customScheme&&(c(w),a(!1))}catch(A){f(A.message),a(!1)}};if(r)return h.jsx(Jr,{icon:zu,title:"Authorize access",children:h.jsxs("div",{className:"flex items-center justify-center py-6 text-muted-foreground",children:[h.jsx(Qi,{className:"w-5 h-5 mr-2 animate-spin","aria-hidden":"true"}),"Loading…"]})});const S=t&&t.client_name||"An AI client",x=t&&t.app_name||"this app";if(l)return h.jsx(Jr,{icon:zu,title:l==="approve"?"Access granted":"Access denied",subtitle:`You can return to ${S} and close this window.`});if(p)return h.jsx(Jr,{icon:zu,title:"Reconnect required",children:h.jsx("div",{className:"p-3 rounded-lg bg-destructive/10 text-destructive text-sm",children:p})});if(d&&!t)return h.jsx(Jr,{icon:zu,title:"Authorize access",children:h.jsx("div",{className:"p-3 rounded-lg bg-destructive/10 text-destructive text-sm",children:d})});const y=Array.isArray(t.tools)?t.tools:[];return h.jsxs(Jr,{icon:zu,title:"Authorize access",subtitle:`${S} wants to access ${x} on your behalf`,children:[d&&h.jsx("div",{className:"mb-4 p-3 rounded-lg bg-destructive/10 text-destructive text-sm",children:d}),h.jsx("p",{className:"text-sm font-medium text-foreground mb-2",children:y.length?`It will be able to use these tools in ${x}:`:"No tools requested"}),y.length>0&&h.jsx("ul",{className:"space-y-2 text-sm mb-6",children:y.map(w=>h.jsxs("li",{className:"flex flex-col",children:[h.jsx("span",{className:"text-foreground font-medium",children:w.title||w.name}),w.description&&h.jsx("span",{className:"text-muted-foreground",children:w.description})]},w.name))}),h.jsxs("div",{className:"flex gap-3",children:[h.jsx(Rt,{variant:"outline",className:"flex-1 h-12 font-medium",disabled:o,onClick:()=>v("deny"),children:"Deny"}),h.jsxs(Rt,{className:"flex-1 h-12 font-medium",disabled:o,onClick:()=>v("approve"),children:[o?h.jsx(Qi,{className:"w-4 h-4 mr-2 animate-spin"}):null,"Approve"]})]})]})}const nxe=()=>{const{isLoadingAuth:e,isLoadingPublicSettings:t,authError:n,navigateToLogin:r,checkAppState:i}=es();return P.useEffect(()=>{(n==null?void 0:n.type)==="auth_required"&&r()},[n==null?void 0:n.type,r]),t||e?h.jsx("div",{className:"fixed inset-0 flex items-center justify-center",children:h.jsx("div",{className:"w-8 h-8 border-4 border-slate-200 border-t-slate-800 rounded-full animate-spin"})}):n?n.type==="user_not_registered"?h.jsx(qK,{}):n.type==="auth_required"?h.jsx("div",{className:"fixed inset-0 flex items-center justify-center",children:h.jsx("div",{className:"w-8 h-8 border-4 border-slate-200 border-t-slate-800 rounded-full animate-spin"})}):h.jsx("div",{className:"grid min-h-screen place-items-center bg-background p-8 text-center",children:h.jsxs("div",{className:"max-w-md",children:[h.jsx("h1",{className:"text-2xl font-bold",children:"Could not load the app"}),h.jsx("p",{className:"mt-2 text-sm text-muted-foreground",children:n.message||"Please try again."}),h.jsx("button",{type:"button",className:"mt-5 rounded-md bg-primary px-4 py-2 text-sm font-semibold text-primary-foreground",onClick:i,children:"Try again"})]})}):h.jsxs(EH,{children:[h.jsx(fn,{path:"/",element:h.jsx(iG,{})}),h.jsx(fn,{path:"/area",element:h.jsx(_$,{})}),h.jsx(fn,{path:"/area/:slugOrZip",element:h.jsx(_$,{})}),h.jsx(fn,{path:"/compare",element:h.jsx(Ihe,{})}),h.jsx(fn,{path:"/saved",element:h.jsx($he,{})}),h.jsx(fn,{path:"/blog",element:h.jsx(wme,{})}),h.jsx(fn,{path:"/blog/:slug",element:h.jsx(Vbe,{})}),h.jsx(fn,{path:"/city/:slug",element:h.jsx(Qbe,{})}),h.jsx(fn,{path:"/county/:slug",element:h.jsx(Zbe,{})}),h.jsx(fn,{path:"/login",element:h.jsx(bG,{})}),h.jsx(fn,{path:"/register",element:h.jsx(IG,{})}),h.jsx(fn,{path:"/forgot-password",element:h.jsx($G,{})}),h.jsx(fn,{path:"/reset-password",element:h.jsx(MG,{})}),h.jsx(fn,{path:"/admin",element:h.jsx(bme,{})}),h.jsx(fn,{path:"/about",element:h.jsx(DG,{})}),h.jsx(fn,{path:"/contact",element:h.jsx(LG,{})}),h.jsx(fn,{path:"*",element:h.jsx(UK,{})})]})},rxe=()=>{const{pathname:e}=ro();return e==="/oauth/consent"?h.jsx(ij,{children:h.jsx(txe,{})}):h.jsx(ij,{children:h.jsx(nxe,{})})};function ixe(){return h.jsx(VK,{children:h.jsxs(T9,{client:N9,children:[h.jsxs(RH,{children:[h.jsx(WK,{}),h.jsx(rxe,{})]}),h.jsx(n9,{})]})})}gU.createRoot(document.getElementById("root")).render(h.jsx(ixe,{}));

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.