PageSourceSearch

https://texasarchery.org/assets/index-DTQWNqGi.js

js texasarchery.org collected 2026-09-24 10:16:20 UTC 1,382,569 bytes, 474 lines download raw bytes

vendor: 6,394 bytes, lines 1-9
1var lC=e=>{throw TypeError(e)};var Z0=(e,t,n)=>t.has(e)||lC("Cannot "+n);var J=(e,t,n)=>(Z0(e,t,"read from private field"),n?n.call(e):t.get(e)),We=(e,t,n)=>t.has(e)?lC("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Ce=(e,t,n,r)=>(Z0(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),pt=(e,t,n)=>(Z0(e,t,"access private method"),n);var bg=(e,t,n,r)=>({set _(i){Ce(e,t,i,n)},get _(){return J(e,t,r)}});function Oq(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 a=Object.getOwnPropertyDescriptor(r,i);a&&Object.defineProperty(e,i,a.get?a:{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 a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();var wg=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function kt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Y0={exports:{}},Jf={},X0={exports:{}},lt={};/**
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 cC;function Eq(){if(cC)return lt;cC=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"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),p=Symbol.iterator;function y(H){return H===null||typeof H!="object"?null:(H=p&&H[p]||H["@@iterator"],typeof H=="function"?H:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},j=Object.assign,S={};function _(H,ee,pe){this.props=H,this.context=ee,this.refs=S,this.updater=pe||w}_.prototype.isReactComponent={},_.prototype.setState=function(H,ee){if(typeof H!="object"&&typeof H!="function"&&H!=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,H,ee,"setState")},_.prototype.forceUpdate=function(H){this.updater.enqueueForceUpdate(this,H,"forceUpdate")};function P(){}P.prototype=_.prototype;function O(H,ee,pe){this.props=H,this.context=ee,this.refs=S,this.updater=pe||w}var C=O.prototype=new P;C.constructor=O,j(C,_.prototype),C.isPureReactComponent=!0;var E=Array.isArray,T=Object.prototype.hasOwnProperty,M={current:null},I={key:!0,ref:!0,__self:!0,__source:!0};function $(H,ee,pe){var we,ge={},ye=null,$e=null;if(ee!=null)for(we in ee.ref!==void 0&&($e=ee.ref),ee.key!==void 0&&(ye=""+ee.key),ee)T.call(ee,we)&&!I.hasOwnProperty(we)&&(ge[we]=ee[we]);var xe=arguments.length-2;if(xe===1)ge.children=pe;else if(1<xe){for(var de=Array(xe),Ae=0;Ae<xe;Ae++)de[Ae]=arguments[Ae+2];ge.children=de}if(H&&H.defaultProps)for(we in xe=H.defaultProps,xe)ge[we]===void 0&&(ge[we]=xe[we]);return{$$typeof:e,type:H,key:ye,ref:$e,props:ge,_owner:M.current}}function z(H,ee){return{$$typeof:e,type:H.type,key:ee,ref:H.ref,props:H.props,_owner:H._owner}}function Y(H){return typeof H=="object"&&H!==null&&H.$$typeof===e}function V(H){var ee={"=":"=0",":":"=2"};return"$"+H.replace(/[=:]/g,function(pe){return ee[pe]})}var q=/\/+/g;function G(H,ee){return typeof H=="object"&&H!==null&&H.key!=null?V(""+H.key):ee.toString(36)}function Q(H,ee,pe,we,ge){var ye=typeof H;(ye==="undefined"||ye==="boolean")&&(H=null);var $e=!1;if(H===null)$e=!0;else switch(ye){case"string":case"number":$e=!0;break;case"object":switch(H.$$typeof){case e:case t:$e=!0}}if($e)return $e=H,ge=ge($e),H=we===""?"."+G($e,0):we,E(ge)?(pe="",H!=null&&(pe=H.replace(q,"$&/")+"/"),Q(ge,ee,pe,"",function(Ae){return Ae})):ge!=null&&(Y(ge)&&(ge=z(ge,pe+(!ge.key||$e&&$e.key===ge.key?"":(""+ge.key).replace(q,"$&/")+"/")+H)),ee.push(ge)),1;if($e=0,we=we===""?".":we+":",E(H))for(var xe=0;xe<H.length;xe++){ye=H[xe];var de=we+G(ye,xe);$e+=Q(ye,ee,pe,de,ge)}else if(de=y(H),typeof de=="function")for(H=de.call(H),xe=0;!(ye=H.next()).done;)ye=ye.value,de=we+G(ye,xe++),$e+=Q(ye,ee,pe,de,ge);else if(ye==="object")throw ee=String(H),Error("Objects are not valid as a React child (found: "+(ee==="[object Object]"?"object with keys {"+Object.keys(H).join(", ")+"}":ee)+"). If you meant to render a collection of children, use an array instead.");return $e}function ne(H,ee,pe){if(H==null)return H;var we=[],ge=0;return Q(H,we,"","",function(ye){return ee.call(pe,ye,ge++)}),we}function ie(H){if(H._status===-1){var ee=H._result;ee=ee(),ee.then(function(pe){(H._status===0||H._status===-1)&&(H._status=1,H._result=pe)},function(pe){(H._status===0||H._status===-1)&&(H._status=2,H._result=pe)}),H._status===-1&&(H._status=0,H._result=ee)}if(H._status===1)return H._result.default;throw H._result}var re={current:null},W={transition:null},oe={ReactCurrentDispatcher:re,ReactCurrentBatchConfig:W,ReactCurrentOwner:M};function U(){throw Error("act(...) is not supported in production builds of React.")}return lt.Children={map:ne,forEach:function(H,ee,pe){ne(H,function(){ee.apply(this,arguments)},pe)},count:function(H){var ee=0;return ne(H,function(){ee++}),ee},toArray:function(H){return ne(H,function(ee){return ee})||[]},only:function(H){if(!Y(H))throw Error("React.Children.only expected to receive a single React element child.");return H}},lt.Component=_,lt.Fragment=n,lt.Profiler=i,lt.PureComponent=O,lt.StrictMode=r,lt.Suspense=f,lt.__SECRET_INT
vendor: 5,068 bytes, lines 9-25
9ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=oe,lt.act=U,lt.cloneElement=function(H,ee,pe){if(H==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+H+".");var we=j({},H.props),ge=H.key,ye=H.ref,$e=H._owner;if(ee!=null){if(ee.ref!==void 0&&(ye=ee.ref,$e=M.current),ee.key!==void 0&&(ge=""+ee.key),H.type&&H.type.defaultProps)var xe=H.type.defaultProps;for(de in ee)T.call(ee,de)&&!I.hasOwnProperty(de)&&(we[de]=ee[de]===void 0&&xe!==void 0?xe[de]:ee[de])}var de=arguments.length-2;if(de===1)we.children=pe;else if(1<de){xe=Array(de);for(var Ae=0;Ae<de;Ae++)xe[Ae]=arguments[Ae+2];we.children=xe}return{$$typeof:e,type:H.type,key:ge,ref:ye,props:we,_owner:$e}},lt.createContext=function(H){return H={$$typeof:o,_currentValue:H,_currentValue2:H,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},H.Provider={$$typeof:a,_context:H},H.Consumer=H},lt.createElement=$,lt.createFactory=function(H){var ee=$.bind(null,H);return ee.type=H,ee},lt.createRef=function(){return{current:null}},lt.forwardRef=function(H){return{$$typeof:u,render:H}},lt.isValidElement=Y,lt.lazy=function(H){return{$$typeof:g,_payload:{_status:-1,_result:H},_init:ie}},lt.memo=function(H,ee){return{$$typeof:h,type:H,compare:ee===void 0?null:ee}},lt.startTransition=function(H){var ee=W.transition;W.transition={};try{H()}finally{W.transition=ee}},lt.unstable_act=U,lt.useCallback=function(H,ee){return re.current.useCallback(H,ee)},lt.useContext=function(H){return re.current.useContext(H)},lt.useDebugValue=function(){},lt.useDeferredValue=function(H){return re.current.useDeferredValue(H)},lt.useEffect=function(H,ee){return re.current.useEffect(H,ee)},lt.useId=function(){return re.current.useId()},lt.useImperativeHandle=function(H,ee,pe){return re.current.useImperativeHandle(H,ee,pe)},lt.useInsertionEffect=function(H,ee){return re.current.useInsertionEffect(H,ee)},lt.useLayoutEffect=function(H,ee){return re.current.useLayoutEffect(H,ee)},lt.useMemo=function(H,ee){return re.current.useMemo(H,ee)},lt.useReducer=function(H,ee,pe){return re.current.useReducer(H,ee,pe)},lt.useRef=function(H){return re.current.useRef(H)},lt.useState=function(H){return re.current.useState(H)},lt.useSyncExternalStore=function(H,ee,pe){return re.current.useSyncExternalStore(H,ee,pe)},lt.useTransition=function(){return re.current.useTransition()},lt.version="18.3.1",lt}var uC;function oN(){return uC||(uC=1,X0.exports=Eq()),X0.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 dC;function Mq(){if(dC)return Jf;dC=1;var e=oN(),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,a={key:!0,ref:!0,__self:!0,__source:!0};function o(u,f,h){var g,p={},y=null,w=null;h!==void 0&&(y=""+h),f.key!==void 0&&(y=""+f.key),f.ref!==void 0&&(w=f.ref);for(g in f)r.call(f,g)&&!a.hasOwnProperty(g)&&(p[g]=f[g]);if(u&&u.defaultProps)for(g in f=u.defaultProps,f)p[g]===void 0&&(p[g]=f[g]);return{$$typeof:t,type:u,key:y,ref:w,props:p,_owner:i.current}}return Jf.Fragment=n,Jf.jsx=o,Jf.jsxs=o,Jf}var fC;function Rq(){return fC||(fC=1,Y0.exports=Mq()),Y0.exports}var c=Rq(),k=oN();const K=kt(k),Hd=Oq({__proto__:null,default:K},[k]);var _g={},Q0={exports:{}},Lr={},J0={exports:{}},eb={};/**
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 hC;function Dq(){return hC||(hC=1,(function(e){function t(W,oe){var U=W.length;W.push(oe);e:for(;0<U;){var H=U-1>>>1,ee=W[H];if(0<i(ee,oe))W[H]=oe,W[U]=ee,U=H;else break e}}function n(W){return W.length===0?null:W[0]}function r(W){if(W.length===0)return null;var oe=W[0],U=W.pop();if(U!==oe){W[0]=U;e:for(var H=0,ee=W.length,pe=ee>>>1;H<pe;){var we=2*(H+1)-1,ge=W[we],ye=we+1,$e=W[ye];if(0>i(ge,U))ye<ee&&0>i($e,ge)?(W[H]=$e,W[ye]=U,H=ye):(W[H]=ge,W[we]=U,H=we);else if(ye<ee&&0>i($e,U))W[H]=$e,W[ye]=U,H=ye;else break e}}return oe}function i(W,oe){var U=W.sortIndex-oe.sortIndex;return U!==0?U:W.id-oe.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,u=o.now();e.unstable_now=function(){return o.now()-u}}var f=[],h=[],g=1,p=null,y=3,w=!1,j=!1,S=!1,_=typeof setTimeout=="function"?setTimeout:null,P=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function C(W){for(var oe=n(h);oe!==null;){if(oe.callback===null)r(h);else if(oe.startTime<=W)r(h),oe.sortIndex=oe.expirationTime,t(f,oe);else break;
vendor: 50,117 bytes, lines 25-38
25oe=n(h)}}function E(W){if(S=!1,C(W),!j)if(n(f)!==null)j=!0,ie(T);else{var oe=n(h);oe!==null&&re(E,oe.startTime-W)}}function T(W,oe){j=!1,S&&(S=!1,P($),$=-1),w=!0;var U=y;try{for(C(oe),p=n(f);p!==null&&(!(p.expirationTime>oe)||W&&!V());){var H=p.callback;if(typeof H=="function"){p.callback=null,y=p.priorityLevel;var ee=H(p.expirationTime<=oe);oe=e.unstable_now(),typeof ee=="function"?p.callback=ee:p===n(f)&&r(f),C(oe)}else r(f);p=n(f)}if(p!==null)var pe=!0;else{var we=n(h);we!==null&&re(E,we.startTime-oe),pe=!1}return pe}finally{p=null,y=U,w=!1}}var M=!1,I=null,$=-1,z=5,Y=-1;function V(){return!(e.unstable_now()-Y<z)}function q(){if(I!==null){var W=e.unstable_now();Y=W;var oe=!0;try{oe=I(!0,W)}finally{oe?G():(M=!1,I=null)}}else M=!1}var G;if(typeof O=="function")G=function(){O(q)};else if(typeof MessageChannel<"u"){var Q=new MessageChannel,ne=Q.port2;Q.port1.onmessage=q,G=function(){ne.postMessage(null)}}else G=function(){_(q,0)};function ie(W){I=W,M||(M=!0,G())}function re(W,oe){$=_(function(){W(e.unstable_now())},oe)}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(W){W.callback=null},e.unstable_continueExecution=function(){j||w||(j=!0,ie(T))},e.unstable_forceFrameRate=function(W){0>W||125<W?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):z=0<W?Math.floor(1e3/W):5},e.unstable_getCurrentPriorityLevel=function(){return y},e.unstable_getFirstCallbackNode=function(){return n(f)},e.unstable_next=function(W){switch(y){case 1:case 2:case 3:var oe=3;break;default:oe=y}var U=y;y=oe;try{return W()}finally{y=U}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(W,oe){switch(W){case 1:case 2:case 3:case 4:case 5:break;default:W=3}var U=y;y=W;try{return oe()}finally{y=U}},e.unstable_scheduleCallback=function(W,oe,U){var H=e.unstable_now();switch(typeof U=="object"&&U!==null?(U=U.delay,U=typeof U=="number"&&0<U?H+U:H):U=H,W){case 1:var ee=-1;break;case 2:ee=250;break;case 5:ee=1073741823;break;case 4:ee=1e4;break;default:ee=5e3}return ee=U+ee,W={id:g++,callback:oe,priorityLevel:W,startTime:U,expirationTime:ee,sortIndex:-1},U>H?(W.sortIndex=U,t(h,W),n(f)===null&&W===n(h)&&(S?(P($),$=-1):S=!0,re(E,U-H))):(W.sortIndex=ee,t(f,W),j||w||(j=!0,ie(T))),W},e.unstable_shouldYield=V,e.unstable_wrapCallback=function(W){var oe=y;return function(){var U=y;y=oe;try{return W.apply(this,arguments)}finally{y=U}}}})(eb)),eb}var pC;function Iq(){return pC||(pC=1,J0.exports=Dq()),J0.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 mC;function Lq(){if(mC)return Lr;mC=1;var e=oN(),t=Iq();function n(s){for(var d="https://reactjs.org/docs/error-decoder.html?invariant="+s,v=1;v<arguments.length;v++)d+="&args[]="+encodeURIComponent(arguments[v]);return"Minified React error #"+s+"; visit "+d+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,i={};function a(s,d){o(s,d),o(s+"Capture",d)}function o(s,d){for(i[s]=d,s=0;s<d.length;s++)r.add(d[s])}var u=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),f=Object.prototype.hasOwnProperty,h=/^[: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]*$/,g={},p={};function y(s){return f.call(p,s)?!0:f.call(g,s)?!1:h.test(s)?p[s]=!0:(g[s]=!0,!1)}function w(s,d,v,b){if(v!==null&&v.type===0)return!1;switch(typeof d){case"function":case"symbol":return!0;case"boolean":return b?!1:v!==null?!v.acceptsBooleans:(s=s.toLowerCase().slice(0,5),s!=="data-"&&s!=="aria-");default:return!1}}function j(s,d,v,b){if(d===null||typeof d>"u"||w(s,d,v,b))return!0;if(b)return!1;if(v!==null)switch(v.type){case 3:return!d;case 4:return d===!1;case 5:return isNaN(d);case 6:return isNaN(d)||1>d}return!1}function S(s,d,v,b,A,R,B){this.acceptsBooleans=d===2||d===3||d===4,this.attributeName=b,this.attributeNamespace=A,this.mustUseProperty=v,this.propertyName=s,this.type=d,this.sanitizeURL=R,this.removeEmptyString=B}var _={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(s){_[s]=new S(s,0,!1,s,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(s){var d=s[0];_[d]=new S(d,1,!1,s[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(s){_[s]=new S(s,2,!1,s.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(s){_[s]=new S(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){_[s]=new S(s,3,!1,s.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(s){_[s]=new S(s,3,!0,s,null,!1,!1)}),["capture","download"].forEach(function(s){_[s]=new S(s,4,!1,s,null,!1,!1)}),["cols","rows","size","span"].forEach(function(s){_[s]=new S(s,6,!1,s,null,!1,!1)}),["rowSpan","start"].forEach(function(s){_[s]=new S(s,5,!1,s.toLowerCase(),null,!1,!1)});var P=/[\-:]([a-z])/g;function O(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 d=s.replace(P,O);_[d]=new S(d,1,!1,s,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(s){var d=s.replace(P,O);_[d]=new S(d,1,!1,s,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(s){var d=s.replace(P,O);_[d]=new S(d,1,!1,s,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(s){_[s]=new S(s,1,!1,s.toLowerCase(),null,!1,!1)}),_.xlinkHref=new S("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(s){_[s]=new S(s,1,!1,s.toLowerCase(),null,!0,!0)});function C(s,d,v,b){var A=_.hasOwnProperty(d)?_[d]:null;(A!==null?A.type!==0:b||!(2<d.length)||d[0]!=="o"&&d[0]!=="O"||d[1]!=="n"&&d[1]!=="N")&&(j(d,v,A,b)&&(v=null),b||A===null?y(d)&&(v===null?s.removeAttribute(d):s.setAttribute(d,""+v)):A.mustUseProperty?s[A.propertyName]=v===null?A.type===3?!1:"":v:(d=A.attributeName,b=A.attributeNamespace,v===null?s.removeAttribute(d):(A=A.type,v=A===3||A===4&&v===!0?"":""+v,b?s.setAttributeNS(b,d,v):s.setAttribute(d,v))))}var E=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,T=Symbol.for("react.element"),M=Symbol.for("react.portal"),I=Symbol.for("react.fragment"),$=Symbol.for("react.strict_mode"),z=Symbol.for("react.profiler"),Y=Symbol.for("react.provider"),V=Symbol.for("react.context"),q=Symbol.for("react.forward_ref"),G=Symbol.for("react.suspense"),Q=Symbol.for("react.suspense_list"),ne=Symbol.for("react.memo"),ie=Symbol.for("react.lazy"),re=Symbol.for("react.offscreen"),W=Symbol.iterator;function oe(s){return s===null||typeof s!="object"?null:(s=W&&s[W]||s["@@iterator"],typeof s=="function"?s:null)}var U=Object.assign,H;function ee(s){if(H===void 0)try{throw Error()}catch(v){var d=v.stack.trim().match(/\n( *(at )?)/);H=d&&d[1]||""}return`
34`+H+s}var pe=!1;function we(s,d){if(!s||pe)return"";pe=!0;var v=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(d)if(d=function(){throw Error()},Object.defineProperty(d.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(d,[])}catch(fe){var b=fe}Reflect.construct(s,[],d)}else{try{d.call()}catch(fe){b=fe}s.call(d.prototype)}else{try{throw Error()}catch(fe){b=fe}s()}}catch(fe){if(fe&&b&&typeof fe.stack=="string"){for(var A=fe.stack.split(`
35`),R=b.stack.split(`
36`),B=A.length-1,Z=R.length-1;1<=B&&0<=Z&&A[B]!==R[Z];)Z--;for(;1<=B&&0<=Z;B--,Z--)if(A[B]!==R[Z]){if(B!==1||Z!==1)do if(B--,Z--,0>Z||A[B]!==R[Z]){var te=`
37`+A[B].replace(" at new "," at ");return s.displayName&&te.includes("<anonymous>")&&(te=te.replace("<anonymous>",s.displayName)),te}while(1<=B&&0<=Z);break}}}finally{pe=!1,Error.prepareStackTrace=v}return(s=s?s.displayName||s.name:"")?ee(s):""}function ge(s){switch(s.tag){case 5:return ee(s.type);case 16:return ee("Lazy");case 13:return ee("Suspense");case 19:return ee("SuspenseList");case 0:case 2:case 15:return s=we(s.type,!1),s;case 11:return s=we(s.type.render,!1),s;case 1:return s=we(s.type,!0),s;default:return""}}function ye(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 I:return"Fragment";case M:return"Portal";case z:return"Profiler";case $:return"StrictMode";case G:return"Suspense";case Q:return"SuspenseList"}if(typeof s=="object")switch(s.$$typeof){case V:return(s.displayName||"Context")+".Consumer";case Y:return(s._context.displayName||"Context")+".Provider";case q:var d=s.render;return s=s.displayName,s||(s=d.displayName||d.name||"",s=s!==""?"ForwardRef("+s+")":"ForwardRef"),s;case ne:return d=s.displayName||null,d!==null?d:ye(s.type)||"Memo";case ie:d=s._payload,s=s._init;try{return ye(s(d))}catch{}}return null}function $e(s){var d=s.type;switch(s.tag){case 24:return"Cache";case 9:return(d.displayName||"Context")+".Consumer";case 10:return(d._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return s=d.render,s=s.displayName||s.name||"",d.displayName||(s!==""?"ForwardRef("+s+")":"ForwardRef");case 7:return"Fragment";case 5:return d;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ye(d);case 8:return d===$?"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 d=="function")return d.displayName||d.name||null;if(typeof d=="string")return d}return null}function xe(s){switch(typeof s){case"boolean":case"number":case"string":case"undefined":return s;case"object":return s;default:return""}}function de(s){var d=s.type;return(s=s.nodeName)&&s.toLowerCase()==="input"&&(d==="checkbox"||d==="radio")}function Ae(s){var d=de(s)?"checked":"value",v=Object.getOwnPropertyDescriptor(s.constructor.prototype,d),b=""+s[d];if(!s.hasOwnProperty(d)&&typeof v<"u"&&typeof v.get=="function"&&typeof v.set=="function"){var A=v.get,R=v.set;return Object.defineProperty(s,d,{configurable:!0,get:function(){return A.call(this)},set:function(B){b=""+B,R.call(this,B)}}),Object.defineProperty(s,d,{enumerable:v.enumerable}),{getValue:function(){return b},setValue:function(B){b=""+B},stopTracking:function(){s._valueTracker=null,delete s[d]}}}}function Ne(s){s._valueTracker||(s._valueTracker=Ae(s))}function he(s){if(!s)return!1;var d=s._valueTracker;if(!d)return!0;var v=d.getValue(),b="";return s&&(b=de(s)?s.checked?"true":"false":s.value),s=b,s!==v?(d.setValue(s),!0):!1}function Ee(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 Se(s,d){var v=d.checked;return U({},d,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:v??s._wrapperState.initialChecked})}function at(s,d){var v=d.defaultValue==null?"":d.defaultValue,b=d.checked!=null?d.checked:d.defaultChecked;v=xe(d.value!=null?d.value:v),s._wrapperState={initialChecked:b,initialValue:v,controlled:d.type==="checkbox"||d.type==="radio"?d.checked!=null:d.value!=null}}function dt(s,d){d=d.checked,d!=null&&C(s,"checked",d,!1)}function bt(s,d){dt(s,d);var v=xe(d.value),b=d.type;if(v!=null)b==="number"?(v===0&&s.value===""||s.value!=v)&&(s.value=""+v):s.value!==""+v&&(s.value=""+v);else if(b==="submit"||b==="reset"){s.removeAttribute("value");return}d.hasOwnProperty("value")?ir(s,d.type,v):d.hasOwnProperty("defaultValue")&&ir(s,d.type,xe(d.defaultValue)),d.checked==null&&d.defaultChecked!=null&&(s.defaultChecked=!!d.defaultChecked)}function Gt(s,d,v){if(d.hasOwnProperty("value")||d.hasOwnProperty("defaultValue")){var b=d.type;if(!(b!=="submit"&&b!=="reset"||d.value!==void 0&&d.value!==null))return;d=""+s._wrapperState.initialValue,v||d===s.value||(s.value=d),s.defaultValue=d}v=s.name,v!==""&&(s.name=""),s.defaultChecked=!!s._wrapperState.initialChecked,v!==""&&(s.name=v)}function ir(s,d,v){(d!=="number"||Ee(s.ownerDocument)!==s)&&(v==null?s.defaultValue=""+s._wrapperState.initialValue:s.defaultValue!==""+v&&(s.defaultValue=""+v))}var sn=Array.isArray;function Xt(s,d,v,b){if(s=s.options,d){d={};for(var A=0;A<v.length;A++)d["$"+v[A]]=!0;for(v=0;v<s.length;v++)A=d.hasOwnProperty("$"+s[v].value),s[v].selected!==A&&(s[v].selected=A),A&&b&&(s[v].defaultSelected=!0)}else{for(v=""+xe(v),d=null,A=0;A<s.length;A++){if(s[A].value===v){s[A].selected=!0,b&&(s[A].defaultSelected=!0);return}d!==null||s[A].disabled||(d=s[A])}d!==null&&(d.selected=!0)}}function pn(s,d){if(d.dangerouslySetInnerHTML!=null)throw Error(n(91));return U({},d,{value:void 0,defaultValue:void 0,children:""+s._wrapperState.initialValue})}function br(s,d){var v=d.value;if(v==null){if(v=d.children,d=d.defaultValue,v!=null){if(d!=null)throw Error(n(92));if(sn(v)){if(1<v.length)throw Error(n(93));v=v[0]}d=v}d==null&&(d=""),v=d}s._wrapperState={initialValue:xe(v)}}function Za(s,d){var v=xe(d.value),b=xe(d.defaultValue);v!=null&&(v=""+v,v!==s.value&&(s.value=v),d.defaultValue==null&&s.defaultValue!==v&&(s.defaultValue=v)),b!=null&&(s.defaultValue=""+b)}function ga(s){var d=s.textContent;d===s._wrapperState.initialValue&&d!==""&&d!==null&&(s.value=d)}function Qo(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 Jo(s,d){return s==null||s==="http://www.w3.org/1999/xhtml"?Qo(d):s==="http://www.w3.org/2000/svg"&&d==="foreignObject"?"http://www.w3.org/1999/xhtml":s}var vi,zc=(function(s){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(d,v,b,A){MSApp.execUnsafeLocalFunction(function(){return s(d,v,b,A)})}:s})(function(s,d){if(s.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in s)s.innerHTML=d;else{for(vi=vi||document.createElement("div"),vi.innerHTML="<svg>"+d.valueOf().toString()+"</svg>",d=vi.firstChild;s.firstChild;)s.removeChild(s.firstChild);for(;d.firstChild;)s.appendChild(d.firstChild)}});function Vi(s,d){if(d){var v=s.firstChild;if(v&&v===s.lastChild&&v.nodeType===3){v.nodeValue=d;return}}s.textContent=d}var va={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},Ya=["Webkit","ms","Moz","O"];Object.keys(va).forEach(function(s){Ya.forEach(function(d){d=d+s.charAt(0).toUpperCase()+s.substring(1),va[d]=va[s]})});function es(s,d,v){return d==null||typeof d=="boolean"||d===""?"":v||typeof d!="number"||d===0||va.hasOwnProperty(s)&&va[s]?(""+d).trim():d+"px"}function ts(s,d){s=s.style;for(var v in d)if(d.hasOwnProperty(v)){var b=v.indexOf("--")===0,A=es(v,d[v],b);v==="float"&&(v="cssFloat"),b?s.setProperty(v,A):s[v]=A}}var qc=U({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 yl(s,d){if(d){if(qc[s]&&(d.children!=null||d.dangerouslySetInnerHTML!=null))throw Error(n(137,s));if(d.dangerouslySetInnerHTML!=null){if(d.children!=null)throw Error(n(60));if(typeof d.dangerouslySetInnerHTML!="object"||!("__html"in d.dangerouslySetInnerHTML))throw Error(n(61))}if(d.style!=null&&typeof d.style!="object")throw Error(n(62))}}function Wi(s,d){if(s.indexOf("-")===-1)return typeof d.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 xl=null;function qe(s){return s=s.target||s.srcElement||window,s.correspondingUseElement&&(s=s.correspondingUseElement),s.nodeType===3?s.parentNode:s}var ft=null,ht=null,rt=null;function Dt(s){if(s=lo(s)){if(typeof ft!="function")throw Error(n(280));var d=s.stateNode;d&&(d=pu(d),ft(s.stateNode,s.type,d))}}function An(s){ht?rt?rt.push(s):rt=[s]:ht=s}function yn(){if(ht){var s=ht,d=rt;if(rt=ht=null,Dt(s),d)for(s=0;s<d.length;s++)Dt(d[s])}}function Hr(s,d){return s(d)}function ar(){}var Gr=!1;function wr(s,d,v){if(Gr)return s(d,v);Gr=!0;try{return Hr(s,d,v)}finally{Gr=!1,(ht!==null||rt!==null)&&(ar(),yn())}}function zn(s,d){var v=s.stateNode;if(v===null)return null;var b=pu(v);if(b===null)return null;v=b[d];e:switch(d){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(v&&typeof v!="function")throw Error(n(231,d,typeof v));return v}var ya=!1;if(u)try{var xa={};Object.defineProperty(xa,"passive",{get:function(){ya=!0}}),window.addEventListener("test",xa,xa),window.removeEventListener("test",xa,xa)}catch{ya=!1}function Nx(s,d,v,b,A,R,B,Z,te){var fe=Array.prototype.slice.call(arguments,3);try{d.apply(v,fe)}catch(_e){this.onError(_e)}}var or=!1,Fe=null,bl=!1,Vc=null,sm={onError:function(s){or=!0,Fe=s}};function lm(s,d,v,b,A,R,B,Z,te){or=!1,Fe=null,Nx.apply(sm,arguments)}function uf(s,d,v,b,A,R,B,Z,te){if(lm.apply(this,arguments),or){if(or){var fe=Fe;or=!1,Fe=null}else throw Error(n(198));bl||(bl=!0,Vc=fe)}}function ba(s){var d=s,v=s;if(s.alternate)for(;d.return;)d=d.return;else{s=d;do d=s,(d.flags&4098)!==0&&(v=d.return),s=d.return;while(s)}return d.tag===3?v:null}function Xa(s){if(s.tag===13){var d=s.memoizedState;if(d===null&&(s=s.alternate,s!==null&&(d=s.memoizedState)),d!==null)return d.dehydrated}return null}function df(s){if(ba(s)!==s)throw Error(n(188))}function Ax(s){var d=s.alternate;if(!d){if(d=ba(s),d===null)throw Error(n(188));return d!==s?null:s}for(var v=s,b=d;;){var A=v.return;if(A===null)break;var R=A.alternate;if(R===null){if(b=A.return,b!==null){v=b;continue}break}if(A.child===R.child){for(R=A.child;R;){if(R===v)return df(A),s;if(R===b)return df(A),d;R=R.sibling}throw Error(n(188))}if(v.return!==b.return)v=A,b=R;else{for(var B=!1,Z=A.child;Z;){if(Z===v){B=!0,v=A,b=R;break}if(Z===b){B=!0,b=A,v=R;break}Z=Z.sibling}if(!B){for(Z=R.child;Z;){if(Z===v){B=!0,v=R,b=A;break}if(Z===b){B=!0,b=R,v=A;break}Z=Z.sibling}if(!B)throw Error(n(189))}}if(v.alternate!==b)throw Error(n(190))}if(v.tag!==3)throw Error(n(188));return v.stateNode.current===v?s:d}function cm(s){return s=Ax(s),s!==null?um(s):null}function um(s){if(s.tag===5||s.tag===6)return s;for(s=s.child;s!==null;){var d=um(s);if(d!==null)return d;s=s.sibling}return null}var dm=t.unstable_scheduleCallback,ff=t.unstable_cancelCallback,Tx=t.unstable_shouldYield,Wc=t.unstable_requestPaint,Qt=t.unstable_now,kx=t.unstable_getCurrentPriorityLevel,hf=t.unstable_ImmediatePriority,fm=t.unstable_UserBlockingPriority,Uc=t.unstable_NormalPriority,pf=t.unstable_LowPriority,ns=t.unstable_IdlePriority,wl=null,Kr=null;function _l(s){if(Kr&&typeof Kr.onCommitFiberRoot=="function")try{Kr.onCommitFiberRoot(wl,s,void 0,(s.current.flags&128)===128)}catch{}}var nt=Math.clz32?Math.clz32:rs,zt=Math.log,Hc=Math.LN2;function rs(s){return s>>>=0,s===0?32:31-(zt(s)/Hc|0)|0}var Ui=64,is=4194304;function tt(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 It(s,d){var v=s.pendingLanes;if(v===0)return 0;var b=0,A=s.suspendedLanes,R=s.pingedLanes,B=v&268435455;if(B!==0){var Z=B&~A;Z!==0?b=tt(Z):(R&=B,R!==0&&(b=tt(R)))}else B=v&~A,B!==0?b=tt(B):R!==0&&(b=tt(R));if(b===0)return 0;if(d!==0&&d!==b&&(d&A)===0&&(A=b&-b,R=d&-d,A>=R||A===16&&(R&4194240)!==0))return d;if((b&4)!==0&&(b|=v&16),d=s.entangledLanes,d!==0)for(s=s.entanglements,d&=b;0<d;)v=31-nt(d),A=1<<v,b|=s[v],d&=~A;return b}function mf(s,d){switch(s){case 1:case 2:case 4:return d+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 d+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 Gc(s,d){for(var v=s.suspendedLanes,b=s.pingedLanes,A=s.expirationTimes,R=s.pendingLanes;0<R;){var B=31-nt(R),Z=1<<B,te=A[B];te===-1?((Z&v)===0||(Z&b)!==0)&&(A[B]=mf(Z,d)):te<=d&&(s.expiredLanes|=Z),R&=~Z}}function sr(s){return s=s.pendingLanes&-1073741825,s!==0?s:s&1073741824?1073741824:0}function hm(){var s=Ui;return Ui<<=1,(Ui&4194240)===0&&(Ui=64),s}function as(s){for(var d=[],v=0;31>v;v++)d.push(s);return d}function Zr(s,d,v){s.pendingLanes|=d,d!==536870912&&(s.suspendedLanes=0,s.pingedLanes=0),s=s.eventTimes,d=31-nt(d),s[d]=v}function ln(s,d){var v=s.pendingLanes&~d;s.pendingLanes=d,s.suspendedLanes=0,s.pingedLanes=0,s.expiredLanes&=d,s.mutableReadLanes&=d,s.entangledLanes&=d,d=s.entanglements;var b=s.eventTimes;for(s=s.expirationTimes;0<v;){var A=31-nt(v),R=1<<A;d[A]=0,b[A]=-1,s[A]=-1,v&=~R}}function Hi(s,d){var v=s.entangledLanes|=d;for(s=s.entanglements;v;){var b=31-nt(v),A=1<<b;A&d|s[b]&d&&(s[b]|=d),v&=~A}}var mt=0;function os(s){return s&=-s,1<s?4<s?(s&268435455)!==0?16:536870912:4:1}var Kc,Qa,Zc,Yc,Sl,jl=!1,ss=[],Yr=null,Gi=null,yi=null,Pl=new Map,Qe=new Map,Tn=[],Ct="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 gf(s,d){switch(s){case"focusin":case"focusout":Yr=null;break;case"dragenter":case"dragleave":Gi=null;break;case"mouseover":case"mouseout":yi=null;break;case"pointerover":case"pointerout":Pl.delete(d.pointerId);break;case"gotpointercapture":case"lostpointercapture":Qe.delete(d.pointerId)}}function Ja(s,d,v,b,A,R){return s===null||s.nativeEvent!==R?(s={blockedOn:d,domEventName:v,eventSystemFlags:b,nativeEvent:R,targetContainers:[A]},d!==null&&(d=lo(d),d!==null&&Qa(d)),s):(s.eventSystemFlags|=b,d=s.targetContainers,A!==null&&d.indexOf(A)===-1&&d.push(A),s)}function vf(s,d,v,b,A){switch(d){case"focusin":return Yr=Ja(Yr,s,d,v,b,A),!0;case"dragenter":return Gi=Ja(Gi,s,d,v,b,A),!0;case"mouseover":return yi=Ja(yi,s,d,v,b,A),!0;case"pointerover":var R=A.pointerId;return Pl.set(R,Ja(Pl.get(R)||null,s,d,v,b,A)),!0;case"gotpointercapture":return R=A.pointerId,Qe.set(R,Ja(Qe.get(R)||null,s,d,v,b,A)),!0}return!1}function Xc(s){var d=so(s.target);if(d!==null){var v=ba(d);if(v!==null){if(d=v.tag,d===13){if(d=Xa(v),d!==null){s.blockedOn=d,Sl(s.priority,function(){Zc(v)});return}}else if(d===3&&v.stateNode.current.memoizedState.isDehydrated){s.blockedOn=v.tag===3?v.stateNode.containerInfo:null;return}}}s.blockedOn=null}function xi(s){if(s.blockedOn!==null)return!1;for(var d=s.targetContainers;0<d.length;){var v=eu(s.domEventName,s.eventSystemFlags,d[0],s.nativeEvent);if(v===null){v=s.nativeEvent;var b=new v.constructor(v.type,v);xl=b,v.target.dispatchEvent(b),xl=null}else return d=lo(v),d!==null&&Qa(d),s.blockedOn=v,!1;d.shift()}return!0}function Qc(s,d,v){xi(s)&&v.delete(d)}function Nl(){jl=!1,Yr!==null&&xi(Yr)&&(Yr=null),Gi!==null&&xi(Gi)&&(Gi=null),yi!==null&&xi(yi)&&(yi=null),Pl.forEach(Qc),Qe.forEach(Qc)}function Jt(s,d){s.blockedOn===d&&(s.blockedOn=null,jl||(jl=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Nl)))}function Xr(s){function d(A){return Jt(A,s)}if(0<ss.length){Jt(ss[0],s);for(var v=1;v<ss.length;v++){var b=ss[v];b.blockedOn===s&&(b.blockedOn=null)}}for(Yr!==null&&Jt(Yr,s),Gi!==null&&Jt(Gi,s),yi!==null&&Jt(yi,s),Pl.forEach(d),Qe.forEach(d),v=0;v<Tn.length;v++)b=Tn[v],b.blockedOn===s&&(b.blockedOn=null);for(;0<Tn.length&&(v=Tn[0],v.blockedOn===null);)Xc(v),v.blockedOn===null&&Tn.shift()}var eo=E.ReactCurrentBatchConfig,Al=!0;function Cx(s,d,v,b){var A=mt,R=eo.transition;eo.transition=null;try{mt=1,Tl(s,d,v,b)}finally{mt=A,eo.transition=R}}function pm(s,d,v,b){var A=mt,R=eo.transition;eo.transition=null;try{mt=4,Tl(s,d,v,b)}finally{mt=A,eo.transition=R}}function Tl(s,d,v,b){if(Al){var A=eu(s,d,v,b);if(A===null)l(s,d,b,Jc,v),gf(s,b);else if(vf(A,s,d,v,b))b.stopPropagation();else if(gf(s,b),d&4&&-1<Ct.indexOf(s)){for(;A!==null;){var R=lo(A);if(R!==null&&Kc(R),R=eu(s,d,v,b),R===null&&l(s,d,b,Jc,v),R===A)break;A=R}A!==null&&b.stopPropagation()}else l(s,d,b,null,v)}}var Jc=null;function eu(s,d,v,b){if(Jc=null,s=qe(b),s=so(s),s!==null)if(d=ba(s),d===null)s=null;else if(v=d.tag,v===13){if(s=Xa(d),s!==null)return s;s=null}else if(v===3){if(d.stateNode.current.memoizedState.isDehydrated)return d.tag===3?d.stateNode.containerInfo:null;s=null}else d!==s&&(s=null);return Jc=s,null}function ct(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(kx()){case hf:return 1;case fm:return 4;case Uc:case pf:return 16;case ns:return 536870912;default:return 16}default:return 16}}var wa=null,_r=null,_a=null;function yf(){if(_a)return _a;var s,d=_r,v=d.length,b,A="value"in wa?wa.value:wa.textContent,R=A.length;for(s=0;s<v&&d[s]===A[s];s++);var B=v-s;for(b=1;b<=B&&d[v-b]===A[R-b];b++);return _a=A.slice(s,1<b?1-b:void 0)}function tu(s){var d=s.keyCode;return"charCode"in s?(s=s.charCode,s===0&&d===13&&(s=13)):s=d,s===10&&(s=13),32<=s||s===13?s:0}function ls(){return!0}function mm(){return!1}function lr(s){function d(v,b,A,R,B){this._reactName=v,this._targetInst=A,this.type=b,this.nativeEvent=R,this.target=B,this.currentTarget=null;for(var Z in s)s.hasOwnProperty(Z)&&(v=s[Z],this[Z]=v?v(R):R[Z]);return this.isDefaultPrevented=(R.defaultPrevented!=null?R.defaultPrevented:R.returnValue===!1)?ls:mm,this.isPropagationStopped=mm,this}return U(d.prototype,{preventDefault:function(){this.defaultPrevented=!0;var v=this.nativeEvent;v&&(v.preventDefault?v.preventDefault():typeof v.returnValue!="unknown"&&(v.returnValue=!1),this.isDefaultPrevented=ls)},stopPropagation:function(){var v=this.nativeEvent;v&&(v.stopPropagation?v.stopPropagation():typeof v.cancelBubble!="unknown"&&(v.cancelBubble=!0),this.isPropagationStopped=ls)},persist:function(){},isPersistent:ls}),d}var cs={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(s){return s.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},xf=lr(cs),to=U({},cs,{view:0,detail:0}),Ox=lr(to),Cr,bf,us,Qr=U({},to,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ro,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!==us&&(us&&s.type==="mousemove"?(Cr=s.screenX-us.screenX,bf=s.screenY-us.screenY):bf=Cr=0,us=s),Cr)},movementY:function(s){return"movementY"in s?s.movementY:bf}}),wf=lr(Qr),gm=U({},Qr,{dataTransfer:0}),_f=lr(gm),Ex=U({},to,{relatedTarget:0}),nu=lr(Ex),vm=U({},cs,{animationName:0,elapsedTime:0,pseudoElement:0}),Mx=lr(vm),Rx=U({},cs,{clipboardData:function(s){return"clipboardData"in s?s.clipboardData:window.clipboardData}}),Sf=lr(Rx),Dx=U({},cs,{data:0}),jf=lr(Dx),ym={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ru={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"},no={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ix(s){var d=this.nativeEvent;return d.getModifierState?d.getModifierState(s):(s=no[s])?!!d[s]:!1}function ro(){return Ix}var Or=U({},to,{key:function(s){if(s.key){var d=ym[s.key]||s.key;if(d!=="Unidentified")return d}return s.type==="keypress"?(s=tu(s),s===13?"Enter":String.fromCharCode(s)):s.type==="keydown"||s.type==="keyup"?ru[s.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ro,charCode:function(s){return s.type==="keypress"?tu(s):0},keyCode:function(s){return s.type==="keydown"||s.type==="keyup"?s.keyCode:0},which:function(s){return s.type==="keypress"?tu(s):s.type==="keydown"||s.type==="keyup"?s.keyCode:0}}),xm=lr(Or),bm=U({},Qr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),wm=lr(bm),Pf=U({},to,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ro}),Nf=lr(Pf),Lx=U({},cs,{propertyName:0,elapsedTime:0,pseudoElement:0}),$x=lr(Lx),_m=U({},Qr,{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}),Bx=lr(_m),Jr=[9,13,27,32],Sa=u&&"CompositionEvent"in window,kl=null;u&&"documentMode"in document&&(kl=document.documentMode);var Ki=u&&"TextEvent"in window&&!kl,Sm=u&&(!Sa||kl&&8<kl&&11>=kl),io=" ",jm=!1;function ds(s,d){switch(s){case"keyup":return Jr.indexOf(d.keyCode)!==-1;case"keydown":return d.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Af(s){return s=s.detail,typeof s=="object"&&"data"in s?s.data:null}var Zi=!1;function Fx(s,d){switch(s){case"compositionend":return Af(d);case"keypress":return d.which!==32?null:(jm=!0,io);case"textInput":return s=d.data,s===io&&jm?null:s;default:return null}}function ja(s,d){if(Zi)return s==="compositionend"||!Sa&&ds(s,d)?(s=yf(),_a=_r=wa=null,Zi=!1,s):null;switch(s){case"paste":return null;case"keypress":if(!(d.ctrlKey||d.altKey||d.metaKey)||d.ctrlKey&&d.altKey){if(d.char&&1<d.char.length)return d.char;if(d.which)return String.fromCharCode(d.which)}return null;case"compositionend":return Sm&&d.locale!=="ko"?null:d.data;default:return null}}var iu={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 Pm(s){var d=s&&s.nodeName&&s.nodeName.toLowerCase();return d==="input"?!!iu[s.type]:d==="textarea"}function au(s,d,v,b){An(b),d=x(d,"onChange"),0<d.length&&(v=new xf("onChange","change",null,v,b),s.push({event:v,listeners:d}))}var Cl=null,Sr=null;function zx(s){If(s,0)}function Yi(s){var d=co(s);if(he(d))return s}function qx(s,d){if(s==="change")return d}var bi=!1;if(u){var fs;if(u){var ou="oninput"in document;if(!ou){var su=document.createElement("div");su.setAttribute("oninput","return;"),ou=typeof su.oninput=="function"}fs=ou}else fs=!1;bi=fs&&(!document.documentMode||9<document.documentMode)}function Ol(){Cl&&(Cl.detachEvent("onpropertychange",lu),Sr=Cl=null)}function lu(s){if(s.propertyName==="value"&&Yi(Sr)){var d=[];au(d,Sr,s,qe(s)),wr(zx,d)}}function cu(s,d,v){s==="focusin"?(Ol(),Cl=d,Sr=v,Cl.attachEvent("onpropertychange",lu)):s==="focusout"&&Ol()}function hs(s){if(s==="selectionchange"||s==="keyup"||s==="keydown")return Yi(Sr)}function uu(s,d){if(s==="click")return Yi(d)}function Tf(s,d){if(s==="input"||s==="change")return Yi(d)}function Nm(s,d){return s===d&&(s!==0||1/s===1/d)||s!==s&&d!==d}var ei=typeof Object.is=="function"?Object.is:Nm;function Pa(s,d){if(ei(s,d))return!0;if(typeof s!="object"||s===null||typeof d!="object"||d===null)return!1;var v=Object.keys(s),b=Object.keys(d);if(v.length!==b.length)return!1;for(b=0;b<v.length;b++){var A=v[b];if(!f.call(d,A)||!ei(s[A],d[A]))return!1}return!0}function Am(s){for(;s&&s.firstChild;)s=s.firstChild;return s}function kf(s,d){var v=Am(s);s=0;for(var b;v;){if(v.nodeType===3){if(b=s+v.textContent.length,s<=d&&b>=d)return{node:v,offset:d-s};s=b}e:{for(;v;){if(v.nextSibling){v=v.nextSibling;break e}v=v.parentNode}v=void 0}v=Am(v)}}function Tm(s,d){return s&&d?s===d?!0:s&&s.nodeType===3?!1:d&&d.nodeType===3?Tm(s,d.parentNode):"contains"in s?s.contains(d):s.compareDocumentPosition?!!(s.compareDocumentPosition(d)&16):!1:!1}function Cf(){for(var s=window,d=Ee();d instanceof s.HTMLIFrameElement;){try{var v=typeof d.contentWindow.location.href=="string"}catch{v=!1}if(v)s=d.contentWindow;else break;d=Ee(s.document)}return d}function Of(s){var d=s&&s.nodeName&&s.nodeName.toLowerCase();return d&&(d==="input"&&(s.type==="text"||s.type==="search"||s.type==="tel"||s.type==="url"||s.type==="password")||d==="textarea"||s.contentEditable==="true")}function wi(s){var d=Cf(),v=s.focusedElem,b=s.selectionRange;if(d!==v&&v&&v.ownerDocument&&Tm(v.ownerDocument.documentElement,v)){if(b!==null&&Of(v)){if(d=b.start,s=b.end,s===void 0&&(s=d),"selectionStart"in v)v.selectionStart=d,v.selectionEnd=Math.min(s,v.value.length);else if(s=(d=v.ownerDocument||document)&&d.defaultView||window,s.getSelection){s=s.getSelection();var A=v.textContent.length,R=Math.min(b.start,A);b=b.end===void 0?R:Math.min(b.end,A),!s.extend&&R>b&&(A=b,b=R,R=A),A=kf(v,R);var B=kf(v,b);A&&B&&(s.rangeCount!==1||s.anchorNode!==A.node||s.anchorOffset!==A.offset||s.focusNode!==B.node||s.focusOffset!==B.offset)&&(d=d.createRange(),d.setStart(A.node,A.offset),s.removeAllRanges(),R>b?(s.addRange(d),s.extend(B.node,B.offset)):(d.setEnd(B.node,B.offset),s.addRange(d)))}}for(d=[],s=v;s=s.parentNode;)s.nodeType===1&&d.push({element:s,left:s.scrollLeft,top:s.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<d.length;v++)s=d[v],s.element.scrollLeft=s.left,s.element.scrollTop=s.top}}var du=u&&"documentMode"in document&&11>=document.documentMode,ps=null,ms=null,El=null,fu=!1;function km(s,d,v){var b=v.window===v?v.document:v.nodeType===9?v:v.ownerDocument;fu||ps==null||ps!==Ee(b)||(b=ps,"selectionStart"in b&&Of(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}),El&&Pa(El,b)||(El=b,b=x(ms,"onSelect"),0<b.length&&(d=new xf("onSelect","select",null,d,v),s.push({event:d,listeners:b}),d.target=ps)))}function Na(s,d){var v={};return v[s.toLowerCase()]=d.toLowerCase(),v["Webkit"+s]="webkit"+d,v["Moz"+s]="moz"+d,v}var gs={animationend:Na("Animation","AnimationEnd"),animationiteration:Na("Animation","AnimationIteration"),animationstart:Na("Animation","AnimationStart"),transitionend:Na("Transition","TransitionEnd")},Aa={},Ef={};u&&(Ef=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 Ml(s){if(Aa[s])return Aa[s];if(!gs[s])return s;var d=gs[s],v;for(v in d)if(d.hasOwnProperty(v)&&v in Ef)return Aa[s]=d[v];return s}var Cm=Ml("animationend"),_i=Ml("animationiteration"),Mf=Ml("animationstart"),Rf=Ml("transitionend"),vs=new Map,Om="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 ti(s,d){vs.set(s,d),a(d,[s])}for(var ao=0;ao<Om.length;ao++){var hu=Om[ao],Em=hu.toLowerCase(),Vx=hu[0].toUpperCase()+hu.slice(1);ti(Em,"on"+Vx)}ti(Cm,"onAnimationEnd"),ti(_i,"onAnimationIteration"),ti(Mf,"onAnimationStart"),ti("dblclick","onDoubleClick"),ti("focusin","onFocus"),ti("focusout","onBlur"),ti(Rf,"onTransitionEnd"),o("onMouseEnter",["mouseout","mouseover"]),o("onMouseLeave",["mouseout","mouseover"]),o("onPointerEnter",["pointerout","pointerover"]),o("onPointerLeave",["pointerout","pointerover"]),a("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),a("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),a("onBeforeInput",["compositionend","keypress","textInput","paste"]),a("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ys="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(" "),Mm=new Set("cancel close invalid load scroll toggle".split(" ").concat(ys));function Df(s,d,v){var b=s.type||"unknown-event";s.currentTarget=v,uf(b,d,void 0,s),s.currentTarget=null}function If(s,d){d=(d&4)!==0;for(var v=0;v<s.length;v++){var b=s[v],A=b.event;b=b.listeners;e:{var R=void 0;if(d)for(var B=b.length-1;0<=B;B--){var Z=b[B],te=Z.instance,fe=Z.currentTarget;if(Z=Z.listener,te!==R&&A.isPropagationStopped())break e;Df(A,Z,fe),R=te}else for(B=0;B<b.length;B++){if(Z=b[B],te=Z.instance,fe=Z.currentTarget,Z=Z.listener,te!==R&&A.isPropagationStopped())break e;Df(A,Z,fe),R=te}}}if(bl)throw s=Vc,bl=!1,Vc=null,s}function Ot(s,d){var v=d[_s];v===void 0&&(v=d[_s]=new Set);var b=s+"__bubble";v.has(b)||(Rm(d,s,2,!1),v.add(b))}function Lf(s,d,v){var b=0;d&&(b|=4),Rm(v,s,b,d)}var Rl="_reactListening"+Math.random().toString(36).slice(2);function xs(s){if(!s[Rl]){s[Rl]=!0,r.forEach(function(v){v!=="selectionchange"&&(Mm.has(v)||Lf(v,!1,s),Lf(v,!0,s))});var d=s.nodeType===9?s:s.ownerDocument;d===null||d[Rl]||(d[Rl]=!0,Lf("selectionchange",!1,d))}}function Rm(s,d,v,b){switch(ct(d)){case 1:var A=Cx;break;case 4:A=pm;break;default:A=Tl}v=A.bind(null,d,v,s),A=void 0,!ya||d!=="touchstart"&&d!=="touchmove"&&d!=="wheel"||(A=!0),b?A!==void 0?s.addEventListener(d,v,{capture:!0,passive:A}):s.addEventListener(d,v,!0):A!==void 0?s.addEventListener(d,v,{passive:A}):s.addEventListener(d,v,!1)}function l(s,d,v,b,A){var R=b;if((d&1)===0&&(d&2)===0&&b!==null)e:for(;;){if(b===null)return;var B=b.tag;if(B===3||B===4){var Z=b.stateNode.containerInfo;if(Z===A||Z.nodeType===8&&Z.parentNode===A)break;if(B===4)for(B=b.return;B!==null;){var te=B.tag;if((te===3||te===4)&&(te=B.stateNode.containerInfo,te===A||te.nodeType===8&&te.parentNode===A))return;B=B.return}for(;Z!==null;){if(B=so(Z),B===null)return;if(te=B.tag,te===5||te===6){b=R=B;continue e}Z=Z.parentNode}}b=b.return}wr(function(){var fe=R,_e=qe(v),je=[];e:{var be=vs.get(s);if(be!==void 0){var Oe=xf,Le=s;switch(s){case"keypress":if(tu(v)===0)break e;case"keydown":case"keyup":Oe=xm;break;case"focusin":Le="focus",Oe=nu;break;case"focusout":Le="blur",Oe=nu;break;case"beforeblur":case"afterblur":Oe=nu;break;case"click":if(v.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Oe=wf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Oe=_f;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Oe=Nf;break;case Cm:case _i:case Mf:Oe=Mx;break;case Rf:Oe=$x;break;case"scroll":Oe=Ox;break;case"wheel":Oe=Bx;break;case"copy":case"cut":case"paste":Oe=Sf;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Oe=wm}var Be=(d&4)!==0,mn=!Be&&s==="scroll",le=Be?be!==null?be+"Capture":null:be;Be=[];for(var ae=fe,ce;ae!==null;){ce=ae;var Pe=ce.stateNode;if(ce.tag===5&&Pe!==null&&(ce=Pe,le!==null&&(Pe=zn(ae,le),Pe!=null&&Be.push(m(ae,Pe,ce)))),mn)break;ae=ae.return}0<Be.length&&(be=new Oe(be,Le,null,v,_e),je.push({event:be,listeners:Be}))}}if((d&7)===0){e:{if(be=s==="mouseover"||s==="pointerover",Oe=s==="mouseout"||s==="pointerout",be&&v!==xl&&(Le=v.relatedTarget||v.fromElement)&&(so(Le)||Le[jt]))break e;if((Oe||be)&&(be=_e.window===_e?_e:(be=_e.ownerDocument)?be.defaultView||be.parentWindow:window,Oe?(Le=v.relatedTarget||v.toElement,Oe=fe,Le=Le?so(Le):null,Le!==null&&(mn=ba(Le),Le!==mn||Le.tag!==5&&Le.tag!==6)&&(Le=null)):(Oe=null,Le=fe),Oe!==Le)){if(Be=wf,Pe="onMouseLeave",le="onMouseEnter",ae="mouse",(s==="pointerout"||s==="pointerover")&&(Be=wm,Pe="onPointerLeave",le="onPointerEnter",ae="pointer"),mn=Oe==null?be:co(Oe),ce=Le==null?be:co(Le),be=new Be(Pe,ae+"leave",Oe,v,_e),be.target=mn,be.relatedTarget=ce,Pe=null,so(_e)===fe&&(Be=new Be(le,ae+"enter",Le,v,_e),Be.target=ce,Be.relatedTarget=mn,Pe=Be),mn=Pe,Oe&&Le)t:{for(Be=Oe,le=Le,ae=0,ce=Be;ce;ce=N(ce))ae++;for(ce=0,Pe=le;Pe;Pe=N(Pe))ce++;for(;0<ae-ce;)Be=N(Be),ae--;for(;0<ce-ae;)le=N(le),ce--;for(;ae--;){if(Be===le||le!==null&&Be===le.alternate)break t;Be=N(Be),le=N(le)}Be=null}else Be=null;Oe!==null&&D(je,be,Oe,Be,!1),Le!==null&&mn!==null&&D(je,mn,Le,Be,!0)}}e:{if(be=fe?co(fe):window,Oe=be.nodeName&&be.nodeName.toLowerCase(),Oe==="select"||Oe==="input"&&be.type==="file")var ze=qx;else if(Pm(be))if(bi)ze=Tf;else{ze=hs;var Ge=cu}else(Oe=be.nodeName)&&Oe.toLowerCase()==="input"&&(be.type==="checkbox"||be.type==="radio")&&(ze=uu);if(ze&&(ze=ze(s,fe))){au(je,ze,v,_e);break e}Ge&&Ge(s,be,fe),s==="focusout"&&(Ge=be._wrapperState)&&Ge.controlled&&be.type==="number"&&ir(be,"number",be.value)}switch(Ge=fe?co(fe):window,s){case"focusin":(Pm(Ge)||Ge.contentEditable==="true")&&(ps=Ge,ms=fe,El=null);break;case"focusout":El=ms=ps=null;break;case"mousedown":fu=!0;break;case"contextmenu":case"mouseup":case"dragend":fu=!1,km(je,v,_e);break;case"selectionchange":if(du)break;case"keydown":case"keyup":km(je,v,_e)}var Ke;if(Sa)e:{switch(s){case"compositionstart":var et="onCompositionStart";break e;case"compositionend":et="onCompositionEnd";break e;case"compositionupdate":et="onCompositionUpdate";break e}et=void 0}else Zi?ds(s,v)&&(et="onCompositionEnd"):s==="keydown"&&v.keyCode===229&&(et="onCompositionStart");et&&(Sm&&v.locale!=="ko"&&(Zi||et!=="onCompositionStart"?et==="onCompositionEnd"&&Zi&&(Ke=yf()):(wa=_e,_r="value"in wa?wa.value:wa.textContent,Zi=!0)),Ge=x(fe,et),0<Ge.length&&(et=new jf(et,s,null,v,_e),je.push({event:et,listeners:Ge}),Ke?et.data=Ke:(Ke=Af(v),Ke!==null&&(et.data=Ke)))),(Ke=Ki?Fx(s,v):ja(s,v))&&(fe=x(fe,"onBeforeInput"),0<fe.length&&(_e=new jf("onBeforeInput","beforeinput",null,v,_e),je.push({event:_e,listeners:fe}),_e.data=Ke))}If(je,d)})}function m(s,d,v){return{instance:s,listener:d,currentTarget:v}}function x(s,d){for(var v=d+"Capture",b=[];s!==null;){var A=s,R=A.stateNode;A.tag===5&&R!==null&&(A=R,R=zn(s,v),R!=null&&b.unshift(m(s,R,A)),R=zn(s,d),R!=null&&b.push(m(s,R,A))),s=s.return}return b}function N(s){if(s===null)return null;do s=s.return;while(s&&s.tag!==5);return s||null}function D(s,d,v,b,A){for(var R=d._reactName,B=[];v!==null&&v!==b;){var Z=v,te=Z.alternate,fe=Z.stateNode;if(te!==null&&te===b)break;Z.tag===5&&fe!==null&&(Z=fe,A?(te=zn(v,R),te!=null&&B.unshift(m(v,te,Z))):A||(te=zn(v,R),te!=null&&B.push(m(v,te,Z)))),v=v.return}B.length!==0&&s.push({event:d,listeners:B})}var F=/\r\n?/g,X=/\u0000|\uFFFD/g;function se(s){return(typeof s=="string"?s:""+s).replace(F,`
38`).replace(X,"")}function ue(s,d,v){if(d=se(d),se(s)!==d&&v)throw Error(n(425))}function ve(){}var ke=null,Ve=null;function it(s,d){return s==="textarea"||s==="noscript"||typeof d.children=="string"||typeof d.children=="number"||typeof d.dangerouslySetInnerHTML=="object"&&d.dangerouslySetInnerHTML!==null&&d.dangerouslySetInnerHTML.__html!=null}var kn=typeof setTimeout=="function"?setTimeout:void 0,xn=typeof clearTimeout=="function"?clearTimeout:void 0,jr=typeof Promise=="function"?Promise:void 0,cr=typeof queueMicrotask=="function"?queueMicrotask:typeof jr<"u"?function(s){return jr.resolve(null).then(s).catch(bs)}:kn;function bs(s){setTimeout(function(){throw s})}function $f(s,d){var v=d,b=0;do{var A=v.nextSibling;if(s.removeChild(v),A&&A.nodeType===8)if(v=A.data,v==="/$"){if(b===0){s.removeChild(A),Xr(d);return}b--}else v!=="$"&&v!=="$?"&&v!=="$!"||b++;v=A}while(v);Xr(d)}function Ta(s){for(;s!=null;s=s.nextSibling){var d=s.nodeType;if(d===1||d===3)break;if(d===8){if(d=s.data,d==="$"||d==="$!"||d==="$?")break;if(d==="/$")return null}}return s}function Dm(s){s=s.previousSibling;for(var d=0;s;){if(s.nodeType===8){var v=s.data;if(v==="$"||v==="$!"||v==="$?"){if(d===0)return s;d--}else v==="/$"&&d++}s=s.previousSibling}return null}var oo=Math.random().toString(36).slice(2),Si="__reactFiber$"+oo,ws="__reactProps$"+oo,jt="__reactContainer$"+oo,_s="__reactEvents$"+oo,Wx="__reactListeners$"+oo,Ux="__reactHandles$"+oo;function so(s){var d=s[Si];if(d)return d;for(var v=s.parentNode;v;){if(d=v[jt]||v[Si]){if(v=d.alternate,d.child!==null||v!==null&&v.child!==null)for(s=Dm(s);s!==null;){if(v=s[Si])return v;s=Dm(s)}return d}s=v,v=s.parentNode}return null}function lo(s){return s=s[Si]||s[jt],!s||s.tag!==5&&s.tag!==6&&s.tag!==13&&s.tag!==3?null:s}function co(s){if(s.tag===5||s.tag===6)return s.stateNode;throw Error(n(33))}function pu(s){return s[ws]||null}var Hx=[],mu=-1;function Ss(s){return{current:s}}function qt(s){0>mu||(s.current=Hx[mu],Hx[mu]=null,mu--)}function Lt(s,d){mu++,Hx[mu]=s.current,s.current=d}var js={},ur=Ss(js),Er=Ss(!1),Dl=js;function gu(s,d){var v=s.type.contextTypes;if(!v)return js;var b=s.stateNode;if(b&&b.__reactInternalMemoizedUnmaskedChildContext===d)return b.__reactInternalMemoizedMaskedChildContext;var A={},R;for(R in v)A[R]=d[R];return b&&(s=s.stateNode,s.__reactInternalMemoizedUnmaskedChildContext=d,s.__reactInternalMemoizedMaskedChildContext=A),A}function Mr(s){return s=s.childContextTypes,s!=null}function Im(){qt(Er),qt(ur)}function CT(s,d,v){if(ur.current!==js)throw Error(n(168));Lt(ur,d),Lt(Er,v)}function OT(s,d,v){var b=s.stateNode;
vendor: 4,174 bytes, line 38
38if(d=d.childContextTypes,typeof b.getChildContext!="function")return v;b=b.getChildContext();for(var A in b)if(!(A in d))throw Error(n(108,$e(s)||"Unknown",A));return U({},v,b)}function Lm(s){return s=(s=s.stateNode)&&s.__reactInternalMemoizedMergedChildContext||js,Dl=ur.current,Lt(ur,s),Lt(Er,Er.current),!0}function ET(s,d,v){var b=s.stateNode;if(!b)throw Error(n(169));v?(s=OT(s,d,Dl),b.__reactInternalMemoizedMergedChildContext=s,qt(Er),qt(ur),Lt(ur,s)):qt(Er),Lt(Er,v)}var uo=null,$m=!1,Gx=!1;function MT(s){uo===null?uo=[s]:uo.push(s)}function Y8(s){$m=!0,MT(s)}function Ps(){if(!Gx&&uo!==null){Gx=!0;var s=0,d=mt;try{var v=uo;for(mt=1;s<v.length;s++){var b=v[s];do b=b(!0);while(b!==null)}uo=null,$m=!1}catch(A){throw uo!==null&&(uo=uo.slice(s+1)),dm(hf,Ps),A}finally{mt=d,Gx=!1}}return null}var vu=[],yu=0,Bm=null,Fm=0,ji=[],Pi=0,Il=null,fo=1,ho="";function Ll(s,d){vu[yu++]=Fm,vu[yu++]=Bm,Bm=s,Fm=d}function RT(s,d,v){ji[Pi++]=fo,ji[Pi++]=ho,ji[Pi++]=Il,Il=s;var b=fo;s=ho;var A=32-nt(b)-1;b&=~(1<<A),v+=1;var R=32-nt(d)+A;if(30<R){var B=A-A%5;R=(b&(1<<B)-1).toString(32),b>>=B,A-=B,fo=1<<32-nt(d)+A|v<<A|b,ho=R+s}else fo=1<<R|v<<A|b,ho=s}function Kx(s){s.return!==null&&(Ll(s,1),RT(s,1,0))}function Zx(s){for(;s===Bm;)Bm=vu[--yu],vu[yu]=null,Fm=vu[--yu],vu[yu]=null;for(;s===Il;)Il=ji[--Pi],ji[Pi]=null,ho=ji[--Pi],ji[Pi]=null,fo=ji[--Pi],ji[Pi]=null}var ni=null,ri=null,Kt=!1,Xi=null;function DT(s,d){var v=ki(5,null,null,0);v.elementType="DELETED",v.stateNode=d,v.return=s,d=s.deletions,d===null?(s.deletions=[v],s.flags|=16):d.push(v)}function IT(s,d){switch(s.tag){case 5:var v=s.type;return d=d.nodeType!==1||v.toLowerCase()!==d.nodeName.toLowerCase()?null:d,d!==null?(s.stateNode=d,ni=s,ri=Ta(d.firstChild),!0):!1;case 6:return d=s.pendingProps===""||d.nodeType!==3?null:d,d!==null?(s.stateNode=d,ni=s,ri=null,!0):!1;case 13:return d=d.nodeType!==8?null:d,d!==null?(v=Il!==null?{id:fo,overflow:ho}:null,s.memoizedState={dehydrated:d,treeContext:v,retryLane:1073741824},v=ki(18,null,null,0),v.stateNode=d,v.return=s,s.child=v,ni=s,ri=null,!0):!1;default:return!1}}function Yx(s){return(s.mode&1)!==0&&(s.flags&128)===0}function Xx(s){if(Kt){var d=ri;if(d){var v=d;if(!IT(s,d)){if(Yx(s))throw Error(n(418));d=Ta(v.nextSibling);var b=ni;d&&IT(s,d)?DT(b,v):(s.flags=s.flags&-4097|2,Kt=!1,ni=s)}}else{if(Yx(s))throw Error(n(418));s.flags=s.flags&-4097|2,Kt=!1,ni=s}}}function LT(s){for(s=s.return;s!==null&&s.tag!==5&&s.tag!==3&&s.tag!==13;)s=s.return;ni=s}function zm(s){if(s!==ni)return!1;if(!Kt)return LT(s),Kt=!0,!1;var d;if((d=s.tag!==3)&&!(d=s.tag!==5)&&(d=s.type,d=d!=="head"&&d!=="body"&&!it(s.type,s.memoizedProps)),d&&(d=ri)){if(Yx(s))throw $T(),Error(n(418));for(;d;)DT(s,d),d=Ta(d.nextSibling)}if(LT(s),s.tag===13){if(s=s.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(n(317));e:{for(s=s.nextSibling,d=0;s;){if(s.nodeType===8){var v=s.data;if(v==="/$"){if(d===0){ri=Ta(s.nextSibling);break e}d--}else v!=="$"&&v!=="$!"&&v!=="$?"||d++}s=s.nextSibling}ri=null}}else ri=ni?Ta(s.stateNode.nextSibling):null;return!0}function $T(){for(var s=ri;s;)s=Ta(s.nextSibling)}function xu(){ri=ni=null,Kt=!1}function Qx(s){Xi===null?Xi=[s]:Xi.push(s)}var X8=E.ReactCurrentBatchConfig;function Bf(s,d,v){if(s=v.ref,s!==null&&typeof s!="function"&&typeof s!="object"){if(v._owner){if(v=v._owner,v){if(v.tag!==1)throw Error(n(309));var b=v.stateNode}if(!b)throw Error(n(147,s));var A=b,R=""+s;return d!==null&&d.ref!==null&&typeof d.ref=="function"&&d.ref._stringRef===R?d.ref:(d=function(B){var Z=A.refs;B===null?delete Z[R]:Z[R]=B},d._stringRef=R,d)}if(typeof s!="string")throw Error(n(284));if(!v._owner)throw Error(n(290,s))}return s}function qm(s,d){throw s=Object.prototype.toString.call(d),Error(n(31,s==="[object Object]"?"object with keys {"+Object.keys(d).join(", ")+"}":s))}function BT(s){var d=s._init;return d(s._payload)}function FT(s){function d(le,ae){if(s){var ce=le.deletions;ce===null?(le.deletions=[ae],le.flags|=16):ce.push(ae)}}function v(le,ae){if(!s)return null;for(;ae!==null;)d(le,ae),ae=ae.sibling;return null}function b(le,ae){for(le=new Map;ae!==null;)ae.key!==null?le.set(ae.key,ae):le.set(ae.index,ae),ae=ae.sibling;return le}
vendor: 81,189 bytes, lines 38-40
38function A(le,ae){return le=Ms(le,ae),le.index=0,le.sibling=null,le}function R(le,ae,ce){return le.index=ce,s?(ce=le.alternate,ce!==null?(ce=ce.index,ce<ae?(le.flags|=2,ae):ce):(le.flags|=2,ae)):(le.flags|=1048576,ae)}function B(le){return s&&le.alternate===null&&(le.flags|=2),le}function Z(le,ae,ce,Pe){return ae===null||ae.tag!==6?(ae=V0(ce,le.mode,Pe),ae.return=le,ae):(ae=A(ae,ce),ae.return=le,ae)}function te(le,ae,ce,Pe){var ze=ce.type;return ze===I?_e(le,ae,ce.props.children,Pe,ce.key):ae!==null&&(ae.elementType===ze||typeof ze=="object"&&ze!==null&&ze.$$typeof===ie&&BT(ze)===ae.type)?(Pe=A(ae,ce.props),Pe.ref=Bf(le,ae,ce),Pe.return=le,Pe):(Pe=fg(ce.type,ce.key,ce.props,null,le.mode,Pe),Pe.ref=Bf(le,ae,ce),Pe.return=le,Pe)}function fe(le,ae,ce,Pe){return ae===null||ae.tag!==4||ae.stateNode.containerInfo!==ce.containerInfo||ae.stateNode.implementation!==ce.implementation?(ae=W0(ce,le.mode,Pe),ae.return=le,ae):(ae=A(ae,ce.children||[]),ae.return=le,ae)}function _e(le,ae,ce,Pe,ze){return ae===null||ae.tag!==7?(ae=Ul(ce,le.mode,Pe,ze),ae.return=le,ae):(ae=A(ae,ce),ae.return=le,ae)}function je(le,ae,ce){if(typeof ae=="string"&&ae!==""||typeof ae=="number")return ae=V0(""+ae,le.mode,ce),ae.return=le,ae;if(typeof ae=="object"&&ae!==null){switch(ae.$$typeof){case T:return ce=fg(ae.type,ae.key,ae.props,null,le.mode,ce),ce.ref=Bf(le,null,ae),ce.return=le,ce;case M:return ae=W0(ae,le.mode,ce),ae.return=le,ae;case ie:var Pe=ae._init;return je(le,Pe(ae._payload),ce)}if(sn(ae)||oe(ae))return ae=Ul(ae,le.mode,ce,null),ae.return=le,ae;qm(le,ae)}return null}function be(le,ae,ce,Pe){var ze=ae!==null?ae.key:null;if(typeof ce=="string"&&ce!==""||typeof ce=="number")return ze!==null?null:Z(le,ae,""+ce,Pe);if(typeof ce=="object"&&ce!==null){switch(ce.$$typeof){case T:return ce.key===ze?te(le,ae,ce,Pe):null;case M:return ce.key===ze?fe(le,ae,ce,Pe):null;case ie:return ze=ce._init,be(le,ae,ze(ce._payload),Pe)}if(sn(ce)||oe(ce))return ze!==null?null:_e(le,ae,ce,Pe,null);qm(le,ce)}return null}function Oe(le,ae,ce,Pe,ze){if(typeof Pe=="string"&&Pe!==""||typeof Pe=="number")return le=le.get(ce)||null,Z(ae,le,""+Pe,ze);if(typeof Pe=="object"&&Pe!==null){switch(Pe.$$typeof){case T:return le=le.get(Pe.key===null?ce:Pe.key)||null,te(ae,le,Pe,ze);case M:return le=le.get(Pe.key===null?ce:Pe.key)||null,fe(ae,le,Pe,ze);case ie:var Ge=Pe._init;return Oe(le,ae,ce,Ge(Pe._payload),ze)}if(sn(Pe)||oe(Pe))return le=le.get(ce)||null,_e(ae,le,Pe,ze,null);qm(ae,Pe)}return null}function Le(le,ae,ce,Pe){for(var ze=null,Ge=null,Ke=ae,et=ae=0,Wn=null;Ke!==null&&et<ce.length;et++){Ke.index>et?(Wn=Ke,Ke=null):Wn=Ke.sibling;var _t=be(le,Ke,ce[et],Pe);if(_t===null){Ke===null&&(Ke=Wn);break}s&&Ke&&_t.alternate===null&&d(le,Ke),ae=R(_t,ae,et),Ge===null?ze=_t:Ge.sibling=_t,Ge=_t,Ke=Wn}if(et===ce.length)return v(le,Ke),Kt&&Ll(le,et),ze;if(Ke===null){for(;et<ce.length;et++)Ke=je(le,ce[et],Pe),Ke!==null&&(ae=R(Ke,ae,et),Ge===null?ze=Ke:Ge.sibling=Ke,Ge=Ke);return Kt&&Ll(le,et),ze}for(Ke=b(le,Ke);et<ce.length;et++)Wn=Oe(Ke,le,et,ce[et],Pe),Wn!==null&&(s&&Wn.alternate!==null&&Ke.delete(Wn.key===null?et:Wn.key),ae=R(Wn,ae,et),Ge===null?ze=Wn:Ge.sibling=Wn,Ge=Wn);return s&&Ke.forEach(function(Rs){return d(le,Rs)}),Kt&&Ll(le,et),ze}function Be(le,ae,ce,Pe){var ze=oe(ce);if(typeof ze!="function")throw Error(n(150));if(ce=ze.call(ce),ce==null)throw Error(n(151));for(var Ge=ze=null,Ke=ae,et=ae=0,Wn=null,_t=ce.next();Ke!==null&&!_t.done;et++,_t=ce.next()){Ke.index>et?(Wn=Ke,Ke=null):Wn=Ke.sibling;var Rs=be(le,Ke,_t.value,Pe);if(Rs===null){Ke===null&&(Ke=Wn);break}s&&Ke&&Rs.alternate===null&&d(le,Ke),ae=R(Rs,ae,et),Ge===null?ze=Rs:Ge.sibling=Rs,Ge=Rs,Ke=Wn}if(_t.done)return v(le,Ke),Kt&&Ll(le,et),ze;if(Ke===null){for(;!_t.done;et++,_t=ce.next())_t=je(le,_t.value,Pe),_t!==null&&(ae=R(_t,ae,et),Ge===null?ze=_t:Ge.sibling=_t,Ge=_t);return Kt&&Ll(le,et),ze}for(Ke=b(le,Ke);!_t.done;et++,_t=ce.next())_t=Oe(Ke,le,et,_t.value,Pe),_t!==null&&(s&&_t.alternate!==null&&Ke.delete(_t.key===null?et:_t.key),ae=R(_t,ae,et),Ge===null?ze=_t:Ge.sibling=_t,Ge=_t);return s&&Ke.forEach(function(Cq){return d(le,Cq)}),Kt&&Ll(le,et),ze}function mn(le,ae,ce,Pe){if(typeof ce=="object"&&ce!==null&&ce.type===I&&ce.key===null&&(ce=ce.props.children),typeof ce=="object"&&ce!==null){switch(ce.$$typeof){case T:e:{for(var ze=ce.key,Ge=ae;Ge!==null;){if(Ge.key===ze){if(ze=ce.type,ze===I){if(Ge.tag===7){v(le,Ge.sibling),ae=A(Ge,ce.props.children),ae.return=le,le=ae;break e}}else if(Ge.elementType===ze||typeof ze=="object"&&ze!==null&&ze.$$typeof===ie&&BT(ze)===Ge.type){v(le,Ge.sibling),ae=A(Ge,ce.props),ae.ref=Bf(le,Ge,ce),ae.return=le,le=ae;break e}v(le,Ge);break}else d(le,Ge);Ge=Ge.sibling}ce.type===I?(ae=Ul(ce.props.children,le.mode,Pe,ce.key),ae.return=le,le=ae):(Pe=fg(ce.type,ce.key,ce.props,null,le.mode,Pe),Pe.ref=Bf(le,ae,ce),Pe.return=le,le=Pe)}return B(le);case M:e:{for(Ge=ce.key;ae!==null;){if(ae.key===Ge)if(ae.tag===4&&ae.stateNode.containerInfo===ce.containerInfo&&ae.stateNode.implementation===ce.implementation){v(le,ae.sibling),ae=A(ae,ce.children||[]),ae.return=le,le=ae;break e}else{v(le,ae);break}else d(le,ae);ae=ae.sibling}ae=W0(ce,le.mode,Pe),ae.return=le,le=ae}return B(le);case ie:return Ge=ce._init,mn(le,ae,Ge(ce._payload),Pe)}if(sn(ce))return Le(le,ae,ce,Pe);if(oe(ce))return Be(le,ae,ce,Pe);qm(le,ce)}return typeof ce=="string"&&ce!==""||typeof ce=="number"?(ce=""+ce,ae!==null&&ae.tag===6?(v(le,ae.sibling),ae=A(ae,ce),ae.return=le,le=ae):(v(le,ae),ae=V0(ce,le.mode,Pe),ae.return=le,le=ae),B(le)):v(le,ae)}return mn}var bu=FT(!0),zT=FT(!1),Vm=Ss(null),Wm=null,wu=null,Jx=null;function e0(){Jx=wu=Wm=null}function t0(s){var d=Vm.current;qt(Vm),s._currentValue=d}function n0(s,d,v){for(;s!==null;){var b=s.alternate;if((s.childLanes&d)!==d?(s.childLanes|=d,b!==null&&(b.childLanes|=d)):b!==null&&(b.childLanes&d)!==d&&(b.childLanes|=d),s===v)break;s=s.return}}function _u(s,d){Wm=s,Jx=wu=null,s=s.dependencies,s!==null&&s.firstContext!==null&&((s.lanes&d)!==0&&(Rr=!0),s.firstContext=null)}function Ni(s){var d=s._currentValue;if(Jx!==s)if(s={context:s,memoizedValue:d,next:null},wu===null){if(Wm===null)throw Error(n(308));wu=s,Wm.dependencies={lanes:0,firstContext:s}}else wu=wu.next=s;return d}var $l=null;function r0(s){$l===null?$l=[s]:$l.push(s)}function qT(s,d,v,b){var A=d.interleaved;return A===null?(v.next=v,r0(d)):(v.next=A.next,A.next=v),d.interleaved=v,po(s,b)}function po(s,d){s.lanes|=d;var v=s.alternate;for(v!==null&&(v.lanes|=d),v=s,s=s.return;s!==null;)s.childLanes|=d,v=s.alternate,v!==null&&(v.childLanes|=d),v=s,s=s.return;return v.tag===3?v.stateNode:null}var Ns=!1;function i0(s){s.updateQueue={baseState:s.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function VT(s,d){s=s.updateQueue,d.updateQueue===s&&(d.updateQueue={baseState:s.baseState,firstBaseUpdate:s.firstBaseUpdate,lastBaseUpdate:s.lastBaseUpdate,shared:s.shared,effects:s.effects})}function mo(s,d){return{eventTime:s,lane:d,tag:0,payload:null,callback:null,next:null}}function As(s,d,v){var b=s.updateQueue;if(b===null)return null;if(b=b.shared,(wt&2)!==0){var A=b.pending;return A===null?d.next=d:(d.next=A.next,A.next=d),b.pending=d,po(s,v)}return A=b.interleaved,A===null?(d.next=d,r0(b)):(d.next=A.next,A.next=d),b.interleaved=d,po(s,v)}function Um(s,d,v){if(d=d.updateQueue,d!==null&&(d=d.shared,(v&4194240)!==0)){var b=d.lanes;b&=s.pendingLanes,v|=b,d.lanes=v,Hi(s,v)}}function WT(s,d){var v=s.updateQueue,b=s.alternate;if(b!==null&&(b=b.updateQueue,v===b)){var A=null,R=null;if(v=v.firstBaseUpdate,v!==null){do{var B={eventTime:v.eventTime,lane:v.lane,tag:v.tag,payload:v.payload,callback:v.callback,next:null};R===null?A=R=B:R=R.next=B,v=v.next}while(v!==null);R===null?A=R=d:R=R.next=d}else A=R=d;v={baseState:b.baseState,firstBaseUpdate:A,lastBaseUpdate:R,shared:b.shared,effects:b.effects},s.updateQueue=v;return}s=v.lastBaseUpdate,s===null?v.firstBaseUpdate=d:s.next=d,v.lastBaseUpdate=d}function Hm(s,d,v,b){var A=s.updateQueue;Ns=!1;var R=A.firstBaseUpdate,B=A.lastBaseUpdate,Z=A.shared.pending;if(Z!==null){A.shared.pending=null;var te=Z,fe=te.next;te.next=null,B===null?R=fe:B.next=fe,B=te;var _e=s.alternate;_e!==null&&(_e=_e.updateQueue,Z=_e.lastBaseUpdate,Z!==B&&(Z===null?_e.firstBaseUpdate=fe:Z.next=fe,_e.lastBaseUpdate=te))}if(R!==null){var je=A.baseState;B=0,_e=fe=te=null,Z=R;do{var be=Z.lane,Oe=Z.eventTime;if((b&be)===be){_e!==null&&(_e=_e.next={eventTime:Oe,lane:0,tag:Z.tag,payload:Z.payload,callback:Z.callback,next:null});e:{var Le=s,Be=Z;switch(be=d,Oe=v,Be.tag){case 1:if(Le=Be.payload,typeof Le=="function"){je=Le.call(Oe,je,be);break e}je=Le;break e;case 3:Le.flags=Le.flags&-65537|128;case 0:if(Le=Be.payload,be=typeof Le=="function"?Le.call(Oe,je,be):Le,be==null)break e;je=U({},je,be);break e;case 2:Ns=!0}}Z.callback!==null&&Z.lane!==0&&(s.flags|=64,be=A.effects,be===null?A.effects=[Z]:be.push(Z))}else Oe={eventTime:Oe,lane:be,tag:Z.tag,payload:Z.payload,callback:Z.callback,next:null},_e===null?(fe=_e=Oe,te=je):_e=_e.next=Oe,B|=be;if(Z=Z.next,Z===null){if(Z=A.shared.pending,Z===null)break;be=Z,Z=be.next,be.next=null,A.lastBaseUpdate=be,A.shared.pending=null}}while(!0);if(_e===null&&(te=je),A.baseState=te,A.firstBaseUpdate=fe,A.lastBaseUpdate=_e,d=A.shared.interleaved,d!==null){A=d;do B|=A.lane,A=A.next;while(A!==d)}else R===null&&(A.shared.lanes=0);zl|=B,s.lanes=B,s.memoizedState=je}}function UT(s,d,v){if(s=d.effects,d.effects=null,s!==null)for(d=0;d<s.length;d++){var b=s[d],A=b.callback;if(A!==null){if(b.callback=null,b=v,typeof A!="function")throw Error(n(191,A));A.call(b)}}}var Ff={},ka=Ss(Ff),zf=Ss(Ff),qf=Ss(Ff);function Bl(s){if(s===Ff)throw Error(n(174));return s}function a0(s,d){switch(Lt(qf,d),Lt(zf,s),Lt(ka,Ff),s=d.nodeType,s){case 9:case 11:d=(d=d.documentElement)?d.namespaceURI:Jo(null,"");break;default:s=s===8?d.parentNode:d,d=s.namespaceURI||null,s=s.tagName,d=Jo(d,s)}qt(ka),Lt(ka,d)}function Su(){qt(ka),qt(zf),qt(qf)}function HT(s){Bl(qf.current);var d=Bl(ka.current),v=Jo(d,s.type);d!==v&&(Lt(zf,s),Lt(ka,v))}function o0(s){zf.current===s&&(qt(ka),qt(zf))}var en=Ss(0);function Gm(s){for(var d=s;d!==null;){if(d.tag===13){var v=d.memoizedState;if(v!==null&&(v=v.dehydrated,v===null||v.data==="$?"||v.data==="$!"))return d}else if(d.tag===19&&d.memoizedProps.revealOrder!==void 0){if((d.flags&128)!==0)return d}else if(d.child!==null){d.child.return=d,d=d.child;continue}if(d===s)break;for(;d.sibling===null;){if(d.return===null||d.return===s)return null;d=d.return}d.sibling.return=d.return,d=d.sibling}return null}var s0=[];function l0(){for(var s=0;s<s0.length;s++)s0[s]._workInProgressVersionPrimary=null;s0.length=0}var Km=E.ReactCurrentDispatcher,c0=E.ReactCurrentBatchConfig,Fl=0,tn=null,Cn=null,qn=null,Zm=!1,Vf=!1,Wf=0,Q8=0;function dr(){throw Error(n(321))}function u0(s,d){if(d===null)return!1;for(var v=0;v<d.length&&v<s.length;v++)if(!ei(s[v],d[v]))return!1;return!0}function d0(s,d,v,b,A,R){if(Fl=R,tn=d,d.memoizedState=null,d.updateQueue=null,d.lanes=0,Km.current=s===null||s.memoizedState===null?nq:rq,s=v(b,A),Vf){R=0;do{if(Vf=!1,Wf=0,25<=R)throw Error(n(301));R+=1,qn=Cn=null,d.updateQueue=null,Km.current=iq,s=v(b,A)}while(Vf)}if(Km.current=Qm,d=Cn!==null&&Cn.next!==null,Fl=0,qn=Cn=tn=null,Zm=!1,d)throw Error(n(300));return s}function f0(){var s=Wf!==0;return Wf=0,s}function Ca(){var s={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return qn===null?tn.memoizedState=qn=s:qn=qn.next=s,qn}function Ai(){if(Cn===null){var s=tn.alternate;s=s!==null?s.memoizedState:null}else s=Cn.next;var d=qn===null?tn.memoizedState:qn.next;if(d!==null)qn=d,Cn=s;else{if(s===null)throw Error(n(310));Cn=s,s={memoizedState:Cn.memoizedState,baseState:Cn.baseState,baseQueue:Cn.baseQueue,queue:Cn.queue,next:null},qn===null?tn.memoizedState=qn=s:qn=qn.next=s}return qn}function Uf(s,d){return typeof d=="function"?d(s):d}function h0(s){var d=Ai(),v=d.queue;if(v===null)throw Error(n(311));v.lastRenderedReducer=s;var b=Cn,A=b.baseQueue,R=v.pending;if(R!==null){if(A!==null){var B=A.next;A.next=R.next,R.next=B}b.baseQueue=A=R,v.pending=null}if(A!==null){R=A.next,b=b.baseState;var Z=B=null,te=null,fe=R;do{var _e=fe.lane;if((Fl&_e)===_e)te!==null&&(te=te.next={lane:0,action:fe.action,hasEagerState:fe.hasEagerState,eagerState:fe.eagerState,next:null}),b=fe.hasEagerState?fe.eagerState:s(b,fe.action);else{var je={lane:_e,action:fe.action,hasEagerState:fe.hasEagerState,eagerState:fe.eagerState,next:null};te===null?(Z=te=je,B=b):te=te.next=je,tn.lanes|=_e,zl|=_e}fe=fe.next}while(fe!==null&&fe!==R);te===null?B=b:te.next=Z,ei(b,d.memoizedState)||(Rr=!0),d.memoizedState=b,d.baseState=B,d.baseQueue=te,v.lastRenderedState=b}if(s=v.interleaved,s!==null){A=s;do R=A.lane,tn.lanes|=R,zl|=R,A=A.next;while(A!==s)}else A===null&&(v.lanes=0);return[d.memoizedState,v.dispatch]}function p0(s){var d=Ai(),v=d.queue;if(v===null)throw Error(n(311));v.lastRenderedReducer=s;var b=v.dispatch,A=v.pending,R=d.memoizedState;if(A!==null){v.pending=null;var B=A=A.next;do R=s(R,B.action),B=B.next;while(B!==A);ei(R,d.memoizedState)||(Rr=!0),d.memoizedState=R,d.baseQueue===null&&(d.baseState=R),v.lastRenderedState=R}return[R,b]}function GT(){}function KT(s,d){var v=tn,b=Ai(),A=d(),R=!ei(b.memoizedState,A);if(R&&(b.memoizedState=A,Rr=!0),b=b.queue,m0(XT.bind(null,v,b,s),[s]),b.getSnapshot!==d||R||qn!==null&&qn.memoizedState.tag&1){if(v.flags|=2048,Hf(9,YT.bind(null,v,b,A,d),void 0,null),Vn===null)throw Error(n(349));(Fl&30)!==0||ZT(v,d,A)}return A}function ZT(s,d,v){s.flags|=16384,s={getSnapshot:d,value:v},d=tn.updateQueue,d===null?(d={lastEffect:null,stores:null},tn.updateQueue=d,d.stores=[s]):(v=d.stores,v===null?d.stores=[s]:v.push(s))}function YT(s,d,v,b){d.value=v,d.getSnapshot=b,QT(d)&&JT(s)}function XT(s,d,v){return v(function(){QT(d)&&JT(s)})}function QT(s){var d=s.getSnapshot;s=s.value;try{var v=d();return!ei(s,v)}catch{return!0}}function JT(s){var d=po(s,1);d!==null&&ta(d,s,1,-1)}function ek(s){var d=Ca();return typeof s=="function"&&(s=s()),d.memoizedState=d.baseState=s,s={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Uf,lastRenderedState:s},d.queue=s,s=s.dispatch=tq.bind(null,tn,s),[d.memoizedState,s]}function Hf(s,d,v,b){return s={tag:s,create:d,destroy:v,deps:b,next:null},d=tn.updateQueue,d===null?(d={lastEffect:null,stores:null},tn.updateQueue=d,d.lastEffect=s.next=s):(v=d.lastEffect,v===null?d.lastEffect=s.next=s:(b=v.next,v.next=s,s.next=b,d.lastEffect=s)),s}function tk(){return Ai().memoizedState}function Ym(s,d,v,b){var A=Ca();tn.flags|=s,A.memoizedState=Hf(1|d,v,void 0,b===void 0?null:b)}function Xm(s,d,v,b){var A=Ai();b=b===void 0?null:b;var R=void 0;if(Cn!==null){var B=Cn.memoizedState;if(R=B.destroy,b!==null&&u0(b,B.deps)){A.memoizedState=Hf(d,v,R,b);return}}tn.flags|=s,A.memoizedState=Hf(1|d,v,R,b)}function nk(s,d){return Ym(8390656,8,s,d)}function m0(s,d){return Xm(2048,8,s,d)}function rk(s,d){return Xm(4,2,s,d)}function ik(s,d){return Xm(4,4,s,d)}function ak(s,d){if(typeof d=="function")return s=s(),d(s),function(){d(null)};if(d!=null)return s=s(),d.current=s,function(){d.current=null}}function ok(s,d,v){return v=v!=null?v.concat([s]):null,Xm(4,4,ak.bind(null,d,s),v)}function g0(){}function sk(s,d){var v=Ai();d=d===void 0?null:d;var b=v.memoizedState;return b!==null&&d!==null&&u0(d,b[1])?b[0]:(v.memoizedState=[s,d],s)}function lk(s,d){var v=Ai();d=d===void 0?null:d;var b=v.memoizedState;return b!==null&&d!==null&&u0(d,b[1])?b[0]:(s=s(),v.memoizedState=[s,d],s)}function ck(s,d,v){return(Fl&21)===0?(s.baseState&&(s.baseState=!1,Rr=!0),s.memoizedState=v):(ei(v,d)||(v=hm(),tn.lanes|=v,zl|=v,s.baseState=!0),d)}function J8(s,d){var v=mt;mt=v!==0&&4>v?v:4,s(!0);var b=c0.transition;c0.transition={};try{s(!1),d()}finally{mt=v,c0.transition=b}}function uk(){return Ai().memoizedState}function eq(s,d,v){var b=Os(s);if(v={lane:b,action:v,hasEagerState:!1,eagerState:null,next:null},dk(s))fk(d,v);else if(v=qT(s,d,v,b),v!==null){var A=Nr();ta(v,s,b,A),hk(v,d,b)}}function tq(s,d,v){var b=Os(s),A={lane:b,action:v,hasEagerState:!1,eagerState:null,next:null};if(dk(s))fk(d,A);else{var R=s.alternate;if(s.lanes===0&&(R===null||R.lanes===0)&&(R=d.lastRenderedReducer,R!==null))try{var B=d.lastRenderedState,Z=R(B,v);if(A.hasEagerState=!0,A.eagerState=Z,ei(Z,B)){var te=d.interleaved;te===null?(A.next=A,r0(d)):(A.next=te.next,te.next=A),d.interleaved=A;return}}catch{}finally{}v=qT(s,d,A,b),v!==null&&(A=Nr(),ta(v,s,b,A),hk(v,d,b))}}function dk(s){var d=s.alternate;return s===tn||d!==null&&d===tn}function fk(s,d){Vf=Zm=!0;var v=s.pending;v===null?d.next=d:(d.next=v.next,v.next=d),s.pending=d}function hk(s,d,v){if((v&4194240)!==0){var b=d.lanes;b&=s.pendingLanes,v|=b,d.lanes=v,Hi(s,v)}}var Qm={readContext:Ni,useCallback:dr,useContext:dr,useEffect:dr,useImperativeHandle:dr,useInsertionEffect:dr,useLayoutEffect:dr,useMemo:dr,useReducer:dr,useRef:dr,useState:dr,useDebugValue:dr,useDeferredValue:dr,useTransition:dr,useMutableSource:dr,useSyncExternalStore:dr,useId:dr,unstable_isNewReconciler:!1},nq={readContext:Ni,useCallback:function(s,d){return Ca().memoizedState=[s,d===void 0?null:d],s},useContext:Ni,useEffect:nk,useImperativeHandle:function(s,d,v){return v=v!=null?v.concat([s]):null,Ym(4194308,4,ak.bind(null,d,s),v)},useLayoutEffect:function(s,d){return Ym(4194308,4,s,d)},useInsertionEffect:function(s,d){return Ym(4,2,s,d)},useMemo:function(s,d){var v=Ca();return d=d===void 0?null:d,s=s(),v.memoizedState=[s,d],s},useReducer:function(s,d,v){var b=Ca();return d=v!==void 0?v(d):d,b.memoizedState=b.baseState=d,s={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:s,lastRenderedState:d},b.queue=s,s=s.dispatch=eq.bind(null,tn,s),[b.memoizedState,s]},useRef:function(s){var d=Ca();return s={current:s},d.memoizedState=s},useState:ek,useDebugValue:g0,useDeferredValue:function(s){return Ca().memoizedState=s},useTransition:function(){var s=ek(!1),d=s[0];return s=J8.bind(null,s[1]),Ca().memoizedState=s,[d,s]},useMutableSource:function(){},useSyncExternalStore:function(s,d,v){var b=tn,A=Ca();if(Kt){if(v===void 0)throw Error(n(407));v=v()}else{if(v=d(),Vn===null)throw Error(n(349));(Fl&30)!==0||ZT(b,d,v)}A.memoizedState=v;var R={value:v,getSnapshot:d};return A.queue=R,nk(XT.bind(null,b,R,s),[s]),b.flags|=2048,Hf(9,YT.bind(null,b,R,v,d),void 0,null),v},useId:function(){var s=Ca(),d=Vn.identifierPrefix;if(Kt){var v=ho,b=fo;v=(b&~(1<<32-nt(b)-1)).toString(32)+v,d=":"+d+"R"+v,v=Wf++,0<v&&(d+="H"+v.toString(32)),d+=":"}else v=Q8++,d=":"+d+"r"+v.toString(32)+":";return s.memoizedState=d},unstable_isNewReconciler:!1},rq={readContext:Ni,useCallback:sk,useContext:Ni,useEffect:m0,useImperativeHandle:ok,useInsertionEffect:rk,useLayoutEffect:ik,useMemo:lk,useReducer:h0,useRef:tk,useState:function(){return h0(Uf)},useDebugValue:g0,useDeferredValue:function(s){var d=Ai();return ck(d,Cn.memoizedState,s)},useTransition:function(){var s=h0(Uf)[0],d=Ai().memoizedState;return[s,d]},useMutableSource:GT,useSyncExternalStore:KT,useId:uk,unstable_isNewReconciler:!1},iq={readContext:Ni,useCallback:sk,useContext:Ni,useEffect:m0,useImperativeHandle:ok,useInsertionEffect:rk,useLayoutEffect:ik,useMemo:lk,useReducer:p0,useRef:tk,useState:function(){return p0(Uf)},useDebugValue:g0,useDeferredValue:function(s){var d=Ai();return Cn===null?d.memoizedState=s:ck(d,Cn.memoizedState,s)},useTransition:function(){var s=p0(Uf)[0],d=Ai().memoizedState;return[s,d]},useMutableSource:GT,useSyncExternalStore:KT,useId:uk,unstable_isNewReconciler:!1};function Qi(s,d){if(s&&s.defaultProps){d=U({},d),s=s.defaultProps;for(var v in s)d[v]===void 0&&(d[v]=s[v]);return d}return d}function v0(s,d,v,b){d=s.memoizedState,v=v(b,d),v=v==null?d:U({},d,v),s.memoizedState=v,s.lanes===0&&(s.updateQueue.baseState=v)}var Jm={isMounted:function(s){return(s=s._reactInternals)?ba(s)===s:!1},enqueueSetState:function(s,d,v){s=s._reactInternals;var b=Nr(),A=Os(s),R=mo(b,A);R.payload=d,v!=null&&(R.callback=v),d=As(s,R,A),d!==null&&(ta(d,s,A,b),Um(d,s,A))},enqueueReplaceState:function(s,d,v){s=s._reactInternals;var b=Nr(),A=Os(s),R=mo(b,A);R.tag=1,R.payload=d,v!=null&&(R.callback=v),d=As(s,R,A),d!==null&&(ta(d,s,A,b),Um(d,s,A))},enqueueForceUpdate:function(s,d){s=s._reactInternals;var v=Nr(),b=Os(s),A=mo(v,b);A.tag=2,d!=null&&(A.callback=d),d=As(s,A,b),d!==null&&(ta(d,s,b,v),Um(d,s,b))}};function pk(s,d,v,b,A,R,B){return s=s.stateNode,typeof s.shouldComponentUpdate=="function"?s.shouldComponentUpdate(b,R,B):d.prototype&&d.prototype.isPureReactComponent?!Pa(v,b)||!Pa(A,R):!0}function mk(s,d,v){var b=!1,A=js,R=d.contextType;return typeof R=="object"&&R!==null?R=Ni(R):(A=Mr(d)?Dl:ur.current,b=d.contextTypes,R=(b=b!=null)?gu(s,A):js),d=new d(v,R),s.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,d.updater=Jm,s.stateNode=d,d._reactInternals=s,b&&(s=s.stateNode,s.__reactInternalMemoizedUnmaskedChildContext=A,s.__reactInternalMemoizedMaskedChildContext=R),d}function gk(s,d,v,b){s=d.state,typeof d.componentWillReceiveProps=="function"&&d.componentWillReceiveProps(v,b),typeof d.UNSAFE_componentWillReceiveProps=="function"&&d.UNSAFE_componentWillReceiveProps(v,b),d.state!==s&&Jm.enqueueReplaceState(d,d.state,null)}function y0(s,d,v,b){var A=s.stateNode;A.props=v,A.state=s.memoizedState,A.refs={},i0(s);var R=d.contextType;typeof R=="object"&&R!==null?A.context=Ni(R):(R=Mr(d)?Dl:ur.current,A.context=gu(s,R)),A.state=s.memoizedState,R=d.getDerivedStateFromProps,typeof R=="function"&&(v0(s,d,R,v),A.state=s.memoizedState),typeof d.getDerivedStateFromProps=="function"||typeof A.getSnapshotBeforeUpdate=="function"||typeof A.UNSAFE_componentWillMount!="function"&&typeof A.componentWillMount!="function"||(d=A.state,typeof A.componentWillMount=="function"&&A.componentWillMount(),typeof A.UNSAFE_componentWillMount=="function"&&A.UNSAFE_componentWillMount(),d!==A.state&&Jm.enqueueReplaceState(A,A.state,null),Hm(s,v,A,b),A.state=s.memoizedState),typeof A.componentDidMount=="function"&&(s.flags|=4194308)}function ju(s,d){try{var v="",b=d;do v+=ge(b),b=b.return;while(b);var A=v}catch(R){A=`
39Error generating stack: `+R.message+`
40`+R.stack}return{value:s,source:d,stack:A,digest:null}}function x0(s,d,v){return{value:s,source:null,stack:v??null,digest:d??null}}function b0(s,d){try{console.error(d.value)}catch(v){setTimeout(function(){throw v})}}var aq=typeof WeakMap=="function"?WeakMap:Map;function vk(s,d,v){v=mo(-1,v),v.tag=3,v.payload={element:null};var b=d.value;return v.callback=function(){og||(og=!0,D0=b),b0(s,d)},v}function yk(s,d,v){v=mo(-1,v),v.tag=3;var b=s.type.getDerivedStateFromError;if(typeof b=="function"){var A=d.value;v.payload=function(){return b(A)},v.callback=function(){b0(s,d)}}var R=s.stateNode;return R!==null&&typeof R.componentDidCatch=="function"&&(v.callback=function(){b0(s,d),typeof b!="function"&&(ks===null?ks=new Set([this]):ks.add(this));var B=d.stack;this.componentDidCatch(d.value,{componentStack:B!==null?B:""})}),v}function xk(s,d,v){var b=s.pingCache;if(b===null){b=s.pingCache=new aq;var A=new Set;b.set(d,A)}else A=b.get(d),A===void 0&&(A=new Set,b.set(d,A));A.has(v)||(A.add(v),s=xq.bind(null,s,d,v),d.then(s,s))}function bk(s){do{var d;if((d=s.tag===13)&&(d=s.memoizedState,d=d!==null?d.dehydrated!==null:!0),d)return s;s=s.return}while(s!==null);return null}function wk(s,d,v,b,A){return(s.mode&1)===0?(s===d?s.flags|=65536:(s.flags|=128,v.flags|=131072,v.flags&=-52805,v.tag===1&&(v.alternate===null?v.tag=17:(d=mo(-1,1),d.tag=2,As(v,d,1))),v.lanes|=1),s):(s.flags|=65536,s.lanes=A,s)}var oq=E.ReactCurrentOwner,Rr=!1;function Pr(s,d,v,b){d.child=s===null?zT(d,null,v,b):bu(d,s.child,v,b)}function _k(s,d,v,b,A){v=v.render;var R=d.ref;return _u(d,A),b=d0(s,d,v,b,R,A),v=f0(),s!==null&&!Rr?(d.updateQueue=s.updateQueue,d.flags&=-2053,s.lanes&=~A,go(s,d,A)):(Kt&&v&&Kx(d),d.flags|=1,Pr(s,d,b,A),d.child)}function Sk(s,d,v,b,A){if(s===null){var R=v.type;return typeof R=="function"&&!q0(R)&&R.defaultProps===void 0&&v.compare===null&&v.defaultProps===void 0?(d.tag=15,d.type=R,jk(s,d,R,b,A)):(s=fg(v.type,null,b,d,d.mode,A),s.ref=d.ref,s.return=d,d.child=s)}if(R=s.child,(s.lanes&A)===0){var B=R.memoizedProps;if(v=v.compare,v=v!==null?v:Pa,v(B,b)&&s.ref===d.ref)return go(s,d,A)}return d.flags|=1,s=Ms(R,b),s.ref=d.ref,s.return=d,d.child=s}function jk(s,d,v,b,A){if(s!==null){var R=s.memoizedProps;if(Pa(R,b)&&s.ref===d.ref)if(Rr=!1,d.pendingProps=b=R,(s.lanes&A)!==0)(s.flags&131072)!==0&&(Rr=!0);else return d.lanes=s.lanes,go(s,d,A)}return w0(s,d,v,b,A)}function Pk(s,d,v){var b=d.pendingProps,A=b.children,R=s!==null?s.memoizedState:null;if(b.mode==="hidden")if((d.mode&1)===0)d.memoizedState={baseLanes:0,cachePool:null,transitions:null},Lt(Nu,ii),ii|=v;else{if((v&1073741824)===0)return s=R!==null?R.baseLanes|v:v,d.lanes=d.childLanes=1073741824,d.memoizedState={baseLanes:s,cachePool:null,transitions:null},d.updateQueue=null,Lt(Nu,ii),ii|=s,null;d.memoizedState={baseLanes:0,cachePool:null,transitions:null},b=R!==null?R.baseLanes:v,Lt(Nu,ii),ii|=b}else R!==null?(b=R.baseLanes|v,d.memoizedState=null):b=v,Lt(Nu,ii),ii|=b;return Pr(s,d,A,v),d.child}function Nk(s,d){var v=d.ref;(s===null&&v!==null||s!==null&&s.ref!==v)&&(d.flags|=512,d.flags|=2097152)}function w0(s,d,v,b,A){var R=Mr(v)?Dl:ur.current;return R=gu(d,R),_u(d,A),v=d0(s,d,v,b,R,A),b=f0(),s!==null&&!Rr?(d.updateQueue=s.updateQueue,d.flags&=-2053,s.lanes&=~A,go(s,d,A)):(Kt&&b&&Kx(d),d.flags|=1,Pr(s,d,v,A),d.child)}function Ak(s,d,v,b,A){if(Mr(v)){var R=!0;Lm(d)}else R=!1;if(_u(d,A),d.stateNode===null)tg(s,d),mk(d,v,b),y0(d,v,b,A),b=!0;else if(s===null){var B=d.stateNode,Z=d.memoizedProps;B.props=Z;var te=B.context,fe=v.contextType;typeof fe=="object"&&fe!==null?fe=Ni(fe):(fe=Mr(v)?Dl:ur.current,fe=gu(d,fe));var _e=v.getDerivedStateFromProps,je=typeof _e=="function"||typeof B.getSnapshotBeforeUpdate=="function";je||typeof B.UNSAFE_componentWillReceiveProps!="function"&&typeof B.componentWillReceiveProps!="function"||(Z!==b||te!==fe)&&gk(d,B,b,fe),Ns=!1;var be=d.memoizedState;B.state=be,Hm(d,b,B,A),te=d.memoizedState,Z!==b||be!==te||Er.current||Ns?(typeof _e=="function"&&(v0(d,v,_e,b),te=d.memoizedState),(Z=Ns||pk(d,v,Z,b,be,te,fe))?(je||typeof B.UNSAFE_componentWillMount!="function"&&typeof B.componentWillMount!="function"||(typeof B.componentWillMount=="function"&&B.componentWillMount(),typeof B.UNSAFE_componentWillMount=="function"&&B.UNSAFE_componentWillMount()),typeof B.componentDidMount=="function"&&(d.flags|=4194308)):(typeof B.componentDidMount=="function"&&(d.flags|=4194308),d.memoizedProps=b,d.memoizedState=te),B.props=b,B.state=te,B.context=fe,b=Z):(typeof B.componentDidMount=="function"&&(d.flags|=4194308),b=!1)}else{B=d.stateNode,VT(s,d),Z=d.memoizedProps,fe=d.type===d.elementType?Z:Qi(d.type,Z),B.props=fe,je=d.pendingProps,be=B.context,te=v.contextType,typeof te=="object"&&te!==null?te=Ni(te):(te=Mr(v)?Dl:ur.current,te=gu(d,te));var Oe=v.getDerivedStateFromProps;(_e=typeof Oe=="function"||typeof B.getSnapshotBeforeUpdate=="function")||typeof B.UNSAFE_componentWillReceiveProps!="function"&&typeof B.componentWillReceiveProps!="function"||(Z!==je||be!==te)&&gk(d,B,b,te),Ns=!1,be=d.memoizedState,B.state=be,Hm(d,b,B,A);var Le=d.memoizedState;Z!==je||be!==Le||Er.current||Ns?(typeof Oe=="function"&&(v0(d,v,Oe,b),Le=d.memoizedState),(fe=Ns||pk(d,v,fe,b,be,Le,te)||!1)?(_e||typeof B.UNSAFE_componentWillUpdate!="function"&&typeof B.componentWillUpdate!="function"||(typeof B.componentWillUpdate=="function"&&B.componentWillUpdate(b,Le,te),typeof B.UNSAFE_componentWillUpdate=="function"&&B.UNSAFE_componentWillUpdate(b,Le,te)),typeof B.componentDidUpdate=="function"&&(d.flags|=4),typeof B.getSnapshotBeforeUpdate=="function"&&(d.flags|=1024)):(typeof B.componentDidUpdate!="function"||Z===s.memoizedProps&&be===s.memoizedState||(d.flags|=4),typeof B.getSnapshotBeforeUpdate!="function"||Z===s.memoizedProps&&be===s.memoizedState||(d.flags|=1024),d.memoizedProps=b,d.memoizedState=Le),B.props=b,B.state=Le,B.context=te,b=fe):(typeof B.componentDidUpdate!="function"||Z===s.memoizedProps&&be===s.memoizedState||(d.flags|=4),typeof B.getSnapshotBeforeUpdate!="function"||Z===s.memoizedProps&&be===s.memoizedState||(d.flags|=1024),b=!1)}return _0(s,d,v,b,R,A)}function _0(s,d,v,b,A,R){Nk(s,d);var B=(d.flags&128)!==0;if(!b&&!B)return A&&ET(d,v,!1),go(s,d,R);b=d.stateNode,oq.current=d;var Z=B&&typeof v.getDerivedStateFromError!="function"?null:b.render();return d.flags|=1,s!==null&&B?(d.child=bu(d,s.child,null,R),d.child=bu(d,null,Z,R)):Pr(s,d,Z,R),d.memoizedState=b.state,A&&ET(d,v,!0),d.child}function Tk(s){var d=s.stateNode;d.pendingContext?CT(s,d.pendingContext,d.pendingContext!==d.context):d.context&&CT(s,d.context,!1),a0(s,d.containerInfo)}function kk(s,d,v,b,A){return xu(),Qx(A),d.flags|=256,Pr(s,d,v,b),d.child}var S0={dehydrated:null,treeContext:null,retryLane:0};function j0(s){return{baseLanes:s,cachePool:null,transitions:null}}function Ck(s,d,v){var b=d.pendingProps,A=en.current,R=!1,B=(d.flags&128)!==0,Z;if((Z=B)||(Z=s!==null&&s.memoizedState===null?!1:(A&2)!==0),Z?(R=!0,d.flags&=-129):(s===null||s.memoizedState!==null)&&(A|=1),Lt(en,A&1),s===null)return Xx(d),s=d.memoizedState,s!==null&&(s=s.dehydrated,s!==null)?((d.mode&1)===0?d.lanes=1:s.data==="$!"?d.lanes=8:d.lanes=1073741824,null):(B=b.children,s=b.fallback,R?(b=d.mode,R=d.child,B={mode:"hidden",children:B},(b&1)===0&&R!==null?(R.childLanes=0,R.pendingProps=B):R=hg(B,b,0,null),s=Ul(s,b,v,null),R.return=d,s.return=d,R.sibling=s,d.child=R,d.child.memoizedState=j0(v),d.memoizedState=S0,s):P0(d,B));if(A=s.memoizedState,A!==null&&(Z=A.dehydrated,Z!==null))return sq(s,d,B,b,Z,A,v);if(R){R=b.fallback,B=d.mode,A=s.child,Z=A.sibling;var te={mode:"hidden",children:b.children};return(B&1)===0&&d.child!==A?(b=d.child,b.childLanes=0,b.pendingProps=te,d.deletions=null):(b=Ms(A,te),b.subtreeFlags=A.subtreeFlags&14680064),Z!==null?R=Ms(Z,R):(R=Ul(R,B,v,null),R.flags|=2),R.return=d,b.return=d,b.sibling=R,d.child=b,b=R,R=d.child,B=s.child.memoizedState,B=B===null?j0(v):{baseLanes:B.baseLanes|v,cachePool:null,transitions:B.transitions},R.memoizedState=B,R.childLanes=s.childLanes&~v,d.memoizedState=S0,b}return R=s.child,s=R.sibling,b=Ms(R,{mode:"visible",children:b.children}),(d.mode&1)===0&&(b.lanes=v),b.return=d,b.sibling=null,s!==null&&(v=d.deletions,v===null?(d.deletions=[s],d.flags|=16):v.push(s)),d.child=b,d.memoizedState=null,b}function P0(s,d){return d=hg({mode:"visible",children:d},s.mode,0,null),d.return=s,s.child=d}function eg(s,d,v,b){return b!==null&&Qx(b),bu(d,s.child,null,v),s=P0(d,d.pendingProps.children),s.flags|=2,d.memoizedState=null,s}function sq(s,d,v,b,A,R,B){if(v)return d.flags&256?(d.flags&=-257,b=x0(Error(n(422))),eg(s,d,B,b)):d.memoizedState!==null?(d.child=s.child,d.flags|=128,null):(R=b.fallback,A=d.mode,b=hg({mode:"visible",children:b.children},A,0,null),R=Ul(R,A,B,null),R.flags|=2,b.return=d,R.return=d,b.sibling=R,d.child=b,(d.mode&1)!==0&&bu(d,s.child,null,B),d.child.memoizedState=j0(B),d.memoizedState=S0,R);if((d.mode&1)===0)return eg(s,d,B,null);if(A.data==="$!"){if(b=A.nextSibling&&A.nextSibling.dataset,b)var Z=b.dgst;return b=Z,R=Error(n(419)),b=x0(R,b,void 0),eg(s,d,B,b)}if(Z=(B&s.childLanes)!==0,Rr||Z){if(b=Vn,b!==null){switch(B&-B){case 4:A=2;break;case 16:A=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:A=32;break;case 536870912:A=268435456;break;default:A=0}A=(A&(b.suspendedLanes|B))!==0?0:A,A!==0&&A!==R.retryLane&&(R.retryLane=A,po(s,A),ta(b,s,A,-1))}return z0(),b=x0(Error(n(421))),eg(s,d,B,b)}return A.data==="$?"?(d.flags|=128,d.child=s.child,d=bq.bind(null,s),A._reactRetry=d,null):(s=R.treeContext,ri=Ta(A.nextSibling),ni=d,Kt=!0,Xi=null,s!==null&&(ji[Pi++]=fo,ji[Pi++]=ho,ji[Pi++]=Il,fo=s.id,ho=s.overflow,Il=d),d=P0(d,b.children),d.flags|=4096,d)}function Ok(s,d,v){s.lanes|=d;var b=s.alternate;b!==null&&(b.lanes|=d),n0(s.return,d,v)}function N0(s,d,v,b,A){var R=s.memoizedState;R===null?s.memoizedState={isBackwards:d,rendering:null,renderingStartTime:0,last:b,tail:v,tailMode:A}:(R.isBackwards=d,R.rendering=null,R.renderingStartTime=0,R.last=b,R.tail=v,R.tailMode=A)}function Ek(s,d,v){var b=d.pendingProps,A=b.revealOrder,R=b.tail;if(Pr(s,d,b.children,v),b=en.current,(b&2)!==0)b=b&1|2,d.flags|=128;else{if(s!==null&&(s.flags&128)!==0)e:for(s=d.child;s!==null;){if(s.tag===13)s.memoizedState!==null&&Ok(s,v,d);else if(s.tag===19)Ok(s,v,d);else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===d)break e;for(;s.sibling===null;){if(s.return===null||s.return===d)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}b&=1}if(Lt(en,b),(d.mode&1)===0)d.memoizedState=null;else switch(A){case"forwards":for(v=d.child,A=null;v!==null;)s=v.alternate,s!==null&&Gm(s)===null&&(A=v),v=v.sibling;v=A,v===null?(A=d.child,d.child=null):(A=v.sibling,v.sibling=null),N0(d,!1,A,v,R);break;case"backwards":for(v=null,A=d.child,d.child=null;A!==null;){if(s=A.alternate,s!==null&&Gm(s)===null){d.child=A;break}s=A.sibling,A.sibling=v,v=A,A=s}N0(d,!0,v,null,R);break;case"together":N0(d,!1,null,null,void 0);break;default:d.memoizedState=null}return d.child}function tg(s,d){(d.mode&1)===0&&s!==null&&(s.alternate=null,d.alternate=null,d.flags|=2)}function go(s,d,v){if(s!==null&&(d.dependencies=s.dependencies),zl|=d.lanes,(v&d.childLanes)===0)return null;if(s!==null&&d.child!==s.child)throw Error(n(153));if(d.child!==null){for(s=d.child,v=Ms(s,s.pendingProps),d.child=v,v.return=d;s.sibling!==null;)s=s.sibling,v=v.sibling=Ms(s,s.pendingProps),v.return=d;v.sibling=null}return d.child}function lq(s,d,v){switch(d.tag){case 3:Tk(d),xu();break;case 5:HT(d);break;case 1:Mr(d.type)&&Lm(d);break;case 4:a0(d,d.stateNode.containerInfo);break;case 10:var b=d.type._context,A=d.memoizedProps.value;Lt(Vm,b._currentValue),b._currentValue=A;break;case 13:if(b=d.memoizedState,b!==null)return b.dehydrated!==null?(Lt(en,en.current&1),d.flags|=128,null):(v&d.child.childLanes)!==0?Ck(s,d,v):(Lt(en,en.current&1),s=go(s,d,v),s!==null?s.sibling:null);Lt(en,en.current&1);break;case 19:if(b=(v&d.childLanes)!==0,(s.flags&128)!==0){if(b)return Ek(s,d,v);d.flags|=128}if(A=d.memoizedState,A!==null&&(A.rendering=null,A.tail=null,A.lastEffect=null),Lt(en,en.current),b)break;return null;case 22:case 23:return d.lanes=0,Pk(s,d,v)}return go(s,d,v)}var Mk,A0,Rk,Dk;Mk=function(s,d){for(var v=d.child;v!==null;){if(v.tag===5||v.tag===6)s.appendChild(v.stateNode);else if(v.tag!==4&&v.child!==null){v.child.return=v,v=v.child;continue}if(v===d)break;for(;v.sibling===null;){if(v.return===null||v.return===d)return;v=v.return}v.sibling.return=v.return,v=v.sibling}},A0=function(){},Rk=function(s,d,v,b){var A=s.memoizedProps;if(A!==b){s=d.stateNode,Bl(ka.current);var R=null;switch(v){case"input":A=Se(s,A),b=Se(s,b),R=[];break;case"select":A=U({},A,{value:void 0}),b=U({},b,{value:void 0}),R=[];break;case"textarea":A=pn(s,A),b=pn(s,b),R=[];break;default:typeof A.onClick!="function"&&typeof b.onClick=="function"&&(s.onclick=ve)}yl(v,b);var B;v=null;for(fe in A)if(!b.hasOwnProperty(fe)&&A.hasOwnProperty(fe)&&A[fe]!=null)if(fe==="style"){var Z=A[fe];for(B in Z)Z.hasOwnProperty(B)&&(v||(v={}),v[B]="")}else fe!=="dangerouslySetInnerHTML"&&fe!=="children"&&fe!=="suppressContentEditableWarning"&&fe!=="suppressHydrationWarning"&&fe!=="autoFocus"&&(i.hasOwnProperty(fe)?R||(R=[]):(R=R||[]).push(fe,null));for(fe in b){var te=b[fe];if(Z=A!=null?A[fe]:void 0,b.hasOwnProperty(fe)&&te!==Z&&(te!=null||Z!=null))if(fe==="style")if(Z){for(B in Z)!Z.hasOwnProperty(B)||te&&te.hasOwnProperty(B)||(v||(v={}),v[B]="");for(B in te)te.hasOwnProperty(B)&&Z[B]!==te[B]&&(v||(v={}),v[B]=te[B])}else v||(R||(R=[]),R.push(fe,v)),v=te;else fe==="dangerouslySetInnerHTML"?(te=te?te.__html:void 0,Z=Z?Z.__html:void 0,te!=null&&Z!==te&&(R=R||[]).push(fe,te)):fe==="children"?typeof te!="string"&&typeof te!="number"||(R=R||[]).push(fe,""+te):fe!=="suppressContentEditableWarning"&&fe!=="suppressHydrationWarning"&&(i.hasOwnProperty(fe)?(te!=null&&fe==="onScroll"&&Ot("scroll",s),R||Z===te||(R=[])):(R=R||[]).push(fe,te))}v&&(R=R||[]).push("style",v);var fe=R;(d.updateQueue=fe)&&(d.flags|=4)}},Dk=function(s,d,v,b){v!==b&&(d.flags|=4)};function Gf(s,d){if(!Kt)switch(s.tailMode){case"hidden":d=s.tail;for(var v=null;d!==null;)d.alternate!==null&&(v=d),d=d.sibling;v===null?s.tail=null:v.sibling=null;break;case"collapsed":v=s.tail;for(var b=null;v!==null;)v.alternate!==null&&(b=v),v=v.sibling;b===null?d||s.tail===null?s.tail=null:s.tail.sibling=null:b.sibling=null}}function fr(s){var d=s.alternate!==null&&s.alternate.child===s.child,v=0,b=0;if(d)for(var A=s.child;A!==null;)v|=A.lanes|A.childLanes,b|=A.subtreeFlags&14680064,b|=A.flags&14680064,A.return=s,A=A.sibling;else for(A=s.child;A!==null;)v|=A.lanes|A.childLanes,b|=A.subtreeFlags,b|=A.flags,A.return=s,A=A.sibling;return s.subtreeFlags|=b,s.childLanes=v,d}function cq(s,d,v){var b=d.pendingProps;switch(Zx(d),d.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return fr(d),null;case 1:return Mr(d.type)&&Im(),fr(d),null;case 3:return b=d.stateNode,Su(),qt(Er),qt(ur),l0(),b.pendingContext&&(b.context=b.pendingContext,b.pendingContext=null),(s===null||s.child===null)&&(zm(d)?d.flags|=4:s===null||s.memoizedState.isDehydrated&&(d.flags&256)===0||(d.flags|=1024,Xi!==null&&($0(Xi),Xi=null))),A0(s,d),fr(d),null;case 5:o0(d);var A=Bl(qf.current);if(v=d.type,s!==null&&d.stateNode!=null)Rk(s,d,v,b,A),s.ref!==d.ref&&(d.flags|=512,d.flags|=2097152);else{if(!b){if(d.stateNode===null)throw Error(n(166));return fr(d),null}if(s=Bl(ka.current),zm(d)){b=d.stateNode,v=d.type;var R=d.memoizedProps;switch(b[Si]=d,b[ws]=R,s=(d.mode&1)!==0,v){case"dialog":Ot("cancel",b),Ot("close",b);break;case"iframe":case"object":case"embed":Ot("load",b);break;case"video":case"audio":for(A=0;A<ys.length;A++)Ot(ys[A],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":at(b,R),Ot("invalid",b);break;case"select":b._wrapperState={wasMultiple:!!R.multiple},Ot("invalid",b);break;case"textarea":br(b,R),Ot("invalid",b)}yl(v,R),A=null;for(var B in R)if(R.hasOwnProperty(B)){var Z=R[B];B==="children"?typeof Z=="string"?b.textContent!==Z&&(R.suppressHydrationWarning!==!0&&ue(b.textContent,Z,s),A=["children",Z]):typeof Z=="number"&&b.textContent!==""+Z&&(R.suppressHydrationWarning!==!0&&ue(b.textContent,Z,s),A=["children",""+Z]):i.hasOwnProperty(B)&&Z!=null&&B==="onScroll"&&Ot("scroll",b)}switch(v){case"input":Ne(b),Gt(b,R,!0);break;case"textarea":Ne(b),ga(b);break;case"select":case"option":break;default:typeof R.onClick=="function"&&(b.onclick=ve)}b=A,d.updateQueue=b,b!==null&&(d.flags|=4)}else{B=A.nodeType===9?A:A.ownerDocument,s==="http://www.w3.org/1999/xhtml"&&(s=Qo(v)),s==="http://www.w3.org/1999/xhtml"?v==="script"?(s=B.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild)):typeof b.is=="string"?s=B.createElement(v,{is:b.is}):(s=B.createElement(v),v==="select"&&(B=s,b.multiple?B.multiple=!0:b.size&&(B.size=b.size))):s=B.createElementNS(s,v),s[Si]=d,s[ws]=b,Mk(s,d,!1,!1),d.stateNode=s;e:{switch(B=Wi(v,b),v){case"dialog":Ot("cancel",s),Ot("close",s),A=b;break;case"iframe":case"object":case"embed":Ot("load",s),A=b;break;case"video":case"audio":for(A=0;A<ys.length;A++)Ot(ys[A],s);A=b;break;case"source":Ot("error",s),A=b;break;case"img":case"image":case"link":Ot("error",s),Ot("load",s),A=b;break;case"details":Ot("toggle",s),A=b;break;case"input":at(s,b),A=Se(s,b),Ot("invalid",s);break;case"option":A=b;break;case"select":s._wrapperState={wasMultiple:!!b.multiple},A=U({},b,{value:void 0}),Ot("invalid",s);break;case"textarea":br(s,b),A=pn(s,b),Ot("invalid",s);break;default:A=b}yl(v,A),Z=A;for(R in Z)if(Z.hasOwnProperty(R)){var te=Z[R];R==="style"?ts(s,te):R==="dangerouslySetInnerHTML"?(te=te?te.__html:void 0,te!=null&&zc(s,te)):R==="children"?typeof te=="string"?(v!=="textarea"||te!=="")&&Vi(s,te):typeof te=="number"&&Vi(s,""+te):R!=="suppressContentEditableWarning"&&R!=="suppressHydrationWarning"&&R!=="autoFocus"&&(i.hasOwnProperty(R)?te!=null&&R==="onScroll"&&Ot("scroll",s):te!=null&&C(s,R,te,B))}switch(v){case"input":Ne(s),Gt(s,b,!1);break;case"textarea":Ne(s),ga(s);break;case"option":b.value!=null&&s.setAttribute("value",""+xe(b.value));break;case"select":s.multiple=!!b.multiple,R=b.value,R!=null?Xt(s,!!b.multiple,R,!1):b.defaultValue!=null&&Xt(s,!!b.multiple,b.defaultValue,!0);break;default:typeof A.onClick=="function"&&(s.onclick=ve)}switch(v){case"button":case"input":case"select":case"textarea":b=!!b.autoFocus;break e;case"img":b=!0;break e;default:b=!1}}b&&(d.flags|=4)}d.ref!==null&&(d.flags|=512,d.flags|=2097152)}return fr(d),null;case 6:if(s&&d.stateNode!=null)Dk(s,d,s.memoizedProps,b);else{if(typeof b!="string"&&d.stateNode===null)throw Error(n(166));if(v=Bl(qf.current),Bl(ka.current),zm(d)){if(b=d.stateNode,v=d.memoizedProps,b[Si]=d,(R=b.nodeValue!==v)&&(s=ni,s!==null))switch(s.tag){case 3:ue(b.nodeValue,v,(s.mode&1)!==0);break;case 5:s.memoizedProps.suppressHydrationWarning!==!0&&ue(b.nodeValue,v,(s.mode&1)!==0)}R&&(d.flags|=4)}else b=(v.nodeType===9?v:v.ownerDocument).createTextNode(b),b[Si]=d,d.stateNode=b}return fr(d),null;case 13:if(qt(en),b=d.memoizedState,s===null||s.memoizedState!==null&&s.memoizedState.dehydrated!==null){if(Kt&&ri!==null&&(d.mode&1)!==0&&(d.flags&128)===0)$T(),xu(),d.flags|=98560,R=!1;else if(R=zm(d),b!==null&&b.dehydrated!==null){if(s===null){if(!R)throw Error(n(318));if(R=d.memoizedState,R=R!==null?R.dehydrated:null,!R)throw Error(n(317));R[Si]=d}else xu(),(d.flags&128)===0&&(d.memoizedState=null),d.flags|=4;fr(d),R=!1}else Xi!==null&&($0(Xi),Xi=null),R=!0;if(!R)return d.flags&65536?d:null}return(d.flags&128)!==0?(d.lanes=v,d):(b=b!==null,b!==(s!==null&&s.memoizedState!==null)&&b&&(d.child.flags|=8192,(d.mode&1)!==0&&(s===null||(en.current&1)!==0?On===0&&(On=3):z0())),d.updateQueue!==null&&(d.flags|=4),fr(d),null);case 4:return Su(),A0(s,d),s===null&&xs(d.stateNode.containerInfo),fr(d),null;case 10:return t0(d.type._context),fr(d),null;case 17:return Mr(d.type)&&Im(),fr(d),null;case 19:if(qt(en),R=d.memoizedState,R===null)return fr(d),null;if(b=(d.flags&128)!==0,B=R.rendering,B===null)if(b)Gf(R,!1);else{if(On!==0||s!==null&&(s.flags&128)!==0)for(s=d.child;s!==null;){if(B=Gm(s),B!==null){for(d.flags|=128,Gf(R,!1),b=B.updateQueue,b!==null&&(d.updateQueue=b,d.flags|=4),d.subtreeFlags=0,b=v,v=d.child;v!==null;)R=v,s=b,R.flags&=14680066,B=R.alternate,B===null?(R.childLanes=0,R.lanes=s,R.child=null,R.subtreeFlags=0,R.memoizedProps=null,R.memoizedState=null,R.updateQueue=null,R.dependencies=null,R.stateNode=null):(R.childLanes=B.childLanes,R.lanes=B.lanes,R.child=B.child,R.subtreeFlags=0,R.deletions=null,R.memoizedProps=B.memoizedProps,R.memoizedState=B.memoizedState,R.updateQueue=B.updateQueue,R.type=B.type,s=B.dependencies,R.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext}),v=v.sibling;return Lt(en,en.current&1|2),d.child}s=s.sibling}R.tail!==null&&Qt()>Au&&(d.flags|=128,b=!0,Gf(R,!1),d.lanes=4194304)}else{if(!b)if(s=Gm(B),s!==null){if(d.flags|=128,b=!0,v=s.updateQueue,v!==null&&(d.updateQueue=v,d.flags|=4),Gf(R,!0),R.tail===null&&R.tailMode==="hidden"&&!B.alternate&&!Kt)return fr(d),null}else 2*Qt()-R.renderingStartTime>Au&&v!==1073741824&&(d.flags|=128,b=!0,Gf(R,!1),d.lanes=4194304);R.isBackwards?(B.sibling=d.child,d.child=B):(v=R.last,v!==null?v.sibling=B:d.child=B,R.last=B)}return R.tail!==null?(d=R.tail,R.rendering=d,R.tail=d.sibling,R.renderingStartTime=Qt(),d.sibling=null,v=en.current,Lt(en,b?v&1|2:v&1),d):(fr(d),null);case 22:case 23:return F0(),b=d.memoizedState!==null,s!==null&&s.memoizedState!==null!==b&&(d.flags|=8192),b&&(d.mode&1)!==0?(ii&1073741824)!==0&&(fr(d),d.subtreeFlags&6&&(d.flags|=8192)):fr(d),null;case 24:return null;case 25:return null}throw Error(n(156,d.tag))}function uq(s,d){switch(Zx(d),d.tag){case 1:return Mr(d.type)&&Im(),s=d.flags,s&65536?(d.flags=s&-65537|128,d):null;case 3:return Su(),qt(Er),qt(ur),l0(),s=d.flags,(s&65536)!==0&&(s&128)===0?(d.flags=s&-65537|128,d):null;case 5:return o0(d),null;case 13:if(qt(en),s=d.memoizedState,s!==null&&s.dehydrated!==null){if(d.alternate===null)throw Error(n(340));xu()}return s=d.flags,s&65536?(d.flags=s&-65537|128,d):null;case 19:return qt(en),null;case 4:return Su(),null;case 10:return t0(d.type._context),null;case 22:case 23:return F0(),null;case 24:return null;default:return null}}var ng=!1,hr=!1,dq=typeof WeakSet=="function"?WeakSet:Set,Re=null;function Pu(s,d){var v=s.ref;if(v!==null)if(typeof v=="function")try{v(null)}catch(b){cn(s,d,b)}else v.current=null}function T0(s,d,v){try{v()}catch(b){cn(s,d,b)}}var Ik=!1;function fq(s,d){if(ke=Al,s=Cf(),Of(s)){if("selectionStart"in s)var v={start:s.selectionStart,end:s.selectionEnd};else e:{v=(v=s.ownerDocument)&&v.defaultView||window;var b=v.getSelection&&v.getSelection();if(b&&b.rangeCount!==0){v=b.anchorNode;var A=b.anchorOffset,R=b.focusNode;b=b.focusOffset;try{v.nodeType,R.nodeType}catch{v=null;break e}var B=0,Z=-1,te=-1,fe=0,_e=0,je=s,be=null;t:for(;;){for(var Oe;je!==v||A!==0&&je.nodeType!==3||(Z=B+A),je!==R||b!==0&&je.nodeType!==3||(te=B+b),je.nodeType===3&&(B+=je.nodeValue.length),(Oe=je.firstChild)!==null;)be=je,je=Oe;for(;;){if(je===s)break t;if(be===v&&++fe===A&&(Z=B),be===R&&++_e===b&&(te=B),(Oe=je.nextSibling)!==null)break;je=be,be=je.parentNode}je=Oe}v=Z===-1||te===-1?null:{start:Z,end:te}}else v=null}v=v||{start:0,end:0}}else v=null;for(Ve={focusedElem:s,selectionRange:v},Al=!1,Re=d;Re!==null;)if(d=Re,s=d.child,(d.subtreeFlags&1028)!==0&&s!==null)s.return=d,Re=s;else for(;Re!==null;){d=Re;try{var Le=d.alternate;if((d.flags&1024)!==0)switch(d.tag){case 0:case 11:case 15:break;case 1:if(Le!==null){var Be=Le.memoizedProps,mn=Le.memoizedState,le=d.stateNode,ae=le.getSnapshotBeforeUpdate(d.elementType===d.type?Be:Qi(d.type,Be),mn);le.__reactInternalSnapshotBeforeUpdate=ae}break;case 3:var ce=d.stateNode.containerInfo;ce.nodeType===1?ce.textContent="":ce.nodeType===9&&ce.documentElement&&ce.removeChild(ce.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(Pe){cn(d,d.return,Pe)}if(s=d.sibling,s!==null){s.return=d.return,Re=s;break}Re=d.return}return Le=Ik,Ik=!1,Le}function Kf(s,d,v){var b=d.updateQueue;if(b=b!==null?b.lastEffect:null,b!==null){var A=b=b.next;do{if((A.tag&s)===s){var R=A.destroy;A.destroy=void 0,R!==void 0&&T0(d,v,R)}A=A.next}while(A!==b)}}function rg(s,d){if(d=d.updateQueue,d=d!==null?d.lastEffect:null,d!==null){var v=d=d.next;do{if((v.tag&s)===s){var b=v.create;v.destroy=b()}v=v.next}while(v!==d)}}function k0(s){var d=s.ref;if(d!==null){var v=s.stateNode;switch(s.tag){case 5:s=v;break;default:s=v}typeof d=="function"?d(s):d.current=s}}function Lk(s){var d=s.alternate;d!==null&&(s.alternate=null,Lk(d)),s.child=null,s.deletions=null,s.sibling=null,s.tag===5&&(d=s.stateNode,d!==null&&(delete d[Si],delete d[ws],delete d[_s],delete d[Wx],delete d[Ux])),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 $k(s){return s.tag===5||s.tag===3||s.tag===4}function Bk(s){e:for(;;){for(;s.sibling===null;){if(s.return===null||$k(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 C0(s,d,v){var b=s.tag;if(b===5||b===6)s=s.stateNode,d?v.nodeType===8?v.parentNode.insertBefore(s,d):v.insertBefore(s,d):(v.nodeType===8?(d=v.parentNode,d.insertBefore(s,v)):(d=v,d.appendChild(s)),v=v._reactRootContainer,v!=null||d.onclick!==null||(d.onclick=ve));else if(b!==4&&(s=s.child,s!==null))for(C0(s,d,v),s=s.sibling;s!==null;)C0(s,d,v),s=s.sibling}function O0(s,d,v){var b=s.tag;if(b===5||b===6)s=s.stateNode,d?v.insertBefore(s,d):v.appendChild(s);else if(b!==4&&(s=s.child,s!==null))for(O0(s,d,v),s=s.sibling;s!==null;)O0(s,d,v),s=s.sibling}var Yn=null,Ji=!1;function Ts(s,d,v){for(v=v.child;v!==null;)Fk(s,d,v),v=v.sibling}function Fk(s,d,v){if(Kr&&typeof Kr.onCommitFiberUnmount=="function")try{Kr.onCommitFiberUnmount(wl,v)}catch{}switch(v.tag){case 5:hr||Pu(v,d);case 6:var b=Yn,A=Ji;Yn=null,Ts(s,d,v),Yn=b,Ji=A,Yn!==null&&(Ji?(s=Yn,v=v.stateNode,s.nodeType===8?s.parentNode.removeChild(v):s.removeChild(v)):Yn.removeChild(v.stateNode));break;case 18:Yn!==null&&(Ji?(s=Yn,v=v.stateNode,s.nodeType===8?$f(s.parentNode,v):s.nodeType===1&&$f(s,v),Xr(s)):$f(Yn,v.stateNode));break;case 4:b=Yn,A=Ji,Yn=v.stateNode.containerInfo,Ji=!0,Ts(s,d,v),Yn=b,Ji=A;break;case 0:case 11:case 14:case 15:if(!hr&&(b=v.updateQueue,b!==null&&(b=b.lastEffect,b!==null))){A=b=b.next;do{var R=A,B=R.destroy;R=R.tag,B!==void 0&&((R&2)!==0||(R&4)!==0)&&T0(v,d,B),A=A.next}while(A!==b)}Ts(s,d,v);break;case 1:if(!hr&&(Pu(v,d),b=v.stateNode,typeof b.componentWillUnmount=="function"))try{b.props=v.memoizedProps,b.state=v.memoizedState,b.componentWillUnmount()}catch(Z){cn(v,d,Z)}Ts(s,d,v);break;case 21:Ts(s,d,v);break;case 22:v.mode&1?(hr=(b=hr)||v.memoizedState!==null,Ts(s,d,v),hr=b):Ts(s,d,v);break;default:Ts(s,d,v)}}function zk(s){var d=s.updateQueue;if(d!==null){s.updateQueue=null;var v=s.stateNode;v===null&&(v=s.stateNode=new dq),d.forEach(function(b){var A=wq.bind(null,s,b);v.has(b)||(v.add(b),b.then(A,A))})}}function ea(s,d){var v=d.deletions;if(v!==null)for(var b=0;b<v.length;b++){var A=v[b];try{var R=s,B=d,Z=B;e:for(;Z!==null;){switch(Z.tag){case 5:Yn=Z.stateNode,Ji=!1;break e;case 3:Yn=Z.stateNode.containerInfo,Ji=!0;break e;case 4:Yn=Z.stateNode.containerInfo,Ji=!0;break e}Z=Z.return}if(Yn===null)throw Error(n(160));Fk(R,B,A),Yn=null,Ji=!1;var te=A.alternate;te!==null&&(te.return=null),A.return=null}catch(fe){cn(A,d,fe)}}if(d.subtreeFlags&12854)for(d=d.child;d!==null;)qk(d,s),d=d.sibling}function qk(s,d){var v=s.alternate,b=s.flags;switch(s.tag){case 0:case 11:case 14:case 15:if(ea(d,s),Oa(s),b&4){try{Kf(3,s,s.return),rg(3,s)}catch(Be){cn(s,s.return,Be)}try{Kf(5,s,s.return)}catch(Be){cn(s,s.return,Be)}}break;case 1:ea(d,s),Oa(s),b&512&&v!==null&&Pu(v,v.return);break;case 5:if(ea(d,s),Oa(s),b&512&&v!==null&&Pu(v,v.return),s.flags&32){var A=s.stateNode;try{Vi(A,"")}catch(Be){cn(s,s.return,Be)}}if(b&4&&(A=s.stateNode,A!=null)){var R=s.memoizedProps,B=v!==null?v.memoizedProps:R,Z=s.type,te=s.updateQueue;if(s.updateQueue=null,te!==null)try{Z==="input"&&R.type==="radio"&&R.name!=null&&dt(A,R),Wi(Z,B);var fe=Wi(Z,R);for(B=0;B<te.length;B+=2){var _e=te[B],je=te[B+1];_e==="style"?ts(A,je):_e==="dangerouslySetInnerHTML"?zc(A,je):_e==="children"?Vi(A,je):C(A,_e,je,fe)}switch(Z){case"input":bt(A,R);break;case"textarea":Za(A,R);break;case"select":var be=A._wrapperState.wasMultiple;A._wrapperState.wasMultiple=!!R.multiple;var Oe=R.value;Oe!=null?Xt(A,!!R.multiple,Oe,!1):be!==!!R.multiple&&(R.defaultValue!=null?Xt(A,!!R.multiple,R.defaultValue,!0):Xt(A,!!R.multiple,R.multiple?[]:"",!1))}A[ws]=R}catch(Be){cn(s,s.return,Be)}}break;case 6:if(ea(d,s),Oa(s),b&4){if(s.stateNode===null)throw Error(n(162));A=s.stateNode,R=s.memoizedProps;try{A.nodeValue=R}catch(Be){cn(s,s.return,Be)}}break;case 3:if(ea(d,s),Oa(s),b&4&&v!==null&&v.memoizedState.isDehydrated)try{Xr(d.containerInfo)}catch(Be){cn(s,s.return,Be)}break;case 4:ea(d,s),Oa(s);break;case 13:ea(d,s),Oa(s),A=s.child,A.flags&8192&&(R=A.memoizedState!==null,A.stateNode.isHidden=R,!R||A.alternate!==null&&A.alternate.memoizedState!==null||(R0=Qt())),b&4&&zk(s);break;case 22:if(_e=v!==null&&v.memoizedState!==null,s.mode&1?(hr=(fe=hr)||_e,ea(d,s),hr=fe):ea(d,s),Oa(s),b&8192){if(fe=s.memoizedState!==null,(s.stateNode.isHidden=fe)&&!_e&&(s.mode&1)!==0)for(Re=s,_e=s.child;_e!==null;){for(je=Re=_e;Re!==null;){switch(be=Re,Oe=be.child,be.tag){case 0:case 11:case 14:case 15:Kf(4,be,be.return);break;case 1:Pu(be,be.return);var Le=be.stateNode;if(typeof Le.componentWillUnmount=="function"){b=be,v=be.return;try{d=b,Le.props=d.memoizedProps,Le.state=d.memoizedState,Le.componentWillUnmount()}catch(Be){cn(b,v,Be)}}break;case 5:Pu(be,be.return);break;case 22:if(be.memoizedState!==null){Uk(je);continue}}Oe!==null?(Oe.return=be,Re=Oe):Uk(je)}_e=_e.sibling}e:for(_e=null,je=s;;){if(je.tag===5){if(_e===null){_e=je;try{A=je.stateNode,fe?(R=A.style,typeof R.setProperty=="function"?R.setProperty("display","none","important"):R.display="none"):(Z=je.stateNode,te=je.memoizedProps.style,B=te!=null&&te.hasOwnProperty("display")?te.display:null,Z.style.display=es("display",B))}catch(Be){cn(s,s.return,Be)}}}else if(je.tag===6){if(_e===null)try{je.stateNode.nodeValue=fe?"":je.memoizedProps}catch(Be){cn(s,s.return,Be)}}else if((je.tag!==22&&je.tag!==23||je.memoizedState===null||je===s)&&je.child!==null){je.child.return=je,je=je.child;continue}if(je===s)break e;for(;je.sibling===null;){if(je.return===null||je.return===s)break e;_e===je&&(_e=null),je=je.return}_e===je&&(_e=null),je.sibling.return=je.return,je=je.sibling}}break;case 19:ea(d,s),Oa(s),b&4&&zk(s);break;case 21:break;default:ea(d,s),Oa(s)}}function Oa(s){var d=s.flags;if(d&2){try{e:{for(var v=s.return;v!==null;){if($k(v)){var b=v;break e}v=v.return}throw Error(n(160))}switch(b.tag){case 5:var A=b.stateNode;b.flags&32&&(Vi(A,""),b.flags&=-33);var R=Bk(s);O0(s,R,A);break;case 3:case 4:var B=b.stateNode.containerInfo,Z=Bk(s);C0(s,Z,B);break;default:throw Error(n(161))}}catch(te){cn(s,s.return,te)}s.flags&=-3}d&4096&&(s.flags&=-4097)}function hq(s,d,v){Re=s,Vk(s)}function Vk(s,d,v){for(var b=(s.mode&1)!==0;Re!==null;){var A=Re,R=A.child;if(A.tag===22&&b){var B=A.memoizedState!==null||ng;if(!B){var Z=A.alternate,te=Z!==null&&Z.memoizedState!==null||hr;Z=ng;var fe=hr;if(ng=B,(hr=te)&&!fe)for(Re=A;Re!==null;)B=Re,te=B.child,B.tag===22&&B.memoizedState!==null?Hk(A):te!==null?(te.return=B,Re=te):Hk(A);for(;R!==null;)Re=R,Vk(R),R=R.sibling;Re=A,ng=Z,hr=fe}Wk(s)}else(A.subtreeFlags&8772)!==0&&R!==null?(R.return=A,Re=R):Wk(s)}}function Wk(s){for(;Re!==null;){var d=Re;if((d.flags&8772)!==0){var v=d.alternate;try{if((d.flags&8772)!==0)switch(d.tag){case 0:case 11:case 15:hr||rg(5,d);break;case 1:var b=d.stateNode;if(d.flags&4&&!hr)if(v===null)b.componentDidMount();else{var A=d.elementType===d.type?v.memoizedProps:Qi(d.type,v.memoizedProps);b.componentDidUpdate(A,v.memoizedState,b.__reactInternalSnapshotBeforeUpdate)}var R=d.updateQueue;R!==null&&UT(d,R,b);break;case 3:var B=d.updateQueue;if(B!==null){if(v=null,d.child!==null)switch(d.child.tag){case 5:v=d.child.stateNode;break;case 1:v=d.child.stateNode}UT(d,B,v)}break;case 5:var Z=d.stateNode;if(v===null&&d.flags&4){v=Z;var te=d.memoizedProps;switch(d.type){case"button":case"input":case"select":case"textarea":te.autoFocus&&v.focus();break;case"img":te.src&&(v.src=te.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(d.memoizedState===null){var fe=d.alternate;if(fe!==null){var _e=fe.memoizedState;if(_e!==null){var je=_e.dehydrated;je!==null&&Xr(je)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}hr||d.flags&512&&k0(d)}catch(be){cn(d,d.return,be)}}if(d===s){Re=null;break}if(v=d.sibling,v!==null){v.return=d.return,Re=v;break}Re=d.return}}function Uk(s){for(;Re!==null;){var d=Re;if(d===s){Re=null;break}var v=d.sibling;if(v!==null){v.return=d.return,Re=v;break}Re=d.return}}function Hk(s){for(;Re!==null;){var d=Re;try{switch(d.tag){case 0:case 11:case 15:var v=d.return;try{rg(4,d)}catch(te){cn(d,v,te)}break;case 1:var b=d.stateNode;if(typeof b.componentDidMount=="function"){var A=d.return;try{b.componentDidMount()}catch(te){cn(d,A,te)}}var R=d.return;try{k0(d)}catch(te){cn(d,R,te)}break;case 5:var B=d.return;try{k0(d)}catch(te){cn(d,B,te)}}}catch(te){cn(d,d.return,te)}if(d===s){Re=null;break}var Z=d.sibling;if(Z!==null){Z.return=d.return,Re=Z;break}Re=d.return}}var pq=Math.ceil,ig=E.ReactCurrentDispatcher,E0=E.ReactCurrentOwner,Ti=E.ReactCurrentBatchConfig,wt=0,Vn=null,bn=null,Xn=0,ii=0,Nu=Ss(0),On=0,Zf=null,zl=0,ag=0,M0=0,Yf=null,Dr=null,R0=0,Au=1/0,vo=null,og=!1,D0=null,ks=null,sg=!1,Cs=null,lg=0,Xf=0,I0=null,cg=-1,ug=0;function Nr(){return(wt&6)!==0?Qt():cg!==-1?cg:cg=Qt()}function Os(s){return(s.mode&1)===0?1:(wt&2)!==0&&Xn!==0?Xn&-Xn:X8.transition!==null?(ug===0&&(ug=hm()),ug):(s=mt,s!==0||(s=window.event,s=s===void 0?16:ct(s.type)),s)}function ta(s,d,v,b){if(50<Xf)throw Xf=0,I0=null,Error(n(185));Zr(s,v,b),((wt&2)===0||s!==Vn)&&(s===Vn&&((wt&2)===0&&(ag|=v),On===4&&Es(s,Xn)),Ir(s,b),v===1&&wt===0&&(d.mode&1)===0&&(Au=Qt()+500,$m&&Ps()))}function Ir(s,d){var v=s.callbackNode;Gc(s,d);var b=It(s,s===Vn?Xn:0);if(b===0)v!==null&&ff(v),s.callbackNode=null,s.callbackPriority=0;else if(d=b&-b,s.callbackPriority!==d){if(v!=null&&ff(v),d===1)s.tag===0?Y8(Kk.bind(null,s)):MT(Kk.bind(null,s)),cr(function(){(wt&6)===0&&Ps()}),v=null;else{switch(os(b)){case 1:v=hf;break;case 4:v=fm;break;case 16:v=Uc;break;case 536870912:v=ns;break;default:v=Uc}v=nC(v,Gk.bind(null,s))}s.callbackPriority=d,s.callbackNode=v}}function Gk(s,d){if(cg=-1,ug=0,(wt&6)!==0)throw Error(n(327));var v=s.callbackNode;if(Tu()&&s.callbackNode!==v)return null;var b=It(s,s===Vn?Xn:0);if(b===0)return null;if((b&30)!==0||(b&s.expiredLanes)!==0||d)d=dg(s,b);else{d=b;var A=wt;wt|=2;var R=Yk();(Vn!==s||Xn!==d)&&(vo=null,Au=Qt()+500,Vl(s,d));do try{vq();break}catch(Z){Zk(s,Z)}while(!0);e0(),ig.current=R,wt=A,bn!==null?d=0:(Vn=null,Xn=0,d=On)}if(d!==0){if(d===2&&(A=sr(s),A!==0&&(b=A,d=L0(s,A))),d===1)throw v=Zf,Vl(s,0),Es(s,b),Ir(s,Qt()),v;if(d===6)Es(s,b);else{if(A=s.current.alternate,(b&30)===0&&!mq(A)&&(d=dg(s,b),d===2&&(R=sr(s),R!==0&&(b=R,d=L0(s,R))),d===1))throw v=Zf,Vl(s,0),Es(s,b),Ir(s,Qt()),v;switch(s.finishedWork=A,s.finishedLanes=b,d){case 0:case 1:throw Error(n(345));case 2:Wl(s,Dr,vo);break;case 3:if(Es(s,b),(b&130023424)===b&&(d=R0+500-Qt(),10<d)){if(It(s,0)!==0)break;if(A=s.suspendedLanes,(A&b)!==b){Nr(),s.pingedLanes|=s.suspendedLanes&A;break}s.timeoutHandle=kn(Wl.bind(null,s,Dr,vo),d);break}Wl(s,Dr,vo);break;case 4:if(Es(s,b),(b&4194240)===b)break;for(d=s.eventTimes,A=-1;0<b;){var B=31-nt(b);R=1<<B,B=d[B],B>A&&(A=B),b&=~R}if(b=A,b=Qt()-b,b=(120>b?120:480>b?480:1080>b?1080:1920>b?1920:3e3>b?3e3:4320>b?4320:1960*pq(b/1960))-b,10<b){s.timeoutHandle=kn(Wl.bind(null,s,Dr,vo),b);break}Wl(s,Dr,vo);break;case 5:Wl(s,Dr,vo);break;default:throw Error(n(329))}}}return Ir(s,Qt()),s.callbackNode===v?Gk.bind(null,s):null}function L0(s,d){var v=Yf;return s.current.memoizedState.isDehydrated&&(Vl(s,d).flags|=256),s=dg(s,d),s!==2&&(d=Dr,Dr=v,d!==null&&$0(d)),s}function $0(s){Dr===null?Dr=s:Dr.push.apply(Dr,s)}function mq(s){for(var d=s;;){if(d.flags&16384){var v=d.updateQueue;if(v!==null&&(v=v.stores,v!==null))for(var b=0;b<v.length;b++){var A=v[b],R=A.getSnapshot;A=A.value;try{if(!ei(R(),A))return!1}catch{return!1}}}if(v=d.child,d.subtreeFlags&16384&&v!==null)v.return=d,d=v;else{if(d===s)break;for(;d.sibling===null;){if(d.return===null||d.return===s)return!0;d=d.return}d.sibling.return=d.return,d=d.sibling}}return!0}function Es(s,d){for(d&=~M0,d&=~ag,s.suspendedLanes|=d,s.pingedLanes&=~d,s=s.expirationTimes;0<d;){var v=31-nt(d),b=1<<v;s[v]=-1,d&=~b}}function Kk(s){if((wt&6)!==0)throw Error(n(327));Tu();var d=It(s,0);if((d&1)===0)return Ir(s,Qt()),null;var v=dg(s,d);if(s.tag!==0&&v===2){var b=sr(s);b!==0&&(d=b,v=L0(s,b))}if(v===1)throw v=Zf,Vl(s,0),Es(s,d),Ir(s,Qt()),v;if(v===6)throw Error(n(345));return s.finishedWork=s.current.alternate,s.finishedLanes=d,Wl(s,Dr,vo),Ir(s,Qt()),null}function B0(s,d){var v=wt;wt|=1;try{return s(d)}finally{wt=v,wt===0&&(Au=Qt()+500,$m&&Ps())}}function ql(s){Cs!==null&&Cs.tag===0&&(wt&6)===0&&Tu();var d=wt;wt|=1;var v=Ti.transition,b=mt;try{if(Ti.transition=null,mt=1,s)return s()}finally{mt=b,Ti.transition=v,wt=d,(wt&6)===0&&Ps()}}function F0(){ii=Nu.current,qt(Nu)}function Vl(s,d){s.finishedWork=null,s.finishedLanes=0;var v=s.timeoutHandle;if(v!==-1&&(s.timeoutHandle=-1,xn(v)),bn!==null)for(v=bn.return;v!==null;){var b=v;switch(Zx(b),b.tag){case 1:b=b.type.childContextTypes,b!=null&&Im();break;case 3:Su(),qt(Er),qt(ur),l0();break;case 5:o0(b);break;case 4:Su();break;case 13:qt(en);break;case 19:qt(en);break;case 10:t0(b.type._context);break;case 22:case 23:F0()}v=v.return}if(Vn=s,bn=s=Ms(s.current,null),Xn=ii=d,On=0,Zf=null,M0=ag=zl=0,Dr=Yf=null,$l!==null){for(d=0;d<$l.length;d++)if(v=$l[d],b=v.interleaved,b!==null){v.interleaved=null;var A=b.next,R=v.pending;if(R!==null){var B=R.next;R.next=A,b.next=B}v.pending=b}$l=null}return s}function Zk(s,d){do{var v=bn;try{if(e0(),Km.current=Qm,Zm){for(var b=tn.memoizedState;b!==null;){var A=b.queue;A!==null&&(A.pending=null),b=b.next}Zm=!1}if(Fl=0,qn=Cn=tn=null,Vf=!1,Wf=0,E0.current=null,v===null||v.return===null){On=1,Zf=d,bn=null;break}e:{var R=s,B=v.return,Z=v,te=d;if(d=Xn,Z.flags|=32768,te!==null&&typeof te=="object"&&typeof te.then=="function"){var fe=te,_e=Z,je=_e.tag;if((_e.mode&1)===0&&(je===0||je===11||je===15)){var be=_e.alternate;be?(_e.updateQueue=be.updateQueue,_e.memoizedState=be.memoizedState,_e.lanes=be.lanes):(_e.updateQueue=null,_e.memoizedState=null)}var Oe=bk(B);if(Oe!==null){Oe.flags&=-257,wk(Oe,B,Z,R,d),Oe.mode&1&&xk(R,fe,d),d=Oe,te=fe;var Le=d.updateQueue;if(Le===null){var Be=new Set;Be.add(te),d.updateQueue=Be}else Le.add(te);break e}else{if((d&1)===0){xk(R,fe,d),z0();break e}te=Error(n(426))}}else if(Kt&&Z.mode&1){var mn=bk(B);if(mn!==null){(mn.flags&65536)===0&&(mn.flags|=256),wk(mn,B,Z,R,d),Qx(ju(te,Z));break e}}R=te=ju(te,Z),On!==4&&(On=2),Yf===null?Yf=[R]:Yf.push(R),R=B;do{switch(R.tag){case 3:R.flags|=65536,d&=-d,R.lanes|=d;var le=vk(R,te,d);WT(R,le);break e;case 1:Z=te;var ae=R.type,ce=R.stateNode;if((R.flags&128)===0&&(typeof ae.getDerivedStateFromError=="function"||ce!==null&&typeof ce.componentDidCatch=="function"&&(ks===null||!ks.has(ce)))){R.flags|=65536,d&=-d,R.lanes|=d;var Pe=yk(R,Z,d);WT(R,Pe);break e}}R=R.return}while(R!==null)}Qk(v)}catch(ze){d=ze,bn===v&&v!==null&&(bn=v=v.return);continue}break}while(!0)}function Yk(){var s=ig.current;return ig.current=Qm,s===null?Qm:s}function z0(){(On===0||On===3||On===2)&&(On=4),Vn===null||(zl&268435455)===0&&(ag&268435455)===0||Es(Vn,Xn)}function dg(s,d){var v=wt;wt|=2;var b=Yk();(Vn!==s||Xn!==d)&&(vo=null,Vl(s,d));do try{gq();break}catch(A){Zk(s,A)}while(!0);if(e0(),wt=v,ig.current=b,bn!==null)throw Error(n(261));return Vn=null,Xn=0,On}function gq(){for(;bn!==null;)Xk(bn)}function vq(){for(;bn!==null&&!Tx();)Xk(bn)}function Xk(s){var d=tC(s.alternate,s,ii);s.memoizedProps=s.pendingProps,d===null?Qk(s):bn=d,E0.current=null}function Qk(s){var d=s;do{var v=d.alternate;if(s=d.return,(d.flags&32768)===0){if(v=cq(v,d,ii),v!==null){bn=v;return}}else{if(v=uq(v,d),v!==null){v.flags&=32767,bn=v;return}if(s!==null)s.flags|=32768,s.subtreeFlags=0,s.deletions=null;else{On=6,bn=null;return}}if(d=d.sibling,d!==null){bn=d;return}bn=d=s}while(d!==null);On===0&&(On=5)}function Wl(s,d,v){var b=mt,A=Ti.transition;try{Ti.transition=null,mt=1,yq(s,d,v,b)}finally{Ti.transition=A,mt=b}return null}function yq(s,d,v,b){do Tu();while(Cs!==null);if((wt&6)!==0)throw Error(n(327));v=s.finishedWork;var A=s.finishedLanes;if(v===null)return null;if(s.finishedWork=null,s.finishedLanes=0,v===s.current)throw Error(n(177));s.callbackNode=null,s.callbackPriority=0;var R=v.lanes|v.childLanes;if(ln(s,R),s===Vn&&(bn=Vn=null,Xn=0),(v.subtreeFlags&2064)===0&&(v.flags&2064)===0||sg||(sg=!0,nC(Uc,function(){return Tu(),null})),R=(v.flags&15990)!==0,(v.subtreeFlags&15990)!==0||R){R=Ti.transition,Ti.transition=null;var B=mt;mt=1;var Z=wt;wt|=4,E0.current=null,fq(s,v),qk(v,s),wi(Ve),Al=!!ke,Ve=ke=null,s.current=v,hq(v),Wc(),wt=Z,mt=B,Ti.transition=R}else s.current=v;if(sg&&(sg=!1,Cs=s,lg=A),R=s.pendingLanes,R===0&&(ks=null),_l(v.stateNode),Ir(s,Qt()),d!==null)for(b=s.onRecoverableError,v=0;v<d.length;v++)A=d[v],b(A.value,{componentStack:A.stack,digest:A.digest});if(og)throw og=!1,s=D0,D0=null,s;return(lg&1)!==0&&s.tag!==0&&Tu(),R=s.pendingLanes,(R&1)!==0?s===I0?Xf++:(Xf=0,I0=s):Xf=0,Ps(),null}function Tu(){if(Cs!==null){var s=os(lg),d=Ti.transition,v=mt;try{if(Ti.transition=null,mt=16>s?16:s,Cs===null)var b=!1;else{if(s=Cs,Cs=null,lg=0,(wt&6)!==0)throw Error(n(331));var A=wt;for(wt|=4,Re=s.current;Re!==null;){var R=Re,B=R.child;if((Re.flags&16)!==0){var Z=R.deletions;if(Z!==null){for(var te=0;te<Z.length;te++){var fe=Z[te];for(Re=fe;Re!==null;){var _e=Re;switch(_e.tag){case 0:case 11:case 15:Kf(8,_e,R)}var je=_e.child;if(je!==null)je.return=_e,Re=je;else for(;Re!==null;){_e=Re;var be=_e.sibling,Oe=_e.return;if(Lk(_e),_e===fe){Re=null;break}if(be!==null){be.return=Oe,Re=be;break}Re=Oe}}}var Le=R.alternate;if(Le!==null){var Be=Le.child;if(Be!==null){Le.child=null;do{var mn=Be.sibling;Be.sibling=null,Be=mn}while(Be!==null)}}Re=R}}if((R.subtreeFlags&2064)!==0&&B!==null)B.return=R,Re=B;else e:for(;Re!==null;){if(R=Re,(R.flags&2048)!==0)switch(R.tag){case 0:case 11:case 15:Kf(9,R,R.return)}var le=R.sibling;if(le!==null){le.return=R.return,Re=le;break e}Re=R.return}}var ae=s.current;for(Re=ae;Re!==null;){B=Re;var ce=B.child;if((B.subtreeFlags&2064)!==0&&ce!==null)ce.return=B,Re=ce;else e:for(B=ae;Re!==null;){if(Z=Re,(Z.flags&2048)!==0)try{switch(Z.tag){case 0:case 11:case 15:rg(9,Z)}}catch(ze){cn(Z,Z.return,ze)}if(Z===B){Re=null;break e}var Pe=Z.sibling;if(Pe!==null){Pe.return=Z.return,Re=Pe;break e}Re=Z.return}}if(wt=A,Ps(),Kr&&typeof Kr.onPostCommitFiberRoot=="function")try{Kr.onPostCommitFiberRoot(wl,s)}catch{}b=!0}return b}finally{mt=v,Ti.transition=d}}return!1}function Jk(s,d,v){d=ju(v,d),d=vk(s,d,1),s=As(s,d,1),d=Nr(),s!==null&&(Zr(s,1,d),Ir(s,d))}function cn(s,d,v){if(s.tag===3)Jk(s,s,v);else for(;d!==null;){if(d.tag===3){Jk(d,s,v);break}else if(d.tag===1){var b=d.stateNode;if(typeof d.type.getDerivedStateFromError=="function"||typeof b.componentDidCatch=="function"&&(ks===null||!ks.has(b))){s=ju(v,s),s=yk(d,s,1),d=As(d,s,1),s=Nr(),d!==null&&(Zr(d,1,s),Ir(d,s));break}}d=d.return}}function xq(s,d,v){var b=s.pingCache;b!==null&&b.delete(d),d=Nr(),s.pingedLanes|=s.suspendedLanes&v,Vn===s&&(Xn&v)===v&&(On===4||On===3&&(Xn&130023424)===Xn&&500>Qt()-R0?Vl(s,0):M0|=v),Ir(s,d)}function eC(s,d){d===0&&((s.mode&1)===0?d=1:(d=is,is<<=1,(is&130023424)===0&&(is=4194304)));var v=Nr();s=po(s,d),s!==null&&(Zr(s,d,v),Ir(s,v))}function bq(s){var d=s.memoizedState,v=0;d!==null&&(v=d.retryLane),eC(s,v)}function wq(s,d){var v=0;switch(s.tag){case 13:var b=s.stateNode,A=s.memoizedState;A!==null&&(v=A.retryLane);break;case 19:b=s.stateNode;break;default:throw Error(n(314))}b!==null&&b.delete(d),eC(s,v)}var tC;tC=function(s,d,v){if(s!==null)if(s.memoizedProps!==d.pendingProps||Er.current)Rr=!0;else{if((s.lanes&v)===0&&(d.flags&128)===0)return Rr=!1,lq(s,d,v);Rr=(s.flags&131072)!==0}else Rr=!1,Kt&&(d.flags&1048576)!==0&&RT(d,Fm,d.index);switch(d.lanes=0,d.tag){case 2:var b=d.type;tg(s,d),s=d.pendingProps;var A=gu(d,ur.current);_u(d,v),A=d0(null,d,b,s,A,v);var R=f0();return d.flags|=1,typeof A=="object"&&A!==null&&typeof A.render=="function"&&A.$$typeof===void 0?(d.tag=1,d.memoizedState=null,d.updateQueue=null,Mr(b)?(R=!0,Lm(d)):R=!1,d.memoizedState=A.state!==null&&A.state!==void 0?A.state:null,i0(d),A.updater=Jm,d.stateNode=A,A._reactInternals=d,y0(d,b,s,v),d=_0(null,d,b,!0,R,v)):(d.tag=0,Kt&&R&&Kx(d),Pr(null,d,A,v),d=d.child),d;case 16:b=d.elementType;e:{switch(tg(s,d),s=d.pendingProps,A=b._init,b=A(b._payload),d.type=b,A=d.tag=Sq(b),s=Qi(b,s),A){case 0:d=w0(null,d,b,s,v);break e;case 1:d=Ak(null,d,b,s,v);break e;case 11:d=_k(null,d,b,s,v);break e;case 14:d=Sk(null,d,b,Qi(b.type,s),v);break e}throw Error(n(306,b,""))}return d;case 0:return b=d.type,A=d.pendingProps,A=d.elementType===b?A:Qi(b,A),w0(s,d,b,A,v);case 1:return b=d.type,A=d.pendingProps,A=d.elementType===b?A:Qi(b,A),Ak(s,d,b,A,v);case 3:e:{if(Tk(d),s===null)throw Error(n(387));b=d.pendingProps,R=d.memoizedState,A=R.element,VT(s,d),Hm(d,b,null,v);var B=d.memoizedState;if(b=B.element,R.isDehydrated)if(R={element:b,isDehydrated:!1,cache:B.cache,pendingSuspenseBoundaries:B.pendingSuspenseBoundaries,transitions:B.transitions},d.updateQueue.baseState=R,d.memoizedState=R,d.flags&256){A=ju(Error(n(423)),d),d=kk(s,d,b,v,A);break e}else if(b!==A){A=ju(Error(n(424)),d),d=kk(s,d,b,v,A);break e}else for(ri=Ta(d.stateNode.containerInfo.firstChild),ni=d,Kt=!0,Xi=null,v=zT(d,null,b,v),d.child=v;v;)v.flags=v.flags&-3|4096,v=v.sibling;else{if(xu(),b===A){d=go(s,d,v);break e}Pr(s,d,b,v)}d=d.child}return d;case 5:return HT(d),s===null&&Xx(d),b=d.type,A=d.pendingProps,R=s!==null?s.memoizedProps:null,B=A.children,it(b,A)?B=null:R!==null&&it(b,R)&&(d.flags|=32),Nk(s,d),Pr(s,d,B,v),d.child;case 6:return s===null&&Xx(d),null;case 13:return Ck(s,d,v);case 4:return a0(d,d.stateNode.containerInfo),b=d.pendingProps,s===null?d.child=bu(d,null,b,v):Pr(s,d,b,v),d.child;case 11:return b=d.type,A=d.pendingProps,A=d.elementType===b?A:Qi(b,A),_k(s,d,b,A,v);case 7:return Pr(s,d,d.pendingProps,v),d.child;case 8:return Pr(s,d,d.pendingProps.children,v),d.child;case 12:return Pr(s,d,d.pendingProps.children,v),d.child;case 10:e:{if(b=d.type._context,A=d.pendingProps,R=d.memoizedProps,B=A.value,Lt(Vm,b._currentValue),b._currentValue=B,R!==null)if(ei(R.value,B)){if(R.children===A.children&&!Er.current){d=go(s,d,v);break e}}else for(R=d.child,R!==null&&(R.return=d);R!==null;){var Z=R.dependencies;if(Z!==null){B=R.child;for(var te=Z.firstContext;te!==null;){if(te.context===b){if(R.tag===1){te=mo(-1,v&-v),te.tag=2;var fe=R.updateQueue;if(fe!==null){fe=fe.shared;var _e=fe.pending;_e===null?te.next=te:(te.next=_e.next,_e.next=te),fe.pending=te}}R.lanes|=v,te=R.alternate,te!==null&&(te.lanes|=v),n0(R.return,v,d),Z.lanes|=v;break}te=te.next}}else if(R.tag===10)B=R.type===d.type?null:R.child;else if(R.tag===18){if(B=R.return,B===null)throw Error(n(341));B.lanes|=v,Z=B.alternate,Z!==null&&(Z.lanes|=v),n0(B,v,d),B=R.sibling}else B=R.child;if(B!==null)B.return=R;else for(B=R;B!==null;){if(B===d){B=null;break}if(R=B.sibling,R!==null){R.return=B.return,B=R;break}B=B.return}R=B}Pr(s,d,A.children,v),d=d.child}return d;case 9:return A=d.type,b=d.pendingProps.children,_u(d,v),A=Ni(A),b=b(A),d.flags|=1,Pr(s,d,b,v),d.child;case 14:return b=d.type,A=Qi(b,d.pendingProps),A=Qi(b.type,A),Sk(s,d,b,A,v);case 15:return jk(s,d,d.type,d.pendingProps,v);case 17:return b=d.type,A=d.pendingProps,A=d.elementType===b?A:Qi(b,A),tg(s,d),d.tag=1,Mr(b)?(s=!0,Lm(d)):s=!1,_u(d,v),mk(d,b,A),y0(d,b,A,v),_0(null,d,b,!0,s,v);case 19:return Ek(s,d,v);case 22:return Pk(s,d,v)}throw Error(n(156,d.tag))};function nC(s,d){return dm(s,d)}function _q(s,d,v,b){this.tag=s,this.key=v,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=d,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 ki(s,d,v,b){return new _q(s,d,v,b)}function q0(s){return s=s.prototype,!(!s||!s.isReactComponent)}function Sq(s){if(typeof s=="function")return q0(s)?1:0;if(s!=null){if(s=s.$$typeof,s===q)return 11;if(s===ne)return 14}return 2}function Ms(s,d){var v=s.alternate;return v===null?(v=ki(s.tag,d,s.key,s.mode),v.elementType=s.elementType,v.type=s.type,v.stateNode=s.stateNode,v.alternate=s,s.alternate=v):(v.pendingProps=d,v.type=s.type,v.flags=0,v.subtreeFlags=0,v.deletions=null),v.flags=s.flags&14680064,v.childLanes=s.childLanes,v.lanes=s.lanes,v.child=s.child,v.memoizedProps=s.memoizedProps,v.memoizedState=s.memoizedState,v.updateQueue=s.updateQueue,d=s.dependencies,v.dependencies=d===null?null:{lanes:d.lanes,firstContext:d.firstContext},v.sibling=s.sibling,v.index=s.index,v.ref=s.ref,v}function fg(s,d,v,b,A,R){var B=2;if(b=s,typeof s=="function")q0(s)&&(B=1);else if(typeof s=="string")B=5;else e:switch(s){case I:return Ul(v.children,A,R,d);case $:B=8,A|=8;break;case z:return s=ki(12,v,d,A|2),s.elementType=z,s.lanes=R,s;case G:return s=ki(13,v,d,A),s.elementType=G,s.lanes=R,s;case Q:return s=ki(19,v,d,A),s.elementType=Q,s.lanes=R,s;case re:return hg(v,A,R,d);default:if(typeof s=="object"&&s!==null)switch(s.$$typeof){case Y:B=10;break e;case V:B=9;break e;case q:B=11;break e;case ne:B=14;break e;case ie:B=16,b=null;break e}throw Error(n(130,s==null?s:typeof s,""))}return d=ki(B,v,d,A),d.elementType=s,d.type=b,d.lanes=R,d}function Ul(s,d,v,b){return s=ki(7,s,b,d),s.lanes=v,s}function hg(s,d,v,b){return s=ki(22,s,b,d),s.elementType=re,s.lanes=v,s.stateNode={isHidden:!1},s}function V0(s,d,v){return s=ki(6,s,null,d),s.lanes=v,s}function W0(s,d,v){return d=ki(4,s.children!==null?s.children:[],s.key,d),d.lanes=v,d.stateNode={containerInfo:s.containerInfo,pendingChildren:null,implementation:s.implementation},d}function jq(s,d,v,b,A){this.tag=d,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=as(0),this.expirationTimes=as(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=as(0),this.identifierPrefix=b,this.onRecoverableError=A,this.mutableSourceEagerHydrationData=null}function U0(s,d,v,b,A,R,B,Z,te){return s=new jq(s,d,v,Z,te),d===1?(d=1,R===!0&&(d|=8)):d=0,R=ki(3,null,null,d),s.current=R,R.stateNode=s,R.memoizedState={element:b,isDehydrated:v,cache:null,transitions:null,pendingSuspenseBoundaries:null},i0(R),s}function Pq(s,d,v){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:M,key:b==null?null:""+b,children:s,containerInfo:d,implementation:v}}function rC(s){if(!s)return js;s=s._reactInternals;e:{if(ba(s)!==s||s.tag!==1)throw Error(n(170));var d=s;do{switch(d.tag){case 3:d=d.stateNode.context;break e;case 1:if(Mr(d.type)){d=d.stateNode.__reactInternalMemoizedMergedChildContext;break e}}d=d.return}while(d!==null);throw Error(n(171))}if(s.tag===1){var v=s.type;if(Mr(v))return OT(s,v,d)}return d}function iC(s,d,v,b,A,R,B,Z,te){return s=U0(v,b,!0,s,A,R,B,Z,te),s.context=rC(null),v=s.current,b=Nr(),A=Os(v),R=mo(b,A),R.callback=d??null,As(v,R,A),s.current.lanes=A,Zr(s,A,b),Ir(s,b),s}function pg(s,d,v,b){var A=d.current,R=Nr(),B=Os(A);return v=rC(v),d.context===null?d.context=v:d.pendingContext=v,d=mo(R,B),d.payload={element:s},b=b===void 0?null:b,b!==null&&(d.callback=b),s=As(A,d,B),s!==null&&(ta(s,A,B,R),Um(s,A,B)),B}function mg(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 aC(s,d){if(s=s.memoizedState,s!==null&&s.dehydrated!==null){var v=s.retryLane;s.retryLane=v!==0&&v<d?v:d}}function H0(s,d){aC(s,d),(s=s.alternate)&&aC(s,d)}function Nq(){return null}var oC=typeof reportError=="function"?reportError:function(s){console.error(s)};function G0(s){this._internalRoot=s}gg.prototype.render=G0.prototype.render=function(s){var d=this._internalRoot;if(d===null)throw Error(n(409));pg(s,d,null,null)},gg.prototype.unmount=G0.prototype.unmount=function(){var s=this._internalRoot;if(s!==null){this._internalRoot=null;var d=s.containerInfo;ql(function(){pg(null,s,null,null)}),d[jt]=null}};function gg(s){this._internalRoot=s}gg.prototype.unstable_scheduleHydration=function(s){if(s){var d=Yc();s={blockedOn:null,target:s,priority:d};for(var v=0;v<Tn.length&&d!==0&&d<Tn[v].priority;v++);Tn.splice(v,0,s),v===0&&Xc(s)}};function K0(s){return!(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11)}function vg(s){return!(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11&&(s.nodeType!==8||s.nodeValue!==" react-mount-point-unstable "))}function sC(){}function Aq(s,d,v,b,A){if(A){if(typeof b=="function"){var R=b;b=function(){var fe=mg(B);R.call(fe)}}var B=iC(d,b,s,0,null,!1,!1,"",sC);return s._reactRootContainer=B,s[jt]=B.current,xs(s.nodeType===8?s.parentNode:s),ql(),B}for(;A=s.lastChild;)s.removeChild(A);if(typeof b=="function"){var Z=b;b=function(){var fe=mg(te);Z.call(fe)}}var te=U0(s,0,!1,null,null,!1,!1,"",sC);return s._reactRootContainer=te,s[jt]=te.current,xs(s.nodeType===8?s.parentNode:s),ql(function(){pg(d,te,v,b)}),te}function yg(s,d,v,b,A){var R=v._reactRootContainer;if(R){var B=R;if(typeof A=="function"){var Z=A;A=function(){var te=mg(B);Z.call(te)}}pg(d,B,s,A)}else B=Aq(v,d,s,A,b);return mg(B)}Kc=function(s){switch(s.tag){case 3:var d=s.stateNode;if(d.current.memoizedState.isDehydrated){var v=tt(d.pendingLanes);v!==0&&(Hi(d,v|1),Ir(d,Qt()),(wt&6)===0&&(Au=Qt()+500,Ps()))}break;case 13:ql(function(){var b=po(s,1);if(b!==null){var A=Nr();ta(b,s,1,A)}}),H0(s,1)}},Qa=function(s){if(s.tag===13){var d=po(s,134217728);if(d!==null){var v=Nr();ta(d,s,134217728,v)}H0(s,134217728)}},Zc=function(s){if(s.tag===13){var d=Os(s),v=po(s,d);if(v!==null){var b=Nr();ta(v,s,d,b)}H0(s,d)}},Yc=function(){return mt},Sl=function(s,d){var v=mt;try{return mt=s,d()}finally{mt=v}},ft=function(s,d,v){switch(d){case"input":if(bt(s,v),d=v.name,v.type==="radio"&&d!=null){for(v=s;v.parentNode;)v=v.parentNode;for(v=v.querySelectorAll("input[name="+JSON.stringify(""+d)+'][type="radio"]'),d=0;d<v.length;d++){var b=v[d];if(b!==s&&b.form===s.form){var A=pu(b);if(!A)throw Error(n(90));he(b),bt(b,A)}}}break;case"textarea":Za(s,v);break;case"select":d=v.value,d!=null&&Xt(s,!!v.multiple,d,!1)}},Hr=B0,ar=ql;var Tq={usingClientEntryPoint:!1,Events:[lo,co,pu,An,yn,B0]},Qf={findFiberByHostInstance:so,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},kq={bundleType:Qf.bundleType,version:Qf.version,rendererPackageName:Qf.rendererPackageName,rendererConfig:Qf.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:E.ReactCurrentDispatcher,findHostInstanceByFiber:function(s){return s=cm(s),s===null?null:s.stateNode},findFiberByHostInstance:Qf.findFiberByHostInstance||Nq,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var xg=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!xg.isDisabled&&xg.supportsFiber)try{wl=xg.inject(kq),Kr=xg}catch{}}return Lr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Tq,Lr.createPortal=function(s,d){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!K0(d))throw Error(n(200));return Pq(s,d,null,v)},Lr.createRoot=function(s,d){if(!K0(s))throw Error(n(299));var v=!1,b="",A=oC;return d!=null&&(d.unstable_strictMode===!0&&(v=!0),d.identifierPrefix!==void 0&&(b=d.identifierPrefix),d.onRecoverableError!==void 0&&(A=d.onRecoverableError)),d=U0(s,1,!1,null,null,v,!1,b,A),s[jt]=d.current,xs(s.nodeType===8?s.parentNode:s),new G0(d)},Lr.findDOMNode=function(s){if(s==null)return null;if(s.nodeType===1)return s;var d=s._reactInternals;if(d===void 0)throw typeof s.render=="function"?Error(n(188)):(s=Object.keys(s).join(","),Error(n(268,s)));return s=cm(d),s=s===null?null:s.stateNode,s},Lr.flushSync=function(s){return ql(s)},Lr.hydrate=function(s,d,v){if(!vg(d))throw Error(n(200));return yg(null,s,d,!0,v)},Lr.hydrateRoot=function(s,d,v){if(!K0(s))throw Error(n(405));var b=v!=null&&v.hydratedSources||null,A=!1,R="",B=oC;if(v!=null&&(v.unstable_strictMode===!0&&(A=!0),v.identifierPrefix!==void 0&&(R=v.identifierPrefix),v.onRecoverableError!==void 0&&(B=v.onRecoverableError)),d=iC(d,null,s,1,v??null,A,!1,R,B),s[jt]=d.current,xs(s),b)for(s=0;s<b.length;s++)v=b[s],A=v._getVersion,A=A(v._source),d.mutableSourceEagerHydrationData==null?d.mutableSourceEagerHydrationData=[v,A]:d.mutableSourceEagerHydrationData.push(v,A);return new gg(d)},Lr.render=function(s,d,v){if(!vg(d))throw Error(n(200));return yg(null,s,d,!1,v)},Lr.unmountComponentAtNode=function(s){if(!vg(s))throw Error(n(40));return s._reactRootContainer?(ql(function(){yg(null,null,s,!1,function(){s._reactRootContainer=null,s[jt]=null})}),!0):!1},Lr.unstable_batchedUpdates=B0,Lr.unstable_renderSubtreeIntoContainer=function(s,d,v,b){if(!vg(v))throw Error(n(200));if(s==null||s._reactInternals===void 0)throw Error(n(38));return yg(s,d,v,!1,b)},Lr.version="18.3.1-next-f1338f8080-20240426",Lr}var gC;function QL(){if(gC)return Q0.exports;gC=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(),Q0.exports=Lq(),Q0.exports}var vC;function $q(){if(vC)return _g;vC=1;var e=QL();return _g.createRoot=e.createRoot,_g.hydrateRoot=e.hydrateRoot,_g}var Bq=$q();const Fq=kt(Bq),zq=20,qq=1e6,Po={ADD_TOAST:"ADD_TOAST",UPDATE_TOAST:"UPDATE_TOAST",DISMISS_TOAST:"DISMISS_TOAST",REMOVE_TOAST:"REMOVE_TOAST"};let tb=0;function Vq(){return tb=(tb+1)%Number.MAX_VALUE,tb.toString()}const nb=new Map,yC=e=>{if(nb.has(e))return;const t=setTimeout(()=>{nb.delete(e),Sh({type:Po.REMOVE_TOAST,toastId:e})},qq);nb.set(e,t)},Wq=(e,t)=>
40{switch(t.type){case Po.ADD_TOAST:return{...e,toasts:[t.toast,...e.toasts].slice(0,zq)};case Po.UPDATE_TOAST:return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case Po.DISMISS_TOAST:{const{toastId:n}=t;return n?yC(n):e.toasts.forEach(r=>{yC(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case Po.REMOVE_TOAST:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},ev=[];let tv={toasts:[]};function Sh(e){tv=Wq(tv,e),ev.forEach(t=>{t(tv)})}function Uq({...e}){const t=Vq(),n=i=>Sh({type:Po.UPDATE_TOAST,toast:{...i,id:t}}),r=()=>Sh({type:Po.DISMISS_TOAST,toastId:t});return Sh({type:Po.ADD_TOAST,toast:{...e,id:t,open:!0,onOpenChange:i=>{i||r()}}}),{id:t,dismiss:r,update:n}}function JL(){const[e,t]=k.useState(tv);return k.useEffect(()=>(ev.push(t),()=>{const n=ev.indexOf(t);n>-1&&ev.splice(n,1)}),[e]),{...e,toast:Uq,dismiss:n=>Sh({type:Po.DISMISS_TOAST,toastId:n})}}function e3(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=e3(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function yt(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=e3(e))&&(r&&(r+=" "),r+=t);return r}const xC=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,bC=yt,Py=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return bC(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:i,defaultVariants:a}=t,o=Object.keys(i).map(h=>{const g=n==null?void 0:n[h],p=a==null?void 0:a[h];if(g===null)return null;const y=xC(g)||xC(p);return i[h][y]}),u=n&&Object.entries(n).reduce((h,g)=>{let[p,y]=g;return y===void 0||(h[p]=y),h},{}),f=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((h,g)=>{let{class:p,className:y,...w}=g;return Object.entries(w).every(j=>{let[S,_]=j;return Array.isArray(_)?_.includes({...a,...u}[S]):{...a,...u}[S]===_})?[...h,p,y]:h},[]);return bC(e,o,f,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 Hq=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),t3=(...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 Gq={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 Kq=k.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:a,iconNode:o,...u},f)=>k.createElement("svg",{ref:f,...Gq,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:t3("lucide",i),...u},[...o.map(([h,g])=>k.createElement(h,g)),...Array.isArray(a)?a:[a]]));/**
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 He=(e,t)=>{const n=k.forwardRef(({className:r,...i},a)=>k.createElement(Kq,{ref:a,iconNode:t,className:t3(`lucide-${Hq(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 Zq=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Gd=He("ArrowLeft",Zq);/**
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 Yq=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Ln=He("ArrowRight",Yq);/**
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 Xq=[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]],ko=He("Award",Xq);/**
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 Qq=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]],jh=He("BookOpen",Qq);/**
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 Jq=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]],n3=He("CalendarDays",Jq);/**
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 eV=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],fd=He("Calendar",eV);/**
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 tV=[["path",{d:"M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z",key:"1tc9qg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]],nV=He("Camera",tV);/**
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 rV=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],r3=He("ChartColumn",rV);/**
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 iV=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],$u=He("Check",iV);/**
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 aV=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Ny=He("ChevronDown",aV);/**
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 oV=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],i3=He("ChevronLeft",oV);/**
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 sV=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],a3=He("ChevronRight",sV);/**
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 lV=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],o3=He("ChevronUp",lV);/**
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 cV=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],uV=He("CircleAlert",cV);/**
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 dV=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],hd=He("CircleCheckBig",dV);/**
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 fV=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Ay=He("CircleCheck",fV);/**
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 hV=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]],wC=He("ClipboardList",hV);/**
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 pV=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],Rh=He("Clock",pV);/**
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 mV=[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]],gV=He("DollarSign",mV);/**
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 vV=[["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"}]],yV=He("Download",vV);/**
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 xV=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],fi=He("ExternalLink",xV);/**
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 bV=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],s3=He("FileText",bV);/**
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 wV=[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]],Ty=He("Filter",wV);/**
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 _V=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],sN=He("Globe",_V);/**
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 SV=[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]],jV=He("GraduationCap",SV);/**
186 * @license lucide-react v0.475.0 - ISC
187 *
188 * This source code is licensed under the ISC license.
189 * See the LICENSE file in the root directory of this source tree.
190 */const PV=[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]],NV=He("Heart",PV);/**
191 * @license lucide-react v0.475.0 - ISC
192 *
193 * This source code is licensed under the ISC license.
194 * See the LICENSE file in the root directory of this source tree.
195 */const AV=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]],TV=He("House",AV);/**
196 * @license lucide-react v0.475.0 - ISC
197 *
198 * This source code is licensed under the ISC license.
199 * See the LICENSE file in the root directory of this source tree.
200 */const kV=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],CV=He("Image",kV);/**
201 * @license lucide-react v0.475.0 - ISC
202 *
203 * This source code is licensed under the ISC license.
204 * See the LICENSE file in the root directory of this source tree.
205 */const OV=[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]],EV=He("LayoutGrid",OV);/**
206 * @license lucide-react v0.475.0 - ISC
207 *
208 * This source code is licensed under the ISC license.
209 * See the LICENSE file in the root directory of this source tree.
210 */const MV=[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]],RV=He("List",MV);/**
211 * @license lucide-react v0.475.0 - ISC
212 *
213 * This source code is licensed under the ISC license.
214 * See the LICENSE file in the root directory of this source tree.
215 */const DV=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],IV=He("LoaderCircle",DV);/**
216 * @license lucide-react v0.475.0 - ISC
217 *
218 * This source code is licensed under the ISC license.
219 * See the LICENSE file in the root directory of this source tree.
220 */const LV=[["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"}]],rr=He("Mail",LV);/**
221 * @license lucide-react v0.475.0 - ISC
222 *
223 * This source code is licensed under the ISC license.
224 * See the LICENSE file in the root directory of this source tree.
225 */const $V=[["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"}]],Wr=He("MapPin",$V);/**
226 * @license lucide-react v0.475.0 - ISC
227 *
228 * This source code is licensed under the ISC license.
229 * See the LICENSE file in the root directory of this source tree.
230 */const BV=[["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"}]],FV=He("Menu",BV);/**
231 * @license lucide-react v0.475.0 - ISC
232 *
233 * This source code is licensed under the ISC license.
234 * See the LICENSE file in the root directory of this source tree.
235 */const zV=[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]],qV=He("MessageSquare",zV);/**
236 * @license lucide-react v0.475.0 - ISC
237 *
238 * This source code is licensed under the ISC license.
239 * See the LICENSE file in the root directory of this source tree.
240 */const VV=[["path",{d:"M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-2 2Zm0 0a2 2 0 0 1-2-2v-9c0-1.1.9-2 2-2h2",key:"7pis2x"}],["path",{d:"M18 14h-8",key:"sponae"}],["path",{d:"M15 18h-5",key:"95g1m2"}],["path",{d:"M10 6h8v4h-8V6Z",key:"smlsk5"}]],WV=He("Newspaper",VV);/**
241 * @license lucide-react v0.475.0 - ISC
242 *
243 * This source code is licensed under the ISC license.
244 * See the LICENSE file in the root directory of this source tree.
245 */const UV=[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]],HV=He("Phone",UV);/**
246 * @license lucide-react v0.475.0 - ISC
247 *
248 * This source code is licensed under the ISC license.
249 * See the LICENSE file in the root directory of this source tree.
250 */const GV=[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]],KV=He("Play",GV);/**
251 * @license lucide-react v0.475.0 - ISC
252 *
253 * This source code is licensed under the ISC license.
254 * See the LICENSE file in the root directory of this source tree.
255 */const ZV=[["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"}]],YV=He("RefreshCw",ZV);/**
256 * @license lucide-react v0.475.0 - ISC
257 *
258 * This source code is licensed under the ISC license.
259 * See the LICENSE file in the root directory of this source tree.
260 */const XV=[["path",{d:"m16 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z",key:"7g6ntu"}],["path",{d:"m2 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z",key:"ijws7r"}],["path",{d:"M7 21h10",key:"1b0cd5"}],["path",{d:"M12 3v18",key:"108xh3"}
260],["path",{d:"M3 7h2c2 0 5-1 7-2 2 1 5 2 7 2h2",key:"3gwbw2"}]],IS=He("Scale",XV);/**
261 * @license lucide-react v0.475.0 - ISC
262 *
263 * This source code is licensed under the ISC license.
264 * See the LICENSE file in the root directory of this source tree.
265 */const QV=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],ky=He("Search",QV);/**
266 * @license lucide-react v0.475.0 - ISC
267 *
268 * This source code is licensed under the ISC license.
269 * See the LICENSE file in the root directory of this source tree.
270 */const JV=[["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"}]],eW=He("Shield",JV);/**
271 * @license lucide-react v0.475.0 - ISC
272 *
273 * This source code is licensed under the ISC license.
274 * See the LICENSE file in the root directory of this source tree.
275 */const tW=[["path",{d:"M21 10.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.5",key:"1uzm8b"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],nW=He("SquareCheckBig",tW);/**
276 * @license lucide-react v0.475.0 - ISC
277 *
278 * This source code is licensed under the ISC license.
279 * See the LICENSE file in the root directory of this source tree.
280 */const rW=[["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"}]],iW=He("Star",rW);/**
281 * @license lucide-react v0.475.0 - ISC
282 *
283 * This source code is licensed under the ISC license.
284 * See the LICENSE file in the root directory of this source tree.
285 */const aW=[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]],l3=He("Tag",aW);/**
286 * @license lucide-react v0.475.0 - ISC
287 *
288 * This source code is licensed under the ISC license.
289 * See the LICENSE file in the root directory of this source tree.
290 */const oW=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],Dh=He("Target",oW);/**
291 * @license lucide-react v0.475.0 - ISC
292 *
293 * This source code is licensed under the ISC license.
294 * See the LICENSE file in the root directory of this source tree.
295 */const sW=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]],lW=He("Trash2",sW);/**
296 * @license lucide-react v0.475.0 - ISC
297 *
298 * This source code is licensed under the ISC license.
299 * See the LICENSE file in the root directory of this source tree.
300 */const cW=[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]],uW=He("TrendingUp",cW);/**
301 * @license lucide-react v0.475.0 - ISC
302 *
303 * This source code is licensed under the ISC license.
304 * See the LICENSE file in the root directory of this source tree.
305 */const dW=[["path",{d:"M6 9H4.5a2.5 2.5 0 0 1 0-5H6",key:"17hqa7"}],["path",{d:"M18 9h1.5a2.5 2.5 0 0 0 0-5H18",key:"lmptdp"}],["path",{d:"M4 22h16",key:"57wxv0"}],["path",{d:"M10 14.66V17c0 .55-.47.98-.97 1.21C7.85 18.75 7 20.24 7 22",key:"1nw9bq"}],["path",{d:"M14 14.66V17c0 .55.47.98.97 1.21C16.15 18.75 17 20.24 17 22",key:"1np0yb"}],["path",{d:"M18 2H6v7a6 6 0 0 0 12 0V2Z",key:"u46fv3"}]],Fi=He("Trophy",dW);/**
306 * @license lucide-react v0.475.0 - ISC
307 *
308 * This source code is licensed under the ISC license.
309 * See the LICENSE file in the root directory of this source tree.
310 */const fW=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],c3=He("User",fW);/**
311 * @license lucide-react v0.475.0 - ISC
312 *
313 * This source code is licensed under the ISC license.
314 * See the LICENSE file in the root directory of this source tree.
315 */const hW=[["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"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]],qr=He("Users",hW);/**
316 * @license lucide-react v0.475.0 - ISC
317 *
318 * This source code is licensed under the ISC license.
319 * See the LICENSE file in the root directory of this source tree.
320 */const pW=[["path",{d:"M18 6 6 18",key:"1bl5f8"}
vendor: 9,304 bytes, lines 320-325
320],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Cy=He("X",pW);/**
321 * @license lucide-react v0.475.0 - ISC
322 *
323 * This source code is licensed under the ISC license.
324 * See the LICENSE file in the root directory of this source tree.
325 */const mW=[["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"}]],gW=He("Zap",mW),vW=(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},yW=(e,t)=>({classGroupId:e,validator:t}),u3=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),uv="-",_C=[],xW="arbitrary..",bW=e=>{const t=_W(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:o=>{if(o.startsWith("[")&&o.endsWith("]"))return wW(o);const u=o.split(uv),f=u[0]===""&&u.length>1?1:0;return d3(u,f,t)},getConflictingClassGroupIds:(o,u)=>{if(u){const f=r[o],h=n[o];return f?h?vW(h,f):f:h||_C}return n[o]||_C}}},d3=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const i=e[t],a=n.nextPart.get(i);if(a){const h=d3(e,t+1,a);if(h)return h}const o=n.validators;if(o===null)return;const u=t===0?e.join(uv):e.slice(t).join(uv),f=o.length;for(let h=0;h<f;h++){const g=o[h];if(g.validator(u))return g.classGroupId}},wW=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?xW+r:void 0})(),_W=e=>{const{theme:t,classGroups:n}=e;return SW(n,t)},SW=(e,t)=>{const n=u3();for(const r in e){const i=e[r];lN(i,n,r,t)}return n},lN=(e,t,n,r)=>{const i=e.length;for(let a=0;a<i;a++){const o=e[a];jW(o,t,n,r)}},jW=(e,t,n,r)=>{if(typeof e=="string"){PW(e,t,n);return}if(typeof e=="function"){NW(e,t,n,r);return}AW(e,t,n,r)},PW=(e,t,n)=>{const r=e===""?t:f3(t,e);r.classGroupId=n},NW=(e,t,n,r)=>{if(TW(e)){lN(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(yW(n,e))},AW=(e,t,n,r)=>{const i=Object.entries(e),a=i.length;for(let o=0;o<a;o++){const[u,f]=i[o];lN(f,f3(t,u),n,r)}},f3=(e,t)=>{let n=e;const r=t.split(uv),i=r.length;for(let a=0;a<i;a++){const o=r[a];let u=n.nextPart.get(o);u||(u=u3(),n.nextPart.set(o,u)),n=u}return n},TW=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,kW=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const i=(a,o)=>{n[a]=o,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(a){let o=n[a];if(o!==void 0)return o;if((o=r[a])!==void 0)return i(a,o),o},set(a,o){a in n?n[a]=o:i(a,o)}}},LS="!",SC=":",CW=[],jC=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),OW=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=i=>{const a=[];let o=0,u=0,f=0,h;const g=i.length;for(let S=0;S<g;S++){const _=i[S];if(o===0&&u===0){if(_===SC){a.push(i.slice(f,S)),f=S+1;continue}if(_==="/"){h=S;continue}}_==="["?o++:_==="]"?o--:_==="("?u++:_===")"&&u--}const p=a.length===0?i:i.slice(f);let y=p,w=!1;p.endsWith(LS)?(y=p.slice(0,-1),w=!0):p.startsWith(LS)&&(y=p.slice(1),w=!0);const j=h&&h>f?h-f:void 0;return jC(a,w,y,j)};if(t){const i=t+SC,a=r;r=o=>o.startsWith(i)?a(o.slice(i.length)):jC(CW,!1,o,void 0,!0)}if(n){const i=r;r=a=>n({className:a,parseClassName:i})}return r},EW=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let i=[];for(let a=0;a<n.length;a++){const o=n[a],u=o[0]==="[",f=t.has(o);u||f?(i.length>0&&(i.sort(),r.push(...i),i=[]),r.push(o)):i.push(o)}return i.length>0&&(i.sort(),r.push(...i)),r}},MW=e=>({cache:kW(e.cacheSize),parseClassName:OW(e),sortModifiers:EW(e),postfixLookupClassGroupIds:RW(e),...bW(e)}),RW=e=>{const t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let r=0;r<n.length;r++)t[n[r]]=!0;return t},DW=/\s+/,IW=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,u=[],f=e.trim().split(DW);let h="";for(let g=f.length-1;g>=0;g-=1){const p=f[g],{isExternal:y,modifiers:w,hasImportantModifier:j,baseClassName:S,maybePostfixModifierPosition:_}=n(p);if(y){h=p+(h.length>0?" "+h:h);continue}let P=!!_,O;if(P){const I=S.substring(0,_);O=r(I);const $=O&&o[O]?r(S):void 0;$&&$!==O&&(O=$,P=!1)}else O=r(S);if(!O){if(!P){h=p+(h.length>0?" "+h:h);continue}if(O=r(S),!O){h=p+(h.length>0?" "+h:h);continue}P=!1}const C=w.length===0?"":w.length===1?w[0]:a(w).join(":"),E=j?C+LS:C,T=E+O;if(u.indexOf(T)>-1)continue;u.push(T);const M=i(O,P);for(let I=0;I<M.length;++I){const $=M[I];u.push(E+$)}h=p+(h.length>0?" "+h:h)}return h},LW=(...e)=>{let t=0,n,r,i="";for(;t<e.length;)(n=e[t++])&&(r=h3(n))&&(i&&(i+=" "),i+=r);return i},h3=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=h3(e[r]))&&(n&&(n+=" "),n+=t);return n},$W=(e,...t)=>{let n,r,i,a;const o=f=>{const h=t.reduce((g,p)=>p(g),e());return n=MW(h),r=n.cache.get,i=n.cache.set,a=u,u(f)},u=f=>{const h=r(f);if(h)return h;const g=IW(f,n);return i(f,g),g};return a=o,(...f)=>a(LW(...f))},BW=[],En=e=>{const t=n=>n[e]||BW;return t.isThemeGetter=!0,t},p3=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,m3=/^\((?:(\w[\w-]*):)?(.+)\)$/i,FW=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,zW=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,qW=/\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$/,VW=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,WW=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,UW=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ds=e=>FW.test(e),ot=e=>!!e&&!Number.isNaN(Number(e)),Ea=e=>!!e&&Number.isInteger(Number(e)),rb=e=>e.endsWith("%")&&ot(e.slice(0,-1)),yo=e=>zW.test(e),g3=()=>!0,HW=e=>qW.test(e)&&!VW.test(e),cN=()=>!1,GW=e=>WW.test(e),KW=e=>UW.test(e),ZW=e=>!Me(e)&&!De(e),YW=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),XW=e=>cl(e,x3,cN),Me=e=>p3.test(e),Hl=e=>cl(e,b3,HW),PC=e=>cl(e,aU,ot),QW=e=>cl(e,_3,g3),JW=e=>cl(e,w3,cN),NC=e=>cl(e,v3,cN),eU=e=>cl(e,y3,KW),Sg=e=>cl(e,S3,GW),De=e=>m3.test(e),eh=e=>Cc(e,b3),tU=e=>Cc(e,w3),AC=e=>Cc(e,v3),nU=e=>Cc(e,x3),rU=e=>Cc(e,y3),jg=e=>Cc(e,S3,!0),iU=e=>Cc(e,_3,!0),cl=(e,t,n)=>{const r=p3.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Cc=(e,t,n=!1)=>{const r=m3.exec(e);return r?r[1]?t(r[1]):n:!1},v3=e=>e==="position"||e==="percentage",y3=e=>e==="image"||e==="url",x3=e=>e==="length"||e==="size"||e==="bg-size",b3=e=>e==="length",aU=e=>e==="number",w3=e=>e==="family-name",_3=e=>e==="number"||e==="weight",S3=e=>e==="shadow",oU=()=>{const e=En("color"),t=En("font"),n=En("text"),r=En("font-weight"),i=En("tracking"),a=En("leading"),o=En("breakpoint"),u=En("container"),f=En("spacing"),h=En("radius"),g=En("shadow"),p=En("inset-shadow"),y=En("text-shadow"),w=En("drop-shadow"),j=En("blur"),S=En("perspective"),_=En("aspect"),P=En("ease"),O=En("animate"),C=()=>["auto","avoid","all","avoid-page","page","left","right","column"],E=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],T=()=>[...E(),De,Me],M=()=>["auto","hidden","clip","visible","scroll"],I=()=>["auto","contain","none"],$=()=>[De,Me,f],z=()=>[Ds,"full","auto",...$()],Y=()=>[Ea,"none","subgrid",De,Me],V=()=>["auto",{span:["full",Ea,De,Me]},Ea,De,Me],q=()=>[Ea,"auto",De,Me],G=()=>["auto","min","max","fr",De,Me],Q=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ne=()=>["start","end","center","stretch","center-safe","end-safe"],ie=()=>["auto",...$()],re=()=>[Ds,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...$()],W=()=>[Ds,"screen","full","dvw","lvw","svw","min","max","fit",...$()],oe=()=>[Ds,"screen","full","lh","dvh","lvh","svh","min","max","fit",...$()],U=()=>[e,De,Me],H=()=>[...E(),AC,NC,{position:[De,Me]}],ee=()=>["no-repeat",{repeat:["","x","y","space","round"]}],pe=()=>["auto","cover","contain",nU,XW,{size:[De,Me]}],we=()=>[rb,eh,Hl],ge=()=>["","none","full",h,De,Me],ye=()=>["",ot,eh,Hl],$e=()=>["solid","dashed","dotted","double"],xe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],de=()=>[ot,rb,AC,NC],Ae=()=>["","none",j,De,Me],Ne=()=>["none",ot,De,Me],he=()=>["none",ot,De,Me],Ee=()=>[ot,De,Me],Se=()=>[Ds,"full",...$()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[yo],breakpoint:[yo],color:[g3],container:[yo],"drop-shadow":[yo],ease:["in","out","in-out"],font:[ZW],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[yo],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[yo],shadow:[yo],spacing:["px",ot],text:[yo],"text-shadow":[yo],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ds,Me,De,_]}],container:["container"],"container-type":[{"@container":["","normal","size",De,Me]}
vendor: 6,150 bytes, line 325
325],"container-named":[YW],columns:[{columns:[ot,Me,De,u]}],"break-after":[{"break-after":C()}],"break-before":[{"break-before":C()}],"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:T()}],overflow:[{overflow:M()}],"overflow-x":[{"overflow-x":M()}],"overflow-y":[{"overflow-y":M()}],overscroll:[{overscroll:I()}],"overscroll-x":[{"overscroll-x":I()}],"overscroll-y":[{"overscroll-y":I()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:z()}],"inset-x":[{"inset-x":z()}],"inset-y":[{"inset-y":z()}],start:[{"inset-s":z(),start:z()}],end:[{"inset-e":z(),end:z()}],"inset-bs":[{"inset-bs":z()}],"inset-be":[{"inset-be":z()}],top:[{top:z()}],right:[{right:z()}],bottom:[{bottom:z()}],left:[{left:z()}],visibility:["visible","invisible","collapse"],z:[{z:[Ea,"auto",De,Me]}],basis:[{basis:[Ds,"full","auto",u,...$()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ot,Ds,"auto","initial","none",Me]}],grow:[{grow:["",ot,De,Me]}],shrink:[{shrink:["",ot,De,Me]}],order:[{order:[Ea,"first","last","none",De,Me]}],"grid-cols":[{"grid-cols":Y()}],"col-start-end":[{col:V()}],"col-start":[{"col-start":q()}],"col-end":[{"col-end":q()}],"grid-rows":[{"grid-rows":Y()}],"row-start-end":[{row:V()}],"row-start":[{"row-start":q()}],"row-end":[{"row-end":q()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":G()}],"auto-rows":[{"auto-rows":G()}],gap:[{gap:$()}],"gap-x":[{"gap-x":$()}],"gap-y":[{"gap-y":$()}],"justify-content":[{justify:[...Q(),"normal"]}],"justify-items":[{"justify-items":[...ne(),"normal"]}],"justify-self":[{"justify-self":["auto",...ne()]}],"align-content":[{content:["normal",...Q()]}],"align-items":[{items:[...ne(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ne(),{baseline:["","last"]}]}],"place-content":[{"place-content":Q()}],"place-items":[{"place-items":[...ne(),"baseline"]}],"place-self":[{"place-self":["auto",...ne()]}],p:[{p:$()}],px:[{px:$()}],py:[{py:$()}],ps:[{ps:$()}],pe:[{pe:$()}],pbs:[{pbs:$()}],pbe:[{pbe:$()}],pt:[{pt:$()}],pr:[{pr:$()}],pb:[{pb:$()}],pl:[{pl:$()}],m:[{m:ie()}],mx:[{mx:ie()}],my:[{my:ie()}],ms:[{ms:ie()}],me:[{me:ie()}],mbs:[{mbs:ie()}],mbe:[{mbe:ie()}],mt:[{mt:ie()}],mr:[{mr:ie()}],mb:[{mb:ie()}],ml:[{ml:ie()}],"space-x":[{"space-x":$()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":$()}],"space-y-reverse":["space-y-reverse"],size:[{size:re()}],"inline-size":[{inline:["auto",...W()]}],"min-inline-size":[{"min-inline":["auto",...W()]}],"max-inline-size":[{"max-inline":["none",...W()]}],"block-size":[{block:["auto",...oe()]}],"min-block-size":[{"min-block":["auto",...oe()]}],"max-block-size":[{"max-block":["none",...oe()]}],w:[{w:[u,"screen",...re()]}],"min-w":[{"min-w":[u,"screen","none",...re()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[o]},...re()]}],h:[{h:["screen","lh",...re()]}],"min-h":[{"min-h":["screen","lh","none",...re()]}],"max-h":[{"max-h":["screen","lh",...re()]}],"font-size":[{text:["base",n,eh,Hl]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,iU,QW]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",rb,Me]}],"font-family":[{font:[tU,JW,t]}],"font-features":[{"font-features":[Me]}],"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,De,Me]}],"line-clamp":[{"line-clamp":[ot,"none",De,PC]}],leading:[{leading:[a,...$()]}],"list-image":[{"list-image":["none",De,Me]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",De,Me]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:U()}],"text-color":[{text:U()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...$e(),"wavy"]}],"text-decoration-thickness":[{decoration:[ot,"from-font","auto",De,Hl]}],"text-decoration-color":[{decoration:U()}],"underline-offset":[{"underline-offset":[ot,"auto",De,Me]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:$()}],"tab-size":[{tab:[Ea,De,Me]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",De,Me]}],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",De,Me]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:H()}],"bg-repeat":[{bg:ee()}],"bg-size":[{bg:pe()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ea,De,Me],radial:["",De,Me],conic:[Ea,De,Me]},rU,eU]}],"bg-color":[{bg:U()}],"gradient-from-pos":[{from:we()}
vendor: 7,429 bytes, line 325
325],"gradient-via-pos":[{via:we()}],"gradient-to-pos":[{to:we()}],"gradient-from":[{from:U()}],"gradient-via":[{via:U()}],"gradient-to":[{to:U()}],rounded:[{rounded:ge()}],"rounded-s":[{"rounded-s":ge()}],"rounded-e":[{"rounded-e":ge()}],"rounded-t":[{"rounded-t":ge()}],"rounded-r":[{"rounded-r":ge()}],"rounded-b":[{"rounded-b":ge()}],"rounded-l":[{"rounded-l":ge()}],"rounded-ss":[{"rounded-ss":ge()}],"rounded-se":[{"rounded-se":ge()}],"rounded-ee":[{"rounded-ee":ge()}],"rounded-es":[{"rounded-es":ge()}],"rounded-tl":[{"rounded-tl":ge()}],"rounded-tr":[{"rounded-tr":ge()}],"rounded-br":[{"rounded-br":ge()}],"rounded-bl":[{"rounded-bl":ge()}],"border-w":[{border:ye()}],"border-w-x":[{"border-x":ye()}],"border-w-y":[{"border-y":ye()}],"border-w-s":[{"border-s":ye()}],"border-w-e":[{"border-e":ye()}],"border-w-bs":[{"border-bs":ye()}],"border-w-be":[{"border-be":ye()}],"border-w-t":[{"border-t":ye()}],"border-w-r":[{"border-r":ye()}],"border-w-b":[{"border-b":ye()}],"border-w-l":[{"border-l":ye()}],"divide-x":[{"divide-x":ye()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ye()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...$e(),"hidden","none"]}],"divide-style":[{divide:[...$e(),"hidden","none"]}],"border-color":[{border:U()}],"border-color-x":[{"border-x":U()}],"border-color-y":[{"border-y":U()}],"border-color-s":[{"border-s":U()}],"border-color-e":[{"border-e":U()}],"border-color-bs":[{"border-bs":U()}],"border-color-be":[{"border-be":U()}],"border-color-t":[{"border-t":U()}],"border-color-r":[{"border-r":U()}],"border-color-b":[{"border-b":U()}],"border-color-l":[{"border-l":U()}],"divide-color":[{divide:U()}],"outline-style":[{outline:[...$e(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ot,De,Me]}],"outline-w":[{outline:["",ot,eh,Hl]}],"outline-color":[{outline:U()}],shadow:[{shadow:["","none",g,jg,Sg]}],"shadow-color":[{shadow:U()}],"inset-shadow":[{"inset-shadow":["none",p,jg,Sg]}],"inset-shadow-color":[{"inset-shadow":U()}],"ring-w":[{ring:ye()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:U()}],"ring-offset-w":[{"ring-offset":[ot,Hl]}],"ring-offset-color":[{"ring-offset":U()}],"inset-ring-w":[{"inset-ring":ye()}],"inset-ring-color":[{"inset-ring":U()}],"text-shadow":[{"text-shadow":["none",y,jg,Sg]}],"text-shadow-color":[{"text-shadow":U()}],opacity:[{opacity:[ot,De,Me]}],"mix-blend":[{"mix-blend":[...xe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":xe()}],"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":[ot]}],"mask-image-linear-from-pos":[{"mask-linear-from":de()}],"mask-image-linear-to-pos":[{"mask-linear-to":de()}],"mask-image-linear-from-color":[{"mask-linear-from":U()}],"mask-image-linear-to-color":[{"mask-linear-to":U()}],"mask-image-t-from-pos":[{"mask-t-from":de()}],"mask-image-t-to-pos":[{"mask-t-to":de()}],"mask-image-t-from-color":[{"mask-t-from":U()}],"mask-image-t-to-color":[{"mask-t-to":U()}],"mask-image-r-from-pos":[{"mask-r-from":de()}],"mask-image-r-to-pos":[{"mask-r-to":de()}],"mask-image-r-from-color":[{"mask-r-from":U()}],"mask-image-r-to-color":[{"mask-r-to":U()}],"mask-image-b-from-pos":[{"mask-b-from":de()}],"mask-image-b-to-pos":[{"mask-b-to":de()}],"mask-image-b-from-color":[{"mask-b-from":U()}],"mask-image-b-to-color":[{"mask-b-to":U()}],"mask-image-l-from-pos":[{"mask-l-from":de()}],"mask-image-l-to-pos":[{"mask-l-to":de()}],"mask-image-l-from-color":[{"mask-l-from":U()}],"mask-image-l-to-color":[{"mask-l-to":U()}],"mask-image-x-from-pos":[{"mask-x-from":de()}],"mask-image-x-to-pos":[{"mask-x-to":de()}],"mask-image-x-from-color":[{"mask-x-from":U()}],"mask-image-x-to-color":[{"mask-x-to":U()}],"mask-image-y-from-pos":[{"mask-y-from":de()}],"mask-image-y-to-pos":[{"mask-y-to":de()}],"mask-image-y-from-color":[{"mask-y-from":U()}],"mask-image-y-to-color":[{"mask-y-to":U()}],"mask-image-radial":[{"mask-radial":[De,Me]}],"mask-image-radial-from-pos":[{"mask-radial-from":de()}],"mask-image-radial-to-pos":[{"mask-radial-to":de()}],"mask-image-radial-from-color":[{"mask-radial-from":U()}],"mask-image-radial-to-color":[{"mask-radial-to":U()}],"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":E()}],"mask-image-conic-pos":[{"mask-conic":[ot]}],"mask-image-conic-from-pos":[{"mask-conic-from":de()}],"mask-image-conic-to-pos":[{"mask-conic-to":de()}],"mask-image-conic-from-color":[{"mask-conic-from":U()}],"mask-image-conic-to-color":[{"mask-conic-to":U()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:H()}],"mask-repeat":[{mask:ee()}],"mask-size":[{mask:pe()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",De,Me]}],filter:[{filter:["","none",De,Me]}],blur:[{blur:Ae()}],brightness:[{brightness:[ot,De,Me]}],contrast:[{contrast:[ot,De,Me]}],"drop-shadow":[{"drop-shadow":["","none",w,jg,Sg]}],"drop-shadow-color":[{"drop-shadow":U()}],grayscale:[{grayscale:["",ot,De,Me]}],"hue-rotate":[{"hue-rotate":[ot,De,Me]}],invert:[{invert:["",ot,De,Me]}],saturate:[{saturate:[ot,De,Me]}],sepia:[{sepia:["",ot,De,Me]}],"backdrop-filter":[{"backdrop-filter":["","none",De,Me]}],"backdrop-blur":[{"backdrop-blur":Ae()}],"backdrop-brightness":[{"backdrop-brightness":[ot,De,Me]}],"backdrop-contrast":[{"backdrop-contrast":[ot,De,Me]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ot,De,Me]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ot,De,Me]}],"backdrop-invert":[{"backdrop-invert":["",ot,De,Me]}],"backdrop-opacity":[{"backdrop-opacity":[ot,De,Me]}],"backdrop-saturate":[{"backdrop-saturate":[ot,De,Me]}],"backdrop-sepia":[{"backdrop-sepia":["",ot,De,Me]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":$()}],"border-spacing-x":[{"border-spacing-x":$()}],"border-spacing-y":[{"border-spacing-y":$()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",De,Me]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ot,"initial",De,Me]}],ease:[{ease:["linear","initial",P,De,Me]}],delay:[{delay:[ot,De,Me]}],animate:[{animate:["none",O,De,Me]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[S,De,Me]}],"perspective-origin":[{"perspective-origin":T()}],rotate:[{rotate:Ne()}],"rotate-x":[{"rotate-x":Ne()}],"rotate-y":[{"rotate-y":Ne()}],"rotate-z":[{"rotate-z":Ne()}],scale:[{scale:he()}],"scale-x":[{"scale-x":he()}],"scale-y":[{"scale-y":he()}],"scale-z":[{"scale-z":he()}],"scale-3d":["scale-3d"],skew:[{skew:Ee()}],"skew-x":[{"skew-x":Ee()}],"skew-y":[{"skew-y":Ee()}],transform:[{transform:[De,Me,"","none","gpu","cpu"]}],"transform-origin":[{origin:T()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Se()}],"translate-x":[{"translate-x":Se()}],"translate-y":[{"translate-y":Se()}],"translate-z":[{"translate-z":Se()}],"translate-none":["translate-none"],zoom:[{zoom:[Ea,De,Me]}],accent:[{accent:U()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:U()}
vendor: 5,270 bytes, line 325
325],"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",De,Me]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":U()}],"scrollbar-track-color":[{"scrollbar-track":U()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":$()}],"scroll-mx":[{"scroll-mx":$()}],"scroll-my":[{"scroll-my":$()}],"scroll-ms":[{"scroll-ms":$()}],"scroll-me":[{"scroll-me":$()}],"scroll-mbs":[{"scroll-mbs":$()}],"scroll-mbe":[{"scroll-mbe":$()}],"scroll-mt":[{"scroll-mt":$()}],"scroll-mr":[{"scroll-mr":$()}],"scroll-mb":[{"scroll-mb":$()}],"scroll-ml":[{"scroll-ml":$()}],"scroll-p":[{"scroll-p":$()}],"scroll-px":[{"scroll-px":$()}],"scroll-py":[{"scroll-py":$()}],"scroll-ps":[{"scroll-ps":$()}],"scroll-pe":[{"scroll-pe":$()}],"scroll-pbs":[{"scroll-pbs":$()}],"scroll-pbe":[{"scroll-pbe":$()}],"scroll-pt":[{"scroll-pt":$()}],"scroll-pr":[{"scroll-pr":$()}],"scroll-pb":[{"scroll-pb":$()}],"scroll-pl":[{"scroll-pl":$()}],"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",De,Me]}],fill:[{fill:["none",...U()]}],"stroke-w":[{stroke:[ot,eh,Hl,PC]}],stroke:[{stroke:["none",...U()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],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"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},sU=$W(oU);function Ht(...e){return sU(yt(e))}const j3=k.forwardRef(({...e},t)=>c.jsx("div",{ref:t,className:"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}));
325j3.displayName="ToastProvider";const P3=k.forwardRef(({...e},t)=>c.jsx("div",{ref:t,className:"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}));P3.displayName="ToastViewport";const lU=Py("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"}}),N3=k.forwardRef(({className:e,variant:t,...n},r)=>c.jsx("div",{ref:r,className:Ht(lU({variant:t}),e),...n}));N3.displayName="Toast";const cU=k.forwardRef(({className:e,...t},n)=>c.jsx("div",{ref:n,className:Ht("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}));cU.displayName="ToastAction";const A3=k.forwardRef(({className:e,...t},n)=>c.jsx("button",{ref:n,className:Ht("absolute right-2 top-2 rounded-md p-1 text-foreground/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:c.jsx(Cy,{className:"h-4 w-4"})}));A3.displayName="ToastClose";const T3=k.forwardRef(({className:e,...t},n)=>c.jsx("div",{ref:n,className:Ht("text-sm font-semibold",e),...t}));T3.displayName="ToastTitle";const k3=k.forwardRef(({className:e,...t},n)=>c.jsx("div",{ref:n,className:Ht("text-sm opacity-90",e),...t}));k3.displayName="ToastDescription";function uU(){const{toasts:e}=JL();return c.jsxs(j3,{children:[e.map(function({id:t,title:n,description:r,action:i,...a}){return c.jsxs(N3,{...a,children:[c.jsxs("div",{className:"grid gap-1",children:[n&&c.jsx(T3,{children:n}),r&&c.jsx(k3,{children:r})]}),i,c.jsx(A3,{})]},t)}),c.jsx(P3,{})]})}var $p=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(){}},cc,zs,Ju,qL,dU=(qL=class extends $p{constructor(){super();We(this,cc);We(this,zs);We(this,Ju);Ce(this,Ju,t=>{if(typeof window<"u"&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){J(this,zs)||this.setEventListener(J(this,Ju))}onUnsubscribe(){var t;this.hasListeners()||((t=J(this,zs))==null||t.call(this),Ce(this,zs,void 0))}setEventListener(t){var n;Ce(this,Ju,t),(n=J(this,zs))==null||n.call(this),Ce(this,zs,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){J(this,cc)!==t&&(Ce(this,cc,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof J(this,cc)=="boolean"?J(this,cc):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},cc=new WeakMap,zs=new WeakMap,Ju=new WeakMap,qL),uN=new dU,fU={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)}
325,qs,aN,VL,hU=(VL=class{constructor(){We(this,qs,fU);We(this,aN,!1)}setTimeoutProvider(e){Ce(this,qs,e)}setTimeout(e,t){return J(this,qs).setTimeout(e,t)}clearTimeout(e){J(this,qs).clearTimeout(e)}setInterval(e,t){return J(this,qs).setInterval(e,t)}clearInterval(e){J(this,qs).clearInterval(e)}},qs=new WeakMap,aN=new WeakMap,VL),rc=new hU;function pU(e){setTimeout(e,0)}var mU=typeof window>"u"||"Deno"in globalThis;function Br(){}function gU(e,t){return typeof e=="function"?e(t):e}function $S(e){return typeof e=="number"&&e>=0&&e!==1/0}function C3(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Xs(e,t){return typeof e=="function"?e(t):e}function ui(e,t){return typeof e=="function"?e(t):e}function TC(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:u}=e;if(o){if(r){if(t.queryHash!==dN(o,t.options))return!1}else if(!pd(t.queryKey,o))return!1}if(n!=="all"){const f=t.isActive();if(n==="active"&&!f||n==="inactive"&&f)return!1}return!(typeof u=="boolean"&&t.isStale()!==u||i&&i!==t.state.fetchStatus||a&&!a(t))}function kC(e,t){const{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(Ih(t.options.mutationKey)!==Ih(a))return!1}else if(!pd(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function dN(e,t){return((t==null?void 0:t.queryKeyHashFn)||Ih)(e)}function Ih(e){return JSON.stringify(e,(t,n)=>FS(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function pd(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(Array.isArray(e)&&Array.isArray(t)){for(let r=0;r<t.length;r++)if(!pd(e[r],t[r]))return!1;return!0}const n=Object.keys(t);for(const r of n)if(!pd(e[r],t[r]))return!1;return!0}return!1}var vU=Object.prototype.hasOwnProperty;function O3(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=CC(e)&&CC(t);if(!r&&!(FS(e)&&FS(t)))return t;const a=(r?e:Object.keys(e)).length,o=r?t:Object.keys(t),u=o.length,f=r?new Array(u):{};let h=0;for(let g=0;g<u;g++){const p=r?g:o[g],y=e[p],w=t[p];if(y===w){f[p]=y,(r?g<a:vU.call(e,p))&&h++;continue}if(y===null||w===null||typeof y!="object"||typeof w!="object"){f[p]=w;continue}const j=O3(y,w,n+1);f[p]=j,j===y&&h++}return a===u&&h===a?e:f}function BS(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function CC(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function FS(e){if(!OC(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!OC(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function OC(e){return Object.prototype.toString.call(e)==="[object Object]"}function yU(e){return new Promise(t=>{rc.setTimeout(t,e)})}function zS(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?O3(e,t):t}function xU(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function bU(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var fN=Symbol();function E3(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===fN?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function M3(e,t){return typeof e=="function"?e(...t):!!e}function wU(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 Lh=(()=>{let e=()=>mU;return{isServer(){return e()},setIsServer(t){e=t}}})();function qS(){let e,t;const n=new Promise((i,a)=>{e=i,t=a});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 _U=pU;function SU(){let e=[],t=0,n=u=>{u()},r=u=>{u()},i=_U;const a=u=>{t?e.push(u):i(()=>{n(u)})},o=()=>{const u=e;e=[],u.length&&i(()=>{r(()=>{u.forEach(f=>{n(f)})})})};return{batch:u=>{let f;t++;try{f=u()}finally{t--,t||o()}return f},batchCalls:u=>(...f)=>{a(()=>{u(...f)})},schedule:a,setNotifyFunction:u=>{n=u},setBatchNotifyFunction:u=>{r=u},setScheduler:u=>{i=u}}}var tr=SU(),ed,Vs,td,WL,jU=(WL=class extends $p{constructor(){super();We(this,ed,!0);We(this,Vs);We(this,td);Ce(this,td,t=>{if(typeof window<"u"&&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(){J(this,Vs)||this.setEventListener(J(this,td))}onUnsubscribe(){var t;this.hasListeners()||((t=J(this,Vs))==null||t.call(this),Ce(this,Vs,void 0))}setEventListener(t){var n;Ce(this,td,t),(n=J(this,Vs))==null||n.call(this),Ce(this,Vs,t(this.setOnline.bind(this)))}setOnline(t){J(this,ed)!==t&&(Ce(this,ed,t),this.listeners.forEac
325h(r=>{r(t)}))}isOnline(){return J(this,ed)}},ed=new WeakMap,Vs=new WeakMap,td=new WeakMap,WL),dv=new jU;function PU(e){return Math.min(1e3*2**e,3e4)}function R3(e){return(e??"online")==="online"?dv.isOnline():!0}var VS=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function D3(e){let t=!1,n=0,r;const i=qS(),a=()=>i.status!=="pending",o=S=>{var _;if(!a()){const P=new VS(S);y(P),(_=e.onCancel)==null||_.call(e,P)}},u=()=>{t=!0},f=()=>{t=!1},h=()=>uN.isFocused()&&(e.networkMode==="always"||dv.isOnline())&&e.canRun(),g=()=>R3(e.networkMode)&&e.canRun(),p=S=>{a()||(r==null||r(),i.resolve(S))},y=S=>{a()||(r==null||r(),i.reject(S))},w=()=>new Promise(S=>{var _;r=P=>{(a()||h())&&S(P)},(_=e.onPause)==null||_.call(e)}).then(()=>{var S;r=void 0,a()||(S=e.onContinue)==null||S.call(e)}),j=()=>{if(a())return;let S;const _=n===0?e.initialPromise:void 0;try{S=_??e.fn()}catch(P){S=Promise.reject(P)}Promise.resolve(S).then(p).catch(P=>{var M;if(a())return;const O=e.retry??(Lh.isServer()?0:3),C=e.retryDelay??PU,E=typeof C=="function"?C(n,P):C,T=O===!0||typeof O=="number"&&n<O||typeof O=="function"&&O(n,P);if(t||!T){y(P);return}n++,(M=e.onFail)==null||M.call(e,n,P),yU(E).then(()=>h()?void 0:w()).then(()=>{t?y(P):j()})})};return{promise:i,status:()=>i.status,cancel:o,continue:()=>(r==null||r(),i),cancelRetry:u,continueRetry:f,canStart:g,start:()=>(g()?j():w().then(j),i)}}var uc,UL,I3=(UL=class{constructor(){We(this,uc)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),$S(this.gcTime)&&Ce(this,uc,rc.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Lh.isServer()?1/0:300*1e3))}clearGcTimeout(){J(this,uc)!==void 0&&(rc.clearTimeout(J(this,uc)),Ce(this,uc,void 0))}},uc=new WeakMap,UL);function NU(e){return{onFetch:(t,n)=>{var g,p,y,w,j;const r=t.options,i=(y=(p=(g=t.fetchOptions)==null?void 0:g.meta)==null?void 0:p.fetchMore)==null?void 0:y.direction,a=((w=t.state.data)==null?void 0:w.pages)||[],o=((j=t.state.data)==null?void 0:j.pageParams)||[];let u={pages:[],pageParams:[]},f=0;const h=async()=>{let S=!1;const _=C=>{wU(C,()=>t.signal,()=>S=!0)},P=E3(t.options,t.fetchOptions),O=async(C,E,T)=>{if(S)return Promise.reject(t.signal.reason);if(E==null&&C.pages.length)return Promise.resolve(C);const I=(()=>{const V={client:t.client,queryKey:t.queryKey,pageParam:E,direction:T?"backward":"forward",meta:t.options.meta};return _(V),V})(),$=await P(I),{maxPages:z}=t.options,Y=T?bU:xU;return{pages:Y(C.pages,$,z),pageParams:Y(C.pageParams,E,z)}};if(i&&a.length){const C=i==="backward",E=C?AU:EC,T={pages:a,pageParams:o},M=E(r,T);u=await O(T,M,C)}else{const C=e??a.length;do{const E=f===0?o[0]??r.initialPageParam:EC(r,u);if(f>0&&E==null)break;u=await O(u,E),f++}while(f<C)}return u};t.options.persister?t.fetchFn=()=>{var S,_;return(_=(S=t.options).persister)==null?void 0:_.call(S,h,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=h}}}function EC(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 AU(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 nd,dc,rd,Di,fc,Un,Mp,hc,li,L3,bo,HL,TU=(HL=class extends I3{constructor(t){super();We(this,li);We(this,nd);We(this,dc);We(this,rd);We(this,Di);We(this,fc);We(this,Un);We(this,Mp);We(this,hc);Ce(this,hc,!1),Ce(this,Mp,t.defaultOptions),this.setOptions(t.options),this.observers=[],Ce(this,fc,t.client),Ce(this,Di,J(this,fc).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,Ce(this,dc,RC(this.options)),this.state=t.state??J(this,dc),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return J(this,nd)}get promise(){var t;return(t=J(this,Un))==null?void 0:t.promise}setOptions(t){if(this.options={...J(this,Mp),...t},t!=null&&t._type&&Ce(this,nd,t._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=RC(this.options);n.data!==void 0&&(this.setState(MC(n.data,n.dataUpdatedAt)),Ce(this,dc,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&J(this,Di).remove(this)}setData(t,n){const r=zS(this.state.data,t,this.options);return pt(this,li,bo).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t){pt(this,li,bo).call(this,{type:"setState",state:t})}cancel(t){var r,i;const n=(r=J(this,Un))==null?void 0:r.promise;return(i=J(this,Un))==null||i.cancel(t),n?n.then(Br).catch(Br):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return J(this,dc)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>ui(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===fN||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdate
325Count>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Xs(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:!C3(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=J(this,Un))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=J(this,Un))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),J(this,Di).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(J(this,Un)&&(J(this,hc)||pt(this,li,L3).call(this)?J(this,Un).cancel({revert:!0}):J(this,Un).cancelRetry()),this.scheduleGc()),J(this,Di).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||pt(this,li,bo).call(this,{type:"invalidate"})}async fetch(t,n){var h,g,p,y,w,j,S,_,P,O,C;if(this.state.fetchStatus!=="idle"&&((h=J(this,Un))==null?void 0:h.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(J(this,Un))return J(this,Un).continueRetry(),J(this,Un).promise}if(t&&this.setOptions(t),!this.options.queryFn){const E=this.observers.find(T=>T.options.queryFn);E&&this.setOptions(E.options)}const r=new AbortController,i=E=>{Object.defineProperty(E,"signal",{enumerable:!0,get:()=>(Ce(this,hc,!0),r.signal)})},a=()=>{const E=E3(this.options,n),M=(()=>{const I={client:J(this,fc),queryKey:this.queryKey,meta:this.meta};return i(I),I})();return Ce(this,hc,!1),this.options.persister?this.options.persister(E,M,this):E(M)},u=(()=>{const E={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:J(this,fc),state:this.state,fetchFn:a};return i(E),E})(),f=J(this,nd)==="infinite"?NU(this.options.pages):this.options.behavior;f==null||f.onFetch(u,this),Ce(this,rd,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((g=u.fetchOptions)==null?void 0:g.meta))&&pt(this,li,bo).call(this,{type:"fetch",meta:(p=u.fetchOptions)==null?void 0:p.meta}),Ce(this,Un,D3({initialPromise:n==null?void 0:n.initialPromise,fn:u.fetchFn,onCancel:E=>{E instanceof VS&&E.revert&&this.setState({...J(this,rd),fetchStatus:"idle"}),r.abort()},onFail:(E,T)=>{pt(this,li,bo).call(this,{type:"failed",failureCount:E,error:T})},onPause:()=>{pt(this,li,bo).call(this,{type:"pause"})},onContinue:()=>{pt(this,li,bo).call(this,{type:"continue"})},retry:u.options.retry,retryDelay:u.options.retryDelay,networkMode:u.options.networkMode,canRun:()=>!0}));try{const E=await J(this,Un).start();if(E===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(E),(w=(y=J(this,Di).config).onSuccess)==null||w.call(y,E,this),(S=(j=J(this,Di).config).onSettled)==null||S.call(j,E,this.state.error,this),E}catch(E){if(E instanceof VS){if(E.silent)return J(this,Un).promise;if(E.revert){if(this.state.data===void 0)throw E;return this.state.data}}throw pt(this,li,bo).call(this,{type:"error",error:E}),(P=(_=J(this,Di).config).onError)==null||P.call(_,E,this),(C=(O=J(this,Di).config).onSettled)==null||C.call(O,this.state.data,E,this),E}finally{this.scheduleGc()}}},nd=new WeakMap,dc=new WeakMap,rd=new WeakMap,Di=new WeakMap,fc=new WeakMap,Un=new WeakMap,Mp=new WeakMap,hc=new WeakMap,li=new WeakSet,L3=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},bo=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,...$3(r.data,this.options),fetchMeta:t.meta??null};case"success":const i={...r,...MC(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return Ce(this,rd,t.manual?i:void 0),i;case"error":const a=t.error;
325return{...r,error:a,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),tr.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),J(this,Di).notify({query:this,type:"updated",action:t})})},HL);function $3(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:R3(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function MC(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function RC(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"}}var $r,gt,Rp,Ar,pc,id,So,Ws,Dp,ad,od,mc,gc,Us,sd,At,mh,WS,US,HS,GS,KS,ZS,YS,B3,GL,kU=(GL=class extends $p{constructor(t,n){super();We(this,At);We(this,$r);We(this,gt);We(this,Rp);We(this,Ar);We(this,pc);We(this,id);We(this,So);We(this,Ws);We(this,Dp);We(this,ad);We(this,od);We(this,mc);We(this,gc);We(this,Us);We(this,sd,new Set);this.options=n,Ce(this,$r,t),Ce(this,Ws,null),Ce(this,So,qS()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(J(this,gt).addObserver(this),DC(J(this,gt),this.options)?pt(this,At,mh).call(this):this.updateResult(),pt(this,At,GS).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return XS(J(this,gt),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return XS(J(this,gt),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,pt(this,At,KS).call(this),pt(this,At,ZS).call(this),J(this,gt).removeObserver(this)}setOptions(t){const n=this.options,r=J(this,gt);if(this.options=J(this,$r).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof ui(this.options.enabled,J(this,gt))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");pt(this,At,YS).call(this),J(this,gt).setOptions(this.options),n._defaulted&&!BS(this.options,n)&&J(this,$r).getQueryCache().notify({type:"observerOptionsUpdated",query:J(this,gt),observer:this});const i=this.hasListeners();i&&IC(J(this,gt),r,this.options,n)&&pt(this,At,mh).call(this),this.updateResult(),i&&(J(this,gt)!==r||ui(this.options.enabled,J(this,gt))!==ui(n.enabled,J(this,gt))||Xs(this.options.staleTime,J(this,gt))!==Xs(n.staleTime,J(this,gt)))&&pt(this,At,WS).call(this);const a=pt(this,At,US).call(this);i&&(J(this,gt)!==r||ui(this.options.enabled,J(this,gt))!==ui(n.enabled,J(this,gt))||a!==J(this,Us))&&pt(this,At,HS).call(this,a)}getOptimisticResult(t){const n=J(this,$r).getQueryCache().build(J(this,$r),t),r=this.createResult(n,t);return OU(this,r)&&(Ce(this,Ar,r),Ce(this,id,this.options),Ce(this,pc,J(this,gt).state)),r}getCurrentResult(){return J(this,Ar)}trackResult(t,n){return new Proxy(t,{get:(r,i)=>(this.trackProp(i),n==null||n(i),i==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&J(this,So).status==="pending"&&J(this,So).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,i))})}trackProp(t){J(this,sd).add(t)}getCurrentQuery(){return J(this,gt)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=J(this,$r).defaultQueryOptions(t),r=J(this,$r).getQueryCache().build(J(this,$r),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return pt(this,At,mh).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),J(this,Ar)))}createResult(t,n){var z;const r=J(this,gt),i=this.options,a=J(this,Ar),o=J(this,pc),u=J(this,id),h=t!==r?t.state:J(this,Rp),{state:g}=t;let p={...g},y=!1,w;if(n._optimisticResults){const Y=this.hasListeners(),V=!Y&&DC(t,n),q=Y&&IC(t,r,n,i);(V||q)&&(p={...p,...$3(g.data,t.options)}),n._optimisticResults==="isRestoring"&&(p.fetchStatus="idle")}let{error:j,errorUpdatedAt:S,status:_}=p;w=p.data;let P=!1;if(n.placeholderData!==void 0&&w===void 0&&_==="pending"){let Y;a!=null&&a.isPlaceholderData&&n.placeholderData===(u==null?void 0:u.placeholderData)?(Y=a.data,P=!0):Y=typeof n.placeholderData=="function"?n.placeholderData((z=J(this,od))==null?void 0:z.state.data,J(this,od)):n.placeholderData,Y!==void 0&&(_="success",w=zS(a==null?void 0:a.data,Y,n),y=!0)}if(n.select&&w!==void 0&&!P)if(a&&w===(o==null?void 0:o.data)&&n.select===J(this,Dp))w=J(this,ad);else try{Ce(this,Dp,n.select),w=n.select(w),w=zS(a==null?void 0:a.data,w,n),Ce(this,ad,w),Ce(this,Ws,null)}catch(Y){Ce(this,Ws,Y)}J(this,Ws)&&(j=J(this,Ws),w=J(this,ad),S=Date.now(),_="error");const O=p.fetchStatus==="fetching",C=_==="pending",E=_==="error",T=C&&O,M=w!==void 0,$={status:_,fetchStatus:p.fetchStatus,isPending:C,isSuccess:_==="success",isError:E,isInitialLoading:T,isLoading:T,data:w,dataUpdatedAt:p.dataUpdatedAt,error:j,errorUpdatedAt:S,failureCount:p.fetchFailureCount,failureReason:p.fetchFailureReason,errorUpdate
325Count:p.errorUpdateCount,isFetched:t.isFetched(),isFetchedAfterMount:p.dataUpdateCount>h.dataUpdateCount||p.errorUpdateCount>h.errorUpdateCount,isFetching:O,isRefetching:O&&!C,isLoadingError:E&&!M,isPaused:p.fetchStatus==="paused",isPlaceholderData:y,isRefetchError:E&&M,isStale:hN(t,n),refetch:this.refetch,promise:J(this,So),isEnabled:ui(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const Y=$.data!==void 0,V=$.status==="error"&&!Y,q=ne=>{V?ne.reject($.error):Y&&ne.resolve($.data)},G=()=>{const ne=Ce(this,So,$.promise=qS());q(ne)},Q=J(this,So);switch(Q.status){case"pending":t.queryHash===r.queryHash&&q(Q);break;case"fulfilled":(V||$.data!==Q.value)&&G();break;case"rejected":(!V||$.error!==Q.reason)&&G();break}}return $}updateResult(){const t=J(this,Ar),n=this.createResult(J(this,gt),this.options);if(Ce(this,pc,J(this,gt).state),Ce(this,id,this.options),J(this,pc).data!==void 0&&Ce(this,od,J(this,gt)),BS(n,t))return;Ce(this,Ar,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:i}=this.options,a=typeof i=="function"?i():i;if(a==="all"||!a&&!J(this,sd).size)return!0;const o=new Set(a??J(this,sd));return this.options.throwOnError&&o.add("error"),Object.keys(J(this,Ar)).some(u=>{const f=u;return J(this,Ar)[f]!==t[f]&&o.has(f)})};pt(this,At,B3).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&pt(this,At,GS).call(this)}},$r=new WeakMap,gt=new WeakMap,Rp=new WeakMap,Ar=new WeakMap,pc=new WeakMap,id=new WeakMap,So=new WeakMap,Ws=new WeakMap,Dp=new WeakMap,ad=new WeakMap,od=new WeakMap,mc=new WeakMap,gc=new WeakMap,Us=new WeakMap,sd=new WeakMap,At=new WeakSet,mh=function(t){pt(this,At,YS).call(this);let n=J(this,gt).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Br)),n},WS=function(){pt(this,At,KS).call(this);const t=Xs(this.options.staleTime,J(this,gt));if(Lh.isServer()||J(this,Ar).isStale||!$S(t))return;const r=C3(J(this,Ar).dataUpdatedAt,t)+1;Ce(this,mc,rc.setTimeout(()=>{J(this,Ar).isStale||this.updateResult()},r))},US=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(J(this,gt)):this.options.refetchInterval)??!1},HS=function(t){pt(this,At,ZS).call(this),Ce(this,Us,t),!(Lh.isServer()||ui(this.options.enabled,J(this,gt))===!1||!$S(J(this,Us))||J(this,Us)===0)&&Ce(this,gc,rc.setInterval(()=>{(this.options.refetchIntervalInBackground||uN.isFocused())&&pt(this,At,mh).call(this)},J(this,Us)))},GS=function(){pt(this,At,WS).call(this),pt(this,At,HS).call(this,pt(this,At,US).call(this))},KS=function(){J(this,mc)!==void 0&&(rc.clearTimeout(J(this,mc)),Ce(this,mc,void 0))},ZS=function(){J(this,gc)!==void 0&&(rc.clearInterval(J(this,gc)),Ce(this,gc,void 0))},YS=function(){const t=J(this,$r).getQueryCache().build(J(this,$r),this.options);if(t===J(this,gt))return;const n=J(this,gt);Ce(this,gt,t),Ce(this,Rp,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},B3=function(t){tr.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(J(this,Ar))}),J(this,$r).getQueryCache().notify({query:J(this,gt),type:"observerResultsUpdated"})})},GL);function CU(e,t){return ui(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&ui(t.retryOnMount,e)===!1)}function DC(e,t){return CU(e,t)||e.state.data!==void 0&&XS(e,t,t.refetchOnMount)}function XS(e,t,n){if(ui(t.enabled,e)!==!1&&Xs(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&hN(e,t)}return!1}function IC(e,t,n,r){return(e!==t||ui(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&hN(e,n)}function hN(e,t){return ui(t.enabled,e)!==!1&&e.isStaleByTime(Xs(t.staleTime,e))}function OU(e,t){return!BS(e.getCurrentResult(),t)}var Ip,Ra,pr,vc,Da,Ls,KL,EU=(KL=class extends I3{constructor(t){super();We(this,Da);We(this,Ip);We(this,Ra);We(this,pr);We(this,vc);Ce(this,Ip,t.client),this.mutationId=t.mutationId,Ce(this,pr,t.mutationCache),Ce(this,Ra,[]),this.state=t.state||MU(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){J(this,Ra).includes(t)||(J(this,Ra).push(t),this.clearGcTimeout(),J(this,pr).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){Ce(this,Ra,J(this,Ra).filter(n=>n!==t)),this.scheduleGc(),J(this,pr).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){J(this,Ra).length||(this.state.status==="pending"?this.scheduleGc():J(this,pr).remove(this))}continue(){var t;return((t=J(this,vc))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,u,f,h,g,p,y,w,j,S,_,P,O,C,E,T,M,I;const n=()=>{pt(this,Da,Ls).call(this,{type:"continue"})},r={client:J(this,Ip),meta:this.options.meta,mutationKey:this.options.mutationKey};Ce(this,vc,D3({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:($,z)=>{pt(this,Da,Ls).call(this,{type:"failed",failureCount:$,error:z})},onPause:()=>{pt(this,Da,Ls).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>J(this,pr).canRun(this)}));const i=this.state.status==="pending",a=!J(this,vc).canStart();try{if(i)n();else{pt(this,Da,Ls).call(this,{type:"pending",variables:t,isPaused:a}),J(this,pr).config.onMutate&&await J(this,pr).config.onMutate(t,this,r);const z=await((u=(o=this.options).onMutate)==null?void 0:u.call(o,t,r));z!==this.state.context&&pt(this,Da,Ls).call(this,{type:"pending",context:z,variables:t,isPaused:a})}const $=await J(this,vc).start();return await((h=(f=J(this,pr).config).onSuccess)==null?void 0:h.call(f,$,t,this.state.context,this,r)),await((p=(g=this.options).onSuccess)==null?void 0:p.call(g,$,t,this.state.context,r)),await((w=(y=J(this,pr).config).onSettled)==null?void 0:w.call(y,$,null,this.state.variables,this.state.context,this,r)),await((S=(j=this.options).onSettled)==null?void 0:S.call(j,$,null,t,this.state.context,r)),pt(this,Da,Ls).call(this,{type:"success",data:$}),$}catch($){try{await((P=(_=J(this,pr).config).onError)==null?void 0:P.call(_,$,t,this.state.context,this,r))}catch(z){Promise.reject(z)}try{await((C=(O=this.options).onError)==null?void 0:C.call(O,$,t,this.state.context,r))}catch(z){Promise.reject(z)}try{await((T=(E=J(this,pr).config).onSettled)==null?void 0:T.call(E,void 0,$,this.state.variables,this.state.context,this,r))}catch(z){Promise.reject(z)}try{await((I=(M=this.options).onSettled)==null?void 0:I.call(M,void 0,$,t,this.state.context,r))}catch(z){Promise.reject(z)}throw pt(this,Da,Ls).call(this,{type:"error",error:$}),$}finally{J(this,pr).runNext(this)}}}
325,Ip=new WeakMap,Ra=new WeakMap,pr=new WeakMap,vc=new WeakMap,Da=new WeakSet,Ls=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),tr.batch(()=>{J(this,Ra).forEach(r=>{r.onMutationUpdate(t)}),J(this,pr).notify({mutation:this,type:"updated",action:t})})},KL);function MU(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var jo,aa,Lp,ZL,RU=(ZL=class extends $p{constructor(t={}){super();We(this,jo);We(this,aa);We(this,Lp);this.config=t,Ce(this,jo,new Set),Ce(this,aa,new Map),Ce(this,Lp,0)}build(t,n,r){const i=new EU({client:t,mutationCache:this,mutationId:++bg(this,Lp)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){J(this,jo).add(t);const n=Pg(t);if(typeof n=="string"){const r=J(this,aa).get(n);r?r.push(t):J(this,aa).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(J(this,jo).delete(t)){const n=Pg(t);if(typeof n=="string"){const r=J(this,aa).get(n);if(r)if(r.length>1){const i=r.indexOf(t);i!==-1&&r.splice(i,1)}else r[0]===t&&J(this,aa).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Pg(t);if(typeof n=="string"){const r=J(this,aa).get(n),i=r==null?void 0:r.find(a=>a.state.status==="pending");return!i||i===t}else return!0}runNext(t){var r;const n=Pg(t);if(typeof n=="string"){const i=(r=J(this,aa).get(n))==null?void 0:r.find(a=>a!==t&&a.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}else return Promise.resolve()}clear(){tr.batch(()=>{J(this,jo).forEach(t=>{this.notify({type:"removed",mutation:t})}),J(this,jo).clear(),J(this,aa).clear()})}getAll(){return Array.from(J(this,jo))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>kC(n,r))}findAll(t={}){return this.getAll().filter(n=>kC(t,n))}notify(t){tr.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return tr.batch(()=>Promise.all(t.map(n=>n.continue().catch(Br))))}},jo=new WeakMap,aa=new WeakMap,Lp=new WeakMap,ZL);function Pg(e){var t;return(t=e.options.scope)==null?void 0:t.id}var Ia,YL,DU=(YL=class extends $p{constructor(t={}){super();We(this,Ia);this.config=t,Ce(this,Ia,new Map)}build(t,n,r){const i=n.queryKey,a=n.queryHash??dN(i,n);let o=this.get(a);return o||(o=new TU({client:t,queryKey:i,queryHash:a,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(o)),o}add(t){J(this,Ia).has(t.queryHash)||(J(this,Ia).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=J(this,Ia).get(t.queryHash);n&&(t.destroy(),n===t&&J(this,Ia).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){tr.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return J(this,Ia).get(t)}getAll(){return[...J(this,Ia).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>TC(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>TC(t,r)):n}notify(t){tr.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){tr.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){tr.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Ia=new WeakMap,YL),un,Hs,Gs,ld,cd,Ks,ud,dd,XL,IU=(XL=class{constructor(e={}){We(this,un);We(this,Hs);We(this,Gs);We(this,ld);We(this,cd);We(this,Ks);We(this,ud);We(this,dd);Ce(this,un,e.queryCache||new DU),Ce(this,Hs,e.mutationCache||new RU),Ce(this,Gs,e.defaultOptions||{}),Ce(this,ld,new Map),Ce(this,cd,new Map),Ce(this,Ks,0)}mount(){bg(this,Ks)._++,J(this,Ks)===1&&(Ce(this,ud,uN.subscribe(async e=>{e&&(await this.resumePausedMutations(),J(this,un).onFocus())})),Ce(this,dd,dv.subscribe(async e=>{e&&(await this.resumePausedMutations(),J(this,un).onOnline())})))}unmount(){var e,t;bg(this,Ks)._--,J(this,Ks)===0&&((e=J(this,ud))==null||e.call(this),Ce(this,ud,void 0),(t=J(this,dd))==null||t.call(this),Ce(this,dd,void 0))}isFetching(e){return J(this,un).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return J(this,Hs).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=J(this,un).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=J(this,un).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Xs(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return J(this,un).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=J(this,un).get(r.queryHash),a=i==null?void 0:i.state.data,o=gU(t,a);if(o!==void 0)return J(this,un).build(this,r).setData(o,{...n,manual:!0})}
325setQueriesData(e,t,n){return tr.batch(()=>J(this,un).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=J(this,un).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=J(this,un);tr.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=J(this,un);return tr.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=tr.batch(()=>J(this,un).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(Br).catch(Br)}invalidateQueries(e,t={}){return tr.batch(()=>(J(this,un).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=tr.batch(()=>J(this,un).findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let a=i.fetch(void 0,n);return n.throwOnError||(a=a.catch(Br)),i.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(r).then(Br)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=J(this,un).build(this,t);return n.isStaleByTime(Xs(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Br).catch(Br)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Br).catch(Br)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return dv.isOnline()?J(this,Hs).resumePausedMutations():Promise.resolve()}getQueryCache(){return J(this,un)}getMutationCache(){return J(this,Hs)}getDefaultOptions(){return J(this,Gs)}setDefaultOptions(e){Ce(this,Gs,e)}setQueryDefaults(e,t){J(this,ld).set(Ih(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...J(this,ld).values()],n={};return t.forEach(r=>{pd(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){J(this,cd).set(Ih(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...J(this,cd).values()],n={};return t.forEach(r=>{pd(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...J(this,Gs).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=dN(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===fN&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...J(this,Gs).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){J(this,un).clear(),J(this,Hs).clear()}},un=new WeakMap,Hs=new WeakMap,Gs=new WeakMap,ld=new WeakMap,cd=new WeakMap,Ks=new WeakMap,ud=new WeakMap,dd=new WeakMap,XL),F3=k.createContext(void 0),pN=e=>{const t=k.useContext(F3);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},LU=({client:e,children:t})=>(k.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),c.jsx(F3.Provider,{value:e,children:t})),z3=k.createContext(!1),$U=()=>k.useContext(z3);z3.Provider;function BU(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var FU=k.createContext(BU()),zU=()=>k.useContext(FU),qU=(e,t,n)=>{const r=n!=null&&n.state.error&&typeof e.throwOnError=="function"?M3(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},VU=e=>{k.useEffect(()=>{e.clearReset()},[e])},WU=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||M3(n,[e.error,r])),UU=e=>{if(e.suspense){const n=i=>i==="static"?i:Math.max(i??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...i)=>n(r(...i)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},HU=(e,t)=>e.isLoading&&e.isFetching&&!t,GU=(e,t)=>
325(e==null?void 0:e.suspense)&&t.isPending,LC=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function KU(e,t,n){var w,j,S,_;const r=$U(),i=zU(),a=pN(),o=a.defaultQueryOptions(e);(j=(w=a.getDefaultOptions().queries)==null?void 0:w._experimental_beforeQuery)==null||j.call(w,o);const u=a.getQueryCache().get(o.queryHash),f=e.subscribed!==!1;o._optimisticResults=r?"isRestoring":f?"optimistic":void 0,UU(o),qU(o,i,u),VU(i);const h=!a.getQueryCache().get(o.queryHash),[g]=k.useState(()=>new t(a,o)),p=g.getOptimisticResult(o),y=!r&&f;if(k.useSyncExternalStore(k.useCallback(P=>{const O=y?g.subscribe(tr.batchCalls(P)):Br;return g.updateResult(),O},[g,y]),()=>g.getCurrentResult(),()=>g.getCurrentResult()),k.useEffect(()=>{g.setOptions(o)},[o,g]),GU(o,p))throw LC(o,g,i);if(WU({result:p,errorResetBoundary:i,throwOnError:o.throwOnError,query:u,suspense:o.suspense}))throw p.error;if((_=(S=a.getDefaultOptions().queries)==null?void 0:S._experimental_afterQuery)==null||_.call(S,o,p),o.experimental_prefetchInRender&&!Lh.isServer()&&HU(p,r)){const P=h?LC(o,g,i):u==null?void 0:u.promise;P==null||P.catch(Br).finally(()=>{g.updateResult()})}return o.notifyOnChangeProps?p:g.trackResult(p)}function an(e,t){return KU(e,kU)}const ZU=new IU({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:1}}}),q3={TournamentResult:{id:"1jPOcD7Od7WcF3rwsm_0eYIum_xvVRHXx2fFJlltJqR0",types:{tournament_year:"int",rank:"int",score:"num",xs:"int",x_10s:"int",total_9s:"int",rnd_1:"num",rnd_2:"num",rnd_3:"num",gallivanter_eligible:"bool",medal_eligible:"bool"}},StateRecord:{id:"1ZvJwUgl-DYNV02pcHbT5t0GjUs9UR9i0fClToOO1bBo",types:{score:"num"}},ArcherOfTheYear:{id:"1a6rttEYGTwbIkBvn3ZcZiKx1Rx6tvP2JF5sgeEoydiU",types:{year:"int",rank:"int",total_score:"num"}},BoardMember:{id:"10jzWlDEeS50_cgtZ49rSpfs1AtTwm68VoVw6UR1V5_4",types:{display_order:"int"}},NewsPost:{id:"1xLPFUbkXcL_h-BXE7cu8TFfb2pW4S8YvBRl_mwETkWg",types:{is_featured:"bool",published:"bool"}},Event:{id:"14Zc14h0sar0hH0qjeUE7QaH8jMLwvWp3Vz55fPse9A0",types:{is_featured:"bool",published:"bool"}},TournamentEvent:{id:"18Ro0R6-iFUACLVid_SsNp5vuqGGWd1vDwTshdcCB2Cs",types:{is_tsaa:"bool"}},CoachProfile:{id:"1EPBo60_7xnWosJZgfvQgK2Tao2nhgKKABPcpFHMVeUE",types:{years_coaching:"int",video_question_number:"int",accepts_new_students:"bool",published:"bool"}},Judge:{id:"16cwyjklNBrryh0dwMrp6UP54V65FC3DnkL0RKVWj6AA",types:{years_judging:"int",published:"bool"}},Location:{id:"1_w0TZArhPa_G0uYxDW5NRJJtwn6stdsualIZCjNT_8c",types:{lat:"num",lng:"num",is_verified:"bool"}},FeaturedArcher:{id:"1S409tUowiCgQLDTodoUAGPktwuQWUh4lYeX-e6fglKg",types:{age:"int",published:"bool"}},AwardAchievement:{id:"1uskINZ_ZRdXTfP9ET4ieEXYibZsFvwGQs9eTNA2BCpU",types:{published:"bool"}}};function YU(e){const t=[];let n=[],r="",i=!1;for(let a=0;a<e.length;a++){const o=e[a];i?o==='"'?e[a+1]==='"'?(r+='"',a++):i=!1:r+=o:o==='"'?i=!0:o===","?(n.push(r),r=""):o===`
326`?(n.push(r),t.push(n),n=[],r=""):o!=="\r"&&(r+=o)}return(r!==""||n.length)&&(n.push(r),t.push(n)),t}function XU(e,t){if(t==null||t.trim()==="")return null;if(t=t.trim(),e==="bool"){const n=t.toLowerCase();return n==="true"||n==="1"||n==="yes"}if(e==="int"){const n=parseInt(t.replace(/,/g,""),10);return Number.isFinite(n)?n:null}if(e==="num"){const n=Number(t.replace(/,/g,""));return Number.isFinite(n)?n:null}return t}const Ng=new Map;function ib({id:e,types:t}){if(!Ng.has(e)){const n=`https://docs.google.com/spreadsheets/d/${e}/gviz/tq?tqx=out:csv&headers=1`;Ng.set(e,fetch(n).then(async r=>{if(!r.ok)throw new Error(`sheet ${e}: ${r.status}`);const i=YU(await r.text()),a=i[0].map(o=>o.trim().replace(/^"|"$/g,""));return i.slice(1).filter(o=>!(o.length===1&&o[0].trim()==="")).map((o,u)=>{const f={id:String(u)};return a.forEach((h,g)=>{f[h]=XU(t[h],o[g]??"")}),f})}).catch(r=>{throw Ng.delete(e),r}))}return Ng.get(e)}function QU(e,t){return e.filter(n=>Object.entries(t||{}).every(([r,i])=>i&&typeof i=="object"&&!Array.isArray(i)?Object.entries(i).every(([a,o])=>{const u=n[r];return a==="$in"?Array.isArray(o)&&o.some(f=>String(f)===String(u)):a==="$gte"?u>=o:a==="$gt"?u>o:a==="$lte"?u<=o:a==="$lt"?u<o:a==="$ne"?String(u)!==String(o):String(u)===String(o)}):String(n[r])===String(i)))}function $C(e,t){if(!t)return e;const n=t.startsWith("-"),r=n?t.slice(1):t;return[...e].sort((i,a)=>{const o=i[r],u=a[r];if(o==null&&u==null)return 0;if(o==null)return 1;if(u==null)return-1;const f=typeof o=="number"&&typeof u=="number"?o-u:String(o).localeCompare(String(u));return n?-f:f})}function JU(e){const t=q3[e],n=()=>{throw new Error(`${e} is sheet-managed (read-only) — edit the Google Sheet.`)};return{async list(r,i){const a=$C(await ib(t),r);return i?a.slice(0,i):a},async filter(r,i,a){const o=$C(QU(await ib(t),r),i);return a?o.slice(0,a):o},async get(r){return(await ib(t)).find(i=>String(i.id)===String(r))??null},create:n,update:n,delete:n,bulkCreate:n}}const eH=Object.fromEntries(Object.keys(q3).map(e=>[e,JU(e)])),on={entities:eH},mN=k.createContext({});function gN(e){const t=k.useRef(null);return t.current===null&&(t.current=e()),t.current}const Oy=k.createContext(null),vN=k.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class tH extends k.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function nH({children:e,isPresent:t}){const n=k.useId(),r=k.useRef(null),i=k.useRef({width:0,height:0,top:0,left:0}),{nonce:a}=k.useContext(vN);return k.useInsertionEffect(()=>{const{width:o,height:u,top:f,left:h}=i.current;if(t||!r.current||!o||!u)return;r.current.dataset.motionPopId=n;const g=document.createElement("style");
vendor: 8,157 bytes, lines 326-334
326return a&&(g.nonce=a),document.head.appendChild(g),g.sheet&&g.sheet.insertRule(`
327          [data-motion-pop-id="${n}"] {
328            position: absolute !important;
329            width: ${o}px !important;
330            height: ${u}px !important;
331            top: ${f}px !important;
332            left: ${h}px !important;
333          }
334        `),()=>{document.head.removeChild(g)}},[t]),c.jsx(tH,{isPresent:t,childRef:r,sizeRef:i,children:k.cloneElement(e,{ref:r})})}const rH=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:a,mode:o})=>{const u=gN(iH),f=k.useId(),h=k.useCallback(p=>{u.set(p,!0);for(const y of u.values())if(!y)return;r&&r()},[u,r]),g=k.useMemo(()=>({id:f,initial:t,isPresent:n,custom:i,onExitComplete:h,register:p=>(u.set(p,!1),()=>u.delete(p))}),a?[Math.random(),h]:[n,h]);return k.useMemo(()=>{u.forEach((p,y)=>u.set(y,!1))},[n]),k.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),o==="popLayout"&&(e=c.jsx(nH,{isPresent:n,children:e})),c.jsx(Oy.Provider,{value:g,children:e})};function iH(){return new Map}function V3(e=!0){const t=k.useContext(Oy);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,a=k.useId();k.useEffect(()=>{e&&i(a)},[e]);const o=k.useCallback(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}const Ag=e=>e.key||"";function BC(e){const t=[];return k.Children.forEach(e,n=>{k.isValidElement(n)&&t.push(n)}),t}const yN=typeof window<"u",W3=yN?k.useLayoutEffect:k.useEffect,Bp=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:a="sync",propagate:o=!1})=>{const[u,f]=V3(o),h=k.useMemo(()=>BC(e),[e]),g=o&&!u?[]:h.map(Ag),p=k.useRef(!0),y=k.useRef(h),w=gN(()=>new Map),[j,S]=k.useState(h),[_,P]=k.useState(h);W3(()=>{p.current=!1,y.current=h;for(let E=0;E<_.length;E++){const T=Ag(_[E]);g.includes(T)?w.delete(T):w.get(T)!==!0&&w.set(T,!1)}},[_,g.length,g.join("-")]);const O=[];if(h!==j){let E=[...h];for(let T=0;T<_.length;T++){const M=_[T],I=Ag(M);g.includes(I)||(E.splice(T,0,M),O.push(M))}a==="wait"&&O.length&&(E=O),P(BC(E)),S(h);return}const{forceRender:C}=k.useContext(mN);return c.jsx(c.Fragment,{children:_.map(E=>{const T=Ag(E),M=o&&!u?!1:h===_||g.includes(T),I=()=>{if(w.has(T))w.set(T,!0);else return;let $=!0;w.forEach(z=>{z||($=!1)}),$&&(C==null||C(),P(y.current),o&&(f==null||f()),r&&r())};return c.jsx(rH,{isPresent:M,initial:!p.current||n?void 0:!1,custom:M?void 0:t,presenceAffectsLayout:i,mode:a,onExitComplete:M?void 0:I,children:E},T)})})},hi=e=>e;let U3=hi;function xN(e){let t;return()=>(t===void 0&&(t=e()),t)}const md=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Co=e=>e*1e3,Oo=e=>e/1e3,aH={useManualTiming:!1};function oH(e){let t=new Set,n=new Set,r=!1,i=!1;const a=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function u(h){a.has(h)&&(f.schedule(h),e()),h(o)}const f={schedule:(h,g=!1,p=!1)=>{const w=p&&r?t:n;return g&&a.add(h),w.has(h)||w.add(h),h},cancel:h=>{n.delete(h),a.delete(h)},process:h=>{if(o=h,r){i=!0;return}r=!0,[t,n]=[n,t],t.forEach(u),t.clear(),r=!1,i&&(i=!1,f.process(h))}};return f}const Tg=["read","resolveKeyframes","update","preRender","render","postRender"],sH=40;function H3(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=Tg.reduce((P,O)=>(P[O]=oH(a),P),{}),{read:u,resolveKeyframes:f,update:h,preRender:g,render:p,postRender:y}=o,w=()=>{const P=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(P-i.timestamp,sH),1),i.timestamp=P,i.isProcessing=!0,u.process(i),f.process(i),h.process(i),g.process(i),p.process(i),y.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(w))},j=()=>{n=!0,r=!0,i.isProcessing||e(w)};return{schedule:Tg.reduce((P,O)=>{const C=o[O];return P[O]=(E,T=!1,M=!1)=>(n||j(),C.schedule(E,T,M)),P},{}),cancel:P=>{for(let O=0;O<Tg.length;O++)o[Tg[O]].cancel(P)},state:i,steps:o}}const{schedule:Wt,cancel:rl,state:Jn,steps:ab}=H3(typeof requestAnimationFrame<"u"?requestAnimationFrame:hi,!0),G3=k.createContext({strict:!1}),FC={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},gd={};for(const e in FC)gd[e]={isEnabled:t=>FC[e].some(n=>!!t[n])};function lH(e){for(const t in e)gd[t]={...gd[t],...e[t]}}const cH=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function fv(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||cH.has(e)}let K3=e=>!fv(e);function uH(e){e&&(K3=t=>t.startsWith("on")?!fv(t):e(t))}try{uH(require("@emotion/is-prop-valid").default)}catch{}function dH(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(K3(i)||n===!0&&fv(i)||!t&&!fv(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function fH(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}const Ey=k.createContext({});function $h(e){return typeof e=="string"||Array.isArray(e)}function My(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const bN=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],wN=["initial",...bN];function Ry(e){return My(e.animate)||wN.some(t=>$h(e[t]))}function Z3(e){return!!(Ry(e)||e.variants)}function hH(e,t){if(Ry(e)){const{initial:n,animate:r}=e;return{initial:n===!1||$h(n)?n:void 0,animate:$h(r)?r:void 0}}return e.inherit!==!1?t:{}}function pH(e){const{initial:t,animate:n}=hH(e,k.useContext(Ey));return k.useMemo(()=>({initial:t,animate:n}),[zC(t),zC(n)])}function zC(e){return Array.isArray(e)?e.join(" "):e}const mH=Symbol.for("motionComponentSymbol");function Bu(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function gH(e,t,n){return k.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Bu(n)&&(n.current=r))},[t])}const _N=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),vH="framerAppearId",Y3="data-"+_N(vH),{schedule:SN}=H3(queueMicrotask,!1),X3=k.createContext({});function yH(e,t,n,r,i){var a,o;const{visualElement:u}=k.useContext(Ey),f=k.useContext(G3),h=k.useContext(Oy),g=k.useContext(vN).reducedMotion,p=k.useRef(null);r=r||f.renderer,!p.current&&r&&(p.current=r(e,{visualState:t,parent:u,props:n,presenceContext:h,blockInitialAnimation:h?h.initial===!1:!1,reducedMotionConfig:g}));const y=p.current,w=k.useContext(X3);y&&!y.projection&&i&&(y.type==="html"||y.type==="svg")&&xH(p.current,n,i,w);const j=k.useRef(!1);k.useInsertionEffect(()=>{y&&j.current&&y.update(n,h)});const S=n[Y3],_=k.useRef(!!S&&!(!((a=window.MotionHandoffIsComplete)===null||a===void 0)&&a.call(window,S))&&((o=window.MotionHasOptimisedAnimation)===null||o===void 0?void 0:o.call(window,S)));return W3(()=>{y&&(j.current=!0,window.MotionIsMounted=!0,y.updateFeatures(),SN.render(y.render),_.current&&y.animationState&&y.animationState.animateChanges())}),k.useEffect(()=>{y&&(!_.current&&y.animationState&&y.animationState.animateChanges(),_.current&&(queueMicrotask(()=>{var P;(P=window.MotionHandoffMarkAsComplete)===null||P===void 0||P.call(window,S)}),_.current=!1))}),y}function xH(e,t,n,r){const{layoutId:i,layout:a,drag:o,dragConstraints:u,layoutScroll:f,layoutRoot:h}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Q3(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||u&&Bu(u),visualElement:e,animationType:typeof a=="str
334ing"?a:"both",initialPromotionConfig:r,layoutScroll:f,layoutRoot:h})}function Q3(e){if(e)return e.options.allowProjection!==!1?e.projection:Q3(e.parent)}function bH({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var a,o;e&&lH(e);function u(h,g){let p;const y={...k.useContext(vN),...h,layoutId:wH(h)},{isStatic:w}=y,j=pH(h),S=r(h,w);if(!w&&yN){_H();const _=SH(y);p=_.MeasureLayout,j.visualElement=yH(i,S,y,t,_.ProjectionNode)}return c.jsxs(Ey.Provider,{value:j,children:[p&&j.visualElement?c.jsx(p,{visualElement:j.visualElement,...y}):null,n(i,h,gH(S,j.visualElement,g),S,w,j.visualElement)]})}u.displayName=`motion.${typeof i=="string"?i:`create(${(o=(a=i.displayName)!==null&&a!==void 0?a:i.name)!==null&&o!==void 0?o:""})`}`;const f=k.forwardRef(u);return f[mH]=i,f}function wH({layoutId:e}){const t=k.useContext(mN).id;return t&&e!==void 0?t+"-"+e:e}function _H(e,t){k.useContext(G3).strict}function SH(e){const{drag:t,layout:n}=gd;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const jH=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function jN(e){return typeof e!="string"||e.includes("-")?!1:!!(jH.indexOf(e)>-1||/[A-Z]/u.test(e))}function qC(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function PN(e,t,n,r){if(typeof t=="function"){const[i,a]=qC(r);t=t(n!==void 0?n:e.custom,i,a)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,a]=qC(r);t=t(n!==void 0?n:e.custom,i,a)}return t}const QS=e=>Array.isArray(e),PH=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),NH=e=>QS(e)?e[e.length-1]||0:e,xr=e=>!!(e&&e.getVelocity);function nv(e){const t=xr(e)?e.get():e;return PH(t)?t.toValue():t}function AH({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,a){const o={latestValues:TH(r,i,a,e),renderState:t()};return n&&(o.onMount=u=>n({props:r,current:u,...o}),o.onUpdate=u=>n(u)),o}const J3=e=>(t,n)=>{const r=k.useContext(Ey),i=k.useContext(Oy),a=()=>AH(e,t,r,i);return n?a():gN(a)};function TH(e,t,n,r){const i={},a=r(e,{});for(const y in a)i[y]=nv(a[y]);let{initial:o,animate:u}=e;const f=Ry(e),h=Z3(e);t&&h&&!f&&e.inherit!==!1&&(o===void 0&&(o=t.initial),u===void 0&&(u=t.animate));let g=n?n.initial===!1:!1;g=g||o===!1;const p=g?u:o;if(p&&typeof p!="boolean"&&!My(p)){const y=Array.isArray(p)?p:[p];for(let w=0;w<y.length;w++){const j=PN(e,y[w]);if(j){const{transitionEnd:S,transition:_,...P}=j;for(const O in P){let C=P[O];if(Array.isArray(C)){const E=g?C.length-1:0;C=C[E]}C!==null&&(i[O]=C)}for(const O in S)i[O]=S[O]}}}return i}const Kd=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Oc=new Set(Kd),e5=e=>t=>typeof t=="string"&&t.startsWith(e),t5=e5("--"),kH=e5("var(--"),NN=e=>kH(e)?CH.test(e.split("/*")[0].trim()):!1,CH=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,n5=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Lo=(e,t,n)=>n>t?t:n<e?e:n,Zd={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Bh={...Zd,transform:e=>Lo(0,1,e)},kg={...Zd,default:1},Fp=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),$s=Fp("deg"),Fa=Fp("%"),Ye=Fp("px"),OH=Fp("vh"),EH=Fp("vw"),VC={...Fa,parse:e=>Fa.parse(e)/100,transform:e=>Fa.transform(e*100)},MH={borderWidth:Ye,borderTopWidth:Ye,borderRightWidth:Ye,borderBottomWidth:Ye,borderLeftWidth:Ye,borderRadius:Ye,radius:Ye,borderTopLeftRadius:Ye,borderTopRightRadius:Ye,borderBottomRightRadius:Ye,borderBottomLeftRadius:Ye,width:Ye,maxWidth:Ye,height:Ye,maxHeight:Ye,top:Ye,right:Ye,bottom:Ye,left:Ye,padding:Ye,paddingTop:Ye,paddingRight:Ye,paddingBottom:Ye,paddingLeft:Ye,margin:Ye,marginTop:Ye,marginRight:Ye,marginBottom:Ye,marginLeft:Ye,backgroundPositionX:Ye,backgroundPositionY:Ye},RH={rotate:$s,rotateX:$s,rotateY:$s,rotateZ:$s,scale:kg,scaleX:kg,scaleY:kg,scaleZ:kg,
vendor: 4,545 bytes, line 334
334skew:$s,skewX:$s,skewY:$s,distance:Ye,translateX:Ye,translateY:Ye,translateZ:Ye,x:Ye,y:Ye,z:Ye,perspective:Ye,transformPerspective:Ye,opacity:Bh,originX:VC,originY:VC,originZ:Ye},WC={...Zd,transform:Math.round},AN={...MH,...RH,zIndex:WC,size:Ye,fillOpacity:Bh,strokeOpacity:Bh,numOctaves:WC},DH={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},IH=Kd.length;function LH(e,t,n){let r="",i=!0;for(let a=0;a<IH;a++){const o=Kd[a],u=e[o];if(u===void 0)continue;let f=!0;if(typeof u=="number"?f=u===(o.startsWith("scale")?1:0):f=parseFloat(u)===0,!f||n){const h=n5(u,AN[o]);if(!f){i=!1;const g=DH[o]||o;r+=`${g}(${h}) `}n&&(t[o]=h)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function TN(e,t,n){const{style:r,vars:i,transformOrigin:a}=e;let o=!1,u=!1;for(const f in t){const h=t[f];if(Oc.has(f)){o=!0;continue}else if(t5(f)){i[f]=h;continue}else{const g=n5(h,AN[f]);f.startsWith("origin")?(u=!0,a[f]=g):r[f]=g}}if(t.transform||(o||n?r.transform=LH(t,e.transform,n):r.transform&&(r.transform="none")),u){const{originX:f="50%",originY:h="50%",originZ:g=0}=a;r.transformOrigin=`${f} ${h} ${g}`}}const $H={offset:"stroke-dashoffset",array:"stroke-dasharray"},BH={offset:"strokeDashoffset",array:"strokeDasharray"};function FH(e,t,n=1,r=0,i=!0){e.pathLength=1;const a=i?$H:BH;e[a.offset]=Ye.transform(-r);const o=Ye.transform(t),u=Ye.transform(n);e[a.array]=`${o} ${u}`}function UC(e,t,n){return typeof e=="string"?e:Ye.transform(t+n*e)}function zH(e,t,n){const r=UC(t,e.x,e.width),i=UC(n,e.y,e.height);return`${r} ${i}`}function kN(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:a,pathLength:o,pathSpacing:u=1,pathOffset:f=0,...h},g,p){if(TN(e,h,p),g){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:y,style:w,dimensions:j}=e;y.transform&&(j&&(w.transform=y.transform),delete y.transform),j&&(i!==void 0||a!==void 0||w.transform)&&(w.transformOrigin=zH(j,i!==void 0?i:.5,a!==void 0?a:.5)),t!==void 0&&(y.x=t),n!==void 0&&(y.y=n),r!==void 0&&(y.scale=r),o!==void 0&&FH(y,o,u,f,!1)}const CN=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),r5=()=>({...CN(),attrs:{}}),ON=e=>typeof e=="string"&&e.toLowerCase()==="svg";function i5(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const a in n)e.style.setProperty(a,n[a])}const a5=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function o5(e,t,n,r){i5(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(a5.has(i)?i:_N(i),t.attrs[i])}const hv={};function qH(e){Object.assign(hv,e)}function s5(e,{layout:t,layoutId:n}){return Oc.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!hv[e]||e==="opacity")}function EN(e,t,n){var r;const{style:i}=e,a={};for(const o in i)(xr(i[o])||t.style&&xr(t.style[o])||s5(o,e)||((r=n==null?void 0:n.getValue(o))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(a[o]=i[o]);return a}function l5(e,t,n){const r=EN(e,t,n);for(const i in e)if(xr(e[i])||xr(t[i])){const a=Kd.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[a]=e[i]}return r}function VH(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}const HC=["x","y","width","height","cx","cy","r"],WH={useVisualState:J3({scrapeMotionValuesFromProps:l5,createRenderState:r5,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let a=!!e.drag;if(!a){for(const u in i)if(Oc.has(u)){a=!0;break}}if(!a)return;let o=!t;if(t)for(let u=0;u<HC.length;u++){const f=HC[u];e[f]!==t[f]&&(o=!0)}o&&Wt.read(()=>{VH(n,r),Wt.render(()=>{kN(r,i,ON(n.tagName),e.transformTemplate),o5(n,r)})})}})},UH={useVisualState:J3({scrapeMotionValuesFromProps:EN,createRenderState:CN})};function c5(e,t,n){for(const r in t)!xr(t[r])&&!s5(r,n)&&(e[r]=t[r])}function HH({transformTemplate:e},t){return k.useMemo(()=>{const n=CN();return TN(n,t,e),Object.assign({},n.vars,n.style)},[t])}function GH(e,t){const n=e.style||{},r={};return c5(r,n,e),Object.assign(r,HH(e,t)),r}function KH(e,t){const n={},r=GH(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}
334`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}function ZH(e,t,n,r){const i=k.useMemo(()=>{const a=r5();return kN(a,t,ON(r),e.transformTemplate),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};c5(a,e.style,e),i.style={...a,...i.style}}return i}function YH(e=!1){return(n,r,i,{latestValues:a},o)=>{const f=(jN(n)?ZH:KH)(r,a,o,n),h=dH(r,typeof n=="string",e),g=n!==k.Fragment?{...h,...f,ref:i}:{},{children:p}=r,y=k.useMemo(()=>xr(p)?p.get():p,[p]);return k.createElement(n,{...g,children:y})}}function XH(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const o={...jN(r)?WH:UH,preloadedFeatures:e,useRender:YH(i),createVisualElement:t,Component:r};return bH(o)}}function u5(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function Dy(e,t,n){const r=e.getProps();return PN(r,t,n!==void 0?n:r.custom,e)}const QH=xN(()=>window.ScrollTimeline!==void 0);class JH{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(i=>{if(QH()&&i.attachTimeline)return i.attachTimeline(t);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,a)=>{i&&i(),this.animations[a].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class e7 extends JH{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function MN(e,t){return e?e[t]||e.default||e:void 0}const JS=2e4;function d5(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<JS;)t+=n,r=e.next(t);return t>=JS?1/0:t}function RN(e){return typeof e=="function"}function GC(e,t){e.timeline=t,e.onfinish=null}const DN=e=>Array.isArray(e)&&typeof e[0]=="number",t7={linearEasing:void 0};function n7(e,t){const n=xN(e);return()=>{var r;return(r=t7[t])!==null&&r!==void 0?r:n()}}const pv=n7(()=>{try{document.createElement("div").animate({opacity:0}
vendor: 90,938 bytes, line 334
334,{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),f5=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let a=0;a<i;a++)r+=e(md(0,i-1,a))+", ";return`linear(${r.substring(0,r.length-2)})`};function h5(e){return!!(typeof e=="function"&&pv()||!e||typeof e=="string"&&(e in ej||pv())||DN(e)||Array.isArray(e)&&e.every(h5))}const gh=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,ej={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:gh([0,.65,.55,1]),circOut:gh([.55,0,1,.45]),backIn:gh([.31,.01,.66,-.59]),backOut:gh([.33,1.53,.69,.99])};function p5(e,t){if(e)return typeof e=="function"&&pv()?f5(e,t):DN(e)?gh(e):Array.isArray(e)?e.map(n=>p5(n,t)||ej.easeOut):ej[e]}const ra={x:!1,y:!1};function m5(){return ra.x||ra.y}function r7(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let i=document;const a=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return a?Array.from(a):[]}return Array.from(e)}function g5(e,t){const n=r7(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function KC(e){return t=>{t.pointerType==="touch"||m5()||e(t)}}function i7(e,t,n={}){const[r,i,a]=g5(e,n),o=KC(u=>{const{target:f}=u,h=t(u);if(typeof h!="function"||!f)return;const g=KC(p=>{h(p),f.removeEventListener("pointerleave",g)});f.addEventListener("pointerleave",g,i)});return r.forEach(u=>{u.addEventListener("pointerenter",o,i)}),a}const v5=(e,t)=>t?e===t?!0:v5(e,t.parentElement):!1,IN=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,a7=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function o7(e){return a7.has(e.tagName)||e.tabIndex!==-1}const vh=new WeakSet;function ZC(e){return t=>{t.key==="Enter"&&e(t)}}function ob(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const s7=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=ZC(()=>{if(vh.has(n))return;ob(n,"down");const i=ZC(()=>{ob(n,"up")}),a=()=>ob(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",a,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function YC(e){return IN(e)&&!m5()}function l7(e,t,n={}){const[r,i,a]=g5(e,n),o=u=>{const f=u.currentTarget;if(!YC(u)||vh.has(f))return;vh.add(f);const h=t(u),g=(w,j)=>{window.removeEventListener("pointerup",p),window.removeEventListener("pointercancel",y),!(!YC(w)||!vh.has(f))&&(vh.delete(f),typeof h=="function"&&h(w,{success:j}))},p=w=>{g(w,n.useGlobalTarget||v5(f,w.target))},y=w=>{g(w,!1)};window.addEventListener("pointerup",p,i),window.addEventListener("pointercancel",y,i)};return r.forEach(u=>{!o7(u)&&u.getAttribute("tabindex")===null&&(u.tabIndex=0),(n.useGlobalTarget?window:u).addEventListener("pointerdown",o,i),u.addEventListener("focus",h=>s7(h,i),i)}),a}function c7(e){return e==="x"||e==="y"?ra[e]?null:(ra[e]=!0,()=>{ra[e]=!1}):ra.x||ra.y?null:(ra.x=ra.y=!0,()=>{ra.x=ra.y=!1})}const y5=new Set(["width","height","top","left","right","bottom",...Kd]);let rv;function u7(){rv=void 0}const za={now:()=>(rv===void 0&&za.set(Jn.isProcessing||aH.useManualTiming?Jn.timestamp:performance.now()),rv),set:e=>{rv=e,queueMicrotask(u7)}};function LN(e,t){e.indexOf(t)===-1&&e.push(t)}function $N(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class BN{constructor(){this.subscriptions=[]}add(t){return LN(this.subscriptions,t),()=>$N(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let a=0;a<i;a++){const o=this.subscriptions[a];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function x5(e,t){return t?e*(1e3/t):0}const XC=30,d7=e=>!isNaN(parseFloat(e));class f7{constructor(t,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const a=za.now();this.updatedAt!==a&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=za.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=d7(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new BN);const r=this.events[t].add(n);return t==="change"?()=>{r(),Wt.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=za.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>XC)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,XC);return x5(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Fh(e,t){return new f7(e,t)}function h7(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Fh(n))}function p7(e,t){const n=Dy(e,t);let{transitionEnd:r={},transition:i={},...a}=n||{};a={...a,...r};for(const o in a){const u=NH(a[o]);h7(e,o,u)}}function m7(e){return!!(xr(e)&&e.add)}function tj(e,t){const n=e.getValue("willChange");if(m7(n))return n.add(t)}function b5(e){return e.props[Y3]}const w5=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,g7=1e-7,v7=12;function y7(e,t,n,r,i){let a,o,u=0;do o=t+(n-t)/2,a=w5(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>g7&&++u<v7);return o}function zp(e,t,n,r){if(e===t&&n===r)return hi;const i=a=>y7(a,0,1,e,n);return a=>a===0||a===1?a:w5(i(a),t,r)}const _5=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,S5=e=>t=>1-e(1-t),j5=zp(.33,1.53,.69,.99),FN=S5(j5),P5=_5(FN),N5=e=>(e*=2)<1?.5*FN(e):.5*(2-Math.pow(2,-10*(e-1))),zN=e=>1-Math.sin(Math.acos(e)),A5=S5(zN),T5=_5(zN),k5=e=>/^0[^.\s]+$/u.test(e);function x7(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||k5(e):!0}const Ph=e=>Math.round(e*1e5)/1e5,qN=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function b7(e){return e==null}const w7=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,VN=(e,t)=>n=>!!(typeof n=="string"&&w7.test(n)&&n.startsWith(e)||t&&!b7(n)&&Object.prototype.hasOwnProperty.call(n,t)),C5=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,a,o,u]=r.match(qN);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:u!==void 0?parseFloat(u):1}},_7=e=>Lo(0,255,e),sb={...Zd,transform:e=>Math.round(_7(e))},ic={test:VN("rgb","red"),parse:C5("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+sb.transform(e)+", "+sb.transform(t)+", "+sb.transform(n)+", "+Ph(Bh.transform(r))+")"};function S7(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const nj={test:VN("#"),parse:S7,transform:ic.transform},Fu={test:VN("hsl","hue"),parse:C5("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Fa.transform(Ph(t))+", "+Fa.transform(Ph(n))+", "+Ph(Bh.transform(r))+")"},mr={test:e=>ic.test(e)||nj.test(e)||Fu.test(e),parse:e=>ic.test(e)?ic.parse(e):Fu.test(e)?Fu.parse(e):nj.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ic.transform(e):Fu.transform(e)},j7=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function P7(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(qN))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(j7))===null||n===void 0?void 0:n.length)||0)>0}const O5="number",E5="color",N7="var",A7="var(",QC="${}",T7=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function zh(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let a=0;const u=t.replace(T7,f=>(mr.test(f)?(r.color.push(a),i.push(E5),n.push(mr.parse(f))):f.startsWith(A7)?(r.var.push(a),i.push(N7),n.push(f)):(r.number.push(a),i.push(O5),n.push(parseFloat(f))),++a,QC)).split(QC);return{values:n,split:u,indexes:r,types:i}}function M5(e){return zh(e).values}function R5(e){const{split:t,types:n}=zh(e),r=t.length;return i=>{let a="";for(let o=0;o<r;o++)if(a+=t[o],i[o]!==void 0){const u=n[o];u===O5?a+=Ph(i[o]):u===E5?a+=mr.transform(i[o]):a+=i[o]}return a}}const k7=e=>typeof e=="number"?0:e;function C7(e){const t=M5(e);return R5(e)(t.map(k7))}const il={test:P7,parse:M5,createTransformer:R5,getAnimatableNone:C7},O7=new Set(["brightness","contrast","saturate","opacity"]);function E7(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(qN)||[];if(!r)return e;const i=n.replace(r,"");let a=O7.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+i+")"}const M7=/\b([a-z-]*)\(.*?\)/gu,rj={...il,getAnimatableNone:e=>{const t=e.match(M7);return t?t.map(E7).join(" "):e}},R7={...AN,color:mr,backgroundColor:mr,outlineColor:mr,fill:mr,stroke:mr,borderColor:mr,borderTopColor:mr,borderRightColor:mr,borderBottomColor:mr,borderLeftColor:mr,filter:rj,WebkitFilter:rj},WN=e=>R7[e];function D5(e,t){let n=WN(e);return n!==rj&&(n=il),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const D7=new Set(["auto","none","0"]);function I7(e,t,n){let r=0,i;for(;r<e.length&&!i;){const a=e[r];typeof a=="string"&&!D7.has(a)&&zh(a).values.length&&(i=e[r]),r++}if(i&&n)for(const a of t)e[a]=D5(n,i)}const JC=e=>e===Zd||e===Ye,eO=(e,t)=>parseFloat(e.split(", ")[t]),tO=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return eO(i[1],t);{const a=r.match(/^matrix\((.+)\)$/u);return a?eO(a[1],e):0}},L7=new Set(["x","y","z"]),$7=Kd.filter(e=>!L7.has(e));function B7(e){const t=[];return $7.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const vd={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:tO(4,13),y:tO(5,14)};vd.translateX=vd.x;vd.translateY=vd.y;const yc=new Set;let ij=!1,aj=!1;function I5(){if(aj){const e=Array.from(yc).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=B7(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([a,o])=>{var u;(u=r.getValue(a))===null||u===void 0||u.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}aj=!1,ij=!1,yc.forEach(e=>e.complete()),yc.clear()}function L5(){yc.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(aj=!0)})}function F7(){L5(),I5()}class UN{constructor(t,n,r,i,a,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=a,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(yc.add(this),ij||(ij=!0,Wt.read(L5),Wt.resolveKeyframes(I5))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let a=0;a<t.length;a++)if(t[a]===null)if(a===0){const o=i==null?void 0:i.get(),u=t[t.length-1];if(o!==void 0)t[0]=o;else if(r&&n){const f=r.readValue(n,u);f!=null&&(t[0]=f)}t[0]===void 0&&(t[0]=u),i&&o===void 0&&i.set(t[0])}else t[a]=t[a-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),yc.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,yc.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const $5=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),z7=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function q7(e){const t=z7.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function B5(e,t,n=1){const[r,i]=q7(e);if(!r)return;const a=window.getComputedStyle(t).getPropertyValue(r);if(a){const o=a.trim();return $5(o)?parseFloat(o):o}return NN(i)?B5(i,t,n+1):i}const F5=e=>t=>t.test(e),V7={test:e=>e==="auto",parse:e=>e},z5=[Zd,Ye,Fa,$s,EH,OH,V7],nO=e=>z5.find(F5(e));class q5 extends UN{constructor(t,n,r,i,a){super(t,n,r,i,a,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let f=0;f<t.length;f++){let h=t[f];if(typeof h=="string"&&(h=h.trim(),NN(h))){const g=B5(h,n.current);g!==void 0&&(t[f]=g),f===t.length-1&&(this.finalKeyframe=h)}}if(this.resolveNoneKeyframes(),!y5.has(r)||t.length!==2)return;const[i,a]=t,o=nO(i),u=nO(a);if(o!==u)if(JC(o)&&JC(u))for(let f=0;f<t.length;f++){const h=t[f];typeof h=="string"&&(t[f]=parseFloat(h))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)x7(t[i])&&r.push(i);r.length&&I7(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=vd[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const a=n.getValue(r);a&&a.jump(this.measuredOrigin,!1);const o=i.length-1,u=i[o];i[o]=vd[r](n.measureViewportBox(),window.getComputedStyle(n.current)),u!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=u),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([f,h])=>{n.getValue(f).set(h)}),this.resolveNoneKeyframes()}}const rO=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(il.test(e)||e==="0")&&!e.startsWith("url("));function W7(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function U7(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const a=e[e.length-1],o=rO(i,t),u=rO(a,t);return!o||!u?!1:W7(e)||(n==="spring"||RN(n))&&r}const H7=e=>e!==null;function Iy(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(H7),a=t&&n!=="loop"&&t%2===1?0:i.length-1;return!a||r===void 0?i[a]:r}const G7=40;class V5{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:o="loop",...u}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=za.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:a,repeatType:o,...u},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>G7?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&F7(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=za.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:a,delay:o,onComplete:u,onUpdate:f,isGenerator:h}=this.options;if(!h&&!U7(t,r,i,a))if(o)this.options.duration=0;else{f&&f(Iy(t,this.options,n)),u&&u(),this.resolveFinishedPromise();return}const g=this.initPlayback(t,n);g!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...g},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const rn=(e,t,n)=>e+(t-e)*n;function lb(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function K7({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{const u=n<.5?n*(1+t):n+t-n*t,f=2*n-u;i=lb(f,u,e+1/3),a=lb(f,u,e),o=lb(f,u,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function mv(e,t){return n=>n>0?t:e}const cb=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Z7=[nj,ic,Fu],Y7=e=>Z7.find(t=>t.test(e));function iO(e){const t=Y7(e);if(!t)return!1;let n=t.parse(e);return t===Fu&&(n=K7(n)),n}const aO=(e,t)=>{const n=iO(e),r=iO(t);if(!n||!r)return mv(e,t);const i={...n};return a=>(i.red=cb(n.red,r.red,a),i.green=cb(n.green,r.green,a),i.blue=cb(n.blue,r.blue,a),i.alpha=rn(n.alpha,r.alpha,a),ic.transform(i))},X7=(e,t)=>n=>t(e(n)),qp=(...e)=>e.reduce(X7),oj=new Set(["none","hidden"]);function Q7(e,t){return oj.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function J7(e,t){return n=>rn(e,t,n)}function HN(e){return typeof e=="number"?J7:typeof e=="string"?NN(e)?mv:mr.test(e)?aO:n9:Array.isArray(e)?W5:typeof e=="object"?mr.test(e)?aO:e9:mv}function W5(e,t){const n=[...e],r=n.length,i=e.map((a,o)=>HN(a)(a,t[o]));return a=>{for(let o=0;o<r;o++)n[o]=i[o](a);return n}}function e9(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=HN(e[i])(e[i],t[i]));return i=>{for(const a in r)n[a]=r[a](i);return n}}function t9(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let a=0;a<t.values.length;a++){const o=t.types[a],u=e.indexes[o][i[o]],f=(n=e.values[u])!==null&&n!==void 0?n:0;r[a]=f,i[o]++}return r}const n9=(e,t)=>{const n=il.createTransformer(t),r=zh(e),i=zh(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?oj.has(e)&&!i.values.length||oj.has(t)&&!r.values.length?Q7(e,t):qp(W5(t9(r,i),i.values),n):mv(e,t)};function U5(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?rn(e,t,n):HN(e)(e,t)}const r9=5;function H5(e,t,n){const r=Math.max(t-r9,0);return x5(n-e(r),t-r)}const dn={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},ub=.001;function i9({duration:e=dn.duration,bounce:t=dn.bounce,velocity:n=dn.velocity,mass:r=dn.mass}){let i,a,o=1-t;o=Lo(dn.minDamping,dn.maxDamping,o),e=Lo(dn.minDuration,dn.maxDuration,Oo(e)),o<1?(i=h=>{const g=h*o,p=g*e,y=g-n,w=sj(h,o),j=Math.exp(-p);return ub-y/w*j},a=h=>{const p=h*o*e,y=p*n+n,w=Math.pow(o,2)*Math.pow(h,2)*e,j=Math.exp(-p),S=sj(Math.pow(h,2),o);return(-i(h)+ub>0?-1:1)*((y-w)*j)/S}):(i=h=>{const g=Math.exp(-h*e),p=(h-n)*e+1;return-ub+g*p},a=h=>{const g=Math.exp(-h*e),p=(n-h)*(e*e);return g*p});const u=5/e,f=o9(i,a,u);if(e=Co(e),isNaN(f))return{stiffness:dn.stiffness,damping:dn.damping,duration:e};{const h=Math.pow(f,2)*r;return{stiffness:h,damping:o*2*Math.sqrt(r*h),duration:e}}}const a9=12;function o9(e,t,n){let r=n;for(let i=1;i<a9;i++)r=r-e(r)/t(r);return r}function sj(e,t){return e*Math.sqrt(1-t*t)}const s9=["duration","bounce"],l9=["stiffness","damping","mass"];function oO(e,t){return t.some(n=>e[n]!==void 0)}function c9(e){let t={velocity:dn.velocity,stiffness:dn.stiffness,damping:dn.damping,mass:dn.mass,isResolvedFromDuration:!1,...e};if(!oO(e,l9)&&oO(e,s9))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*Lo(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:dn.mass,stiffness:i,damping:a}}else{const n=i9(e);t={...t,...n,mass:dn.mass},t.isResolvedFromDuration=!0}return t}function G5(e=dn.visualDuration,t=dn.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],u={done:!1,value:a},{stiffness:f,damping:h,mass:g,duration:p,velocity:y,isResolvedFromDuration:w}=c9({...n,velocity:-Oo(n.velocity||0)}),j=y||0,S=h/(2*Math.sqrt(f*g)),_=o-a,P=Oo(Math.sqrt(f/g)),O=Math.abs(_)<5;r||(r=O?dn.restSpeed.granular:dn.restSpeed.default),i||(i=O?dn.restDelta.granular:dn.restDelta.default);let C;if(S<1){const T=sj(P,S);C=M=>{const I=Math.exp(-S*P*M);return o-I*((j+S*P*_)/T*Math.sin(T*M)+_*Math.cos(T*M))}}else if(S===1)C=T=>o-Math.exp(-P*T)*(_+(j+P*_)*T);else{const T=P*Math.sqrt(S*S-1);C=M=>{const I=Math.exp(-S*P*M),$=Math.min(T*M,300);return o-I*((j+S*P*_)*Math.sinh($)+T*_*Math.cosh($))/T}}const E={calculatedDuration:w&&p||null,next:T=>{const M=C(T);if(w)u.done=T>=p;else{let I=0;S<1&&(I=T===0?Co(j):H5(C,T,M));const $=Math.abs(I)<=r,z=Math.abs(o-M)<=i;u.done=$&&z}return u.value=u.done?o:M,u},toString:()=>{const T=Math.min(d5(E),JS),M=f5(I=>E.next(T*I).value,T,30);return T+"ms "+M}};return E}function sO({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:u,max:f,restDelta:h=.5,restSpeed:g}){const p=e[0],y={done:!1,value:p},w=$=>u!==void 0&&$<u||f!==void 0&&$>f,j=$=>u===void 0?f:f===void 0||Math.abs(u-$)<Math.abs(f-$)?u:f;let S=n*t;const _=p+S,P=o===void 0?_:o(_);P!==_&&(S=P-p);const O=$=>-S*Math.exp(-$/r),C=$=>P+O($),E=$=>{const z=O($),Y=C($);y.done=Math.abs(z)<=h,y.value=y.done?P:Y};let T,M;const I=$=>{w(y.value)&&(T=$,M=G5({keyframes:[y.value,j(y.value)],velocity:H5(C,$,y.value),damping:i,stiffness:a,restDelta:h,restSpeed:g}))};return I(0),{calculatedDuration:null,next:$=>{let z=!1;return!M&&T===void 0&&(z=!0,E($),I($)),T!==void 0&&$>=T?M.next($-T):(!z&&E($),y)}}}const u9=zp(.42,0,1,1),d9=zp(0,0,.58,1),K5=zp(.42,0,.58,1),f9=e=>Array.isArray(e)&&typeof e[0]!="number",h9={linear:hi,easeIn:u9,easeInOut:K5,easeOut:d9,circIn:zN,circInOut:T5,circOut:A5,backIn:FN,backInOut:P5,backOut:j5,anticipate:N5},lO=e=>{if(DN(e)){U3(e.length===4);const[t,n,r,i]=e;return zp(t,n,r,i)}else if(typeof e=="string")return h9[e];return e};function p9(e,t,n){const r=[],i=n||U5,a=e.length-1;for(let o=0;o<a;o++){let u=i(e[o],e[o+1]);if(t){const f=Array.isArray(t)?t[o]||hi:t;u=qp(f,u)}r.push(u)}return r}function m9(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const a=e.length;if(U3(a===t.length),a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const u=p9(t,r,i),f=u.length,h=g=>{if(o&&g<e[0])return t[0];let p=0;if(f>1)for(;p<e.length-2&&!(g<e[p+1]);p++);const y=md(e[p],e[p+1],g);return u[p](y)};return n?g=>h(Lo(e[0],e[a-1],g)):h}function g9(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=md(0,t,r);e.push(rn(n,1,i))}}function v9(e){const t=[0];return g9(t,e.length-1),t}function y9(e,t){return e.map(n=>n*t)}function x9(e,t){return e.map(()=>t||K5).splice(0,e.length-1)}function gv({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=f9(r)?r.map(lO):lO(r),a={done:!1,value:t[0]},o=y9(n&&n.length===t.length?n:v9(t),e),u=m9(o,t,{ease:Array.isArray(i)?i:x9(t,i)});return{calculatedDuration:e,next:f=>(a.value=u(f),a.done=f>=e,a)}}const b9=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Wt.update(t,!0),stop:()=>rl(t),now:()=>Jn.isProcessing?Jn.timestamp:za.now()}},w9={decay:sO,inertia:sO,tween:gv,keyframes:gv,spring:G5},_9=e=>e/100;class GN extends V5{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:f}=this.options;f&&f()};const{name:n,motionValue:r,element:i,keyframes:a}=this.options,o=(i==null?void 0:i.KeyframeResolver)||UN,u=(f,h)=>this.onKeyframesResolved(f,h);this.resolver=new o(a,u,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:a,velocity:o=0}=this.options,u=RN(n)?n:w9[n]||gv;let f,h;u!==gv&&typeof t[0]!="number"&&(f=qp(_9,U5(t[0],t[1])),t=[0,100]);const g=u({...this.options,keyframes:t});a==="mirror"&&(h=u({...this.options,keyframes:[...t].reverse(),velocity:-o})),g.calculatedDuration===null&&(g.calculatedDuration=d5(g));const{calculatedDuration:p}=g,y=p+i,w=y*(r+1)-i;return{generator:g,mirroredGenerator:h,mapPercentToKeyframes:f,calculatedDuration:p,resolvedDuration:y,totalDuration:w}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:$}=this.options;return{done:!0,value:$[$.length-1]}}const{finalKeyframe:i,generator:a,mirroredGenerator:o,mapPercentToKeyframes:u,keyframes:f,calculatedDuration:h,totalDuration:g,resolvedDuration:p}=r;if(this.startTime===null)return a.next(0);const{delay:y,repeat:w,repeatType:j,repeatDelay:S,onUpdate:_}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-g/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const P=this.currentTime-y*(this.speed>=0?1:-1),O=this.speed>=0?P<0:P>g;this.currentTime=Math.max(P,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=g);let C=this.currentTime,E=a;if(w){const $=Math.min(this.currentTime,g)/p;let z=Math.floor($),Y=$%1;!Y&&$>=1&&(Y=1),Y===1&&z--,z=Math.min(z,w+1),!!(z%2)&&(j==="reverse"?(Y=1-Y,S&&(Y-=S/p)):j==="mirror"&&(E=o)),C=Lo(0,1,Y)*p}const T=O?{done:!1,value:f[0]}:E.next(C);u&&(T.value=u(T.value));let{done:M}=T;!O&&h!==null&&(M=this.speed>=0?this.currentTime>=g:this.currentTime<=0);const I=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&M);return I&&i!==void 0&&(T.value=Iy(f,this.options,i)),_&&_(T.value),I&&this.finish(),T}get duration(){const{resolved:t}=this;return t?Oo(t.calculatedDuration):0}get time(){return Oo(this.currentTime)}set time(t){t=Co(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Oo(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=b9,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(a=>this.tick(a))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const S9=new Set(["opacity","clipPath","filter","transform"]);function j9(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o="loop",ease:u="easeInOut",times:f}={}){const h={[t]:n};f&&(h.offset=f);const g=p5(u,i);return Array.isArray(g)&&(h.easing=g),e.animate(h,{delay:r,duration:i,easing:Array.isArray(g)?"linear":g,fill:"both",iterations:a+1,direction:o==="reverse"?"alternate":"normal"})}const P9=xN(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),vv=10,N9=2e4;function A9(e){return RN(e.type)||e.type==="spring"||!h5(e.ease)}function T9(e,t){const n=new GN({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let a=0;for(;!r.done&&a<N9;)r=n.sample(a),i.push(r.value),a+=vv;return{times:void 0,keyframes:i,duration:a-vv,ease:"linear"}}const Z5={anticipate:N5,backInOut:P5,circInOut:T5};function k9(e){return e in Z5}class cO extends V5{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:a}=this.options;this.resolver=new q5(a,(o,u)=>this.onKeyframesResolved(o,u),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:i,ease:a,type:o,motionValue:u,name:f,startTime:h}=this.options;if(!u.owner||!u.owner.current)return!1;if(typeof a=="string"&&pv()&&k9(a)&&(a=Z5[a]),A9(this.options)){const{onComplete:p,onUpdate:y,motionValue:w,element:j,...S}=this.options,_=T9(t,S);t=_.keyframes,t.length===1&&(t[1]=t[0]),r=_.duration,i=_.times,a=_.ease,o="keyframes"}const g=j9(u.owner.current,f,t,{...this.options,duration:r,times:i,ease:a});return g.startTime=h??this.calcStartTime(),this.pendingTimeline?(GC(g,this.pendingTimeline),this.pendingTimeline=void 0):g.onfinish=()=>{const{onComplete:p}=this.options;u.set(Iy(t,this.options,n)),p&&p(),this.cancel(),this.resolveFinishedPromise()},{animation:g,duration:r,times:i,type:o,ease:a,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Oo(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Oo(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Co(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return hi;const{animation:r}=n;GC(r,t)}return hi}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:a,ease:o,times:u}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:h,onUpdate:g,onComplete:p,element:y,...w}=this.options,j=new GN({...w,keyframes:r,duration:i,type:a,ease:o,times:u,isGenerator:!0}),S=Co(this.time);h.setWithVelocity(j.sample(S-vv).value,j.sample(S).value,vv)}const{onStop:f}=this.options;f&&f(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:a,damping:o,type:u}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:f,transformTemplate:h}=n.owner.getProps();return P9()&&r&&S9.has(r)&&!f&&!h&&!i&&a!=="mirror"&&o!==0&&u!=="inertia"}}const C9={type:"spring",stiffness:500,damping:25,restSpeed:10},O9=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),E9={type:"keyframes",duration:.8},M9={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},R9=(e,{keyframes:t})=>t.length>2?E9:Oc.has(e)?e.startsWith("scale")?O9(t[1]):C9:M9;function D9({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:a,repeatType:o,repeatDelay:u,from:f,elapsed:h,...g}){return!!Object.keys(g).length}const KN=(e,t,n,r={},i,a)=>o=>{const u=MN(r,e)||{},f=u.delay||r.delay||0;let{elapsed:h=0}=r;h=h-Co(f);let g={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...u,delay:-h,onUpdate:y=>{t.set(y),u.onUpdate&&u.onUpdate(y)},onComplete:()=>{o(),u.onComplete&&u.onComplete()},name:e,motionValue:t,element:a?void 0:i};D9(u)||(g={...g,...R9(e,g)}),g.duration&&(g.duration=Co(g.duration)),g.repeatDelay&&(g.repeatDelay=Co(g.repeatDelay)),g.from!==void 0&&(g.keyframes[0]=g.from);let p=!1;if((g.type===!1||g.duration===0&&!g.repeatDelay)&&(g.duration=0,g.delay===0&&(p=!0)),p&&!a&&t.get()!==void 0){const y=Iy(g.keyframes,u);if(y!==void 0)return Wt.update(()=>{g.onUpdate(y),g.onComplete()}),new e7([])}return!a&&cO.supports(g)?new cO(g):new GN(g)};function I9({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Y5(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var a;let{transition:o=e.getDefaultTransition(),transitionEnd:u,...f}=t;r&&(o=r);const h=[],g=i&&e.animationState&&e.animationState.getState()[i];for(const p in f){const y=e.getValue(p,(a=e.latestValues[p])!==null&&a!==void 0?a:null),w=f[p];if(w===void 0||g&&I9(g,p))continue;const j={delay:n,...MN(o||{},p)};let S=!1;if(window.MotionHandoffAnimation){const P=b5(e);if(P){const O=window.MotionHandoffAnimation(P,p,Wt);O!==null&&(j.startTime=O,S=!0)}}tj(e,p),y.start(KN(p,y,w,e.shouldReduceMotion&&y5.has(p)?{type:!1}:j,e,S));const _=y.animation;_&&h.push(_)}return u&&Promise.all(h).then(()=>{Wt.update(()=>{u&&p7(e,u)})}),h}function lj(e,t,n={}){var r;const i=Dy(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:a=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(a=n.transitionOverride);const o=i?()=>Promise.all(Y5(e,i,n)):()=>Promise.resolve(),u=e.variantChildren&&e.variantChildren.size?(h=0)=>{const{delayChildren:g=0,staggerChildren:p,staggerDirection:y}=a;return L9(e,t,g+h,p,y,n)}:()=>Promise.resolve(),{when:f}=a;if(f){const[h,g]=f==="beforeChildren"?[o,u]:[u,o];return h().then(()=>g())}else return Promise.all([o(),u(n.delay)])}function L9(e,t,n=0,r=0,i=1,a){const o=[],u=(e.variantChildren.size-1)*r,f=i===1?(h=0)=>h*r:(h=0)=>u-h*r;return Array.from(e.variantChildren).sort($9).forEach((h,g)=>{h.notify("AnimationStart",t),o.push(lj(h,t,{...a,delay:n+f(g)}).then(()=>h.notify("AnimationComplete",t)))}),Promise.all(o)}function $9(e,t){return e.sortNodePosition(t)}function B9(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(a=>lj(e,a,n));r=Promise.all(i)}else if(typeof t=="string")r=lj(e,t,n);else{const i=typeof t=="function"?Dy(e,t,n.custom):t;r=Promise.all(Y5(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const F9=wN.length;function X5(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?X5(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<F9;n++){const r=wN[n],i=e.props[r];($h(i)||i===!1)&&(t[r]=i)}return t}const z9=[...bN].reverse(),q9=bN.length;function V9(e){return t=>Promise.all(t.map(({animation:n,options:r})=>B9(e,n,r)))}function W9(e){let t=V9(e),n=uO(),r=!0;const i=f=>(h,g)=>{var p;const y=Dy(e,g,f==="exit"?(p=e.presenceContext)===null||p===void 0?void 0:p.custom:void 0);if(y){const{transition:w,transitionEnd:j,...S}=y;h={...h,...S,...j}}return h};function a(f){t=f(e)}function o(f){const{props:h}=e,g=X5(e.parent)||{},p=[],y=new Set;let w={},j=1/0;for(let _=0;_<q9;_++){const P=z9[_],O=n[P],C=h[P]!==void 0?h[P]:g[P],E=$h(C),T=P===f?O.isActive:null;T===!1&&(j=_);let M=C===g[P]&&C!==h[P]&&E;if(M&&r&&e.manuallyAnimateOnMount&&(M=!1),O.protectedKeys={...w},!O.isActive&&T===null||!C&&!O.prevProp||My(C)||typeof C=="boolean")continue;const I=U9(O.prevProp,C);let $=I||P===f&&O.isActive&&!M&&E||_>j&&E,z=!1;const Y=Array.isArray(C)?C:[C];let V=Y.reduce(i(P),{});T===!1&&(V={});const{prevResolvedValues:q={}}=O,G={...q,...V},Q=re=>{$=!0,y.has(re)&&(z=!0,y.delete(re)),O.needsAnimating[re]=!0;const W=e.getValue(re);W&&(W.liveStyle=!1)};for(const re in G){const W=V[re],oe=q[re];if(w.hasOwnProperty(re))continue;let U=!1;QS(W)&&QS(oe)?U=!u5(W,oe):U=W!==oe,U?W!=null?Q(re):y.add(re):W!==void 0&&y.has(re)?Q(re):O.protectedKeys[re]=!0}O.prevProp=C,O.prevResolvedValues=V,O.isActive&&(w={...w,...V}),r&&e.blockInitialAnimation&&($=!1),$&&(!(M&&I)||z)&&p.push(...Y.map(re=>({animation:re,options:{type:P}})))}if(y.size){const _={};y.forEach(P=>{const O=e.getBaseTarget(P),C=e.getValue(P);C&&(C.liveStyle=!0),_[P]=O??null}),p.push({animation:_})}let S=!!p.length;return r&&(h.initial===!1||h.initial===h.animate)&&!e.manuallyAnimateOnMount&&(S=!1),r=!1,S?t(p):Promise.resolve()}function u(f,h){var g;if(n[f].isActive===h)return Promise.resolve();(g=e.variantChildren)===null||g===void 0||g.forEach(y=>{var w;return(w=y.animationState)===null||w===void 0?void 0:w.setActive(f,h)}),n[f].isActive=h;const p=o(f);for(const y in n)n[y].protectedKeys={};return p}return{animateChanges:o,setActive:u,setAnimateFunction:a,getState:()=>n,reset:()=>{n=uO(),r=!0}}}function U9(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!u5(t,e):!1}function Gl(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function uO(){return{animate:Gl(!0),whileInView:Gl(),whileHover:Gl(),whileTap:Gl(),whileDrag:Gl(),whileFocus:Gl(),exit:Gl()}}class ul{constructor(t){this.isMounted=!1,this.node=t}update(){}}class H9 extends ul{constructor(t){super(t),t.animationState||(t.animationState=W9(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();My(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let G9=0;class K9 extends ul{constructor(){super(...arguments),this.id=G9++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const Z9={animation:{Feature:H9},exit:{Feature:K9}};function qh(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Vp(e){return{point:{x:e.pageX,y:e.pageY}}}const Y9=e=>t=>IN(t)&&e(t,Vp(t));function Nh(e,t,n,r){return qh(e,t,Y9(n),r)}const dO=(e,t)=>Math.abs(e-t);function X9(e,t){const n=dO(e.x,t.x),r=dO(e.y,t.y);return Math.sqrt(n**2+r**2)}class Q5{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:a=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const p=fb(this.lastMoveEventInfo,this.history),y=this.startEvent!==null,w=X9(p.offset,{x:0,y:0})>=3;if(!y&&!w)return;const{point:j}=p,{timestamp:S}=Jn;this.history.push({...j,timestamp:S});const{onStart:_,onMove:P}=this.handlers;y||(_&&_(this.lastMoveEvent,p),this.startEvent=this.lastMoveEvent),P&&P(this.lastMoveEvent,p)},this.handlePointerMove=(p,y)=>{this.lastMoveEvent=p,this.lastMoveEventInfo=db(y,this.transformPagePoint),Wt.update(this.updatePoint,!0)},this.handlePointerUp=(p,y)=>{this.end();const{onEnd:w,onSessionEnd:j,resumeAnimation:S}=this.handlers;if(this.dragSnapToOrigin&&S&&S(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const _=fb(p.type==="pointercancel"?this.lastMoveEventInfo:db(y,this.transformPagePoint),this.history);this.startEvent&&w&&w(p,_),j&&j(p,_)},!IN(t))return;this.dragSnapToOrigin=a,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const o=Vp(t),u=db(o,this.transformPagePoint),{point:f}=u,{timestamp:h}=Jn;this.history=[{...f,timestamp:h}];const{onSessionStart:g}=n;g&&g(t,fb(u,this.history)),this.removeListeners=qp(Nh(this.contextWindow,"pointermove",this.handlePointerMove),Nh(this.contextWindow,"pointerup",this.handlePointerUp),Nh(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),rl(this.updatePoint)}}function db(e,t){return t?{point:t(e.point)}:e}function fO(e,t){return{x:e.x-t.x,y:e.y-t.y}}function fb({point:e},t){return{point:e,delta:fO(e,J5(t)),offset:fO(e,Q9(t)),velocity:J9(t,.1)}}function Q9(e){return e[0]}function J5(e){return e[e.length-1]}function J9(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=J5(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Co(t)));)n--;if(!r)return{x:0,y:0};const a=Oo(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};const o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}const e$=1e-4,eG=1-e$,tG=1+e$,t$=.01,nG=0-t$,rG=0+t$;function pi(e){return e.max-e.min}function iG(e,t,n){return Math.abs(e-t)<=n}function hO(e,t,n,r=.5){e.origin=r,e.originPoint=rn(t.min,t.max,e.origin),e.scale=pi(n)/pi(t),e.translate=rn(n.min,n.max,e.origin)-e.originPoint,(e.scale>=eG&&e.scale<=tG||isNaN(e.scale))&&(e.scale=1),(e.translate>=nG&&e.translate<=rG||isNaN(e.translate))&&(e.translate=0)}function Ah(e,t,n,r){hO(e.x,t.x,n.x,r?r.originX:void 0),hO(e.y,t.y,n.y,r?r.originY:void 0)}function pO(e,t,n){e.min=n.min+t.min,e.max=e.min+pi(t)}function aG(e,t,n){pO(e.x,t.x,n.x),pO(e.y,t.y,n.y)}function mO(e,t,n){e.min=t.min-n.min,e.max=e.min+pi(t)}function Th(e,t,n){mO(e.x,t.x,n.x),mO(e.y,t.y,n.y)}function oG(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?rn(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?rn(n,e,r.max):Math.min(e,n)),e}function gO(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function sG(e,{top:t,left:n,bottom:r,right:i}){return{x:gO(e.x,n,i),y:gO(e.y,t,r)}}function vO(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function lG(e,t){return{x:vO(e.x,t.x),y:vO(e.y,t.y)}}function cG(e,t){let n=.5;const r=pi(e),i=pi(t);return i>r?n=md(t.min,t.max-r,e.min):r>i&&(n=md(e.min,e.max-i,t.min)),Lo(0,1,n)}function uG(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const cj=.35;function dG(e=cj){return e===!1?e=0:e===!0&&(e=cj),{x:yO(e,"left","right"),y:yO(e,"top","bottom")}}function yO(e,t,n){return{min:xO(e,t),max:xO(e,n)}}function xO(e,t){return typeof e=="number"?e:e[t]||0}const bO=()=>({translate:0,scale:1,origin:0,originPoint:0}),zu=()=>({x:bO(),y:bO()}),wO=()=>({min:0,max:0}),gn=()=>({x:wO(),y:wO()});function Ri(e){return[e("x"),e("y")]}function n$({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function fG({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function hG(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function hb(e){return e===void 0||e===1}function uj({scale:e,scaleX:t,scaleY:n}){return!hb(e)||!hb(t)||!hb(n)}function Ql(e){return uj(e)||r$(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function r$(e){return _O(e.x)||_O(e.y)}function _O(e){return e&&e!=="0%"}function yv(e,t,n){const r=e-n,i=t*r;return n+i}function SO(e,t,n,r,i){return i!==void 0&&(e=yv(e,i,r)),yv(e,n,r)+t}function dj(e,t=0,n=1,r,i){e.min=SO(e.min,t,n,r,i),e.max=SO(e.max,t,n,r,i)}function i$(e,{x:t,y:n}){dj(e.x,t.translate,t.scale,t.originPoint),dj(e.y,n.translate,n.scale,n.originPoint)}const jO=.999999999999,PO=1.0000000000001;function pG(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let u=0;u<i;u++){a=n[u],o=a.projectionDelta;const{visualElement:f}=a.options;f&&f.props.style&&f.props.style.display==="contents"||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&Vu(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,i$(e,o)),r&&Ql(a.latestValues)&&Vu(e,a.latestValues))}t.x<PO&&t.x>jO&&(t.x=1),t.y<PO&&t.y>jO&&(t.y=1)}function qu(e,t){e.min=e.min+t,e.max=e.max+t}function NO(e,t,n,r,i=.5){const a=rn(e.min,e.max,i);dj(e,t,n,a,r)}function Vu(e,t){NO(e.x,t.x,t.scaleX,t.scale,t.originX),NO(e.y,t.y,t.scaleY,t.scale,t.originY)}function a$(e,t){return n$(hG(e.getBoundingClientRect(),t))}function mG(e,t,n){const r=a$(e,n),{scroll:i}=t;return i&&(qu(r.x,i.offset.x),qu(r.y,i.offset.y)),r}const o$=({current:e})=>e?e.ownerDocument.defaultView:null,gG=new WeakMap;class vG{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=gn(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=g=>{const{dragSnapToOrigin:p}=this.getProps();p?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Vp(g).point)},a=(g,p)=>{const{drag:y,dragPropagation:w,onDragStart:j}=this.getProps();if(y&&!w&&(this.openDragLock&&this.openDragLock(),this.openDragLock=c7(y),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ri(_=>{let P=this.getAxisMotionValue(_).get()||0;if(Fa.test(P)){const{projection:O}=this.visualElement;if(O&&O.layout){const C=O.layout.layoutBox[_];C&&(P=pi(C)*(parseFloat(P)/100))}}this.originPoint[_]=P}),j&&Wt.postRender(()=>j(g,p)),tj(this.visualElement,"transform");const{animationState:S}=this.visualElement;S&&S.setActive("whileDrag",!0)},o=(g,p)=>{const{dragPropagation:y,dragDirectionLock:w,onDirectionLock:j,onDrag:S}=this.getProps();if(!y&&!this.openDragLock)return;const{offset:_}=p;if(w&&this.currentDirection===null){this.currentDirection=yG(_),this.currentDirection!==null&&j&&j(this.currentDirection);return}this.updateAxis("x",p.point,_),this.updateAxis("y",p.point,_),this.visualElement.render(),S&&S(g,p)},u=(g,p)=>this.stop(g,p),f=()=>Ri(g=>{var p;return this.getAnimationState(g)==="paused"&&((p=this.getAxisMotionValue(g).animation)===null||p===void 0?void 0:p.play())}),{dragSnapToOrigin:h}=this.getProps();this.panSession=new Q5(t,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:u,resumeAnimation:f},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:h,contextWindow:o$(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:a}=this.getProps();a&&Wt.postRender(()=>a(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Cg(t,i,this.currentDirection))return;const a=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=oG(o,this.constraints[t],this.elastic[t])),a.set(o)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,a=this.constraints;n&&Bu(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=sG(i.layoutBox,n):this.constraints=!1,this.elastic=dG(r),a!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Ri(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=uG(i.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Bu(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const a=mG(r,i.root,this.visualElement.getTransformPagePoint());let o=lG(i.layout.layoutBox,a);if(n){const u=n(fG(o));this.hasMutatedConstraints=!!u,u&&(o=n$(u))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:a,dragSnapToOrigin:o,onDragTransitionEnd:u}=this.getProps(),f=this.constraints||{},h=Ri(g=>{if(!Cg(g,n,this.currentDirection))return;let p=f&&f[g]||{};o&&(p={min:0,max:0});const y=i?200:1e6,w=i?40:1e7,j={type:"inertia",velocity:r?t[g]:0,bounceStiffness:y,bounceDamping:w,timeConstant:750,restDelta:1,restSpeed:10,...a,...p};return this.startAxisValueAnimation(g,j)});return Promise.all(h).then(u)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return tj(this.visualElement,t),r.start(KN(t,r,0,n,this.visualElement,!1))}stopAnimation(){Ri(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Ri(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Ri(n=>{const{drag:r}=this.getProps();if(!Cg(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,a=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:u}=i.layout.layoutBox[n];a.set(t[n]-rn(o,u,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Bu(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Ri(o=>{const u=this.getAxisMotionValue(o);if(u&&this.constraints!==!1){const f=u.get();i[o]=cG({min:f,max:f},this.constraints[o])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Ri(o=>{if(!Cg(o,t,null))return;const u=this.getAxisMotionValue(o),{min:f,max:h}=this.constraints[o];u.set(rn(f,h,i[o]))})}addListeners(){if(!this.visualElement.current)return;gG.set(this.visualElement,this);const t=this.visualElement.current,n=Nh(t,"pointerdown",f=>{const{drag:h,dragListener:g=!0}=this.getProps();h&&g&&this.start(f)}),r=()=>{const{dragConstraints:f}=this.getProps();Bu(f)&&f.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,a=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Wt.read(r);const o=qh(window,"resize",()=>this.scalePositionWithinConstraints()),u=i.addEventListener("didUpdate",(({delta:f,hasLayoutChanged:h})=>{this.isDragging&&h&&(Ri(g=>{const p=this.getAxisMotionValue(g);p&&(this.originPoint[g]+=f[g].translate,p.set(p.get()+f[g].translate))}),this.visualElement.render())}));return()=>{o(),n(),a(),u&&u()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:a=!1,dragElastic:o=cj,dragMomentum:u=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:a,dragElastic:o,dragMomentum:u}}}function Cg(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function yG(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class xG extends ul{constructor(t){super(t),this.removeGroupControls=hi,this.removeListeners=hi,this.controls=new vG(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||hi}unmount(){this.removeGroupControls(),this.removeListeners()}}const AO=e=>(t,n)=>{e&&Wt.postRender(()=>e(t,n))};class bG extends ul{constructor(){super(...arguments),this.removePointerDownListener=hi}onPointerDown(t){this.session=new Q5(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:o$(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:AO(t),onStart:AO(n),onMove:r,onEnd:(a,o)=>{delete this.session,i&&Wt.postRender(()=>i(a,o))}}}mount(){this.removePointerDownListener=Nh(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const iv={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function TO(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const th={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Ye.test(e))e=parseFloat(e);else return e;const n=TO(e,t.target.x),r=TO(e,t.target.y);return`${n}% ${r}%`}},wG={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=il.parse(e);if(i.length>5)return r;const a=il.createTransformer(e),o=typeof i[0]!="number"?1:0,u=n.x.scale*t.x,f=n.y.scale*t.y;i[0+o]/=u,i[1+o]/=f;const h=rn(u,f,.5);return typeof i[2+o]=="number"&&(i[2+o]/=h),typeof i[3+o]=="number"&&(i[3+o]/=h),a(i)}};class _G extends k.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:a}=t;qH(SG),a&&(n.group&&n.group.add(a),r&&r.register&&i&&r.register(a),a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),iv.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:a}=this.props,o=r.projection;return o&&(o.isPresent=a,i||t.layoutDependency!==n||n===void 0?o.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?o.promote():o.relegate()||Wt.postRender(()=>{const u=o.getStack();(!u||!u.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),SN.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function s$(e){const[t,n]=V3(),r=k.useContext(mN);return c.jsx(_G,{...e,layoutGroup:r,switchLayoutGroup:k.useContext(X3),isPresent:t,safeToRemove:n})}const SG={borderRadius:{...th,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:th,borderTopRightRadius:th,borderBottomLeftRadius:th,borderBottomRightRadius:th,boxShadow:wG};function jG(e,t,n){const r=xr(e)?e:Fh(e);return r.start(KN("",r,t,n)),r.animation}function PG(e){return e instanceof SVGElement&&e.tagName!=="svg"}const NG=(e,t)=>e.depth-t.depth;class AG{constructor(){this.children=[],this.isDirty=!1}add(t){LN(this.children,t),this.isDirty=!0}remove(t){$N(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(NG),this.isDirty=!1,this.children.forEach(t)}}function TG(e,t){const n=za.now(),r=({timestamp:i})=>{const a=i-n;a>=t&&(rl(r),e(a-t))};return Wt.read(r,!0),()=>rl(r)}const l$=["TopLeft","TopRight","BottomLeft","BottomRight"],kG=l$.length,kO=e=>typeof e=="string"?parseFloat(e):e,CO=e=>typeof e=="number"||Ye.test(e);function CG(e,t,n,r,i,a){i?(e.opacity=rn(0,n.opacity!==void 0?n.opacity:1,OG(r)),e.opacityExit=rn(t.opacity!==void 0?t.opacity:1,0,EG(r))):a&&(e.opacity=rn(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let o=0;o<kG;o++){const u=`border${l$[o]}Radius`;let f=OO(t,u),h=OO(n,u);if(f===void 0&&h===void 0)continue;f||(f=0),h||(h=0),f===0||h===0||CO(f)===CO(h)?(e[u]=Math.max(rn(kO(f),kO(h),r),0),(Fa.test(h)||Fa.test(f))&&(e[u]+="%")):e[u]=h}(t.rotate||n.rotate)&&(e.rotate=rn(t.rotate||0,n.rotate||0,r))}function OO(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const OG=c$(0,.5,A5),EG=c$(.5,.95,hi);function c$(e,t,n){return r=>r<e?0:r>t?1:n(md(e,t,r))}function EO(e,t){e.min=t.min,e.max=t.max}function Ci(e,t){EO(e.x,t.x),EO(e.y,t.y)}function MO(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function RO(e,t,n,r,i){return e-=t,e=yv(e,1/n,r),i!==void 0&&(e=yv(e,1/i,r)),e}function MG(e,t=0,n=1,r=.5,i,a=e,o=e){if(Fa.test(t)&&(t=parseFloat(t),t=rn(o.min,o.max,t/100)-o.min),typeof t!="number")return;let u=rn(a.min,a.max,r);e===a&&(u-=t),e.min=RO(e.min,t,n,u,i),e.max=RO(e.max,t,n,u,i)}function DO(e,t,[n,r,i],a,o){MG(e,t[n],t[r],t[i],t.scale,a,o)}const RG=["x","scaleX","originX"],DG=["y","scaleY","originY"];function IO(e,t,n,r){DO(e.x,t,RG,n?n.x:void 0,r?r.x:void 0),DO(e.y,t,DG,n?n.y:void 0,r?r.y:void 0)}function LO(e){return e.translate===0&&e.scale===1}function u$(e){return LO(e.x)&&LO(e.y)}function $O(e,t){return e.min===t.min&&e.max===t.max}function IG(e,t){return $O(e.x,t.x)&&$O(e.y,t.y)}function BO(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function d$(e,t){return BO(e.x,t.x)&&BO(e.y,t.y)}function FO(e){return pi(e.x)/pi(e.y)}function zO(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class LG{constructor(){this.members=[]}add(t){LN(this.members,t),t.scheduleRender()}remove(t){if($N(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const a=this.members[i];if(a.isPresent!==!1){r=a;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function $G(e,t,n){let r="";const i=e.x.translate/t.x,a=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:h,rotate:g,rotateX:p,rotateY:y,skewX:w,skewY:j}=n;h&&(r=`perspective(${h}px) ${r}`),g&&(r+=`rotate(${g}deg) `),p&&(r+=`rotateX(${p}deg) `),y&&(r+=`rotateY(${y}deg) `),w&&(r+=`skewX(${w}deg) `),j&&(r+=`skewY(${j}deg) `)}const u=e.x.scale*t.x,f=e.y.scale*t.y;return(u!==1||f!==1)&&(r+=`scale(${u}, ${f})`),r||"none"}const Jl={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},yh=typeof window<"u"&&window.MotionDebug!==void 0,pb=["","X","Y","Z"],BG={visibility:"hidden"},qO=1e3;let FG=0;function mb(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function f$(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=b5(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:a}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Wt,!(i||a))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&f$(r)}function h$({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(o={},u=t==null?void 0:t()){this.id=FG++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,yh&&(Jl.totalNodes=Jl.resolvedTargetDeltas=Jl.recalculatedProjection=0),this.nodes.forEach(VG),this.nodes.forEach(KG),this.nodes.forEach(ZG),this.nodes.forEach(WG),yh&&window.MotionDebug.record(Jl)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=u?u.root||u:this,this.path=u?[...u.path,u]:[],this.parent=u,this.depth=u?u.depth+1:0;for(let f=0;f<this.path.length;f++)this.path[f].shouldResetTransform=!0;this.root===this&&(this.nodes=new AG)}addEventListener(o,u){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new BN),this.eventHandlers.get(o).add(u)}notifyListeners(o,...u){const f=this.eventHandlers.get(o);f&&f.notify(...u)}hasListeners(o){return this.eventHandlers.has(o)}mount(o,u=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=PG(o),this.instance=o;const{layoutId:f,layout:h,visualElement:g}=this.options;if(g&&!g.current&&g.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),u&&(h||f)&&(this.isLayoutDirty=!0),e){let p;const y=()=>this.root.updateBlockedByResize=!1;e(o,()=>{this.root.updateBlockedByResize=!0,p&&p(),p=TG(y,250),iv.hasAnimatedSinceResize&&(iv.hasAnimatedSinceResize=!1,this.nodes.forEach(WO))})}f&&this.root.registerSharedNode(f,this),this.options.animate!==!1&&g&&(f||h)&&this.addEventListener("didUpdate",({delta:p,hasLayoutChanged:y,hasRelativeTargetChanged:w,layout:j})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const S=this.options.transition||g.getDefaultTransition()||eK,{onLayoutAnimationStart:_,onLayoutAnimationComplete:P}=g.getProps(),O=!this.targetLayout||!d$(this.targetLayout,j)||w,C=!y&&w;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||C||y&&(O||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(p,C);const E={...MN(S,"layout"),onPlay:_,onComplete:P};(g.shouldReduceMotion||this.options.layoutRoot)&&(E.delay=0,E.type=!1),this.startAnimation(E)}else y||WO(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=j})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,rl(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(YG),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&f$(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let g=0;g<this.path.length;g++){const p=this.path[g];p.shouldResetTransform=!0,p.updateScroll("snapshot"),p.options.layoutRoot&&p.willUpdate(!1)}const{layoutId:u,layout:f}=this.options;if(u===void 0&&!f)return;const h=this.getTransformTemplate();this.prevTransformTemplateValue=h?h(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(VO);return}this.isUpdating||this.nodes.forEach(HG),this.isUpdating=!1,this.nodes.forEach(GG),this.nodes.forEach(zG),this.nodes.forEach(qG),this.clearAllSnapshots();const u=za.now();Jn.delta=Lo(0,1e3/60,u-Jn.timestamp),Jn.timestamp=u,Jn.isProcessing=!0,ab.update.process(Jn),ab.preRender.process(Jn),ab.render.process(Jn),Jn.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,SN.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(UG),this.sharedNodes.forEach(XG)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Wt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Wt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let f=0;f<this.path.length;f++)this.path[f].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutCorrected=gn(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:u}=this.options;u&&u.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let u=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(u=!1),u){const f=r(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:f,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:f}}}resetTransform(){if(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,u=this.projectionDelta&&!u$(this.projectionDelta),f=this.getTransformTemplate(),h=f?f(this.latestValues,""):void 0,g=h!==this.prevTransformTemplateValue;o&&(u||Ql(this.latestValues)||g)&&(i(this.instance,h),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const u=this.measurePageBox();let f=this.removeElementScroll(u);return o&&(f=this.removeTransform(f)),tK(f),{animationId:this.root.animationId,measuredBox:u,layoutBox:f,latestValues:{},source:this.id}}measurePageBox(){var o;const{visualElement:u}=this.options;if(!u)return gn();const f=u.measureViewportBox();if(!(((o=this.scroll)===null||o===void 0?void 0:o.wasRoot)||this.path.some(nK))){const{scroll:g}=this.root;g&&(qu(f.x,g.offset.x),qu(f.y,g.offset.y))}return f}removeElementScroll(o){var u;const f=gn();if(Ci(f,o),!((u=this.scroll)===null||u===void 0)&&u.wasRoot)return f;for(let h=0;h<this.path.length;h++){const g=this.path[h],{scroll:p,options:y}=g;g!==this.root&&p&&y.layoutScroll&&(p.wasRoot&&Ci(f,o),qu(f.x,p.offset.x),qu(f.y,p.offset.y))}return f}applyTransform(o,u=!1){const f=gn();Ci(f,o);for(let h=0;h<this.path.length;h++){const g=this.path[h];!u&&g.options.layoutScroll&&g.scroll&&g!==g.root&&Vu(f,{x:-g.scroll.offset.x,y:-g.scroll.offset.y}),Ql(g.latestValues)&&Vu(f,g.latestValues)}return Ql(this.latestValues)&&Vu(f,this.latestValues),f}removeTransform(o){const u=gn();Ci(u,o);for(let f=0;f<this.path.length;f++){const h=this.path[f];if(!h.instance||!Ql(h.latestValues))continue;uj(h.latestValues)&&h.updateSnapshot();const g=gn(),p=h.measurePageBox();Ci(g,p),IO(u,h.latestValues,h.snapshot?h.snapshot.layoutBox:void 0,g)}return Ql(this.latestValues)&&IO(u,this.latestValues),u}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Jn.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var u;const f=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=f.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=f.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=f.isSharedProjectionDirty);const h=!!this.resumingFrom||this!==f;if(!(o||h&&this.isSharedProjectionDirty||this.isProjectionDirty||!((u=this.parent)===null||u===void 0)&&u.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:p,layoutId:y}=this.options;if(!(!this.layout||!(p||y))){if(this.resolvedRelativeTargetAt=Jn.timestamp,!this.targetDelta&&!this.relativeTarget){const w=this.getClosestProjectingParent();w&&w.layout&&this.animationProgress!==1?(this.relativeParent=w,this.forceRelativeParentToResolveTarget(),this.relativeTarget=gn(),this.relativeTargetOrigin=gn(),Th(this.relativeTargetOrigin,this.layout.layoutBox,w.layout.layoutBox),Ci(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=gn(),this.targetWithTransforms=gn()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),aG(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Ci(this.target,this.layout.layoutBox),i$(this.target,this.targetDelta)):Ci(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const w=this.getClosestProjectingParent();w&&!!w.resumingFrom==!!this.resumingFrom&&!w.options.layoutScroll&&w.target&&this.animationProgress!==1?(this.relativeParent=w,this.forceRelativeParentToResolveTarget(),this.relativeTarget=gn(),this.relativeTargetOrigin=gn(),Th(this.relativeTargetOrigin,this.target,w.target),Ci(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}yh&&Jl.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||uj(this.parent.latestValues)||r$(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var o;const u=this.getLead(),f=!!this.resumingFrom||this!==u;let h=!0;if((this.isProjectionDirty||!((o=this.parent)===null||o===void 0)&&o.isProjectionDirty)&&(h=!1),f&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(h=!1),this.resolvedRelativeTargetAt===Jn.timestamp&&(h=!1),h)return;const{layout:g,layoutId:p}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(g||p))return;Ci(this.layoutCorrected,this.layout.layoutBox);const y=this.treeScale.x,w=this.treeScale.y;pG(this.layoutCorrected,this.treeScale,this.path,f),u.layout&&!u.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(u.target=u.layout.layoutBox,u.targetWithTransforms=gn());const{target:j}=u;if(!j){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(MO(this.prevProjectionDelta.x,this.projectionDelta.x),MO(this.prevProjectionDelta.y,this.projectionDelta.y)),Ah(this.projectionDelta,this.layoutCorrected,j,this.latestValues),(this.treeScale.x!==y||this.treeScale.y!==w||!zO(this.projectionDelta.x,this.prevProjectionDelta.x)||!zO(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",j)),yh&&Jl.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var u;if((u=this.options.visualElement)===null||u===void 0||u.scheduleRender(),o){const f=this.getStack();f&&f.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=zu(),this.projectionDelta=zu(),this.projectionDeltaWithTransform=zu()}setAnimationOrigin(o,u=!1){const f=this.snapshot,h=f?f.latestValues:{},g={...this.latestValues},p=zu();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!u;const y=gn(),w=f?f.source:void 0,j=this.layout?this.layout.source:void 0,S=w!==j,_=this.getStack(),P=!_||_.members.length<=1,O=!!(S&&!P&&this.options.crossfade===!0&&!this.path.some(JG));this.animationProgress=0;let C;this.mixTargetDelta=E=>{const T=E/1e3;UO(p.x,o.x,T),UO(p.y,o.y,T),this.setTargetDelta(p),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Th(y,this.layout.layoutBox,this.relativeParent.layout.layoutBox),QG(this.relativeTarget,this.relativeTargetOrigin,y,T),C&&IG(this.relativeTarget,C)&&(this.isProjectionDirty=!1),C||(C=gn()),Ci(C,this.relativeTarget)),S&&(this.animationValues=g,CG(g,h,this.latestValues,T,O,P)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=T},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(rl(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Wt.update(()=>{iv.hasAnimatedSinceResize=!0,this.currentAnimation=jG(0,qO,{...o,onUpdate:u=>{this.mixTargetDelta(u),o.onUpdate&&o.onUpdate(u)},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(qO),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:u,target:f,layout:h,latestValues:g}=o;if(!(!u||!f||!h)){if(this!==o&&this.layout&&h&&p$(this.options.animationType,this.layout.layoutBox,h.layoutBox)){f=this.target||gn();const p=pi(this.layout.layoutBox.x);f.x.min=o.target.x.min,f.x.max=f.x.min+p;const y=pi(this.layout.layoutBox.y);f.y.min=o.target.y.min,f.y.max=f.y.min+y}Ci(u,f),Vu(u,g),Ah(this.projectionDeltaWithTransform,this.layoutCorrected,u,g)}}registerSharedNode(o,u){this.sharedNodes.has(o)||this.sharedNodes.set(o,new LG),this.sharedNodes.get(o).add(u);const h=u.options.initialPromotionConfig;u.promote({transition:h?h.transition:void 0,preserveFollowOpacity:h&&h.shouldPreserveFollowOpacity?h.shouldPreserveFollowOpacity(u):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:u}=this.options;return u?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:u}=this.options;return u?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:u,preserveFollowOpacity:f}={}){const h=this.getStack();h&&h.promote(this,f),o&&(this.projectionDelta=void 0,this.needsReset=!0),u&&this.setOptions({transition:u})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let u=!1;const{latestValues:f}=o;if((f.z||f.rotate||f.rotateX||f.rotateY||f.rotateZ||f.skewX||f.skewY)&&(u=!0),!u)return;const h={};f.z&&mb("z",o,h,this.animationValues);for(let g=0;g<pb.length;g++)mb(`rotate${pb[g]}`,o,h,this.animationValues),mb(`skew${pb[g]}`,o,h,this.animationValues);o.render();for(const g in h)o.setStaticValue(g,h[g]),this.animationValues&&(this.animationValues[g]=h[g]);o.scheduleRender()}getProjectionStyles(o){var u,f;if(!this.instance||this.isSVG)return;if(!this.isVisible)return BG;const h={visibility:""},g=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,h.opacity="",h.pointerEvents=nv(o==null?void 0:o.pointerEvents)||"",h.transform=g?g(this.latestValues,""):"none",h;const p=this.getLead();if(!this.projectionDelta||!this.layout||!p.target){const S={};return this.options.layoutId&&(S.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,S.pointerEvents=nv(o==null?void 0:o.pointerEvents)||""),this.hasProjected&&!Ql(this.latestValues)&&(S.transform=g?g({},""):"none",this.hasProjected=!1),S}const y=p.animationValues||p.latestValues;this.applyTransformsToTarget(),h.transform=$G(this.projectionDeltaWithTransform,this.treeScale,y),g&&(h.transform=g(y,h.transform));const{x:w,y:j}=this.projectionDelta;h.transformOrigin=`${w.origin*100}% ${j.origin*100}% 0`,p.animationValues?h.opacity=p===this?(f=(u=y.opacity)!==null&&u!==void 0?u:this.latestValues.opacity)!==null&&f!==void 0?f:1:this.preserveOpacity?this.latestValues.opacity:y.opacityExit:h.opacity=p===this?y.opacity!==void 0?y.opacity:"":y.opacityExit!==void 0?y.opacityExit:0;for(const S in hv){if(y[S]===void 0)continue;const{correct:_,applyTo:P}=hv[S],O=h.transform==="none"?y[S]:_(y[S],p);if(P){const C=P.length;for(let E=0;E<C;E++)h[P[E]]=O}else h[S]=O}return this.options.layoutId&&(h.pointerEvents=p===this?nv(o==null?void 0:o.pointerEvents)||"":"none"),h}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var u;return(u=o.currentAnimation)===null||u===void 0?void 0:u.stop()}),this.root.nodes.forEach(VO),this.root.sharedNodes.clear()}}}function zG(e){e.updateLayout()}function qG(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:a}=e.options,o=n.source!==e.layout.source;a==="size"?Ri(p=>{const y=o?n.measuredBox[p]:n.layoutBox[p],w=pi(y);y.min=r[p].min,y.max=y.min+w}):p$(a,n.layoutBox,r)&&Ri(p=>{const y=o?n.measuredBox[p]:n.layoutBox[p],w=pi(r[p]);y.max=y.min+w,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[p].max=e.relativeTarget[p].min+w)});const u=zu();Ah(u,r,n.layoutBox);const f=zu();o?Ah(f,e.applyTransform(i,!0),n.measuredBox):Ah(f,r,n.layoutBox);const h=!u$(u);let g=!1;if(!e.resumeFrom){const p=e.getClosestProjectingParent();if(p&&!p.resumeFrom){const{snapshot:y,layout:w}=p;if(y&&w){const j=gn();Th(j,n.layoutBox,y.layoutBox);const S=gn();Th(S,r,w.layoutBox),d$(j,S)||(g=!0),p.options.layoutRoot&&(e.relativeTarget=S,e.relativeTargetOrigin=j,e.relativeParent=p)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:f,layoutDelta:u,hasLayoutChanged:h,hasRelativeTargetChanged:g})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function VG(e){yh&&Jl.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function WG(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function UG(e){e.clearSnapshot()}function VO(e){e.clearMeasurements()}function HG(e){e.isLayoutDirty=!1}function GG(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function WO(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function KG(e){e.resolveTargetDelta()}function ZG(e){e.calcProjection()}function YG(e){e.resetSkewAndRotation()}function XG(e){e.removeLeadSnapshot()}function UO(e,t,n){e.translate=rn(t.translate,0,n),e.scale=rn(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function HO(e,t,n,r){e.min=rn(t.min,n.min,r),e.max=rn(t.max,n.max,r)}function QG(e,t,n,r){HO(e.x,t.x,n.x,r),HO(e.y,t.y,n.y,r)}function JG(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const eK={duration:.45,ease:[.4,0,.1,1]},GO=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),KO=GO("applewebkit/")&&!GO("chrome/")?Math.round:hi;function ZO(e){e.min=KO(e.min),e.max=KO(e.max)}function tK(e){ZO(e.x),ZO(e.y)}function p$(e,t,n){return e==="position"||e==="preserve-aspect"&&!iG(FO(t),FO(n),.2)}function nK(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const rK=h$({attachResizeListener:(e,t)=>qh(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),gb={current:void 0},m$=h$({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!gb.current){const e=new rK({});e.mount(window),e.setOptions({layoutScroll:!0}),gb.current=e}return gb.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),iK={pan:{Feature:bG},drag:{Feature:xG,ProjectionNode:m$,MeasureLayout:s$}};function YO(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,a=r[i];a&&Wt.postRender(()=>a(t,Vp(t)))}class aK extends ul{mount(){const{current:t}=this.node;t&&(this.unmount=i7(t,n=>(YO(this.node,n,"Start"),r=>YO(this.node,r,"End"))))}unmount(){}}class oK extends ul{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=qp(qh(this.node.current,"focus",()=>this.onFocus()),qh(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function XO(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),a=r[i];a&&Wt.postRender(()=>a(t,Vp(t)))}class sK extends ul{mount(){const{current:t}=this.node;t&&(this.unmount=l7(t,n=>(XO(this.node,n,"Start"),(r,{success:i})=>XO(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const fj=new WeakMap,vb=new WeakMap,lK=e=>{const t=fj.get(e.target);t&&t(e)},cK=e=>{e.forEach(lK)};function uK({root:e,...t}){const n=e||document;vb.has(n)||vb.set(n,{});const r=vb.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(cK,{root:e,...t})),r[i]}function dK(e,t,n){const r=uK(t);return fj.set(e,n),r.observe(e),()=>{fj.delete(e),r.unobserve(e)}}const fK={some:0,all:1};class hK extends ul{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:a}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:fK[i]},u=f=>{const{isIntersecting:h}=f;if(this.isInView===h||(this.isInView=h,a&&!h&&this.hasEnteredView))return;h&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",h);const{onViewportEnter:g,onViewportLeave:p}=this.node.getProps(),y=h?g:p;y&&y(f)};return dK(this.node.current,o,u)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(pK(t,n))&&this.startObserver()}unmount(){}}function pK({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const mK={inView:{Feature:hK},tap:{Feature:sK},focus:{Feature:oK},hover:{Feature:aK}},gK={layout:{ProjectionNode:m$,MeasureLayout:s$}},hj={current:null},g$={current:!1};function vK(){if(g$.current=!0,!!yN)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>hj.current=e.matches;e.addListener(t),t()}else hj.current=!1}const yK=[...z5,mr,il],xK=e=>yK.find(F5(e)),QO=new WeakMap;function bK(e,t,n){for(const r in t){const i=t[r],a=n[r];if(xr(i))e.addValue(r,i);else if(xr(a))e.addValue(r,Fh(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=e.getStaticValue(r);e.addValue(r,Fh(o!==void 0?o:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const JO=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class wK{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:a,visualState:o},u={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=UN,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const w=za.now();this.renderScheduledAt<w&&(this.renderScheduledAt=w,Wt.render(this.render,!1,!0))};const{latestValues:f,renderState:h,onUpdate:g}=o;this.onUpdate=g,this.latestValues=f,this.baseTarget={...f},this.initialValues=n.initial?{...f}:{},this.renderState=h,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=u,this.blockInitialAnimation=!!a,this.isControllingVariants=Ry(n),this.isVariantNode=Z3(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:p,...y}=this.scrapeMotionValuesFromProps(n,{},this);for(const w in y){const j=y[w];f[w]!==void 0&&xr(j)&&j.set(f[w],!1)}}mount(t){this.current=t,QO.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),g$.current||vK(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:hj.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){QO.delete(this.current),this.projection&&this.projection.unmount(),rl(this.notifyUpdate),rl(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=Oc.has(t),i=n.on("change",u=>{this.latestValues[t]=u,this.props.onUpdate&&Wt.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),a=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),a(),o&&o(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in gd){const n=gd[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const a=this.features[t];a.isMounted?a.update():(a.mount(),a.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):gn()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<JO.length;r++){const i=JO[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const a="on"+i,o=t[a];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=bK(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}
334addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Fh(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&($5(i)||k5(i))?i=parseFloat(i):!xK(i)&&il.test(n)&&(i=D5(t,n)),this.setBaseTarget(t,xr(i)?i.get():i)),xr(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const o=PN(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(i=o[t])}if(r&&i!==void 0)return i;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!xr(a)?a:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new BN),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class v$ extends wK{constructor(){super(...arguments),this.KeyframeResolver=q5}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;xr(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function _K(e){return window.getComputedStyle(e)}class SK extends v${constructor(){super(...arguments),this.type="html",this.renderInstance=i5}readValueFromInstance(t,n){if(Oc.has(n)){const r=WN(n);return r&&r.default||0}else{const r=_K(t),i=(t5(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return a$(t,n)}build(t,n,r){TN(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return EN(t,n,r)}}class jK extends v${constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=gn}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Oc.has(n)){const r=WN(n);return r&&r.default||0}return n=a5.has(n)?n:_N(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return l5(t,n,r)}build(t,n,r){kN(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){o5(t,n,r,i)}mount(t){this.isSVGTag=ON(t.tagName),super.mount(t)}}const PK=(e,t)=>jN(e)?new jK(t):new SK(t,{allowProjection:e!==k.Fragment}),NK=XH({...Z9,...mK,...iK,...gK},PK),Ue=fH(NK);var Yd=QL();/**
335 * @remix-run/router v1.23.3
336 *
337 * Copyright (c) Remix Software Inc.
338 *
339 * This source code is licensed under the MIT license found in the
340 * LICENSE.md file in the root directory of this source tree.
341 *
342 * @license MIT
343 */function Vh(){return Vh=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},Vh.apply(null,arguments)}var Zs;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Zs||(Zs={}));const e2="popstate";function AK(e){e===void 0&&(e={});function t(r,i){let{pathname:a,search:o,hash:u}=r.location;return pj("",{pathname:a,search:o,hash:u},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:xv(i)}return kK(t,n,null,e)}function jn(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function ZN(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function TK(){return Math.random().toString(36).substr(2,8)}function t2(e,t){return{usr:e.state,key:e.key,idx:t}}function pj(e,t,n,r){return n===void 0&&(n=null),Vh({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Xd(t):t,{state:n,key:t&&t.key||r||TK()})}function xv(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 Xd(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 kK(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,u=Zs.Pop,f=null,h=g();h==null&&(h=0,o.replaceState(Vh({},o.state,{idx:h}),""));function g(){return(o.state||{idx:null}).idx}function p(){u=Zs.Pop;let _=g(),P=_==null?null:_-h;h=_,f&&f({action:u,location:S.location,delta:P})}function y(_,P){u=Zs.Push;let O=pj(S.location,_,P);h=g()+1;let C=t2(O,h),E=S.createHref(O);try{o.pushState(C,"",E)}catch(T){if(T instanceof DOMException&&T.name==="DataCloneError")throw T;i.location.assign(E)}a&&f&&f({action:u,location:S.location,delta:1})}function w(_,P){u=Zs.Replace;let O=pj(S.location,_,P);h=g();let C=t2(O,h),E=S.createHref(O);o.replaceState(C,"",E),a&&f&&f({action:u,location:S.location,delta:0})}function j(_){let P=i.location.origin!=="null"?i.location.origin:i.location.href,O=typeof _=="string"?_:xv(_);return O=O.replace(/ $/,"%20"),jn(P,"No window.location.(origin|href) available to create URL for href: "+O),new URL(O,P)}let S={get action(){return u},get location(){return e(i,o)},listen(_){if(f)throw new Error("A history only accepts one active listener");return i.addEventListener(e2,p),f=_,()=>{i.removeEventListener(e2,p),f=null}},createHref(_){return t(i,_)},createURL:j,encodeLocation(_){let P=j(_);return{pathname:P.pathname,search:P.search,hash:P.hash}},push:y,replace:w,go(_){return o.go(_)}};return S}var n2;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(n2||(n2={}));function CK(e,t,n){return n===void 0&&(n="/"),OK(e,t,n)}function OK(e,t,n,r){let i=typeof t=="string"?Xd(t):t,a=YN(i.pathname||"/",n);if(a==null)return null;let o=y$(e);EK(o);let u=null,f=WK(a);for(let h=0;u==null&&h<o.length;++h)u=zK(o[h],f);return u}function y$(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(a,o,u)=>{let f={relativePath:u===void 0?a.path||"":u,caseSensitive:a.caseSensitive===!0,childrenIndex:o,route:a};f.relativePath.startsWith("/")&&(jn(f.relativePath.startsWith(r),'Absolute route path "'+f.relativePath+'" nested under path '+('"'+r+'" is not val
343id. An absolute child route path ')+"must start with the combined path of all its parent routes."),f.relativePath=f.relativePath.slice(r.length));let h=Qs([r,f.relativePath]),g=n.concat(f);a.children&&a.children.length>0&&(jn(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+h+'".')),y$(a.children,t,g,h)),!(a.path==null&&!a.index)&&t.push({path:h,score:BK(h,a.index),routesMeta:g})};return e.forEach((a,o)=>{var u;if(a.path===""||!((u=a.path)!=null&&u.includes("?")))i(a,o);else for(let f of x$(a.path))i(a,o,f)}),t}function x$(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return i?[a,""]:[a];let o=x$(r.join("/")),u=[];return u.push(...o.map(f=>f===""?a:[a,f].join("/"))),i&&u.push(...o),u.map(f=>e.startsWith("/")&&f===""?"/":f)}function EK(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:FK(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const MK=/^:[\w-]+$/,RK=3,DK=2,IK=1,LK=10,$K=-2,r2=e=>e==="*";function BK(e,t){let n=e.split("/"),r=n.length;return n.some(r2)&&(r+=$K),t&&(r+=DK),n.filter(i=>!r2(i)).reduce((i,a)=>i+(MK.test(a)?RK:a===""?IK:LK),r)}function FK(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 zK(e,t,n){let{routesMeta:r}=e,i={},a="/",o=[];for(let u=0;u<r.length;++u){let f=r[u],h=u===r.length-1,g=a==="/"?t:t.slice(a.length)||"/",p=qK({path:f.relativePath,caseSensitive:f.caseSensitive,end:h},g),y=f.route;if(!p)return null;
343Object.assign(i,p.params),o.push({params:i,pathname:Qs([a,p.pathname]),pathnameBase:ZK(Qs([a,p.pathnameBase])),route:y}),p.pathnameBase!=="/"&&(a=Qs([a,p.pathnameBase]))}return o}function qK(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=VK(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let a=i[0],o=a.replace(/(.)\/+$/,"$1"),u=i.slice(1);return{params:r.reduce((h,g,p)=>{let{paramName:y,isOptional:w}=g;if(y==="*"){let S=u[p]||"";o=a.slice(0,a.length-S.length).replace(/(.)\/+$/,"$1")}const j=u[p];return w&&!j?h[y]=void 0:h[y]=(j||"").replace(/%2F/g,"/"),h},{}),pathname:a,pathnameBase:o,pattern:e}}function VK(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),ZN(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,(o,u,f)=>(r.push({paramName:u,isOptional:f!=null}),f?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function WK(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return ZN(!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 YN(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 UK=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,HK=e=>UK.test(e);function GK(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Xd(e):e,a;if(n)if(HK(n))a=n;else{if(n.includes("//")){let o=n;n=_$(n),ZN(!1,"Pathnames cannot have embedded double slashes - normalizing "+(o+" -> "+n))}n.startsWith("/")?a=i2(n.substring(1),"/"):a=i2(n,t)}else a=t;return{pathname:a,search:YK(r),hash:XK(i)}}function i2(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 yb(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 KK(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function b$(e,t){let n=KK(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function w$(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Xd(e):(i=Vh({},e),jn(!i.pathname||!i.pathname.includes("?"),yb("?","pathname","search",i)),jn(!i.pathname||!i.pathname.includes("#"),yb("#","pathname","hash",i)),jn(!i.search||!i.search.includes("#"),yb("#","search","hash",i)));let a=e===""||i.pathname==="",o=a?"/":i.pathname,u;if(o==null)u=n;else{let p=t.length-1;if(!r&&o.startsWith("..")){let y=o.split("/");for(;y[0]==="..";)y.shift(),p-=1;i.pathname=y.join("/")}u=p>=0?t[p]:"/"}let f=GK(i,u),h=o&&o!=="/"&&o.endsWith("/"),g=(a||o===".")&&n.endsWith("/");return!f.pathname.endsWith("/")&&(h||g)&&(f.pathname+="/"),f}const _$=e=>e.replace(/\/\/+/g,"/"),Qs=e=>_$(e.join("/")),ZK=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),YK=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,XK=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function QK(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const S$=["post","put","patch","delete"];new Set(S$);const JK=["get",...S$];new Set(JK);/**
344 * React Router v6.30.4
345 *
346 * Copyright (c) Remix Software Inc.
347 *
348 * This source code is licensed under the MIT license found in the
349 * LICENSE.md file in the root directory of this source tree.
350 *
351 * @license MIT
352 */function Wh(){return Wh=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},Wh.apply(null,arguments)}const XN=k.createContext(null),eZ=k.createContext(null),Ec=k.createContext(null),Ly=k.createContext(null),Mc=k.createContext({outlet:null,matches:[],isDataRoute:!1}),j$=k.createContext(null);function tZ(e,t){let{relative:n}=t===void 0?{}:t;Wp()||jn(!1);let{basename:r,navigator:i}=k.useContext(Ec),{hash:a,pathname:o,search:u}=A$(e,{relative:n}),f=o;return r!=="/"&&(f=o==="/"?r:Qs([r,o])),i.createHref({pathname:f,search:u,hash:a})}function Wp(){return k.useContext(Ly)!=null}function Uo(){return Wp()||jn(!1),k.useContext(Ly).location}function P$(e){k.useContext(Ec).static||k.useLayoutEffect(e)}function N$(){let{isDataRoute:e}=k.useContext(Mc);return e?pZ():nZ()}function nZ(){Wp()||jn(!1);let e=k.useContext(XN),{basename:t,future:n,navigator:r}=k.useContext(Ec),{matches:i}=k.useContext(Mc),{pathname:a}=Uo(),o=JSON.stringify(b$(i,n.v7_relativeSplatPath)),u=k.useRef(!1);return P$(()=>{u.current=!0}),k.useCallback(function(h,g){if(g===void 0&&(g={}),!u.current)return;if(typeof h=="number"){r.go(h);return}let p=w$(h,JSON.parse(o),a,g.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:Qs([t,p.pathname])),(g.replace?r.replace:r.push)(p,g.state,g)},[t,r,o,a,e])}function A$(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=k.useContext(Ec),{matches:i}=k.useContext(Mc),{pathname:a}=Uo(),o=JSON.stringify(b$(i,r.v7_relativeSplatPath));return k.useMemo(()=>w$(e,JSON.parse(o),a,n==="path"),[e,o,a,n])}function rZ(e,t){return iZ(e,t)}function iZ(e,t,n,r){Wp()||jn(!1);let{navigator:i}=k.useContext(Ec),{matches:a}=k.useContext(Mc),o=a[a.length-1],u=o?o.params:{};o&&o.pathname;let f=o?o.pathnameBase:"/";o&&o.route;let h=Uo(),g;if(t){var p;let _=typeof t=="string"?Xd(t):t;f==="/"||(p=_.pathname)!=null&&p.startsWith(f)||jn(!1),g=_}else g=h;let y=g.pathname||"/",w=y;if(f!=="/"){let _=f.replace(/^\//,"").split("/");w="/"+y.replace(/^\//,"").split("/").slice(_.length).join("/")}let j=CK(e,{pathname:w}),S=cZ(j&&j.map(_=>Object.assign({},_,{params:Object.assign({},u,_.params),pathname:Qs([f,i.encodeLocation?i.encodeLocation(_.pathname).pathname:_.pathname]),pathnameBase:_.pathnameBase==="/"?f:Qs([f,i.encodeLocation?i.encodeLocation(_.pathnameBase).pathname:_.pathnameBase])})),a,n,r);return t&&S?k.createElement(Ly.Provider,{value:{location:Wh({pathname:"/",search:"",hash:"",state:null,key:"default"},g),navigationType:Zs.Pop}},S):S}function aZ(){let e=hZ(),t=QK(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 k.createElement(k.Fragment,null,k.createElement("h2",null,"Unexpected Application 
352Error!"),k.createElement("h3",{style:{fontStyle:"italic"}},t),n?k.createElement("pre",{style:i},n):null,null)}const oZ=k.createElement(aZ,null);class sZ extends k.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?k.createElement(Mc.Provider,{value:this.props.routeContext},k.createElement(j$.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function lZ(e){let{routeContext:t,match:n,children:r}=e,i=k.useContext(XN);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),k.createElement(Mc.Provider,{value:t},r)}function cZ(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var a;if(!n)return null;if(n.errors)e=n.matches;else if((a=r)!=null&&a.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,u=(i=n)==null?void 0:i.errors;if(u!=null){let g=o.findIndex(p=>p.route.id&&(u==null?void 0:u[p.route.id])!==void 0);g>=0||jn(!1),o=o.slice(0,Math.min(o.length,g+1))}let f=!1,h=-1;if(n&&r&&r.v7_partialHydration)for(let g=0;g<o.length;g++){let p=o[g];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(h=g),p.route.id){let{loaderData:y,errors:w}=n,j=p.route.loader&&y[p.route.id]===void 0&&(!w||w[p.route.id]===void 0);if(p.route.lazy||j){f=!0,h>=0?o=o.slice(0,h+1):o=[o[0]];break}}}return o.reduceRight((g,p,y)=>{let w,j=!1,S=null,_=null;n&&(w=u&&p.route.id?u[p.route.id]:void 0,S=p.route.errorElement||oZ,f&&(h<0&&y===0?(mZ("route-fallback"),j=!0,_=null):h===y&&(j=!0,_=p.route.hydrateFallbackElement||null)));let P=t.concat(o.slice(0,y+1)),O=()=>{let C;return w?C=S:j?C=_:p.route.Component?C=k.createElement(p.route.Component,null):p.route.element?C=p.route.element:C=g,k.createElement(lZ,{match:p,routeContext:{outlet:g,matches:P,isDataRoute:n!=null},children:C})};return n&&(p.route.ErrorBoundary||p.route.errorElement||y===0)?k.createElement(sZ,{location:n.location,revalidation:n.revalidation,component:S,error:w,children:O(),routeContext:{outlet:null,matches:P,isDataRoute:!0}}):O()},null)}var T$=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(T$||{}),k$=(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})(k$||{});function uZ(e){let t=k.useContext(XN);return t||jn(!1),t}function dZ(e){let t=k.useContext(eZ);return t||jn(!1),t}function fZ(e){let t=k.useContext(Mc);return t||jn(!1),t}function C$(e){let t=fZ(),n=t.matches[t.matches.length-1];return n.route.id||jn(!1),n.route.id}function hZ(){var e;let t=k.useContext(j$),n=dZ(),r=C$();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function pZ(){let{router:e}=uZ(T$.UseNavigateStable),t=C$(k$.UseNavigateStable),n=k.useRef(!1);return P$(()=>{n.current=!0}),k.useCallback(function(i,a){a===void 0&&(a={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Wh({fromRouteId:t},a)))},[e,t])}const a2={};function mZ(e,t,n){a2[e]||(a2[e]=!0)}function gZ(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function wo(e){jn(!1)}function vZ(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Zs.Pop,navigator:a,static:o=!1,future:u}=e;Wp()&&jn(!1);let f=t.replace(/^\/*/,"/"),h=k.useMemo(()=>({basename:f,navigator:a,static:o,future:Wh({v7_relativeSplatPath:!1},u)}),[f,u,a,o]);typeof r=="string"&&(r=Xd(r));let{pathname:g="/",search:p="",hash:y="",state:w=null,key:j="default"}=r,S=k.useMemo(()=>{let _=YN(g,f);return _==null?null:{location:{pathname:_,search:p,hash:y,state:w,key:j},navigationType:i}},[f,g,p,y,w,j,i]);return S==null?null:k.createElement(Ec.Provider,{value:h},k.createElement(Ly.Provider,{children:n,value:S}))}function yZ(e){let{children:t,location:n}=e;return rZ(mj(t),n)}new Promise(()=>{});
352function mj(e,t){t===void 0&&(t=[]);let n=[];return k.Children.forEach(e,(r,i)=>{if(!k.isValidElement(r))return;let a=[...t,i];if(r.type===k.Fragment){n.push.apply(n,mj(r.props.children,a));return}r.type!==wo&&jn(!1),!r.props.index||!r.props.children||jn(!1);let o={id:r.props.id||a.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&&(o.children=mj(r.props.children,a)),n.push(o)}),n}/**
353 * React Router DOM v6.30.4
354 *
355 * Copyright (c) Remix Software Inc.
356 *
357 * This source code is licensed under the MIT license found in the
358 * LICENSE.md file in the root directory of this source tree.
359 *
360 * @license MIT
361 */function gj(){return gj=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},gj.apply(null,arguments)}function xZ(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 bZ(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function wZ(e,t){return e.button===0&&(!t||t==="_self")&&!bZ(e)}const _Z=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],SZ="6";try{window.__reactRouterVersion=SZ}catch{}const jZ="startTransition",o2=Hd[jZ];function PZ(e){let{basename:t,children:n,future:r,window:i}=e,a=k.useRef();a.current==null&&(a.current=AK({window:i,v5Compat:!0}));let o=a.current,[u,f]=k.useState({action:o.action,location:o.location}),{v7_startTransition:h}=r||{},g=k.useCallback(p=>{h&&o2?o2(()=>f(p)):f(p)},[f,h]);return k.useLayoutEffect(()=>o.listen(g),[o,g]),k.useEffect(()=>gZ(r),[r]),k.createElement(vZ,{basename:t,children:n,location:u.location,navigationType:u.action,navigator:o,future:r})}const NZ=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",AZ=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Je=k.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:a,replace:o,state:u,target:f,to:h,preventScrollReset:g,viewTransition:p}=t,y=xZ(t,_Z),{basename:w}=k.useContext(Ec),j,S=!1;if(typeof h=="string"&&AZ.test(h)&&(j=h,NZ))try{let C=new URL(window.location.href),E=h.startsWith("//")?new URL(C.protocol+h):new URL(h),T=YN(E.pathname,w);E.origin===C.origin&&T!=null?h=T+E.search+E.hash:S=!0}catch{}let _=tZ(h,{relative:i}),P=TZ(h,{replace:o,state:u,target:f,preventScrollReset:g,relative:i,viewTransition:p});function O(C){r&&r(C),C.defaultPrevented||P(C)}return k.createElement("a",gj({},y,{href:j||_,onClick:S||a?r:O,ref:n,target:f}))});var s2;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(s2||(s2={}));var l2;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(l2||(l2={}));function TZ(e,t){let{target:n,replace:r,state:i,preventScrollReset:a,relative:o,viewTransition:u}=t===void 0?{}:t,f=N$(),h=Uo(),g=A$(e,{relative:o});return k.useCallback(p=>{if(wZ(p,n)){p.preventDefault();let y=r!==void 0?r:xv(h)===xv(g);f(e,{replace:y,state:i,preventScrollReset:a,relative:o,viewTransition:u})}},[h,f,g,r,i,n,e,a,o,u])}function Xe(e){return"/"+e.replace(/ /g,"-")}const kZ="/media/usa-archery-texas-state-association.png",CZ="/media/world-archery.png",OZ=[{label:"USA Archery",href:"https://www.usarchery.org"},{label:"Join USA Archery",href:"https://www.usarchery.org/memberships"},{label:"World Archery",href:"https://worldarchery.sport"}];function EZ(){return c.jsxs("div",{className:"bg-[#0d1830] border border-white/10 rounded-xl p-8 lg:p-12",children:[c.jsxs("div",{className:"flex items-center justify-center gap-6 mb-8",children:[c.jsx("a",{href:"https://www.usarchery.org",target:"_blank",rel:"noopener noreferrer",className:"hover:opacity-80 transition-opacity",children:c.jsx("img",{src:kZ,alt:"USA Archery — Texas State Association",className:"w-20 h-20 sm:w-24 sm:h-24 lg:w-[160px] lg:h-[160px] object-contain"})}),c.jsx("div",{className:"w-px h-12 sm:h-16 lg:h-24 bg-white/15"}),c.jsx("a",{href:"https://worldarchery.sport",target:"_blank",rel:"noopener noreferrer",className:"hover:opacity-80 transition-opacity",children:c.jsx("img",{src:CZ,alt:"World Archery",className:"h-10 sm:h-14 lg:h-[80px] w-auto object-contain"})})]}),c.jsx("h2",{className:"text-2xl font-black text-white uppercase tracking-tight mb-6 text-center",children:"Our Affiliation with USA Archery & World Archery"}),c.jsxs("div",{className:"space-y-4 mb-8",children:[c.jsx("p",{className:"text-gray-400 leading-relaxed",style:{fontSize:"15px"},children:"The Texas State Archery Association is a registered State Association member of USA Archery, the National Governing Body for the Olympic sport of archery in the United States and a member of World Archery. Through this affiliation, TSAA-sanctioned events carry USA Archery recognition, qualifying scores count toward state records and national rankings, and Texas archers gain a direct pathway to national and international competition. TSAA events may also be sanctioned under the World Archery STAR system, enabling world record eligibility and Star Award recognition."}),c.jsx("p",{className:"text-gray-400 leading-relaxed",style:{fontSize:"15px"},children:"TSAA is an independent 501(c)(3) nonprofit organization governed by volunteer officers elected by its membership. We host state indoor and outdoor championships, the TOTS outdoor tournament series, and additional competitive and developmental events across Texas. Our mission is to promote, develop, and grow the sport of archery at every level — from first-time archers to those pursuing national team selection."}),c.jsx("p",{className:"text-gray-400 leading-relaxed",style:{fontSize:"15px"},children:"As a USA Archery State Association, TSAA members have access to programs including JOAD (Junior Olympic Archery Development), Explore Archery, Achievement Awards, and certified coaching and judging pathways. All current USA Archery members residing in Texas are automatically members of TSAA at no additional cost."})]}),c.jsx("div",{className:"flex flex-wrap gap-3 justify-center",children:OZ.map(e=>c.jsxs("a",{href:e.href,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 px-4 py-2 rounded-lg bg-white/5 border border-white/10 text-gray-300 text-xs font-bold uppercase tracking-wider hover:border-[#00d4ff]/40 hover:text-[#00d4ff] transition-colors",children:[e.label,c.jsx(fi,{className:"w-3 h-3"})]},e.label))})]})}function MZ(){const{data:e,isLoading:t}=an({queryKey:["board"],queryFn:()=>on.entities.BoardMember.list("display_order",20),initialData:[]});return c.jsxs("div",{className:"min-h-screen bg-[#060d1f]",children:[c.jsx("div",{className:"bg-[#02060f] pt-16 pb-20 border-b border-white/10",children:c.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[c.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[c.jsx("div",{className:"h-1 w-10 bg-[#00d4ff] rounded-full"}),c.jsx("span",{className:"text-[#00d4ff] text-xs font-black uppercase tracking-widest",children:"Who We Are"})]}),c.jsx("h1",{className:"text-4xl lg:text-6xl font-black text-white uppercase tracking-tight",children:"About TSAA"})]})}),c.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[c.jsxs("div",{className:"bg-[#0d1830] border border-white/10 rounded-xl p-8 lg:p-12 mb-12",children:[c.jsx("h2",{className:"text-2xl font-black text-white uppercase tracking-tight mb-4",children:"Our Mission"}),c.jsx("p",{className:"text-gray-400 leading-relaxed text-lg",children:"The mission of the TSAA is to foster amateur archery competition and further the sport of archery as both a recreational and competitive sport within the meaning of section 501(c)(3) of the Internal Revenue Code. The TSAA sponsors tournaments to qualify archers for National and International competitions and presents discussion and instruction programs designed to promote the sport of archery in the state of Texas."})]}),c.jsx("div",{className:"mb-12",children:c.jsx(EZ,{})}),c.jsxs("div",{className:"mb-16",children:[c.jsxs("div",{className:"mb-8",children:[c.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[c.jsx("div",{className:"h-1 w-10 bg-[#00d4ff] rounded-full"}),c.jsx("span",{className:"text-[#00d4ff] text-xs font-black uppercase tracking-widest",children:"Leadership"})]}),c.jsx("h2",{className:"text-3xl font-black text-white uppercase tracking-tight",children:"Board Members"})]}),t?c.jsx("div",{className:"grid sm:grid-cols-2 lg:grid-cols-3 gap-6",children:[1,2,3,4,5,6].map(n=>c.jsx("div",{className:"h-40 bg-white/5 rounded-xl animate-pulse"},n))}):e.length===0?c.jsx("p",{className:"text-gray-500 text-center py-12",children:"Board member information coming soon."}):c.jsx("div",{className:"grid sm:grid-cols-2 lg:grid-cols-3 gap-4",children:e.map((n,r)=>c.jsx(Ue.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:r*.08},className:"bg-[#0d1830] border border-white/10 rounded-xl p-6 hover:border-[#00d4ff]/30 transition-all",children:c.jsxs("div",{className:"flex items-start gap-4",children:[n.photo_url?c.jsx("img",{src:n.photo_url,alt:n.name,className:"w-14 h-14 roun
361ded-lg object-cover"}):c.jsx("div",{className:"w-14 h-14 rounded-lg bg-white/5 flex items-center justify-center flex-shrink-0",children:c.jsx(c3,{className:"w-6 h-6 text-white/20"})}),c.jsxs("div",{children:[c.jsx("h3",{className:"font-black text-white",children:n.name}),c.jsx("p",{className:"text-[#00d4ff] text-xs font-bold uppercase tracking-wider mt-0.5",children:n.title}),n.email&&c.jsxs("a",{href:`mailto:${n.email}`,className:"flex items-center gap-1.5 text-xs text-gray-500 mt-2 hover:text-[#00d4ff] transition-colors",children:[c.jsx(rr,{className:"w-3 h-3"}),n.email]}),n.bio&&c.jsx("p",{className:"text-sm text-gray-500 mt-2 leading-relaxed",children:n.bio})]})]})},n.id))})]}),c.jsx("div",{className:"mb-12",children:c.jsxs("div",{className:"relative bg-gradient-to-br from-[#0d1830] to-[#060d1f] border border-[#00d4ff]/20 rounded-2xl p-8 lg:p-12 overflow-hidden",children:[c.jsx("div",{className:"absolute top-0 right-0 w-64 h-64 bg-[#00d4ff]/5 rounded-full blur-3xl pointer-events-none"}),c.jsxs("div",{className:"relative",children:[c.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[c.jsx("div",{className:"h-1 w-10 bg-[#00d4ff] rounded-full"}),c.jsx("span",{className:"text-[#00d4ff] text-xs font-black uppercase tracking-widest",children:"Advertising"})]}),c.jsxs("h2",{className:"text-3xl lg:text-4xl font-black text-white uppercase tracking-tight mb-4",children:["Reach Texas Archery.",c.jsx("br",{}),c.jsx("span",{className:"text-[#00d4ff]",children:"Own the Stage."})]}),c.jsxs("p",{className:"text-gray-400 text-lg leading-relaxed mb-8 max-w-2xl",children:["Texasarchery.org is ",c.jsx("strong",{className:"text-white",children:"the only platform"})," in Texas that brings together everything archery in one place — and our audience is serious about the sport."]}),c.jsx("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-4 mb-8",children:[{stat:"1,000+",label:"Active Members",desc:"Competitive archers statewide"},{stat:"Only Site",label:"Master Calendar",desc:"Every TX archery event in one place"},{stat:"Statewide",label:"Range Locator",desc:"Interactive map of TX clubs & ranges"},{stat:"Since 1983",label:"Trusted Authority",desc:"Official state archery body"}].map(n=>c.jsxs("div",{className:"bg-white/5 border border-white/10 rounded-xl p-5",children:[c.jsx("div",{className:"text-[#00d4ff] text-xl font-black mb-1",children:n.stat}),c.jsx("div",{className:"text-white text-sm font-black uppercase tracking-wide mb-1",children:n.label}),c.jsx("div",{className:"text-gray-500 text-xs leading-snug",children:n.desc})]},n.label))}),c.jsx("p",{className:"text-gray-400 leading-relaxed mb-6",children:"Whether you're a pro shop, bow manufacturer, archery club, or sports brand — our members are your customers. Advertise on the site that every Texas archer visits for events, results, news, and more. No other platform in the state gives you this concentrated, passionate audience."}),c.jsxs("a",{href:"mailto:[email protected]?subject=Advertising Inquiry",className:"inline-flex items-center gap-2 px-6 py-3 rounded-xl bg-[#00d4ff] text-[#060d1f] font-black uppercase tracking-widest text-sm hover:bg-[#00bfe8] transition-colors",children:[c.jsx(rr,{className:"w-4 h-4"}),"Get in Touch About Advertising"]})]})]})}),c.jsxs("div",{className:"bg-[#0d1830] border border-white/10 rounded-xl p-8 lg:p-12 mb-16",children:[c.jsx("h2",{className:"text-2xl font-black text-white uppercase tracking-tight mb-6",children:"Resources"}),c.jsx("div",{className:"grid sm:grid-cols-2 lg:grid-cols-3 gap-4",children:[{title:"Bylaws",desc:"Constitution and bylaws of the TSAA",page:"Bylaws"},{title:"State Records",desc:"Current indoor, outdoor, and field records",page:"Records"},{title:"Archer of the Year",desc:"Annual AOTY award winners by division",page:"ArcherOfTheYear"},{title:"Branding",desc:"TSAA logo and branding guidelines",page:"Branding"},{title:"Hosting an Event",desc:"Guidelines for hosting TSAA events",page:"HostEvent"},{title:"Contact",desc:"Get in touch with the TSAA board",page:"Contact"}].map(n=>c.jsxs(Je,{to:Xe(n.page),className:"bg-[#060d1f] rounded-lg p-5 border border-white/10 hover:border-[#00d4ff]/30 transition-all block",children:[c.jsx("h4",{className:"font-black text-white text-sm uppercase tracking-wide mb-1",children:n.title}),c.jsx("p",{className:"text-sm text-gray-500",children:n.desc})]},n.title))})]})]})]})}function gi({title:e,description:t,image:n,url:r,type:i="website",schema:a}){return k.useEffect(()=>{document.title=e?`${e} | TSAA`:"Texas State Archery Association";const o=(u,f)=>{let h=document.querySelector(`meta[name="${u}"], meta[property="${u}"]`);h||(h=document.createElement("meta"),u.startsWith("og:")?h.setAttribute("property",u):h.setAttribute("name",u),document.head.appendChild(h)),h.setAttribute("content",f)};if(t&&(o("description",t),o("og:description",t)),n&&(o("og:image",n),o("twitter:image",n)),r&&(o("og:url",r),o("canonical",r)),i&&o("og:type",i),a){let u=document.querySelector('script[type="application/ld+json"][data-schema="true"]');u||(u=document.createElement("script"),u.type="application/ld+json",u.setAttribute("data-schema","true"),document.head.appendChild(u)),u.textContent=JSON.stringify(a)}o("prerender-token","fzt5rKRW6UZM3PQmUFqa"),o("og:site_name","Texas State Archery Association"),o("og:locale","en_US"),o("twitter:card","summary_large_image")},[e,t,n,r,i,a]),null}function RZ(){return c.jsxs("div",{children:[c.jsx(gi,{title:"Advertise With Us",description:"Reach 3,200+ Texas archers. Advertise on texasarchery.org - the only platform bringing together everything archery in Texas.",image:"/brand/tsaa-logo.png"}),c.jsxs("div",{className:"min-h-screen bg-[#060d1f]",children:[c.jsx("div",{className:"bg-gradient-to-b from-[#0d1830] to-[#060d1f] border-b border-white/10 py-12 lg:py-16",children:c.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[c.jsxs(Je,{to:Xe("Home"),className:"inline-flex items-center gap-2 text-gray-400 hover:text-white transition-colors mb-6",children:[c.jsx(Gd,{className:"w-4 h-4"}),"Back to Home"]}),c.jsx("h1",{className:"text-4xl lg:text-5xl font-black text-white uppercase tracking-tight mb-4",children:"Advertise With TSAA"}),c.jsx("p",{className:"text-gray-400 text-lg max-w-2xl",children:"Reach the most engaged archery community in Texas — directly in their inbox."})]})}),c.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-16 lg:py-20",children:c.jsxs("div",{className:"relative bg-gradient-to-br from-[#0d1830] to-[#060d1f] border border-[#00d4ff]/20 rounded-2xl p-8 lg:p-12 overflow-hidden mb-12",children:[c.jsx("div",{className:"absolute top-0 right-0 w-64 h-64 bg-[#00d4ff]/5 rounded-full blur-3xl pointer-events-none"}),c.jsxs("div",{className:"relative",children:[c.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[c.jsx("div",{className:"h-1 w-10 bg-[#00d4ff] rounded-full"}),c.jsx("span",{className:"text-[#00d4ff] text-xs font-black uppercase tracking-widest",children:"Why Advert
361ise With Us"})]}),c.jsxs("h2",{className:"text-3xl lg:text-4xl font-black text-white uppercase tracking-tight mb-4",children:["Reach Texas Archers.",c.jsx("br",{}),c.jsx("span",{className:"text-[#00d4ff]",children:"Own the Stage."})]}),c.jsxs("p",{className:"text-gray-400 text-lg leading-relaxed mb-8 max-w-2xl",children:["texasarchery.org is ",c.jsx("strong",{className:"text-white",children:"the only platform"})," in Texas that brings together everything archery in one place — and our audience is serious about the sport."]}),c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4 mb-8",children:[{stat:"3,200+",label:"Mailing List",desc:"Direct reach to TX archers' inboxes"},{stat:"Only Site",label:"Master Calendar",desc:"Every TX archery event in one place"},{stat:"Statewide",label:"Range Locator",desc:"Interactive map of TX clubs & ranges"},{stat:"Since 1983",label:"Trusted Authority",desc:"Official state archery body"}].map(e=>c.jsxs("div",{className:"bg-white/5 border border-white/10 rounded-xl p-5",children:[c.jsx("div",{className:"text-[#00d4ff] text-xl font-black mb-1",children:e.stat}),c.jsx("div",{className:"text-white text-sm font-black uppercase tracking-wide mb-1",children:e.label}),c.jsx("div",{className:"text-gray-500 text-xs leading-snug",children:e.desc})]},e.label))}),c.jsxs("p",{className:"text-gray-400 leading-relaxed mb-8",children:["Whether you're a pro shop, bow manufacturer, archery club, or sports brand — our members are your customers. Advertise on texasarchery.org, the site every Texas archer visits for events, results, news, and more — and get in front of our ",c.jsx("strong",{className:"text-white",children:"3,200+ subscriber mailing list"}),". No other platform in the state gives you this concentrated, passionate audience delivered straight to their inbox."]}),c.jsxs("a",{href:"mailto:[email protected]?subject=Advertising Inquiry",className:"inline-flex items-center gap-2 px-6 py-3 rounded-xl bg-[#00d4ff] text-[#060d1f] font-black uppercase tracking-widest text-sm hover:bg-[#00bfe8] transition-colors",children:[c.jsx(rr,{className:"w-4 h-4"}),"Get in Touch About Advertising"]})]})]})})]})]})}function DZ(){const[e,t]=k.useState(2025),[n,r]=k.useState(""),[i,a]=k.useState("All"),{data:o=[]}=an({queryKey:["archersOfTheYear"],queryFn:()=>on.entities.ArcherOfTheYear.list(),initialData:[]}),u=k.useMemo(()=>Array.from(new Set(o.map(h=>h.year))).sort((h,g)=>g-h),[o]),f=k.useMemo(()=>o.filter(g=>g.year===e&&g.rank===1).filter(g=>{const p=!n||g.name.toLowerCase().includes(n.toLowerCase()),y=i==="All"||g.category===i;return p&&y}),[o,e,n,i]);return c.jsxs("div",{className:"min-h-screen bg-[#060d1f]",children:[c.jsx(gi,{title:"Archer of the Year Award | Texas State Archery Association",description:"Meet the TSAA Archer of the Year. Recognizing outstanding competitive achievement in Texas archery each season."}),c.jsx("div",{className:"relative pt-24 pb-16 px-4 sm:px-6 lg:px-8 bg-gradient-to-b from-[#0a1530] to-[#060d1f]",children:c.jsxs("div",{className:"max-w-6xl mx-auto text-center",children:[c.jsxs("div",{className:"flex items-center justify-center gap-3 mb-4",children:[c.jsx("div",{className:"h-1 w-10 bg-amber-400 rounded-full"}),c.jsx("span",{className:"text-amber-400 text-xs font-black uppercase tracking-widest",children:"Annual Award"}),c.jsx("div",{className:"h-1 w-10 bg-amber-400 rounded-full"})]}),c.jsxs("h1",{className:"text-5xl lg:text-7xl font-black text-white uppercase tracking-tight mb-4",children:["Archer of ",c.jsx("span",{className:"text-amber-400",children:"the Year"})]}),c.jsx("p",{className:"text-gray-400 text-lg max-w-2xl mx-auto",children:"A long-standing tradition in the State of Texas recognizing the top athletes across all three state championships."})]})}),c.jsxs("div",{className:"max-w-6xl mx-auto px-4 sm:px-6 lg:px-8 pb-24",children:[c.jsxs(Ue.section,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"mb-12",children:[c.jsx("h2",{className:"text-xl font-black text-white uppercase tracking-tight mb-6",children:"Eligibility & Scoring"}),c.jsxs("div",{className:"grid sm:grid-cols-2 gap-4",children:[c.jsxs("div",{className:"bg-[#0d1830] border border-white/10 rounded-xl p-6",children:[c.jsx("h3",{className:"text-amber-400 font-black text-sm uppercase tracking-widest mb-4",children:"Standard Categories"}),c.jsx("ul",{className:"space-y-3",children:["Must shoot at least 2 out of 3 state tournaments to be eligible","AOTY score = sum of top 2 scores from state tournaments","Top archers in each division receive a buckle award"].map((h,g)=>c.jsxs("li",{className:"flex items-start gap-3 text-gray-300 text-sm",children:[c.jsx(hd,{className:"w-4 h-4 text-amber-400 flex-shrink-0 mt-0.5"}),h]},g))})]}),c.jsxs("div",{className:"bg-[#0d1830] border border-white/10 rounded-xl p-6",children:[c.jsx("h3",{className:"text-amber-400 font-black text-sm uppercase tracking-widest mb-4",children:"Para Categories"}),c.jsx("ul",{className:"space-y-3",children:["Must shoot at least 2 out of 3 state tournaments","AOTY score = sum of top 2 scores from state tournaments","Full Para inclusion added in 2025 season"].map((h,g)=>c.jsxs("li",{className:"flex items-start gap-3 text-gray-300 text-sm",children:[c.jsx(hd,{className:"w-4 h-4 text-amber-400 flex-shrink-0 mt-0.5"}),h]},g))})]})]})]}),c.jsxs(Ue.section,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},children:[c.jsx("h2",{className:"text-xl font-black text-white uppercase tracking-tight mb-6",children:"Historical Winners"}),c.jsx("div",{className:"flex flex-wrap gap-2 mb-6",children:u.map(h=>c.jsx("button",{onClick:()=>{t(h),r(""),a("All")},className:`px-4 py-2 rounded-lg text-sm font-black uppercase tracking-wider transition-all ${e===h?"bg-amber-400 text-[#060d1f]":"bg-[#0d1830] border border-white/10 text-gray-400 hover:text-white hover:border-white/20"}`,children:h},h))}),c.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 mb-6",children:[c.jsxs("div",{className:"relative flex-1",children:[c.jsx(ky,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-gray-500"}),c.jsx("input",{type:"text",placeholder:"Search by name...",value:n,onChange:h=>r(h.target.value),className:"w-full pl-9 pr-4 py-2.5 bg-[#0d1830] border border-white/10 rounded-lg text-white placeholder-gray-500 text-sm focus:outline-none focus:border-amber-400/50"})]}),c.jsxs("select",{value:i,onChange:h=>a(h.target.value),className:"px-4 py-2.5 bg-[#0d1830] border border-white/10 rounded-lg text-gray-300 text-sm focus:outline-none focus:border-amber-400/50",children:[c.jsx("option",{value:"All",children:"All Categories"}),c.jsx("option",{value:"Standard",children:"Standard"}),c.jsx("option",{value:"Para",children:"Para"})]})]}),c.jsxs("div",{className:"text-xs text-gray-500 mb-4 font-bold uppercase tracking-wider",children:["Showing ",f.length," results"]}),c.jsxs("div",{className:"rounded-2xl border border-white/10 overflow-hidden",children:[c.jsx("div",{className:"overflow-x-auto",children:c.jsxs("table",{className:"w-full text-sm",children:[c.jsx("thead",{children:c.jsxs("tr",{className:"bg-[#0a1428] border-b border-white/10",children:[c.jsx("th",{className:"px-4 py-3 text-left text-xs font-black uppercase tracking-widest text-amber-400",children:"Division"}),c.jsx("th",{className:"px-4 py-3 text-left text-xs font-black uppercase tracking-widest text-amber-400",children:"Age Group"}),c.jsx("th",{className:"px-4 py-3 text-left text-xs font-black uppercase tracking-widest text-amber-400",children:"Gender"}),c.jsx("th",{className:"px-4 py-3 text-left text-xs font-black uppercase tracking-widest text-amber-400",children:"Winner"})]})}),c.jsx("tbody",{children:f.map((h,g)=>c.jsxs("tr",{className:`border-b border-white/5 transition-colors hover:bg-white/[0.03] ${g%2===0?"bg-[#0d1830]":"bg-[#0a1428]"}`,children:[c.jsx("td",{className:"px-4 py-3 text-white font-bold text-sm",children:h.division}),c.jsx("td",{className:"px-4 py-3 text-gray-400 text-sm",children:h.age_group||"—"}),c.jsx("td",{className:"px-4 py-3 text-gray-400",children:h.gender==="F"?"Female":"Male"}),c.jsx("td",{className:"px-4 py-3",children:c.jsxs("span",{className:"flex items-center gap-2 text-white font-bold",children:[c.jsx(Fi,{className:"w-4 h-4 text-amber-400"}),h.name]})})]},g))})]})}
361),f.length===0&&c.jsx("div",{className:"py-16 text-center text-gray-500",children:"No results found."})]})]})]})]})}const IZ=[{label:"Official TSAA Logo",url:"/brand/tsaa-logo.png",format:"PNG"}],LZ=[{name:"Navy Blue",hex:"#060d1f",label:"Primary Background"},{name:"Cyan Accent",hex:"#00d4ff",label:"Primary Accent"},{name:"Dark Navy",hex:"#0d1830",label:"Card Background"},{name:"White",hex:"#ffffff",label:"Text Primary"},{name:"Texas Red",hex:"#BF0A30",label:"Texas Flag Red"}];function $Z(){return c.jsxs("div",{className:"min-h-screen bg-[#060d1f]",children:[c.jsx("div",{className:"relative pt-24 pb-16 px-4 sm:px-6 lg:px-8 bg-gradient-to-b from-[#0a1530] to-[#060d1f]",children:c.jsxs("div",{className:"max-w-4xl mx-auto text-center",children:[c.jsxs("div",{className:"flex items-center justify-center gap-3 mb-4",children:[c.jsx("div",{className:"h-1 w-10 bg-[#00d4ff] rounded-full"}),c.jsx("span",{className:"text-[#00d4ff] text-xs font-black uppercase tracking-widest",children:"Identity"}),c.jsx("div",{className:"h-1 w-10 bg-[#00d4ff] rounded-full"})]}),c.jsxs("h1",{className:"text-5xl lg:text-7xl font-black text-white uppercase tracking-tight mb-4",children:["TSAA ",c.jsx("span",{className:"text-[#00d4ff]",children:"Branding"})]}),c.jsx("p",{className:"text-gray-400 text-lg max-w-2xl mx-auto",children:"Official logos, colors, and brand guidelines for the Texas State Archery Association."})]})}),c.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 pb-24 space-y-12",children:[c.jsxs(Ue.section,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},children:[c.jsx("h2",{className:"text-xl font-black text-white uppercase tracking-tight mb-6",children:"Official Logos"}),c.jsx("div",{className:"grid sm:grid-cols-2 gap-6",children:IZ.map((e,t)=>c.jsxs("div",{className:"bg-[#0d1830] border border-white/10 rounded-xl p-6 flex flex-col items-center gap-4",children:[c.jsx("div",{className:"w-full bg-white/5 rounded-xl p-8 flex items-center justify-center",children:c.jsx("img",{src:e.url,alt:e.label,className:"w-24 h-24 object-contain"})}),c.jsxs("div",{className:"text-center",children:[c.jsx("p",{className:"text-white font-bold text-sm",children:e.label}),c.jsx("span",{className:"text-[#00d4ff] text-xs font-black uppercase tracking-wider",children:e.format})]}),c.jsxs("a",{href:e.url,download:!0,target:"_blank",rel:"noopener noreferrer",className:"w-full flex items-center justify-center gap-2 px-4 py-2.5 bg-[#00d4ff]/10 border border-[#00d4ff]/20 text-[#00d4ff] rounded-lg text-sm font-black uppercase tracking-wider hover:bg-[#00d4ff]/20 transition-colors",children:[c.jsx(yV,{className:"w-4 h-4"})," Download"]})]},t))})]}),c.jsxs(Ue.section,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},children:[c.jsx("h2",{className:"text-xl font-black text-white uppercase tracking-tight mb-6",children:"Brand Colors"}),c.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-5 gap-4",children:LZ.map((e,t)=>c.jsxs("div",{className:"bg-[#0d1830] border border-white/10 rounded-xl overflow-hidden",children:[c.jsx("div",{className:"h-20 w-full",style:{backgroundColor:e.hex}}),c.jsxs("div",{className:"p-3",children:[c.jsx("p",{className:"text-white font-bold text-xs",children:e.name}),c.jsx("p",{className:"text-gray-500 text-xs font-mono",children:e.hex}),c.jsx("p",{className:"text-gray-600 text-xs mt-1",children:e.label})]})]},t))})]}),c.jsxs(Ue.section,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},children:[c.jsx("h2",{className:"text-xl font-black text-white uppercase tracking-tight mb-6",children:"Usage Guidelines"}),c.jsxs("div",{className:"bg-[#0d1830] border border-white/10 rounded-xl p-6 space-y-4 text-gray-300 text-sm leading-relaxed",children:[c.jsx("p",{children:"When representing TSAA in any official or unofficial capacity, please follow these guidelines:"}),c.jsxs("ul",{className:"space-y-2 ml-4",children:[c.jsxs("li",{className:"flex gap-2",children:[c.jsx("span",{className:"text-[#00d4ff]",children:"•"})," Use only official TSAA logos — do not alter, distort, or recolor the logo"]}),c.jsxs("li",{className:"flex gap-2",children:[c.jsx("span",{className:"text-[#00d4ff]",children:"•"})," Maintain clear space around the logo — no other elements within the logo's height on all sides"]}),c.jsxs("li",{className:"flex gap-2",children:[c.jsx("span",{className:"text-[#00d4ff]",children:"•"})," Do not use the logo on backgrounds that reduce legibility"]}),c.jsxs("li",{className:"flex gap-2",children:[c.jsx("span",{className:"text-[#00d4ff]",children:"•"})," For commercial or partnership use, please contact the board for approval"]})]})]})]}),c.jsxs(Ue.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"bg-[#0d1830] border border-[#00d4ff]/20 rounded-xl p-8 text-center",children:[c.jsx(CV,{className:"w-8 h-8 text-[#00d4ff] mx-auto mb-3"}),c.jsx("h3",{className:"text-white font-black text-xl uppercase tracking-tight mb-2",children:"Need custom assets?"}),c.jsx("p",{className:"text-gray-400 text-sm mb-6",children:"Contact our Communications Director for additional branding materials."}),c.jsxs("a",{href:"mailto:[email protected]",className:"inline-flex items-center gap-2 px-6 py-3 bg-[#00d4ff] text-[#060d1f] rounded-lg font-black text-sm uppercase tracking-wider hover:bg-[#00bfe8] transition-all",children:[c.jsx(rr,{className:"w-4 h-4"})," Contact Communications"]})]})]})]})}const BZ=[{title:"Preamble",content:'These bylaws are subject to, and governed by, the Texas Business Organizations Code (the "TBOC") and the certificate of formation of the corporation. In the event of a direct conflict between the provisions of these bylaws and the mandatory provisions of the TBOC or the provisions of the certificate of formation of the corporation, such provisions of the TBOC or the certificate of formation of the corporation, as the case may be, will be controlling.',sections:[]},{title:"Article I — Members",sections:[{title:"Section 1. Classes of Members",content:"The corporation shall have the following classes of membership:",bullets:['Regular Members: All persons who have their residence in Texas who are members of USA Archery (or any successor organization) are members of the Texas State Archery Association ("TSAA").',"Other classes as determined by the affirmative vote of two-thirds (2/3) of the full Board of Directors.","A member must be a member in good standing of USA Archery (or any successor organization) to be a member of the TSAA."]},{title:"Section 2. Voting by Members",content:"The members of each class shall have the following voting rights:",bullets:["Regular Members: Members may vote in person at the annual meeting on elections to the Board of Directors."]},{title:"Section 3. Termination of Membership",content:"The Board of Directors, by the affirmative vote of two-thirds (2/3) of the full Board of Directors, may suspend or expel a member for cause after an appropriate hearing. If a member of the TSAA is not a member in good standing of USA Archery (or any successor organization), their membership with the TSAA is terminated as of the date they ceased being a member of USA Archery (or its successor)."},{title:"Section 4. Resignation",content:"Any member may resign by filing a written resignation with the Secretary of the corporation, but such resignation shall not relieve the member so resigning of the obligation to pay any accrued but unpaid dues, assessment, or other charges."},{title:"Section 5. Reinstatement",content:"Upon written request signed by a former member and filed with the Secretary of the corporation, the Board of Directors may, by the affirmative vote of two-thirds (2/3) of the full Board of Directors, reinstate the former member to membership upon such terms as the Board of Directors may deem appropriate."},{title:"Section 6. Transfer of Membership",content:"Membership in this corporation is not transferable or assignable."},{title:"Section 7. Personal Liability of Members",content:"The members of the corporation shall not be personally liable for the debts, liabilities, or obligations of the corporation."}]},{title:"Article II — Meetings of Members",sections:[{title:"Section 1. Annual Meeting",content:"An annual meeting of those members having voting rights and of each class of members having voting rights shall be held each year at a time, place, and date designated by the Board of Directors for the transaction of such business as may come before the meeting. Written notice of the time, place and date of each annual meeting shall be delivered by the Secretary not less than ten (10) nor more than sixty (60) days before the date of such meeting to each member who on the record date for the notice of the meeting is entitled to vote, by the email address on file for each member and through the TSAA website."},{title:"Section 2. Special Meetings",content:"Special meetings of all members and of each class of members may be called by the President or the Board of Directors. Written notice of the time, place, date and purpose of each special meeting shall be given by the Secretary or the person or persons calling the meeting not less than ten (10) nor more than sixty (60) days before the date of such meeting to each person who on the record date for the notice of the meeting is a member, by the email address on file for each member and through the TSAA website."},{title:"Section 3. Place of Meeting",content:"The Board of Directors may designate any place within the State of Texas as the place of meeting for any annual meeting or for any special meeting called by the Board of Directors. If no designation is made, or if a special meeting is otherwise called, the place of meeting will be the registered office of the corporation; but if all members meet at any time and place, either within or outside the State of Texas, and consent to the holding of a meeting, such meeting will be valid without call or notice, and at such meeting any corporate action may be taken. Meetings may be held virtually or electronically if indicated in the meeting's notice."},{title:"Section 4. Record Date",content:"Only those persons who are members at the close of business on the third business day preceding the date upon which the corporation delivers notice of any meeting to its members shall be entitled to receive notice of such meeting."},{title:"Section 5. Quorum",content:"The presence, in person or by proxy, of a majority of the board at a meeting of the members held in accordance with these bylaws shall be necessary and sufficient to constitute a quorum for the transaction of business at such meeting. If a quorum is not present at any meeting, the members present and entitled to vote at such meeting may adjourn the meeting from time to time, without further notice other than an announcement at that meeting, until a quorum is present. At any such adjourned meeting at which a quorum is later present, any business may be transacted 
361which might have been transacted at the meeting as originally convened."},{title:"Section 6. Manner of Acting",content:"A majority of the votes entitled to be cast on a matter to be voted upon by the members present at a meeting at which a quorum is present will be necessary for the adoption thereof unless a greater number is required by law, the certificate of formation of the corporation or these bylaws."},{title:"Section 7. Action Without Meeting",content:"Unless otherwise restricted by the certificate of formation of the corporation or these bylaws, any action required or permitted to be taken at any meeting of the members may be taken without a meeting if a consent in writing, setting forth the action to be taken, is signed by a sufficient number of the members as would be necessary to take that action at a meeting at which all of the members were present and if the procedures set forth in the TBOC are followed."}]},{title:"Article III — Board of Directors",sections:[{title:"Section 1. General Powers",content:'The direction and management of the affairs of the corporation and the control and disposition of its assets shall be vested in a board of directors (the "Board of Directors").'},{title:"Section 2. Number, Tenure, and Qualifications",content:"The number of directors shall be not less than three (3) nor more than five (5). Directors serve for a term of four (4) years with staggered terms. After the initial election under these bylaws, the terms of the Secretary, Vice President, and Chief Technology Officer will be for two (2) years; after that two (2) year term is complete all subsequent terms of office for the Secretary, Vice President, and Chief Technology Officer will be for four (4) years. The Officers of the Corporation are the board of directors."},{title:"Section 3. Meetings",content:"Regular meetings are held as designated by the Board. Special meetings can be called by the President, Vice President, or majority of directors. Written notice of the time, place, and date of each meeting shall be delivered by the Secretary not less than ten (10) nor more than sixty (60) days before the date of such meeting."},{title:"Section 4. Quorum",content:"A majority of the members of the Board of Directors shall constitute a quorum for the transaction of business at any meeting of the Board of Directors, and the act of a majority of the directors present at a meeting at which a quorum is present shall be the act of the Board of Directors unless the act of a greater number is required by law, the certificate of formation of the corporation, or these bylaws."},{title:"Section 5. Action Without Meeting",content:"Any action required or permitted to be taken at a meeting of the Board of Directors or any committee may be taken without a meeting if a consent in writing, setting forth the action so taken, is signed by a sufficient number of the directors or committee members as would be necessary to take that action at a meeting at which all of the directors or committee members were present."},{title:"Section 6. Removal and Vacancies",content:"Directors can be removed by a majority vote of the board. Vacancies are filled by a majority vote of the remaining directors."}]},{title:"Article IV — Officers of the Corporation",sections:[{title:"Section 1. Number and Titles",content:"The officers of the corporation shall include:",bullets:["President","Vice President","Secretary","Treasurer","Chief Technology Officer"],footer:"Eac
361h officer shall hold office for their elected term and until their successor is duly elected and qualified unless removed, resigns, or is unable to serve."},{title:"Section 2. President",content:"The President shall be the chief executive officer of the corporation. The President shall have general executive charge, management, and control of the corporation's properties, business, and operations, with all such powers as may be reasonably incident to such responsibilities."},{title:"Section 3. Vice President",content:"The Vice President shall assist the President and, in the absence or inability of the President, shall perform the duties of the President, having all the powers and restrictions thereof. The Vice President shall perform other duties and have such other powers as the Board of Directors may prescribe from time to time."},{title:"Section 4. Secretary",content:"The Secretary is responsible for keeping minutes for all meetings of the board of directors and the membership which are called pursuant to these bylaws. The Secretary is also responsible for counting votes at any meeting called pursuant to these bylaws."},{title:"Section 5. Chief Technology Officer",content:"The Chief Technology Officer is responsible for maintaining the TSAA Website, the electronic infrastructure used by the board, and supervising the Social Media Director."},{title:"Section 6. Appointed Non-Executive Roles",content:"The following positions shall be appointed by the board and will not hold executive board status. The Board may appoint an officer to any of these positions and may designate additional appointed positions at their discretion. The board may delegate any authority conferred to the board under these bylaws to an appointed position:",bullets:["Tournament Coordinator: Oversees the organization and execution of state level Tournaments and tournament series. The Tournament Coordinator also manages the recruitment, training, and administration of Judges for tournaments.","Social Media Director: Responsible for managing the organization's social media presence and strategy. This role serves at the pleasure of the board.","College Director: Coordinates collegiate archery activities and liaises with college clubs and teams.","JOAD Co-ordinator: Responsible for liaising with JOAD clubs in Texas and helping them organize and operate effectively.","Fundraising Director: Responsible for initiating and supervising fundraising efforts for the TSAA."]},{title:"Section 7. Removal",content:"Any officer elected or appointed by the Board of Directors may be removed with or without cause by the Board of Directors at any time whenever in its sole and exclusive judgment the best interests of the corporation will be served thereby. The election of an officer shall not of itself create contract rights. The removal of an officer who is also employed by the corporation shall be without prejudice to the contract rights, if any, of the person so removed."},{title:"Section 8. Vacancies",content:"A vacancy in the office of any officer may be filled by the Board of Directors."}]},{title:"Article V — Committees",sections:[{title:"Section 1. Committees Having Board Authority",content:"The Board of Directors by resolution may designate one or more committees, which, to the extent provided in such resolution or in these bylaws, shall have and may exercise the authority of the Board of Directors, except that no such committee shall have the authority of the Board of Directors in reference to filling vacancies in the Board of Directors or any such committee, electing or removing officers or members of any such committee, amending the certificate of formation of the corporation or these bylaws, approving any termination or merger of the corporation, disposing or selling all or substantially all of the corporation's assets, or altering or repealing any resolution of the Board of Directors. The designation of such committee and the delegation thereto of authority shall not operate to relieve the Board of Directors, or any member thereof, of any responsibility imposed by law."},{title:"Section 2. Committees Not Having Board Authority",content:"Other committees n
361ot having and exercising the authority of the Board of Directors in the management of the corporation may be designated and appointed by a resolution adopted by a majority of the directors at a meeting at which a quorum is present. Such committees shall have only the powers specifically delegated to them by the Board of Directors. Membership on such committees may, but need not be, limited to directors."},{title:"Section 3. Nominating Committee",content:"The Nominating Committee shall be responsible for vetting candidates for positions on the Board of Directors. The committee shall be chaired by the President and shall consist of five (5) members appointed by the President. The duties of the Nominating Committee include:",bullets:["Reviewing applications for board positions.","Conducting interviews with prospective candidates.","Ensuring candidates meet the qualifications and standards set by the Board of Directors.","Recommending qualified candidates to the Board for election."]},{title:"Section 4. Standing Committees",content:"The Board of Directors shall establish standing committees as necessary to accomplish the goals of the organization. These may include, but are not limited to, the following:",bullets:["Nominating Committee","Fundraising Committee","Membership Committee","Program Committee"]},{title:"Section 5. Ad Hoc Committees",content:"The Board of Directors may establish ad hoc committees for specific purposes as needed. These committees shall be dissolved upon the completion of their assigned tasks."},{title:"Section 6. Quorum and Voting",content:"A majority of the members of a committee shall constitute a quorum for the transaction of business at any meeting of such committee, and the act of a majority of the committee members present at a meeting at which a quorum is present shall be the act of the committee."},{title:"Section 7. Meetings and Notices",content:"Meetings of a committee may be called by the President, the chairman of the committee, or a majority of the members of the committee. Each committee shall meet as often as is necessary to perform its duties. The person or persons calling such meeting shall cause notice to be given at any time and in any manner reasonably designed to inform the members of the time, date, and place of the meetings. Each committee shall keep minutes of its proceedings which will be submitted to the secretary for review and recording."},{title:"Section 8. Resignations and Removals",content:"Any member of a committee may resign at any time by giving notice to the chairman of the committee or the Secretary of the corporation. Unless otherwise specified in the notice, such resignation shall take effect upon receipt thereof, and the acceptance of such resignation shall not be necessary to make it effective. The Board of Directors may remove at any time with or without cause any member of any committee whenever in the sole and exclusive judgment of the Board of Directors the best interests of the corporation will be served thereby. The appointment of a person to a committee shall not of itself create contract rights."},{title:"Section 9. Vacancies",content:"A vacancy on a committee shall be filled for the unexpired term of the former occupant in the same manner in which an original appointment to such committee is made."}]},{title:"Article VI — Indemnification",sections:[{title:"Section 1. Mandatory Indemnification",content:"The corporation shall indemnify directors, officers, employees, and agents of the corporation to the fullest extent required by Chapter 8 of the TBOC and may indemnify such persons to the fullest extent permitted by Section 8.101 of the TBOC, subject in each case to those restrictions, if any, contained in the corporation's certificate of formation. The corporation shall have the power to purchase and maintain at its cost and expense insurance on behalf of such persons to the fullest extent permitted by Section 8.151 of the TBOC."},{title:"Section 2. Procedure",content:"Indemnification is subject to a determination that the person acted in good faith and in the best interests of the corporation."},{title:"Section 3. Advancement of Expenses",content:"Expenses may be advanced with a written affirmation of good faith and a repayment agreement."},{title:"Section 4. Insurance",content:"The corporation may purchase insurance to cover indemnification obligations."}]},{title:"Article VII — Amendments",sections:[{title:"Section 1. Amendment Process",content:"These bylaws may be altered, amended, or repealed by the affirmative vote of a majority of the full Board of Directors at any regular or special meeting, so long as notice of said proposed amendment is contained in the notice of the meeting and such alteration, amendment or repeal does not cause the corporation to cease to be exclusively organized and operated as an entity described 
361in Section 501(c)(3) of the Code."},{title:"Section 2. Compliance",content:"All amendments must comply with state and federal regulations governing non-profit organizations."}]},{title:"Article VIII — Miscellaneous",sections:[{title:"Section 1. Fiscal Year",content:"The fiscal year of the organization shall be determined by the Board of Directors."},{title:"Section 2. Parliamentary Authority",content:"The rules contained in the current edition of Robert's Rules of Order Newly Revised shall govern the organization in all cases to which they are applicable and in which they are not inconsistent with these bylaws and any special rules of order the organization may adopt."}]},{title:"Article IX — Conflicts of Interest Policy",sections:[{title:"Section 1. Fiduciary Duty of Directors and Officers",content:'The directors and officers of the corporation shall act in good faith, with undivided loyalty to the corporation and with the high degree of diligence, care, and skill which reasonably prudent persons would exercise in the conduct of their own affairs. In accordance with this relationship, the directors and officers of the corporation shall not take advantage of their positions, or the knowledge gained therefrom, for private gain or other personal advantage, either for themselves, their families, or anyone else in whom they have a direct or indirect personal or financial interest. Specifically, the directors and officers of the corporation shall seek to avoid conflicts of interest with the corporation. A conflict of interest exists whenever a director or officer (including the spouse, siblings, parents, or children of such director or officer) (referred to as an "interested person") has a material financial interest in a transaction or arrangement under consideration by the Board of Directors of the corporation or a committee of the Board of Directors having board authority. A person has a "financial interest" if the person has, directly or indirectly, through business, investment, or family: (1) an ownership or investment interest in any entity with which the corporation has a transaction or arrangement; or (2) a compensation arrangement with the corporation or with any entity with which the corporation has a transaction or arrangement; or (3) a potential ownership or investment interest in, or compensation arrangement with, any entity or individual with which the corporation is negotiating a transaction or arrangement.'},{title:"Section 2. Disclosure of Potential Conflicts of Interest",content:"Interested persons must disclose potential conflicts and may not participate in related discussions or votes."},{title:"Section 3. Procedures",content:"If a conflict exists, the board, without the interested person's involvement, will determine an appropriate procedure to avoid the conflict of interest while continuing to efficiently transact the TSAA's business."}]},{title:"Article X — Fiscal Management",sections:[{title:"Section 1. Fiscal Year",content:"The fiscal year of the corporation shall begin on the first day of January and end on the last day of December of each year unless otherwise designated by the Board in writing and published to the membership."},{title:"Section 2. Bank Accounts",content:"The funds of the corporation shall be deposited in such banks or other depositories as the Board of Directors may designate and shall be withdrawn upon the signature of such officers or persons as the Board of Directors may determine."},{title:"Section 3. Checks and Drafts",content:"All checks, drafts, and other orders for the payment of money, notes, and other evidences of indebtedness issued in the name of the corporation shall be signed by such officer or officers, agent or agents of the corporation and in such manner as shall be determined from time to time by resolution of the Board of Directors. In the absence of such determination by the Board of Directors, such instruments shall be signed by the Treasurer and countersigned by the President or a Vice President of the corporation."},{title:"Section 4. Books and Records",content:"The corporation shall keep correct and complete books and records of account and shall also keep minutes of the proceedings of its members, Board of Directors, and committees having any of the authority of the Board of Directors, and shall keep at the registered or principal office a record of the names and addresses of the members entitled to vote. All books and records of the corporation may be inspected by any member or the member's agent or attorney for any proper purpose at any reasonable time."},{title:"Section 5. Fiscal Management",content:"The Board of Directors shall adopt such rules and regulations as it deems necessary and proper for the fiscal management of the corporation, consistent with these bylaws."}]},{title:"Article XI — Dissolution",sections:[{title:"Section 1. Procedure",content:"The corporation may be dissolved in accordance with the applicable provisions of the TBOC. In the event of the dissolution of the corporation, the Board of Directors shall, after paying or making provision for the payment of all of the liabilities of the corporation, dispose of all of the assets of the corporation in such manner as the Board of Directors shall determine, provided such disposition shall be exclusively for the purposes of the corporation as set forth in its certificate of formation, and to such organization or organizations as shall at the time qualify as an exempt organization or organizations under Section 501(c)(3) of the Code."}]}];function FZ({article:e,index:t}){const[n,r]=k.useState(t===0),i=e.sections.length===0;return c.jsxs(Ue.div,{initial:{opacity:0,y:16},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"bg-[#0d1830] border border-white/10 rounded-xl overflow-hidden",children:[c.jsxs("button",{onClick:()=>r(!n),className:"w-full flex items-center justify-between px-6 py-5 text-left hover:bg-white/[0.03] transition-colors",children:[c.jsx("span",{className:"text-white font-black text-sm uppercase tracking-widest",children:e.title}),n?c.jsx(o3,{className:"w-4 h-4 text-[#00d4ff] flex-shrink-0"}):c.jsx(Ny,{className:"w-4 h-4 text-gray-500 flex-shrink-0"})]}),n&&c.jsx("div",{className:"px-6 pb-6 border-t border-white/5",children:i?c.jsx("p",{className:"text-gray-300 text-sm leading-relaxed pt-5",children:e.content}):c.jsx("div",{className:"space-y-5 pt-5",children:e.sections.map((a,o)=>c.jsxs("div",{children:[c.jsx("h3",{className:"text-[#00d4ff] font-black text-xs uppercase tracking-widest mb-2",children:a.title}),c.jsx("p",{className:"text-gray-300 text-sm leading-relaxed",children:a.content}),a.bullets&&c.jsx("ul",{className:"mt-2 space-y-1.5 ml-2",children:a.bullets.map((u,f)=>c.jsxs("li",{className:"flex items-start gap-2 text-gray-400 text-sm",children:[c.jsx("span",{className:"text-[#00d4ff] mt-1 flex-shrink-0",children:"•"}),u]},f))}),a.footer&&c.jsx("p",{className:"text-gray-300 text-sm leading-relaxed mt-3",children:a.footer})]},o))})})]})}function zZ(){return c.jsxs("div",{className:"min-h-screen bg-[#060d1f]",children:[c.jsx("div",{className:"relative pt-24 pb-16 px-4 sm:px-6 lg:px-8 bg-gradient-to-b from-[#0a1530] to-[#060d1f]",children:c.jsxs("div",{className:"max-w-4xl mx-auto text-center",children:[c.jsxs("div",{className:"flex items-center justify-center gap-3 mb-4",children:[c.jsx("div",{className:"h-1 w-10 bg-[#00d4ff] rounded-full"}),c.jsx("span",{className:"text-[#00d4ff] text-xs font-black uppercase tracking-widest",children:"Governance"}),c.jsx("div",{className:"h-1 w-10 bg-[#00d4ff] rounded-full"})]}),c.jsxs("h1",{className:"text-5xl lg:text-7xl font-black text-white uppercase tracking-tight mb-4",children:["Bylaws & ",c.jsx("span",{className:"text-[#00d4ff]",children:"Constitution"})]}),c.jsx("p",{className:"text-gray-400 text-lg max-w-2xl mx-auto",children:"The governing documents of the Texas State Archery Association, as ratified by our membership. Updated 2025."})]})}),c.jsxs("div",{className:"max-w-3xl mx-auto px-4 sm:px-6 lg:px-8 pb-24 space-y-4",children:[BZ.map((e,t)=>c.jsx(FZ,{article:e,index:t},t)),c.jsxs(Ue.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"bg-[#0d1830] border border-[#00d4ff]/20 rounded-xl p-8 text-center mt-8",children:[c.jsx("h3",{className:"text-white font-black text-xl uppercase tracking-tight mb-2",children:"Questions about the bylaws?"}),c.jsx("p",{className:"text-gray-400 text-sm mb-6",children:"Reach out to the TSAA Secretary with any governance questions."}),c.jsxs("a",{href:"mailto:[email protected]",className:"inline-flex items-center gap-2 px-6 py-3 bg-[#00d4ff] text-[#060d1f] rounded-lg font-black text-sm uppercase tracking-wider hover:bg-[#00bfe8] transition-all",children:[c.jsx(rr,{className:"w-4 h-4"})," Contact Secretary"]})]})]})]})}function Bn(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function fa(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function c2(e,t){const n=Bn(e);return isNaN(t)?fa(e,NaN):(n.setDate(n.getDate()+t),n)}function O$(e,t){const n=Bn(e);if(isNaN(t))return fa(e,NaN);if(!t)return n;const r=n.getDate(),i=fa(e,n.getTime());i.setMonth(n.getMonth()+t+1,0);const a=i.getDate();return r>=a?i:(n.setFullYear(i.getFullYear(),i.getMonth(),r),n)}const E$=6048e5,qZ=864e5;let VZ={};function Up(){return VZ}function yd(e,t){var u,f,h,g;const n=Up(),r=(t==null?void 0:t.weekStartsOn)??((f=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:f.weekStartsOn)??n.weekStartsOn??((g=(h=n.locale)==null?void 0:h.options)==null?void 0:g.weekStartsOn)??0,i=Bn(e),a=i.getDay(),o=(a<r?7:0)+a-r;return i.setDate(i.getDate()-o),i.setHours(0,0,0,0),i}function bv(e){return yd(e,{weekStartsOn:1}
361)}function M$(e){const t=Bn(e),n=t.getFullYear(),r=fa(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const i=bv(r),a=fa(e,0);a.setFullYear(n,0,4),a.setHours(0,0,0,0);const o=bv(a);return t.getTime()>=i.getTime()?n+1:t.getTime()>=o.getTime()?n:n-1}function wv(e){const t=Bn(e);return t.setHours(0,0,0,0),t}function u2(e){const t=Bn(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function WZ(e,t){const n=wv(e),r=wv(t),i=+n-u2(n),a=+r-u2(r);return Math.round((i-a)/qZ)}function UZ(e){const t=M$(e),n=fa(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),bv(n)}function HZ(e){return fa(e,Date.now())}function GZ(e,t){const n=wv(e),r=wv(t);return+n==+r}function KZ(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function ZZ(e){if(!KZ(e)&&typeof e!="number")return!1;const t=Bn(e);return!isNaN(Number(t))}function YZ(e){const t=Bn(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function XZ(e){const t=Bn(e);return t.setDate(1),t.setHours(0,0,0,0),t}function QZ(e){const t=Bn(e),n=fa(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function JZ(e,t){var u,f;const n=Up(),r=n.weekStartsOn??((f=(u=n.locale)==null?void 0:u.options)==null?void 0:f.weekStartsOn)??0,i=Bn(e),a=i.getDay(),o=(a<r?-7:0)+6-(a-r);return i.setDate(i.getDate()+o),i.setHours(23,59,59,999),i}const eY={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},tY=(e,t,n)=>{let r;const i=eY[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function xb(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const nY={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},rY={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},iY={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},aY={date:xb({formats:nY,defaultWidth:"full"}),time:xb({formats:rY,defaultWidth:"full"}),dateTime:xb({formats:iY,defaultWidth:"full"})},oY={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},sY=(e,t,n,r)=>oY[e];function nh(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const o=e.defaultFormattingWidth||e.defaultWidth,u=n!=null&&n.width?String(n.width):o;i=e.formattingValues[u]||e.formattingValues[o]}else{const o=e.defaultWidth,u=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[u]||e.values[o]}const a=e.argumentCallback?e.argumentCallback(t):t;return i[a]}}const lY={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},cY={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},uY={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},dY={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
361ay","Saturday"]},fY={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},hY={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},pY=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},mY={ordinalNumber:pY,era:nh({values:lY,defaultWidth:"wide"}),quarter:nh({values:cY,defaultWidth:"wide",argumentCallback:e=>e-1}),month:nh({values:uY,defaultWidth:"wide"}),day:nh({values:dY,defaultWidth:"wide"}),dayPeriod:nh({values:fY,defaultWidth:"wide",formattingValues:hY,defaultFormattingWidth:"wide"})};function rh(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;const o=a[0],u=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],f=Array.isArray(u)?vY(u,p=>p.test(o)):gY(u,p=>p.test(o));let h;h=e.valueCallback?e.valueCallback(f):f,h=n.valueCallback?n.valueCallback(h):h;const g=t.slice(o.length);return{value:h,rest:g}}}function gY(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function vY(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function yY(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],a=t.match(e.parsePattern);if(!a)return null;let o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;const u=t.slice(i.length);return{value:o,rest:u}}}const xY=/^(\d+)(th|st|nd|rd)?/i,bY=/\d+/i,wY={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},_Y={any:[/^b/i,/^(a|c)/i]},SY={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},jY={any:[/1/i,/2/i,/3/i,/4/i]},PY={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},NY={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},AY={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},TY={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},kY={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},CY={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},OY={ordinalNumber:yY({matchPattern:xY,parsePattern:bY,valueCallback:e=>parseInt(e,10)}),era:rh({matchPatterns:wY,defaultMatchWidth:"wide",parsePatterns:_Y,defaultParseWidth:"any"}),quarter:rh({matchPatterns:SY,defaultMatchWidth:"wide",parsePatterns:jY,defaultParseWidth:"any",valueCallback:e=>e+1}),month:rh({matchPatterns:PY,defaultMatchWidth:"wide",parsePatterns:NY,defaultParseWidth:"any"}),day:rh({matchPatterns:AY,defaultMatchWidth:"wide",parsePatterns:TY,defaultParseWidth:"any"}),dayPeriod:rh({matchPatterns:kY,defaultMatchWidth:"any",parsePatterns:CY,defaultParseWidth:"any"})},EY={code:"en-US",formatDistance:tY,formatLong:aY,formatRelative:sY,localize:mY,match:OY,options:{weekStartsOn:0,firstWeekContainsDate:1}};function MY(e){const t=Bn(e);return WZ(t,QZ(t))+1}function RY(e){const t=Bn(e),n=+bv(t)-+UZ(t);return Math.round(n/E$)+1}function R$(e,t){var g,p,y,w;const n=Bn(e),r=n.getFullYear(),i=Up(),a=(t==null?void 0:t.firstWeekContainsDate)??((p=(g=t==null?void 0:t.locale)==null?void 0:g.options)==null?void 0:p.firstWeekContainsDate)??i.firstWeekContainsDate??((w=(y=i.locale)==null?void 0:y.options)==null?void 0:w.firstWeekContainsDate)??1,o=fa(e,0);o.setFullYear(r+1,0,a),o.setHours(0,0,0,0);const u=yd(o,t),f=fa(e,0);f.setFullYear(r,0,a),f.setHours(0,0,0,0);const h=yd(f,t);return n.getTime()>=u.getTime()?r+1:n.getTime()>=h.getTime()?r:r-1}function DY(e,t){var u,f,h,g;const n=Up(),r=(t==null?void 0:t.firstWeekContainsDate)??((f=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:f.firstWeekContainsDate)??n.firstWeekContainsDate??((g=(h=n.locale)==null?void 0:h.options)==null?void 0:g.firstWeekContainsDate)??1,i=R$(e,t),a=fa(e,0);return a.setFullYear(i,0,r),a.setHours(0,0,0,0),yd(a,t)}function IY(e,t){const n=Bn(e),r=+yd(n,t)-+DY(n,t);return Math.round(r/E$)+1}function Tt(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Is={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return Tt(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):Tt(n+1,2)},d(e,t){return Tt(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return Tt(e.getHours()%12||12,t.length)},H(e,t){return Tt(e.getHours(),t.length)},m(e,t){return Tt(e.getMinutes(),t.length)},s(e,t){return Tt(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return Tt(i,t.length)}},ku={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},d2={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return Is.y(e,t)},Y:function(e,t,n,r){const i=R$(e,r),a=i>0?i:1-i;if(t==="YY"){const o=a%100;return Tt(o,2)}return t==="Yo"?n.ordinalNumber(a,{unit:"year"}):Tt(a,t.length)},R:function(e,t){const n=M$(e);return Tt(n,t.length)},u:function(e,t){const n=e.getFullYear();return Tt(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return Tt(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return Tt(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return Is.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return Tt(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const i=IY(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):Tt(i,t.length)},I:function(e,t,n){const r=RY(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):Tt(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Is.d(e,t)},D:function(e,t,n){const r=MY(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):Tt(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return Tt(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return Tt(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return Tt(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let i;switch(r===12?i=ku.noon:r===0?i=ku.midnight:i=r/12>
361=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let i;switch(r>=17?i=ku.evening:r>=12?i=ku.afternoon:r>=4?i=ku.morning:i=ku.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Is.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Is.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):Tt(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):Tt(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Is.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Is.s(e,t)},S:function(e,t){return Is.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return h2(r);case"XXXX":case"XX":return ec(r);case"XXXXX":case"XXX":default:return ec(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return h2(r);case"xxxx":case"xx":return ec(r);case"xxxxx":case"xxx":default:return ec(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+f2(r,":");case"OOOO":default:return"GMT"+ec(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+f2(r,":");case"zzzz":default:return"GMT"+ec(r,":")}},t:function(e,t,n){const r=Math.trunc(e.getTime()/1e3);return Tt(r,t.length)},T:function(e,t,n){const r=e.getTime();return Tt(r,t.length)}};function f2(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),a=r%60;return a===0?n+String(i):n+String(i)+t+Tt(a,2)}function h2(e,t){return e%60===0?(e>0?"-":"+")+Tt(Math.abs(e)/60,2):ec(e,t)}function ec(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Tt(Math.trunc(r/60),2),a=Tt(r%60,2);return n+i+t+a}const p2=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},D$=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},LY=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return p2(e,t);let a;switch(r){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;case"PPPP":default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",p2(r,t)).replace("{{time}}",D$(i,t))},$Y={p:D$,P:LY},BY=/^D+$/,FY=/^Y+$/,zY=["D","DD","YY","YYYY"];function qY(e){return BY.test(e)}function VY(e){return FY.test(e)}function WY(e,t,n){const r=UY(e,t,n);if(console.warn(r),zY.includes(e))throw new RangeError(r)}function UY(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const HY=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,GY=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,KY=/^'([^]*?)'?$/,ZY=/''/g,YY=/[a-zA-Z]/;function hn(e,t,n){var g,p,y,w;const r=Up(),i=r.locale??EY,a=r.firstWeekContainsDate??((p=(g=r.locale)==null?void 0:g.options)==null?void 0:p.firstWeekContainsDate)??1,o=r.weekStartsOn??((w=(y=r.locale)==null?void 0:y.options)==null?void 0:w.weekStartsOn)??0,u=Bn(e);
361if(!ZZ(u))throw new RangeError("Invalid time value");let f=t.match(GY).map(j=>{const S=j[0];if(S==="p"||S==="P"){const _=$Y[S];return _(j,i.formatLong)}return j}).join("").match(HY).map(j=>{if(j==="''")return{isToken:!1,value:"'"};const S=j[0];if(S==="'")return{isToken:!1,value:XY(j)};if(d2[S])return{isToken:!0,value:j};if(S.match(YY))throw new RangeError("Format string contains an unescaped latin alphabet character `"+S+"`");return{isToken:!1,value:j}});i.localize.preprocessor&&(f=i.localize.preprocessor(u,f));const h={firstWeekContainsDate:a,weekStartsOn:o,locale:i};return f.map(j=>{if(!j.isToken)return j.value;const S=j.value;(VY(S)||qY(S))&&WY(S,t,String(e));const _=d2[S[0]];return _(u,S,i.localize,h)}).join("")}function XY(e){const t=e.match(KY);return t?t[1].replace(ZY,"'"):e}function Uh(e){return+Bn(e)<Date.now()}function QY(e,t){const n=Bn(e),r=Bn(t);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()}function JY(e){return GZ(e,HZ(e))}function eX(e,t){return O$(e,-1)}function In(e){if(!e)return null;const t=e.includes("T")?e.split("T")[0]:e;return new Date(t+"T12:00:00")}const tX={TSAA:"bg-[#00d4ff]",TFAA:"bg-emerald-400","USA Archery":"bg-red-400","Texas ASA":"bg-orange-400","TX ASA":"bg-orange-400",S3DA:"bg-violet-400","Texas 4-H":"bg-lime-400",NASP:"bg-yellow-400"},nX=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];function rX({events:e,onEventClick:t}){const[n,r]=k.useState(new Date),i=k.useMemo(()=>{const p={};return e.forEach(y=>{const w=In(y.event_date),j=y.end_date?In(y.end_date):w;let S=new Date(w);for(;S<=j;){const _=hn(S,"yyyy-MM-dd");p[_]||(p[_]=[]),p[_].push(y),S=c2(S,1)}}),p},[e]),a=XZ(n),o=YZ(n),u=yd(a),f=JZ(o),h=[];let g=u;for(;g<=f;){const p=[];for(let y=0;y<7;y++)p.push(new Date(g)),g=c2(g,1);h.push(p)}return c.jsxs("div",{children:[c.jsxs("div",{className:"flex items-center justify-between mb-4",children:[c.jsx("button",{onClick:()=>r(eX(n)),className:"p-2 rounded-lg border border-white/10 text-gray-400 hover:text-white hover:border-white/20 transition-colors",children:c.jsx(i3,{className:"w-4 h-4"})}),c.jsx("h2",{className:"text-lg font-black text-white uppercase tracking-widest",children:hn(n,"MMMM yyyy")}),c.jsx("button",{onClick:()=>r(O$(n,1)),className:"p-2 rounded-lg border border-white/10 text-gray-400 hover:text-white hover:border-white/20 transition-colors",children:c.jsx(a3,{className:"w-4 h-4"})})]}),c.jsx("div",{className:"grid grid-cols-7 gap-px mb-px",children:nX.map(p=>c.jsx("div",{className:"text-center text-[10px] font-black text-gray-500 uppercase tracking-widest py-2",children:p},p))}),c.jsx("div",{className:"grid grid-cols-7 gap-px bg-white/5 rounded-xl overflow-hidden",children:h.map((p,y)=>p.map((w,j)=>{const S=hn(w,"yyyy-MM-dd"),_=i[S]||[],P=QY(w,n),O=JY(w);return c.jsxs("div",{className:`min-h-[80px] sm:min-h-[100px] p-1.5 sm:p-2 ${P?"bg-[#0d1830]":"bg-[#060d1f]/60"} ${O?"ring-1 ring-inset ring-[#00d4ff]/40":""}`,children:[c.jsx("div",{className:`text-xs font-bold mb-1 ${O?"text-[#00d4ff]":P?"text-gray-400":"text-gray-700"}`,children:hn(w,"d")}),c.jsxs("div",{className:"space-y-0.5 overflow-hidden",children:[_.slice(0,3).map((C,E)=>c.jsxs("button",{onClick:()=>t(C),className:"w-full text-left flex items-center gap-1 group",children:[c.jsx("span",{className:`w-1.5 h-1.5 rounded-full flex-shrink-0 ${tX[C.organizer]||"bg-gray-400"}`}),c.jsx("span",{className:"text-[10px] text-gray-400 group-hover:text-white truncate transition-colors leading-tight",children:C.name})]},`${C.id}-${E}`)),_.length>3&&c.jsxs("div",{className:"text-[9px] text-gray-600 pl-2.5",children:["+",_.length-3," more"]})]})]},`${y}-${j}`)}))})]})}const iX={TSAA:{email:"[email protected]",website:"https://www.tsaa.us"},TFAA:{email:"[email protected]",website:"https://www.tfaa.org"},"USA Archery":{email:null,website:"https://www.usaarchery.org"},"Texas ASA":{email:null,website:"https://www.texasasa.com"}},aX={indoor:"Indoor",outdoor:"Outdoor",field:"Field","3d":"3D",tots:"TOTS","25m":"25m",mixed:"Mixed"},oX={TSAA:"bg-[#00d4ff]/20 text-[#00d4ff] border-[#00d4ff]/40",TFAA:"bg-emerald-500/20 text-emerald-400 border-emerald-500/40","USA Archery":"bg-red-500/20 text-red-400 border-red-500/40","Texas ASA":"bg-orange-500/20 text-orange-400 border-orange-500/40"};function sX({event:e,onClose:t}){if(!e)return null;const n=iX[e.organizer]||{},r=oX[e.organizer]||"bg-gray-500/20 text-gray-400 border-gray-500/40",a=(f=>f&&(f.includes("/wp-admin")||f.includes("/wp-login")||f.includes("?page_id=")))(e.registration_url)?n.website||null:e.registration_url,o=e.location?`https://www.google.com/maps/search/?api=1&query=${encodeURIComponent(e.location)}`:null,u=e.location?`https://maps.apple.com/?q=${encodeURIComponent(e.location)}`:null;return c.jsx(Bp,{children:c.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",onClick:t,children:[c.jsx(Ue.div,{initial:{opacity:0}
361,animate:{opacity:1},exit:{opacity:0},className:"absolute inset-0 bg-black/70 backdrop-blur-sm"}),c.jsxs(Ue.div,{initial:{opacity:0,scale:.95,y:20},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:20},transition:{type:"spring",stiffness:300,damping:30},onClick:f=>f.stopPropagation(),className:"relative w-full max-w-lg bg-[#0d1830] border border-white/10 rounded-2xl shadow-2xl overflow-hidden",children:[c.jsx("div",{className:"h-1 w-full bg-gradient-to-r from-[#00d4ff] to-[#0088aa]"}),c.jsxs("div",{className:"p-6",children:[c.jsx("button",{onClick:t,className:"absolute top-4 right-4 p-1.5 rounded-lg text-gray-500 hover:text-white hover:bg-white/10 transition-colors",children:c.jsx(Cy,{className:"w-5 h-5"})}),c.jsxs("div",{className:"flex flex-wrap gap-2 mb-3",children:[c.jsx("span",{className:`text-[10px] font-black uppercase tracking-wider px-2.5 py-1 rounded-full border ${r}`,children:e.organizer}),e.discipline&&c.jsx("span",{className:"text-[10px] font-black uppercase tracking-wider px-2.5 py-1 rounded-full bg-white/5 text-gray-400 border border-white/10",children:aX[e.discipline]||e.discipline}),e.is_tsaa&&c.jsx("span",{className:"text-[10px] font-black uppercase tracking-wider px-2.5 py-1 rounded-full bg-[#00d4ff]/5 text-[#00d4ff]/70 border border-[#00d4ff]/20",children:"Official TSAA"})]}),c.jsx("h2",{className:"text-xl font-black text-white leading-tight mb-5",children:e.name}),c.jsxs("div",{className:"space-y-3",children:[c.jsxs("div",{className:"flex items-start gap-3 p-3 rounded-xl bg-white/5",children:[c.jsx(n3,{className:"w-4 h-4 text-[#00d4ff] mt-0.5 flex-shrink-0"}),c.jsxs("div",{children:[c.jsx("div",{className:"text-[10px] uppercase tracking-widest font-black text-gray-500 mb-0.5",children:"Date"}),c.jsxs("div",{className:"text-sm font-bold text-white",children:[hn(In(e.event_date),"EEEE, MMMM d, yyyy"),e.end_date&&e.end_date!==e.event_date&&c.jsxs(c.Fragment,{children:[" – ",hn(In(e.end_date),"EEEE, MMMM d, yyyy")]})]})]})]}),e.location&&c.jsxs("div",{className:"flex items-start gap-3 p-3 rounded-xl bg-white/5",children:[c.jsx(Wr,{className:"w-4 h-4 text-[#00d4ff] mt-0.5 flex-shrink-0"}),c.jsxs("div",{className:"flex-1",children:[c.jsx("div",{className:"text-[10px] uppercase tracking-widest font-black text-gray-500 mb-0.5",children:"Location"}),c.jsx("div",{className:"text-sm font-bold text-white",children:e.location}),(o||u)&&c.jsxs("div",{className:"flex gap-2 mt-2",children:[o&&c.jsxs("a",{href:o,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 px-2.5 py-1 rounded-lg bg-white/5 border border-white/10 text-gray-300 text-xs font-black uppercase tracking-wider hover:text-white hover:border-white/20 transition-colors",children:[c.jsx(fi,{className:"w-3 h-3"})," Google Maps"]}),u&&c.jsxs("a",{href:u,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 px-2.5 py-1 rounded-lg bg-white/5 border border-white/10 text-gray-300 text-xs font-black uppercase tracking-wider hover:text-white hover:border-white/20 transition-colors",children:[c.jsx(fi,{className:"w-3 h-3"})," Apple Maps"]})]})]})]}),e.notes&&c.jsxs("div",{className:"flex items-start gap-3 p-3 rounded-xl bg-white/5",children:[c.jsx(l3,{className:"w-4 h-4 text-[#00d4ff] mt-0.5 flex-shrink-0"}),c.jsxs("div",{children:[c.jsx("div",{className:"text-[10px] uppercase tracking-widest font-black text-gray-500 mb-0.5",children:"Notes"}),c.jsx("div",{className:"text-sm text-gray-300 leading-relaxed",children:e.notes})]})]}),(n.email||n.website)&&c.jsxs("div",{className:"flex items-start gap-3 p-3 rounded-xl bg-white/5",children:[c.jsx(rr,{className:"w-4 h-4 text-[#00d4ff] mt-0.5 flex-shrink-0"}),c.jsxs("div",{children:[c.jsx("div",{className:"text-[10px] uppercase tracking-widest font-black text-gray-500 mb-1",children:"Contact"}),c.jsxs("div",{className:"flex flex-wrap gap-3",children:[n.email&&c.jsxs("a",{href:`mailto:${n.email}`,className:"inline-flex items-center gap-1 text-xs text-gray-300 hover:text-white font-bold transition-colors",children:[c.jsx(rr,{className:"w-3 h-3"})," ",n.email]}),n.website&&c.jsxs("a",{href:n.website,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 text-xs text-gray-300 hover:text-white font-bold transition-colors",children:[c.jsx(sN,{className:"w-3 h-3"})," ",e.organizer," Website"]})]})]})]})]}),a&&c.jsxs("a",{href:a,target:"_blank",rel:"noopener noreferrer",className:"mt-5 flex items-center justify-center gap-2 w-full py-3 rounded-xl bg-[#00d4ff] text-[#060d1f] font-black text-sm uppercase tracking-wider hover:bg-[#00bfe8] transition-colors",children:["Register / More Info ",c.jsx(fi,{className:"w-4 h-4"})]})]})]})]})})}const QN=[{key:"TSAA",label:"TSAA",color:"bg-[#00d4ff]/20 text-[#00d4ff] border-[#00d4ff]/40"},{key:"USA Archery",label:"USA Archery",color:"bg-red-500/20 text-red-400 border-red-500/40"},{key:"TFAA",label:"TFAA",color:"bg-emerald-500/20 text-emerald-400 border-emerald-500/40"},{key:"NFAA",label:"NFAA",color:"bg-pink-500/20 text-pink-400 border-pink-500/40"},{key:"Texas ASA",label:"Texas ASA",color:"bg-orange-500/20 text-orange-400 border-orange-500/40"}
361,{key:"ASA",label:"ASA",color:"bg-amber-600/20 text-amber-400 border-amber-600/40"},{key:"Texas 4-H",label:"Texas 4-H",color:"bg-lime-500/20 text-lime-400 border-lime-500/40"},{key:"NASP",label:"NASP",color:"bg-yellow-500/20 text-yellow-400 border-yellow-500/40"},{key:"S3DA",label:"S3DA",color:"bg-violet-500/20 text-violet-400 border-violet-500/40"},{key:"NAST",label:"NAST",color:"bg-teal-500/20 text-teal-400 border-teal-500/40"}],lX=Object.fromEntries([...QN.map(e=>[e.key,{label:e.label,color:e.color}]),["TX ASA",{label:"TX ASA",color:"bg-orange-500/20 text-orange-400 border-orange-500/40"}]]),vj={indoor:"Indoor",outdoor:"Outdoor",field:"Field","3d":"3D",tots:"TOTS","25m":"25m",mixed:"Mixed"},cX={indoor:"bg-blue-500/10 text-blue-300",outdoor:"bg-green-500/10 text-green-300",field:"bg-amber-500/10 text-amber-300","3d":"bg-orange-500/10 text-orange-300",tots:"bg-purple-500/10 text-purple-300","25m":"bg-cyan-500/10 text-cyan-300",mixed:"bg-gray-500/10 text-gray-300"},uX=["All",...QN.map(e=>e.key)],dX=["All",...Object.keys(vj)];function fX(){const[e,t]=k.useState("All"),[n,r]=k.useState("All"),[i,a]=k.useState(!1),[o,u]=k.useState(null),[f,h]=k.useState("list"),{data:g=[],isLoading:p}=an({queryKey:["tournamentEvents"],queryFn:()=>on.entities.TournamentEvent.list("event_date",500)}),y=k.useMemo(()=>g.filter(S=>{const _=Uh(In(S.end_date||S.event_date));return!(!i&&_||e!=="All"&&S.organizer!==e||n!=="All"&&S.discipline!==n)}),[g,e,n,i]),w=k.useMemo(()=>{const S={};return y.forEach(_=>{const P=hn(In(_.event_date),"MMMM yyyy");S[P]||(S[P]=[]),S[P].push(_)}),Object.fromEntries(Object.entries(S).sort(([_],[P])=>new Date(_)-new Date(P)).map(([_,P])=>[_,P.sort((O,C)=>new Date(O.event_date)-new Date(C.event_date))]))},[y]),j=S=>lX[S]||{label:S,color:"bg-gray-500/20 text-gray-400 border-gray-500/40"};return c.jsxs(c.Fragment,{children:[c.jsx(gi,{title:"Texas Archery Event Calendar | TSAA",description:"View the full Texas archery event calendar. TSAA-sanctioned shoots, state championships, indoor and outdoor tournaments all in one place."}),c.jsxs("div",{className:"min-h-screen bg-[#060d1f]",children:[c.jsx("div",{className:"bg-[#02060f] pt-16 pb-20 border-b border-white/10",children:c.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[c.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[c.jsx("div",{className:"h-1 w-10 bg-[#00d4ff] rounded-full"}),c.jsx("span",{className:"text-[#00d4ff] text-xs font-black uppercase tracking-widest",children:"Texas Archery"})]}),c.jsxs("h1",{className:"text-4xl lg:text-6xl font-black text-white uppercase tracking-tight mb-3",children:["Master ",c.jsx("span",{className:"text-[#00d4ff]",children:"Calendar"})]}),c.jsx("p",{className:"text-gray-500 max-w-2xl text-sm leading-relaxed",children:"Upcoming archery tournaments across Texas and beyond — including TSAA, USA Archery, TFAA, NFAA, Texas ASA, ASA, Texas 4-H, NASP, S3DA, and NAST events."}),c.jsxs("div",{className:"mt-5 inline-flex items-start gap-2.5 bg-yellow-500/10 border border-yellow-500/30 rounded-xl px-4 py-3 max-w-2xl",children:[c.jsx("span",{className:"text-yellow-400 text-sm mt-0.5",children:"⚠"}),c.jsxs("p",{className:"text-yellow-300/80 text-xs leading-relaxed",children:[c.jsx("span",{className:"font-black uppercase tracking-wider text-yellow-300",children:"Disclaimer:"})," We have researched these dates to the best of our ability, but please confirm directly with each organizing body before making travel or registration plans."]})]}),c.jsx("div",{className:"flex flex-wrap gap-3 mt-6",children:QN.map(S=>c.jsx("span",{className:`inline-flex items-center gap-1.5 px-3 py-1 rounded-full text-xs font-black uppercase tracking-wider border ${S.color}`,children:S.label},S.key))})]})}),c.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-10 pb-20",children:[c.jsxs("div",{className:"flex flex-wrap gap-3 mb-8 items-center",children:[c.jsx(Ty,{className:"w-4 h-4 text-gray-500"}),c.jsx("div",{className:"flex flex-wrap gap-2",children:uX.map(S=>c.jsx("button",{onClick:()=>t(S),className:`px-3 py-1.5 rounded-lg text-xs font-black uppercase tracking-wider border transition-all ${e===S?"bg-[#00d4ff] text-[#060d1f] border-[#00d4ff]":"border-white/10 text-gray-500 hover:text-white hover:border-white/20"}`,children:S},S))}),c.jsx("div",{className:"w-px h-5 bg-white/10 hidden sm:block"}),c.jsx("div",{className:"flex flex-wrap gap-2",children:dX.map(S=>c.jsx("button",{onClick:()=>r(S),className:`px-3 py-1.5 rounded-lg text-xs font-black uppercase tracking-wider border transition-all ${n===S?"bg-[#00d4ff] text-[#060d1f] border-[#00d4ff]":"border-white/10 text-gray-500 hover:text-white hover:border-white/20"}`,children:vj[S]||S},S))}),c.jsxs("div",{className:"ml-auto flex items-center gap-2",children:[c.jsx("button",{onClick:()=>a(!i),className:`px-3 py-1.5 rounded-lg text-xs font-black uppercase tracking-wider border transition-all ${i?"bg-white/10 text-white border-white/20":"border-white/10 text-gray-600 hover:text-gray-400"}`,children:i?"Hide Past":"Show Past"}),c.jsxs("div",{className:"flex rounded-lg border border-white/10 overflow-hidden",children:[c.jsx("button",{onClick:()=>h("list"),className:`p-2 transition-colors ${f==="list"?"bg-[#00d4ff] text-[#060d1f]":"text-gray-500 hover:text-white"}`,children:c.jsx(RV,{className:"w-4 h-4"})}),c.jsx("button",{onClick:()=>h("calendar"),className:`p-2 transition-colors ${f==="calendar"?"bg-[#00d4ff] text-[#060d1f]":"text-gray-500 hover:text-white"}`,children:c.jsx(EV,{className:"w-4 h-4"})})]})]})]}),p?c.jsx("div",{className:"space-y-4",children:[...Array(6)].map((S,_)=>c.jsx("div",{className:"h-24 bg-white/5 rounded-xl animate-pulse"},_))}):f==="calendar"?c.jsx(rX,{events:y,onEventClick:u}):Object.keys(w).length===0?c.jsx("div",{className:"text-center py-20 text-gray-600",children:"No events match your filters."}):c.jsx("div",{className:"space-y-10",children:Object.entries(w).map(([S,_])=>c.jsxs("div",{children:[c.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[c.jsx(n3,{className:"w-4 h-4 text-[#00d4ff]"}),c.jsx("h2",{className:"text-sm font-black text-[#00d4ff] uppercase tracking-widest",children:S}),c.jsx("div",{className:"flex-1 h-px bg-white/5"})]}),c.jsx("div",{className:"space-y-3",children:_.map((P,O)=>{const C=j(P.organizer),E=Uh(In(P.end_date||P.event_date));return c.jsxs(Ue.div,{initial:{opacity:0,y:10}
361,animate:{opacity:1,y:0},transition:{delay:O*.03},onClick:()=>u(P),className:`bg-[#0d1830] border rounded-xl px-5 py-4 flex flex-col sm:flex-row sm:items-center gap-4 transition-all cursor-pointer hover:border-[#00d4ff]/40 hover:bg-[#0d1830]/80 ${E?"opacity-50 border-white/5":"border-white/10"}`,children:[c.jsxs("div",{className:"flex-shrink-0 text-center w-14",children:[c.jsx("div",{className:"text-2xl font-black text-white leading-none",children:hn(In(P.event_date),"d")}),c.jsx("div",{className:"text-[10px] text-gray-500 uppercase tracking-widest font-black",children:hn(In(P.event_date),"MMM")}),P.end_date&&P.end_date!==P.event_date&&c.jsxs("div",{className:"text-[9px] text-gray-600 mt-0.5",children:["– ",hn(In(P.end_date),"MMM d")]})]}),c.jsx("div",{className:"w-px h-10 bg-white/5 hidden sm:block flex-shrink-0"}),c.jsxs("div",{className:"flex-1 min-w-0",children:[c.jsxs("div",{className:"flex flex-wrap items-center gap-2 mb-1",children:[c.jsx("span",{className:`text-[10px] font-black uppercase tracking-wider px-2 py-0.5 rounded border ${C.color}`,children:P.organizer}),P.discipline&&c.jsx("span",{className:`text-[10px] font-black uppercase tracking-wider px-2 py-0.5 rounded ${cX[P.discipline]||"bg-gray-500/10 text-gray-400"}`,children:vj[P.discipline]||P.discipline}),P.is_tsaa&&c.jsx("span",{className:"text-[10px] font-black uppercase tracking-wider px-2 py-0.5 rounded bg-[#00d4ff]/5 text-[#00d4ff]/60 border border-[#00d4ff]/20",children:"Official"})]}),c.jsx("h3",{className:"font-black text-white text-sm truncate",children:P.name}),P.location&&c.jsxs("div",{className:"flex items-center gap-1 mt-1 text-xs text-gray-500",children:[c.jsx(Wr,{className:"w-3 h-3 flex-shrink-0"}),P.location]}),P.notes&&c.jsx("p",{className:"text-xs text-gray-600 mt-1",children:P.notes})]}),P.registration_url&&!P.registration_url.includes("/wp-admin")&&!P.registration_url.includes("/wp-login")&&!P.registration_url.includes("?page_id=")&&c.jsxs("a",{href:P.registration_url,target:"_blank",rel:"noopener noreferrer",className:"flex-shrink-0 flex items-center gap-1.5 px-4 py-2 rounded-lg bg-[#00d4ff]/10 border border-[#00d4ff]/30 text-[#00d4ff] text-xs font-black uppercase tracking-wider hover:bg-[#00d4ff]/20 transition-colors",children:["Info ",c.jsx(fi,{className:"w-3 h-3"})]})]},P.id)})})]},S))})]})]}),c.jsx(sX,{event:o,onClose:()=>u(null)})]})}var hX=Object.defineProperty,JN=(e,t)=>hX(e,"name",{value:t,configurable:!0});function yj(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}JN(yj,"setRef");function I$(...e){return t=>{let n=!1;const r=e.map(i=>{const a=yj(i,t);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let i=0;i<r.length;i++){const a=r[i];typeof a=="function"?a():yj(e[i],null)}}}}JN(I$,"composeRefs");function Ut(...e){return k.useCallback(I$(...e),e)}JN(Ut,"useComposedRefs");var pX=Object.defineProperty,ha=(e,t)=>pX(e,"name",{value:t,configurable:!0});function $o(e){const t=k.forwardRef((n,r)=>{let{children:i,...a}=n,o=null,u=!1;const f=[];xj(i)&&typeof Og=="function"&&(i=Og(i._payload)),k.Children.forEach(i,y=>{var w;if(F$(y)){u=!0;const j=y;let S="child"in j.props?j.props.child:j.props.children;xj(S)&&typeof Og=="function"&&(S=Og(S._payload)),o=vX(j,S),f.push((w=o==null?void 0:o.props)==null?void 0:w.children)}else f.push(y)}),o?o=k.cloneElement(o,void 0,f):!u&&k.Children.count(i)===1&&k.isValidElement(i)&&(o=i);const h=o?B$(o):void 0,g=Ut(r,h);if(!o){if(i||i===0)throw new Error(u?bX(e):xX(e));return i}const p=$$(a,o.props??{});return o.type!==k.Fragment&&(p.ref=r?g:h),k.cloneElement(o,p)});return t.displayName=`${e}.Slot`,t}ha($o,"createSlot");var mX=$o("Slot"),L$=Symbol.for("radix.slottable");function gX(e){const t=ha(n=>"child"in n?n.children(n.child):n.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=L$,t}ha(gX,"createSlottable");var vX=ha((e,t)=>{if("child"in e.props){const n=e.props.child;return k.isValidElement(n)?k.cloneElement(n,void 0,e.props.children(n.props.children)):null}return k.isValidElement(t)?t:null},"getSlottableElementFromSlottable");function $$(e,t){const n={...t};for(const r in t){const i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...u)=>{const f=a(...u);return i(...u),f}:i&&(n[r]=i):r==="style"?n[r]={...i,...a}
361:r==="className"&&(n[r]=[i,a].filter(Boolean).join(" "))}return{...e,...n}}ha($$,"mergeProps");function B$(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)}ha(B$,"getElementRef");function F$(e){return k.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===L$}ha(F$,"isSlottable");var yX=Symbol.for("react.lazy");function xj(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===yX&&"_payload"in e&&z$(e._payload)}ha(xj,"isLazyComponent");function z$(e){return typeof e=="object"&&e!==null&&"then"in e}ha(z$,"isPromiseLike");var xX=ha(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),bX=ha(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),Og=Hd[" use ".trim().toString()];const wX=Py("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-background 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"}}),Hp=k.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...i},a)=>{const o=r?mX:"button";return c.jsx(o,{className:Ht(wX({variant:t,size:n,className:e})),ref:a,...i})});Hp.displayName="Button";const Et=k.forwardRef(({className:e,type:t,...n},r)=>c.jsx("input",{type:t,className:Ht("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}));Et.displayName="Input";const _X="817bbd74-4933-4dfa-b6f7-e64a0da40f13",SX=_X,jX="https://api.web3forms.com/submit";async function Gp(e,t,n){const r={access_key:SX,subject:e,from_name:"Texas State Archery Association",...n?{replyto:n}:{},...t};let i;try{i=await fetch(jX,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(r)})}catch{throw new Error("Could not reach the form service. Check your connection and try again.")}let a={};try{a=await i.json()}catch{}if(!i.ok||a.success===!1)throw new Error(a.message||"Submission failed. Please try again.")}function PX(){const{toast:e}=JL(),[t,n]=k.useState({email:""}),[r,i]=k.useState(!1),[a,o]=k.useState(!1),u=async f=>{f.preventDefault(),i(!0);try{await Gp("Data deletion request",{"Request type":"Delete my data",email:t.email},t.email),o(!0)}catch(h){console.error("Delete request error:",h),e({title:"Error",description:h.message,variant:"destructive"})}finally{i(!1)}};return c.jsxs("div",{className:"min-h-screen bg-[#060d1f]",children:[c.jsx("div",{className:"bg-[#02060f] pt-16 pb-20 border-b border-white/10",children:c.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[c.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[c.jsx("div",{className:"h-1 w-10 bg-[#00d4ff] rounded-full"}),c.jsx("span",{className:"text-[#00d4ff] text-xs font-black uppercase tracking-widest",children:"Get in Touch"})]}),c.jsx("h1",{className:"text-4xl lg:text-6xl font-black text-white uppercase tracking-tight",children:"Contact Us"})]})}),c.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:c.jsxs("div",{className:"grid lg:grid-cols-5 ga
361p-6",children:[c.jsxs("div",{className:"lg:col-span-2 space-y-4",children:[c.jsx("div",{className:"bg-[#0d1830] border border-white/10 rounded-xl p-6",children:c.jsxs("div",{className:"flex items-start gap-4",children:[c.jsx("div",{className:"w-10 h-10 rounded-lg bg-[#00d4ff]/10 flex items-center justify-center flex-shrink-0",children:c.jsx(rr,{className:"w-5 h-5 text-[#00d4ff]"})}),c.jsxs("div",{children:[c.jsx("h3",{className:"font-black text-white text-sm uppercase tracking-wide mb-1",children:"Email"}),c.jsx("a",{href:"mailto:[email protected]",className:"text-sm text-gray-500 hover:text-[#00d4ff] transition-colors",children:"[email protected]"})]})]})}),c.jsx("div",{className:"bg-[#0d1830] border border-white/10 rounded-xl p-6",children:c.jsxs("div",{className:"flex items-start gap-4",children:[c.jsx("div",{className:"w-10 h-10 rounded-lg bg-[#00d4ff]/10 flex items-center justify-center flex-shrink-0",children:c.jsx(Wr,{className:"w-5 h-5 text-[#00d4ff]"})}),c.jsxs("div",{children:[c.jsx("h3",{className:"font-black text-white text-sm uppercase tracking-wide mb-1",children:"Location"}),c.jsx("p",{className:"text-sm text-gray-500",children:"Texas, USA"})]})]})}),c.jsxs("div",{className:"bg-[#0d1830] border border-white/10 rounded-xl p-6",children:[c.jsx("h3",{className:"font-black text-white text-sm uppercase tracking-wide mb-2",children:"Follow Us"}),c.jsx("p",{className:"text-xs text-gray-500 mb-4",children:"Stay connected with TSAA on social media."}),c.jsxs("div",{className:"flex gap-3",children:[c.jsx("a",{href:"https://www.facebook.com/texasstatearcheryassociation",target:"_blank",rel:"noopener noreferrer",className:"w-10 h-10 rounded-lg border border-white/10 flex items-center justify-center hover:border-[#00d4ff]/40 hover:text-[#00d4ff] transition-colors text-sm font-black text-gray-400",children:"f"}),c.jsx("a",{href:"https://www.instagram.com/texasstatearcheryassociation",target:"_blank",rel:"noopener noreferrer",className:"w-10 h-10 rounded-lg border border-white/10 flex items-center justify-center hover:border-[#00d4ff]/40 hover:text-[#00d4ff] transition-colors text-sm font-black text-gray-400",children:"ig"})]})]})]}),c.jsxs("div",{className:"lg:col-span-3 space-y-6",children:[c.jsxs("div",{className:"bg-[#0d1830] border border-white/10 rounded-xl p-8 text-center",children:[c.jsx("h2",{className:"text-xl font-black text-white uppercase tracking-tight mb-3",children:"Send Us a Message"}),c.jsx("p",{className:"text-gray-400 text-sm mb-6",children:"Click the button below to open your email app and send us a message directly."}),c.jsxs("a",{href:"mailto:[email protected]?subject=TSAA%20Website%20Contact",className:"inline-flex items-center gap-2 px-8 py-3 rounded-lg bg-[#00d4ff] text-[#060d1f] font-black uppercase tracking-widest hover:bg-[#00bfe8] transition-colors",children:[c.jsx(rr,{className:"w-5 h-5"})," Email Us"]}),c.jsx("p",{className:"text-gray-500 text-xs mt-4",children:"[email protected]"})]}),c.jsx("div",{className:"bg-[#0d1830] border border-red-500/20 rounded-xl p-8",children:a?c.jsxs(Ue.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},className:"text-center py-8",children:[c.jsx("div",{className:"w-16 h-16 rounded-xl bg-[#00d4ff]/10 flex items-center justify-center mx-auto mb-4",children:c.jsx(hd,{className:"w-8 h-8 text-[#00d4ff]"})}),c.jsx("h3",{className:"text-lg font-black text-white uppercase tracking-tight mb-2",children:"Request Submitted"}),c.jsx("p",{className:"text-gray-500 text-sm",children:"Your data deletion request has been received. We'll process it within 30 days per privacy regulations."})]}):c.jsxs("form",{onSubmit:u,className:"space-y-4",children:[c.jsxs("div",{className:"flex items-start gap-3 mb-4",children:[c.jsx(lW,{className:"w-5 h-5 text-red-500 mt-0.5 flex-shrink-0"}),c.jsxs("div",{children:[c.jsx("h3",{className:"font-black text-white text-sm uppercase tracking-wide",children:"Delete Account & Data"}),c.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"Request permanent deletion of your account and personal data. We'll process this within 30 days."})]})]}),c.jsxs("div",{children:[c.jsx("label",{className:"text-xs font-black text-gray-400 uppercase tracking-wider mb-1.5 block",children:"Email Address"}),c.jsx(Et,{required:!0,type:"email",value:t.email,onChange:f=>n({email:f.target.value}),placeholder:"[email protected]"})]}),c.jsx(Hp,{type:"submit",disabled:r,className:"w-full bg-red-600 hover:bg-red-700 text-white font-black uppercase tracking-widest",children:r?"Submitting...":"Request Account Deletion"})]})})]})]})})]})}function NX(){return c.jsxs("div",{className:"min-h-screen bg-[#060d1f]",children:[c.jsx(gi,{title:"Cookie Policy",description:"Cookie policy for the Texas State Archery Association. Learn about the cookies we use and how to manage your preferences.",type:"WebPage"}),c.jsx("div",{className:"bg-[#02060f] pt-16 pb-20 border-b border-white/10",children:c.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:[c.jsxs(Je,{to:Xe("Home"),className:"inline-flex items-center gap-2 text-gray-400 hover:text-white transition-colors mb-6",children:[c.jsx(Gd,{className:"w-4 h-4"}),"Back to Home"]}),c.jsx("h1",{className:"text-4xl lg:text-5xl font-black text-white uppercase tracking-tight",children:"Cookie Policy"}),c.jsx("p",{className:"text-gray-400 mt-4",children:"Effective Date: March 10, 2026"})]})}),c.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:c.jsxs("div",{className:"prose prose-invert max-w-none",children:[c.jsxs("section",{className:"mb-10",children:[c.jsx("h2",{className:"text-2xl font-black text-white uppercase tracking-tight mb-4",children:"What Are Cookies?"}),c.jsx("p",{className:"text-gray-400 leading-relaxed",children:"Cookies are small text files that are placed on your device when you visit our website. They help us remember information about your visit, such as your preferences and login status. Cookies are widely used on websites to enhance user experience and provide functionality."})]}),c.jsxs("section",{className:"mb-10",children:[c.jsx("h2",{className:"text-2xl font-black text-white uppercase tracking-tight mb-4",children:"Types of Cookies We Use"}),c.jsxs("div",{className:"space-y-6",children:[c.jsxs("div",{children:[c.jsx("h3",{className:"text-lg font-black text-white mb-2",children:"Essential Cookies"}),c.jsx("p",{className:"text-gray-400 leading-relaxed",children:"These cookies are necessary for the website to function properly. They enable core functionality such as login authentication, security, and navigation. These cookies cannot be disabled 
361without affecting site functionality."})]}),c.jsxs("div",{children:[c.jsx("h3",{className:"text-lg font-black text-white mb-2",children:"Performance & Analytics Cookies"}),c.jsx("p",{className:"text-gray-400 leading-relaxed",children:"We use analytics cookies to understand how visitors interact with our website. This helps us improve site performance, identify popular content, and fix issues. These cookies collect anonymous data about your browsing behavior."})]}),c.jsxs("div",{children:[c.jsx("h3",{className:"text-lg font-black text-white mb-2",children:"Preference Cookies"}),c.jsx("p",{className:"text-gray-400 leading-relaxed",children:"These cookies remember your preferences and settings, such as language selection, display preferences, and navigation choices. They help us provide a personalized experience on your next visit."})]}),c.jsxs("div",{children:[c.jsx("h3",{className:"text-lg font-black text-white mb-2",children:"Functional Cookies"}),c.jsx("p",{className:"text-gray-400 leading-relaxed",children:"These 
361cookies enable additional functionality such as remembering search filters, event preferences, and user-specific settings. They enhance your experience by reducing the need to re-enter information."})]})]})]}),c.jsxs("section",{className:"mb-10",children:[c.jsx("h2",{className:"text-2xl font-black text-white uppercase tracking-tight mb-4",children:"How We Use Cookies"}),c.jsxs("ul",{className:"list-disc list-inside text-gray-400 space-y-2",children:[c.jsx("li",{children:"Authentication and security to protect your account"}),c.jsx("li",{children:"Remembering your login status and preferences"}),c.jsx("li",{children:"Tracking website analytics and user behavior"}),c.jsx("li",{children:"Improving site functionality and user experience"}),c.jsx("li",{children:"Delivering personalized content and recommendations"}),c.jsx("li",{children:"Measuring the effectiveness of marketing campaigns"}),c.jsx("li",{children:"Detecting and preventing fraudulent activity"})]})]}),c.jsxs("section",{className:"mb-10",children:[c.jsx("h2",{className:"text-2xl font-black text-white uppercase tracking-tight mb-4",children:"Third-Party Cookies"}),c.jsx("p",{className:"text-gray-400 leading-relaxed mb-4",children:"We may allow third-party service providers to set cookies on our website for the following purposes:"}),c.jsxs("ul",{className:"list-disc list-inside text-gray-400 space-y-2",children:[c.jsx("li",{children:"Analytics and website performance monitoring"}),c.jsx("li",{children:"Advertising and marketing analytics"}),c.jsx("li",{children:"Customer support and chat services"}),c.jsx("li",{children:"Payment processing and transaction security"})]})]}),c.jsxs("section",{className:"mb-10",children:[c.jsx("h2",{className:"text-2xl font-black text-white uppercase tracking-tight mb-4",children:"Cookie Duration"}),c.jsxs("div",{className:"space-y-4",children:[c.jsxs("div",{children:[c.jsx("h3",{className:"font-black text-white mb-2",children:"Session Cookies"}),c.jsx("p",{className:"text-gray-400",children:"These cookies expire when you close your browser. They are used for temporary data storage during your browsing session."})]}),c.jsxs("div",{children:[c.jsx("h3",{className:"font-black text-white mb-2",children:"Persistent Cookies"}),c.jsx("p",{className:"text-gray-400",children:"These cookies remain on your device for a specified period (typically 30 days to 2 years). They help us remember your preferences during future visits."})]})]})]}),c.jsxs("section",{className:"mb-10",children:[c.jsx("h2",{className:"text-2xl font-black text-white uppercase tracking-tight mb-4",children:"Managing Cookies"}),c.jsx("p",{className:"text-gray-400 leading-relaxed mb-4",children:"Most modern browsers allow you to control cookies through their settings. You can:"}),c.jsxs("ul",{className:"list-disc list-inside text-gray-400 space-y-2",children:[c.jsx("li",{children:"View cookies stored on your device"}),c.jsx("li",{children:"Block all or specific types of cookies"}),c.jsx("li",{children:"Delete cookies from your device"}),c.jsx("li",{children:"Receive notifications when cookies are being set"}),c.jsx("li",{children:"Set preferences for third-party cookies"})]}),c.jsxs("p",{className:"text-gray-400 leading-relaxed mt-4",children:[c.jsx("strong",{className:"text-white",children:"Note:"})," Disabling essential cookies may affect the functionality of our website and your ability to access certain features."]})]}),c.jsxs("section",{className:"mb-10",children:[c.jsx("h2",{className:"text-2xl font-black text-white uppercase tracking-tight mb-4",children:"Browser Instructions"}),c.jsx("p",{className:"text-gray-400 leading-relaxed mb-4",children:"To manage cookies in popular browsers:"}),c.jsxs("ul",{className:"list-disc list-inside text-gray-400 space-y-2",children:[c.jsxs("li",{children:[c.jsx("strong",{className:"text-white",children:"Chrome:"})," Settings → Privacy and Security → Cookies and other site data"]}),c.jsxs("li",{children:[c.jsx("strong",{className:"text-white",children:"Firefox:"})," Settings → Privacy & Security → Cookies and Site Data"]}),c.jsxs("li",{children:[c.jsx("strong",{className:"text-white",children:"Safari:"})," Preferences → Privacy → Manage Website Data"]}),c.jsxs("li",{children:[c.jsx("strong",{className:"text-white",children:"Edge:"})," Settings → Privacy, search, and services → Cookies and other site permissions"]})]})]}),c.jsxs("section",{className:"mb-10",children:[c.jsx("h2",{className:"text-2xl font-black text-white uppercase tracking-tight mb-4",children:"Do Not Track"}),c.jsx("p",{className:"text-gray-400 leading-relaxed",children:"Some browsers include a Do Not Track (DNT) feature. Currently, there is no industry standard for recognizing DNT signals. Our website does not currently respond to DNT browser signals, but we provide you with choices to manage cookies and privacy preferences through this policy."})]}),c.jsxs("section",{className:"mb-10",children:[c.jsx("h2",{className:"text-2xl font-black text-white uppercase tracking-tight mb-4",children:"Privacy & Cookies"}),c.jsxs("p",{className:"text-gray-400 leading-relaxed",children:["For more information about how we handle your personal data, please review our"," ",c.jsx(Je,{to:Xe("PrivacyPolicy"),className:"text-[#00d4ff] hover:underline",children:"Privacy Policy"}),"."]})]}),c.jsxs("section",{className:"mb-10",children:[c.jsx("h2",{className:"text-2xl font-black text-white uppercase tracking-tight mb-4",children:"Contact Us"}),c.jsx("p",{className:"text-gray-400 leading-relaxed mb-4",children:"If you have questions about our use of cookies, please contact us:"}),c.jsxs("div",{className:"bg-[#0d1830] border border-white/10 rounded-xl p-6",children:[c.jsx("p",{className:"text-white font-black mb-2",children:"Email"}),c.jsx("a",{href:"mailto:[email protected]",className:"text-[#00d4ff] hover:underline",children:"[email protected]"}),c.jsx("p",{className:"text-gray-500 text-sm mt-4",children:"We will respond to your inquiry within 30 days."})]})]}),c.jsxs("section",{className:"mb-10",children:[c.jsx("h2",{className:"text-2xl font-black text-white uppercase tracking-tight mb-4",children:"Changes to This Policy"}),c.jsx("p",{className:"text-gray-400 leading-relaxed",children:"We may update this Cookie Policy from time to time to reflect changes in technology, legal requirements, or our practices. We will notify you of significant changes by posting the updated policy on this page and updating the effective date."})]}),c.jsxs("div",{className:"bg-[#0d1830] border border-white/10 rounded-xl p-6 mt-12",children:[c.jsxs("p",{className:"text-gray-400 text-sm",children:[c.jsx("strong",{className:"text-white",children:"Last Updated:"})," March 10, 2026"]}),c.jsxs("p",{className:"text-gray-500 text-sm mt-2",children:["© ",new Date().getFullYear()," Texas State Archery Association. All rights reserved."]})]})]})})]})}function q$({onRefresh:e,children:t}){const[n,r]=k.useState(0),[i,a]=k.useState(!1),o=k.useRef(0),u=k.useRef(null),f=80,h=y=>{window.scrollY===0&&(o.current=y.touches[0].clientY)},g=y=>{if(window.scrollY===0&&o.current>0){const w=y.touches[0].clientY,j=Math.max(0,w-o.current);r(j)}},p=()=>{n>f&&!i?(a(!0),e().then(()=>{a(!1),r(0),o.current=0})):(r(0),o.current=0)};return k.useEffect(()=>{const y=u.current;if(y)return y.addEventListener("touchstart",h),y.addEventListener("touchmove",g,{passive:!0}),y.addEventListener("touchend",p),()=>{y.removeEventListener("touchstart",h),y.removeEventListener("touchmove",g),y.removeEventListener("touchend",p)}},[n,i,e]),c.jsxs("div",{ref:u,children:[c.jsx(Bp,{children:(n>0||i)&&c.jsx(Ue.div,{initial:{opacity:0,height:0}
361,animate:{opacity:1,height:Math.min(n,f)},exit:{opacity:0,height:0},className:"flex items-center justify-center bg-[#0d1830] border-b border-white/10 overflow-hidden",children:c.jsx(Ue.div,{animate:{rotate:i?360:0},transition:{duration:i?1:.3,repeat:i?1/0:0},children:c.jsx(YV,{className:"w-5 h-5 text-[#00d4ff]"})})})}),t]})}const AX=["All","TSAA","TFAA","USA Archery","Texas ASA","S3DA","Texas 4-H","NASP"],TX={indoor:"Indoor",outdoor:"Outdoor",field:"Field","3d":"3D",tots:"TOTS","25m":"25m",mixed:"Mixed"},kX={TSAA:"bg-[#00d4ff]/10 text-[#00d4ff] border-[#00d4ff]/20",TFAA:"bg-emerald-500/20 text-emerald-400 border-emerald-500/30","USA Archery":"bg-red-500/20 text-red-400 border-red-500/30","Texas ASA":"bg-orange-500/20 text-orange-400 border-orange-500/30","TX ASA":"bg-orange-500/20 text-orange-400 border-orange-500/30",S3DA:"bg-violet-500/20 text-violet-400 border-violet-500/30","Texas 4-H":"bg-lime-500/20 text-lime-400 border-lime-500/30",NASP:"bg-yellow-500/20 text-yellow-400 border-yellow-500/30"};function CX(){const[e,t]=k.useState("All"),[n,r]=k.useState(!1),i=pN(),{data:a,isLoading:o}=an({queryKey:["tournamentEvents"],queryFn:()=>on.entities.TournamentEvent.list("event_date",500),initialData:[]}),u=async()=>{await i.invalidateQueries({queryKey:["tournamentEvents"]})},f=a.filter(h=>e==="All"||h.organizer===e).filter(h=>n||!Uh(In(h.end_date||h.event_date))).sort((h,g)=>n?new Date(g.event_date+"T12:00:00")-new Date(h.event_date+"T12:00:00"):new Date(h.event_date+"T12:00:00")-new Date(g.event_date+"T12:00:00"));return c.jsx(q$,{onRefresh:u,children:c.jsxs("div",{className:"min-h-screen bg-[#060d1f]",children:[c.jsx(gi,{title:"Archery Tournaments in Texas | TSAA",description:"Browse upcoming sanctioned archery tournaments in Texas hosted and approved by TSAA. Register, get details, and compete across the state.",image:"https://www.tsaa.us/wp-content/uploads/2024/12/cropped-NEWTSAALOGO-1-e1733727925390.gif",type:"WebPage",schema:{"@context":"https://schema.org","@type":"CollectionPage",name:"TSAA Events Calendar",description:"Archery events and tournaments in Texas",url:"https://www.tsaa.us/events"}}),c.jsx("div",{className:"bg-[#02060f] pt-16 pb-20 border-b border-white/10",children:c.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[c.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[c.jsx("div",{className:"h-1 w-10 bg-[#00d4ff] rounded-full"}),c.jsx("span",{className:"text-[#00d4ff] text-xs font-black uppercase tracking-widest",children:"Calendar"})]}),c.jsx("h1",{className:"text-4xl lg:text-6xl font-black text-white uppercase tracking-tight",children:"Events"})]})}),c.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8",children:[c.jsx("div",{className:"mb-6",children:c.jsx("a",{href:"/Results",className:"text-sm text-[#00d4ff] hover:underline font-bold uppercase tracking-wider",children:"View Tournament Results →"})}),c.jsxs("div",{className:"bg-[#0d1830] border border-white/10 rounded-xl p-3 mb-8 flex flex-wrap items-center gap-2",children:[c.jsx(Ty,{className:"w-4 h-4 text-gray-600 ml-1"}),AX.map(h=>c.jsx("button",{onClick:()=>t(h),className:`px-3 py-1.5 rounded-lg text-xs font-black uppercase tracking-wider transition-all ${e===h?"bg-[#00d4ff] text-[#060d1f]":"text-gray-500 hover:text-white hover:bg-white/5"}`,children:h},h)),c.jsx("div",{className:"ml-auto",children:c.jsx("button",{onClick:()=>r(!n),className:`px-3 py-1.5 rounded-lg text-xs font-black uppercase tracking-wider transition-all ${n?"bg-white/10 text-white":"text-gray-600 hover:text-gray-400"}`,children:n?"Showing Past":"Show Past"})})]}),o?c.jsx("div",{className:"grid md:grid-cols-2 gap-4",children:[1,2,3,4].map(h=>c.jsx("div",{className:"h-48 bg-white/5 rounded-xl animate-pulse"},h))}):f.length===0?c.jsxs("div",{className:"text-center py-20",children:[c.jsx(fd,{className:"w-12 h-12 text-white/10 mx-auto mb-4"}),c.jsx("p",{className:"text-gray-500 text-lg",children:"No events found"}),c.jsx("p",{className:"text-gray-600 text-sm mt-1",children:"Try adjusting your filters or check back later"})]}):c.jsx("div",{className:"grid md:grid-cols-2 gap-4 pb-16",children:f.map((h,g)=>{const p=kX[h.organizer]||"bg-white/10 text-gray-400 border-white/10",y=Uh(In(h.end_date||h.event_date));return c.jsx(Ue.div,{initial:{opacity:0,y:20}
361,animate:{opacity:1,y:0},transition:{delay:g*.05},className:`bg-[#0d1830] border border-white/10 rounded-xl overflow-hidden hover:border-[#00d4ff]/40 hover:shadow-xl hover:shadow-[#00d4ff]/5 transition-all group ${y?"opacity-60":""}`,children:c.jsxs("div",{className:"p-6",children:[c.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[c.jsx("span",{className:`text-[10px] font-black uppercase tracking-widest px-2.5 py-1 rounded border ${p}`,children:h.organizer}),h.discipline&&c.jsx("span",{className:"text-[10px] font-black uppercase tracking-widest px-2.5 py-1 rounded bg-white/5 text-gray-400",children:TX[h.discipline]||h.discipline}),y&&c.jsx("span",{className:"text-[10px] font-black uppercase tracking-widest px-2.5 py-1 rounded border border-white/10 text-gray-600",children:"Past"})]}),c.jsx("h3",{className:"font-black text-lg text-white mb-2 group-hover:text-[#00d4ff] transition-colors",children:h.name}),c.jsxs("div",{className:"space-y-1.5 text-xs text-gray-500 mb-3",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(fd,{className:"w-3.5 h-3.5 text-[#00d4ff]/50"}),hn(In(h.event_date),"EEEE, MMMM d, yyyy"),h.end_date&&h.end_date!==h.event_date&&` – ${hn(In(h.end_date),"MMM d, yyyy")}`]}),h.location&&c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(Wr,{className:"w-3.5 h-3.5 text-[#00d4ff]/50"}),h.location]})]}),h.notes&&c.jsx("p",{className:"text-xs text-gray-600 line-clamp-2 mb-3",children:h.notes}),h.registration_url&&!h.registration_url.includes("/wp-admin")&&!h.registration_url.includes("?page_id=")&&c.jsxs("a",{href:h.registration_url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 px-4 py-2 bg-[#00d4ff] text-[#060d1f] text-xs font-black uppercase tracking-wider rounded-lg hover:bg-[#00bfe8] transition-colors",children:["Register / Info ",c.jsx(fi,{className:"w-3.5 h-3.5"})]})]})},h.id)})})]})]})})}function OX(){const{data:e=[],isLoading:t}=an({queryKey:["featured-archers"],queryFn:()=>on.entities.FeaturedArcher.filter({published:!0},"-feature_date",50),initialData:[]});return c.jsxs("div",{className:"min-h-screen bg-[#060d1f]",children:[c.jsx("div",{className:"bg-[#02060f] pt-16 pb-20 border-b border-white/10",children:c.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[c.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[c.jsx(ko,{className:"w-5 h-5 text-[#00d4ff]"}),c.jsx("span",{className:"text-[#00d4ff] text-xs font-black uppercase tracking-widest",children:"Spotlight"})]}),c.jsx("h1",{className:"text-4xl lg:text-6xl font-black text-white uppercase tracking-tight",children:"Featured Archers"}),c.jsx("p",{className:"text-gray-400 mt-3 max-w-xl",children:"Meet the athletes making a mark in Texas archery."})]})}),c.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[t?c.jsx("div",{className:"grid md:grid-cols-2 gap-8",children:[1,2,3,4].map(n=>c.jsx("div",{className:"h-96 bg-white/5 rounded-xl animate-pulse"},n))}):e.length===0?c.jsxs("div",{className:"text-center py-16",children:[c.jsx(ko,{className:"w-12 h-12 text-white/20 mx-auto mb-3"}),c.jsx("p",{className:"text-gray-500 text-lg",children:"No featured archers yet."}),c.jsx(Je,{to:Xe("NominateArcher"),className:"text-[#00d4ff] font-medium hover:underline mt-3 inline-block",children:"Nominate an archer →"})]}):c.jsx("div",{className:"grid md:grid-cols-2 gap-8",children:e.map((n,r)=>c.jsxs(Ue.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:r*.1},className:"bg-[#0d1830] border border-white/10 rounded-xl overflow-hidden hover:border-[#00d4ff]/40 transition-all group",children:[n.photo_url?c.jsx("div",{className:"h-48 overflow-hidden",children:c.jsx("img",{src:n.photo_url,alt:n.athlete_name,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"})}):c.jsx("div",{className:"h-48 bg-gradient-to-br from-[#00d4ff]/20 to-[#d4a843]/20 flex items-center justify-center",children:c.jsx(ko,{className:"w-12 h-12 text-white/20"})}),c.jsxs("div",{className:"p-6",children:[c.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[c.jsx("span",{className:"text-xs font-black uppercase tracking-widest text-[#00d4ff]",children:n.division}),c.jsxs("span",{className:"text-xs text-gray-500",children:["Age ",n.age]})]}),c.jsx("h3",{className:"text-xl font-black text-white mb-1",children:n.athlete_name}),c.jsxs("p",{className:"text-xs text-gray-400 mb-4",children:["Coach: ",n.coach_name]}),n.feature_date&&c.jsxs("p",{className:"text-xs text-gray-500 mb-4",children:["Featured ",hn(new Date(n.feature_date),"MMMM yyyy")]}),c.jsx("p",{className:"text-sm text-gray-400 mb-4 line-clamp-3",children:n.story.replace(/<[^>]*>/g,"")}),n.youtube_url&&c.jsxs("a",{href:n.youtube_url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 text-xs font-black uppercase tracking-wider text-[#00d4ff] hover:gap-3 transition-all",children:[c.jsx(KV,{className:"w-3 h-3"})," Watch Interview"]})]})]},n.id))}),c.jsx("div",{className:"mt-12 text-center",children:c.jsxs(Je,{to:Xe("NominateArcher"),className:"inline-flex items-center gap-2 px-6 py-3 bg-[#00d4ff]/10 border border-[#00d4ff]/30 rounded-lg text-[#00d4ff] font-black uppercase tracking-wider hover:bg-[#00d4ff]/20 transition-colors",children:["Nominate an Archer ",c.jsx(Ln,{className:"w-4 h-4"})]})})]})]})}function EX({archer:e}){const t="https://eyesonscore.com/archer-registration-form/WTQ4ZGF2V0Jtc1FEVlJ6UjJQSHYyZz09",n="🎯 CROSSROADS CLASSIC • October 2–3, 2026 • Victoria, TX • 18m indoor benefitting South Texas Archery JOAD • REGISTER NOW",r="⚖️ JUDGE'S SEMINAR • November 7, 2026 • College Station — Aggie Invite • Visit our Events page to register",i=e?`🎯 FEATURED ARCHER: ${e.athlete_name.toUpperCase()} • ${e.division} • AGE ${e.age} • NOMINATED BY ${e.coach_name.toUpperCase()} • ${e.story} • ${r}`:`${r} • 🏆 NOMINATE AN ARCHER • Coaches: Recognize your outstanding athletes for Featured Archer of the Month • Share their achievements and inspire the Texas archery community • Visit our Resources page to learn more`;return c.jsx("div",{className:"relative bg-gradient-to-r from-[#00d4ff] via-[#0099cc] to-[#00d4ff] overflow-hidden py-3 font-black text-[#060d1f] text-sm tracking-wider",children:c.jsx(Ue.div,{animate:{x:["100%","-100%"]},transition:{duration:30,repeat:1/0,linear:!0},className:"whitespace-nowrap",children:[0,1].map(a=>c.jsxs("span",{className:a?"ml-8":void 0,children:[c.jsx("a",{href:t,target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-2 hover:text-white transition-colors",children:n}),` • ${i}`]},a))})})}function MX({archer:e}){return c.jsxs("section",{className:"relative min-h-screen flex items-center overflow-hidden bg-[#060d1f] pt-20 lg:pt-36",children:[c.jsxs("div",{className:"absolute inset-0",children:[c.jsx("img",{src:"/brand/hero.png",alt:"Texas Flag",className:"w-full h-full object-cover opacity-60"}),c.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-[#060d1f]/85 via-[#0a1530]/75 to-[#060d1f]/80"}),c.jsx("div",{className:"absolute -top-40 right-0 w-[600px] h-[600px] bg-[#00d4ff]/10 rounded-full blur-3xl"}),c.jsx("div",{className:"absolute bottom-0 left-0 right-0 h-32 bg-gradient-to-t from-[#060d1f] to-transparent"})]}),c.jsx("div",{className:"absolute top-0 right-0 w-1/2 h-full overflow-hidden pointer-events-none",children:c.jsx("div",{className:"absolute top-0 right-0 w-full h-full bg-gradient-to-bl from-[#00d4ff]/5 to-transparent transform skew-x-12"})}),c.jsx("div",{className:"relative z-10 max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 w-full py-16 lg:py-24",children:c.jsxs(Ue.div,{initial:{opacity:0,y:40}
361,animate:{opacity:1,y:0},transition:{duration:.7,ease:"easeOut"},className:"max-w-3xl",children:[c.jsxs("h1",{className:"font-black text-white leading-[0.95] mb-6 tracking-tight",children:[c.jsx("span",{className:"block text-5xl sm:text-6xl lg:text-8xl uppercase",children:"Texas State"}),c.jsx("span",{className:"block text-5xl sm:text-6xl lg:text-8xl uppercase text-[#00d4ff]",children:"Archery"}),c.jsx("span",{className:"block text-5xl sm:text-6xl lg:text-8xl uppercase",children:"Association"})]}),c.jsxs("div",{className:"flex items-center gap-4 mb-6",children:[c.jsx("div",{className:"h-1 w-16 bg-[#00d4ff] rounded-full"}),c.jsx("div",{className:"h-1 w-4 bg-[#00d4ff]/30 rounded-full"})]}),c.jsxs("p",{className:"text-lg text-gray-400 leading-relaxed mb-10 max-w-xl",children:["Fostering competitive and recreational archery across the great state of Texas. ",c.jsx("a",{href:"https://www.usarchery.org/memberships/become-a-member",target:"_blank",rel:"noopener noreferrer",className:"text-[#00d4ff] font-bold hover:underline",children:"Join"})," our community of elite archers."]}),c.jsx(Ue.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.5,duration:.5},className:"mb-4",children:c.jsx("a",{href:"https://eyesonscore.com/archer-registration-form/WTQ4ZGF2V0Jtc1FEVlJ6UjJQSHYyZz09",target:"_blank",rel:"noopener noreferrer",className:"block rounded-xl border border-[#00d4ff]/40 bg-gradient-to-r from-[#00d4ff]/15 via-[#00d4ff]/10 to-[#00d4ff]/15 backdrop-blur-sm hover:border-[#00d4ff]/60 transition-colors group p-4 sm:p-5",children:c.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-2 text-xs sm:text-sm md:text-base font-bold uppercase tracking-wider",children:[c.jsx("span",{className:"text-[#00d4ff]",children:"🎯"}),c.jsx("span",{className:"text-white",children:"Crossroads Classic"}),c.jsx("span",{className:"text-[#00d4ff] hidden sm:inline",children:"•"}),c.jsx("span",{className:"text-gray-300",children:"Victoria, TX"}),c.jsx("span",{className:"text-[#00d4ff] hidden sm:inline",children:"•"}),c.jsx("span",{className:"text-white",children:"October 2–3, 2026"}),c.jsxs("span",{className:"text-[#00d4ff] group-hover:underline flex items-center gap-1",children:["Register ",c.jsx(Ln,{className:"w-3 h-3"})]})]})})}),c.jsx(Ue.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.6,duration:.5},className:"mb-8",children:c.jsx(Je,{to:Xe("JudgeSeminar"),className:"block rounded-xl border border-[#E8A33D]/40 bg-gradient-to-r from-[#E8A33D]/15 via-[#E8A33D]/10 to-[#E8A33D]/15 backdrop-blur-sm hover:border-[#E8A33D]/60 transition-colors group p-4 sm:p-5",children:c.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-2 text-xs sm:text-sm md:text-base font-bold uppercase tracking-wider",children:[c.jsx("span",{className:"text-[#E8A33D]",children:"⚖️"}),c.jsx("span",{className:"text-white",children:"USA Archery Judge Seminar"}),c.jsx("span",{className:"text-[#E8A33D] hidden sm:inline",children:"•"}),c.jsx("span",{className:"text-gray-300",children:"College Station, TX"}),c.jsx("span",{className:"text-[#E8A33D] hidden sm:inline",children:"•"}),c.jsx("span",{className:"text-white",children:"November 7, 2026"}),c.jsxs("span",{className:"text-[#E8A33D] group-hover:underline flex items-center gap-1",children:["Learn More ",c.jsx(Ln,{className:"w-3 h-3"})]})]})})}),c.jsxs("div",{className:"flex flex-wrap gap-4",children:[c.jsxs(Je,{to:Xe("Events"),className:"inline-flex items-center gap-2.5 px-7 py-4 bg-[#00d4ff] text-[#060d1f] rounded-lg font-black text-sm uppercase tracking-wider hover:bg-[#00bfe8] transition-all hover:shadow-lg hover:shadow-[#00d4ff]/30 group",children:[c.jsx(fd,{className:"w-4 h-4"}),"View Events",c.jsx(Ln,{className:"w-4 h-4 group-hover:translate-x-1 transition-transform"})]}),c.jsx(Je,{to:Xe("About"),className:"inline-flex items-center gap-2.5 px-7 py-4 bg-transparent text-white rounded-lg font-bold text-sm uppercase tracking-wider hover:bg-white/5 transition-all border border-white/20",children:"Learn More"})]})]})}),c.jsx("div",{className:"absolute bottom-0 left-0 right-0 z-20",children:c.jsx(EX,{archer:e})})]})}function RX({archer:e}){return c.jsxs("section",{className:"bg-[#060d1f] py-20 px-4 sm:px-6 lg:px-8 border-t border-white/10 relative overflow-hidden",children:[c.jsx("div",{className:"absolute top-0 right-0 w-96 h-96 bg-[#00d4ff]/5 rounded-full blur-3xl pointer-events-none"}),c.jsx("div",{className:"absolute bottom-0 left-0 w-64 h-64 bg-purple-500/5 rounded-full blur-3xl pointer-events-none"}),c.jsxs("div",{className:"max-w-7xl mx-auto relative",children:[c.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[c.jsx("div",{className:"h-1 w-10 bg-[#00d4ff] rounded-full"}),c.jsx("span",{className:"text-[#00d4ff] text-xs font-black uppercase tracking-widest",children:"Athlete Spotlight"})]}),c.jsxs("div",{className:"flex items-end justify-between mb-10",children:[c.jsx("h2",{className:"text-4xl lg:text-5xl font-black text-white uppercase tracking-tight",children:"Featured Archer"}),c.jsxs(Je,{to:Xe("FeaturedArchers"),className:"hidden sm:flex items-center gap-2 text-sm font-bold text-gray-400 hover:text-[#00d4ff] transition-colors group uppercase tracking-wider",children:["All Archers",c.jsx(Ln,{className:"w-4 h-4 group-hover:translate-x-1 transition-transform"})]})]}),e?c.jsx(Ue.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"bg-gradient-to-br from-[#0d1830] to-[#0a1228] border border-white/10 rounded-2xl overflow-hidden",children:c.jsxs("div",{className:"flex flex-col lg:flex-row",children:[c.jsxs("div",{className:"lg:w-80 h-72 lg:h-auto bg-gradient-to-br from-[#00d4ff]/10 to-purple-500/10 flex-shrink-0 relative",children:[e.photo_url?c.jsx("img",{src:e.photo_url,alt:e.athlete_name,className:"w-full h-full object-cover"}):c.jsx("div",{className:"w-full h-full flex items-center justify-center",children:c.jsx(Dh,{className:"w-20 h-20 text-[#00d4ff]/20"})}),c.jsx("div",{className:"absolute top-4 left-4",children:c.jsxs("div",{className:"inline-flex items-center gap-1.5 px-3 py-1.5 rounded-full bg-[#00d4ff] text-[#060d1f] text-[10px] font-black uppercase tracking-widest",children:[c.jsx(iW,{className:"w-3 h-3"})," Athlete of the Month"]})})]}),c.jsxs("div",{className:"p-8 lg:p-10 flex-1",children:[c.jsx("h3",{className:"text-3xl lg:text-4xl font-black text-white mb-2",children:e.athlete_name}),c.jsxs("div",{className:"flex flex-wrap gap-3 mb-6",children:[e.division&&c.jsx("span",{className:"px-3 py-1 rounded-full bg-[#00d4ff]/10 text-[#00d4ff] text-xs font-bold border border-[#00d4ff]/20",children:e.division}),e.age&&c.jsxs("span",{className:"px-3 py-1 rounded-full bg-white/5 text-gray-400 text-xs font-bold border border-white/10",children:["Age ",e.age]}),e.coach_name&&c.jsxs("span",{className:"px-3 py-1 rounded-full bg-white/5 text-gray-400 text-xs font-bold border border-white/10",children:["Coach: ",e.coach_name]})]}),c.jsx("p",{className:"text-gray-400 leading-relaxed mb-6 line-clamp-4",children:e.story}),e.q3_achievement&&c.jsxs("div",{className:"mb-6 p-4 rounded-xl bg-white/5 border border-white/10",children:[c.jsxs("div",{className:"text-[10px] font-black uppercase tracking-widest text-[#00d4ff] mb-2",children:[c.jsx(ko,{className:"w-3 h-3 inline mr-1"})," Proudest Achievement"]}),c.jsxs("p",{className:"text-sm text-gray-300 italic line-clamp-3",children:['"',e.q3_achievement,'"']})]}),c.jsxs(Je,{to:Xe("FeaturedArchers"),className:"inline-flex items-center gap-2 px-5 py-3 bg-[#00d4ff] text-[#060d1f] rounded-lg font-black text-xs uppercase tracking-wider hover:bg-[#00bfe8] transition-all group",children:["Read Full Story",c.jsx(Ln,{className:"w-3.5 h-3.5 group-hover:translate-x-1 transition-transform"})]})]})]})}):c.jsxs(Ue.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"bg-gradient-to-br from-[#0d1830] to-[#0a1228] border border-white/10 rounded-2xl p-10 text-center",children:[c.jsx(Dh,{className:"w-12 h-12 text-[#00d4ff]/30 mx-auto mb-4"}),c.jsx("h3",{className:"text-2xl font-black text-white mb-3",children:"Know an Outstanding Archer?"}),c.jsx("p",{className:"text-gray-400 text-sm max-w-md mx-auto mb-6",children:"Coaches — nominate your standout athletes to be featured on the TSAA homepage. Share their story with the Texas archery community."}),c.jsxs(Je,{to:Xe("NominateArcher"),className:"inline-flex items-center gap-2 px-6 py-3 bg-[#00d4ff] text-[#060d1f] rounded-lg font-black text-xs uppercase tracking-wider hover:bg-[#00bfe8] transition-all group",children:["Nominate an Archer",c.jsx(Ln,{className:"w-3.5 h-3.5 group-hover:translate-x-1 transition-transform"})]})]}),c.jsxs(Je,{to:Xe("FeaturedArchers"),className:"sm:hidden mt-6 flex items-center justify-center gap-2 text-sm font-bold text-gray-400 hover:text-[#00d4ff] transition-colors uppercase tracking-wider",children:["All Featured Archers ",c.jsx(Ln,{className:"w-4 h-4"})]})]})]})}const DX={"Level 1 Instructor":"L1","Level 2 Instructor":"L2","Level 3 Coach":"L3","Level 3 NTS Coach":"L3 NTS","Level 4 Coach":"L4","Level 4 NTS Coach":"L4 NTS","Level 5 Coach":"L5"};function IX(){var i;const{data:e=[]}=an({queryKey:["coachPreview"],queryFn:()=>on.entities.CoachProfile.filter({published:!0},"-created_date",20)}),[t,n]=k.useState(0);k.useEffect(()=>{if(e.length<=1)return;const a=setInterval(()=>{n(o=>(o+1)%e.length)},6e3);return()=>clearInterval(a)},[e.length]);const r=e[t];return c.jsxs("section",{className:"bg-[#080f22] py-20 px-4 sm:px-6 lg:px-8 border-t border-white/10 relative overflow-hidden",children:[c.jsx("div",{className:"absolute top-0 left-0 w-72 h-72 bg-[#00d4ff]/5 rounded-full blur-3xl pointer-events-none"}),c.jsxs("div",{className:"max-w-7xl mx-auto relative",children:[c.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[c.jsx("div",{className:"h-1 w-10 bg-[#00d4ff] rounded-full"}),c.jsx("span",{className:"text-[#00d4ff] text-xs font-black uppercase tracking-widest",children:"Coach's Corner"})]}),c.jsxs("div",{className:"flex items-end justify-between mb-10",children:[c.jsxs("div",{children:[c.jsx("h2",{className:"text-4xl lg:text-5xl font-black text-white uppercase tracking-tight",children:"Meet Our Coaches"}),c.jsx("p",{className:"text-gray-500 mt-2 text-sm max-w-lg",children:"Certified coaches across Texas building the next generation of archers."})]}),c.jsxs(Je,{to:Xe("CoachesCorner"),className:"hidden sm:flex items-center gap-2 text-sm font-bold text-gray-400 hover:text-[#00d4ff] transition-colors group uppercase tracking-wider",children:["View All",c.jsx(Ln,{className:"w-4 h-4 group-hover:translate-x-1 transition-transform"})]})]}),r?c.jsx(Bp,{mode:"wait",children:c.jsxs(Ue.div,{initial:{opacity:0,x:40}
361,animate:{opacity:1,x:0},exit:{opacity:0,x:-40},transition:{duration:.5},className:"bg-[#0d1830] border border-white/10 rounded-2xl overflow-hidden flex flex-col sm:flex-row hover:border-[#00d4ff]/40 transition-all duration-300",children:[c.jsxs("div",{className:"sm:w-64 h-56 sm:h-auto bg-gradient-to-br from-[#00d4ff]/10 to-purple-500/5 relative flex-shrink-0",children:[r.photo_url?c.jsx("img",{src:r.photo_url,alt:r.name,className:"w-full h-full object-cover"}):c.jsx("div",{className:"w-full h-full flex items-center justify-center",children:c.jsx("span",{className:"text-5xl font-black text-[#00d4ff]/20",children:(i=r.name)==null?void 0:i.split(" ").map(a=>a[0]).join("")})}),c.jsx("div",{className:"absolute top-3 right-3",children:c.jsx("span",{className:"px-2.5 py-1 rounded bg-[#00d4ff] text-[#060d1f] text-[10px] font-black",children:DX[r.certification_level]||r.certification_level})})]}),c.jsxs("div",{className:"p-6 sm:p-8 flex-1 min-w-0",children:[c.jsx("h3",{className:"font-black text-white text-xl mb-2",children:r.name}),c.jsxs("div",{className:"flex items-center gap-1.5 text-xs text-gray-500 mb-3",children:[c.jsx(Wr,{className:"w-3 h-3"})," ",r.city,", TX"]}),r.specialties&&c.jsx("div",{className:"flex flex-wrap gap-1.5 mb-3",children:r.specialties.split(",").slice(0,4).map((a,o)=>c.jsx("span",{className:"px-2 py-0.5 rounded bg-[#00d4ff]/10 text-[#00d4ff] text-[10px] font-bold",children:a.trim()},o))}),r.bio&&c.jsx("p",{className:"text-gray-400 text-sm leading-relaxed line-clamp-3 mb-3",children:r.bio}),r.accepts_new_students&&c.jsxs("div",{className:"flex items-center gap-1 text-xs text-green-400 font-bold",children:[c.jsx(Ay,{className:"w-3.5 h-3.5"})," Accepting Students"]}),e.length>1&&c.jsx("div",{className:"flex items-center gap-1.5 mt-4",children:e.map((a,o)=>c.jsx("button",{onClick:()=>n(o),className:`w-2 h-2 rounded-full transition-all ${o===t?"bg-[#00d4ff] w-6":"bg-white/20 hover:bg-white/40"}`},o))})]})]},r.id)}):c.jsxs(Ue.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"bg-gradient-to-br from-[#0d1830] to-[#0a1228] border border-white/10 rounded-2xl p-10 text-center",children:[c.jsx(qr,{className:"w-12 h-12 text-[#00d4ff]/30 mx-auto mb-4"}),c.jsx("h3",{className:"text-2xl font-black text-white mb-3",children:"Are You a Certified Coach?"}),c.jsx("p",{className:"text-gray-400 text-sm max-w-md mx-auto mb-6",children:"We're building a directory of USA Archery certified coaches in Texas. Get featured and connect with athletes looking for coaching."}),c.jsxs(Je,{to:Xe("CoachesCorner"),className:"inline-flex items-center gap-2 px-6 py-3 bg-[#00d4ff] text-[#060d1f] rounded-lg font-black text-xs uppercase tracking-wider hover:bg-[#00bfe8] transition-all group",children:["Learn How to Get Featured",c.jsx(Ln,{className:"w-3.5 h-3.5 group-hover:translate-x-1 transition-transform"})]})]}),c.jsxs(Je,{to:Xe("CoachesCorner"),className:"sm:hidden mt-6 flex items-center justify-center gap-2 text-sm font-bold text-gray-400 hover:text-[#00d4ff] transition-colors uppercase tracking-wider",children:["View All Coaches ",c.jsx(Ln,{className:"w-4 h-4"})]})]})]})}const LX=[{icon:Dh,label:"Years Active",value:"40+",accent:"#00d4ff"},{icon:qr,label:"Active Members",value:"500+",accent:"#00d4ff"},{icon:Fi,label:"Annual Events",value:"20+",accent:"#00d4ff"},{icon:Wr,label:"Texas Clubs",value:"30+",accent:"#00d4ff"}];function $X(){return c.jsx("section",{className:"bg-[#060d1f] py-0",children:c.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:c.jsx("div",{className:"grid grid-cols-2 lg:grid-cols-4 divide-x divide-white/10 border-t border-b border-white/10",children:LX.map((e,t)=>c.jsxs(Ue.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:t*.1},className:"flex flex-col items-center justify-center py-10 px-6 group hover:bg-white/5 transition-colors",children:[c.jsx("div",{className:"w-10 h-10 rounded-lg bg-[#00d4ff]/10 flex items-center justify-center mb-4 group-hover:bg-[#00d4ff]/20 transition-colors",children:c.jsx(e.icon,{className:"w-5 h-5 text-[#00d4ff]"})}),c.jsx("div",{className:"text-4xl lg:text-5xl font-black text-white tracking-tight mb-1",children:e.value}),c.jsx("div",{className:"text-xs font-semibold uppercase tracking-widest text-gray-500",children:e.label})]},e.label))})})})}function BX({events:e,isLoading:t}){const n=(e||[]).filter(r=>!Uh(In(r.end_date||r.event_date))).sort((r,i)=>new Date(r.event_date+"T12:00:00")-new Date(i.event_date+"T12:00:00")).slice(0,4);return t?c.jsx("section",{className:"bg-[#080f22] py-24 px-4 sm:px-6 lg:px-8",children:c.jsx("div",{className:"max-w-7xl mx-auto grid md:grid-cols-2 lg:grid-cols-4 gap-4",children:[1,2,3,4].map(r=>c.jsx("div",{className:"h-64 bg-white/5 rounded-xl animate-pulse"},r))})}):n.length===0?null:c.jsx("section",{className:"bg-[#080f22] py-24 px-4 sm:px-6 lg:px-8",children:c.jsxs("div",{className:"max-w-7xl mx-auto",children:[c.jsxs("div",{className:"flex items-end justify-between mb-12",children:[c.jsxs("div",{children:[c.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[c.jsx("div",{className:"h-1 w-10 bg-[#00d4ff] rounded-full"}),c.jsx("span",{className:"text-[#00d4ff] text-xs font-black uppercase tracking-widest",children:"What's Coming"})]}),c.jsx("h2",{className:"text-4xl lg:text-5xl font-black text-white uppercase tracking-tight",children:"Upcoming Events"})]}),c.jsxs(Je,{to:Xe("Events"),className:"hidden sm:flex items-center gap-2 text-sm font-bold text-gray-400 hover:text-[#00d4ff] transition-colors group uppercase tracking-wider",children:["View All",c.jsx(Ln,{className:"w-4 h-4 group-hover:translate-x-1 transition-transform"})]})]}),c.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-4",children:n.map((r,i)=>c.jsxs(Ue.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:i*.1},className:"group bg-[#0d1830] border border-white/10 rounded-xl overflow-hidden hover:border-[#00d4ff]/40 hover:shadow-xl hover:shadow-[#00d4ff]/5 transition-all duration-300",children:[r.image_url&&c.jsx("div",{className:"h-36 overflow-hidden",children:c.jsx("img",{src:r.image_url,alt:r.name,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500 opacity-80 group-hover:opacity-100"})}),c.jsxs("div",{className:"p-5",children:[c.jsx("div",{className:"mb-3",children:c.jsx("span",{className:"text-[10px] font-black uppercase tracking-widest px-2.5 py-1 rounded border bg-[#00d4ff]/10 text-[#00d4ff] border-[#00d4ff]/20",children:r.organizer||"Event"})}),c.jsx("h3",{className:"font-black text-white text-base mb-3 leading-tight group-hover:text-[#00d4ff] transition-colors",children:r.name}),c.jsxs("div",{className:"space-y-1.5 text-xs text-gray-500 mb-4",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(fd,{className:"w-3.5 h-3.5 text-[#00d4ff]/60"}),c.jsx("span",{children:hn(In(r.event_date),"MMM d, yyyy")})]}),r.location&&c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(Wr,{className:"w-3.5 h-3.5 text-[#00d4ff]/60"}),c.jsx("span",{children:r.location})]})]}),r.registration_url&&c.jsxs("a",{href:r.registration_url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 text-xs font-black text-[#00d4ff] hover:text-white transition-colors uppercase tracking-wider",children:["Register ",c.jsx(fi,{className:"w-3 h-3"})]})]})]},r.id))}),c.jsxs(Je,{to:Xe("Events"),className:"sm:hidden mt-8 flex items-center justify-center gap-2 text-sm font-bold text-gray-400 hover:text-[#00d4ff] transition-colors uppercase tracking-wider",children:["View All Events ",c.jsx(Ln,{className:"w-4 h-4"})]})]})})}const FX={announcement:"Announcement",results:"Results",meeting:"Meeting",championship:"Championship",general:"General"};function zX({posts:e,isLoading:t}){const n=(e||[]).filter(r=>r.published!==!1).sort((r,i)=>new Date(i.created_date)-new Date(r.created_date)).slice(0,4);return t?c.jsx("section",{className:"bg-[#060d1f] py-24",children:c.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:c.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-4",children:[1,2,3,4].map(r=>c.jsx("div",{className:"h-48 bg-white/5 rounded-xl animate-pulse"},r))})})}):n.length===0?null:c.jsx("section",{className:"bg-[#060d1f] py-24 border-t border-white/10",children:c.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[c.jsxs("div",{className:"flex items-end justify-between mb-12",children:[c.jsxs("div",{children:[c.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[c.jsx("div",{className:"h-1 w-10 bg-[#00d4ff] rounded-full"}),c.jsx("span",{className:"text-[#00d4ff] text-xs font-black uppercase tracking-widest",children:"Stay Updated"})]}),c.jsx("h2",{className:"text-4xl lg:text-5xl font-black text-white uppercase tracking-tight",children:"Latest News"})]}),c.jsxs(Je,{to:Xe("News"),className:"hidden sm:flex items-center gap-2 text-sm font-bold text-gray-400 hover:text-[#00d4ff] transition-colors group uppercase tracking-wider",children:["All News",c.jsx(Ln,{className:"w-4 h-4 group-hover:translate-x-1 transition-transform"})]})]}),c.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-4",children:n.map((r,i)=>c.jsx(Ue.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:i*.08},children:c.jsxs(Je,{to:Xe("NewsDetail")+`?id=${r.id}`,className:"flex flex-col bg-[#0d1830] border border-white/10 rounded-xl overflow-hidden hover:border-[#00d4ff]/40 hover:shadow-xl hover:shadow-[#00d4ff]/5 transition-all duration-300 h-full group",children:[r.image_url&&c.jsx("div",{className:"h-32 overflow-hidden flex-shrink-0",children:c.jsx("img",{src:r.image_url,alt:r.title,className:"w-full h-full object-cover opacity-80 group-hover:opacity-100 group-hover:scale-105 transition-all duration-500",onError:a=>{a.target.parentElement.style.display="none"}})}),c.jsxs("div",{className:"p-5 flex flex-col flex-1",children:[c.jsx("span",{className:"text-[10px] font-black uppercase tracking-widest text-[#00d4ff] mb-2",children:FX[r.category]||"News"}),c.jsx("h3",{className:"font-black text-white text-sm leading-snug line-clamp-2 mb-2 group-hover:text-[#00d4ff] transition-colors flex-1",children:r.title}),r.summary&&c.jsx("p",{className:"text-xs text-gray-500 line-clamp-2 mb-3",children:r.summary}),c.jsxs("div",{className:"flex items-center gap-1.5 text-xs text-gray-600 mt-auto",children:[c.jsx(Rh,{className:"w-3 h-3"}),hn(new Date(r.created_date),"MMM d, yyyy")]})]})]})},r.id))})]})})}const qX=[{platform:"instagram",handle:"@texasstatearcheryassociation",text:"Thanks to everyone who joined us for the 2026 State Indoor Championship 🏆 We are excited to now announce the locations and dates for the State Field and Outdoor Championship! Hauco Bowmen will host Field on April 11th and 12th. Buffalo Field will host the Outdoor Championship on August 8th and 9th. We will post full details soon!",date:"Mar 2026",url:"https://www.instagram.com/texasstatearcheryassociation",img:null,directPostUrl:"https://www.instagram.com/p/DUUYQWCDQEh/"},{platform:"facebook",handle:"Texas State Archery Association",text:"Some of the first recipients of Texas State Archery Association's Archer of the Year Award — sporting some cool new belt buckles! 🏅 Congratulations to all 2025 Archer of the Year winners!",date:"Oct 2025",url:"https://www.facebook.com/TexasStateArcheryAssociation/posts/some-on-the-first-recipients-of-texas-state-archery-associations-archer-of-the-y/1303673928219643/",img:null,directPostUrl:"https://www.facebook.com/TexasStateArcheryAssociation/posts/some-on-the-first-recipients-of-texas-state-archery-associations-archer-of-the-y/1303673928219643/"},{platform:"facebook",handle:"Texas State Archery Association",text:"Bids are OPEN for 2026 State Championships! The TSAA is opening bids for the State Indoor Championship, State Field Championship, and State Outdoor Championship. Submit your club's bid to host a 2026 state event!",date:"Sep 2025",url:"https://www.facebook.com/TexasStateArcheryAssociation/posts/bids-are-open-for-2026-state-championshipsthe-texas-state-archery-association-ts/1260877169165986/",img:null,directPostUrl:"https://www.facebook.com/TexasStateArcheryAssociation/posts/bids-are-open-for-2026-state-championshipsthe-texas-state-archery-association-ts/1260877169165986/"},{platform:"facebook",handle:"Texas State Archery Association",text:"TSAA 25m Championship 2025 🎯 The 25m Championship returns with a new format and new prizes! Champions earn a buckle, podium finishers earn a challenge coin. Qualifiers at clubs across Texas — Dec 13 Championship at Texas Archery Spring!",date:"Sep 2025",url:"https://www.facebook.com/TexasStateArcheryAssociation/posts/the-25m-championship-returns-for-2025-with-a-new-format-and-a-new-prize-for-the-/1278298204090549/",img:null,directPostUrl:"https://www.facebook.com/TexasStateArcheryAssociation/posts/the-25m-championship-returns-for-2025-with-a-new-format-and-a-new-prize-for-the-/1278298204090549/"},{platform:"facebook",handle:"Texas State Archery Association",text:"ATTENTION ARCHERS! Registration for the TSAA 2025 Outdoor State Championship is OPEN! This event will be hosted by Arrow Minded Outdoors. Don't miss your chance to compete for a state title!",date:"Jun 2025",url:"https://www.facebook.com/TexasStateArcheryAssociation/posts/attention-archers-registration-for-the-tsaa-2025-outdoor-state-championship-is-o/1213069323946771/",img:null,directPostUrl:"https://www.facebook.com/TexasStateArcheryAssociation/posts/attention-archers-registration-for-the-tsaa-2025-outdoor-state-championship-is-o/1213069323946771/"},{platform:"instagram",handle:"@texasstatearcheryassociation",text:"2025 TSAA State Indoor Championships — records were broken across multiple divisions! Caelan Shanklin fired a 582 in U18 Recurve Male 🏹 Full results now posted on Eyes on Score.",date:"Feb 2025",url:"https://www.instagram.com/texasstatearcheryassociation",img:null,directPostUrl:"https://www.instagram.com/texasstatearcheryassociation"}],bj=()=>
361c.jsx("svg",{className:"w-4 h-4",viewBox:"0 0 24 24",fill:"currentColor",children:c.jsx("path",{d:"M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"})}),wj=()=>c.jsx("svg",{className:"w-4 h-4",viewBox:"0 0 24 24",fill:"currentColor",children:c.jsx("path",{d:"M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zm0-2.163c-3.259 0-3.667.014-4.947.072-4.358.2-6.78 2.618-6.98 6.98-.059 1.281-.073 1.689-.073 4.948 0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98 1.281.058 1.689.072 4.948.072 3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98-1.281-.059-1.69-.073-4.949-.073zm0 5.838c-3.403 0-6.162 2.759-6.162 6.162s2.759 6.163 6.162 6.163 6.162-2.759 6.162-6.163c0-3.403-2.759-6.162-6.162-6.162zm0 10.162c-2.209 0-4-1.79-4-4 0-2.209 1.791-4 4-4s4 1.791 4 4c0 2.21-1.791 4-4 4zm6.406-11.845c-.796 0-1.441.645-1.441 1.44s.645 1.44 1.441 1.44c.795 0 1.439-.645 1.439-1.44s-.644-1.44-1.439-1.44z"})}),VX=({platform:e})=>e==="facebook"?c.jsx("div",{className:"w-7 h-7 rounded-lg bg-[#1877F2] flex items-center justify-center flex-shrink-0 text-white",children:c.jsx(bj,{})}):c.jsx("div",{className:"w-7 h-7 rounded-lg bg-gradient-to-br from-[#833AB4] via-[#FD1D1D] to-[#F77737] flex items-center justify-center flex-shrink-0 text-white",children:c.jsx(wj,{})});function WX(){const e=t=>{var n;(n=t.target.closest(".social-img-wrap"))==null||n.classList.add("hidden")};return c.jsx("section",{className:"bg-[#080f22] py-24 border-t border-white/10",children:c.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[c.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-end justify-between mb-12 gap-4",children:[c.jsxs("div",{children:[c.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[c.jsx("div",{className:"h-1 w-10 bg-[#00d4ff] rounded-full"}),c.jsx("span",{className:"text-[#00d4ff] text-xs font-black uppercase tracking-widest",children:"Community"})]}),c.jsx("h2",{className:"text-4xl lg:text-5xl font-black text-white uppercase tracking-tight",children:"Follow Along"}),c.jsx("p",{className:"text-gray-500 text-sm mt-2",children:"Stay connected with TSAA on social media"})]}),c.jsxs("div",{className:"flex gap-3 flex-shrink-0",children:[c.jsxs("a",{href:"https://www.facebook.com/TexasStateArcheryAssociation",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 px-4 py-2.5 bg-[#1877F2] text-white text-xs font-black uppercase tracking-wider rounded-lg hover:bg-[#1565d8] transition-colors",children:[c.jsx(bj,{})," Facebook"]}),c.jsxs("a",{href:"https://www.instagram.com/texasstatearcheryassociation",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 px-4 py-2.5 bg-gradient-to-r from-[#833AB4] to-[#FD1D1D] text-white text-xs font-black uppercase tracking-wider rounded-lg hover:opacity-90 transition-opacity",children:[c.jsx(wj,{})," Instagram"]})]})]}),c.jsx("div",{className:"grid sm:grid-cols-2 lg:grid-cols-3 gap-4",children:qX.map((t,n)=>c.jsxs(Ue.a,{href:t.directPostUrl,target:"_blank",rel:"noopener noreferrer",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:n*.08},className:"group flex flex-col bg-[#0d1830] border border-white/10 rounded-xl overflow-hidden hover:border-[#00d4ff]/40 hover:shadow-xl hover:shadow-[#00d4ff]/5 transition-all duration-300",children:[t.img&&c.jsxs("div",{className:"social-img-wrap h-44 overflow-hidden flex-shrink-0 relative",children:[c.jsx("img",{src:t.img,alt:"",onError:e,className:"w-full h-full object-cover opacity-75 group-hover:opacity-100 group-hover:scale-105 transition-all duration-500"}),c.jsx("div",{className:"absolute top-3 right-3",children:c.jsx("div",{className:`px-2 py-1 rounded-md text-[10px] font-black uppercase tracking-wider text-white ${t.platform==="facebook"?"bg-[#1877F2]":"bg-gradient-to-r from-[#833AB4] to-[#FD1D1D]"}`,children:t.platform==="facebook"?"Facebook":"Instagram"})})]}),c.jsxs("div",{className:"p-5 flex flex-col flex-1",children:[c.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[c.jsx(VX,{platform:t.platform}),c.jsxs("div",{children:[c.jsx("div",{className:"text-xs text-white font-bold leading-none",children:t.handle}),c.jsx("div",{className:"text-[10px] text-gray-600 uppercase tracking-wider font-bold mt-0.5",children:t.date})]})]}),c.jsx("p",{className:"text-sm text-gray-300 leading-relaxed flex-1 line-clamp-4",children:t.text}),c.jsxs("div",{className:"flex items-center gap-1.5 mt-4 pt-3 border-t border-white/5 text-[#00d4ff] text-xs font-black uppercase tracking-wider",children:[c.jsxs("span",{className:"opacity-0 group-hover:opacity-100 transition-opacity flex items-center gap-1.5",children:["View on ",t.platform==="facebook"?"Facebook":"Instagram"," ",c.jsx(fi,{className:"w-3 h-3"})]}),c.jsx("span",{className:"group-hover:opacity-0 transition-opacity text-gray-700",children:"View original post →"})]})]})]},n))}),c.jsxs("div",{className:"mt-10 p-6 bg-[#0d1830] border border-white/10 rounded-xl flex flex-col sm:flex-row items-center justify-between gap-4",children:[c.jsxs("p",{className:"text-gray-400 text-sm",children:[c.jsx("span",{className:"text-white font-bold",children:"Follow TSAA"})," for real-time updates, results, and announcements."]}),c.jsxs("div",{className:"flex gap-3",children:[c.jsxs("a",{href:"https://www.facebook.com/TexasStateArcheryAssociation",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 px-5 py-2.5 bg-[#1877F2] text-white text-xs font-black uppercase tracking-wider rounded-lg hover:bg-[#1565d8] transition-colors",children:[c.jsx(bj,{})," Follow on Facebook"]}),c.jsxs("a",{href:"https://www.instagram.com/texasstatearcheryassociation",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 px-5 py-2.5 bg-gradient-to-r from-[#833AB4] to-[#FD1D1D] text-white text-xs font-black uppercase tracking-wider rounded-lg hover:opacity-90 transition-opacity",children:[c.jsx(wj,{})," Follow on Instagram"]})]})]})]})})}const UX={Candidate:"bg-gray-500/20 text-gray-300",Apprentice:"bg-blue-500/20 text-blue-300",Certified:"bg-green-500/20 text-green-300",National:"bg-amber-500/20 text-amber-300",Continental:"bg-purple-500/20 text-purple-300",International:"bg-[#00d4ff]/20 text-[#00d4ff]"};function HX(){const{data:e=[]}=an({queryKey:["judgePreview"],queryFn:()=>on.entities.Judge.filter({published:!0},"-created_date",20)}),[t,n]=k.useState(0);k.useEffect(()=>{if(e.length<=1)return;const i=setInterval(()=>{n(a=>(a+1)%e.length)},7e3);return()=>clearInterval(i)},[e.length]);const r=e[t];return!r&&e.length===0?null:c.jsxs("section",{className:"bg-[#060d1f] py-20 px-4 sm:px-6 lg:px-8 border-t border-white/10 relative overflow-hidden",children:[c.jsx("div",{className:"absolute top-0 right-0 w-72 h-72 bg-amber-500/5 rounded-full blur-3xl pointer-events-none"}),c.jsxs("div",{className:"max-w-7xl mx-auto relative",children:[c.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[c.jsx("div",{className:"h-1 w-10 bg-amber-400 rounded-full"}),c.jsx("span",{className:"text-amber-400 text-xs font-black uppercase tracking-widest",children:"On the Line"})]}),c.jsxs("div",{className:"flex items-end justify-between mb-10",children:[c.jsxs("div",{children:[c.jsx("h2",{className:"text-4xl lg:text-5xl font-black text-white uppercase tracking-tight",children:"Meet Our Judges"}),c.jsx("p",{className:"text-gray-500 mt-2 text-sm max-w-lg",children:"Certified judges keeping Texas archery fair and competitive."})]}),c.jsxs(Je,{to:Xe("OnTheLine"),className:"hidden sm:flex items-center gap-2 text-sm font-bold text-gray-400 hover:text-amber-400 transition-colors group uppercase tracking-wider",children:["View All",c.jsx(Ln,{className:"w-4 h-4 group-hover:translate-x-1 transition-transform"})]})]}),r&&c.jsx(Bp,{mode:"wait",children:c.jsxs(Ue.div,{initial:{opacity:0,x:40}
361,animate:{opacity:1,x:0},exit:{opacity:0,x:-40},transition:{duration:.5},className:"bg-[#0d1830] border border-white/10 rounded-2xl overflow-hidden flex flex-col sm:flex-row hover:border-amber-400/40 transition-all duration-300",children:[c.jsxs("div",{className:"sm:w-64 h-56 sm:h-auto bg-gradient-to-br from-amber-500/10 to-orange-500/5 relative flex-shrink-0",children:[r.photo_url?c.jsx("img",{src:r.photo_url,alt:r.name,className:"w-full h-full object-cover"}):c.jsx("div",{className:"w-full h-full flex items-center justify-center",children:c.jsx(IS,{className:"w-16 h-16 text-amber-400/20"})}),c.jsx("div",{className:"absolute top-3 right-3",children:c.jsx("span",{className:`px-2.5 py-1 rounded text-[10px] font-black ${UX[r.certification_level]||"bg-gray-500/20 text-gray-300"}`,children:r.certification_level})})]}),c.jsxs("div",{className:"p-6 sm:p-8 flex-1 min-w-0",children:[c.jsx("h3",{className:"font-black text-white text-xl mb-2",children:r.name}),c.jsxs("div",{className:"flex items-center gap-1.5 text-xs text-gray-500 mb-3",children:[c.jsx(Wr,{className:"w-3 h-3"})," ",r.city,", TX"]}),r.specialties&&c.jsx("div",{className:"flex flex-wrap gap-1.5 mb-3",children:r.specialties.split(",").slice(0,4).map((i,a)=>c.jsx("span",{className:"px-2 py-0.5 rounded bg-amber-400/10 text-amber-400 text-[10px] font-bold",children:i.trim()},a))}),r.years_judging>0&&c.jsxs("div",{className:"flex items-center gap-1 text-xs text-gray-400 font-bold mb-2",children:[c.jsx(eW,{className:"w-3.5 h-3.5 text-amber-400"})," ",r.years_judging," years of judging experience"]}),r.bio&&c.jsx("p",{className:"text-gray-400 text-sm leading-relaxed line-clamp-3",children:r.bio}),e.length>1&&c.jsx("div",{className:"flex items-center gap-1.5 mt-4",children:e.map((i,a)=>c.jsx("button",{onClick:()=>n(a),className:`w-2 h-2 rounded-full transition-all ${a===t?"bg-amber-400 w-6":"bg-white/20 hover:bg-white/40"}`},a))})]})]},r.id)}),c.jsxs(Je,{to:Xe("OnTheLine"),className:"sm:hidden mt-6 flex items-center justify-center gap-2 text-sm font-bold text-gray-400 hover:text-amber-400 transition-colors uppercase tracking-wider",children:["View All Judges ",c.jsx(Ln,{className:"w-4 h-4"})]})]})]})}function GX(){return c.jsxs("section",{className:"relative w-full border-t border-b px-4 sm:px-6 lg:px-8 py-16 sm:py-20 text-center",style:{background:"radial-gradient(ellipse at center, #1a3a1a 0%, #0f2810 50%, #091a08 100%)",borderColor:"#7ab648"},children:[c.jsx("p",{className:"text-xs sm:text-[11px] font-black uppercase tracking-[0.3em] mb-5",style:{color:"#7ab648"},children:"Texas State Archery Association"}),c.jsxs("h2",{className:"text-3xl sm:text-4xl lg:text-5xl font-black leading-tight mb-5",children:[c.jsx("span",{style:{color:"#f5f0e8"},children:"Arrow Up. "}),c.jsx("span",{style:{color:"#7ab648"},children:"Serve Texas Archery."})]}),c.jsxs("p",{className:"max-w-xl mx-auto text-sm sm:text-base leading-relaxed mb-8",style:{color:"#a8b89a"},children:["Volunteers are the backbone of TSAA. Whether you have 2 hours or 20 —",c.jsx("br",{className:"hidden sm:inline"})," there's a place for you on our team."]}),c.jsx(Je,{to:Xe("Contact"),className:"inline-block px-7 py-3 rounded-lg text-sm font-black uppercase tracking-wider transition-all hover:scale-105",style:{backgroundColor:"#7ab648",color:"#091a08"},children:"Join the Team →"})]})}function KX(){return c.jsx("section",{className:"bg-[#060d1f] py-16 px-4 sm:px-6 lg:px-8 border-t border-white/10",children:c.jsx("div",{className:"max-w-4xl mx-auto text-center",children:c.jsxs("p",{className:"text-gray-400 text-sm sm:text-base leading-relaxed",children:["The Texas State Archery Association (TSAA) is the official state governing body for competitive archery in Texas, affiliated with USA Archery and World Archery. We serve archers of all ages and skill levels — from first-time youth shooters to elite Olympic-level competitors. TSAA sanctions and hosts archery tournaments across Texas, supports JOAD programs, certifies coaches, and connects archers with clubs throughout the state. Whether you're looking to compete, coach, volunteer, or simply"," ",c.jsx(Je,{to:"/FindArcheryInTexas",className:"text-[#00d4ff] hover:underline font-bold",children:"find archery near you"})," ","— you've found the right place. Texas archery starts here."]})})})}function ZX(){const{data:e,isLoading:t}=an({queryKey:["tournamentEvents"],queryFn:()=>on.entities.TournamentEvent.list("event_date",100),initialData:[]}),{data:n,isLoading:r}=an({queryKey:["news"],queryFn:()=>on.entities.NewsPost.list("-created_date",10),initialData:[]}),{data:i}=an({queryKey:["featured-archers"],queryFn:()=>on.entities.FeaturedArcher.filter({published:!0},"-feature_date",1),initialData:[]});return c.jsxs("div",{children:[c.jsx(gi,{title:"Texas State Archery Association | Official State Governing Body for Archery in Texas",description:"TSAA is the official USA Archery-affiliated governing body for competitive archery in Texas. Find tournaments, clubs, coaches, and resources for archers of all levels.",image:"https://www.tsaa.us/wp-content/uploads/2024/12/cropped-NEWTSAALOGO-1-e1733727925390.gif",type:"organization",schema:{"@context":"https://schema.org","@type":"Organization",name:"Texas State Archery Association",url:"https://www.tsaa.us",logo:"https://www.tsaa.us/wp-content/uploads/2024/12/cropped-NEWTSAALOGO-1-e1733727925390.gif",description:"Fostering amateur archery competition and advancing the sport in Texas since 1983",foundingDate:"1983",sameAs:["https://www.facebook.com/texasstatearcheryassociation","https://www.instagram.com/texasstatearcheryassociation"]}}),c.jsx(MX,{archer:i[0]}),c.jsx(KX,{}),c.jsx(GX,{}),c.jsx(RX,{archer:i[0]}),c.jsx(IX,{}),c.jsx(HX,{}),c.jsx($X,{}),c.jsx(BX,{events:e,isLoading:t}),c.jsx(zX,{posts:n,isLoading:r}),c.jsx(WX,{})]})}const YX=[{icon:wC,title:"Tournament Bid Application",description:"Fill out the bid form and send it to [email protected] to get started.",url:"https://docs.google.com/document/d/1O5tlcES5O5wwAM8HH4V2BDrfIAhU4PgLFWLcRmxGr6E/edit",cta:"Open Form"}
361,{icon:jh,title:"Attendance & Financial Records",description:"View previous year's tournament attendance and financials to plan your event.",url:"https://docs.google.com/spreadsheets/u/1/d/e/2PACX-1vRdZ1Abe909i0hUvZtbEYXaecyrF_PIsg87mWxOG2F3mcecrwWXRT3lpD-akHAIZw/pubhtml",cta:"View Records"},{icon:wC,title:"Score Card Templates",description:"Official USA Archery event scorecard templates for your tournament.",url:"https://www.usarchery.org/resource-center/events/scorecard-templates",cta:"Download"},{icon:jh,title:"How to Host a World Archery Star Tournament",description:"USA Archery's official sanctioned tournament guide.",url:"https://www.usarchery.org/resource-center/events/sanctioned-tournament-guide",cta:"Read Guide"},{icon:qr,title:"Tournament Director Summary",description:"A helpful summary for tournament directors based on experience by Ron Carmichael.",url:"https://docs.google.com/document/d/1cf2ZKHdO2k4W7mlpRXc5RTFJ0KOyTd2b/edit",cta:"Open Doc"},{icon:jh,title:"Thoughts on Running a Tournament",description:"Reflections and tips from Victoria Tournaments 2001 by Tom Barker.",url:"https://docs.google.com/document/d/1cf2ZKHdO2k4W7mlpRXc5RTFJ0KOyTd2b/edit",cta:"Read Article"}];function XX(){return c.jsxs("div",{className:"min-h-screen bg-[#060d1f]",children:[c.jsx("div",{className:"relative pt-24 pb-16 px-4 sm:px-6 lg:px-8 bg-gradient-to-b from-[#0a1530] to-[#060d1f]",children:c.jsxs("div",{className:"max-w-4xl mx-auto text-center",children:[c.jsxs("div",{className:"flex items-center justify-center gap-3 mb-4",children:[c.jsx("div",{className:"h-1 w-10 bg-[#00d4ff] rounded-full"}),c.jsx("span",{className:"text-[#00d4ff] text-xs font-black uppercase tracking-widest",children:"For Clubs & Directors"}),c.jsx("div",{className:"h-1 w-10 bg-[#00d4ff] rounded-full"})]}),c.jsxs("h1",{className:"text-5xl lg:text-7xl font-black text-white uppercase tracking-tight mb-4",children:["Host an ",c.jsx("span",{className:"text-[#00d4ff]",children:"Event"})]}),c.jsx("p",{className:"text-gray-400 text-lg max-w-2xl mx-auto",children:"Are you a TSAA member interested in conducting a tournament? Here's everything you need to get started."})]})}),c.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 pb-24 space-y-12",children:[c.jsxs(Ue.section,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},children:[c.jsx("h2",{className:"text-xl font-black text-white uppercase tracking-tight mb-6",children:"Getting Started"}),c.jsxs("div",{className:"space-y-4",children:[c.jsxs("div",{className:"flex gap-4 bg-[#0d1830] border border-white/10 rounded-xl p-5",children:[c.jsx("div",{className:"flex-shrink-0 w-8 h-8 bg-[#00d4ff] text-[#060d1f] rounded-full flex items-center justify-center font-black text-sm",children:"1"}),c.jsxs("div",{children:[c.jsx("p",{className:"text-white font-bold",children:"Review previous tournament data"}),c.jsx("p",{className:"text-gray-400 text-sm mt-1",children:"Check attendance records and financials to understand what's involved in running a TSAA event."})]})]}),c.jsxs("div",{className:"flex gap-4 bg-[#0d1830] border border-white/10 rounded-xl p-5",children:[c.jsx("div",{className:"flex-shrink-0 w-8 h-8 bg-[#00d4ff] text-[#060d1f] rounded-full flex items-center justify-center font-black text-sm",children:"2"}),c.jsxs("div",{children:[c.jsx("p",{className:"text-white font-bold",children:"Complete the tournament bid application"}),c.jsxs("p",{className:"text-gray-400 text-sm mt-1",children:["Fill out the form and email it to ",c.jsx("a",{href:"mailto:[email protected]",className:"text-[#00d4ff] hover:underline",children:"[email protected]"})]})]})]}),c.jsxs("div",{className:"flex gap-4 bg-[#0d1830] border border-white/10 rounded-xl p-5",children:[c.jsx("div",{className:"flex-shrink-0 w-8 h-8 bg-[#00d4ff] text-[#060d1f] rounded-full flex items-center justify-center font-black text-sm",children:"3"}),c.jsxs("div",{children:[c.jsx("p",{className:"text-white font-bold",children:"Plan your event with the resources below"}),c.jsx("p",{className:"text-gray-400 text-sm mt-1",children:"Use the guides, scorecards, and director tips to prepare for a successful tournament."})]})]})]})]}),c.jsxs(Ue.section,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},children:[c.jsx("h2",{className:"text-xl font-black text-white uppercase tracking-tight mb-6",children:"Resources"}),c.jsx("div",{className:"grid sm:grid-cols-2 gap-4",children:YX.map((e,t)=>{const n=e.icon;return c.jsx("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",className:"group bg-[#0d1830] border border-white/10 rounded-xl p-5 hover:border-[#00d4ff]/40 transition-all",children:c.jsxs("div",{className:"flex items-start gap-4",children:[c.jsx("div",{className:"flex-shrink-0 w-10 h-10 bg-[#00d4ff]/10 rounded-lg flex items-center justify-center",children:c.jsx(n,{className:"w-5 h-5 text-[#00d4ff]"})}),c.jsxs("div",{className:"flex-1",children:[c.jsx("p",{className:"text-white font-bold text-sm group-hover:text-[#00d4ff] transition-colors",children:e.title}),c.jsx("p",{className:"text-gray-500 text-xs mt-1 leading-relaxed",children:e.description}),c.jsxs("span",{className:"inline-flex items-center gap-1 text-[#00d4ff] text-xs font-black uppercase tracking-wider mt-3",children:[e.cta," ",c.jsx(fi,{className:"w-3 h-3"})]})]})]})},t)})})]}),c.jsxs(Ue.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"bg-[#0d1830] border border-[#00d4ff]/20 rounded-xl p-8 text-center",children:[c.jsx("h3",{className:"text-white font-black text-xl uppercase tracking-tight mb-2",children:"Ready to submit your bid?"}),c.jsx("p",{className:"text-gray-400 text-sm mb-6",children:"Send your completed tournament bid application to our board."}),c.jsxs("a",{href:"mailto:[email protected]?subject=TOURNAMENT BID",className:"inline-flex items-center gap-2 px-6 py-3 bg-[#00d4ff] text-[#060d1f] rounded-lg font-black text-sm uppercase tracking-wider hover:bg-[#00bfe8] transition-all",children:[c.jsx(rr,{className:"w-4 h-4"})," Submit Bid"]})]})]})]})}function V$(e,t){const n=k.useRef(t);k.useEffect(function(){t!==n.current&&e.attributionControl!=null&&(n.current!=null&&e.attributionControl.removeAttribution(n.current),t!=null&&e.attributionControl.addAttribution(t)),n.current=t},[e,t])}const QX=1;function JX(e){return Object.freeze({__version:QX,map:e})}function eQ(e,t){return Object.freeze({...e,...t})}const W$=k.createContext(null),U$=W$.Provider;function H$(){const e=k.useContext(W$);if(e==null)throw new Error("No context provided: useLeafletContext() can only be used in a descendant of <MapContainer>");return e}function tQ(e){function t(n,r){const{instance:i,context:a}=e(n).current;return k.useImperativeHandle(r,()=>i),n.children==null?null:K.createElement(U$,{value:a},n.children)}return k.forwardRef(t)}function nQ(e){function t(n,r){const[i,a]=k.useState(!1),{instance:o}=e(n,a).current;k.useImperativeHandle(r,()=>o),k.useEffect(function(){i&&o.update()},[o,i,n.children]);const u=o._contentNode;return u?Yd.createPortal(n.children,u):null}return k.forwardRef(t)}function rQ(e){function t(n,r){const{instance:i}=e(n).current;return k.useImperativeHandle(r,()=>i),null}return k.forwardRef(t)}function G$(e,t){const n=k.useRef();k.useEffect(function(){return t!=null&&e.instance.on(t),n.current=t,function(){n.current!=null&&e.instance.off(n.current),n.current=null}},[e,t])}function eA(e,t){const n=e.pane??t.pane;return n?{...e,pane:n}
361:e}function iQ(e,t){return function(r,i){const a=H$(),o=e(eA(r,a),a);return V$(a.map,r.attribution),G$(o.current,r.eventHandlers),t(o.current,a,r,i),o}}var xh={exports:{}};/* @preserve
362 * Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
363 * (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
364 */var aQ=xh.exports,m2;function oQ(){return m2||(m2=1,(function(e,t){(function(n,r){r(t)})(aQ,(function(n){var r="1.9.4";function i(l){var m,x,N,D;for(x=1,N=arguments.length;x<N;x++){D=arguments[x];for(m in D)l[m]=D[m]}return l}var a=Object.create||(function(){function l(){}return function(m){return l.prototype=m,new l}})();function o(l,m){var x=Array.prototype.slice;if(l.bind)return l.bind.apply(l,x.call(arguments,1));var N=x.call(arguments,2);return function(){return l.apply(m,N.length?N.concat(x.call(arguments)):arguments)}}var u=0;function f(l){return"_leaflet_id"in l||(l._leaflet_id=++u),l._leaflet_id}function h(l,m,x){var N,D,F,X;return X=function(){N=!1,D&&(F.apply(x,D),D=!1)},F=function(){N?D=arguments:(l.apply(x,arguments),setTimeout(X,m),N=!0)},F}function g(l,m,x){var N=m[1],D=m[0],F=N-D;return l===N&&x?l:((l-D)%F+F)%F+D}function p(){return!1}function y(l,m){if(m===!1)return l;var x=Math.pow(10,m===void 0?6:m);return Math.round(l*x)/x}function w(l){return l.trim?l.trim():l.replace(/^\s+|\s+$/g,"")}function j(l){return w(l).split(/\s+/)}function S(l,m){Object.prototype.hasOwnProperty.call(l,"options")||(l.options=l.options?a(l.options):{});for(var x in m)l.options[x]=m[x];return l.options}function _(l,m,x){var N=[];for(var D in l)N.push(encodeURIComponent(x?D.toUpperCase():D)+"="+encodeURIComponent(l[D]));return(!m||m.indexOf("?")===-1?"?":"&")+N.join("&")}var P=/\{ *([\w_ -]+) *\}/g;function O(l,m){return l.replace(P,function(x,N){var D=m[N];if(D===void 0)throw new Error("No value provided for variable "+x);return typeof D=="function"&&(D=D(m)),D})}var C=Array.isArray||function(l){return Object.prototype.toString.call(l)==="[object Array]"};function E(l,m){for(var x=0;x<l.length;x++)if(l[x]===m)return x;return-1}var T="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function M(l){return window["webkit"+l]||window["moz"+l]||window["ms"+l]}var I=0;function $(l){var m=+new Date,x=Math.max(0,16-(m-I));return I=m+x,window.setTimeout(l,x)}var z=window.requestAnimationFrame||M("RequestAnimationFrame")||$,Y=window.cancelAnimationFrame||M("CancelAnimationFrame")||M("CancelRequestAnimationFrame")||function(l){window.clearTimeout(l)};function V(l,m,x){if(x&&z===$)l.call(m);else return z.call(window,o(l,m))}function q(l){l&&Y.call(window,l)}var G={__proto__:null,extend:i,create:a,bind:o,get lastId(){return u},stamp:f,throttle:h,wrapNum:g,falseFn:p,formatNum:y,trim:w,splitWords:j,setOptions:S,getParamString:_,template:O,isArray:C,indexOf:E,emptyImageUrl:T,requestFn:z,cancelFn:Y,requestAnimFrame:V,cancelAnimFrame:q};function Q(){}Q.extend=function(l){var m=function(){S(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},x=m.__super__=this.prototype,N=a(x);N.constructor=m,m.prototype=N;for(var D in this)Object.prototype.hasOwnProperty.call(this,D)&&D!=="prototype"&&D!=="__super__"&&(m[D]=this[D]);return l.statics&&i(m,l.statics),l.includes&&(ne(l.includes),i.apply(null,[N].concat(l.includes))),i(N,l),delete N.statics,delete N.includes,N.options&&(N.options=x.options?a(x.options):{},i(N.options,l.options)),N._initHooks=[],N.callInitHooks=function(){if(!this._initHooksCalled){x.callInitHooks&&x.callInitHooks.call(this),this._initHooksCalled=!0;for(var F=0,X=N._initHooks.length;F<X;F++)N._initHooks[F].call(this)}},m},Q.include=function(l){var m=this.prototype.options;return i(this.prototype,l),l.options&&(this.prototype.options=m,this.mergeOptions(l.options)),this},Q.mergeOptions=function(l){return i(this.prototype.options,l),this},Q.addInitHook=function(l){var m=Array.prototype.slice.call(arguments,1),x=typeof l=="function"?l:function(){this[l].apply(this,m)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(x),this};function ne(l){if(!(typeof L>"u"||!L||!L.Mixin)){l=C(l)?l:[l];for(var m=0;m<l.length;
364m++)l[m]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",new Error().stack)}}var ie={on:function(l,m,x){if(typeof l=="object")for(var N in l)this._on(N,l[N],m);else{l=j(l);for(var D=0,F=l.length;D<F;D++)this._on(l[D],m,x)}return this},off:function(l,m,x){if(!arguments.length)delete this._events;else if(typeof l=="object")for(var N in l)this._off(N,l[N],m);else{l=j(l);for(var D=arguments.length===1,F=0,X=l.length;F<X;F++)D?this._off(l[F]):this._off(l[F],m,x)}return this},_on:function(l,m,x,N){if(typeof m!="function"){console.warn("wrong listener type: "+typeof m);return}if(this._listens(l,m,x)===!1){x===this&&(x=void 0);var D={fn:m,ctx:x};N&&(D.once=!0),this._events=this._events||{},this._events[l]=this._events[l]||[],this._events[l].push(D)}},_off:function(l,m,x){var N,D,F;if(this._events&&(N=this._events[l],!!N)){if(arguments.length===1){if(this._firingCount)for(D=0,F=N.length;D<F;D++)N[D].fn=p;delete this._events[l];return}if(typeof m!="function"){console.warn("wrong listener type: "+typeof m);return}var X=this._listens(l,m,x);if(X!==!1){var se=N[X];this._firingCount&&(se.fn=p,this._events[l]=N=N.slice()),N.splice(X,1)}}},fire:function(l,m,x){if(!this.listens(l,x))return this;var N=i({},m,{type:l,target:this,sourceTarget:m&&m.sourceTarget||this});if(this._events){var D=this._events[l];if(D){this._firingCount=this._firingCount+1||1;for(var F=0,X=D.length;F<X;F++){var se=D[F],ue=se.fn;se.once&&this.off(l,ue,se.ctx),ue.call(se.ctx||this,N)}this._firingCount--}}return x&&this._propagateEvent(N),this},listens:function(l,m,x,N){typeof l!="string"&&console.warn('"string" type argument expected');var D=m;typeof m!="function"&&(N=!!m,D=void 0,x=void 0);var F=this._events&&this._events[l];if(F&&F.length&&this._listens(l,D,x)!==!1)return!0;if(N){for(var X in this._eventParents)if(this._eventParents[X].listens(l,m,x,N))return!0}return!1},_listens:function(l,m,x){if(!this._events)return!1;var N=this._events[l]||[];if(!m)return!!N.length;x===this&&(x=void 0);for(var D=0,F=N.length;D<F;D++)if(N[D].fn===m&&N[D].ctx===x)return D;return!1},once:function(l,m,x){if(typeof l=="object")for(var N in l)this._on(N,l[N],m,!0);else{l=j(l);for(var D=0,F=l.length;D<F;D++)this._on(l[D],m,x,!0)}return this},addEventParent:function(l){return this._eventParents=this._eventParents||{},this._eventParents[f(l)]=l,this},removeEventParent:function(l){return this._eventParents&&delete this._eventParents[f(l)],this},_propagateEvent:function(l){for(var m in this._eventParents)this._eventParents[m].fire(l.type,i({layer:l.target,propagatedFrom:l.target},l),!0)}};ie.addEventListener=ie.on,ie.removeEventListener=ie.clearAllEventListeners=ie.off,ie.addOneTimeEventListener=ie.once,ie.fireEvent=ie.fire,ie.hasEventListeners=ie.listens;var re=Q.extend(ie);function W(l,m,x){this.x=x?Math.round(l):l,this.y=x?Math.round(m):m}var oe=Math.trunc||function(l){return l>0?Math.floor(l):Math.ceil(l)};W.prototype={clone:function(){return new W(this.x,this.y)},add:function(l){return this.clone()._add(U(l))},_add:function(l){return this.x+=l.x,this.y+=l.y,this},subtract:function(l){return this.clone()._subtract(U(l))},_subtract:function(l){return this.x-=l.x,this.y-=l.y,this},divideBy:function(l){return this.clone()._divideBy(l)},_divideBy:function(l){return this.x/=l,this.y/=l,this},multiplyBy:function(l){return this.clone()._multiplyBy(l)},_multiplyBy:function(l){return this.x*=l,this.y*=l,this},scaleBy:function(l){return new W(this.x*l.x,this.y*l.y)},unscaleBy:function(l){return new W(this.x/l.x,this.y/l.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=oe(this.x),this.y=oe(this.y),this},distanceTo:function(l){l=U(l);var m=l.x-this.x,x=l.y-this.y;return Math.sqrt(m*m+x*x)},equals:function(l){return l=U(l),l.x===this.x&&l.y===this.y},contains:function(l){return l=U(l),Math.abs(l.x)<=Math.abs(this.x)&&Math.abs(l.
364y)<=Math.abs(this.y)},toString:function(){return"Point("+y(this.x)+", "+y(this.y)+")"}};function U(l,m,x){return l instanceof W?l:C(l)?new W(l[0],l[1]):l==null?l:typeof l=="object"&&"x"in l&&"y"in l?new W(l.x,l.y):new W(l,m,x)}function H(l,m){if(l)for(var x=m?[l,m]:l,N=0,D=x.length;N<D;N++)this.extend(x[N])}H.prototype={extend:function(l){var m,x;if(!l)return this;if(l instanceof W||typeof l[0]=="number"||"x"in l)m=x=U(l);else if(l=ee(l),m=l.min,x=l.max,!m||!x)return this;return!this.min&&!this.max?(this.min=m.clone(),this.max=x.clone()):(this.min.x=Math.min(m.x,this.min.x),this.max.x=Math.max(x.x,this.max.x),this.min.y=Math.min(m.y,this.min.y),this.max.y=Math.max(x.y,this.max.y)),this},getCenter:function(l){return U((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,l)},getBottomLeft:function(){return U(this.min.x,this.max.y)},getTopRight:function(){return U(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(l){var m,x;return typeof l[0]=="number"||l instanceof W?l=U(l):l=ee(l),l instanceof H?(m=l.min,x=l.max):m=x=l,m.x>=this.min.x&&x.x<=this.max.x&&m.y>=this.min.y&&x.y<=this.max.y},intersects:function(l){l=ee(l);var m=this.min,x=this.max,N=l.min,D=l.max,F=D.x>=m.x&&N.x<=x.x,X=D.y>=m.y&&N.y<=x.y;return F&&X},overlaps:function(l){l=ee(l);var m=this.min,x=this.max,N=l.min,D=l.max,F=D.x>m.x&&N.x<x.x,X=D.y>m.y&&N.y<x.y;return F&&X},isValid:function(){return!!(this.min&&this.max)},pad:function(l){var m=this.min,x=this.max,N=Math.abs(m.x-x.x)*l,D=Math.abs(m.y-x.y)*l;return ee(U(m.x-N,m.y-D),U(x.x+N,x.y+D))},equals:function(l){return l?(l=ee(l),this.min.equals(l.getTopLeft())&&this.max.equals(l.getBottomRight())):!1}};function ee(l,m){return!l||l instanceof H?l:new H(l,m)}function pe(l,m){if(l)for(var x=m?[l,m]:l,N=0,D=x.length;N<D;N++)this.extend(x[N])}pe.prototype={extend:function(l){var m=this._southWest,x=this._northEast,N,D;if(l instanceof ge)N=l,D=l;else if(l instanceof pe){if(N=l._southWest,D=l._northEast,!N||!D)return this}else return l?this.extend(ye(l)||we(l)):this;return!m&&!x?(this._southWest=new ge(N.lat,N.lng),this._northEast=new ge(D.lat,D.lng)):(m.lat=Math.min(N.lat,m.lat),m.lng=Math.min(N.lng,m.lng),x.lat=Math.max(D.lat,x.lat),x.lng=Math.max(D.lng,x.lng)),this},pad:function(l){var m=this._southWest,x=this._northEast,N=Math.abs(m.lat-x.lat)*l,D=Math.abs(m.lng-x.lng)*l;return new pe(new ge(m.lat-N,m.lng-D),new ge(x.lat+N,x.lng+D))},getCenter:function(){return new ge((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new ge(this.getNorth(),this.getWest())},getSouthEast:function(){return new ge(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(l){typeof l[0]=="number"||l instanceof ge||"lat"in l?l=ye(l):l=we(l);var m=this._southWest,x=this._northEast,N,D;
364return l instanceof pe?(N=l.getSouthWest(),D=l.getNorthEast()):N=D=l,N.lat>=m.lat&&D.lat<=x.lat&&N.lng>=m.lng&&D.lng<=x.lng},intersects:function(l){l=we(l);var m=this._southWest,x=this._northEast,N=l.getSouthWest(),D=l.getNorthEast(),F=D.lat>=m.lat&&N.lat<=x.lat,X=D.lng>=m.lng&&N.lng<=x.lng;return F&&X},overlaps:function(l){l=we(l);var m=this._southWest,x=this._northEast,N=l.getSouthWest(),D=l.getNorthEast(),F=D.lat>m.lat&&N.lat<x.lat,X=D.lng>m.lng&&N.lng<x.lng;return F&&X},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(l,m){return l?(l=we(l),this._southWest.equals(l.getSouthWest(),m)&&this._northEast.equals(l.getNorthEast(),m)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function we(l,m){return l instanceof pe?l:new pe(l,m)}function ge(l,m,x){if(isNaN(l)||isNaN(m))throw new Error("Invalid LatLng object: ("+l+", "+m+")");this.lat=+l,this.lng=+m,x!==void 0&&(this.alt=+x)}ge.prototype={equals:function(l,m){if(!l)return!1;l=ye(l);var x=Math.max(Math.abs(this.lat-l.lat),Math.abs(this.lng-l.lng));return x<=(m===void 0?1e-9:m)},toString:function(l){return"LatLng("+y(this.lat,l)+", "+y(this.lng,l)+")"},distanceTo:function(l){return xe.distance(this,ye(l))},wrap:function(){return xe.wrapLatLng(this)},toBounds:function(l){var m=180*l/40075017,x=m/Math.cos(Math.PI/180*this.lat);return we([this.lat-m,this.lng-x],[this.lat+m,this.lng+x])},clone:function(){return new ge(this.lat,this.lng,this.alt)}};function ye(l,m,x){return l instanceof ge?l:C(l)&&typeof l[0]!="object"?l.length===3?new ge(l[0],l[1],l[2]):l.length===2?new ge(l[0],l[1]):null:l==null?l:typeof l=="object"&&"lat"in l?new ge(l.lat,"lng"in l?l.lng:l.lon,l.alt):m===void 0?null:new ge(l,m,x)}var $e={latLngToPoint:function(l,m){var x=this.projection.project(l),N=this.scale(m);return this.transformation._transform(x,N)},pointToLatLng:function(l,m){var x=this.scale(m),N=this.transformation.untransform(l,x);return this.projection.unproject(N)},project:function(l){return this.projection.project(l)},unproject:function(l){return this.projection.unproject(l)},scale:function(l){return 256*Math.pow(2,l)},zoom:function(l){return Math.log(l/256)/Math.LN2},getProjectedBounds:function(l){if(this.infinite)return null;var m=this.projection.bounds,x=this.scale(l),N=this.transformation.transform(m.min,x),D=this.transformation.transform(m.max,x);return new H(N,D)},infinite:!1,wrapLatLng:function(l){var m=this.wrapLng?g(l.lng,this.wrapLng,!0):l.lng,x=this.wrapLat?g(l.lat,this.wrapLat,!0):l.lat,N=l.alt;return new ge(x,m,N)},wrapLatLngBounds:function(l){var m=l.getCenter(),x=this.wrapLatLng(m),N=m.lat-x.lat,D=m.lng-x.lng;if(N===0&&D===0)return l;
364var F=l.getSouthWest(),X=l.getNorthEast(),se=new ge(F.lat-N,F.lng-D),ue=new ge(X.lat-N,X.lng-D);return new pe(se,ue)}},xe=i({},$e,{wrapLng:[-180,180],R:6371e3,distance:function(l,m){var x=Math.PI/180,N=l.lat*x,D=m.lat*x,F=Math.sin((m.lat-l.lat)*x/2),X=Math.sin((m.lng-l.lng)*x/2),se=F*F+Math.cos(N)*Math.cos(D)*X*X,ue=2*Math.atan2(Math.sqrt(se),Math.sqrt(1-se));return this.R*ue}}),de=6378137,Ae={R:de,MAX_LATITUDE:85.0511287798,project:function(l){var m=Math.PI/180,x=this.MAX_LATITUDE,N=Math.max(Math.min(x,l.lat),-x),D=Math.sin(N*m);return new W(this.R*l.lng*m,this.R*Math.log((1+D)/(1-D))/2)},unproject:function(l){var m=180/Math.PI;return new ge((2*Math.atan(Math.exp(l.y/this.R))-Math.PI/2)*m,l.x*m/this.R)},bounds:(function(){var l=de*Math.PI;return new H([-l,-l],[l,l])})()};function Ne(l,m,x,N){if(C(l)){this._a=l[0],this._b=l[1],this._c=l[2],this._d=l[3];return}this._a=l,this._b=m,this._c=x,this._d=N}Ne.prototype={transform:function(l,m){return this._transform(l.clone(),m)},_transform:function(l,m){return m=m||1,l.x=m*(this._a*l.x+this._b),l.y=m*(this._c*l.y+this._d),l},untransform:function(l,m){return m=m||1,new W((l.x/m-this._b)/this._a,(l.y/m-this._d)/this._c)}};function he(l,m,x,N){return new Ne(l,m,x,N)}var Ee=i({},xe,{code:"EPSG:3857",projection:Ae,transformation:(function(){var l=.5/(Math.PI*Ae.R);return he(l,.5,-l,.5)})()}),Se=i({},Ee,{code:"EPSG:900913"});function at(l){return document.createElementNS("http://www.w3.org/2000/svg",l)}function dt(l,m){var x="",N,D,F,X,se,ue;for(N=0,F=l.length;N<F;N++){for(se=l[N],D=0,X=se.length;D<X;D++)ue=se[D],x+=(D?"L":"M")+ue.x+" "+ue.y;x+=m?Fe.svg?"z":"x":""}return x||"M0 0"}var bt=document.documentElement.style,Gt="ActiveXObject"in window,ir=Gt&&!document.addEventListener,sn="msLaunchUri"in navigator&&!("documentMode"in document),Xt=or("webkit"),pn=or("android"),br=or("android 2")||or("android 3"),Za=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),ga=pn&&or("Google")&&Za<537&&!("AudioNode"in window),Qo=!!window.opera,Jo=!sn&&or("chrome"),vi=or("gecko")&&!Xt&&!Qo&&!Gt,zc=!Jo&&or("safari"),Vi=or("phantom"),va="OTransition"in bt,Ya=navigator.platform.indexOf("Win")===0,es=Gt&&"transition"in bt,ts="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!br,qc="MozPerspective"in bt,yl=!window.L_DISABLE_3D&&(es||ts||qc)&&!va&&!Vi,Wi=typeof orientation<"u"||or("mobile"),xl=Wi&&Xt,qe=Wi&&ts,ft=!window.PointerEvent&&window.MSPointerEvent,ht=!!(window.PointerEvent||ft),rt="ontouchstart"in window||!!window.TouchEvent,Dt=!window.L_NO_TOUCH&&(rt||ht),An=Wi&&Qo,yn=Wi&&vi,Hr=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,ar=(function(){var l=!1;try{var m=Object.defineProperty({},"passive",{get:function(){l=!0}});window.addEventListener("testPassiveEventSupport",p,m),window.removeEventListener("testPassiveEventSupport",p,m)}catch{}return l})(),Gr=(function(){return!!document.createElement("canvas").getContext})(),wr=!!(document.createElementNS&&at("svg").createSVGRect),zn=!!wr&&(function(){var l=document.createElement("div");return l.innerHTML="<svg/>",(l.firstChild&&l.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"})(),ya=!wr&&(function(){try{var l=document.createElement("div");l.innerHTML='<v:shape adj="1"/>';var m=l.firstChild;return m.style.behavior="url(#default#VML)",m&&typeof m.adj=="object"}catch{return!1}})(),xa=navigator.platform.indexOf("Mac")===0,Nx=navigator.platform.indexOf("Linux")===0;function or(l){return navigator.userAgent.toLowerCase().indexOf(l)>=0}var Fe={ie:Gt,ielt9:ir,edge:sn,webkit:Xt,android:pn,android23:br,androidStock:ga,opera:Qo,chrome:Jo,gecko:vi,safari:zc,phantom:Vi,opera12:va,win:Ya,ie3d:es,webkit3d:ts,gecko3d:qc,any3d:yl,mobile:Wi,mobileWebkit:xl,mobileWebkit3d:qe,msPointer:ft,pointer:ht,touch:Dt,touchNative:rt,mobileOpera:An,mobileGecko:yn,retina:Hr,passiveEvents:ar,canvas:Gr,svg:wr,vml:ya,inlineSvg:zn,mac:xa,linux:Nx},bl=Fe.msPointer?"MSPointerDown":"pointerdown",Vc=Fe.msPointer?"MSPointerMove":"pointermove",sm=Fe.msPointer?"MSPointerUp":"pointerup",lm=Fe.msPointer?"MSPointerCancel":"pointercancel",uf={touchstart:bl,touchmove:Vc,touchend:sm,touchcancel:lm},ba={touchstart:Qt,touchmove:Wc,touchend:Wc,touchcancel:Wc},Xa={},df=!1;function Ax(l,m,x){return m==="touchstart"&&Tx(),ba[m]?(x=ba[m].bind(this,x),l.addEventListener(uf[m],x,!1),x):(console.warn("wrong event specified:",m),p)}function cm(l,m,x){if(!uf[m]){console.warn("wrong event specified:",m);return}l.removeEventListener(uf[m],x,!1)}function um(l){Xa[l.pointerId]=l}function dm(l){Xa[l.pointerId]&&(Xa[l.pointerId]=l)}function ff(l){delete Xa[l.pointerId]}function Tx(){df||(document.addEventListener(bl,um,!0),document.addEventListener(Vc,dm,!0),document.addEventListener(sm,ff,!0),document.addEventListener(lm,ff,!0),df=!0)}function Wc(l,m){if(m.pointerType!==(m.MSPOINTER_TYPE_MOUSE||"mouse")){m.touches=[];
364for(var x in Xa)m.touches.push(Xa[x]);m.changedTouches=[m],l(m)}}function Qt(l,m){m.MSPOINTER_TYPE_TOUCH&&m.pointerType===m.MSPOINTER_TYPE_TOUCH&&Jt(m),Wc(l,m)}function kx(l){var m={},x,N;for(N in l)x=l[N],m[N]=x&&x.bind?x.bind(l):x;return l=m,m.type="dblclick",m.detail=2,m.isTrusted=!1,m._simulated=!0,m}var hf=200;function fm(l,m){l.addEventListener("dblclick",m);var x=0,N;function D(F){if(F.detail!==1){N=F.detail;return}if(!(F.pointerType==="mouse"||F.sourceCapabilities&&!F.sourceCapabilities.firesTouchEvents)){var X=eo(F);if(!(X.some(function(ue){return ue instanceof HTMLLabelElement&&ue.attributes.for})&&!X.some(function(ue){return ue instanceof HTMLInputElement||ue instanceof HTMLSelectElement}))){var se=Date.now();se-x<=hf?(N++,N===2&&m(kx(F))):N=1,x=se}}}return l.addEventListener("click",D),{dblclick:m,simDblclick:D}}function Uc(l,m){l.removeEventListener("dblclick",m.dblclick),l.removeEventListener("click",m.simDblclick)}var pf=as(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),ns=as(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),wl=ns==="webkitTransition"||ns==="OTransition"?ns+"End":"transitionend";function Kr(l){return typeof l=="string"?document.getElementById(l):l}function _l(l,m){var x=l.style[m]||l.currentStyle&&l.currentStyle[m];if((!x||x==="auto")&&document.defaultView){var N=document.defaultView.getComputedStyle(l,null);x=N?N[m]:null}return x==="auto"?null:x}function nt(l,m,x){var N=document.createElement(l);return N.className=m||"",x&&x.appendChild(N),N}function zt(l){var m=l.parentNode;m&&m.removeChild(l)}function Hc(l){for(;l.firstChild;)l.removeChild(l.firstChild)}function rs(l){var m=l.parentNode;m&&m.lastChild!==l&&m.appendChild(l)}function Ui(l){var m=l.parentNode;m&&m.firstChild!==l&&m.insertBefore(l,m.firstChild)}function is(l,m){if(l.classList!==void 0)return l.classList.contains(m);var x=Gc(l);return x.length>0&&new RegExp("(^|\\s)"+m+"(\\s|$)").test(x)}function tt(l,m){if(l.classList!==void 0)for(var x=j(m),N=0,D=x.length;N<D;N++)l.classList.add(x[N]);else if(!is(l,m)){var F=Gc(l);mf(l,(F?F+" ":"")+m)}}function It(l,m){l.classList!==void 0?l.classList.remove(m):mf(l,w((" "+Gc(l)+" ").replace(" "+m+" "," ")))}function mf(l,m){l.className.baseVal===void 0?l.className=m:l.className.baseVal=m}function Gc(l){return l.correspondingElement&&(l=l.correspondingElement),l.className.baseVal===void 0?l.className:l.className.baseVal}function sr(l,m){"opacity"in l.style?l.style.opacity=m:"filter"in l.style&&hm(l,m)}function hm(l,m){var x=!1,N="DXImageTransform.Microsoft.Alpha";try{x=l.filters.item(N)}catch{if(m===1)return}m=Math.round(m*100),x?(x.Enabled=m!==100,x.Opacity=m):l.style.filter+=" progid:"+N+"(opacity="+m+")"}function as(l){for(var m=document.documentElement.style,x=0;x<l.length;x++)if(l[x]in m)return l[x];return!1}function Zr(l,m,x){var N=m||new W(0,0);l.style[pf]=(Fe.ie3d?"translate("+N.x+"px,"+N.y+"px)":"translate3d("+N.x+"px,"+N.y+"px,0)")+(x?" scale("+x+")":"")}function ln(l,m){l._leaflet_pos=m,Fe.any3d?Zr(l,m):(l.style.left=m.x+"px",l.style.top=m.y+"px")}function Hi(l){return l._leaflet_pos||new W(0,0)}var mt,os,Kc;if("onselectstart"in document)mt=function(){Qe(window,"selectstart",Jt)},os=function(){Ct(window,"selectstart",Jt)};else{var Qa=as(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);mt=function(){if(Qa){var l=document.documentElement.style;Kc=l[Qa],l[Qa]="none"}},os=function(){Qa&&(document.documentElement.style[Qa]=Kc,Kc=void 0)}}function Zc(){Qe(window,"dragstart",Jt)}function Yc(){Ct(window,"dragstart",Jt)}var Sl,jl;function ss(l){for(;l.tabIndex===-1;)l=l.parentNode;l.style&&(Yr(),Sl=l,jl=l.style.outlineStyle,l.style.outlineStyle="none",Qe(window,"keydown",Yr))}function Yr(){Sl&&(Sl.style.outlineStyle=jl,Sl=void 0,jl=void 0,Ct(window,"keydown",Yr))}function Gi(l){do l=l.parentNode;while((!l.offsetWidth||!l.offsetHeight)&&l!==document.body);return l}function yi(l){var m=l.getBoundingClientRect();return{x:m.width/l.offsetWidth||1,y:m.height/l.offsetHeight||1,boundingClientRect:m}}var Pl={__proto__:null,TRANSFORM:pf,TRANSITION:ns,TRANSITION_END:wl,get:Kr,getStyle:_l,create:nt,remove:zt,empty:Hc,toFront:rs,toBack:Ui,hasClass:is,addClass:tt,removeClass:It,setClass:mf,getClass:Gc,setOpacity:sr,testProp:as,setTransform:Zr,setPosition:ln,getPosition:Hi,get disableTextSelection(){return mt},get enableTextSelection(){return os},disableImageDrag:Zc,enableImageDrag:Yc,preventOutline:ss,restoreOutline:Yr,getSizedParentNode:Gi,getScale:yi};function Qe(l,m,x,N){if(m&&typeof m=="object")for(var D in m)vf(l,D,m[D],x);else{m=j(m);for(var F=0,X=m.length;F<X;F++)vf(l,m[F],x,N)}return this}var Tn="_leaflet_events";function Ct(l,m,x,N){if(arguments.length===1)gf(l),delete l[Tn];else if(m&&typeof m=="object")for(var D in m)Xc(l,D,m[D],x);else if(m=j(m),arguments.length===2)gf(l,function(se){return E(m,se)!==-1});else for(var F=0,X=m.length;F<X;F++)Xc(l,m[F],x,N);return this}function gf(l,m){for(var x in l[Tn]){var N=x.split(/\d/)[0];(!m||m(N))&&Xc(l,N,null,null,x)}}
364var Ja={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function vf(l,m,x,N){var D=m+f(x)+(N?"_"+f(N):"");if(l[Tn]&&l[Tn][D])return this;var F=function(se){return x.call(N||l,se||window.event)},X=F;!Fe.touchNative&&Fe.pointer&&m.indexOf("touch")===0?F=Ax(l,m,F):Fe.touch&&m==="dblclick"?F=fm(l,F):"addEventListener"in l?m==="touchstart"||m==="touchmove"||m==="wheel"||m==="mousewheel"?l.addEventListener(Ja[m]||m,F,Fe.passiveEvents?{passive:!1}:!1):m==="mouseenter"||m==="mouseleave"?(F=function(se){se=se||window.event,Tl(l,se)&&X(se)},l.addEventListener(Ja[m],F,!1)):l.addEventListener(m,X,!1):l.attachEvent("on"+m,F),l[Tn]=l[Tn]||{},l[Tn][D]=F}function Xc(l,m,x,N,D){D=D||m+f(x)+(N?"_"+f(N):"");var F=l[Tn]&&l[Tn][D];if(!F)return this;!Fe.touchNative&&Fe.pointer&&m.indexOf("touch")===0?cm(l,m,F):Fe.touch&&m==="dblclick"?Uc(l,F):"removeEventListener"in l?l.removeEventListener(Ja[m]||m,F,!1):l.detachEvent("on"+m,F),l[Tn][D]=null}function xi(l){return l.stopPropagation?l.stopPropagation():l.originalEvent?l.originalEvent._stopped=!0:l.cancelBubble=!0,this}function Qc(l){return vf(l,"wheel",xi),this}function Nl(l){return Qe(l,"mousedown touchstart dblclick contextmenu",xi),l._leaflet_disable_click=!0,this}function Jt(l){return l.preventDefault?l.preventDefault():l.returnValue=!1,this}function Xr(l){return Jt(l),xi(l),this}function eo(l){if(l.composedPath)return l.composedPath();for(var m=[],x=l.target;x;)m.push(x),x=x.parentNode;return m}function Al(l,m){if(!m)return new W(l.clientX,l.clientY);var x=yi(m),N=x.boundingClientRect;return new W((l.clientX-N.left)/x.x-m.clientLeft,(l.clientY-N.top)/x.y-m.clientTop)}var Cx=Fe.linux&&Fe.chrome?window.devicePixelRatio:Fe.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function pm(l){return Fe.edge?l.wheelDeltaY/2:l.deltaY&&l.deltaMode===0?-l.deltaY/Cx:l.deltaY&&l.deltaMode===1?-l.deltaY*20:l.deltaY&&l.deltaMode===2?-l.deltaY*60:l.deltaX||l.deltaZ?0:l.wheelDelta?(l.wheelDeltaY||l.wheelDelta)/2:l.detail&&Math.abs(l.detail)<32765?-l.detail*20:l.detail?l.detail/-32765*60:0}function Tl(l,m){var x=m.relatedTarget;if(!x)return!0;try{for(;x&&x!==l;)x=x.parentNode}catch{return!1}return x!==l}var Jc={__proto__:null,on:Qe,off:Ct,stopPropagation:xi,disableScrollPropagation:Qc,disableClickPropagation:Nl,preventDefault:Jt,stop:Xr,getPropagationPath:eo,getMousePosition:Al,getWheelDelta:pm,isExternalTarget:Tl,addListener:Qe,removeListener:Ct},eu=re.extend({run:function(l,m,x,N){this.stop(),this._el=l,this._inProgress=!0,this._duration=x||.25,this._easeOutPower=1/Math.max(N||.5,.2),this._startPos=Hi(l),this._offset=m.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=V(this._animate,this),this._step()},_step:function(l){var m=+new Date-this._startTime,x=this._duration*1e3;m<x?this._runFrame(this._easeOut(m/x),l):(this._runFrame(1),this._complete())},_runFrame:function(l,m){var x=this._startPos.add(this._offset.multiplyBy(l));m&&x._round(),ln(this._el,x),this.fire("step")},_complete:function(){q(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(l){return 1-Math.pow(1-l,this._easeOutPower)}}),ct=re.extend({options:{crs:Ee,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(l,m){m=S(this,m),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(l),this._initLayout(),this._onResize=o(this._onResize,this),this._initEvents(),m.maxBounds&&this.setMaxBounds(m.maxBounds),m.zoom!==void 0&&(this._zoom=this._limitZoom(m.zoom)),m.center&&m.zoom!==void 0&&this.setView(ye(m.center),m.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=ns&&Fe.any3d&&!Fe.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),Qe(this._proxy,wl,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)}
364,setView:function(l,m,x){if(m=m===void 0?this._zoom:this._limitZoom(m),l=this._limitCenter(ye(l),m,this.options.maxBounds),x=x||{},this._stop(),this._loaded&&!x.reset&&x!==!0){x.animate!==void 0&&(x.zoom=i({animate:x.animate},x.zoom),x.pan=i({animate:x.animate,duration:x.duration},x.pan));var N=this._zoom!==m?this._tryAnimatedZoom&&this._tryAnimatedZoom(l,m,x.zoom):this._tryAnimatedPan(l,x.pan);if(N)return clearTimeout(this._sizeTimer),this}return this._resetView(l,m,x.pan&&x.pan.noMoveStart),this},setZoom:function(l,m){return this._loaded?this.setView(this.getCenter(),l,{zoom:m}):(this._zoom=l,this)},zoomIn:function(l,m){return l=l||(Fe.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+l,m)},zoomOut:function(l,m){return l=l||(Fe.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-l,m)},setZoomAround:function(l,m,x){var N=this.getZoomScale(m),D=this.getSize().divideBy(2),F=l instanceof W?l:this.latLngToContainerPoint(l),X=F.subtract(D).multiplyBy(1-1/N),se=this.containerPointToLatLng(D.add(X));return this.setView(se,m,{zoom:x})},_getBoundsCenterZoom:function(l,m){m=m||{},l=l.getBounds?l.getBounds():we(l);var x=U(m.paddingTopLeft||m.padding||[0,0]),N=U(m.paddingBottomRight||m.padding||[0,0]),D=this.getBoundsZoom(l,!1,x.add(N));if(D=typeof m.maxZoom=="number"?Math.min(m.maxZoom,D):D,D===1/0)return{center:l.getCenter(),zoom:D};
364var F=N.subtract(x).divideBy(2),X=this.project(l.getSouthWest(),D),se=this.project(l.getNorthEast(),D),ue=this.unproject(X.add(se).divideBy(2).add(F),D);return{center:ue,zoom:D}},fitBounds:function(l,m){if(l=we(l),!l.isValid())throw new Error("Bounds are not valid.");var x=this._getBoundsCenterZoom(l,m);return this.setView(x.center,x.zoom,m)},fitWorld:function(l){return this.fitBounds([[-90,-180],[90,180]],l)},panTo:function(l,m){return this.setView(l,this._zoom,{pan:m})},panBy:function(l,m){if(l=U(l).round(),m=m||{},!l.x&&!l.y)return this.fire("moveend");if(m.animate!==!0&&!this.getSize().contains(l))return this._resetView(this.unproject(this.project(this.getCenter()).add(l)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new eu,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),m.noMoveStart||this.fire("movestart"),m.animate!==!1){tt(this._mapPane,"leaflet-pan-anim");var x=this._getMapPanePos().subtract(l).round();this._panAnim.run(this._mapPane,x,m.duration||.25,m.easeLinearity)}else this._rawPanBy(l),this.fire("move").fire("moveend");return this},flyTo:function(l,m,x){if(x=x||{},x.animate===!1||!Fe.any3d)return this.setView(l,m,x);this._stop();var N=this.project(this.getCenter()),D=this.project(l),F=this.getSize(),X=this._zoom;l=ye(l),m=m===void 0?X:m;var se=Math.max(F.x,F.y),ue=se*this.getZoomScale(X,m),ve=D.distanceTo(N)||1,ke=1.42,Ve=ke*ke;function it(jt){var _s=jt?-1:1,Wx=jt?ue:se,Ux=ue*ue-se*se+_s*Ve*Ve*ve*ve,so=2*Wx*Ve*ve,lo=Ux/so,co=Math.sqrt(lo*lo+1)-lo,pu=co<1e-9?-18:Math.log(co);return pu}function kn(jt){return(Math.exp(jt)-Math.exp(-jt))/2}function xn(jt){return(Math.exp(jt)+Math.exp(-jt))/2}function jr(jt){return kn(jt)/xn(jt)}var cr=it(0);function bs(jt){return se*(xn(cr)/xn(cr+ke*jt))}function $f(jt){return se*(xn(cr)*jr(cr+ke*jt)-kn(cr))/Ve}function Ta(jt){return 1-Math.pow(1-jt,1.5)}var Dm=Date.now(),oo=(it(1)-cr)/ke,Si=x.duration?1e3*x.duration:1e3*oo*.8;function ws(){var jt=(Date.now()-Dm)/Si,_s=Ta(jt)*oo;jt<=1?(this._flyToFrame=V(ws,this),this._move(this.unproject(N.add(D.subtract(N).multiplyBy($f(_s)/ve)),X),this.getScaleZoom(se/bs(_s),X),{flyTo:!0})):this._move(l,m)._moveEnd(!0)}return this._moveStart(!0,x.noMoveStart),ws.call(this),this},flyToBounds:function(l,m){var x=this._getBoundsCenterZoom(l,m);return this.flyTo(x.center,x.zoom,m)},setMaxBounds:function(l){return l=we(l),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),l.isValid()?(this.options.maxBounds=l,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(l){var m=this.options.minZoom;return this.options.minZoom=l,this._loaded&&m!==l&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(l):this},setMaxZoom:function(l){var m=this.options.maxZoom;return this.options.maxZoom=l,this._loaded&&m!==l&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(l):this},panInsideBounds:function(l,m){this._enforcingBounds=!0;var x=this.getCenter(),N=this._limitCenter(x,this._zoom,we(l));return x.equals(N)||this.panTo(N,m),this._enforcingBounds=!1,this},panInside:function(l,m){m=m||{};var x=U(m.paddingTopLeft||m.padding||[0,0]),N=U(m.paddingBottomRight||m.padding||[0,0]),D=this.project(this.getCenter()),F=this.project(l),X=this.getPixelBounds(),se=ee([X.min.add(x),X.max.subtract(N)]),ue=se.getSize();if(!se.contains(F)){this._enforcingBounds=!0;var ve=F.subtract(se.getCenter()),ke=se.extend(F).getSize().subtract(ue);D.x+=ve.x<0?-ke.x:ke.x,D.y+=ve.y<0?-ke.y:ke.y,this.panTo(this.unproject(D),m),this._enforcingBounds=!1}return this},invalidateSize:function(l){if(!this._loaded)return this;l=i({animate:!1,pan:!0},l===!0?{animate:!0}:l);var m=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var x=this.getSize(),N=m.divideBy(2).round(),D=x.divideBy(2).round(),F=N.subtract(D);return!F.x&&!F.y?this:(l.animate&&l.pan?this.panBy(F):(l.pan&&this._rawPanBy(F),this.fire("move"),l.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(o(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:m,newSize:x}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(l){if(l=this._locateOptions=i({timeout:1e4,watch:!1},l),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var m=o(this._handleGeolocationResponse,this),x=o(this._handleGeolocationError,this);return l.watch?this._locationWatchId=navigator.geolocation.watchPosition(m,x,l):navigator.geolocation.getCurrentPosition(m,x,l),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(l){if(this._container._leaflet_id){var m=l.code,x=l.message||(m===1?"permission denied":m===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:m,message:"Geolocation error: "+x+"."})}},_handleGeolocationResponse:function(l){if(this._container._leaflet_id){var m=l.co
364ords.latitude,x=l.coords.longitude,N=new ge(m,x),D=N.toBounds(l.coords.accuracy*2),F=this._locateOptions;if(F.setView){var X=this.getBoundsZoom(D);this.setView(N,F.maxZoom?Math.min(X,F.maxZoom):X)}var se={latlng:N,bounds:D,timestamp:l.timestamp};for(var ue in l.coords)typeof l.coords[ue]=="number"&&(se[ue]=l.coords[ue]);this.fire("locationfound",se)}},addHandler:function(l,m){if(!m)return this;var x=this[l]=new m(this);return this._handlers.push(x),this.options[l]&&x.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch{this._container._leaflet_id=void 0,this._containerId=void 0}this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),zt(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(q(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var l;for(l in this._layers)this._layers[l].remove();for(l in this._panes)zt(this._panes[l]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(l,m){var x="leaflet-pane"+(l?" leaflet-"+l.replace("Pane","")+"-pane":""),N=nt("div",x,m||this._mapPane);return l&&(this._panes[l]=N),N},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var l=this.getPixelBounds(),m=this.unproject(l.getBottomLeft()),x=this.unproject(l.getTopRight());return new pe(m,x)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZoom===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(l,m,x){l=we(l),x=U(x||[0,0]);var N=this.getZoom()||0,D=this.getMinZoom(),F=this.getMaxZoom(),X=l.getNorthWest(),se=l.getSouthEast(),ue=this.getSize().subtract(x),ve=ee(this.project(se,N),this.project(X,N)).getSize(),ke=Fe.any3d?this.options.zoomSnap:1,Ve=ue.x/ve.x,it=ue.y/ve.y,kn=m?Math.max(Ve,it):Math.min(Ve,it);return N=this.getScaleZoom(kn,N),ke&&(N=Math.round(N/(ke/100))*(ke/100),N=m?Math.ceil(N/ke)*ke:Math.floor(N/ke)*ke),Math.max(D,Math.min(F,N))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new W(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(l,m){var x=this._getTopLeftPoint(l,m);return new H(x,x.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(l){return this.options.crs.getProjectedBounds(l===void 0?this.getZoom():l)},getPane:function(l){return typeof l=="string"?this._panes[l]:l},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(l,m){var x=this.options.crs;return m=m===void 0?this._zoom:m,x.scale(l)/x.scale(m)},getScaleZoom:function(l,m){var x=this.options.crs;m=m===void 0?this._zoom:m;var N=x.zoom(l*x.scale(m));return isNaN(N)?1/0:N},project:function(l,m){return m=m===void 0?this._zoom:m,this.options.crs.latLngToPoint(ye(l),m)},unproject:function(l,m){return m=m===void 0?this._zoom:m,this.options.crs.pointToLatLng(U(l),m)},layerPointToLatLng:function(l){var m=U(l).add(this.getPixelOrigin());return this.unproject(m)},latLngToLayerPoint:function(l){var m=this.project(ye(l))._round();return m._subtract(this.getPixelOrigin())},wrapLatLng:function(l){return this.options.crs.wrapLatLng(ye(l))},wrapLatLngBounds:function(l){return this.options.crs.wrapLatLngBounds(we(l))},distance:function(l,m){return this.options.crs.distance(ye(l),ye(m))},containerPointToLayerPoint:function(l){return U(l).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(l){return U(l).add(this._getMapPanePos())},containerPointToLatLng:function(l){var m=this.containerPointToLayerPoint(U(l));return this.layerPointToLatLng(m)},latLngToContainerPoint:function(l){return this.layerPointToContainerPoint(this.latLngToLayerPoint(ye(l)))},mouseEventToContainerPoint:function(l){return Al(l,this._container)},mouseEventToLayerPoint:function(l){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(l))},mouseEventToLatLng:function(l){return this.layerPointToLatLng(this.mouseEventToLayerPoint(l))},_initContainer:function(l){var m=this._container=Kr(l);
364if(m){if(m._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");Qe(m,"scroll",this._onScroll,this),this._containerId=f(m)},_initLayout:function(){var l=this._container;this._fadeAnimated=this.options.fadeAnimation&&Fe.any3d,tt(l,"leaflet-container"+(Fe.touch?" leaflet-touch":"")+(Fe.retina?" leaflet-retina":"")+(Fe.ielt9?" leaflet-oldie":"")+(Fe.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var m=_l(l,"position");m!=="absolute"&&m!=="relative"&&m!=="fixed"&&m!=="sticky"&&(l.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var l=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),ln(this._mapPane,new W(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(tt(l.markerPane,"leaflet-zoom-hide"),tt(l.shadowPane,"leaflet-zoom-hide"))},_resetView:function(l,m,x){ln(this._mapPane,new W(0,0));var N=!this._loaded;this._loaded=!0,m=this._limitZoom(m),this.fire("viewprereset");var D=this._zoom!==m;this._moveStart(D,x)._move(l,m)._moveEnd(D),this.fire("viewreset"),N&&this.fire("load")},_moveStart:function(l,m){return l&&this.fire("zoomstart"),m||this.fire("movestart"),this},_move:function(l,m,x,N){m===void 0&&(m=this._zoom);var D=this._zoom!==m;return this._zoom=m,this._lastCenter=l,this._pixelOrigin=this._getNewPixelOrigin(l),N?x&&x.pinch&&this.fire("zoom",x):((D||x&&x.pinch)&&this.fire("zoom",x),this.fire("move",x)),this},_moveEnd:function(l){return l&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return q(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(l){ln(this._mapPane,this._getMapPanePos().subtract(l))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(l){this._targets={},this._targets[f(this._container)]=this;var m=l?Ct:Qe;m(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&m(window,"resize",this._onResize,this),Fe.any3d&&this.options.transform3DLimit&&(l?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){q(this._resizeRequest),this._resizeRequest=V(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var l=this._getMapPanePos();Math.max(Math.abs(l.x),Math.abs(l.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(l,m){for(var x=[],N,D=m==="mouseout"||m==="mouseover",F=l.target||l.srcElement,X=!1;F;){if(N=this._targets[f(F)],N&&(m==="click"||m==="preclick")&&this._draggableMoved(N)){X=!0;break}if(N&&N.listens(m,!0)&&(D&&!Tl(F,l)||(x.push(N),D))||F===this._container)break;F=F.parentNode}return!x.length&&!X&&!D&&this.listens(m,!0)&&(x=[this]),x},_isClickDisabled:function(l){for(;l&&l!==this._container;){if(l._leaflet_disable_click)return!0;l=l.parentNode}},_handleDOMEvent:function(l){var m=l.target||l.srcElement;if(!(!this._loaded||m._leaflet_disable_events||l.type==="click"&&this._isClickDisabled(m))){var x=l.type;x==="mousedown"&&ss(m),this._fireDOMEvent(l,x)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(l,m,x){if(l.type==="click"){var N=i({},l);N.type="preclick",this._fireDOMEvent(N,N.type,x)}var D=this._findEventTargets(l,m);if(x){for(var F=[],X=0;X<x.length;X++)x[X].listens(m,!0)&&F.push(x[X]);D=F.concat(D)}if(D.length){m==="contextmenu"&&Jt(l);var se=D[0],ue={originalEvent:l};if(l.type!=="keypress"&&l.type!=="keydown"&&l.type!=="keyup"){var ve=se.getLatLng&&(!se._radius||se._radius<=10);ue.containerPoint=ve?this.latLngToContainerPoint(se.getLatLng()):this.mouseEventToContainerPoint(l),ue.layerPoint=this.containerPointToLayerPoint(ue.containerPoint),ue.latlng=ve?se.getLatLng():this.layerPointToLatLng(ue.layerPoint)}for(X=0;X<D.length;X++)if(D[X].fire(m,ue,!0),ue.originalEvent._stopped||D[X].options.bubblingMouseEvents===!1&&E(this._mouseEvents,m)!==-1)return}},_draggableMoved:function(l){return l=l.dragging&&l.dragging.enabled()?l:this,l.dragging&&l.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var l=0,m=this._handlers.length;l<m;l++)this._handlers[l].disable()},whenReady:function(l,m){return this._loaded?l.call(m||this,{target:this}):this.on("load",l,m),this},_getMapPanePos:function(){return Hi(this._mapPane)||new W(0,0)},_moved:function(){var l=this._getMapPanePos();return l&&!l.equals([0,0])},_getTopLeftPoint:function(l,m){var x=l&&m!==void 0?this._getNewPixelOrigin(l,m):this.getPixelOrigin();return x.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(l,m){var x=this.getSize()._divideBy(2);return this.project(l,m)._subtract(x)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(l,m,x){var N=this._getNewPixelOrigin(x,m);return this.project(l,m)._subtract(N)},_latLngBoundsToNewLayerBounds:function(l,m,x){var N=this._getNewPixelOrigin(x,m);
364return ee([this.project(l.getSouthWest(),m)._subtract(N),this.project(l.getNorthWest(),m)._subtract(N),this.project(l.getSouthEast(),m)._subtract(N),this.project(l.getNorthEast(),m)._subtract(N)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(l){return this.latLngToLayerPoint(l).subtract(this._getCenterLayerPoint())},_limitCenter:function(l,m,x){if(!x)return l;var N=this.project(l,m),D=this.getSize().divideBy(2),F=new H(N.subtract(D),N.add(D)),X=this._getBoundsOffset(F,x,m);return Math.abs(X.x)<=1&&Math.abs(X.y)<=1?l:this.unproject(N.add(X),m)},_limitOffset:function(l,m){if(!m)return l;var x=this.getPixelBounds(),N=new H(x.min.add(l),x.max.add(l));return l.add(this._getBoundsOffset(N,m))},_getBoundsOffset:function(l,m,x){var N=ee(this.project(m.getNorthEast(),x),this.project(m.getSouthWest(),x)),D=N.min.subtract(l.min),F=N.max.subtract(l.max),X=this._rebound(D.x,-F.x),se=this._rebound(D.y,-F.y);return new W(X,se)},_rebound:function(l,m){return l+m>0?Math.round(l-m)/2:Math.max(0,Math.ceil(l))-Math.max(0,Math.floor(m))},_limitZoom:function(l){var m=this.getMinZoom(),x=this.getMaxZoom(),N=Fe.any3d?this.options.zoomSnap:1;return N&&(l=Math.round(l/N)*N),Math.max(m,Math.min(x,l))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){It(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(l,m){var x=this._getCenterOffset(l)._trunc();return(m&&m.animate)!==!0&&!this.getSize().contains(x)?!1:(this.panBy(x,m),!0)},_createAnimProxy:function(){var l=this._proxy=nt("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(l),this.on("zoomanim",function(m){var x=pf,N=this._proxy.style[x];Zr(this._proxy,this.project(m.center,m.zoom),this.getZoomScale(m.zoom,1)),N===this._proxy.style[x]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){zt(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var l=this.getCenter(),m=this.getZoom();Zr(this._proxy,this.project(l,m),this.getZoomScale(m,1))},_catchTransitionEnd:function(l){this._animatingZoom&&l.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(l,m,x){if(this._animatingZoom)return!0;if(x=x||{},!this._zoomAnimated||x.animate===!1||this._nothingToAnimate()||Math.abs(m-this._zoom)>this.options.zoomAnimationThreshold)return!1;var N=this.getZoomScale(m),D=this._getCenterOffset(l)._divideBy(1-1/N);return x.animate!==!0&&!this.getSize().contains(D)?!1:(V(function(){this._moveStart(!0,x.noMoveStart||!1)._animateZoom(l,m,!0)},this),!0)},_animateZoom:function(l,m,x,N){this._mapPane&&(x&&(this._animatingZoom=!0,this._animateToCenter=l,this._animateToZoom=m,tt(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:l,zoom:m,noUpdate:N}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(o(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&It(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function wa(l,m){return new ct(l,m)}var _r=Q.extend({options:{position:"topright"},initialize:function(l){S(this,l)},getPosition:function(){return this.options.position},setPosition:function(l){var m=this._map;return m&&m.removeControl(this),this.options.position=l,m&&m.addControl(this),this},getContainer:function(){return this._container},addTo:function(l){this.remove(),this._map=l;var m=this._container=this.onAdd(l),x=this.getPosition(),N=l._controlCorners[x];return tt(m,"leaflet-control"),x.indexOf("bottom")!==-1?N.insertBefore(m,N.firstChild):N.appendChild(m),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(zt(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(l){this._map&&l&&l.screenX>0&&l.screenY>0&&this._map.getContainer().focus()}}),_a=function(l){return new _r(l)};ct.include({addControl:function(l){return l.addTo(this),this},removeControl:function(l){return l.remove(),this}
364,_initControlPos:function(){var l=this._controlCorners={},m="leaflet-",x=this._controlContainer=nt("div",m+"control-container",this._container);function N(D,F){var X=m+D+" "+m+F;l[D+F]=nt("div",X,x)}N("top","left"),N("top","right"),N("bottom","left"),N("bottom","right")},_clearControlPos:function(){for(var l in this._controlCorners)zt(this._controlCorners[l]);zt(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var yf=_r.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(l,m,x,N){return x<N?-1:N<x?1:0}},initialize:function(l,m,x){S(this,x),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1;for(var N in l)this._addLayer(l[N],N);for(N in m)this._addLayer(m[N],N,!0)},onAdd:function(l){this._initLayout(),this._update(),this._map=l,l.on("zoomend",this._checkDisabledLayers,this);for(var m=0;m<this._layers.length;m++)this._layers[m].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(l){return _r.prototype.addTo.call(this,l),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var l=0;l<this._layers.length;l++)this._layers[l].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(l,m){return this._addLayer(l,m),this._map?this._update():this},addOverlay:function(l,m){return this._addLayer(l,m,!0),this._map?this._update():this},removeLayer:function(l){l.off("add remove",this._onLayerChange,this);var m=this._getLayer(f(l));return m&&this._layers.splice(this._layers.indexOf(m),1),this._map?this._update():this},expand:function(){tt(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var l=this._map.getSize().y-(this._container.offsetTop+50);return l<this._section.clientHeight?(tt(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=l+"px"):It(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return It(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var l="leaflet-control-layers",m=this._container=nt("div",l),x=this.options.collapsed;m.setAttribute("aria-haspopup",!0),Nl(m),Qc(m);var N=this._section=nt("section",l+"-list");x&&(this._map.on("click",this.collapse,this),Qe(m,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var D=this._layersLink=nt("a",l+"-toggle",m);D.href="#",D.title="Layers",D.setAttribute("role","button"),Qe(D,{keydown:function(F){F.keyCode===13&&this._expandSafely()},click:function(F){Jt(F),this._expandSafely()}},this),x||this.expand(),this._baseLayersList=nt("div",l+"-base",N),this._separator=nt("div",l+"-separator",N),this._overlaysList=nt("div",l+"-overlays",N),m.appendChild(N)},_getLayer:function(l){for(var m=0;m<this._layers.length;m++)if(this._layers[m]&&f(this._layers[m].layer)===l)return this._layers[m]},_addLayer:function(l,m,x){this._map&&l.on("add remove",this._onLayerChange,this),this._layers.push({layer:l,name:m,overlay:x}),this.options.sortLayers&&this._layers.sort(o(function(N,D){return this.options.sortFunction(N.layer,D.layer,N.name,D.name)},this)),this.options.autoZIndex&&l.setZIndex&&(this._lastZIndex++,l.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;Hc(this._baseLayersList),Hc(this._overlaysList),this._layerControlInputs=[];var l,m,x,N,D=0;for(x=0;x<this._layers.length;x++)N=this._layers[x],this._addItem(N),m=m||N.overlay,l=l||!N.overlay,D+=N.overlay?0:1;return this.options.hideSingleBase&&(l=l&&D>1,this._baseLayersList.style.display=l?"":"none"),this._separator.style.display=m&&l?"":"none",this},_onLayerChange:function(l){this._handlingClick||this._update();var m=this._getLayer(f(l.target)),x=m.overlay?l.type==="add"?"overlayadd":"overlayremove":l.type==="add"?"baselayerchange":null;x&&this._map.fire(x,m)},_createRadioElement:function(l,m){var x='<input type="radio" class="leaflet-control-layers-selector" name="'+l+'"'+(m?' checked="checked"':"")+"/>",N=document.createElement("div");return N.innerHTML=x,N.firstChild},_addItem:function(l){var m=document.createElement("label"),x=this._map.hasLayer(l.layer),N;l.overlay?(N=document.createElement("input"),N.type="checkbox",N.className="leaflet-control-layers-selector",N.defaultChecked=x):N=this._createRadioElement("leaflet-base-layers_"+f(this),x),this._layerControlInputs.push(N),N.layerId=f(l.layer),Qe(N,"click",this._onInputClick,this);var D=document.createElement("span");D.innerHTML=" "+l.name;var F=document.createElement("span");m.appendChild(F),F.appendChild(N),F.appendChild(D);var X=l.overlay?this._overlaysList:this._baseLayersList;return X.appendChild(m),this._checkDisabledLayers(),m},_onInputClick:function(){if(!this._preventClick){var l=this._layerControlInputs,m,x,N=[],D=[];this._handlingClick=!0;for(var F=l.length-1;F>=0;F--)m=l[F],x=this._getLayer(m.layerId).layer,m.checked?N.push(x):m.checked||D.push(x);for(F=0;F<D.length;F++)this._map.hasLayer(D[F])&&this._map.removeLayer(D[F]);for(F=0;F<N.length;
364F++)this._map.hasLayer(N[F])||this._map.addLayer(N[F]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var l=this._layerControlInputs,m,x,N=this._map.getZoom(),D=l.length-1;D>=0;D--)m=l[D],x=this._getLayer(m.layerId).layer,m.disabled=x.options.minZoom!==void 0&&N<x.options.minZoom||x.options.maxZoom!==void 0&&N>x.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var l=this._section;this._preventClick=!0,Qe(l,"click",Jt),this.expand();var m=this;setTimeout(function(){Ct(l,"click",Jt),m._preventClick=!1})}}),tu=function(l,m,x){return new yf(l,m,x)},ls=_r.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">&#x2212;</span>',zoomOutTitle:"Zoom out"},onAdd:function(l){var m="leaflet-control-zoom",x=nt("div",m+" leaflet-bar"),N=this.options;return this._zoomInButton=this._createButton(N.zoomInText,N.zoomInTitle,m+"-in",x,this._zoomIn),this._zoomOutButton=this._createButton(N.zoomOutText,N.zoomOutTitle,m+"-out",x,this._zoomOut),this._updateDisabled(),l.on("zoomend zoomlevelschange",this._updateDisabled,this),x},onRemove:function(l){l.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(l){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(l.shiftKey?3:1))},_zoomOut:function(l){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(l.shiftKey?3:1))},_createButton:function(l,m,x,N,D){var F=nt("a",x,N);return F.innerHTML=l,F.href="#",F.title=m,F.setAttribute("role","button"),F.setAttribute("aria-label",m),Nl(F),Qe(F,"click",Xr),Qe(F,"click",D,this),Qe(F,"click",this._refocusOnMap,this),F},_updateDisabled:function(){var l=this._map,m="leaflet-disabled";It(this._zoomInButton,m),It(this._zoomOutButton,m),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||l._zoom===l.getMinZoom())&&(tt(this._zoomOutButton,m),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||l._zoom===l.getMaxZoom())&&(tt(this._zoomInButton,m),this._zoomInButton.setAttribute("aria-disabled","true"))}});ct.mergeOptions({zoomControl:!0}),ct.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new ls,this.addControl(this.zoomControl))});var mm=function(l){return new ls(l)},lr=_r.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(l){var m="leaflet-control-scale",x=nt("div",m),N=this.options;return this._addScales(N,m+"-line",x),l.on(N.updateWhenIdle?"moveend":"move",this._update,this),l.whenReady(this._update,this),x},onRemove:function(l){l.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(l,m,x){l.metric&&(this._mScale=nt("div",m,x)),l.imperial&&(this._iScale=nt("div",m,x))},_update:function(){var l=this._map,m=l.getSize().y/2,x=l.distance(l.containerPointToLatLng([0,m]),l.containerPointToLatLng([this.options.maxWidth,m]));this._updateScales(x)},_updateScales:function(l){this.options.metric&&l&&this._updateMetric(l),this.options.imperial&&l&&this._updateImperial(l)},_updateMetric:function(l){var m=this._getRoundNum(l),x=m<1e3?m+" m":m/1e3+" km";this._updateScale(this._mScale,x,m/l)},_updateImperial:function(l){var m=l*3.2808399,x,N,D;m>5280?(x=m/5280,N=this._getRoundNum(x),this._updateScale(this._iScale,N+" mi",N/x)):(D=this._getRoundNum(m),this._updateScale(this._iScale,D+" ft",D/m))},_updateScale:function(l,m,x){l.style.width=Math.round(this.options.maxWidth*x)+"px",l.innerHTML=m},_getRoundNum:function(l){var m=Math.pow(10,(Math.floor(l)+"").length-1),x=l/m;return x=x>=10?10:x>=5?5:x>=3?3:x>=2?2:1,m*x}}),cs=function(l){return new lr(l)},xf='<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>',to=_r.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(Fe.inlineSvg?xf+" ":"")+"Leaflet</a>"},initialize:function(l){S(this,l),this._attributions={}}
364,onAdd:function(l){l.attributionControl=this,this._container=nt("div","leaflet-control-attribution"),Nl(this._container);for(var m in l._layers)l._layers[m].getAttribution&&this.addAttribution(l._layers[m].getAttribution());return this._update(),l.on("layeradd",this._addAttribution,this),this._container},onRemove:function(l){l.off("layeradd",this._addAttribution,this)},_addAttribution:function(l){l.layer.getAttribution&&(this.addAttribution(l.layer.getAttribution()),l.layer.once("remove",function(){this.removeAttribution(l.layer.getAttribution())},this))},setPrefix:function(l){return this.options.prefix=l,this._update(),this},addAttribution:function(l){return l?(this._attributions[l]||(this._attributions[l]=0),this._attributions[l]++,this._update(),this):this},removeAttribution:function(l){return l?(this._attributions[l]&&(this._attributions[l]--,this._update()),this):this},_update:function(){if(this._map){var l=[];for(var m in this._attributions)this._attributions[m]&&l.push(m);var x=[];this.options.prefix&&x.push(this.options.prefix),l.length&&x.push(l.join(", ")),this._container.innerHTML=x.join(' <span aria-hidden="true">|</span> ')}}});ct.mergeOptions({attributionControl:!0}),ct.addInitHook(function(){this.options.attributionControl&&new to().addTo(this)});var Ox=function(l){return new to(l)};_r.Layers=yf,_r.Zoom=ls,_r.Scale=lr,_r.Attribution=to,_a.layers=tu,_a.zoom=mm,_a.scale=cs,_a.attribution=Ox;var Cr=Q.extend({initialize:function(l){this._map=l},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});Cr.addTo=function(l,m){return l.addHandler(m,this),this};var bf={Events:ie},us=Fe.touch?"touchstart mousedown":"mousedown",Qr=re.extend({options:{clickTolerance:3},initialize:function(l,m,x,N){S(this,N),this._element=l,this._dragStartTarget=m||l,this._preventOutline=x},enable:function(){this._enabled||(Qe(this._dragStartTarget,us,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(Qr._dragging===this&&this.finishDrag(!0),Ct(this._dragStartTarget,us,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(l){if(this._enabled&&(this._moved=!1,!is(this._element,"leaflet-zoom-anim"))){if(l.touches&&l.touches.length!==1){Qr._dragging===this&&this.finishDrag();return}if(!(Qr._dragging||l.shiftKey||l.which!==1&&l.button!==1&&!l.touches)&&(Qr._dragging=this,this._preventOutline&&ss(this._element),Zc(),mt(),!this._moving)){this.fire("down");var m=l.touches?l.touches[0]:l,x=Gi(this._element);this._startPoint=new W(m.clientX,m.clientY),this._startPos=Hi(this._element),this._parentScale=yi(x);var N=l.type==="mousedown";Qe(document,N?"mousemove":"touchmove",this._onMove,this),Qe(document,N?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(l){if(this._enabled){if(l.touches&&l.touches.length>1){this._moved=!0;return}var m=l.touches&&l.touches.length===1?l.touches[0]:l,x=new W(m.clientX,m.clientY)._subtract(this._startPoint);!x.x&&!x.y||Math.abs(x.x)+Math.abs(x.y)<this.options.clickTolerance||(x.x/=this._parentScale.x,x.y/=this._parentScale.y,Jt(l),this._moved||(this.fire("dragstart"),this._moved=!0,tt(document.body,"leaflet-dragging"),this._lastTarget=l.target||l.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),tt(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(x),this._moving=!0,this._lastEvent=l,this._updatePosition())}},_updatePosition:function(){var l={originalEvent:this._lastEvent};this.fire("predrag",l),ln(this._element,this._newPos),this.fire("drag",l)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(l){It(document.body,"leaflet-dragging"),this._lastTarget&&(It(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),Ct(document,"mousemove touchmove",this._onMove,this),Ct(document,"mouseup touchend touchcancel",this._onUp,this),Yc(),os();var m=this._moved&&this._moving;this._moving=!1,Qr._dragging=!1,m&&this.fire("dragend",{noInertia:l,distance:this._newPos.distanceTo(this._startPos)})}});function wf(l,m,x){var N,D=[1,4,2,8],F,X,se,ue,ve,ke,Ve,it;for(F=0,ke=l.length;F<ke;F++)l[F]._code=no(l[F],m);for(se=0;se<4;se++){for(Ve=D[se],N=[],F=0,ke=l.length,X=ke-1;F<ke;X=F++)ue=l[F],ve=l[X],ue._code&Ve?ve._code&Ve||(it=ru(ve,ue,Ve,m,x),it._code=no(it,m),N.push(it)):(ve._code&Ve&&(it=ru(ve,ue,Ve,m,x),it._code=no(it,m),N.push(it)),N.push(ue));l=N}return l}function gm(l,m){var x,N,D,F,X,se,ue,ve,ke;if(!l||l.length===0)throw new Error("latlngs not passed");Or(l)||(console.warn("latlngs are not flat! Only the first ring will be used"),l=l[0]);var Ve=ye([0,0]),it=we(l),kn=it.getNorthWest().distanceTo(it.getSouthWest
364())*it.getNorthEast().distanceTo(it.getNorthWest());kn<1700&&(Ve=_f(l));var xn=l.length,jr=[];for(x=0;x<xn;x++){var cr=ye(l[x]);jr.push(m.project(ye([cr.lat-Ve.lat,cr.lng-Ve.lng])))}for(se=ue=ve=0,x=0,N=xn-1;x<xn;N=x++)D=jr[x],F=jr[N],X=D.y*F.x-F.y*D.x,ue+=(D.x+F.x)*X,ve+=(D.y+F.y)*X,se+=X*3;se===0?ke=jr[0]:ke=[ue/se,ve/se];var bs=m.unproject(U(ke));return ye([bs.lat+Ve.lat,bs.lng+Ve.lng])}function _f(l){for(var m=0,x=0,N=0,D=0;D<l.length;D++){var F=ye(l[D]);m+=F.lat,x+=F.lng,N++}return ye([m/N,x/N])}var Ex={__proto__:null,clipPolygon:wf,polygonCenter:gm,centroid:_f};function nu(l,m){if(!m||!l.length)return l.slice();var x=m*m;return l=Dx(l,x),l=Rx(l,x),l}function vm(l,m,x){return Math.sqrt(ro(l,m,x,!0))}function Mx(l,m,x){return ro(l,m,x)}function Rx(l,m){var x=l.length,N=typeof Uint8Array<"u"?Uint8Array:Array,D=new N(x);D[0]=D[x-1]=1,Sf(l,D,m,0,x-1);var F,X=[];for(F=0;F<x;F++)D[F]&&X.push(l[F]);return X}function Sf(l,m,x,N,D){var F=0,X,se,ue;for(se=N+1;se<=D-1;se++)ue=ro(l[se],l[N],l[D],!0),ue>F&&(X=se,F=ue);F>x&&(m[X]=1,Sf(l,m,x,N,X),Sf(l,m,x,X,D))}function Dx(l,m){for(var x=[l[0]],N=1,D=0,F=l.length;N<F;N++)Ix(l[N],l[D])>m&&(x.push(l[N]),D=N);return D<F-1&&x.push(l[F-1]),x}var jf;function ym(l,m,x,N,D){var F=N?jf:no(l,x),X=no(m,x),se,ue,ve;for(jf=X;;){if(!(F|X))return[l,m];if(F&X)return!1;se=F||X,ue=ru(l,m,se,x,D),ve=no(ue,x),se===F?(l=ue,F=ve):(m=ue,X=ve)}}function ru(l,m,x,N,D){var F=m.x-l.x,X=m.y-l.y,se=N.min,ue=N.max,ve,ke;return x&8?(ve=l.x+F*(ue.y-l.y)/X,ke=ue.y):x&4?(ve=l.x+F*(se.y-l.y)/X,ke=se.y):x&2?(ve=ue.x,ke=l.y+X*(ue.x-l.x)/F):x&1&&(ve=se.x,ke=l.y+X*(se.x-l.x)/F),new W(ve,ke,D)}function no(l,m){var x=0;return l.x<m.min.x?x|=1:l.x>m.max.x&&(x|=2),l.y<m.min.y?x|=4:l.y>m.max.y&&(x|=8),x}function Ix(l,m){var x=m.x-l.x,N=m.y-l.y;return x*x+N*N}function ro(l,m,x,N){var D=m.x,F=m.y,X=x.x-D,se=x.y-F,ue=X*X+se*se,ve;return ue>0&&(ve=((l.x-D)*X+(l.y-F)*se)/ue,ve>1?(D=x.x,F=x.y):ve>0&&(D+=X*ve,F+=se*ve)),X=l.x-D,se=l.y-F,N?X*X+se*se:new W(D,F)}function Or(l){return!C(l[0])||typeof l[0][0]!="object"&&typeof l[0][0]<"u"}function xm(l){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),Or(l)}function bm(l,m){var x,N,D,F,X,se,ue,ve;if(!l||l.length===0)throw new Error("latlngs not passed");Or(l)||(console.warn("latlngs are not flat! Only the first ring will be used"),l=l[0]);var ke=ye([0,0]),Ve=we(l),it=Ve.getNorthWest().distanceTo(Ve.getSouthWest
364())*Ve.getNorthEast().distanceTo(Ve.getNorthWest());it<1700&&(ke=_f(l));var kn=l.length,xn=[];for(x=0;x<kn;x++){var jr=ye(l[x]);xn.push(m.project(ye([jr.lat-ke.lat,jr.lng-ke.lng])))}for(x=0,N=0;x<kn-1;x++)N+=xn[x].distanceTo(xn[x+1])/2;if(N===0)ve=xn[0];else for(x=0,F=0;x<kn-1;x++)if(X=xn[x],se=xn[x+1],D=X.distanceTo(se),F+=D,F>N){ue=(F-N)/D,ve=[se.x-ue*(se.x-X.x),se.y-ue*(se.y-X.y)];break}var cr=m.unproject(U(ve));return ye([cr.lat+ke.lat,cr.lng+ke.lng])}var wm={__proto__:null,simplify:nu,pointToSegmentDistance:vm,closestPointOnSegment:Mx,clipSegment:ym,_getEdgeIntersection:ru,_getBitCode:no,_sqClosestPointOnSegment:ro,isFlat:Or,_flat:xm,polylineCenter:bm},Pf={project:function(l){return new W(l.lng,l.lat)},unproject:function(l){return new ge(l.y,l.x)},bounds:new H([-180,-90],[180,90])},Nf={R:6378137,R_MINOR:6356752314245179e-9,bounds:new H([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(l){var m=Math.PI/180,x=this.R,N=l.lat*m,D=this.R_MINOR/x,F=Math.sqrt(1-D*D),X=F*Math.sin(N),se=Math.tan(Math.PI/4-N/2)/Math.pow((1-X)/(1+X),F/2);return N=-x*Math.log(Math.max(se,1e-10)),new W(l.lng*m*x,N)},unproject:function(l){for(var m=180/Math.PI,x=this.R,N=this.R_MINOR/x,D=Math.sqrt(1-N*N),F=Math.exp(-l.y/x),X=Math.PI/2-2*Math.atan(F),se=0,ue=.1,ve;se<15&&Math.abs(ue)>1e-7;se++)ve=D*Math.sin(X),ve=Math.pow((1-ve)/(1+ve),D/2),ue=Math.PI/2-2*Math.atan(F*ve)-X,X+=ue;return new ge(X*m,l.x*m/x)}},Lx={__proto__:null,LonLat:Pf,Mercator:Nf,SphericalMercator:Ae},$x=i({},xe,{code:"EPSG:3395",projection:Nf,transformation:(function(){var l=.5/(Math.PI*Nf.R);return he(l,.5,-l,.5)})()}),_m=i({},xe,{code:"EPSG:4326",projection:Pf,transformation:he(1/180,1,-1/180,.5)}),Bx=i({},$e,{projection:Pf,transformation:he(1,0,-1,0),scale:function(l){return Math.pow(2,l)},zoom:function(l){return Math.log(l)/Math.LN2},distance:function(l,m){var x=m.lng-l.lng,N=m.lat-l.lat;return Math.sqrt(x*x+N*N)},infinite:!0});$e.Earth=xe,$e.EPSG3395=$x,$e.EPSG3857=Ee,$e.EPSG900913=Se,$e.EPSG4326=_m,$e.Simple=Bx;var Jr=re.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(l){return l.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(l){return l&&l.removeLayer(this),this},getPane:function(l){return this._map.getPane(l?this.options[l]||l:this.options.pane)},addInteractiveTarget:function(l){return this._map._targets[f(l)]=this,this},removeInteractiveTarget:function(l){return delete this._map._targets[f(l)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(l){var m=l.target;if(m.hasLayer(this)){if(this._map=m,this._zoomAnimated=m._zoomAnimated,this.getEvents){var x=this.getEvents();m.on(x,this),this.once("remove",function(){m.off(x,this)},this)}this.onAdd(m),this.fire("add"),m.fire("layeradd",{layer:this})}}});ct.include({addLayer:function(l){if(!l._layerAdd)throw new Error("The provided object is not a Layer.");var m=f(l);return this._layers[m]?this:(this._layers[m]=l,l._mapToAdd=this,l.beforeAdd&&l.beforeAdd(this),this.whenReady(l._layerAdd,l),this)},removeLayer:function(l){var m=f(l);return this._layers[m]?(this._loaded&&l.onRemove(this),delete this._layers[m],this._loaded&&(this.fire("layerremove",{layer:l}),l.fire("remove")),l._map=l._mapToAdd=null,this):this},hasLayer:function(l){return f(l)in this._layers},eachLayer:function(l,m){for(var x in this._layers)l.call(m,this._layers[x]);return this},_addLayers:function(l){l=l?C(l)?l:[l]:[];for(var m=0,x=l.length;m<x;m++)this.addLayer(l[m])},_addZoomLimit:function(l){(!isNaN(l.options.maxZoom)||!isNaN(l.options.minZoom))&&(this._zoomBoundLayers[f(l)]=l,this._updateZoomLevels())},_removeZoomLimit:function(l){var m=f(l);this._zoomBoundLayers[m]&&(delete this._zoomBoundLayers[m],this._updateZoomLevels())},_updateZoomLevels:function(){var l=1/0,m=-1/0,x=this._getZoomSpan();for(var N in this._zoomBoundLayers){var D=this._zoomBoundLayers[N].options;l=D.minZoom===void 0?l:Math.min(l,D.minZoom),m=D.maxZoom===void 0?m:Math.max(m,D.maxZoom)}this._layersMaxZoom=m===-1/0?void 0:m,this._layersMinZoom=l===1/0?void 0:l,x!==this._getZoomSpan()&&this.fire("zoomlevelschange"),this.options.maxZoom===void 0&&this._layersMaxZo
364om&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var Sa=Jr.extend({initialize:function(l,m){S(this,m),this._layers={};var x,N;if(l)for(x=0,N=l.length;x<N;x++)this.addLayer(l[x])},addLayer:function(l){var m=this.getLayerId(l);return this._layers[m]=l,this._map&&this._map.addLayer(l),this},removeLayer:function(l){var m=l in this._layers?l:this.getLayerId(l);return this._map&&this._layers[m]&&this._map.removeLayer(this._layers[m]),delete this._layers[m],this},hasLayer:function(l){var m=typeof l=="number"?l:this.getLayerId(l);return m in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(l){var m=Array.prototype.slice.call(arguments,1),x,N;for(x in this._layers)N=this._layers[x],N[l]&&N[l].apply(N,m);return this},onAdd:function(l){this.eachLayer(l.addLayer,l)},onRemove:function(l){this.eachLayer(l.removeLayer,l)},eachLayer:function(l,m){for(var x in this._layers)l.call(m,this._layers[x]);return this},getLayer:function(l){return this._layers[l]},getLayers:function(){var l=[];return this.eachLayer(l.push,l),l},setZIndex:function(l){return this.invoke("setZIndex",l)},getLayerId:function(l){return f(l)}}),kl=function(l,m){return new Sa(l,m)},Ki=Sa.extend({addLayer:function(l){return this.hasLayer(l)?this:(l.addEventParent(this),Sa.prototype.addLayer.call(this,l),this.fire("layeradd",{layer:l}))},removeLayer:function(l){return this.hasLayer(l)?(l in this._layers&&(l=this._layers[l]),l.removeEventParent(this),Sa.prototype.removeLayer.call(this,l),this.fire("layerremove",{layer:l})):this},setStyle:function(l){return this.invoke("setStyle",l)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var l=new pe;for(var m in this._layers){var x=this._layers[m];l.extend(x.getBounds?x.getBounds():x.getLatLng())}return l}}),Sm=function(l,m){return new Ki(l,m)},io=Q.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(l){S(this,l)},createIcon:function(l){return this._createIcon("icon",l)},createShadow:function(l){return this._createIcon("shadow",l)},_createIcon:function(l,m){var x=this._getIconUrl(l);if(!x){if(l==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var N=this._createImg(x,m&&m.tagName==="IMG"?m:null);return this._setIconStyles(N,l),(this.options.crossOrigin||this.options.crossOrigin==="")&&(N.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),N},_setIconStyles:function(l,m){var x=this.options,N=x[m+"Size"];typeof N=="number"&&(N=[N,N]);var D=U(N),F=U(m==="shadow"&&x.shadowAnchor||x.iconAnchor||D&&D.divideBy(2,!0));l.className="leaflet-marker-"+m+" "+(x.className||""),F&&(l.style.marginLeft=-F.x+"px",l.style.marginTop=-F.y+"px"),D&&(l.style.width=D.x+"px",l.style.height=D.y+"px")},_createImg:function(l,m){return m=m||document.createElement("img"),m.src=l,m},_getIconUrl:function(l){return Fe.retina&&this.options[l+"RetinaUrl"]||this.options[l+"Url"]}});function jm(l){return new io(l)}var ds=io.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(l){return typeof ds.imagePath!="string"&&(ds.imagePath=this._detectIconPath()),(this.options.imagePath||ds.imagePath)+io.prototype._getIconUrl.call(this,l)},_stripUrl:function(l){var m=function(x,N,D){var F=N.exec(x);return F&&F[D]};return l=m(l,/^url\((['"])?(.+)\1\)$/,2),l&&m(l,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var l=nt("div","leaflet-default-icon-path",document.body),m=_l(l,"background-image")||_l(l,"backgroundImage");if(document.body.removeChild(l),m=this._stripUrl(m),m)return m;var x=document.querySelector('link[href$="leaflet.css"]');return x?x.href.substring(0,x.href.length-11-1):""}}),Af=Cr.extend({initialize:function(l){this._marker=l},addHooks:function(){var l=this._marker._icon;this._draggable||(this._draggable=new Qr(l,l,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),tt(l,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&It(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(l){var m=this._marker,x=m._map,N=this._marker.options.autoPanSpeed,D=this._marker.options.autoPanPadding,F=Hi(m._icon),X=x.getPixelBounds(),se=x.getPixelOrigin(),ue=ee(X.min._subtract(se).add(D),X.max._subtract(se).subtract(D));if(!ue.contains(F)){var ve=U((Math.max(ue.max.x,F.x)-ue.max.x)/(X.max.x-ue.max.x)-(Math.min(ue.min.x,F.x)-ue.min.x)/(X.min.x-ue.min.x),(Math.max(ue.max.y,F.y)-ue.max.y)/(X.max.y-ue.max.y)-(Math.min(ue.min.y,F.y)-ue.min.y)/(X.min.y-ue.min.y)).multiplyBy(N);x.panBy(ve,{animate:!1}),this._draggable._newPos._add(ve),this._draggable._startPos._add(ve),ln(m._icon,this._draggable._newPos),this._onDrag(l),this._panRequest=V(this._adjustPan.bind(this,l))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(l){this._marker.options.autoPan&&(q(this._panRequest),this._panRequest=V(this._adjustPan.bind(this,l)))},_onDrag:function(l){var m=this._marker,x=m._shadow,N=Hi(m._icon),D=m._map.layerPointToLatLng(N);x&&ln(x,N),m._latlng=D,l.latlng=D,l.oldLatLng=this._oldLatLng,m.fire("move",l).fire("drag",l)}
vendor: 8,119 bytes, line 364
364,_onDragEnd:function(l){q(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",l)}}),Zi=Jr.extend({options:{icon:new ds,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(l,m){S(this,m),this._latlng=ye(l)},onAdd:function(l){this._zoomAnimated=this._zoomAnimated&&l.options.markerZoomAnimation,this._zoomAnimated&&l.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(l){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&l.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(l){var m=this._latlng;return this._latlng=ye(l),this.update(),this.fire("move",{oldLatLng:m,latlng:this._latlng})},setZIndexOffset:function(l){return this.options.zIndexOffset=l,this.update()},getIcon:function(){return this.options.icon},setIcon:function(l){return this.options.icon=l,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var l=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(l)}return this},_initIcon:function(){var l=this.options,m="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),x=l.icon.createIcon(this._icon),N=!1;x!==this._icon&&(this._icon&&this._removeIcon(),N=!0,l.title&&(x.title=l.title),x.tagName==="IMG"&&(x.alt=l.alt||"")),tt(x,m),l.keyboard&&(x.tabIndex="0",x.setAttribute("role","button")),this._icon=x,l.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Qe(x,"focus",this._panOnFocus,this);var D=l.icon.createShadow(this._shadow),F=!1;D!==this._shadow&&(this._removeShadow(),F=!0),D&&(tt(D,m),D.alt=""),this._shadow=D,l.opacity<1&&this._updateOpacity(),N&&this.getPane().appendChild(this._icon),this._initInteraction(),D&&F&&this.getPane(l.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Ct(this._icon,"focus",this._panOnFocus,this),zt(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&zt(this._shadow),this._shadow=null},_setPos:function(l){this._icon&&ln(this._icon,l),this._shadow&&ln(this._shadow,l),this._zIndex=l.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(l){this._icon&&(this._icon.style.zIndex=this._zIndex+l)},_animateZoom:function(l){var m=this._map._latLngToNewLayerPoint(this._latlng,l.zoom,l.center).round();this._setPos(m)},_initInteraction:function(){if(this.options.interactive&&(tt(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),Af)){var l=this.options.draggable;this.dragging&&(l=this.dragging.enabled(),this.dragging.disable()),this.dragging=new Af(this),l&&this.dragging.enable()}},setOpacity:function(l){return this.options.opacity=l,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var l=this.options.opacity;this._icon&&sr(this._icon,l),this._shadow&&sr(this._shadow,l)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var l=this._map;if(l){var m=this.options.icon.options,x=m.iconSize?U(m.iconSize):U(0,0),N=m.iconAnchor?U(m.iconAnchor):U(0,0);l.panInside(this._latlng,{paddingTopLeft:N,paddingBottomRight:x.subtract(N)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function Fx(l,m){return new Zi(l,m)}var ja=Jr.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(l){this._renderer=l.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(l){return S(this,l),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&l&&Object.prototype.hasOwnProperty.call(l,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),iu=ja.extend({options:{fill:!0,radius:10},initialize:function(l,m){S(this,m),this._latlng=ye(l),this._radius=this.options.radius},setLatLng:function(l){var m=this._latlng;return this._latlng=ye(l),this.redraw(),this.fire("move",{oldLatLng:m,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(l){return this.options.radius=this._radius=l,this.redraw()},getRadius:function(){return this._radius},setStyle:function(l){var m=l&&l.radius||this._radius;return ja.prototype.setStyle.call(this,l),this.setRadius(m),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var l=this._radius,m=this._radiusY||l,x=this._clickTolerance(),N=[l+x,m+x];this._pxBounds=new H(this._point.subtract(N),this._point.add(N))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(l){return l.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function Pm(l,m){return new iu(l,m)}var au=iu.extend({initialize:function(l,m,x){if(typeof m=="number"&&(m=i({},x,{radius:m})),S(this,m),this._latlng=ye(l),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(l){return this._mRadius=l,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var l=[this._radius,this._radiusY||this._radius];return new pe(this._map.layerPointToLatLng(this._point.subtract(l)),this._map.layerPointToLatLng(this._point.add(l)))},setStyle:ja.prototype.setStyle,_project:function(){var l=this._latlng.lng,m=this._latlng.lat,x=this._map,N=x.options.crs;if(N.distance===xe.distance){var D=Math.PI/180,F=this._mRadius/xe.R/D,X=x.project([m+F,l]),se=x.project([m-F,l]),ue=X.add(se).divideBy(2),ve=x.unproject(ue).lat,ke=Math.acos((Math.cos(F*D)-Math.sin(m*D)*Math.sin(ve*D))/(Math.cos(m*D)*Math.cos(ve*D)))/D;(isNaN(ke)||ke===0)&&(ke=F/Math.cos(Math.PI/180*m)),this._point=ue.subtract(x.getPixelOrigin()),this._radius=isNaN(ke)?0:ue.x-x.project([ve,l-ke]).x,this._radiusY=ue.y-X.y}else{var Ve=N.unproject(N.project(this._latlng).subtract([this._mRadius,0]));this._point=x.latLngToLayerPoint(this._latlng),this._radius=this._point.x-x.latLngToLayerPoint(Ve).x}this._updateBounds()}});function Cl(l,m,x){return new au(l,m,x)}var Sr=ja.extend({options:{smoothFactor:1,noClip:!1},initialize:function(l,m){S(this,m),this._setLatLngs(l)},getLatLngs:function(){return this._latlngs},setLatLngs:function(l){return this._setLatLngs(l),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(l){for(var m=1/0,x=null,N=ro,D,F,X=0,se=this._parts.length;X<se;X++)for(var ue=this._parts[X],ve=1,ke=ue.length;ve<ke;ve++){D=ue[ve-1],F=ue[ve];var Ve=N(l,D,F,!0);Ve<m&&(m=Ve,x=N(l,D,F))}return x&&(x.distance=Math.sqrt(m)),x}
364,getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return bm(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(l,m){return m=m||this._defaultShape(),l=ye(l),m.push(l),this._bounds.extend(l),this.redraw()},_setLatLngs:function(l){this._bounds=new pe,this._latlngs=this._convertLatLngs(l)},_defaultShape:function(){return Or(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(l){for(var m=[],x=Or(l),N=0,D=l.length;N<D;N++)x?(m[N]=ye(l[N]),this._bounds.extend(m[N])):m[N]=this._convertLatLngs(l[N]);return m},_project:function(){var l=new H;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,l),this._bounds.isValid()&&l.isValid()&&(this._rawPxBounds=l,this._updateBounds())},_updateBounds:function(){var l=this._clickTolerance(),m=new W(l,l);this._rawPxBounds&&(this._pxBounds=new H([this._rawPxBounds.min.subtract(m),this._rawPxBounds.max.add(m)]))},_projectLatlngs:function(l,m,x){var N=l[0]instanceof ge,D=l.length,F,X;if(N){for(X=[],F=0;F<D;F++)X[F]=this._map.latLngToLayerPoint(l[F]),x.extend(X[F]);m.push(X)}else for(F=0;F<D;F++)this._projectLatlngs(l[F],m,x)},_clipPoints:function(){var l=this._renderer._bounds;if(this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(l))){if(this.options.noClip){this._parts=this._rings;return}var m=this._parts,x,N,D,F,X,se,ue;for(x=0,D=0,F=this._rings.length;x<F;x++)for(ue=this._rings[x],N=0,X=ue.length;N<X-1;N++)se=ym(ue[N],ue[N+1],l,N,!0),se&&(m[D]=m[D]||[],m[D].push(se[0]),(se[1]!==ue[N+1]||N===X-2)&&(m[D].push(se[1]),D++))}},_simplifyPoints:function(){for(var l=this._parts,m=this.options.smoothFactor,x=0,N=l.length;x<N;x++)l[x]=nu(l[x],m)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(l,m){var x,N,D,F,X,se,ue=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(l))return!1;for(x=0,F=this._parts.length;x<F;x++)for(se=this._parts[x],N=0,X=se.length,D=X-1;N<X;D=N++)if(!(!m&&N===0)&&vm(l,se[D],se[N])<=ue)return!0;return!1}});function zx(l,m){return new Sr(l,m)}Sr._flat=xm;var Yi=Sr.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length}
364,getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return gm(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(l){var m=Sr.prototype._convertLatLngs.call(this,l),x=m.length;return x>=2&&m[0]instanceof ge&&m[0].equals(m[x-1])&&m.pop(),m},_setLatLngs:function(l){Sr.prototype._setLatLngs.call(this,l),Or(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return Or(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var l=this._renderer._bounds,m=this.options.weight,x=new W(m,m);if(l=new H(l.min.subtract(x),l.max.add(x)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(l))){if(this.options.noClip){this._parts=this._rings;return}for(var N=0,D=this._rings.length,F;N<D;N++)F=wf(this._rings[N],l,!0),F.length&&this._parts.push(F)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(l){var m=!1,x,N,D,F,X,se,ue,ve;if(!this._pxBounds||!this._pxBounds.contains(l))return!1;for(F=0,ue=this._parts.length;F<ue;F++)for(x=this._parts[F],X=0,ve=x.length,se=ve-1;X<ve;se=X++)N=x[X],D=x[se],N.y>l.y!=D.y>l.y&&l.x<(D.x-N.x)*(l.y-N.y)/(D.y-N.y)+N.x&&(m=!m);return m||Sr.prototype._containsPoint.call(this,l,!0)}});function qx(l,m){return new Yi(l,m)}var bi=Ki.extend({initialize:function(l,m){S(this,m),this._layers={},l&&this.addData(l)},addData:function(l){var m=C(l)?l:l.features,x,N,D;if(m){for(x=0,N=m.length;x<N;x++)D=m[x],(D.geometries||D.geometry||D.features||D.coordinates)&&this.addData(D);return this}var F=this.options;if(F.filter&&!F.filter(l))return this;var X=fs(l,F);return X?(X.feature=uu(l),X.defaultOptions=X.options,this.resetStyle(X),F.onEachFeature&&F.onEachFeature(l,X),this.addLayer(X)):this},resetStyle:function(l){return l===void 0?this.eachLayer(this.resetStyle,this):(l.options=i({},l.defaultOptions),this._setLayerStyle(l,this.options.style),this)},setStyle:function(l){return this.eachLayer(function(m){this._setLayerStyle(m,l)},this)},_setLayerStyle:function(l,m){l.setStyle&&(typeof m=="function"&&(m=m(l.feature)),l.setStyle(m))}});function fs(l,m){var x=l.type==="Feature"?l.geometry:l,N=x?x.coordinates:null,D=[],F=m&&m.pointToLayer,X=m&&m.coordsToLatLng||su,se,ue,ve,ke;if(!N&&!x)return null;switch(x.type){case"Point":return se=X(N),ou(F,l,se,m);case"MultiPoint":for(ve=0,ke=N.length;ve<ke;ve++)se=X(N[ve]),D.push(ou(F,l,se,m));return new Ki(D);case"LineString":case"MultiLineString":return ue=Ol(N,x.type==="LineString"?0:1,X),new Sr(ue,m);case"Polygon":case"MultiPolygon":return ue=Ol(N,x.type==="Polygon"?1:2,X),new Yi(ue,m);case"GeometryCollection":for(ve=0,ke=x.geometries.length;ve<ke;ve++){var Ve=fs({geometry:x.geometries[ve],type:"Feature",properties:l.properties},m);Ve&&D.push(Ve)}return new Ki(D);case"FeatureCollection":for(ve=0,ke=x.features.length;ve<ke;ve++){var it=fs(x.features[ve],m);it&&D.push(it)}return new Ki(D);default:throw new Error("Invalid GeoJSON object.")}}function ou(l,m,x,N){return l?l(m,x):new Zi(x,N&&N.markersInheritOptions&&N)}function su(l){return new ge(l[1],l[0],l[2])}function Ol(l,m,x){for(var N=[],D=0,F=l.length,X;D<F;D++)X=m?Ol(l[D],m-1,x):(x||su)(l[D]),N.push(X);return N}function lu(l,m){return l=ye(l),l.alt!==void 0?[y(l.lng,m),y(l.lat,m),y(l.alt,m)]:[y(l.lng,m),y(l.lat,m)]}function cu(l,m,x,N){for(var D=[],F=0,X=l.length;F<X;F++)D.push(m?cu(l[F],Or(l[F])?0:m-1,x,N):lu(l[F],N));return!m&&x&&D.length>0&&D.push(D[0].slice()),D}function hs(l,m){return l.feature?i({},l.feature,{geometry:m}):uu(m)}function uu(l){return l.type==="Feature"||l.type==="FeatureCollection"?l:{type:"Feature",properties:{},geometry:l}}var Tf={toGeoJSON:function(l){return hs(this,{type:"Point",coordinates:lu(this.getLatLng(),l)})}};Zi.include(Tf),au.include(Tf),iu.include(Tf),Sr.include({toGeoJSON:function(l){var m=!Or(this._latlngs),x=cu(this._latlngs,m?1:0,!1,l);return hs(this,{type:(m?"Multi":"")+"LineString",coordinates:x})}}),Yi.include({toGeoJSON:function(l){var m=!Or(this._latlngs),x=m&&!Or(this._latlngs[0]),N=cu(this._latlngs,x?2:m?1:0,!0,l);return m||(N=[N]),hs(this,{type:(x?"Multi":"")+"Polygon",coordinates:N})}}),Sa.include({toMultiPoint:function(l){var m=[];return this.eachLayer(function(x){m.push(x.toGeoJSON(l).geometry.coordinates)}),hs(this,{type:"MultiPoint",coordinates:m})},toGeoJSON:function(l){var m=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(m==="MultiPoint")return this.toMultiPoint(l);var x=m==="GeometryCollection",N=[];return this.eachLayer(function(D){if(D.toGeoJSON){var F=D.toGeoJSON(l);if(x)N.push(F.geometry);else{var X=uu(F);X.type==="FeatureCollection"?N.push.apply(N,X.features):N.push(X)}}}),x?hs(this,{geometries:N,type:"GeometryCollection"}):{type:"FeatureCollection",features:N}}});function Nm(l,m){return new bi(l,m)}var ei=Nm,Pa=Jr.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(l,m,x){this._url=l,this._bounds=we(m),S(this,x)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(tt(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){zt(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(l){return this.options.opacity=l,this._image&&this._updateOpacity(),this},setStyle:function(l){return l.opacity&&this.setOpacity(l.opacity),this},bringToFront:function(){return this._map&&rs(this._image),this},bringToBack:function(){return this._map&&Ui(this._image),this},setUrl:function(l){return this._url=l,this._image&&(this._image.src=l),this},setBounds:function(l){return this._bounds=we(l),this._map&&this._reset(),this},getEvents:function(){var l={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(l.zoomanim=this._animateZoom),l},setZIndex:function(l){return this.options.zIndex=l,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var l=this._url.tagName==="IMG",m=this._image=l?this._url:nt("img");if(tt(m,"leaflet-image-layer"),this._zoomAnimated&&tt(m,"leaflet-zoom-animated"),this.options.className&&tt(m,this.options.className),m.onselectstart=p,m.onmousemove=p,m.onload=o(this.fire,this,"load"),m.onerror=o(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(m.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),l){this._url=m.src;return}m.src=this._url,m.alt=this.options.alt},_animateZoom:function(l){var m=this._map.getZoomScale(l.zoom),x=this._map._latLngBoundsToNewLayerBounds(this._bounds,l.zoom,l.center).min;Zr(this._image,x,m)},_reset:function(){var l=this._image,m=new H(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),x=m.getSize();ln(l,m.min),l.style.width=x.x+"px",l.style.height=x.y+"px"},_updateOpacity:function(){sr(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var l=this.options.errorOverlayUrl;l&&this._url!==l&&(this._url=l,this._image.src=l)},getCenter:function(){return this._bounds.getCenter()}}),Am=function(l,m,x){return new Pa(l,m,x)},kf=Pa.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInl
364ine:!0},_initImage:function(){var l=this._url.tagName==="VIDEO",m=this._image=l?this._url:nt("video");if(tt(m,"leaflet-image-layer"),this._zoomAnimated&&tt(m,"leaflet-zoom-animated"),this.options.className&&tt(m,this.options.className),m.onselectstart=p,m.onmousemove=p,m.onloadeddata=o(this.fire,this,"load"),l){for(var x=m.getElementsByTagName("source"),N=[],D=0;D<x.length;D++)N.push(x[D].src);this._url=x.length>0?N:[m.src];return}C(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(m.style,"objectFit")&&(m.style.objectFit="fill"),m.autoplay=!!this.options.autoplay,m.loop=!!this.options.loop,m.muted=!!this.options.muted,m.playsInline=!!this.options.playsInline;for(var F=0;F<this._url.length;F++){var X=nt("source");X.src=this._url[F],m.appendChild(X)}}});function Tm(l,m,x){return new kf(l,m,x)}var Cf=Pa.extend({_initImage:function(){var l=this._image=this._url;tt(l,"leaflet-image-layer"),this._zoomAnimated&&tt(l,"leaflet-zoom-animated"),this.options.className&&tt(l,this.options.className),l.onselectstart=p,l.onmousemove=p}});function Of(l,m,x){return new Cf(l,m,x)}var wi=Jr.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(l,m){l&&(l instanceof ge||C(l))?(this._latlng=ye(l),S(this,m)):(S(this,l),this._source=m),this.options.content&&(this._content=this.options.content)},openOn:function(l){return l=arguments.length?l:this._source._map,l.hasLayer(this)||l.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(l){return this._map?this.close():(arguments.length?this._source=l:l=this._source,this._prepareOpen(),this.openOn(l._map)),this},onAdd:function(l){this._zoomAnimated=l._zoomAnimated,this._container||this._initLayout(),l._fadeAnimated&&sr(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),l._fadeAnimated&&sr(this._container,1),this.bringToFront(),this.options.interactive&&(tt(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(l){l._fadeAnimated?(sr(this._container,0),this._removeTimeout=setTimeout(o(zt,void 0,this._container),200)):zt(this._container),this.options.interactive&&(It(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(l){return this._latlng=ye(l),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(l){return this._content=l,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var l={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(l.zoomanim=this._animateZoom),l},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&rs(this._container),this},bringToBack:function(){return this._map&&Ui(this._container),this},_prepareOpen:function(l){var m=this._source;if(!m._map)return!1;if(m instanceof Ki){m=null;var x=this._source._layers;for(var N in x)if(x[N]._map){m=x[N];break}if(!m)return!1;this._source=m}if(!l)if(m.getCenter)l=m.getCenter();else if(m.getLatLng)l=m.getLatLng();else if(m.getBounds)l=m.getBounds().getCenter();else throw new Error("Unable to get source layer LatLng.");return this.setLatLng(l),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var l=this._contentNode,m=typeof this._content=="function"?this._content(this._source||this):this._content;if(typeof m=="string")l.innerHTML=m;else{for(;l.hasChildNodes();)l.removeChild(l.firstChild);l.appendChild(m)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var l=this._map.latLngToLayerPoint(this._latlng),m=U(this.options.offset),x=this._getAnchor();this._zoomAnimated?ln(this._container,l.add(x)):m=m.add(l).add(x);var N=this._containerBottom=-m.y,D=this._containerLeft=-Math.round(this._containerWidth/2)+m.x;this._container.style.bottom=N+"px",this._container.style.left=D+"px"}},_getAnchor:function(){return[0,0]}});ct.include({_initOverlay:function(l,m,x,N){var D=m;return D instanceof l||(D=new l(N).setContent(m)),x&&D.setLatLng(x),D}}),Jr.include({_initOverlay:function(l,m,x,N){var D=x;return D instanceof l?(S(D,N),D._source=this):(D=m&&!N?m:new l(N,this),D.setContent(x)),D}});var du=wi.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(l){return l=arguments.length?l:this._source._map,!l.hasLayer(this)&&l._popup&&l._popup.options.autoClose&&l.removeLayer(l._popup),l._popup=this,wi.prototype.openOn.call(this,l)},onAdd:function(l){wi.prototype.onAdd.call(this,l),l.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof ja||this._source.on("preclick",xi))},onRemove:function(l){wi.prototype.onRemove.call(this,l),l.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof ja||this._source.off("preclick",xi))},getEvents:function(){var l=wi.prototype.getEvents.call(this);return(this.options.closeOnClick!==void 0?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(l.preclick=this.close),this.options.keepInView&&
364(l.moveend=this._adjustPan),l},_initLayout:function(){var l="leaflet-popup",m=this._container=nt("div",l+" "+(this.options.className||"")+" leaflet-zoom-animated"),x=this._wrapper=nt("div",l+"-content-wrapper",m);if(this._contentNode=nt("div",l+"-content",x),Nl(m),Qc(this._contentNode),Qe(m,"contextmenu",xi),this._tipContainer=nt("div",l+"-tip-container",m),this._tip=nt("div",l+"-tip",this._tipContainer),this.options.closeButton){var N=this._closeButton=nt("a",l+"-close-button",m);N.setAttribute("role","button"),N.setAttribute("aria-label","Close popup"),N.href="#close",N.innerHTML='<span aria-hidden="true">&#215;</span>',Qe(N,"click",function(D){Jt(D),this.close()},this)}},_updateLayout:function(){var l=this._contentNode,m=l.style;m.width="",m.whiteSpace="nowrap";var x=l.offsetWidth;x=Math.min(x,this.options.maxWidth),x=Math.max(x,this.options.minWidth),m.width=x+1+"px",m.whiteSpace="",m.height="";var N=l.offsetHeight,D=this.options.maxHeight,F="leaflet-popup-scrolled";D&&N>D?(m.height=D+"px",tt(l,F)):It(l,F),this._containerWidth=this._container.offsetWidth},_animateZoom:function(l){var m=this._map._latLngToNewLayerPoint(this._latlng,l.zoom,l.center),x=this._getAnchor();ln(this._container,m.add(x))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var l=this._map,m=parseInt(_l(this._container,"marginBottom"),10)||0,x=this._container.offsetHeight+m,N=this._containerWidth,D=new W(this._containerLeft,-x-this._containerBottom);D._add(Hi(this._container));var F=l.layerPointToContainerPoint(D),X=U(this.options.autoPanPadding),se=U(this.options.autoPanPaddingTopLeft||X),ue=U(this.options.autoPanPaddingBottomRight||X),ve=l.getSize(),ke=0,Ve=0;F.x+N+ue.x>ve.x&&(ke=F.x+N-ve.x+ue.x),F.x-ke-se.x<0&&(ke=F.x-se.x),F.y+x+ue.y>ve.y&&(Ve=F.y+x-ve.y+ue.y),F.y-Ve-se.y<0&&(Ve=F.y-se.y),(ke||Ve)&&(this.options.keepInView&&(this._autopanning=!0),l.fire("autopanstart").panBy([ke,Ve]))}},_getAnchor:function(){return U(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),ps=function(l,m){return new du(l,m)};ct.mergeOptions({closePopupOnClick:!0}),ct.include({openPopup:function(l,m,x){return this._initOverlay(du,l,m,x).openOn(this),this},closePopup:function(l){return l=arguments.length?l:this._popup,l&&l.close(),this}}),Jr.include({bindPopup:function(l,m){return this._popup=this._initOverlay(du,this._popup,l,m),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(l){return this._popup&&(this instanceof Ki||(this._popup._source=this),this._popup._prepareOpen(l||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return this._popup?this._popup.isOpen():!1},setPopupContent:function(l){return this._popup&&this._popup.setContent(l),this},getPopup:function(){return this._popup},_openPopup:function(l){if(!(!this._popup||!this._map)){Xr(l);var m=l.layer||l.target;if(this._popup._source===m&&!(m instanceof ja)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(l.latlng);return}this._popup._source=m,this.openPopup(l.latlng)}},_movePopup:function(l){this._popup.setLatLng(l.latlng)},_onKeyPress:function(l){l.originalEvent.keyCode===13&&this._openPopup(l)}});var ms=wi.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(l){wi.prototype.onAdd.call(this,l),this.setOpacity(this.options.opacity),l.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(l){wi.prototype.onRemove.call(this,l),l.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var l=wi.prototype.getEvents.call(this);return this.options.permanent||(l.preclick=this.close),l},_initLayout:function(){var l="leaflet-tooltip",m=l+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=nt("div",m),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+f(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(l){var m,x,N=this._map,D=this._container,F=N.latLngToContainerPoint(N.getCenter()),X=N.layerPointToContainerPoint(l),se=this.options.direction,ue=D.offsetWidth,ve=D.offsetHeight,ke=U(this.options.offset),Ve=this._getAnchor();se==="top"?(m=ue/2,x=ve):se==="bottom"?(m=ue/2,x=0):se==="center"?(m=ue/2,x=ve/2):se==="right"?(m=0,x=ve/2):se==="left"?
364(m=ue,x=ve/2):X.x<F.x?(se="right",m=0,x=ve/2):(se="left",m=ue+(ke.x+Ve.x)*2,x=ve/2),l=l.subtract(U(m,x,!0)).add(ke).add(Ve),It(D,"leaflet-tooltip-right"),It(D,"leaflet-tooltip-left"),It(D,"leaflet-tooltip-top"),It(D,"leaflet-tooltip-bottom"),tt(D,"leaflet-tooltip-"+se),ln(D,l)},_updatePosition:function(){var l=this._map.latLngToLayerPoint(this._latlng);this._setPosition(l)},setOpacity:function(l){this.options.opacity=l,this._container&&sr(this._container,l)},_animateZoom:function(l){var m=this._map._latLngToNewLayerPoint(this._latlng,l.zoom,l.center);this._setPosition(m)},_getAnchor:function(){return U(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),El=function(l,m){return new ms(l,m)};ct.include({openTooltip:function(l,m,x){return this._initOverlay(ms,l,m,x).openOn(this),this},closeTooltip:function(l){return l.close(),this}}),Jr.include({bindTooltip:function(l,m){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(ms,this._tooltip,l,m),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(l){if(!(!l&&this._tooltipHandlersAdded)){var m=l?"off":"on",x={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?x.add=this._openTooltip:(x.mouseover=this._openTooltip,x.mouseout=this.closeTooltip,x.click=this._openTooltip,this._map?this._addFocusListeners():x.add=this._addFocusListeners),this._tooltip.options.sticky&&(x.mousemove=this._moveTooltip),this[m](x),this._tooltipHandlersAdded=!l}},openTooltip:function(l){return this._tooltip&&(this instanceof Ki||(this._tooltip._source=this),this._tooltip._prepareOpen(l)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(l){return this._tooltip&&this._tooltip.setContent(l),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(l){var m=typeof l.getElement=="function"&&l.getElement();m&&(Qe(m,"focus",function(){this._tooltip._source=l,this.openTooltip()},this),Qe(m,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(l){var m=typeof l.getElement=="function"&&l.getElement();m&&m.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(l){if(!(!this._tooltip||!this._map)){if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var m=this;this._map.once("moveend",function(){m._openOnceFlag=!1,m._openTooltip(l)});return}this._tooltip._source=l.layer||l.target,this.openTooltip(this._tooltip.options.sticky?l.latlng:void 0)}},_moveTooltip:function(l){var m=l.latlng,x,N;this._tooltip.options.sticky&&l.originalEvent&&(x=this._map.mouseEventToContainerPoint(l.originalEvent),N=this._map.containerPointToLayerPoint(x),m=this._map.layerPointToLatLng(N)),this._tooltip.setLatLng(m)}});var fu=io.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(l){var m=l&&l.tagName==="DIV"?l:document.createElement("div"),x=this.options;if(x.html instanceof Element?(Hc(m),m.appendChild(x.html)):m.innerHTML=x.html!==!1?x.html:"",x.bgPos){var N=U(x.bgPos);m.style.backgroundPosition=-N.x+"px "+-N.y+"px"}return this._setIconStyles(m,"icon"),m},createShadow:function(){return null}});function km(l){return new fu(l)}io.Default=ds;var Na=Jr.extend({options:{tileSize:256,opacity:1,updateWhenIdle:Fe.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(l){S(this,l)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(l){l._addZoomLimit(this)},onRemove:function(l){this._removeAllTiles(),zt(this._container),l._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(rs(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(Ui(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(l){return this.options.opacity=l,this._updateOpacity(),this},setZIndex:function(l){return this.options.zIndex=l,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var l=this._clampZoom(this._map.getZoom());l!==this._tileZoom&&(this._tileZoom=l,this._updateLevels()),this._update()}return this},getEvents:function(){var l={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=h(this._onMoveEnd,this.options.updateInterval,this)),l.move=this._onMove),this._zoomAnimated&&(l.zoomanim=this._animateZoom),l},createTile:function(){return document.createElement("div")},getTileSize:function(){var l=this.options.tileSize;return l instanceof W?l:new W(l,l)},_updateZIndex:function(){this._container&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(l){for(var m=this.getPane().children,x=-l(-1/0,1/0),N=0,D=m.length,F;N<D;N++)F=m[N].style.zIndex,m[N]!==this._container&&F&&(x=l(x,+F));isFinite(x)&&(this.options.zIndex=x+l(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!Fe.ielt9){sr(this._container,this.options.opacity);var l=+new Date,m=!1,x=!1;for(var N in this._tiles){var D=this._tiles[N];if(!(!D.current||!D.loaded)){var F=Math.min(1,(l-D.loaded)/200);sr(D.el,F),F<1?m=!0:(D.active?x=!0:this._onOpaqueTile(D),D.active=!0)}}x&&!this._noPrune&&this._pruneTiles(),m&&(q(this._fadeFrame),this._fadeFrame=V(this._updateOpacity,this))}},_onOpaqueTile:p,_initContainer:function(){this._container||(this._container=nt("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var l=this._tileZoom,m=this.options.maxZoom;if(l!==void 0){for(var x in this._levels)x=Number(x),this._levels[x].el.children.length||x===l?(this._levels[x].el.style.zIndex=m-Math.abs(l-x),this._onUpdateLevel(x)):(zt(this._levels[x].el),this._removeTilesAtZoom(x),this._onRemoveLevel(x),delete this._levels[x]);var N=this._levels[l],D=this._map;return N||(N=this._levels[l]={},N.el=nt("div","leaflet-tile-container leaflet-zoom-animated",this._container),N.el.style.zIndex=m,N.origin=D.project(D.unproject(D.getPixelOrigin()),l).round(),N.zoom=l,this._setZoomTransform(N,D.getCenter(),D.getZoom()),p(N.el.offsetWidth),this._onCreateLevel(N)),this._level=N,N}},_onUpdateLevel:p,_onRemoveLevel:p,_onCreateLevel:p,_pruneTiles:function(){if(this._map){var l,m,x=this._map.getZoom();if(x>this.options.maxZoom||x<this.options.minZoom){this._removeAllTiles();return}for(l in this._tiles)m=this._tiles[l],m.retain=m.current;for(l in this._tiles)if(m=this._tiles[l],m.current&&!m.active){var N=m.coords;this._retainParent(N.x,N.y,N.z,N.z-5)||this._retainChildren(N.x,N.y,N.z,N.z+2)}for(l in this._tiles)this._tiles[l].retain||this._removeTile(l)}},_removeTilesAtZoom:function(l){for(var m in this._tiles)this._tiles[m].coords.z===l&&this._removeTile(m)},_removeAllTiles:function(){for(var l in this._tiles)this._removeTile(l)},_invalidateAll:function(){for(var l in this._levels)zt(this._levels[l].el),this._onRemoveLevel(Number(l)),delete this._levels[l];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(l,m,x,N){var D=Math.floor(l/2),F=Math.floor(m/2),X=x-1,se=new W(+D,+F);se.z=+X;var ue=this._tileCoordsToKey(se),ve=this._tiles[ue];return ve&&ve.active?(ve.retain=!0,!0):(ve&&ve.loaded&&(ve.retain=!0),X>N?this._retainParent(D,F,X,N):!1)},_retainChildren:function(l,m,x,N){for(var D=2*l;D<2*l+2;D++)for(var F=2*m;F<2*m+2;F++){var X=new W(D,F);X.z=x+1;var se=this._tileCoordsToKey(X),ue=this._tiles[se];if(ue&&ue.active){ue.retain=!0;continue}else ue&&ue.loaded&&(ue.retain=!0);x+1<N&&this._retainChildren(D,F,x+1,N)}},_resetView:function(l){var m=l&&(l.pinch||l.flyTo);
364this._setView(this._map.getCenter(),this._map.getZoom(),m,m)},_animateZoom:function(l){this._setView(l.center,l.zoom,!0,l.noUpdate)},_clampZoom:function(l){var m=this.options;return m.minNativeZoom!==void 0&&l<m.minNativeZoom?m.minNativeZoom:m.maxNativeZoom!==void 0&&m.maxNativeZoom<l?m.maxNativeZoom:l},_setView:function(l,m,x,N){var D=Math.round(m);this.options.maxZoom!==void 0&&D>this.options.maxZoom||this.options.minZoom!==void 0&&D<this.options.minZoom?D=void 0:D=this._clampZoom(D);var F=this.options.updateWhenZooming&&D!==this._tileZoom;(!N||F)&&(this._tileZoom=D,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),D!==void 0&&this._update(l),x||this._pruneTiles(),this._noPrune=!!x),this._setZoomTransforms(l,m)},_setZoomTransforms:function(l,m){for(var x in this._levels)this._setZoomTransform(this._levels[x],l,m)},_setZoomTransform:function(l,m,x){var N=this._map.getZoomScale(x,l.zoom),D=l.origin.multiplyBy(N).subtract(this._map._getNewPixelOrigin(m,x)).round();Fe.any3d?Zr(l.el,D,N):ln(l.el,D)},_resetGrid:function(){var l=this._map,m=l.options.crs,x=this._tileSize=this.getTileSize(),N=this._tileZoom,D=this._map.getPixelWorldBounds(this._tileZoom);D&&(this._globalTileRange=this._pxBoundsToTileRange(D)),this._wrapX=m.wrapLng&&!this.options.noWrap&&[Math.floor(l.project([0,m.wrapLng[0]],N).x/x.x),Math.ceil(l.project([0,m.wrapLng[1]],N).x/x.y)],this._wrapY=m.wrapLat&&!this.options.noWrap&&[Math.floor(l.project([m.wrapLat[0],0],N).y/x.x),Math.ceil(l.project([m.wrapLat[1],0],N).y/x.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(l){var m=this._map,x=m._animatingZoom?Math.max(m._animateToZoom,m.getZoom()):m.getZoom(),N=m.getZoomScale(x,this._tileZoom),D=m.project(l,this._tileZoom).floor(),F=m.getSize().divideBy(N*2);return new H(D.subtract(F),D.add(F))},_update:function(l){var m=this._map;if(m){var x=this._clampZoom(m.getZoom());if(l===void 0&&(l=m.getCenter()),this._tileZoom!==void 0){var N=this._getTiledPixelBounds(l),D=this._pxBoundsToTileRange(N),F=D.getCenter(),X=[],se=this.options.keepBuffer,ue=new H(D.getBottomLeft().subtract([se,-se]),D.getTopRight().add([se,-se]));if(!(isFinite(D.min.x)&&isFinite(D.min.y)&&isFinite(D.max.x)&&isFinite(D.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var ve in this._tiles){var ke=this._tiles[ve].coords;(ke.z!==this._tileZoom||!ue.contains(new W(ke.x,ke.y)))&&(this._tiles[ve].current=!1)}if(Math.abs(x-this._tileZoom)>1){this._setView(l,x);return}for(var Ve=D.min.y;Ve<=D.max.y;Ve++)for(var it=D.min.x;it<=D.max.x;it++){var kn=new W(it,Ve);if(kn.z=this._tileZoom,!!this._isValidTile(kn)){var xn=this._tiles[this._tileCoordsToKey(kn)];xn?xn.current=!0:X.push(kn)}}if(X.sort(function(cr,bs){return cr.distanceTo(F)-bs.distanceTo(F)}),X.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var jr=document.createDocumentFragment();for(it=0;it<X.length;it++)this._addTile(X[it],jr);this._level.el.appendChild(jr)}}}},_isValidTile:function(l){var m=this._map.options.crs;if(!m.infinite){var x=this._globalTileRange;if(!m.wrapLng&&(l.x<x.min.x||l.x>x.max.x)||!m.wrapLat&&(l.y<x.min.y||l.y>x.max.y))return!1}if(!this.options.bounds)return!0;var N=this._tileCoordsToBounds(l);return we(this.options.bounds).overlaps(N)},_keyToBounds:function(l){return this._tileCoordsToBounds(this._keyToTileCoords(l))},_tileCoordsToNwSe:function(l){var m=this._map,x=this.getTileSize(),N=l.scaleBy(x),D=N.add(x),F=m.unproject(N,l.z),X=m.unproject(D,l.z);return[F,X]},_tileCoordsToBounds:function(l){var m=this._tileCoordsToNwSe(l),x=new pe(m[0],m[1]);return this.options.noWrap||(x=this._map.wrapLatLngBounds(x)),x},_tileCoordsToKey:function(l){return l.x+":"+l.y+":"+l.z},_keyToTileCoords:function(l){var m=l.split(":"),x=new W(+m[0],+m[1]);return x.z=+m[2],x},_removeTile:function(l){var m=this._tiles[l];m&&(zt(m.el),delete this._tiles[l],this.fire("tileunload",{tile:m.el,coords:this._keyToTileCoords(l)}))},_initTile:function(l){tt(l,"leaflet-tile");var m=this.getTileSize();l.style.width=m.x+"px",l.style.height=m.y+"px",l.onselectstart=p,l.onmousemove=p,Fe.ielt9&&this.options.opacity<1&&sr(l,this.options.opacity)},_addTile:function(l,m){var x=this._getTilePos(l),N=this._tileCoordsToKey(l),D=this.createTile(this._wrapCoords(l),o(this._tileReady,this,l));this._initTile(D),this.createTile.length<2&&V(o(this._tileReady,this,l,null,D)),ln(D,x),this._tiles[N]={el:D,coords:l,current:!0}
364,m.appendChild(D),this.fire("tileloadstart",{tile:D,coords:l})},_tileReady:function(l,m,x){m&&this.fire("tileerror",{error:m,tile:x,coords:l});var N=this._tileCoordsToKey(l);x=this._tiles[N],x&&(x.loaded=+new Date,this._map._fadeAnimated?(sr(x.el,0),q(this._fadeFrame),this._fadeFrame=V(this._updateOpacity,this)):(x.active=!0,this._pruneTiles()),m||(tt(x.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:x.el,coords:l})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),Fe.ielt9||!this._map._fadeAnimated?V(this._pruneTiles,this):setTimeout(o(this._pruneTiles,this),250)))},_getTilePos:function(l){return l.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(l){var m=new W(this._wrapX?g(l.x,this._wrapX):l.x,this._wrapY?g(l.y,this._wrapY):l.y);return m.z=l.z,m},_pxBoundsToTileRange:function(l){var m=this.getTileSize();return new H(l.min.unscaleBy(m).floor(),l.max.unscaleBy(m).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var l in this._tiles)if(!this._tiles[l].loaded)return!1;return!0}});function gs(l){return new Na(l)}var Aa=Na.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(l,m){this._url=l,m=S(this,m),m.detectRetina&&Fe.retina&&m.maxZoom>0?(m.tileSize=Math.floor(m.tileSize/2),m.zoomReverse?(m.zoomOffset--,m.minZoom=Math.min(m.maxZoom,m.minZoom+1)):(m.zoomOffset++,m.maxZoom=Math.max(m.minZoom,m.maxZoom-1)),m.minZoom=Math.max(0,m.minZoom)):m.zoomReverse?m.minZoom=Math.min(m.maxZoom,m.minZoom):m.maxZoom=Math.max(m.minZoom,m.maxZoom),typeof m.subdomains=="string"&&(m.subdomains=m.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(l,m){return this._url===l&&m===void 0&&(m=!0),this._url=l,m||this.redraw(),this},createTile:function(l,m){var x=document.createElement("img");return Qe(x,"load",o(this._tileOnLoad,this,m,x)),Qe(x,"error",o(this._tileOnError,this,m,x)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(x.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(x.referrerPolicy=this.options.referrerPolicy),x.alt="",x.src=this.getTileUrl(l),x},getTileUrl:function(l){var m={r:Fe.retina?"@2x":"",s:this._getSubdomain(l),x:l.x,y:l.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var x=this._globalTileRange.max.y-l.y;this.options.tms&&(m.y=x),m["-y"]=x}return O(this._url,i(m,this.options))},_tileOnLoad:function(l,m){Fe.ielt9?setTimeout(o(l,this,null,m),0):l(null,m)},_tileOnError:function(l,m,x){var N=this.options.errorTileUrl;N&&m.getAttribute("src")!==N&&(m.src=N),l(x,m)},_onTileRemove:function(l){l.tile.onload=null},_getZoomForUrl:function(){var l=this._tileZoom,m=this.options.maxZoom,x=this.options.zoomReverse,N=this.options.zoomOffset;return x&&(l=m-l),l+N},_getSubdomain:function(l){var m=Math.abs(l.x+l.y)%this.options.subdomains.length;return this.options.subdomains[m]},_abortLoading:function(){var l,m;for(l in this._tiles)if(this._tiles[l].coords.z!==this._tileZoom&&(m=this._tiles[l].el,m.onload=p,m.onerror=p,!m.complete)){m.src=T;var x=this._tiles[l].coords;zt(m),delete this._tiles[l],this.fire("tileabort",{tile:m,coords:x})}},_removeTile:function(l){var m=this._tiles[l];if(m)return m.el.setAttribute("src",T),Na.prototype._removeTile.call(this,l)},_tileReady:function(l,m,x){if(!(!this._map||x&&x.getAttribute("src")===T))return Na.prototype._tileReady.call(this,l,m,x)}});function Ef(l,m){return new Aa(l,m)}var Ml=Aa.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(l,m){this._url=l;var x=i({},this.defaultWmsParams);for(var N in m)N in this.options||(x[N]=m[N]);m=S(this,m);var D=m.detectRetina&&Fe.retina?2:1,F=this.getTileSize();x.width=F.x*D,x.height=F.y*D,this.wmsParams=x},onAdd:function(l){this._crs=this.options.crs||l.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var m=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[m]=this._crs.code,Aa.prototype.onAdd.call(this,l)},getTileUrl:function(l){var m=this._tileCoordsToNwSe(l),x=this._crs,N=ee(x.project(m[0]),x.project(m[1])),D=N.min,F=N.max,X=(this._wmsVersion>=1.3&&this._crs===_m?[D.y,D.x,F.y,F.x]:[D.x,D.y,F.x,F.y]).join(","),se=Aa.prototype.getTileUrl.call(this,l);return se+_(this.wmsParams,se,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+X},setParams:function(l,m){return i(this.wmsParams,l),m||this.redraw(),this}});function Cm(l,m){return new Ml(l,m)}Aa.WMS=Ml,Ef.wms=Cm;var _i=Jr.extend({options:{padding:.1},initialize:function(l){S(this,l),f(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),tt(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var l={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(l.zoomanim=this._onAnimZoom),l},_onAnimZoom:function(l){this._updateTransform(l.center,l.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(l,m){var x=this._map.getZoomScale(m,this._zoom),N=this._map.getSize().multiplyBy(.5+this.options.padding),D=this._map.project(this._center,m),F=N.multiplyBy(-x).add(D).subtract(this._map._getNewPixelOrigin(l,m));Fe.any3d?Zr(this._container,F,x):ln(this._container,F)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var l in this._layers)this._layers[l]._reset()},_onZoomEnd:function(){for(var l in this._layers)this._layers[l]._project()},_updatePaths:function(){for(var l in this._layers)this._layers[l]._update()},_update:function(){var l=this.options.padding,m=this._map.getSize(),x=this._map.containerPointToLayerPoint(m.multiplyBy(-l)).round();
364this._bounds=new H(x,x.add(m.multiplyBy(1+l*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Mf=_i.extend({options:{tolerance:0},getEvents:function(){var l=_i.prototype.getEvents.call(this);return l.viewprereset=this._onViewPreReset,l},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){_i.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var l=this._container=document.createElement("canvas");Qe(l,"mousemove",this._onMouseMove,this),Qe(l,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Qe(l,"mouseout",this._handleMouseOut,this),l._leaflet_disable_events=!0,this._ctx=l.getContext("2d")},_destroyContainer:function(){q(this._redrawRequest),delete this._ctx,zt(this._container),Ct(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var l;this._redrawBounds=null;for(var m in this._layers)l=this._layers[m],l._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){_i.prototype._update.call(this);var l=this._bounds,m=this._container,x=l.getSize(),N=Fe.retina?2:1;ln(m,l.min),m.width=N*x.x,m.height=N*x.y,m.style.width=x.x+"px",m.style.height=x.y+"px",Fe.retina&&this._ctx.scale(2,2),this._ctx.translate(-l.min.x,-l.min.y),this.fire("update")}},_reset:function(){_i.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(l){this._updateDashArray(l),this._layers[f(l)]=l;var m=l._order={layer:l,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=m),this._drawLast=m,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(l){this._requestRedraw(l)},_removePath:function(l){var m=l._order,x=m.next,N=m.prev;x?x.prev=N:this._drawLast=N,N?N.next=x:this._drawFirst=x,delete l._order,delete this._layers[f(l)],this._requestRedraw(l)},_updatePath:function(l){this._extendRedrawBounds(l),l._project(),l._update(),this._requestRedraw(l)},_updateStyle:function(l){this._updateDashArray(l),this._requestRedraw(l)},_updateDashArray:function(l){if(typeof l.options.dashArray=="string"){var m=l.options.dashArray.split(/[, ]+/),x=[],N,D;for(D=0;D<m.length;D++){if(N=Number(m[D]),isNaN(N))return;x.push(N)}l.options._dashArray=x}else l.options._dashArray=l.options.dashArray},_requestRedraw:function(l){this._map&&(this._extendRedrawBounds(l),this._redrawRequest=this._redrawRequest||V(this._redraw,this))},_extendRedrawBounds:function(l){if(l._pxBounds){var m=(l.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new H,this._redrawBounds.extend(l._pxBounds.min.subtract([m,m])),this._redrawBounds.extend(l._pxBounds.max.add([m,m]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var l=this._redrawBounds;if(l){var m=l.getSize();this._ctx.clearRect(l.min.x,l.min.y,m.x,m.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var l,m=this._redrawBounds;if(this._ctx.save(),m){var x=m.getSize();this._ctx.beginPath(),this._ctx.rect(m.min.x,m.min.y,x.x,x.y),this._ctx.clip()}this._drawing=!0;for(var N=this._drawFirst;N;N=N.next)l=N.layer,(!m||l._pxBounds&&l._pxBounds.intersects(m))&&l._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(l,m){if(this._drawing){var x,N,D,F,X=l._parts,se=X.length,ue=this._ctx;if(se){for(ue.beginPath(),x=0;x<se;x++){for(N=0,D=X[x].length;N<D;N++)F=X[x][N],ue[N?"lineTo":"moveTo"](F.x,F.y);m&&ue.closePath()}this._fillStroke(ue,l)}}},_updateCircle:function(l){if(!(!this._drawing||l._empty())){var m=l._point,x=this._ctx,N=Math.max(Math.round(l._radius),1),D=(Math.max(Math.round(l._radiusY),1)||N)/N;D!==1&&(x.save(),x.scale(1,D)),x.beginPath(),x.arc(m.x,m.y/D,N,0,Math.PI*2,!1),D!==1&&x.restore(),this._fillStroke(x,l)}},_fillStroke:function(l,m){var x=m.options;x.fill&&(l.globalAlpha=x.fillOpacity,l.fillStyle=x.fillColor||x.color,l.fill(x.fillRule||"evenodd")),x.stroke&&x.weight!==0&&(l.setLineDash&&l.setLineDash(m.options&&m.options._dashArray||[]),l.globalAlpha=x.opacity,l.lineWidth=x.weight,l.strokeStyle=x.color,l.lineCap=x.lineCap,l.lineJoin=x.lineJoin,l.stroke())},_onClick:function(l){for(var m=this._map.mouseEventToLayerPoint(l),x,N,D=this._drawFirst;D;
364D=D.next)x=D.layer,x.options.interactive&&x._containsPoint(m)&&(!(l.type==="click"||l.type==="preclick")||!this._map._draggableMoved(x))&&(N=x);this._fireEvent(N?[N]:!1,l)},_onMouseMove:function(l){if(!(!this._map||this._map.dragging.moving()||this._map._animatingZoom)){var m=this._map.mouseEventToLayerPoint(l);this._handleMouseHover(l,m)}},_handleMouseOut:function(l){var m=this._hoveredLayer;m&&(It(this._container,"leaflet-interactive"),this._fireEvent([m],l,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(l,m){if(!this._mouseHoverThrottled){for(var x,N,D=this._drawFirst;D;D=D.next)x=D.layer,x.options.interactive&&x._containsPoint(m)&&(N=x);N!==this._hoveredLayer&&(this._handleMouseOut(l),N&&(tt(this._container,"leaflet-interactive"),this._fireEvent([N],l,"mouseover"),this._hoveredLayer=N)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,l),this._mouseHoverThrottled=!0,setTimeout(o(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(l,m,x){this._map._fireDOMEvent(m,x||m.type,l)},_bringToFront:function(l){var m=l._order;if(m){var x=m.next,N=m.prev;if(x)x.prev=N;else return;N?N.next=x:x&&(this._drawFirst=x),m.prev=this._drawLast,this._drawLast.next=m,m.next=null,this._drawLast=m,this._requestRedraw(l)}},_bringToBack:function(l){var m=l._order;if(m){var x=m.next,N=m.prev;if(N)N.next=x;else return;x?x.prev=N:N&&(this._drawLast=N),m.prev=null,m.next=this._drawFirst,this._drawFirst.prev=m,this._drawFirst=m,this._requestRedraw(l)}}});function Rf(l){return Fe.canvas?new Mf(l):null}var vs=(function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(l){return document.createElement("<lvml:"+l+' class="lvml">')}}catch{}return function(l){return document.createElement("<"+l+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}})(),Om={_initContainer:function(){this._container=nt("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(_i.prototype._update.call(this),this.fire("update"))},_initPath:function(l){var m=l._container=vs("shape");tt(m,"leaflet-vml-shape "+(this.options.className||"")),m.coordsize="1 1",l._path=vs("path"),m.appendChild(l._path),this._updateStyle(l),this._layers[f(l)]=l},_addPath:function(l){var m=l._container;this._container.appendChild(m),l.options.interactive&&l.addInteractiveTarget(m)},_removePath:function(l){var m=l._container;zt(m),l.removeInteractiveTarget(m),delete this._layers[f(l)]},_updateStyle:function(l){var m=l._stroke,x=l._fill,N=l.options,D=l._container;D.stroked=!!N.stroke,D.filled=!!N.fill,N.stroke?(m||(m=l._stroke=vs("stroke")),D.appendChild(m),m.
364weight=N.weight+"px",m.color=N.color,m.opacity=N.opacity,N.dashArray?m.dashStyle=C(N.dashArray)?N.dashArray.join(" "):N.dashArray.replace(/( *, *)/g," "):m.dashStyle="",m.endcap=N.lineCap.replace("butt","flat"),m.joinstyle=N.lineJoin):m&&(D.removeChild(m),l._stroke=null),N.fill?(x||(x=l._fill=vs("fill")),D.appendChild(x),x.color=N.fillColor||N.color,x.opacity=N.fillOpacity):x&&(D.removeChild(x),l._fill=null)},_updateCircle:function(l){var m=l._point.round(),x=Math.round(l._radius),N=Math.round(l._radiusY||x);this._setPath(l,l._empty()?"M0 0":"AL "+m.x+","+m.y+" "+x+","+N+" 0,"+65535*360)},_setPath:function(l,m){l._path.v=m},_bringToFront:function(l){rs(l._container)},_bringToBack:function(l){Ui(l._container)}},ti=Fe.vml?vs:at,ao=_i.extend({_initContainer:function(){this._container=ti("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=ti("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){zt(this._container),Ct(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){_i.prototype._update.call(this);var l=this._bounds,m=l.getSize(),x=this._container;(!this._svgSize||!this._svgSize.equals(m))&&(this._svgSize=m,x.setAttribute("width",m.x),x.setAttribute("height",m.y)),ln(x,l.min),x.setAttribute("viewBox",[l.min.x,l.min.y,m.x,m.y].join(" ")),this.fire("update")}},_initPath:function(l){var m=l._path=ti("path");l.options.className&&tt(m,l.options.className),l.options.interactive&&tt(m,"leaflet-interactive"),this._updateStyle(l),this._layers[f(l)]=l},_addPath:function(l){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(l._path),l.addInteractiveTarget(l._path)},_removePath:function(l){zt(l._path),l.removeInteractiveTarget(l._path),delete this._layers[f(l)]},_updatePath:function(l){l._project(),l._update()},_updateStyle:function(l){var m=l._path,x=l.options;m&&(x.stroke?(m.setAttribute("stroke",x.color),m.setAttribute("stroke-opacity",x.opacity),m.setAttribute("stroke-width",x.weight),m.setAttribute("stroke-linecap",x.lineCap),m.setAttribute("stroke-linejoin",x.lineJoin),x.dashArray?m.setAttribute("stroke-dasharray",x.dashArray):m.removeAttribute("stroke-dasharray"),x.dashOffset?m.setAttribute("stroke-dashoffset",x.dashOffset):m.removeAttribute("stroke-dashoffset")):m.setAttribute("stroke","none"),x.fill?(m.setAttribute("fill",x.fillColor||x.color),m.setAttribute("fill-opacity",x.fillOpacity),m.setAttribute("fill-rule",x.fillRule||"evenodd")):m.setAttribute("fill","none"))},_updatePoly:function(l,m){this._setPath(l,dt(l._parts,m))},_updateCircle:function(l){var m=l._point,x=Math.max(Math.round(l._radius),1),N=Math.max(Math.round(l._radiusY),1)||x,D="a"+x+","+N+" 0 1,0 ",F=l._empty()?"M0 0":"M"+(m.x-x)+","+m.y+D+x*2+",0 "+D+-x*2+",0 ";this._setPath(l,F)},_setPath:function(l,m){l._path.setAttribute("d",m)},_bringToFront:function(l){rs(l._path)},_bringToBack:function(l){Ui(l._path)}});Fe.vml&&ao.include(Om);function hu(l){return Fe.svg||Fe.vml?new ao(l):null}ct.include({getRenderer:function(l){var m=l.options.renderer||this._getPaneRenderer(l.options.pane)||this.options.renderer||this._renderer;return m||(m=this._renderer=this._createRenderer()),this.hasLayer(m)||this.addLayer(m),m},_getPaneRenderer:function(l){if(l==="overlayPane"||l===void 0)return!1;var m=this._paneRenderers[l];return m===void 0&&(m=this._createRenderer({pane:l}),this._paneRenderers[l]=m),m},_createRenderer:function(l){return this.options.preferCanvas&&Rf(l)||hu(l)}});var Em=Yi.extend({initialize:function(l,m){Yi.prototype.initialize.call(this,this._boundsToLatLngs(l),m)},setBounds:function(l){return this.setLatLngs(this._boundsToLatLngs(l))}
364,_boundsToLatLngs:function(l){return l=we(l),[l.getSouthWest(),l.getNorthWest(),l.getNorthEast(),l.getSouthEast()]}});function Vx(l,m){return new Em(l,m)}ao.create=ti,ao.pointsToPath=dt,bi.geometryToLayer=fs,bi.coordsToLatLng=su,bi.coordsToLatLngs=Ol,bi.latLngToCoords=lu,bi.latLngsToCoords=cu,bi.getFeature=hs,bi.asFeature=uu,ct.mergeOptions({boxZoom:!0});var ys=Cr.extend({initialize:function(l){this._map=l,this._container=l._container,this._pane=l._panes.overlayPane,this._resetStateTimeout=0,l.on("unload",this._destroy,this)},addHooks:function(){Qe(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Ct(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){zt(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){this._resetStateTimeout!==0&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(l){if(!l.shiftKey||l.which!==1&&l.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),mt(),Zc(),this._startPoint=this._map.mouseEventToContainerPoint(l),Qe(document,{contextmenu:Xr,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(l){this._moved||(this._moved=!0,this._box=nt("div","leaflet-zoom-box",this._container),tt(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(l);var m=new H(this._point,this._startPoint),x=m.getSize();ln(this._box,m.min),this._box.style.width=x.x+"px",this._box.style.height=x.y+"px"},_finish:function(){this._moved&&(zt(this._box),It(this._container,"leaflet-crosshair")),os(),Yc(),Ct(document,{contextmenu:Xr,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(l){if(!(l.which!==1&&l.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(o(this._resetState,this),0);var m=new pe(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(m).fire("boxzoomend",{boxZoomBounds:m})}},_onKeyDown:function(l){l.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});ct.addInitHook("addHandler","boxZoom",ys),ct.mergeOptions({doubleClickZoom:!0});var Mm=Cr.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(l){var m=this._map,x=m.getZoom(),N=m.options.zoomDelta,D=l.originalEvent.shiftKey?x-N:x+N;m.options.doubleClickZoom==="center"?m.setZoom(D):m.setZoomAround(l.containerPoint,D)}});ct.addInitHook("addHandler","doubleClickZoom",Mm),ct.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var Df=Cr.extend({addHooks:function(){if(!this._draggable){var l=this._map;this._draggable=new Qr(l._mapPane,l._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),l.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),l.on("zoomend",this._onZoomEnd,this),l.whenReady(this._onZoomEnd,this))}tt(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){It(this._map._container,"leaflet-grab"),It(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var l=this._map;if(l._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var m=we(this._map.options.maxBounds);this._offsetLimit=ee(this._map.latLngToContainerPoint(m.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(m.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;l.fire("movestart").fire("dragstart"),l.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(l){if(this._map.options.inertia){var m=this._lastTime=+new Date,x=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(x),this._times.push(m),this._prunePositions(m)}this._map.fire("move",l).fire("drag",l)}
364,_prunePositions:function(l){for(;this._positions.length>1&&l-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var l=this._map.getSize().divideBy(2),m=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=m.subtract(l).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(l,m){return l-(l-m)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var l=this._draggable._newPos.subtract(this._draggable._startPos),m=this._offsetLimit;l.x<m.min.x&&(l.x=this._viscousLimit(l.x,m.min.x)),l.y<m.min.y&&(l.y=this._viscousLimit(l.y,m.min.y)),l.x>m.max.x&&(l.x=this._viscousLimit(l.x,m.max.x)),l.y>m.max.y&&(l.y=this._viscousLimit(l.y,m.max.y)),this._draggable._newPos=this._draggable._startPos.add(l)}},_onPreDragWrap:function(){var l=this._worldWidth,m=Math.round(l/2),x=this._initialWorldOffset,N=this._draggable._newPos.x,D=(N-m+x)%l+m-x,F=(N+m+x)%l-m-x,X=Math.abs(D+x)<Math.abs(F+x)?D:F;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=X},_onDragEnd:function(l){var m=this._map,x=m.options,N=!x.inertia||l.noInertia||this._times.length<2;if(m.fire("dragend",l),N)m.fire("moveend");else{this._prunePositions(+new Date);var D=this._lastPos.subtract(this._positions[0]),F=(this._lastTime-this._times[0])/1e3,X=x.easeLinearity,se=D.multiplyBy(X/F),ue=se.distanceTo([0,0]),ve=Math.min(x.inertiaMaxSpeed,ue),ke=se.multiplyBy(ve/ue),Ve=ve/(x.inertiaDeceleration*X),it=ke.multiplyBy(-Ve/2).round();!it.x&&!it.y?m.fire("moveend"):(it=m._limitOffset(it,m.options.maxBounds),V(function(){m.panBy(it,{duration:Ve,easeLinearity:X,noMoveStart:!0,animate:!0})}))}}});ct.addInitHook("addHandler","dragging",Df),ct.mergeOptions({keyboard:!0,keyboardPanDelta:80});var If=Cr.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(l){this._map=l,this._setPanDelta(l.options.keyboardPanDelta),this._setZoomDelta(l.options.zoomDelta)},addHooks:function(){var l=this._map._container;l.tabIndex<=0&&(l.tabIndex="0"),Qe(l,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),Ct(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var l=document.body,m=document.documentElement,x=l.scrollTop||m.scrollTop,N=l.scrollLeft||m.scrollLeft;this._map._container.focus(),window.scrollTo(N,x)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(l){var m=this._panKeys={},x=this.keyCodes,N,D;for(N=0,D=x.left.length;N<D;N++)m[x.left[N]]=[-1*l,0];for(N=0,D=x.right.length;N<D;N++)m[x.right[N]]=[l,0];for(N=0,D=x.down.length;N<D;N++)m[x.down[N]]=[0,l];for(N=0,D=x.up.length;N<D;N++)m[x.up[N]]=[0,-1*l]},_setZoomDelta:function(l){var m=this._zoomKeys={},x=this.keyCodes,N,D;for(N=0,D=x.zoomIn.length;N<D;N++)m[x.zoomIn[N]]=l;for(N=0,D=x.zoomOut.length;N<D;N++)m[x.zoomOut[N]]=-l},_addHooks:function(){Qe(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){Ct(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(l){if(!(l.altKey||l.ctrlKey||l.metaKey)){var m=l.keyCode,x=this._map,N;if(m in this._panKeys){if(!x._panAnim||!x._panAnim._inProgress)if(N=this._panKeys[m],l.shiftKey&&(N=U(N).multiplyBy(3)),x.options.maxBounds&&(N=x._limitOffset(U(N),x.options.maxBounds)),x.options.worldCopyJump){var D=x.wrapLatLng(x.unproject(x.project(x.getCenter()).add(N)));x.panTo(D)}else x.panBy(N)}else if(m in this._zoomKeys)x.setZoom(x.getZoom()+(l.shiftKey?3:1)*this._zoomKeys[m]);else if(m===27&&x._popup&&x._popup.options.closeOnEscapeKey)x.closePopup();else return;Xr(l)}}});ct.addInitHook("addHandler","keyboard",If),ct.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var Ot=Cr.extend({addHooks:function(){Qe(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){Ct(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(l){var m=pm(l),x=this._map.options.wheelDebounceTime;this._delta+=m,this._lastMousePos=this._map.mouseEventToContainerPoint(l),this._startTime||(this._startTime=+new Date);var N=Math.max(x-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(o(this._performZoom,this),N),Xr(l)},_performZoom:function(){var l=this._map,m=l.getZoom(),x=this._map.options.zoomSnap||0;l._stop();var N=this._delta/(this._map.options.wheelPxPerZoomLevel*4),D=4*Math.log(2/(1+Math.exp(-Math.abs(N))))/Math.LN2,F=x?Math.
364ceil(D/x)*x:D,X=l._limitZoom(m+(this._delta>0?F:-F))-m;this._delta=0,this._startTime=null,X&&(l.options.scrollWheelZoom==="center"?l.setZoom(m+X):l.setZoomAround(this._lastMousePos,m+X))}});ct.addInitHook("addHandler","scrollWheelZoom",Ot);var Lf=600;ct.mergeOptions({tapHold:Fe.touchNative&&Fe.safari&&Fe.mobile,tapTolerance:15});var Rl=Cr.extend({addHooks:function(){Qe(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Ct(this._map._container,"touchstart",this._onDown,this)},_onDown:function(l){if(clearTimeout(this._holdTimeout),l.touches.length===1){var m=l.touches[0];this._startPos=this._newPos=new W(m.clientX,m.clientY),this._holdTimeout=setTimeout(o(function(){this._cancel(),this._isTapValid()&&(Qe(document,"touchend",Jt),Qe(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",m))},this),Lf),Qe(document,"touchend touchcancel contextmenu",this._cancel,this),Qe(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function l(){Ct(document,"touchend",Jt),Ct(document,"touchend touchcancel",l)},_cancel:function(){clearTimeout(this._holdTimeout),Ct(document,"touchend touchcancel contextmenu",this._cancel,this),Ct(document,"touchmove",this._onMove,this)},_onMove:function(l){var m=l.touches[0];this._newPos=new W(m.clientX,m.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(l,m){var x=new MouseEvent(l,{bubbles:!0,cancelable:!0,view:window,screenX:m.screenX,screenY:m.screenY,clientX:m.clientX,clientY:m.clientY});x._simulated=!0,m.target.dispatchEvent(x)}});ct.addInitHook("addHandler","tapHold",Rl),ct.mergeOptions({touchZoom:Fe.touch,bounceAtZoomLimits:!0});var xs=Cr.extend({addHooks:function(){tt(this._map._container,"leaflet-touch-zoom"),Qe(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){It(this._map._container,"leaflet-touch-zoom"),Ct(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(l){var m=this._map;if(!(!l.touches||l.touches.length!==2||m._animatingZoom||this._zooming)){var x=m.mouseEventToContainerPoint(l.touches[0]),N=m.mouseEventToContainerPoint(l.touches[1]);this._centerPoint=m.getSize()._divideBy(2),this._startLatLng=m.containerPointToLatLng(this._centerPoint),m.options.touchZoom!=="center"&&(this._pinchStartLatLng=m.containerPointToLatLng(x.add(N)._divideBy(2))),this._startDist=x.distanceTo(N),this._startZoom=m.getZoom(),this._moved=!1,this._zooming=!0,m._stop(),Qe(document,"touchmove",this._onTouchMove,this),Qe(document,"touchend touchcancel",this._onTouchEnd,this),Jt(l)}},_onTouchMove:function(l){if(!(!l.touches||l.touches.length!==2||!this._zooming)){var m=this._map,x=m.mouseEventToContainerPoint(l.touches[0]),N=m.mouseEventToContainerPoint(l.touches[1]),D=x.distanceTo(N)/this._startDist;if(this._zoom=m.getScaleZoom(D,this._startZoom),!m.options.bounceAtZoomLimits&&(this._zoom<m.getMinZoom()&&D<1||this._zoom>m.getMaxZoom()&&D>1)&&(this._zoom=m._limitZoom(this._zoom)),m.options.touchZoom==="center"){if(this._center=this._startLatLng,D===1)return}else{var F=x._add(N)._divideBy(2)._subtract(this._centerPoint);if(D===1&&F.x===0&&F.y===0)return;this._center=m.unproject(m.project(this._pinchStartLatLng,this._zoom).subtract(F),this._zoom)}this._moved||(m._moveStart(!0,!1),this._moved=!0),q(this._animRequest);var X=o(m._move,m,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=V(X,this,!0),Jt(l)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,q(this._animRequest),Ct(document,"touchmove",this._onTouchMove,this),Ct(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))}});ct.addInitHook("addHandler","touchZoom",xs),ct.BoxZoom=ys,ct.DoubleClickZoom=Mm,ct.Drag=Df,ct.Keyboard=If,ct.ScrollWheelZoom=Ot,ct.TapHold=Rl,ct.TouchZoom=xs,n.Bounds=H,n.Browser=Fe,n.CRS=$e,n.Canvas=Mf,n.Circle=au,n.CircleMarker=iu,n.Class=Q,n.Control=_r,n.DivIcon=fu,n.DivOverlay=wi,n.DomEvent=Jc,n.DomUtil=Pl,
364n.Draggable=Qr,n.Evented=re,n.FeatureGroup=Ki,n.GeoJSON=bi,n.GridLayer=Na,n.Handler=Cr,n.Icon=io,n.ImageOverlay=Pa,n.LatLng=ge,n.LatLngBounds=pe,n.Layer=Jr,n.LayerGroup=Sa,n.LineUtil=wm,n.Map=ct,n.Marker=Zi,n.Mixin=bf,n.Path=ja,n.Point=W,n.PolyUtil=Ex,n.Polygon=Yi,n.Polyline=Sr,n.Popup=du,n.PosAnimation=eu,n.Projection=Lx,n.Rectangle=Em,n.Renderer=_i,n.SVG=ao,n.SVGOverlay=Cf,n.TileLayer=Aa,n.Tooltip=ms,n.Transformation=Ne,n.Util=G,n.VideoOverlay=kf,n.bind=o,n.bounds=ee,n.canvas=Rf,n.circle=Cl,n.circleMarker=Pm,n.control=_a,n.divIcon=km,n.extend=i,n.featureGroup=Sm,n.geoJSON=Nm,n.geoJson=ei,n.gridLayer=gs,n.icon=jm,n.imageOverlay=Am,n.latLng=ye,n.latLngBounds=we,n.layerGroup=kl,n.map=wa,n.marker=Fx,n.point=U,n.polygon=qx,n.polyline=zx,n.popup=ps,n.rectangle=Vx,n.setOptions=S,n.stamp=f,n.svg=hu,n.svgOverlay=Of,n.tileLayer=Ef,n.tooltip=El,n.transformation=he,n.version=r,n.videoOverlay=Tm;var Rm=window.L;n.noConflict=function(){return window.L=Rm,this},window.L=n}))})(xh,xh.exports)),xh.exports}var Kp=oQ();const tA=kt(Kp);function nA(e,t,n){return Object.freeze({instance:e,context:t,container:n})}function rA(e,t){return t==null?function(r,i){const a=k.useRef();return a.current||(a.current=e(r,i)),a}:function(r,i){const a=k.useRef();a.current||(a.current=e(r,i));const o=k.useRef(r),{instance:u}=a.current;return k.useEffect(function(){o.current!==r&&(t(u,r,o.current),o.current=r)},[u,r,i]),a}}function sQ(e,t){k.useEffect(function(){return(t.layerContainer??t.map).addLayer(e.instance),function(){var a;(a=t.layerContainer)==null||a.removeLayer(e.instance),t.map.removeLayer(e.instance)}},[t,e])}function K$(e){return function(n){const r=H$(),i=e(eA(n,r),r);return V$(r.map,n.attribution),G$(i.current,n.eventHandlers),sQ(i.current,r),i}}function lQ(e,t){const n=rA(e,t),r=K$(n);return tQ(r)}function cQ(e,t){const n=rA(e),r=iQ(n,t);return nQ(r)}function uQ(e,t){const n=rA(e,t),r=K$(n);return rQ(r)}function dQ(e,t,n){const{opacity:r,zIndex:i}=t;r!=null&&r!==n.opacity&&e.setOpacity(r),i!=null&&i!==n.zIndex&&e.setZIndex(i)}function _j(){return _j=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_j.apply(this,arguments)}function fQ({bounds:e,boundsOptions:t,center:n,children:r,className:i,id:a,placeholder:o,style:u,whenReady:f,zoom:h,...g},p){const[y]=k.useState({className:i,id:a,style:u}),[w,j]=k.useState(null);k.useImperativeHandle(p,()=>(w==null?void 0:w.map)??null,[w]);const S=k.useCallback(P=>{if(P!==null&&w===null){const O=new Kp.Map(P,g);n!=null&&h!=null?O.setView(n,h):e!=null&&O.fitBounds(e,t),f!=null&&O.whenReady(f),j(JX(O))}},[]);k.useEffect(()=>()=>{w==null||w.map.remove()},[w]);const _=w?K.createElement(U$,{value:w},r):o??null;return K.createElement("div",_j({},y,{ref:S}),_)}const hQ=k.forwardRef(fQ),pQ=lQ(function({position:t,...n},r){const i=new Kp.Marker(t,n);return nA(i,eQ(r,{overlayContainer:i}))},function(t,n,r){n.position!==r.position&&t.setLatLng(n.position),n.icon!=null&&n.icon!==r.icon&&t.setIcon(n.icon),n.zIndexOffset!=null&&n.zIndexOffset!==r.zIndexOffset&&t.setZIndexOffset(n.zIndexOffset),n.opacity!=null&&n.opacity!==r.opacity&&t.setOpacity(n.opacity),t.dragging!=null&&n.draggable!==r.draggable&&(n.draggable===!0?t.dragging.enable():t.dragging.disable())}),mQ=cQ(function(t,n){const r=new Kp.Popup(t,n.overlayContainer);return nA(r,n)},function(t,n,{position:r},i){k.useEffect(function(){const{instance:o}=t;function u(h){h.popup===o&&(o.update(),i(!0))}function f(h){h.popup===o&&i(!1)}return n.map.on({popupopen:u,popupclose:f}),n.overlayContainer==null?(r!=null&&o.setLatLng(r),o.openOn(n.map)):n.overlayContainer.bindPopup(o),function(){var g;n.map.off({popupopen:u,popupclose:f}),(g=n.overlayContainer)==null||g.unbindPopup(),n.map.removeLayer(o)}},[t,n,i,r])}),gQ=uQ(function({url:t,...n},r){const i=new Kp.TileLayer(t,eA(n,r));return nA(i,r)},function(t,n,r){dQ(t,n,r);const{url:i}=n;i!=null&&i!==r.url&&t.setUrl(i)});var vQ=Object.defineProperty,Qd=(e,t)=>vQ(e,"name",{value:t,configurable:!0}),Z$=!!(typeof window<"u"&&window.document&&window.document.createElement);function Ft(e,t,{checkForDefaultPrevented:n=!0}={}){return Qd(function(i){if(e==null||e(i),n===!1||!i||!i.defaultPrevented)return t==null?void 0:t(i)},"handleEvent")}Qd(Ft,"composeEventHandlers");function yQ(e){var t;if(!Z$)throw new Error("Cannot access window outside of the DOM");return((t=e==null?void 0:e.ownerDocument)==null?void 0:t.defaultView)??window}Qd(yQ,"getOwnerWindow");function Sj(e){if(!Z$)throw new Error("Cannot access document outside of the DOM");return(e==null?void 0:e.ownerDocument)??document}Qd(Sj,"getOwnerDocument");function Y$(e,t=!1){const{activeElement:n}=Sj(e);if(!(n!=null&&n.nodeName))return null;if(X$(n)&&n.contentDocument)return Y$(n.contentDocument.body,t);if(t){const r=n.getAttribute("aria-activedescendant");if(r){const i=Sj(n).getElementById(r);if(i)return i}}return n}Qd(Y$,"getActiveElement");
364function X$(e){return e.tagName==="IFRAME"}Qd(X$,"isFrame");var xQ=Object.defineProperty,Ii=(e,t)=>xQ(e,"name",{value:t,configurable:!0});function bQ(e,t){const n=k.createContext(t);n.displayName=e+"Context";const r=Ii(a=>{const{children:o,...u}=a,f=k.useMemo(()=>u,Object.values(u));return c.jsx(n.Provider,{value:f,children:o})},"Provider");r.displayName=e+"Provider";function i(a,o={}){const{optional:u=!1}=o,f=k.useContext(n);if(f)return f;if(t!==void 0)return t;if(!u)throw new Error(`\`${a}\` must be used within \`${e}\``)}return Ii(i,"useContext"),[r,i]}Ii(bQ,"createContext");function Rc(e,t=[]){let n=[];function r(a,o){const u=k.createContext(o);u.displayName=a+"Context";const f=n.length;n=[...n,o];const h=Ii(p=>{var P;const{scope:y,children:w,...j}=p,S=((P=y==null?void 0:y[e])==null?void 0:P[f])||u,_=k.useMemo(()=>j,Object.values(j));return c.jsx(S.Provider,{value:_,children:w})},"Provider");h.displayName=a+"Provider";function g(p,y,w={}){var P;const{optional:j=!1}=w,S=((P=y==null?void 0:y[e])==null?void 0:P[f])||u,_=k.useContext(S);if(_)return _;if(o!==void 0)return o;if(!j)throw new Error(`\`${p}\` must be used within \`${a}\``)}return Ii(g,"useContext"),[h,g]}Ii(r,"createContext");const i=Ii(()=>{const a=n.map(o=>k.createContext(o));return Ii(function(u){const f=(u==null?void 0:u[e])||a;return k.useMemo(()=>({[`__scope${e}`]:{...u,[e]:f}}),[u,f])},"useScope")},"createScope");return i.scopeName=e,[r,Q$(i,...t)]}Ii(Rc,"createContextScope");function Q$(...e){const t=e[0];if(e.length===1)return t;const n=Ii(()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return Ii(function(a){const o=r.reduce((u,{useScope:f,scopeName:h})=>{const p=f(a)[`__scope${h}`];return{...u,...p}},{});return k.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])},"useComposedScopes")},"createScope");return n.scopeName=t.scopeName,n}Ii(Q$,"composeContextScopes");var Pn=globalThis!=null&&globalThis.document?k.useLayoutEffect:()=>{},wQ=Object.defineProperty,_Q=(e,t)=>wQ(e,"name",{value:t,configurable:!0}),SQ=Hd[" useId ".trim().toString()]||(()=>{}),jQ=0;function Gu(e){const[t,n]=k.useState(SQ());return Pn(()=>{e||n(r=>r??String(jQ++))},[e]),e||(t?`radix-${t}`:"")}_Q(Gu,"useId");var PQ=Object.defineProperty,NQ=(e,t)=>PQ(e,"name",{value:t,configurable:!0}),g2=Hd[" useEffectEvent ".trim().toString()],v2=Hd[" useInsertionEffect ".trim().toString()];function J$(e){if(typeof g2=="function")return g2(e);const t=k.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return typeof v2=="function"?v2(()=>{t.current=e}):Pn(()=>{t.current=e}),k.useMemo(()=>((...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)}),[])}NQ(J$,"useEffectEvent");var AQ=Object.defineProperty,Zp=(e,t)=>AQ(e,"name",{value:t,configurable:!0}),TQ=Hd[" useInsertionEffect ".trim().toString()]||Pn;function Hh({prop:e,defaultProp:t,onChange:n=Zp(()=>{},"onChange"),caller:r}){const[i,a,o]=eB({defaultProp:t,onChange:n}),u=e!==void 0,f=u?e:i,h=k.useCallback(g=>{var p;if(u){const y=tB(g)?g(e):g;y!==e&&((p=o.current)==null||p.call(o,y))}else a(g)},[u,e,a,o]);return[f,h]}Zp(Hh,"useControllableState");function eB({defaultProp:e,onChange:t}){const[n,r]=k.useState(e),i=k.useRef(n),a=k.useRef(t);return TQ(()=>{a.current=t},[t]),k.useEffect(()=>{var o;i.current!==n&&((o=a.current)==null||o.call(a,n),i.current=n)},[n,i]),[n,r,a]}Zp(eB,"useUncontrolledState");function tB(e){return typeof e=="function"}Zp(tB,"isFunction");var y2=Symbol("RADIX:SYNC_STATE");function kQ(e,t,n,r){const{prop:i,defaultProp:a,onChange:o,caller:u}=t,f=i!==void 0,h=J$(o),g=[{...n,state:a}];r&&g.push(r);const[p,y]=k.useReducer((_,P)=>{if(P.type===y2)return{..._,state:P.state};const O=e(_,P);return f&&!Object.is(O.state,_.state)&&h(O.state),O},...g),w=p.state,j=k.useRef(w);k.useEffect(()=>{j.current!==w&&(j.current=w,f||h(w))},[w,j,f]);const S=k.useMemo(()=>i!==void 0?{...p,state:i}:p,[p,i]);return k.useEffect(()=>{f&&!Object.is(i,p.state)&&y({type:y2,state:i})},[i,p.state,f]),[S,y]}Zp(kQ,"useControllableStateReducer");var CQ=Object.defineProperty,OQ=(e,t)=>CQ(e,"name",{value:t,configurable:!0}),EQ=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Yt=EQ.reduce((e,t)=>
364{const n=$o(`Primitive.${t}`),r=k.forwardRef((i,a)=>{const{asChild:o,...u}=i,f=o?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(f,{...u,ref:a})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function nB(e,t){e&&Yd.flushSync(()=>e.dispatchEvent(t))}OQ(nB,"dispatchDiscreteCustomEvent");var MQ=Object.defineProperty,RQ=(e,t)=>MQ(e,"name",{value:t,configurable:!0});function Wa(e){const t=k.useRef(e);return k.useEffect(()=>{t.current=e}),k.useMemo(()=>((...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)}),[])}RQ(Wa,"useCallbackRef");var DQ=Object.defineProperty,Gn=(e,t)=>DQ(e,"name",{value:t,configurable:!0}),jj="dismissableLayer.update",IQ="dismissableLayer.pointerDownOutside",LQ="dismissableLayer.focusOutside",x2,rB=k.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),iB=k.forwardRef(Gn(function(t,n){const{disableOutsidePointerEvents:r=!1,deferPointerDownOutside:i=!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:u,onInteractOutside:f,onDismiss:h,...g}=t,p=k.useContext(rB),[y,w]=k.useState(null),j=(y==null?void 0:y.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,S]=k.useState({}),_=Ut(n,w),P=Array.from(p.layers),[O]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),C=O?P.indexOf(O):-1,E=y?P.indexOf(y):-1,T=p.layersWithOutsidePointerEventsDisabled.size>0,M=E>=C,I=k.useRef(!1),$=oB(q=>{o==null||o(q),f==null||f(q),q.defaultPrevented||h==null||h()},{ownerDocument:j,deferPointerDownOutside:i,isDeferredPointerDownOutsideRef:I,dismissableSurfaces:p.dismissableSurfaces,shouldHandlePointerDownOutside:k.useCallback(q=>{if(!(q instanceof Node))return!1;const G=[...p.branches].some(Q=>Q.contains(q));return M&&!G},[p.branches,M])}),z=sB(q=>{if(i&&I.current)return;const G=q.target;[...p.branches].some(ne=>ne.contains(G))||(u==null||u(q),f==null||f(q),q.defaultPrevented||h==null||h())},j),Y=y?E===P.length-1:!1,V=Wa(q=>{q.key==="Escape"&&(a==null||a(q),!q.defaultPrevented&&h&&(q.preventDefault(),h()))});return k.useEffect(()=>{if(Y)return j.addEventListener("keydown",V,{capture:!0}),()=>j.removeEventListener("keydown",V,{capture:!0})},[j,Y,V]),k.useEffect(()=>{if(y)return r&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(x2=j.body.style.pointerEvents,j.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(y)),p.layers.add(y),Pj(),()=>{r&&(p.layersWithOutsidePointerEventsDisabled.delete(y),p.layersWithOutsidePointerEventsDisabled.size===0&&(j.body.style.pointerEvents=x2))}},[y,j,r,p]),k.useEffect(()=>()=>{y&&(p.layers.delete(y),p.layersWithOutsidePointerEventsDisabled.delete(y),Pj())},[y,p]),k.useEffect(()=>{const q=Gn(()=>S({}),"handleUpdate");return document.addEventListener(jj,q),()=>document.removeEventListener(jj,q)},[]),c.jsx(Yt.div,{...g,ref:_,style:{pointerEvents:T?M?"auto":"none":void 0,...t.style},onFocusCapture:Ft(t.onFocusCapture,z.onFocusCapture),onBlurCapture:Ft(t.onBlurCapture,z.onBlurCapture),onPointerDownCapture:Ft(t.onPointerDownCapture,$.onPointerDownCapture)})},"DismissableLayer"));function aB(){const e=k.useContext(rB),[t,n]=k.useState(null);return k.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}Gn(aB,"useDismissableLayerSurface");var $Q=Gn(()=>!0,"IS_TRUE");function oB(e,t){const{ownerDocument:n=globalThis==null?void 0:globalThis.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:a,shouldHandlePointerDownOutside:o=$Q}=t,u=Wa(e),f=k.useRef(!1),h=k.useRef(!1),g=k.useRef(new Map),p=k.useRef(()=>{});return k.useEffect(()=>{function y(){h.current=!1,i.current=!1,g.current.clear()}Gn(y,"resetOutsideInteraction");function w(){return Array.from(g.current.values()).some(Boolean)}Gn(w,"isOutsideInteractionIntercepted");function j(C){if(!h.current)return;const E=C.target;E instanceof Node&&[...a].some(M=>M.contains(E))||g.current.set(C.type,!0),C.type==="click"&&window.setTimeout(()=>{h.current&&p.current()},0)}Gn(j,"handleInteractionCapture");function S(C){h.current&&g.current.set(C.type,!1)}Gn(S,"handleInteractionBubble");const _=Gn(C=>{if(C.target&&!f.current){let E=function(){n.removeEventListener("click",p.current);const M=w();y(),M||iA(IQ,u,T,{discrete:!0})};if(Gn(E,"handleAndDispatchPointerDownOutsideEvent"),!o(C.target)){n.removeEventListener("click",p.current),y(),f.current=!1;return}const T={originalEvent:C};h.current=!0,i.current=r&&C.button===0,g.current.clear(),!r||C.button!==0?E():(n.removeEventListener("click",p.current),p.current=E,n.addEventListener("click",p.current,{once:!0}))}else n.removeEventListener("click",p.current),y();f.current=!1},"handlePointerDown"),P=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(const C of P)n.addEventListener(C,j,!0),n.addEventListener(C,S);const O=window.setTimeout(()=>{n.addEventListener("pointerdown",_)},0);return()=>{window.clearTimeout(O),n.removeEventListener("pointerdown",_),n.removeEventListener("click",p.current);for(const C of P)n.removeEventListener(C,j,!0),n.removeEventListener(C,S)}},[n,u,r,i,a,o]),{onPointerDownCapture:Gn(()=>f.current=!0,"onPointerDownCapture")}}Gn(oB,"usePointerDownOutside");function sB(e,t=globalThis==null?void 0:globalThis.document){const n=Wa(e),r=k.useRef(!1);return k.useEffect(()=>{const i=Gn(a=>{a.target&&!r.current&&iA(LQ,n,{originalEvent:a},{discrete:!1})},"handleFocus");return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:Gn(()=>r.current=!0,"onFocusCapture"),onBlurCapture:Gn(()=>r.current=!1,"onBlurCapture")}}Gn(sB,"useFocusOutside");function Pj(){const e=new CustomEvent(jj);document.dispatchEvent(e)}Gn(Pj,"dispatchUpdate");function iA(e,t,n,{discrete:r}){const i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?nB(i,a):i.dispatchEvent(a)}Gn(iA,"handleAndDispatchCustomEvent");var BQ=Object.defineProperty,Tr=(e,t)=>BQ(e,"name",{value:t,configurable:!0}),bb="focusScope.autoFocusOnMount",wb="focusScope.autoFocusOnUnmount",b2={bubbles:!1,cancelable:!0},lB=k.forwardRef(Tr(function(t,n){const{loop:r=!1,trapped:i=!1,onMountAutoFocus:a,onUnmountAutoFocus:o,...u}=t,[f,h]=k.useState(null),g=Wa(a),p=Wa(o),y=k.useRef(null),w=Ut(n,h),j=k.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;k.useEffect(()=>{if(i){let _=function(E){if(j.paused||!f)return;const T=E.target;f.contains(T)?y.current=T:_o(y.current,{select:!0})},P=function(E){if(j.paused||!f)return;const T=E.relatedTarget;T!==null&&(f.contains(T)||_o(y.current,{select:!0}))},O=function(E){if(document.activeElement===document.body)for(const M of E)M.removedNodes.length>0&&_o(f)};Tr(_,"handleFocusIn"),Tr(P,"handleFocusOut"),Tr(O,"handleMutations"),document.addEventListener("focusin",_),document.addEventListener("focusout",P);const C=new MutationObserver(O);return f&&C.observe(f,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",_),document.removeEventListener("focusout",P),C.disconnect()}}},[i,f,j.paused]),k.useEffect(()=>{if(f){w2.add(j);const _=document.activeElement;if(!f.contains(_)){const O=new CustomEvent(bb,b2);f.addEventListener(bb,g),f.dispatchEvent(O),O.defaultPrevented||(cB(pB(aA(f)),{select:!0}),document.activeElement===_&&_o(f))}return()=>{f.removeEventListener(bb,g),setTimeout(()=>{const O=new CustomEvent(wb,b2);f.addEventListener(wb,p),f.dispatchEvent(O),O.defaultPrevented||_o(_??document.body,{select:!0}),f.removeEventListener(wb,p),w2.remove(j)},0)}}},[f,g,p,j]);const S=k.useCallback(_=>{if(!r&&!i||j.paused)return;const P=_.key==="Tab"&&!_.altKey&&!_.ctrlKey&&!_.metaKey,O=document.activeElement;if(P&&O){const C=_.currentTarget,[E,T]=uB(C);E&&T?!_.shiftKey&&O===T?(_.preventDefault(),r&&_o(E,{select:!0})):_.shiftKey&&O===E&&(_.preventDefault(),r&&_o(T,{select:!0})):O===C&&_.preventDefault()}},[r,i,j.paused]);return c.jsx(Yt.div,{tabIndex:-1,...u,ref:w,onKeyDown:S})},"FocusScope"));function cB(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(_o(r,{select:t}),document.activeElement!==n)return}Tr(cB,"focusFirst");function uB(e){const t=aA(e),n=Nj(t,e),r=Nj(t.reverse(),e);return[n,r]}Tr(uB,"getTabbableEdges");function aA(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:Tr(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},"acceptNode")});for(;n.nextNode();)t.push(n.currentNode);return t}Tr(aA,"getTabbableCandidates");function Nj(e,t){const n=typeof t.checkVisibility=="function"&&t.checkVisibility({checkVisibilityCSS:!0});for(const r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):dB(r,{upTo:t})))return r}Tr(Nj,"findVisible");function dB(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}Tr(dB,"isHidden");function fB(e){return e instanceof HTMLInputElement&&"select"in e}Tr(fB,"isSelectableInput");function _o(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&fB(e)&&t&&e.select()}}Tr(_o,"focus");var w2=hB();function hB(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Aj(e,t),e.unshift(t)},remove(t){var n;e=Aj(e,t),(n=e[0])==null||n.resume()}}}Tr(hB,"createFocusScopesStack");function Aj(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}Tr(Aj,"arrayRemove");function pB(e){return e.filter(t=>t.tagName!=="A")}Tr(pB,"removeLinks");var FQ=Object.defineProperty,zQ=(e,t)=>FQ(e,"name",{value:t,configurable:!0}),mB=k.forwardRef(zQ(function(t,n){var f;const{container:r,...i}=t,[a,o]=k.useState(!1);Pn(()=>o(!0),[]);const u=r||a&&((f=globalThis==null?void 0:globalThis.document)==null?void 0:f.body);return u?Yd.createPortal(c.jsx(Yt.div,{...i,ref:n}),u):null},"Portal")),qQ=Object.defineProperty,Bo=(e,t)=>qQ(e,"name",{value:t,configurable:!0});function gB(e,t){return k.useReducer((n,r)=>t[n][r]??n,e)}Bo(gB,"useStateMachine");var $y=Bo(e=>{const{present:t,children:n}=e,r=vB(t),i=typeof n=="function"?n({present:r.isPresent}):k.Children.only(n),a=yB(r.ref,xB(i));return typeof n=="function"||r.isPresent?k.cloneElement(i,{ref:a}):null},"Presence");function vB(e){const[t,n]=k.useState(),r=k.useRef(null),i=k.useRef(e),a=k.useRef("none"),o=k.useRef(void 0),u=e?"mounted":"unmounted",[f,h]=gB(u,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return k.useEffect(()=>{f==="mounted"?(a.current=o.current??Lu(r.current),o.current=void 0):a.current="none"},[f]),Pn(()=>{const g=r.current,p=i.current;if(p!==e){const w=a.current,j=Lu(g);e?(o.current=j,h("MOUNT")):j==="none"||(g==null?void 0:g.display)==="none"?h("UNMOUNT"):h(p&&w!==j?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,h]),Pn(()=>
364{if(t){let g;const p=t.ownerDocument.defaultView??window,y=Bo(j=>{const _=Lu(r.current).includes(CSS.escape(j.animationName));if(j.target===t&&_&&(h("ANIMATION_END"),!i.current)){const P=t.style.animationFillMode;t.style.animationFillMode="forwards",g=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=P)})}},"handleAnimationEnd"),w=Bo(j=>{j.target===t&&(a.current=Lu(r.current))},"handleAnimationStart");return t.addEventListener("animationstart",w),t.addEventListener("animationcancel",y),t.addEventListener("animationend",y),()=>{p.clearTimeout(g),t.removeEventListener("animationstart",w),t.removeEventListener("animationcancel",y),t.removeEventListener("animationend",y)}}else h("ANIMATION_END")},[t,h]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:k.useCallback(g=>{if(g){const p=getComputedStyle(g);r.current=p,o.current=Lu(p)}else r.current=null;n(g)},[])}}Bo(vB,"usePresence");function Tj(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}Bo(Tj,"setRef");function yB(...e){const t=k.useRef(e);return t.current=e,k.useCallback(n=>{const r=t.current;let i=!1;const a=r.map(o=>{const u=Tj(o,n);return!i&&typeof u=="function"&&(i=!0),u});if(i)return()=>{for(let o=0;o<a.length;o++){const u=a[o];typeof u=="function"?u():Tj(r[o],null)}}},[])}Bo(yB,"useStableComposedRefs");function Lu(e){return(e==null?void 0:e.animationName)||"none"}Bo(Lu,"getAnimationName");function xB(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)}Bo(xB,"getElementRef");var VQ=Object.defineProperty,oA=(e,t)=>VQ(e,"name",{value:t,configurable:!0}),Eg=0,Ma=null;function WQ(e){return By(),e.children}oA(WQ,"FocusGuards");function By(){k.useEffect(()=>{Ma||(Ma={start:kj(),end:kj()});const{start:e,end:t}=Ma;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),Eg++,()=>{Eg===1&&(Ma==null||Ma.start.remove(),Ma==null||Ma.end.remove(),Ma=null),Eg=Math.max(0,Eg-1)}},[])}oA(By,"useFocusGuards");function kj(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}oA(kj,"createFocusGuard");var La=function(){return La=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},La.apply(this,arguments)};function bB(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 UQ(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var av="right-scroll-bar-position",ov="width-before-scroll-bar",HQ="with-scroll-bars-hidden",GQ="--removed-body-scroll-bar-size";function _b(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function KQ(e,t){var n=k.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 ZQ=typeof window<"u"?k.useLayoutEffect:k.useEffect,_2=new WeakMap;function YQ(e,t){var n=KQ(null,function(r){return e.forEach(function(i){return _b(i,r)})});return ZQ(function(){var r=_2.get(n);if(r){var i=new Set(r),a=new Set(e),o=n.current;
vendor: 2,304 bytes, line 364
364i.forEach(function(u){a.has(u)||_b(u,null)}),a.forEach(function(u){i.has(u)||_b(u,o)})}_2.set(n,e)},[e]),n}function XQ(e){return e}function QQ(e,t){t===void 0&&(t=XQ);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(a){var o=t(a,r);return n.push(o),function(){n=n.filter(function(u){return u!==o})}},assignSyncMedium:function(a){for(r=!0;n.length;){var o=n;n=[],o.forEach(a)}n={push:function(u){return a(u)},filter:function(){return n}}},assignMedium:function(a){r=!0;var o=[];if(n.length){var u=n;n=[],u.forEach(a),o=n}var f=function(){var g=o;o=[],g.forEach(a)},h=function(){return Promise.resolve().then(f)};h(),n={push:function(g){o.push(g),h()},filter:function(g){return o=o.filter(g),n}}}};return i}function JQ(e){e===void 0&&(e={});var t=QQ(null);return t.options=La({async:!0,ssr:!1},e),t}var wB=function(e){var t=e.sideCar,n=bB(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 k.createElement(r,La({},n))};wB.isSideCarExport=!0;function eJ(e,t){return e.useMedium(t),wB}var _B=JQ(),Sb=function(){},Fy=k.forwardRef(function(e,t){var n=k.useRef(null),r=k.useState({onScrollCapture:Sb,onWheelCapture:Sb,onTouchMoveCapture:Sb}),i=r[0],a=r[1],o=e.forwardProps,u=e.children,f=e.className,h=e.removeScrollBar,g=e.enabled,p=e.shards,y=e.sideCar,w=e.noRelative,j=e.noIsolation,S=e.inert,_=e.allowPinchZoom,P=e.as,O=P===void 0?"div":P,C=e.gapMode,E=bB(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),T=y,M=YQ([n,t]),I=La(La({},E),i);return k.createElement(k.Fragment,null,g&&k.createElement(T,{sideCar:_B,removeScrollBar:h,shards:p,noRelative:w,noIsolation:j,inert:S,setCallbacks:a,allowPinchZoom:!!_,lockRef:n,gapMode:C}),o?k.cloneElement(k.Children.only(u),La(La({},I),{ref:M})):k.createElement(O,La({},I,{className:f,ref:M}),u))});Fy.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Fy.classNames={fullWidth:ov,zeroRight:av};var tJ=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};
vendor: 4,339 bytes, lines 364-401
364function nJ(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=tJ();return t&&e.setAttribute("nonce",t),e}function rJ(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function iJ(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var aJ=function(){var e=0,t=null;return{add:function(n){e==0&&(t=nJ())&&(rJ(t,n),iJ(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},oJ=function(){var e=aJ();return function(t,n){k.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},SB=function(){var e=oJ(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},sJ={left:0,top:0,right:0,gap:0},jb=function(e){return parseInt(e||"",10)||0},lJ=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[jb(n),jb(r),jb(i)]},cJ=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return sJ;var t=lJ(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])}},uJ=SB(),Ku="data-scroll-locked",dJ=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,u=e.gap;return n===void 0&&(n="margin"),`
365  .`.concat(HQ,` {
366   overflow: hidden `).concat(r,`;
367   padding-right: `).concat(u,"px ").concat(r,`;
368  }
369  body[`).concat(Ku,`] {
370    overflow: hidden `).concat(r,`;
371    overscroll-behavior: contain;
372    `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
373    padding-left: `.concat(i,`px;
374    padding-top: `).concat(a,`px;
375    padding-right: `).concat(o,`px;
376    margin-left:0;
377    margin-top:0;
378    margin-right: `).concat(u,"px ").concat(r,`;
379    `),n==="padding"&&"padding-right: ".concat(u,"px ").concat(r,";")].filter(Boolean).join(""),`
380  }
381  
382  .`).concat(av,` {
383    right: `).concat(u,"px ").concat(r,`;
384  }
385  
386  .`).concat(ov,` {
387    margin-right: `).concat(u,"px ").concat(r,`;
388  }
389  
390  .`).concat(av," .").concat(av,` {
391    right: 0 `).concat(r,`;
392  }
393  
394  .`).concat(ov," .").concat(ov,` {
395    margin-right: 0 `).concat(r,`;
396  }
397  
398  body[`).concat(Ku,`] {
399    `).concat(GQ,": ").concat(u,`px;
400  }
401`)},S2=function(){var e=parseInt(document.body.getAttribute(Ku)||"0",10);return isFinite(e)?e:0},fJ=function(){k.useEffect(function(){return document.body.setAttribute(Ku,(S2()+1).toString()),function(){var e=S2()-1;e<=0?document.body.removeAttribute(Ku):document.body.setAttribute(Ku,e.toString())}},[])},hJ=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r;fJ();var a=k.useMemo(function(){return cJ(i)},[i]);return k.createElement(uJ,{styles:dJ(a,!t,i,n?"":"!important")})},Cj=!1;if(typeof window<"u")try{var Mg=Object.defineProperty({},"passive",{get:function(){return Cj=!0,!0}});window.addEventListener("test",Mg,Mg),window.removeEventListener("test",Mg,Mg)}catch{Cj=!1}var Cu=Cj?{passive:!1}:!1,pJ=function(e){return e.tagName==="TEXTAREA"},jB=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!pJ(e)&&n[t]==="visible")},mJ=function(e){return jB(e,"overflowY")},gJ=function(e){return jB(e,"overflowX")},j2=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=PB(e,r);if(i){var a=NB(e,r),o=a[1],u=a[2];if(o>u)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},vJ=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},yJ=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},PB=function(e,t){return e==="v"?mJ(t):gJ(t)},NB=function(e,t){return e==="v"?vJ(t):yJ(t)},xJ=function(e,t){return e==="h"&&t==="rtl"?-1:1},bJ=function(e,t,n,r,i){var a=xJ(e,window.getComputedStyle(t).direction),o=a*r,u=n.target,f=t.contains(u),h=!1,g=o>0,p=0,y=0;do{if(!u)break;var w=NB(e,u),j=w[0],S=w[1],_=w[2],P=S-_-a*j;(j||P)&&PB(e,u)&&(p+=P,y+=j);var O=u.parentNode;u=O&&O.nodeType===Node.DOCUMENT_FRAGMENT_NODE?O.host:O}while(!f&&u!==document.body||f&&(t.contains(u)||t===u));return(g&&Math.abs(p)<1||!g&&Math.abs(y)<1)&&(h=!0),h},Rg=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]}
vendor: 6,718 bytes, lines 401-404
401,P2=function(e){return[e.deltaX,e.deltaY]},N2=function(e){return e&&"current"in e?e.current:e},wJ=function(e,t){return e[0]===t[0]&&e[1]===t[1]},_J=function(e){return`
402  .block-interactivity-`.concat(e,` {pointer-events: none;}
403  .allow-interactivity-`).concat(e,` {pointer-events: all;}
404`)},SJ=0,Ou=[];function jJ(e){var t=k.useRef([]),n=k.useRef([0,0]),r=k.useRef(),i=k.useState(SJ++)[0],a=k.useState(SB)[0],o=k.useRef(e);k.useEffect(function(){o.current=e},[e]),k.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var S=UQ([e.lockRef.current],(e.shards||[]).map(N2),!0).filter(Boolean);return S.forEach(function(_){return _.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),S.forEach(function(_){return _.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var u=k.useCallback(function(S,_){if("touches"in S&&S.touches.length===2||S.type==="wheel"&&S.ctrlKey)return!o.current.allowPinchZoom;var P=Rg(S),O=n.current,C="deltaX"in S?S.deltaX:O[0]-P[0],E="deltaY"in S?S.deltaY:O[1]-P[1],T,M=S.target,I=Math.abs(C)>Math.abs(E)?"h":"v";if("touches"in S&&I==="h"&&M.type==="range")return!1;var $=window.getSelection(),z=$&&$.anchorNode,Y=z?z===M||z.contains(M):!1;if(Y)return!1;var V=j2(I,M);if(!V)return!0;if(V?T=I:(T=I==="v"?"h":"v",V=j2(I,M)),!V)return!1;if(!r.current&&"changedTouches"in S&&(C||E)&&(r.current=T),!T)return!0;var q=r.current||T;return bJ(q,_,S,q==="h"?C:E)},[]),f=k.useCallback(function(S){var _=S;if(!(!Ou.length||Ou[Ou.length-1]!==a)){var P="deltaY"in _?P2(_):Rg(_),O=t.current.filter(function(T){return T.name===_.type&&(T.target===_.target||_.target===T.shadowParent)&&wJ(T.delta,P)})[0];if(O&&O.should){_.cancelable&&_.preventDefault();return}if(!O){var C=(o.current.shards||[]).map(N2).filter(Boolean).filter(function(T){return T.contains(_.target)}),E=C.length>0?u(_,C[0]):!o.current.noIsolation;E&&_.cancelable&&_.preventDefault()}}},[]),h=k.useCallback(function(S,_,P,O){var C={name:S,delta:_,target:P,should:O,shadowParent:PJ(P)};t.current.push(C),setTimeout(function(){t.current=t.current.filter(function(E){return E!==C})},1)},[]),g=k.useCallback(function(S){n.current=Rg(S),r.current=void 0},[]),p=k.useCallback(function(S){h(S.type,P2(S),S.target,u(S,e.lockRef.current))},[]),y=k.useCallback(function(S){h(S.type,Rg(S),S.target,u(S,e.lockRef.current))},[]);k.useEffect(function(){return Ou.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:y}),document.addEventListener("wheel",f,Cu),document.addEventListener("touchmove",f,Cu),document.addEventListener("touchstart",g,Cu),function(){Ou=Ou.filter(function(S){return S!==a}),document.removeEventListener("wheel",f,Cu),document.removeEventListener("touchmove",f,Cu),document.removeEventListener("touchstart",g,Cu)}},[]);var w=e.removeScrollBar,j=e.inert;return k.createElement(k.Fragment,null,j?k.createElement(a,{styles:_J(i)}):null,w?k.createElement(hJ,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function PJ(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const NJ=eJ(_B,jJ);var sA=k.forwardRef(function(e,t){return k.createElement(Fy,La({},e,{ref:t,sideCar:NJ}))});sA.classNames=Fy.classNames;var AJ=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Eu=new WeakMap,Dg=new WeakMap,Ig={},Pb=0,AB=function(e){return e&&(e.host||AB(e.parentNode))},TJ=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=AB(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})},kJ=function(e,t,n,r){var i=TJ(t,Array.isArray(e)?e:[e]);Ig[n]||(Ig[n]=new WeakMap);var a=Ig[n],o=[],u=new Set,f=new Set(i),h=function(p){!p||u.has(p)||(u.add(p),h(p.parentNode))};i.forEach(h);var g=function(p){!p||f.has(p)||Array.prototype.forEach.call(p.children,function(y){if(u.has(y))g(y);else try{var w=y.getAttribute(r),j=w!==null&&w!=="false",S=(Eu.get(y)||0)+1,_=(a.get(y)||0)+1;Eu.set(y,S),a.set(y,_),o.push(y),S===1&&j&&Dg.set(y,!0),_===1&&y.setAttribute(n,"true"),j||y.setAttribute(r,"true")}catch(P){console.error("aria-hidden: cannot operate on ",y,P)}})};return g(t),u.clear(),Pb++,function(){o.forEach(function(p){var y=Eu.get(p)-1,w=a.get(p)-1;Eu.set(p,y),a.set(p,w),y||(Dg.has(p)||p.removeAttribute(r),Dg.delete(p)),w||p.removeAttribute(n)}),Pb--,Pb||(Eu=new WeakMap,Eu=new WeakMap,Dg=new WeakMap,Ig={})}},TB=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=AJ(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live], script"))),kJ(r,i,n,"aria-hidden")):function(){return null}},CJ=Object.defineProperty,pa=(e,t)=>CJ(e,"name",{value:t,configurable:!0}),lA="Dialog",[kB,Y0e]=Rc(lA),[OJ,Ho]=kB(lA),EJ=pa(e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!0}=e,u=k.useRef(null),f=k.useRef(null),[h,g]=Hh({prop:r,defaultProp:i??!1,onChange:a,caller:lA}),[p,y]=k.useState(0),[w,j]=k.useState(0);return c.jsx(OJ,{scope:t,triggerRef:u,contentRef:f,contentId:Gu(),titleId:Gu(),descriptionId:Gu(),titlePresent:p>0,descriptionPresent:w>0,setTitleCount:y,setDescriptionCount:j,open:h,onOpenChange:g,onOpenToggle:k.useCallback(()=>g(S=>!S),[g]),modal:o,children:n})},"Dialog"),CB="DialogPortal",[MJ,OB]=kB(CB,{forceMount:void 0}),RJ=pa(e=>{const{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=Ho(CB,t);return c.jsx(MJ,{scope:t,forceMount:n,children:k.Children.map(r,o=>c.jsx($y,{present:n||a.open,children:c.jsx(mB,{asChild:!0,container:i,children:o})}))})},"DialogPortal"),Oj="DialogOverlay",DJ=k.forwardRef(pa(function(t,n){const r=OB(Oj,t.__scopeDialog),{forceMount:i=r.forceMount,...a}=t,o=Ho(Oj,t.__scopeDialog);return o.modal?c.jsx($y,{present:i||o.open,children:c.jsx(LJ,{...a,ref:n})}):null},"DialogOverlay")),IJ=$o("DialogOverlay.RemoveScroll"),LJ=k.forwardRef(pa(function(t,n){const{__scopeDialog:r,...i}=t,a=Ho(Oj,r),o=aB(),u=Ut(n,o);return c.jsx(sA,{as:IJ,allowPinchZoom:!0,shards:[a.contentRef],children:c.jsx(Yt.div,{"data-state":cA(a.open),...i,ref:u,style:{pointerEvents:"auto",...i.style}})})},"DialogOverlayImpl")),Gh="DialogContent",$J=k.forwardRef(pa(function(t,n){const r=OB(Gh,t.__scopeDialog),{forceMount:i=r.forceMount,...a}=t,o=Ho(Gh,t.__scopeDialog);return c.jsx($y,{present:i||o.open,children:o.modal?c.jsx(BJ,{...a,ref:n}):c.jsx(FJ,{...a,ref:n})})},"DialogContent")),BJ=k.forwardRef(pa(function(t,n){const r=Ho(Gh,t.__scopeDialog),i=k.useRef(null),a=Ut(n,r.contentRef,i);return k.useEffect(()=>{const o=i.current;if(o)return TB(o)}
404,[]),c.jsx(EB,{...t,ref:a,trapFocus:r.open,disableOutsidePointerEvents:r.open,onCloseAutoFocus:Ft(t.onCloseAutoFocus,o=>{var u;o.preventDefault(),(u=r.triggerRef.current)==null||u.focus()}),onPointerDownOutside:Ft(t.onPointerDownOutside,o=>{const u=o.detail.originalEvent,f=u.button===0&&u.ctrlKey===!0;(u.button===2||f)&&o.preventDefault()}),onFocusOutside:Ft(t.onFocusOutside,o=>o.preventDefault())})},"DialogContentModal")),FJ=k.forwardRef(pa(function(t,n){const r=Ho(Gh,t.__scopeDialog),i=k.useRef(!1),a=k.useRef(!1);return c.jsx(EB,{...t,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var u,f;(u=t.onCloseAutoFocus)==null||u.call(t,o),o.defaultPrevented||(i.current||(f=r.triggerRef.current)==null||f.focus(),o.preventDefault()),i.current=!1,a.current=!1},onInteractOutside:o=>{var h,g;(h=t.onInteractOutside)==null||h.call(t,o),o.defaultPrevented||(i.current=!0,o.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const u=o.target;((g=r.triggerRef.current)==null?void 0:g.contains(u))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&a.current&&o.preventDefault()}})},"DialogContentNonModal")),EB=k.forwardRef(pa(function(t,n){const{__scopeDialog:r,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:o,...u}=t,f=Ho(Gh,r);return By(),c.jsx(c.Fragment,{children:c.jsx(lB,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:a,onUnmountAutoFocus:o,children:c.jsx(iB,{role:"dialog",id:f.contentId,"aria-describedby":f.descriptionPresent?f.descriptionId:void 0,"aria-labelledby":f.titlePresent?f.titleId:void 0,"data-state":cA(f.open),...u,ref:n,deferPointerDownOutside:!0,onDismiss:()=>f.onOpenChange(!1)})})})},"DialogContentImpl")),zJ="DialogTitle",qJ=k.forwardRef(pa(function(t,n){const{__scopeDialog:r,...i}=t,a=Ho(zJ,r),{setTitleCount:o}=a;return Pn(()=>(o(u=>u+1),()=>o(u=>u-1)),[o]),c.jsx(Yt.h2,{id:a.titleId,...i,ref:n})},"DialogTitle")),VJ="DialogDescription",WJ=k.forwardRef(pa(function(t,n){const{__scopeDialog:r,...i}=t,a=Ho(VJ,r),{setDescriptionCount:o}=a;return Pn(()=>(o(u=>u+1),()=>o(u=>u-1)),[o]),c.jsx(Yt.p,{id:a.descriptionId,...i,ref:n})},"DialogDescription"));function cA(e){return e?"open":"closed"}pa(cA,"getState");function UJ(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const MB=K.createContext({drawerRef:{current:null},overlayRef:{current:null},onPress:()=>{},onRelease:()=>{},onDrag:()=>{},onNestedDrag:()=>{},onNestedOpenChange:()=>{},onNestedRelease:()=>{},openProp:void 0,dismissible:!1,isOpen:!1,isDragging:!1,keyboardIsOpen:{current:!1},snapPointsOffset:null,snapPoints:null,handleOnly:!1,modal:!1,shouldFade:!1,activeSnapPoint:null,onOpenChange:()=>{},setActiveSnapPoint:()=>{},closeDrawer:()=>{},direction:"bottom",shouldAnimate:{current:!0},shouldScaleBackground:!1,setBackgroundColorOnScale:!0,noBodyStyles:!1,container:null,autoFocus:!1}),Yp=()=>{const e=K.useContext(MB);if(!e)throw new Error("useDrawerContext must be used within a Drawer.Root");return e};UJ(`[data-vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1);animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=open]{animation-name:slideFromBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=closed]{animation-name:slideToBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=open]{animation-name:slideFromTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=closed]{animation-name:slideToTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=open]{animation-name:slideFromLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=closed]{animation-name:slideToLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=open]{animation-name:slideFromRight}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=closed]{animation-name:slideToRight}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--initial-transform,100%),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--initial-transform,100%),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-overlay][data-vaul-snap-points=false]{animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=false][data-state=open]{animation-name:fadeIn}[data-vaul-overlay][data-state=closed]{animation-name:fadeOut}[data-vaul-animate=false]{animation:none!important}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:1}[data-vaul-drawer]:not([data-vaul-custom-container=true])::after{content:'';position:absolute;background:inherit;background-color:inherit}[data-vaul-drawer][data-vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[data-vaul-drawer][data-vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[data-vaul-overlay][data-vaul-snap-points=true]:not([data-vaul-snap-points-overlay=true]):not(
405[data-state=closed]
406){opacity:0}
406[data-vaul-overlay][data-vaul-snap-points-overlay=true]{opacity:1}[data-vaul-handle]{display:block;position:relative;opacity:.7;background:#e2e2e4;margin-left:auto;margin-right:auto;height:5px;width:32px;border-radius:1rem;touch-action:pan-y}[data-vaul-handle]:active,[data-vaul-handle]:hover{opacity:1}[data-vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}@media (hover:hover) and (pointer:fine){[data-vaul-drawer]{user-select:none}}@media (pointer:fine){[data-vaul-handle-hitarea]:{width:100%;height:100%}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeOut{to{opacity:0}}@keyframes slideFromBottom{from{transform:translate3d(0,var(--initial-transform,100%),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToBottom{to{transform:translate3d(0,var(--initial-transform,100%),0)}}@keyframes slideFromTop{from{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToTop{to{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}}@keyframes slideFromLeft{from{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToLeft{to{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}}@keyframes slideFromRight{from{transform:translate3d(var(--initial-transform,100%),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToRight{to{transform:translate3d(var(--initial-transform,100%),0,0)}}`);function HJ(){const e=navigator.userAgent;return typeof window<"u"&&(/Firefox/.test(e)&&/Mobile/.test(e)||/FxiOS/.test(e))}function GJ(){return uA(/^Mac/)}function KJ(){return uA(/^iPhone/)}function A2(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function ZJ(){return uA(/^iPad/)||GJ()&&navigator.maxTouchPoints>1}function RB(){return KJ()||ZJ()}function uA(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.platform):void 0}const YJ=24,XJ=typeof window<"u"?k.useLayoutEffect:k.useEffect;function T2(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const Nb=typeof document<"u"&&window.visualViewport;function k2(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function DB(e){for(k2(e)&&(e=e.parentElement);e&&!k2(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}const QJ=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let Lg=0,Ab;function JJ(e={}){let{isDisabled:t}=e;XJ(()=>{if(!t)return Lg++,Lg===1&&RB()&&(Ab=eee()),()=>{Lg--,Lg===0&&(Ab==null||Ab())}},[t])}function eee(){let e,t=0,n=p=>{e=DB(p.target),!(e===document.documentElement&&e===document.body)&&(t=p.changedTouches[0].pageY)},r=p=>{if(!e||e===document.documentElement||e===document.body){p.preventDefault();return}let y=p.changedTouches[0].pageY,w=e.scrollTop,j=e.scrollHeight-e.clientHeight;j!==0&&((w<=0&&y>t||w>=j&&y<t)&&p.preventDefault(),t=y)},i=p=>{let y=p.target;Ej(y)&&y!==document.activeElement&&(p.preventDefault(),y.style.transform="translateY(-2000px)",y.focus(),requestAnimationFrame(()=>{y.style.transform=""}))},a=p=>{let y=p.target;Ej(y)&&(y.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{y.style.transform="",Nb&&(Nb.height<window.innerHeight?requestAnimationFrame(()=>{C2(y)}):Nb.addEventListener("resize",()=>C2(y),{once:!0}))}))},o=()=>{window.scrollTo(0,0)},u=window.pageXOffset,f=window.pageYOffset,h=T2(tee(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`));window.scrollTo(0,0);let g=T2(ih(document,"touchstart",n,{passive:!1,capture:!0}),ih(document,"touchmove",r,{passive:!1,capture:!0}),ih(document,"touchend",i,{passive:!1,capture:!0}),ih(document,"focus",a,!0),ih(window,"scroll",o));return()=>{h(),g(),window.scrollTo(u,f)}}function tee(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function ih(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function C2(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let n=DB(e);if(n!==document.documentElement&&n!==document.body&&n!==e){let r=n.getBoundingClientRect().top,i=e.getBoundingClientRect().top,a=e.getBoundingClientRect().bottom;const o=n.getBoundingClientRect().bottom+YJ;a>o&&(n.scrollTop+=i-r)}e=n.parentElement}}function Ej(e){return e instanceof HTMLInputElement&&!QJ.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function nee(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function ree(...e){return t=>e.forEach(n=>nee(n,t))}function IB(...e){return k.useCallback(ree(...e),e)}const LB=new WeakMap;function Dn(e,t,n=!1){if(!e||!(e instanceof HTMLElement))return;let r={};Object.entries(t).forEach(([i,a])=>{if(i.startsWith("--")){e.style.setProperty(i,a);return}r[i]=e.style[i],e.style[i]=a}),!n&&LB.set(e,r)}function iee(e,t){if(!e||!(e instanceof HTMLElement))return;let n=LB.get(e);n&&(e.style[t]=n[t])}const Sn=e=>{switch(e){case"top":case"bottom":return!0;case"left":case"right":return!1;default:return e}};function $g(e,t){if(!e)return null;const n=window.getComputedStyle(e),r=n.transform||n.webkitTransform||n.mozTransform;let i=r.match(/^matrix3d\((.+)\)$/);return i?parseFloat(i[1].split(", ")[Sn(t)?13:12]):(i=r.match(/^matrix\((.+)\)$/),i?parseFloat(i[1].split(", ")[Sn(t)?5:4]):null)}function aee(e){return 8*(Math.log(e+1)-2)}function Tb(e,t){if(!e)return()=>{};const n=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=n}}function oee(...e){return(...t)=>{for(const n of e)typeof n=="function"&&n(...t)}}const nn={DURATION:.5,EASE:[.32,.72,0,1]},$B=.4,see=.25,lee=100,BB=8,Kl=16,Mj=26,kb="vaul-dragging";function FB(e){const t=K.useRef(e);return K.useEffect(()=>{t.current=e}),K.useMemo(()=>(...n)=>t.current==null?void 0:t.current.call(t,...n),[])}function cee({defaultProp:e,onChange:t}){const n=K.useState(e),[r]=n,i=K.useRef(r),a=FB(t);return K.useEffect(()=>{i.current!==r&&(a(r),i.current=r)},[r,i,a]),n}function zB({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,i]=cee({defaultProp:t,onChange:n}),a=e!==void 0,o=a?e:r,u=FB(n),f=K.useCallback(h=>{if(a){const p=typeof h=="function"?h(e):h;p!==e&&u(p)}else i(h)},[a,e,i,u]);return[o,f]}function uee({activeSnapPointProp:e,setActiveSnapPointProp:t,snapPoints:n,drawerRef:r,overlayRef:i,fadeFromIndex:a,onSnapPointChange:o,direction:u="bottom",container:f,snapToSequentialPoint:h}){const[g,p]=zB({prop:e,defaultProp:n==null?void 0:n[0],onChange:t}),[y,w]=K.useState(typeof window<"u"?{innerWidth:window.innerWidth,innerHeight:window.innerHeight}:void 0);K.useEffect(()=>{function I(){w({innerWidth:window.innerWidth,innerHeight:window.innerHeight})}return window.addEventListener("resize",I),()=>window.removeEventListener("resize",I)},[]);const j=K.useMemo(()=>g===(n==null?void 0:n[n.length-1])||null,[n,g]),S=K.useMemo(()=>{var I;return(I=n==null?void 0:n.findIndex($=>$===g))!=null?I:null},[n,g]),_=n&&n.length>0&&(a||a===0)&&!Number.isNaN(a)&&n[a]===g||!n,P=K.useMemo(()=>{const I=f?{width:f.getBoundingClientRect().width,height:f.getBoundingClientRect().height}:typeof window<"u"?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0};var $;return($=n==null?void 0:n.map(z=>{const Y=typeof z=="string";let V=0;if(Y&&(V=parseInt(z,10)),Sn(u)){const G=Y?V:y?z*I.height:0;return y?u==="bottom"?I.height-G:-I.height+G:G}const q=Y?V:y?z*I.width:0;return y?u==="right"?I.width-q:-I.width+q:q}))!=null?$:[]},[n,y,f]),O=K.useMemo(()=>S!==null?P==null?void 0:P[S]:null,[P,S]),C=K.useCallback(I=>{var $;const z=($=P==null?void 0:P.findIndex(Y=>Y===I))!=null?$:null;o(z),Dn(r.current,{transition:`transform ${nn.DURATION}s cubic-bezier(${nn.EASE.join(",")})`,transform:Sn(u)?`translate3d(0, ${I}
406px, 0)`:`translate3d(${I}px, 0, 0)`}),P&&z!==P.length-1&&a!==void 0&&z!==a&&z<a?Dn(i.current,{transition:`opacity ${nn.DURATION}s cubic-bezier(${nn.EASE.join(",")})`,opacity:"0"}):Dn(i.current,{transition:`opacity ${nn.DURATION}s cubic-bezier(${nn.EASE.join(",")})`,opacity:"1"}),p(n==null?void 0:n[Math.max(z,0)])},[r.current,n,P,a,i,p]);K.useEffect(()=>{if(g||e){var I;const $=(I=n==null?void 0:n.findIndex(z=>z===e||z===g))!=null?I:-1;P&&$!==-1&&typeof P[$]=="number"&&C(P[$])}},[g,e,n,P,C]);function E({draggedDistance:I,closeDrawer:$,velocity:z,dismissible:Y}){if(a===void 0)return;const V=u==="bottom"||u==="right"?(O??0)-I:(O??0)+I,q=S===a-1,G=S===0,Q=I>0;if(q&&Dn(i.current,{transition:`opacity ${nn.DURATION}s cubic-bezier(${nn.EASE.join(",")})`}),!h&&z>2&&!Q){Y?$():C(P[0]);return}if(!h&&z>2&&Q&&P&&n){C(P[n.length-1]);return}const ne=P==null?void 0:P.reduce((re,W)=>typeof re!="number"||typeof W!="number"?re:Math.abs(W-V)<Math.abs(re-V)?W:re),ie=Sn(u)?window.innerHeight:window.innerWidth;if(z>$B&&Math.abs(I)<ie*.4){const re=Q?1:-1;if(re>0&&j&&n){C(P[n.length-1]);return}if(G&&re<0&&Y&&$(),S===null)return;C(P[S+re]);return}C(ne)}function T({draggedDistance:I}){if(O===null)return;const $=u==="bottom"||u==="right"?O-I:O+I;(u==="bottom"||u==="right")&&$<P[P.length-1]||(u==="top"||u==="left")&&$>P[P.length-1]||Dn(r.current,{transform:Sn(u)?`translate3d(0, ${$}px, 0)`:`translate3d(${$}px, 0, 0)`})}function M(I,$){if(!n||typeof S!="number"||!P||a===void 0)return null;const z=S===a-1;if(S>=a&&$)return 0;if(z&&!$)return 1;if(!_&&!z)return null;const V=z?S+1:S-1,q=z?P[V]-P[V-1]:P[V+1]-P[V],G=I/Math.abs(q);return z?1-G:G}return{isLastSnapPoint:j,activeSnapPoint:g,shouldFade:_,getPercentageDragged:M,setActiveSnapPoint:p,activeSnapPointIndex:S,onRelease:E,onDrag:T,snapPointsOffset:P}}const dee=()=>()=>{};function fee(){const{direction:e,isOpen:t,shouldScaleBackground:n,setBackgroundColorOnScale:r,noBodyStyles:i}=Yp(),a=K.useRef(null),o=k.useMemo(()=>document.body.style.backgroundColor,[]);function u(){return(window.innerWidth-Mj)/window.innerWidth}K.useEffect(()=>{if(t&&n){a.current&&clearTimeout(a.current);const f=document.querySelector("[data-vaul-drawer-wrapper]")||document.querySelector("[vaul-drawer-wrapper]");if(!f)return;oee(r&&!i?Tb(document.body,{background:"black"}):dee,Tb(f,{transformOrigin:Sn(e)?"top":"left",transitionProperty:"transform, border-radius",transitionDuration:`${nn.DURATION}s`,transitionTimingFunction:`cubic-bezier(${nn.EASE.join(",")})`}));const h=Tb(f,{borderRadius:`${BB}px`,overflow:"hidden",...Sn(e)?{transform:`scale(${u()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`}:{transform:`scale(${u()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`}});return()=>{h(),a.current=window.setTimeout(()=>{o?document.body.style.background=o:document.body.style.removeProperty("background")},nn.DURATION*1e3)}}},[t,n,o])}let ah=null;function hee({isOpen:e,modal:t,nested:n,hasBeenOpened:r,preventScrollRestoration:i,noBodyStyles:a}){const[o,u]=K.useState(()=>typeof window<"u"?window.location.href:""),f=K.useRef(0),h=K.useCallback(()=>{if(A2()&&ah===null&&e&&!a){ah={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height,right:"unset"};const{scrollX:p,innerHeight:y}=window;document.body.style.setProperty("position","fixed","important"),Object.assign(document.body.style,{top:`${-f.current}px`,left:`${-p}px`,right:"0px",height:"auto"}),window.setTimeout(()=>window.requestAnimationFrame(()=>{const w=y-window.innerHeight;w&&f.current>=y&&(document.body.style.top=`${-(f.current+w)}px`)}),300)}},[e]),g=K.useCallback(()=>{if(A2()&&ah!==null&&!a){const p=-parseInt(document.body.style.top,10),y=-parseInt(document.body.style.left,10);Object.assign(document.body.style,ah),window.requestAnimationFrame(()=>{if(i&&o!==window.location.href){u(window.location.href);return}window.scrollTo(y,p)}),ah=null}},[o]);return K.useEffect(()=>{function p(){f.current=window.scrollY}return p(),window.addEventListener("scroll",p),()=>{window.removeEventListener("scroll",p)}},[]),K.useEffect(()=>{if(t)return()=>{typeof document>"u"||document.querySelector("[data-vaul-drawer]")||g()}},[t,g]),K.useEffect(()=>{n||!r||(e?(!window.matchMedia("(display-mode: standalone)").matches&&h(),t||window.setTimeout(()=>{g()},500)):g())},[e,r,o,t,n,h,g]),{restorePositionSetting:g}}function pee({open:e,onOpenChange:t,children:n,onDrag:r,onRelease:i,snapPoints:a,shouldScaleBackgroun
406d:o=!1,setBackgroundColorOnScale:u=!0,closeThreshold:f=see,scrollLockTimeout:h=lee,dismissible:g=!0,handleOnly:p=!1,fadeFromIndex:y=a&&a.length-1,activeSnapPoint:w,setActiveSnapPoint:j,fixed:S,modal:_=!0,onClose:P,nested:O,noBodyStyles:C=!1,direction:E="bottom",defaultOpen:T=!1,disablePreventScroll:M=!0,snapToSequentialPoint:I=!1,preventScrollRestoration:$=!1,repositionInputs:z=!0,onAnimationEnd:Y,container:V,autoFocus:q=!1}){var G,Q;const[ne=!1,ie]=zB({defaultProp:T,prop:e,onChange:qe=>{t==null||t(qe),!qe&&!O&&Jo(),setTimeout(()=>{Y==null||Y(qe)},nn.DURATION*1e3),qe&&!_&&typeof window<"u"&&window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"}),qe||(document.body.style.pointerEvents="auto")}}),[re,W]=K.useState(!1),[oe,U]=K.useState(!1),[H,ee]=K.useState(!1),pe=K.useRef(null),we=K.useRef(null),ge=K.useRef(null),ye=K.useRef(null),$e=K.useRef(null),xe=K.useRef(!1),de=K.useRef(null),Ae=K.useRef(0),Ne=K.useRef(!1),he=K.useRef(!T),Ee=K.useRef(0),Se=K.useRef(null),at=K.useRef(((G=Se.current)==null?void 0:G.getBoundingClientRect().height)||0),dt=K.useRef(((Q=Se.current)==null?void 0:Q.getBoundingClientRect().width)||0),bt=K.useRef(0),Gt=K.useCallback(qe=>{a&&qe===br.length-1&&(we.current=new Date)},[]),{activeSnapPoint:ir,activeSnapPointIndex:sn,setActiveSnapPoint:Xt,onRelease:pn,snapPointsOffset:br,onDrag:Za,shouldFade:ga,getPercentageDragged:Qo}=uee({snapPoints:a,activeSnapPointProp:w,setActiveSnapPointProp:j,drawerRef:Se,fadeFromIndex:y,overlayRef:pe,onSnapPointChange:Gt,direction:E,container:V,snapToSequentialPoint:I});JJ({isDisabled:!ne||oe||!_||H||!re||!z||!M});const{restorePositionSetting:Jo}=hee({isOpen:ne,modal:_,nested:O??!1,hasBeenOpened:re,preventScrollRestoration:$,noBodyStyles:C});function vi(){return(window.innerWidth-Mj)/window.innerWidth}function zc(qe){var ft,ht;!g&&!a||Se.current&&!Se.current.contains(qe.target)||(at.current=((ft=Se.current)==null?void 0:ft.getBoundingClientRect().height)||0,dt.current=((ht=Se.current)==null?void 0:ht.getBoundingClientRect().width)||0,U(!0),ge.current=new Date,RB()&&window.addEventListener("touchend",()=>xe.current=!1,{once:!0}),qe.target.setPointerCapture(qe.pointerId),Ae.current=Sn(E)?qe.pageY:qe.pageX)}function Vi(qe,ft){var ht;let rt=qe;const Dt=(ht=window.getSelection())==null?void 0:ht.toString(),An=Se.current?$g(Se.current,E):null,yn=new Date;if(rt.tagName==="SELECT"||rt.hasAttribute("data-vaul-no-drag")||rt.closest("[data-vaul-no-drag]"))return!1;if(E==="right"||E==="left")return!0;if(we.current&&yn.getTime()-we.current.getTime()<500)return!1;if(An!==null&&(E==="bottom"?An>0:An<0))return!0;if(Dt&&Dt.length>0)return!1;if($e.current&&yn.getTime()-$e.current.getTime()<h&&An===0||ft)return $e.current=yn,!1;for(;rt;){if(rt.scrollHeight>rt.clientHeight){if(rt.scrollTop!==0)return $e.current=new Date,!1;if(rt.getAttribute("role")==="dialog")return!0}rt=rt.parentNode}return!0}
406function va(qe){if(Se.current&&oe){const ft=E==="bottom"||E==="right"?1:-1,ht=(Ae.current-(Sn(E)?qe.pageY:qe.pageX))*ft,rt=ht>0,Dt=a&&!g&&!rt;if(Dt&&sn===0)return;const An=Math.abs(ht),yn=document.querySelector("[data-vaul-drawer-wrapper]"),Hr=E==="bottom"||E==="top"?at.current:dt.current;let ar=An/Hr;const Gr=Qo(An,rt);if(Gr!==null&&(ar=Gr),Dt&&ar>=1||!xe.current&&!Vi(qe.target,rt))return;if(Se.current.classList.add(kb),xe.current=!0,Dn(Se.current,{transition:"none"}),Dn(pe.current,{transition:"none"}),a&&Za({draggedDistance:ht}),rt&&!a){const zn=aee(ht),ya=Math.min(zn*-1,0)*ft;Dn(Se.current,{transform:Sn(E)?`translate3d(0, ${ya}px, 0)`:`translate3d(${ya}px, 0, 0)`});return}const wr=1-ar;if((ga||y&&sn===y-1)&&(r==null||r(qe,ar),Dn(pe.current,{opacity:`${wr}`,transition:"none"},!0)),yn&&pe.current&&o){const zn=Math.min(vi()+ar*(1-vi()),1),ya=8-ar*8,xa=Math.max(0,14-ar*14);Dn(yn,{borderRadius:`${ya}px`,transform:Sn(E)?`scale(${zn}) translate3d(0, ${xa}px, 0)`:`scale(${zn}) translate3d(${xa}px, 0, 0)`,transition:"none"},!0)}if(!a){const zn=An*ft;Dn(Se.current,{transform:Sn(E)?`translate3d(0, ${zn}px, 0)`:`translate3d(${zn}px, 0, 0)`})}}}K.useEffect(()=>{window.requestAnimationFrame(()=>{he.current=!0})},[]),K.useEffect(()=>{var qe;function ft(){if(!Se.current||!z)return;const ht=document.activeElement;if(Ej(ht)||Ne.current){var rt;const Dt=((rt=window.visualViewport)==null?void 0:rt.height)||0,An=window.innerHeight;let yn=An-Dt;const Hr=Se.current.getBoundingClientRect().height||0,ar=Hr>An*.8;bt.current||(bt.current=Hr);const Gr=Se.current.getBoundingClientRect().top;if(Math.abs(Ee.current-yn)>60&&(Ne.current=!Ne.current),a&&a.length>0&&br&&sn){const wr=br[sn]||0;yn+=wr}if(Ee.current=yn,Hr>Dt||Ne.current){const wr=Se.current.getBoundingClientRect().height;let zn=wr;wr>Dt&&(zn=Dt-(ar?Gr:Mj)),S?Se.current.style.height=`${wr-Math.max(yn,0)}px`:Se.current.style.height=`${Math.max(zn,Dt-Gr)}px`}else HJ()||(Se.current.style.height=`${bt.current}px`);a&&a.length>0&&!Ne.current?Se.current.style.bottom="0px":Se.current.style.bottom=`${Math.max(yn,0)}px`}}return(qe=window.visualViewport)==null||qe.addEventListener("resize",ft),()=>{var ht;return(ht=window.visualViewport)==null?void 0:ht.removeEventListener("resize",ft)}},[sn,a,br]);function Ya(qe){ts(),P==null||P(),qe||ie(!1),setTimeout(()=>{a&&Xt(a[0])},nn.DURATION*1e3)}function es(){if(!Se.current)return;const qe=document.querySelector("[data-vaul-drawer-wrapper]"),ft=$g(Se.current,E);Dn(Se.current,{transform:"translate3d(0, 0, 0)",transition:`transform ${nn.DURATION}s cubic-bezier(${nn.EASE.join(",")})`}),Dn(pe.current,{transition:`opacity ${nn.DURATION}s cubic-bezier(${nn.EASE.join(",")})`,opacity:"1"}),o&&ft&&ft>0&&ne&&Dn(qe,{borderRadius:`${BB}px`,overflow:"hidden",...Sn(E)?{transform:`scale(${vi()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${vi()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:`${nn.DURATION}s`,transitionTimingFunction:`cubic-bezier(${nn.EASE.join(",")})`},!0)}function ts(){!oe||!Se.current||(Se.current.classList.remove(kb),xe.current=!1,U(!1),ye.current=new Date)}function qc(qe){if(!oe||!Se.current)return;Se.current.classList.remove(kb),xe.current=!1,U(!1),ye.current=new Date;const ft=$g(Se.current,E);
406if(!qe||!Vi(qe.target,!1)||!ft||Number.isNaN(ft)||ge.current===null)return;const ht=ye.current.getTime()-ge.current.getTime(),rt=Ae.current-(Sn(E)?qe.pageY:qe.pageX),Dt=Math.abs(rt)/ht;if(Dt>.05&&(ee(!0),setTimeout(()=>{ee(!1)},200)),a){pn({draggedDistance:rt*(E==="bottom"||E==="right"?1:-1),closeDrawer:Ya,velocity:Dt,dismissible:g}),i==null||i(qe,!0);return}if(E==="bottom"||E==="right"?rt>0:rt<0){es(),i==null||i(qe,!0);return}if(Dt>$B){Ya(),i==null||i(qe,!1);return}var An;const yn=Math.min((An=Se.current.getBoundingClientRect().height)!=null?An:0,window.innerHeight);var Hr;const ar=Math.min((Hr=Se.current.getBoundingClientRect().width)!=null?Hr:0,window.innerWidth),Gr=E==="left"||E==="right";if(Math.abs(ft)>=(Gr?ar:yn)*f){Ya(),i==null||i(qe,!1);return}i==null||i(qe,!0),es()}K.useEffect(()=>(ne&&(Dn(document.documentElement,{scrollBehavior:"auto"}),we.current=new Date),()=>{iee(document.documentElement,"scrollBehavior")}),[ne]);function yl(qe){const ft=qe?(window.innerWidth-Kl)/window.innerWidth:1,ht=qe?-Kl:0;de.current&&window.clearTimeout(de.current),Dn(Se.current,{transition:`transform ${nn.DURATION}s cubic-bezier(${nn.EASE.join(",")})`,transform:Sn(E)?`scale(${ft}) translate3d(0, ${ht}px, 0)`:`scale(${ft}) translate3d(${ht}px, 0, 0)`}),!qe&&Se.current&&(de.current=setTimeout(()=>{const rt=$g(Se.current,E);Dn(Se.current,{transition:"none",transform:Sn(E)?`translate3d(0, ${rt}px, 0)`:`translate3d(${rt}px, 0, 0)`})},500))}function Wi(qe,ft){if(ft<0)return;const ht=(window.innerWidth-Kl)/window.innerWidth,rt=ht+ft*(1-ht),Dt=-Kl+ft*Kl;Dn(Se.current,{transform:Sn(E)?`scale(${rt}) translate3d(0, ${Dt}px, 0)`:`scale(${rt}) translate3d(${Dt}px, 0, 0)`,transition:"none"})}function xl(qe,ft){const ht=Sn(E)?window.innerHeight:window.innerWidth,rt=ft?(ht-Kl)/ht:1,Dt=ft?-Kl:0;ft&&Dn(Se.current,{transition:`transform ${nn.DURATION}s cubic-bezier(${nn.EASE.join(",")})`,transform:Sn(E)?`scale(${rt}) translate3d(0, ${Dt}px, 0)`:`scale(${rt}) translate3d(${Dt}px, 0, 0)`})}return K.useEffect(()=>{_||window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"})},[_]),K.createElement(EJ,{defaultOpen:T,onOpenChange:qe=>{!g&&!qe||(qe?W(!0):Ya(!0),ie(qe))},open:ne},K.createElement(MB.Provider,{value:{activeSnapPoint:ir,snapPoints:a,setActiveSnapPoint:Xt,drawerRef:Se,overlayRef:pe,onOpenChange:t,onPress:zc,onRelease:qc,onDrag:va,dismissible:g,shouldAnimate:he,handleOnly:p,isOpen:ne,isDragging:oe,shouldFade:ga,closeDrawer:Ya,onNestedDrag:Wi,onNestedOpenChange:yl,onNestedRelease:xl,keyboardIsOpen:Ne,modal:_,snapPointsOffset:br,activeSnapPointIndex:sn,direction:E,shouldScaleBackground:o,setBackgroundColorOnScale:u,noBodyStyles:C,container:V,autoFocus:q}},n))}const qB=K.forwardRef(function({...e},t){const{overlayRef:n,snapPoints:r,onRelease:i,shouldFade:a,isOpen:o,modal:u,shouldAnimate:f}=Yp(),h=IB(t,n),g=r&&r.length>0;if(!u)return null;const p=K.useCallback(y=>i(y),[i]);return K.createElement(DJ,{onMouseUp:p,ref:h,"data-vaul-overlay":"","data-vaul-snap-points":o&&g?"true":"false","data-vaul-snap-points-overlay":o&&a?"true":"false","data-vaul-animate":f!=null&&f.current?"true":"false",...e})});qB.displayName="Drawer.Overlay";const VB=K.forwardRef(function({onPointerDownOutside:e,style:t,onOpenAutoFocus:n,...r},i){const{drawerRef:a,onPress:o,onRelease:u,onDrag:f,keyboardIsOpen:h,snapPointsOffset:g,activeSnapPointIndex:p,modal:y,isOpen:w,direction:j,snapPoints:S,container:_,handleOnly:P,shouldAnimate:O,autoFocus:C}=Yp(),[E,T]=K.useState(!1),M=IB(i,a),I=K.useRef(null),$=K.useRef(null),z=K.useRef(!1),Y=S&&S.length>0;fee();const V=(G,Q,ne=0)=>{if(z.current)return!0;const ie=Math.abs(G.y),re=Math.abs(G.x),W=re>ie,oe=["bottom","right"].includes(Q)?1:-1;if(Q==="left"||Q==="right"){if(!(G.x*oe<0)&&re>=0&&re<=ne)return W}else if(!(G.y*oe<0)&&ie>=0&&ie<=ne)return!W;return z.current=!0,!0};K.useEffect(()=>{Y&&window.requestAnimationFrame(()=>{T(!0)})},[]);function q(G){I.current=null,z.current=!1,u(G)}return K.createElement($J,{"data-vaul-drawer-direction":j,"data-vaul-drawer":"","data-vaul-delayed-snap-points":E?"true":"false","data-vaul-snap-points":w&&Y?"true":"false","data-vaul-custom-container":_?"true":"false","data-vaul-animate":O!=null&&O.current?"true":"false",...r,ref:M,style:g&&g.length>0?{"--snap-point-height":`${g[p??0]}px`,...t}:t,onPointerDown:G=>{P||(r.onPointerDown==null||r.onPointerDown.call(r,G),I.current={x:G.pageX,y:G.pageY},o(G))},onOpenAutoFocus:G=>{n==null||n(G),C||G.preventDefault()},onPointerDownOutside:G=>{if(e==null||e(G),!y||G.defaultPrevented){G.preventDefault();return}h.current&&(h.current=!1)},onFocusOutside:G=>{if(!y){G.preventDefault();return}},onPointerMove:G=>{if($.current=G,P||(r.onPointerMove==null||r.onPointerMove.call(r,G),!I.current))return;const Q=G.pageY-I.current.y,ne=G.pageX-I.current.x,ie=G.pointerType==="touch"?10:2;V({x:ne,y:Q},j,ie)?f(G):(Math.abs(ne)>ie||Math.abs(Q)>ie)&&(I.current=null)},onPointerUp:G=>{r.onPointerUp==null||r.onPointerUp.call(r,G),I.current=null,z.current=!1,u(G)},onPointerOut:G=>{r.onPointerOut==null||r.onPointerOut.call(r,G),q($.current)},onContextMenu:G=>{r.onContextMenu==null||r.onContextMenu.call(r,G),$.current&&q($.current)}})});VB.displayName="Drawer.Content";const mee=250,gee=120,vee=K.forwardRef(function({preventCycle:e=!1,children:t,...n},r){const{closeDrawer:i,isDragging:a,snapPoints:o,activeSnapPoint:u,setActiveSnapPoint:f,dismissible:h,handleOnly:g,isOpen:p,onPress:y,onDrag:w}=Yp(),j=K.useRef(null),S=K.useRef(!1);function _(){if(S.current){C();return}window.setTimeout(()=>{P()},gee)}function P(){if(a||e||S.current){C();return}if(C(),!o||o.length===0){h||i();return}if(u===o[o.length-1]&&h){i();return}const T=o.findIndex(I=>I===u);if(T===-1)return;const M=o[T+1];
406f(M)}function O(){j.current=window.setTimeout(()=>{S.current=!0},mee)}function C(){j.current&&window.clearTimeout(j.current),S.current=!1}return K.createElement("div",{onClick:_,onPointerCancel:C,onPointerDown:E=>{g&&y(E),O()},onPointerMove:E=>{g&&w(E)},ref:r,"data-vaul-drawer-visible":p?"true":"false","data-vaul-handle":"","aria-hidden":"true",...n},K.createElement("span",{"data-vaul-handle-hitarea":"","aria-hidden":"true"},t))});vee.displayName="Drawer.Handle";function yee(e){const t=Yp(),{container:n=t.container,...r}=e;return K.createElement(RJ,{container:n,...r})}const Go={Root:pee,Content:VB,Overlay:qB,Portal:yee,Title:qJ,Description:WJ},WB=({shouldScaleBackground:e=!0,...t})=>c.jsx(Go.Root,{shouldScaleBackground:e,...t});WB.displayName="Drawer";const xee=Go.Portal,UB=k.forwardRef(({className:e,...t},n)=>c.jsx(Go.Overlay,{ref:n,className:Ht("fixed inset-0 z-50 bg-black/80",e),...t}));UB.displayName=Go.Overlay.displayName;const HB=k.forwardRef(({className:e,children:t,...n},r)=>c.jsxs(xee,{children:[c.jsx(UB,{}),c.jsxs(Go.Content,{ref:r,className:Ht("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",e),...n,children:[c.jsx("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"}),t]})]}));HB.displayName="DrawerContent";const GB=({className:e,...t})=>c.jsx("div",{className:Ht("grid gap-1.5 p-4 text-center sm:text-left",e),...t});GB.displayName="DrawerHeader";const KB=k.forwardRef(({className:e,...t},n)=>c.jsx(Go.Title,{ref:n,className:Ht("text-lg font-semibold leading-none tracking-tight",e),...t}));KB.displayName=Go.Title.displayName;const bee=k.forwardRef(({className:e,...t},n)=>c.jsx(Go.Description,{ref:n,className:Ht("text-sm text-muted-foreground",e),...t}));bee.displayName=Go.Description.displayName;function wee({value:e,onChange:t,options:n=[],label:r,placeholder:i="Select..."}){var p;const[a,o]=k.useState(!1),[u,f]=k.useState(""),h=n.filter(y=>y.label.toLowerCase().includes(u.toLowerCase())),g=((p=n.find(y=>y.value===e))==null?void 0:p.label)||i;return c.jsxs(c.Fragment,{children:[c.jsx("button",{onClick:()=>o(!0),className:"w-full bg-[#060d1f] border border-white/10 text-gray-300 text-xs font-bold uppercase tracking-wider rounded-lg px-3 py-1.5 outline-none focus:border-[#00d4ff]/40 text-left",children:g}),c.jsx(WB,{open:a,onOpenChange:o,children:c.jsxs(HB,{className:"max-h-[70vh]",children:[c.jsx(GB,{children:c.jsx(KB,{className:"text-white",children:r})}),c.jsxs("div",{className:"px-4 pb-4 space-y-3",children:[c.jsx(Et,{placeholder:"Search...",value:u,onChange:y=>f(y.target.value),className:"bg-[#0d1830] border-white/10 text-white"}),c.jsx("div",{className:"space-y-2 max-h-[40vh] overflow-y-auto",children:h.map(y=>c.jsxs("button",{onClick:()=>{t(y.value),o(!1),f("")},className:`w-full text-left px-4 py-3 rounded-lg text-sm font-bold uppercase tracking-wider transition-all flex items-center justify-between ${e===y.value?"bg-[#00d4ff] text-[#060d1f]":"bg-[#0d1830] border border-white/10 text-gray-300 hover:border-[#00d4ff]/40"}`,children:[y.label,e===y.value&&c.jsx($u,{className:"w-4 h-4"})]},y.value))})]})]})})]})}delete tA.Icon.Default.prototype._getIconUrl;tA.Icon.Default.mergeOptions({iconRetinaUrl:"https://unpkg.com/[email protected]/dist/images/marker-icon-2x.png",iconUrl:"https://unpkg.com/[email protected]/dist/images/marker-icon.png",shadowUrl:"https://unpkg.com/[email protected]/dist/images/marker-shadow.png"});const O2=[{value:"all",label:"All Types"},{value:"club",label:"Club"},{value:"range",label:"Range"},{value:"indoor",label:"Indoor"},{value:"outdoor",label:"Outdoor"},{value:"3d_course",label:"3D Course"},{value:"pro_shop",label:"Pro Shop"}],Cb={club:"#00d4ff",range:"#f59e0b",indoor:"#8b5cf6",outdoor:"#10b981","3d_course":"#f97316",pro_shop:"#ec4899"};function _ee(e){return tA.divIcon({className:"",html:`<div style="width:14px;height:14px;border-radius:50%;background:${e};border:2px solid white;box-shadow:0 0 8px ${e}88;"></div>`,iconSize:[14,14],iconAnchor:[7,7]})}function See(){const[e,t]=k.useState("all"),[n,r]=k.useState(""),[i,a]=k.useState(null),{data:o=[],isLoading:u}=an({queryKey:["locations"],queryFn:()=>on.entities.Location.list()}),f=k.useMemo(()=>{const p=new Set(o.map(y=>
406y.city).filter(Boolean));return["",...Array.from(p).sort()]},[o]),h=k.useMemo(()=>o.filter(p=>{const y=e==="all"||p.facility_type===e,w=!n||p.city===n;return y&&w}),[o,e,n]),g=h.filter(p=>p.lat&&p.lng);return c.jsxs("div",{className:"min-h-screen bg-[#060d1f]",children:[c.jsx("div",{className:"bg-[#02060f] pt-16 pb-20 border-b border-white/10",children:c.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[c.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[c.jsx("div",{className:"h-1 w-10 bg-[#00d4ff] rounded-full"}),c.jsx("span",{className:"text-[#00d4ff] text-xs font-black uppercase tracking-widest",children:"Compete"})]}),c.jsx("h1",{className:"text-4xl lg:text-6xl font-black text-white uppercase tracking-tight",children:"Locations"}),c.jsx("p",{className:"text-gray-400 mt-3 max-w-xl",children:"Find archery clubs and ranges across Texas."})]})}),c.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8",children:[c.jsxs("div",{className:"bg-[#0d1830] border border-white/10 rounded-xl p-3 mb-6 flex flex-wrap items-center gap-2",style:{position:"relative",zIndex:10},children:[c.jsx(Ty,{className:"w-4 h-4 text-gray-600 ml-1"}),O2.map(p=>c.jsx("button",{onClick:()=>t(p.value),className:`px-3 py-1.5 rounded-lg text-xs font-black uppercase tracking-wider transition-all ${e===p.value?"bg-[#00d4ff] text-[#060d1f]":"text-gray-500 hover:text-white hover:bg-white/5"}`,children:p.label},p.value)),c.jsx("div",{className:"ml-auto w-32 sm:w-auto",children:c.jsx(wee,{value:n,onChange:r,options:[{value:"",label:"All Cities"},...f.filter(Boolean).map(p=>({value:p,label:p}))],label:"Select City",placeholder:"All Cities"})})]}),c.jsxs("div",{className:"grid lg:grid-cols-3 gap-6",children:[c.jsx("div",{className:"lg:col-span-2 rounded-xl overflow-hidden border border-white/10 h-[300px] sm:h-[420px] lg:h-[520px]",style:{isolation:"isolate"},children:typeof window<"u"&&c.jsxs(hQ,{center:[31,-100],zoom:6,style:{height:"100%",width:"100%",background:"#0d1830"},children:[c.jsx(gQ,{url:"https://{s}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}{r}.png",attribution:'© <a href="https://carto.com/">CARTO</a>'}),g.map(p=>c.jsx(pQ,{position:[p.lat,p.lng],icon:_ee(Cb[p.facility_type]||"#00d4ff"),eventHandlers:{click:()=>a(p)},children:c.jsxs(mQ,{className:"leaflet-popup-dark",children:[c.jsx("div",{className:"text-sm font-bold text-white",children:p.name}),c.jsx("div",{className:"text-xs text-gray-400 mt-0.5",children:p.city})]})},p.id))]})}),c.jsx("div",{className:"flex flex-col gap-3 overflow-y-auto max-h-[400px] lg:max-h-[520px] pr-1",children:u?Array.from({length:5}).map((p,y)=>c.jsx("div",{className:"h-20 bg-white/5 rounded-xl animate-pulse"},y)):h.length===0?c.jsxs("div",{className:"text-center py-16",children:[c.jsx(Wr,{className:"w-10 h-10 text-white/10 mx-auto mb-3"}),c.jsx("p",{className:"text-gray-500 text-sm",children:"No locations found"})]}):h.map((p,y)=>{var w;return c.jsxs(Ue.div,{initial:{opacity:0,x:10},animate:{opacity:1,x:0},transition:{delay:y*.03},onClick:()=>a(p),className:`cursor-pointer bg-[#0d1830] border rounded-xl p-4 transition-all hover:border-[#00d4ff]/40 ${(i==null?void 0:i.id)===p.id?"border-[#00d4ff]/60 shadow-lg shadow-[#00d4ff]/10":"border-white/10"}`,children:[c.jsx("div",{className:"flex items-start justify-between gap-2",children:c.jsxs("div",{className:"flex-1 min-w-0",children:[c.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[c.jsx("div",{className:"w-2.5 h-2.5 rounded-full flex-shrink-0",style:{background:Cb[p.facility_type]||"#00d4ff"}}),c.jsx("span",{className:"text-[10px] font-black uppercase tracking-widest text-gray-500",children:(w=p.facility_type)==null?void 0:w.replace(/_/g," ")}),p.is_verified&&c.jsx(hd,{className:"w-3 h-3 text-[#00d4ff]"})]}),c.jsx("h3",{className:"font-black text-white text-sm leading-tight truncate",children:p.name}),c.jsxs("p",{className:"text-xs text-gray-500 mt-0.5",children:[p.city,p.address?`, ${p.address}`:""]})]})}),(i==null?void 0:i.id)===p.id&&c.jsxs("div",{className:"mt-3 pt-3 border-t border-white/10 space-y-1.5",children:[p.description&&c.jsx("p",{className:"text-xs text-gray-400",children:p.description}),p.phone&&c.jsxs("div",{className:"flex items-center gap-1.5 text-xs text-gray-500",children:[c.jsx(HV,{className:"w-3 h-3"}),p.phone]}),p.website&&c.jsxs("a",{href:p.website,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 text-xs text-[#00d4ff] hover:underline",onClick:j=>j.stopPropagation(),children:[c.jsx(fi,{className:"w-3 h-3"})," Visit Website"]})]})]}
406,p.id)})})]}),c.jsx("div",{className:"mt-6 bg-[#0d1830] border border-white/10 rounded-xl p-4 flex flex-wrap gap-4",children:O2.filter(p=>p.value!=="all").map(p=>c.jsxs("div",{className:"flex items-center gap-2 text-xs text-gray-400",children:[c.jsx("div",{className:"w-3 h-3 rounded-full",style:{background:Cb[p.value]}}),p.label]},p.value))})]})]})}const jee=[{value:"all",label:"All"},{value:"announcement",label:"Announcements"},{value:"results",label:"Results"},{value:"meeting",label:"Meetings"},{value:"championship",label:"Championships"},{value:"general",label:"General"}];function Pee(){const[e,t]=k.useState("all"),n=pN(),{data:r,isLoading:i}=an({queryKey:["news"],queryFn:()=>on.entities.NewsPost.list("-created_date",50),initialData:[]}),a=async()=>{await n.invalidateQueries({queryKey:["news"]})},o=r.filter(h=>h.published!==!1).filter(h=>e==="all"||h.category===e),u=o.find(h=>h.is_featured),f=o.filter(h=>h.id!==(u==null?void 0:u.id));return c.jsx(q$,{onRefresh:a,children:c.jsxs("div",{className:"min-h-screen bg-[#060d1f]",children:[c.jsx(gi,{title:"News & Updates",description:"Latest news, announcements, and updates from the Texas State Archery Association. Stay informed about TSAA events and results.",image:"https://www.tsaa.us/wp-content/uploads/2024/12/cropped-NEWTSAALOGO-1-e1733727925390.gif",type:"WebPage"}),c.jsx("div",{className:"bg-[#02060f] pt-16 pb-20 border-b border-white/10",children:c.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[c.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[c.jsx("div",{className:"h-1 w-10 bg-[#00d4ff] rounded-full"}),c.jsx("span",{className:"text-[#00d4ff] text-xs font-black uppercase tracking-widest",children:"Stay Informed"})]}),c.jsx("h1",{className:"text-4xl lg:text-6xl font-black text-white uppercase tracking-tight",children:"News & Updates"})]})}),c.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8",children:[c.jsx("div",{className:"bg-[#0d1830] border border-white/10 rounded-xl p-3 mb-8 flex flex-wrap gap-2",children:jee.map(h=>c.jsx("button",{onClick:()=>t(h.value),className:`px-4 py-1.5 rounded-lg text-xs font-black uppercase tracking-wider transition-all ${e===h.value?"bg-[#00d4ff] text-[#060d1f]":"text-gray-500 hover:text-white hover:bg-white/5"}`,children:h.label},h.value))}),i?c.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-4 pb-16",children:[1,2,3,4,5,6].map(h=>c.jsx("div",{className:"h-56 bg-white/5 rounded-xl animate-pulse"},h))}):o.length===0?c.jsx("div",{className:"text-center py-20",children:c.jsx("p",{className:"text-gray-500 text-lg",children:"No posts found"})}):c.jsxs("div",{className:"pb-16",children:[u&&c.jsx(Je,{to:Xe("NewsDetail")+`?id=${u.id}`,className:"block mb-8 bg-[#0d1830] rounded-xl overflow-hidden border border-white/10 hover:border-[#00d4ff]/40 hover:shadow-xl hover:shadow-[#00d4ff]/5 transition-all group",children:c.jsxs("div",{className:"flex flex-col md:flex-row",children:[u.image_url&&c.jsx("div",{className:"md:w-1/2 h-64 md:h-auto overflow-hidden",children:c.jsx("img",{src:u.image_url,alt:u.title,className:"w-full h-full object-cover opacity-80 group-hover:opacity-100 group-hover:scale-105 transition-all duration-500",onError:h=>{h.target.parentElement.style.display="none"}})}),c.jsxs("div",{className:"p-8 flex-1 flex flex-col justify-center",children:[c.jsx("span",{className:"text-[10px] font-black uppercase tracking-widest text-[#00d4ff] mb-3",children:"Featured"}),c.jsx("h2",{className:"text-2xl font-black text-white mb-3 group-hover:text-[#00d4ff] transition-colors uppercase tracking-tight",children:u.title}),u.summary&&c.jsx("p",{className:"text-gray-500 mb-4 line-clamp-3",children:u.summary}),c.jsxs("div",{className:"flex items-center gap-4 text-sm text-gray-600",children:[c.jsxs("div",{className:"flex items-center gap-1.5",children:[c.jsx(Rh,{className:"w-3.5 h-3.5"}),hn(new Date(u.created_date),"MMM d, yyyy")]}),c.jsxs("span",{className:"flex items-center gap-1 font-black text-[#00d4ff] text-xs uppercase tracking-wider group-hover:gap-2 transition-all",children:["Read More ",c.jsx(Ln,{className:"w-3.5 h-3.5"})]})]})]})]})}),c.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-4",children:f.map((h,g)=>{var p;return c.jsx(Ue.div,{initial:{opacity:0,y:20}
406,animate:{opacity:1,y:0},transition:{delay:g*.05},children:c.jsxs(Je,{to:Xe("NewsDetail")+`?id=${h.id}`,className:"flex flex-col bg-[#0d1830] rounded-xl overflow-hidden border border-white/10 hover:border-[#00d4ff]/40 hover:shadow-xl hover:shadow-[#00d4ff]/5 transition-all group h-full",children:[h.image_url&&c.jsx("div",{className:"h-40 overflow-hidden",children:c.jsx("img",{src:h.image_url,alt:h.title,className:"w-full h-full object-cover opacity-80 group-hover:opacity-100 group-hover:scale-105 transition-all duration-500",onError:y=>{y.target.parentElement.style.display="none"}})}),c.jsxs("div",{className:"p-6 flex flex-col flex-1",children:[c.jsx("span",{className:"text-[10px] font-black uppercase tracking-widest text-[#00d4ff]",children:((p=h.category)==null?void 0:p.replace(/_/g," "))||"News"}),c.jsx("h3",{className:"font-black text-white mt-1 mb-2 line-clamp-2 group-hover:text-[#00d4ff] transition-colors",children:h.title}),h.summary&&c.jsx("p",{className:"text-sm text-gray-500 line-clamp-2 mb-3",children:h.summary}),c.jsxs("div",{className:"flex items-center gap-1.5 text-xs text-gray-600 mt-auto",children:[c.jsx(Rh,{className:"w-3 h-3"}),hn(new Date(h.created_date),"MMM d, yyyy")]})]})]})},h.id)})})]})]})]})})}function Nee(){var r;const e=new URLSearchParams(window.location.search).get("id"),{data:t,isLoading:n}=an({queryKey:["news",e],queryFn:async()=>(await on.entities.NewsPost.list()).find(a=>a.id===e),enabled:!!e});return n?c.jsx("div",{className:"min-h-screen bg-white",children:c.jsxs("div",{className:"max-w-3xl mx-auto px-4 py-16",children:[c.jsx("div",{className:"h-8 w-48 bg-gray-200 rounded animate-pulse mb-4"}),c.jsx("div",{className:"h-12 w-full bg-gray-200 rounded animate-pulse mb-8"}),c.jsx("div",{className:"space-y-3",children:[1,2,3,4,5].map(i=>c.jsx("div",{className:"h-4 bg-gray-100 rounded animate-pulse",style:{width:`${90-i*5}%`}},i))})]})}):t?c.jsxs("div",{className:"min-h-screen bg-white",children:[t.image_url&&c.jsx("div",{className:"h-64 lg:h-96 overflow-hidden",children:c.jsx("img",{src:t.image_url,alt:t.title,className:"w-full h-full object-cover"})}),c.jsxs("div",{className:"max-w-3xl mx-auto px-4 sm:px-6 py-10 lg:py-16",children:[c.jsxs(Je,{to:Xe("News"),className:"inline-flex items-center gap-2 text-sm text-gray-400 hover:text-[#1a2744] transition-colors mb-8",children:[c.jsx(Gd,{className:"w-4 h-4"})," Back to News"]}),c.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[c.jsxs("span",{className:"text-xs font-semibold uppercase tracking-wider text-[#d4a843] flex items-center gap-1",children:[c.jsx(l3,{className:"w-3 h-3"}),((r=t.category)==null?void 0:r.replace(/_/g," "))||"News"]}),c.jsxs("span",{className:"text-xs text-gray-400 flex items-center gap-1",children:[c.jsx(Rh,{className:"w-3 h-3"}),hn(new Date(t.created_date),"MMMM d, yyyy")]})]}),c.jsx("h1",{className:"text-3xl lg:text-4xl font-bold text-[#1a2744] mb-8 leading-tight",children:t.title}),t.summary&&c.jsx("p",{className:"text-lg text-gray-500 mb-8 pb-8 border-b border-gray-100",children:t.summary}),c.jsx("div",{className:"prose prose-slate max-w-none prose-headings:text-[#1a2744] prose-a:text-[#d4a843]",dangerouslySetInnerHTML:{__html:t.content||""}})]})]}):c.jsx("div",{className:"min-h-screen bg-white flex items-center justify-center",children:c.jsxs("div",{className:"text-center",children:[c.jsx("p",{className:"text-gray-500 text-lg mb-4",children:"Post not found"}),c.jsx(Je,{to:Xe("News"),className:"text-[#d4a843] font-medium hover:underline",children:"Back to News"})]})})}const Fr=k.forwardRef(({className:e,...t},n)=>c.jsx("textarea",{className:Ht("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}));Fr.displayName="Textarea";function Aee(){const[e,t]=k.useState({athlete_name:"",age:"",division:"",coach_name:"",coach_email:"",story:"",q1_inspiration:"",q2_mentor:"",q3_achievement:"",q4_impact:"",q5_strategy:"",q6_advice:"",q7_goals:"",video_q1_url:"",video_q3_url:"",video_q7_url:""}),[n,r]=k.useState({athlete_signature:"",parent_signature:"",parent_name:""}),[i,a]=k.useState(!1),[o,u]=k.useState(!1),[f,h]=k.useState(null),g=parseInt(e.age)<18,p=async y=>{y.preventDefault(),a(!0),h(null);try{await Gp("New Archer Nomination: "+e.athlete_name,{...e,"Release form":g?`Signed by athlete (${n.athlete_signature}) and parent/guardian (${n.parent_name}: ${n.parent_signature})`:`Signed by athlete (${n.athlete_signature})`,"Signed at":new Date().toISOString()},e.coach_email),u(!0),t({athlete_name:"",age:"",division:"",coach_name:"",coach_email:"",story:"",q1_inspiration:"",q2_mentor:"",q3_achievement:"",q4_impact:"",q5_strategy:"",q6_advice:"",q7_goals:"",video_q1_url:"",video_q3_url:"",video_q7_url:""}),r({athlete_signature:"",parent_signature:"",parent_name:""})}catch(w){console.error(w),h(w.message||"Something went wrong submitting your nomination. Please try again.")}a(!1)};return c.jsxs("div",{className:"min-h-screen bg-[#060d1f]",children:[c.jsx("div",{className:"bg-[#02060f] pt-16 pb-20 border-b border-white/10",children:c.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:[c.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[c.jsx(ko,{className:"w-5 h-5 text-[#00d4ff]"}),c.jsx("span",{className:"text-[#00d4ff] text-xs font-black uppercase tracking-widest",children:"Recognition"})]}),c.jsx("h1",{className:"text-4xl lg:text-5xl font-black text-white uppercase tracking-tight",children:"Nominate an Archer"}),c.jsx("p",{className:"text-gray-400 mt-3",children:"Coaches: Nominate your outstanding athletes for our Featured Archer of the Month."})]})}),c.jsx("div",{className:"max-w-2xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:o?c.jsxs(Ue.div,{initial:{opacity:0,scale:.95}
406,animate:{opacity:1,scale:1},className:"bg-green-500/10 border border-green-500/30 rounded-xl p-8 text-center",children:[c.jsx(hd,{className:"w-12 h-12 text-green-400 mx-auto mb-3"}),c.jsx("h2",{className:"text-xl font-black text-white mb-2",children:"Nomination Submitted!"}),c.jsx("p",{className:"text-gray-400",children:"Thanks for nominating this athlete. The board will review and be in touch."})]}):c.jsxs("form",{onSubmit:p,className:"bg-[#0d1830] border border-white/10 rounded-xl p-8 space-y-6",children:[c.jsxs("div",{className:"grid md:grid-cols-2 gap-4",children:[c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-black text-white mb-2",children:"Athlete Name *"}),c.jsx(Et,{required:!0,value:e.athlete_name,onChange:y=>t({...e,athlete_name:y.target.value}),className:"bg-[#060d1f] border-white/10 text-white",placeholder:"Full name"})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-black text-white mb-2",children:"Age *"}),c.jsx(Et,{required:!0,type:"number",value:e.age,onChange:y=>t({...e,age:y.target.value}),className:"bg-[#060d1f] border-white/10 text-white",placeholder:"Age"})]})]}),c.jsxs("div",{className:"grid md:grid-cols-2 gap-4",children:[c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-black text-white mb-2",children:"Division *"}),c.jsx(Et,{required:!0,value:e.division,onChange:y=>t({...e,division:y.target.value}),className:"bg-[#060d1f] border-white/10 text-white",placeholder:"e.g., Recurve, Compound"})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-black text-white mb-2",children:"Coach Email *"}),c.jsx(Et,{required:!0,type:"email",value:e.coach_email,onChange:y=>t({...e,coach_email:y.target.value}),className:"bg-[#060d1f] border-white/10 text-white",placeholder:"[email protected]"})]})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-black text-white mb-2",children:"Your Name *"}),c.jsx(Et,{required:!0,value:e.coach_name,onChange:y=>t({...e,coach_name:y.target.value}),className:"bg-[#060d1f] border-white/10 text-white",placeholder:"Coach name"})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-black text-white mb-2",children:"Why This Athlete? (Story) *"}),c.jsx(Fr,{required:!0,value:e.story,onChange:y=>t({...e,story:y.target.value}),className:"bg-[#060d1f] border-white/10 text-white h-32",placeholder:"Tell us about their achievements, dedication, improvement, and what makes them special..."}),c.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"This will be featured on our website and YouTube interview."})]}),c.jsxs("div",{className:"border-t border-white/10 pt-6",children:[c.jsxs("h3",{className:"text-lg font-black text-white mb-4 flex items-center gap-2",children:[c.jsx("span",{className:"inline-flex items-center justify-center w-6 h-6 rounded-full bg-[#00d4ff]/20 text-[#00d4ff] text-xs font-black",children:"✓"}),"Media Release Form"]}),c.jsx("p",{className:"text-xs text-gray-400 mb-4",children:"Required before nomination. Grants full promotional use including name, photo, story, and videos."}),c.jsx("div",{className:"bg-[#000a15] border border-white/10 rounded-lg p-4 mb-4 space-y-3 text-xs text-gray-300",children:c.jsxs("p",{children:[c.jsx("span",{className:"font-bold text-white",children:"Permission Granted:"})," For the featured athlete to use my/our name, image, likeness, voice, and biographical information for full promotional and marketing purposes, including website, social media, videos, press releases, and other media."]})}),c.jsxs("div",{className:"space-y-4",children:[c.jsxs("div",{children:[c.jsxs("label",{className:"block text-sm font-black text-white mb-2",children:["Athlete Signature / Consent *",c.jsx("span",{className:"text-[#00d4ff] text-xs ml-1",children:"(Type name to confirm)"})]}),c.jsx(Et,{required:!0,value:n.athlete_signature,onChange:y=>r({...n,athlete_signature:y.target.value}),className:"bg-[#060d1f] border-white/10 text-white",placeholder:`I, ${e.athlete_name}, agree to the media release...`})]}),g&&c.jsxs(c.Fragment,{children:[c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-black text-white mb-2",children:"Parent/Guardian Name *"}),c.jsx(Et,{required:!0,value:n.parent_name,onChange:y=>r({...n,parent_name:y.target.value}),className:"bg-[#060d1f] border-white/10 text-white",placeholder:"Full name of parent or guardian"})]}),c.jsxs("div",{children:[c.jsxs("label",{className:"block text-sm font-black text-white mb-2",children:["Parent/Guardian Signature / Consent *",c.jsx("span",{className:"text-[#00d4ff] text-xs ml-1",children:"(Type name to confirm)"})]}),c.jsx(Et,{required:!0,value:n.parent_signature,onChange:y=>r({...n,parent_signature:y.target.value}),className:"bg-[#060d1f] border-white/10 text-white",placeholder:`I, ${n.parent_name}, authorize the media release...`})]})]})]})]}),c.jsxs("div",{className:"border-t border-white/10 pt-6",children:[c.jsx("h3",{className:"text-lg font-black text-white mb-4",children:"Interview Questions for Athlete"}),c.jsx("p",{className:"text-xs text-gray-400 mb-4",children:"Have the athlete answer all questions below. Questions 1, 3, and 7 should also include video responses."}),c.jsxs("div",{className:"space-y-4",children:[c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-black text-white mb-2",children:"Q1: What inspired you to start archery, and when did you first pick up a bow? *"}),c.jsx(Fr,{required:!0,value:e.q1_inspiration,onChange:y=>t({...e,q1_inspiration:y.target.value}),className:"bg-[#060d1f] border-white/10 text-white h-20",placeholder:"Answer text..."}),c.jsxs("div",{className:"mt-2",children:[c.jsx("label",{className:"text-xs font-black text-[#00d4ff] block mb-2",children:"Video Response (optional)"}),c.jsx("input",{type:"url",value:e.video_q1_url,onChange:y=>t({...e,video_q1_url:y.target.value}),placeholder:"Paste a YouTube or Google Drive link",className:"hidden",className:"w-full bg-[#0d1830] border border-white/10 rounded-lg px-3 py-2 text-xs text-white"})]})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-black text-white mb-2",children:"Q2: Who has been your biggest influence or mentor in archery, and what have they taught you? *"}),c.jsx(Fr,{required:!0,value:e.q2_mentor,onChange:y=>t({...e,q2_mentor:y.target.value}),className:"bg-[#060d1f] border-white/10 text-white h-20",placeholder:"Answer text..."})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-black text-white mb-2",children:"Q3: What is your proude
406st achievement in archery so far? *"}),c.jsx(Fr,{required:!0,value:e.q3_achievement,onChange:y=>t({...e,q3_achievement:y.target.value}),className:"bg-[#060d1f] border-white/10 text-white h-20",placeholder:"Answer text..."}),c.jsxs("div",{className:"mt-2",children:[c.jsx("label",{className:"text-xs font-black text-[#00d4ff] block mb-2",children:"Video Response (optional)"}),c.jsx("input",{type:"url",value:e.video_q3_url,onChange:y=>t({...e,video_q3_url:y.target.value}),placeholder:"Paste a YouTube or Google Drive link",className:"hidden",className:"w-full bg-[#0d1830] border border-white/10 rounded-lg px-3 py-2 text-xs text-white"})]})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-black text-white mb-2",children:"Q4: How has archery changed you as a person, both on and off the range? *"}),c.jsx(Fr,{required:!0,value:e.q4_impact,onChange:y=>t({...e,q4_impact:y.target.value}),className:"bg-[#060d1f] border-white/10 text-white h-20",placeholder:"Answer text..."})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-black text-white mb-2",children:"Q5: What's your pre-competition routine or mental strategy to stay focused? *"}),c.jsx(Fr,{required:!0,value:e.q5_strategy,onChange:y=>t({...e,q5_strategy:y.target.value}),className:"bg-[#060d1f] border-white/10 text-white h-20",placeholder:"Answer text..."})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-black text-white mb-2",children:"Q6: What advice would you give to someone just starting their archery journey? *"}),c.jsx(Fr,{required:!0,value:e.q6_advice,onChange:y=>t({...e,q6_advice:y.target.value}),className:"bg-[#060d1f] border-white/10 text-white h-20",placeholder:"Answer text..."})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-black text-white mb-2",children:"Q7: Where do you see yourself in archery 5 years from now, and what are your goals? *"}),c.jsx(Fr,{required:!0,value:e.q7_goals,onChange:y=>t({...e,q7_goals:y.target.value}),className:"bg-[#060d1f] border-white/10 text-white h-20",placeholder:"Answer text..."}),c.jsxs("div",{className:"mt-2",children:[c.jsx("label",{className:"text-xs font-black text-[#00d4ff] block mb-2",children:"Video Response (optional)"}),c.jsx("input",{type:"url",value:e.video_q7_url,onChange:y=>t({...e,video_q7_url:y.target.value}),placeholder:"Paste a YouTube or Google Drive link",className:"hidden",className:"w-full bg-[#0d1830] border border-white/10 rounded-lg px-3 py-2 text-xs text-white"})]})]})]})]}),f&&c.jsx("div",{className:"bg-red-500/10 border border-red-500/30 rounded-lg p-4 text-red-400 text-sm",children:f}),c.jsx(Hp,{type:"submit",disabled:i,className:"w-full bg-[#00d4ff] hover:bg-[#00bfe8] text-[#060d1f] font-black text-sm",children:i?"Submitting...":"Submit Nomination"})]})})]})}function Tee(){const[e,t]=k.useState(""),[n,r]=k.useState("deletion"),[i,a]=k.useState(!1),[o,u]=k.useState(""),[f,h]=k.useState(""),g=async p=>{if(p.preventDefault(),!e.trim()){u("Please enter your email address."),h("error");return}a(!0);
406try{await Gp(`Privacy Request: ${n==="deletion"?"Data Deletion":n==="communications"?"Opt-Out Communications":"Data Access"}`,{"Request type":n,email:e,Note:"Please process this request within 30 days."},e),u(`Your ${n} request has been submitted. We'll respond within 30 days.`),h("success"),t(""),r("deletion")}catch{u("Failed to submit request. Please try again."),h("error")}finally{a(!1)}};return c.jsxs("div",{className:"min-h-screen bg-[#060d1f]",children:[c.jsx(gi,{title:"Privacy Choices",description:"Manage your privacy preferences, request data deletion, and control your personal information with the Texas State Archery Association.",type:"WebPage"}),c.jsx("div",{className:"bg-[#02060f] pt-16 pb-20 border-b border-white/10",children:c.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:[c.jsxs(Je,{to:Xe("PrivacyPolicy"),className:"inline-flex items-center gap-2 text-gray-400 hover:text-white transition-colors mb-6",children:[c.jsx(Gd,{className:"w-4 h-4"}),"Back to Privacy Policy"]}),c.jsx("h1",{className:"text-4xl lg:text-5xl font-black text-white uppercase tracking-tight",children:"Your Privacy Choices"}),c.jsx("p",{className:"text-gray-400 mt-4",children:"Control your data and privacy preferences"})]})}),c.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:c.jsxs("div",{className:"grid md:grid-cols-2 gap-8",children:[c.jsxs("div",{children:[c.jsx("h2",{className:"text-2xl font-black text-white uppercase tracking-tight mb-6",children:"What You Can Do"}),c.jsxs("div",{className:"space-y-6",children:[c.jsxs("div",{className:"bg-[#0d1830] border border-white/10 rounded-xl p-6",children:[c.jsxs("div",{className:"flex gap-3 mb-3",children:[c.jsx($u,{className:"w-5 h-5 text-[#00d4ff] flex-shrink-0 mt-0.5"}),c.jsx("h3",{className:"font-black text-white",children:"Request Data Deletion"})]}),c.jsx("p",{className:"text-gray-400 text-sm leading-relaxed",children:"Request that we delete your personal information. We'll process your request within 30 days, except where required to keep data for legal reasons."})]}),c.jsxs("div",{className:"bg-[#0d1830] border border-white/10 rounded-xl p-6",children:[c.jsxs("div",{className:"flex gap-3 mb-3",children:[c.jsx($u,{className:"w-5 h-5 text-[#00d4ff] flex-shrink-0 mt-0.5"}),c.jsx("h3",{className:"font-black text-white",children:"Opt-Out of Communications"})]}),c.jsx("p",{className:"text-gray-400 text-sm leading-relaxed",children:"Stop receiving promotional emails and communications from TSAA while still receiving important event notifications."})]}),c.jsxs("div",{className:"bg-[#0d1830] border border-white/10 rounded-xl p-6",children:[c.jsxs("div",{className:"flex gap-3 mb-3",children:[c.jsx($u,{className:"w-5 h-5 text-[#00d4ff] flex-shrink-0 mt-0.5"}),c.jsx("h3",{className:"font-black text-white",children:"Request Data Access"})]}),c.jsx("p",{className:"text-gray-400 text-sm leading-relaxed",children:"Get a copy of all personal information we have about you, including your event registrations and profile data."})]}),c.jsxs("div",{className:"bg-[#0d1830] border border-white/10 rounded-xl p-6",children:[c.jsxs("div",{className:"flex gap-3 mb-3",children:[c.jsx($u,{className:"w-5 h-5 text-[#00d4ff] flex-shrink-0 mt-0.5"}),c.jsx("h3",{className:"font-black text-white",children:"Correct Your Information"})]}),c.jsx("p",{className:"text-gray-400 text-sm leading-relaxed",children:"Update or correct any inaccurate information we have on file. Submit your request and we'll make the changes within 14 days."})]})]}),c.jsx("div",{className:"mt-8 bg-blue-900/20 border border-blue-500/30 rounded-xl p-6",children:c.jsxs("div",{className:"flex gap-3",children:[c.jsx(uV,{className:"w-5 h-5 text-blue-400 flex-shrink-0 mt-0.5"}),c.jsxs("div",{children:[c.jsx("p",{className:"font-black text-white mb-2",children:"Processing Timeline"}),c.jsx("p",{className:"text-gray-300 text-sm",children:"We aim to process all privacy requests within 30 days. You'll receive confirmation once your request is complete."})]})]})})]}),c.jsxs("div",{children:[c.jsx("h2",{className:"text-2xl font-black text-white uppercase tracking-tight mb-6",children:"Submit a Request"}),c.jsxs("form",{onSubmit:g,className:"bg-[#0d1830] border border-white/10 rounded-xl p-8",children:[c.jsxs("div",{className:"mb-6",children:[c.jsx("label",{className:"block text-white font-black text-sm uppercase tracking-wider mb-3",children:"Email Address"}
406),c.jsx("input",{type:"email",value:e,onChange:p=>t(p.target.value),placeholder:"[email protected]",className:"w-full bg-[#060d1f] border border-white/10 rounded-lg px-4 py-3 text-white placeholder-gray-600 focus:border-[#00d4ff] focus:outline-none transition-colors",required:!0})]}),c.jsxs("div",{className:"mb-6",children:[c.jsx("label",{className:"block text-white font-black text-sm uppercase tracking-wider mb-3",children:"Request Type"}),c.jsxs("div",{className:"space-y-2",children:[c.jsxs("label",{className:"flex items-center gap-3 cursor-pointer p-3 rounded-lg hover:bg-white/5 transition-colors",children:[c.jsx("input",{type:"radio",name:"requestType",value:"deletion",checked:n==="deletion",onChange:p=>r(p.target.value),className:"w-4 h-4 cursor-pointer"}),c.jsx("span",{className:"text-gray-300",children:"Request Data Deletion"})]}),c.jsxs("label",{className:"flex items-center gap-3 cursor-pointer p-3 rounded-lg hover:bg-white/5 transition-colors",children:[c.jsx("input",{type:"radio",name:"requestType",value:"communications",checked:n==="communications",onChange:p=>r(p.target.value),className:"w-4 h-4 cursor-pointer"}),c.jsx("span",{className:"text-gray-300",children:"Opt-Out of Communications"})]}),c.jsxs("label",{className:"flex items-center gap-3 cursor-pointer p-3 rounded-lg hover:bg-white/5 transition-colors",children:[c.jsx("input",{type:"radio",name:"requestType",value:"access",checked:n==="access",onChange:p=>r(p.target.value),className:"w-4 h-4 cursor-pointer"}),c.jsx("span",{className:"text-gray-300",children:"Request Data Access"})]}),c.jsxs("label",{className:"flex items-center gap-3 cursor-pointer p-3 rounded-lg hover:bg-white/5 transition-colors",children:[c.jsx("input",{type:"radio",name:"requestType",value:"correction",checked:n==="correction",onChange:p=>r(p.target.value),className:"w-4 h-4 cursor-pointer"}),c.jsx("span",{className:"text-gray-300",children:"Correct Your Information"})]})]})]}),o&&c.jsx("div",{className:`mb-6 p-4 rounded-lg border ${f==="success"?"bg-green-900/20 border-green-500/30 text-green-300":"bg-red-900/20 border-red-500/30 text-red-300"}`,children:o}),c.jsx("button",{type:"submit",disabled:i,className:"w-full px-6 py-3 bg-[#00d4ff] text-[#060d1f] font-black uppercase tracking-wider rounded-lg hover:bg-[#00bfe8] transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:i?"Submitting...":"Submit Request"}),c.jsx("p",{className:"text-gray-500 text-xs text-center mt-6",children:"By submitting this form, you agree that we'll process your request according to our Privacy Policy."})]}),c.jsxs("div",{className:"mt-8 text-center",children:[c.jsx("p",{className:"text-gray-400 text-sm mb-4",children:"Prefer to contact us directly?"}),c.jsxs("a",{href:"mailto:[email protected]",className:"inline-flex items-center gap-2 px-6 py-2 border border-white/10 rounded-lg text-white hover:border-[#00d4ff]/40 hover:bg-white/5 transition-colors",children:[c.jsx(rr,{className:"w-4 h-4"}),"Email Us"]})]})]})]})})]})}function kee(){return c.jsxs("div",{className:"min-h-screen bg-[#060d1f]",children:[c.jsx(gi,{title:"Privacy Policy",description:"Privacy policy for the Texas State Archery Association. Learn how we collect, use, and protect your data.",type:"WebPage"}),c.jsx("div",{className:"bg-[#02060f] pt-16 pb-20 border-b border-white/10",children:c.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:[c.jsxs(Je,{to:Xe("Home"),className:"inline-flex items-center gap-2 text-gray-400 hover:text-white transition-colors mb-6",children:[c.jsx(Gd,{className:"w-4 h-4"}),"Back to Home"]}),c.jsx("h1",{className:"text-4xl lg:text-5xl font-black text-white uppercase tracking-tight",children:"Privacy Policy"}),c.jsx("p",{className:"text-gray-400 mt-4",children:"Effective Date: March 10, 2026"})]})}),c.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:c.jsxs("div",{className:"prose prose-invert max-w-none",children:[c.jsxs("section",{className:"mb-10",children:[c.jsx("h2",{className:"text-2xl font-black text-white uppercase tracking-tight mb-4",children:"Introduction"}),c.jsx("p",{className:"text-gray-400 leading-relaxed",children:"The Texas State Archery Association (TSAA), by Eyes On Score LLC, is committed to protecting your privacy. This Privacy Policy explains how we 
406collect, use, disclose, and safeguard your information when you visit our website and use our services."})]}),c.jsxs("section",{className:"mb-10",children:[c.jsx("h2",{className:"text-2xl font-black text-white uppercase tracking-tight mb-4",children:"1. Information We Collect"}),c.jsx("p",{className:"text-gray-400 leading-relaxed mb-4",children:"We collect information in the following ways:"}),c.jsxs("ul",{className:"list-disc list-inside text-gray-400 space-y-2",children:[c.jsxs("li",{children:[c.jsx("strong",{className:"text-white",children:"Personal Information:"})," When you register for events, create an account, or contact us, we collect your name, email address, and phone number."]}),c.jsxs("li",{children:[c.jsx("strong",{className:"text-white",children:"Event Registration Data:"})," We collect information about your archery division, age group, competition category, and event participation history."]}),c.jsxs("li",{children:[c.jsx("strong",{className:"text-white",children:"Usage Data:"})," We automatically collect information about how you interact with our website, including IP address, browser type, pages visited, and time spent on pages."]}),c.jsxs("li",{children:[c.jsx("strong",{className:"text-white",children:"Cookies and Tracking:"})," We use cookies and similar technologies to enhance your experience and remember your preferences."]})]})]}),c.jsxs("section",{className:"mb-10",children:[c.jsx("h2",{className:"text-2xl font-black text-white uppercase tracking-tight mb-4",children:"2. How We Use Your Information"}),c.jsx("p",{className:"text-gray-400 leading-relaxed mb-4",children:"We use the information we collect for the following purposes:"}),c.jsxs("ul",{className:"list-disc list-inside text-gray-400 space-y-2",children:[c.jsx("li",{children:"Processing and managing event registrations and competition participation"}),c.jsx("li",{children:"Communicating with you about events, updates, and important announcements"}),c.jsx("li",{children:"Maintaining and improving our website and services"}),c.jsx("li",{children:"Analyzing website usage to better serve our community"}),c.jsx("li",{children:"Responding to your inquiries and providing customer support"}),c.jsx("li",{children:"Complying with legal obligations and protecting our rights"})]})]}),c.jsxs("section",{className:"mb-10",children:[c.jsx("h2",{className:"text-2xl font-black text-white uppercase tracking-tight mb-4",children:"3. Third-Party Sharing"}),c.jsx("p",{className:"text-gray-400 leading-relaxed",children:"We do not sell, trade, or rent your personal information to third parties. However, we may share your information in the following limited circumstances:"}),c.jsxs("ul",{className:"list-disc list-inside text-gray-400 space-y-2 mt-4",children:[c.jsx("li",{children:"With event organizers and tournament hosts to facilitate your participation"}),c.jsx("li",{children:"With service providers who assist us in operating our website and conducting business"}),c.jsx("li",{children:"When required by law or to protect our legal rights and safety"}),c.jsx("li",{children:"With your explicit consent for specific purposes"})]})]}),c.jsxs("section",{className:"mb-10",children:[c.jsx("h2",{className:"text-2xl font-black text-white uppercase tracking-tight mb-4",children:"4. Data Retention"}),c.jsx("p",{className:"text-gray-400 leading-relaxed",children:"We retain your personal information for as long as necessary to fulfill the purposes outlined in this Privacy Policy, unless a longer retention period is required by law. Generally, we retain event registration data for tournament records and historical purposes. You may request deletion of your data at any time by contacting us."})]}),c.jsxs("section",{className:"mb-10",children:[c.jsx("h2",{className:"text-2xl font-black text-white uppercase tracking-tight mb-4",children:"5. Your Privacy Rights"}),c.jsx("p",{className:"text-gray-400 leading-relaxed mb-4",children:"You have the following rights regarding your personal information:"}),c.jsxs("ul",{className:"list-disc list-inside text-gray-400 space-y-2",children:[c.jsxs("li",{children:[c.jsx("strong",{className:"text-white",children:"Right to Access:"})," You can request a copy of the personal information we hold about you."]}),c.jsxs("li",{children:[c.jsx("strong",{className:"text-white",children:"Right to Correction:"})," You can request that we correct any inaccurate or incomplete information."]}),c.jsxs("li",{children:[c.jsx("strong",{className:"text-white",children:"Right to Deletion:"})," You can request that we delete your personal information, subject to certain legal exceptions."]}),c.jsxs("li",{children:[c.jsx("strong",{className:"text-white",children:"Right to Opt-Out:"})," You can opt out of communications or data processing for marketing purposes."]})]})]}),c.jsxs("section",{className:"mb-10",children:[c.jsx("h2",{className:"text-2xl font-black text-white uppercase tracking-tight mb-4",children:"6. Security"}),c.jsx("p",{className:"text-gray-400 leading-relaxed",children:"We implement appropriate technical and organizational measures to protect your personal information against unauthorized access, alteration, disclosure, or destruction. However, no method of transmission over the internet is 100% secure."})]}),c.jsxs("section",{className:"mb-10",children:[c.jsx("h2",{className:"text-2xl font-black text-white uppercase tracking-tight mb-4",children:"7. 
406Contact Us"}),c.jsx("p",{className:"text-gray-400 leading-relaxed mb-4",children:"If you have questions, concerns, or requests regarding this Privacy Policy or your personal information, please contact us:"}),c.jsxs("div",{className:"bg-[#0d1830] border border-white/10 rounded-xl p-6 mt-4",children:[c.jsxs("div",{className:"flex items-start gap-3",children:[c.jsx(rr,{className:"w-5 h-5 text-[#00d4ff] mt-1 flex-shrink-0"}),c.jsxs("div",{children:[c.jsx("p",{className:"text-white font-black mb-1",children:"Privacy Inquiries"}),c.jsx("a",{href:"mailto:[email protected]",className:"text-[#00d4ff] hover:underline",children:"[email protected]"})]})]}),c.jsx("p",{className:"text-gray-500 text-sm mt-4",children:"We will respond to your request within 30 days of receipt."})]})]}),c.jsxs("section",{className:"mb-10",children:[c.jsx("h2",{className:"text-2xl font-black text-white uppercase tracking-tight mb-4",children:"8. Privacy Choices"}),c.jsxs("p",{className:"text-gray-400 leading-relaxed",children:["Manage your privacy preferences and submit data requests on our"," ",c.jsx(Je,{to:Xe("PrivacyChoices"),className:"text-[#00d4ff] hover:underline",children:"Privacy Choices"})," ","page."]})]}),c.jsxs("section",{className:"mb-10",children:[c.jsx("h2",{className:"text-2xl font-black text-white uppercase tracking-tight mb-4",children:"9. Changes to This Policy"}),c.jsx("p",{className:"text-gray-400 leading-relaxed",children:"We may update this Privacy Policy from time to time. We will notify you of any significant changes by posting the new policy on this page and updating the effective date above."})]}),c.jsxs("div",{className:"bg-[#0d1830] border border-white/10 rounded-xl p-6 mt-12",children:[c.jsxs("p",{className:"text-gray-400 text-sm",children:[c.jsx("strong",{className:"text-white",children:"Last Updated:"})," March 10, 2026"]}),c.jsxs("p",{className:"text-gray-500 text-sm mt-2",children:["© ",new Date().getFullYear()," Texas State Archery Association. All rights reserved."]})]})]})})]})}const E2=[{key:"indoor",label:"Indoor",url:"https://docs.google.com/spreadsheets/d/e/2PACX-1vRXDpnFane9ZqPxy0RpJvvhCL1Rc26-b9d7vIon1qY8tp_eKlg2I9UAKLFAaqe1Aw/pubhtml"},{key:"field",label:"Field",url:"https://docs.google.com/spreadsheets/d/e/2PACX-1vRjElMZi7cq_B8f-tK93uLz3M_DtN55axE3VnLlcuZ4qQY45w8ruTQgXS_f4b968A/pubhtml"},{key:"outdoor",label:"Outdoor",url:"https://docs.google.com/spreadsheets/d/e/2PACX-1vQBsRXKZIEPV70ezDDxJqu9XxmFBJP6i39fadXSTVE8R2FhP8XFYrnf5ZWAdCvQWQ/pubhtml"}],ZB=e=>e&&e.replace(/\s*\(.*?\)/g,"").trim(),Rj=e=>(e||"").trim()==="Fixed Pin"?"Fixed Pins":e,_v=e=>{if(!e)return 99;const t=Rj(e).toLowerCase();return t.includes("para")||t.includes("w1")?6:t.includes("barebow")?0:t.includes("compound")?1:t.includes("fixed pin")?2:t.includes("longbow")?3:t.includes("recurve")?4:t.includes("modern asiatic")||t.includes("asiatic")?5:t==="vi"?7:98},M2=[["cub","u12","under 12"],["jo","u15","junior olympic","under 15"],["cadet","u18","under 18"],["junior","u21","under 21"],["senior","open","adult"],["master 50","50+"],["master 60","60+"],["master 70","70+"],["master 80","80+"]],R2=e=>{if(!e)return 99;const t=(ZB(e)||"").toLowerCase();for(let n=0;n<M2.length;n++)if(M2[n].some(r=>t.includes(r)))return n;return 50},D2=e=>e==="F"||e==="Female"?0:1,Cee=(e,t)=>{const n=_v(e.division)-_v(t.division);if(n!==0)return n;const r=R2(e.age_group)-R2(t.age_group);return r!==0?r:D2(e.gender)-D2(t.gender)},Oee={F:"bg-pink-500/20 text-pink-400 border-pink-500/30",M:"bg-sky-500/20 text-sky-400 border-sky-500/30",Female:"bg-pink-500/20 text-pink-400 border-pink-500/30",Male:"bg-sky-500/20 text-sky-400 border-sky-500/30"};function I2({data:e,isLoading:t}){const[n,r]=k.useState(""),[i,a]=k.useState("All"),[o,u]=k.useState(null),f=k.useMemo(()=>[...new Set(e.map(y=>Rj(y.division)).filter(Boolean))].sort((y,w)=>_v(y)-_v(w)||y.localeCompare(w)),[e]),h=f.includes(o)?o:f[0]??null,g=k.useMemo(()=>e.filter(p=>{const y=p.gender==="M"?"Male":"Female",w=i==="All"||y===i,j=!h||Rj(p.division)===h,S=n.toLowerCase(),_=!S||[p.record_holder,p.age_group,p.round,String(p.score||"")].some(P=>P==null?void 0:P.toString().toLowerCase().includes(S));return w&&j&&_}).sort(Cee),[n,i,h,e]);return t?c.jsx("div",{className:"space-y-2",children:[...Array(6)].map((p,y)=>c.jsx("div",{className:"h-10 bg-white/5 rounded animate-pulse"},y))}):c.jsxs("div",{children:[c.jsx("div",{className:"flex flex-wrap gap-2 mb-5",children:f.map(p=>c.jsx("button",{onClick:()=>u(p),className:`px-4 py-1.5 rounded-lg text-xs font-black uppercase tracking-wider border transition-all ${h===p?"bg-[#00d4ff] text-[#060d1f] border-[#00d4ff]":"bg-[#060d1f] border-white/10 text-gray-400 hover:border-[#00d4ff]/30 hover:text-white"}`,children:p},p))}),c.jsxs("div",{className:"flex flex-wrap gap-3 mb-5 items-center",children:[c.jsxs("div",{className:"relative flex-1 min-w-[200px]",children:[c.jsx(ky,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-gray-600"}),c.jsx(Et,{placeholder:"Search by name, age group, score…",value:n,onChange:p=>r(p.target.value),className:"pl-9 bg-[#060d1f] border-white/10 text-white placeholder:text-gray-600 focus:border-[#00d4ff]/50"})]}),c.jsx("div",{className:"flex gap-2",children:["All","Female","Male"].map(p=>c.jsx("button",{onClick:()=>a(p),className:`px-3 py-1.5 rounded-lg text-xs font-black uppercase tracking-wider border transition-all ${i===p?"bg-[#00d4ff] text-[#060d1f] border-[#00d4ff]":"border-white/10 text-gray-500 hover:border-white/20 hover:text-white"}`,children:p},p))}),c.jsxs("span",{className:"text-xs text-gray-600 ml-auto font-bold uppercase tracking-wider",children:[g.length," records"]})]}),c.jsx("div",{className:"overflow-x-auto rounded-xl border border-white/10",children:c.jsxs("table",{className:"w-full text-sm",children:[c.jsx("thead",{children:c.jsxs("tr",{className:"bg-[#060d1f] text-gray-500 text-[10px] uppercase tracking-widest border-b border-white/10",children:[c.jsx("th",{className:"px-3 py-3 text-left font-black",children:"Gender"}),c.jsx("th",{className:"px-3 py-3 text-left font-black hidden sm:table-cell",children:"Division"}),c.jsx("th",{className:"px-3 py-3 text-left font-black",children:"Age Group"}),c.jsx("th",{className:"px-3 py-3 text-left font-black hidden md:table-cell",children:"Round"}),c.jsx("th",{className:"px-3 py-3 text-left font-black",children:"Distance"}),c.jsx("th",{className:"px-3 py-3 text-left font-black",children:"Record Holder"}),c.jsx("th",{className:"px-3 py-3 text-center font-black",children:"Score"}),c.jsx("th",{className:"px-3 py-3 text-center font-black hidden lg:table-cell",children:"Target"}),c.jsx("th",{className:"px-3 py-3 text-right font-black hidden sm:table-cell",children:"Date"})]})}),c.jsx("tbody",{className:"bg-[#0d1830]",children:g.length===0?c.jsx("tr",{children:c.jsx("td",{colSpan:9,className:"text-center py-12 text-gray-600",children:"No records match your search."})}):g.map((p,y)=>{var S;const w=p.gender==="M"?"M":"F",j=w==="M"?"Male":"Female";return c.jsxs("tr",{className:"border-b border-white/5 hover:bg-white/5 transition-colors",children:[c.jsx("td",{className:"px-3 py-3",children:c.jsx("span",{className:`text-[10px] font-black uppercase tracking-wider px-2 py-1 rounded border ${Oee[w]}`,children:j})}),c.jsx("td",{className:"px-3 py-3 text-sm text-gray-300 font-bold hidden sm:table-cell",children:p.division}),c.jsx("td",{className:"px-3 py-3 text-sm text-gray-300 font-bold",children:ZB(p.age_group)}),c.jsx("td",{className:"px-3 py-3 text-sm text-gray-500 hidden md:table-cell",children:p.round}),c.jsx("td",{className:"px-3 py-3 text-sm text-gray-400 font-bold",children:p.distance||"—"}),c.jsx("td",{className:"px-3 py-3 text-sm font-black text-white",children:p.record_holder?p.record_holder:c.jsx("span",{className:"text-gray-700 italic text-xs font-normal",children:"Vacant"})}),c.jsx("td",{className:"px-3 py-3 text-center",children:p.score?c.jsx("span",{className:"inline-block bg-[#00d4ff]/10 border border-[#00d4ff]/30 text-[#00d4ff] font-black text-sm px-2 py-0.5 rounded-lg",children:p.score}):c.jsx("span",{className:"text-gray-700 text-xs",children:"—"})}),c.jsx("td",{className:"px-3 py-3 text-xs text-gray-600 text-center hidden lg:table-cell",children:p.target_size||"—"}),c.jsx("td",{className:"px-3 py-3 text-xs text-gray-600 text-right hidden sm:table-cell",children:((S=p.record_date)==null?void 0:S.split("T")[0])||"—"})]},p.id||y)})})]})})]})}function Eee(){const[e,t]=k.useState("indoor"),n=E2.find(h=>h.key===e),{data:r=[],isLoading:i}=an({queryKey:["stateRecords","indoor"],queryFn:()=>on.entities.StateRecord.filter({record_type:"indoor"},"gender")}),{data:a=[],isLoading:o}=an({queryKey:["stateRecords","field"],queryFn:()=>on.entities.StateRecord.filter({record_type:"field"})}),{data:u=[],isLoading:f}=an({queryKey:["stateRecords","outdoor"],queryFn:()=>on.entities.StateRecord.filter({record_type:"outdoor"},"gender")});return c.jsxs("div",{className:"min-h-screen bg-[#060d1f]",children:[c.jsx(gi,{title:"Texas State Archery Records | TSAA",description:"View official Texas state archery records re
406cognized by TSAA, USA Archery, and World Archery across all bow styles and divisions."}),c.jsx("div",{className:"bg-[#02060f] pt-16 pb-20 border-b border-white/10",children:c.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[c.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[c.jsx("div",{className:"h-1 w-10 bg-[#00d4ff] rounded-full"}),c.jsx("span",{className:"text-[#00d4ff] text-xs font-black uppercase tracking-widest",children:"Achievements"})]}),c.jsx("h1",{className:"text-4xl lg:text-6xl font-black text-white uppercase tracking-tight mb-3",children:"State Records"}),c.jsx("p",{className:"text-gray-500 max-w-2xl text-sm leading-relaxed",children:"TSAA official state records across all disciplines. Maintained and updated after every sanctioned tournament."}),c.jsx(Je,{to:"/ArcherOfTheYear",className:"inline-block mt-3 text-sm text-[#00d4ff] hover:underline font-bold uppercase tracking-wider",children:"View Archer of the Year →"})]})}),c.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-10 pb-16",children:[c.jsx("div",{className:"flex flex-wrap gap-3 mb-8",children:E2.map(h=>c.jsx("button",{onClick:()=>t(h.key),className:`px-5 py-2.5 rounded-lg text-xs font-black uppercase tracking-widest border transition-all ${e===h.key?"bg-[#00d4ff] text-[#060d1f] border-[#00d4ff]":"bg-[#0d1830] border-white/10 text-gray-400 hover:border-[#00d4ff]/30 hover:text-white"}`,children:h.label},h.key))}),(e==="indoor"||e==="outdoor")&&c.jsxs("div",{className:"bg-[#0d1830] border border-white/10 rounded-xl p-6",children:[c.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[c.jsx("div",{className:"w-10 h-10 rounded-lg bg-[#00d4ff]/10 flex items-center justify-center",children:c.jsx(Fi,{className:"w-5 h-5 text-[#00d4ff]"})}),c.jsxs("div",{children:[c.jsxs("h2",{className:"text-xl font-black text-white uppercase tracking-tight",children:[n.label," Records"]}),c.jsxs("p",{className:"text-xs text-gray-500",children:[e==="indoor"&&"All divisions · 18m & 25m · 40cm / 60cm targets",e==="outdoor"&&"Recurve division · 60m–70m · 122cm targets"]})]}),c.jsxs("a",{href:n.url,target:"_blank",rel:"noopener noreferrer",className:"ml-auto text-xs text-[#d4a843] hover:text-[#c49933] flex items-center gap-1 transition-colors",children:["Full sheet (all divisions) ",c.jsx(fi,{className:"w-3 h-3"})]})]}),c.jsx(I2,{data:e==="indoor"?r:u,isLoading:e==="indoor"?i:f})]}),e==="field"&&c.jsxs("div",{className:"bg-[#0d1830] border border-white/10 rounded-xl p-6",children:[c.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[c.jsx("div",{className:"w-10 h-10 rounded-lg bg-[#00d4ff]/10 flex items-center justify-center",children:c.jsx(Fi,{className:"w-5 h-5 text-[#00d4ff]"})}),c.jsxs("div",{children:[c.jsx("h2",{className:"text-xl font-black text-white uppercase tracking-tight",children:"Field Records"}),c.jsx("p",{className:"text-xs text-gray-500",children:"Multiple divisions · Various targets and distances"})]})]}),c.jsx(I2,{data:a,isLoading:o})]}),c.jsxs("div",{className:"bg-[#0d1830] border border-white/10 rounded-xl p-8 mt-8",children:[c.jsx("h2",{className:"text-lg font-black text-white uppercase tracking-tight mb-4",children:"How to Claim a Record"}),c.jsxs("ol",{className:"space-y-4 text-gray-400 text-sm leading-relaxed",children:[c.jsxs("li",{className:"flex gap-3",children:[c.jsx("span",{className:"flex-shrink-0 w-6 h-6 rounded-lg bg-[#00d4ff]/20 text-[#00d4ff] text-xs flex items-center justify-center font-black",children:"1"}),c.jsxs("span",{children:["Get the ",c.jsx("strong",{className:"text-white",children:"Judge or Director of Shooting (DOS)"})," to sign your scoresheet immediately after your round."]})]}),c.jsxs("li",{className:"flex gap-3",children:[c.jsx("span",{className:"flex-shrink-0 w-6 h-6 rounded-lg bg-[#00d4ff]/20 text-[#00d4ff] text-xs flex items-center justify-center font-black",children:"2"}),c.jsxs("span",{children:["Email ",c.jsx("a",{href:"mailto:[email protected]",className:"text-[#00d4ff] hover:underline font-medium",children:"[email protected]"})," within ",c.jsx("strong",{className:"text-white",children:"2 weeks"})," of the last day of the tournament."]})]}),c.jsxs("li",{className:"flex gap-3",children:[c.jsx("span",{className:"flex-shrink-0 w-6 h-6 rounded-lg bg-[#00d4ff]/20 text-[#00d4ff] text-xs flex items-center justify-center font-black",children:"3"}),c.jsx("span",{children:"Include: tournament name, date, and which record(s) — discipline, gender, age group, arrow count, and format."})]})]}),c.jsxs("p",{className:"mt-5 text-xs text-gray-600 bg-[#060d1f] border border-white/5 rounded-lg p-4",children:["Records may only be claimed at a ",c.jsx("strong",{children:"STAR FITA / USA Archery sanctioned tournament held within Texas"}),". Only current USA Archery members with Texas residency are eligible."]})]})]})]})}const Mee={Recurve:"border-blue-500/30 text-blue-300",Compound:"border-amber-500/30 text-amber-300",Barebow:"border-green-500/30 text-green-300","Fixed Pins":"border-purple-500/30 text-purple-300","Para W1":"border-rose-500/30 text-rose-300","Para Compound":"border-pink-500/30 text-pink-300","Para Recurve":"border-cyan-500/30 text-cyan-300",Longbow:"border-orange-500/30 text-orange-300"};function YB({year:e=2026}){const[t,n]=k.useState("All"),[r,i]=k.useState("All"),{data:a=[],isLoading:o}=an({queryKey:["tots-matrix",e],queryFn:()=>on.entities.TournamentResult.filter({tournament_type:"tots",tournament_year:e},"rank",2e3)}),u=k.useMemo(()=>{const g=new Set,p=[];return a.forEach(y=>{y.tots_event_name&&!g.has(y.tots_event_name)&&(g.add(y.tots_event_name),p.push(y.tots_event_name))}),p}
406,[a]),f=k.useMemo(()=>["All",...Array.from(new Set(a.map(g=>g.division))).sort()],[a]),h=k.useMemo(()=>{let g=a;t!=="All"&&(g=g.filter(y=>y.division===t)),r!=="All"&&(g=g.filter(y=>y.gender===r));const p={};return g.forEach(y=>{const w=`${y.division}|${y.age_group}|${y.gender}`;p[w]||(p[w]={});const j=y.name;p[w][j]||(p[w][j]={name:y.name,events:{}}),p[w][j].events[y.tots_event_name]={score:y.score,rnd_1:y.rnd_1,rnd_2:y.rnd_2,rnd_3:y.rnd_3,x_10s:y.x_10s,xs:y.xs}}),Object.entries(p).sort(([y],[w])=>y.localeCompare(w)).map(([y,w])=>{const[j,S,_]=y.split("|"),P=Object.values(w).map(O=>{const C=Object.values(O.events).reduce((E,T)=>E+(T.score||0),0);return{...O,total:C}});return P.sort((O,C)=>C.total-O.total),P.forEach((O,C)=>{O.rank=C+1}),{division:j,ageGroup:S,gender:_,archers:P}})},[a,t,r]);return o?c.jsx("div",{className:"space-y-3",children:[...Array(4)].map((g,p)=>c.jsx("div",{className:"h-16 bg-white/5 rounded-xl animate-pulse"},p))}):u.length===0?c.jsxs("div",{className:"text-center py-12 text-gray-500",children:[c.jsx(Fi,{className:"w-8 h-8 mx-auto mb-3 opacity-30"}),c.jsxs("p",{className:"font-bold",children:["No TOTS results yet for ",e]}),c.jsx("p",{className:"text-sm mt-1",children:"Results will appear here after each event."})]}):c.jsxs("div",{className:"space-y-6",children:[c.jsxs("div",{className:"flex flex-wrap gap-3",children:[c.jsx("select",{value:t,onChange:g=>n(g.target.value),className:"px-4 py-2 bg-[#0d1830] border border-white/10 rounded-lg text-gray-300 text-sm focus:outline-none focus:border-[#00d4ff]/50",children:f.map(g=>c.jsx("option",{value:g,children:g},g))}),c.jsxs("select",{value:r,onChange:g=>i(g.target.value),className:"px-4 py-2 bg-[#0d1830] border border-white/10 rounded-lg text-gray-300 text-sm focus:outline-none focus:border-[#00d4ff]/50",children:[c.jsx("option",{value:"All",children:"All Genders"}),c.jsx("option",{value:"M",children:"Male"}),c.jsx("option",{value:"F",children:"Female"})]}),c.jsxs("span",{className:"text-xs text-gray-500 self-center font-bold uppercase tracking-wider",children:[u.length," event",u.length!==1?"s":""," · ",a.length," scores"]})]}),h.map(g=>c.jsx(Ree,{group:g,eventNames:u},`${g.division}-${g.ageGroup}-${g.gender}`)),h.length===0&&c.jsx("div",{className:"py-12 text-center text-gray-500",children:"No results match your filters."})]})}function Ree({group:e,eventNames:t}){const[n,r]=k.useState(!0),i=Mee[e.division]||"border-gray-500/30 text-gray-300";return c.jsxs("div",{className:"rounded-2xl border border-white/10 overflow-hidden",children:[c.jsxs("button",{onClick:()=>r(!n),className:"w-full bg-gradient-to-r from-[#0a1428] to-[#0d1830] border-b border-white/10 px-6 py-4 flex items-center justify-between",children:[c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx("span",{className:`px-3 py-1.5 rounded-lg text-xs font-bold border ${i}`,children:e.division}),c.jsx("span",{className:"text-xs text-gray-400 font-bold uppercase tracking-wider bg-white/5 px-2.5 py-1.5 rounded-lg",children:e.ageGroup}),c.jsx("span",{className:"text-xs text-gray-400 font-bold uppercase tracking-wider bg-white/5 px-2.5 py-1.5 rounded-lg",children:e.gender==="F"?"Female":"Male"}),c.jsxs("span",{className:"text-xs text-gray-500",children:[e.archers.length," archer",e.archers.length!==1?"s":""]})]}),c.jsx(Ny,{className:`w-4 h-4 text-gray-500 transition-transform ${n?"rotate-180":""}`})]}),n&&c.jsx("div",{className:"overflow-x-auto",children:c.jsxs("table",{className:"w-full text-sm",children:[c.jsx("thead",{children:c.jsxs("tr",{className:"bg-[#0a1428] border-b border-white/10",children:[c.jsx("th",{className:"px-4 py-3 text-left text-xs font-black uppercase tracking-widest text-[#00d4ff] w-12",children:"#"}),c.jsx("th",{className:"px-4 py-3 text-left text-xs font-black uppercase tracking-widest text-[#00d4ff] min-w-[140px]",children:"Archer"}),t.map(a=>c.jsx("th",{className:"px-4 py-3 text-right text-xs font-black uppercase tracking-widest text-[#00d4ff] min-w-[80px]",children:a},a)),c.jsx("th",{className:"px-4 py-3 text-right text-xs font-black uppercase tracking-widest text-[#00d4ff] min-w-[80px] bg-[#00d4ff]/5",children:"Total"})]})}),c.jsx("tbody",{children:e.archers.map((a,o)=>c.jsxs("tr",{className:`border-b border-white/5 hover:bg-white/[0.03] transition-colors ${o%2===0?"bg-[#0d1830]":"bg-[#0a1428]"}`,children:[c.jsx("td",{className:"px-4 py-3",children:a.rank===1?c.jsx("span",{className:"flex items-center justify-center w-7 h-7 rounded-full bg-[#00d4ff]/20 border border-[#00d4ff]/40",children:c.jsx(Fi,{className:"w-3.5 h-3.5 text-[#00d4ff]"})}):c.jsx("span",{className:"text-gray-500 font-bold",children:a.rank})}),c.jsx("td",{className:"px-4 py-3 text-white font-bold",children:a.name}),t.map(u=>{const f=a.events[u];return c.jsx("td",{className:"px-4 py-3 text-right",children:f?c.jsx("span",{className:"text-gray-300 font-medium",children:f.score.toLocaleStr
406ing()}):c.jsx("span",{className:"text-gray-600",children:"—"})},u)}),c.jsx("td",{className:"px-4 py-3 text-right bg-[#00d4ff]/5",children:c.jsx("span",{className:`font-black ${a.rank===1?"text-[#00d4ff]":"text-white"}`,children:a.total.toLocaleString()})})]},a.name))})]})})]})}const Dee="https://www.tsaa.us/wp-content/uploads/2025/05/export_tournament_score-2-1.pdf",Iee={Recurve:"bg-blue-500/20 text-blue-300 border-blue-500/30","Olympic Recurve":"bg-blue-500/20 text-blue-300 border-blue-500/30",Compound:"bg-amber-500/20 text-amber-300 border-amber-500/30",Barebow:"bg-green-500/20 text-green-300 border-green-500/30","Fixed Pins":"bg-purple-500/20 text-purple-300 border-purple-500/30",Longbow:"bg-orange-500/20 text-orange-300 border-orange-500/30","Para Compound":"bg-pink-500/20 text-pink-300 border-pink-500/30","Para Recurve":"bg-cyan-500/20 text-cyan-300 border-cyan-500/30","Para W1":"bg-rose-500/20 text-rose-300 border-rose-500/30",Asiatic:"bg-indigo-500/20 text-indigo-300 border-indigo-500/30"},L2=[{label:"Indoor",type:"indoor",years:[2026,2025,2024,2023,2022]},{label:"Outdoor",type:"outdoor",years:[2026,2025,2024,2023,2022]},{label:"Field",type:"field",years:[2026,2025,2024,2023,2022]},{label:"3D",type:"3d",years:[2026]},{label:"TOTS",type:"tots",years:[2026,2025]}];function Lee(){const e=new URLSearchParams(window.location.search),t=e.get("type")||"indoor",n=parseInt(e.get("year"),10),[r,i]=k.useState(t),[a,o]=k.useState(isNaN(n)?t==="tots"?2026:2024:n),[u,f]=k.useState("matrix"),[h,g]=k.useState(""),[p,y]=k.useState("All"),[w,j]=k.useState("All"),{data:S=[],isLoading:_}=an({queryKey:["tournamentResults",r,a],queryFn:async()=>await on.entities.TournamentResult.filter({tournament_type:r,tournament_year:a},"rank",1e3)}),P=k.useMemo(()=>["All",...Array.from(new Set(S.map(T=>T.division))).sort()],[S]),O=k.useMemo(()=>S.filter(T=>{const M=!h||T.name.toLowerCase().includes(h.toLowerCase()),I=p==="All"||T.division===p,$=w==="All"||T.gender===w;return M&&I&&$}),[S,h,p,w]),C=k.useMemo(()=>{const T=["U10","U13","U15","U18","U21","Senior","Master 50+","Master 60+","Master 70+"],M={M:0,F:1},I={},$=new Set;return O.forEach(z=>{const Y=r==="tots"&&z.tots_class?z.tots_class:z.age_group,V=`${z.division}|${Y}|${z.gender}`,q=`${z.division}|${Y}|${z.gender}|${z.rank}|${z.name}`;$.has(q)||($.add(q),I[V]||(I[V]=[]),I[V].push(z))}),Object.keys(I).sort((z,Y)=>{const[V,q,G]=z.split("|"),[Q,ne,ie]=Y.split("|");if(V!==Q)return V.localeCompare(Q);const re=T.indexOf(q),W=T.indexOf(ne),oe=re===-1?999:re,U=W===-1?999:W;return oe!==U?oe-U:M[G]-M[ie]}).map(z=>{const[Y,V,q]=z.split("|");return{division:Y,ageGroup:V,gender:q,results:I[z].sort((G,Q)=>G.rank-Q.rank)}})},[O]);L2.find(T=>T.type===r);const E=(T,M)=>{i(T),o(M),f("matrix"),g(""),y("All"),j("All")};return c.jsxs("div",{className:"min-h-screen bg-[#060d1f]",children:[c.jsx(gi,{title:"Texas Archery Tournament Results | TSAA",description:"Official results from TSAA-sanctioned archery tournaments across Texas. Search by year, event, and division."}),c.jsx("div",{className:"relative pt-24 pb-16 px-4 sm:px-6 lg:px-8 bg-gradient-to-b from-[#0a1530] to-[#060d1f]",children:c.jsxs("div",{className:"max-w-6xl mx-auto text-center",children:[c.jsxs("div",{className:"flex items-center justify-center gap-3 mb-4",children:[c.jsx("div",{className:"h-1 w-10 bg-[#00d4ff] rounded-full"}),c.jsx("span",{className:"text-[#00d4ff] text-xs font-black uppercase tracking-widest",children:"Championships"}),c.jsx("div",{className:"h-1 w-10 bg-[#00d4ff] rounded-full"})]}),c.jsxs("h1",{className:"text-5xl lg:text-7xl font-black text-white uppercase tracking-tight mb-4",children:["Tournament ",c.jsx("span",{className:"text-[#00d4ff]",children:"Results"})]}),c.jsx("p",{className:"text-gray-400 text-lg",children:"Official results from TSAA state championships and series events."})]})}),c.jsxs("div",{className:"max-w-6xl mx-auto px-4 sm:px-6 lg:px-8 pb-24",children:[c.jsx("div",{className:"flex flex-col gap-3 mb-8",children:L2.map(T=>c.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[c.jsx("span",{className:"text-xs font-black uppercase tracking-widest text-gray-500 w-16 shrink-0",children:T.label}),T.years.map(M=>{const I=r===T.type&&a===M;return c.jsx("button",{onClick:()=>E(T.type,M),className:`px-4 py-2 rounded-lg text-sm font-black uppercase tracking-wider transition-all ${I?"bg-[#00d4ff] text-[#060d1f]":"bg-[#0d1830] border border-white/10 text-gray-400 hover:text-white hover:border-white/20"}`,children:M},M)})]},T.type))}),c.jsxs(Ue.div,{initial:{opacity:0,y:10}
406,animate:{opacity:1,y:0},children:[r==="tots"&&c.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[c.jsxs("button",{onClick:()=>f("matrix"),className:`flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-bold uppercase tracking-wider transition-all ${u==="matrix"?"bg-[#00d4ff] text-[#060d1f]":"bg-[#0d1830] border border-white/10 text-gray-400 hover:text-white"}`,children:[c.jsx(r3,{className:"w-4 h-4"})," Series Matrix"]}),c.jsxs("button",{onClick:()=>f("events"),className:`flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-bold uppercase tracking-wider transition-all ${u==="events"?"bg-[#00d4ff] text-[#060d1f]":"bg-[#0d1830] border border-white/10 text-gray-400 hover:text-white"}`,children:[c.jsx(Fi,{className:"w-4 h-4"})," Per-Event Results"]})]}),r==="tots"&&u==="matrix"?c.jsx(YB,{year:a}):_?c.jsx("div",{className:"space-y-2",children:[...Array(8)].map((T,M)=>c.jsx("div",{className:"h-12 bg-white/5 rounded-lg animate-pulse"},M))}):c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 mb-6",children:[c.jsxs("div",{className:"relative flex-1",children:[c.jsx(ky,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-gray-500"}),c.jsx("input",{type:"text",placeholder:"Search by name...",value:h,onChange:T=>g(T.target.value),className:"w-full pl-9 pr-4 py-2.5 bg-[#0d1830] border border-white/10 rounded-lg text-white placeholder-gray-500 text-sm focus:outline-none focus:border-[#00d4ff]/50"})]}),c.jsx("select",{value:p,onChange:T=>y(T.target.value),className:"px-4 py-2.5 bg-[#0d1830] border border-white/10 rounded-lg text-gray-300 text-sm focus:outline-none focus:border-[#00d4ff]/50",children:P.map(T=>c.jsx("option",{value:T,children:T},T))}),c.jsxs("select",{value:w,onChange:T=>j(T.target.value),className:"px-4 py-2.5 bg-[#0d1830] border border-white/10 rounded-lg text-gray-300 text-sm focus:outline-none focus:border-[#00d4ff]/50",children:[c.jsx("option",{value:"All",children:"All Genders"}),c.jsx("option",{value:"F",children:"Female"}),c.jsx("option",{value:"M",children:"Male"})]})]}),c.jsxs("div",{className:"flex items-center justify-between mb-4",children:[c.jsxs("span",{className:"text-xs text-gray-500 font-bold uppercase tracking-wider",children:["Showing ",O.length," of ",S.length," results"]}),r==="field"&&a===2025&&c.jsxs("a",{href:Dee,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1.5 text-xs text-[#00d4ff] hover:text-white transition-colors font-bold uppercase tracking-wider",children:[c.jsx(s3,{className:"w-3.5 h-3.5"}),"Full PDF"]})]}),c.jsxs("div",{className:"space-y-8",children:[C.map(T=>c.jsxs("div",{className:"rounded-2xl border border-white/10 overflow-hidden",children:[c.jsx("div",{className:"bg-gradient-to-r from-[#0a1428] to-[#0d1830] border-b border-white/10 px-6 py-4",children:c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx("span",{className:`px-3 py-1.5 rounded-lg text-xs font-bold border ${Iee[T.division]||"bg-gray-500/20 text-gray-300 border-gray-500/30"}`,children:T.division}),c.jsx("span",{className:"text-xs text-gray-400 font-bold uppercase tracking-wider bg-white/5 px-2.5 py-1.5 rounded-lg",children:T.ageGroup}),c.jsx("span",{className:"text-xs text-gray-400 font-bold uppercase tracking-wider bg-white/5 px-2.5 py-1.5 rounded-lg",children:T.gender==="F"?"Female":"Male"}),c.jsxs("span",{className:"text-xs text-gray-500 font-bold uppercase tracking-wider",children:[T.results.length," competitor",T.results.length!==1?"s":""]})]})}),c.jsx("div",{className:"overflow-x-auto",children:c.jsxs("table",{className:"w-full text-sm",children:[c.jsx("thead",{children:c.jsxs("tr",{className:"bg-[#0a1428] border-b border-white/10",children:[c.jsx("th",{className:"px-4 py-3 text-left text-xs font-black uppercase tracking-widest text-[#00d4ff] w-12",children:"Rank"}),c.jsx("th",{className:"px-4 py-3 text-left text-xs font-black uppercase tracking-widest text-[#00d4ff]",children:"Name"}),c.jsx("th",{className:"px-4 py-3 text-right text-xs font-black uppercase tracking-widest text-[#00d4ff]",children:r==="tots"?"Points":"Score"}),r==="tots"&&c.jsxs(c.Fragment,{children:[c.jsx("th",{className:"px-4 py-3 text-right text-xs font-black uppercase tracking-widest text-[#00d4ff] hidden sm:table-cell",children:"Xs"}),c.jsx("th",{className:"px-4 py-3 text-right text-xs font-black uppercase tracking-widest text-[#00d4ff] hidden sm:table-cell",children:"X+10s"}),c.jsx("th",{className:"px-4 py-3 text-center text-xs font-black uppercase tracking-widest text-[#00d4ff] hidden md:table-cell",children:"Status"})]})]})}),c.jsx("tbody",{children:T.results.map((M,I)=>c.jsxs("tr",{className:`border-b border-white/5 transition-colors hover:bg-white/[0.03] ${I%2===0?"bg-[#0d1830]":"bg-[#0a1428]"}`,children:[c.jsx("td",{className:"px-4 py-3",children:M.rank===1?c.jsx("span",{className:"flex items-center justify-center w-7 h-7 rounded-full bg-[#00d4ff]/20 border border-[#00d4ff]/40",children:c.jsx(Fi,{className:"w-3.5 h-3.5 text-[#00d4ff]"})}):c.jsx("span",{className:"text-gray-500 font-bold",children:M.rank}
406)}),c.jsx("td",{className:"px-4 py-3 text-white font-bold",children:M.name}),c.jsx("td",{className:"px-4 py-3 text-right",children:c.jsx("span",{className:`font-black ${M.rank===1?"text-[#00d4ff]":"text-white"}`,children:(M.score||0).toLocaleString()})}),r==="tots"&&c.jsxs(c.Fragment,{children:[c.jsx("td",{className:"px-4 py-3 text-right text-gray-400 hidden sm:table-cell",children:M.xs||0}),c.jsx("td",{className:"px-4 py-3 text-right text-gray-400 hidden sm:table-cell",children:M.x_10s||0}),c.jsx("td",{className:"px-4 py-3 text-center hidden md:table-cell",children:c.jsx("div",{className:"flex items-center justify-center gap-1.5",children:M.medal_eligible&&c.jsx("span",{className:"px-2 py-0.5 rounded text-[10px] font-bold uppercase bg-amber-500/20 text-amber-300 border border-amber-500/30",children:"Medal"})})})]})]},M.id))})]})})]},`${T.division}-${T.ageGroup}-${T.gender}`)),C.length===0&&!_&&c.jsx("div",{className:"py-16 text-center text-gray-500",children:"No results found."})]})]})]},`${r}-${a}`)]})]})}const $ee=[{group:"U13/U15 Combined",items:["Yeoman U10","Male Compound","Female Compound","Male Fixed Pins","Female Fixed Pins","Male Barebow","Female Barebow","Male Olympic Recurve","Female Olympic Recurve"]},{group:"U18/U21 Combined",items:["Male Compound","Female Compound","Male Fixed Pins","Female Fixed Pins","Male Barebow","Female Barebow","Male Olympic Recurve","Female Olympic Recurve"]},{group:"Senior/Masters Combined",items:["Male Compound","Female Compound","Male Fixed Pins","Female Fixed Pins","Male Barebow","Female Barebow","Male Olympic Recurve","Female Olympic Recurve","Male Olympic Recurve Open (Para)","Female Olympic Recurve Open (Para)","Male Compound Open (Para)","Female Compound Open (Para)","Male/Female W1 Para"]}];function Bee(){const{data:e=[],isLoading:t}=an({queryKey:["tots-events-2026"],queryFn:()=>on.entities.TournamentEvent.filter({discipline:"tots"},"event_date",50)});return c.jsxs("div",{className:"min-h-screen bg-[#060d1f]",children:[c.jsx("div",{className:"relative pt-24 pb-16 px-4 sm:px-6 lg:px-8 bg-gradient-to-b from-[#0a1530] to-[#060d1f]",children:c.jsxs("div",{className:"max-w-5xl mx-auto text-center",children:[c.jsxs("div",{className:"flex items-center justify-center gap-3 mb-4",children:[c.jsx("div",{className:"h-1 w-10 bg-[#00d4ff] rounded-full"}),c.jsx("span",{className:"text-[#00d4ff] text-xs font-black uppercase tracking-widest",children:"Annual Series"}),c.jsx("div",{className:"h-1 w-10 bg-[#00d4ff] rounded-full"})]}),c.jsxs("h1",{className:"text-5xl lg:text-7xl font-black text-white uppercase tracking-tight mb-4",children:["Texas Outdoor",c.jsx("br",{}),c.jsx("span",{className:"text-[#00d4ff]",children:"Target Series"})]}),c.jsx("p",{className:"text-gray-400 text-lg max-w-2xl mx-auto mb-8",children:"The largest outdoor target series in Texas. Begun in 2013 under the leadership of 2004 Olympian John Magera and Tom Barker."}),c.jsxs("div",{className:"flex flex-wrap items-center justify-center gap-4",children:[c.jsxs("a",{href:"mailto:[email protected]",className:"inline-flex items-center gap-2 px-6 py-3 bg-[#00d4ff] text-[#060d1f] rounded-lg font-black text-sm uppercase tracking-wider hover:bg-[#00bfe8] transition-all",children:[c.jsx(rr,{className:"w-4 h-4"})," Contact TOTS Director"]}),c.jsxs(Je,{to:"/Results?type=tots&year=2026",className:"inline-flex items-center gap-2 px-6 py-3 border border-white/20 text-white rounded-lg font-bold text-sm uppercase tracking-wider hover:bg-white/5 transition-all",children:[c.jsx(Fi,{className:"w-4 h-4"})," 2026 Results"]})]})]})}),c.jsxs("div",{className:"max-w-5xl mx-auto px-4 sm:px-6 lg:px-8 pb-24 space-y-16",children:[c.jsxs(Ue.section,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},children:[c.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[c.jsx(fd,{className:"w-5 h-5 text-[#00d4ff]"}),c.jsx("h2",{className:"text-2xl font-black text-white uppercase tracking-tight",children:"2026 Schedule"})]}),c.jsx("div",{className:"space-y-3",children:t?c.jsx("div",{className:"flex justify-center py-8",children:c.jsx(IV,{className:"w-6 h-6 text-[#00d4ff] animate-spin"})}):e.length===0?c.jsx("p",{className:"text-gray-500 text-center py-8",children:"No TOTS events scheduled yet."}):e.map(n=>{const r=n.end_date&&n.end_date!==n.event_date?`${hn(In(n.event_date),"MMMM d")}–${hn(In(n.end_date),"d")}`:hn(In(n.event_date),"MMMM d");return c.jsxs("div",{className:"flex items-center justify-between bg-[#0d1830] border border-white/10 rounded-xl px-6 py-4 hover:border-[#00d4ff]/30 transition-colors",children:[c.jsxs("div",{children:[c.jsx("span",{className:"text-[#00d4ff] font-black text-sm uppercase tracking-wider",children:r}),c.jsx("p",{className:"text-white font-bold mt-0.5",children:n.name}),n.location&&c.jsx("p",{className:"text-gray-500 text-xs mt-0.5",children:n.location})]}),n.registration_url&&c.jsxs("a",{href:n.registration_url,target:"_blank",rel:"noopener noreferrer",className:"flex-shrink-0 ml-4 px-4 py-2 bg-[#00d4ff]/10 border border-[#00d4ff]/30 text-[#00d4ff] rounded-lg text-xs font-black uppercase tracking-wider hover:bg-[#00d4ff]/20 transition-colors flex items-center gap-1.5",children:["Register ",c.jsx(fi,{className:"w-3 h-3"})]})]},n.id)})})]}),c.jsxs(Ue.section,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},children:[c.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[c.jsx(r3,{className:"w-5 h-5 text-[#00d4ff]"}),c.jsx("h2",{className:"text-2xl font-black text-white uppercase tracking-tight",children:"2026 Series Standings"})]}),c.jsx(YB,{year:2026})]}),c.jsxs(Ue.section,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},children:[c.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[c.jsx(Dh,{className:"w-5 h-5 text-[#00d4ff]"}),c.jsx("h2",{className:"text-2xl font-black text-white uppercase tracking-tight",children:"Rules"})]}),c.jsxs("div",{className:"bg-[#0d1830] border border-white/10 rounded-xl p-6 space-y-4 text-gray-300 text-sm leading-relaxed",children:[c.jsxs("p",{children:["The TOTS format is ",c.jsx("strong",{className:"text-white",children:"3 rounds of 36 arrows"})," shot at each division's USA Archery Outdoor Nationals distance/target."]}),c.jsxs("p",{children:["Only each archer's ",c.jsx("strong",{className:"text-white",children:"highest two 36-arrow 
406scores"})," are kept for the tournament's official score and championship standings. Archers may leave after the second round or shoot all three."]}),c.jsxs("p",{children:["All TOTS events are ",c.jsx("strong",{className:"text-white",children:"USA Archery Sanctioned"}),". Sign-up is through Sport80 or Eyes On Score. The TSAA covers the cost of the judge."]})]}),c.jsxs("div",{className:"mt-4 bg-[#0d1830] border border-white/10 rounded-xl p-6 space-y-3 text-gray-300 text-sm",children:[c.jsx("h3",{className:"text-white font-black uppercase tracking-wider text-sm",children:"Championship Format"}),c.jsx("p",{children:"The TOTS Champion is the top scorer in each division based on:"}),c.jsxs("ul",{className:"list-disc list-inside space-y-1 ml-2",children:[c.jsx("li",{children:"Each archer's highest two TOTS event scores"}),c.jsx("li",{children:"Each archer's 72-arrow Championship score × 2"})]}),c.jsxs("p",{children:["The Championship is ",c.jsx("strong",{className:"text-white",children:"72 arrows"})," (not 108)."]})]})]}),c.jsxs(Ue.section,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},children:[c.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[c.jsx(Fi,{className:"w-5 h-5 text-[#00d4ff]"}),c.jsx("h2",{className:"text-2xl font-black text-white uppercase tracking-tight",children:"Champion Divisions"})]}),c.jsx("div",{className:"grid md:grid-cols-3 gap-4",children:$ee.map((n,r)=>c.jsxs("div",{className:"bg-[#0d1830] border border-white/10 rounded-xl p-5",children:[c.jsx("h3",{className:"text-[#00d4ff] font-black text-xs uppercase tracking-widest mb-4",children:n.group}),c.jsx("ul",{className:"space-y-1.5",children:n.items.map((i,a)=>c.jsxs("li",{className:"text-gray-300 text-sm flex items-center gap-2",children:[c.jsx("div",{className:"w-1 h-1 rounded-full bg-[#00d4ff]/50 flex-shrink-0"}),i]},a))})]},r))})]}),c.jsxs(Ue.section,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},children:[c.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[c.jsx(qr,{className:"w-5 h-5 text-[#00d4ff]"}),c.jsx("h2",{className:"text-2xl font-black text-white uppercase tracking-tight",children:"Want to Host a TOTS?"})]}),c.jsxs("div",{className:"bg-[#0d1830] border border-white/10 rounded-xl p-6 flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4",children:[c.jsxs("div",{children:[c.jsx("p",{className:"text-gray-300 text-sm mb-1",children:"Email the TOTS Directors with your desired dates, capacity, and any questions."}),c.jsx("p",{className:"text-white font-bold text-sm",children:"Stacey Gros & Jessie Rhodes"})]}),c.jsxs("a",{href:"mailto:[email protected]?subject=We'd like to host a TOTS tournament",className:"flex-shrink-0 inline-flex items-center gap-2 px-5 py-3 bg-[#00d4ff] text-[#060d1f] rounded-lg font-black text-sm uppercase tracking-wider hover:bg-[#00bfe8] transition-all",children:[c.jsx(rr,{className:"w-4 h-4"})," Email Us"]})]})]})]})]})}var Ob,$2;function Ur(){if($2)return Ob;$2=1;var e=Array.isArray;return Ob=e,Ob}var Eb,B2;function XB(){if(B2)return Eb;B2=1;var e=typeof wg=="object"&&wg&&wg.Object===Object&&wg;return Eb=e,Eb}var Mb,F2;function Ka(){if(F2)return Mb;F2=1;var e=XB(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return Mb=n,Mb}var Rb,z2;function Xp(){if(z2)return Rb;z2=1;var e=Ka(),t=e.Symbol;return Rb=t,Rb}var Db,q2;function Fee(){if(q2)return Db;q2=1;var e=Xp(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,i=e?e.toStringTag:void 0;function a(o){var u=n.call(o,i),f=o[i];try{o[i]=void 0;var h=!0}catch{}var g=r.call(o);return h&&(u?o[i]=f:delete o[i]),g}return Db=a,Db}var Ib,V2;function zee(){if(V2)return Ib;V2=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return Ib=n,Ib}var Lb,W2;function Ko(){if(W2)return Lb;W2=1;var e=Xp(),t=Fee(),n=zee(),r="[object Null]",i="[object Undefined]",a=e?e.toStringTag:void 0;function o(u){return u==null?u===void 0?i:r:a&&a in Object(u)?t(u):n(u)}return Lb=o,Lb}var $b,U2;function Zo(){if(U2)return $b;U2=1;function e(t){return t!=null&&typeof t=="object"}return $b=e,$b}var Bb,H2;function Jd(){if(H2)return Bb;H2=1;var e=Ko(),t=Zo(),n="[object Symbol]";function r(i){return typeof i=="symbol"||t(i)&&e(i)==n}return Bb=r,Bb}var Fb,G2;function dA(){if(G2)return Fb;G2=1;var e=Ur(),t=Jd(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function i(a,o){if(e(a))return!1;var u=typeof a;return u=="number"||u=="symbol"||u=="boolean"||a==null||t(a)?!0:r.test(a)||!n.test(a)||o!=null&&a in Object(o)}return Fb=i,Fb}var zb,K2;function dl(){if(K2)return zb;K2=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return zb=e,zb}var qb,Z2;function fA(){if(Z2)return qb;Z2=1;var e=Ko(),t=dl(),n="[object AsyncFunction]",r="[object Function]",i="[object GeneratorFunction]",a="[object Proxy]";function o(u){if(!t(u))return!1;var f=e(u);return f==r||f==i||f==n||f==a}return qb=o,qb}var Vb,Y2;function qee(){if(Y2)return Vb;Y2=1;
vendor: 5,836 bytes, line 406
406var e=Ka(),t=e["__core-js_shared__"];return Vb=t,Vb}var Wb,X2;function Vee(){if(X2)return Wb;X2=1;var e=qee(),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 Wb=n,Wb}var Ub,Q2;function QB(){if(Q2)return Ub;Q2=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 Ub=n,Ub}var Hb,J2;function Wee(){if(J2)return Hb;J2=1;var e=fA(),t=Vee(),n=dl(),r=QB(),i=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,o=Function.prototype,u=Object.prototype,f=o.toString,h=u.hasOwnProperty,g=RegExp("^"+f.call(h).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function p(y){if(!n(y)||t(y))return!1;var w=e(y)?g:a;return w.test(r(y))}return Hb=p,Hb}var Gb,eE;function Uee(){if(eE)return Gb;eE=1;function e(t,n){return t==null?void 0:t[n]}return Gb=e,Gb}var Kb,tE;function Dc(){if(tE)return Kb;tE=1;var e=Wee(),t=Uee();function n(r,i){var a=t(r,i);return e(a)?a:void 0}return Kb=n,Kb}var Zb,nE;function zy(){if(nE)return Zb;nE=1;var e=Dc(),t=e(Object,"create");return Zb=t,Zb}var Yb,rE;function Hee(){if(rE)return Yb;rE=1;var e=zy();function t(){this.__data__=e?e(null):{},this.size=0}return Yb=t,Yb}var Xb,iE;function Gee(){if(iE)return Xb;iE=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return Xb=e,Xb}var Qb,aE;function Kee(){if(aE)return Qb;aE=1;var e=zy(),t="__lodash_hash_undefined__",n=Object.prototype,r=n.hasOwnProperty;function i(a){var o=this.__data__;if(e){var u=o[a];return u===t?void 0:u}return r.call(o,a)?o[a]:void 0}return Qb=i,Qb}var Jb,oE;function Zee(){if(oE)return Jb;oE=1;var e=zy(),t=Object.prototype,n=t.hasOwnProperty;function r(i){var a=this.__data__;return e?a[i]!==void 0:n.call(a,i)}return Jb=r,Jb}var ew,sE;function Yee(){if(sE)return ew;sE=1;var e=zy(),t="__lodash_hash_undefined__";function n(r,i){var a=this.__data__;return this.size+=this.has(r)?0:1,a[r]=e&&i===void 0?t:i,this}return ew=n,ew}var tw,lE;function Xee(){if(lE)return tw;lE=1;var e=Hee(),t=Gee(),n=Kee(),r=Zee(),i=Yee();function a(o){var u=-1,f=o==null?0:o.length;for(this.clear();++u<f;){var h=o[u];this.set(h[0],h[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=n,a.prototype.has=r,a.prototype.set=i,tw=a,tw}var nw,cE;function Qee(){if(cE)return nw;cE=1;function e(){this.__data__=[],this.size=0}return nw=e,nw}var rw,uE;function hA(){if(uE)return rw;uE=1;function e(t,n){return t===n||t!==t&&n!==n}return rw=e,rw}var iw,dE;function qy(){if(dE)return iw;dE=1;var e=hA();function t(n,r){for(var i=n.length;i--;)if(e(n[i][0],r))return i;return-1}return iw=t,iw}var aw,fE;function Jee(){if(fE)return aw;fE=1;var e=qy(),t=Array.prototype,n=t.splice;function r(i){var a=this.__data__,o=e(a,i);if(o<0)return!1;var u=a.length-1;return o==u?a.pop():n.call(a,o,1),--this.size,!0}return aw=r,aw}var ow,hE;function ete(){if(hE)return ow;hE=1;var e=qy();function t(n){var r=this.__data__,i=e(r,n);return i<0?void 0:r[i][1]}return ow=t,ow}var sw,pE;function tte(){if(pE)return sw;pE=1;var e=qy();function t(n){return e(this.__data__,n)>-1}return sw=t,sw}var lw,mE;function nte(){if(mE)return lw;mE=1;var e=qy();function t(n,r){var i=this.__data__,a=e(i,n);return a<0?(++this.size,i.push([n,r])):i[a][1]=r,this}return lw=t,lw}var cw,gE;function Vy(){if(gE)return cw;gE=1;var e=Qee(),t=Jee(),n=ete(),r=tte(),i=nte();function a(o){var u=-1,f=o==null?0:o.length;for(this.clear();++u<f;){var h=o[u];this.set(h[0],h[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=n,a.prototype.has=r,a.prototype.set=i,cw=a,cw}var uw,vE;function pA(){if(vE)return uw;vE=1;var e=Dc(),t=Ka(),n=e(t,"Map");return uw=n,uw}var dw,yE;function rte(){if(yE)return dw;yE=1;var e=Xee(),t=Vy(),n=pA();function r(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}return dw=r,dw}var fw,xE;function ite(){if(xE)return fw;xE=1;function e(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}return fw=e,fw}var hw,bE;function Wy(){if(bE)return hw;bE=1;var e=ite();function t(n,r){var i=n.__data__;return e(r)?i[typeof r=="string"?"string":"hash"]:i.map}return hw=t,hw}var pw,wE;function ate(){if(wE)return pw;wE=1;var e=Wy();function t(n){var r=e(this,n).delete(n);return this.size-=r?1:0,r}return pw=t,pw}var mw,_E;function ote(){if(_E)return mw;_E=1;var e=Wy();function t(n){return e(this,n).get(n)}return mw=t,mw}var gw,SE;function ste(){if(SE)return gw;SE=1;var e=Wy();function t(n){return e(this,n).has(n)}return gw=t,gw}var vw,jE;function lte(){if(jE)return vw;jE=1;var e=Wy();function t(n,r){var i=e(this,n),a=i.size;return i.set(n,r),this.size+=i.size==a?0:1,this}return vw=t,vw}var yw,PE;function mA(){if(PE)return yw;PE=1;var e=rte(),t=ate(),n=ote(),r=ste(),i=lte();function a(o){var u=-1,f=o==null?0:o.length;for(this.clear();++u<f;){var h=o[u];this.set(h[0],h[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=n,a.prototype.has=r,a.prototype.set=i,yw=a,yw}var xw,NE;function JB(){if(NE)return xw;NE=1;var e=mA(),t="Expected a function";function n(r,i){if(typeof r!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var a=function(){var o=arguments,u=i?i.apply(this,o):o[0],f=a.cache;if(f.has(u))return f.get(u);var h=r.apply(this,o);return a.cache=f.set(u,h)||f,h};return a.cache=new(n.Cache||e),a}return n.Cache=e,xw=n,xw}var bw,AE;function cte(){if(AE)return bw;AE=1;var e=JB(),t=500;function n(r){var i=e(r,function(o){return a.size===t&&a.clear(),o}),a=i.cache;return i}return bw=n,bw}var ww,TE;function ute(){if(TE)return ww;TE=1;var e=cte(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=e(function(i){var a=[];
406return i.charCodeAt(0)===46&&a.push(""),i.replace(t,function(o,u,f,h){a.push(f?h.replace(n,"$1"):u||o)}),a});return ww=r,ww}var _w,kE;function gA(){if(kE)return _w;kE=1;function e(t,n){for(var r=-1,i=t==null?0:t.length,a=Array(i);++r<i;)a[r]=n(t[r],r,t);return a}return _w=e,_w}var Sw,CE;function dte(){if(CE)return Sw;CE=1;var e=Xp(),t=gA(),n=Ur(),r=Jd(),i=e?e.prototype:void 0,a=i?i.toString:void 0;function o(u){if(typeof u=="string")return u;if(n(u))return t(u,o)+"";if(r(u))return a?a.call(u):"";var f=u+"";return f=="0"&&1/u==-1/0?"-0":f}return Sw=o,Sw}var jw,OE;function eF(){if(OE)return jw;OE=1;var e=dte();function t(n){return n==null?"":e(n)}return jw=t,jw}var Pw,EE;function tF(){if(EE)return Pw;EE=1;var e=Ur(),t=dA(),n=ute(),r=eF();function i(a,o){return e(a)?a:t(a,o)?[a]:n(r(a))}return Pw=i,Pw}var Nw,ME;function Uy(){if(ME)return Nw;ME=1;var e=Jd();function t(n){if(typeof n=="string"||e(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}return Nw=t,Nw}var Aw,RE;function vA(){if(RE)return Aw;RE=1;var e=tF(),t=Uy();function n(r,i){i=e(i,r);for(var a=0,o=i.length;r!=null&&a<o;)r=r[t(i[a++])];return a&&a==o?r:void 0}return Aw=n,Aw}var Tw,DE;function nF(){if(DE)return Tw;DE=1;var e=vA();function t(n,r,i){var a=n==null?void 0:e(n,r);return a===void 0?i:a}return Tw=t,Tw}var fte=nF();const $i=kt(fte);var kw,IE;function hte(){if(IE)return kw;IE=1;function e(t){return t==null}return kw=e,kw}var pte=hte();const ut=kt(pte);var Cw,LE;function mte(){if(LE)return Cw;LE=1;var e=Ko(),t=Ur(),n=Zo(),r="[object String]";function i(a){return typeof a=="string"||!t(a)&&n(a)&&e(a)==r}return Cw=i,Cw}var gte=mte();const _c=kt(gte);var vte=fA();const st=kt(vte);var yte=dl();const ef=kt(yte);var Ow={exports:{}},Pt={};/**
407 * @license React
408 * react-is.production.min.js
409 *
410 * Copyright (c) Facebook, Inc. and its affiliates.
411 *
412 * This source code is licensed under the MIT license found in the
413 * LICENSE file in the root directory of this source tree.
414 */var $E;function xte(){if($E)return Pt;$E=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"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),u=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),w=Symbol.for("react.offscreen"),j;j=Symbol.for("react.module.reference");function S(_){if(typeof _=="object"&&_!==null){var P=_.$$typeof;switch(P){case e:switch(_=_.type,_){case n:case i:case r:case h:case g:return _;default:switch(_=_&&_.$$typeof,_){case u:case o:case f:case y:case p:case a:return _;default:return P}}case t:return P}}}return Pt.ContextConsumer=o,Pt.ContextProvider=a,Pt.Element=e,Pt.ForwardRef=f,Pt.Fragment=n,Pt.Lazy=y,Pt.Memo=p,Pt.Portal=t,Pt.Profiler=i,Pt.StrictMode=r,Pt.Suspense=h,Pt.SuspenseList=g,Pt.isAsyncMode=function(){return!1},Pt.isConcurrentMode=function(){return!1},Pt.isContextConsumer=function(_){return S(_)===o},Pt.isContextProvider=function(_){return S(_)===a},Pt.isElement=function(_){return typeof _=="object"&&_!==null&&_.$$typeof===e},Pt.isForwardRef=function(_){return S(_)===f},Pt.isFragment=function(_){return S(_)===n},Pt.isLazy=function(_){return S(_)===y},Pt.isMemo=function(_){return S(_)===p},Pt.isPortal=function(_){return S(_)===t},Pt.isProfiler=function(_){return S(_)===i},Pt.isStrictMode=function(_){return S(_)===r},Pt.isSuspense=function(_){return S(_)===h},Pt.isSuspenseList=function(_){return S(_)===g},Pt.isValidElementType=function(_){return typeof _=="string"||typeof _=="function"||_===n||_===i||_===r||_===h||_===g||_===w||typeof _=="object"&&_!==null&&(_.$$typeof===y||_.$$typeof===p||_.$$typeof===a||_.$$typeof===o||_.$$typeof===f||_.$$typeof===j||_.getModuleId!==void 0)},Pt.typeOf=S,Pt}var BE;function bte(){return BE||(BE=1,Ow.exports=xte()),Ow.exports}var wte=bte(),Ew,FE;function rF(){if(FE)return Ew;FE=1;var e=Ko(),t=Zo(),n="[object Number]";function r(i){return typeof i=="number"||t(i)&&e(i)==n}return Ew=r,Ew}var Mw,zE;function _te(){if(zE)return Mw;zE=1;var e=rF();function t(n){return e(n)&&n!=+n}return Mw=t,Mw}var Ste=_te();const Qp=kt(Ste);var jte=rF();const Pte=kt(jte);var da=function(t){return t===0?0:t>0?1:-1},ac=function(t){return _c(t)&&t.indexOf("%")===t.length-1},Te=function(t){return Pte(t)&&!Qp(t)},Nte=function(t){return ut(t)},$n=function(t){return Te(t)||_c(t)},Ate=0,Jp=function(t){var n=++Ate;return"".concat(t||"").concat(n)},Sc=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(!Te(t)&&!_c(t))return r;var a;if(ac(t)){var o=t.indexOf("%");a=n*parseFloat(t.slice(0,o))/100}else a=+t;return Qp(a)&&(a=r),i&&a>n&&(a=n),a},Fs=function(t){if(!t)return null;var n=Object.keys(t);
414return n&&n.length?t[n[0]]:null},Tte=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},ca=function(t,n){return Te(t)&&Te(n)?function(r){return t+r*(n-t)}:function(){return n}};function Sv(e,t,n){return!e||!e.length?null:e.find(function(r){return r&&(typeof t=="function"?t(r):$i(r,t))===n})}var kte=function(t,n){return Te(t)&&Te(n)?t-n:_c(t)&&_c(n)?t.localeCompare(n):t instanceof Date&&n instanceof Date?t.getTime()-n.getTime():String(t).localeCompare(String(n))};function Zu(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 Dj(e){"@babel/helpers - typeof";return Dj=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},Dj(e)}var Cte=["viewBox","children"],Ote=["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"],qE=["points","pathLength"],Rw={svg:Cte,polygon:qE,polyline:qE},yA=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onF
414ocus","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"],jv=function(t,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var r=t;if(k.isValidElement(t)&&(r=t.props),!ef(r))return null;var i={};return Object.keys(r).forEach(function(a){yA.includes(a)&&(i[a]=n||function(o){return r[a](r,o)})}),i},Ete=function(t,n,r){return function(i){return t(n,r,i),null}},Pv=function(t,n,r){if(!ef(t)||Dj(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(a){var o=t[a];yA.includes(a)&&typeof o=="function"&&(i||(i={}),i[a]=Ete(o,n,r))}),i},Mte=["children"],Rte=["children"];function VE(e,t){if(e==null)return{};var n=Dte(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Dte(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 Ij(e){"@babel/helpers - typeof";return Ij=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},Ij(e)}var WE={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"}
414,Eo=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},UE=null,Dw=null,xA=function e(t){if(t===UE&&Array.isArray(Dw))return Dw;var n=[];return k.Children.forEach(t,function(r){ut(r)||(wte.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),Dw=n,UE=t,n};function Bi(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(i){return Eo(i)}):r=[Eo(t)],xA(e).forEach(function(i){var a=$i(i,"type.displayName")||$i(i,"type.name");r.indexOf(a)!==-1&&n.push(i)}),n}function si(e,t){var n=Bi(e,t);return n&&n[0]}var HE=function(t){if(!t||!t.props)return!1;var n=t.props,r=n.width,i=n.height;return!(!Te(r)||r<=0||!Te(i)||i<=0)},Ite=["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"],Lte=function(t){return t&&t.type&&_c(t.type)&&Ite.indexOf(t.type)>=0},$te=function(t){return t&&Ij(t)==="object"&&"clipDot"in t},Bte=function(t,n,r,i){var a,o=(a=Rw==null?void 0:Rw[i])!==null&&a!==void 0?a:[];return n.startsWith("data-")||!st(t)&&(i&&o.includes(n)||Ote.includes(n))||r&&yA.includes(n)},vt=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(k.isValidElement(t)&&(i=t.props),!ef(i))return null;var a={};
414return Object.keys(i).forEach(function(o){var u;Bte((u=i)===null||u===void 0?void 0:u[o],o,n,r)&&(a[o]=i[o])}),a},Lj=function e(t,n){if(t===n)return!0;var r=k.Children.count(t);if(r!==k.Children.count(n))return!1;if(r===0)return!0;if(r===1)return GE(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var i=0;i<r;i++){var a=t[i],o=n[i];if(Array.isArray(a)||Array.isArray(o)){if(!e(a,o))return!1}else if(!GE(a,o))return!1}return!0},GE=function(t,n){if(ut(t)&&ut(n))return!0;if(!ut(t)&&!ut(n)){var r=t.props||{},i=r.children,a=VE(r,Mte),o=n.props||{},u=o.children,f=VE(o,Rte);return i&&u?Zu(a,f)&&Lj(i,u):!i&&!u?Zu(a,f):!1}return!1},KE=function(t,n){var r=[],i={};return xA(t).forEach(function(a,o){if(Lte(a))r.push(a);else if(a){var u=Eo(a.type),f=n[u]||{},h=f.handler,g=f.once;if(h&&(!g||!i[u])){var p=h(a,u,o);r.push(p),i[u]=!0}}}),r},Fte=function(t){var n=t&&t.type;return n&&WE[n]?WE[n]:null},zte=function(t,n){return xA(n).indexOf(t)},qte=["children","width","height","viewBox","className","style","title","desc"];function $j(){return $j=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},$j.apply(this,arguments)}function Vte(e,t){if(e==null)return{};var n=Wte(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Wte(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 Bj(e){var t=e.children,n=e.width,r=e.height,i=e.viewBox,a=e.className,o=e.style,u=e.title,f=e.desc,h=Vte(e,qte),g=i||{width:n,height:r,x:0,y:0},p=yt("recharts-surface",a);return K.createElement("svg",$j({},vt(h,!0,"svg"),{className:p,width:n,height:r,style:o,viewBox:"".concat(g.x," ").concat(g.y," ").concat(g.width," ").concat(g.height)}),K.createElement("title",null,u),K.createElement("desc",null,f),t)}var Ute=["children","className"];function Fj(){return Fj=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},Fj.apply(this,arguments)}function Hte(e,t){if(e==null)return{};var n=Gte(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Gte(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 vn=K.forwardRef(function(e,t){var n=e.children,r=e.className,i=Hte(e,Ute),a=yt("recharts-layer",r);return K.createElement("g",Fj({className:a},vt(i,!0),{ref:t}),n)}),Mo=function(t,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),a=2;a<r;a++)i[a-2]=arguments[a]},Iw,ZE;function Kte(){if(ZE)return Iw;ZE=1;function e(t,n,r){var i=-1,a=t.length;n<0&&(n=-n>a?0:a+n),r=r>a?a:r,r<0&&(r+=a),a=n>r?0:r-n>>>0,n>>>=0;for(var o=Array(a);++i<a;)o[i]=t[i+n];return o}return Iw=e,Iw}var Lw,YE;function Zte(){if(YE)return Lw;YE=1;var e=Kte();function t(n,r,i){var a=n.length;return i=i===void 0?a:i,!r&&i>=a?n:e(n,r,i)}return Lw=t,Lw}var $w,XE;function iF(){if(XE)return $w;XE=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",i=t+n+r,a="\\ufe0e\\ufe0f",o="\\u200d",u=RegExp("["+o+e+i+a+"]");function f(h){return u.test(h)}return $w=f,$w}var Bw,QE;function Yte(){if(QE)return Bw;QE=1;function e(t){return t.split("")}return Bw=e,Bw}var Fw,JE;function Xte(){if(JE)return Fw;JE=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",i=t+n+r,a="\\ufe0e\\ufe0f",o="["+e+"]",u="["+i+"]",f="\\ud83c[\\udffb-\\udfff]",h="(?:"+u+"|"+f+")",g="[^"+e+"]",p="(?:\\ud83c[\\udde6-\\uddff]){2}",y="[\\ud800-\\udbff][\\udc00-\\udfff]",w="\\u200d",j=h+"?",S="["+a+"]?",_="(?:"+w+"(?:"+[g,p,y].join("|")+")"+S+j+")*",P=S+j+_,O="(?:"+[g+u+"?",u,p,y,o].join("|")+")",C=RegExp(f+"
414(?="+f+")|"+O+P,"g");function E(T){return T.match(C)||[]}return Fw=E,Fw}var zw,eM;function Qte(){if(eM)return zw;eM=1;var e=Yte(),t=iF(),n=Xte();function r(i){return t(i)?n(i):e(i)}return zw=r,zw}var qw,tM;function Jte(){if(tM)return qw;tM=1;var e=Zte(),t=iF(),n=Qte(),r=eF();function i(a){return function(o){o=r(o);var u=t(o)?n(o):void 0,f=u?u[0]:o.charAt(0),h=u?e(u,1).join(""):o.slice(1);return f[a]()+h}}return qw=i,qw}var Vw,nM;function ene(){if(nM)return Vw;nM=1;var e=Jte(),t=e("toUpperCase");return Vw=t,Vw}var tne=ene();const Hy=kt(tne);function Bt(e){return function(){return e}}const aF=Math.cos,Nv=Math.sin,ma=Math.sqrt,Av=Math.PI,Gy=2*Av,zj=Math.PI,qj=2*zj,tc=1e-6,nne=qj-tc;function oF(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function rne(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return oF;const n=10**t;return function(r){this._+=r[0];for(let i=1,a=r.length;i<a;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}class ine{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?oF:rne(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,a,o){this._append`C${+t},${+n},${+r},${+i},${this._x1=+a},${this._y1=+o}`}arcTo(t,n,r,i,a){if(t=+t,n=+n,r=+r,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,u=this._y1,f=r-t,h=i-n,g=o-t,p=u-n,y=g*g+p*p;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(y>tc)if(!(Math.abs(p*f-h*g)>tc)||!a)this._append`L${this._x1=t},${this._y1=n}`;else{let w=r-o,j=i-u,S=f*f+h*h,_=w*w+j*j,P=Math.sqrt(S),O=Math.sqrt(y),C=a*Math.tan((zj-Math.acos((S+y-_)/(2*P*O)))/2),E=C/O,T=C/P;Math.abs(E-1)>tc&&this._append`L${t+E*g},${n+E*p}`,this._append`A${a},${a},0,0,${+(p*w>g*j)},${this._x1=t+T*f},${this._y1=n+T*h}`}}arc(t,n,r,i,a,o){if(t=+t,n=+n,r=+r,o=!!o,r<0)throw new Error(`negative radius: ${r}`);let u=r*Math.cos(i),f=r*Math.sin(i),h=t+u,g=n+f,p=1^o,y=o?i-a:a-i;this._x1===null?this._append`M${h},${g}`:(Math.abs(this._x1-h)>tc||Math.abs(this._y1-g)>tc)&&this._append`L${h},${g}`,r&&(y<0&&(y=y%qj+qj),y>nne?this._append`A${r},${r},0,1,${p},${t-u},${n-f}A${r},${r},0,1,${p},${this._x1=h},${this._y1=g}`:y>tc&&this._append`A${r},${r},0,${+(y>=zj)},${p},${this._x1=t+r*Math.cos(a)},${this._y1=n+r*Math.sin(a)}`)}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 bA(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 ine(t)}function wA(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function sF(e){this._context=e}sF.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 Ky(e){return new sF(e)}function lF(e){return e[0]}function cF(e){return e[1]}function uF(e,t){var n=Bt(!0),r=null,i=Ky,a=null,o=bA(u);e=typeof e=="function"?e:e===void 0?lF:Bt(e),t=typeof t=="function"?t:t===void 0?cF:Bt(t);function u(f){var h,g=(f=wA(f)).length,p,y=!1,w;for(r==null&&(a=i(w=o())),h=0;h<=g;++h)!(h<g&&n(p=f[h],h,f))===y&&((y=!y)?a.lineStart():a.lineEnd()),y&&a.point(+e(p,h,f),+t(p,h,f));if(w)return a=null,w+""||null}return u.x=function(f){return arguments.length?(e=typeof f=="function"?f:Bt(+f),u):e},u.y=function(f){return arguments.length?(t=typeof f=="function"?f:Bt(+f),u):t},u.defined=function(f){return arguments.length?(n=typeof f=="function"?f:Bt(!!f),u):n},u.curve=function(f){return arguments.length?(i=f,r!=null&&(a=i(r)),u):i},u.context=function(f){return arguments.length?(f==null?r=a=null:a=i(r=f),u):r},u}function Bg(e,t,n){var r=null,i=Bt(!0),a=null,o=Ky,u=null,f=bA(h);e=typeof e=="function"?e:e===void 0?lF:Bt(+e),t=typeof t=="function"?t:Bt(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?cF:Bt(+n);
414function h(p){var y,w,j,S=(p=wA(p)).length,_,P=!1,O,C=new Array(S),E=new Array(S);for(a==null&&(u=o(O=f())),y=0;y<=S;++y){if(!(y<S&&i(_=p[y],y,p))===P)if(P=!P)w=y,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),j=y-1;j>=w;--j)u.point(C[j],E[j]);u.lineEnd(),u.areaEnd()}P&&(C[y]=+e(_,y,p),E[y]=+t(_,y,p),u.point(r?+r(_,y,p):C[y],n?+n(_,y,p):E[y]))}if(O)return u=null,O+""||null}function g(){return uF().defined(i).curve(o).context(a)}return h.x=function(p){return arguments.length?(e=typeof p=="function"?p:Bt(+p),r=null,h):e},h.x0=function(p){return arguments.length?(e=typeof p=="function"?p:Bt(+p),h):e},h.x1=function(p){return arguments.length?(r=p==null?null:typeof p=="function"?p:Bt(+p),h):r},h.y=function(p){return arguments.length?(t=typeof p=="function"?p:Bt(+p),n=null,h):t},h.y0=function(p){return arguments.length?(t=typeof p=="function"?p:Bt(+p),h):t},h.y1=function(p){return arguments.length?(n=p==null?null:typeof p=="function"?p:Bt(+p),h):n},h.lineX0=h.lineY0=function(){return g().x(e).y(t)},h.lineY1=function(){return g().x(e).y(n)},h.lineX1=function(){return g().x(r).y(t)},h.defined=function(p){return arguments.length?(i=typeof p=="function"?p:Bt(!!p),h):i},h.curve=function(p){return arguments.length?(o=p,a!=null&&(u=o(a)),h):o},h.context=function(p){return arguments.length?(p==null?a=u=null:u=o(a=p),h):a},h}class dF{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 ane(e){return new dF(e,!0)}function one(e){return new dF(e,!1)}const _A={draw(e,t){const n=ma(t/Av);e.moveTo(n,0),e.arc(0,0,n,0,Gy)}},sne={draw(e,t){const n=ma(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()}},fF=ma(1/3),lne=fF*2,cne={draw(e,t){const n=ma(t/lne),r=n*fF;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},une={draw(e,t){const n=ma(t),r=-n/2;e.rect(r,r,n,n)}},dne=.8908130915292852,hF=Nv(Av/10)/Nv(7*Av/10),fne=Nv(Gy/10)*hF,hne=-aF(Gy/10)*hF,pne={draw(e,t){const n=ma(t*dne),r=fne*n,i=hne*n;e.moveTo(0,-n),e.lineTo(r,i);for(let a=1;a<5;
vendor: 7,337 bytes, line 414
414++a){const o=Gy*a/5,u=aF(o),f=Nv(o);e.lineTo(f*n,-u*n),e.lineTo(u*r-f*i,f*r+u*i)}e.closePath()}},Ww=ma(3),mne={draw(e,t){const n=-ma(t/(Ww*3));e.moveTo(0,n*2),e.lineTo(-Ww*n,-n),e.lineTo(Ww*n,-n),e.closePath()}},Oi=-.5,Ei=ma(3)/2,Vj=1/ma(12),gne=(Vj/2+1)*3,vne={draw(e,t){const n=ma(t/gne),r=n/2,i=n*Vj,a=r,o=n*Vj+n,u=-a,f=o;e.moveTo(r,i),e.lineTo(a,o),e.lineTo(u,f),e.lineTo(Oi*r-Ei*i,Ei*r+Oi*i),e.lineTo(Oi*a-Ei*o,Ei*a+Oi*o),e.lineTo(Oi*u-Ei*f,Ei*u+Oi*f),e.lineTo(Oi*r+Ei*i,Oi*i-Ei*r),e.lineTo(Oi*a+Ei*o,Oi*o-Ei*a),e.lineTo(Oi*u+Ei*f,Oi*f-Ei*u),e.closePath()}};function yne(e,t){let n=null,r=bA(i);e=typeof e=="function"?e:Bt(e||_A),t=typeof t=="function"?t:Bt(t===void 0?64:+t);function i(){let a;if(n||(n=a=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),a)return n=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:Bt(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:Bt(+a),i):t},i.context=function(a){return arguments.length?(n=a??null,i):n},i}function Tv(){}function kv(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 pF(e){this._context=e}pF.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:kv(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:kv(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function xne(e){return new pF(e)}function mF(e){this._context=e}mF.prototype={areaStart:Tv,areaEnd:Tv,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:kv(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function bne(e){return new mF(e)}function gF(e){this._context=e}gF.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:kv(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function wne(e){return new gF(e)}function vF(e){this._context=e}vF.prototype={areaStart:Tv,areaEnd:Tv,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 _ne(e){return new vF(e)}function rM(e){return e<0?-1:1}function iM(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),u=(a*i+o*r)/(r+i);return(rM(a)+rM(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(u))||0}function aM(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Uw(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,u=(a-r)/3;e._context.bezierCurveTo(r+u,i+u*t,a-u,o-u*n,a,o)}function Cv(e){this._context=e}Cv.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:Uw(this,this._t0,aM(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,Uw(this,aM(this,n=iM(this,e,t)),n);break;default:Uw(this,this._t0,n=iM(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function yF(e){this._context=new xF(e)}(yF.prototype=Object.create(Cv.prototype)).point=function(e,t){Cv.prototype.point.call(this,t,e)};function xF(e){this._context=e}xF.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,a){this._context.bezierCurveTo(t,e,r,n,a,i)}};function Sne(e){return new Cv(e)}function jne(e){return new yF(e)}function bF(e){this._context=e}bF.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=oM(e),i=oM(t),a=0,o=1;o<n;++a,++o)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],e[o],t[o]);(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 oM(e){var t,n=e.length-1,r,i=new Array(n),a=new Array(n),o=new Array(n);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,a[n-1]=7,o[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/a[t-1],a[t]-=r,o[t]-=r*o[t-1];for(i[n-1]=o[n-1]/a[n-1],t=n-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function Pne(e){return new bF(e)}function Zy(e,t){this._context=e,this._t=t}Zy.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;
414default:{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 Nne(e){return new Zy(e,.5)}function Ane(e){return new Zy(e,0)}function Tne(e){return new Zy(e,1)}function xd(e,t){if((o=e.length)>1)for(var n=1,r,i,a=e[t[0]],o,u=a.length;n<o;++n)for(i=a,a=e[t[n]],r=0;r<u;++r)a[r][1]+=a[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function Wj(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function kne(e,t){return e[t]}function Cne(e){const t=[];return t.key=e,t}function One(){var e=Bt([]),t=Wj,n=xd,r=kne;function i(a){var o=Array.from(e.apply(this,arguments),Cne),u,f=o.length,h=-1,g;for(const p of a)for(u=0,++h;u<f;++u)(o[u][h]=[0,+r(p,o[u].key,h,a)]).data=p;for(u=0,g=wA(t(o));u<f;++u)o[g[u]].index=u;return n(o,g),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:Bt(Array.from(a)),i):e},i.value=function(a){return arguments.length?(r=typeof a=="function"?a:Bt(+a),i):r},i.order=function(a){return arguments.length?(t=a==null?Wj:typeof a=="function"?a:Bt(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(n=a??xd,i):n},i}function Ene(e,t){if((r=e.length)>0){for(var n,r,i=0,a=e[0].length,o;i<a;++i){for(o=n=0;n<r;++n)o+=e[n][i][1]||0;if(o)for(n=0;n<r;++n)e[n][i][1]/=o}xd(e,t)}}function Mne(e,t){if((i=e.length)>0){for(var n=0,r=e[t[0]],i,a=r.length;n<a;++n){for(var o=0,u=0;o<i;++o)u+=e[o][n][1]||0;r[n][1]+=r[n][0]=-u/2}xd(e,t)}}function Rne(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,a,o;r<a;++r){for(var u=0,f=0,h=0;u<o;++u){for(var g=e[t[u]],p=g[r][1]||0,y=g[r-1][1]||0,w=(p-y)/2,j=0;j<u;++j){var S=e[t[j]],_=S[r][1]||0,P=S[r-1][1]||0;w+=_-P}f+=p,h+=w*p}i[r-1][1]+=i[r-1][0]=n,f&&(n-=h/f)}i[r-1][1]+=i[r-1][0]=n,xd(e,t)}}function Kh(e){"@babel/helpers - typeof";return Kh=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},Kh(e)}var Dne=["type","size","sizeType"];function Uj(){return Uj=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},Uj.apply(this,arguments)}function sM(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 lM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?sM(Object(n),!0).forEach(function(r){Ine(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ine(e,t,n){return t=Lne(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lne(e){var t=$ne(e,"string");return Kh(t)=="symbol"?t:t+""}function $ne(e,t){if(Kh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Kh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Bne(e,t){if(e==null)return{};var n=Fne(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Fne(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 wF={symbolCircle:_A,symbolCross:sne,symbolDiamond:cne,symbolSquare:une,symbolStar:pne,symbolTriangle:mne,symbolWye:vne},zne=Math.PI/180,qne=function(t){var n="symbol".concat(Hy(t));return wF[n]||_A},Vne=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*zne;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}},Wne=function(t,n){wF["symbol".concat(Hy(t))]=n},SA=function(t){var n=t.type,r=n===void 0?"circle":n,i=t.size,a=i===void 0?64:i,o=t.sizeType,u=o===void 0?"area":o,f=Bne(t,Dne),h=lM(lM({},f),{},{type:r,size:a,sizeType:u}),g=function(){var _=qne(r),P=yne().type(_).size(Vne(a,u,r));return P()},p=h.className,y=h.cx,w=h.cy,j=vt(h,!0);return y===+y&&w===+w&&a===+a?K.createElement("path",Uj({}
414,j,{className:yt("recharts-symbols",p),transform:"translate(".concat(y,", ").concat(w,")"),d:g()})):null};SA.registerSymbol=Wne;function bd(e){"@babel/helpers - typeof";return bd=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},bd(e)}function Hj(){return Hj=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},Hj.apply(this,arguments)}function cM(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 Une(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?cM(Object(n),!0).forEach(function(r){Zh(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Hne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Gne(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,SF(r.key),r)}}function Kne(e,t,n){return t&&Gne(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Zne(e,t,n){return t=Ov(t),Yne(e,_F()?Reflect.construct(t,n||[],Ov(e).constructor):t.apply(e,n))}function Yne(e,t){if(t&&(bd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Xne(e)}function Xne(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})()}function Ov(e){return Ov=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ov(e)}function Qne(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&&Gj(e,t)}function Gj(e,t){return Gj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Gj(e,t)}function Zh(e,t,n){return t=SF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function SF(e){var t=Jne(e,"string");return bd(t)=="symbol"?t:t+""}function Jne(e,t){if(bd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(bd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Mi=32,jA=(function(e){function t(){return Hne(this,t),Zne(this,t,arguments)}return Qne(t,e),Kne(t,[{key:"renderIcon",value:function(r){var i=this.props.inactiveColor,a=Mi/2,o=Mi/6,u=Mi/3,f=r.inactive?i:r.color;if(r.type==="plainline")return K.createElement("line",{strokeWidth:4,fill:"none",stroke:f,strokeDasharray:r.payload.strokeDasharray,x1:0,y1:a,x2:Mi,y2:a,className:"recharts-legend-icon"});if(r.type==="line")return K.createElement("path",{strokeWidth:4,fill:"none",stroke:f,d:"M0,".concat(a,"h").concat(u,`
415            A`).concat(o,",").concat(o,",0,1,1,").concat(2*u,",").concat(a,`
416            H`).concat(Mi,"M").concat(2*u,",").concat(a,`
417            A`).concat(o,",").concat(o,",0,1,1,").concat(u,",").concat(a),className:"recharts-legend-icon"});if(r.type==="rect")return K.createElement("path",{stroke:"none",fill:f,d:"M0,".concat(Mi/8,"h").concat(Mi,"v").concat(Mi*3/4,"h").concat(-Mi,"z"),className:"recharts-legend-icon"});if(K.isValidElement(r.legendIcon)){var h=Une({},r);return delete h.legendIcon,K.cloneElement(r.legendIcon,h)}return K.createElement(SA,{fill:f,cx:a,cy:a,size:Mi,sizeType:"diameter",type:r.type})}},{key:"renderItems",value:function(){var r=this,i=this.props,a=i.payload,o=i.iconSize,u=i.layout,f=i.formatter,h=i.inactiveColor,g={x:0,y:0,width:Mi,height:Mi},p={display:u==="horizontal"?"inline-block":"block",marginRight:10},y={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(w,j){var S=w.formatter||f,_=yt(Zh(Zh({"recharts-legend-item":!0},"legend-item-".concat(j),!0),"inactive",w.inactive));if(w.type==="none")return null;var P=st(w.value)?null:w.value;Mo(!st(w.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 O=w.inactive?h:w.color;return K.createElement("li",Hj({className:_,style:p,key:"legend-item-".concat(j)},Pv(r.props,w,j)),K.createElement(Bj,{width:o,height:o,viewBox:g,style:y},r.renderIcon(w)),K.createElement("span",{className:"recharts-legend-item-text",style:{color:O}},S?S(P,w,j):P))})}},{key:"render",value:function(){var r=this.props,i=r.payload,a=r.layout,o=r.align;if(!i||!i.length)return null;var u={padding:0,margin:0,textAlign:a==="horizontal"?o:"left"};return K.createElement("ul",{className:"recharts-default-legend",style:u},this.renderItems())}}])})(k.PureComponent);Zh(jA,"displayName","Legend");Zh(jA,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var Hw,uM;function ere(){if(uM)return Hw;uM=1;var e=Vy();function t(){this.__data__=new e,this.size=0}return Hw=t,Hw}var Gw,dM;function tre(){if(dM)return Gw;dM=1;function e(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r}return Gw=e,Gw}var Kw,fM;function nre(){if(fM)return Kw;fM=1;function e(t){return this.__data__.get(t)}return Kw=e,Kw}var Zw,hM;function rre(){if(hM)return Zw;hM=1;function e(t){return this.__data__.has(t)}return Zw=e,Zw}var Yw,pM;function ire(){if(pM)return Yw;pM=1;var e=Vy(),t=pA(),n=mA(),r=200;function i(a,o){var u=this.__data__;if(u instanceof e){var f=u.__data__;if(!t||f.length<r-1)return f.push([a,o]),this.size=++u.size,this;u=this.__data__=new n(f)}return u.set(a,o),this.size=u.size,this}return Yw=i,Yw}var Xw,mM;function jF(){if(mM)return Xw;mM=1;var e=Vy(),t=ere(),n=tre(),r=nre(),i=rre(),a=ire();function o(u){var f=this.__data__=new e(u);this.size=f.size}return o.prototype.clear=t,o.prototype.delete=n,o.prototype.get=r,o.prototype.has=i,o.prototype.set=a,Xw=o,Xw}var Qw,gM;function are(){if(gM)return Qw;gM=1;var e="__lodash_hash_undefined__";function t(n){return this.__data__.set(n,e),this}return Qw=t,Qw}var Jw,vM;function ore(){if(vM)return Jw;vM=1;function e(t){return this.__data__.has(t)}return Jw=e,Jw}var e_,yM;function PF(){if(yM)return e_;yM=1;var e=mA(),t=are(),n=ore();function r(i){var a=-1,o=i==null?0:i.length;for(this.__data__=new e;++a<o;)this.add(i[a])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,e_=r,e_}var t_,xM;function NF(){if(xM)return t_;xM=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 t_=e,t_}var n_,bM;function AF(){if(bM)return n_;bM=1;function e(t,n){return t.has(n)}return n_=e,n_}var r_,wM;function TF(){if(wM)return r_;wM=1;var e=PF(),t=NF(),n=AF(),r=1,i=2;function a(o,u,f,h,g,p){var y=f&r,w=o.length,j=u.length;if(w!=j&&!(y&&j>w))return!1;var S=p.get(o),_=p.get(u);if(S&&_)return S==u&&_==o;var P=-1,O=!0,C=f&i?new e:void 0;for(p.set(o,u),p.set(u,o);++P<w;){var E=o[P],T=u[P];if(h)var M=y?h(T,E,P,u,o,p):h(E,T,P,o,u,p);if(M!==void 0){if(M)continue;O=!1;break}
vendor: 7,705 bytes, line 417
417if(C){if(!t(u,function(I,$){if(!n(C,$)&&(E===I||g(E,I,f,h,p)))return C.push($)})){O=!1;break}}else if(!(E===T||g(E,T,f,h,p))){O=!1;break}}return p.delete(o),p.delete(u),O}return r_=a,r_}var i_,_M;function sre(){if(_M)return i_;_M=1;var e=Ka(),t=e.Uint8Array;return i_=t,i_}var a_,SM;function lre(){if(SM)return a_;SM=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(i,a){r[++n]=[a,i]}),r}return a_=e,a_}var o_,jM;function PA(){if(jM)return o_;jM=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(i){r[++n]=i}),r}return o_=e,o_}var s_,PM;function cre(){if(PM)return s_;PM=1;var e=Xp(),t=sre(),n=hA(),r=TF(),i=lre(),a=PA(),o=1,u=2,f="[object Boolean]",h="[object Date]",g="[object Error]",p="[object Map]",y="[object Number]",w="[object RegExp]",j="[object Set]",S="[object String]",_="[object Symbol]",P="[object ArrayBuffer]",O="[object DataView]",C=e?e.prototype:void 0,E=C?C.valueOf:void 0;function T(M,I,$,z,Y,V,q){switch($){case O:if(M.byteLength!=I.byteLength||M.byteOffset!=I.byteOffset)return!1;M=M.buffer,I=I.buffer;case P:return!(M.byteLength!=I.byteLength||!V(new t(M),new t(I)));case f:case h:case y:return n(+M,+I);case g:return M.name==I.name&&M.message==I.message;case w:case S:return M==I+"";case p:var G=i;case j:var Q=z&o;if(G||(G=a),M.size!=I.size&&!Q)return!1;var ne=q.get(M);if(ne)return ne==I;z|=u,q.set(M,I);var ie=r(G(M),G(I),z,Y,V,q);return q.delete(M),ie;case _:if(E)return E.call(M)==E.call(I)}return!1}return s_=T,s_}var l_,NM;function kF(){if(NM)return l_;NM=1;function e(t,n){for(var r=-1,i=n.length,a=t.length;++r<i;)t[a+r]=n[r];return t}return l_=e,l_}var c_,AM;function ure(){if(AM)return c_;AM=1;var e=kF(),t=Ur();function n(r,i,a){var o=i(r);return t(r)?o:e(o,a(r))}return c_=n,c_}var u_,TM;function dre(){if(TM)return u_;TM=1;function e(t,n){for(var r=-1,i=t==null?0:t.length,a=0,o=[];++r<i;){var u=t[r];n(u,r,t)&&(o[a++]=u)}return o}return u_=e,u_}var d_,kM;function fre(){if(kM)return d_;kM=1;function e(){return[]}return d_=e,d_}var f_,CM;function hre(){if(CM)return f_;CM=1;var e=dre(),t=fre(),n=Object.prototype,r=n.propertyIsEnumerable,i=Object.getOwnPropertySymbols,a=i?function(o){return o==null?[]:(o=Object(o),e(i(o),function(u){return r.call(o,u)}))}:t;return f_=a,f_}var h_,OM;function pre(){if(OM)return h_;OM=1;function e(t,n){for(var r=-1,i=Array(t);++r<t;)i[r]=n(r);return i}return h_=e,h_}var p_,EM;function mre(){if(EM)return p_;EM=1;var e=Ko(),t=Zo(),n="[object Arguments]";function r(i){return t(i)&&e(i)==n}return p_=r,p_}var m_,MM;function NA(){if(MM)return m_;MM=1;var e=mre(),t=Zo(),n=Object.prototype,r=n.hasOwnProperty,i=n.propertyIsEnumerable,a=e((function(){return arguments})())?e:function(o){return t(o)&&r.call(o,"callee")&&!i.call(o,"callee")};return m_=a,m_}var bh={exports:{}},g_,RM;function gre(){if(RM)return g_;RM=1;function e(){return!1}return g_=e,g_}bh.exports;var DM;function CF(){return DM||(DM=1,(function(e,t){var n=Ka(),r=gre(),i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===i,u=o?n.Buffer:void 0,f=u?u.isBuffer:void 0,h=f||r;e.exports=h})(bh,bh.exports)),bh.exports}var v_,IM;function AA(){if(IM)return v_;IM=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function n(r,i){var a=typeof r;return i=i??e,!!i&&(a=="number"||a!="symbol"&&t.test(r))&&r>-1&&r%1==0&&r<i}return v_=n,v_}var y_,LM;function TA(){if(LM)return y_;LM=1;var e=9007199254740991;function t(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=e}return y_=t,y_}var x_,$M;function vre(){if($M)return x_;$M=1;var e=Ko(),t=TA(),n=Zo(),r="[object Arguments]",i="[object Array]",a="[object Boolean]",o="[object Date]",u="[object Error]",f="[object Function]",h="[object Map]",g="[object Number]",p="[object Object]",y="[object RegExp]",w="[object Set]",j="[object String]",S="[object WeakMap]",_="[object ArrayBuffer]",P="[object DataView]",O="[object Float32Array]",C="[object Float64Array]",E="[object Int8Array]",T="[object Int16Array]",M="[object Int32Array]",I="[object Uint8Array]",$="[object Uint8ClampedArray]",z="[object Uint16Array]",Y="[object Uint32Array]",V={};V[O]=V[C]=V[E]=V[T]=V[M]=V[I]=V[$]=V[z]=V[Y]=!0,V[r]=V[i]=V[_]=V[a]=V[P]=V[o]=V[u]=V[f]=V[h]=V[g]=V[p]=V[y]=V[w]=V[j]=V[S]=!1;function q(G){return n(G)&&t(G.length)&&!!V[e(G)]}return x_=q,x_}var b_,BM;function OF(){if(BM)return b_;BM=1;function e(t){return function(n){return t(n)}}return b_=e,b_}var wh={exports:{}};wh.exports;var FM;function yre(){return FM||(FM=1,(function(e,t){var n=XB(),r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===r,o=a&&n.process,u=(function(){try{var f=i&&i.require&&i.require("util").types;return f||o&&o.binding&&o.binding("util")}catch{}})();e.exports=u})(wh,wh.exports)),wh.exports}var w_,zM;function EF(){if(zM)return w_;zM=1;var e=vre(),t=OF(),n=yre(),r=n&&n.isTypedArray,i=r?t(r):e;return w_=i,w_}var __,qM;function xre(){if(qM)return __;qM=1;var e=pre(),t=NA(),n=Ur(),r=CF(),i=AA(),a=EF(),o=Object.prototype,u=o.hasOwnProperty;function f(h,g){var p=n(h),y=!p&&t(h),w=!p&&!y&&r(h),j=!p&&!y&&!w&&a(h),S=p||y||w||j,_=S?e(h.length,String):[],P=_.length;for(var O in h)(g||u.call(h,O))&&!(S&&(O=="length"||w&&(O=="offset"||O=="parent")||j&&(O=="buffer"||O=="byteLength"||O=="byteOffset")||i(O,P)))&&_.push(O);return _}return __=f,__}var S_,VM;function bre(){if(VM)return S_;VM=1;var e=Object.prototype;function t(n){var r=n&&n.constructor,i=typeof r=="function"&&r.prototype||e;return n===i}return S_=t,S_}var j_,WM;function MF(){if(WM)return j_;WM=1;function e(t,n){return function(r){return t(n(r))}}return j_=e,j_}var P_,UM;function wre(){if(UM)return P_;UM=1;var e=MF(),t=e(Object.keys,Object);return P_=t,P_}var N_,HM;function _re(){if(HM)return N_;HM=1;var e=bre(),t=wre(),n=Object.prototype,r=n.hasOwnProperty;function i(a){if(!e(a))return t(a);var o=[];for(var u in Object(a))r.call(a,u)&&u!="constructor"&&o.push(u);return o}return N_=i,N_}var A_,GM;function em(){if(GM)return A_;GM=1;var e=fA(),t=TA();function n(r){return r!=null&&t(r.length)&&!e(r)}return A_=n,A_}var T_,KM;function Yy(){if(KM)return T_;KM=1;var e=xre(),t=_re(),n=em();function r(i){return n(i)?e(i):t(i)}return T_=r,T_}var k_,ZM;function Sre(){if(ZM)return k_;ZM=1;var e=ure(),t=hre(),n=Yy();function r(i){return e(i,n,t)}return k_=r,k_}var C_,YM;function jre(){if(YM)return C_;YM=1;var e=Sre(),t=1,n=Object.prototype,r=n.hasOwnProperty;function i(a,o,u,f,h,g){var p=u&t,y=e(a),w=y.length,j=e(o),S=j.length;if(w!=S&&!p)return!1;for(var _=w;_--;){var P=y[_];if(!(p?P in o:r.call(o,P)))return!1}var O=g.get(a),C=g.get(o);if(O&&C)return O==o&&C==a;var E=!0;g.set(a,o),g.set(o,a);for(var T=p;++_<w;){P=y[_];var M=a[P],I=o[P];if(f)var $=p?f(I,M,P,o,a,g):f(M,I,P,a,o,g);if(!($===void 0?M===I||h(M,I,u,f,g):$)){E=!1;break}T||(T=P=="constructor")}if(E&&!T){var z=a.constructor,Y=o.constructor;z!=Y&&"constructor"in a&&"constructor"in o&&!(typeof z=="function"&&z instanceof z&&typeof Y=="function"&&Y instanceof Y)&&(E=!1)}return g.delete(a),g.delete(o),E}return C_=i,C_}var O_,XM;function Pre(){if(XM)return O_;XM=1;var e=Dc(),t=Ka(),n=e(t,"DataView");return O_=n,O_}var E_,QM;function Nre(){if(QM)return E_;QM=1;var e=Dc(),t=Ka(),n=e(t,"Promise");return E_=n,E_}var M_,JM;function RF(){if(JM)return M_;JM=1;var e=Dc(),t=Ka(),n=e(t,"Set");return M_=n,M_}var R_,eR;function Are(){if(eR)return R_;eR=1;var e=Dc(),t=Ka(),n=e(t,"WeakMap");return R_=n,R_}var D_,tR;function Tre(){if(tR)return D_;tR=1;var e=Pre(),t=pA(),n=Nre(),r=RF(),i=Are(),a=Ko(),o=QB(),u="[object Map]",f="[object Object]",h="[object Promise]",g="[object Set]",p="[object WeakMap]",y="[object DataView]",w=o(e),j=o(t),S=o(n),_=o(r),P=o(i),O=a;return(e&&O(new e(new ArrayBuffer(1)))!=y||t&&O(new t)!=u||n&&O(n.resolve())!=h||r&&O(new r)!=g||i&&O(new i)!=p)&&
417(O=function(C){var E=a(C),T=E==f?C.constructor:void 0,M=T?o(T):"";if(M)switch(M){case w:return y;case j:return u;case S:return h;case _:return g;case P:return p}return E}),D_=O,D_}var I_,nR;function kre(){if(nR)return I_;nR=1;var e=jF(),t=TF(),n=cre(),r=jre(),i=Tre(),a=Ur(),o=CF(),u=EF(),f=1,h="[object Arguments]",g="[object Array]",p="[object Object]",y=Object.prototype,w=y.hasOwnProperty;function j(S,_,P,O,C,E){var T=a(S),M=a(_),I=T?g:i(S),$=M?g:i(_);I=I==h?p:I,$=$==h?p:$;var z=I==p,Y=$==p,V=I==$;if(V&&o(S)){if(!o(_))return!1;T=!0,z=!1}if(V&&!z)return E||(E=new e),T||u(S)?t(S,_,P,O,C,E):n(S,_,I,P,O,C,E);if(!(P&f)){var q=z&&w.call(S,"__wrapped__"),G=Y&&w.call(_,"__wrapped__");if(q||G){var Q=q?S.value():S,ne=G?_.value():_;return E||(E=new e),C(Q,ne,P,O,E)}}return V?(E||(E=new e),r(S,_,P,O,C,E)):!1}return I_=j,I_}var L_,rR;function kA(){if(rR)return L_;rR=1;var e=kre(),t=Zo();function n(r,i,a,o,u){return r===i?!0:r==null||i==null||!t(r)&&!t(i)?r!==r&&i!==i:e(r,i,a,o,n,u)}return L_=n,L_}var $_,iR;function Cre(){if(iR)return $_;iR=1;var e=jF(),t=kA(),n=1,r=2;function i(a,o,u,f){var h=u.length,g=h,p=!f;if(a==null)return!g;for(a=Object(a);h--;){var y=u[h];if(p&&y[2]?y[1]!==a[y[0]]:!(y[0]in a))return!1}for(;++h<g;){y=u[h];var w=y[0],j=a[w],S=y[1];if(p&&y[2]){if(j===void 0&&!(w in a))return!1}else{var _=new e;if(f)var P=f(j,S,w,a,o,_);if(!(P===void 0?t(S,j,n|r,f,_):P))return!1}}return!0}return $_=i,$_}var B_,aR;function DF(){if(aR)return B_;aR=1;var e=dl();function t(n){return n===n&&!e(n)}return B_=t,B_}var F_,oR;function Ore(){if(oR)return F_;oR=1;var e=DF(),t=Yy();function n(r){for(var i=t(r),a=i.length;a--;){var o=i[a],u=r[o];i[a]=[o,u,e(u)]}return i}return F_=n,F_}var z_,sR;function IF(){if(sR)return z_;sR=1;function e(t,n){return function(r){return r==null?!1:r[t]===n&&(n!==void 0||t in Object(r))}}return z_=e,z_}var q_,lR;function Ere(){if(lR)return q_;lR=1;var e=Cre(),t=Ore(),n=IF();function r(i){var a=t(i);return a.length==1&&a[0][2]?n(a[0][0],a[0][1]):function(o){return o===i||e(o,i,a)}}return q_=r,q_}var V_,cR;function Mre(){if(cR)return V_;cR=1;function e(t,n){return t!=null&&n in Object(t)}return V_=e,V_}var W_,uR;function Rre(){if(uR)return W_;uR=1;var e=tF(),t=NA(),n=Ur(),r=AA(),i=TA(),a=Uy();function o(u,f,h){f=e(f,u);for(var g=-1,p=f.length,y=!1;++g<p;){var w=a(f[g]);if(!(y=u!=null&&h(u,w)))break;u=u[w]}return y||++g!=p?y:(p=u==null?0:u.length,!!p&&i(p)&&r(w,p)&&(n(u)||t(u)))}return W_=o,W_}var U_,dR;function Dre(){if(dR)return U_;dR=1;var e=Mre(),t=Rre();function n(r,i){return r!=null&&t(r,i,e)}return U_=n,U_}var H_,fR;function Ire(){if(fR)return H_;fR=1;var e=kA(),t=nF(),n=Dre(),r=dA(),i=DF(),a=IF(),o=Uy(),u=1,f=2;function h(g,p){return r(g)&&i(p)?a(o(g),p):function(y){var w=t(y,g);return w===void 0&&w===p?n(y,g):e(p,w,u|f)}}return H_=h,H_}var G_,hR;function tf(){if(hR)return G_;hR=1;function e(t){return t}return G_=e,G_}var K_,pR;function Lre(){if(pR)return K_;pR=1;function e(t){return function(n){return n==null?void 0:n[t]}}return K_=e,K_}var Z_,mR;function $re(){if(mR)return Z_;mR=1;var e=vA();function t(n){return function(r){return e(r,n)}}return Z_=t,Z_}var Y_,gR;function Bre(){if(gR)return Y_;gR=1;var e=Lre(),t=$re(),n=dA(),r=Uy();function i(a){return n(a)?e(r(a)):t(a)}return Y_=i,Y_}var X_,vR;function fl(){if(vR)return X_;vR=1;var e=Ere(),t=Ire(),n=tf(),r=Ur(),i=Bre();function a(o){return typeof o=="function"?o:o==null?n:typeof o=="object"?r(o)?t(o[0],o[1]):e(o):i(o)}return X_=a,X_}var Q_,yR;function LF(){if(yR)return Q_;yR=1;function e(t,n,r,i){for(var a=t.length,o=r+(i?1:-1);i?o--:++o<a;)if(n(t[o],o,t))return o;return-1}return Q_=e,Q_}var J_,xR;function Fre(){if(xR)return J_;xR=1;function e(t){return t!==t}return J_=e,J_}var e1,bR;function zre(){if(bR)return e1;bR=1;function e(t,n,r){for(var i=r-1,a=t.length;++i<a;)if(t[i]===n)return i;return-1}return e1=e,e1}var t1,wR;function qre(){if(wR)return t1;wR=1;var e=LF(),t=Fre(),n=zre();function r(i,a,o){return a===a?n(i,a,o):e(i,t,o)}return t1=r,t1}var n1,_R;function Vre(){if(_R)return n1;_R=1;var e=qre();function t(n,r){var i=n==null?0:n.length;return!!i&&e(n,r,0)>-1}return n1=t,n1}var r1,SR;function Wre(){if(SR)return r1;SR=1;function e(t,n,r){for(var i=-1,a=t==null?0:t.length;++i<a;)if(r(n,t[i]))return!0;return!1}return r1=e,r1}var i1,jR;function Ure(){if(jR)return i1;jR=1;function e(){}return i1=e,i1}var a1,PR;function Hre(){if(PR)return a1;PR=1;var e=RF(),t=Ure(),n=PA(),r=1/0,i=e&&1/n(new e([,-0]))[1]==r?function(a){return new e(a)}:t;return a1=i,a1}var o1,NR;function Gre(){if(NR)return o1;NR=1;var e=PF(),t=Vre(),n=Wre(),r=AF(),i=Hre(),a=PA(),o=200;function u(f,h,g){var p=-1,y=t,w=f.length,j=!0,S=[],_=S;if(g)j=!1,y=n;else if(w>=o){var P=h?null:i(f);if(P)return a(P);j=!1,y=r,_=new e}else _=h?[]:S;e:for(;++p<w;){var O=f[p],C=h?h(O):O;if(O=g||O!==0?O:0,j&&C===C){for(var E=_.length;E--;)if(_[E]===C)continue e;h&&_.push(C),S.push(O)}else y(_,C,g)||(_!==S&&_.push(C),S.push(O))}return S}return o1=u,o1}var s1,AR;function Kre(){if(AR)return s1;AR=1;var e=fl(),t=Gre();function n(r,i){return r&&r.length?t(r,e(i,2)):[]}return s1=n,s1}
417var Zre=Kre();const TR=kt(Zre);function $F(e,t,n){return t===!0?TR(e,n):st(t)?TR(e,t):e}function wd(e){"@babel/helpers - typeof";return wd=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},wd(e)}var Yre=["ref"];function kR(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 xo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?kR(Object(n),!0).forEach(function(r){Xy(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Xre(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function CR(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,FF(r.key),r)}}function Qre(e,t,n){return t&&CR(e.prototype,t),n&&CR(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Jre(e,t,n){return t=Ev(t),eie(e,BF()?Reflect.construct(t,n||[],Ev(e).constructor):t.apply(e,n))}function eie(e,t){if(t&&(wd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return tie(e)}function tie(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 Ev(e){return Ev=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ev(e)}function nie(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&&Kj(e,t)}function Kj(e,t){return Kj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Kj(e,t)}function Xy(e,t,n){return t=FF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function FF(e){var t=rie(e,"string");return wd(t)=="symbol"?t:t+""}function rie(e,t){if(wd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(wd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function iie(e,t){if(e==null)return{};var n=aie(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function aie(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 oie(e){return e.value}function sie(e,t){if(K.isValidElement(e))return K.cloneElement(e,t);if(typeof e=="function")return K.createElement(e,t);t.ref;var n=iie(t,Yre);return K.createElement(jA,n)}var OR=1,Js=(function(e){function t(){var n;Xre(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=Jre(this,t,[].concat(i)),Xy(n,"lastBoundingBox",{width:-1,height:-1}),n}return nie(t,e),Qre(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)>OR||Math.abs(i.height-this.lastBoundingBox.height)>OR)&&(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))}}
417,{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?xo({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(r){var i=this.props,a=i.layout,o=i.align,u=i.verticalAlign,f=i.margin,h=i.chartWidth,g=i.chartHeight,p,y;if(!r||(r.left===void 0||r.left===null)&&(r.right===void 0||r.right===null))if(o==="center"&&a==="vertical"){var w=this.getBBoxSnapshot();p={left:((h||0)-w.width)/2}}else p=o==="right"?{right:f&&f.right||0}:{left:f&&f.left||0};if(!r||(r.top===void 0||r.top===null)&&(r.bottom===void 0||r.bottom===null))if(u==="middle"){var j=this.getBBoxSnapshot();y={top:((g||0)-j.height)/2}}else y=u==="bottom"?{bottom:f&&f.bottom||0}:{top:f&&f.top||0};return xo(xo({},p),y)}},{key:"render",value:function(){var r=this,i=this.props,a=i.content,o=i.width,u=i.height,f=i.wrapperStyle,h=i.payloadUniqBy,g=i.payload,p=xo(xo({position:"absolute",width:o||"auto",height:u||"auto"},this.getDefaultPosition(f)),f);return K.createElement("div",{className:"recharts-legend-wrapper",style:p,ref:function(w){r.wrapperNode=w}},sie(a,xo(xo({},this.props),{},{payload:$F(g,h,oie)})))}}],[{key:"getWithHeight",value:function(r,i){var a=xo(xo({},this.defaultProps),r.props),o=a.layout;return o==="vertical"&&Te(r.props.height)?{height:r.props.height}:o==="horizontal"?{width:r.props.width||i}:null}}])})(k.PureComponent);Xy(Js,"displayName","Legend");Xy(Js,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var l1,ER;function lie(){if(ER)return l1;ER=1;var e=Xp(),t=NA(),n=Ur(),r=e?e.isConcatSpreadable:void 0;function i(a){return n(a)||t(a)||!!(r&&a&&a[r])}return l1=i,l1}var c1,MR;function zF(){if(MR)return c1;MR=1;var e=kF(),t=lie();function n(r,i,a,o,u){var f=-1,h=r.length;for(a||(a=t),u||(u=[]);++f<h;){var g=r[f];i>
4170&&a(g)?i>1?n(g,i-1,a,o,u):e(u,g):o||(u[u.length]=g)}return u}return c1=n,c1}var u1,RR;function cie(){if(RR)return u1;RR=1;function e(t){return function(n,r,i){for(var a=-1,o=Object(n),u=i(n),f=u.length;f--;){var h=u[t?f:++a];if(r(o[h],h,o)===!1)break}return n}}return u1=e,u1}var d1,DR;function uie(){if(DR)return d1;DR=1;var e=cie(),t=e();return d1=t,d1}var f1,IR;function qF(){if(IR)return f1;IR=1;var e=uie(),t=Yy();function n(r,i){return r&&e(r,i,t)}return f1=n,f1}var h1,LR;function die(){if(LR)return h1;LR=1;var e=em();function t(n,r){return function(i,a){if(i==null)return i;if(!e(i))return n(i,a);for(var o=i.length,u=r?o:-1,f=Object(i);(r?u--:++u<o)&&a(f[u],u,f)!==!1;);return i}}return h1=t,h1}var p1,$R;function CA(){if($R)return p1;$R=1;var e=qF(),t=die(),n=t(e);return p1=n,p1}var m1,BR;function VF(){if(BR)return m1;BR=1;var e=CA(),t=em();function n(r,i){var a=-1,o=t(r)?Array(r.length):[];return e(r,function(u,f,h){o[++a]=i(u,f,h)}),o}return m1=n,m1}var g1,FR;function fie(){if(FR)return g1;FR=1;function e(t,n){var r=t.length;for(t.sort(n);r--;)t[r]=t[r].value;return t}return g1=e,g1}var v1,zR;function hie(){if(zR)return v1;zR=1;var e=Jd();function t(n,r){if(n!==r){var i=n!==void 0,a=n===null,o=n===n,u=e(n),f=r!==void 0,h=r===null,g=r===r,p=e(r);if(!h&&!p&&!u&&n>r||u&&f&&g&&!h&&!p||a&&f&&g||!i&&g||!o)return 1;if(!a&&!u&&!p&&n<r||p&&i&&o&&!a&&!u||h&&i&&o||!f&&o||!g)return-1}return 0}return v1=t,v1}var y1,qR;function pie(){if(qR)return y1;qR=1;var e=hie();function t(n,r,i){for(var a=-1,o=n.criteria,u=r.criteria,f=o.length,h=i.length;++a<f;){var g=e(o[a],u[a]);if(g){if(a>=h)return g;var p=i[a];return g*(p=="desc"?-1:1)}}return n.index-r.index}return y1=t,y1}var x1,VR;function mie(){if(VR)return x1;VR=1;var e=gA(),t=vA(),n=fl(),r=VF(),i=fie(),a=OF(),o=pie(),u=tf(),f=Ur();function h(g,p,y){p.length?p=e(p,function(S){return f(S)?function(_){return t(_,S.length===1?S[0]:S)}:S}):p=[u];var w=-1;p=e(p,a(n));var j=r(g,function(S,_,P){var O=e(p,function(C){return C(S)});return{criteria:O,index:++w,value:S}});return i(j,function(S,_){return o(S,_,y)})}return x1=h,x1}var b1,WR;function gie(){if(WR)return b1;WR=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 b1=e,b1}var w1,UR;function vie(){if(UR)return w1;UR=1;var e=gie(),t=Math.max;function n(r,i,a){return i=t(i===void 0?r.length-1:i,0),function(){for(var o=arguments,u=-1,f=t(o.length-i,0),h=Array(f);++u<f;)h[u]=o[i+u];u=-1;for(var g=Array(i+1);++u<i;)g[u]=o[u];return g[i]=a(h),e(r,this,g)}}return w1=n,w1}var _1,HR;function yie(){if(HR)return _1;HR=1;function e(t){return function(){return t}}return _1=e,_1}var S1,GR;function WF(){if(GR)return S1;GR=1;var e=Dc(),t=(function(){try{var n=e(Object,"defineProperty");return n({},"",{}),n}catch{}})();return S1=t,S1}var j1,KR;function xie(){if(KR)return j1;KR=1;var e=yie(),t=WF(),n=tf(),r=t?function(i,a){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(a),writable:!0})}:n;return j1=r,j1}var P1,ZR;function bie(){if(ZR)return P1;ZR=1;var e=800,t=16,n=Date.now;function r(i){var a=0,o=0;return function(){var u=n(),f=t-(u-o);if(o=u,f>0){if(++a>=e)return arguments[0]}else a=0;return i.apply(void 0,arguments)}}return P1=r,P1}var N1,YR;function wie(){if(YR)return N1;YR=1;var e=xie(),t=bie(),n=t(e);return N1=n,N1}var A1,XR;function _ie(){if(XR)return A1;XR=1;var e=tf(),t=vie(),n=wie();function r(i,a){return n(t(i,a,e),i+"")}return A1=r,A1}var T1,QR;function Qy(){if(QR)return T1;QR=1;var e=hA(),t=em(),n=AA(),r=dl();function i(a,o,u){if(!r(u))return!1;var f=typeof o;return(f=="number"?t(u)&&n(o,u.length):f=="string"&&o in u)?e(u[o],a):!1}return T1=i,T1}var k1,JR;function Sie(){if(JR)return k1;JR=1;var e=zF(),t=mie(),n=_ie(),r=Qy(),i=n(function(a,o){if(a==null)return[];var u=o.length;return u>1&&r(a,o[0],o[1])?o=[]:u>2&&r(o[0],o[1],o[2])&&(o=[o[0]]),t(a,e(o,1),[])});return k1=i,k1}var jie=Sie();const OA=kt(jie);function Yh(e){"@babel/helpers - typeof";return Yh=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},Yh(e)}function Zj(){return Zj=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},Zj.apply(this,arguments)}function Pie(e,t){return kie(e)||Tie(e,t)||Aie(e,t)||Nie()}
417function Nie(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
418In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Aie(e,t){if(e){if(typeof e=="string")return e4(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 e4(e,t)}}function e4(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 Tie(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,u=[],f=!0,h=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(f=(r=a.call(n)).done)&&(u.push(r.value),u.length!==t);f=!0);}catch(g){h=!0,i=g}finally{try{if(!f&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(h)throw i}}return u}}function kie(e){if(Array.isArray(e))return e}function t4(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 C1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?t4(Object(n),!0).forEach(function(r){Cie(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):t4(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Cie(e,t,n){return t=Oie(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Oie(e){var t=Eie(e,"string");return Yh(t)=="symbol"?t:t+""}function Eie(e,t){if(Yh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Yh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Mie(e){return Array.isArray(e)&&$n(e[0])&&$n(e[1])?e.join(" ~ "):e}var Rie=function(t){var n=t.separator,r=n===void 0?" : ":n,i=t.contentStyle,a=i===void 0?{}:i,o=t.itemStyle,u=o===void 0?{}:o,f=t.labelStyle,h=f===void 0?{}:f,g=t.payload,p=t.formatter,y=t.itemSorter,w=t.wrapperClassName,j=t.labelClassName,S=t.label,_=t.labelFormatter,P=t.accessibilityLayer,O=P===void 0?!1:P,C=function(){if(g&&g.length){var q={padding:0,margin:0},G=(y?OA(g,y):g).map(function(Q,ne){if(Q.type==="none")return null;var ie=C1({display:"block",paddingTop:4,paddingBottom:4,color:Q.color||"#000"},u),re=Q.formatter||p||Mie,W=Q.value,oe=Q.name,U=W,H=oe;if(re&&U!=null&&H!=null){var ee=re(W,oe,Q,ne,g);if(Array.isArray(ee)){var pe=Pie(ee,2);U=pe[0],H=pe[1]}else U=ee}return K.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(ne),style:ie},$n(H)?K.createElement("span",{className:"recharts-tooltip-item-name"},H):null,$n(H)?K.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,K.createElement("span",{className:"recharts-tooltip-item-value"},U),K.createElement("span",{className:"recharts-tooltip-item-unit"},Q.unit||""))});return K.createElement("ul",{className:"recharts-tooltip-item-list",style:q},G)}return null},E=C1({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),T=C1({margin:0},h),M=!ut(S),I=M?S:"",$=yt("recharts-default-tooltip",w),z=yt("recharts-tooltip-label",j);M&&_&&g!==void 0&&g!==null&&(I=_(S,g));var Y=O?{role:"status","aria-live":"assertive"}:{};return K.createElement("div",Zj({className:$,style:E},Y),K.createElement("p",{className:z,style:T},K.isValidElement(I)?I:"".concat(I)),C())};function Xh(e){"@babel/helpers - typeof";return Xh=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},Xh(e)}function Fg(e,t,n){return t=Die(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Die(e){var t=Iie(e,"string");return Xh(t)=="symbol"?t:t+""}function Iie(e,t){if(Xh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Xh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var oh="recharts-tooltip-wrapper",Lie={visibility:"hidden"};function $ie(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return yt(oh,Fg(Fg(Fg(Fg({},"".concat(oh,"-right"),Te(n)&&t&&Te(t.x)&&n>=t.x),"".concat(oh,"-left"),Te(n)&&t&&Te(t.x)&&n<t.x),"".concat(oh,"-bottom"),Te(r)&&t&&Te(t.y)&&r>=t.y),"".concat(oh,"-top"),Te(r)&&t&&Te(t.y)&&r<t.y))}function n4(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,i=e.offsetTopLeft,a=e.position,o=e.reverseDirection,u=e.tooltipDimension,f=e.viewBox,h=e.viewBoxDimension;if(a&&Te(a[r]))return a[r];var g=n[r]-u-i,p=n[r]+i;if(t[r])return o[r]?g:p;if(o[r]){var y=g,w=f[r];return y<w?Math.max(p,f[r]):Math.max(g,f[r])}var j=p+u,S=f[r]+h;return j>S?Math.max(g,f[r]):Math.max(p,f[r])}function Bie(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 Fie(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,i=e.position,a=e.reverseDirection,o=e.tooltipBox,u=e.useTranslate3d,f=e.viewBox,h,g,p;return o.height>0&&o.width>0&&n?(g=n4({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:f,viewBoxDimension:f.width}),p=n4({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:f,viewBoxDimension:f.height}),h=Bie({translateX:g,translateY:p,useTranslate3d:u}
418)):h=Lie,{cssProperties:h,cssClasses:$ie({translateX:g,translateY:p,coordinate:n})}}function _d(e){"@babel/helpers - typeof";return _d=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},_d(e)}function r4(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 i4(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?r4(Object(n),!0).forEach(function(r){Xj(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r4(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function zie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qie(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 Vie(e,t,n){return t&&qie(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Wie(e,t,n){return t=Mv(t),Uie(e,UF()?Reflect.construct(t,n||[],Mv(e).constructor):t.apply(e,n))}function Uie(e,t){if(t&&(_d(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Hie(e)}function Hie(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function UF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(UF=function(){return!!e})()}function Mv(e){return Mv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Mv(e)}function Gie(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&&Yj(e,t)}function Yj(e,t){return Yj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Yj(e,t)}function Xj(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=Kie(e,"string");return _d(t)=="symbol"?t:t+""}function Kie(e,t){if(_d(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(_d(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var a4=1,Zie=(function(e){function t(){var n;zie(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=Wie(this,t,[].concat(i)),Xj(n,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),Xj(n,"handleKeyDown",function(o){if(o.key==="Escape"){var u,f,h,g;n.setState({dismissed:!0,dismissedAtCoordinate:{x:(u=(f=n.props.coordinate)===null||f===void 0?void 0:f.x)!==null&&u!==void 0?u:0,y:(h=(g=n.props.coordinate)===null||g===void 0?void 0:g.y)!==null&&h!==void 0?h:0}})}}),n}return Gie(t,e),Vie(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-this.state.lastBoundingBox.width)>a4||Math.abs(r.height-this.state.lastBoundingBox.height)>a4)&&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,a=i.active,o=i.allowEscapeViewBox,u=i.animationDuration,f=i.animationEasing,h=i.children,g=i.coordinate,p=i.hasPayload,y=i.isAnimationActive,w=i.offset,j=i.position,S=i.reverseDirection,_=i.useTranslate3d,P=i.viewBox,O=i.wrapperStyle,C=Fie({allowEscapeViewBox:o,coordinate:g,offsetTopLeft:w,position:j,reverseDirection:S,tooltipBox:this.state.lastBoundingBox,useTranslate3d:_,viewBox:P}
418),E=C.cssClasses,T=C.cssProperties,M=i4(i4({transition:y&&a?"transform ".concat(u,"ms ").concat(f):void 0},T),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&p?"visible":"hidden",position:"absolute",top:0,left:0},O);return K.createElement("div",{tabIndex:-1,className:E,style:M,ref:function($){r.wrapperNode=$}},h)}}])})(k.PureComponent),Yie=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},nf={isSsr:Yie()};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 o4(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 s4(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?o4(Object(n),!0).forEach(function(r){EA(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o4(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Xie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qie(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 Jie(e,t,n){return t&&Qie(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function eae(e,t,n){return t=Rv(t),tae(e,GF()?Reflect.construct(t,n||[],Rv(e).constructor):t.apply(e,n))}function tae(e,t){if(t&&(Sd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return nae(e)}function nae(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 Rv(e){return Rv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Rv(e)}function rae(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&&Qj(e,t)}function Qj(e,t){return Qj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Qj(e,t)}function EA(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=iae(e,"string");return Sd(t)=="symbol"?t:t+""}function iae(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 String(e)}function aae(e){return e.dataKey}function oae(e,t){return K.isValidElement(e)?K.cloneElement(e,t):typeof e=="function"?K.createElement(e,t):K.createElement(Rie,t)}var oa=(function(e){function t(){return Xie(this,t),eae(this,t,arguments)}return rae(t,e),Jie(t,[{key:"render",value:function(){var r=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,u=i.animationDuration,f=i.animationEasing,h=i.content,g=i.coordinate,p=i.filterNull,y=i.isAnimationActive,w=i.offset,j=i.payload,S=i.payloadUniqBy,_=i.position,P=i.reverseDirection,O=i.useTranslate3d,C=i.viewBox,E=i.wrapperStyle,T=j??[];p&&T.length&&(T=$F(j.filter(function(I){return I.value!=null&&(I.hide!==!0||r.props.includeHidden)}),S,aae));var M=T.length>0;return K.createElement(Zie,{allowEscapeViewBox:o,animationDuration:u,animationEasing:f,isAnimationActive:y,active:a,coordinate:g,hasPayload:M,offset:w,position:_,reverseDirection:P,useTranslate3d:O,viewBox:C,wrapperStyle:E},oae(h,s4(s4({},this.props),{},{payload:T})))}}])})(k.PureComponent);EA(oa,"displayName","Tooltip");EA(oa,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!nf.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 O1,l4;function sae(){if(l4)return O1;l4=1;var e=Ka(),t=function(){return e.Date.now()};return O1=t,O1}var E1,c4;function lae(){if(c4)return E1;c4=1;var e=/\s/;function t(n){for(var r=n.length;r--&&e.test(n.charAt(r)););return r}return E1=t,E1}var M1,u4;function cae(){if(u4)return M1;u4=1;var e=lae(),t=/^\s+/;function n(r){return r&&r.slice(0,e(r)+1).replace(t,"")}return M1=n,M1}var R1,d4;function ZF(){if(d4)return R1;d4=1;var e=cae(),t=dl(),n=Jd(),r=NaN,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,u=parseInt;function f(h){if(typeof h=="number")return h;if(n(h))return r;if(t(h)){var g=typeof h.valueOf=="function"?h.valueOf():h;h=t(g)?g+"":g}if(typeof h!="string")return h===0?h:+h;h=e(h);var p=a.test(h);return p||o.test(h)?u(h.slice(2),p?2:8):i.test(h)?r:+h}return R1=f,R1}var D1,f4;function uae(){if(f4)return D1;f4=1;var e=dl(),t=sae(),n=ZF(),r="Expected a function",i=Math.max,a=Math.min;function o(u,f,h){var g,p,y,w,j,S,_=0,P=!1,O=!1,C=!0;if(typeof u!="function")throw new TypeError(r);f=n(f)||0,e(h)&&(P=!!h.leading,O="maxWait"in h,y=O?i(n(h.maxWait)||0,f):y,C="trailing"in h?!!h.trailing:C);function E(G){var Q=g,ne=p;return g=p=void 0,_=G,w=u.apply(ne,Q),w}function T(G){return _=G,j=setTimeout($,f),P?E(G):w}function M(G){var Q=G-S,ne=G-_,ie=f-Q;return O?a(ie,y-ne):ie}function I(G){var Q=G-S,ne=G-_;return S===void 0||Q>=f||Q<0||O&&ne>=y}function $(){var G=t();if(I(G))return z(G);j=setTimeout($,M(G))}function z(G){return j=void 0,C&&g?E(G):(g=p=void 0,w)}function Y(){j!==void 0&&clearTimeout(j),_=0,g=S=p=j=void 0}function V(){return j===void 0?w:z(t())}function q(){var G=t(),Q=I(G);if(g=arguments,p=this,S=G,Q){if(j===void 0)return T(S);if(O)return clearTimeout(j),j=setTimeout($,f),E(S)}return j===void 0&&(j=setTimeout($,f)),w}return q.cancel=Y,q.flush=V,q}return D1=o,D1}var I1,h4;
418function dae(){if(h4)return I1;h4=1;var e=uae(),t=dl(),n="Expected a function";function r(i,a,o){var u=!0,f=!0;if(typeof i!="function")throw new TypeError(n);return t(o)&&(u="leading"in o?!!o.leading:u,f="trailing"in o?!!o.trailing:f),e(i,a,{leading:u,maxWait:a,trailing:f})}return I1=r,I1}var fae=dae();const YF=kt(fae);function Qh(e){"@babel/helpers - typeof";return Qh=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},Qh(e)}function p4(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 zg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?p4(Object(n),!0).forEach(function(r){hae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p4(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function hae(e,t,n){return t=pae(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pae(e){var t=mae(e,"string");return Qh(t)=="symbol"?t:t+""}function mae(e,t){if(Qh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Qh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function gae(e,t){return bae(e)||xae(e,t)||yae(e,t)||vae()}function vae(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
419In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yae(e,t){if(e){if(typeof e=="string")return m4(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 m4(e,t)}}function m4(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 xae(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,u=[],f=!0,h=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(f=(r=a.call(n)).done)&&(u.push(r.value),u.length!==t);f=!0);}catch(g){h=!0,i=g}finally{try{if(!f&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(h)throw i}}return u}}function bae(e){if(Array.isArray(e))return e}var g4=k.forwardRef(function(e,t){var n=e.aspect,r=e.initialDimension,i=r===void 0?{width:-1,height:-1}:r,a=e.width,o=a===void 0?"100%":a,u=e.height,f=u===void 0?"100%":u,h=e.minWidth,g=h===void 0?0:h,p=e.minHeight,y=e.maxHeight,w=e.children,j=e.debounce,S=j===void 0?0:j,_=e.id,P=e.className,O=e.onResize,C=e.style,E=C===void 0?{}:C,T=k.useRef(null),M=k.useRef();M.current=O,k.useImperativeHandle(t,function(){return Object.defineProperty(T.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),T.current},configurable:!0})});var I=k.useState({containerWidth:i.width,containerHeight:i.height}),$=gae(I,2),z=$[0],Y=$[1],V=k.useCallback(function(G,Q){Y(function(ne){var ie=Math.round(G),re=Math.round(Q);return ne.containerWidth===ie&&ne.containerHeight===re?ne:{containerWidth:ie,containerHeight:re}})},[]);k.useEffect(function(){var G=function(oe){var U,H=oe[0].contentRect,ee=H.width,pe=H.height;V(ee,pe),(U=M.current)===null||U===void 0||U.call(M,ee,pe)};S>0&&(G=YF(G,S,{trailing:!0,leading:!1}));var Q=new ResizeObserver(G),ne=T.current.getBoundingClientRect(),ie=ne.width,re=ne.height;return V(ie,re),Q.observe(T.current),function(){Q.disconnect()}},[V,S]);var q=k.useMemo(function(){var G=z.containerWidth,Q=z.containerHeight;if(G<0||Q<0)return null;Mo(ac(o)||ac(f),`The width(%s) and height(%s) are both fixed numbers,
420       maybe you don't need to use a ResponsiveContainer.`,o,f),Mo(!n||n>0,"The aspect(%s) must be greater than zero.",n);var ne=ac(o)?G:o,ie=ac(f)?Q:f;n&&n>0&&(ne?ie=ne/n:ie&&(ne=ie*n),y&&ie>y&&(ie=y)),Mo(ne>0||ie>0,`The width(%s) and height(%s) of chart should be greater than 0,
421       please check the style of container, or the props width(%s) and height(%s),
422       or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
423       height and width.`,ne,ie,o,f,g,p,n);var re=!Array.isArray(w)&&Eo(w.type).endsWith("Chart");return K.Children.map(w,function(W){return K.isValidElement(W)?k.cloneElement(W,zg({width:ne,height:ie},re?{style:zg({height:"100%",width:"100%",maxHeight:ie,maxWidth:ne},W.props.style)}:{})):W})},[n,w,f,y,p,g,z,o]);return K.createElement("div",{id:_?"".concat(_):void 0,className:yt("recharts-responsive-container",P),style:zg(zg({},E),{},{width:o,height:f,minWidth:g,minHeight:p,maxHeight:y}),ref:T},q)}),XF=function(t){return null};XF.displayName="Cell";function Jh(e){"@babel/helpers - typeof";return Jh=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},Jh(e)}function v4(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 Jj(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};
423t%2?v4(Object(n),!0).forEach(function(r){wae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v4(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function wae(e,t,n){return t=_ae(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _ae(e){var t=Sae(e,"string");return Jh(t)=="symbol"?t:t+""}function Sae(e,t){if(Jh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Jh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Mu={widthCache:{},cacheCount:0},jae=2e3,Pae={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},y4="recharts_measurement_span";function Nae(e){var t=Jj({},e);return Object.keys(t).forEach(function(n){t[n]||delete t[n]}),t}var kh=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||nf.isSsr)return{width:0,height:0};var r=Nae(n),i=JSON.stringify({text:t,copyStyle:r});if(Mu.widthCache[i])return Mu.widthCache[i];try{var a=document.getElementById(y4);a||(a=document.createElement("span"),a.setAttribute("id",y4),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=Jj(Jj({},Pae),r);Object.assign(a.style,o),a.textContent="".concat(t);var u=a.getBoundingClientRect(),f={width:u.width,height:u.height};return Mu.widthCache[i]=f,++Mu.cacheCount>jae&&(Mu.cacheCount=0,Mu.widthCache={}),f}catch{return{width:0,height:0}}},Aae=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function ep(e){"@babel/helpers - typeof";return ep=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},ep(e)}function Dv(e,t){return Oae(e)||Cae(e,t)||kae(e,t)||Tae()}function Tae(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
424In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kae(e,t){if(e){if(typeof e=="string")return x4(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 x4(e,t)}}function x4(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 Cae(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,u=[],f=!0,h=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;f=!1}else for(;!(f=(r=a.call(n)).done)&&(u.push(r.value),u.length!==t);f=!0);}catch(g){h=!0,i=g}finally{try{if(!f&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(h)throw i}}return u}}function Oae(e){if(Array.isArray(e))return e}function Eae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b4(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,Rae(r.key),r)}}function Mae(e,t,n){return t&&b4(e.prototype,t),n&&b4(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Rae(e){var t=Dae(e,"string");return ep(t)=="symbol"?t:t+""}function Dae(e,t){if(ep(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ep(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var w4=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,_4=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Iae=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,Lae=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,QF={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},$ae=Object.keys(QF),Wu="NaN";function Bae(e,t){return e*QF[t]}var qg=(function(){function e(t,n){Eae(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=""),n!==""&&!Iae.test(n)&&(this.num=NaN,this.unit=""),$ae.includes(n)&&(this.num=Bae(t,n),this.unit="px")}return Mae(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=Lae.exec(n))!==null&&r!==void 0?r:[],a=Dv(i,3),o=a[1],u=a[2];return new e(parseFloat(o),u??"")}}])})();function JF(e){if(e.includes(Wu))return Wu;for(var t=e;t.includes("*")||t.includes("/");){var n,r=(n=w4.exec(t))!==null&&n!==void 0?n:[],i=Dv(r,4),a=i[1],o=i[2],u=i[3],f=qg.parse(a??""),h=qg.parse(u??""),g=o==="*"?f.multiply(h):f.divide(h);if(g.isNaN())return Wu;t=t.replace(w4,g.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var p,y=(p=_4.exec(t))!==null&&p!==void 0?p:[],w=Dv(y,4),j=w[1],S=w[2],_=w[3],P=qg.parse(j??""),O=qg.parse(_??""),C=S==="+"?P.add(O):P.subtract(O);if(C.isNaN())return Wu;t=t.replace(_4,C.toString())}return t}var S4=/\(([^()]*)\)/;function Fae(e){for(var t=e;t.includes("(");){var n=S4.exec(t),r=Dv(n,2),i=r[1];t=t.replace(S4,JF(i))}return t}function zae(e){var t=e.replace(/\s+/g,"");return t=Fae(t),t=JF(t),t}function qae(e){try{return zae(e)}catch{return Wu}}function L1(e){var t=qae(e.slice(5,-1));return t===Wu?"":t}var Vae=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],Wae=["dx","dy","angle","className","breakAll"];function eP(){return eP=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},eP.apply(this,arguments)}function j4(e,t){if(e==null)return{};var n=Uae(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Uae(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 P4(e,t){return Zae(e)||Kae(e,t)||Gae(e,t)||Hae()}
424function Hae(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
425In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Gae(e,t){if(e){if(typeof e=="string")return N4(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 N4(e,t)}}function N4(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 Kae(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,u=[],f=!0,h=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;f=!1}else for(;!(f=(r=a.call(n)).done)&&(u.push(r.value),u.length!==t);f=!0);}catch(g){h=!0,i=g}finally{try{if(!f&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(h)throw i}}return u}}function Zae(e){if(Array.isArray(e))return e}var e6=/[ \f\n\r\t\v\u2028\u2029]+/,t6=function(t){var n=t.children,r=t.breakAll,i=t.style;try{var a=[];ut(n)||(r?a=n.toString().split(""):a=n.toString().split(e6));var o=a.map(function(f){return{word:f,width:kh(f,i).width}}),u=r?0:kh(" ",i).width;return{wordsWithComputedWidth:o,spaceWidth:u}}catch{return null}},Yae=function(t,n,r,i,a){var o=t.maxLines,u=t.children,f=t.style,h=t.breakAll,g=Te(o),p=u,y=function(){var ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return ne.reduce(function(ie,re){var W=re.word,oe=re.width,U=ie[ie.length-1];if(U&&(i==null||a||U.width+oe+r<Number(i)))U.words.push(W),U.width+=oe+r;else{var H={words:[W],width:oe};ie.push(H)}return ie},[])},w=y(n),j=function(ne){return ne.reduce(function(ie,re){return ie.width>re.width?ie:re})};if(!g)return w;for(var S="…",_=function(ne){var ie=p.slice(0,ne),re=t6({breakAll:h,style:f,children:ie+S}).wordsWithComputedWidth,W=y(re),oe=W.length>o||j(W).width>Number(i);return[oe,W]},P=0,O=p.length-1,C=0,E;P<=O&&C<=p.length-1;){var T=Math.floor((P+O)/2),M=T-1,I=_(M),$=P4(I,2),z=$[0],Y=$[1],V=_(T),q=P4(V,1),G=q[0];if(!z&&!G&&(P=T+1),z&&G&&(O=T-1),!z&&G){E=Y;break}C++}return E||w},A4=function(t){var n=ut(t)?[]:t.toString().split(e6);return[{words:n}]},Xae=function(t){var n=t.width,r=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,u=t.maxLines;if((n||r)&&!nf.isSsr){var f,h,g=t6({breakAll:o,children:i,style:a});if(g){var p=g.wordsWithComputedWidth,y=g.spaceWidth;f=p,h=y}else return A4(i);return Yae({breakAll:o,children:i,maxLines:u,style:a},f,h,n,r)}return A4(i)},T4="#808080",Iv=function(t){var n=t.x,r=n===void 0?0:n,i=t.y,a=i===void 0?0:i,o=t.lineHeight,u=o===void 0?"1em":o,f=t.capHeight,h=f===void 0?"0.71em":f,g=t.scaleToFit,p=g===void 0?!1:g,y=t.textAnchor,w=y===void 0?"start":y,j=t.verticalAnchor,S=j===void 0?"end":j,_=t.fill,P=_===void 0?T4:_,O=j4(t,Vae),C=k.useMemo(function(){return Xae({breakAll:O.breakAll,children:O.children,maxLines:O.maxLines,scaleToFit:p,style:O.style,width:O.width})},[O.breakAll,O.children,O.maxLines,p,O.style,O.width]),E=O.dx,T=O.dy,M=O.angle,I=O.className,$=O.breakAll,z=j4(O,Wae);if(!$n(r)||!$n(a))return null;var Y=r+(Te(E)?E:0),V=a+(Te(T)?T:0),q;switch(S){case"start":q=L1("calc(".concat(h,")"));break;case"middle":q=L1("calc(".concat((C.length-1)/2," * -").concat(u," + (").concat(h," / 2))"));break;default:q=L1("calc(".concat(C.length-1," * -").concat(u,")"));break}var G=[];if(p){var Q=C[0].width,ne=O.width;G.push("scale(".concat((Te(ne)?ne/Q:1)/Q,")"))}return M&&G.push("rotate(".concat(M,", ").concat(Y,", ").concat(V,")")),G.length&&(z.transform=G.join(" ")),K.createElement("text",eP({},vt(z,!0),{x:Y,y:V,className:yt("recharts-text",I),textAnchor:w,fill:P.includes("url")?T4:P}),C.map(function(ie,re){var W=ie.words.join($?"":" ");return K.createElement("tspan",{x:Y,dy:re===0?q:u,key:"".concat(W,"-").concat(re)},W)}))};function el(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Qae(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function MA(e){let t,n,r;e.length!==2?(t=el,n=(u,f)=>el(e(u),f),r=(u,f)=>e(u)-f):(t=e===el||e===Qae?e:Jae,n=e,r=e);function i(u,f,h=0,g=u.length){if(h<g){if(t(f,f)!==0)return g;do{const p=h+g>>>1;n(u[p],f)<0?h=p+1:g=p}while(h<g)}return h}function a(u,f,h=0,g=u.length){if(h<g){if(t(f,f)!==0)return g;do{const p=h+g>>>1;n(u[p],f)<=0?h=p+1:g=p}while(h<g)}return h}function o(u,f,h=0,g=u.length){const p=i(u,f,h,g-1);return p>h&&r(u[p-1],f)>-r(u[p],f)?p-1:p}return{left:i,center:o,right:a}}function Jae(){return 0}function n6(e){return e===null?NaN:+e}function*eoe(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const toe=MA(el),tm=toe.right;MA(n6).center;class k4 extends Map{constructor(t,n=ioe){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(C4(this,t))}has(t){return super.has(C4(this,t))}set(t,n){return super.set(noe(this,t),n)}delete(t){return super.delete(roe(this,t))}}function C4({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function noe({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function roe({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function ioe(e){return e!==null&&typeof e=="object"?e.valueOf():e}function aoe(e=el){if(e===el)return r6;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 r6(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const ooe=Math.sqrt(50),soe=Math.sqrt(10),loe=Math.sqrt(2);function Lv(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/Math.pow(10,i),o=a>=ooe?10:a>=soe?5:a>=loe?2:1;let u,f,h;return i<0?(h=Math.pow(10,-i)/o,u=Math.round(e*h),f=Math.round(t*h),u/h<e&&++u,f/h>t&&--f,h=-h):(h=Math.pow(10,i)*o,u=Math.round(e/h),f=Math.round(t/h),u*h<e&&++u,f*h>t&&--f),f<u&&.5<=n&&n<2?Lv(e,t,n*2):[u,f,h]}function tP(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[i,a,o]=r?Lv(t,e,n):Lv(e,t,n);if(!(a>=i))return[];const u=a-i+1,f=new Array(u);if(r)if(o<0)for(let h=0;h<u;++h)f[h]=(a-h)/-o;else for(let h=0;h<u;++h)f[h]=(a-h)*o;else if(o<0)for(let h=0;h<u;++h)f[h]=(i+h)/-o;else for(let h=0;h<u;++h)f[h]=(i+h)*o;return f}function nP(e,t,n){return t=+t,e=+e,n=+n,Lv(e,t,n)[2]}function rP(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?nP(t,e,n):nP(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function O4(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function E4(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}
425function i6(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?r6:aoe(i);r>n;){if(r-n>600){const f=r-n+1,h=t-n+1,g=Math.log(f),p=.5*Math.exp(2*g/3),y=.5*Math.sqrt(g*p*(f-p)/f)*(h-f/2<0?-1:1),w=Math.max(n,Math.floor(t-h*p/f+y)),j=Math.min(r,Math.floor(t+(f-h)*p/f+y));i6(e,t,w,j,i)}const a=e[t];let o=n,u=r;for(sh(e,n,t),i(e[r],a)>0&&sh(e,n,r);o<u;){for(sh(e,o,u),++o,--u;i(e[o],a)<0;)++o;for(;i(e[u],a)>0;)--u}i(e[n],a)===0?sh(e,n,u):(++u,sh(e,u,r)),u<=t&&(n=u+1),t<=u&&(r=u-1)}return e}function sh(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function coe(e,t,n){if(e=Float64Array.from(eoe(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return E4(e);if(t>=1)return O4(e);var r,i=(r-1)*t,a=Math.floor(i),o=O4(i6(e,a).subarray(0,a+1)),u=E4(e.subarray(a+1));return o+(u-o)*(i-a)}}function uoe(e,t,n=n6){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,a=Math.floor(i),o=+n(e[a],a,e),u=+n(e[a+1],a+1,e);return o+(u-o)*(i-a)}}function doe(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,a=new Array(i);++r<i;)a[r]=e+r*n;return a}function qi(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Yo(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 iP=Symbol("implicit");function RA(){var e=new k4,t=[],n=[],r=iP;function i(a){let o=e.get(a);if(o===void 0){if(r!==iP)return r;e.set(a,o=t.push(a)-1)}return n[o%n.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new k4;for(const o of a)e.has(o)||e.set(o,t.push(o)-1);return i},i.range=function(a){return arguments.length?(n=Array.from(a),i):n.slice()},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return RA(t,n).unknown(r)},qi.apply(i,arguments),i}function tp(){var e=RA().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,a,o,u=!1,f=0,h=0,g=.5;delete e.unknown;function p(){var y=t().length,w=i<r,j=w?i:r,S=w?r:i;a=(S-j)/Math.max(1,y-f+h*2),u&&(a=Math.floor(a)),j+=(S-j-a*(y-f))*g,o=a*(1-f),u&&(j=Math.round(j),o=Math.round(o));var _=doe(y).map(function(P){return j+a*P});return n(w?_.reverse():_)}return e.domain=function(y){return arguments.length?(t(y),p()):t()},e.range=function(y){return arguments.length?([r,i]=y,r=+r,i=+i,p()):[r,i]},e.rangeRound=function(y){return[r,i]=y,r=+r,i=+i,u=!0,p()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(y){return arguments.length?(u=!!y,p()):u},e.padding=function(y){return arguments.length?(f=Math.min(1,h=+y),p()):f},e.paddingInner=function(y){return arguments.length?(f=Math.min(1,y),p()):f},e.paddingOuter=function(y){return arguments.length?(h=+y,p()):h},e.align=function(y){return arguments.length?(g=Math.max(0,Math.min(1,y)),p()):g},e.copy=function(){return tp(t(),[r,i]).round(u).paddingInner(f).paddingOuter(h).align(g)},qi.apply(p(),arguments)}function a6(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return a6(t())},e}function Ch(){return a6(tp.apply(null,arguments).paddingInner(1))}function DA(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function o6(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function nm(){}var np=.7,$v=1/np,Yu="\\s*([+-]?\\d+)\\s*",rp="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",qa="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",foe=
vendor: 6,793 bytes, line 425
425/^#([0-9a-f]{3,8})$/,hoe=new RegExp(`^rgb\\(${Yu},${Yu},${Yu}\\)$`),poe=new RegExp(`^rgb\\(${qa},${qa},${qa}\\)$`),moe=new RegExp(`^rgba\\(${Yu},${Yu},${Yu},${rp}\\)$`),goe=new RegExp(`^rgba\\(${qa},${qa},${qa},${rp}\\)$`),voe=new RegExp(`^hsl\\(${rp},${qa},${qa}\\)$`),yoe=new RegExp(`^hsla\\(${rp},${qa},${qa},${rp}\\)$`),M4={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};DA(nm,ip,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:R4,formatHex:R4,formatHex8:xoe,formatHsl:boe,formatRgb:D4,toString:D4});function R4(){return this.rgb().formatHex()}function xoe(){return this.rgb().formatHex8()}function boe(){return s6(this).formatHsl()}function D4(){return this.rgb().formatRgb()}function ip(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=foe.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?I4(t):n===3?new zr(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Vg(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Vg(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=hoe.exec(e))?new zr(t[1],t[2],t[3],1):(t=poe.exec(e))?new zr(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=moe.exec(e))?Vg(t[1],t[2],t[3],t[4]):(t=goe.exec(e))?Vg(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=voe.exec(e))?B4(t[1],t[2]/100,t[3]/100,1):(t=yoe.exec(e))?B4(t[1],t[2]/100,t[3]/100,t[4]):M4.hasOwnProperty(e)?I4(M4[e]):e==="transparent"?new zr(NaN,NaN,NaN,0):null}function I4(e){return new zr(e>>16&255,e>>8&255,e&255,1)}function Vg(e,t,n,r){return r<=0&&(e=t=n=NaN),new zr(e,t,n,r)}function woe(e){return e instanceof nm||(e=ip(e)),e?(e=e.rgb(),new zr(e.r,e.g,e.b,e.opacity)):new zr}function aP(e,t,n,r){return arguments.length===1?woe(e):new zr(e,t,n,r??1)}function zr(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}DA(zr,aP,o6(nm,{brighter(e){return e=e==null?$v:Math.pow($v,e),new zr(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?np:Math.pow(np,e),new zr(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new zr(xc(this.r),xc(this.g),xc(this.b),Bv(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:L4,formatHex:L4,formatHex8:_oe,formatRgb:$4,toString:$4}));function L4(){return`#${oc(this.r)}${oc(this.g)}${oc(this.b)}`}function _oe(){return`#${oc(this.r)}${oc(this.g)}${oc(this.b)}${oc((isNaN(this.opacity)?1:this.opacity)*255)}`}function $4(){const e=Bv(this.opacity);return`${e===1?"rgb(":"rgba("}${xc(this.r)}, ${xc(this.g)}, ${xc(this.b)}${e===1?")":`, ${e})`}`}function Bv(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function xc(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function oc(e){return e=xc(e),(e<16?"0":"")+e.toString(16)}function B4(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ua(e,t,n,r)}function s6(e){if(e instanceof ua)return new ua(e.h,e.s,e.l,e.opacity);if(e instanceof nm||(e=ip(e)),!e)return new ua;if(e instanceof ua)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,u=a-i,f=(a+i)/2;return u?(t===a?o=(n-r)/u+(n<r)*6:n===a?o=(r-t)/u+2:o=(t-n)/u+4,u/=f<.5?a+i:2-a-i,o*=60):u=f>0&&f<1?0:o,new ua(o,u,f,e.opacity)}function Soe(e,t,n,r){return arguments.length===1?s6(e):new ua(e,t,n,r??1)}function ua(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}DA(ua,Soe,o6(nm,{brighter(e){return e=e==null?$v:Math.pow($v,e),new ua(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?np:Math.pow(np,e),new ua(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 zr($1(e>=240?e-240:e+120,i,r),$1(e,i,r),$1(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new ua(F4(this.h),Wg(this.s),Wg(this.l),Bv(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=Bv(this.opacity);return`${e===1?"hsl(":"hsla("}${F4(this.h)}, ${Wg(this.s)*100}%, ${Wg(this.l)*100}%${e===1?")":`, ${e})`}`}}));
vendor: 4,318 bytes, line 425
425function F4(e){return e=(e||0)%360,e<0?e+360:e}function Wg(e){return Math.max(0,Math.min(1,e||0))}function $1(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 IA=e=>()=>e;function joe(e,t){return function(n){return e+n*t}}function Poe(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 Noe(e){return(e=+e)==1?l6:function(t,n){return n-t?Poe(t,n,e):IA(isNaN(t)?n:t)}}function l6(e,t){var n=t-e;return n?joe(e,n):IA(isNaN(e)?t:e)}const z4=(function e(t){var n=Noe(t);function r(i,a){var o=n((i=aP(i)).r,(a=aP(a)).r),u=n(i.g,a.g),f=n(i.b,a.b),h=l6(i.opacity,a.opacity);return function(g){return i.r=o(g),i.g=u(g),i.b=f(g),i.opacity=h(g),i+""}}return r.gamma=e,r})(1);function Aoe(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(a){for(i=0;i<n;++i)r[i]=e[i]*(1-a)+t[i]*a;return r}}function Toe(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function koe(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),a=new Array(n),o;for(o=0;o<r;++o)i[o]=rf(e[o],t[o]);for(;o<n;++o)a[o]=t[o];return function(u){for(o=0;o<r;++o)a[o]=i[o](u);return a}}function Coe(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Fv(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Ooe(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]=rf(e[i],t[i]):r[i]=t[i];return function(a){for(i in n)r[i]=n[i](a);return r}}var oP=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,B1=new RegExp(oP.source,"g");function Eoe(e){return function(){return e}}function Moe(e){return function(t){return e(t)+""}}function Roe(e,t){var n=oP.lastIndex=B1.lastIndex=0,r,i,a,o=-1,u=[],f=[];for(e=e+"",t=t+"";(r=oP.exec(e))&&(i=B1.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),u[o]?u[o]+=a:u[++o]=a),(r=r[0])===(i=i[0])?u[o]?u[o]+=i:u[++o]=i:(u[++o]=null,f.push({i:o,x:Fv(r,i)})),n=B1.lastIndex;return n<t.length&&(a=t.slice(n),u[o]?u[o]+=a:u[++o]=a),u.length<2?f[0]?Moe(f[0].x):Eoe(t):(t=f.length,function(h){for(var g=0,p;g<t;++g)u[(p=f[g]).i]=p.x(h);return u.join("")})}function rf(e,t){var n=typeof t,r;return t==null||n==="boolean"?IA(t):(n==="number"?Fv:n==="string"?(r=ip(t))?(t=r,z4):Roe:t instanceof ip?z4:t instanceof Date?Coe:Toe(t)?Aoe:Array.isArray(t)?koe:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?Ooe:Fv)(e,t)}function LA(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function Doe(e,t){t===void 0&&(t=e,e=rf);for(var n=0,r=t.length-1,i=t[0],a=new Array(r<0?0:r);n<r;)a[n]=e(i,i=t[++n]);return function(o){var u=Math.max(0,Math.min(r-1,Math.floor(o*=r)));return a[u](o-u)}}function Ioe(e){return function(){return e}}function zv(e){return+e}var q4=[0,1];function kr(e){return e}function sP(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:Ioe(isNaN(t)?NaN:.5)}function Loe(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function $oe(e,t,n){var r=e[0],i=e[1],a=t[0],o=t[1];return i<r?(r=sP(i,r),a=n(o,a)):(r=sP(r,i),a=n(a,o)),function(u){return a(r(u))}}function Boe(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),a=new Array(r),o=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<r;)i[o]=sP(e[o],e[o+1]),a[o]=n(t[o],t[o+1]);return function(u){var f=tm(e,u,1,r)-1;return a[f](i[f](u))}}function rm(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Jy(){var e=q4,t=q4,n=rf,r,i,a,o=kr,u,f,h;function g(){var y=Math.min(e.length,t.length);return o!==kr&&(o=Loe(e[0],e[y-1])),u=y>2?Boe:$oe,f=h=null,p}function p(y){return y==null||isNaN(y=+y)?a:(f||(f=u(e.map(r),t,n)))(r(o(y)))}return p.invert=function(y){return o(i((h||(h=u(t,e.map(r),Fv)))(y)))},p.domain=function(y){return arguments.length?(e=Array.from(y,zv),g()):e.slice()},p.range=function(y){return arguments.length?(t=Array.from(y),g()):t.slice()},p.rangeRound=function(y){return t=Array.from(y),n=LA,g()},p.clamp=function(y){return arguments.length?(o=y?!0:kr,g()):o!==kr},p.interpolate=function(y){return arguments.length?(n=y,g()):n},p.unknown=function(y){return arguments.length?(a=y,p):a},function(y,w){return r=y,i=w,g()}}function $A(){return Jy()(kr,kr)}
vendor: 4,617 bytes, line 425
425function Foe(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function qv(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 jd(e){return e=qv(Math.abs(e)),e?e[1]:NaN}function zoe(e,t){return function(n,r){for(var i=n.length,a=[],o=0,u=e[0],f=0;i>0&&u>0&&(f+u+1>r&&(u=Math.max(1,r-f)),a.push(n.substring(i-=u,i+u)),!((f+=u+1)>r));)u=e[o=(o+1)%e.length];return a.reverse().join(t)}}function qoe(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var Voe=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ap(e){if(!(t=Voe.exec(e)))throw new Error("invalid format: "+e);var t;return new BA({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]})}ap.prototype=BA.prototype;function BA(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+""}BA.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 Woe(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 Vv;function Uoe(e,t){var n=qv(e,t);if(!n)return Vv=void 0,e.toPrecision(t);var r=n[0],i=n[1],a=i-(Vv=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return a===o?r:a>o?r+new Array(a-o+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+qv(e,Math.max(0,t+a-1))[0]}function V4(e,t){var n=qv(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 W4={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:Foe,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)=>V4(e*100,t),r:V4,s:Uoe,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function U4(e){return e}var H4=Array.prototype.map,G4=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Hoe(e){var t=e.grouping===void 0||e.thousands===void 0?U4:zoe(H4.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+"",a=e.numerals===void 0?U4:qoe(H4.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",u=e.minus===void 0?"−":e.minus+"",f=e.nan===void 0?"NaN":e.nan+"";function h(p,y){p=ap(p);var w=p.fill,j=p.align,S=p.sign,_=p.symbol,P=p.zero,O=p.width,C=p.comma,E=p.precision,T=p.trim,M=p.type;M==="n"?(C=!0,M="g"):W4[M]||(E===void 0&&(E=12),T=!0,M="g"),(P||w==="0"&&j==="=")&&(P=!0,w="0",j="=");var I=(y&&y.prefix!==void 0?y.prefix:"")+(_==="$"?n:_==="#"&&/[boxX]/.test(M)?"0"+M.toLowerCase():""),$=(_==="$"?r:/[%p]/.test(M)?o:"")+(y&&y.suffix!==void 0?y.suffix:""),z=W4[M],Y=/[defgprs%]/.test(M);E=E===void 0?6:/[gprs]/.test(M)?Math.max(1,Math.min(21,E)):Math.max(0,Math.min(20,E));function V(q){var G=I,Q=$,ne,ie,re;if(M==="c")Q=z(q)+Q,q="";else{q=+q;var W=q<0||1/q<0;if(q=isNaN(q)?f:z(Math.abs(q),E),T&&(q=Woe(q)),W&&+q==0&&S!=="+"&&(W=!1),G=(W?S==="("?S:u:S==="-"||S==="("?"":S)+G,Q=(M==="s"&&!isNaN(q)&&Vv!==void 0?G4[8+Vv/3]:"")+Q+(W&&S==="("?")":""),Y){for(ne=-1,ie=q.length;++ne<ie;)if(re=q.charCodeAt(ne),48>re||re>57){Q=(re===46?i+q.slice(ne+1):q.slice(ne))+Q,q=q.slice(0,ne);break}}}C&&!P&&(q=t(q,1/0));var oe=G.length+q.length+Q.length,U=oe<O?new Array(O-oe+1).join(w):"";switch(C&&P&&(q=t(U+q,U.length?O-Q.length:1/0),U=""),j){case"<":q=G+q+Q+U;break;case"=":q=G+U+q+Q;break;case"^":q=U.slice(0,oe=U.length>>1)+G+q+Q+U.slice(oe);break;default:q=U+G+q+Q;break}return a(q)}return V.toString=function(){return p+""},V}function g(p,y){var w=Math.max(-8,Math.min(8,Math.floor(jd(y)/3)))*3,j=Math.pow(10,-w),S=h((p=ap(p),p.type="f",p),{suffix:G4[8+w/3]});return function(_){return S(j*_)}}return{format:h,formatPrefix:g}}var Ug,FA,c6;
425Goe({thousands:",",grouping:[3],currency:["$",""]});function Goe(e){return Ug=Hoe(e),FA=Ug.format,c6=Ug.formatPrefix,Ug}function Koe(e){return Math.max(0,-jd(Math.abs(e)))}function Zoe(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(jd(t)/3)))*3-jd(Math.abs(e)))}function Yoe(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,jd(t)-jd(e))+1}function u6(e,t,n,r){var i=rP(e,t,n),a;switch(r=ap(r??",f"),r.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=Zoe(i,o))&&(r.precision=a),c6(r,o)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(a=Yoe(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(a=Koe(i))&&(r.precision=a-(r.type==="%")*2);break}}return FA(r)}function hl(e){var t=e.domain;return e.ticks=function(n){var r=t();return tP(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return u6(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,a=r.length-1,o=r[i],u=r[a],f,h,g=10;for(u<o&&(h=o,o=u,u=h,h=i,i=a,a=h);g-- >0;){if(h=nP(o,u,n),h===f)return r[i]=o,r[a]=u,t(r);if(h>0)o=Math.floor(o/h)*h,u=Math.ceil(u/h)*h;else if(h<0)o=Math.ceil(o*h)/h,u=Math.floor(u*h)/h;else break;f=h}return e},e}function Wv(){var e=$A();return e.copy=function(){return rm(e,Wv())},qi.apply(e,arguments),hl(e)}function d6(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,zv),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return d6(e).unknown(t)},e=arguments.length?Array.from(e,zv):[0,1],hl(n)}function f6(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],a=e[r],o;return a<i&&(o=n,n=r,r=o,o=i,i=a,a=o),e[n]=t.floor(i),e[r]=t.ceil(a),e}function K4(e){return Math.log(e)}function Z4(e){return Math.exp(e)}function Xoe(e){return-Math.log(-e)}function Qoe(e){return-Math.exp(-e)}function Joe(e){return isFinite(e)?+("1e"+e):e<0?0:e}function ese(e){return e===10?Joe:e===Math.E?Math.exp:t=>Math.pow(e,t)}function tse(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 Y4(e){return(t,n)=>-e(-t,n)}function zA(e){const t=e(K4,Z4),n=t.domain;let r=10,i,a;function o(){return i=tse(r),a=ese(r),n()[0]<0?(i=Y4(i),a=Y4(a),e(Xoe,Qoe)):e(K4,Z4),t}return t.base=function(u){return arguments.length?(r=+u,o()):r},t.domain=function(u){return arguments.length?(n(u),o()):n()},t.ticks=u=>{const f=n();let h=f[0],g=f[f.length-1];const p=g<h;p&&([h,g]=[g,h]);let y=i(h),w=i(g),j,S;const _=u==null?10:+u;let P=[];if(!(r%1)&&w-y<_){if(y=Math.floor(y),w=Math.ceil(w),h>0){for(;y<=w;++y)for(j=1;j<r;++j)if(S=y<0?j/a(-y):j*a(y),!(S<h)){if(S>g)break;P.push(S)}}else for(;y<=w;++y)for(j=r-1;j>=1;--j)if(S=y>0?j/a(-y):j*a(y),!(S<h)){if(S>g)break;P.push(S)}P.length*2<_&&(P=tP(h,g,_))}else P=tP(y,w,Math.min(w-y,_)).map(a);return p?P.reverse():P},t.tickFormat=(u,f)=>{if(u==null&&(u=10),f==null&&(f=r===10?"s":","),typeof f!="function"&&(!(r%1)&&(f=ap(f)).precision==null&&(f.trim=!0),f=FA(f)),u===1/0)return f;const h=Math.max(1,r*u/t.ticks().length);return g=>{let p=g/a(Math.round(i(g)));return p*r<r-.5&&(p*=r),p<=h?f(g):""}},t.nice=()=>n(f6(n(),{floor:u=>a(Math.floor(i(u))),ceil:u=>a(Math.ceil(i(u)))})),t}function h6(){const e=zA(Jy()).domain([1,10]);return e.copy=()=>rm(e,h6()).base(e.base()),qi.apply(e,arguments),e}function X4(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function Q4(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function qA(e){var t=1,n=e(X4(t),Q4(t));return n.constant=function(r){return arguments.length?e(X4(t=+r),Q4(t)):t},hl(n)}function p6(){var e=qA(Jy());return e.copy=function(){return rm(e,p6()).constant(e.constant())},qi.apply(e,arguments)}function J4(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function nse(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function rse(e){return e<0?-e*e:e*e}function VA(e){var t=e(kr,kr),n=1;function r(){return n===1?e(kr,kr):n===.5?e(nse,rse):e(J4(n),J4(1/n))}return t.exponent=function(i){return arguments.length?(n=+i,r()):n},hl(t)}function WA(){var e=VA(Jy());return e.copy=function(){return rm(e,WA()).exponent(e.exponent())},qi.apply(e,arguments),e}function ise(){return WA.apply(null,arguments).exponent(.5)}function eD(e){return Math.sign(e)*e*e}function ase(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function m6(){var e=$A(),t=[0,1],n=!1,r;function i(a){var o=ase(e(a));return isNaN(o)?r:n?Math.round(o):o}return i.invert=function(a){return e.invert(eD(a))},i.domain=function(a){return arguments.length?(e.domain(a),i):e.domain()},i.range=function(a){return arguments.length?(e.range((t=Array.from(a,zv)).map(eD)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(n=!!a,i):n},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return m6(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},qi.apply(i,arguments),hl(i)}function g6(){var e=[],t=[],n=[],r;function i(){var o=0,u=Math.max(1,t.length);for(n=new Array(u-1);++o<u;)n[o-1]=uoe(e,o/u);return a}function a(o){return o==null||isNaN(o=+o)?r:t[tm(n,o)]}return a.invertExtent=function(o){var u=t.indexOf(o);return u<0?[NaN,NaN]:[u>0?n[u-1]:e[0],u<n.length?n[u]:e[e.length-1]]}
425,a.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let u of o)u!=null&&!isNaN(u=+u)&&e.push(u);return e.sort(el),i()},a.range=function(o){return arguments.length?(t=Array.from(o),i()):t.slice()},a.unknown=function(o){return arguments.length?(r=o,a):r},a.quantiles=function(){return n.slice()},a.copy=function(){return g6().domain(e).range(t).unknown(r)},qi.apply(a,arguments)}function v6(){var e=0,t=1,n=1,r=[.5],i=[0,1],a;function o(f){return f!=null&&f<=f?i[tm(r,f,0,n)]:a}function u(){var f=-1;for(r=new Array(n);++f<n;)r[f]=((f+1)*t-(f-n)*e)/(n+1);return o}return o.domain=function(f){return arguments.length?([e,t]=f,e=+e,t=+t,u()):[e,t]},o.range=function(f){return arguments.length?(n=(i=Array.from(f)).length-1,u()):i.slice()},o.invertExtent=function(f){var h=i.indexOf(f);return h<0?[NaN,NaN]:h<1?[e,r[0]]:h>=n?[r[n-1],t]:[r[h-1],r[h]]},o.unknown=function(f){return arguments.length&&(a=f),o},o.thresholds=function(){return r.slice()},o.copy=function(){return v6().domain([e,t]).range(i).unknown(a)},qi.apply(hl(o),arguments)}function y6(){var e=[.5],t=[0,1],n,r=1;function i(a){return a!=null&&a<=a?t[tm(e,a,0,r)]:n}return i.domain=function(a){return arguments.length?(e=Array.from(a),r=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),r=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var o=t.indexOf(a);return[e[o-1],e[o]]},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return y6().domain(e).range(t).unknown(n)},qi.apply(i,arguments)}const F1=new Date,z1=new Date;function Fn(e,t,n,r){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),u=i.ceil(a);return a-o<u-a?o:u},i.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,u)=>{const f=[];if(a=i.ceil(a),u=u==null?1:Math.floor(u),!(a<o)||!(u>0))return f;let h;do f.push(h=new Date(+a)),t(a,u),e(a);while(h<a&&a<o);return f},i.filter=a=>Fn(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,u)=>{if(o>=o)if(u<0)for(;++u<=0;)for(;t(o,-1),!a(o););else for(;--u>=0;)for(;t(o,1),!a(o););}),n&&(i.count=(a,o)=>(F1.setTime(+a),z1.setTime(+o),e(F1),e(z1),Math.floor(n(F1,z1))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(r?o=>r(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const Uv=Fn(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Uv.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Fn(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Uv);Uv.range;const No=1e3,Li=No*60,Ao=Li*60,Fo=Ao*24,UA=Fo*7,tD=Fo*30,q1=Fo*365,sc=Fn(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*No)},(e,t)=>(t-e)/No,e=>e.getUTCSeconds());sc.range;const HA=Fn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*No)},(e,t)=>{e.setTime(+e+t*Li)},(e,t)=>(t-e)/Li,e=>e.getMinutes());HA.range;const GA=Fn(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Li)},(e,t)=>(t-e)/Li,e=>e.getUTCMinutes());GA.range;const KA=Fn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*No-e.getMinutes()*Li)},(e,t)=>{e.setTime(+e+t*Ao)},(e,t)=>(t-e)/Ao,e=>e.getHours());KA.range;const ZA=Fn(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Ao)},(e,t)=>(t-e)/Ao,e=>e.getUTCHours());ZA.range;const im=Fn(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Li)/Fo,e=>e.getDate()-1);im.range;const ex=Fn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Fo,e=>e.getUTCDate()-1);ex.range;const x6=Fn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Fo,e=>Math.floor(e/Fo));x6.range;function Ic(e){return Fn(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())*Li)/UA)}const tx=Ic(0),Hv=Ic(1),ose=Ic(2),sse=Ic(3),Pd=Ic(4),lse=Ic(5),cse=Ic(6);tx.range;Hv.range;ose.range;sse.range;Pd.range;lse.range;cse.range;function Lc(e){return Fn(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)/UA)}const nx=Lc(0),Gv=Lc(1),use=Lc(2),dse=Lc(3),Nd=Lc(4),fse=Lc(5),hse=Lc(6);nx.range;Gv.range;use.range;dse.range;Nd.range;fse.range;hse.range;const YA=Fn(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());YA.range;const XA=Fn(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());XA.range;const zo=Fn(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());zo.every=e=>
vendor: 6,209 bytes, line 425
425!isFinite(e=Math.floor(e))||!(e>0)?null:Fn(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)});zo.range;const qo=Fn(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());qo.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Fn(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)});qo.range;function b6(e,t,n,r,i,a){const o=[[sc,1,No],[sc,5,5*No],[sc,15,15*No],[sc,30,30*No],[a,1,Li],[a,5,5*Li],[a,15,15*Li],[a,30,30*Li],[i,1,Ao],[i,3,3*Ao],[i,6,6*Ao],[i,12,12*Ao],[r,1,Fo],[r,2,2*Fo],[n,1,UA],[t,1,tD],[t,3,3*tD],[e,1,q1]];function u(h,g,p){const y=g<h;y&&([h,g]=[g,h]);const w=p&&typeof p.range=="function"?p:f(h,g,p),j=w?w.range(h,+g+1):[];return y?j.reverse():j}function f(h,g,p){const y=Math.abs(g-h)/p,w=MA(([,,_])=>_).right(o,y);if(w===o.length)return e.every(rP(h/q1,g/q1,p));if(w===0)return Uv.every(Math.max(rP(h,g,p),1));const[j,S]=o[y/o[w-1][2]<o[w][2]/y?w-1:w];return j.every(S)}return[u,f]}const[pse,mse]=b6(qo,XA,nx,x6,ZA,GA),[gse,vse]=b6(zo,YA,tx,im,KA,HA);function V1(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 W1(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 lh(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function yse(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,a=e.days,o=e.shortDays,u=e.months,f=e.shortMonths,h=ch(i),g=uh(i),p=ch(a),y=uh(a),w=ch(o),j=uh(o),S=ch(u),_=uh(u),P=ch(f),O=uh(f),C={a:re,A:W,b:oe,B:U,c:null,d:sD,e:sD,f:zse,g:Xse,G:Jse,H:$se,I:Bse,j:Fse,L:w6,m:qse,M:Vse,p:H,q:ee,Q:uD,s:dD,S:Wse,u:Use,U:Hse,V:Gse,w:Kse,W:Zse,x:null,X:null,y:Yse,Y:Qse,Z:ele,"%":cD},E={a:pe,A:we,b:ge,B:ye,c:null,d:lD,e:lD,f:ile,g:ple,G:gle,H:tle,I:nle,j:rle,L:S6,m:ale,M:ole,p:$e,q:xe,Q:uD,s:dD,S:sle,u:lle,U:cle,V:ule,w:dle,W:fle,x:null,X:null,y:hle,Y:mle,Z:vle,"%":cD},T={a:Y,A:V,b:q,B:G,c:Q,d:aD,e:aD,f:Rse,g:iD,G:rD,H:oD,I:oD,j:Cse,L:Mse,m:kse,M:Ose,p:z,q:Tse,Q:Ise,s:Lse,S:Ese,u:Sse,U:jse,V:Pse,w:_se,W:Nse,x:ne,X:ie,y:iD,Y:rD,Z:Ase,"%":Dse};C.x=M(n,C),C.X=M(r,C),C.c=M(t,C),E.x=M(n,E),E.X=M(r,E),E.c=M(t,E);function M(de,Ae){return function(Ne){var he=[],Ee=-1,Se=0,at=de.length,dt,bt,Gt;for(Ne instanceof Date||(Ne=new Date(+Ne));++Ee<at;)de.charCodeAt(Ee)===37&&(he.push(de.slice(Se,Ee)),(bt=nD[dt=de.charAt(++Ee)])!=null?dt=de.charAt(++Ee):bt=dt==="e"?" ":"0",(Gt=Ae[dt])&&(dt=Gt(Ne,bt)),he.push(dt),Se=Ee+1);return he.push(de.slice(Se,Ee)),he.join("")}}function I(de,Ae){return function(Ne){var he=lh(1900,void 0,1),Ee=$(he,de,Ne+="",0),Se,at;if(Ee!=Ne.length)return null;if("Q"in he)return new Date(he.Q);if("s"in he)return new Date(he.s*1e3+("L"in he?he.L:0));if(Ae&&!("Z"in he)&&(he.Z=0),"p"in he&&(he.H=he.H%12+he.p*12),he.m===void 0&&(he.m="q"in he?he.q:0),"V"in he){if(he.V<1||he.V>53)return null;"w"in he||(he.w=1),"Z"in he?(Se=W1(lh(he.y,0,1)),at=Se.getUTCDay(),Se=at>4||at===0?Gv.ceil(Se):Gv(Se),Se=ex.offset(Se,(he.V-1)*7),he.y=Se.getUTCFullYear(),he.m=Se.getUTCMonth(),he.d=Se.getUTCDate()+(he.w+6)%7):(Se=V1(lh(he.y,0,1)),at=Se.getDay(),Se=at>4||at===0?Hv.ceil(Se):Hv(Se),Se=im.offset(Se,(he.V-1)*7),he.y=Se.getFullYear(),he.m=Se.getMonth(),he.d=Se.getDate()+(he.w+6)%7)}else("W"in he||"U"in he)&&("w"in he||(he.w="u"in he?he.u%7:"W"in he?1:0),at="Z"in he?W1(lh(he.y,0,1)).getUTCDay():V1(lh(he.y,0,1)).getDay(),he.m=0,he.d="W"in he?(he.w+6)%7+he.W*7-(at+5)%7:he.w+he.U*7-(at+6)%7);return"Z"in he?(he.H+=he.Z/100|0,he.M+=he.Z%100,W1(he)):V1(he)}}function $(de,Ae,Ne,he){for(var Ee=0,Se=Ae.length,at=Ne.length,dt,bt;Ee<Se;){if(he>=at)return-1;if(dt=Ae.charCodeAt(Ee++),dt===37){if(dt=Ae.charAt(Ee++),bt=T[dt in nD?Ae.charAt(Ee++):dt],!bt||(he=bt(de,Ne,he))<0)return-1}else if(dt!=Ne.charCodeAt(he++))return-1}return he}function z(de,Ae,Ne){var he=h.exec(Ae.slice(Ne));return he?(de.p=g.get(he[0].toLowerCase()),Ne+he[0].length):-1}function Y(de,Ae,Ne){var he=w.exec(Ae.slice(Ne));return he?(de.w=j.get(he[0].toLowerCase()),Ne+he[0].length):-1}function V(de,Ae,Ne){var he=p.exec(Ae.slice(Ne));return he?(de.w=y.get(he[0].toLowerCase()),Ne+he[0].length):-1}function q(de,Ae,Ne){var he=P.exec(Ae.slice(Ne));return he?(de.m=O.get(he[0].toLowerCase()),Ne+he[0].length):-1}function G(de,Ae,Ne){var he=S.exec(Ae.slice(Ne));return he?(de.m=_.get(he[0].toLowerCase()),Ne+he[0].length):-1}function Q(de,Ae,Ne){return $(de,t,Ae,Ne)}function ne(de,Ae,Ne){return $(de,n,Ae,Ne)}function ie(de,Ae,Ne){return $(de,r,Ae,Ne)}function re(de){return o[de.getDay()]}function W(de){return a[de.getDay()]}function oe(de){return f[de.getMonth()]}function U(de){return u[de.getMonth()]}function H(de){return i[+(de.getHours()>=12)]}function ee(de){return 1+~~(de.getMonth()/3)}function pe(de){return o[de.getUTCDay()]}function we(de){return a[de.getUTCDay()]}function ge(de){return f[de.getUTCMonth()]}function ye(de){return u[de.getUTCMonth()]}function $e(de){return i[+(de.getUTCHours()>=12)]}function xe(de){return 1+~~(de.getUTCMonth()/3)}return{format:function(de){var Ae=M(de+="",C);return Ae.toString=function(){return de},Ae},parse:function(de){var Ae=I(de+="",!1);return Ae.toString=function(){return de},Ae},utcFormat:function(de){var Ae=M(de+="",E);return Ae.toString=function(){return de},Ae},utcParse:function(de){var Ae=I(de+="",!0);return Ae.toString=function(){return de},Ae}}}var nD={"-":"",_:" ",0:"0"},Zn=/^\s*\d+/,xse=/^%/,bse=/[\\^$*+?|[\]().{}]/g;function St(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",a=i.length;return r+(a<n?new Array(n-a+1).join(t)+i:i)}function wse(e){return e.replace(bse,"\\$&")}function ch(e){return new RegExp("^(?:"+e.map(wse).join("|")+")","i")}function uh(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function _se(e,t,n){var r=Zn.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Sse(e,t,n){var r=Zn.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function jse(e,t,n){var r=Zn.exec(t.slice(n,n+2));
vendor: 4,106 bytes, line 425
425return r?(e.U=+r[0],n+r[0].length):-1}function Pse(e,t,n){var r=Zn.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Nse(e,t,n){var r=Zn.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function rD(e,t,n){var r=Zn.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function iD(e,t,n){var r=Zn.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Ase(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 Tse(e,t,n){var r=Zn.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function kse(e,t,n){var r=Zn.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function aD(e,t,n){var r=Zn.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Cse(e,t,n){var r=Zn.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function oD(e,t,n){var r=Zn.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Ose(e,t,n){var r=Zn.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Ese(e,t,n){var r=Zn.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Mse(e,t,n){var r=Zn.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Rse(e,t,n){var r=Zn.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Dse(e,t,n){var r=xse.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Ise(e,t,n){var r=Zn.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Lse(e,t,n){var r=Zn.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function sD(e,t){return St(e.getDate(),t,2)}function $se(e,t){return St(e.getHours(),t,2)}function Bse(e,t){return St(e.getHours()%12||12,t,2)}function Fse(e,t){return St(1+im.count(zo(e),e),t,3)}function w6(e,t){return St(e.getMilliseconds(),t,3)}function zse(e,t){return w6(e,t)+"000"}function qse(e,t){return St(e.getMonth()+1,t,2)}function Vse(e,t){return St(e.getMinutes(),t,2)}function Wse(e,t){return St(e.getSeconds(),t,2)}function Use(e){var t=e.getDay();return t===0?7:t}function Hse(e,t){return St(tx.count(zo(e)-1,e),t,2)}function _6(e){var t=e.getDay();return t>=4||t===0?Pd(e):Pd.ceil(e)}function Gse(e,t){return e=_6(e),St(Pd.count(zo(e),e)+(zo(e).getDay()===4),t,2)}function Kse(e){return e.getDay()}function Zse(e,t){return St(Hv.count(zo(e)-1,e),t,2)}function Yse(e,t){return St(e.getFullYear()%100,t,2)}function Xse(e,t){return e=_6(e),St(e.getFullYear()%100,t,2)}function Qse(e,t){return St(e.getFullYear()%1e4,t,4)}function Jse(e,t){var n=e.getDay();return e=n>=4||n===0?Pd(e):Pd.ceil(e),St(e.getFullYear()%1e4,t,4)}function ele(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+St(t/60|0,"0",2)+St(t%60,"0",2)}function lD(e,t){return St(e.getUTCDate(),t,2)}function tle(e,t){return St(e.getUTCHours(),t,2)}function nle(e,t){return St(e.getUTCHours()%12||12,t,2)}function rle(e,t){return St(1+ex.count(qo(e),e),t,3)}function S6(e,t){return St(e.getUTCMilliseconds(),t,3)}function ile(e,t){return S6(e,t)+"000"}function ale(e,t){return St(e.getUTCMonth()+1,t,2)}function ole(e,t){return St(e.getUTCMinutes(),t,2)}function sle(e,t){return St(e.getUTCSeconds(),t,2)}function lle(e){var t=e.getUTCDay();return t===0?7:t}function cle(e,t){return St(nx.count(qo(e)-1,e),t,2)}function j6(e){var t=e.getUTCDay();return t>=4||t===0?Nd(e):Nd.ceil(e)}function ule(e,t){return e=j6(e),St(Nd.count(qo(e),e)+(qo(e).getUTCDay()===4),t,2)}function dle(e){return e.getUTCDay()}function fle(e,t){return St(Gv.count(qo(e)-1,e),t,2)}function hle(e,t){return St(e.getUTCFullYear()%100,t,2)}function ple(e,t){return e=j6(e),St(e.getUTCFullYear()%100,t,2)}function mle(e,t){return St(e.getUTCFullYear()%1e4,t,4)}function gle(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Nd(e):Nd.ceil(e),St(e.getUTCFullYear()%1e4,t,4)}function vle(){return"+0000"}function cD(){return"%"}function uD(e){return+e}function dD(e){return Math.floor(+e/1e3)}var Ru,P6,N6;yle({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
425ay","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 yle(e){return Ru=yse(e),P6=Ru.format,Ru.parse,N6=Ru.utcFormat,Ru.utcParse,Ru}function xle(e){return new Date(e)}function ble(e){return e instanceof Date?+e:+new Date(+e)}function QA(e,t,n,r,i,a,o,u,f,h){var g=$A(),p=g.invert,y=g.domain,w=h(".%L"),j=h(":%S"),S=h("%I:%M"),_=h("%I %p"),P=h("%a %d"),O=h("%b %d"),C=h("%B"),E=h("%Y");function T(M){return(f(M)<M?w:u(M)<M?j:o(M)<M?S:a(M)<M?_:r(M)<M?i(M)<M?P:O:n(M)<M?C:E)(M)}return g.invert=function(M){return new Date(p(M))},g.domain=function(M){return arguments.length?y(Array.from(M,ble)):y().map(xle)},g.ticks=function(M){var I=y();return e(I[0],I[I.length-1],M??10)},g.tickFormat=function(M,I){return I==null?T:h(I)},g.nice=function(M){var I=y();return(!M||typeof M.range!="function")&&(M=t(I[0],I[I.length-1],M??10)),M?y(f6(I,M)):g},g.copy=function(){return rm(g,QA(e,t,n,r,i,a,o,u,f,h))},g}function wle(){return qi.apply(QA(gse,vse,zo,YA,tx,im,KA,HA,sc,P6).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function _le(){return qi.apply(QA(pse,mse,qo,XA,nx,ex,ZA,GA,sc,N6).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function rx(){var e=0,t=1,n,r,i,a,o=kr,u=!1,f;function h(p){return p==null||isNaN(p=+p)?f:o(i===0?.5:(p=(a(p)-n)*i,u?Math.max(0,Math.min(1,p)):p))}h.domain=function(p){return arguments.length?([e,t]=p,n=a(e=+e),r=a(t=+t),i=n===r?0:1/(r-n),h):[e,t]},h.clamp=function(p){return arguments.length?(u=!!p,h):u},h.interpolator=function(p){return arguments.length?(o=p,h):o};function g(p){return function(y){var w,j;return arguments.length?([w,j]=y,o=p(w,j),h):[o(0),o(1)]}}return h.range=g(rf),h.rangeRound=g(LA),h.unknown=function(p){return arguments.length?(f=p,h):f},function(p){return a=p,n=p(e),r=p(t),i=n===r?0:1/(r-n),h}}function pl(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function A6(){var e=hl(rx()(kr));return e.copy=function(){return pl(e,A6())},Yo.apply(e,arguments)}function T6(){var e=zA(rx()).domain([1,10]);return e.copy=function(){return pl(e,T6()).base(e.base())},Yo.apply(e,arguments)}function k6(){var e=qA(rx());return e.copy=function(){return pl(e,k6()).constant(e.constant())},Yo.apply(e,arguments)}function JA(){var e=VA(rx());return e.copy=function(){return pl(e,JA()).exponent(e.exponent())},Yo.apply(e,arguments)}function Sle(){return JA.apply(null,arguments).exponent(.5)}function C6(){var e=[],t=kr;function n(r){if(r!=null&&!isNaN(r=+r))return t((tm(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(el),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,a)=>coe(e,a/r))},n.copy=function(){return C6(t).domain(e)},Yo.apply(n,arguments)}function ix(){var e=0,t=.5,n=1,r=1,i,a,o,u,f,h=kr,g,p=!1,y;function w(S){return isNaN(S=+S)?y:(S=.5+((S=+g(S))-a)*(r*S<r*a?u:f),h(p?Math.max(0,Math.min(1,S)):S))}w.domain=function(S){return arguments.length?([e,t,n]=S,i=g(e=+e),a=g(t=+t),o=g(n=+n),u=i===a?0:.5/(a-i),f=a===o?0:.5/(o-a),r=a<i?-1:1,w):[e,t,n]},w.clamp=function(S){return arguments.length?(p=!!S,w):p},w.interpolator=function(S){return arguments.length?(h=S,w):h};function j(S){return function(_){var P,O,C;return arguments.length?([P,O,C]=_,h=Doe(S,[P,O,C]),w):[h(0),h(.5),h(1)]}}return w.range=j(rf),w.rangeRound=j(LA),w.unknown=function(S){return arguments.length?(y=S,w):y},function(S){return g=S,i=S(e),a=S(t),o=S(n),u=i===a?0:.5/(a-i),f=a===o?0:.5/(o-a),r=a<i?-1:1,w}}function O6(){var e=hl(ix()(kr));return e.copy=function(){return pl(e,O6())},Yo.apply(e,arguments)}function E6(){var e=zA(ix()).domain([.1,1,10]);return e.copy=function(){return pl(e,E6()).base(e.base())},Yo.apply(e,arguments)}function M6(){var e=qA(ix());return e.copy=function(){return pl(e,M6()).constant(e.constant())},Yo.apply(e,arguments)}function eT(){var e=VA(ix());return e.copy=function(){return pl(e,eT()).exponent(e.exponent())},Yo.apply(e,arguments)}function jle(){return eT.apply(null,arguments).exponent(.5)}const fD=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:tp,scaleDiverging:O6,scaleDivergingLog:E6,scaleDivergingPow:eT,scaleDivergingSqrt:jle,scaleDivergingSymlog:M6,scaleIdentity:d6,scaleImplicit:iP,scaleLinear:Wv,scaleLog:h6,scaleOrdinal:RA,scalePoint:Ch,scalePow:WA,scaleQuantile:g6,scaleQuantize:v6,scaleRadial:m6,scaleSequential:A6,scaleSequentialLog:T6,scaleSequentialPow:JA,scaleSequentialQuantile:C6,scaleSequentialSqrt:Sle,scaleSequentialSymlog:k6,scaleSqrt:ise,scaleSymlog:p6,scaleThreshold:y6,scaleTime:wle,scaleUtc:_le,tickFormat:u6},Symbol.toStringTag,{value:"Module"}));var U1,hD;function R6(){if(hD)return U1;hD=1;var e=Jd();function t(n,r,i){for(var a=-1,o=n.length;++a<o;){var u=n[a],f=r(u);if(f!=null&&(h===void 0?f===f&&!e(f):i(f,h)))var h=f,g=u}return g}return U1=t,U1}var H1,pD;function Ple(){if(pD)return H1;pD=1;function e(t,n){return t>n}return H1=e,H1}var G1,mD;function Nle(){if(mD)return G1;mD=1;var e=R6(),t=Ple(),n=tf();function r(i){return i&&i.length?e(i,n,t):void 0}return G1=r,G1}var Ale=Nle();const ax=kt(Ale);var K1,gD;function Tle(){if(gD)return K1;gD=1;function e(t,n){return t<n}return K1=e,K1}var Z1,vD;function kle(){if(vD)return Z1;vD=1;
425var e=R6(),t=Tle(),n=tf();function r(i){return i&&i.length?e(i,n,t):void 0}return Z1=r,Z1}var Cle=kle();const ox=kt(Cle);var Y1,yD;function Ole(){if(yD)return Y1;yD=1;var e=gA(),t=fl(),n=VF(),r=Ur();function i(a,o){var u=r(a)?e:n;return u(a,t(o,3))}return Y1=i,Y1}var X1,xD;function Ele(){if(xD)return X1;xD=1;var e=zF(),t=Ole();function n(r,i){return e(t(r,i),1)}return X1=n,X1}var Mle=Ele();const Rle=kt(Mle);var Q1,bD;function Dle(){if(bD)return Q1;bD=1;var e=kA();function t(n,r){return e(n,r)}return Q1=t,Q1}var Ile=Dle();const sx=kt(Ile);var af=1e9,Lle={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},nT,Zt=!0,zi="[DecimalError] ",bc=zi+"Invalid argument: ",tT=zi+"Exponent out of range: ",of=Math.floor,nc=Math.pow,$le=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,di,Hn=1e7,Vt=7,D6=9007199254740991,Kv=of(D6/Vt),Ie={};Ie.absoluteValue=Ie.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};Ie.comparedTo=Ie.cmp=function(e){var t,n,r,i,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(r=a.d.length,i=e.d.length,t=0,n=r<i?r:i;t<n;++t)if(a.d[t]!==e.d[t])return a.d[t]>e.d[t]^a.s<0?1:-1;return r===i?0:r>i^a.s<0?1:-1};Ie.decimalPlaces=Ie.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*Vt;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};Ie.dividedBy=Ie.div=function(e){return Ro(this,new this.constructor(e))};Ie.dividedToIntegerBy=Ie.idiv=function(e){var t=this,n=t.constructor;return Rt(Ro(t,new n(e),0,1),n.precision)};Ie.equals=Ie.eq=function(e){return!this.cmp(e)};Ie.exponent=function(){return Nn(this)};Ie.greaterThan=Ie.gt=function(e){return this.cmp(e)>0};Ie.greaterThanOrEqualTo=Ie.gte=function(e){return this.cmp(e)>=0};Ie.isInteger=Ie.isint=function(){return this.e>this.d.length-2};Ie.isNegative=Ie.isneg=function(){return this.s<0};Ie.isPositive=Ie.ispos=function(){return this.s>0};Ie.isZero=function(){return this.s===0};Ie.lessThan=Ie.lt=function(e){return this.cmp(e)<0};Ie.lessThanOrEqualTo=Ie.lte=function(e){return this.cmp(e)<1};Ie.logarithm=Ie.log=function(e){var t,n=this,r=n.constructor,i=r.precision,a=i+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(di))throw Error(zi+"NaN");if(n.s<1)throw Error(zi+(n.s?"NaN":"-Infinity"));return n.eq(di)?new r(0):(Zt=!1,t=Ro(op(n,a),op(e,a),a),Zt=!0,Rt(t,i))};Ie.minus=Ie.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?$6(t,e):I6(t,(e.s=-e.s,e))};Ie.modulo=Ie.mod=function(e){var t,n=this,r=n.constructor,i=r.precision;if(e=new r(e),!e.s)throw Error(zi+"NaN");return n.s?(Zt=!1,t=Ro(n,e,0,1).times(e),Zt=!0,n.minus(t)):Rt(new r(n),i)};Ie.naturalExponential=Ie.exp=function(){return L6(this)};Ie.naturalLogarithm=Ie.ln=function(){return op(this)};Ie.negated=Ie.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};Ie.plus=Ie.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?I6(t,e):$6(t,(e.s=-e.s,e))};Ie.precision=Ie.sd=function(e){var t,n,r,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(bc+e);if(t=Nn(i)+1,r=i.d.length-1,n=r*Vt+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};Ie.squareRoot=Ie.sqrt=function(){var e,t,n,r,i,a,o,u=this,f=u.constructor;if(u.s<1){if(!u.s)return new f(0);throw Error(zi+"NaN")}for(e=Nn(u),Zt=!1,i=Math.sqrt(+u),i==0||i==1/0?(t=$a(u.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=of((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 f(t)):r=new f(i.toString()),n=f.precision,i=o=n+3;;)if(a=r,r=a.plus(Ro(u,a,o+2)).times(.5),$a(a.d).slice(0,o)===(t=$a(r.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(Rt(a,n+1,0),a.times(a).eq(u)){r=a;break}}else if(t!="9999")break;o+=4}return Zt=!0,Rt(r,n)};Ie.times=Ie.mul=function(e){var t,n,r,i,a,o,u,f,h,g=this,p=g.constructor,y=g.d,w=(e=new p(e)).d;if(!g.s||!e.s)return new p(0);for(e.s*=g.s,n=g.e+e.e,f=y.length,h=w.length,f<h&&(a=y,y=w,w=a,o=f,f=h,h=o),a=[],o=f+h,r=o;r--;)a.push(0);for(r=h;--r>=0;){for(t=0,i=f+r;i>r;)u=a[i]+w[r]*y[i-r-1]+t,a[i--]=u%Hn|0,t=u/Hn|0;a[i]=(a[i]+t)%Hn|0}for(;!a[--o];)a.pop();return t?++n:a.shift(),e.d=a,e.e=n,Zt?Rt(e,p.precision):e};Ie.toDecimalPlaces=Ie.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(Ua(e,0,af),t===void 0?t=r.rounding:Ua(t,0,8),Rt(n,e+Nn(n)+1,t))};Ie.toExponential=function(e,t){var n,r=this,i=r.constructor;return e===void 0?n=jc(r,!0):(Ua(e,0,af),t===void 0?t=i.rounding:Ua(t,0,8),r=Rt(new i(r),e+1,t),n=jc(r,!0,e+1)),n};Ie.toFixed=function(e,t){var n,r,i=this,a=i.constructor;return e===void 0?jc(i):(Ua(e,0,af),t===void 0?t=a.rounding:Ua(t,0,8),r=Rt(new a(i),e+Nn(i)+1,t),n=jc(r.abs(),!1,e+Nn(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)};Ie.toInteger=Ie.toint=function(){var e=this,t=e.constructor;return Rt(new t(e),Nn(e)+1,t.rounding)};Ie.toNumber=function(){return+this};Ie.toPower=Ie.pow=function(e){var t,n,r,i,a,o,u=this,f=u.constructor,h=12,g=+(e=new f(e));if(!e.s)return new f(di);if(u=new f(u),!u.s){if(e.s<1)throw Error(zi+"Infinity");return u}if(u.eq(di))return u;if(r=f.precision,e.eq(di))return Rt(u,r);if(t=e.e,n=e.d.length-1,o=t>=n,a=u.s,o){if((n=g<0?-g:g)<=D6){for(i=new f(di),t=Math.ceil(r/Vt+4),Zt=!1;n%2&&(i=i.times(u),_D(i.d,t)),n=of(n/2),n!==0;)u=u.times(u),_D(u.d,t);return Zt=!0,e.s<0?new f(di).div(i):Rt(i,r)}}else if(a<0)throw Error(zi+"NaN");return a=a<0&&e.d[Math.max(t,n)]&1?-1:1,u.s=1,Zt=!1,i=e.times(op(u,r+h)),Zt=!0,i=L6(i),i.s=a,i};Ie.toPrecision=function(e,t){var n,r,i=this,a=i.constructor;return e===void 0?(n=Nn(i),r=jc(i,n<=a.toExpNeg||n>=a.toExpPos)):(Ua(e,1,af),t===void 0?t=a.rounding:Ua(t,0,8),i=Rt(new a(i),e,t),n=Nn(i),r=jc(i,e<=n||n<=a.toExpNeg,e)),r};Ie.toSignificantDigits=Ie.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(Ua(e,1,af),t===void 0?t=r.rounding:Ua(t,0,8)),Rt(new r(n),e,t)};Ie.toString=Ie.valueOf=Ie.val=Ie.toJSON=Ie[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Nn(e),n=e.constructor;return jc(e,t<=n.toExpNeg||t>=n.toExpPos)};function I6(e,t){var n,r,i,a,o,u,f,h,g=e.constructor,p=g.precision;if(!e.s||!t.s)return t.s||(t=new g(e)),Zt?Rt(t,p):t;if(f=e.d,h=t.d,o=e.e,i=t.e,f=f.slice(),a=o-i,a){for(a<0?(r=f,a=-a,u=h.length):(r=h,i=o,u=f.length),o=Math.ceil(p/Vt),u=o>u?o+1:u+1,a>u&&(a=u,r.length=1),r.reverse();a--;)r.push(0);r.reverse()}for(u=f.length,a=h.length,u-a<0&&(a=u,r=h,h=f,f=r),n=0;a;)n=(f[--a]=f[a]+h[a]+n)/Hn|0,f[a]%=Hn;for(n&&(f.unshift(n),++i),u=f.length;f[--u]==0;)f.pop();return t.d=f,t.e=i,Zt?Rt(t,p):t}function Ua(e,t,n){if(e!==~~e||e<t||e>n)throw Error(bc+e)}function $a(e){var t,n,r,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)r=e[t]+"",n=Vt-r.length,n&&(a+=Bs(n)),a+=r;o=e[t],r=o+"",n=Vt-r.length,n&&(a+=Bs(n))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var Ro=(function(){function e(r,i){var a,o=0,u=r.length;for(r=r.slice();u--;)a=r[u]*i+o,r[u]=a%Hn|0,o=a/Hn|0;return o&&r.unshift(o),r}function t(r,i,a,o){var u,f;if(a!=o)f=a>o?1:-1;else for(u=f=0;u<a;u++)if(r[u]!=i[u]){f=r[u]>i[u]?1:-1;break}return f}function n(r,i,a){for(var o=0;a--;)r[a]-=o,o=r[a]<i[a]?1:0,r[a]=o*Hn+r[a]-i[a];for(;!r[0]&&r.length>1;)r.shift()}return function(r,i,a,o){var u,f,h,g,p,y,w,j,S,_,P,O,C,E,T,M,I,$,z=r.constructor,Y=r.s==i.s?1:-1,V=r.d,q=i.d;if(!r.s)return new z(r);
425if(!i.s)throw Error(zi+"Division by zero");for(f=r.e-i.e,I=q.length,T=V.length,w=new z(Y),j=w.d=[],h=0;q[h]==(V[h]||0);)++h;if(q[h]>(V[h]||0)&&--f,a==null?O=a=z.precision:o?O=a+(Nn(r)-Nn(i))+1:O=a,O<0)return new z(0);if(O=O/Vt+2|0,h=0,I==1)for(g=0,q=q[0],O++;(h<T||g)&&O--;h++)C=g*Hn+(V[h]||0),j[h]=C/q|0,g=C%q|0;else{for(g=Hn/(q[0]+1)|0,g>1&&(q=e(q,g),V=e(V,g),I=q.length,T=V.length),E=I,S=V.slice(0,I),_=S.length;_<I;)S[_++]=0;$=q.slice(),$.unshift(0),M=q[0],q[1]>=Hn/2&&++M;do g=0,u=t(q,S,I,_),u<0?(P=S[0],I!=_&&(P=P*Hn+(S[1]||0)),g=P/M|0,g>1?(g>=Hn&&(g=Hn-1),p=e(q,g),y=p.length,_=S.length,u=t(p,S,y,_),u==1&&(g--,n(p,I<y?$:q,y))):(g==0&&(u=g=1),p=q.slice()),y=p.length,y<_&&p.unshift(0),n(S,p,_),u==-1&&(_=S.length,u=t(q,S,I,_),u<1&&(g++,n(S,I<_?$:q,_))),_=S.length):u===0&&(g++,S=[0]),j[h++]=g,u&&S[0]?S[_++]=V[E]||0:(S=[V[E]],_=1);while((E++<T||S[0]!==void 0)&&O--)}return j[0]||j.shift(),w.e=f,Rt(w,o?a+Nn(w)+1:a)}})();function L6(e,t){var n,r,i,a,o,u,f=0,h=0,g=e.constructor,p=g.precision;if(Nn(e)>16)throw Error(tT+Nn(e));if(!e.s)return new g(di);for(Zt=!1,u=p,o=new g(.03125);e.abs().gte(.1);)e=e.times(o),h+=5;for(r=Math.log(nc(2,h))/Math.LN10*2+5|0,u+=r,n=i=a=new g(di),g.precision=u;;){if(i=Rt(i.times(e),u),n=n.times(++f),o=a.plus(Ro(i,n,u)),$a(o.d).slice(0,u)===$a(a.d).slice(0,u)){for(;h--;)a=Rt(a.times(a),u);return g.precision=p,t==null?(Zt=!0,Rt(a,p)):a}a=o}}function Nn(e){for(var t=e.e*Vt,n=e.d[0];n>=10;n/=10)t++;return t}function J1(e,t,n){if(t>e.LN10.sd())throw Zt=!0,n&&(e.precision=n),Error(zi+"LN10 precision limit exceeded");return Rt(new e(e.LN10),t)}function Bs(e){for(var t="";e--;)t+="0";return t}function op(e,t){var n,r,i,a,o,u,f,h,g,p=1,y=10,w=e,j=w.d,S=w.constructor,_=S.precision;if(w.s<1)throw Error(zi+(w.s?"NaN":"-Infinity"));if(w.eq(di))return new S(0);if(t==null?(Zt=!1,h=_):h=t,w.eq(10))return t==null&&(Zt=!0),J1(S,h);if(h+=y,S.precision=h,n=$a(j),r=n.charAt(0),a=Nn(w),Math.abs(a)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)w=w.times(e),n=$a(w.d),r=n.charAt(0),p++;a=Nn(w),r>1?(w=new S("0."+n),a++):w=new S(r+"."+n.slice(1))}else return f=J1(S,h+2,_).times(a+""),w=op(new S(r+"."+n.slice(1)),h-y).plus(f),S.precision=_,t==null?(Zt=!0,Rt(w,_)):w;for(u=o=w=Ro(w.minus(di),w.plus(di),h),g=Rt(w.times(w),h),i=3;;){if(o=Rt(o.times(g),h),f=u.plus(Ro(o,new S(i),h)),$a(f.d).slice(0,h)===$a(u.d).slice(0,h))return u=u.times(2),a!==0&&(u=u.plus(J1(S,h+2,_).times(a+""))),u=Ro(u,new S(p),h),S.precision=_,t==null?(Zt=!0,Rt(u,_)):u;u=f,i+=2}}function wD(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=of(n/Vt),e.d=[],r=(n+1)%Vt,n<0&&(r+=Vt),r<i){for(r&&e.d.push(+t.slice(0,r)),i-=Vt;r<i;)e.d.push(+t.slice(r,r+=Vt));t=t.slice(r),r=Vt-t.length}else r-=i;for(;r--;)t+="0";if(e.d.push(+t),Zt&&(e.e>Kv||e.e<-Kv))throw Error(tT+n)}else e.s=0,e.e=0,e.d=[0];return e}function Rt(e,t,n){var r,i,a,o,u,f,h,g,p=e.d;for(o=1,a=p[0];a>=10;a/=10)o++;if(r=t-o,r<0)r+=Vt,i=t,h=p[g=0];else{if(g=Math.ceil((r+1)/Vt),a=p.length,g>=a)return e;for(h=a=p[g],o=1;a>=10;a/=10)o++;r%=Vt,i=r-Vt+o}if(n!==void 0&&(a=nc(10,o-i-1),u=h/a%10|0,f=t<0||p[g+1]!==void 0||h%a,f=n<4?(u||f)&&(n==0||n==(e.s<0?3:2)):u>5||u==5&&(n==4||f||n==6&&(r>0?i>0?h/nc(10,o-i):0:p[g-1])%10&1||n==(e.s<0?8:7))),t<1||!p[0])return f?(a=Nn(e),p.length=1,t=t-a-1,p[0]=nc(10,(Vt-t%Vt)%Vt),e.e=of(-t/Vt)||0):(p.length=1,p[0]=e.e=e.s=0),e;if(r==0?(p.length=g,a=1,g--):(p.length=g+1,a=nc(10,Vt-r),p[g]=i>0?(h/nc(10,o-i)%nc(10,i)|0)*a:0),f)for(;;)if(g==0){(p[0]+=a)==Hn&&(p[0]=1,++e.e);break}else{if(p[g]+=a,p[g]!=Hn)break;p[g--]=0,a=1}for(r=p.length;p[--r]===0;)p.pop();if(Zt&&(e.e>Kv||e.e<-Kv))throw Error(tT+Nn(e));return e}function $6(e,t){var n,r,i,a,o,u,f,h,g,p,y=e.constructor,w=y.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new y(e),Zt?Rt(t,w):t;if(f=e.d,p=t.d,r=t.e,h=e.e,f=f.slice(),o=h-r,o){for(g=o<0,g?(n=f,o=-o,u=p.length):(n=p,r=h,u=f.length),i=Math.max(Math.ceil(w/Vt),u)+2,o>i&&(o=i,n.length=1),n.reverse(),i=o;i--;)n.push(0);n.reverse()}else{for(i=f.length,u=p.length,g=i<u,g&&(u=i),i=0;i<u;i++)if(f[i]!=p[i]){g=f[i]<p[i];break}o=0}for(g&&(n=f,f=p,p=n,t.s=-t.s),u=f.length,i=p.length-u;i>0;--i)f[u++]=0;for(i=p.length;i>o;){if(f[--i]<p[i]){for(a=i;a&&f[--a]===0;)f[a]=Hn-1;--f[a],f[i]+=Hn}f[i]-=p[i]}for(;f[--u]===0;)f.pop();for(;f[0]===0;f.shift())--r;return f[0]?(t.d=f,t.e=r,Zt?Rt(t,w):t):new y(0)}function jc(e,t,n){var r,i=Nn(e),a=$a(e.d),o=a.length;return t?(n&&(r=n-o)>0?a=a.charAt(0)+"."+a.slice(1)+Bs(r):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+Bs(-i-1)+a,n&&(r=n-o)>0&&(a+=Bs(r))):i>=o?(a+=Bs(i+1-o),n&&(r=n-i-1)>0&&(a=a+"."+Bs(r))):((r=i+1)<o&&(a=a.slice(0,r)+"."+a.slice(r)),n&&(r=n-o)>0&&(i+1===o&&(a+="."),a+=Bs(r))),e.s<0?"-"+a:a}function _D(e,t){if(e.length>t)return e.length=t,!0}function B6(e){var t,n,r;function i(a){var o=this;if(!(o instanceof i))return new i(a);if(o.constructor=i,a instanceof i){o.s=a.s,o.e=a.e,o.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(bc+a);if(a>0)o.s=1;else if(a<0)a=-a,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(a===~~a&&a<1e7){o.e=0,o.d=[a];return}return wD(o,a.toString())}else if(typeof a!="string")throw Error(bc+a);
425if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,$le.test(a))wD(o,a);else throw Error(bc+a)}if(i.prototype=Ie,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=B6,i.config=i.set=Ble,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 Ble(e){if(!e||typeof e!="object")throw Error(zi+"Object expected");var t,n,r,i=["precision",1,af,"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(of(r)===r&&r>=i[t+1]&&r<=i[t+2])this[n]=r;else throw Error(bc+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(bc+n+": "+r);return this}var nT=B6(Lle);di=new nT(1);const Mt=nT;function Fle(e){return Wle(e)||Vle(e)||qle(e)||zle()}function zle(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
426In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qle(e,t){if(e){if(typeof e=="string")return lP(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 lP(e,t)}}function Vle(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function Wle(e){if(Array.isArray(e))return lP(e)}function lP(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 Ule=function(t){return t},F6={},z6=function(t){return t===F6},SD=function(t){return function n(){return arguments.length===0||arguments.length===1&&z6(arguments.length<=0?void 0:arguments[0])?n:t.apply(void 0,arguments)}},Hle=function e(t,n){return t===1?n:SD(function(){for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];var o=i.filter(function(u){return u!==F6}).length;return o>=t?n.apply(void 0,i):e(t-o,SD(function(){for(var u=arguments.length,f=new Array(u),h=0;h<u;h++)f[h]=arguments[h];var g=i.map(function(p){return z6(p)?f.shift():p});return n.apply(void 0,Fle(g).concat(f))}))})},lx=function(t){return Hle(t.length,t)},cP=function(t,n){for(var r=[],i=t;i<n;++i)r[i-t]=i;return r},Gle=lx(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(n){return t[n]}).map(e)}),Kle=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return Ule;var i=n.reverse(),a=i[0],o=i.slice(1);return function(){return o.reduce(function(u,f){return f(u)},a.apply(void 0,arguments))}},uP=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},q6=function(t){var n=null,r=null;return function(){for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n&&a.every(function(u,f){return u===n[f]})||(n=a,r=t.apply(void 0,a)),r}};function Zle(e){var t;return e===0?t=1:t=Math.floor(new Mt(e).abs().log(10).toNumber())+1,t}function Yle(e,t,n){for(var r=new Mt(e),i=0,a=[];r.lt(t)&&i<1e5;)a.push(r.toNumber()),r=r.add(n),i++;return a}var Xle=lx(function(e,t,n){var r=+e,i=+t;return r+n*(i-r)}),Qle=lx(function(e,t,n){var r=t-+e;return r=r||1/0,(n-e)/r}),Jle=lx(function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))});const cx={rangeStep:Yle,getDigitCount:Zle,interpolateNumber:Xle,uninterpolateNumber:Qle,uninterpolateTruncation:Jle};function dP(e){return nce(e)||tce(e)||V6(e)||ece()}function ece(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
427In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tce(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function nce(e){if(Array.isArray(e))return fP(e)}function sp(e,t){return ace(e)||ice(e,t)||V6(e,t)||rce()}function rce(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
428In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function V6(e,t){if(e){if(typeof e=="string")return fP(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 fP(e,t)}}function fP(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){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),u;!(r=(u=o.next()).done)&&(n.push(u.value),!(t&&n.length===t));r=!0);}catch(f){i=!0,a=f}finally{try{!r&&o.return!=null&&o.return()}finally{if(i)throw a}}return n}}function ace(e){if(Array.isArray(e))return e}function W6(e){var t=sp(e,2),n=t[0],r=t[1],i=n,a=r;return n>r&&(i=r,a=n),[i,a]}function U6(e,t,n){if(e.lte(0))return new Mt(0);var r=cx.getDigitCount(e.toNumber()),i=new Mt(10).pow(r),a=e.div(i),o=r!==1?.05:.1,u=new Mt(Math.ceil(a.div(o).toNumber())).add(n).mul(o),f=u.mul(i);return t?f:new Mt(Math.ceil(f))}function oce(e,t,n){var r=1,i=new Mt(e);if(!i.isint()&&n){var a=Math.abs(e);a<1?(r=new Mt(10).pow(cx.getDigitCount(e)-1),i=new Mt(Math.floor(i.div(r).toNumber())).mul(r)):a>1&&(i=new Mt(Math.floor(e)))}
428else e===0?i=new Mt(Math.floor((t-1)/2)):n||(i=new Mt(Math.floor(e)));var o=Math.floor((t-1)/2),u=Kle(Gle(function(f){return i.add(new Mt(f-o).mul(r)).toNumber()}),cP);return u(0,t)}function H6(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 Mt(0),tickMin:new Mt(0),tickMax:new Mt(0)};var a=U6(new Mt(t).sub(e).div(n-1),r,i),o;e<=0&&t>=0?o=new Mt(0):(o=new Mt(e).add(t).div(2),o=o.sub(new Mt(o).mod(a)));var u=Math.ceil(o.sub(e).div(a).toNumber()),f=Math.ceil(new Mt(t).sub(o).div(a).toNumber()),h=u+f+1;return h>n?H6(e,t,n,r,i+1):(h<n&&(f=t>0?f+(n-h):f,u=t>0?u:u+(n-h)),{step:a,tickMin:o.sub(new Mt(u).mul(a)),tickMax:o.add(new Mt(f).mul(a))})}function sce(e){var t=sp(e,2),n=t[0],r=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(i,2),u=W6([n,r]),f=sp(u,2),h=f[0],g=f[1];if(h===-1/0||g===1/0){var p=g===1/0?[h].concat(dP(cP(0,i-1).map(function(){return 1/0}))):[].concat(dP(cP(0,i-1).map(function(){return-1/0})),[g]);return n>r?uP(p):p}if(h===g)return oce(h,i,a);var y=H6(h,g,o,a),w=y.step,j=y.tickMin,S=y.tickMax,_=cx.rangeStep(j,S.add(new Mt(.1).mul(w)),w);return n>r?uP(_):_}function lce(e,t){var n=sp(e,2),r=n[0],i=n[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=W6([r,i]),u=sp(o,2),f=u[0],h=u[1];if(f===-1/0||h===1/0)return[r,i];if(f===h)return[f];var g=Math.max(t,2),p=U6(new Mt(h).sub(f).div(g-1),a,0),y=[].concat(dP(cx.rangeStep(new Mt(f),new Mt(h).sub(new Mt(.99).mul(p)),p)),[h]);return r>i?uP(y):y}var cce=q6(sce),uce=q6(lce),dce="Invariant failed";function Pc(e,t){throw new Error(dce)}var fce=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];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 Zv(){return Zv=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},Zv.apply(this,arguments)}function hce(e,t){return vce(e)||gce(e,t)||mce(e,t)||pce()}function pce(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
429In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mce(e,t){if(e){if(typeof e=="string")return jD(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 jD(e,t)}}function jD(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 gce(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,u=[],f=!0,h=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(f=(r=a.call(n)).done)&&(u.push(r.value),u.length!==t);f=!0);}catch(g){h=!0,i=g}finally{try{if(!f&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(h)throw i}}return u}}function vce(e){if(Array.isArray(e))return e}function yce(e,t){if(e==null)return{};var n=xce(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function xce(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 wce(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,Z6(r.key),r)}}function _ce(e,t,n){return t&&wce(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Sce(e,t,n){return t=Yv(t),jce(e,G6()?Reflect.construct(t,n||[],Yv(e).constructor):t.apply(e,n))}function jce(e,t){if(t&&(Ad(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Pce(e)}function Pce(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function G6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(G6=function(){return!!e})()}function Yv(e){return Yv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Yv(e)}function Nce(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&&hP(e,t)}function hP(e,t){return hP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},hP(e,t)}function K6(e,t,n){return t=Z6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Z6(e){var t=Ace(e,"string");return Ad(t)=="symbol"?t:t+""}function Ace(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 String(e)}var am=(function(e){function t(){return bce(this,t),Sce(this,t,arguments)}return Nce(t,e),_ce(t,[{key:"render",value:function(){var r=this.props,i=r.offset,a=r.layout,o=r.width,u=r.dataKey,f=r.data,h=r.dataPointFormatter,g=r.xAxis,p=r.yAxis,y=yce(r,fce),w=vt(y,!1);this.props.direction==="x"&&g.type!=="number"&&Pc();var j=f.map(function(S){var _=h(S,u),P=_.x,O=_.y,C=_.value,E=_.errorVal;if(!E)return null;var T=[],M,I;if(Array.isArray(E)){var $=hce(E,2);M=$[0],I=$[1]}else M=I=E;
429if(a==="vertical"){var z=g.scale,Y=O+i,V=Y+o,q=Y-o,G=z(C-M),Q=z(C+I);T.push({x1:Q,y1:V,x2:Q,y2:q}),T.push({x1:G,y1:Y,x2:Q,y2:Y}),T.push({x1:G,y1:V,x2:G,y2:q})}else if(a==="horizontal"){var ne=p.scale,ie=P+i,re=ie-o,W=ie+o,oe=ne(C-M),U=ne(C+I);T.push({x1:re,y1:U,x2:W,y2:U}),T.push({x1:ie,y1:oe,x2:ie,y2:U}),T.push({x1:re,y1:oe,x2:W,y2:oe})}return K.createElement(vn,Zv({className:"recharts-errorBar",key:"bar-".concat(T.map(function(H){return"".concat(H.x1,"-").concat(H.x2,"-").concat(H.y1,"-").concat(H.y2)}))},w),T.map(function(H){return K.createElement("line",Zv({},H,{key:"line-".concat(H.x1,"-").concat(H.x2,"-").concat(H.y1,"-").concat(H.y2)}))}))});return K.createElement(vn,{className:"recharts-errorBars"},j)}}])})(K.Component);K6(am,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});K6(am,"displayName","ErrorBar");function lp(e){"@babel/helpers - typeof";return lp=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},lp(e)}function PD(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 Zl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?PD(Object(n),!0).forEach(function(r){Tce(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Tce(e,t,n){return t=kce(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kce(e){var t=Cce(e,"string");return lp(t)=="symbol"?t:t+""}function Cce(e,t){if(lp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(lp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Y6=function(t){var n=t.children,r=t.formattedGraphicalItems,i=t.legendWidth,a=t.legendContent,o=si(n,Js);if(!o)return null;var u=Js.defaultProps,f=u!==void 0?Zl(Zl({},u),o.props):{},h;return o.props&&o.props.payload?h=o.props&&o.props.payload:a==="children"?h=(r||[]).reduce(function(g,p){var y=p.item,w=p.props,j=w.sectors||w.data||[];return g.concat(j.map(function(S){return{type:o.props.iconType||y.props.legendType,value:S.name,color:S.fill,payload:S}}))},[]):h=(r||[]).map(function(g){var p=g.item,y=p.type.defaultProps,w=y!==void 0?Zl(Zl({},y),p.props):{},j=w.dataKey,S=w.name,_=w.legendType,P=w.hide;return{inactive:P,dataKey:j,type:f.iconType||_||"square",color:rT(p),value:S||j,payload:w}}),Zl(Zl(Zl({},f),Js.getWithHeight(o,i)),{},{payload:h,item:o})};function cp(e){"@babel/helpers - typeof";return cp=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},cp(e)}function ND(e){return Rce(e)||Mce(e)||Ece(e)||Oce()}function Oce(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
430In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ece(e,t){if(e){if(typeof e=="string")return pP(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 pP(e,t)}}function Mce(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Rce(e){if(Array.isArray(e))return pP(e)}function pP(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 AD(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 fn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};
430t%2?AD(Object(n),!0).forEach(function(r){Xu(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Xu(e,t,n){return t=Dce(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dce(e){var t=Ice(e,"string");return cp(t)=="symbol"?t:t+""}function Ice(e,t){if(cp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(cp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function mi(e,t,n){return ut(e)||ut(t)?n:$n(t)?$i(e,t,n):st(t)?t(e):n}function Oh(e,t,n,r){var i=Rle(e,function(u){return mi(u,t)});if(n==="number"){var a=i.filter(function(u){return Te(u)||parseFloat(u)});return a.length?[ox(a),ax(a)]:[1/0,-1/0]}var o=r?i.filter(function(u){return!ut(u)}):i;return o.map(function(u){return $n(u)||u instanceof Date?u:""})}var Lce=function(t){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,o=-1,u=(n=r==null?void 0:r.length)!==null&&n!==void 0?n:0;if(u<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var f=a.range,h=0;h<u;h++){var g=h>0?i[h-1].coordinate:i[u-1].coordinate,p=i[h].coordinate,y=h>=u-1?i[0].coordinate:i[h+1].coordinate,w=void 0;if(da(p-g)!==da(y-p)){var j=[];if(da(y-p)===da(f[1]-f[0])){w=y;var S=p+f[1]-f[0];j[0]=Math.min(S,(S+g)/2),j[1]=Math.max(S,(S+g)/2)}else{w=g;var _=y+f[1]-f[0];j[0]=Math.min(p,(_+p)/2),j[1]=Math.max(p,(_+p)/2)}var P=[Math.min(p,(w+p)/2),Math.max(p,(w+p)/2)];if(t>P[0]&&t<=P[1]||t>=j[0]&&t<=j[1]){o=i[h].index;break}}else{var O=Math.min(g,y),C=Math.max(g,y);if(t>(O+p)/2&&t<=(C+p)/2){o=i[h].index;break}}}else for(var E=0;E<u;E++)if(E===0&&t<=(r[E].coordinate+r[E+1].coordinate)/2||E>0&&E<u-1&&t>(r[E].coordinate+r[E-1].coordinate)/2&&t<=(r[E].coordinate+r[E+1].coordinate)/2||E===u-1&&t>(r[E].coordinate+r[E-1].coordinate)/2){o=r[E].index;break}return o},rT=function(t){var n,r=t,i=r.type.displayName,a=(n=t.type)!==null&&n!==void 0&&n.defaultProps?fn(fn({},t.type.defaultProps),t.props):t.props,o=a.stroke,u=a.fill,f;switch(i){case"Line":f=o;break;case"Area":case"Radar":f=o&&o!=="none"?o:u;break;default:f=u;break}return f},$ce=function(t){var n=t.barSize,r=t.totalSize,i=t.stackGroups,a=i===void 0?{}:i;if(!a)return{};for(var o={},u=Object.keys(a),f=0,h=u.length;f<h;f++)for(var g=a[u[f]].stackGroups,p=Object.keys(g),y=0,w=p.length;y<w;y++){var j=g[p[y]],S=j.items,_=j.cateAxisId,P=S.filter(function(I){return Eo(I.type).indexOf("Bar")>=0});if(P&&P.length){var O=P[0].type.defaultProps,C=O!==void 0?fn(fn({},O),P[0].props):P[0].props,E=C.barSize,T=C[_];o[T]||(o[T]=[]);var M=ut(E)?n:E;o[T].push({item:P[0],stackList:P.slice(1),barSize:ut(M)?void 0:Sc(M,r,0)})}}return o},Bce=function(t){var n=t.barGap,r=t.barCategoryGap,i=t.bandSize,a=t.sizeList,o=a===void 0?[]:a,u=t.maxBarSize,f=o.length;if(f<1)return null;var h=Sc(n,i,0,!0),g,p=[];if(o[0].barSize===+o[0].barSize){var y=!1,w=i/f,j=o.reduce(function(E,T){return E+T.barSize||0},0);j+=(f-1)*h,j>=i&&(j-=(f-1)*h,h=0),j>=i&&w>0&&(y=!0,w*=.9,j=f*w);var S=(i-j)/2>>0,_={offset:S-h,size:0};g=o.reduce(function(E,T){var M={item:T.item,position:{offset:_.offset+_.size+h,size:y?w:T.barSize}},I=[].concat(ND(E),[M]);return _=I[I.length-1].position,T.stackList&&T.stackList.length&&T.stackList.forEach(function($){I.push({item:$,position:_})}),I},p)}else{var P=Sc(r,i,0,!0);i-2*P-(f-1)*h<=0&&(h=0);var O=(i-2*P-(f-1)*h)/f;O>1&&(O>>=0);var C=u===+u?Math.min(O,u):O;g=o.reduce(function(E,T,M){var I=[].concat(ND(E),[{item:T.item,position:{offset:P+(O+h)*M+(O-C)/2,size:C}}]);return T.stackList&&T.stackList.length&&T.stackList.forEach(function($){I.push({item:$,position:I[I.length-1].position})}),I},p)}return g},Fce=function(t,n,r,i){var a=r.children,o=r.width,u=r.margin,f=o-(u.left||0)-(u.right||0),h=Y6({children:a,legendWidth:f});if(h){var g=i||{},p=g.width,y=g.height,w=h.align,j=h.verticalAlign,S=h.layout;if((S==="vertical"||S==="horizontal"&&j==="middle")&&w!=="center"&&Te(t[w]))return fn(fn({},t),{},Xu({},w,t[w]+(p||0)));if((S==="horizontal"||S==="vertical"&&w==="center")&&j!=="middle"&&Te(t[j]))return fn(fn({},t),{},Xu({},j,t[j]+(y||0)))}return t},zce=function(t,n,r){return ut(n)?!0:t==="horizontal"?n==="yAxis":t==="vertical"||r==="x"?n==="xAxis":r==="y"?n==="yAxis":!0},X6=function(t,n,r,i,a){var o=n.props.children,u=Bi(o,am).filter(function(h){return zce(i,a,h.props.direction)});if(u&&u.length){var f=u.map(function(h){return h.props.dataKey});return t.reduce(function(h,g){var p=mi(g,r);if(ut(p))return h;var y=Array.isArray(p)?[ox(p),ax(p)]:[p,p],w=f.reduce(function(j,S){var _=mi(g,S,0),P=y[0]-Math.abs(Array.isArray(_)?_[0]:_),O=y[1]+Math.abs(Array.isArray(_)?_[1]:_);return[Math.min(P,j[0]),Math.max(O,j[1])]},[1/0,-1/0]);return[Math.min(w[0],h[0]),Math.max(w[1],h[1])]},[1/0,-1/0])}return null},qce=function(t,n,r,i,a){var o=n.map(function(u){return X6(t,u,r,a,i)}).filter(function(u){return!ut(u)});return o&&o.length?o.reduce(function(u,f){return[Math.min(u[0],f[0]),Math.max(u[1],f[1])]},[1/0,-1/0]):null},Q6=function(t,n,r,i,a){var o=n.map(function(f){var h=f.props.dataKey;return r==="number"&&h&&X6(t,f,h,i)||Oh(t,h,r,a)});if(r==="number")return o.reduce(function(f,h){return[Math.min(f[0],h[0]),Math.max(f[1],h[1])]},[1/0,-1/0]);var u={};return o.reduce(function(f,h){for(var g=0,p=h.length;g<p;g++)u[h[g]]||(u[h[g]]=!0,f.push(h[g]));return f},[])},J6=function(t,n){return t==="horizontal"&&n==="xAxis"||t==="vertical"&&n==="yAxis"||t==="centric"&&n==="angleAxis"||t==="radial"&&n==="radiusAxis"},ez=function(t,n,r,i){if(i)return t.map(function(f){return f.coordinate});var a,o,u=t.map(function(f){return f.coordinate===n&&(a=!0),f.coordinate===r&&(o=!0),f.coordinate});return a||u.push(n),o||u.push(r),u},To=function(t,n,r){if(!t)return null;var i=t.scale,a=t.duplicateDomain,o=t.type,u=t.range,f=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,h=(n||r)&&o==="category"&&i.bandwidth?i.bandwidth()/f:0;if(h=t.axisType==="angleAxis"&&(u==null?void 0:u.length)>=2?da(u[0]-u[1])*2*h:h,n&&(t.ticks||t.niceTicks)){var g=(t.ticks||t.niceTicks).map(function(p){var y=a?a.indexOf(p):p;return{coordinate:i(y)+h,value:p,offset:h}});return g.filter(function(p){return!Qp(p.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(p,y){return{coordinate:i(p)+h,value:p,index:y,offset:h}}
430):i.ticks&&!r?i.ticks(t.tickCount).map(function(p){return{coordinate:i(p)+h,value:p,offset:h}}):i.domain().map(function(p,y){return{coordinate:i(p)+h,value:a?a[p]:p,index:y,offset:h}})},eS=new WeakMap,Hg=function(t,n){if(typeof n!="function")return t;eS.has(t)||eS.set(t,new WeakMap);var r=eS.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},Vce=function(t,n,r){var i=t.scale,a=t.type,o=t.layout,u=t.axisType;if(i==="auto")return o==="radial"&&u==="radiusAxis"?{scale:tp(),realScaleType:"band"}:o==="radial"&&u==="angleAxis"?{scale:Wv(),realScaleType:"linear"}:a==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:Ch(),realScaleType:"point"}:a==="category"?{scale:tp(),realScaleType:"band"}:{scale:Wv(),realScaleType:"linear"};if(_c(i)){var f="scale".concat(Hy(i));return{scale:(fD[f]||Ch)(),realScaleType:fD[f]?f:"point"}}return st(i)?{scale:i}:{scale:Ch(),realScaleType:"point"}},TD=1e-4,Wce=function(t){var n=t.domain();if(!(!n||n.length<=2)){var r=n.length,i=t.range(),a=Math.min(i[0],i[1])-TD,o=Math.max(i[0],i[1])+TD,u=t(n[0]),f=t(n[r-1]);(u<a||u>o||f<a||f>o)&&t.domain([n[0],n[r-1]])}},Uce=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},Hce=function(t,n){if(!n||n.length!==2||!Te(n[0])||!Te(n[1]))return t;var r=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]),a=[t[0],t[1]];return(!Te(t[0])||t[0]<r)&&(a[0]=r),(!Te(t[1])||t[1]>i)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]<r&&(a[1]=r),a},Gce=function(t){var n=t.length;if(!(n<=0))for(var r=0,i=t[0].length;r<i;++r)for(var a=0,o=0,u=0;u<n;++u){var f=Qp(t[u][r][1])?t[u][r][0]:t[u][r][1];f>=0?(t[u][r][0]=a,t[u][r][1]=a+f,a=t[u][r][1]):(t[u][r][0]=o,t[u][r][1]=o+f,o=t[u][r][1])}},Kce=function(t){var n=t.length;if(!(n<=0))for(var r=0,i=t[0].length;r<i;++r)for(var a=0,o=0;o<n;++o){var u=Qp(t[o][r][1])?t[o][r][0]:t[o][r][1];u>=0?(t[o][r][0]=a,t[o][r][1]=a+u,a=t[o][r][1]):(t[o][r][0]=0,t[o][r][1]=0)}},Zce={sign:Gce,expand:Ene,none:xd,silhouette:Mne,wiggle:Rne,positive:Kce},Yce=function(t,n,r){var i=n.map(function(u){return u.props.dataKey}),a=Zce[r],o=One().keys(i).value(function(u,f){return+mi(u,f,0)}).order(Wj).offset(a);return o(t)},Xce=function(t,n,r,i,a,o){if(!t)return null;var u=o?n.reverse():n,f={},h=u.reduce(function(p,y){var w,j=(w=y.type)!==null&&w!==void 0&&w.defaultProps?fn(fn({},y.type.defaultProps),y.props):y.props,S=j.stackId,_=j.hide;if(_)return p;var P=j[r],O=p[P]||{hasStack:!1,stackGroups:{}};if($n(S)){var C=O.stackGroups[S]||{numericAxisId:r,cateAxisId:i,items:[]};C.items.push(y),O.hasStack=!0,O.stackGroups[S]=C}else O.stackGroups[Jp("_stackId_")]={numericAxisId:r,cateAxisId:i,items:[y]};return fn(fn({},p),{},Xu({},P,O))},f),g={};return Object.keys(h).reduce(function(p,y){var w=h[y];if(w.hasStack){var j={};w.stackGroups=Object.keys(w.stackGroups).reduce(function(S,_){var P=w.stackGroups[_];return fn(fn({},S),{},Xu({},_,{numericAxisId:r,cateAxisId:i,items:P.items,stackedData:Yce(t,P.items,a)}))},j)}return fn(fn({},p),{},Xu({},y,w))},g)},Qce=function(t,n){var r=n.realScaleType,i=n.type,a=n.tickCount,o=n.originalDomain,u=n.allowDecimals,f=r||n.scale;if(f!=="auto"&&f!=="linear")return null;if(a&&i==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var h=t.domain();if(!h.length)return null;var g=cce(h,a,u);return t.domain([ox(g),ax(g)]),{niceTicks:g}}if(a&&i==="number"){var p=t.domain(),y=uce(p,a,u);return{niceTicks:y}}return null};function kD(e){var t=e.axis,n=e.ticks,r=e.bandSize,i=e.entry,a=e.index,o=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!ut(i[t.dataKey])){var u=Sv(n,"value",i[t.dataKey]);if(u)return u.coordinate+r/2}return n[a]?n[a].coordinate+r/2:null}var f=mi(i,ut(o)?t.dataKey:o);return ut(f)?null:t.scale(f)}var CD=function(t){var n=t.axis,r=t.ticks,i=t.offset,a=t.bandSize,o=t.entry,u=t.index;if(n.type==="category")return r[u]?r[u].coordinate+i:null;var f=mi(o,n.dataKey,n.domain[u]);return ut(f)?null:n.scale(f)-a/2+i},Jce=function(t){var n=t.numericAxis,r=n.scale.domain();if(n.type==="number"){var i=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);return i<=0&&a>=0?0:a<0?a:i}return r[0]},eue=function(t,n){var r,i=(r=t.type)!==null&&r!==void 0&&r.defaultProps?fn(fn({},t.type.defaultProps),t.props):t.props,a=i.stackId;if($n(a)){var o=n[a];if(o){var u=o.items.indexOf(t);return u>=0?o.stackedData[u]:null}}return null},tue=function(t){return t.reduce(function(n,r){return[ox(r.concat([n[0]]).filter(Te)),ax(r.concat([n[1]]).filter(Te))]},[1/0,-1/0])},tz=function(t,n,r){return Object.keys(t).reduce(function(i,a){var o=t[a],u=o.stackedData,f=u.reduce(function(h,g){var p=tue(g.slice(n,r+1));return[Math.min(h[0],p[0]),Math.max(h[1],p[1])]},[1/0,-1/0]);return[Math.min(f[0],i[0]),Math.max(f[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},OD=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,ED=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,mP=function(t,n,r){if(st(t))return t(n,r);if(!Array.isArray(t))return n;var i=[];if(Te(t[0]))i[0]=r?t[0]:Math.min(t[0],n[0]);else if(OD.test(t[0])){var a=+OD.exec(t[0])[1];i[0]=n[0]-a}else st(t[0])?i[0]=t[0](n[0]):i[0]=n[0];if(Te(t[1]))i[1]=r?t[1]:Math.max(t[1],n[1]);else if(ED.test(t[1])){var o=+ED.exec(t[1])[1];i[1]=n[1]+o}else st(t[1])?i[1]=t[1](n[1]):i[1]=n[1];return i},Xv=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 a=OA(n,function(p){return p.coordinate}),o=1/0,u=1,f=a.length;u<f;u++){var h=a[u],g=a[u-1];o=Math.min((h.coordinate||0)-(g.coordinate||0),o)}return o===1/0?0:o}return r?void 0:0},MD=function(t,n,r){return!t||!t.length||sx(t,$i(r,"type.defaultProps.domain"))?n:t},nz=function(t,n){var r=t.type.defaultProps?fn(fn({},t.type.defaultProps),t.props):t.props,i=r.dataKey,a=r.name,o=r.unit,u=r.formatter,f=r.tooltipType,h=r.chartType,g=r.hide;return fn(fn({},vt(t,!1)),{},{dataKey:i,unit:o,formatter:u,name:a||i,color:rT(t),value:mi(n,i),type:f,payload:n,chartType:h,hide:g})};function up(e){"@babel/helpers - typeof";return up=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},up(e)}function RD(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 DD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};
430t%2?RD(Object(n),!0).forEach(function(r){nue(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function nue(e,t,n){return t=rue(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rue(e){var t=iue(e,"string");return up(t)=="symbol"?t:t+""}function iue(e,t){if(up(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(up(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Qv=Math.PI/180,aue=function(t){return t*180/Math.PI},nr=function(t,n,r,i){return{x:t+Math.cos(-Qv*i)*r,y:n+Math.sin(-Qv*i)*r}},oue=function(t,n){var r=t.x,i=t.y,a=n.x,o=n.y;return Math.sqrt(Math.pow(r-a,2)+Math.pow(i-o,2))},sue=function(t,n){var r=t.x,i=t.y,a=n.cx,o=n.cy,u=oue({x:r,y:i},{x:a,y:o});if(u<=0)return{radius:u};var f=(r-a)/u,h=Math.acos(f);return i>o&&(h=2*Math.PI-h),{radius:u,angle:aue(h),angleInRadian:h}},lue=function(t){var n=t.startAngle,r=t.endAngle,i=Math.floor(n/360),a=Math.floor(r/360),o=Math.min(i,a);return{startAngle:n-o*360,endAngle:r-o*360}},cue=function(t,n){var r=n.startAngle,i=n.endAngle,a=Math.floor(r/360),o=Math.floor(i/360),u=Math.min(a,o);return t+u*360},ID=function(t,n){var r=t.x,i=t.y,a=sue({x:r,y:i},n),o=a.radius,u=a.angle,f=n.innerRadius,h=n.outerRadius;if(o<f||o>h)return!1;if(o===0)return!0;var g=lue(n),p=g.startAngle,y=g.endAngle,w=u,j;if(p<=y){for(;w>y;)w-=360;for(;w<p;)w+=360;j=w>=p&&w<=y}else{for(;w>p;)w-=360;for(;w<y;)w+=360;j=w>=y&&w<=p}return j?DD(DD({},n),{},{radius:o,angle:cue(w,n)}):null};function dp(e){"@babel/helpers - typeof";return dp=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},dp(e)}var uue=["offset"];function due(e){return mue(e)||pue(e)||hue(e)||fue()}function fue(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
431In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hue(e,t){if(e){if(typeof e=="string")return gP(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 gP(e,t)}}function pue(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function mue(e){if(Array.isArray(e))return gP(e)}function gP(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 gue(e,t){if(e==null)return{};var n=vue(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function vue(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 LD(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?LD(Object(n),!0).forEach(function(r){yue(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function yue(e,t,n){return t=xue(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xue(e){var t=bue(e,"string");return dp(t)=="symbol"?t:t+""}function bue(e,t){if(dp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(dp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function fp(){return fp=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},fp.apply(this,arguments)}var wue=function(t){var n=t.value,r=t.formatter,i=ut(t.children)?n:t.children;return st(r)?r(i):i},_ue=function(t,n){var r=da(n-t),i=Math.min(Math.abs(n-t),360);return r*i},Sue=function(t,n,r){var i=t.position,a=t.viewBox,o=t.offset,u=t.className,f=a,h=f.cx,g=f.cy,p=f.innerRadius,y=f.outerRadius,w=f.startAngle,j=f.endAngle,S=f.clockWise,_=(p+y)/2,P=_ue(w,j),O=P>=0?1:-1,C,E;i==="insideStart"?(C=w+O*o,E=S):i==="insideEnd"?(C=j-O*o,E=!S):i==="end"&&(C=j+O*o,E=S),E=P<=0?E:!E;var T=nr(h,g,_,C),M=nr(h,g,_,C+(E?1:-1)*359),I="M".concat(T.x,",").concat(T.y,`
432    A`).concat(_,",").concat(_,",0,1,").concat(E?0:1,`,
433    `).concat(M.x,",").concat(M.y),$=ut(t.id)?Jp("recharts-radial-line-"):t.id;return K.createElement("text",fp({},r,{dominantBaseline:"central",className:yt("recharts-radial-bar-label",u)}),K.createElement("defs",null,K.createElement("path",{id:$,d:I})),K.createElement("textPath",{xlinkHref:"#".concat($)},n))},jue=function(t){var n=t.viewBox,r=t.offset,i=t.position,a=n,o=a.cx,u=a.cy,f=a.innerRadius,h=a.outerRadius,g=a.startAngle,p=a.endAngle,y=(g+p)/2;if(i==="outside"){var w=nr(o,u,h+r,y),j=w.x,S=w.y;return{x:j,y:S,textAnchor:j>=o?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:o,y:u,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:o,y:u,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:o,y:u,textAnchor:"middle",verticalAnchor:"end"};var _=(f+h)/2,P=nr(o,u,_,y),O=P.x,C=P.y;return{x:O,y:C,textAnchor:"middle",verticalAnchor:"middle"}},Pue=function(t){var n=t.viewBox,r=t.parentViewBox,i=t.offset,a=t.position,o=n,u=o.x,f=o.y,h=o.width,g=o.height,p=g>=0?1:-1,y=p*i,w=p>0?"end":"start",j=p>0?"start":"end",S=h>=0?1:-1,_=S*i,P=S>0?"end":"start",O=S>0?"start":"end";if(a==="top"){var C={x:u+h/2,y:f-p*i,textAnchor:"middle",verticalAnchor:w};return Rn(Rn({},C),r?{height:Math.max(f-r.y,0),width:h}:{})}if(a==="bottom"){var E={x:u+h/2,y:f+g+y,textAnchor:"middle",verticalAnchor:j};return Rn(Rn({},E),r?{height:Math.max(r.y+r.height-(f+g),0),width:h}:{})}if(a==="left"){var T={x:u-_,y:f+g/2,textAnchor:P,verticalAnchor:"middle"};return Rn(Rn({},T),r?{width:Math.max(T.x-r.x,0),height:g}:{})}if(a==="right"){var M={x:u+h+_,y:f+g/2,textAnchor:O,verticalAnchor:"middle"};return Rn(Rn({},M),r?{width:Math.max(r.x+r.width-M.x,0),height:g}:{})}var I=r?{width:h,height:g}:{};return a==="insideLeft"?Rn({x:u+_,y:f+g/2,textAnchor:O,verticalAnchor:"middle"},I):a==="insideRight"?Rn({x:u+h-_,y:f+g/2,textAnchor:P,verticalAnchor:"middle"},I):a==="insideTop"?Rn({x:u+h/2,y:f+y,textAnchor:"middle",verticalAnchor:j},I):a==="insideBottom"?Rn({x:u+h/2,y:f+g-y,textAnchor:"middle",verticalAnchor:w},I):a==="insideTopLeft"?Rn({x:u+_,y:f+y,textAnchor:O,verticalAnchor:j},I):a==="insideTopRight"?Rn({x:u+h-_,y:f+y,textAnchor:P,verticalAnchor:j},I):a==="insideBottomLeft"?Rn({x:u+_,y:f+g-y,textAnchor:O,verticalAnchor:w},I):a==="insideBottomRight"?Rn({x:u+h-_,y:f+g-y,textAnchor:P,verticalAnchor:w},I):ef(a)&&(Te(a.x)||ac(a.x))&&(Te(a.y)||ac(a.y))?Rn({x:u+Sc(a.x,h),y:f+Sc(a.y,g),textAnchor:"end",verticalAnchor:"end"},I):Rn({x:u+h/2,y:f+g/2,textAnchor:"middle",verticalAnchor:"middle"},I)},Nue=function(t){return"cx"in t&&Te(t.cx)};function vr(e){var t=e.offset,n=t===void 0?5:t,r=gue(e,uue),i=Rn({offset:n},r),a=i.viewBox,o=i.position,u=i.value,f=i.children,h=i.content,g=i.className,p=g===void 0?"":g,y=i.textBreakAll;if(!a||ut(u)&&ut(f)&&!k.isValidElement(h)&&!st(h))return null;if(k.isValidElement(h))return k.cloneElement(h,i);var w;if(st(h)){if(w=k.createElement(h,i),k.isValidElement(w))return w}else w=wue(i);var j=Nue(a),S=vt(i,!0);if(j&&(o==="insideStart"||o==="insideEnd"||o==="end"))return Sue(i,w,S);var _=j?jue(i):Pue(i);return K.createElement(Iv,fp({className:yt("recharts-label",p)},S,_,{breakAll:y}),w)}vr.displayName="Label";var rz=function(t){var n=t.cx,r=t.cy,i=t.angle,a=t.startAngle,o=t.endAngle,u=t.r,f=t.radius,h=t.innerRadius,g=t.outerRadius,p=t.x,y=t.y,w=t.top,j=t.left,S=t.width,_=t.height,P=t.clockWise,O=t.labelViewBox;if(O)return O;if(Te(S)&&Te(_)){if(Te(p)&&Te(y))return{x:p,y,width:S,height:_};if(Te(w)&&Te(j))return{x:w,y:j,width:S,height:_}}return Te(p)&&Te(y)?{x:p,y,width:0,height:0}:Te(n)&&Te(r)?{cx:n,cy:r,startAngle:a||i||0,endAngle:o||i||0,innerRadius:h||0,outerRadius:g||f||u||0,clockWise:P}:t.viewBox?t.viewBox:{}},Aue=function(t,n){return t?t===!0?K.createElement(vr,{key:"label-implicit",viewBox:n}):$n(t)?K.createElement(vr,{key:"label-implicit",viewBox:n,value:t}):k.isValidElement(t)?t.type===vr?k.cloneElement(t,{key:"label-implicit",viewBox:n}):K.createElement(vr,{key:"label-implicit",content:t,viewBox:n}):st(t)?K.createElement(vr,{key:"label-implicit",content:t,viewBox:n}):ef(t)?K.createElement(vr,fp({viewBox:n},t,{key:"label-implicit"})):null:null},Tue=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,a=rz(t),o=Bi(i,vr).map(function(f,h){return k.cloneElement(f,{viewB
433ox:n||a,key:"label-".concat(h)})});if(!r)return o;var u=Aue(t.label,n||a);return[u].concat(due(o))};vr.parseViewBox=rz;vr.renderCallByParent=Tue;var tS,$D;function kue(){if($D)return tS;$D=1;function e(t){var n=t==null?0:t.length;return n?t[n-1]:void 0}return tS=e,tS}var Cue=kue();const Oue=kt(Cue);function hp(e){"@babel/helpers - typeof";return hp=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},hp(e)}var Eue=["valueAccessor"],Mue=["data","dataKey","clockWise","id","textBreakAll"];function Rue(e){return $ue(e)||Lue(e)||Iue(e)||Due()}function Due(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
434In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Iue(e,t){if(e){if(typeof e=="string")return vP(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 vP(e,t)}}function Lue(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function $ue(e){if(Array.isArray(e))return vP(e)}function vP(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 Jv(){return Jv=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},Jv.apply(this,arguments)}function BD(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 FD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?BD(Object(n),!0).forEach(function(r){Bue(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Bue(e,t,n){return t=Fue(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fue(e){var t=zue(e,"string");return hp(t)=="symbol"?t:t+""}function zue(e,t){if(hp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(hp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function zD(e,t){if(e==null)return{};var n=que(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function que(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 Vue=function(t){return Array.isArray(t.value)?Oue(t.value):t.value};function tl(e){var t=e.valueAccessor,n=t===void 0?Vue:t,r=zD(e,Eue),i=r.data,a=r.dataKey,o=r.clockWise,u=r.id,f=r.textBreakAll,h=zD(r,Mue);return!i||!i.length?null:K.createElement(vn,{className:"recharts-label-list"},i.map(function(g,p){var y=ut(a)?n(g,p):mi(g&&g.payload,a),w=ut(u)?{}:{id:"".concat(u,"-").concat(p)};return K.createElement(vr,Jv({},vt(g,!0),h,w,{parentViewBox:g.parentViewBox,value:y,textBreakAll:f,viewBox:vr.parseViewBox(ut(o)?g:FD(FD({},g),{},{clockWise:o})),key:"label-".concat(p),index:p}))}))}tl.displayName="LabelList";function Wue(e,t){return e?e===!0?K.createElement(tl,{key:"labelList-implicit",data:t}):K.isValidElement(e)||st(e)?K.createElement(tl,{key:"labelList-implicit",data:t,content:e}):ef(e)?K.createElement(tl,Jv({data:t},e,{key:"labelList-implicit"})):null:null}function Uue(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=Bi(r,tl).map(function(o,u){return k.cloneElement(o,{data:t,key:"labelList-".concat(u)})});if(!n)return i;var a=Wue(e.label,t);return[a].concat(Rue(i))}tl.renderCallByParent=Uue;function pp(e){"@babel/helpers - typeof";return pp=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},pp(e)}function yP(){return yP=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},yP.apply(this,arguments)}function qD(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 VD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};
434t%2?qD(Object(n),!0).forEach(function(r){Hue(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Hue(e,t,n){return t=Gue(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gue(e){var t=Kue(e,"string");return pp(t)=="symbol"?t:t+""}function Kue(e,t){if(pp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(pp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Zue=function(t,n){var r=da(n-t),i=Math.min(Math.abs(n-t),359.999);return r*i},Gg=function(t){var n=t.cx,r=t.cy,i=t.radius,a=t.angle,o=t.sign,u=t.isExternal,f=t.cornerRadius,h=t.cornerIsExternal,g=f*(u?1:-1)+i,p=Math.asin(f/g)/Qv,y=h?a:a+o*p,w=nr(n,r,g,y),j=nr(n,r,i,y),S=h?a-o*p:a,_=nr(n,r,g*Math.cos(p*Qv),S);return{center:w,circleTangency:j,lineTangency:_,theta:p}},iz=function(t){var n=t.cx,r=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.startAngle,u=t.endAngle,f=Zue(o,u),h=o+f,g=nr(n,r,a,o),p=nr(n,r,a,h),y="M ".concat(g.x,",").concat(g.y,`
435    A `).concat(a,",").concat(a,`,0,
436    `).concat(+(Math.abs(f)>180),",").concat(+(o>h),`,
437    `).concat(p.x,",").concat(p.y,`
438  `);if(i>0){var w=nr(n,r,i,o),j=nr(n,r,i,h);y+="L ".concat(j.x,",").concat(j.y,`
439            A `).concat(i,",").concat(i,`,0,
440            `).concat(+(Math.abs(f)>180),",").concat(+(o<=h),`,
441            `).concat(w.x,",").concat(w.y," Z")}else y+="L ".concat(n,",").concat(r," Z");return y},Yue=function(t){var n=t.cx,r=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.cornerRadius,u=t.forceCornerRadius,f=t.cornerIsExternal,h=t.startAngle,g=t.endAngle,p=da(g-h),y=Gg({cx:n,cy:r,radius:a,angle:h,sign:p,cornerRadius:o,cornerIsExternal:f}),w=y.circleTangency,j=y.lineTangency,S=y.theta,_=Gg({cx:n,cy:r,radius:a,angle:g,sign:-p,cornerRadius:o,cornerIsExternal:f}),P=_.circleTangency,O=_.lineTangency,C=_.theta,E=f?Math.abs(h-g):Math.abs(h-g)-S-C;if(E<0)return u?"M ".concat(j.x,",").concat(j.y,`
442        a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0
443        a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0
444      `):iz({cx:n,cy:r,innerRadius:i,outerRadius:a,startAngle:h,endAngle:g});var T="M ".concat(j.x,",").concat(j.y,`
445    A`).concat(o,",").concat(o,",0,0,").concat(+(p<0),",").concat(w.x,",").concat(w.y,`
446    A`).concat(a,",").concat(a,",0,").concat(+(E>180),",").concat(+(p<0),",").concat(P.x,",").concat(P.y,`
447    A`).concat(o,",").concat(o,",0,0,").concat(+(p<0),",").concat(O.x,",").concat(O.y,`
448  `);if(i>0){var M=Gg({cx:n,cy:r,radius:i,angle:h,sign:p,isExternal:!0,cornerRadius:o,cornerIsExternal:f}),I=M.circleTangency,$=M.lineTangency,z=M.theta,Y=Gg({cx:n,cy:r,radius:i,angle:g,sign:-p,isExternal:!0,cornerRadius:o,cornerIsExternal:f}),V=Y.circleTangency,q=Y.lineTangency,G=Y.theta,Q=f?Math.abs(h-g):Math.abs(h-g)-z-G;if(Q<0&&o===0)return"".concat(T,"L").concat(n,",").concat(r,"Z");T+="L".concat(q.x,",").concat(q.y,`
449      A`).concat(o,",").concat(o,",0,0,").concat(+(p<0),",").concat(V.x,",").concat(V.y,`
450      A`).concat(i,",").concat(i,",0,").concat(+(Q>180),",").concat(+(p>0),",").concat(I.x,",").concat(I.y,`
451      A`).concat(o,",").concat(o,",0,0,").concat(+(p<0),",").concat($.x,",").concat($.y,"Z")}else T+="L".concat(n,",").concat(r,"Z");return T},Xue={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},az=function(t){var n=VD(VD({},Xue),t),r=n.cx,i=n.cy,a=n.innerRadius,o=n.outerRadius,u=n.cornerRadius,f=n.forceCornerRadius,h=n.cornerIsExternal,g=n.startAngle,p=n.endAngle,y=n.className;if(o<a||g===p)return null;var w=yt("recharts-sector",y),j=o-a,S=Sc(u,j,0,!0),_;return S>0&&Math.abs(g-p)<360?_=Yue({cx:r,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(S,j/2),forceCornerRadius:f,cornerIsExternal:h,startAngle:g,endAngle:p}):_=iz({cx:r,cy:i,innerRadius:a,outerRadius:o,startAngle:g,endAngle:p}),K.createElement("path",yP({},vt(n,!0),{className:w,d:_,role:"img"}))};function mp(e){"@babel/helpers - typeof";return mp=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},mp(e)}function xP(){return xP=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},xP.apply(this,arguments)}function WD(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 UD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};
451t%2?WD(Object(n),!0).forEach(function(r){Que(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Que(e,t,n){return t=Jue(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jue(e){var t=ede(e,"string");return mp(t)=="symbol"?t:t+""}function ede(e,t){if(mp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(mp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var HD={curveBasisClosed:bne,curveBasisOpen:wne,curveBasis:xne,curveBumpX:ane,curveBumpY:one,curveLinearClosed:_ne,curveLinear:Ky,curveMonotoneX:Sne,curveMonotoneY:jne,curveNatural:Pne,curveStep:Nne,curveStepAfter:Tne,curveStepBefore:Ane},Kg=function(t){return t.x===+t.x&&t.y===+t.y},dh=function(t){return t.x},fh=function(t){return t.y},tde=function(t,n){if(st(t))return t;var r="curve".concat(Hy(t));return(r==="curveMonotone"||r==="curveBump")&&n?HD["".concat(r).concat(n==="vertical"?"Y":"X")]:HD[r]||Ky},nde=function(t){var n=t.type,r=n===void 0?"linear":n,i=t.points,a=i===void 0?[]:i,o=t.baseLine,u=t.layout,f=t.connectNulls,h=f===void 0?!1:f,g=tde(r,u),p=h?a.filter(function(S){return Kg(S)}):a,y;if(Array.isArray(o)){var w=h?o.filter(function(S){return Kg(S)}):o,j=p.map(function(S,_){return UD(UD({},S),{},{base:w[_]})});return u==="vertical"?y=Bg().y(fh).x1(dh).x0(function(S){return S.base.x}):y=Bg().x(dh).y1(fh).y0(function(S){return S.base.y}),y.defined(Kg).curve(g),y(j)}return u==="vertical"&&Te(o)?y=Bg().y(fh).x1(dh).x0(o):Te(o)?y=Bg().x(dh).y1(fh).y0(o):y=uF().x(dh).y(fh),y.defined(Kg).curve(g),y(p)},bP=function(t){var n=t.className,r=t.points,i=t.path,a=t.pathRef;if((!r||!r.length)&&!i)return null;var o=r&&r.length?nde(t):i;return k.createElement("path",xP({},vt(t,!1),jv(t),{className:yt("recharts-curve",n),d:o,ref:a}))},nS={exports:{}},rS,GD;function rde(){if(GD)return rS;GD=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return rS=e,rS}var iS,KD;function ide(){if(KD)return iS;KD=1;var e=rde();function t(){}function n(){}return n.resetWarningCache=t,iS=function(){function r(o,u,f,h,g,p){if(p!==e){var y=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 y.name="Invariant Violation",y}}r.isRequired=r;function i(){return r}var a={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 a.PropTypes=a,a},iS}var ZD;function ade(){return ZD||(ZD=1,nS.exports=ide()()),nS.exports}var ode=ade();const Nt=kt(ode),{getOwnPropertyNames:sde,getOwnPropertySymbols:lde}=Object,{hasOwnProperty:cde}=Object.prototype;function aS(e,t){return function(r,i,a){return e(r,i,a)&&t(r,i,a)}}function Zg(e){return function(n,r,i){if(!n||!r||typeof n!="object"||typeof r!="object")return e(n,r,i);const{cache:a}=i,o=a.get(n),u=a.get(r);if(o&&u)return o===r&&u===n;a.set(n,r),a.set(r,n);const f=e(n,r,i);return a.delete(n),a.delete(r),f}}function ude(e){return e!=null?e[Symbol.toStringTag]:void 0}function YD(e){return sde(e).concat(lde(e))}const dde=Object.hasOwn||((e,t)=>cde.call(e,t));function $c(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const fde="__v",hde="__o",pde="_owner",{getOwnPropertyDescriptor:XD,keys:QD}=Object;function mde(e,t){return e.byteLength===t.byteLength&&ey(new Uint8Array(e),new Uint8Array(t))}function gde(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 vde(e,t){return e.byteLength===t.byteLength&&ey(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function yde(e,t){return $c(e.getTime(),t.getTime())}function xde(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function bde(e,t){return e===t}function JD(e,t,n){const r=e.size;if(r!==t.size)return!1;if(!r)return!0;const i=new Array(r),a=e.entries();let o,u,f=0;for(;(o=a.next())&&!o.done;){const h=t.entries();let g=!1,p=0;for(;(u=h.next())&&!u.done;){if(i[p]){p++;continue}const y=o.value,w=u.value;if(n.equals(y[0],w[0],f,p,e,t,n)&&n.equals(y[1],w[1],y[0],w[0],e,t,n)){g=i[p]=!0;break}p++}if(!g)return!1;f++}return!0}const wde=$c;function _de(e,t,n){const r=QD(e);let i=r.length;if(QD(t).length!==i)return!1;for(;i-- >0;)if(!oz(e,t,n,r[i]))return!1;return!0}function hh(e,t,n){const r=YD(e);let i=r.length;if(YD(t).length!==i)return!1;let a,o,u;for(;i-- >0;)if(a=r[i],!oz(e,t,n,a)||(o=XD(e,a),u=XD(t,a),(o||u)&&(!o||!u||o.configurable!==u.configurable||o.enumerable!==u.enumerable||o.writable!==u.writable)))return!1;return!0}function Sde(e,t){return $c(e.valueOf(),t.valueOf())}
451function jde(e,t){return e.source===t.source&&e.flags===t.flags}function eI(e,t,n){const r=e.size;if(r!==t.size)return!1;if(!r)return!0;const i=new Array(r),a=e.values();let o,u;for(;(o=a.next())&&!o.done;){const f=t.values();let h=!1,g=0;for(;(u=f.next())&&!u.done;){if(!i[g]&&n.equals(o.value,u.value,o.value,u.value,e,t,n)){h=i[g]=!0;break}g++}if(!h)return!1}return!0}function ey(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 Pde(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 oz(e,t,n,r){return(r===pde||r===hde||r===fde)&&(e.$$typeof||t.$$typeof)?!0:dde(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}const Nde="[object ArrayBuffer]",Ade="[object Arguments]",Tde="[object Boolean]",kde="[object DataView]",Cde="[object Date]",Ode="[object Error]",Ede="[object Map]",Mde="[object Number]",Rde="[object Object]",Dde="[object RegExp]",Ide="[object Set]",Lde="[object String]",$de={"[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]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},Bde="[object URL]",Fde=Object.prototype.toString;function zde({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:n,areDatesEqual:r,areErrorsEqual:i,areFunctionsEqual:a,areMapsEqual:o,areNumbersEqual:u,areObjectsEqual:f,arePrimitiveWrappersEqual:h,areRegExpsEqual:g,areSetsEqual:p,areTypedArraysEqual:y,areUrlsEqual:w,unknownTagComparators:j}){return function(_,P,O){if(_===P)return!0;if(_==null||P==null)return!1;const C=typeof _;if(C!==typeof P)return!1;if(C!=="object")return C==="number"?u(_,P,O):C==="function"?a(_,P,O):!1;const E=_.constructor;if(E!==P.constructor)return!1;if(E===Object)return f(_,P,O);if(Array.isArray(_))return t(_,P,O);if(E===Date)return r(_,P,O);if(E===RegExp)return g(_,P,O);if(E===Map)return o(_,P,O);if(E===Set)return p(_,P,O);const T=Fde.call(_);if(T===Cde)return r(_,P,O);if(T===Dde)return g(_,P,O);if(T===Ede)return o(_,P,O);if(T===Ide)return p(_,P,O);if(T===Rde)return typeof _.then!="function"&&typeof P.then!="function"&&f(_,P,O);if(T===Bde)return w(_,P,O);if(T===Ode)return i(_,P,O);if(T===Ade)return f(_,P,O);if($de[T])return y(_,P,O);if(T===Nde)return e(_,P,O);if(T===kde)return n(_,P,O);if(T===Tde||T===Mde||T===Lde)return h(_,P,O);if(j){let M=j[T];if(!M){const I=ude(_);I&&(M=j[I])}if(M)return M(_,P,O)}return!1}}function qde({circular:e,createCustomConfig:t,strict:n}){let r={areArrayBuffersEqual:mde,areArraysEqual:n?hh:gde,areDataViewsEqual:vde,areDatesEqual:yde,areErrorsEqual:xde,areFunctionsEqual:bde,areMapsEqual:n?aS(JD,hh):JD,areNumbersEqual:wde,areObjectsEqual:n?hh:_de,arePrimitiveWrappersEqual:Sde,areRegExpsEqual:jde,areSetsEqual:n?aS(eI,hh):eI,areTypedArraysEqual:n?aS(ey,hh):ey,areUrlsEqual:Pde,unknownTagComparators:void 0};if(t&&(r=Object.assign({},r,t(r))),e){const i=Zg(r.areArraysEqual),a=Zg(r.areMapsEqual),o=Zg(r.areObjectsEqual),u=Zg(r.areSetsEqual);r=Object.assign({},r,{areArraysEqual:i,areMapsEqual:a,areObjectsEqual:o,areSetsEqual:u})}return r}function Vde(e){return function(t,n,r,i,a,o,u){return e(t,n,u)}}function Wde({circular:e,comparator:t,createState:n,equals:r,strict:i}){if(n)return function(u,f){const{cache:h=e?new WeakMap:void 0,meta:g}=n();return t(u,f,{cache:h,equals:r,meta:g,strict:i})};if(e)return function(u,f){return t(u,f,{cache:new WeakMap,equals:r,meta:void 0,strict:i})};const a={cache:void 0,equals:r,meta:void 0,strict:i};return function(u,f){return t(u,f,a)}}const Ude=ml();ml({strict:!0});ml({circular:!0});ml({circular:!0,strict:!0});ml({createInternalComparator:()=>$c});ml({strict:!0,createInternalComparator:()=>$c});ml({circular:!0,createInternalComparator:()=>$c});ml({circular:!0,createInternalComparator:()=>$c,strict:!0});function ml(e={}){const{circular:t=!1,createInternalComparator:n,createState:r,strict:i=!1}=e,a=qde(e),o=zde(a),u=n?n(o):Vde(o);return Wde({circular:t,comparator:o,createState:r,equals:u,strict:i})}function Hde(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function tI(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=-1,r=function i(a){n<0&&(n=a),a-n>t?(e(a),n=-1):Hde(i)};requestAnimationFrame(r)}function wP(e){"@babel/helpers - typeof";return wP=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},wP(e)}function Gde(e){return Xde(e)||Yde(e)||Zde(e)||Kde()}
451function Kde(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
452In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Zde(e,t){if(e){if(typeof e=="string")return nI(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 nI(e,t)}}function nI(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 Yde(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Xde(e){if(Array.isArray(e))return e}function Qde(){var e={},t=function(){return null},n=!1,r=function i(a){if(!n){if(Array.isArray(a)){if(!a.length)return;var o=a,u=Gde(o),f=u[0],h=u.slice(1);if(typeof f=="number"){tI(i.bind(null,h),f);return}i(f),tI(i.bind(null,h));return}wP(a)==="object"&&(e=a,t(e)),typeof a=="function"&&a()}};return{stop:function(){n=!0},start:function(a){n=!1,r(a)},subscribe:function(a){return t=a,function(){t=function(){return null}}}}}function gp(e){"@babel/helpers - typeof";return gp=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},gp(e)}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){sz(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 sz(e,t,n){return t=Jde(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jde(e){var t=efe(e,"string");return gp(t)==="symbol"?t:String(t)}function efe(e,t){if(gp(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(gp(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var tfe=function(t,n){return[Object.keys(t),Object.keys(n)].reduce(function(r,i){return r.filter(function(a){return i.includes(a)})})},nfe=function(t){return t},rfe=function(t){return t.replace(/([A-Z])/g,function(n){return"-".concat(n.toLowerCase())})},Eh=function(t,n){return Object.keys(n).reduce(function(r,i){return iI(iI({},r),{},sz({},i,t(i,n[i])))},{})},aI=function(t,n,r){return t.map(function(i){return"".concat(rfe(i)," ").concat(n,"ms ").concat(r)}).join(",")};function ife(e,t){return sfe(e)||ofe(e,t)||lz(e,t)||afe()}function afe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
453In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ofe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,u=[],f=!0,h=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(f=(r=a.call(n)).done)&&(u.push(r.value),u.length!==t);f=!0);}catch(g){h=!0,i=g}finally{try{if(!f&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(h)throw i}}return u}}function sfe(e){if(Array.isArray(e))return e}function lfe(e){return dfe(e)||ufe(e)||lz(e)||cfe()}function cfe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
454In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lz(e,t){if(e){if(typeof e=="string")return _P(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 _P(e,t)}}function ufe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function dfe(e){if(Array.isArray(e))return _P(e)}function _P(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 ty=1e-4,cz=function(t,n){return[0,3*t,3*n-6*t,3*t-3*n+1]},uz=function(t,n){return t.map(function(r,i){return r*Math.pow(n,i)}).reduce(function(r,i){return r+i})},oI=function(t,n){return function(r){var i=cz(t,n);return uz(i,r)}},ffe=function(t,n){return function(r){var i=cz(t,n),a=[].concat(lfe(i.map(function(o,u){return o*u}).slice(1)),[0]);return uz(a,r)}},sI=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n[0],a=n[1],o=n[2],u=n[3];if(n.length===1)switch(n[0]){case"linear":i=0,a=0,o=1,u=1;break;case"ease":i=.25,a=.1,o=.25,u=1;break;case"ease-in":i=.42,a=0,o=1,u=1;break;case"ease-out":i=.42,a=0,o=.58,u=1;break;case"ease-in-out":i=0,a=0,o=.58,u=1;break;default:{var f=n[0].split("(");if(f[0]==="cubic-bezier"&&f[1].split(")")[0].split(",").length===4){var h=f[1].split(")")[0].split(",").map(function(_){return parseFloat(_)}),g=ife(h,4);i=g[0],a=g[1],o=g[2],u=g[3]}}}var p=oI(i,o),y=oI(a,u),w=ffe(i,o),j=function(P){return P>1?1:P<0?0:P},S=function(P){for(var O=P>1?1:P,C=O,E=0;E<8;++E){var T=p(C)-O,M=w(C);if(Math.abs(T-O)<ty||M<ty)return y(C);C=j(C-T/M)}return y(C)};return S.isStepper=!1,S},hfe=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.stiff,r=n===void 0?100:n,i=t.damping,a=i===void 0?8:i,o=t.dt,u=o===void 0?17:o,f=function(g,p,y){var w=-(g-p)*r,j=y*a,S=y+(w-j)*u/1e3,_=y*u/1e3+g;return Math.abs(_-p)<ty&&Math.abs(S)<ty?[p,0]:[_,S]};return f.isStepper=!0,f.dt=u,f},pfe=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 sI(i);case"spring":return hfe();default:if(i.split("(")[0]==="cubic-bezier")return sI(i)}return typeof i=="function"?i:null};function vp(e){"@babel/helpers - typeof";return vp=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},vp(e)}function lI(e){return vfe(e)||gfe(e)||dz(e)||mfe()}function mfe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
455In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gfe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function vfe(e){if(Array.isArray(e))return jP(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 Qn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};
455t%2?cI(Object(n),!0).forEach(function(r){SP(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 SP(e,t,n){return t=yfe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yfe(e){var t=xfe(e,"string");return vp(t)==="symbol"?t:String(t)}function xfe(e,t){if(vp(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(vp(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function bfe(e,t){return Sfe(e)||_fe(e,t)||dz(e,t)||wfe()}function wfe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
456In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dz(e,t){if(e){if(typeof e=="string")return jP(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 jP(e,t)}}function jP(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 _fe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,u=[],f=!0,h=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(f=(r=a.call(n)).done)&&(u.push(r.value),u.length!==t);f=!0);}catch(g){h=!0,i=g}finally{try{if(!f&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(h)throw i}}return u}}function Sfe(e){if(Array.isArray(e))return e}var ny=function(t,n,r){return t+(n-t)*r},PP=function(t){var n=t.from,r=t.to;return n!==r},jfe=function e(t,n,r){var i=Eh(function(a,o){if(PP(o)){var u=t(o.from,o.to,o.velocity),f=bfe(u,2),h=f[0],g=f[1];return Qn(Qn({},o),{},{from:h,velocity:g})}return o},n);return r<1?Eh(function(a,o){return PP(o)?Qn(Qn({},o),{},{velocity:ny(o.velocity,i[a].velocity,r),from:ny(o.from,i[a].from,r)}):o},n):e(t,i,r-1)};const Pfe=(function(e,t,n,r,i){var a=tfe(e,t),o=a.reduce(function(_,P){return Qn(Qn({},_),{},SP({},P,[e[P],t[P]]))},{}),u=a.reduce(function(_,P){return Qn(Qn({},_),{},SP({},P,{from:e[P],velocity:0,to:t[P]}))},{}),f=-1,h,g,p=function(){return null},y=function(){return Eh(function(P,O){return O.from},u)},w=function(){return!Object.values(u).filter(PP).length},j=function(P){h||(h=P);var O=P-h,C=O/n.dt;u=jfe(n,u,C),i(Qn(Qn(Qn({},e),t),y())),h=P,w()||(f=requestAnimationFrame(p))},S=function(P){g||(g=P);var O=(P-g)/r,C=Eh(function(T,M){return ny.apply(void 0,lI(M).concat([n(O)]))},o);if(i(Qn(Qn(Qn({},e),t),C)),O<1)f=requestAnimationFrame(p);else{var E=Eh(function(T,M){return ny.apply(void 0,lI(M).concat([n(1)]))},o);i(Qn(Qn(Qn({},e),t),E))}};return p=n.isStepper?j:S,function(){return requestAnimationFrame(p),function(){cancelAnimationFrame(f)}}});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)}var Nfe=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function Afe(e,t){if(e==null)return{};
456var n=Tfe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Tfe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function oS(e){return Efe(e)||Ofe(e)||Cfe(e)||kfe()}function kfe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
457In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Cfe(e,t){if(e){if(typeof e=="string")return NP(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 NP(e,t)}}function Ofe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Efe(e){if(Array.isArray(e))return NP(e)}function NP(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 uI(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 na(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?uI(Object(n),!0).forEach(function(r){_h(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _h(e,t,n){return t=fz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mfe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Rfe(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,fz(r.key),r)}}function Dfe(e,t,n){return t&&Rfe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function fz(e){var t=Ife(e,"string");return Td(t)==="symbol"?t:String(t)}function Ife(e,t){if(Td(e)!=="object"||e===null)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)}function Lfe(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&&AP(e,t)}function AP(e,t){return AP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},AP(e,t)}function $fe(e){var t=Bfe();return function(){var r=ry(e),i;if(t){var a=ry(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return TP(this,i)}}function TP(e,t){if(t&&(Td(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return kP(e)}function kP(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Bfe(){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 ry(e){return ry=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ry(e)}var Vo=(function(e){Lfe(n,e);var t=$fe(n);function n(r,i){var a;Mfe(this,n),a=t.call(this,r,i);var o=a.props,u=o.isActive,f=o.attributeName,h=o.from,g=o.to,p=o.steps,y=o.children,w=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(kP(a)),a.changeStyle=a.changeStyle.bind(kP(a)),!u||w<=0)return a.state={style:{}},typeof y=="function"&&(a.state={style:g}),TP(a);if(p&&p.length)a.state={style:p[0].style};else if(h){if(typeof y=="function")return a.state={style:h},TP(a);a.state={style:f?_h({},f,h):h}}else a.state={style:{}};return a}
457return Dfe(n,[{key:"componentDidMount",value:function(){var i=this.props,a=i.isActive,o=i.canBegin;this.mounted=!0,!(!a||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var a=this.props,o=a.isActive,u=a.canBegin,f=a.attributeName,h=a.shouldReAnimate,g=a.to,p=a.from,y=this.state.style;if(u){if(!o){var w={style:f?_h({},f,g):g};this.state&&y&&(f&&y[f]!==g||!f&&y!==g)&&this.setState(w);return}if(!(Ude(i.to,g)&&i.canBegin&&i.isActive)){var j=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var S=j||h?p:i.to;if(this.state&&y){var _={style:f?_h({},f,S):S};(f&&y[f]!==S||!f&&y!==S)&&this.setState(_)}this.runAnimation(na(na({},this.props),{},{from:S,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 a=this,o=i.from,u=i.to,f=i.duration,h=i.easing,g=i.begin,p=i.onAnimationEnd,y=i.onAnimationStart,w=Pfe(o,u,pfe(h),f,this.changeStyle),j=function(){a.stopJSAnimation=w()};this.manager.start([y,g,j,f,p])}},{key:"runStepAnimation",value:function(i){var a=this,o=i.steps,u=i.begin,f=i.onAnimationStart,h=o[0],g=h.style,p=h.duration,y=p===void 0?0:p,w=function(S,_,P){if(P===0)return S;var O=_.duration,C=_.easing,E=C===void 0?"ease":C,T=_.style,M=_.properties,I=_.onAnimationEnd,$=P>0?o[P-1]:_,z=M||Object.keys(T);if(typeof E=="function"||E==="spring")return[].concat(oS(S),[a.runJSAnimation.bind(a,{from:$.style,to:T,duration:O,easing:E}),O]);var Y=aI(z,O,E),V=na(na(na({},$.style),T),{},{transition:Y});return[].concat(oS(S),[V,O,I]).filter(nfe)};return this.manager.start([f].concat(oS(o.reduce(w,[g,Math.max(y,u)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=Qde());var a=i.begin,o=i.duration,u=i.attributeName,f=i.to,h=i.easing,g=i.onAnimationStart,p=i.onAnimationEnd,y=i.steps,w=i.children,j=this.manager;if(this.unSubscribe=j.subscribe(this.handleStyleChange),typeof h=="function"||typeof w=="function"||h==="spring"){this.runJSAnimation(i);return}if(y.length>1){this.runStepAnimation(i);return}var S=u?_h({},u,f):f,_=aI(Object.keys(S),o,h);j.start([g,a,na(na({},S),{},{transition:_}),o,p])}},{key:"render",value:function(){var i=this.props,a=i.children;i.begin;var o=i.duration;i.attributeName,i.easing;var u=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var f=Afe(i,Nfe),h=k.Children.count(a),g=this.state.style;if(typeof a=="function")return a(g);if(!u||h===0||o<=0)return a;var p=function(w){var j=w.props,S=j.style,_=S===void 0?{}:S,P=j.className,O=k.cloneElement(w,na(na({},f),{},{style:na(na({},_),g),className:P}));return O};return h===1?p(k.Children.only(a)):K.createElement("div",null,k.Children.map(a,function(y){return p(y)}))}}]),n})(k.PureComponent);Vo.displayName="Animate";Vo.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};Vo.propTypes={from:Nt.oneOfType([Nt.object,Nt.string]),to:Nt.oneOfType([Nt.object,Nt.string]),attributeName:Nt.string,duration:Nt.number,begin:Nt.number,easing:Nt.oneOfType([Nt.string,Nt.func]),steps:Nt.arrayOf(Nt.shape({duration:Nt.number.isRequired,style:Nt.object.isRequired,easing:Nt.oneOfType([Nt.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),Nt.func]),properties:Nt.arrayOf("string"),onAnimationEnd:Nt.func})),children:Nt.oneOfType([Nt.node,Nt.func]),isActive:Nt.bool,canBegin:Nt.bool,onAnimationEnd:Nt.func,shouldReAnimate:Nt.bool,onAnimationStart:Nt.func,onAnimationReStart:Nt.func};function yp(e){"@babel/helpers - typeof";return yp=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},yp(e)}function iy(){return iy=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},iy.apply(this,arguments)}function Ffe(e,t){return Wfe(e)||Vfe(e,t)||qfe(e,t)||zfe()}
457function zfe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
458In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qfe(e,t){if(e){if(typeof e=="string")return dI(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 dI(e,t)}}function dI(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 Vfe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,u=[],f=!0,h=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(f=(r=a.call(n)).done)&&(u.push(r.value),u.length!==t);f=!0);}catch(g){h=!0,i=g}finally{try{if(!f&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(h)throw i}}return u}}function Wfe(e){if(Array.isArray(e))return e}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 hI(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){Ufe(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 Ufe(e,t,n){return t=Hfe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hfe(e){var t=Gfe(e,"string");return yp(t)=="symbol"?t:t+""}function Gfe(e,t){if(yp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(yp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var pI=function(t,n,r,i,a){var o=Math.min(Math.abs(r)/2,Math.abs(i)/2),u=i>=0?1:-1,f=r>=0?1:-1,h=i>=0&&r>=0||i<0&&r<0?1:0,g;if(o>0&&a instanceof Array){for(var p=[0,0,0,0],y=0,w=4;y<w;y++)p[y]=a[y]>o?o:a[y];g="M".concat(t,",").concat(n+u*p[0]),p[0]>0&&(g+="A ".concat(p[0],",").concat(p[0],",0,0,").concat(h,",").concat(t+f*p[0],",").concat(n)),g+="L ".concat(t+r-f*p[1],",").concat(n),p[1]>0&&(g+="A ".concat(p[1],",").concat(p[1],",0,0,").concat(h,`,
459        `).concat(t+r,",").concat(n+u*p[1])),g+="L ".concat(t+r,",").concat(n+i-u*p[2]),p[2]>0&&(g+="A ".concat(p[2],",").concat(p[2],",0,0,").concat(h,`,
460        `).concat(t+r-f*p[2],",").concat(n+i)),g+="L ".concat(t+f*p[3],",").concat(n+i),p[3]>0&&(g+="A ".concat(p[3],",").concat(p[3],",0,0,").concat(h,`,
461        `).concat(t,",").concat(n+i-u*p[3])),g+="Z"}else if(o>0&&a===+a&&a>0){var j=Math.min(o,a);g="M ".concat(t,",").concat(n+u*j,`
462            A `).concat(j,",").concat(j,",0,0,").concat(h,",").concat(t+f*j,",").concat(n,`
463            L `).concat(t+r-f*j,",").concat(n,`
464            A `).concat(j,",").concat(j,",0,0,").concat(h,",").concat(t+r,",").concat(n+u*j,`
465            L `).concat(t+r,",").concat(n+i-u*j,`
466            A `).concat(j,",").concat(j,",0,0,").concat(h,",").concat(t+r-f*j,",").concat(n+i,`
467            L `).concat(t+f*j,",").concat(n+i,`
468            A `).concat(j,",").concat(j,",0,0,").concat(h,",").concat(t,",").concat(n+i-u*j," Z")}else g="M ".concat(t,",").concat(n," h ").concat(r," v ").concat(i," h ").concat(-r," Z");return g},Kfe=function(t,n){if(!t||!n)return!1;var r=t.x,i=t.y,a=n.x,o=n.y,u=n.width,f=n.height;if(Math.abs(u)>0&&Math.abs(f)>0){var h=Math.min(a,a+u),g=Math.max(a,a+u),p=Math.min(o,o+f),y=Math.max(o,o+f);return r>=h&&r<=g&&i>=p&&i<=y}return!1},Zfe={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},iT=function(t){var n=hI(hI({},Zfe),t),r=k.useRef(),i=k.useState(-1),a=Ffe(i,2),o=a[0],u=a[1];k.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var E=r.current.getTotalLength();E&&u(E)}catch{}},[]);var f=n.x,h=n.y,g=n.width,p=n.height,y=n.radius,w=n.className,j=n.animationEasing,S=n.animationDuration,_=n.animationBegin,P=n.isAnimationActive,O=n.isUpdateAnimationActive;if(f!==+f||h!==+h||g!==+g||p!==+p||g===0||p===0)return null;var C=yt("recharts-rectangle",w);return O?K.createElement(Vo,{canBegin:o>0,from:{width:g,height:p,x:f,y:h},to:{width:g,height:p,x:f,y:h},duration:S,animationEasing:j,isActive:O},function(E){var T=E.width,M=E.height,I=E.x,$=E.y;return K.createElement(Vo,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:_,duration:S,isActive:P,easing:j},K.createElement("path",iy({},vt(n,!0),{className:C,d:pI(I,$,T,M,y),ref:r})))}):K.createElement("path",iy({},vt(n,!0),{className:C,d:pI(f,h,g,p,y)}))};function CP(){return CP=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},CP.apply(this,arguments)}var aT=function(t){var n=t.cx,r=t.cy,i=t.r,a=t.className,o=yt("recharts-dot",a);return n===+n&&r===+r&&i===+i?k.createElement("circle",CP({},vt(t,!1),jv(t),{className:o,cx:n,cy:r,r:i})):null};function xp(e){"@babel/helpers - typeof";return xp=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},xp(e)}var Yfe=["x","y","top","left","width","height","className"];function OP(){return OP=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},OP.apply(this,arguments)}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 Xfe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};
468t%2?mI(Object(n),!0).forEach(function(r){Qfe(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 Qfe(e,t,n){return t=Jfe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jfe(e){var t=ehe(e,"string");return xp(t)=="symbol"?t:t+""}function ehe(e,t){if(xp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(xp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function the(e,t){if(e==null)return{};var n=nhe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function nhe(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 rhe=function(t,n,r,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(n,"h").concat(r)},ihe=function(t){var n=t.x,r=n===void 0?0:n,i=t.y,a=i===void 0?0:i,o=t.top,u=o===void 0?0:o,f=t.left,h=f===void 0?0:f,g=t.width,p=g===void 0?0:g,y=t.height,w=y===void 0?0:y,j=t.className,S=the(t,Yfe),_=Xfe({x:r,y:a,top:u,left:h,width:p,height:w},S);return!Te(r)||!Te(a)||!Te(p)||!Te(w)||!Te(u)||!Te(h)?null:K.createElement("path",OP({},vt(_,!0),{className:yt("recharts-cross",j),d:rhe(r,a,p,w,u,h)}))},sS,gI;function ahe(){if(gI)return sS;gI=1;var e=MF(),t=e(Object.getPrototypeOf,Object);return sS=t,sS}var lS,vI;function ohe(){if(vI)return lS;vI=1;var e=Ko(),t=ahe(),n=Zo(),r="[object Object]",i=Function.prototype,a=Object.prototype,o=i.toString,u=a.hasOwnProperty,f=o.call(Object);function h(g){if(!n(g)||e(g)!=r)return!1;var p=t(g);if(p===null)return!0;var y=u.call(p,"constructor")&&p.constructor;return typeof y=="function"&&y instanceof y&&o.call(y)==f}return lS=h,lS}var she=ohe();const lhe=kt(she);var cS,yI;function che(){if(yI)return cS;yI=1;var e=Ko(),t=Zo(),n="[object Boolean]";function r(i){return i===!0||i===!1||t(i)&&e(i)==n}return cS=r,cS}var uhe=che();const dhe=kt(uhe);function bp(e){"@babel/helpers - typeof";return bp=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},bp(e)}function ay(){return ay=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},ay.apply(this,arguments)}function fhe(e,t){return ghe(e)||mhe(e,t)||phe(e,t)||hhe()}function hhe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
469In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function phe(e,t){if(e){if(typeof e=="string")return xI(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 xI(e,t)}}function xI(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 mhe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,u=[],f=!0,h=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(f=(r=a.call(n)).done)&&(u.push(r.value),u.length!==t);f=!0);}catch(g){h=!0,i=g}finally{try{if(!f&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(h)throw i}}return u}}function ghe(e){if(Array.isArray(e))return 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 wI(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};
469t%2?bI(Object(n),!0).forEach(function(r){vhe(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 vhe(e,t,n){return t=yhe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yhe(e){var t=xhe(e,"string");return bp(t)=="symbol"?t:t+""}function xhe(e,t){if(bp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(bp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var _I=function(t,n,r,i,a){var o=r-i,u;return u="M ".concat(t,",").concat(n),u+="L ".concat(t+r,",").concat(n),u+="L ".concat(t+r-o/2,",").concat(n+a),u+="L ".concat(t+r-o/2-i,",").concat(n+a),u+="L ".concat(t,",").concat(n," Z"),u},bhe={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},whe=function(t){var n=wI(wI({},bhe),t),r=k.useRef(),i=k.useState(-1),a=fhe(i,2),o=a[0],u=a[1];k.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var C=r.current.getTotalLength();C&&u(C)}catch{}},[]);var f=n.x,h=n.y,g=n.upperWidth,p=n.lowerWidth,y=n.height,w=n.className,j=n.animationEasing,S=n.animationDuration,_=n.animationBegin,P=n.isUpdateAnimationActive;if(f!==+f||h!==+h||g!==+g||p!==+p||y!==+y||g===0&&p===0||y===0)return null;var O=yt("recharts-trapezoid",w);return P?K.createElement(Vo,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:y,x:f,y:h},to:{upperWidth:g,lowerWidth:p,height:y,x:f,y:h},duration:S,animationEasing:j,isActive:P},function(C){var E=C.upperWidth,T=C.lowerWidth,M=C.height,I=C.x,$=C.y;return K.createElement(Vo,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:_,duration:S,easing:j},K.createElement("path",ay({},vt(n,!0),{className:O,d:_I(I,$,E,T,M),ref:r})))}):K.createElement("g",null,K.createElement("path",ay({},vt(n,!0),{className:O,d:_I(f,h,g,p,y)})))},_he=["option","shapeType","propTransformer","activeClassName","isActive"];function wp(e){"@babel/helpers - typeof";return wp=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},wp(e)}function She(e,t){if(e==null)return{};var n=jhe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function jhe(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 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 oy(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){Phe(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 Phe(e,t,n){return t=Nhe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nhe(e){var t=Ahe(e,"string");return wp(t)=="symbol"?t:t+""}function Ahe(e,t){if(wp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(wp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function The(e,t){return oy(oy({},t),e)}function khe(e,t){return e==="symbols"}function jI(e){var t=e.shapeType,n=e.elementProps;switch(t){case"rectangle":return K.createElement(iT,n);case"trapezoid":return K.createElement(whe,n);case"sector":return K.createElement(az,n);case"symbols":if(khe(t))return K.createElement(SA,n);break;default:return null}}function Che(e){return k.isValidElement(e)?e.props:e}function Ohe(e){var t=e.option,n=e.shapeType,r=e.propTransformer,i=r===void 0?The:r,a=e.activeClassName,o=a===void 0?"recharts-active-shape":a,u=e.isActive,f=She(e,_he),h;if(k.isValidElement(t))h=k.cloneElement(t,oy(oy({},f),Che(t)));else if(st(t))h=t(f);else if(lhe(t)&&!dhe(t)){var g=i(t,f);h=K.createElement(jI,{shapeType:n,elementProps:g})}else{var p=f;h=K.createElement(jI,{shapeType:n,elementProps:p})}return u?K.createElement(vn,{className:o},h):h}function ux(e,t){return t!=null&&"trapezoids"in e.props}function dx(e,t){return t!=null&&"sectors"in e.props}function _p(e,t){return t!=null&&"points"in e.props}function Ehe(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,a=e.y===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.y
469)||e.y===t.y;return i&&a}function Mhe(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function Rhe(e,t){var n=e.x===t.x,r=e.y===t.y,i=e.z===t.z;return n&&r&&i}function Dhe(e,t){var n;return ux(e,t)?n=Ehe:dx(e,t)?n=Mhe:_p(e,t)&&(n=Rhe),n}function Ihe(e,t){var n;return ux(e,t)?n="trapezoids":dx(e,t)?n="sectors":_p(e,t)&&(n="points"),n}function Lhe(e,t){if(ux(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(dx(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 _p(e,t)?t.payload:{}}function $he(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,i=Ihe(n,t),a=Lhe(n,t),o=r.filter(function(f,h){var g=sx(a,f),p=n.props[i].filter(function(j){var S=Dhe(n,t);return S(j,t)}),y=n.props[i].indexOf(p[p.length-1]),w=h===y;return g&&w}),u=r.indexOf(o[o.length-1]);return u}var uS,PI;function Bhe(){if(PI)return uS;PI=1;var e=Math.ceil,t=Math.max;function n(r,i,a,o){for(var u=-1,f=t(e((i-r)/(a||1)),0),h=Array(f);f--;)h[o?f:++u]=r,r+=a;return h}return uS=n,uS}var dS,NI;function hz(){if(NI)return dS;NI=1;var e=ZF(),t=1/0,n=17976931348623157e292;function r(i){if(!i)return i===0?i:0;if(i=e(i),i===t||i===-t){var a=i<0?-1:1;return a*n}return i===i?i:0}return dS=r,dS}var fS,AI;function Fhe(){if(AI)return fS;AI=1;var e=Bhe(),t=Qy(),n=hz();function r(i){return function(a,o,u){return u&&typeof u!="number"&&t(a,o,u)&&(o=u=void 0),a=n(a),o===void 0?(o=a,a=0):o=n(o),u=u===void 0?a<o?1:-1:n(u),e(a,o,u,i)}}return fS=r,fS}var hS,TI;function zhe(){if(TI)return hS;TI=1;var e=Fhe(),t=e();return hS=t,hS}var qhe=zhe();const sy=kt(qhe);function Sp(e){"@babel/helpers - typeof";return Sp=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},Sp(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 CI(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){pz(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 pz(e,t,n){return t=Vhe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vhe(e){var t=Whe(e,"string");return Sp(t)=="symbol"?t:t+""}function Whe(e,t){if(Sp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Sp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Uhe=["Webkit","Moz","O","ms"],Hhe=function(t,n){var r=t.replace(/(\w)/,function(a){return a.toUpperCase()}),i=Uhe.reduce(function(a,o){return CI(CI({},a),{},pz({},o+r,n))},{});return i[t]=n,i};function kd(e){"@babel/helpers - typeof";return kd=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},kd(e)}function ly(){return ly=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},ly.apply(this,arguments)}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 pS(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){oi(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OI(Object(n)).forEac
469h(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ghe(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,gz(r.key),r)}}function Khe(e,t,n){return t&&EI(e.prototype,t),n&&EI(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Zhe(e,t,n){return t=cy(t),Yhe(e,mz()?Reflect.construct(t,n||[],cy(e).constructor):t.apply(e,n))}function Yhe(e,t){if(t&&(kd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Xhe(e)}function Xhe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(mz=function(){return!!e})()}function cy(e){return cy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},cy(e)}function Qhe(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&&EP(e,t)}function EP(e,t){return EP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},EP(e,t)}function oi(e,t,n){return t=gz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gz(e){var t=Jhe(e,"string");return kd(t)=="symbol"?t:t+""}function Jhe(e,t){if(kd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(kd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var epe=function(t){var n=t.data,r=t.startIndex,i=t.endIndex,a=t.x,o=t.width,u=t.travellerWidth;if(!n||!n.length)return{};var f=n.length,h=Ch().domain(sy(0,f)).range([a,a+o-u]),g=h.domain().map(function(p){return h(p)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:h(r),endX:h(i),scale:h,scaleValues:g}},MI=function(t){return t.changedTouches&&!!t.changedTouches.length},Cd=(function(e){function t(n){var r;return Ghe(this,t),r=Zhe(this,t,[n]),oi(r,"handleDrag",function(i){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(i):r.state.isSlideMoving&&r.handleSlideDrag(i)}),oi(r,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&r.handleDrag(i.changedTouches[0])}),oi(r,"handleDragEnd",function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=r.props,a=i.endIndex,o=i.onDragEnd,u=i.startIndex;o==null||o({endIndex:a,startIndex:u})}),r.detachDragEndListener()}),oi(r,"handleLeaveWrapper",function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))}),oi(r,"handleEnterSlideOrTraveller",function(){r.setState({isTextActive:!0})}),oi(r,"handleLeaveSlideOrTraveller",function(){r.setState({isTextActive:!1})}),oi(r,"handleSlideDragStart",function(i){var a=MI(i)?i.changedTouches[0]:i;r.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:a.pageX}),r.attachDragEndListener()}),r.travellerDragStartHandlers={startX:r.handleTravellerDragStart.bind(r,"startX"),endX:r.handleTravellerDragStart.bind(r,"endX")},r.state={},r}return Qhe(t,e),Khe(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(r){var i=r.startX,a=r.endX,o=this.state.scaleValues,u=this.props,f=u.gap,h=u.data,g=h.length-1,p=Math.min(i,a),y=Math.max(i,a),w=t.getIndexInRange(o,p),j=t.getIndexInRange(o,y);return{startIndex:w-w%f,endIndex:j===g?g:j-j%f}}},{key:"getTextOfTick",value:function(r){var i=this.props,a=i.data,o=i.tickFormatter,u=i.dataKey,f=mi(a[r],u,r);return st(o)?o(f,r):f}},{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,a=i.slideMoveStartX,o=i.startX,u=i.endX,f=this.props,h=f.x,g=f.width,p=f.travellerWidth,y=f.startIndex,w=f.endIndex,j=f.onChange,S=r.pageX-a;S>0?S=Math.min(S,h+g-p-u,h+g-p-o):S<0&&(S=Math.max(S,h-o,h-u));var _=this.getIndex({startX:o+S,endX:u+S});(_.startIndex!==y||_.endIndex!==w)&&j&&j(_),this.setState({startX:o+S,endX:u+S,slideMoveStartX:r.pageX})}},{key:"handleTravellerDragStart",value:function(r,i){var a=MI(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:r,brushMoveStartX:a.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(r){var i=this.state,a=i.brushMoveStartX,o=i.movingTravellerId,u=i.endX,f=i.startX,h=this.state[o],g=this.props,p=g.x,y=g.width,w=g.travellerWidth,j=g.onChange,S=g.gap,_=g.data,P={startX:this.state.startX,endX:this.state.endX},O=r.pageX-a;O>
4690?O=Math.min(O,p+y-w-h):O<0&&(O=Math.max(O,p-h)),P[o]=h+O;var C=this.getIndex(P),E=C.startIndex,T=C.endIndex,M=function(){var $=_.length-1;return o==="startX"&&(u>f?E%S===0:T%S===0)||u<f&&T===$||o==="endX"&&(u>f?T%S===0:E%S===0)||u>f&&T===$};this.setState(oi(oi({},o,h+O),"brushMoveStartX",r.pageX),function(){j&&M()&&j(C)})}},{key:"handleTravellerMoveKeyboard",value:function(r,i){var a=this,o=this.state,u=o.scaleValues,f=o.startX,h=o.endX,g=this.state[i],p=u.indexOf(g);if(p!==-1){var y=p+r;if(!(y===-1||y>=u.length)){var w=u[y];i==="startX"&&w>=h||i==="endX"&&w<=f||this.setState(oi({},i,w),function(){a.props.onChange(a.getIndex({startX:a.state.startX,endX:a.state.endX}))})}}}},{key:"renderBackground",value:function(){var r=this.props,i=r.x,a=r.y,o=r.width,u=r.height,f=r.fill,h=r.stroke;return K.createElement("rect",{stroke:h,fill:f,x:i,y:a,width:o,height:u})}},{key:"renderPanorama",value:function(){var r=this.props,i=r.x,a=r.y,o=r.width,u=r.height,f=r.data,h=r.children,g=r.padding,p=k.Children.only(h);return p?K.cloneElement(p,{x:i,y:a,width:o,height:u,margin:g,compact:!0,data:f}):null}},{key:"renderTravellerLayer",value:function(r,i){var a,o,u=this,f=this.props,h=f.y,g=f.travellerWidth,p=f.height,y=f.traveller,w=f.ariaLabel,j=f.data,S=f.startIndex,_=f.endIndex,P=Math.max(r,this.props.x),O=pS(pS({},vt(this.props,!1)),{},{x:P,y:h,width:g,height:p}),C=w||"Min value: ".concat((a=j[S])===null||a===void 0?void 0:a.name,", Max value: ").concat((o=j[_])===null||o===void 0?void 0:o.name);return K.createElement(vn,{tabIndex:0,role:"slider","aria-label":C,"aria-valuenow":r,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(T){["ArrowLeft","ArrowRight"].includes(T.key)&&(T.preventDefault(),T.stopPropagation(),u.handleTravellerMoveKeyboard(T.key==="ArrowRight"?1:-1,i))},onFocus:function(){u.setState({isTravellerFocused:!0})},onBlur:function(){u.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(y,O))}},{key:"renderSlide",value:function(r,i){var a=this.props,o=a.y,u=a.height,f=a.stroke,h=a.travellerWidth,g=Math.min(r,i)+h,p=Math.max(Math.abs(i-r)-h,0);return K.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:f,fillOpacity:.2,x:g,y:o,width:p,height:u})}},{key:"renderText",value:function(){var r=this.props,i=r.startIndex,a=r.endIndex,o=r.y,u=r.height,f=r.travellerWidth,h=r.stroke,g=this.state,p=g.startX,y=g.endX,w=5,j={pointerEvents:"none",fill:h};return K.createElement(vn,{className:"recharts-brush-texts"},K.createElement(Iv,ly({textAnchor:"end",verticalAnchor:"middle",x:Math.min(p,y)-w,y:o+u/2},j),this.getTextOfTick(i)),K.createElement(Iv,ly({textAnchor:"start",verticalAnchor:"middle",x:Math.max(p,y)+f+w,y:o+u/2},j),this.getTextOfTick(a)))}},{key:"render",value:function(){var r=this.props,i=r.data,a=r.className,o=r.children,u=r.x,f=r.y,h=r.width,g=r.height,p=r.alwaysShowText,y=this.state,w=y.startX,j=y.endX,S=y.isTextActive,_=y.isSlideMoving,P=y.isTravellerMoving,O=y.isTravellerFocused;if(!i||!i.length||!Te(u)||!Te(f)||!Te(h)||!Te(g)||h<=0||g<=0)return null;var C=yt("recharts-brush",a),E=K.Children.count(o)===1,T=Hhe("userSelect","none");return K.createElement(vn,{className:C,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:T},this.renderBackground(),E&&this.renderPanorama(),this.renderSlide(w,j),this.renderTravellerLayer(w,"startX"),this.renderTravellerLayer(j,"endX"),(S||_||P||O||p)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(r){var i=r.x,a=r.y,o=r.width,u=r.height,f=r.stroke,h=Math.floor(a+u/2)-1;return K.createElement(K.Fragment,null,K.createElement("rect",{x:i,y:a,width:o,height:u,fill:f,stroke:"none"}),K.createElement("line",{x1:i+1,y1:h,x2:i+o-1,y2:h,fill:"none",stroke:"#fff"}),K.createElement("line",{x1:i+1,y1:h+2,x2:i+o-1,y2:h+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(r,i){var a;return K.isValidElement(r)?a=K.cloneElement(r,i):st(r)?a=r(i):a=t.renderDefaultTraveller(i),a}},{key:"getDerivedStateFromProps",value:function(r,i){var a=r.data,o=r.width,u=r.x,f=r.travellerWidth,h=r.updateId,g=r.startIndex,p=r.endIndex;if(a!==i.prevData||h!==i.prevUpdateId)return pS({prevData:a,prevTravellerWidth:f,prevUpdateId:h,prevX:u,prevWidth:o},a&&a.length?epe({data:a,width:o,x:u,travellerWidth:f,startIndex:g,endIndex:p}):{scale:null,scaleValues:null});if(i.scale&&(o!==i.prevWidth||u!==i.prevX||f!==i.prevTravellerWidth)){i.scale.range([u,u+o-f]);var y=i.scale.domain().map(function(w){return i.scale(w)});return{prevData:a,prevTravellerWidth:f,prevUpdateId:h,prevX:u,prevWidth:o,startX:i.scale(r.startIndex),endX:i.scale(r.endIndex),scaleValues:y}}return null}},{key:"getIndexInRange",value:function(r,i){for(var a=r.length,o=0,u=a-1;u-o>1;){var f=Math.floor((o+u)/2);r[f]>i?u=f:o=f}return i>=r[u]?u:o}}])})(k.PureComponent);oi(Cd,"displayName","Brush");oi(Cd,"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 mS,RI;
469function tpe(){if(RI)return mS;RI=1;var e=CA();function t(n,r){var i;return e(n,function(a,o,u){return i=r(a,o,u),!i}),!!i}return mS=t,mS}var gS,DI;function npe(){if(DI)return gS;DI=1;var e=NF(),t=fl(),n=tpe(),r=Ur(),i=Qy();function a(o,u,f){var h=r(o)?e:n;return f&&i(o,u,f)&&(u=void 0),h(o,t(u,3))}return gS=a,gS}var rpe=npe();const ipe=kt(rpe);var Va=function(t,n){var r=t.alwaysShow,i=t.ifOverflow;return r&&(i="extendDomain"),i===n},vS,II;function ape(){if(II)return vS;II=1;var e=WF();function t(n,r,i){r=="__proto__"&&e?e(n,r,{configurable:!0,enumerable:!0,value:i,writable:!0}):n[r]=i}return vS=t,vS}var yS,LI;function ope(){if(LI)return yS;LI=1;var e=ape(),t=qF(),n=fl();function r(i,a){var o={};return a=n(a,3),t(i,function(u,f,h){e(o,f,a(u,f,h))}),o}return yS=r,yS}var spe=ope();const lpe=kt(spe);var xS,$I;function cpe(){if($I)return xS;$I=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 xS=e,xS}var bS,BI;function upe(){if(BI)return bS;BI=1;var e=CA();function t(n,r){var i=!0;return e(n,function(a,o,u){return i=!!r(a,o,u),i}),i}return bS=t,bS}var wS,FI;function dpe(){if(FI)return wS;FI=1;var e=cpe(),t=upe(),n=fl(),r=Ur(),i=Qy();function a(o,u,f){var h=r(o)?e:t;return f&&i(o,u,f)&&(u=void 0),h(o,n(u,3))}return wS=a,wS}var fpe=dpe();const vz=kt(fpe);var hpe=["x","y"];function jp(e){"@babel/helpers - typeof";return jp=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},jp(e)}function MP(){return MP=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},MP.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 ph(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){ppe(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 ppe(e,t,n){return t=mpe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mpe(e){var t=gpe(e,"string");return jp(t)=="symbol"?t:t+""}function gpe(e,t){if(jp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(jp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function vpe(e,t){if(e==null)return{};var n=ype(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ype(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 xpe(e,t){var n=e.x,r=e.y,i=vpe(e,hpe),a="".concat(n),o=parseInt(a,10),u="".concat(r),f=parseInt(u,10),h="".concat(t.height||i.height),g=parseInt(h,10),p="".concat(t.width||i.width),y=parseInt(p,10);return ph(ph(ph(ph(ph({},t),i),o?{x:o}:{}),f?{y:f}:{}),{},{height:g,width:y,name:t.name,radius:t.radius})}function qI(e){return K.createElement(Ohe,MP({shapeType:"rectangle",propTransformer:xpe,activeClassName:"recharts-active-bar"},e))}var bpe=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 a=Te(r)||Nte(r);return a?t(r,i):(a||Pc(),n)}},wpe=["value","background"],yz;function Od(e){"@babel/helpers - typeof";return Od=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},Od(e)}function _pe(e,t){if(e==null)return{};var n=Spe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Spe(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 uy(){return uy=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},uy.apply(this,arguments)}function VI(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]:{};
469t%2?VI(Object(n),!0).forEach(function(r){Ys(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function jpe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function WI(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,bz(r.key),r)}}function Ppe(e,t,n){return t&&WI(e.prototype,t),n&&WI(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Npe(e,t,n){return t=dy(t),Ape(e,xz()?Reflect.construct(t,n||[],dy(e).constructor):t.apply(e,n))}function Ape(e,t){if(t&&(Od(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Tpe(e)}function Tpe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(xz=function(){return!!e})()}function dy(e){return dy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},dy(e)}function kpe(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&&RP(e,t)}function RP(e,t){return RP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},RP(e,t)}function Ys(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=Cpe(e,"string");return Od(t)=="symbol"?t:t+""}function Cpe(e,t){if(Od(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Od(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var al=(function(e){function t(){var n;jpe(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=Npe(this,t,[].concat(i)),Ys(n,"state",{isAnimationFinished:!1}),Ys(n,"id",Jp("recharts-bar-")),Ys(n,"handleAnimationEnd",function(){var o=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),o&&o()}),Ys(n,"handleAnimationStart",function(){var o=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),o&&o()}),n}return kpe(t,e),Ppe(t,[{key:"renderRectanglesStatically",value:function(r){var i=this,a=this.props,o=a.shape,u=a.dataKey,f=a.activeIndex,h=a.activeBar,g=vt(this.props,!1);return r&&r.map(function(p,y){var w=y===f,j=w?h:o,S=_n(_n(_n({},g),p),{},{isActive:w,option:j,index:y,dataKey:u,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return K.createElement(vn,uy({className:"recharts-bar-rectangle"},Pv(i.props,p,y),{key:"rectangle-".concat(p==null?void 0:p.x,"-").concat(p==null?void 0:p.y,"-").concat(p==null?void 0:p.value,"-").concat(y)}),K.createElement(qI,S))})}},{key:"renderRectanglesWithAnimation",value:function(){var r=this,i=this.props,a=i.data,o=i.layout,u=i.isAnimationActive,f=i.animationBegin,h=i.animationDuration,g=i.animationEasing,p=i.animationId,y=this.state.prevData;return K.createElement(Vo,{begin:f,duration:h,isActive:u,easing:g,from:{t:0},to:{t:1},key:"bar-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(w){var j=w.t,S=a.map(function(_,P){var O=y&&y[P];if(O){var C=ca(O.x,_.x),E=ca(O.y,_.y),T=ca(O.width,_.width),M=ca(O.height,_.height);return _n(_n({},_),{},{x:C(j),y:E(j),width:T(j),height:M(j)})}if(o==="horizontal"){var I=ca(0,_.height),$=I(j);return _n(_n({},_),{},{y:_.y+_.height-$,height:$})}var z=ca(0,_.width),Y=z(j);return _n(_n({},_),{},{width:Y})});return K.createElement(vn,null,r.renderRectanglesStatically(S))})}},{key:"renderRectangles",value:function(){var r=this.props,i=r.data,a=r.isAnimationActive,o=this.state.prevData;return a&&i&&i.length&&(!o||!sx(o,i))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(i)}}
469,{key:"renderBackground",value:function(){var r=this,i=this.props,a=i.data,o=i.dataKey,u=i.activeIndex,f=vt(this.props.background,!1);return a.map(function(h,g){h.value;var p=h.background,y=_pe(h,wpe);if(!p)return null;var w=_n(_n(_n(_n(_n({},y),{},{fill:"#eee"},p),f),Pv(r.props,h,g)),{},{onAnimationStart:r.handleAnimationStart,onAnimationEnd:r.handleAnimationEnd,dataKey:o,index:g,className:"recharts-bar-background-rectangle"});return K.createElement(qI,uy({key:"background-bar-".concat(g),option:r.props.background,isActive:g===u},w))})}},{key:"renderErrorBar",value:function(r,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.data,u=a.xAxis,f=a.yAxis,h=a.layout,g=a.children,p=Bi(g,am);if(!p)return null;var y=h==="vertical"?o[0].height/2:o[0].width/2,w=function(_,P){var O=Array.isArray(_.value)?_.value[1]:_.value;return{x:_.x,y:_.y,value:O,errorVal:mi(_,P)}},j={clipPath:r?"url(#clipPath-".concat(i,")"):null};return K.createElement(vn,j,p.map(function(S){return K.cloneElement(S,{key:"error-bar-".concat(i,"-").concat(S.props.dataKey),data:o,xAxis:u,yAxis:f,layout:h,offset:y,dataPointFormatter:w})}))}},{key:"render",value:function(){var r=this.props,i=r.hide,a=r.data,o=r.className,u=r.xAxis,f=r.yAxis,h=r.left,g=r.to
469p,p=r.width,y=r.height,w=r.isAnimationActive,j=r.background,S=r.id;if(i||!a||!a.length)return null;var _=this.state.isAnimationFinished,P=yt("recharts-bar",o),O=u&&u.allowDataOverflow,C=f&&f.allowDataOverflow,E=O||C,T=ut(S)?this.id:S;return K.createElement(vn,{className:P},O||C?K.createElement("defs",null,K.createElement("clipPath",{id:"clipPath-".concat(T)},K.createElement("rect",{x:O?h:h-p/2,y:C?g:g-y/2,width:O?p:p*2,height:C?y:y*2}))):null,K.createElement(vn,{className:"recharts-bar-rectangles",clipPath:E?"url(#clipPath-".concat(T,")"):null},j?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(E,T),(!w||_)&&tl.renderCallByParent(this.props,a))}}],[{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}}])})(k.PureComponent);yz=al;Ys(al,"displayName","Bar");Ys(al,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!nf.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});Ys(al,"getComposedData",function(e){var t=e.props,n=e.item,r=e.barPosition,i=e.bandSize,a=e.xAxis,o=e.yAxis,u=e.xAxisTicks,f=e.yAxisTicks,h=e.stackedData,g=e.dataStartIndex,p=e.displayedData,y=e.offset,w=Uce(r,n);if(!w)return null;var j=t.layout,S=n.type.defaultProps,_=S!==void 0?_n(_n({},S),n.props):n.props,P=_.dataKey,O=_.children,C=_.minPointSize,E=j==="horizontal"?o:a,T=h?E.scale.domain():null,M=Jce({numericAxis:E}),I=Bi(O,XF),$=p.map(function(z,Y){var V,q,G,Q,ne,ie;h?V=Hce(h[g+Y],T):(V=mi(z,P),Array.isArray(V)||(V=[M,V]));var re=bpe(C,yz.defaultProps.minPointSize)(V[1],Y);if(j==="horizontal"){var W,oe=[o.scale(V[0]),o.scale(V[1])],U=oe[0],H=oe[1];q=CD({axis:a,ticks:u,bandSize:i,offset:w.offset,entry:z,index:Y}),G=(W=H??U)!==null&&W!==void 0?W:void 0,Q=w.size;var ee=U-H;if(ne=Number.isNaN(ee)?0:ee,ie={x:q,y:o.y,width:Q,height:o.height},Math.abs(re)>0&&Math.abs(ne)<Math.abs(re)){var pe=da(ne||re)*(Math.abs(re)-Math.abs(ne));G-=pe,ne+=pe}}else{var we=[a.scale(V[0]),a.scale(V[1])],ge=we[0],ye=we[1];if(q=ge,G=CD({axis:o,ticks:f,bandSize:i,offset:w.offset,entry:z,index:Y}),Q=ye-ge,ne=w.size,ie={x:a.x,y:G,width:a.width,height:ne},Math.abs(re)>0&&Math.abs(Q)<Math.abs(re)){var $e=da(Q||re)*(Math.abs(re)-Math.abs(Q));Q+=$e}}return _n(_n(_n({},z),{},{x:q,y:G,width:Q,height:ne,value:h?V:V[1],payload:z,background:ie},I&&I[Y]&&I[Y].props),{},{tooltipPayload:[nz(n,z)],tooltipPosition:{x:q+Q/2,y:G+ne/2}})});return _n({data:$,layout:j},y)});function Pp(e){"@babel/helpers - typeof";return Pp=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},Pp(e)}function Ope(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,wz(r.key),r)}}function Epe(e,t,n){return t&&UI(e.prototype,t),n&&UI(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function HI(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 sa(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?HI(Object(n),!0).forEach(function(r){fx(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function fx(e,t,n){return t=wz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wz(e){var t=Mpe(e,"string");return Pp(t)=="symbol"?t:t+""}function Mpe(e,t){if(Pp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Pp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var _z=function(t,n,r,i,a){var o=t.width,u=t.height,f=t.layout,h=t.children,g=Object.keys(n),p={left:r.left,leftMirror:r.left,right:o-r.right,rightMirror:o-r.right,top:r.top,topMirror:r.top,bottom:u-r.bottom,bottomMirror:u-r.bottom},y=!!si(h,al);return g.reduce(function(w,j){var S=n[j],_=S.orientation,P=S.domain,O=S.padding,C=O===void 0?{}:O,E=S.mirror,T=S.reversed,M="".concat(_).concat(E?"Mirror":""),I,$,z,Y,V;if(S.type==="number"&&(S.padding==="gap"||S.padding==="no-gap")){var q=P[1]-P[0],G=1/0,Q=S.categoricalDomain.sort(kte);
469if(Q.forEach(function(we,ge){ge>0&&(G=Math.min((we||0)-(Q[ge-1]||0),G))}),Number.isFinite(G)){var ne=G/q,ie=S.layout==="vertical"?r.height:r.width;if(S.padding==="gap"&&(I=ne*ie/2),S.padding==="no-gap"){var re=Sc(t.barCategoryGap,ne*ie),W=ne*ie/2;I=W-re-(W-re)/ie*re}}}i==="xAxis"?$=[r.left+(C.left||0)+(I||0),r.left+r.width-(C.right||0)-(I||0)]:i==="yAxis"?$=f==="horizontal"?[r.top+r.height-(C.bottom||0),r.top+(C.top||0)]:[r.top+(C.top||0)+(I||0),r.top+r.height-(C.bottom||0)-(I||0)]:$=S.range,T&&($=[$[1],$[0]]);var oe=Vce(S,a,y),U=oe.scale,H=oe.realScaleType;U.domain(P).range($),Wce(U);var ee=Qce(U,sa(sa({},S),{},{realScaleType:H}));i==="xAxis"?(V=_==="top"&&!E||_==="bottom"&&E,z=r.left,Y=p[M]-V*S.height):i==="yAxis"&&(V=_==="left"&&!E||_==="right"&&E,z=p[M]-V*S.width,Y=r.top);var pe=sa(sa(sa({},S),ee),{},{realScaleType:H,x:z,y:Y,scale:U,width:i==="xAxis"?r.width:S.width,height:i==="yAxis"?r.height:S.height});return pe.bandSize=Xv(pe,ee),!S.hide&&i==="xAxis"?p[M]+=(V?-1:1)*pe.height:S.hide||(p[M]+=(V?-1:1)*pe.width),sa(sa({},w),{},fx({},j,pe))},{})},Sz=function(t,n){var r=t.x,i=t.y,a=n.x,o=n.y;return{x:Math.min(r,a),y:Math.min(i,o),width:Math.abs(a-r),height:Math.abs(o-i)}},Rpe=function(t){var n=t.x1,r=t.y1,i=t.x2,a=t.y2;return Sz({x:n,y:r},{x:i,y:a})},jz=(function(){function e(t){Ope(this,e),this.scale=t}return Epe(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,a=r.position;if(n!==void 0){if(a)switch(a){case"start":return this.scale(n);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+o}case"end":{var u=this.bandwidth?this.bandwidth():0;return this.scale(n)+u}default:return this.scale(n)}if(i){var f=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+f}return this.scale(n)}}},{key:"isInRange",value:function(n){var r=this.range(),i=r[0],a=r[r.length-1];return i<=a?n>=i&&n<=a:n>=a&&n<=i}}],[{key:"create",value:function(n){return new e(n)}}])})();fx(jz,"EPS",1e-4);var oT=function(t){var n=Object.keys(t).reduce(function(r,i){return sa(sa({},r),{},fx({},i,jz.create(t[i])))},{});return sa(sa({},n),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,u=a.position;return lpe(i,function(f,h){return n[h].apply(f,{bandAware:o,position:u})})},isInRange:function(i){return vz(i,function(a,o){return n[o].isInRange(a)})}})};function Dpe(e){return(e%180+180)%180}var Ipe=function(t){var n=t.width,r=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=Dpe(i),o=a*Math.PI/180,u=Math.atan(r/n),f=o>u&&o<Math.PI-u?r/Math.sin(o):n/Math.cos(o);return Math.abs(f)},_S,GI;function Lpe(){if(GI)return _S;GI=1;var e=fl(),t=em(),n=Yy();function r(i){return function(a,o,u){var f=Object(a);if(!t(a)){var h=e(o,3);a=n(a),o=function(p){return h(f[p],p,f)}}var g=i(a,o,u);return g>-1?f[h?a[g]:g]:void 0}}return _S=r,_S}var SS,KI;function $pe(){if(KI)return SS;KI=1;var e=hz();function t(n){var r=e(n),i=r%1;return r===r?i?r-i:r:0}return SS=t,SS}var jS,ZI;function Bpe(){if(ZI)return jS;ZI=1;var e=LF(),t=fl(),n=$pe(),r=Math.max;function i(a,o,u){var f=a==null?0:a.length;if(!f)return-1;var h=u==null?0:n(u);return h<0&&(h=r(f+h,0)),e(a,t(o,3),h)}return jS=i,jS}var PS,YI;function Fpe(){if(YI)return PS;YI=1;var e=Lpe(),t=Bpe(),n=e(t);return PS=n,PS}var zpe=Fpe();const qpe=kt(zpe);var Vpe=JB();const Wpe=kt(Vpe);var Upe=Wpe(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("")}),sT=k.createContext(void 0),lT=k.createContext(void 0),Pz=k.createContext(void 0),Nz=k.createContext({}),Az=k.createContext(void 0),Tz=k.createContext(0),kz=k.createContext(0),XI=function(t){var n=t.state,r=n.xAxisMap,i=n.yAxisMap,a=n.offset,o=t.clipPathId,u=t.children,f=t.width,h=t.height,g=Upe(a);return K.createElement(sT.Provider,{value:r},K.createElement(lT.Provider,{value:i},K.createElement(Nz.Provider,{value:a},K.createElement(Pz.Provider,{value:g},K.createElement(Az.Provider,{value:o},K.createElement(Tz.Provider,{value:h},K.createElement(kz.Provider,{value:f},u)))))))},Hpe=function(){return k.useContext(Az)},Cz=function(t){var n=k.useContext(sT);n==null&&Pc();var r=n[t];return r==null&&Pc(),r},Gpe=function(){var t=k.useContext(sT);return Fs(t)},Kpe=function(){var t=k.useContext(lT),n=qpe(t,function(r){return vz(r.domain,Number.isFinite)});return n||Fs(t)},Oz=function(t){var n=k.useContext(lT);n==null&&Pc();var r=n[t];return r==null&&Pc(),r},Zpe=function(){var t=k.useContext(Pz);return t},Ype=function(){return k.useContext(Nz)},cT=function(){return k.useContext(kz)},uT=function(){return k.useContext(Tz)};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 Xpe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qpe(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,Mz(r.key),r)}}function Jpe(e,t,n){return t&&Qpe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function eme(e,t,n){return t=fy(t),tme(e,Ez()?Reflect.construct(t,n||[],fy(e).constructor):t.apply(e,n))}function tme(e,t){if(t&&(Ed(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return nme(e)}function nme(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ez(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ez=function(){return!!e})()}
469function fy(e){return fy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},fy(e)}function rme(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&&DP(e,t)}function DP(e,t){return DP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},DP(e,t)}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 JI(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){dT(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 dT(e,t,n){return t=Mz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mz(e){var t=ime(e,"string");return Ed(t)=="symbol"?t:t+""}function ime(e,t){if(Ed(e)!="object"||!e)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 String(e)}function ame(e,t){return cme(e)||lme(e,t)||sme(e,t)||ome()}function ome(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
470In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sme(e,t){if(e){if(typeof e=="string")return eL(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 eL(e,t)}}function eL(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 lme(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,u=[],f=!0,h=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(f=(r=a.call(n)).done)&&(u.push(r.value),u.length!==t);f=!0);}catch(g){h=!0,i=g}finally{try{if(!f&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(h)throw i}}return u}}function cme(e){if(Array.isArray(e))return e}function IP(){return IP=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},IP.apply(this,arguments)}var ume=function(t,n){var r;return K.isValidElement(t)?r=K.cloneElement(t,n):st(t)?r=t(n):r=K.createElement("line",IP({},n,{className:"recharts-reference-line-line"})),r},dme=function(t,n,r,i,a,o,u,f,h){var g=a.x,p=a.y,y=a.width,w=a.height;if(r){var j=h.y,S=t.y.apply(j,{position:o});if(Va(h,"discard")&&!t.y.isInRange(S))return null;var _=[{x:g+y,y:S},{x:g,y:S}];return f==="left"?_.reverse():_}if(n){var P=h.x,O=t.x.apply(P,{position:o});if(Va(h,"discard")&&!t.x.isInRange(O))return null;var C=[{x:O,y:p+w},{x:O,y:p}];return u==="top"?C.reverse():C}if(i){var E=h.segment,T=E.map(function(M){return t.apply(M,{position:o})});return Va(h,"discard")&&ipe(T,function(M){return!t.isInRange(M)})?null:T}return null};function fme(e){var t=e.x,n=e.y,r=e.segment,i=e.xAxisId,a=e.yAxisId,o=e.shape,u=e.className,f=e.alwaysShow,h=Hpe(),g=Cz(i),p=Oz(a),y=Zpe();if(!h||!y)return null;Mo(f===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var w=oT({x:g.scale,y:p.scale}),j=$n(t),S=$n(n),_=r&&r.length===2,P=dme(w,j,S,_,y,e.position,g.orientation,p.orientation,e);if(!P)return null;var O=ame(P,2),C=O[0],E=C.x,T=C.y,M=O[1],I=M.x,$=M.y,z=Va(e,"hidden")?"url(#".concat(h,")"):void 0,Y=JI(JI({clipPath:z},vt(e,!0)),{},{x1:E,y1:T,x2:I,y2:$});return K.createElement(vn,{className:yt("recharts-reference-line",u)},ume(o,Y),vr.renderCallByParent(e,Rpe({x1:E,y1:T,x2:I,y2:$})))}var fT=(function(e){function t(){return Xpe(this,t),eme(this,t,arguments)}return rme(t,e),Jpe(t,[{key:"render",value:function(){return K.createElement(fme,this.props)}}])})(K.Component);dT(fT,"displayName","ReferenceLine");dT(fT,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function LP(){return LP=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},LP.apply(this,arguments)}function Md(e){"@babel/helpers - typeof";return Md=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},Md(e)}function tL(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 nL(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};
470t%2?tL(Object(n),!0).forEach(function(r){hx(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function hme(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pme(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,Dz(r.key),r)}}function mme(e,t,n){return t&&pme(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function gme(e,t,n){return t=hy(t),vme(e,Rz()?Reflect.construct(t,n||[],hy(e).constructor):t.apply(e,n))}function vme(e,t){if(t&&(Md(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return yme(e)}function yme(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Rz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Rz=function(){return!!e})()}function hy(e){return hy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},hy(e)}function xme(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&&$P(e,t)}function $P(e,t){return $P=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},$P(e,t)}function hx(e,t,n){return t=Dz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dz(e){var t=bme(e,"string");return Md(t)=="symbol"?t:t+""}function bme(e,t){if(Md(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Md(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var wme=function(t){var n=t.x,r=t.y,i=t.xAxis,a=t.yAxis,o=oT({x:i.scale,y:a.scale}),u=o.apply({x:n,y:r},{bandAware:!0});return Va(t,"discard")&&!o.isInRange(u)?null:u},px=(function(e){function t(){return hme(this,t),gme(this,t,arguments)}return xme(t,e),mme(t,[{key:"render",value:function(){var r=this.props,i=r.x,a=r.y,o=r.r,u=r.alwaysShow,f=r.clipPathId,h=$n(i),g=$n(a);if(Mo(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!h||!g)return null;var p=wme(this.props);if(!p)return null;var y=p.x,w=p.y,j=this.props,S=j.shape,_=j.className,P=Va(this.props,"hidden")?"url(#".concat(f,")"):void 0,O=nL(nL({clipPath:P},vt(this.props,!0)),{},{cx:y,cy:w});return K.createElement(vn,{className:yt("recharts-reference-dot",_)},t.renderDot(S,O),vr.renderCallByParent(this.props,{x:y-o,y:w-o,width:2*o,height:2*o}))}}])})(K.Component);hx(px,"displayName","ReferenceDot");hx(px,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});hx(px,"renderDot",function(e,t){var n;return K.isValidElement(e)?n=K.cloneElement(e,t):st(e)?n=e(t):n=K.createElement(aT,LP({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),n});function BP(){return BP=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},BP.apply(this,arguments)}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 rL(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 iL(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};
470t%2?rL(Object(n),!0).forEach(function(r){mx(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _me(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Sme(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,Lz(r.key),r)}}function jme(e,t,n){return t&&Sme(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Pme(e,t,n){return t=py(t),Nme(e,Iz()?Reflect.construct(t,n||[],py(e).constructor):t.apply(e,n))}function Nme(e,t){if(t&&(Rd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ame(e)}function Ame(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Iz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Iz=function(){return!!e})()}function py(e){return py=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},py(e)}function Tme(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&&FP(e,t)}function FP(e,t){return FP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},FP(e,t)}function mx(e,t,n){return t=Lz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lz(e){var t=kme(e,"string");return Rd(t)=="symbol"?t:t+""}function kme(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 String(e)}var Cme=function(t,n,r,i,a){var o=a.x1,u=a.x2,f=a.y1,h=a.y2,g=a.xAxis,p=a.yAxis;if(!g||!p)return null;var y=oT({x:g.scale,y:p.scale}),w={x:t?y.x.apply(o,{position:"start"}):y.x.rangeMin,y:r?y.y.apply(f,{position:"start"}):y.y.rangeMin},j={x:n?y.x.apply(u,{position:"end"}):y.x.rangeMax,y:i?y.y.apply(h,{position:"end"}):y.y.rangeMax};return Va(a,"discard")&&(!y.isInRange(w)||!y.isInRange(j))?null:Sz(w,j)},gx=(function(e){function t(){return _me(this,t),Pme(this,t,arguments)}return Tme(t,e),jme(t,[{key:"render",value:function(){var r=this.props,i=r.x1,a=r.x2,o=r.y1,u=r.y2,f=r.className,h=r.alwaysShow,g=r.clipPathId;Mo(h===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var p=$n(i),y=$n(a),w=$n(o),j=$n(u),S=this.props.shape;if(!p&&!y&&!w&&!j&&!S)return null;var _=Cme(p,y,w,j,this.props);if(!_&&!S)return null;var P=Va(this.props,"hidden")?"url(#".concat(g,")"):void 0;return K.createElement(vn,{className:yt("recharts-reference-area",f)},t.renderRect(S,iL(iL({clipPath:P},vt(this.props,!0)),_)),vr.renderCallByParent(this.props,_))}}])})(K.Component);mx(gx,"displayName","ReferenceArea");mx(gx,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});mx(gx,"renderRect",function(e,t){var n;return K.isValidElement(e)?n=K.cloneElement(e,t):st(e)?n=e(t):n=K.createElement(iT,BP({},t,{className:"recharts-reference-area-rect"})),n});function $z(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 Ome(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return Ipe(r,n)}function Eme(e,t,n){var r=n==="width",i=e.x,a=e.y,o=e.width,u=e.height;return t===1?{start:r?i:a,end:r?i+o:a+u}:{start:r?i+o:a+u,end:r?i:a}}function my(e,t,n,r,i){if(e*t<e*r||e*t>e*i)return!1;var a=n();return e*(t-e*a/2-r)>=0&&e*(t+e*a/2-i)<=0}function Mme(e,t){return $z(e,t+1)}function Rme(e,t,n,r,i){for(var a=(r||[]).slice(),o=t.start,u=t.end,f=0,h=1,g=o,p=function(){var j=r==null?void 0:r[f];if(j===void 0)return{v:$z(r,h)};var S=f,_,P=function(){return _===void 0&&(_=n(j,S)),_},O=j.coordinate,C=f===0||my(e,O,P,g,u);C||(f=0,g=o,h+=1),C&&(g=O+e*(P()/2+i),f+=h)},y;h<=a.length;)if(y=p(),y)return y.v;return[]}function Np(e){"@babel/helpers - typeof";return Np=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},Np(e)}function aL(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 gr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};
470t%2?aL(Object(n),!0).forEach(function(r){Dme(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Dme(e,t,n){return t=Ime(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ime(e){var t=Lme(e,"string");return Np(t)=="symbol"?t:t+""}function Lme(e,t){if(Np(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Np(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function $me(e,t,n,r,i){for(var a=(r||[]).slice(),o=a.length,u=t.start,f=t.end,h=function(y){var w=a[y],j,S=function(){return j===void 0&&(j=n(w,y)),j};if(y===o-1){var _=e*(w.coordinate+e*S()/2-f);a[y]=w=gr(gr({},w),{},{tickCoord:_>0?w.coordinate-_*e:w.coordinate})}else a[y]=w=gr(gr({},w),{},{tickCoord:w.coordinate});var P=my(e,w.tickCoord,S,u,f);P&&(f=w.tickCoord-e*(S()/2+i),a[y]=gr(gr({},w),{},{isShow:!0}))},g=o-1;g>=0;g--)h(g);return a}function Bme(e,t,n,r,i,a){var o=(r||[]).slice(),u=o.length,f=t.start,h=t.end;if(a){var g=r[u-1],p=n(g,u-1),y=e*(g.coordinate+e*p/2-h);o[u-1]=g=gr(gr({},g),{},{tickCoord:y>0?g.coordinate-y*e:g.coordinate});var w=my(e,g.tickCoord,function(){return p},f,h);w&&(h=g.tickCoord-e*(p/2+i),o[u-1]=gr(gr({},g),{},{isShow:!0}))}for(var j=a?u-1:u,S=function(O){var C=o[O],E,T=function(){return E===void 0&&(E=n(C,O)),E};if(O===0){var M=e*(C.coordinate-e*T()/2-f);o[O]=C=gr(gr({},C),{},{tickCoord:M<0?C.coordinate-M*e:C.coordinate})}else o[O]=C=gr(gr({},C),{},{tickCoord:C.coordinate});var I=my(e,C.tickCoord,T,f,h);I&&(f=C.tickCoord+e*(T()/2+i),o[O]=gr(gr({},C),{},{isShow:!0}))},_=0;_<j;_++)S(_);return o}function hT(e,t,n){var r=e.tick,i=e.ticks,a=e.viewBox,o=e.minTickGap,u=e.orientation,f=e.interval,h=e.tickFormatter,g=e.unit,p=e.angle;if(!i||!i.length||!r)return[];if(Te(f)||nf.isSsr)return Mme(i,typeof f=="number"&&Te(f)?f:0);var y=[],w=u==="top"||u==="bottom"?"width":"height",j=g&&w==="width"?kh(g,{fontSize:t,letterSpacing:n}):{width:0,height:0},S=function(C,E){var T=st(h)?h(C.value,E):C.value;return w==="width"?Ome(kh(T,{fontSize:t,letterSpacing:n}),j,p):kh(T,{fontSize:t,letterSpacing:n})[w]},_=i.length>=2?da(i[1].coordinate-i[0].coordinate):1,P=Eme(a,_,w);return f==="equidistantPreserveStart"?Rme(_,P,S,i,o):(f==="preserveStart"||f==="preserveStartEnd"?y=Bme(_,P,S,i,o,f==="preserveStartEnd"):y=$me(_,P,S,i,o),y.filter(function(O){return O.isShow}))}var Fme=["viewBox"],zme=["viewBox"],qme=["ticks"];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 Uu(){return Uu=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},Uu.apply(this,arguments)}function oL(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 Mn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?oL(Object(n),!0).forEach(function(r){pT(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function NS(e,t){if(e==null)return{};var n=Vme(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Vme(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 Wme(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sL(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,Fz(r.key),r)}}function Ume(e,t,n){return t&&sL(e.prototype,t),n&&sL(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Hme(e,t,n){return t=gy(t),Gme(e,Bz()?Reflect.construct(t,n||[],gy(e).constructor):t.apply(e,n))}function Gme(e,t){if(t&&(Dd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Kme(e)}function Kme(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Bz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Bz=function(){return!!e})()}
470function gy(e){return gy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},gy(e)}function Zme(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&&zP(e,t)}function zP(e,t){return zP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},zP(e,t)}function pT(e,t,n){return t=Fz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fz(e){var t=Yme(e,"string");return Dd(t)=="symbol"?t:t+""}function Yme(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 String(e)}var sf=(function(e){function t(n){var r;return Wme(this,t),r=Hme(this,t,[n]),r.state={fontSize:"",letterSpacing:""},r}return Zme(t,e),Ume(t,[{key:"shouldComponentUpdate",value:function(r,i){var a=r.viewBox,o=NS(r,Fme),u=this.props,f=u.viewBox,h=NS(u,zme);return!Zu(a,f)||!Zu(o,h)||!Zu(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,a=i.x,o=i.y,u=i.width,f=i.height,h=i.orientation,g=i.tickSize,p=i.mirror,y=i.tickMargin,w,j,S,_,P,O,C=p?-1:1,E=r.tickSize||g,T=Te(r.tickCoord)?r.tickCoord:r.coordinate;switch(h){case"top":w=j=r.coordinate,_=o+ +!p*f,S=_-C*E,O=S-C*y,P=T;break;case"left":S=_=r.coordinate,j=a+ +!p*u,w=j-C*E,P=w-C*y,O=T;break;case"right":S=_=r.coordinate,j=a+ +p*u,w=j+C*E,P=w+C*y,O=T;break;default:w=j=r.coordinate,_=o+ +p*f,S=_+C*E,O=S+C*y,P=T;break}return{line:{x1:w,y1:S,x2:j,y2:_},tick:{x:P,y:O}}}},{key:"getTickTextAnchor",value:function(){var r=this.props,i=r.orientation,a=r.mirror,o;switch(i){case"left":o=a?"start":"end";break;case"right":o=a?"end":"start";break;default:o="middle";break}return o}},{key:"getTickVerticalAnchor",value:function(){var r=this.props,i=r.orientation,a=r.mirror,o="end";switch(i){case"left":case"right":o="middle";break;case"top":o=a?"start":"end";break;default:o=a?"end":"start";break}return o}},{key:"renderAxisLine",value:function(){var r=this.props,i=r.x,a=r.y,o=r.width,u=r.height,f=r.orientation,h=r.mirror,g=r.axisLine,p=Mn(Mn(Mn({},vt(this.props,!1)),vt(g,!1)),{},{fill:"none"});if(f==="top"||f==="bottom"){var y=+(f==="top"&&!h||f==="bottom"&&h);p=Mn(Mn({},p),{},{x1:i,y1:a+y*u,x2:i+o,y2:a+y*u})}else{var w=+(f==="left"&&!h||f==="right"&&h);p=Mn(Mn({},p),{},{x1:i+w*o,y1:a,x2:i+w*o,y2:a+u})}return K.createElement("line",Uu({},p,{className:yt("recharts-cartesian-axis-line",$i(g,"className"))}))}},{key:"renderTicks",value:function(r,i,a){var o=this,u=this.props,f=u.tickLine,h=u.stroke,g=u.tick,p=u.tickFormatter,y=u.unit,w=hT(Mn(Mn({},this.props),{},{ticks:r}),i,a),j=this.getTickTextAnchor(),S=this.getTickVerticalAnchor(),_=vt(this.props,!1),P=vt(g,!1),O=Mn(Mn({},_),{},{fill:"none"},vt(f,!1)),C=w.map(function(E,T){var M=o.getTickLineCoord(E),I=M.line,$=M.tick,z=Mn(Mn(Mn(Mn({textAnchor:j,verticalAnchor:S},_),{},{stroke:"none",fill:h},P),$),{},{index:T,payload:E,visibleTicksCount:w.length,tickFormatter:p});return K.createElement(vn,Uu({className:"recharts-cartesian-axis-tick",key:"tick-".concat(E.value,"-").concat(E.coordinate,"-").concat(E.tickCoord)},Pv(o.props,E,T)),f&&K.createElement("line",Uu({},O,I,{className:yt("recharts-cartesian-axis-tick-line",$i(f,"className"))})),g&&t.renderTickItem(g,z,"".concat(st(p)?p(E.value,T):E.value).concat(y||"")))});return K.createElement("g",{className:"recharts-cartesian-axis-ticks"},C)}},{key:"render",value:function(){var r=this,i=this.props,a=i.axisLine,o=i.width,u=i.height,f=i.ticksGenerator,h=i.className,g=i.hide;if(g)return null;var p=this.props,y=p.ticks,w=NS(p,qme),j=y;return st(f)&&(j=y&&y.length>0?f(this.props):f(w)),o<=0||u<=0||!j||!j.length?null:K.createElement(vn,{className:yt("recharts-cartesian-axis",h),ref:function(_){r.layerReference=_}},a&&this.renderAxisLine(),this.renderTicks(j,this.state.fontSize,this.state.letterSpacing),vr.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(r,i,a){var o,u=yt(i.className,"recharts-cartesian-axis-tick-value");return K.isValidElement(r)?o=K.cloneElement(r,Mn(Mn({},i),{},{className:u})):st(r)?o=r(Mn(Mn({},i),{},{className:u})):o=K.createElement(Iv,Uu({},i,{className:"recharts-cartesian-axis-tick-value"}),a),o}}])})(k.Component);pT(sf,"displayName","CartesianAxis");pT(sf,"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
470:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var Xme=["x1","y1","x2","y2","key"],Qme=["offset"];function Nc(e){"@babel/helpers - typeof";return Nc=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},Nc(e)}function lL(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 yr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?lL(Object(n),!0).forEach(function(r){Jme(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Jme(e,t,n){return t=ege(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ege(e){var t=tge(e,"string");return Nc(t)=="symbol"?t:t+""}function tge(e,t){if(Nc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Nc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function lc(){return lc=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},lc.apply(this,arguments)}function cL(e,t){if(e==null)return{};var n=nge(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function nge(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 rge=function(t){var n=t.fill;if(!n||n==="none")return null;var r=t.fillOpacity,i=t.x,a=t.y,o=t.width,u=t.height,f=t.ry;return K.createElement("rect",{x:i,y:a,ry:f,width:o,height:u,stroke:"none",fill:n,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function zz(e,t){var n;if(K.isValidElement(e))n=K.cloneElement(e,t);else if(st(e))n=e(t);else{var r=t.x1,i=t.y1,a=t.x2,o=t.y2,u=t.key,f=cL(t,Xme),h=vt(f,!1);h.offset;var g=cL(h,Qme);n=K.createElement("line",lc({},g,{x1:r,y1:i,x2:a,y2:o,fill:"none",key:u}))}return n}function ige(e){var t=e.x,n=e.width,r=e.horizontal,i=r===void 0?!0:r,a=e.horizontalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(u,f){var h=yr(yr({},e),{},{x1:t,y1:u,x2:t+n,y2:u,key:"line-".concat(f),index:f});return zz(i,h)});return K.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function age(e){var t=e.y,n=e.height,r=e.vertical,i=r===void 0?!0:r,a=e.verticalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(u,f){var h=yr(yr({},e),{},{x1:u,y1:t,x2:u,y2:t+n,key:"line-".concat(f),index:f});return zz(i,h)});return K.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function oge(e){var t=e.horizontalFill,n=e.fillOpacity,r=e.x,i=e.y,a=e.width,o=e.height,u=e.horizontalPoints,f=e.horizontal,h=f===void 0?!0:f;if(!h||!t||!t.length)return null;var g=u.map(function(y){return Math.round(y+i-i)}).sort(function(y,w){return y-w});i!==g[0]&&g.unshift(0);var p=g.map(function(y,w){var j=!g[w+1],S=j?i+o-y:g[w+1]-y;if(S<=0)return null;var _=w%t.length;return K.createElement("rect",{key:"react-".concat(w),y,x:r,height:S,width:a,stroke:"none",fill:t[_],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return K.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},p)}function sge(e){var t=e.vertical,n=t===void 0?!0:t,r=e.verticalFill,i=e.fillOpacity,a=e.x,o=e.y,u=e.width,f=e.height,h=e.verticalPoints;if(!n||!r||!r.length)return null;var g=h.map(function(y){return Math.round(y+a-a)}).sort(function(y,w){return y-w});a!==g[0]&&g.unshift(0);var p=g.map(function(y,w){var j=!g[w+1],S=j?a+u-y:g[w+1]-y;if(S<=0)return null;var _=w%r.length;return K.createElement("rect",{key:"react-".concat(w),x:y,y:o,width:S,height:f,stroke:"none",fill:r[_],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return K.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},p)}var lge=function(t,n){var r=t.xAxis,i=t.width,a=t.height,o=t.offset;return ez(hT(yr(yr(yr({},sf.defaultProps),r),{}
470,{ticks:To(r,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.left,o.left+o.width,n)},cge=function(t,n){var r=t.yAxis,i=t.width,a=t.height,o=t.offset;return ez(hT(yr(yr(yr({},sf.defaultProps),r),{},{ticks:To(r,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.top,o.top+o.height,n)},Du={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function qP(e){var t,n,r,i,a,o,u=cT(),f=uT(),h=Ype(),g=yr(yr({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:Du.stroke,fill:(n=e.fill)!==null&&n!==void 0?n:Du.fill,horizontal:(r=e.horizontal)!==null&&r!==void 0?r:Du.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:Du.horizontalFill,vertical:(a=e.vertical)!==null&&a!==void 0?a:Du.vertical,verticalFill:(o=e.verticalFill)!==null&&o!==void 0?o:Du.verticalFill,x:Te(e.x)?e.x:h.left,y:Te(e.y)?e.y:h.top,width:Te(e.width)?e.width:h.width,height:Te(e.height)?e.height:h.height}),p=g.x,y=g.y,w=g.width,j=g.height,S=g.syncWithTicks,_=g.horizontalValues,P=g.verticalValues,O=Gpe(),C=Kpe();if(!Te(w)||w<=0||!Te(j)||j<=0||!Te(p)||p!==+p||!Te(y)||y!==+y)return null;var E=g.verticalCoordinatesGenerator||lge,T=g.horizontalCoordinatesGenerator||cge,M=g.horizontalPoints,I=g.verticalPoints;if((!M||!M.length)&&st(T)){var $=_&&_.length,z=T({yAxis:C?yr(yr({},C),{},{ticks:$?_:C.ticks}):void 0,width:u,height:f,offset:h},$?!0:S);Mo(Array.isArray(z),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(Nc(z),"]")),Array.isArray(z)&&(M=z)}if((!I||!I.length)&&st(E)){var Y=P&&P.length,V=E({xAxis:O?yr(yr({},O),{},{ticks:Y?P:O.ticks}):void 0,width:u,height:f,offset:h},Y?!0:S);Mo(Array.isArray(V),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(Nc(V),"]")),Array.isArray(V)&&(I=V)}return K.createElement("g",{className:"recharts-cartesian-grid"},K.createElement(rge,{fill:g.fill,fillOpacity:g.fillOpacity,x:g.x,y:g.y,width:g.width,height:g.height,ry:g.ry}),K.createElement(ige,lc({},g,{offset:h,horizontalPoints:M,xAxis:O,yAxis:C})),K.createElement(age,lc({},g,{offset:h,verticalPoints:I,xAxis:O,yAxis:C})),K.createElement(oge,lc({},g,{horizontalPoints:M})),K.createElement(sge,lc({},g,{verticalPoints:I})))}qP.displayName="CartesianGrid";var uge=["type","layout","connectNulls","ref"],dge=["key"];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 uL(e,t){if(e==null)return{};var n=fge(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function fge(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 Mh(){return Mh=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},Mh.apply(this,arguments)}function dL(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 ai(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?dL(Object(n),!0).forEach(function(r){la(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Iu(e){return gge(e)||mge(e)||pge(e)||hge()}function hge(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
471In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pge(e,t){if(e){if(typeof e=="string")return VP(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 VP(e,t)}}function mge(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function gge(e){if(Array.isArray(e))return VP(e)}function VP(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 vge(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fL(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,Vz(r.key),r)}}function yge(e,t,n){return t&&fL(e.prototype,t),n&&fL(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function xge(e,t,n){return t=vy(t),bge(e,qz()?Reflect.construct(t,n||[],vy(e).constructor):t.apply(e,n))}function bge(e,t){if(t&&(Id(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return wge(e)}function wge(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(qz=function(){return!!e})()}
471function vy(e){return vy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},vy(e)}function _ge(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&&WP(e,t)}function WP(e,t){return WP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},WP(e,t)}function la(e,t,n){return t=Vz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vz(e){var t=Sge(e,"string");return Id(t)=="symbol"?t:t+""}function Sge(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 String(e)}var wc=(function(e){function t(){var n;vge(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=xge(this,t,[].concat(i)),la(n,"state",{isAnimationFinished:!0,totalLength:0}),la(n,"generateSimpleStrokeDasharray",function(o,u){return"".concat(u,"px ").concat(o-u,"px")}),la(n,"getStrokeDasharray",function(o,u,f){var h=f.reduce(function(P,O){return P+O});if(!h)return n.generateSimpleStrokeDasharray(u,o);for(var g=Math.floor(o/h),p=o%h,y=u-o,w=[],j=0,S=0;j<f.length;S+=f[j],++j)if(S+f[j]>p){w=[].concat(Iu(f.slice(0,j)),[p-S]);break}var _=w.length%2===0?[0,y]:[y];return[].concat(Iu(t.repeat(f,g)),Iu(w),_).map(function(P){return"".concat(P,"px")}).join(", ")}),la(n,"id",Jp("recharts-line-")),la(n,"pathRef",function(o){n.mainCurve=o}),la(n,"handleAnimationEnd",function(){n.setState({isAnimationFinished:!0}),n.props.onAnimationEnd&&n.props.onAnimationEnd()}),la(n,"handleAnimationStart",function(){n.setState({isAnimationFinished:!1}),n.props.onAnimationStart&&n.props.onAnimationStart()}),n}return _ge(t,e),yge(t,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var r=this.getTotalLength();this.setState({totalLength:r})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var r=this.getTotalLength();r!==this.state.totalLength&&this.setState({totalLength:r})}}},{key:"getTotalLength",value:function(){var r=this.mainCurve;try{return r&&r.getTotalLength&&r.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(r,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.points,u=a.xAxis,f=a.yAxis,h=a.layout,g=a.children,p=Bi(g,am);if(!p)return null;var y=function(S,_){return{x:S.x,y:S.y,value:S.value,errorVal:mi(S.payload,_)}},w={clipPath:r?"url(#clipPath-".concat(i,")"):null};return K.createElement(vn,w,p.map(function(j){return K.cloneElement(j,{key:"bar-".concat(j.props.dataKey),data:o,xAxis:u,yAxis:f,layout:h,dataPointFormatter:y})}))}},{key:"renderDots",value:function(r,i,a){var o=this.props.isAnimationActive;if(o&&!this.state.isAnimationFinished)return null;var u=this.props,f=u.dot,h=u.points,g=u.dataKey,p=vt(this.props,!1),y=vt(f,!0),w=h.map(function(S,_){var P=ai(ai(ai({key:"dot-".concat(_),r:3},p),y),{},{index:_,cx:S.x,cy:S.y,value:S.value,dataKey:g,payload:S.payload,points:h});return t.renderDotItem(f,P)}),j={clipPath:r?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return K.createElement(vn,Mh({className:"recharts-line-dots",key:"dots"},j),w)}},{key:"renderCurveStatically",value:function(r,i,a,o){var u=this.props,f=u.type,h=u.layout,g=u.connectNulls;u.ref;var p=uL(u,uge),y=ai(ai(ai({},vt(p,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:i?"url(#clipPath-".concat(a,")"):null,points:r},o),{},{type:f,layout:h,connectNulls:g});return K.createElement(bP,Mh({},y,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(r,i){var a=this,o=this.props,u=o.points,f=o.strokeDasharray,h=o.isAnimationActive,g=o.animationBegin,p=o.animationDuration,y=o.animationEasing,w=o.animationId,j=o.animateNewValues,S=o.width,_=o.height,P=this.state,O=P.prevPoints,C=P.totalLength;return K.createElement(Vo,{begin:g,duration:p,isActive:h,easing:y,from:{t:0},to:{t:1},key:"line-".concat(w),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(E){var T=E.t;if(O){var M=O.length/u.length,I=u.map(function(q,G){var Q=Math.floor(G*M);if(O[Q]){var ne=O[Q],ie=ca(ne.x,q.x),re=ca(ne.y,q.y);return ai(ai({},q),{},{x:ie(T),y:re(T)})}if(j){var W=ca(S*2,q.x),oe=ca(_/2,q.y);return ai(ai({},q),{},{x:W(T),y:oe(T)})}return ai(ai({},q),{},{x:q.x,y:q.y})});return a.renderCurveStatically(I,r,i)}var $=ca(0,C),z=$(T),Y;if(f){var V="".concat(f).split(/[,\s]+/gim).map(function(q){return parseFloat(q)});Y=a.getStrokeDasharray(z,C,V)}else Y=a.generateSimpleStrokeDasharray(C,z);return a.renderCurveStatically(u,r,i,{strokeDasharray:Y})})}},{key:"renderCurve",value:function(r,i){var a=this.props,o=a.points,u=a.isAnimationActive,f=this.state,h=f.prevPoints,g=f.totalLength;return u&&o&&o.length&&(!h&&g>0||!sx(h,o))?this.renderCurveWithAnimation(r,i):this.renderCurveStatically(o,r,i)}},{key:"render",value:function(){var r,i=this.props,a=i.hide,o=i.dot,u=i.points,f=i.className,h=i.xAxis,g=i.yAxis,p=i.top,y=i.left,w=i.width,j=i.height,S=i.isAnimationActive,_=i.id;if(a||!u||!u.length)return null;var P=this.state.isAnimationFinished,O=u.length===1,C=yt("recharts-line",f),E=h&&h.allowDataOverflow,T=g&&g.allowDataOverflow,M=E||T,I=ut(_)?this.id:_,$=(r=vt(o,!1))!==null&&r!==void 0?r:{r:3,strokeWidth:2},z=$.r,Y=z===void 0?3:z,V=$.strokeWidth,q=V===void 0?2:V,G=$te(o)?o:{},Q=G.clipDot,ne=Q===void 0?!0:Q,ie=Y*2+q;return K.createElement(vn,{className:C},E||T?K.createElement("defs",null,K.createElement("clipPath",{id:"clipPath-".concat(I
471)},K.createElement("rect",{x:E?y:y-w/2,y:T?p:p-j/2,width:E?w:w*2,height:T?j:j*2})),!ne&&K.createElement("clipPath",{id:"clipPath-dots-".concat(I)},K.createElement("rect",{x:y-ie/2,y:p-ie/2,width:w+ie,height:j+ie}))):null,!O&&this.renderCurve(M,I),this.renderErrorBar(M,I),(O||o)&&this.renderDots(M,ne,I),(!S||P)&&tl.renderCallByParent(this.props,u))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return r.animationId!==i.prevAnimationId?{prevAnimationId:r.animationId,curPoints:r.points,prevPoints:i.curPoints}:r.points!==i.curPoints?{curPoints:r.points}:null}},{key:"repeat",value:function(r,i){for(var a=r.length%2!==0?[].concat(Iu(r),[0]):r,o=[],u=0;u<i;++u)o=[].concat(Iu(o),Iu(a));return o}},{key:"renderDotItem",value:function(r,i){var a;if(K.isValidElement(r))a=K.cloneElement(r,i);else if(st(r))a=r(i);else{var o=i.key,u=uL(i,dge),f=yt("recharts-line-dot",typeof r!="boolean"?r.className:"");a=K.createElement(aT,Mh({key:o},u,{className:f}))}return a}}])})(k.PureComponent);la(wc,"displayName","Line");la(wc,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!nf.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});la(wc,"getComposedData",function(e){var t=e.props,n=e.xAxis,r=e.yAxis,i=e.xAxisTicks,a=e.yAxisTicks,o=e.dataKey,u=e.bandSize,f=e.displayedData,h=e.offset,g=t.layout,p=f.map(function(y,w){var j=mi(y,o);return g==="horizontal"?{x:kD({axis:n,ticks:i,bandSize:u,entry:y,index:w}),y:ut(j)?null:r.scale(j),value:j,payload:y}:{x:ut(j)?null:n.scale(j),y:kD({axis:r,ticks:a,bandSize:u,entry:y,index:w}),value:j,payload:y}});return ai({points:p,layout:g},h)});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 jge(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Pge(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,Hz(r.key),r)}}function Nge(e,t,n){return t&&Pge(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Age(e,t,n){return t=yy(t),Tge(e,Wz()?Reflect.construct(t,n||[],yy(e).constructor):t.apply(e,n))}function Tge(e,t){if(t&&(Ld(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return kge(e)}function kge(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Wz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Wz=function(){return!!e})()}function yy(e){return yy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},yy(e)}function Cge(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&&UP(e,t)}function UP(e,t){return UP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},UP(e,t)}function Uz(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=Oge(e,"string");return Ld(t)=="symbol"?t:t+""}function Oge(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 String(e)}function HP(){return HP=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},HP.apply(this,arguments)}function Ege(e){var t=e.xAxisId,n=cT(),r=uT(),i=Cz(t);return i==null?null:k.createElement(sf,HP({},i,{className:yt("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:n,height:r},ticksGenerator:function(o){return To(o,!0)}}))}var $d=(function(e){function t(){return jge(this,t),Age(this,t,arguments)}return Cge(t,e),Nge(t,[{key:"render",value:function(){return k.createElement(Ege,this.props)}}])})(k.Component);Uz($d,"displayName","XAxis");Uz($d,"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 Bd(e){"@babel/helpers - typeof";return Bd=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},Bd(e)}function Mge(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Rge(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,Zz(r.key),r)}}function Dge(e,t,n){return t&&Rge(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ige(e,t,n){return t=xy(t),Lge(e,Gz()?Reflect.construct(t,n||[],xy(e).constructor):t.apply(e,n))}function Lge(e,t){if(t&&(Bd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $ge(e)}function $ge(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Gz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Gz=function(){return!!e})()}
471function xy(e){return xy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},xy(e)}function Bge(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&&GP(e,t)}function GP(e,t){return GP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},GP(e,t)}function Kz(e,t,n){return t=Zz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zz(e){var t=Fge(e,"string");return Bd(t)=="symbol"?t:t+""}function Fge(e,t){if(Bd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Bd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function KP(){return KP=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},KP.apply(this,arguments)}var zge=function(t){var n=t.yAxisId,r=cT(),i=uT(),a=Oz(n);return a==null?null:k.createElement(sf,KP({},a,{className:yt("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:r,height:i},ticksGenerator:function(u){return To(u,!0)}}))},Fd=(function(e){function t(){return Mge(this,t),Ige(this,t,arguments)}return Bge(t,e),Dge(t,[{key:"render",value:function(){return k.createElement(zge,this.props)}}])})(k.Component);Kz(Fd,"displayName","YAxis");Kz(Fd,"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 hL(e){return Uge(e)||Wge(e)||Vge(e)||qge()}function qge(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
472In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Vge(e,t){if(e){if(typeof e=="string")return ZP(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 ZP(e,t)}}function Wge(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Uge(e){if(Array.isArray(e))return ZP(e)}function ZP(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 YP=function(t,n,r,i,a){var o=Bi(t,fT),u=Bi(t,px),f=[].concat(hL(o),hL(u)),h=Bi(t,gx),g="".concat(i,"Id"),p=i[0],y=n;if(f.length&&(y=f.reduce(function(S,_){if(_.props[g]===r&&Va(_.props,"extendDomain")&&Te(_.props[p])){var P=_.props[p];return[Math.min(S[0],P),Math.max(S[1],P)]}return S},y)),h.length){var w="".concat(p,"1"),j="".concat(p,"2");y=h.reduce(function(S,_){if(_.props[g]===r&&Va(_.props,"extendDomain")&&Te(_.props[w])&&Te(_.props[j])){var P=_.props[w],O=_.props[j];return[Math.min(S[0],P,O),Math.max(S[1],P,O)]}return S},y)}return a&&a.length&&(y=a.reduce(function(S,_){return Te(_)?[Math.min(S[0],_),Math.max(S[1],_)]:S},y)),y},AS={exports:{}},pL;function Hge(){return pL||(pL=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(f,h,g){this.fn=f,this.context=h,this.once=g||!1}function a(f,h,g,p,y){if(typeof g!="function")throw new TypeError("The listener must be a function");var w=new i(g,p||f,y),j=n?n+h:h;return f._events[j]?f._events[j].fn?f._events[j]=[f._events[j],w]:f._events[j].push(w):(f._events[j]=w,f._eventsCount++),f}function o(f,h){--f._eventsCount===0?f._events=new r:delete f._events[h]}function u(){this._events=new r,this._eventsCount=0}u.prototype.eventNames=function(){var h=[],g,p;if(this._eventsCount===0)return h;for(p in g=this._events)t.call(g,p)&&h.push(n?p.slice(1):p);return Object.getOwnPropertySymbols?h.concat(Object.getOwnPropertySymbols(g)):h},u.prototype.listeners=function(h){var g=n?n+h:h,p=this._events[g];if(!p)return[];if(p.fn)return[p.fn];for(var y=0,w=p.length,j=new Array(w);y<w;y++)j[y]=p[y].fn;return j},u.prototype.listenerCount=function(h){var g=n?n+h:h,p=this._events[g];return p?p.fn?1:p.length:0},u.prototype.emit=function(h,g,p,y,w,j){var S=n?n+h:h;if(!this._events[S])return!1;var _=this._events[S],P=arguments.length,O,C;
472if(_.fn){switch(_.once&&this.removeListener(h,_.fn,void 0,!0),P){case 1:return _.fn.call(_.context),!0;case 2:return _.fn.call(_.context,g),!0;case 3:return _.fn.call(_.context,g,p),!0;case 4:return _.fn.call(_.context,g,p,y),!0;case 5:return _.fn.call(_.context,g,p,y,w),!0;case 6:return _.fn.call(_.context,g,p,y,w,j),!0}for(C=1,O=new Array(P-1);C<P;C++)O[C-1]=arguments[C];_.fn.apply(_.context,O)}else{var E=_.length,T;for(C=0;C<E;C++)switch(_[C].once&&this.removeListener(h,_[C].fn,void 0,!0),P){case 1:_[C].fn.call(_[C].context);break;case 2:_[C].fn.call(_[C].context,g);break;case 3:_[C].fn.call(_[C].context,g,p);break;case 4:_[C].fn.call(_[C].context,g,p,y);break;default:if(!O)for(T=1,O=new Array(P-1);T<P;T++)O[T-1]=arguments[T];_[C].fn.apply(_[C].context,O)}}return!0},u.prototype.on=function(h,g,p){return a(this,h,g,p,!1)},u.prototype.once=function(h,g,p){return a(this,h,g,p,!0)},u.prototype.removeListener=function(h,g,p,y){var w=n?n+h:h;if(!this._events[w])return this;if(!g)return o(this,w),this;var j=this._events[w];if(j.fn)j.fn===g&&(!y||j.once)&&(!p||j.context===p)&&o(this,w);else{for(var S=0,_=[],P=j.length;S<P;S++)(j[S].fn!==g||y&&!j[S].once||p&&j[S].context!==p)&&_.push(j[S]);_.length?this._events[w]=_.length===1?_[0]:_:o(this,w)}return this},u.prototype.removeAllListeners=function(h){var g;return h?(g=n?n+h:h,this._events[g]&&o(this,g)):(this._events=new r,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=n,u.EventEmitter=u,e.exports=u})(AS)),AS.exports}var Gge=Hge();const Kge=kt(Gge);var TS=new Kge,kS="recharts.syncMouseEvents";function Ap(e){"@babel/helpers - typeof";return Ap=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},Ap(e)}function Zge(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Yge(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,Yz(r.key),r)}}function Xge(e,t,n){return t&&Yge(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function CS(e,t,n){return t=Yz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yz(e){var t=Qge(e,"string");return Ap(t)=="symbol"?t:t+""}function Qge(e,t){if(Ap(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ap(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Jge=(function(){function e(){Zge(this,e),CS(this,"activeIndex",0),CS(this,"coordinateList",[]),CS(this,"layout","horizontal")}return Xge(e,[{key:"setDetails",value:function(n){var r,i=n.coordinateList,a=i===void 0?null:i,o=n.container,u=o===void 0?null:o,f=n.layout,h=f===void 0?null:f,g=n.offset,p=g===void 0?null:g,y=n.mouseHandlerCallback,w=y===void 0?null:y;this.coordinateList=(r=a??this.coordinateList)!==null&&r!==void 0?r:[],this.container=u??this.container,this.layout=h??this.layout,this.offset=p??this.offset,this.mouseHandlerCallback=w??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(),a=i.x,o=i.y,u=i.height,f=this.coordinateList[this.activeIndex].coordinate,h=((n=window)===null||n===void 0?void 0:n.scrollX)||0,g=((r=window)===null||r===void 0?void 0:r.scrollY)||0,p=a+f+h,y=o+this.offset.top+u/2+g;this.mouseHandlerCallback({pageX:p,pageY:y})}}}])})();function eve(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&&Te(r)&&Te(i))return!0}return!1}function tve(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}}
472function Xz(e){var t=e.cx,n=e.cy,r=e.radius,i=e.startAngle,a=e.endAngle,o=nr(t,n,r,i),u=nr(t,n,r,a);return{points:[o,u],cx:t,cy:n,radius:r,startAngle:i,endAngle:a}}function nve(e,t,n){var r,i,a,o;if(e==="horizontal")r=t.x,a=r,i=n.top,o=n.top+n.height;else if(e==="vertical")i=t.y,o=i,r=n.left,a=n.left+n.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var u=t.cx,f=t.cy,h=t.innerRadius,g=t.outerRadius,p=t.angle,y=nr(u,f,h,p),w=nr(u,f,g,p);r=y.x,i=y.y,a=w.x,o=w.y}else return Xz(t);return[{x:r,y:i},{x:a,y:o}]}function Tp(e){"@babel/helpers - typeof";return Tp=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},Tp(e)}function mL(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 Yg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?mL(Object(n),!0).forEach(function(r){rve(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function rve(e,t,n){return t=ive(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ive(e){var t=ave(e,"string");return Tp(t)=="symbol"?t:t+""}function ave(e,t){if(Tp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Tp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ove(e){var t,n,r=e.element,i=e.tooltipEventType,a=e.isActive,o=e.activeCoordinate,u=e.activePayload,f=e.offset,h=e.activeTooltipIndex,g=e.tooltipAxisBandSize,p=e.layout,y=e.chartName,w=(t=r.props.cursor)!==null&&t!==void 0?t:(n=r.type.defaultProps)===null||n===void 0?void 0:n.cursor;if(!r||!w||!a||!o||y!=="ScatterChart"&&i!=="axis")return null;var j,S=bP;if(y==="ScatterChart")j=o,S=ihe;else if(y==="BarChart")j=tve(p,o,f,g),S=iT;else if(p==="radial"){var _=Xz(o),P=_.cx,O=_.cy,C=_.radius,E=_.startAngle,T=_.endAngle;j={cx:P,cy:O,startAngle:E,endAngle:T,innerRadius:C,outerRadius:C},S=az}else j={points:nve(p,o,f)},S=bP;var M=Yg(Yg(Yg(Yg({stroke:"#ccc",pointerEvents:"none"},f),j),vt(w,!1)),{},{payload:u,payloadIndex:h,className:yt("recharts-tooltip-cursor",w.className)});return k.isValidElement(w)?k.cloneElement(w,M):k.createElement(S,M)}var sve=["item"],lve=["children","className","width","height","style","compact","title","desc"];function zd(e){"@babel/helpers - typeof";return zd=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},zd(e)}function Hu(){return Hu=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},Hu.apply(this,arguments)}function gL(e,t){return dve(e)||uve(e,t)||Jz(e,t)||cve()}function cve(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
473In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function uve(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,u=[],f=!0,h=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(f=(r=a.call(n)).done)&&(u.push(r.value),u.length!==t);f=!0);}catch(g){h=!0,i=g}finally{try{if(!f&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(h)throw i}}return u}}function dve(e){if(Array.isArray(e))return e}function vL(e,t){if(e==null)return{};var n=fve(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function fve(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 hve(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pve(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,e8(r.key),r)}}
473function mve(e,t,n){return t&&pve(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function gve(e,t,n){return t=by(t),vve(e,Qz()?Reflect.construct(t,n||[],by(e).constructor):t.apply(e,n))}function vve(e,t){if(t&&(zd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return yve(e)}function yve(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Qz=function(){return!!e})()}function by(e){return by=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},by(e)}function xve(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&&XP(e,t)}function XP(e,t){return XP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},XP(e,t)}function qd(e){return _ve(e)||wve(e)||Jz(e)||bve()}function bve(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
474In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Jz(e,t){if(e){if(typeof e=="string")return QP(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 QP(e,t)}}function wve(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function _ve(e){if(Array.isArray(e))return QP(e)}function QP(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 yL(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 me(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yL(Object(n),!0).forEach(function(r){Ze(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ze(e,t,n){return t=e8(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function e8(e){var t=Sve(e,"string");return zd(t)=="symbol"?t:t+""}function Sve(e,t){if(zd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(zd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var jve={xAxis:["bottom","top"],yAxis:["left","right"]},Pve={width:"100%",height:"100%"},t8={x:0,y:0};function Xg(e){return e}var Nve=function(t,n){return n==="horizontal"?t.x:n==="vertical"?t.y:n==="centric"?t.angle:t.radius},Ave=function(t,n,r,i){var a=n.find(function(g){return g&&g.index===r});if(a){if(t==="horizontal")return{x:a.coordinate,y:i.y};if(t==="vertical")return{x:i.x,y:a.coordinate};if(t==="centric"){var o=a.coordinate,u=i.radius;return me(me(me({},i),nr(i.cx,i.cy,u,o)),{},{angle:o,radius:u})}var f=a.coordinate,h=i.angle;return me(me(me({},i),nr(i.cx,i.cy,f,h)),{},{angle:h,radius:f})}return t8},vx=function(t,n){var r=n.graphicalItems,i=n.dataStartIndex,a=n.dataEndIndex,o=(r??[]).reduce(function(u,f){var h=f.props.data;return h&&h.length?[].concat(qd(u),qd(h)):u},[]);return o.length>0?o:t&&t.length&&Te(i)&&Te(a)?t.slice(i,a+1):[]};function n8(e){return e==="number"?[0,"auto"]:void 0}var JP=function(t,n,r,i){var a=t.graphicalItems,o=t.tooltipAxis,u=vx(n,t);return r<0||!a||!a.length||r>=u.length?null:a.reduce(function(f,h){var g,p=(g=h.props.data)!==null&&g!==void 0?g:n;p&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=r&&(p=p.slice(t.dataStartIndex,t.dataEndIndex+1));var y;if(o.dataKey&&!o.allowDuplicatedCategory){var w=p===void 0?u:p;
474y=Sv(w,o.dataKey,i)}else y=p&&p[r]||u[r];return y?[].concat(qd(f),[nz(h,y)]):f},[])},xL=function(t,n,r,i){var a=i||{x:t.chartX,y:t.chartY},o=Nve(a,r),u=t.orderedTooltipTicks,f=t.tooltipAxis,h=t.tooltipTicks,g=Lce(o,u,h,f);if(g>=0&&h){var p=h[g]&&h[g].value,y=JP(t,n,g,p),w=Ave(r,u,g,a);return{activeTooltipIndex:g,activeLabel:p,activePayload:y,activeCoordinate:w}}return null},Tve=function(t,n){var r=n.axes,i=n.graphicalItems,a=n.axisType,o=n.axisIdKey,u=n.stackGroups,f=n.dataStartIndex,h=n.dataEndIndex,g=t.layout,p=t.children,y=t.stackOffset,w=J6(g,a);return r.reduce(function(j,S){var _,P=S.type.defaultProps!==void 0?me(me({},S.type.defaultProps),S.props):S.props,O=P.type,C=P.dataKey,E=P.allowDataOverflow,T=P.allowDuplicatedCategory,M=P.scale,I=P.ticks,$=P.includeHidden,z=P[o];if(j[z])return j;var Y=vx(t.data,{graphicalItems:i.filter(function(ee){var pe,we=o in ee.props?ee.props[o]:(pe=ee.type.defaultProps)===null||pe===void 0?void 0:pe[o];return we===z}),dataStartIndex:f,dataEndIndex:h}),V=Y.length,q,G,Q;eve(P.domain,E,O)&&(q=mP(P.domain,null,E),w&&(O==="number"||M!=="auto")&&(Q=Oh(Y,C,"category")));var ne=n8(O);if(!q||q.length===0){var ie,re=(ie=P.domain)!==null&&ie!==void 0?ie:ne;if(C){if(q=Oh(Y,C,O),O==="category"&&w){var W=Tte(q);T&&W?(G=q,q=sy(0,V)):T||(q=MD(re,q,S).reduce(function(ee,pe){return ee.indexOf(pe)>=0?ee:[].concat(qd(ee),[pe])},[]))}else if(O==="category")T?q=q.filter(function(ee){return ee!==""&&!ut(ee)}):q=MD(re,q,S).reduce(function(ee,pe){return ee.indexOf(pe)>=0||pe===""||ut(pe)?ee:[].concat(qd(ee),[pe])},[]);else if(O==="number"){var oe=qce(Y,i.filter(function(ee){var pe,we,ge=o in ee.props?ee.props[o]:(pe=ee.type.defaultProps)===null||pe===void 0?void 0:pe[o],ye="hide"in ee.props?ee.props.hide:(we=ee.type.defaultProps)===null||we===void 0?void 0:we.hide;return ge===z&&($||!ye)}),C,a,g);oe&&(q=oe)}w&&(O==="number"||M!=="auto")&&(Q=Oh(Y,C,"category"))}else w?q=sy(0,V):u&&u[z]&&u[z].hasStack&&O==="number"?q=y==="expand"?[0,1]:tz(u[z].stackGroups,f,h):q=Q6(Y,i.filter(function(ee){var pe=o in ee.props?ee.props[o]:ee.type.defaultProps[o],we="hide"in ee.props?ee.props.hide:ee.type.defaultProps.hide;return pe===z&&($||!we)}),O,g,!0);if(O==="number")q=YP(p,q,z,a,I),re&&(q=mP(re,q,E));else if(O==="category"&&re){var U=re,H=q.every(function(ee){return U.indexOf(ee)>=0});H&&(q=U)}}return me(me({},j),{},Ze({},z,me(me({},P),{},{axisType:a,domain:q,categoricalDomain:Q,duplicateDomain:G,originalDomain:(_=P.domain)!==null&&_!==void 0?_:ne,isCategorical:w,layout:g})))},{})},kve=function(t,n){var r=n.graphicalItems,i=n.Axis,a=n.axisType,o=n.axisIdKey,u=n.stackGroups,f=n.dataStartIndex,h=n.dataEndIndex,g=t.layout,p=t.children,y=vx(t.data,{graphicalItems:r,dataStartIndex:f,dataEndIndex:h}),w=y.length,j=J6(g,a),S=-1;return r.reduce(function(_,P){var O=P.type.defaultProps!==void 0?me(me({},P.type.defaultProps),P.props):P.props,C=O[o],E=n8("number");if(!_[C]){S++;var T;return j?T=sy(0,w):u&&u[C]&&u[C].hasStack?(T=tz(u[C].stackGroups,f,h),T=YP(p,T,C,a)):(T=mP(E,Q6(y,r.filter(function(M){var I,$,z=o in M.props?M.props[o]:(I=M.type.defaultProps)===null||I===void 0?void 0:I[o],Y="hide"in M.props?M.props.hide:($=M.type.defaultProps)===null||$===void 0?void 0:$.hide;return z===C&&!Y}),"number",g),i.defaultProps.allowDataOverflow),T=YP(p,T,C,a)),me(me({},_),{},Ze({},C,me(me({axisType:a},i.defaultProps),{},{hide:!0,orientation:$i(jve,"".concat(a,".").concat(S%2),null),domain:T,originalDomain:E,isCategorical:j,layout:g})))}return _},{})},Cve=function(t,n){var r=n.axisType,i=r===void 0?"xAxis":r,a=n.AxisComp,o=n.graphicalItems,u=n.stackGroups,f=n.dataStartIndex,h=n.dataEndIndex,g=t.children,p="".concat(i,"Id"),y=Bi(g,a),w={};return y&&y.length?w=Tve(t,{axes:y,graphicalItems:o,axisType:i,axisIdKey:p,stackGroups:u,dataStartIndex:f,dataEndIndex:h}):o&&o.length&&(w=kve(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:p,stackGroups:u,dataStartIndex:f,dataEndIndex:h})),w},Ove=function(t){var n=Fs(t),r=To(n,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:OA(r,function(i){return i.coordinate}),tooltipAxis:n,tooltipAxisBandSize:Xv(n,r)}},bL=function(t){var n=t.children,r=t.defaultShowTooltip,i=si(n,Cd),a=0,o=0;return t.data&&t.data.length!==0&&(o=t.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(a=i.props.startIndex),i.props.endIndex>=0&&(o=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:a,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!r}},Eve=function(t){return!t||!t.length?!1:t.some(function(n){var r=Eo(n&&n.type);return r&&r.indexOf("Bar")>=0})},wL=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"}},Mve=function(t,n){var r=t.props,i=t.graphicalItems,a=t.xAxisMap,o=a===void 0?{}:a,u=t.yAxisMap,f=u===void 0?{}:u,h=r.width,g=r.height,p=r.children,y=r.margin||{},w=si(p,Cd),j=si(p,Js),S=Object.keys(f).reduce(function(T,M){var I=f[M],$=I.orientation;return!I.mirror&&!I.hide?me(me({},T),{},Ze({},$,T[$]+I.width)):T},{left:y.left||0,right:y.right||0}),_=Object.keys(o).reduce(function(T,M){var I=o[M],$=I.orientation;return!I.mirror&&!I.hide?me(me({},T),{},Ze({},$,$i(T,"".concat($))+I.height)):T},{top:y.top||0,bottom:y.bottom||0}),P=me(me({},_),S),O=P.bottom;w&&(P.bottom+=w.props.height||Cd.defaultProps.height),j&&n&&(P=Fce(P,i,r,n));var C=h-P.left-P.right,E=g-P.top-P.bottom;return me(me({brushBottom:O},P),{},{width:Math.max(C,0),height:Math.max(E,0)})},Rve=function(t,n){if(n==="xAxis")return t[n].width;if(n==="yAxis")return t[n].height}
474,r8=function(t){var n=t.chartName,r=t.GraphicalChild,i=t.defaultTooltipEventType,a=i===void 0?"axis":i,o=t.validateTooltipEventTypes,u=o===void 0?["axis"]:o,f=t.axisComponents,h=t.legendContent,g=t.formatAxisMap,p=t.defaultProps,y=function(P,O){var C=O.graphicalItems,E=O.stackGroups,T=O.offset,M=O.updateId,I=O.dataStartIndex,$=O.dataEndIndex,z=P.barSize,Y=P.layout,V=P.barGap,q=P.barCategoryGap,G=P.maxBarSize,Q=wL(Y),ne=Q.numericAxisName,ie=Q.cateAxisName,re=Eve(C),W=[];return C.forEach(function(oe,U){var H=vx(P.data,{graphicalItems:[oe],dataStartIndex:I,dataEndIndex:$}),ee=oe.type.defaultProps!==void 0?me(me({},oe.type.defaultProps),oe.props):oe.props,pe=ee.dataKey,we=ee.maxBarSize,ge=ee["".concat(ne,"Id")],ye=ee["".concat(ie,"Id")],$e={},xe=f.reduce(function(Xt,pn){var br=O["".concat(pn.axisType,"Map")],Za=ee["".concat(pn.axisType,"Id")];br&&br[Za]||pn.axisType==="zAxis"||Pc();var ga=br[Za];return me(me({},Xt),{},Ze(Ze({},pn.axisType,ga),"".concat(pn.axisType,"Ticks"),To(ga)))},$e),de=xe[ie],Ae=xe["".concat(ie,"Ticks")],Ne=E&&E[ge]&&E[ge].hasStack&&eue(oe,E[ge].stackGroups),he=Eo(oe.type).indexOf("Bar")>=0,Ee=Xv(de,Ae),Se=[],at=re&&$ce({barSize:z,stackGroups:E,totalSize:Rve(xe,ie)});if(he){var dt,bt,Gt=ut(we)?G:we,ir=(dt=(bt=Xv(de,Ae,!0))!==null&&bt!==void 0?bt:Gt)!==null&&dt!==void 0?dt:0;Se=Bce({barGap:V,barCategoryGap:q,bandSize:ir!==Ee?ir:Ee,sizeList:at[ye],maxBarSize:Gt}),ir!==Ee&&(Se=Se.map(function(Xt){return me(me({},Xt),{},{position:me(me({},Xt.position),{},{offset:Xt.position.offset-ir/2})})}))}var sn=oe&&oe.type&&oe.type.getComposedData;sn&&W.push({props:me(me({},sn(me(me({},xe),{},{displayedData:H,props:P,dataKey:pe,item:oe,bandSize:Ee,barPosition:Se,offset:T,stackedData:Ne,layout:Y,dataStartIndex:I,dataEndIndex:$}))),{},Ze(Ze(Ze({key:oe.key||"item-".concat(U)},ne,xe[ne]),ie,xe[ie]),"animationId",M)),childIndex:zte(oe,P.children),item:oe})}),W},w=function(P,O){var C=P.props,E=P.dataStartIndex,T=P.dataEndIndex,M=P.updateId;if(!HE({props:C}))return null;var I=C.children,$=C.layout,z=C.stackOffset,Y=C.data,V=C.reverseStackOrder,q=wL($),G=q.numericAxisName,Q=q.cateAxisName,ne=Bi(I,r),ie=Xce(Y,ne,"".concat(G,"Id"),"".concat(Q,"Id"),z,V),re=f.reduce(function(ee,pe){var we="".concat(pe.axisType,"Map");return me(me({},ee),{},Ze({},we,Cve(C,me(me({},pe),{},{graphicalItems:ne,stackGroups:pe.axisType===G&&ie,dataStartIndex:E,dataEndIndex:T}))))},{}),W=Mve(me(me({},re),{},{props:C,graphicalItems:ne}),O==null?void 0:O.legendBBox);Object.keys(re).forEach(function(ee){re[ee]=g(C,re[ee],W,ee.replace("Map",""),n)});var oe=re["".concat(Q,"Map")],U=Ove(oe),H=y(C,me(me({},re),{},{dataStartIndex:E,dataEndIndex:T,updateId:M,graphicalItems:ne,stackGroups:ie,offset:W}));return me(me({formattedGraphicalItems:H,graphicalItems:ne,offset:W,stackGroups:ie},U),re)},j=(function(_){function P(O){var C,E,T;return hve(this,P),T=gve(this,P,[O]),Ze(T,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),Ze(T,"accessibilityManager",new Jge),Ze(T,"handleLegendBBoxUpdate",function(M){if(M){var I=T.state,$=I.dataStartIndex,z=I.dataEndIndex,Y=I.updateId;T.setState(me({legendBBox:M},w({props:T.props,dataStartIndex:$,dataEndIndex:z,updateId:Y},me(me({},T.state),{},{legendBBox:M}))))}}),Ze(T,"handleReceiveSyncEvent",function(M,I,$){if(T.props.syncId===M){if($===T.eventEmitterSymbol&&typeof T.props.syncMethod!="function")return;T.applySyncEvent(I)}}),Ze(T,"handleBrushChange",function(M){var I=M.startIndex,$=M.endIndex;if(I!==T.state.dataStartIndex||$!==T.state.dataEndIndex){var z=T.state.updateId;T.setState(function(){return me({dataStartIndex:I,dataEndIndex:$},w({props:T.props,dataStartIndex:I,dataEndIndex:$,updateId:z},T.state))}),T.triggerSyncEvent({dataStartIndex:I,dataEndIndex:$})}}),Ze(T,"handleMouseEnter",function(M){var I=T.getMouseInfo(M);if(I){var $=me(me({},I),{},{isTooltipActive:!0});T.setState($),T.triggerSyncEvent($);var z=T.props.onMouseEnter;st(z)&&z($,M)}}),Ze(T,"triggeredAfterMouseMove",function(M){var I=T.getMouseInfo(M),$=I?me(me({},I),{},{isTooltipActive:!0}):{isTooltipActive:!1};T.setState($),T.triggerSyncEvent($);var z=T.props.onMouseMove;st(z)&&z($,M)}),Ze(T,"handleItemMouseEnter",function(M){T.setState(function(){return{isTooltipActive:!0,activeItem:M,activePayload:M.tooltipPayload,activeCoordinate:M.tooltipPosition||{x:M.cx,y:M.cy}}})}),Ze(T,"handleItemMouseLeave",function(){T.setState(function(){return{isTooltipActive:!1}})}),Ze(T,"handleMouseMove",function(M){M.persist(),T.throttleTriggeredAfterMouseMove(M)}),Ze(T,"handleMouseLeave",function(M){T.throttleTriggeredAfterMouseMove.cancel();var I={isTooltipActive:!1};
474T.setState(I),T.triggerSyncEvent(I);var $=T.props.onMouseLeave;st($)&&$(I,M)}),Ze(T,"handleOuterEvent",function(M){var I=Fte(M),$=$i(T.props,"".concat(I));if(I&&st($)){var z,Y;/.*touch.*/i.test(I)?Y=T.getMouseInfo(M.changedTouches[0]):Y=T.getMouseInfo(M),$((z=Y)!==null&&z!==void 0?z:{},M)}}),Ze(T,"handleClick",function(M){var I=T.getMouseInfo(M);if(I){var $=me(me({},I),{},{isTooltipActive:!0});T.setState($),T.triggerSyncEvent($);var z=T.props.onClick;st(z)&&z($,M)}}),Ze(T,"handleMouseDown",function(M){var I=T.props.onMouseDown;if(st(I)){var $=T.getMouseInfo(M);I($,M)}}),Ze(T,"handleMouseUp",function(M){var I=T.props.onMouseUp;if(st(I)){var $=T.getMouseInfo(M);I($,M)}}),Ze(T,"handleTouchMove",function(M){M.changedTouches!=null&&M.changedTouches.length>0&&T.throttleTriggeredAfterMouseMove(M.changedTouches[0])}),Ze(T,"handleTouchStart",function(M){M.changedTouches!=null&&M.changedTouches.length>0&&T.handleMouseDown(M.changedTouches[0])}),Ze(T,"handleTouchEnd",function(M){M.changedTouches!=null&&M.changedTouches.length>0&&T.handleMouseUp(M.changedTouches[0])}),Ze(T,"handleDoubleClick",function(M){var I=T.props.onDoubleClick;if(st(I)){var $=T.getMouseInfo(M);I($,M)}}),Ze(T,"handleContextMenu",function(M){var I=T.props.onContextMenu;if(st(I)){var $=T.getMouseInfo(M);I($,M)}}),Ze(T,"triggerSyncEvent",function(M){T.props.syncId!==void 0&&TS.emit(kS,T.props.syncId,M,T.eventEmitterSymbol)}),Ze(T,"applySyncEvent",function(M){var I=T.props,$=I.layout,z=I.syncMethod,Y=T.state.updateId,V=M.dataStartIndex,q=M.dataEndIndex;if(M.dataStartIndex!==void 0||M.dataEndIndex!==void 0)T.setState(me({dataStartIndex:V,dataEndIndex:q},w({props:T.props,dataStartIndex:V,dataEndIndex:q,updateId:Y},T.state)));else if(M.activeTooltipIndex!==void 0){var G=M.chartX,Q=M.chartY,ne=M.activeTooltipIndex,ie=T.state,re=ie.offset,W=ie.tooltipTicks;if(!re)return;if(typeof z=="function")ne=z(W,M);else if(z==="value"){ne=-1;for(var oe=0;oe<W.length;oe++)if(W[oe].value===M.activeLabel){ne=oe;break}}var U=me(me({},re),{},{x:re.left,y:re.top}),H=Math.min(G,U.x+U.width),ee=Math.min(Q,U.y+U.height),pe=W[ne]&&W[ne].value,we=JP(T.state,T.props.data,ne),ge=W[ne]?{x:$==="horizontal"?W[ne].coordinate:H,y:$==="horizontal"?ee:W[ne].coordinate}:t8;T.setState(me(me({},M),{},{activeLabel:pe,activeCoordinate:ge,activePayload:we,activeTooltipIndex:ne}))}else T.setState(M)}),Ze(T,"renderCursor",function(M){var I,$=T.state,z=$.isTooltipActive,Y=$.activeCoordinate,V=$.activePayload,q=$.offset,G=$.activeTooltipIndex,Q=$.tooltipAxisBandSize,ne=T.getTooltipEventType(),ie=(I=M.props.active)!==null&&I!==void 0?I:z,re=T.props.layout,W=M.key||"_recharts-cursor";return K.createElement(ove,{key:W,activeCoordinate:Y,activePayload:V,activeTooltipIndex:G,chartName:n,element:M,isActive:ie,layout:re,offset:q,tooltipAxisBandSize:Q,tooltipEventType:ne})}),Ze(T,"renderPolarAxis",function(M,I,$){var z=$i(M,"type.axisType"),Y=$i(T.state,"".concat(z,"Map")),V=M.type.defaultProps,q=V!==void 0?me(me({},V),M.props):M.props,G=Y&&Y[q["".concat(z,"Id")]];return k.cloneElement(M,me(me({},G),{},{className:yt(z,G.className),key:M.key||"".concat(I,"-").concat($),ticks:To(G,!0)}))}),Ze(T,"renderPolarGrid",function(M){var I=M.props,$=I.radialLines,z=I.polarAngles,Y=I.polarRadius,V=T.state,q=V.radiusAxisMap,G=V.angleAxisMap,Q=Fs(q),ne=Fs(G),ie=ne.cx,re=ne.cy,W=ne.innerRadius,oe=ne.outerRadius;return k.cloneElement(M,{polarAngles:Array.isArray(z)?z:To(ne,!0).map(function(U){return U.coordinate}),polarRadius:Array.isArray(Y)?Y:To(Q,!0).map(function(U){return U.coordinate}),cx:ie,cy:re,innerRadius:W,outerRadius:oe,key:M.key||"polar-grid",radialLines:$})}),Ze(T,"renderLegend",function(){var M=T.state.formattedGraphicalItems,I=T.props,$=I.children,z=I.width,Y=I.height,V=T.props.margin||{},q=z-(V.left||0)-(V.right||0),G=Y6({children:$,formattedGraphicalItems:M,legendWidth:q,legendContent:h});if(!G)return null;var Q=G.item,ne=vL(G,sve);return k.cloneElement(Q,me(me({},ne),{},{chartWidth:z,chartHeight:Y,margin:V,onBBoxUpdate:T.handleLegendBBoxUpdate}))}),Ze(T,"renderTooltip",function(){var M,I=T.props,$=I.children,z=I.accessibilityLayer,Y=si($,oa);if(!Y)return null;var V=T.state,q=V.isTooltipActive,G=V.activeCoordinate,Q=V.activePayload,ne=V.activeLabel,ie=V.offset,re=(M=Y.props.active)!==null&&M!==void 0?M:q;return k.cloneElement(Y,{viewBox:me(me({},ie),{},{x:ie.left,y:ie.top}),active:re,label:ne,payload:re?Q:[],coordinate:G,accessibilityLayer:z})}),Ze(T,"renderBrush",function(M){var I=T.props,$=I.margin,z=I.data,Y=T.state,V=Y.offset,q=Y.dataStartIndex,G=Y.dataEndIndex,Q=Y.updateId;return k.cloneElement(M,{key:M.key||"_recharts-brush",onChange:Hg(T.handleBrushChange,M.props.onChange),data:z,x:Te(M.props.x)?M.props.x:V.left,y:Te(M.props.y)?M.props.y:V.top+V.height+V.brushBottom-($.bottom||0),width:Te(M.props.width)?M.props.width:V.width,startIndex:q,endIndex:G,updateId:"brush-".concat(Q)})}),Ze(T,"renderReferenceElement",function(M,I,$){if(!M)return null;var z=T,Y=z.clipPathId,V=T.state,q=V.xAxisMap,G=V.yAxisMap,Q=V.offset,ne=M.type.defaultProps||{},ie=M.props,re=ie.xAxisId,W=re===void 0?ne.xAxisId:re,oe=ie.yAxisId,U=oe===void 0?ne.yAxisId:oe;return k.cloneElement(M,{key:M.key||"".concat(I,"-").concat($),xAxis:q[W],yAxis:G[U],viewB
474ox:{x:Q.left,y:Q.top,width:Q.width,height:Q.height},clipPathId:Y})}),Ze(T,"renderActivePoints",function(M){var I=M.item,$=M.activePoint,z=M.basePoint,Y=M.childIndex,V=M.isRange,q=[],G=I.props.key,Q=I.item.type.defaultProps!==void 0?me(me({},I.item.type.defaultProps),I.item.props):I.item.props,ne=Q.activeDot,ie=Q.dataKey,re=me(me({index:Y,dataKey:ie,cx:$.x,cy:$.y,r:4,fill:rT(I.item),strokeWidth:2,stroke:"#fff",payload:$.payload,value:$.value},vt(ne,!1)),jv(ne));return q.push(P.renderActiveDot(ne,re,"".concat(G,"-activePoint-").concat(Y))),z?q.push(P.renderActiveDot(ne,me(me({},re),{},{cx:z.x,cy:z.y}),"".concat(G,"-basePoint-").concat(Y))):V&&q.push(null),q}),Ze(T,"renderGraphicChild",function(M,I,$){var z=T.filterFormatItem(M,I,$);if(!z)return null;var Y=T.getTooltipEventType(),V=T.state,q=V.isTooltipActive,G=V.tooltipAxis,Q=V.activeTooltipIndex,ne=V.activeLabel,ie=T.props.children,re=si(ie,oa),W=z.props,oe=W.points,U=W.isRange,H=W.baseLine,ee=z.item.type.defaultProps!==void 0?me(me({},z.item.type.defaultProps),z.item.props):z.item.props,pe=ee.activeDot,we=ee.hide,ge=ee.activeBar,ye=ee.activeShape,$e=!!(!we&&q&&re&&(pe||ge||ye)),xe={};
474Y!=="axis"&&re&&re.props.trigger==="click"?xe={onClick:Hg(T.handleItemMouseEnter,M.props.onClick)}:Y!=="axis"&&(xe={onMouseLeave:Hg(T.handleItemMouseLeave,M.props.onMouseLeave),onMouseEnter:Hg(T.handleItemMouseEnter,M.props.onMouseEnter)});var de=k.cloneElement(M,me(me({},z.props),xe));function Ae(pn){return typeof G.dataKey=="function"?G.dataKey(pn.payload):null}if($e)if(Q>=0){var Ne,he;if(G.dataKey&&!G.allowDuplicatedCategory){var Ee=typeof G.dataKey=="function"?Ae:"payload.".concat(G.dataKey.toString());Ne=Sv(oe,Ee,ne),he=U&&H&&Sv(H,Ee,ne)}else Ne=oe==null?void 0:oe[Q],he=U&&H&&H[Q];if(ye||ge){var Se=M.props.activeIndex!==void 0?M.props.activeIndex:Q;return[k.cloneElement(M,me(me(me({},z.props),xe),{},{activeIndex:Se})),null,null]}if(!ut(Ne))return[de].concat(qd(T.renderActivePoints({item:z,activePoint:Ne,basePoint:he,childIndex:Q,isRange:U})))}else{var at,dt=(at=T.getItemByXY(T.state.activeCoordinate))!==null&&at!==void 0?at:{graphicalItem:de},bt=dt.graphicalItem,Gt=bt.item,ir=Gt===void 0?M:Gt,sn=bt.childIndex,Xt=me(me(me({},z.props),xe),{},{activeIndex:sn});return[k.cloneElement(ir,Xt),null,null]}return U?[de,null,null]:[de,null]}),Ze(T,"renderCustomized",function(M,I,$){return k.cloneElement(M,me(me({key:"recharts-customized-".concat($)},T.props),T.state))}),Ze(T,"renderMap",{CartesianGrid:{handler:Xg,once:!0},ReferenceArea:{handler:T.renderReferenceElement},ReferenceLine:{handler:Xg},ReferenceDot:{handler:T.renderReferenceElement},XAxis:{handler:Xg},YAxis:{handler:Xg},Brush:{handler:T.renderBrush,once:!0},Bar:{handler:T.renderGraphicChild},Line:{handler:T.renderGraphicChild},Area:{handler:T.renderGraphicChild},Radar:{handler:T.renderGraphicChild},RadialBar:{handler:T.renderGraphicChild},Scatter:{handler:T.renderGraphicChild},Pie:{handler:T.renderGraphicChild},Funnel:{handler:T.renderGraphicChild},Tooltip:{handler:T.renderCursor,once:!0},PolarGrid:{handler:T.renderPolarGrid,once:!0},PolarAngleAxis:{handler:T.renderPolarAxis},PolarRadiusAxis:{handler:T.renderPolarAxis},Customized:{handler:T.renderCustomized}}),T.clipPathId="".concat((C=O.id)!==null&&C!==void 0?C:Jp("recharts"),"-clip"),T.throttleTriggeredAfterMouseMove=YF(T.triggeredAfterMouseMove,(E=O.throttleDelay)!==null&&E!==void 0?E:1e3/60),T.state={},T}return xve(P,_),mve(P,[{key:"componentDidMount",value:function(){var C,E;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(C=this.props.margin.left)!==null&&C!==void 0?C:0,top:(E=this.props.margin.top)!==null&&E!==void 0?E:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var C=this.props,E=C.children,T=C.data,M=C.height,I=C.layout,$=si(E,oa);if($){var z=$.props.defaultIndex;if(!(typeof z!="number"||z<0||z>this.state.tooltipTicks.length-1)){var Y=this.state.tooltipTicks[z]&&this.state.tooltipTicks[z].value,V=JP(this.state,T,z,Y),q=this.state.tooltipTicks[z].coordinate,G=(this.state.offset.top+M)/2,Q=I==="horizontal",ne=Q?{x:q,y:G}:{y:q,x:G},ie=this.state.formattedGraphicalItems.find(function(W){var oe=W.item;return oe.type.name==="Scatter"});ie&&(ne=me(me({},ne),ie.props.points[z].tooltipPosition),V=ie.props.points[z].tooltipPayload);var re={activeTooltipIndex:z,isTooltipActive:!0,activeLabel:Y,activePayload:V,activeCoordinate:ne};this.setState(re),this.renderCursor($),this.accessibilityManager.setIndex(z)}}}},{key:"getSnapshotBeforeUpdate",value:function(C,E){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==E.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==C.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==C.margin){var T,M;this.accessibilityManager.setDetails({offset:{left:(T=this.props.margin.left)!==null&&T!==void 0?T:0,top:(M=this.props.margin.top)!==null&&M!==void 0?M:0}})}return null}},{key:"componentDidUpdate",value:function(C){Lj([si(C.children,oa)],[si(this.props.children,oa)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var C=si(this.props.children,oa);if(C&&typeof C.props.shared=="boolean"){var E=C.props.shared?"axis":"item";return u.indexOf(E)>=0?E:a}return a}},{key:"getMouseInfo",value:function(C){if(!this.container)return null;var E=this.container,T=E.getBoundingClientRect(),M=Aae(T),I={chartX:Math.round(C.pageX-M.left),chartY:Math.round(C.pageY-M.top)},$=T.width/E.offsetWidth||1,z=this.inRange(I.chartX,I.chartY,$);if(!z)return null;var Y=this.state,V=Y.xAxisMap,q=Y.yAxisMap,G=this.getTooltipEventType(),Q=xL(this.state,this.props.data,this.props.layout,z);if(G!=="axis"&&V&&q){var ne=Fs(V).scale,ie=Fs(q).scale,re=ne&&ne.invert?ne.invert(
474I.chartX):null,W=ie&&ie.invert?ie.invert(I.chartY):null;return me(me({},I),{},{xValue:re,yValue:W},Q)}return Q?me(me({},I),Q):null}},{key:"inRange",value:function(C,E){var T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,M=this.props.layout,I=C/T,$=E/T;if(M==="horizontal"||M==="vertical"){var z=this.state.offset,Y=I>=z.left&&I<=z.left+z.width&&$>=z.top&&$<=z.top+z.height;return Y?{x:I,y:$}:null}var V=this.state,q=V.angleAxisMap,G=V.radiusAxisMap;if(q&&G){var Q=Fs(q);return ID({x:I,y:$},Q)}return null}},{key:"parseEventsOfWrapper",value:function(){var C=this.props.children,E=this.getTooltipEventType(),T=si(C,oa),M={};T&&E==="axis"&&(T.props.trigger==="click"?M={onClick:this.handleClick}:M={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 I=jv(this.props,this.handleOuterEvent);return me(me({},I),M)}},{key:"addListener",value:function(){TS.on(kS,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){TS.removeListener(kS,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(C,E,T){for(var M=this.state.formattedGraphicalItems,I=0,$=M.length;I<$;I++){var z=M[I];if(z.item===C||z.props.key===C.key||E===Eo(z.item.type)&&T===z.childIndex)return z}return null}},{key:"renderClipPath",value:function(){var C=this.clipPathId,E=this.state.offset,T=E.left,M=E.top,I=E.height,$=E.width;return K.createElement("defs",null,K.createElement("clipPath",{id:C},K.createElement("rect",{x:T,y:M,height:I,width:$})))}},{key:"getXScales",value:function(){var C=this.state.xAxisMap;return C?Object.entries(C).reduce(function(E,T){var M=gL(T,2),I=M[0],$=M[1];return me(me({},E),{},Ze({},I,$.scale))},{}):null}},{key:"getYScales",value:function(){var C=this.state.yAxisMap;return C?Object.entries(C).reduce(function(E,T){var M=gL(T,2),I=M[0],$=M[1];return me(me({},E),{},Ze({},I,$.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(C){var E;return(E=this.state.xAxisMap)===null||E===void 0||(E=E[C])===null||E===void 0?void 0:E.scale}},{key:"getYScaleByAxisId",value:function(C){var E;return(E=this.state.yAxisMap)===null||E===void 0||(E=E[C])===null||E===void 0?void 0:E.scale}},{key:"getItemByXY",value:function(C){var E=this.state,T=E.formattedGraphicalItems,M=E.activeItem;if(T&&T.length)for(var I=0,$=T.length;I<$;I++){var z=T[I],Y=z.props,V=z.item,q=V.type.defaultProps!==void 0?me(me({},V.type.defaultProps),V.props):V.props,G=Eo(V.type);if(G==="Bar"){var Q=(Y.data||[]).find(function(W){return Kfe(C,W)});if(Q)return{graphicalItem:z,payload:Q}}else if(G==="RadialBar"){var ne=(Y.data||[]).find(function(W){return ID(C,W)});if(ne)return{graphicalItem:z,payload:ne}}else if(ux(z,M)||dx(z,M)||_p(z,M)){var ie=$he({graphicalItem:z,activeTooltipItem:M,itemData:q.data}),re=q.activeIndex===void 0?ie:q.activeIndex;return{graphicalItem:me(me({},z),{},{childIndex:re}),payload:_p(z,M)?q.data[ie]:z.props.data[ie]}}}return null}},{key:"render",value:function(){var C=this;if(!HE(this))return null;var E=this.props,T=E.children,M=E.className,I=E.width,$=E.height,z=E.style,Y=E.compact,V=E.title,q=E.desc,G=vL(E,lve),Q=vt(G,!1);if(Y)return K.createElement(XI,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},K.createElement(Bj,Hu({},Q,{width:I,height:$,title:V,desc:q}),this.renderClipPath(),KE(T,this.renderMap)));if(this.props.accessibilityLayer){var ne,ie;Q.tabIndex=(ne=this.props.tabIndex)!==null&&ne!==void 0?ne:0,Q.role=(ie=this.props.role)!==null&&ie!==void 0?ie:"application",Q.onKeyDown=function(W){C.accessibilityManager.keyboardEvent(W)},Q.onFocus=function(){C.accessibilityManager.focus()}}var re=this.parseEventsOfWrapper();return K.createElement(XI,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},K.createElement("div",Hu({className:yt("recharts-wrapper",M),style:me({position:"relative",cursor:"default",width:I,height:$},z)},re,{ref:function(oe){C.container=oe}}),K.createElement(Bj,Hu({},Q,{width:I,height:$,title:V,desc:q,style:Pve}),this.renderClipPath(),KE(T,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(k.Component);Ze(j,"displayName",n),Ze(j,"defaultProps",me({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},p)),Ze(j,"getDerivedStateFromProps",function(_,P){var O=_.dataKey,C=_.data,E=_.children,T=_.width,M=_.height,I=_.layout,$=_.stackOffset,z=_.margin,Y=P.dataStartIndex,V=P.dataEndIndex;if(P.updateId===void 0){var q=bL(_);return me(me(me({},q),{},{updateId:0},w(me(me({props:_},q),{},{updateId:0}),P)),{},{prevDataKey:O,prevData:C,prevWidth:T,prevHeight:M,prevLayout:I,prevStackOffset:$,prevMargin:z,prevChildren:E})}if(O!==P.prevDataKey||C!==P.prevData||T!==P.prevWidth||M!==P.prevHeight||I!==P.prevLayout||$!==P.prevStackOffset||!Zu(z,P.prevMargin)){var G=bL(_),Q={chartX:P.chartX,chartY:P.chartY,isTooltipActive:P.isTooltipActive},ne=me(me({},xL(P,C,I)),{},{updateId:P.updateId+1}),ie=me(me(me({},G),Q),ne);return me(me(me({},ie),w(me({props:_},ie),P)),{},{prevDataKey:O,prevData:C,prevWidth:T,prevHeight:M,prevLayout:I,prevStackOffset:$,prevMargin:z,prevChildren:E})}if(!Lj(E,P.prevChildren)){var re,W,oe,U,H=si(E,Cd),ee=H&&(re=(W=H.props)===null||W===void 0?void 0:W.startIndex)!==null&&re!==void 0?re:Y,pe=H&&(oe=(U=H.props)===null||U===void 0?void 0:U.endIndex)!==null&&oe!==void 0?oe:V,we=ee!==Y||pe!==V,ge=!ut(C),ye=ge&&!we?P.updateId:P.updateId+1;return me(me({updateId:ye},w(me(me({props:_},P),{}
474,{updateId:ye,dataStartIndex:ee,dataEndIndex:pe}),P)),{},{prevChildren:E,dataStartIndex:ee,dataEndIndex:pe})}return null}),Ze(j,"renderActiveDot",function(_,P,O){var C;return k.isValidElement(_)?C=k.cloneElement(_,P):st(_)?C=_(P):C=K.createElement(aT,P),K.createElement(vn,{className:"recharts-active-dot",key:O},C)});var S=k.forwardRef(function(P,O){return K.createElement(j,Hu({},P,{ref:O}))});return S.displayName=j.displayName,S},Dve=r8({chartName:"LineChart",GraphicalChild:wc,axisComponents:[{axisType:"xAxis",AxisComp:$d},{axisType:"yAxis",AxisComp:Fd}],formatAxisMap:_z}),Ive=r8({chartName:"BarChart",GraphicalChild:al,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:$d},{axisType:"yAxis",AxisComp:Fd}],formatAxisMap:_z});function Lve(){const[e,t]=k.useState("all"),[n,r]=k.useState("all"),[i,a]=k.useState("all"),{data:o,isLoading:u}=an({queryKey:["tournament-results"],queryFn:()=>on.entities.TournamentResult.list("-tournament_year",500),initialData:[]}),{divisions:f,types:h,genders:g,filteredResults:p,scoreTrends:y,divisionStats:w}=k.useMemo(()=>{const j=[...new Set(o.map(M=>M.division))].filter(Boolean).sort(),S=[...new Set(o.map(M=>M.tournament_type))].filter(Boolean),_=[...new Set(o.map(M=>M.gender))].filter(Boolean),P=o.filter(M=>!(e!=="all"&&M.division!==e||n!=="all"&&M.tournament_type!==n||i!=="all"&&M.gender!==i)),O={};P.forEach(M=>{const I=`${M.tournament_year}-${M.division||"unknown"}`;O[I]||(O[I]={year:M.tournament_year,division:M.division||"unknown",scores:[]}),O[I].scores.push(M.score)});const C=Object.values(O).map(M=>({year:M.year,division:M.division,avg:Math.round(M.scores.reduce((I,$)=>I+$,0)/M.scores.length),max:Math.max(...M.scores),min:Math.min(...M.scores),count:M.scores.length})).sort((M,I)=>M.year-I.year),E={};P.forEach(M=>{E[M.division]||(E[M.division]={scores:[],names:new Set,division:M.division}),E[M.division].scores.push(M.score),E[M.division].names.add(M.name)});const T=Object.values(E).map(M=>({division:M.division,avgScore:Math.round(M.scores.reduce((I,$)=>I+$,0)/M.scores.length),maxScore:Math.max(...M.scores),archers:M.names.size,results:M.scores.length}));return{divisions:j,types:S,genders:_,filteredResults:P,scoreTrends:C,divisionStats:T}},[o,e,n,i]);return c.jsxs("div",{className:"min-h-screen bg-[#060d1f]",children:[c.jsx(gi,{title:"Tournament Analytics",description:"View archery tournament results trends, score analysis, and performance statistics across divisions.",type:"WebPage"}),c.jsx("div",{className:"bg-[#02060f] pt-16 pb-20 border-b border-white/10",children:c.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[c.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[c.jsx(uW,{className:"w-5 h-5 text-[#00d4ff]"}),c.jsx("span",{className:"text-[#00d4ff] text-xs font-black uppercase tracking-widest",children:"Analysis"})]}),c.jsx("h1",{className:"text-4xl lg:text-6xl font-black text-white uppercase tracking-tight",children:"Tournament Analytics"}),c.jsx("p",{className:"text-gray-400 mt-3",children:"Score trends, performance insights, and division statistics"})]})}),c.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8",children:[c.jsxs("div",{className:"bg-[#0d1830] border border-white/10 rounded-xl p-4 mb-8",children:[c.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[c.jsx(Ty,{className:"w-4 h-4 text-gray-600"}),c.jsx("span",{className:"text-xs font-black uppercase tracking-widest text-gray-400",children:"Filters"})]}),c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[c.jsxs("div",{children:[c.jsx("label",{className:"text-xs font-bold text-gray-500 uppercase mb-2 block",children:"Tournament Type"}),c.jsxs("select",{value:n,onChange:j=>r(j.target.value),className:"w-full bg-[#060d1f] border border-white/10 rounded-lg px-3 py-2 text-white text-sm focus:outline-none focus:border-[#00d4ff]/50",children:[c.jsx("option",{value:"all",children:"All Types"}),h.map(j=>c.jsx("option",{value:j,children:j},j))]})]}),c.jsxs("div",{children:[c.jsx("label",{className:"text-xs font-bold text-gray-500 uppercase mb-2 block",children:"Division"}
474),c.jsxs("select",{value:e,onChange:j=>t(j.target.value),className:"w-full bg-[#060d1f] border border-white/10 rounded-lg px-3 py-2 text-white text-sm focus:outline-none focus:border-[#00d4ff]/50",children:[c.jsx("option",{value:"all",children:"All Divisions"}),f.map(j=>c.jsx("option",{value:j,children:j},j))]})]}),c.jsxs("div",{children:[c.jsx("label",{className:"text-xs font-bold text-gray-500 uppercase mb-2 block",children:"Gender"}),c.jsxs("select",{value:i,onChange:j=>a(j.target.value),className:"w-full bg-[#060d1f] border border-white/10 rounded-lg px-3 py-2 text-white text-sm focus:outline-none focus:border-[#00d4ff]/50",children:[c.jsx("option",{value:"all",children:"All"}),g.map(j=>c.jsx("option",{value:j,children:j==="M"?"Male":"Female"},j))]})]})]})]}),u?c.jsx("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[1,2].map(j=>c.jsx("div",{className:"h-96 bg-white/5 rounded-xl animate-pulse"},j))}):p.length===0?c.jsx("div",{className:"text-center py-20",children:c.jsx("p",{className:"text-gray-500 text-lg",children:"No results found for selected filters"})}):c.jsxs("div",{className:"space-y-8",children:[c.jsxs("div",{className:"bg-[#0d1830] border border-white/10 rounded-xl p-6",children:[c.jsx("h2",{className:"text-lg font-black text-white mb-4",children:"Score Trends Over Time"}),c.jsx(g4,{width:"100%",height:350,children:c.jsxs(Dve,{data:y,children:[c.jsx(qP,{strokeDasharray:"3 3",stroke:"rgba(255,255,255,0.1)"}),c.jsx($d,{dataKey:"year",stroke:"#999"}),c.jsx(Fd,{stroke:"#999"}),c.jsx(oa,{contentStyle:{backgroundColor:"#0d1830",border:"1px solid rgba(255,255,255,0.1)"}}),c.jsx(Js,{}),c.jsx(wc,{type:"monotone",dataKey:"avg",stroke:"#00d4ff",name:"Average",strokeWidth:2}),c.jsx(wc,{type:"monotone",dataKey:"max",stroke:"#10b981",name:"Max Score",strokeWidth:2,strokeDasharray:"5 5"}),c.jsx(wc,{type:"monotone",dataKey:"min",stroke:"#ef4444",name:"Min Score",strokeWidth:2,strokeDasharray:"5 5"})]})})]}),c.jsxs("div",{className:"bg-[#0d1830] border border-white/10 rounded-xl p-6",children:[c.jsx("h2",{className:"text-lg font-black text-white mb-4",children:"Division Performance"}),c.jsx(g4,{width:"100%",height:350,children:c.jsxs(Ive,{data:w,children:[c.jsx(qP,{strokeDasharray:"3 3",stroke:"rgba(255,255,255,0.1)"}),c.jsx($d,{dataKey:"division",stroke:"#999",angle:-45,textAnchor:"end",height:80}),c.jsx(Fd,{stroke:"#999"}),c.jsx(oa,{contentStyle:{backgroundColor:"#0d1830",border:"1px solid rgba(255,255,255,0.1)"}}),c.jsx(Js,{}),c.jsx(al,{dataKey:"avgScore",fill:"#00d4ff",name:"Avg Score"}),c.jsx(al,{dataKey:"maxScore",fill:"#10b981",name:"Max Score"})]})})]}),c.jsxs("div",{className:"bg-[#0d1830] border border-white/10 rounded-xl p-6 overflow-x-auto",children:[c.jsx("h2",{className:"text-lg font-black text-white mb-4",children:"Division Statistics"}),c.jsxs("table",{className:"w-full text-sm",children:[c.jsx("thead",{children:c.jsxs("tr",{className:"border-b border-white/10",children:[c.jsx("th",{className:"text-left py-3 px-4 text-gray-400 font-bold",children:"Division"}),c.jsx("th",{className:"text-right py-3 px-4 text-gray-400 font-bold",children:"Avg Score"}),c.jsx("th",{className:"text-right py-3 px-4 text-gray-400 font-bold",children:"Max Score"}),c.jsx("th",{className:"text-right py-3 px-4 text-gray-400 font-bold",children:"Archers"}),c.jsx("th",{className:"text-right py-3 px-4 text-gray-400 font-bold",children:"Results"})]})}),c.jsx("tbody",{children:w.map((j,S)=>c.jsxs("tr",{className:"border-b border-white/5 hover:bg-white/5 transition-colors",children:[c.jsx("td",{className:"py-3 px-4 text-white font-bold",children:j.division}),c.jsx("td",{className:"py-3 px-4 text-right text-[#00d4ff]",children:j.avgScore}),c.jsx("td",{className:"py-3 px-4 text-right text-[#10b981]",children:j.maxScore}),c.jsx("td",{className:"py-3 px-4 text-right text-gray-400",children:j.archers}),c.jsx("td",{className:"py-3 px-4 text-right text-gray-400",children:j.results})]},S))})]})]}),c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-4",children:[c.jsxs("div",{className:"bg-[#0d1830] border border-white/10 rounded-xl p-4",children:[c.jsx("p",{className:"text-xs text-gray-500 uppercase font-bold mb-2",children:"Total Results"}),c.jsx("p",{className:"text-3xl font-black text-[#00d4ff]",children:p.length})]}),c.jsxs("div",{className:"bg-[#0d1830] border border-white/10 rounded-xl p-4",children:[c.jsx("p",{className:"text-xs text-gray-500 uppercase font-bold mb-2",children:"Avg Score"}),c.jsx("p",{className:"text-3xl font-black text-[#00d4ff]",children:Math.round(p.reduce((j,S)=>j+S.score,0)/p.length)})]}),c.jsxs("div",{className:"bg-[#0d1830] border border-white/10 rounded-xl p-4",children:[c.jsx("p",{className:"text-xs text-gray-500 uppercase font-bold mb-2",children:"Top Score"}),c.jsx("p",{className:"text-3xl font-black text-[#10b981]",children:Math.max(...p.map(j=>j.score))})]}),c.jsxs("div",{className:"bg-[#0d1830] border border-white/10 rounded-xl p-4",children:[c.jsx("p",{className:"text-xs text-gray-500 uppercase font-bold mb-2",children:"Divisions"}),c.jsx("p",{className:"text-3xl font-black text-[#00d4ff]",children:f.length})]})]})]})]})]})}var $ve=Object.defineProperty,Bve=(e,t)=>
474$ve(e,"name",{value:t,configurable:!0});function eN(e,[t,n]){return Math.min(n,Math.max(t,e))}Bve(eN,"clamp");var Fve=Object.defineProperty,Kn=(e,t)=>Fve(e,"name",{value:t,configurable:!0});function i8(e){const t=e+"CollectionProvider",[n,r]=Rc(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=Kn(S=>{const{scope:_,children:P}=S,O=k.useRef(null),C=k.useRef(new Map).current;return c.jsx(i,{scope:_,itemMap:C,collectionRef:O,children:P})},"CollectionProvider");o.displayName=t;const u=e+"CollectionSlot",f=$o(u),h=k.forwardRef((S,_)=>{const{scope:P,children:O}=S,C=a(u,P),E=Ut(_,C.collectionRef);return c.jsx(f,{ref:E,children:O})});h.displayName=u;const g=e+"CollectionItemSlot",p="data-radix-collection-item",y=$o(g),w=k.forwardRef((S,_)=>{const{scope:P,children:O,...C}=S,E=k.useRef(null),T=Ut(_,E),M=a(g,P);return k.useEffect(()=>(M.itemMap.set(E,{ref:E,...C}),()=>void M.itemMap.delete(E))),c.jsx(y,{[p]:"",ref:T,children:O})});w.displayName=g;function j(S){const _=a(e+"CollectionConsumer",S);return k.useCallback(()=>{const O=_.collectionRef.current;if(!O)return[];const C=Array.from(O.querySelectorAll(`[${p}]`));return Array.from(_.itemMap.values()).sort((M,I)=>C.indexOf(M.ref.current)-C.indexOf(I.ref.current))},[_.collectionRef,_.itemMap])}return Kn(j,"useCollection"),[{Provider:o,Slot:h,ItemSlot:w},j,r]}Kn(i8,"createCollection");var _L=new WeakMap,wn,ci,OS=(ci=class extends Map{constructor(n){super(n);We(this,wn);Ce(this,wn,[...super.keys()]),_L.set(this,!0)}set(n,r){return _L.get(this)&&(this.has(n)?J(this,wn)[J(this,wn).indexOf(n)]=n:J(this,wn).push(n)),super.set(n,r),this}insert(n,r,i){const a=this.has(r),o=J(this,wn).length,u=mT(n);let f=u>=0?u:o+u;const h=f<0||f>=o?-1:f;if(h===this.size||a&&h===this.size-1||h===-1)return this.set(r,i),this;const g=this.size+(a?0:1);u<0&&f++;const p=[...J(this,wn)];let y,w=!1;for(let j=f;j<g;j++)if(f===j){let S=p[j];p[j]===r&&(S=p[j+1]),a&&this.delete(r),y=this.get(S),this.set(r,i)}else{!w&&p[j-1]===r&&(w=!0);const S=p[w?j:j-1],_=y;y=this.get(S),this.delete(S),this.set(S,_)}return this}with(n,r,i){const a=new ci(this);return a.insert(n,r,i),a}before(n){const r=J(this,wn).indexOf(n)-1;if(!(r<0))return this.entryAt(r)}setBefore(n,r,i){const a=J(this,wn).indexOf(n);return a===-1?this:this.insert(a,r,i)}after(n){let r=J(this,wn).indexOf(n);if(r=r===-1||r===this.size-1?-1:r+1,r!==-1)return this.entryAt(r)}setAfter(n,r,i){const a=J(this,wn).indexOf(n);return a===-1?this:this.insert(a+1,r,i)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return Ce(this,wn,[]),super.clear()}delete(n){const r=super.delete(n);return r&&J(this,wn).splice(J(this,wn).indexOf(n),1),r}deleteAt(n){const r=this.keyAt(n);return r!==void 0?this.delete(r):!1}at(n){const r=sv(J(this,wn),n);if(r!==void 0)return this.get(r)}entryAt(n){const r=sv(J(this,wn),n);if(r!==void 0)return[r,this.get(r)]}indexOf(n){return J(this,wn).indexOf(n)}keyAt(n){return sv(J(this,wn),n)}from(n,r){const i=this.indexOf(n);if(i===-1)return;let a=i+r;return a<0&&(a=0),a>=this.size&&(a=this.size-1),this.at(a)}keyFrom(n,r){const i=this.indexOf(n);if(i===-1)return;let a=i+r;return a<0&&(a=0),a>=this.size&&(a=this.size-1),this.keyAt(a)}find(n,r){let i=0;for(const a of this){if(Reflect.apply(n,r,[a,i,this]))return a;i++}}findIndex(n,r){let i=0;for(const a of this){if(Reflect.apply(n,r,[a,i,this]))return i;i++}return-1}filter(n,r){const i=[];let a=0;for(const o of this)Reflect.apply(n,r,[o,a,this])&&i.push(o),a++;return new ci(i)}map(n,r){const i=[];let a=0;for(const o of this)i.push([o[0],Reflect.apply(n,r,[o,a,this])]),a++;return new ci(i)}reduce(...n){const[r,i]=n;let a=0,o=i??this.at(0);for(const u of this)a===0&&n.length===1?o=u:o=Reflect.apply(r,this,[o,u,a,this]),a++;return o}reduceRight(...n){const[r,i]=n;let a=i??this.at(-1);for(let o=this.size-1;o>=0;o--){const u=this.at(o);o===this.size-1&&n.length===1?a=u:a=Reflect.apply(r,this,[a,u,o,this])}return a}toSorted(n){const r=[...this.entries()].sort(n);return new ci(r)}toReversed(){const n=new ci;for(let r=this.size-1;r>=0;r--){const i=this.keyAt(r),a=this.get(i);n.set(i,a)}return n}toSpliced(...n){const r=[...this.entries()];return r.splice(...n),new ci(r)}slice(n,r){const i=new ci;let a=this.size-1;if(n===void 0)return i;n<0&&(n=n+this.size),r!==void 0&&r>0&&(a=r-1);for(let o=n;o<=a;o++){const u=this.keyAt(o),f=this.get(u);i.set(u,f)}return i}every(n,r){let i=0;for(const a of this){if(!Reflect.apply(n,r,[a,i,this]))return!1;i++}return!0}some(n,r){let i=0;for(const a of this){if(Reflect.apply(n,r,[a,i,this]))return!0;
474i++}return!1}},wn=new WeakMap,Kn(ci,"OrderedDict"),ci);function sv(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);const n=a8(e,t);return n===-1?void 0:e[n]}Kn(sv,"at");function a8(e,t){const n=e.length,r=mT(t),i=r>=0?r:n+r;return i<0||i>=n?-1:i}Kn(a8,"toSafeIndex");function mT(e){return e!==e||e===0?0:Math.trunc(e)}Kn(mT,"toSafeInteger");function zve(e){const t=e+"CollectionProvider",[n,r]=Rc(t),[i,a]=n(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new OS,setItemMap:Kn(()=>{},"setItemMap")}),o=Kn(({state:C,...E})=>C?c.jsx(f,{...E,state:C}):c.jsx(u,{...E}),"CollectionProvider");o.displayName=t;const u=Kn(C=>{const E=_();return c.jsx(f,{...C,state:E})},"CollectionInit");u.displayName=t+"Init";const f=Kn(C=>{const{scope:E,children:T,state:M}=C,I=k.useRef(null),[$,z]=k.useState(null),Y=Ut(I,z),[V,q]=M;return k.useEffect(()=>{if(!$)return;const G=l8(()=>{});return G.observe($,{childList:!0,subtree:!0}),()=>{G.disconnect()}},[$]),c.jsx(i,{scope:E,itemMap:V,setItemMap:q,collectionRef:Y,collectionRefObject:I,collectionElement:$,children:T})},"CollectionProviderImpl");f.displayName=t+"Impl";const h=e+"CollectionSlot",g=$o(h),p=k.forwardRef((C,E)=>{const{scope:T,children:M}=C,I=a(h,T),$=Ut(E,I.collectionRef);return c.jsx(g,{ref:$,children:M})});p.displayName=h;const y=e+"CollectionItemSlot",w="data-radix-collection-item",j=$o(y),S=k.forwardRef((C,E)=>{const{scope:T,children:M,...I}=C,$=k.useRef(null),[z,Y]=k.useState(null),V=Ut(E,$,Y),q=a(y,T),{setItemMap:G}=q,Q=k.useRef(I);o8(Q.current,I)||(Q.current=I);const ne=Q.current;return k.useEffect(()=>{const ie=ne;return G(re=>z?re.has(z)?re.set(z,{...ie,element:z}).toSorted(tN):(re.set(z,{...ie,element:z}),re.toSorted(tN)):re),()=>{G(re=>!z||!re.has(z)?re:(re.delete(z),new OS(re)))}},[z,ne,G]),c.jsx(j,{[w]:"",ref:V,children:M})});S.displayName=y;function _(){return k.useState(new OS)}Kn(_,"useInitCollection");function P(C){const{itemMap:E}=a(e+"CollectionConsumer",C);return E}return Kn(P,"useCollection"),[{Provider:o,Slot:p,ItemSlot:S}
474,{createCollectionScope:r,useCollection:P,useInitCollection:_}]}Kn(zve,"createCollection");function o8(e,t){if(e===t)return!0;if(typeof e!="object"||typeof t!="object"||e==null||t==null)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n)if(!Object.prototype.hasOwnProperty.call(t,i)||e[i]!==t[i])return!1;return!0}Kn(o8,"shallowEqual");function s8(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}Kn(s8,"isElementPreceding");function tN(e,t){return!e[1].element||!t[1].element?0:s8(e[1].element,t[1].element)?-1:1}Kn(tN,"sortByDocumentPosition");function l8(e){return new MutationObserver(n=>{for(const r of n)if(r.type==="childList"){e();return}})}Kn(l8,"getChildListObserver");var qve=Object.defineProperty,Vve=(e,t)=>qve(e,"name",{value:t,configurable:!0}),Wve=k.createContext(void 0);function c8(e){const t=k.useContext(Wve);return e||t||"ltr"}Vve(c8,"useDirection");const Uve=["top","right","bottom","left"],ol=Math.min,Do=Math.max,wy=Math.round,Qg=Math.floor,Io=e=>({x:e,y:e}),Hve={left:"right",right:"left",bottom:"top",top:"bottom"};function u8(e,t,n){return Do(e,ol(t,n))}function Wo(e,t){return typeof e=="function"?e(t):e}function sl(e){return e.split("-")[0]}function lf(e){return e.split("-")[1]}function gT(e){return e==="x"?"y":"x"}function vT(e){return e==="y"?"height":"width"}function Ba(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function yT(e){return gT(Ba(e))}function Gve(e,t,n){n===void 0&&(n=!1);const r=lf(e),i=yT(e),a=vT(i);let o=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(o=_y(o)),[o,_y(o)]}function Kve(e){const t=_y(e);return[nN(e),t,nN(t)]}function nN(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const SL=["left","right"],jL=["right","left"],Zve=["top","bottom"],Yve=["bottom","top"];function Xve(e,t,n){switch(e){case"top":case"bottom":return n?t?jL:SL:t?SL:jL;case"left":case"right":return t?Zve:Yve;default:return[]}}function Qve(e,t,n,r){const i=lf(e);let a=Xve(sl(e),n==="start",r);return i&&(a=a.map(o=>o+"-"+i),t&&(a=a.concat(a.map(nN)))),a}function _y(e){const t=sl(e);return Hve[t]+e.slice(t.length)}function Jve(e){var t,n,r,i;return{top:(t=e.top)!=null?t:0,right:(n=e.right)!=null?n:0,bottom:(r=e.bottom)!=null?r:0,left:(i=e.left)!=null?i:0}}function d8(e){return typeof e!="number"?Jve(e):{top:e,right:e,bottom:e,left:e}}function Sy(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function PL(e,t,n){let{reference:r,floating:i}=e;const a=Ba(t),o=yT(t),u=vT(o),f=sl(t),h=a==="y",g=r.x+r.width/2-i.width/2,p=r.y+r.height/2-i.height/2,y=r[u]/2-i[u]/2;let w;switch(f){case"top":w={x:g,y:r.y-i.height};break;case"bottom":w={x:g,y:r.y+r.height};break;case"right":w={x:r.x+r.width,y:p};break;case"left":w={x:r.x-i.width,y:p};break;default:w={x:r.x,y:r.y}}const j=lf(t);return j&&(w[o]+=y*(j==="end"?1:-1)*(n&&h?-1:1)),w}async function eye(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:a,rects:o,elements:u,strategy:f}=e,{boundary:h="clippingAncestors",rootBoundary:g="viewport",elementContext:p="floating",altBoundary:y=!1,padding:w=0}=Wo(t,e),j=d8(w),_=u[y?p==="floating"?"reference":"floating":p],P=Sy(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(_)))==null||n?_:_.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(u.floating)),boundary:h,rootBoundary:g,strategy:f})),O=p==="floating"?{x:r,y:i,width:o.floating.width,height:o.floating.height}:o.reference,C=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u.floating)),E=await(a.isElement==null?void 0:a.isElement(C))&&await(a.getScale==null?void 0:a.getScale(C))||{x:1,y:1},T=Sy(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:O,offsetParent:C,strategy:f}):O);return{top:(P.top-T.top+j.top)/E.y,bottom:(T.bottom-P.bottom+j.bottom)/E.y,left:(P.left-T.left+j.left)/E.x,right:(T.right-P.right+j.right)/E.x}}const tye=50,nye=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:a=[],platform:o}=n,u=o.detectOverflow?o:{...o,detectOverflow:eye},f=await(o.isRTL==null?void 0:o.isRTL(t));let h=await o.getElementRects({reference:e,floating:t,strategy:i}
474),{x:g,y:p}=PL(h,r,f),y=r,w=0;const j={};for(let S=0;S<a.length;S++){const _=a[S];if(!_)continue;const{name:P,fn:O}=_,{x:C,y:E,data:T,reset:M}=await O({x:g,y:p,initialPlacement:r,placement:y,strategy:i,middlewareData:j,rects:h,platform:u,elements:{reference:e,floating:t}});g=C??g,p=E??p,j[P]={...j[P],...T},M&&w<tye&&(w++,typeof M=="object"&&(M.placement&&(y=M.placement),M.rects&&(h=M.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):M.rects),{x:g,y:p}=PL(h,y,f)),S=-1)}return{x:g,y:p,placement:y,strategy:i,middlewareData:j}},rye=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:a,platform:o,elements:u,middlewareData:f}=t,{element:h,padding:g=0}=Wo(e,t)||{};if(h==null)return{};const p=d8(g),y={x:n,y:r},w=yT(i),j=vT(w),S=await o.getDimensions(h),_=w==="y",P=_?"top":"left",O=_?"bottom":"right",C=_?"clientHeight":"clientWidth",E=a.reference[j]+a.reference[w]-y[w]-a.floating[j],T=y[w]-a.reference[w],M=await(o.getOffsetParent==null?void 0:o.getOffsetParent(h));let I=M?M[C]:0;(!I||!await(o.isElement==null?void 0:o.isElement(M)))&&(I=u.floating[C]||a.floating[j]);const $=E/2-T/2,z=I/2-S[j]/2-1,Y=ol(p[P],z),V=ol(p[O],z),q=I-S[j]-V,G=I/2-S[j]/2+$,Q=u8(Y,G,q),ne=!f.arrow&&lf(i)!=null&&G!==Q&&a.reference[j]/2-(G<Y?Y:V)-S[j]/2<0,ie=ne?G<Y?G-Y:G-q:0;return{[w]:y[w]+ie,data:{[w]:Q,centerOffset:G-Q-ie,...ne&&{alignmentOffset:ie}},reset:ne}}}),iye=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:a,rects:o,initialPlacement:u,platform:f,elements:h}=t,{mainAxis:g=!0,crossAxis:p=!0,fallbackPlacements:y,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:j="none",flipAlignment:S=!0,..._}=Wo(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const P=sl(i),O=Ba(u),C=sl(u)===u,E=await(f.isRTL==null?void 0:f.isRTL(h.floating)),T=y||(C||!S?[_y(u)]:Kve(u)),M=j!=="none";!y&&M&&T.push(...Qve(u,S,j,E));const I=[u,...T],$=await f.detectOverflow(t,_),z=[];let Y=((r=a.flip)==null?void 0:r.overflows)||[];if(g&&z.push($[P]),p){const Q=Gve(i,o,E);z.push($[Q[0]],$[Q[1]])}if(Y=[...Y,{placement:i,overflows:z}],!z.every(Q=>Q<=0)){var V,q;const Q=(((V=a.flip)==null?void 0:V.index)||0)+1,ne=I[Q];if(ne&&(!(p==="alignment"?O!==Ba(ne):!1)||Y.every(W=>Ba(W.placement)===O?W.overflows[0]>0:!0)))return{data:{index:Q,overflows:Y},reset:{placement:ne}};let ie=(q=Y.filter(re=>re.overflows[0]<=0).sort((re,W)=>re.overflows[1]-W.overflows[1])[0])==null?void 0:q.placement;if(!ie)switch(w){case"bestFit":{var G;const re=(G=Y.filter(W=>{if(M){const oe=Ba(W.placement);return oe===O||oe==="y"}return!0}).map(W=>[W.placement,W.overflows.filter(oe=>oe>0).reduce((oe,U)=>oe+U,0)]).sort((W,oe)=>W[1]-oe[1])[0])==null?void 0:G[0];re&&(ie=re);break}case"initialPlacement":ie=u;break}if(i!==ie)return{reset:{placement:ie}}}return{}}}};function NL(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function AL(e){return Uve.some(t=>e[t]>=0)}const aye=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:i="referenceHidden",...a}=Wo(e,t);switch(i){case"referenceHidden":{const o=await r.detectOverflow(t,{...a,elementContext:"reference"}),u=NL(o,n.reference);return{data:{referenceHiddenOffsets:u,referenceHidden:AL(u)}}}case"escaped":{const o=await r.detectOverflow(t,{...a,altBoundary:!0}),u=NL(o,n.floating);return{data:{escapedOffsets:u,escaped:AL(u)}}}default:return{}}}}},f8=new Set(["left","top"]);async function oye(e,t){const{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=sl(n),u=lf(n),f=Ba(n)==="y",h=f8.has(o)?-1:1,g=a&&f?-1:1,p=Wo(t,e);let{mainAxis:y,crossAxis:w,alignmentAxis:j}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return u&&typeof j=="number"&&(w=u==="end"?j*-1:j),f?{x:w*g,y:y*h}:{x:y*h,y:w*g}}const sye=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:a,placement:o,middlewareData:u}=t,f=await oye(t,e);return o===((n=u.offset)==null?void 0:n.placement)&&(r=u.arrow)!=null&&r.alignmentOffset?{}:{x:i+f.x,y:a+f.y,data:{...f,placement:o}}}}},lye=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:u=!1,limiter:f={fn:O=>{let{x:C,y:E}=O;return{x:C,y:E}}},...h}=Wo(e,t),g={x:n,y:r},p=await a.detectOverflow(t,h),y=Ba(i),w=gT(y);let j=g[w],S=g[y];const _=(O,C)=>u8(C+p[O==="y"?"top":"left"],C,C-p[O==="y"?"bottom":"right"]);o&&(j=_(w,j)),u&&(S=_(y,S));const P=f.fn({...t,[w]:j,[y]:S});return{...P,data:{x:P.x-n,y:P.y-r,enabled:{[w]:o,[y]:u}}}}}},cye=function(e){return e===void 0&&(e={}),{options:e,fn(t){var n,r;const{x:i,y:a,placement:o,rects:u,middlewareData:f}=t,{offset:h=0,mainAxis:g=!0,crossAxis:p=!0}=Wo(e,t),y={x:i,y:a},w=Ba(o),j=gT(w);let S=y[j],_=y[w];const P=Wo(h,t),O=typeof P=="number"?{mainAxis:P,crossAxis:0}:{mainAxis:(n=P.mainAxis)!=null?n:0,crossAxis:(r=P.crossAxis)!=null?r:0};if(g){const T=j==="y"?"height":"width",M=u.reference[j]-u.floating[T]+O.mainAxis,I=u.reference[j]+u.reference[T]-O.mainAxis;S<M?S=M:S>I&&(S=I)}if(p){var C,E;const T=j==="y"?"width":"height",M=f8.has(sl(o)),I=u.reference[w]-u.floating[T]+(M&&((C=f.offset)==null?void 0:C[w])||0)+(M?0:O.crossAxis),$=u.reference[w]+u.reference[T]+(M?0:((E=f.offset)==null?void 0:E[w])||0)-(M?O.crossAxis:0);_<I?_=I:_>$&&(_=$)}return{[j]:S,[w]:_}}}},uye=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...u}=Wo(e,t),f=await i.detectOverflow(t,u),h=sl(n),g=lf(n),p=Ba(n)==="y",{width:y,height:w}=r.floating;let j,S;h==="top"||h==="bottom"?(j=h,S=g===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(S=h,j=g==="end"?"top":"bottom");const _=w-f.top-f.bottom,P=y-f.left-f.right,O=ol(w-f[j],_),C=ol(y-f[S],P),E=t.middlewareData.shift,T=!E;let M=O,I=C;E!=null&&E.enabled.x&&(I=P),E!=null&&E.enabled.y&&(M=_),T&&!g&&(p?I=y-2*Do(f.left,f.right):M=w-2*Do(f.top,f.bottom)),await o({...t,availableWidth:I,availableHeight:M});const $=await i.getDimensions(a.floating);return y!==$.width||w!==$.height?{reset:{rects:!0}}:{}}}};function yx(){return typeof window<"u"}function cf(e){return h8(e)?(e.nodeName||"").toLowerCase():"#document"}function Vr(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Xo(e){var t;return(t=(h8(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function h8(e){return yx()?e instanceof Node||e instanceof Vr(e).Node:!1}function Ha(e){return yx()?e instanceof Element||e instanceof Vr(e).Element:!1}function gl(e){return yx()?e instanceof HTMLElement||e instanceof Vr(e).HTMLElement:!1}function TL(e){return!yx()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Vr(e).ShadowRoot}function xx(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Ga(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!=="inline"&&i!=="contents"}function dye(e){return/^(table|td|th)$/.test(cf(e))}function bx(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const fye=/transform|translate|scale|rotate|perspective|filter/,hye=/paint|layout|strict|content/,Yl=e=>!!e&&e!=="none";let ES;function xT(e){const t=Ha(e)?Ga(e):e;return Yl(t.transform)||Yl(t.translate)||Yl(t.scale)||Yl(t.rotate)||Yl(t.perspective)||!bT()&&(Yl(t.backdropFilter)||Yl(t.filter))||fye.test(t.willChange||"")||hye.test(t.contain||"")}function pye(e){let t=Ac(e);for(;gl(t)&&!kp(t);){if(xT(t))return t;if(bx(t))return null;t=Ac(t)}return null}function bT(){return ES==null&&(ES=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),ES}function kp(e){return/^(html|body|#document)$/.test(cf(e))}function Ga(e){return Vr(e).getComputedStyle(e)}function wx(e){return Ha(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ac(e){if(cf(e)==="html")return e;const t=e.assignedSlot||e.parentNode||TL(e)&&e.host||Xo(e);return TL(t)?t.host:t}function p8(e){const t=Ac(e);return kp(t)?(e.ownerDocument||e).body:gl(t)&&xx(t)?t:p8(t)}
474function Cp(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=p8(e),a=i===((r=e.ownerDocument)==null?void 0:r.body),o=Vr(i);if(a){const u=rN(o);return t.concat(o,o.visualViewport||[],xx(i)?i:[],u&&n?Cp(u):[])}else return t.concat(i,Cp(i,[],n))}function rN(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function m8(e){const t=Ga(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=gl(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,u=wy(n)!==a||wy(r)!==o;return u&&(n=a,r=o),{width:n,height:r,$:u}}function wT(e){return Ha(e)?e:e.contextElement}function Qu(e){const t=wT(e);if(!gl(t))return Io(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:a}=m8(t);let o=(a?wy(n.width):n.width)/r,u=(a?wy(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!u||!Number.isFinite(u))&&(u=1),{x:o,y:u}}const mye=Io(0);function g8(e){const t=Vr(e);return!bT()||!t.visualViewport?mye:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function gye(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===Vr(e)}function Tc(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),a=wT(e);let o=Io(1);t&&(r?Ha(r)&&(o=Qu(r)):o=Qu(e));const u=gye(a,n,r)?g8(a):Io(0);let f=(i.left+u.x)/o.x,h=(i.top+u.y)/o.y,g=i.width/o.x,p=i.height/o.y;if(a&&r){const y=Vr(a),w=Ha(r)?Vr(r):r;let j=y,S=rN(j);for(;S&&w!==j;){const _=Qu(S),P=S.getBoundingClientRect(),O=Ga(S),C=P.left+(S.clientLeft+parseFloat(O.paddingLeft))*_.x,E=P.top+(S.clientTop+parseFloat(O.paddingTop))*_.y;f*=_.x,h*=_.y,g*=_.x,p*=_.y,f+=C,h+=E,j=Vr(S),S=rN(j)}}return Sy({width:g,height:p,x:f,y:h})}function _x(e,t){const n=wx(e).scrollLeft;return t?t.left+n:Tc(Xo(e)).left+n}function v8(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-_x(e,n),i=n.top+t.scrollTop;return{x:r,y:i}}function vye(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const a=i==="fixed",o=Xo(r),u=t?bx(t.floating):!1;if(r===o||u&&a)return n;let f={scrollLeft:0,scrollTop:0},h=Io(1);const g=Io(0),p=gl(r);if((p||!a)&&((cf(r)!=="body"||xx(o))&&(f=wx(r)),p)){const w=Tc(r);h=Qu(r),g.x=w.x+r.clientLeft,g.y=w.y+r.clientTop}const y=o&&!p&&!a?v8(o,f):Io(0);return{width:n.width*h.x,height:n.height*h.y,x:n.x*h.x-f.scrollLeft*h.x+g.x+y.x,y:n.y*h.y-f.scrollTop*h.y+g.y+y.y}}function yye(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function xye(e){const t=wx(e),n=e.ownerDocument.body,r=Do(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=Do(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let a=-t.scrollLeft+_x(e);const o=-t.scrollTop;return Ga(n).direction==="rtl"&&(a+=Do(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}const bye=25;function wye(e,t,n){n===void 0&&(n="viewport");const r=n==="layoutViewport",i=Vr(e),a=Xo(e),o=i.visualViewport;let u=a.clientWidth,f=a.clientHeight,h=0,g=0;if(o){const y=!bT()||t==="fixed";r?y||(h=-o.offsetLeft,g=-o.offsetTop):(u=o.width,f=o.height,y&&(h=o.offsetLeft,g=o.offsetTop))}if(_x(a)<=0){const y=a.ownerDocument,w=y.body,j=getComputedStyle(w),S=y.compatMode==="CSS1Compat"&&parseFloat(j.marginLeft)+parseFloat(j.marginRight)||0,_=Math.abs(a.clientWidth-w.clientWidth-S),P=getComputedStyle(a).scrollbarGutter==="stable both-edges"?_/2:_;P<=bye&&(u-=P)}return{width:u,height:f,x:h,y:g}}function _ye(e,t){const n=Tc(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Qu(e),o=e.clientWidth*a.x,u=e.clientHeight*a.y,f=i*a.x,h=r*a.y;return{width:o,height:u,x:f,y:h}}function kL(e,t,n){let r;if(t==="viewport"||t==="layoutViewport")r=wye(e,n,t);else if(t==="document")r=xye(Xo(e));else if(Ha(t))r=_ye(t,n);else{const i=g8(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Sy(r)}function Sye(e,t){const n=t.get(e);if(n)return n;let r=Cp(e,[],!1).filter(u=>Ha(u)&&cf(u)!=="body"),i=null;const a=Ga(e).position==="fixed";let o=a?Ac(e):e;for(;Ha(o)&&!kp(o);){const u=Ga(o),f=xT(o),h=i?i.position:a?"fixed":"";!f&&(h==="fixed"||h==="absolute"&&u.position==="static")?r=r.filter(p=>p!==o):i=u,o=Ac(o)}return t.set(e,r),r}function jye(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[...n==="clippingAncestors"?bx(t)?[]:Sye(t,this._c):[].concat(n),r],u=kL(t,o[0],i);
474let f=u.top,h=u.right,g=u.bottom,p=u.left;for(let y=1;y<o.length;y++){const w=kL(t,o[y],i);f=Do(w.top,f),h=ol(w.right,h),g=ol(w.bottom,g),p=Do(w.left,p)}return{width:h-p,height:g-f,x:p,y:f}}function Pye(e){const{width:t,height:n}=m8(e);return{width:t,height:n}}function Nye(e,t,n){const r=gl(t),i=Xo(t),a=n==="fixed",o=Tc(e,!0,a,t);let u={scrollLeft:0,scrollTop:0};const f=Io(0);if((r||!a)&&((cf(t)!=="body"||xx(i))&&(u=wx(t)),r)){const y=Tc(t,!0,a,t);f.x=y.x+t.clientLeft,f.y=y.y+t.clientTop}!r&&i&&(f.x=_x(i));const h=i&&!r&&!a?v8(i,u):Io(0),g=o.left+u.scrollLeft-f.x-h.x,p=o.top+u.scrollTop-f.y-h.y;return{x:g,y:p,width:o.width,height:o.height}}function MS(e){return Ga(e).position==="static"}function CL(e,t){if(!gl(e)||Ga(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Xo(e)===n&&(n=n.ownerDocument.body),n}function y8(e,t){const n=Vr(e);if(bx(e))return n;if(!gl(e)){let i=Ac(e);for(;i&&!kp(i);){if(Ha(i)&&!MS(i))return i;i=Ac(i)}return n}let r=CL(e,t);for(;r&&dye(r)&&MS(r);)r=CL(r,t);return r&&kp(r)&&MS(r)&&!xT(r)?n:r||pye(e)||n}const Aye=async function(e){const t=this.getOffsetParent||y8,n=this.getDimensions,r=await n(e.floating);return{reference:Nye(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Tye(e){return Ga(e).direction==="rtl"}const kye={convertOffsetParentRelativeRectToViewportRelativeRect:vye,getDocumentElement:Xo,getClippingRect:jye,getOffsetParent:y8,getElementRects:Aye,getClientRects:yye,getDimensions:Pye,getScale:Qu,isElement:Ha,isRTL:Tye};function x8(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Cye(e,t,n){let r=null,i;const a=Xo(e);function o(){var g;clearTimeout(i),(g=r)==null||g.disconnect(),r=null}function u(g,p){g===void 0&&(g=!1),p===void 0&&(p=1),o();const y=e.getBoundingClientRect(),{left:w,top:j,width:S,height:_}=y;if(g||t(),!S||!_)return;const P=Qg(j),O=Qg(a.clientWidth-(w+S)),C=Qg(a.clientHeight-(j+_)),E=Qg(w),M={rootMargin:-P+"px "+-O+"px "+-C+"px "+-E+"px",threshold:Do(0,ol(1,p))||1};let I=!0;function $(z){const Y=z[0].intersectionRatio;if(!x8(y,e.getBoundingClientRect()))return u();if(Y!==p){if(!I)return u();Y?u(!1,Y):i=setTimeout(()=>{u(!1,1e-7)},1e3)}I=!1}try{r=new IntersectionObserver($,{...M,root:a.ownerDocument})}catch{r=new IntersectionObserver($,M)}r.observe(e)}const f=Vr(e),h=()=>u(n);return f.addEventListener("resize",h),u(!0),()=>{f.removeEventListener("resize",h),o()}}function Oye(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:f=!1}=r,h=wT(e),g=i||a?[...h?Cp(h):[],...t?Cp(t):[]]:[];g.forEach(P=>{i&&P.addEventListener("scroll",n),a&&P.addEventListener("resize",n)});const p=h&&u?Cye(h,n,a):null;let y=-1,w=null;o&&(w=new ResizeObserver(P=>{let[O]=P;O&&O.target===h&&w&&t&&(w.unobserve(t),cancelAnimationFrame(y),y=requestAnimationFrame(()=>{var C;(C=w)==null||C.observe(t)})),n()}),h&&!f&&w.observe(h),t&&w.observe(t));let j,S=f?Tc(e):null;f&&_();function _(){const P=Tc(e);S&&!x8(S,P)&&n(),S=P,j=requestAnimationFrame(_)}return n(),()=>{var P;g.forEach(O=>{i&&O.removeEventListener("scroll",n),a&&O.removeEventListener("resize",n)}),p==null||p(),(P=w)==null||P.disconnect(),w=null,f&&cancelAnimationFrame(j)}}const Eye=sye,Mye=lye,Rye=iye,Dye=uye,Iye=aye,OL=rye,Lye=cye,$ye=(e,t,n)=>{const r=new Map,i=n??{},a={...kye,...i.platform,_c:r};return nye(e,t,{...i,platform:a})};var Bye=typeof document<"u",Fye=function(){},lv=Bye?k.useLayoutEffect:Fye;function jy(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!jy(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const a=i[r];if(!(a==="_owner"&&e.$$typeof)&&!jy(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function b8(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function EL(e,t){const n=b8(e);return Math.round(t*n)/n}function RS(e){const t=k.useRef(e);return lv(()=>{t.current=e}),t}function zye(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:u=!0,whileElementsMounted:f,open:h}=e,[g,p]=k.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[y,w]=k.useState(r);jy(y,r)||w(r);const[j,S]=k.useState(null),[_,P]=k.useState(null),O=k.useCallback(W=>{W!==M.current&&(M.current=W,S(W))},[]),C=k.useCallback(W=>{W!==I.current&&(I.current=W,P(W))},[]),E=a||j,T=o||_,M=k.useRef(null),I=k.useRef(null),$=k.useRef(g),z=f!=null,Y=RS(f),V=RS(i),q=RS(h),G=k.useCallback(()=>
474{if(!M.current||!I.current)return;const W={placement:t,strategy:n,middleware:y};V.current&&(W.platform=V.current),$ye(M.current,I.current,W).then(oe=>{const U={...oe,isPositioned:q.current!==!1};Q.current&&!jy($.current,U)&&($.current=U,Yd.flushSync(()=>{p(U)}))})},[y,t,n,V,q]);lv(()=>{h===!1&&$.current.isPositioned&&($.current.isPositioned=!1,p(W=>({...W,isPositioned:!1})))},[h]);const Q=k.useRef(!1);lv(()=>(Q.current=!0,()=>{Q.current=!1}),[]),lv(()=>{if(E&&(M.current=E),T&&(I.current=T),E&&T){if(Y.current)return Y.current(E,T,G);G()}},[E,T,G,Y,z]);const ne=k.useMemo(()=>({reference:M,floating:I,setReference:O,setFloating:C}),[O,C]),ie=k.useMemo(()=>({reference:E,floating:T}),[E,T]),re=k.useMemo(()=>{const W={position:n,left:0,top:0};if(!ie.floating)return W;const oe=EL(ie.floating,g.x),U=EL(ie.floating,g.y);return u?{...W,transform:"translate("+oe+"px, "+U+"px)",...b8(ie.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:oe,top:U}},[n,u,ie.floating,g.x,g.y]);return k.useMemo(()=>({...g,update:G,refs:ne,elements:ie,floatingStyles:re}),[g,G,ne,ie,re])}const qye=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?OL({element:r.current,padding:i}).fn(n):{}:r?OL({element:r,padding:i}).fn(n):{}}}},Vye=(e,t)=>{const n=Eye(e);return{name:n.name,fn:n.fn,options:[e,t]}},Wye=(e,t)=>{const n=Mye(e);return{name:n.name,fn:n.fn,options:[e,t]}},Uye=(e,t)=>({fn:Lye(e).fn,options:[e,t]}),Hye=(e,t)=>{const n=Rye(e);return{name:n.name,fn:n.fn,options:[e,t]}},Gye=(e,t)=>{const n=Dye(e);return{name:n.name,fn:n.fn,options:[e,t]}},Kye=(e,t)=>{const n=Iye(e);return{name:n.name,fn:n.fn,options:[e,t]}},Zye=(e,t)=>{const n=qye(e);return{name:n.name,fn:n.fn,options:[e,t]}};var Yye=Object.defineProperty,Xye=(e,t)=>Yye(e,"name",{value:t,configurable:!0});function _T(e){const[t,n]=k.useState(void 0);return Pn(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const a=i[0];let o,u;if("borderBoxSize"in a){const f=a.borderBoxSize,h=Array.isArray(f)?f[0]:f;o=h.inlineSize,u=h.blockSize}else o=e.offsetWidth,u=e.offsetHeight;n({width:o,height:u})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}Xye(_T,"useSize");var Qye=Object.defineProperty,nl=(e,t)=>Qye(e,"name",{value:t,configurable:!0}),w8="Popper",[_8,S8]=Rc(w8),[Jye,j8]=_8(w8),exe=nl(e=>{const{__scopePopper:t,children:n}=e,[r,i]=k.useState(null),[a,o]=k.useState(void 0);return c.jsx(Jye,{scope:t,anchor:r,onAnchorChange:i,placementState:a,setPlacementState:o,children:n})},"Popper"),txe="PopperAnchor",nxe=k.forwardRef(nl(function(t,n){const{__scopePopper:r,virtualRef:i,...a}=t,o=j8(txe,r),u=k.useRef(null),f=o.onAnchorChange,h=k.useCallback(S=>{u.current=S,S&&f(S)},[f]),g=Ut(n,h),p=k.useRef(null);k.useEffect(()=>{if(!i)return;const S=p.current;p.current=i.current,S!==p.current&&f(p.current)});const y=o.placementState&&Sx(o.placementState),w=y==null?void 0:y[0],j=y==null?void 0:y[1];return i?null:c.jsx(Yt.div,{"data-radix-popper-side":w,"data-radix-popper-align":j,...a,ref:g})},"PopperAnchor")),P8="PopperContent",[rxe,X0e]=_8(P8),ixe=k.forwardRef(nl(function(t,n){var de,Ae,Ne,he,Ee,Se,at;const{__scopePopper:r,side:i="bottom",sideOffset:a=0,align:o="center",alignOffset:u=0,arrowPadding:f=0,avoidCollisions:h=!0,collisionBoundary:g=[],collisionPadding:p=0,sticky:y="partial",hideWhenDetached:w=!1,updatePositionStrategy:j="optimized",onPlaced:S,..._}=t,P=j8(P8,r),[O,C]=k.useState(null),E=Ut(n,C),[T,M]=k.useState(null),I=_T(T),$=(I==null?void 0:I.width)??0,z=(I==null?void 0:I.height)??0,Y=i+(o!=="center"?"-"+o:""),V=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},q=Array.isArray(g)?g:[g],G=q.length>0,Q={padding:V,boundary:q.filter(N8),altBoundary:G},{refs:ne,floatingStyles:ie,placement:re,isPositioned:W,middlewareData:oe}=zye({strategy:"fixed",placement:Y,whileElementsMounted:nl((...dt)=>Oye(...dt,{animationFrame:j==="always"}),"whileElementsMounted"),elements:{reference:P.anchor},middleware:[Vye({mainAxis:a+z,alignmentAxis:u}),h&&Wye({mainAxis:!0,crossAxis:!1,limiter:y==="partial"?Uye():void 0,...Q}),h&&Hye({...Q}),Gye({...Q,apply:nl(({elements:dt,rects:bt,availableWidth:Gt,availableHeight:ir})=>{const{width:sn,height:Xt}=bt.reference,pn=dt.floating.style;pn.setProperty("--radix-popper-available-width",`${Gt}px`),pn.setProperty("--radix-popper-available-height",`${ir}px`),pn.setProperty("--radix-popper-anchor-width",`${sn}px`),pn.setProperty("--radix-popper-anchor-height",`${Xt}px`)},"apply")}),T&&Zye({element:T,padding:f}),axe({arrowWidth:$,arrowHeight:z}),w&&Kye({strategy:"referenceHidden",...Q,boundary:G?Q.boundary:void 0})]}),U=P.setPlacementState;Pn(()=>(U(re),()=>{U(void 0)}),[re,U]);const[H,ee]=Sx(re),pe=Wa(S);Pn(()=>{W&&(pe==null||pe())},[W,pe]);const we=(de=oe.arrow)==null?void 0:de.x,ge=(Ae=oe.arrow)==null?void 0:Ae.y,ye=((Ne=oe.arrow)==null?void 0:Ne.centerOffset)!==0,[$e,xe]=k.useState();return Pn(()=>{O&&xe(window.getComputedStyle(O).zIndex)},[O]),c.jsx("div",{ref:ne.setFloating,"data-radix-popper-content-wrapper":"",style:{...ie,transform:W?ie.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:$e,"--radix-popper-transform-origin":[(he=oe.transformOrigin)==null?void 0:he.x,(Ee=oe.transformOrigin)==null?void 0:Ee.y].join(" "),...((Se=oe.hide)==null?void 0:Se.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:c.jsx(rxe,{scope:r,placedSide:H,placedAlign:ee,onArrowChange:M,arrowX:we,arrowY:ge,shouldHideArrow:ye,children:c.jsx(Yt.div,{"data-side":H,"data-align":ee,..._,ref:E,style:{..._.style,animation:W?(at=_.style)==null?void 0:at.animation:"none"}})})})},"PopperContent"));function N8(e){return e!==null}nl(N8,"isNotNull");var axe=nl(e=>({name:"transformOrigin",options:e,fn(t){var _,P,O;const{placement:n,rects:r,middlewareData:i}=t,o=((_=i.arrow)==null?void 0:_.centerOffset)!==0,u=o?0:e.arrowWidth,f=o?0:e.arrowHeight,[h,g]=Sx(n),p={start:"0%",center:"50%",end:"100%"}[g],y=(((P=i.arrow)==null?void 0:P.x)??0)+u/2,w=(((O=i.arrow)==null?void 0:O.y)??0)+f/2;let j="",S="";return h==="bottom"?(j=o?p:`${y}px`,S=`${-f}px`):h==="top"?(j=o?p:`${y}px`,S=`${r.floating.height+f}px`):h==="right"?(j=`${-f}px`,S=o?p:`${w}px`):h==="left"&&(j=`${r.floating.width+f}px`,S=o?p:`${w}px`),{data:{x:j,y:S}}}}),"transformOrigin");function Sx(e){const[t,n="center"]=e.split("-");return[t,n]}nl(Sx,"getSideAndAlignFromPlacement");var oxe=exe,sxe=nxe,lxe=ixe,cxe=Object.defineProperty,uxe=(e,t)=>cxe(e,"name",{value:t,configurable:!0});function A8(e){const t=k.useRef({value:e,previous:e});return k.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}uxe(A8,"usePrevious");var dxe=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"}),fxe=Object.defineProperty,xt=(e,t)=>
474fxe(e,"name",{value:t,configurable:!0}),hxe=[" ","Enter","ArrowUp","ArrowDown"],pxe=[" ","Enter"],Vd="Select",[jx,Px,mxe]=i8(Vd),[Bc,Q0e]=Rc(Vd,[mxe,S8]),ST=S8(),[gxe,vl]=Bc(Vd),[vxe,yxe]=Bc(Vd);function T8(e){const{__scopeSelect:t,children:n,open:r,defaultOpen:i,onOpenChange:a,value:o,defaultValue:u,onValueChange:f,dir:h,name:g,autoComplete:p,disabled:y,required:w,form:j,internal_do_not_use_render:S}=e,_=ST(t),[P,O]=k.useState(null),[C,E]=k.useState(null),[T,M]=k.useState(!1),I=c8(h),[$,z]=Hh({prop:r,defaultProp:i??!1,onChange:a,caller:Vd}),[Y,V]=Hh({prop:o,defaultProp:u,onChange:f,caller:Vd}),q=k.useRef(null),G=k.useRef(Y);k.useEffect(()=>{const ee=j?P==null?void 0:P.ownerDocument.getElementById(j):P==null?void 0:P.form;if(ee instanceof HTMLFormElement){const pe=xt(()=>V(G.current),"reset");return ee.addEventListener("reset",pe),()=>ee.removeEventListener("reset",pe)}},[j,P,V]);const Q=P?!!j||!!P.closest("form"):!0,[ne,ie]=k.useState(new Set),re=Gu(),W=Array.from(ne).map(ee=>ee.props.value).join(";"),oe=k.useCallback(ee=>{ie(pe=>new Set(pe).add(ee))},[]),U=k.useCallback(ee=>{ie(pe=>{const we=new Set(pe);return we.delete(ee),we})},[]),H={required:w,trigger:P,onTriggerChange:O,valueNode:C,onValueNodeChange:E,valueNodeHasChildren:T,onValueNodeHasChildrenChange:M,contentId:re,value:Y,onValueChange:V,open:$,onOpenChange:z,dir:I,triggerPointerDownPosRef:q,disabled:y,name:g,autoComplete:p,form:j,nativeOptions:ne,nativeSelectKey:W,isFormControl:Q};return c.jsx(oxe,{..._,children:c.jsx(gxe,{scope:t,...H,children:c.jsx(jx.Provider,{scope:t,children:c.jsx(vxe,{scope:t,onNativeOptionAdd:oe,onNativeOptionRemove:U,children:B8(S)?S(H):n})})})})}xt(T8,"SelectProvider");var xxe=xt(e=>{const{__scopeSelect:t,children:n,...r}=e;return c.jsx(T8,{__scopeSelect:t,...r,internal_do_not_use_render:({isFormControl:i})=>c.jsxs(c.Fragment,{children:[n,i?c.jsx(qxe,{__scopeSelect:t}):null]})})},"Select"),bxe="SelectTrigger",k8=k.forwardRef(xt(function(t,n){const{__scopeSelect:r,disabled:i=!1,...a}=t,o=ST(r),u=vl(bxe,r),f=u.disabled||i,h=Ut(n,u.onTriggerChange),g=Px(r),p=k.useRef("touch"),[y,w,j]=PT(_=>{const P=g().filter(E=>!E.disabled),O=P.find(E=>E.value===u.value),C=NT(P,_,O);C!==void 0&&u.onValueChange(C.value)}),S=xt(_=>{f||(u.onOpenChange(!0),j()),_&&(u.triggerPointerDownPosRef.current={x:Math.round(_.pageX),y:Math.round(_.pageY)})},"handleOpen");return c.jsx(sxe,{asChild:!0,...o,children:c.jsx(Yt.button,{type:"button",role:"combobox","aria-controls":u.open?u.contentId:void 0,"aria-expanded":u.open,"aria-required":u.required,"aria-autocomplete":"none",dir:u.dir,"data-state":u.open?"open":"closed",disabled:f,"data-disabled":f?"":void 0,"data-placeholder":om(u.value)?"":void 0,...a,ref:h,onClick:Ft(a.onClick,_=>{_.currentTarget.focus(),p.current!=="mouse"&&S(_)}),onPointerDown:Ft(a.onPointerDown,_=>{p.current=_.pointerType;const P=_.target;P.hasPointerCapture(_.pointerId)&&P.releasePointerCapture(_.pointerId),_.button===0&&_.ctrlKey===!1&&_.pointerType==="mouse"&&(S(_),_.preventDefault())}),onKeyDown:Ft(a.onKeyDown,_=>{const P=y.current!=="";!(_.ctrlKey||_.altKey||_.metaKey)&&_.key.length===1&&w(_.key),!(P&&_.key===" ")&&hxe.includes(_.key)&&(S(),_.preventDefault())})})})},"SelectTrigger")),wxe="SelectValue",_xe=k.forwardRef(xt(function(t,n){const{__scopeSelect:r,className:i,style:a,children:o,placeholder:u="",...f}=t,h=vl(wxe,r),{onValueNodeHasChildrenChange:g}=h,p=o!==void 0,y=Ut(n,h.onValueNodeChange);Pn(()=>{g(p)},[g,p]);const w=om(h.value);return c.jsx(Yt.span,{...f,asChild:w?!1:f.asChild,ref:y,style:{pointerEvents:"none"},children:c.jsx(k.Fragment,{children:w?u:o},w?"placeholder":"value")})},"SelectValue")),Sxe=k.forwardRef(xt(function(t,n){const{__scopeSelect:r,children:i,...a}=t;return c.jsx(Yt.span,{"aria-hidden":!0,...a,ref:n,children:i||"▼"})},"SelectIcon")),jxe="SelectPortal",[Pxe,Nxe]=Bc(jxe,{forceMount:void 0}),Axe=xt(e=>{const{__scopeSelect:t,forceMount:n,...r}=e;return c.jsx(Pxe,{scope:e.__scopeSelect,forceMount:n,children:c.jsx(mB,{asChild:!0,...r})})},"SelectPortal"),kc="SelectContent",C8=k.forwardRef(xt(function(t,n){const r=Nxe(kc,t.__scopeSelect),{forceMount:i=r.forceMount,...a}=t,o=vl(kc,t.__scopeSelect),[u,f]=k.useState();return Pn(()=>{f(new DocumentFragment)},[]),c.jsx($y,{present:i||o.open,children:({present:h})=>h?c.jsx(Cxe,{...a,ref:n}):c.jsx(Txe,{...a,fragment:u})})},"SelectContent")),Txe=k.forwardRef(xt(function(t,n){const{__scopeSelect:r,children:i,fragment:a}=t;return a?Yd.createPortal(c.jsx(O8,{scope:r,children:c.jsx(jx.Slot,{scope:r,children:c.jsx("div",{ref:n,children:i})})}),a):null},"SelectContentFragment")),ia=10,[O8,Fc]=Bc(kc),kxe=$o("SelectContent.RemoveScroll"),Cxe=k.forwardRef(xt(function(t,n){const{__scopeSelect:r}=t,{position:i="item-aligned",onCloseAutoFocus:a,onEscapeKeyDown:o,onPointerDownOutside:u,side:f,sideOffset:h,align:g,alignOffset:p,arrowPadding:y,collisionBoundary:w,collisionPadding:j,sticky:S,hideWhenDetached:_,avoidCollisions:P,...O}=t,C=vl(kc,r),[E,T]=k.useState(null),[M,I]=k.useState(null),$=Ut(n,T),[z,Y]=k.useState(null),[V,q]=k.useState(null),G=Px(r),[Q,ne]=k.useState(!1),ie=k.useRef(!1);k.useEffect(()=>{if(E)return TB(E)},[E]),By();const re=k.useCallback(xe=>{const[de,...Ae]=G().map(Ee=>
474Ee.ref.current),[Ne]=Ae.slice(-1),he=document.activeElement;for(const Ee of xe)if(Ee===he||(Ee==null||Ee.scrollIntoView({block:"nearest"}),Ee===de&&M&&(M.scrollTop=0),Ee===Ne&&M&&(M.scrollTop=M.scrollHeight),Ee==null||Ee.focus(),document.activeElement!==he))return},[G,M]),W=k.useCallback(()=>re([z,E]),[re,z,E]);k.useEffect(()=>{Q&&W()},[Q,W]);const{onOpenChange:oe,triggerPointerDownPosRef:U}=C;k.useEffect(()=>{if(E){let xe={x:0,y:0};const de=xt(Ne=>{var he,Ee;xe={x:Math.abs(Math.round(Ne.pageX)-(((he=U.current)==null?void 0:he.x)??0)),y:Math.abs(Math.round(Ne.pageY)-(((Ee=U.current)==null?void 0:Ee.y)??0))}},"handlePointerMove"),Ae=xt(Ne=>{xe.x<=10&&xe.y<=10?Ne.preventDefault():Ne.composedPath().includes(E)||oe(!1),document.removeEventListener("pointermove",de),U.current=null},"handlePointerUp");return U.current!==null&&(document.addEventListener("pointermove",de),document.addEventListener("pointerup",Ae,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",de),document.removeEventListener("pointerup",Ae,{capture:!0})}}},[E,oe,U]),k.useEffect(()=>{const xe=xt(()=>oe(!1),"close");return window.addEventListener("blur",xe),window.addEventListener("resize",xe),()=>{window.removeEventListener("blur",xe),window.removeEventListener("resize",xe)}},[oe]);const[H,ee]=PT(xe=>{const de=G().filter(he=>!he.disabled),Ae=de.find(he=>he.ref.current===document.activeElement),Ne=NT(de,xe,Ae);Ne&&setTimeout(()=>{var he;return(he=Ne.ref.current)==null?void 0:he.focus()})}),pe=k.useCallback((xe,de,Ae)=>{const Ne=!ie.current&&!Ae;(C.value!==void 0&&C.value===de||Ne)&&(Y(xe),Ne&&(ie.current=!0))},[C.value]),we=k.useCallback(()=>E==null?void 0:E.focus(),[E]),ge=k.useCallback((xe,de,Ae)=>{const Ne=!ie.current&&!Ae;(C.value!==void 0&&C.value===de||Ne)&&q(xe)},[C.value]),ye=i==="popper"?ML:Oxe,$e=ye===ML?{side:f,sideOffset:h,align:g,alignOffset:p,arrowPadding:y,collisionBoundary:w,collisionPadding:j,sticky:S,hideWhenDetached:_,avoidCollisions:P}:{};return c.jsx(O8,{scope:r,content:E,viewport:M,onViewportChange:I,itemRefCallback:pe,selectedItem:z,onItemLeave:we,itemTextRefCallback:ge,focusSelectedItem:W,selectedItemText:V,position:i,isPositioned:Q,searchRef:H,children:c.jsx(sA,{as:kxe,allowPinchZoom:!0,children:c.jsx(lB,{asChild:!0,trapped:C.open,onMountAutoFocus:xe=>{xe.preventDefault()},onUnmountAutoFocus:Ft(a,xe=>{var de;(de=C.trigger)==null||de.focus({preventScroll:!0}),xe.preventDefault()}),children:c.jsx(iB,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:o,onPointerDownOutside:u,onFocusOutside:xe=>xe.preventDefault(),onDismiss:()=>C.onOpenChange(!1),children:c.jsx(ye,{role:"listbox",id:C.contentId,"data-state":C.open?"open":"closed",dir:C.dir,onContextMenu:xe=>xe.preventDefault(),...O,...$e,onPlaced:()=>ne(!0),ref:$,style:{display:"flex",flexDirection:"column",outline:"none",...O.style},onKeyDown:Ft(O.onKeyDown,xe=>{const de=xe.ctrlKey||xe.altKey||xe.metaKey;if(xe.key==="Tab"&&xe.preventDefault(),!de&&xe.key.length===1&&ee(xe.key),["ArrowUp","ArrowDown","Home","End"].includes(xe.key)){let Ne=G().filter(he=>!he.disabled).map(he=>he.ref.current);if(["ArrowUp","End"].includes(xe.key)&&(Ne=Ne.slice().reverse()),["ArrowUp","ArrowDown"].includes(xe.key)){const he=xe.target,Ee=Ne.indexOf(he);Ne=Ne.slice(Ee+1)}setTimeout(()=>re(Ne)),xe.preventDefault()}})})})})})})},"SelectContentImpl")),Oxe=k.forwardRef(xt(function(t,n){const{__scopeSelect:r,onPlaced:i,...a}=t,o=vl(kc,r),u=Fc(kc,r),[f,h]=k.useState(null),[g,p]=k.useState(null),y=Ut(n,p),w=Px(r),j=k.useRef(!1),S=k.useRef(!0),{viewport:_,selectedItem:P,selectedItemText:O,focusSelectedItem:C}=u,E=k.useCallback(()=>{if(o.trigger&&o.valueNode&&f&&g&&_&&P&&O){const $=o.trigger.getBoundingClientRect(),z=g.getBoundingClientRect(),Y=o.valueNode.getBoundingClientRect(),V=O.getBoundingClientRect();if(o.dir!=="rtl"){const he=V.left-z.left,Ee=Y.left-he,Se=$.left-Ee,at=$.width+Se,dt=Math.max(at,z.width),bt=window.innerWidth-ia,Gt=eN(Ee,[ia,Math.max(ia,bt-dt)]);f.style.minWidth=at+"px",f.style.left=Gt+"px"}else{const he=z.right-V.right,Ee=window.innerWidth-Y.right-he,Se=window.innerWidth-$.right-Ee,at=$.width+Se,dt=Math.max(at,z.width),bt=window.innerWidth-ia,Gt=eN(Ee,[ia,Math.max(ia,bt-dt)]);f.style.minWidth=at+"px",f.style.right=Gt+"px"}const q=w(),G=window.innerHeight-ia*2,Q=_.scrollHeight,ne=window.getComputedStyle(g),ie=parseInt(ne.borderTopWidth,10),re=parseInt(ne.paddingTop,10),W=parseInt(ne.borderBottomWidth,10),oe=parseInt(ne.paddingBottom,10),U=ie+re+Q+oe+W,H=Math.min(P.offsetHeight*5,U),ee=window.getComputedStyle(_),pe=parseInt(ee.paddingTop,10),we=parseInt(ee.paddingBottom,10),ge=$.top+$.height/2-ia,ye=G-ge,$e=P.offsetHeight/2,xe=P.offsetTop+$e,de=ie+re+xe,Ae=U-de;if(de<=ge){const he=q.length>0&&P===q[q.length-1].ref.current;f.style.bottom="0px";const Ee=g.clientHeight-_.offsetTop-_.offsetHeight,Se=Math.max(ye,$e+(he?we:0)+Ee+W),at=de+Se;f.style.height=at+"px"}else{const he=q.length>0&&P===q[0].ref.current;f.style.top="0px";const Se=Math.max(ge,ie+_.offsetTop+(he?pe:0)+$e)+Ae;f.style.height=Se+"px",_.scrollTop=de-ge+_.offsetTop}f.style.margin=`${ia}px 0`,f.style.minHeight=H+"px",f.style.maxHeight=G+"px",i==null||i(),requestAnimationFrame(()=>j.current=!0)}},[w,o.trigger,o.valueNode,f,g,_,P,O,o.dir,i]);Pn(()=>E(),[E]);const[T,M]=k.useState();
474Pn(()=>{g&&M(window.getComputedStyle(g).zIndex)},[g]);const I=k.useCallback($=>{$&&S.current===!0&&(E(),C==null||C(),S.current=!1)},[E,C]);return c.jsx(Exe,{scope:r,contentWrapper:f,shouldExpandOnScrollRef:j,onScrollButtonChange:I,children:c.jsx("div",{ref:h,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:T},children:c.jsx(Yt.div,{...a,ref:y,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}})})})},"SelectItemAlignedPosition")),ML=k.forwardRef(xt(function(t,n){const{__scopeSelect:r,align:i="start",collisionPadding:a=ia,...o}=t,u=ST(r);return c.jsx(lxe,{...u,...o,ref:n,align:i,collisionPadding:a,style:{boxSizing:"border-box",...o.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})},"SelectPopperPosition")),[Exe,jT]=Bc(kc,{}),RL="SelectViewport",Mxe=k.forwardRef(xt(function(t,n){const{__scopeSelect:r,nonce:i,...a}=t,o=Fc(RL,r),u=jT(RL,r),f=Ut(n,o.onViewportChange),h=k.useRef(0);return c.jsxs(c.Fragment,{children:[c.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:i}),c.jsx(jx.Slot,{scope:r,children:c.jsx(Yt.div,{"data-radix-select-viewport":"",role:"presentation",...a,ref:f,style:{position:"relative",flex:1,overflow:"hidden auto",...a.style},onScroll:Ft(a.onScroll,g=>{const p=g.currentTarget,{contentWrapper:y,shouldExpandOnScrollRef:w}=u;if(w!=null&&w.current&&y){const j=Math.abs(h.current-p.scrollTop);if(j>0){const S=window.innerHeight-ia*2,_=parseFloat(y.style.minHeight),P=parseFloat(y.style.height),O=Math.max(_,P);if(O<S){const C=O+j,E=Math.min(S,C),T=C-E;y.style.height=E+"px",y.style.bottom==="0px"&&(p.scrollTop=T>0?T:0,y.style.justifyContent="flex-end")}}}h.current=p.scrollTop})})})]})},"SelectViewport")),Rxe="SelectGroup",[J0e,Dxe]=Bc(Rxe),Ixe="SelectLabel",E8=k.forwardRef(xt(function(t,n){const{__scopeSelect:r,...i}=t,a=Dxe(Ixe,r);return c.jsx(Yt.div,{id:a.id,...i,ref:n})},"SelectLabel")),iN="SelectItem",[Lxe,M8]=Bc(iN),R8=k.forwardRef(xt(function(t,n){const{__scopeSelect:r,value:i,disabled:a=!1,textValue:o,...u}=t,f=vl(iN,r),h=Fc(iN,r),g=f.value===i,[p,y]=k.useState(o??""),[w,j]=k.useState(!1),S=Wa(E=>{var T;return(T=h.itemRefCallback)==null?void 0:T.call(h,E,i,a)}),_=Ut(n,S),P=Gu(),O=k.useRef("touch"),C=xt(()=>{a||(f.onValueChange(i),f.onOpenChange(!1))},"handleSelect");return c.jsx(Lxe,{scope:r,value:i,disabled:a,textId:P,isSelected:g,onItemTextChange:k.useCallback(E=>{y(T=>T||((E==null?void 0:E.textContent)??"").trim())},[]),children:c.jsx(jx.ItemSlot,{scope:r,value:i,disabled:a,textValue:p,children:c.jsx(Yt.div,{role:"option","aria-labelledby":P,"data-highlighted":w?"":void 0,"aria-selected":g&&w,"data-state":g?"checked":"unchecked","aria-disabled":a||void 0,"data-disabled":a?"":void 0,tabIndex:a?void 0:-1,...u,ref:_,onFocus:
474Ft(u.onFocus,()=>j(!0)),onBlur:Ft(u.onBlur,()=>j(!1)),onClick:Ft(u.onClick,()=>{O.current!=="mouse"&&C()}),onPointerUp:Ft(u.onPointerUp,()=>{O.current==="mouse"&&C()}),onPointerDown:Ft(u.onPointerDown,E=>{O.current=E.pointerType}),onPointerMove:Ft(u.onPointerMove,E=>{var T;O.current=E.pointerType,a?(T=h.onItemLeave)==null||T.call(h):O.current==="mouse"&&E.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Ft(u.onPointerLeave,E=>{var T;E.currentTarget===document.activeElement&&((T=h.onItemLeave)==null||T.call(h))}),onKeyDown:Ft(u.onKeyDown,E=>{var M;a||E.target!==E.currentTarget||((M=h.searchRef)==null?void 0:M.current)!==""&&E.key===" "||(pxe.includes(E.key)&&C(),E.key===" "&&E.preventDefault())})})})})},"SelectItem")),Jg="SelectItemText",$xe=k.forwardRef(xt(function(t,n){const{__scopeSelect:r,className:i,style:a,...o}=t,u=vl(Jg,r),f=Fc(Jg,r),h=M8(Jg,r),g=yxe(Jg,r),[p,y]=k.useState(null),w=Wa(C=>{var E;return(E=f.itemTextRefCallback)==null?void 0:E.call(f,C,h.value,h.disabled)}),j=Ut(n,y,h.onItemTextChange,w),S=p==null?void 0:p.textContent,_=k.useMemo(()=>c.jsx("option",{value:h.value,disabled:h.disabled,children:S},h.value),[h.disabled,h.value,S]),{onNativeOptionAdd:P,onNativeOptionRemove:O}=g;return Pn(()=>(P(_),()=>O(_)),[P,O,_]),c.jsxs(c.Fragment,{children:[c.jsx(Yt.span,{id:h.textId,...o,ref:j}),h.isSelected&&u.valueNode&&!u.valueNodeHasChildren&&!om(u.value)?Yd.createPortal(o.children,u.valueNode):null]})},"SelectItemText")),Bxe="SelectItemIndicator",Fxe=k.forwardRef(xt(function(t,n){const{__scopeSelect:r,...i}=t;return M8(Bxe,r).isSelected?c.jsx(Yt.span,{"aria-hidden":!0,...i,ref:n}):null},"SelectItemIndicator")),DL="SelectScrollUpButton",D8=k.forwardRef(xt(function(t,n){const r=Fc(DL,t.__scopeSelect),i=jT(DL,t.__scopeSelect),[a,o]=k.useState(!1),u=Ut(n,i.onScrollButtonChange);return Pn(()=>{if(r.viewport&&r.isPositioned){let f=function(){const g=h.scrollTop>0;o(g)};xt(f,"handleScroll");const h=r.viewport;return f(),h.addEventListener("scroll",f),()=>h.removeEventListener("scroll",f)}},[r.viewport,r.isPositioned]),a?c.jsx(L8,{...t,ref:u,onAutoScroll:()=>{const{viewport:f,selectedItem:h}=r;f&&h&&(f.scrollTop=f.scrollTop-h.offsetHeight)}}):null},"SelectScrollUpButton")),IL="SelectScrollDownButton",I8=k.forwardRef(xt(function(t,n){const r=Fc(IL,t.__scopeSelect),i=jT(IL,t.__scopeSelect),[a,o]=k.useState(!1),u=Ut(n,i.onScrollButtonChange);return Pn(()=>{if(r.viewport&&r.isPositioned){let f=function(){const g=h.scrollHeight-h.clientHeight,p=Math.ceil(h.scrollTop)<g;o(p)};xt(f,"handleScroll");const h=r.viewport;return f(),h.addEventListener("scroll",f),()=>h.removeEventListener("scroll",f)}},[r.viewport,r.isPositioned]),a?c.jsx(L8,{...t,ref:u,onAutoScroll:()=>{const{viewport:f,selectedItem:h}=r;f&&h&&(f.scrollTop=f.scrollTop+h.offsetHeight)}}):null},"SelectScrollDownButton")),L8=k.forwardRef(xt(function(t,n){const{__scopeSelect:r,onAutoScroll:i,...a}=t,o=Fc("SelectScrollButton",r),u=k.useRef(null),f=Px(r),h=k.useCallback(()=>{u.current!==null&&(window.clearInterval(u.current),u.current=null)},[]);return k.useEffect(()=>()=>h(),[h]),Pn(()=>{var p;const g=f().find(y=>y.ref.current===document.activeElement);(p=g==null?void 0:g.ref.current)==null||p.scrollIntoView({block:"nearest"})},[f]),c.jsx(Yt.div,{"aria-hidden":!0,...a,ref:n,style:{flexShrink:0,...a.style},onPointerDown:Ft(a.onPointerDown,()=>{u.current===null&&(u.current=window.setInterval(i,50))}),onPointerMove:Ft(a.onPointerMove,()=>{var g;(g=o.onItemLeave)==null||g.call(o),u.current===null&&(u.current=window.setInterval(i,50))}),onPointerLeave:Ft(a.onPointerLeave,()=>{h()})})},"SelectScrollButtonImpl")),$8=k.forwardRef(xt(function(t,n){const{__scopeSelect:r,...i}=t;return c.jsx(Yt.div,{"aria-hidden":!0,...i,ref:n})},"SelectSeparator")),zxe="SelectBubbleInput",qxe=k.forwardRef(xt(function({__scopeSelect:t,...n},r){const i=vl(zxe,t),{value:a,onValueChange:o,required:u,disabled:f,name:h,autoComplete:g,form:p}=i,{nativeOptions:y,nativeSelectKey:w}=i,j=k.useRef(null),S=Ut(r,j),_=a??"",P=A8(_),O=Array.from(y).some(C=>(C.props.value??"")==="");return k.useEffect(()=>
474{const C=j.current;if(!C)return;const E=window.HTMLSelectElement.prototype,M=Object.getOwnPropertyDescriptor(E,"value").set;if(P!==_&&M){const I=new Event("change",{bubbles:!0});M.call(C,_),C.dispatchEvent(I)}},[P,_]),c.jsxs(Yt.select,{"aria-hidden":!0,required:u,tabIndex:-1,name:h,autoComplete:g,disabled:f,form:p,onChange:C=>o(C.target.value),...n,style:{...dxe,...n.style},ref:S,defaultValue:_,children:[om(a)&&!O?c.jsx("option",{value:""}):null,Array.from(y)]},w)},"SelectBubbleInput"));function B8(e){return typeof e=="function"}xt(B8,"isFunction");function om(e){return e===""||e===void 0}xt(om,"shouldShowPlaceholder");function PT(e){const t=Wa(e),n=k.useRef(""),r=k.useRef(0),i=k.useCallback(o=>{const u=n.current+o;t(u),xt((function f(h){n.current=h,window.clearTimeout(r.current),h!==""&&(r.current=window.setTimeout(()=>f(""),1e3))}),"updateSearch")(u)},[t]),a=k.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return k.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,a]}xt(PT,"useTypeaheadSearch");function NT(e,t,n){const i=t.length>1&&Array.from(t).every(h=>h===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let o=F8(e,Math.max(a,0));i.length===1&&(o=o.filter(h=>h!==n));const f=o.find(h=>h.textValue.toLowerCase().startsWith(i.toLowerCase()));return f!==n?f:void 0}xt(NT,"findNextItem");function F8(e,t){return e.map((n,r)=>e[(t+r)%e.length])}xt(F8,"wrapArray");const Op=xxe,Ep=_xe,Wd=k.forwardRef(({className:e,children:t,...n},r)=>c.jsxs(k8,{ref:r,className:Ht("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,c.jsx(Sxe,{asChild:!0,children:c.jsx(Ny,{className:"h-4 w-4 opacity-50"})})]}));Wd.displayName=k8.displayName;const z8=k.forwardRef(({className:e,...t},n)=>c.jsx(D8,{ref:n,className:Ht("flex cursor-default items-center justify-center py-1",e),...t,children:c.jsx(o3,{className:"h-4 w-4"})}));z8.displayName=D8.displayName;const q8=k.forwardRef(({className:e,...t},n)=>c.jsx(I8,{ref:n,className:Ht("flex cursor-default items-center justify-center py-1",e),...t,children:c.jsx(Ny,{className:"h-4 w-4"})}));q8.displayName=I8.displayName;const Ud=k.forwardRef(({className:e,children:t,position:n="popper",...r},i)=>c.jsx(Axe,{children:c.jsxs(C8,{ref:i,className:Ht("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md 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-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:[c.jsx(z8,{}),c.jsx(Mxe,{className:Ht("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),c.jsx(q8,{})]})}));Ud.displayName=C8.displayName;const Vxe=k.forwardRef(({className:e,...t},n)=>c.jsx(E8,{ref:n,className:Ht("px-2 py-1.5 text-sm font-semibold",e),...t}));Vxe.displayName=E8.displayName;const er=k.forwardRef(({className:e,children:t,...n},r)=>c.jsxs(R8,{ref:r,className:Ht("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[c.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:c.jsx(Fxe,{children:c.jsx($u,{className:"h-4 w-4"})})}),c.jsx($xe,{children:t})]}));er.displayName=R8.displayName;const Wxe=k.forwardRef(({className:e,...t},n)=>c.jsx($8,{ref:n,className:Ht("-mx-1 my-1 h-px bg-muted",e),...t}));Wxe.displayName=$8.displayName;const Uxe=Py("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function cv({className:e,variant:t,...n}){return c.jsx("div",{className:Ht(Uxe({variant:t}),e),...n})}const Hxe={"Level 1 Instructor":"bg-gray-100 text-gray-700","Level 2 Instructor":"bg-blue-100 text-blue-700","Level 3 Coach":"bg-green-100 text-green-700","Level 3 NTS Coach":"bg-emerald-100 text-emerald-700","Level 4 Coach":"bg-purple-100 text-purple-700","Level 4 NTS Coach":"bg-violet-100 text-violet-700","Level 5 Coach":"bg-
474amber-100 text-amber-700"};function Gxe({coach:e}){var t;return c.jsx("div",{className:"bg-white rounded-2xl border border-gray-200 overflow-hidden hover:shadow-lg transition-shadow",children:c.jsxs("div",{className:"flex flex-col sm:flex-row",children:[c.jsx("div",{className:"sm:w-48 h-48 sm:h-48 bg-gradient-to-br from-[#0d1830] to-[#1a2d50] flex items-center justify-center flex-shrink-0 overflow-hidden",children:e.photo_url?c.jsx("img",{src:e.photo_url,alt:e.name,className:"w-full h-full object-cover",style:{objectPosition:"center 20%"}}):c.jsx("div",{className:"text-4xl font-black text-[#00d4ff]/40",children:(t=e.name)==null?void 0:t.split(" ").map(n=>n[0]).join("")})}),c.jsxs("div",{className:"p-5 flex-1 min-w-0",children:[c.jsxs("div",{className:"flex items-start justify-between gap-2 mb-2",children:[c.jsx("h3",{className:"text-lg font-bold text-gray-900",children:e.name}),e.accepts_new_students&&c.jsxs(cv,{className:"bg-green-50 text-green-700 border-green-200 text-[10px] flex-shrink-0",children:[c.jsx(Ay,{className:"w-3 h-3 mr-1"})," Accepting Students"]})]}),c.jsxs("div",{className:"flex flex-wrap gap-2 mb-3",children:[c.jsxs(cv,{className:Hxe[e.certification_level]||"bg-gray-100 text-gray-700",children:[c.jsx(ko,{className:"w-3 h-3 mr-1"})," ",e.certification_level]}),e.years_coaching&&c.jsxs(cv,{variant:"outline",className:"text-xs",children:[e.years_coaching,"+ years"]})]}),c.jsxs("div",{className:"flex flex-wrap gap-x-4 gap-y-1 text-sm text-gray-500 mb-3",children:[c.jsxs("span",{className:"flex items-center gap-1",children:[c.jsx(Wr,{className:"w-3.5 h-3.5"})," ",e.city,", TX"]}),e.club_or_range&&c.jsxs("span",{className:"flex items-center gap-1",children:[c.jsx(qr,{className:"w-3.5 h-3.5"})," ",e.club_or_range]})]}),e.specialties&&c.jsx("div",{className:"flex flex-wrap gap-1.5 mb-3",children:e.specialties.split(",").map((n,r)=>c.jsx("span",{className:"px-2 py-0.5 rounded-full bg-[#00d4ff]/10 text-[#0077b6] text-xs font-medium",children:n.trim()},r))}),e.bio&&c.jsx("p",{className:"text-sm text-gray-600 line-clamp-3 mb-3",children:e.bio}),e.coaching_philosophy&&c.jsxs("p",{className:"text-xs text-gray-400 italic line-clamp-2 mb-3",children:['"',e.coaching_philosophy,'"']}),c.jsxs("div",{className:"flex gap-3",children:[e.contact_email&&c.jsxs("a",{href:`mailto:${e.contact_email}`,className:"text-[#00d4ff] hover:underline text-sm flex items-center gap-1",children:[c.jsx(rr,{className:"w-3.5 h-3.5"})," Email"]}),e.website&&c.jsxs("a",{href:e.website,target:"_blank",rel:"noopener noreferrer",className:"text-[#00d4ff] hover:underline text-sm flex items-center gap-1",children:[c.jsx(sN,{className:"w-3.5 h-3.5"})," Website"]})]})]})]})})}const Kxe=[{icon:nV,title:"Professional Photo",description:"A clear headshot or coaching action photo — first impressions matter!",priority:"essential"},{icon:s3,title:"Bio / Background",description:"Who you are, how you got into archery, and what drives you as a coach.",priority:"essential"},{icon:Fi,title:"Certification Level",description:"Your USA Archery certification (Level 3, 4, 5, NTS, etc.).",priority:"essential"},{icon:Wr,title:"Location & Club",description:"City and the club or range where you coach so athletes can find you.",priority:"essential"},{icon:NV,title:"Coaching Philosophy",description:"A sentence or tw
474o about your approach — what makes your coaching style unique?",priority:"recommended"},{icon:qr,title:"Specialties & Age Groups",description:"Do you focus on recurve, compound, youth, para, beginners, or competitive athletes?",priority:"recommended"},{icon:Fi,title:"Notable Achievements",description:"Awards, athletes you've coached to success, state/national placements.",priority:"recommended"},{icon:qV,title:"A Quote or Advice",description:"Share one piece of advice you'd give to every archer — makes your profile memorable.",priority:"nice-to-have"},{icon:rr,title:"Contact Email",description:"How potential students can reach you directly.",priority:"essential"},{icon:sN,title:"Website or Social Link",description:"Your website, Instagram, or Facebook page for more info.",priority:"nice-to-have"}],Zxe={essential:"border-green-200 bg-green-50",recommended:"border-blue-200 bg-blue-50","nice-to-have":"border-gray-200 bg-gray-50"},Yxe={essential:{text:"Essential",color:"text-green-700 bg-green-100"},recommended:{text:"Recommended",color:"text-blue-700 bg-blue-100"},"nice-to-have":{text:"Nice to Have",color:"text-gray-600 bg-gray-100"}};function Xxe(){return c.jsxs("div",{className:"bg-white rounded-2xl border border-gray-200 p-6 sm:p-8",children:[c.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[c.jsx(nW,{className:"w-6 h-6 text-[#00d4ff]"}),c.jsx("h2",{className:"text-xl font-bold text-gray-900",children:"Coach Profile Checklist"})]}),c.jsxs("p",{className:"text-sm text-gray-500 mb-6",children:["Want to be featured in the Coach's Corner? Here's what makes a great profile. Send your info to ",c.jsx("a",{href:"mailto:[email protected]",className:"text-[#00d4ff] underline",children:"[email protected]"}),"."]}),c.jsx("div",{className:"grid gap-3",children:Kxe.map((e,t)=>{const n=e.icon,r=Yxe[e.priority];return c.jsxs("div",{className:`flex items-start gap-3 p-3 rounded-xl border ${Zxe[e.priority]}`,children:[c.jsx(n,{className:"w-5 h-5 text-gray-400 mt-0.5 flex-shrink-0"}),c.jsxs("div",{className:"flex-1 min-w-0",children:[c.jsxs("div",{className:"flex items-center gap-2 mb-0.5",children:[c.jsx("span",{className:"font-semibold text-sm text-gray-800",children:e.title}),c.jsx("span",{className:`text-[10px] font-bold uppercase tracking-wider px-1.5 py-0.5 rounded ${r.color}`,children:r.text})]}),c.jsx("p",{className:"text-xs text-gray-500",children:e.description})]})]},t)})})]})}function Qxe(){const[e,t]=k.useState(""),[n,r]=k.useState("all"),{data:i=[],isLoading:a}=an({queryKey:["coachProfiles"],queryFn:()=>on.entities.CoachProfile.filter({published:!0})}),o=["Level 3 Coach","Level 3 NTS Coach","Level 4 Coach","Level 4 NTS Coach","Level 5 Coach","Level 5 NTS Coach"],u=i.filter(f=>{var p,y,w,j;const h=!e||((p=f.name)==null?void 0:p.toLowerCase().includes(e.toLowerCase()))||((y=f.city)==null?void 0:y.toLowerCase().includes(e.toLowerCase()))||((w=f.specialties)==null?void 0:w.toLowerCase().includes(e.toLowerCase()))||((j=f.club_or_range)==null?void 0:j.toLowerCase().includes(e.toLowerCase())),g=n==="all"||f.certification_level===n;return h&&g}).sort((f,h)=>{const g=o.indexOf(f.certification_level),p=o.indexOf(h.certification_level),y=g===-1?999:g,w=p===-1?999:p;if(y!==w)return y-w;const j=(f.name||"").trim().split(/\s+/).pop()||"",S=(h.name||"").trim().split(/\s+/).pop()||"";return j.localeCompare(S)});return c.jsxs("div",{className:"min-h-screen bg-gradient-to-b from-[#060d1f] via-[#0d1830] to-gray-100",children:[c.jsx("div",{className:"relative py-16 sm:py-24 px-4 text-center",children:c.jsxs("div",{className:"max-w-3xl mx-auto",children:[c.jsxs("div",{className:"inline-flex items-center gap-2 px-3 py-1 rounded-full bg-[#00d4ff]/10 border border-[#00d4ff]/30 text-[#00d4ff] text-xs font-bold uppercase tracking-widest mb-4",children:[c.jsx(qr,{className:"w-3.5 h-3.5"})," Coach's Corner"]}),c.jsx("h1",{className:"text-3xl sm:text-5xl font-black text-white mb-4 tracking-tight",children:"Meet Texas Archery Coaches"}),c.jsx("p",{className:"text-gray-400 text-sm sm:text-base max-w-xl mx-auto",children:"Certified coaches across Texas dedicated to growing the sport. Find the right coach for your archery journey."})]})}),c.jsxs("div",{className:"max-w-5xl mx-auto px-4 pb-16",children:[c.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 mb-8",children:[c.jsxs("div",{className:"relative flex-1",children:[c.jsx(ky,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-gray-400"}),c.jsx(Et,{placeholder:"Search by name, city, specialty...",value:e,onCh
474ange:f=>t(f.target.value),className:"pl-10 bg-white"})]}),c.jsxs(Op,{value:n,onValueChange:r,children:[c.jsxs(Wd,{className:"w-full sm:w-56 bg-white",children:[c.jsx(ko,{className:"w-4 h-4 mr-2 text-gray-400"}),c.jsx(Ep,{placeholder:"All Levels"})]}),c.jsxs(Ud,{children:[c.jsx(er,{value:"all",children:"All Levels"}),c.jsx(er,{value:"Level 3 Coach",children:"Level 3 Coach"}),c.jsx(er,{value:"Level 3 NTS Coach",children:"Level 3 NTS Coach"}),c.jsx(er,{value:"Level 4 Coach",children:"Level 4 Coach"}),c.jsx(er,{value:"Level 4 NTS Coach",children:"Level 4 NTS Coach"}),c.jsx(er,{value:"Level 5 Coach",children:"Level 5 Coach"})]})]})]}),a?c.jsx("div",{className:"text-center py-12 text-gray-400",children:"Loading coaches..."}):u.length>0?c.jsx("div",{className:"grid gap-4 mb-12",children:u.map(f=>c.jsx(Gxe,{coach:f},f.id))}):c.jsxs("div",{className:"text-center py-12 mb-12 bg-white rounded-2xl border border-gray-200",children:[c.jsx(qr,{className:"w-10 h-10 text-gray-300 mx-auto mb-3"}),c.jsx("p",{className:"text-gray-500 font-medium",children:i.length===0?"Coach profiles coming soon!":"No coaches match your search."}),c.jsx("p",{className:"text-sm text-gray-400 mt-1",children:"Are you a certified coach in Texas? Reach out to get featured!"})]}),c.jsx(Xxe,{})]})]})}const LL=[{label:"Home",page:"Home",icon:TV},{label:"Events",page:"Events",icon:fd},{label:"News",page:"News",icon:WV},{label:"Resources",page:"Records",icon:jh}],Jxe=new Set(["Home","Events","News","Records"]),DS={Home:{path:Xe("Home"),scroll:0},Events:{path:Xe("Events"),scroll:0},News:{path:Xe("News"),scroll:0},Records:{path:Xe("Records"),scroll:0}};function e0e(){const e=Uo(),t=e.pathname.split("/").pop()||"Home",r=(()=>{for(const i of LL)if(Jxe.has(t)){if(t===i.page)return i.page}else if(i.page==="News"&&["NewsDetail","News"].includes(t)||i.page==="Events"&&["Events","Results","TOTS","Calendar"].includes(t)||i.page==="Records"&&["Records","ArcherOfTheYear","FeaturedArchers","TournamentAnalytics","Locations"].includes(t))return i.page;return"Home"})();return k.useEffect(()=>{const i=()=>{DS[r]={path:e.pathname,scroll:window.scrollY}};return window.addEventListener("beforeunload",i),()=>window.removeEventListener("beforeunload",i)},[e.pathname,r]),k.useEffect(()=>{const i=setTimeout(()=>{var a;window.scrollTo(0,((a=DS[r])==null?void 0:a.scroll)||0)},0);return()=>clearTimeout(i)},[r]),c.jsx("nav",{className:"fixed bottom-0 left-0 right-0 lg:hidden bg-[#060d1f] border-t border-white/10 z-40",style:{paddingBottom:"env(safe-area-inset-bottom)"},children:c.jsx("div",{className:"flex items-center justify-around",children:LL.map(({label:i,page:a,icon:o})=>{var f;const u=r===a;return c.jsxs(Je,{to:((f=DS[a])==null?void 0:f.path)||Xe(a),className:`flex flex-col items-center justify-center flex-1 py-3 transition-colors ${u?"text-[#00d4ff]":"text-gray-400 hover:text-white"}`,children:[c.jsx(o,{className:"w-6 h-6"}),c.jsx("span",{className:"text-xs font-bold mt-1 uppercase tracking-wider",children:i})]},i)})})})}const t0e=new Set(["Home","Events","News","Records"]);function n0e(){const e=N$(),n=Uo().pathname.split("/").pop()||"Home";return t0e.has(n)?null:c.jsx("button",{onClick:()=>e(-1),className:"hidden lg:hidden p-2 text-white hover:text-[#00d4ff] transition-colors user-select-none",children:c.jsx(i3,{className:"w-6 h-6"})})}function r0e(){const[e,t]=k.useState(!1);k.useEffect(()=>{localStorage.getItem("tsaa_cookie_consent")||t(!0)},[]);const n=()=>{localStorage.setItem("tsaa_cookie_consent","accepted"),t(!1)},r=()=>{t(!1)};return e?c.jsx("div",{className:"fixed bottom-0 left-0 right-0 z-40 bg-[#02060f] border-t border-white/10 p-4 sm:p-6",children:c.jsxs("div",{className:"max-w-7xl mx-auto flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4",children:[c.jsxs("div",{className:"flex-1",children:[c.jsx("p",{className:"text-white font-black text-sm uppercase tracking-wide mb-1",children:"We Use Cookies"}),c.jsx("p",{className:"text-gray-400 text-sm leading-relaxed",children:"We use cookies to enhance your experience, remember your preferences, and analyze site usage. By continuing to use this site, you accept our use of cookies."})]}),c.jsxs("div",{className:"flex items-center gap-3 flex-shrink-0",children:[c.jsx(Je,{to:Xe("CookiePolicy"),className:"text-[#00d4ff] text-sm font-black uppercase tracking-wide hover:underline",children:"Learn More"}),c.jsx("button",{onClick:n,className:"px-4 py-2 bg-[#00d4ff] text-[#060d1f] font-black text-sm uppercase tracking-wide rounded-lg hover:bg-[#00bfe8] transition-colors whitespace-nowrap",children:"Accept"}),c.jsx("button",{onClick:r,className:"p-2 text-gray-400 hover:text-white transition-colors","aria-label":"Dismiss",children:c.jsx(Cy,{className:"w-5 h-5"})})]})]})}):null}
474const $L="G-V0ZJ9H7JS1";let BL=!1;function i0e(){if(BL)return;BL=!0;const e=document.createElement("script");e.async=!0,e.src=`https://www.googletagmanager.com/gtag/js?id=${$L}`,document.head.appendChild(e),window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)},window.gtag("js",new Date),window.gtag("config",$L,{send_page_view:!1})}function a0e(){const e=Uo();return k.useEffect(()=>{localStorage.getItem("tsaa_cookie_consent")==="accepted"&&i0e()},[]),k.useEffect(()=>{const t=e.pathname.replace("/","")||"Home";window.gtag&&window.gtag("event","page_view",{page_path:e.pathname,page_title:t})},[e.pathname]),null}const o0e="/media/usa-archery-texas-state-association.png",s0e="/media/world-archery.png";function l0e(){return c.jsxs("div",{className:"flex flex-col items-center gap-4",children:[c.jsxs("div",{className:"flex items-center justify-center gap-6",children:[c.jsx("a",{href:"https://www.usarchery.org",target:"_blank",rel:"noopener noreferrer",className:"hover:opacity-80 transition-opacity",children:c.jsx("img",{src:o0e,alt:"USA Archery — Texas State Association",className:"w-20 h-20 sm:w-24 sm:h-24 lg:w-[160px] lg:h-[160px] object-contain"})}),c.jsx("div",{className:"w-px h-12 sm:h-16 lg:h-24 bg-white/15"}),c.jsx("a",{href:"https://worldarchery.sport",target:"_blank",rel:"noopener noreferrer",className:"hover:opacity-80 transition-opacity",children:c.jsx("img",{src:s0e,alt:"World Archery",className:"h-10 sm:h-14 lg:h-[80px] w-auto object-contain"})})]}),c.jsx("p",{className:"text-gray-400 text-center leading-relaxed max-w-2xl",style:{fontSize:"12.5px"},children:"TSAA is a registered State Association of USA Archery, the National Governing Body for Olympic archery in the United States and a member of World Archery."})]})}const c0e=()=>{const[e,t]=k.useState(()=>typeof window>"u"?!1:window.matchMedia("(prefers-color-scheme: dark)").matches);return k.useEffect(()=>{const n=window.matchMedia("(prefers-color-scheme: dark)"),r=i=>t(i.matches);return n.addEventListener("change",r),()=>n.removeEventListener("change",r)},[]),e},FL=[{label:"Home",page:"Home"},{label:"Compete",page:"Events",children:[{label:"Upcoming Events",page:"Events"},{label:"Master Calendar",page:"Calendar"},{label:"TOTS Series",page:"TOTS"},{label:"Results",page:"Results"},{label:"Locations",page:"Locations"}]},{label:"News",page:"News"},{label:"Resources",page:"Records",children:[{label:"Nominate an Archer",page:"NominateArcher"},{label:"Featured Archers",page:"FeaturedArchers"},{label:"Coach's Corner",page:"CoachesCorner"},{label:"Coach Spotlight",page:"FeaturedCoaches"},{label:"Nominate a Coach",page:"NominateCoach"},{label:"Host an Event",page:"HostEvent"},{label:"On the Line (Judges)",page:"OnTheLine"},{label:"State Records",page:"Records"},{label:"Archer of the Year",page:"ArcherOfTheYear"},{label:"Tournament Analytics",page:"TournamentAnalytics"}]},{label:"About",page:"About",children:[{label:"Mission & Board",page:"About"},{label:"Bylaws",page:"Bylaws"},{label:"Branding",page:"Branding"},{label:"Advertise With Us",page:"Advertise"}]}];function u0e({children:e,currentPageName:t}){const[n,r]=k.useState(!1),[i,a]=k.useState(!1),[o,u]=k.useState(null),f=c0e(),h=Uo();k.useEffect(()=>{f?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark")},[f]),k.useEffect(()=>{const y=()=>a(window.scrollY>20);return window.addEventListener("scroll",y),()=>window.removeEventListener("scroll",y)},[]),k.useEffect(()=>{window.scrollTo(0,0)},[t]);const g=t==="Home",p=g?i?"bg-[#060d1f]/95 border-b border-white/10":"bg-transparent":"bg-[#060d1f] border-b border-white/10";return c.jsxs("div",{className:"min-h-screen flex flex-col",children:[c.jsxs("header",{className:`fixed top-0 left-0 right-0 z-50 transition-all duration-300 ${p}`,style:{paddingTop:"env(safe-area-inset-top)"},children:[c.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[c.jsxs("div",{className:"flex items-center justify-between h-16 sm:h-20 lg:hidden",children:[c.jsx(n0e,{}),c.jsx(Je,{to:Xe("Home"),className:"flex flex-col items-center gap-1 group",children:c.jsx("img",{src:"/brand/tsaa-logo.png",alt:"Texas State Archery Association Logo - Est. 1983",className:"w-10 h-10 sm:w-14 sm:h-14 roun
474ded-full object-cover group-hover:scale-105 transition-transform ring-2 ring-[#00d4ff]/70 shadow-[0_0_20px_6px_rgba(0,212,255,0.45)]"})}),c.jsx("div",{className:"flex items-center gap-1",children:c.jsx("button",{onClick:()=>r(!n),className:"p-2 rounded-lg text-white",children:n?c.jsx(Cy,{className:"w-6 h-6"}):c.jsx(FV,{className:"w-6 h-6"})})})]}),c.jsxs("div",{className:"hidden lg:flex flex-col",children:[c.jsxs("div",{className:"flex items-center justify-between py-3",children:[c.jsxs(Je,{to:Xe("Home"),className:"flex flex-col items-center gap-1 group",children:[c.jsx("img",{src:"/brand/tsaa-logo.png",alt:"Texas State Archery Association Logo - Est. 1983",className:"w-36 h-36 rounded-full object-cover group-hover:scale-105 transition-transform ring-2 ring-[#00d4ff]/70 shadow-[0_0_20px_6px_rgba(0,212,255,0.45)] animate-logo-glow"}),c.jsxs("span",{className:"inline-flex items-center gap-1.5 text-[#00d4ff] text-[10px] font-bold tracking-widest uppercase",children:[c.jsx(gW,{className:"w-2.5 h-2.5"}),"Est. 1983 · Texas"]})]}),c.jsx("div",{className:"flex items-center gap-4",children:c.jsxs("a",{href:"https://www.facebook.com/texasstatearcheryassociation",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 px-4 py-1.5 rounded-full bg-white/5 border border-white/20 text-sm font-bold uppercase tracking-wider text-gray-300 hover:bg-white/10 hover:border-[#00d4ff]/50 hover:text-[#00d4ff] transition-colors",children:[c.jsxs("span",{className:"relative flex h-2 w-2",children:[c.jsx("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-[#00d4ff] opacity-75"}),c.jsx("span",{className:"relative inline-flex rounded-full h-2 w-2 bg-[#00d4ff]"})]}),"Join the Conversation"]})})]}),c.jsxs("nav",{className:"flex flex-wrap items-center justify-center gap-x-1 gap-y-0 border-t border-white/10 py-2",children:[FL.map(y=>c.jsxs("div",{className:"relative",onMouseEnter:()=>y.children&&u(y.label),onMouseLeave:()=>u(null),children:[c.jsx(Je,{to:Xe(y.page),className:"px-4 py-2 rounded-lg text-sm font-bold uppercase tracking-wider text-gray-300 hover:text-[#00d4ff] transition-colors",children:y.label}),y.children&&o===y.label&&c.jsx(Ue.div,{initial:{opacity:0,y:4},animate:{opacity:1,y:0},className:"absolute top-full left-0 mt-1 w-48 bg-[#0d1830] rounded-xl shadow-2xl border border-white/10 py-2 overflow-hidden z-50",children:y.children.map(w=>c.jsx(Je,{to:Xe(w.page),className:"block px-4 py-2.5 text-sm font-bold uppercase tracking-wider text-gray-400 hover:bg-white/5 hover:text-[#00d4ff] transition-colors",children:w.label},w.label))})]},y.label)),c.jsx(Je,{to:Xe("Contact"),className:"px-4 py-2 rounded-lg text-sm font-bold uppercase tracking-wider text-gray-300 hover:text-[#00d4ff] transition-colors",children:"Contact"})]})]})]}),c.jsx(Bp,{children:n&&c.jsx(Ue.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},className:"lg:hidden bg-[#060d1f] border-t border-white/10 overflow-hidden",children:c.jsx("div",{className:"px-4 py-4 space-y-1",children:FL.map(y=>{var w;return c.jsxs(K.Fragment,{children:[c.jsx(Je,{to:Xe(y.page),onClick:()=>r(!1),className:"block px-4 py-3 rounded-lg text-white font-black uppercase tracking-wider text-sm hover:bg-white/5 transition-colors",children:y.label}),(w=y.children)==null?void 0:w.map(j=>c.jsx(Je,{to:Xe(j.page),onClick:()=>r(!1),className:"block pl-8 pr-4 py-2.5 rounded-lg text-gray-500 text-xs font-bold uppercase tracking-wider hover:bg-white/5 hover:text-[#00d4ff] transition-colors",children:j.label},j.label))]},y.label)})})})})]}),c.jsx("main",{className:g?"":"pt-16 sm:pt-20 lg:pt-36",style:{paddingBottom:"env(safe-area-inset-bottom)"},children:c.jsx(Ue.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},exit:{opacity:0,x:-20},transition:{duration:.3},children:e},h.pathname)}),c.jsx(e0e,{}),c.jsx(a0e,{}),c.jsx(r0e,{}),c.jsx("footer",{className:"bg-[#02060f] text-white mt-auto border-t border-white/10",children:c.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12 lg:py-16",children:[c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-10",children:[c.jsxs("div",{children:[c.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[c.jsx("img",{src:"/brand/tsaa-logo.png",alt:"Texas State Archery Association Logo",className:"w-16 h-16 sm:w-20 sm:h-20 lg:w-[128px] lg:h-[128px] rounded-full object-cover"}),c.jsxs("div",{children:[c.jsx("div",{className:"font-black text-lg uppercase tracking-widest",children:"TSAA"}),c.jsx("div",{className:"text-[10px] uppercase tracking-[0.2em] text-[#00d4ff]",children:"Texas State Archery Association"})]})]}),c.jsx("p",{className:"text-gray-400 text-sm leading-relaxed",children:"Fostering amateur archery competition and furthering the sport of archery in the great state of Texas since 1983."})]}),c.jsxs("div",{children:[c.jsx("h4",{className:"font-black text-xs uppercase tracking-widest text-[#00d4ff] mb-4",children:"Qu
474ick Links"}),c.jsx("div",{className:"space-y-2",children:[{label:"Events",page:"Events"},{label:"TOTS",page:"TOTS"},{label:"Results",page:"Results"},{label:"News",page:"News"},{label:"Archer of the Year",page:"ArcherOfTheYear"},{label:"Records",page:"Records"},{label:"Bylaws",page:"Bylaws"},{label:"Find Archery in Texas",page:"FindArcheryInTexas"},{label:"Contact",page:"Contact"}].map(y=>c.jsx(Je,{to:Xe(y.page),className:"block text-gray-400 text-sm hover:text-white transition-colors",children:y.label},y.label))})]}),c.jsxs("div",{children:[c.jsx("h4",{className:"font-black text-xs uppercase tracking-widest text-[#00d4ff] mb-4",children:"Contact"}),c.jsxs("div",{className:"text-gray-400 text-sm space-y-2",children:[c.jsx("p",{children:"[email protected]"}),c.jsxs("div",{className:"flex gap-3 mt-4",children:[c.jsx("a",{href:"https://www.facebook.com/texasstatearcheryassociation",target:"_blank",rel:"noopener noreferrer",className:"w-9 h-9 rounded-lg border border-white/10 flex items-center justify-center hover:border-[#00d4ff]/50 hover:text-[#00d4ff] transition-colors text-xs font-black",children:"f"}),c.jsx("a",{href:"https://www.instagram.com/texasstatearcheryassociation",target:"_blank",rel:"noopener noreferrer",className:"w-9 h-9 rounded-lg border border-white/10 flex items-center justify-center hover:border-[#00d4ff]/50 hover:text-[#00d4ff] transition-colors text-xs font-black",children:"ig"})]})]})]})]}),c.jsxs("div",{className:"border-t border-white/5 mt-10 pt-6 space-y-6",children:[c.jsx(l0e,{}),c.jsx("p",{className:"text-center text-gray-500 text-xs leading-relaxed mb-3",children:"Texas State Archery Association is an official affiliated state organization of USA Archery and World Archery."}),c.jsxs("p",{className:"text-center text-gray-600 text-xs uppercase tracking-widest",children:["© ",new Date().getFullYear()," Texas State Archery Association. All rights reserved."]})]})]})})]})}const d0e={About:MZ,Advertise:RZ,ArcherOfTheYear:DZ,Branding:$Z,Bylaws:zZ,Calendar:fX,Contact:PX,CookiePolicy:NX,Events:CX,FeaturedArchers:OX,Home:ZX,HostEvent:XX,Locations:See,News:Pee,NewsDetail:Nee,NominateArcher:Aee,PrivacyChoices:Tee,PrivacyPolicy:kee,Records:Eee,Results:Lee,TOTS:Bee,TournamentAnalytics:Lve,CoachesCorner:Qxe},f0e={mainPage:"Home",Pages:d0e,Layout:u0e};function h0e({}){const t=Uo().pathname.substring(1);return c.jsx("div",{className:"min-h-screen flex items-center justify-center p-6 bg-slate-50",children:c.jsx("div",{className:"max-w-md w-full",children:c.jsxs("div",{className:"text-center space-y-6",children:[c.jsxs("div",{className:"space-y-2",children:[c.jsx("h1",{className:"text-7xl font-light text-slate-300",children:"404"}),c.jsx("div",{className:"h-0.5 w-16 bg-slate-200 mx-auto"})]}),c.jsxs("div",{className:"space-y-3",children:[c.jsx("h2",{className:"text-2xl font-medium text-slate-800",children:"Page Not Found"}),c.jsxs("p",{className:"text-slate-600 leading-relaxed",children:["The page ",c.jsxs("span",{className:"font-medium text-slate-700",children:['"',t,'"']})," could not be found in this application."]})]}),c.jsx("div",{className:"pt-6",children:c.jsxs("button",{onClick:()=>window.location.href="/",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:[c.jsx("svg",{className:"w-4 h-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c.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"]})})]})})})}var p0e=Object.defineProperty,ll=(e,t)=>p0e(e,"name",{value:t,configurable:!0}),AT="Switch",[m0e,ebe]=Rc(AT),[g0e,TT]=m0e(AT);function V8(e){const{__scopeSwitch:t,checked:n,children:r,defaultChecked:i,disabled:a,form:o,name:u,onCheckedChange:f,required:h,value:g="on",internal_do_not_use_render:p}=e,[y,w]=Hh({prop:n,defaultProp:i??!1,onChange:f,caller:AT}),[j,S]=k.useState(null),[_,P]=k.useState(null),O=k.useRef(!1),[C,E]=k.useReducer(I=>I+1,0),T=j?!!o||!!j.closest("form"):!0,M={checked:y,setChecked:w,disabled:a,control:j,setControl:S,name:u,form:o,value:g,hasConsumerStoppedPropagationRef:O,userInteractionCount:C,onUserInteraction:E,required:h,defaultChecked:i,isFormControl:T,bubbleInput:_,setBubbleInput:P};return c.jsx(g0e,{scope:t,...M,children:U8(p)?p(M):r})}ll(V8,"SwitchProvider");var v0e="SwitchTrigger",y0e=k.forwardRef(ll(function({__scopeSwitch:t,onClick:n,...r},i){const{control:a,form:o,value:u,disabled:f,checked:h,required:g,setControl:p,setChecked:y,hasConsumerStoppedPropagationRef:w,onUserInteraction:j,isFormControl:S,bubbleInput:_}=TT(v0e,t),P=Ut(i,p),O=k.useRef(h);return k.useEffect(()=>{const C=o?a==null?void 0:a.ownerDocument.getElementById(o):a==null?void 0:a.form;if(C instanceof HTMLFormElement){const E=ll(()=>y(O.current),"reset");
474return C.addEventListener("reset",E),()=>C.removeEventListener("reset",E)}},[a,o,y]),c.jsx(Yt.button,{type:"button",role:"switch","aria-checked":h,"aria-required":g,"data-state":kT(h),"data-disabled":f?"":void 0,disabled:f,value:u,...r,ref:P,onClick:Ft(n,C=>{j(),y(E=>!E),_&&S&&(w.current=C.isPropagationStopped(),w.current||C.stopPropagation())})})},"SwitchTrigger")),W8=k.forwardRef(ll(function(t,n){const{__scopeSwitch:r,name:i,checked:a,defaultChecked:o,required:u,disabled:f,value:h,onCheckedChange:g,form:p,...y}=t;return c.jsx(V8,{__scopeSwitch:r,checked:a,defaultChecked:o,disabled:f,required:u,onCheckedChange:g,name:i,form:p,value:h,internal_do_not_use_render:({isFormControl:w})=>c.jsxs(c.Fragment,{children:[c.jsx(y0e,{...y,ref:n,__scopeSwitch:r}),w&&c.jsx(_0e,{__scopeSwitch:r})]})})},"Switch")),x0e="SwitchThumb",b0e=k.forwardRef(ll(function(t,n){const{__scopeSwitch:r,...i}=t,a=TT(x0e,r);return c.jsx(Yt.span,{"data-state":kT(a.checked),"data-disabled":a.disabled?"":void 0,...i,ref:n})},"SwitchThumb")),w0e="SwitchBubbleInput",_0e=k.forwardRef(ll(function({__scopeSwitch:t,onClick:n,...r},i){const{control:a,hasConsumerStoppedPropagationRef:o,userInteractionCount:u,checked:f,defaultChecked:h,required:g,disabled:p,name:y,value:w,form:j,bubbleInput:S,setBubbleInput:_}=TT(w0e,t),P=Ut(i,_),O=_T(a),C=k.useRef(!1),E=k.useRef(f),T=k.useRef(u);k.useEffect(()=>{const I=S;if(!I)return;const $=window.HTMLInputElement.prototype,Y=Object.getOwnPropertyDescriptor($,"checked").set,V=u!==T.current;T.current=u;const q=E.current!==f;E.current=f;const G=!(V&&o.current);if(q&&Y){C.current=!V;const Q=new Event("click",{bubbles:G});Y.call(I,f),I.dispatchEvent(Q),C.current=!1}},[S,f,o,u]);const M=k.useRef(f);return c.jsx(Yt.input,{type:"checkbox","aria-hidden":!0,defaultChecked:h??M.current,required:g,disabled:p,name:y,value:w,form:j,...r,tabIndex:-1,ref:P,onClick:Ft(n,I=>{C.current&&I.stopPropagation()}),style:{...r.style,...O,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})},"SwitchBubbleInput"));function U8(e){return typeof e=="function"}ll(U8,"isFunction");function kT(e){return e?"checked":"unchecked"}ll(kT,"getState");const H8=k.forwardRef(({className:e,...t},n)=>c.jsx(W8,{className:Ht("peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",e),...t,ref:n,children:c.jsx(b0e,{className:Ht("pointer-events-none block h-4 w-4 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0")})}));H8.displayName=W8.displayName;var S0e=Object.defineProperty,j0e=(e,t)=>S0e(e,"name",{value:t,configurable:!0}),P0e=k.forwardRef(j0e(function(t,n){return c.jsx(Yt.label,{...t,ref:n,onMouseDown:r=>{var a;r.target.closest("button, input, select, textarea")||((a=t.onMouseDown)==null||a.call(t,r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}})},"Label")),G8=P0e;const N0e=Py("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),$t=k.forwardRef(({className:e,...t},n)=>c.jsx(G8,{ref:n,className:Ht(N0e(),e),...t}));$t.displayName=G8.displayName;const A0e=[{key:"q1_why_coach",label:"Q1: What inspired you to become an archery coach?"},{key:"q2_proudest_moment",label:"Q2: What is your proudest coaching moment?"},{key:"q3_coaching_style",label:"Q3: How would you describe your coaching style and philosophy?"},{key:"q4_biggest_challenge",label:"Q4: What's the biggest challenge you help athletes overcome?"},{key:"q5_advice",label:"Q5: What advice would you give to someone considering becoming a coach?"}],T0e=["Level 1 Instructor","Level 2 Instructor","Level 3 Coach","Level 3 NTS Coach","Level 4 Coach","Level 4 NTS Coach","Level 5 Coach"];function k0e(){const[e,t]=k.useState({name:"",certification_level:"",city:"",club_or_range:"",specialties:"",years_coaching:"",achievements:"",contact_email:"",bio:"",accepts_new_students:!0,nominator_name:"",nominator_email:"",q1_why_coach:"",q2_proude
474st_moment:"",q3_coaching_style:"",q4_biggest_challenge:"",q5_advice:"",video_url:"",video_question_number:"",photo_url:""}),[n,r]=k.useState(!1),[i,a]=k.useState(""),[o,u]=k.useState(!1),f=(g,p)=>t(y=>({...y,[g]:p})),h=async g=>{g.preventDefault(),r(!0),a("");try{await Gp("New Coach Spotlight Nomination: "+e.name,{...e,"Nominated by":e.nominator_name},e.contact_email),u(!0)}catch(p){a(p.message)}finally{r(!1)}};return o?c.jsxs("div",{className:"min-h-screen bg-[#060d1f]",children:[c.jsx("div",{className:"bg-[#02060f] pt-16 pb-20 border-b border-white/10",children:c.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:c.jsx("h1",{className:"text-4xl font-black text-white uppercase tracking-tight",children:"Nominate a Coach"})})}),c.jsx("div",{className:"max-w-2xl mx-auto px-4 py-12",children:c.jsxs(Ue.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},className:"bg-green-500/10 border border-green-500/30 rounded-xl p-8 text-center",children:[c.jsx(hd,{className:"w-12 h-12 text-green-400 mx-auto mb-3"}),c.jsx("h2",{className:"text-xl font-black text-white mb-2",children:"Nomination Submitted!"}),c.jsx("p",{className:"text-gray-400",children:"Thank you for nominating this coach. The TSAA board will review and reach out."})]})})]}):c.jsxs("div",{className:"min-h-screen bg-[#060d1f]",children:[c.jsx("div",{className:"bg-[#02060f] pt-16 pb-20 border-b border-white/10",children:c.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:[c.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[c.jsx(qr,{className:"w-5 h-5 text-[#00d4ff]"}),c.jsx("span",{className:"text-[#00d4ff] text-xs font-black uppercase tracking-widest",children:"Coach Spotlight"})]}),c.jsx("h1",{className:"text-4xl lg:text-5xl font-black text-white uppercase tracking-tight",children:"Nominate a Coach"}),c.jsx("p",{className:"text-gray-400 mt-3 max-w-xl",children:"Know a coach who's making a difference in Texas archery? Nominate them for our Coach Spotlight."})]})}),c.jsx("div",{className:"max-w-2xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:c.jsxs("form",{onSubmit:h,className:"bg-[#0d1830] border border-white/10 rounded-xl p-8 space-y-6",children:[c.jsxs("div",{className:"border-b border-white/10 pb-6",children:[c.jsx("h3",{className:"text-sm font-black text-[#00d4ff] uppercase tracking-widest mb-4",children:"Your Information"}),c.jsxs("div",{className:"grid md:grid-cols-2 gap-4",children:[c.jsxs("div",{children:[c.jsx($t,{className:"text-white text-sm font-black mb-2 block",children:"Your Name *"}),c.jsx(Et,{required:!0,value:e.nominator_name,onChange:g=>f("nominator_name",g.target.value),className:"bg-[#060d1f] border-white/10 text-white",placeholder:"Your name"})]}),c.jsxs("div",{children:[c.jsx($t,{className:"text-white text-sm font-black mb-2 block",children:"Your Email *"}),c.jsx(Et,{required:!0,type:"email",value:e.nominator_email,onChange:g=>f("nominator_email",g.target.value),className:"bg-[#060d1f] border-white/10 text-white",placeholder:"[email protected]"})]})]})]}),c.jsxs("div",{className:"border-b border-white/10 pb-6",children:[c.jsx("h3",{className:"text-sm font-black text-[#00d4ff] uppercase tracking-widest mb-4",children:"Coach Information"}),c.jsxs("div",{className:"space-y-4",children:[c.jsxs("div",{className:"grid md:grid-cols-2 gap-4",children:[c.jsxs("div",{children:[c.jsx($t,{className:"text-white text-sm font-black mb-2 block",children:"Coach Name *"}),c.jsx(Et,{required:!0,value:e.name,onChange:g=>f("name",g.target.value),className:"bg-[#060d1f] border-white/10 text-white",placeholder:"Full name"})]}),c.jsxs("div",{children:[c.jsx($t,{className:"text-white text-sm font-black mb-2 block",children:"Certification Level *"}),c.jsxs(Op,{value:e.certification_level,onValueChange:g=>f("certification_level",g),children:[c.jsx(Wd,{className:"bg-[#060d1f] border-white/10 text-white mt-0",children:c.jsx(Ep,{placeholder:"Select level"})}),c.jsx(Ud,{children:T0e.map(g=>c.jsx(er,{value:g,children:g},g))})]})]})]}),c.jsxs("div",{className:"grid md:grid-cols-2 gap-4",children:[c.jsxs("div",{children:[c.jsx($t,{className:"text-white text-sm font-black mb-2 block",children:"City *"}),c.jsx(Et,{required:!0,value:e.city,onChange:g=>f("city",g.target.value),className:"bg-[#060d1f] border-white/10 text-white",placeholder:"City, TX"})]}),c.jsxs("div",{children:[c.jsx($t,{className:"text-white text-sm font-black mb-2 block",children:"Club / Range"}),c.jsx(Et,{value:e.club_or_range,onChange:g=>f("club_or_range",g.target.value),className:"bg-[#060d1f] border-white/10 text-white",placeholder:"Club or range name"})]})]}),c.jsxs("div",{className:"grid md:grid-cols-2 gap-4",children:[c.jsxs("div",{children:[c.jsx($t,{className:"text-white text-sm font-black mb-2 block",children:"Specialties"}),c.jsx(Et,{value:e.specialties,onChange:g=>f("specialties",g.target.value),className:"bg-[#060d1f] border-white/10 text-white",placeholder:"Recurve, Youth, Compound..."})]}),c.jsxs("div",{children:[c.jsx($t,{className:"text-white text-sm font-black mb-2 block",children:"Years Coaching"}),c.jsx(Et,{type:"number",value:e.years_coaching,onChange:g=>f("years_coaching",g.target.value),className:"bg-[#060d1f] border-white/10 text-white",placeholder:"e.g. 10"})]})]}),c.jsxs("div",{children:[c.jsx($t,{className:"text-white text-sm font-black mb-2 block",children:"Contact Email"}),c.jsx(Et,{type:"email",value:e.contact_email,onChange:g=>f("contact_email",g.target.value),className:"bg-[#060d1f] border-white/10 text-white",placeholder:"[email protected]"})]}),c.jsxs("div",{children:[c.jsx($t,{className:"text-white text-sm font-black mb-2 block",children:"Bio / Backgroun
474d"}),c.jsx(Fr,{value:e.bio,onChange:g=>f("bio",g.target.value),className:"bg-[#060d1f] border-white/10 text-white h-24",placeholder:"Tell us about this coach's background..."})]}),c.jsxs("div",{children:[c.jsx($t,{className:"text-white text-sm font-black mb-2 block",children:"Notable Achievements"}),c.jsx(Fr,{value:e.achievements,onChange:g=>f("achievements",g.target.value),className:"bg-[#060d1f] border-white/10 text-white h-20",placeholder:"Awards, championships coached, etc."})]}),c.jsxs("div",{children:[c.jsx($t,{className:"text-white text-sm font-black mb-2 block",children:"Coach Photo Link"}),c.jsx(Et,{type:"url",value:e.photo_url,onChange:g=>f("photo_url",g.target.value),className:"bg-[#060d1f] border-white/10 text-white",placeholder:"Paste a link to the photo (Google Drive, Dropbox, etc.)"})]}),c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(H8,{checked:e.accepts_new_students,onCheckedChange:g=>f("accepts_new_students",g)}),c.jsx($t,{className:"text-white text-sm",children:"Currently accepting new students"})]})]})]}),c.jsxs("div",{className:"border-b border-white/10 pb-6",children:[c.jsx("h3",{className:"text-sm font-black text-[#00d4ff] uppercase tracking-widest mb-2",children:"Spotlight Questions"}),c.jsx("p",{className:"text-xs text-gray-400 mb-4",children:"Have the coach answer all 5 questions. They can also submit a short video response for one question of their choice."}),c.jsx("div",{className:"space-y-5",children:A0e.map((g,p)=>c.jsxs("div",{children:[c.jsxs($t,{className:"text-white text-sm font-black mb-2 block",children:[g.label," *"]}),c.jsx(Fr,{required:!0,value:e[g.key],onChange:y=>f(g.key,y.target.value),className:"bg-[#060d1f] border-white/10 text-white h-24",placeholder:"Answer..."})]},g.key))})]}),c.jsxs("div",{className:"pb-2",children:[c.jsx("h3",{className:"text-sm font-black text-[#00d4ff] uppercase tracking-widest mb-2",children:"Video Response (Optional)"}),c.jsx("p",{className:"text-xs text-gray-400 mb-4",children:"Upload a short video (1-3 min) of the coach answering one of the 5 questions above."}),c.jsxs("div",{className:"grid md:grid-cols-2 gap-4 items-end",children:[c.jsxs("div",{children:[c.jsx($t,{className:"text-white text-sm font-black mb-2 block",children:"Which question is the video for?"}),c.jsxs(Op,{value:e.video_question_number?String(e.video_question_number):"",onValueChange:g=>f("video_question_number",g),children:[c.jsx(Wd,{className:"bg-[#060d1f] border-white/10 text-white",children:c.jsx(Ep,{placeholder:"Select question"})}),c.jsx(Ud,{children:[1,2,3,4,5].map(g=>c.jsxs(er,{value:String(g),children:["Question ",g]},g))})]})]}),c.jsxs("div",{children:[c.jsx($t,{className:"text-white text-sm font-black mb-2 block",children:"Video Answer Link"}),c.jsx(Et,{type:"url",value:e.video_url,onChange:g=>f("video_url",g.target.value),className:"bg-[#060d1f] border-white/10 text-white",placeholder:"Paste a YouTube, Google Drive or Dropbox link"})]})]})]}),c.jsx(Hp,{type:"submit",disabled:n||!e.name||!e.certification_level||!e.city,className:"w-full bg-[#00d4ff] hover:bg-[#00bfe8] text-[#060d1f] font-black text-sm",children:n?"Submitting...":"Submit Coach Nomination"})]})})]})}const C0e=["What inspired you to become an archery coach?","What is your proudest coaching moment?","How would you describe your coaching style?","What's the biggest challenge you help athletes overcome?","What advice would you give to someone considering becoming a coach?"],O0e=["q1_why_coach","q2_proudest_moment","q3_coaching_style","q4_biggest_challenge","q5_advice"];function E0e(){const[e,t]=k.useState(null),{data:n=[],isLoading:r}=an({queryKey:["featured-coaches"],queryFn:()=>on.entities.CoachProfile.filter({published:!0},"-feature_date",50),initialData:[]});return c.jsxs("div",{className:"min-h-screen bg-[#060d1f]",children:[c.jsx("div",{className:"bg-[#02060f] pt-16 pb-20 border-b border-white/10",children:c.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[c.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[c.jsx(qr,{className:"w-5 h-5 text-[#00d4ff]"}),c.jsx("span",{className:"text-[#00d4ff] text-xs font-black uppercase tracking-widest",children:"Spotlight"})]}),c.jsx("h1",{className:"text-4xl lg:text-6xl font-black text-white uppercase tracking-tight",children:"Coach Spotlight"}),c.jsx("p",{className:"text-gray-400 mt-3 max-w-xl",children:"Meet the coaches shaping the future of Texas archery."})]})}),c.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[r?c.jsx("div",{className:"grid md:grid-cols-2 gap-8",children:[1,2,3,4].map(i=>c.jsx("div",{className:"h-96 bg-white/5 rounded-xl animate-pulse"},i))}):n.length===0?c.jsxs("div",{className:"text-center py-16",children:[c.jsx(qr,{className:"w-12 h-12 text-white/20 mx-auto mb-3"}),c.jsx("p",{className:"text-gray-500 text-lg",children:"No featured coaches yet."}),c.jsx(Je,{to:Xe("NominateCoach"),className:"text-[#00d4ff] font-medium hover:underline mt-3 inline-block",children:"Nominate a coach →"})]}):c.jsx("div",{className:"space-y-8",children:n.map((i,a)=>{const o=e===i.id;return c.jsx(Ue.div,{initial:{opacity:0,y:20}
474,animate:{opacity:1,y:0},transition:{delay:a*.1},className:"bg-[#0d1830] border border-white/10 rounded-xl overflow-hidden hover:border-[#00d4ff]/30 transition-all",children:c.jsxs("div",{className:"md:flex",children:[c.jsx("div",{className:"md:w-64 flex-shrink-0",children:i.photo_url?c.jsx("img",{src:i.photo_url,alt:i.name,className:"w-full h-48 md:h-full object-cover"}):c.jsx("div",{className:"w-full h-48 md:h-full bg-gradient-to-br from-[#00d4ff]/20 to-[#d4a843]/20 flex items-center justify-center",children:c.jsx(qr,{className:"w-12 h-12 text-white/20"})})}),c.jsxs("div",{className:"p-6 flex-1",children:[c.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[c.jsx("span",{className:"text-xs font-black uppercase tracking-widest text-[#00d4ff]",children:i.certification_level}),i.feature_date&&c.jsxs("span",{className:"text-xs text-gray-500",children:["• Featured ",hn(new Date(i.feature_date),"MMMM yyyy")]})]}),c.jsx("h3",{className:"text-2xl font-black text-white mb-1",children:i.name}),c.jsxs("div",{className:"flex flex-wrap items-center gap-3 text-xs text-gray-400 mb-3",children:[c.jsxs("span",{className:"flex items-center gap-1",children:[c.jsx(Wr,{className:"w-3 h-3"}),i.city]}),i.club_or_range&&c.jsxs("span",{children:["• ",i.club_or_range]}),i.years_coaching&&c.jsxs("span",{children:["• ",i.years_coaching," yrs coaching"]}),i.specialties&&c.jsxs("span",{children:["• ",i.specialties]})]}),i.bio&&c.jsx("p",{className:"text-sm text-gray-400 mb-4 line-clamp-2",children:i.bio}),c.jsx("button",{onClick:()=>t(o?null:i.id),className:"text-xs font-black uppercase tracking-wider text-[#00d4ff] hover:text-[#00bfe8] transition-colors",children:o?"Hide Q&A ▲":"Read Q&A ▼"}),o&&c.jsxs(Ue.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},className:"mt-4 space-y-4 border-t border-white/10 pt-4",children:[C0e.map((u,f)=>{const h=i[O0e[f]];if(!h)return null;const g=i.video_url&&i.video_question_number===f+1;return c.jsxs("div",{children:[c.jsxs("p",{className:"text-xs font-black text-[#d4a843] uppercase tracking-wider mb-1",children:["Q",f+1,": ",u]}),c.jsx("p",{className:"text-sm text-gray-300 leading-relaxed",children:h}),g&&c.jsx("div",{className:"mt-2",children:c.jsx("video",{src:i.video_url,controls:!0,className:"rounded-lg max-h-64 w-full max-w-md"})})]},f)}),i.achievements&&c.jsxs("div",{children:[c.jsx("p",{className:"text-xs font-black text-[#d4a843] uppercase tracking-wider mb-1",children:"Achievements"}),c.jsx("p",{className:"text-sm text-gray-300",children:i.achievements})]})]})]})]})},i.id)})}),c.jsx("div",{className:"mt-12 text-center",children:c.jsxs(Je,{to:Xe("NominateCoach"),className:"inline-flex items-center gap-2 px-6 py-3 bg-[#00d4ff]/10 border border-[#00d4ff]/30 rounded-lg text-[#00d4ff] font-black uppercase tracking-wider hover:bg-[#00d4ff]/20 transition-colors",children:["Nominate a Coach ",c.jsx(Ln,{className:"w-4 h-4"})]})})]})]})}const M0e={Candidate:"bg-gray-100 text-gray-700",Apprentice:"bg-blue-100 text-blue-800",Certified:"bg-green-100 text-green-800",National:"bg-amber-100 text-amber-800",Continental:"bg-purple-100 text-purple-800",International:"bg-red-100 text-red-800"};function R0e({judge:e}){var t;return c.jsx("div",{className:"bg-white rounded-xl border border-gray-100 shadow-sm hover:shadow-md transition-all overflow-hidden",children:c.jsxs("div",{className:"flex items-start gap-4 p-5",children:[e.photo_url?c.jsx("img",{src:e.photo_url,alt:e.name,className:"w-16 h-16 rounded-xl object-cover flex-shrink-0"}):c.jsx("div",{className:"w-16 h-16 rounded-xl bg-[#1a2744] flex items-center justify-center flex-shrink-0",children:c.jsx("span",{className:"text-white font-bold text-xl",children:(t=e.name)==null?void 0:t.charAt(0)})}),c.jsxs("div",{className:"flex-1 min-w-0",children:[c.jsx("h3",{className:"font-bold text-[#1a2744] text-lg",children:e.name}),c.jsx(cv,{className:`${M0e[e.certification_level]||"bg-gray-100 text-gray-700"} text-[11px] mt-1`,children:e.certification_level}),c.jsxs("div",{className:"flex flex-wrap items-center gap-3 mt-2 text-sm text-gray-500",children:[c.jsxs("span",{className:"flex items-center gap-1",children:[c.jsx(Wr,{className:"w-3.5 h-3.5"}),e.city]}),e.years_judging&&c.jsxs("span",{className:"flex items-center gap-1",children:[c.jsx(Rh,{className:"w-3.5 h-3.5"}),e.years_judging," yrs"]})]}),e.specialties&&c.jsx("p",{className:"text-xs text-gray-400 mt-1",children:e.specialties}),e.bio&&c.jsx("p",{className:"text-sm text-gray-600 mt-2 line-clamp-2",children:e.bio}),e.contact_email&&c.jsxs("a",{href:`mailto:${e.contact_email}`,className:"inline-flex items-center gap-1 text-xs text-[#00d4ff] hover:underline mt-2",children:[c.jsx(rr,{className:"w-3 h-3"})," ",e.contact_email]})]})]})})}const D0e=[{title:"1. Learn the Rules",desc:"Study the USA Archery and World Archery rulebooks. Familiarize yourself with competition formats, scoring, and safety protocols."},{title:"2. Attend a Judge Seminar",desc:"USA Archery offers Judge Candidate seminars — typically a weekend course covering rules, practical exercises, and a written exam."},{title:"3. Pass the Written Exam",desc:"Score 80% or higher on the USA Archery Judge Candidate exam to earn your initial certification."},{title:"4. Gain Field Experience",desc:"Work as a Candidate Judge at sanctioned events. You'll be mentored by experienced judges as you learn the practical side."},{title:"5. Advance Your Certification",desc:"Progress through Apprentice → Certified → National levels by accumulating event experience and passing advanced exams."},{title:"6. Stay Current",desc:"Maintain your certification through continuing education, attending annual seminars, and judging a minimum number of events per year."}];function I0e(){return c.jsx("div",{className:"space-y-4",children:D0e.map(e=>c.jsxs("div",{className:"flex gap-3",children:[c.jsx(Ay,{className:"w-5 h-5 text-[#00d4ff] flex-shrink-0 mt-0.5"}),c.jsxs("div",{children:[c.jsx("h4",{className:"font-bold text-[#1a2744] text-sm",children:e.title}),c.jsx("p",{className:"text-sm text-gray-600 mt-0.5",children:e.desc})]})]},e.title))})}function L0e(){const[e,t]=k.useState({applicant_name:"",email:"",city:"",phone:"",current_level:"None",target_level:"",experience_summary:"",why_apply:"",events_willing_to_judge:""}),[n,r]=k.useState(!1),[i,a]=k.useState(!1),[o,u]=k.useState(""),f=async g=>{g.preventDefault(),r(!0),u("");try{await Gp(`New Judge Scholarship Application: ${e.applicant_name}`,{Name:e.applicant_name,email:e.email,Phone:e.phone||"Not provided",City:e.city,"Current level":e.current_level,"Target level":e.target_level,"Events willing to judge":e.events_willing_to_judge,"Experience summary":e.experience_summary,"Why they want to become a judge":e.why_apply},e.email),a(!0)}catch(p){u(p.message)}finally{r(!1)}};if(i)return c.jsxs("div",{className:"text-center py-12",children:[c.jsx(Ay,{className:"w-12 h-12 text-green-500 mx-auto mb-4"}),c.jsx("h3",{className:"text-xl font-bold text-[#1a2744]",children:"Application Submitted!"}),c.jsx("p",{className:"text-gray-600 mt-2",children:"The TSAA board 
474will review your application and contact you."})]});const h=g=>p=>{var y;return t({...e,[g]:((y=p==null?void 0:p.target)==null?void 0:y.value)??p})};return c.jsxs("form",{onSubmit:f,className:"space-y-4",children:[c.jsxs("div",{className:"bg-blue-50 border border-blue-200 rounded-lg p-4 text-sm text-blue-900",children:[c.jsx("p",{className:"font-semibold mb-1",children:"What this scholarship covers:"}),c.jsxs("p",{children:["TSAA will cover ",c.jsx("strong",{children:"certification fees and study materials"})," for approved applicants. Applicants are responsible for their own ",c.jsx("strong",{children:"travel expenses"})," to and from certification courses and judging assignments."]})]}),c.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[c.jsxs("div",{children:[c.jsx($t,{children:"Full Name *"}),c.jsx(Et,{value:e.applicant_name,onChange:h("applicant_name"),required:!0})]}),c.jsxs("div",{children:[c.jsx($t,{children:"Email *"}),c.jsx(Et,{type:"email",value:e.email,onChange:h("email"),required:!0})]}),c.jsxs("div",{children:[c.jsx($t,{children:"City *"}),c.jsx(Et,{value:e.city,onChange:h("city"),required:!0})]}),c.jsxs("div",{children:[c.jsx($t,{children:"Phone"}),c.jsx(Et,{value:e.phone,onChange:h("phone")})]}),c.jsxs("div",{children:[c.jsx($t,{children:"Current Certification Level"}),c.jsxs(Op,{value:e.current_level,onValueChange:g=>t({...e,current_level:g}),children:[c.jsx(Wd,{children:c.jsx(Ep,{})}),c.jsxs(Ud,{children:[c.jsx(er,{value:"None",children:"None"}),c.jsx(er,{value:"Candidate",children:"Candidate"}),c.jsx(er,{value:"Apprentice",children:"Apprentice"}),c.jsx(er,{value:"Certified",children:"Certified"})]})]})]}),c.jsxs("div",{children:[c.jsx($t,{children:"Certification Level Seeking *"}),c.jsxs(Op,{value:e.target_level,onValueChange:g=>t({...e,target_level:g}),children:[c.jsx(Wd,{children:c.jsx(Ep,{placeholder:"Select level"})}),c.jsxs(Ud,{children:[c.jsx(er,{value:"Candidate",children:"Candidate"}),c.jsx(er,{value:"Apprentice",children:"Apprentice"}),c.jsx(er,{value:"Certified",children:"Certified"}),c.jsx(er,{value:"National",children:"National"})]})]})]})]}),c.jsxs("div",{children:[c.jsx($t,{children:"Archery / Judging Experience"}),c.jsx(Fr,{value:e.experience_summary,onChange:h("experience_summary"),placeholder:"Describe your archery background and any judging experience...",rows:3})]}),c.jsxs("div",{children:[c.jsx($t,{children:"Why do you want to become a certified judge? *"}),c.jsx(Fr,{value:e.why_apply,onChange:h("why_apply"),required:!0,placeholder:"Tell us what motivates you...",rows:3})]}),c.jsxs("div",{children:[c.jsx($t,{children:"Events willing to judge per year"}),c.jsx(Et,{value:e.events_willing_to_judge,onChange:h("events_willing_to_judge"),placeholder:"e.g. 4-6 events including indoor and outdoor"})]}),o&&c.jsx("p",{className:"text-sm text-red-600",role:"alert",children:o}),c.jsx(Hp,{type:"submit",disabled:n||!e.target_level,className:"bg-[#d4a843] hover:bg-[#c49933] text-white w-full sm:w-auto",children:n?"Submitting...":"Submit Application"})]})}const $0e=[{key:"roster",label:"Texas Judges",icon:qr},{key:"become",label:"Become a Judge",icon:jV},{key:"scholarship",label:"Scholarship",icon:ko}];function B0e(){const[e,t]=k.useState("roster"),{data:n=[],isLoading:r}=an({queryKey:["judges-published"],queryFn:()=>on.entities.Judge.filter({published:!0},"name")});return c.jsxs("div",{className:"min-h-screen bg-gray-50",children:[c.jsxs("div",{className:"bg-[#1a2744] relative overflow-hidden",children:[c.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-[#00d4ff]/10 to-transparent"}),c.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-16 lg:py-24 relative",children:[c.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[c.jsx(IS,{className:"w-8 h-8 text-[#00d4ff]"}),c.jsx("span",{className:"text-[#00d4ff] text-sm font-bold uppercase tracking-widest",children:"Judges Hub"})]}),c.jsx("h1",{className:"text-4xl lg:text-6xl font-black text-white tracking-tight",children:"On the Line"}),c.jsx("p",{className:"text-gray-400 text-lg mt-4 max-w-2xl",children:"The backbone of fair competition. Meet Texas judges, learn how to join their ranks, and apply for a TSAA credentialing scholarship."})]})]}),c.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 -mt-6 relative z-10",children:[c.jsx("div",{className:"bg-white rounded-xl shadow-lg border border-gray-200 p-1.5 flex gap-1 mb-8",children:$0e.map(i=>c.jsxs("button",{onClick:()=>t(i.key),className:`flex items-center gap-2 px-4 py-2.5 rounded-lg text-sm font-semibold transition-all flex-1 justify-center ${e===i.key?"bg-[#1a2744] text-white":"text-gray-500 hover:bg-gray-50"}`,children:[c.jsx(i.icon,{className:"w-4 h-4"}),c.jsx("span",{className:"hidden sm:inline",children:i.label})]},i.key))}),e==="roster"&&c.jsxs(Ue.div,{initial:{opacity:0}
474,animate:{opacity:1},children:[c.jsxs("div",{className:"mb-6",children:[c.jsx("h2",{className:"text-2xl font-bold text-[#1a2744]",children:"Texas Judges Roster"}),c.jsx("p",{className:"text-gray-500 mt-1",children:"Certified judges serving the Texas archery community."})]}),r?c.jsx("div",{className:"flex justify-center py-16",children:c.jsx("div",{className:"w-8 h-8 border-2 border-gray-300 border-t-[#1a2744] rounded-full animate-spin"})}):n.length===0?c.jsxs("div",{className:"text-center py-16 bg-white rounded-xl border border-gray-100",children:[c.jsx(IS,{className:"w-10 h-10 text-gray-300 mx-auto mb-3"}),c.jsx("p",{className:"text-gray-400",children:"Judge roster coming soon."})]}):c.jsx("div",{className:"grid gap-4 sm:grid-cols-2 lg:grid-cols-3",children:n.map(i=>c.jsx(R0e,{judge:i},i.id))})]}),e==="become"&&c.jsx(Ue.div,{initial:{opacity:0},animate:{opacity:1},children:c.jsx("div",{className:"bg-white rounded-xl border border-gray-100 shadow-sm overflow-hidden",children:c.jsxs("div",{className:"p-6 lg:p-8",children:[c.jsx("h2",{className:"text-2xl font-bold text-[#1a2744] mb-2",children:"How to Become a Judge"}),c.jsx("p",{className:"text-gray-500 mb-6",children:"Judges are essential to every tournament. Here's the path to earning your USA Archery Judge certification."}),c.jsx(I0e,{}),c.jsxs("div",{className:"mt-8 bg-[#1a2744]/5 rounded-xl p-6",children:[c.jsx("h3",{className:"font-bold text-[#1a2744] mb-2",children:"Ready to get started?"}),c.jsxs("p",{className:"text-sm text-gray-600 mb-4",children:["Visit ",c.jsx("a",{href:"https://www.usarchery.org/officials/become-a-judge",target:"_blank",rel:"noopener noreferrer",className:"text-[#00d4ff] hover:underline font-medium",children:"USA Archery's Officials page"})," for seminar schedules, or apply for a TSAA scholarship below to help cover your credentialing costs."]}),c.jsxs("button",{onClick:()=>t("scholarship"),className:"inline-flex items-center gap-1 text-sm font-bold text-[#d4a843] hover:text-[#c49933] transition-colors",children:["Apply for a Scholarship ",c.jsx(a3,{className:"w-4 h-4"})]})]})]})})}),e==="scholarship"&&c.jsx(Ue.div,{initial:{opacity:0}
474,animate:{opacity:1},children:c.jsx("div",{className:"bg-white rounded-xl border border-gray-100 shadow-sm overflow-hidden",children:c.jsxs("div",{className:"p-6 lg:p-8",children:[c.jsx("h2",{className:"text-2xl font-bold text-[#1a2744] mb-2",children:"Judge Credentialing Scholarship"}),c.jsx("p",{className:"text-gray-500 mb-6",children:"TSAA offers scholarships to help cover the costs of USA Archery judge certification — including seminar fees and materials. Fill out the form below to apply."}),c.jsx(L0e,{})]})})})]}),c.jsx("div",{className:"h-16"})]})}function F0e(){const e=[{icon:Dh,text:"JOAD Programs (Junior Olympic Archer Development) for youth ages 8–20"},{icon:ko,text:"USA Archery certified coaches and instructors in your area"},{icon:Wr,text:"Local archery clubs and ranges across Texas"},{icon:qr,text:"Beginner-friendly learn-to-shoot clinics"},{icon:jh,text:"Competitive programs for recurve, compound, barebow, and traditional archers"}];return c.jsxs("div",{className:"min-h-screen bg-[#060d1f]",children:[c.jsx(gi,{title:"Find Archery Classes, Clubs & Coaches in Texas | TSAA",description:"Looking for ar
474chery in Texas? TSAA connects beginners and competitors with certified coaches, JOAD clubs, and archery programs across the state."}),c.jsx("div",{className:"bg-[#02060f] pt-16 pb-20 border-b border-white/10",children:c.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:[c.jsxs("div",{className:"flex items-center justify-center gap-3 mb-4",children:[c.jsx("div",{className:"h-1 w-10 bg-[#00d4ff] rounded-full"}),c.jsx("span",{className:"text-[#00d4ff] text-xs font-black uppercase tracking-widest",children:"Get Started"}),c.jsx("div",{className:"h-1 w-10 bg-[#00d4ff] rounded-full"})]}),c.jsxs("h1",{className:"text-4xl lg:text-6xl font-black text-white uppercase tracking-tight mb-4",children:["Find Archery ",c.jsx("span",{className:"text-[#00d4ff]",children:"in Texas"})]}),c.jsx("p",{className:"text-xl text-gray-400 font-bold",children:"Your first arrow starts here."})]})}),c.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-16",children:c.jsxs(Ue.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},children:[c.jsx("p",{className:"text-gray-300 text-base leading-relaxed mb-10",children:"Texas is home to one of the most active archery communities in the country — and TSAA is at the center of it. Whether you're a parent looking for youth archery programs, an adult picking up a bow for the first time, or a seasoned competitor searching for your next club, we can connect you with certified coaches and sanctioned programs across the state."}),c.jsx("h2",{className:"text-2xl font-black text-white uppercase tracking-tight mb-6",children:"What We Can Help You Find"}),c.jsx("div",{className:"space-y-4 mb-10",children:e.map((t,n)=>c.jsxs(Ue.div,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{delay:n*.1},className:"flex items-start gap-4 bg-[#0d1830] border border-white/10 rounded-xl p-5",children:[c.jsx("div",{className:"w-10 h-10 rounded-lg bg-[#00d4ff]/10 flex items-center justify-center flex-shrink-0",children:c.jsx(t.icon,{className:"w-5 h-5 text-[#00d4ff]"})}),c.jsx("p",{className:"text-gray-300 text-sm leading-relaxed pt-2",children:t.text})]},n))}),c.jsxs("p",{className:"text-gray-400 text-base leading-relaxed mb-10",children:["Texas archery has something for everyone. Browse our"," ",c.jsx(Je,{to:Xe("CoachesCorner"),className:"text-[#00d4ff] hover:underline font-bold",children:"coach and club directory"})," ","or contact TSAA directly to get started."]}),c.jsx("div",{className:"text-center",children:c.jsxs(Je,{to:Xe("Contact"),className:"inline-flex items-center gap-2 px-8 py-4 bg-[#00d4ff] text-[#060d1f] rounded-lg font-black text-sm uppercase tracking-wider hover:bg-[#00bfe8] transition-all group",children:["Contact TSAA to Get Started",c.jsx(Ln,{className:"w-4 h-4 group-hover:translate-x-1 transition-transform"})]})})]})})]})}const z0e=["Introductions — presenter and participants","Brief judging overview — philosophy and goals","Judging resources","Judge uniform & equipment","Assignments, compensation, expenses & expectations","How to be a successful judge","Venue inspection","Equipment inspection & dress code","Arrow calling, calipers & target face assessment","Line judging responsibilities","Elimination rounds & preparing archers","Simultaneous team rounds","Common shooting mistakes & consequences","Indoor & outdoor scoring basics","Appeals","Case studies, discussion & Q&A"],q0e="https://eyesonscore.com/archer-registration-form/Zjk5RGthenVsekszaTF5cW5vbnZWUT09";function V0e(){return c.jsxs("div",{className:"min-h-screen bg-[#060d1f] text-white",children:[c.jsxs("section",{className:"relative bg-gradient-to-br from-[#101C29] via-[#0a1530] to-[#060d1f] py-20 lg:py-28",children:[c.jsx("div",{className:"absolute inset-0 bg-[url('https://images.unsplash.com/photo-1587118913840-802a9e724b1f?w=1600')] bg-cover bg-center opacity-10"}),c.jsxs("div",{className:"relative z-10 max-w-4xl mx-auto px-4 sm:px-6",children:[c.jsxs(Je,{to:Xe("Home"),className:"inline-flex items-center gap-2 text-[#00d4ff] text-sm font-bold uppercase tracking-wider mb-8 hover:underline",children:[c.jsx(Gd,{className:"w-4 h-4"})," Back to Home"]}),c.jsxs("h1",{className:"font-black text-4xl sm:text-5xl lg:text-6xl uppercase tracking-tight leading-[1.05] mb-4",children:["USA Archery",c.jsx("br",{}),c.jsx("span",{className:"text-[#E8A33D]",children:"Judge Seminar"})]}),c.jsx("p",{className:"text-lg sm:text-xl text-[#E8A33D] font-bold uppercase tracking-wider",children:"Saturday, November 7, 2026 · 8:00 AM – 4:30 PM · College Station, TX"})]})]}),c.jsxs("section",{className:"max-w-4xl mx-auto px-4 sm:px-6 py-12 lg:py-16 space-y-12",children:[c.jsxs("div",{className:"space-y-5 text-gray-300 text-lg leading-relaxed",children:[c.jsx("p",{children:"The Texas State Archery Association is proud to sponsor a judge seminar designed to support the successful certification, development, and continuing education of USA Archery Judges."}),c.jsx("p",{children:"The seminar is geared toward recently certified Level 1 and higher judges, officials seeking more hands-on experience applying rules and procedures, and judges who have not participated in a seminar in two or more years and would benefit from a refresher. It is also an excellent opportunity for individuals interested in becoming certified judges in the near future, as well as for athletes, parents, and coaches who want to build a stronger foundation in archery rules."}),c.jsx("p",{children:"Participants can expect valuable professional development, updates on recent rule changes, interactive scenario-based discu
474ssions, and opportunities to collaborate with fellow judges. The seminar is designed to build consistency and confidence while strengthening the practical application of rules and procedures on the field of play."}),c.jsx("p",{children:"Following the seminar, participants will also have the opportunity to shadow judges at the Aggie Invitational tournament, providing valuable hands-on experience and a chance to apply the knowledge and skills gained during the seminar in a live competition environment."})]}),c.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-6",children:[c.jsxs("div",{className:"bg-[#101C29] border border-white/10 rounded-xl p-6",children:[c.jsxs("div",{className:"flex items-center gap-2 text-[#E8A33D] text-xs font-bold uppercase tracking-widest mb-2",children:[c.jsx(c3,{className:"w-4 h-4"})," Presenter"]}),c.jsx("div",{className:"text-white text-2xl font-black",children:"Kristy Wapniarski"}),c.jsx("div",{className:"text-gray-400 text-sm mt-1",children:"Continental Judge · Level 3 National Judge · National Event Organizer"})]}),c.jsxs("div",{className:"bg-[#101C29] border border-white/10 rounded-xl p-6",children:[c.jsxs("div",{className:"flex items-center gap-2 text-[#E8A33D] text-xs font-bold uppercase tracking-widest mb-2",children:[c.jsx(gV,{className:"w-4 h-4"})," Registration"]}),c.jsx("div",{className:"text-white text-2xl font-black",children:"$50 per participant"}),c.jsx("div",{className:"text-gray-400 text-sm mt-1",children:"Register on Eyes on Score"}),c.jsx("div",{className:"text-[#E8A33D] text-sm font-bold mt-2",children:"⚠ Space is limited to the first 40 registrants"})]})]}),c.jsxs("a",{href:q0e,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-3 px-8 py-4 bg-[#E8A33D] text-[#101C29] rounded-lg font-black text-sm uppercase tracking-wider hover:bg-[#d4922e] transition-colors",children:["Register on Eyes on Score",c.jsx(fi,{className:"w-4 h-4"})]}),c.jsxs("div",{children:[c.jsx("h2",{className:"text-2xl font-black uppercase tracking-wider text-white mb-6",children:"Seminar Agenda Highlights"}),c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-x-8 gap-y-3",children:z0e.map((e,t)=>c.jsxs("div",{className:"flex items-baseline gap-3 border-b border-white/10 pb-3",children:[c.jsx("span",{className:"text-[#E8A33D] font-bold text-sm min-w-[24px]",children:String(t+1).padStart(2,"0")}),c.jsx("span",{className:"text-gray-300",children:e})]},t))})]})]})]})}const{Pages:K8,Layout:zL,mainPage:W0e}=f0e,Z8=W0e,U0e=K8[Z8],Xl=({children:e,currentPageName:t})=>zL?c.jsx(zL,{currentPageName:t,children:e}):c.jsx(c.Fragment,{children:e}),H0e=()=>c.jsxs(yZ,{children:[c.jsx(wo,{path:"/",element:c.jsx(Xl,{currentPageName:Z8,children:c.jsx(U0e,{})})}),Object.entries(K8).map(([e,t])=>c.jsx(wo,{path:`/${e}`,element:c.jsx(Xl,{currentPageName:e,children:c.jsx(t,{})})},e)),c.jsx(wo,{path:"/NominateCoach",element:c.jsx(Xl,{currentPageName:"NominateCoach",children:c.jsx(k0e,{})})}),c.jsx(wo,{path:"/FeaturedCoaches",element:c.jsx(Xl,{currentPageName:"FeaturedCoaches",children:c.jsx(E0e,{})})}),c.jsx(wo,{path:"/OnTheLine",element:c.jsx(Xl,{currentPageName:"OnTheLine",children:c.jsx(B0e,{})})}),c.jsx(wo,{path:"/FindArcheryInTexas",element:c.jsx(Xl,{currentPageName:"FindArcheryInTexas",children:c.jsx(F0e,{})})}),c.jsx(wo,{path:"/JudgeSeminar",element:c.jsx(Xl,{currentPageName:"JudgeSeminar",children:c.jsx(V0e,{})})}),c.jsx(wo,{path:"*",element:c.jsx(h0e,{})})]});function G0e(){return c.jsxs(LU,{client:ZU,children:[c.jsx(PZ,{children:c.jsx(H0e,{})}),c.jsx(uU,{})]})}Fq.createRoot(document.getElementById("root")).render(c.jsx(G0e,{}));

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.