vendor: 28,184 bytes, lines 1-9
1function t7(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const a in r)if(a!=="default"&&!(a in e)){const o=Object.getOwnPropertyDescriptor(r,a);o&&Object.defineProperty(e,a,o.get?o:{enumerable:!0,get:()=>r[a]})}}}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 a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const o of a)if(o.type==="childList")for(const l of o.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(a){const o={};return a.integrity&&(o.integrity=a.integrity),a.referrerPolicy&&(o.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?o.credentials="include":a.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(a){if(a.ep)return;a.ep=!0;const o=n(a);fetch(a.href,o)}})();var Dh=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ut(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Jy={exports:{}},yu={};/** 2 * @license React 3 * react-jsx-runtime.production.js 4 * 5 * Copyright (c) Meta Platforms, Inc. and 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 cj;function n7(){if(cj)return yu;cj=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,a,o){var l=null;if(o!==void 0&&(l=""+o),a.key!==void 0&&(l=""+a.key),"key"in a){o={};for(var c in a)c!=="key"&&(o[c]=a[c])}else o=a;return a=o.ref,{$$typeof:e,type:r,key:l,ref:a!==void 0?a:null,props:o}}return yu.Fragment=t,yu.jsx=n,yu.jsxs=n,yu}var uj;function r7(){return uj||(uj=1,Jy.exports=n7()),Jy.exports}var v=r7(),ds=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(){}},a7={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},i7=class{#t=a7;#e=!1;setTimeoutProvider(e){this.#t=e}setTimeout(e,t){return this.#t.setTimeout(e,t)}clearTimeout(e){this.#t.clearTimeout(e)}setInterval(e,t){return this.#t.setInterval(e,t)}clearInterval(e){this.#t.clearInterval(e)}},Vo=new i7;function o7(e){setTimeout(e,0)}var ts=typeof window>"u"||"Deno"in globalThis;function bn(){}function s7(e,t){return typeof e=="function"?e(t):e}function $w(e){return typeof e=="number"&&e>=0&&e!==1/0}function B4(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Ki(e,t){return typeof e=="function"?e(t):e}function Tr(e,t){return typeof e=="function"?e(t):e}function fj(e,t){const{type:n="all",exact:r,fetchStatus:a,predicate:o,queryKey:l,stale:c}=e;if(l){if(r){if(t.queryHash!==rA(l,t.options))return!1}else if(!Wu(t.queryKey,l))return!1}if(n!=="all"){const f=t.isActive();if(n==="active"&&!f||n==="inactive"&&f)return!1}return!(typeof c=="boolean"&&t.isStale()!==c||a&&a!==t.state.fetchStatus||o&&!o(t))}function dj(e,t){const{exact:n,status:r,predicate:a,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(Xi(t.options.mutationKey)!==Xi(o))return!1}else if(!Wu(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||a&&!a(t))}function rA(e,t){return(t?.queryKeyHashFn||Xi)(e)}function Xi(e){return JSON.stringify(e,(t,n)=>Bw(n)?Object.keys(n).sort().reduce((r,a)=>(r[a]=n[a],r),{}):n)}function Wu(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Wu(e[n],t[n])):!1}var l7=Object.prototype.hasOwnProperty;function aA(e,t){if(e===t)return e;const n=hj(e)&&hj(t);if(!n&&!(Bw(e)&&Bw(t)))return t;const a=(n?e:Object.keys(e)).length,o=n?t:Object.keys(t),l=o.length,c=n?new Array(l):{};let f=0;for(let d=0;d<l;d++){const m=n?d:o[d],h=e[m],g=t[m];if(h===g){c[m]=h,(n?d<a:l7.call(e,m))&&f++;continue}if(h===null||g===null||typeof h!="object"||typeof g!="object"){c[m]=g;continue}const x=aA(h,g);c[m]=x,x===h&&f++}return a===l&&f===a?e:c}function Zu(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 hj(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Bw(e){if(!pj(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!pj(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function pj(e){return Object.prototype.toString.call(e)==="[object Object]"}function c7(e){return new Promise(t=>{Vo.setTimeout(t,e)})}function qw(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?aA(e,t):t}function u7(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function f7(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var sr=Symbol();function q4(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===sr?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function z4(e,t){return typeof e=="function"?e(...t):!!e}var d7=class extends ds{#t;#e;#n;constructor(){super(),this.#n=e=>{if(!ts&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#n=e,this.#e?.(),this.#e=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#t!==e&&(this.#t=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},iA=new d7;function zw(){let e,t;const n=new Promise((a,o)=>{e=a,t=o});n.status="pending",n.catch(()=>{});function r(a){Object.assign(n,a),delete n.resolve,delete n.reject}return n.resolve=a=>{r({status:"fulfilled",value:a}),e(a)},n.reject=a=>{r({status:"rejected",reason:a}),t(a)},n}var h7=o7;function p7(){let e=[],t=0,n=c=>{c()},r=c=>{c()},a=h7;const o=c=>{t?e.push(c):a(()=>{n(c)})},l=()=>{const c=e;e=[],c.length&&a(()=>{r(()=>{c.forEach(f=>{n(f)})})})};return{batch:c=>{let f;t++;try{f=c()}finally{t--,t||l()}return f},batchCalls:c=>(...f)=>{o(()=>{c(...f)})},schedule:o,setNotifyFunction:c=>{n=c},setBatchNotifyFunction:c=>{r=c},setScheduler:c=>{a=c}}}var Et=p7(),m7=class extends ds{#t=!0;#e;#n;constructor(){super(),this.#n=e=>{if(!ts&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#n=e,this.#e?.(),this.#e=e(this.setOnline.bind(this))}setOnline(e){this.#t!==e&&(this.#t=e,this.listeners.forEach(n=>{n(e)}))}isOnline(){return this.#t}},wp=new m7;function g7(e){return Math.min(1e3*2**e,3e4)}function U4(e){return(e??"online")==="online"?wp.isOnline():!0}var Uw=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function H4(e){let t=!1,n=0,r;const a=zw(),o=()=>a.status!=="pending",l=b=>{if(!o()){const S=new Uw(b);g(S),e.onCancel?.(S)}},c=()=>{t=!0},f=()=>{t=!1},d=()=>iA.isFocused()&&(e.networkMode==="always"||wp.isOnline())&&e.canRun(),m=()=>U4(e.networkMode)&&e.canRun(),h=b=>{o()||(r?.(),a.resolve(b))},g=b=>{o()||(r?.(),a.reject(b))},x=()=>new Promise(b=>{r=S=>{(o()||d())&&b(S)},e.onPause?.()}).then(()=>{r=void 0,o()||e.onContinue?.()}),O=()=>{if(o())return;let b;const S=n===0?e.initialPromise:void 0;try{b=S??e.fn()}catch(A){b=Promise.reject(A)}Promise.resolve(b).then(h).catch(A=>{if(o())return;const _=e.retry??(ts?0:3),C=e.retryDelay??g7,M=typeof C=="function"?C(n,A):C,P=_===!0||typeof _=="number"&&n<_||typeof _=="function"&&_(n,A);if(t||!P){g(A);return}n++,e.onFail?.(n,A),c7(M).then(()=>d()?void 0:x()).then(()=>{t?g(A):O()})})};return{promise:a,status:()=>a.status,cancel:l,continue:()=>(r?.(),a),cancelRetry:c,continueRetry:f,canStart:m,start:()=>(m()?O():x().then(O),a)}}var V4=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),$w(this.gcTime)&&(this.#t=Vo.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(ts?1/0:300*1e3))}clearGcTimeout(){this.#t&&(Vo.clearTimeout(this.#t),this.#t=void 0)}},v7=class extends V4{#t;#e;#n;#a;#r;#i;#s;constructor(e){super(),this.#s=!1,this.#i=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#a=e.client,this.#n=this.#a.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=mj(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#r?.promise}setOptions(e){if(this.options={...this.#i,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=mj(this.options);t.data!==void 0&&(this.setData(t.data,{updatedAt:t.dataUpdatedAt,manual:!0}),this.#t=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,t){const n=qw(this.state.data,e,this.options);return this.#o({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#o({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#r?.promise;return this.#r?.cancel(e),t?t.then(bn).catch(bn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#t)}isActive(){return this.observers.some(e=>Tr(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===sr||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Ki(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!B4(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#r&&(this.#s?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#o({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#r?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(e&&this.setOptions(e),!this.options.queryFn){const c=this.observers.find(f=>f.options.queryFn);c&&this.setOptions(c.options)}const n=new AbortController,r=c=>{Object.defineProperty(c,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},a=()=>{const c=q4(this.options,t),d=(()=>{const m={client:this.#a,queryKey:this.queryKey,meta:this.meta};return r(m),m})();return this.#s=!1,this.options.persister?this.options.persister(c,d,this):c(d)},l=(()=>{const c={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#a,state:this.state,fetchFn:a};return r(c),c})();this.options.behavior?.onFetch(l,this),this.#e=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==l.fetchOptions?.meta)&&this.#o({type:"fetch",meta:l.fetchOptions?.meta}),this.#r=H4({initialPromise:t?.initialPromise,fn:l.fetchFn,onCancel:c=>{c instanceof Uw&&c.revert&&this.setState({...this.#e,fetchStatus:"idle"}),n.abort()},onFail:(c,f)=>{this.#o({type:"failed",failureCount:c,error:f})},onPause:()=>{this.#o({type:"pause"})},onContinue:()=>{this.#o({type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0});try{const c=await this.#r.start();if(c===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(c),this.#n.config.onSuccess?.(c,this),this.#n.config.onSettled?.(c,this.state.error,this),c}catch(c){if(c instanceof Uw){if(c.silent)return this.#r.promise;if(c.revert){if(this.state.data===void 0)throw c;return this.state.data}}throw this.#o({type:"error",error:c}),this.#n.config.onError?.(c,this),this.#n.config.onSettled?.(this.state.data,c,this),c}finally{this.scheduleGc()}}#o(e){const t=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...F4(n.data,this.options),fetchMeta:e.meta??null};case"success":const r={...n,data:e.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#e=e.manual?r:void 0,r;case"error":const a=e.error;return{...n,error:a,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),Et.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function F4(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:U4(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function mj(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 Xf=class extends ds{constructor(e,t){super(),this.options=t,this.#t=e,this.#o=null,this.#s=zw(),this.bindMethods(),this.setOptions(t)}#t;#e=void 0;#n=void 0;#a=void 0;#r;#i;#s;#o;#h;#f;#d;#c;#u;#l;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),gj(this.#e,this.options)?this.#p():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Hw(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Hw(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#x(),this.#w(),this.#e.removeObserver(this)}setOptions(e){const t=this.options,n=this.#e;if(this.options=this.#t.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Tr(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#S(),this.#e.setOptions(this.options),t._defaulted&&!Zu(this.options,t)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const r=this.hasListeners();r&&vj(this.#e,n,this.options,t)&&this.#p(),this.updateResult(),r&&(this.#e!==n||Tr(this.options.enabled,this.#e)!==Tr(t.enabled,this.#e)||Ki(this.options.staleTime,this.#e)!==Ki(t.staleTime,this.#e))&&this.#g();const a=this.#v();r&&(this.#e!==n||Tr(this.options.enabled,this.#e)!==Tr(t.enabled,this.#e)||a!==this.#l)&&this.#y(a)}getOptimisticResult(e){const t=this.#t.getQueryCache().build(this.#t,e),n=this.createResult(t,e);return b7(this,n)&&(this.#a=n,this.#i=this.options,this.#r=this.#e.state),n}getCurrentResult(){return this.#a}trackResult(e,t){return new Proxy(e,{get:(n,r)=>(this.trackProp(r),t?.(r),r==="promise"&&!this.options.experimental_prefetchInRender&&this.#s.status==="pending"&&this.#s.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(n,r))})}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#e}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#t.defaultQueryOptions(e),n=this.#t.getQueryCache().build(this.#t,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#p({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#a))}#p(e){this.#S();let t=this.#e.fetch(this.options,e);return e?.throwOnError||(t=t.catch(bn)),t}#g(){this.#x();const e=Ki(this.options.staleTime,this.#e);if(ts||this.#a.isStale||!$w(e))return;const n=B4(this.#a.dataUpdatedAt,e)+1;this.#c=Vo.setTimeout(()=>{this.#a.isStale||this.updateResult()},n)}#v(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#y(e){this.#w(),this.#l=e,!(ts||Tr(this.options.enabled,this.#e)===!1||!$w(this.#l)||this.#l===0)&&(this.#u=Vo.setInterval(()=>{(this.options.refetchIntervalInBackground||iA.isFocused())&&this.#p()},this.#l))}#b(){this.#g(),this.#y(this.#v())}#x(){this.#c&&(Vo.clearTimeout(this.#c),this.#c=void 0)}#w(){this.#u&&(Vo.clearInterval(this.#u),this.#u=void 0)}createResult(e,t){const n=this.#e,r=this.options,a=this.#a,o=this.#r,l=this.#i,f=e!==n?e.state:this.#n,{state:d}=e;let m={...d},h=!1,g;if(t._optimisticResults){const D=this.hasListeners(),L=!D&&gj(e,t),U=D&&vj(e,n,t,r);(L||U)&&(m={...m,...F4(d.data,e.options)}),t._optimisticResults==="isRestoring"&&(m.fetchStatus="idle")}let{error:x,errorUpdatedAt:O,status:b}=m;g=m.data;let S=!1;if(t.placeholderData!==void 0&&g===void 0&&b==="pending"){let D;a?.isPlaceholderData&&t.placeholderData===l?.placeholderData?(D=a.data,S=!0):D=typeof t.placeholderData=="function"?t.placeholderData(this.#d?.state.data,this.#d):t.placeholderData,D!==void 0&&(b="success",g=qw(a?.data,D,t),h=!0)}if(t.select&&g!==void 0&&!S)if(a&&g===o?.data&&t.select===this.#h)g=this.#f;else try{this.#h=t.select,g=t.select(g),g=qw(a?.data,g,t),this.#f=g,this.#o=null}catch(D){this.#o=D}this.#o&&(x=this.#o,g=this.#f,O=Date.now(),b="error");const A=m.fetchStatus==="fetching",_=b==="pending",C=b==="error",M=_&&A,P=g!==void 0,T={status:b,fetchStatus:m.fetchStatus,isPending:_,isSuccess:b==="success",isError:C,isInitialLoading:M,isLoading:M,data:g,dataUpdatedAt:m.dataUpdatedAt,error:x,errorUpdatedAt:O,failureCount:m.fetchFailureCount,failureReason:m.fetchFailureReason,errorUpdateCount:m.errorUpdateCount,isFetched:m.dataUpdateCount>0||m.errorUpdateCount>0,isFetchedAfterMount:m.dataUpdateCount>f.dataUpdateCount||m.errorUpdateCount>f.errorUpdateCount,isFetching:A,isRefetching:A&&!_,isLoadingError:C&&!P,isPaused:m.fetchStatus==="paused",isPlaceholderData:h,isRefetchError:C&&P,isStale:oA(e,t),refetch:this.refetch,promise:this.#s,isEnabled:Tr(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const D=I=>{T.status==="error"?I.reject(T.error):T.data!==void 0&&I.resolve(T.data)},L=()=>{const I=this.#s=T.promise=zw();D(I)},U=this.#s;switch(U.status){case"pending":e.queryHash===n.queryHash&&D(U);break;case"fulfilled":(T.status==="error"||T.data!==U.value)&&L();break;case"rejected":(T.status!=="error"||T.error!==U.reason)&&L();break}}return T}updateResult(){const e=this.#a,t=this.createResult(this.#e,this.options);if(this.#r=this.#e.state,this.#i=this.options,this.#r.data!==void 0&&(this.#d=this.#e),Zu(t,e))return;this.#a=t;const n=()=>{if(!e)return!0;const{notifyOnChangeProps:r}=this.options,a=typeof r=="function"?r():r;if(a==="all"||!a&&!this.#m.size)return!0;const o=new Set(a??this.#m);return this.options.throwOnError&&o.add("error"),Object.keys(this.#a).some(l=>{const c=l;return this.#a[c]!==e[c]&&o.has(c)})};this.#O({listeners:n()})}#S(){const e=this.#t.getQueryCache().build(this.#t,this.options);if(e===this.#e)return;const t=this.#e;this.#e=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#O(e){Et.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#a)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function y7(e,t){return Tr(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function gj(e,t){return y7(e,t)||e.state.data!==void 0&&Hw(e,t,t.refetchOnMount)}function Hw(e,t,n){if(Tr(t.enabled,e)!==!1&&Ki(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&oA(e,t)}return!1}function vj(e,t,n,r){return(e!==t||Tr(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&oA(e,n)}function oA(e,t){return Tr(t.enabled,e)!==!1&&e.isStaleByTime(Ki(t.staleTime,e))}function b7(e,t){return!Zu(e.getCurrentResult(),t)}function Sp(e){return{onFetch:(t,n)=>{const r=t.options,a=t.fetchOptions?.meta?.fetchMore?.direction,o=t.state.data?.pages||[],l=t.state.data?.pageParams||[];let c={pages:[],pageParams:[]},f=0;const d=async()=>{let m=!1;const h=O=>{Object.defineProperty(O,"signal",{enumerable:!0,get:()=>(t.signal.aborted?m=!0:t.signal.addEventListener("abort",()=>{m=!0}),t.signal)})},g=q4(t.options,t.fetchOptions),x=async(O,b,S)=>{if(m)return Promise.reject();if(b==null&&O.pages.length)return Promise.resolve(O);const _=(()=>{const E={client:t.client,queryKey:t.queryKey,pageParam:b,direction:S?"backward":"forward",meta:t.options.meta};return h(E),E})(),C=await g(_),{maxPages:M}=t.options,P=S?f7:u7;return{pages:P(O.pages,C,M),pageParams:P(O.pageParams,b,M)}};if(a&&o.length){const O=a==="backward",b=O?K4:Vw,S={pages:o,pageParams:l},A=b(r,S);c=await x(S,A,O)}else{const O=e??o.length;do{const b=f===0?l[0]??r.initialPageParam:Vw(r,c);if(f>0&&b==null)break;c=await x(c,b),f++}while(f<O)}return c};t.options.persister?t.fetchFn=()=>t.options.persister?.(d,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=d}}}function Vw(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 K4(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}function x7(e,t){return t?Vw(e,t)!=null:!1}function w7(e,t){return!t||!e.getPreviousPageParam?!1:K4(e,t)!=null}var G4=class extends Xf{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){super.setOptions({...e,behavior:Sp()})}getOptimisticResult(e){return e.behavior=Sp(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){const{state:n}=e,r=super.createResult(e,t),{isFetching:a,isRefetching:o,isError:l,isRefetchError:c}=r,f=n.fetchMeta?.fetchMore?.direction,d=l&&f==="forward",m=a&&f==="forward",h=l&&f==="backward",g=a&&f==="backward";return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:x7(t,n.data),hasPreviousPage:w7(t,n.data),isFetchNextPageError:d,isFetchingNextPage:m,isFetchPreviousPageError:h,isFetchingPreviousPage:g,isRefetchError:c&&!d&&!h,isRefetching:o&&!m&&!g}}},S7=class extends V4{#t;#e;#n;#a;constructor(e){super(),this.#t=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#e=[],this.state=e.state||Y4(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#e.includes(e)||(this.#e.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#e=this.#e.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#e.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#a?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#r({type:"continue"})},n={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#a=H4({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(new Error("No mutationFn found")),onFail:(o,l)=>{this.#r({type:"failed",failureCount:o,error:l})},onPause:()=>{this.#r({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const r=this.state.status==="pending",a=!this.#a.canStart();try{if(r)t();else{this.#r({type:"pending",variables:e,isPaused:a}),await this.#n.config.onMutate?.(e,this,n);const l=await this.options.onMutate?.(e,n);l!==this.state.context&&this.#r({type:"pending",context:l,variables:e,isPaused:a})}const o=await this.#a.start();return await this.#n.config.onSuccess?.(o,e,this.state.context,this,n),await this.options.onSuccess?.(o,e,this.state.context,n),await this.#n.config.onSettled?.(o,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(o,null,e,this.state.context,n),this.#r({type:"success",data:o}),o}catch(o){try{throw await this.#n.config.onError?.(o,e,this.state.context,this,n),await this.options.onError?.(o,e,this.state.context,n),await this.#n.config.onSettled?.(void 0,o,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(void 0,o,e,this.state.context,n),o}finally{this.#r({type:"error",error:o})}}finally{this.#n.runNext(this)}}#r(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),Et.batch(()=>{this.#e.forEach(n=>{n.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};function Y4(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var O7=class extends ds{constructor(e={}){super(),this.config=e,this.#t=new Set,this.#e=new Map,this.#n=0}#t;#e;#n;build(e,t,n){const r=new S7({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#t.add(e);const t=Rh(e);if(typeof t=="string"){const n=this.#e.get(t);n?n.push(e):this.#e.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#t.delete(e)){const t=Rh(e);if(typeof t=="string"){const n=this.#e.get(t);if(n)if(n.length>1){const r=n.indexOf(e);r!==-1&&n.splice(r,1)}else n[0]===e&&this.#e.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=Rh(e);if(typeof t=="string"){const r=this.#e.get(t)?.find(a=>a.state.status==="pending");return!r||r===e}else return!0}runNext(e){const t=Rh(e);return typeof t=="string"?this.#e.get(t)?.find(r=>
vendor: 2,022 bytes, line 9
9r!==e&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Et.batch(()=>{this.#t.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#t.clear(),this.#e.clear()})}getAll(){return Array.from(this.#t)}find(e){const t={exact:!0,...e};return this.getAll().find(n=>dj(t,n))}findAll(e={}){return this.getAll().filter(t=>dj(e,t))}notify(e){Et.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return Et.batch(()=>Promise.all(e.map(t=>t.continue().catch(bn))))}};function Rh(e){return e.options.scope?.id}var A7=class extends ds{#t;#e=void 0;#n;#a;constructor(t,n){super(),this.#t=t,this.setOptions(n),this.bindMethods(),this.#r()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const n=this.options;this.options=this.#t.defaultMutationOptions(t),Zu(this.options,n)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),n?.mutationKey&&this.options.mutationKey&&Xi(n.mutationKey)!==Xi(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(t){this.#r(),this.#i(t)}getCurrentResult(){return this.#e}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#r(),this.#i()}mutate(t,n){return this.#a=n,this.#n?.removeObserver(this),this.#n=this.#t.getMutationCache().build(this.#t,this.options),this.#n.addObserver(this),this.#n.execute(t)}#r(){const t=this.#n?.state??Y4();this.#e={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#i(t){Et.batch(()=>{if(this.#a&&this.hasListeners()){const n=this.#e.variables,r=this.#e.context,a={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};t?.type==="success"?(this.#a.onSuccess?.(t.data,n,r,a),this.#a.onSettled?.(t.data,null,
9n,r,a)):t?.type==="error"&&(this.#a.onError?.(t.error,n,r,a),this.#a.onSettled?.(void 0,t.error,n,r,a))}this.listeners.forEach(n=>{n(this.#e)})})}};function yj(e,t){const n=new Set(t);return e.filter(r=>!n.has(r))}function P7(e,t,n){const r=e.slice(0);return r[t]=n,r}var _7=class extends ds{#t;#e;#n;#a;#r;#i;#s;#o;#h=[];constructor(e,t,n){super(),this.#t=e,this.#a=n,this.#n=[],this.#r=[],this.#e=[],this.setQueries(t)}onSubscribe(){this.listeners.size===1&&this.#r.forEach(e=>{e.subscribe(t=>{this.#u(e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#r.forEach(e=>{e.destroy()})}setQueries(e,t){this.#n=e,this.#a=t,Et.batch(()=>{const n=this.#r,r=this.#c(this.#n);this.#h=r,r.forEach(m=>m.observer.setOptions(m.defaultedQueryOptions));const a=r.map(m=>m.observer),o=a.map(m=>m.getCurrentResult()),l=n.length!==a.length,c=a.some((m,h)=>m!==n[h]),f=l||c,d=f?!0:o.some((m,h)=>{const g=this.#e[h];return!g||!Zu(m,g)});!f&&!d||(f&&(this.#r=a),this.#e=o,this.hasListeners()&&(f&&(yj(n,a).forEach(m=>{m.destroy()}),yj(a,n).forEach(m=>{m.subscribe(h=>{this.#u(m,h)})})),this.#l()))})}getCurrentResult(){return this.#e}getQueries(){return this.#r.map(e=>e.getCurrentQuery())}getObservers(){return this.#r}getOptimisticResult(e,t){const n=this.#c(e),r=n.map(a=>a.observer.getOptimisticResult(a.defaultedQueryOptions));return[r,a=>this.#d(a??r,t),()=>this.#f(r,n)]}#f(e,t){return t.map((n,r)=>{const a=e[r];return n.defaultedQueryOptions.notifyOnChangeProps?a:n.observer.trackResult(a,o=>{t.forEach(l=>{l.observer.trackProp(o)})})})}#d(e,t){return t?((!this.#i||this.#e!==this.#o||t!==this.#s)&&(this.#s=t,this.#o=this.#e,this.#i=aA(this.#i,t(e))),this.#i):e}#c(e){const t=new Map(this.#r.map(r=>[r.options.queryHash,r])),n=[];return e.forEach(r=>{const a=this.#t.defaultQueryOptions(r),o=t.get(a.queryHash);o?n.push({defaultedQueryOptions:a,observer:o}):n.push({defaultedQueryOptions:a,observer:new Xf(this.#t,a)})}),n}#u(e,t){const n=this.#r.indexOf(e);n!==-1&&(this.#e=P7(this.#e,n,t),this.#l())}#l(){if(this.hasListeners()){const e=this.#i,t=this.#f(this.#e,this.#h),n=this.#d(t,this.#a?.combine);e!==n&&Et.batch(()=>{this.listeners.forEach(r=>{r(this.#e)})})}}},C7=class extends ds{constructor(e={}){super(),this.config=e,this.#t=new Map}#t;build(e,t,n){const r=t.queryKey,a=t.queryHash??rA(r,t);let o=this.get(a);return o||(o=new v7({client:e,queryKey:r,queryHash:a,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(o)),o}add(e){this.#t.has(e.queryHash)||(this.#t.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#t.get(e.queryHash);t&&(e.destroy(),t===e&&this.#t.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Et.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#t.get(e)}getAll(){return[...this.#t.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(n=>fj(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>fj(e,n)):t}notify(e){Et.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Et.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Et.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},T7=class{#t;#e;#n;#a;#r;#i;#s;#o;constructor(e={}){this.#t=e.queryCache||new C7,this.#e=e.mutationCache||new O7,this.#n=e.defaultOptions||{},this.#a=new Map,this.#r=new Map,this.#i=0}mount(){this.#i++,this.#i===1&&(this.#s=iA.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#o=wp.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#i--,this.#i===0&&(this.#s?.(),this.#s=void 0,this.#o?.(),this.#o=void 0)}isFetching(e){return this.#t.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#e.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=this.#t.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Ki(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#t.findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=this.#t.get(r.queryHash)?.state.data,l=s7(t,o);if(l!==void 0)return this.#t.build(this,r).setData(l,{...n,manual:!0})}
vendor: 5,631 bytes, lines 9-17
9setQueriesData(e,t,n){return Et.batch(()=>this.#t.findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state}removeQueries(e){const t=this.#t;Et.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=this.#t;return Et.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Et.batch(()=>this.#t.findAll(e).map(a=>a.cancel(n)));return Promise.all(r).then(bn).catch(bn)}invalidateQueries(e,t={}){return Et.batch(()=>(this.#t.findAll(e).forEach(n=>{n.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Et.batch(()=>this.#t.findAll(e).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let o=a.fetch(void 0,n);return n.throwOnError||(o=o.catch(bn)),a.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(bn)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=this.#t.build(this,t);return n.isStaleByTime(Ki(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(bn).catch(bn)}fetchInfiniteQuery(e){return e.behavior=Sp(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(bn).catch(bn)}ensureInfiniteQueryData(e){return e.behavior=Sp(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return wp.isOnline()?this.#e.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#e}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#a.set(Xi(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#a.values()],n={};return t.forEach(r=>{Wu(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){this.#r.set(Xi(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#r.values()],n={};return t.forEach(r=>{Wu(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=rA(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===sr&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#t.clear(),this.#e.clear()}},e0={exports:{}},Ne={};/** 10 * @license React 11 * react.production.js 12 * 13 * Copyright (c) Meta Platforms, Inc. and 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 bj;function j7(){if(bj)return Ne;bj=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),h=Symbol.for("react.activity"),g=Symbol.iterator;function x(B){return B===null||typeof B!="object"?null:(B=g&&B[g]||B["@@iterator"],typeof B=="function"?B:null)}var O={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,S={};function A(B,Y,X){this.props=B,this.context=Y,this.refs=S,this.updater=X||O}A.prototype.isReactComponent={},A.prototype.setState=function(B,Y){if(typeof B!="object"&&typeof B!="function"&&B!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,B,Y,"setState")},A.prototype.forceUpdate=function(B){this.updater.enqueueForceUpdate(this,B,"forceUpdate")};function _(){}_.prototype=A.prototype;function C(B,Y,X){this.props=B,this.context=Y,this.refs=S,this.updater=X||O}var M=C.prototype=new _;M.constructor=C,b(M,A.prototype),M.isPureReactComponent=!0;var P=Array.isArray;function E(){}var T={H:null,A:null,T:null,S:null},D=Object.prototype.hasOwnProperty;function L(B,Y,X){var J=X.ref;return{$$typeof:e,type:B,key:Y,ref:J!==void 0?J:null,props:X}}function U(B,Y){return L(B.type,Y,B.props)}function I(B){return typeof B=="object"&&B!==null&&B.$$typeof===e}function z(B){var Y={"=":"=0",":":"=2"};return"$"+B.replace(/[=:]/g,function(X){return Y[X]})}var F=/\/+/g;function K(B,Y){return typeof B=="object"&&B!==null&&B.key!=null?z(""+B.key):Y.toString(36)}function q(B){switch(B.status){case"fulfilled":return B.value;case"rejected":throw B.reason;default:switch(typeof B.status=="string"?B.then(E,E):(B.status="pending",B.then(function(Y){B.status==="pending"&&(B.status="fulfilled",B.value=Y)},function(Y){B.status==="pending"&&(B.status="rejected",B.reason=Y)})),B.status){case"fulfilled":return B.value;case"rejected":throw B.reason}}throw B}function R(B,Y,X,J,ue){var he=typeof B;(he==="undefined"||he==="boolean")&&(B=null);var fe=!1;if(B===null)fe=!0;else switch(he){case"bigint":case"string":case"number":fe=!0;break;case"object":switch(B.$$typeof){case e:case t:fe=!0;break;case m:return fe=B._init,R(fe(B._payload),Y,X,J,ue)}}
vendor: 4,377 bytes, line 17
17if(fe)return ue=ue(B),fe=J===""?"."+K(B,0):J,P(ue)?(X="",fe!=null&&(X=fe.replace(F,"$&/")+"/"),R(ue,Y,X,"",function(pe){return pe})):ue!=null&&(I(ue)&&(ue=U(ue,X+(ue.key==null||B&&B.key===ue.key?"":(""+ue.key).replace(F,"$&/")+"/")+fe)),Y.push(ue)),1;fe=0;var me=J===""?".":J+":";if(P(B))for(var le=0;le<B.length;le++)J=B[le],he=me+K(J,le),fe+=R(J,Y,X,he,ue);else if(le=x(B),typeof le=="function")for(B=le.call(B),le=0;!(J=B.next()).done;)J=J.value,he=me+K(J,le++),fe+=R(J,Y,X,he,ue);else if(he==="object"){if(typeof B.then=="function")return R(q(B),Y,X,J,ue);throw Y=String(B),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(B).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.")}return fe}function $(B,Y,X){if(B==null)return B;var J=[],ue=0;return R(B,J,"","",function(he){return Y.call(X,he,ue++)}),J}function H(B){if(B._status===-1){var Y=B._result;Y=Y(),Y.then(function(X){(B._status===0||B._status===-1)&&(B._status=1,B._result=X)},function(X){(B._status===0||B._status===-1)&&(B._status=2,B._result=X)}),B._status===-1&&(B._status=0,B._result=Y)}if(B._status===1)return B._result.default;throw B._result}var W=typeof reportError=="function"?reportError:function(B){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof B=="object"&&B!==null&&typeof B.message=="string"?String(B.message):String(B),error:B});if(!window.dispatchEvent(Y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",B);return}console.error(B)},ae={map:$,forEach:function(B,Y,X){$(B,function(){Y.apply(this,arguments)},X)},count:function(B){var Y=0;return $(B,function(){Y++}),Y},toArray:function(B){return $(B,function(Y){return Y})||[]},only:function(B){if(!I(B))throw Error("React.Children.only expected to receive a single React element child.");return B}};return Ne.Activity=h,Ne.Children=ae,Ne.Component=A,Ne.Fragment=n,Ne.Profiler=a,Ne.PureComponent=C,Ne.StrictMode=r,Ne.Suspense=f,Ne.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=T,Ne.__COMPILER_RUNTIME={__proto__:null,c:function(B){return T.H.useMemoCache(B)}},Ne.cache=function(B){return function(){return B.apply(null,arguments)}},Ne.cacheSignal=function(){return null},Ne.cloneElement=function(B,Y,X){if(B==null)throw Error("The argument must be a React element, but you passed "+B+".");var J=b({},B.props),ue=B.key;if(Y!=null)for(he in Y.key!==void 0&&(ue=""+Y.key),Y)!D.call(Y,he)||he==="key"||he==="__self"||he==="__source"||he==="ref"&&Y.ref===void 0||(J[he]=Y[he]);var he=arguments.length-2;if(he===1)J.children=X;else if(1<he){for(var fe=Array(he),me=0;me<he;me++)fe[me]=arguments[me+2];J.children=fe}return L(B.type,ue,J)},Ne.createContext=function(B){return B={$$typeof:l,_currentValue:B,_currentValue2:B,_threadCount:0,Provider:null,Consumer:null},B.Provider=B,B.Consumer={$$typeof:o,_context:B},B},Ne.createElement=function(B,Y,X){var J,ue={},he=null;if(Y!=null)for(J in Y.key!==void 0&&(he=""+Y.key),Y)D.call(Y,J)&&J!=="key"&&J!=="__self"&&J!=="__source"&&(ue[J]=Y[J]);var fe=arguments.length-2;if(fe===1)ue.children=X;else if(1<fe){for(var me=Array(fe),le=0;le<fe;le++)me[le]=arguments[le+2];ue.children=me}if(B&&B.defaultProps)for(J in fe=B.defaultProps,fe)ue[J]===void 0&&(ue[J]=fe[J]);return L(B,he,ue)},Ne.createRef=function(){return{current:null}},Ne.forwardRef=function(B){return{$$typeof:c,render:B}},Ne.isValidElement=I,Ne.lazy=function(B){return{$$typeof:m,_payload:{_status:-1,_result:B},_init:H}},Ne.memo=function(B,Y){return{$$typeof:d,type:B,compare:Y===void 0?null:Y}},Ne.startTransition=function(B){var Y=T.T,X={};T.T=X;try{var J=B(),ue=T.S;ue!==null&&ue(X,J),typeof J=="object"&&J!==null&&typeof J.then=="function"&&J.then(E,W)}catch(he){W(he)}finally{Y!==null&&X.types!==null&&(Y.types=X.types),T.T=Y}},Ne.unstable_useCacheRefresh=function(){return T.H.useCacheRefresh()},Ne.use=function(B){return T.H.use(B)},Ne.useActionState=function(B,Y,X){return T.H.useActionState(B,Y,X)},Ne.useCallback=function(B,Y){return T.H.useCallback(B,Y)},Ne.useContext=function(B){return T.H.useContext(B)},Ne.useDebugValue=function(){},Ne.useDeferredValue=function(B,Y){return T.H.useDeferredValue(B,Y)},Ne.useEffect=function(B,Y){return T.H.useEffect(B,Y)}
17,Ne.useEffectEvent=function(B){return T.H.useEffectEvent(B)},Ne.useId=function(){return T.H.useId()},Ne.useImperativeHandle=function(B,Y,X){return T.H.useImperativeHandle(B,Y,X)},Ne.useInsertionEffect=function(B,Y){return T.H.useInsertionEffect(B,Y)},Ne.useLayoutEffect=function(B,Y){return T.H.useLayoutEffect(B,Y)},Ne.useMemo=function(B,Y){return T.H.useMemo(B,Y)},Ne.useOptimistic=function(B,Y){return T.H.useOptimistic(B,Y)},Ne.useReducer=function(B,Y,X){return T.H.useReducer(B,Y,X)},Ne.useRef=function(B){return T.H.useRef(B)},Ne.useState=function(B){return T.H.useState(B)},Ne.useSyncExternalStore=function(B,Y,X){return T.H.useSyncExternalStore(B,Y,X)},Ne.useTransition=function(){return T.H.useTransition()},Ne.version="19.2.1",Ne}var xj;function $m(){return xj||(xj=1,e0.exports=j7()),e0.exports}var j=$m();const V=ut(j),Bm=t7({__proto__:null,default:V},[j]);var X4=j.createContext(void 0),Qf=e=>{const t=j.useContext(X4);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},E7=({client:e,children:t})=>(j.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),v.jsx(X4.Provider,{value:e,children:t})),Q4=j.createContext(!1),W4=()=>j.useContext(Q4);Q4.Provider;function N7(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var M7=j.createContext(N7()),Z4=()=>j.useContext(M7),J4=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},eI=e=>{j.useEffect(()=>{e.clearReset()},[e])},tI=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:a})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(a&&e.data===void 0||z4(n,[e.error,r])),sA=(e,t)=>t.state.data===void 0,nI=e=>{if(e.suspense){const n=a=>a==="static"?a:Math.max(a??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...a)=>n(r(...a)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},rI=(e,t)=>e.isLoading&&e.isFetching&&!t,Fw=(e,t)=>e?.suspense&&t.isPending,Op=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function aI({queries:e,...t},n){const r=Qf(n),a=W4(),o=Z4(),l=j.useMemo(()=>e.map(b=>{const S=r.defaultQueryOptions(b);return S._optimisticResults=a?"isRestoring":"optimistic",S}),[e,r,a]);l.forEach(b=>{nI(b),J4(b,o)}),eI(o);const[c]=j.useState(()=>new _7(r,l,t)),[f,d,m]=c.getOptimisticResult(l,t.combine),h=!a&&t.subscribed!==!1;j.useSyncExternalStore(j.useCallback(b=>h?c.subscribe(Et.batchCalls(b)):bn,[c,h]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),j.useEffect(()=>{c.setQueries(l,t)},[l,t,c]);const x=f.some((b,S)=>Fw(l[S],b))?f.flatMap((b,S)=>{const A=l[S];if(A){const _=new Xf(r,A);if(Fw(A,b))return Op(A,_,o);rI(b,a)&&Op(A,_,o)}return[]}):[];if(x.length>0)throw Promise.all(x);const O=f.find((b,S)=>{const A=l[S];return A&&tI({result:b,errorResetBoundary:o,throwOnError:A.throwOnError,query:r.getQueryCache().get(A.queryHash),suspense:A.suspense})});if(O?.error)throw O.error;return d(m())}function qm(e,t,n){const r=W4(),a=Z4(),o=Qf(n),l=o.defaultQueryOptions(e);o.getDefaultOptions().queries?._experimental_beforeQuery?.(l),l._optimisticResults=r?"isRestoring":"optimistic",nI(l),J4(l,a),eI(a);const c=!o.getQueryCache().get(l.queryHash),[f]=j.useState(()=>new t(o,l)),d=f.getOptimisticResult(l),m=!r&&e.subscribed!==!1;if(j.useSyncExternalStore(j.useCallback(h=>{const g=m?f.subscribe(Et.batchCalls(h)):bn;return f.updateResult(),g},[f,m]),()=>f.getCurrentResult(),()=>f.getCurrentResult()),j.useEffect(()=>{f.setOptions(l)},[l,f]),Fw(l,d))throw Op(l,f,a);if(tI({result:d,errorResetBoundary:a,throwOnError:l.throwOnError,query:o.getQueryCache().get(l.queryHash),suspense:l.suspense}))throw d.error;return o.getDefaultOptions().queries?._experimental_afterQuery?.(l,d),l.experimental_prefetchInRender&&!ts&&rI(d,r)&&(c?Op(l,f,a):o.getQueryCache().get(l.queryHash)?.promise)?.catch(bn).finally(()=>{f.updateResult()}),l.notifyOnChangeProps?d:f.trackResult(d)}function D7(e,t){return qm(e,Xf,t)}function R7(e,t){return qm({...e,enabled:!0,suspense:!0,throwOnError:sA,placeholderData:void 0},Xf,t)}function k7(e,t){return qm({...e,enabled:!0,suspense:!0,throwOnError:sA},G4,t)}function I7(e,t){return aI({...e,queries:e.queries.map(n=>({...n,suspense:!0,throwOnError:sA,enabled:!0,placeholderData:void 0}))},t)}function L7(e,t){const n=Qf(t);n.getQueryState(e.queryKey)||n.prefetchQuery(e)}function $7(e,t){const n=Qf(t);n.getQueryState(e.queryKey)||n.prefetchInfiniteQuery(e)}function B7(e,t){const n=Qf(t),[r]=j.useState(()=>new A7(n,e));j.useEffect(()=>{r.setOptions(e)},[r,e]);const a=j.useSyncExternalStore(j.useCallback(l=>r.subscribe(Et.batchCalls(l)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),o=j.useCallback((l,c)=>{r.mutate(l,c).catch(bn)},[r]);if(a.error&&z4(r.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:o,mutateAsync:a.mutate}}function q7(e,t){return qm(e,G4,t)}function ns(e){return!!e&&!Array.isArray(e)&&typeof e=="object"}const z7=typeof Symbol=="function"&&!!Symbol.asyncIterator;function iI(e){return z7&&ns(e)&&Symbol.asyncIterator in e}var U7=Object.create,oI=Object.defineProperty,H7=Object.getOwnPropertyDescriptor,sI=Object.getOwnPropertyNames,V7=Object.getPrototypeOf,F7=Object.prototype.hasOwnProperty,Wf=(e,t)=>function(){return t||(0,e[sI(e)[0]])((t={exports:{}}).exports,t),t.exports},K7=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var a=sI(t),o=0,l=a.length,c;o<l;o++)c=a[o],!F7.call(e,c)&&c!==n&&oI(e,c,{get:(f=>t[f]).bind(null,c),enumerable:!(r=H7(t,c))||r.enumerable});return e}
17,zm=(e,t,n)=>(n=e!=null?U7(V7(e)):{},K7(oI(n,"default",{value:e,enumerable:!0}),e));const lI=()=>{},wj=e=>{Object.freeze&&Object.freeze(e)};function cI(e,t,n){var r;const a=t.join(".");return(r=n[a])!==null&&r!==void 0||(n[a]=new Proxy(lI,{get(o,l){if(!(typeof l!="string"||l==="then"))return cI(e,[...t,l],n)},apply(o,l,c){const f=t[t.length-1];let d={args:c,path:t};return f==="call"?d={args:c.length>=2?[c[1]]:[],path:t.slice(0,-1)}:f==="apply"&&(d={args:c.length>=2?c[1]:[],path:t.slice(0,-1)}),wj(d.args),wj(d.path),e(d)}})),n[a]}const Um=e=>cI(e,[],Object.create(null)),lA=e=>new Proxy(lI,{get(t,n){if(n!=="then")return e(n)}});var uI=Wf({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function n(r){"@babel/helpers - typeof";return t.exports=n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},t.exports.__esModule=!0,t.exports.default=t.exports,n(r)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),G7=Wf({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=uI().default;function r(a,o){if(n(a)!="object"||!a)return a;var l=a[Symbol.toPrimitive];if(l!==void 0){var c=l.call(a,o||"default");if(n(c)!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(a)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),Y7=Wf({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=uI().default,r=G7();function a(o){var l=r(o,"string");return n(l)=="symbol"?l:l+""}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}}),fI=Wf({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=Y7();function r(a,o,l){return(o=n(o))in a?Object.defineProperty(a,o,{value:l,enumerable:!0,configurable:!0,writable:!0}):a[o]=l,a}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),cA=Wf({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=fI();function r(o,l){var c=Object.keys(o);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(o);l&&(f=f.filter(function(d){return Object.getOwnPropertyDescriptor(o,d).enumerable})),c.push.apply(c,f)}return c}function a(o){for(var l=1;l<arguments.length;l++){var c=arguments[l]!=null?arguments[l]:{};l%2?r(Object(c),!0).forEach(function(f){n(o,f,c[f])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(c)):r(Object(c)).forEach(function(f){Object.defineProperty(o,f,Object.getOwnPropertyDescriptor(c,f))})}return o}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}});zm(cA());zm(fI());var kh=zm(cA());function X7(e,t){if("error"in e){const r=t.deserialize(e.error);return{ok:!1,error:(0,kh.default)((0,kh.default)({},e),{},{error:r})}}return{ok:!0,result:(0,kh.default)((0,kh.default)({},e.result),(!e.result.type||e.result.type==="data")&&{type:"data",data:t.deserialize(e.result.data)})}}var t0=class extends Error{constructor(){super("Unable to transform response from server")}};function Q7(e,t){let n;try{n=X7(e,t)}catch{throw new t0}if(!n.ok&&(!ns(n.error.error)||typeof n.error.error.code!="number"))throw new t0;if(n.ok&&!ns(n.result))throw new t0;return n}zm(cA());function Hm(e){const t={subscribe(n){let r=null,a=!1,o=!1,l=!1;function c(){if(r===null){l=!0;return}o||(o=!0,typeof r=="function"?r():r&&r.unsubscribe())}return r=e({next(f){var d;a||(d=n.next)===null||d===void 0||d.call(n,f)},error(f){var d;a||(a=!0,(d=n.error)===null||d===void 0||d.call(n,f),c())},complete(){var f;a||(a=!0,(f=n.complete)===null||f===void 0||f.call(n),c())}}),l&&c(),{unsubscribe:c}},pipe(...n){return n.reduce(W7,t)}};return t}function W7(e,t){return t(e)}function Z7(e){const t=new AbortController;return new Promise((r,a)=>{let o=!1;function l(){o||(o=!0,c.unsubscribe())}t.signal.addEventListener("abort",()=>{a(t.signal.reason)});const c=e.subscribe({next(f){o=!0,r(f),l()},error(f){a(f)},complete(){t.abort(),l()}})})}var J7=Object.create,dI=Object.defineProperty,e9=Object.getOwnPropertyDescriptor,hI=Object.getOwnPropertyNames,t9=Object.getPrototypeOf,n9=Object.prototype.hasOwnProperty,no=(e,t)=>function(){return t||(0,e[hI(e)[0]])((t={exports:{}}).exports,t),t.exports},r9=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var a=hI(t),o=0,l=a.length,c;o<l;o++)c=a[o],!n9.call(e,c)&&c!==n&&dI(e,c,{get:(f=>t[f]).bind(null,c),enumerable:!(r=e9(t,c))||r.enumerable});return e},hs=(e,t,n)=>(n=e!=null?J7(t9(e)):{},r9(t||!e||!e.__esModule?dI(n,"default",{value:e,enumerable:!0}):n,e)),a9=no({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/objectWithoutPropertiesLoose.js"(e,t){function n(r,a){if(r==null)return{};var o={};for(var l in r)if({}.hasOwnProperty.call(r,l)){if(a.includes(l))continue;o[l]=r[l]}return o}
17t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),i9=no({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/objectWithoutProperties.js"(e,t){var n=a9();function r(a,o){if(a==null)return{};var l,c,f=n(a,o);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(a);for(c=0;c<d.length;c++)l=d[c],o.includes(l)||{}.propertyIsEnumerable.call(a,l)&&(f[l]=a[l])}return f}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),pI=no({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function n(r){"@babel/helpers - typeof";return t.exports=n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},t.exports.__esModule=!0,t.exports.default=t.exports,n(r)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),o9=no({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=pI().default;function r(a,o){if(n(a)!="object"||!a)return a;var l=a[Symbol.toPrimitive];if(l!==void 0){var c=l.call(a,o||"default");if(n(c)!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(a)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),s9=no({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=pI().default,r=o9();function a(o){var l=r(o,"string");return n(l)=="symbol"?l:l+""}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}}),l9=no({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=s9();function r(a,o,l){return(o=n(o))in a?Object.defineProperty(a,o,{value:l,enumerable:!0,configurable:!0,writable:!0}):a[o]=l,a}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),Zf=no({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=l9();function r(o,l){var c=Object.keys(o);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(o);l&&(f=f.filter(function(d){return Object.getOwnPropertyDescriptor(o,d).enumerable})),c.push.apply(c,f)}return c}function a(o){for(var l=1;l<arguments.length;l++){var c=arguments[l]!=null?arguments[l]:{};l%2?r(Object(c),!0).forEach(function(f){n(o,f,c[f])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(c)):r(Object(c)).forEach(function(f){Object.defineProperty(o,f,Object.getOwnPropertyDescriptor(c,f))})}return o}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}}),c9=hs(i9(),1),Sj=hs(Zf(),1);const u9=["cursor","direction"];function ua(e,t,n){const r=e.flatMap(a=>a.split("."));if(!t&&(!n||n==="any"))return r.length?[r]:[];if(n==="infinite"&&ns(t)&&("direction"in t||"cursor"in t)){const{cursor:a,direction:o}=t,l=(0,c9.default)(t,u9);return[r,{input:l,type:"infinite"}]}return[r,(0,Sj.default)((0,Sj.default)({},typeof t<"u"&&t!==sr&&{input:t}),n&&n!=="any"&&{type:n})]}function fp(e){return ua(e,void 0,"any")}var f9=Object.create,mI=Object.defineProperty,d9=Object.getOwnPropertyDescriptor,gI=Object.getOwnPropertyNames,h9=Object.getPrototypeOf,p9=Object.prototype.hasOwnProperty,wa=(e,t)=>function(){return t||(0,e[gI(e)[0]])((t={exports:{}}).exports,t),t.exports},m9=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var a=gI(t),o=0,l=a.length,c;o<l;o++)c=a[o],!p9.call(e,c)&&c!==n&&mI(e,c,{get:(f=>t[f]).bind(null,c),enumerable:!(r=d9(t,c))||r.enumerable});return e}
17,Lt=(e,t,n)=>(n=e!=null?f9(h9(e)):{},m9(t||!e||!e.__esModule?mI(n,"default",{value:e,enumerable:!0}):n,e)),vI=wa({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function n(r){"@babel/helpers - typeof";return t.exports=n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},t.exports.__esModule=!0,t.exports.default=t.exports,n(r)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),g9=wa({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=vI().default;function r(a,o){if(n(a)!="object"||!a)return a;var l=a[Symbol.toPrimitive];if(l!==void 0){var c=l.call(a,o||"default");if(n(c)!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(a)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),v9=wa({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=vI().default,r=g9();function a(o){var l=r(o,"string");return n(l)=="symbol"?l:l+""}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}}),ps=wa({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=v9();function r(a,o,l){return(o=n(o))in a?Object.defineProperty(a,o,{value:l,enumerable:!0,configurable:!0,writable:!0}):a[o]=l,a}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),Jr=wa({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=ps();function r(o,l){var c=Object.keys(o);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(o);l&&(f=f.filter(function(d){return Object.getOwnPropertyDescriptor(o,d).enumerable})),c.push.apply(c,f)}return c}function a(o){for(var l=1;l<arguments.length;l++){var c=arguments[l]!=null?arguments[l]:{};l%2?r(Object(c),!0).forEach(function(f){n(o,f,c[f])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(c)):r(Object(c)).forEach(function(f){Object.defineProperty(o,f,Object.getOwnPropertyDescriptor(c,f))})}return o}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}});function y9(e){return t=>{let n=0,r=null;const a=[];function o(){r||(r=t.subscribe({next(c){for(const d of a){var f;(f=d.next)===null||f===void 0||f.call(d,c)}},error(c){for(const d of a){var f;(f=d.error)===null||f===void 0||f.call(d,c)}},complete(){for(const f of a){var c;(c=f.complete)===null||c===void 0||c.call(f)}}}))}function l(){if(n===0&&r){const c=r;r=null,c.unsubscribe()}}return Hm(c=>(n++,a.push(c),o(),{unsubscribe(){n--,l();const f=a.findIndex(d=>d===c);f>-1&&a.splice(f,1)}}))}}function b9(e){let t=e;const n=[],r=l=>{t!==void 0&&l.next(t),n.push(l)},a=l=>{n.splice(n.indexOf(l),1)},o=Hm(l=>(r(l),()=>{a(l)}));return o.next=l=>{if(t!==l){t=l;for(const c of n)c.next(l)}},o.get=()=>t,o}function x9(e){return Hm(t=>{function n(a=0,o=e.op){const l=e.links[a];if(!l)throw new Error("No more links to execute - did you forget to add an ending link?");return l({op:o,next(f){return n(a+1,f)}})}return n().subscribe(t)})}var Ih=Lt(ps(),1),sl=Lt(Jr(),1);function w9(e){return e instanceof Rl}function S9(e){return ns(e)&&ns(e.error)&&typeof e.error.code=="number"&&typeof e.error.message=="string"}function O9(e,t){return typeof e=="string"?e:ns(e)&&typeof e.message=="string"?e.message:t}var Rl=class dp extends Error{constructor(t,n){var r,a;const o=n?.cause;super(t,{cause:o}),(0,Ih.default)(this,"cause",void 0),(0,Ih.default)(this,"shape",void 0),(0,Ih.default)(this,"data",void 0),(0,Ih.default)(this,"meta",void 0),this.meta=n?.meta,this.cause=o,this.shape=n==null||(r=n.result)===null||r===void 0?void 0:r.error,this.data=n==null||(a=n.result)===null||a===void 0?void 0:a.error.data,this.name="TRPCClientError",Object.setPrototypeOf(this,dp.prototype)}static from(t,n={}){const r=t;return w9(r)?(n.meta&&(r.meta=(0,sl.default)((0,sl.default)({},r.meta),n.meta)),r):S9(r)?new dp(r.error.message,(0,sl.default)((0,sl.default)({},n),{},{result:r})):new dp(O9(r,"Unknown error"),(0,sl.default)((0,sl.default)({},n),{},{cause:r}))}};function A9(e){const t=e;return t?"input"in t?t:{input:t,output:t}:{input:{serialize:n=>n,deserialize:n=>n}
17,output:{serialize:n=>n,deserialize:n=>n}}}const Oj=e=>typeof e=="function";function P9(e){if(e)return e;if(typeof window<"u"&&Oj(window.fetch))return window.fetch;if(typeof globalThis<"u"&&Oj(globalThis.fetch))return globalThis.fetch;throw new Error("No fetch implementation found")}var Bu=Lt(Jr());function _9(e){return{url:e.url.toString(),fetch:e.fetch,transformer:A9(e.transformer),methodOverride:e.methodOverride}}function C9(e){const t={};for(let n=0;n<e.length;n++){const r=e[n];t[n]=r}return t}const T9={query:"GET",mutation:"POST",subscription:"PATCH"};function yI(e){return"input"in e?e.transformer.input.serialize(e.input):C9(e.inputs.map(t=>e.transformer.input.serialize(t)))}const bI=e=>{const t=e.url.split("?");let r=t[0].replace(/\/$/,"")+"/"+e.path;const a=[];if(t[1]&&a.push(t[1]),"inputs"in e&&a.push("batch=1"),e.type==="query"||e.type==="subscription"){const o=yI(e);o!==void 0&&e.methodOverride!=="POST"&&a.push(`input=${encodeURIComponent(JSON.stringify(o))}`)}return a.length&&(r+="?"+a.join("&")),r},j9=e=>{if(e.type==="query"&&e.methodOverride!=="POST")return;const t=yI(e);return t!==void 0?JSON.stringify(t):void 0},E9=e=>R9((0,Bu.default)((0,Bu.default)({},e),{},{contentTypeHeader:"application/json",getUrl:bI,getBody:j9}));var N9=class extends Error{constructor(){const e="AbortError";super(e),this.name=e,this.message=e}};const M9=e=>{var t;if(e?.aborted)throw(t=e.throwIfAborted)===null||t===void 0||t.call(e),typeof DOMException<"u"?new DOMException("AbortError","AbortError"):new N9};async function D9(e){var t;M9(e.signal);const n=e.getUrl(e),r=e.getBody(e),a=(t=e.methodOverride)!==null&&t!==void 0?t:T9[e.type],o=await(async()=>{const c=await e.headers();return Symbol.iterator in c?Object.fromEntries(c):c})(),l=(0,Bu.default)((0,Bu.default)((0,Bu.default)({},e.contentTypeHeader&&a!=="GET"?{"content-type":e.contentTypeHeader}:{}),e.trpcAcceptHeader?{"trpc-accept":e.trpcAcceptHeader}:void 0),o);return P9(e.fetch)(n,{method:a,signal:e.signal,body:r,headers:l})}async function R9(e){const t={},n=await D9(e);t.response=n;const r=await n.json();return t.responseJSON=r,{json:r,meta:t}}Lt(Jr(),1);const Aj=()=>{throw new Error("Something went wrong. Please submit an issue at https://github.com/trpc/trpc/issues/new")};function Pj(e){let t=null,n=null;const r=()=>{clearTimeout(n),n=null,t=null};function a(c){const f=[[]];let d=0;for(;;){const g=c[d];if(!g)break;const x=f[f.length-1];if(g.aborted){var m;(m=g.reject)===null||m===void 0||m.call(g,new Error("Aborted")),d++;continue}if(e.validate(x.concat(g).map(b=>b.key))){x.push(g),d++;continue}if(x.length===0){var h;(h=g.reject)===null||h===void 0||h.call(g,new Error("Input is too big for a single dispatch")),d++;continue}f.push([])}return f}function o(){const c=a(t);r();for(const f of c){if(!f.length)continue;const d={items:f};for(const h of f)h.batch=d;e.fetch(d.items.map(h=>h.key)).then(async h=>{await Promise.all(h.map(async(x,O)=>{const b=d.items[O];try{var S;const _=await Promise.resolve(x);(S=b.resolve)===null||S===void 0||S.call(b,_)}catch(_){var A;(A=b.reject)===null||A===void 0||A.call(b,_)}b.batch=null,b.reject=null,b.resolve=null}));for(const x of d.items){var g;(g=x.reject)===null||g===void 0||g.call(x,new Error("Missing result")),x.batch=null}}).catch(h=>{for(const x of d.items){var g;(g=x.reject)===null||g===void 0||g.call(x,h),x.batch=null}})}}function l(c){var f;const d={aborted:!1,key:c,batch:null,resolve:Aj,reject:Aj},m=new Promise((h,g)=>{var x;d.reject=g,d.resolve=h,(x=t)!==null&&x!==void 0||(t=[]),t.push(d)});return(f=n)!==null&&f!==void 0||(n=setTimeout(o)),m}return{load:l}}function k9(...e){const t=new AbortController,n=e.length;let r=0;const a=()=>{++r===n&&t.abort()};for(const o of e)o?.aborted?a():o?.addEventListener("abort",a,{once:!0});return t.signal}var Lh=Lt(Jr(),1);function I9(e){var t,n;const r=_9(e),a=(t=e.maxURLLength)!==null&&t!==void 0?t:1/0,o=(n=e.maxItems)!==null&&n!==void 0?n:1/0;return()=>{const l=m=>({validate(h){if(a===1/0&&o===1/0)return!0;if(h.length>o)return!1;const g=h.map(b=>b.path).join(","),x=h.map(b=>b.input);return bI((0,Lh.default)((0,Lh.default)({},r),{},{type:m,path:g,inputs:x,signal:null})).length<=a},async fetch(h){const g=h.map(_=>_.path).join(","),x=h.map(_=>_.input),O=k9(...h.map(_=>_.signal)),b=await E9((0,Lh.default)((0,Lh.default)({},r),{},{path:g,inputs:x,type:m,headers(){return e.headers?typeof e.headers=="function"?e.headers({opList:h}):e.headers:{}},signal:O}));return(Array.isArray(b.json)?b.json:h.map(()=>b.json)).map(_=>({meta:b.meta,json:_}))}}),c=Pj(l("query")),f=Pj(l("mutation")),d={query:c,mutation:f};return({op:m})=>Hm(h=>{/* istanbul ignore if -- @preserve */if(m.type==="subscription")throw new Error("Subscriptions are unsupported by `httpLink` - use `httpSubscriptionLink` or `wsLink`");const x=d[m.type].load(m);let O;return x.then(b=>{O=b;const S=Q7(b.json,r.transformer.output);if(!S.ok){h.error(Rl.from(S.error,{meta:b.meta}));return}h.next({context:b.meta,result:S.result}),h.complete()}).catch(b=>{h.error(Rl.from(b,{meta:O?.meta}))}),()=>{}})}}Lt(Jr(),1);const xI=(e,...t)=>typeof e=="function"?e(...t):e;Lt(ps(),1);function L9(){let e,t;return{promise:new Promise((r,a)=>{e=r,t=a}),resolve:e,reject:t}}async function $9(e){const t=await xI(e.url);if(!e.connectionParams)return t;const r=`${t.includes("?")?"&":"?"}connectionParams=1`;return t+r}async function B9(e){const t={method:"connectionParams",data:await xI(e)};return JSON.stringify(t)}Lt(ps(),1);var Bo=Lt(ps(),1);function q9(e){const{promise:t,resolve:n,reject:r}=L9();return e.addEventListener("open",()=>{e.removeEventListener("error",r),n()}),e.addEventListener("error",r),t}function z9(e,{intervalMs:t,pongTimeoutMs:n}){let r,a;function o(){r=setTimeout(()=>{e.send("PING"),a=setTimeout(()=>{e.close()},n)},t)}function l(){clearTimeout(r),o()}function c(){clearTimeout(a),l()}e.addEventListener("open",o),e.addEventListener("message",({data:f})=>{clearTimeout(r),o(),f==="PONG"&&c()}),e.addEventListener("close",()=>{clearTimeout(r),clearTimeout(a)})}var U9=class Kw{constructor(t){var n;if((0,Bo.default)(this,"id",++Kw.connectCount),(0,Bo.default)(this,"WebSocketPonyfill",void 0),(0,Bo.default)(this,"urlOptions",void 0),(0,Bo.default)(this,"keepAliveOpts",void 0),(0,Bo.default)(this,"wsObservable",b9(null)),(0,Bo.default)(this,"openPromise",null),this.WebSocketPonyfill=(n=t.WebSocketPonyfill)!==null&&n!==void 0?n:WebSocket,!this.WebSocketPonyfill)throw new Error("No WebSocket implementation found - you probably don't want to use this on the server, but if you do you need to pass a `WebSocket`-ponyfill");this.urlOptions=t.urlOptions,this.keepAliveOpts=t.keepAlive}get ws(){return this.wsObservable.get()}set ws(t){this.wsObservable.next(t)}isOpen(){return!!this.ws&&this.ws.readyState===this.WebSocketPonyfill.OPEN&&!this.openPromise}isClosed(){return!!this.ws&&(this.ws.readyState===this.WebSocketPonyfill.CLOSING||this.ws.readyState===this.WebSocketPonyfill.CLOSED)}async open(){var t=this;if(t.openPromise)return t.openPromise;t.id=++Kw.connectCount;
17const n=$9(t.urlOptions).then(r=>new t.WebSocketPonyfill(r));t.openPromise=n.then(async r=>{t.ws=r,r.addEventListener("message",function({data:a}){a==="PING"&&this.send("PONG")}),t.keepAliveOpts.enabled&&z9(r,t.keepAliveOpts),r.addEventListener("close",()=>{t.ws===r&&(t.ws=null)}),await q9(r),t.urlOptions.connectionParams&&r.send(await B9(t.urlOptions.connectionParams))});try{await t.openPromise}finally{t.openPromise=null}}async close(){var t=this;try{await t.openPromise}finally{var n;(n=t.ws)===null||n===void 0||n.close()}}};(0,Bo.default)(U9,"connectCount",0);Lt(ps(),1);Lt(Jr(),1);var n0=Lt(ps(),1),_j=Lt(Jr(),1),Vm=class{constructor(e){(0,n0.default)(this,"links",void 0),(0,n0.default)(this,"runtime",void 0),(0,n0.default)(this,"requestId",void 0),this.requestId=0,this.runtime={},this.links=e.links.map(t=>t(this.runtime))}$request(e){var t;return x9({links:this.links,op:(0,_j.default)((0,_j.default)({},e),{},{context:(t=e.context)!==null&&t!==void 0?t:{},id:++this.requestId})}).pipe(y9())}async requestAsPromise(e){var t=this;try{const n=t.$request(e);return(await Z7(n)).result.data}catch(n){throw Rl.from(n)}}query(e,t,n){return this.requestAsPromise({type:"query",path:e,input:t,context:n?.context,signal:n?.signal})}mutation(e,t,n){return this.requestAsPromise({type:"mutation",path:e,input:t,context:n?.context,signal:n?.signal})}subscription(e,t,n){return this.$request({type:"subscription",path:e,input:t,context:n.context,signal:n.signal}).subscribe({next(a){switch(a.result.type){case"state":{var o;(o=n.onConnectionStateChange)===null||o===void 0||o.call(n,a.result);break}case"started":{var l;(l=n.onStarted)===null||l===void 0||l.call(n,{context:a.context});break}case"stopped":{var c;(c=n.onStopped)===null||c===void 0||c.call(n);break}case"data":case void 0:{var f;(f=n.onData)===null||f===void 0||f.call(n,a.result.data);break}}},error(a){var o;(o=n.onError)===null||o===void 0||o.call(n,a)},complete(){var a;(a=n.onComplete)===null||a===void 0||a.call(n)}})}};const wI=Symbol.for("trpc_untypedClient"),H9={query:"query",mutate:"mutation",subscribe:"subscription"},V9=e=>H9[e];function SI(e){const t=Um(({path:n,args:r})=>{const a=[...n],o=V9(a.pop()),l=a.join(".");return e[o](l,...r)});return lA(n=>n===wI?e:t[n])}function F9(e){const t=new Vm(e);return SI(t)}function uA(e){return e[wI]}Lt(Jr(),1);Lt(Jr(),1);var K9=wa({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(e,t){function n(a){var o,l,c,f=2;for(typeof Symbol<"u"&&(l=Symbol.asyncIterator,c=Symbol.iterator);f--;){if(l&&(o=a[l])!=null)return o.call(a);if(c&&(o=a[c])!=null)return new r(o.call(a));l="@@asyncIterator",c="@@iterator"}throw new TypeError("Object is not async iterable")}function r(a){function o(l){if(Object(l)!==l)return Promise.reject(new TypeError(l+" is not an object."));var c=l.done;return Promise.resolve(l.value).then(function(f){return{value:f,done:c}})}return r=function(c){this.s=c,this.n=c.next},r.prototype={s:null,n:null,next:function(){return o(this.n.apply(this.s,arguments))},return:function(c){var f=this.s.return;return f===void 0?Promise.resolve({value:c,done:!0}):o(f.apply(this.s,arguments))},throw:function(c){var f=this.s.return;return f===void 0?Promise.reject(c):o(f.apply(this.s,arguments))}},new r(a)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}});Lt(K9(),1);Lt(Jr(),1);var G9=wa({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(e,t){function n(){var r=typeof SuppressedError=="function"?SuppressedError:function(c,f){var d=Error();return d.name="SuppressedError",d.error=c,d.suppressed=f,d},a={},o=[];function l(c,f){if(f!=null){if(Object(f)!==f)throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(c)var d=f[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(d===void 0&&(d=f[Symbol.dispose||Symbol.for("Symbol.dispose")],c))var m=d;if(typeof d!="function")throw new TypeError("Object is not disposable.");m&&(d=function(){try{m.call(f)}catch(g){return Promise.reject(g)}}),o.push({v:f,d,a:c})}else c&&o.push({d:f,a:c});return f}return{e:a,u:l.bind(null,!1),a:l.bind(null,!0),d:function(){var f,d=this.e,m=0;function h(){for(;f=o.pop();)try{if(!f.a&&m===1)return m=0,o.push(f),Promise.resolve().then(h);if(f.d){var x=f.d.call(f.v);if(f.a)return m|=2,Promise.resolve(x).then(h,g)}else m|=1}catch(O){return g(O)}if(m===1)return d!==a?Promise.reject(d):Promise.resolve();if(d!==a)throw d}function g(x){return d=d!==a?new r(x,d):x,h()}return h()}}}
17t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),OI=wa({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/OverloadYield.js"(e,t){function n(r,a){this.v=r,this.k=a}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),Y9=wa({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/awaitAsyncGenerator.js"(e,t){var n=OI();function r(a){return new n(a,0)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),X9=wa({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/wrapAsyncGenerator.js"(e,t){var n=OI();function r(o){return function(){return new a(o.apply(this,arguments))}}function a(o){var l,c;function f(m,h){try{var g=o[m](h),x=g.value,O=x instanceof n;Promise.resolve(O?x.v:x).then(function(b){if(O){var S=m==="return"?"return":"next";if(!x.k||b.done)return f(S,b);b=o[S](b).value}d(g.done?"return":"normal",b)},function(b){f("throw",b)})}catch(b){d("throw",b)}}function d(m,h){switch(m){case"return":l.resolve({value:h,done:!0});break;case"throw":l.reject(h);break;default:l.resolve({value:h,done:!1})}(l=l.next)?f(l.key,l.arg):c=null}this._invoke=function(m,h){return new Promise(function(g,x){var O={key:m,arg:h,resolve:g,reject:x,next:null};c?c=c.next=O:(l=c=O,f(m,h))})},typeof o.return!="function"&&(this.return=void 0)}a.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},a.prototype.next=function(o){return this._invoke("next",o)},a.prototype.throw=function(o){return this._invoke("throw",o)},a.prototype.return=function(o){return this._invoke("return",o)},t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}});Lt(G9(),1);Lt(Y9(),1);Lt(X9(),1);Lt(Jr(),1);function Q9(e){return Um(({path:t,args:n})=>{var r;const a=[...t],o=a.pop();if(o==="useMutation")return e[o](a,...n);if(o==="_def")return{path:a};const[l,...c]=n,f=(r=c[0])!==null&&r!==void 0?r:{};return e[o](a,l,f)})}var r0;const W9=["client","ssrContext","ssrState","abortOnUnmount"],Z9=(r0=j.createContext)===null||r0===void 0?void 0:r0.call(Bm,null),J9=e=>{switch(e){case"queryOptions":case"fetch":case"ensureData":case"prefetch":case"getData":case"setData":case"setQueriesData":return"query";case"infiniteQueryOptions":case"fetchInfinite":case"prefetchInfinite":case"getInfiniteData":case"setInfiniteData":return"infinite";case"setMutationDefaults":case"getMutationDefaults":case"isMutating":case"cancel":case"invalidate":case"refetch":case"reset":return"any"}};function eV(e){return Um(t=>{const n=[...t.path],r=n.pop(),a=[...t.args],o=a.shift(),l=J9(r),c=ua(n,o,l);return{infiniteQueryOptions:()=>e.infiniteQueryOptions(n,c,a[0]),queryOptions:()=>e.queryOptions(n,c,...a),fetch:()=>e.fetchQuery(c,...a),fetchInfinite:()=>e.fetchInfiniteQuery(c,a[0]),prefetch:()=>e.prefetchQuery(c,...a),prefetchInfinite:()=>e.prefetchInfiniteQuery(c,a[0]),ensureData:()=>e.ensureQueryData(c,...a),invalidate:()=>e.invalidateQueries(c,...a),reset:()=>e.resetQueries(c,...a),refetch:()=>e.refetchQueries(c,...a),cancel:()=>e.cancelQuery(c,...a),setData:()=>{e.setQueryData(c,a[0],a[1])},setQueriesData:()=>e.setQueriesData(c,a[0],a[1],a[2]),setInfiniteData:()=>{e.setInfiniteQueryData(c,a[0],a[1])},getData:()=>e.getQueryData(c),getInfiniteData:()=>e.getInfiniteQueryData(c),setMutationDefaults:()=>e.setMutationDefaults(fp(n),o),getMutationDefaults:()=>e.getMutationDefaults(fp(n)),isMutating:()=>e.isMutating({mutationKey:fp(n)})}[r]()})}function tV(e){const t=SI(e.client),n=eV(e);return lA(r=>{const a=r;return a==="client"?t:W9.includes(a)?e[a]:n[r]})}var nV=hs(Zf(),1);function Cj(e){const t=e instanceof Vm?e:uA(e);return Um(n=>{const r=n.path,a=r.join("."),[o,l]=n.args;return(0,nV.default)({queryKey:ua(r,o,"query"),queryFn:()=>t.query(a,o,l?.trpc)},l)})}var a0=hs(Zf(),1);function jn(e,t,n){var r;const a=e[0];let o=(r=e[1])===null||r===void 0?void 0:r.input;if(n){var l;o=(0,a0.default)((0,a0.default)((0,a0.default)({},(l=o)!==null&&l!==void 0?l:{}),n.pageParam?{cursor:n.pageParam}:{}),{},{direction:n.direction})}return[a.join("."),o,t?.trpc]}var rV=no({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(e,t){function n(a){var o,l,c,f=2;for(typeof Symbol<"u"&&(l=Symbol.asyncIterator,c=Symbol.iterator);f--;){if(l&&(o=a[l])!=null)return o.call(a);if(c&&(o=a[c])!=null)return new r(o.call(a));l="@@asyncIterator",c="@@iterator"}throw new TypeError("Object is not async iterable")}function r(a){function o(l){if(Object(l)!==l)return Promise.reject(new TypeError(l+" is not an object."));var c=l.done;return Promise.resolve(l.value).then(function(f){return{value:f,done:c}})}return r=function(c){this.s=c,this.n=c.next},r.prototype={s:null,n:null,next:function(){return o(this.n.apply(this.s,arguments))},return:function(c){var f=this.s.return;return f===void 0?Promise.resolve({value:c,done:!0}):o(f.apply(this.s,arguments))},throw:function(c){var f=this.s.return;return f===void 0?Promise.reject(c):o(f.apply(this.s,arguments))}},new r(a)}
17t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),aV=hs(rV(),1);function Gw(e){return{path:e.path.join(".")}}function bu(e){const t=Gw(e);return j.useMemo(()=>t,[t])}async function AI(e,t,n){const a=t.getQueryCache().build(t,{queryKey:n});a.setState({data:[],status:"success"});const o=[];var l=!1,c=!1,f;try{for(var d=(0,aV.default)(e),m;l=!(m=await d.next()).done;l=!1){const h=m.value;o.push(h),a.setState({data:[...o]})}}catch(h){c=!0,f=h}finally{try{l&&d.return!=null&&await d.return()}finally{if(c)throw f}}return o}var Qe=hs(Zf(),1);function iV(e){const{client:t,queryClient:n}=e,r=t instanceof Vm?t:uA(t);return{infiniteQueryOptions:(a,o,l)=>{var c,f;const d=((c=o[1])===null||c===void 0?void 0:c.input)===sr,m=async h=>{var g;const x=(0,Qe.default)((0,Qe.default)({},l),{},{trpc:(0,Qe.default)((0,Qe.default)({},l?.trpc),!(l==null||(g=l.trpc)===null||g===void 0)&&g.abortOnUnmount?{signal:h.signal}:{signal:null})});return await r.query(...jn(o,x,{direction:h.direction,pageParam:h.pageParam}))};return Object.assign((0,Qe.default)((0,Qe.default)({},l),{},{initialData:l?.initialData,queryKey:o,queryFn:d?sr:m,initialPageParam:(f=l?.initialCursor)!==null&&f!==void 0?f:null}),{trpc:Gw({path:a})})},queryOptions:(a,o,l)=>{var c;const f=((c=o[1])===null||c===void 0?void 0:c.input)===sr,d=async m=>{var h;const g=(0,Qe.default)((0,Qe.default)({},l),{},{trpc:(0,Qe.default)((0,Qe.default)({},l?.trpc),!(l==null||(h=l.trpc)===null||h===void 0)&&h.abortOnUnmount?{signal:m.signal}:{signal:null})}),x=await r.query(...jn(o,g));return iI(x)?AI(x,n,o):x};return Object.assign((0,Qe.default)((0,Qe.default)({},l),{},{initialData:l?.initialData,queryKey:o,queryFn:f?sr:d}),{trpc:Gw({path:a})})},fetchQuery:(a,o)=>n.fetchQuery((0,Qe.default)((0,Qe.default)({},o),{},{queryKey:a,queryFn:()=>r.query(...jn(a,o))})),fetchInfiniteQuery:(a,o)=>{var l;return n.fetchInfiniteQuery((0,Qe.default)((0,Qe.default)({},o),{},{queryKey:a,queryFn:({pageParam:c,direction:f})=>r.query(...jn(a,o,{pageParam:c,direction:f})),initialPageParam:(l=o?.initialCursor)!==null&&l!==void 0?l:null}))},prefetchQuery:(a,o)=>n.prefetchQuery((0,Qe.default)((0,Qe.default)({},o),{},{queryKey:a,queryFn:()=>r.query(...jn(a,o))})),prefetchInfiniteQuery:(a,o)=>{var l;return n.prefetchInfiniteQuery((0,Qe.default)((0,Qe.default)({},o),{},{queryKey:a,queryFn:({pageParam:c,direction:f})=>r.query(...jn(a,o,{pageParam:c,direction:f})),initialPageParam:(l=o?.initialCursor)!==null&&l!==void 0?l:null}))},ensureQueryData:(a,o)=>n.ensureQueryData((0,Qe.default)((0,Qe.default)({},o),{},{queryKey:a,queryFn:()=>r.query(...jn(a,o))})),invalidateQueries:(a,o,l)=>n.invalidateQueries((0,Qe.default)((0,Qe.default)({},o),{},{queryKey:a}),l),resetQueries:(a,o,l)=>n.resetQueries((0,Qe.default)((0,Qe.default)({},o),{},{queryKey:a}),l),refetchQueries:(a,o,l)=>n.refetchQueries((0,Qe.default)((0,Qe.default)({},o),{},{queryKey:a}),l),cancelQuery:(a,o)=>n.cancelQueries({queryKey:a},o),setQueryData:(a,o,l)=>n.setQueryData(a,o,l),setQueriesData:(a,o,l,c)=>n.setQueriesData((0,Qe.default)((0,Qe.default)({},o),{},{queryKey:a}),l,c),getQueryData:a=>n.getQueryData(a),setInfiniteQueryData:(a,o,l)=>n.setQueryData(a,o,l),getInfiniteQueryData:a=>n.getQueryData(a),setMutationDefaults:(a,o)=>{const l=a[0],c=f=>r.mutation(...jn([l,{input:f}],e));return n.setMutationDefaults(a,typeof o=="function"?o({canonicalMutationFn:c}):o)},getMutationDefaults:a=>n.getMutationDefaults(a),isMutating:a=>n.isMutating((0,Qe.default)((0,Qe.default)({},a),{},{exact:!0}))}}var ye=hs(Zf());const Tj=(e,t)=>new Proxy(e,{get(r,a){return t(a),r[a]}});function oV(e){var t,n;const r=(t=void 0)!==null&&t!==void 0?t:P=>P.originalFn(),a=(n=void 0)!==null&&n!==void 0?n:Z9,o=F9,l=P=>{var E;const{abortOnUnmount:T=!1,queryClient:D,ssrContext:L}=P,[U,I]=j.useState((E=P.ssrState)!==null&&E!==void 0?E:!1),z=P.client instanceof Vm?P.client:uA(P.client),F=j.useMemo(()=>iV({client:z,queryClient:D}),[z,D]),K=j.useMemo(()=>(0,ye.default)({abortOnUnmount:T,queryClient:D,client:z,ssrContext:L??null,ssrState:U},F),[T,z,F,D,L,U]);return j.useEffect(()=>{I(q=>q?"mounted":!1)},[]),v.jsx(a.Provider,{value:K,children:P.children})};function c(){const P=j.useContext(a);if(!P)throw new Error("Unable to find tRPC Context. Did you forget to wrap your Ap
17p inside `withTRPC` HoC?");return P}function f(P,E){var T;const{queryClient:D,ssrState:L}=c();return L&&L!=="mounted"&&((T=D.getQueryCache().find({queryKey:P}))===null||T===void 0?void 0:T.state.status)==="error"?(0,ye.default)({retryOnMount:!1},E):E}function d(P,E,T){var D,L,U,I,z;const F=c(),{abortOnUnmount:K,client:q,ssrState:R,queryClient:$,prefetchQuery:H}=F,W=ua(P,E,"query"),ae=$.getQueryDefaults(W),B=E===sr;typeof window>"u"&&R==="prepass"&&(T==null||(D=T.trpc)===null||D===void 0?void 0:D.ssr)!==!1&&((L=T?.enabled)!==null&&L!==void 0?L:ae?.enabled)!==!1&&!B&&!$.getQueryCache().find({queryKey:W})&&H(W,T);const Y=f(W,(0,ye.default)((0,ye.default)({},ae),T)),X=(U=(I=T==null||(z=T.trpc)===null||z===void 0?void 0:z.abortOnUnmount)!==null&&I!==void 0?I:void 0)!==null&&U!==void 0?U:K,J=D7((0,ye.default)((0,ye.default)({},Y),{},{queryKey:W,queryFn:B?E:async ue=>{const he=(0,ye.default)((0,ye.default)({},Y),{},{trpc:(0,ye.default)((0,ye.default)({},Y?.trpc),X?{signal:ue.signal}:{signal:null})}),fe=await q.query(...jn(W,he));return iI(fe)?AI(fe,$,W):fe}}),$);return J.trpc=bu({path:P}),J}function m(P,E,T){var D,L,U;const I=c(),z=ua(P,E,"query"),F=E===sr,K=(D=(L=T==null||(U=T.trpc)===null||U===void 0?void 0:U.abortOnUnmount)!==null&&L!==void 0?L:void 0)!==null&&D!==void 0?D:I.abortOnUnmount;L7((0,ye.default)((0,ye.default)({},T),{},{queryKey:z,queryFn:F?E:q=>{const R={trpc:(0,ye.default)((0,ye.default)({},T?.trpc),K?{signal:q.signal}:{})};return I.client.query(...jn(z,R))}}))}function h(P,E,T){var D,L,U;const I=c(),z=ua(P,E,"query"),F=(D=(L=T==null||(U=T.trpc)===null||U===void 0?void 0:U.abortOnUnmount)!==null&&L!==void 0?L:void 0)!==null&&D!==void 0?D:I.abortOnUnmount,K=R7((0,ye.default)((0,ye.default)({},T),{},{queryKey:z,queryFn:q=>{const R=(0,ye.default)((0,ye.default)({},T),{},{trpc:(0,ye.default)((0,ye.default)({},T?.trpc),F?{signal:q.signal}:{signal:null})});return I.client.query(...jn(z,R))}}),I.queryClient);return K.trpc=bu({path:P}),[K.data,K]}function g(P,E){const{client:T,queryClient:D}=c(),L=fp(P),U=D.defaultMutationOptions(D.getMutationDefaults(L)),I=B7((0,ye.default)((0,ye.default)({},E),{},{mutationKey:L,mutationFn:z=>T.mutation(...jn([P,{input:z}],E)),onSuccess(...z){var F,K;return r({originalFn:()=>{var R,$,H;return(R=E==null||($=E.onSuccess)===null||$===void 0?void 0:$.call(E,...z))!==null&&R!==void 0?R:U==null||(H=U.onSuccess)===null||H===void 0?void 0:H.call(U,...z)},queryClient:D,meta:(F=(K=E?.meta)!==null&&K!==void 0?K:U?.meta)!==null&&F!==void 0?F:{}})}}),D);return I.trpc=bu({path:P}),I}const x={data:void 0,error:null,status:"idle"},O={data:void 0,error:null,status:"connecting"};/* istanbul ignore next -- @preserve */function b(P,E,T){var D;const L=(D=T?.enabled)!==null&&D!==void 0?D:E!==sr,U=Xi(ua(P,E,"any")),{client:I}=c(),z=j.useRef(T);j.useEffect(()=>{z.current=T});const[F]=j.useState(new Set([])),K=j.useCallback(B=>{F.add(B)},[F]),q=j.useRef(null),R=j.useCallback(B=>{const Y=H.current,X=H.current=B(Y);let J=!1;for(const ue of F)if(Y[ue]!==X[ue]){J=!0;break}J&&ae(Tj(X,K))},[K,F]),$=j.useCallback(()=>{var B;if((B=q.current)===null||B===void 0||B.unsubscribe(),!L){R(()=>(0,ye.default)((0,ye.default)({},x),{},{reset:$}));return}R(()=>(0,ye.default)((0,ye.default)({},O),{},{reset:$}));const Y=I.subscription(P.join("."),E??void 0,{onStarted:()=>{var X,J;(X=(J=z.current).onStarted)===null||X===void 0||X.call(J),R(ue=>(0,ye.default)((0,ye.default)({},ue),{},{status:"pending",error:null}))},onData:X=>{var J,ue;(J=(ue=z.current).onData)===null||J===void 0||J.call(ue,X),R(he=>(0,ye.default)((0,ye.default)({},he),{},{status:"pending",data:X,error:null}))},onError:X=>{var J,ue;(J=(ue=z.current).onError)===null||J===void 0||J.call(ue,X),R(he=>(0,ye.default)((0,ye.default)({},he),{},{status:"error",error:X}))},onConnectionStateChange:X=>{R(J=>{switch(X.state){case"idle":return(0,ye.default)((0,ye.default)({},J),{},{status:X.state,error:null,data:void 0});case"connecting":return(0,ye.default)((0,ye.default)({},J),{},{error:X.error,status:X.state});case"pending":return J}})},onComplete:()=>{var X,J;(X=(J=z.current).onComplete)===null||X===void 0||X.call(J),R(ue=>(0,ye.default)((0,ye.default)({},ue),{},{status:"idle",error:null,data:void 0}))}});q.current=Y},[I,U,L,R]);j.useEffect(()=>($(),()=>{var B;(B=q.current)===null||B===void 0||B.unsubscribe()}),[$]);const H=j.useRef(L?(0,ye.default)((0,ye.default)({},O),{},{reset:$}):(0,ye.default)((0,ye.default)({},x),{},{reset:$})),[W,ae]=j.useState(Tj(H.current,K));return W}function S(P,E,T){var D,L,U,I,z;const{client:F,ssrState:K,prefetchInfiniteQuery:q,queryClient:R,abortOnUnmount:$}=c(),H=ua(P,E,"infinite"),W=R.getQueryDefaults(H),ae=E===sr;typeof window>"u"&&K==="prepass"&&(T==null||(D=T.trpc)===null||D===void 0?void 0:D.ssr)!==!1&&((L=T?.enabled)!==null&&L!==void 0?L:W?.enabled)!==!1&&!ae&&!R.getQueryCache().find({queryKey:H}
17)&&q(H,(0,ye.default)((0,ye.default)({},W),T));const B=f(H,(0,ye.default)((0,ye.default)({},W),T)),Y=(U=T==null||(I=T.trpc)===null||I===void 0?void 0:I.abortOnUnmount)!==null&&U!==void 0?U:$,X=q7((0,ye.default)((0,ye.default)({},B),{},{initialPageParam:(z=T.initialCursor)!==null&&z!==void 0?z:null,persister:T.persister,queryKey:H,queryFn:ae?E:J=>{var ue;const he=(0,ye.default)((0,ye.default)({},B),{},{trpc:(0,ye.default)((0,ye.default)({},B?.trpc),Y?{signal:J.signal}:{signal:null})});return F.query(...jn(H,he,{pageParam:(ue=J.pageParam)!==null&&ue!==void 0?ue:T.initialCursor,direction:J.direction}))}}),R);return X.trpc=bu({path:P}),X}function A(P,E,T){var D,L,U;const I=c(),z=ua(P,E,"infinite"),F=I.queryClient.getQueryDefaults(z),K=E===sr,q=f(z,(0,ye.default)((0,ye.default)({},F),T)),R=(D=T==null||(L=T.trpc)===null||L===void 0?void 0:L.abortOnUnmount)!==null&&D!==void 0?D:I.abortOnUnmount;$7((0,ye.default)((0,ye.default)({},T),{},{initialPageParam:(U=T.initialCursor)!==null&&U!==void 0?U:null,queryKey:z,queryFn:K?E:$=>{var H;const W=(0,ye.default)((0,ye.default)({},q),{},{trpc:(0,ye.default)((0,ye.default)({},q?.trpc),R?{signal:$.signal}:{})});return I.client.query(...jn(z,W,{pageParam:(H=$.pageParam)!==null&&H!==void 0?H:T.initialCursor,direction:$.direction}))}}))}function _(P,E,T){var D,L,U;const I=c(),z=ua(P,E,"infinite"),F=I.queryClient.getQueryDefaults(z),K=f(z,(0,ye.default)((0,ye.default)({},F),T)),q=(D=T==null||(L=T.trpc)===null||L===void 0?void 0:L.abortOnUnmount)!==null&&D!==void 0?D:I.abortOnUnmount,R=k7((0,ye.default)((0,ye.default)({},T),{},{initialPageParam:(U=T.initialCursor)!==null&&U!==void 0?U:null,queryKey:z,queryFn:$=>{var H;const W=(0,ye.default)((0,ye.default)({},K),{},{trpc:(0,ye.default)((0,ye.default)({},K?.trpc),q?{signal:$.signal}:{})});return I.client.query(...jn(z,W,{pageParam:(H=$.pageParam)!==null&&H!==void 0?H:T.initialCursor,direction:$.direction}))}}),I.queryClient);return R.trpc=bu({path:P}),[R.data,R]}return{Provider:l,createClient:o,useContext:c,useUtils:c,useQuery:d,usePrefetchQuery:m,useSuspenseQuery:h,useQueries:(P,E)=>{const{ssrState:T,queryClient:D,prefetchQuery:L,client:U}=c(),I=Cj(U),z=P(I);if(typeof window>"u"&&T==="prepass")for(const K of z){var F;const q=K;((F=q.trpc)===null||F===void 0?void 0:F.ssr)!==!1&&!D.getQueryCache().find({queryKey:q.queryKey})&&L(q.queryKey,q)}return aI({queries:z.map(K=>(0,ye.default)((0,ye.default)({},K),{},{queryKey:K.queryKey})),combine:E?.combine},D)},useSuspenseQueries:P=>{const{queryClient:E,client:T}=c(),D=Cj(T),L=P(D),U=I7({queries:L.map(I=>(0,ye.default)((0,ye.default)({},I),{},{queryFn:I.queryFn,queryKey:I.queryKey}))},E);return[U.map(I=>I.data),U]},useMutation:g,useSubscription:b,useInfiniteQuery:S,usePrefetchInfiniteQuery:A,useSuspenseInfiniteQuery:_}}function sV(e){const t=Q9(e);return lA(n=>n==="useContext"||n==="useUtils"?()=>{const r=e.useUtils();return j.useMemo(()=>tV(r),[r])}:e.hasOwnProperty(n)?e[n]:t[n])}function lV(e){const t=oV();return sV(t)}const dt=lV(),cV="app_session_id",uV="Please login (10001)",fV="__Host-oauth_state",dV=e=>btoa(JSON.stringify(e));var i0={exports:{}},xu={},o0={exports:{}},s0={};/** 18 * @license React 19 * scheduler.production.js 20 * 21 * Copyright (c) Meta Platforms, Inc. and 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 jj;function hV(){return jj||(jj=1,(function(e){function t(R,$){var H=R.length;R.push($);e:for(;0<H;){var W=H-1>>>1,ae=R[W];if(0<a(ae,$))R[W]=$,R[H]=ae,H=W;else break e}}function n(R){return R.length===0?null:R[0]}function r(R){if(R.length===0)return null;var $=R[0],H=R.pop();if(H!==$){R[0]=H;e:for(var W=0,ae=R.length,B=ae>>>1;W<B;){var Y=2*(W+1)-1,X=R[Y],J=Y+1,ue=R[J];if(0>a(X,H))J<ae&&0>a(ue,X)?(R[W]=ue,R[J]=H,W=J):(R[W]=X,R[Y]=H,W=Y);else if(J<ae&&0>a(ue,H))R[W]=ue,R[J]=H,W=J;else break e}}return $}function a(R,$){var H=R.sortIndex-$.sortIndex;return H!==0?H:R.id-$.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var l=Date,c=l.now();e.unstable_now=function(){return l.now()-c}}var f=[],d=[],m=1,h=null,g=3,x=!1,O=!1,b=!1,S=!1,A=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,C=typeof setImmediate<"u"?setImmediate:null;function M(R){for(var $=n(d);$!==null;){if($.callback===null)r(d);else if($.startTime<=R)r(d),$.sortIndex=$.expirationTime,t(f,$);else break;$=n(d)}}function P(R){if(b=!1,M(R),!O)if(n(f)!==null)O=!0,E||(E=!0,z());else{var $=n(d);$!==null&&q(P,$.startTime-R)}}var E=!1,T=-1,D=5,L=-1;function U(){return S?!0:!(e.unstable_now()-L<D)}function I(){if(S=!1,E){var R=e.unstable_now();L=R;var $=!0;try{e:{O=!1,b&&(b=!1,_(T),T=-1),x=!0;var H=g;
vendor: 7,105 bytes, lines 25-41
25try{t:{for(M(R),h=n(f);h!==null&&!(h.expirationTime>R&&U());){var W=h.callback;if(typeof W=="function"){h.callback=null,g=h.priorityLevel;var ae=W(h.expirationTime<=R);if(R=e.unstable_now(),typeof ae=="function"){h.callback=ae,M(R),$=!0;break t}h===n(f)&&r(f),M(R)}else r(f);h=n(f)}if(h!==null)$=!0;else{var B=n(d);B!==null&&q(P,B.startTime-R),$=!1}}break e}finally{h=null,g=H,x=!1}$=void 0}}finally{$?z():E=!1}}}var z;if(typeof C=="function")z=function(){C(I)};else if(typeof MessageChannel<"u"){var F=new MessageChannel,K=F.port2;F.port1.onmessage=I,z=function(){K.postMessage(null)}}else z=function(){A(I,0)};function q(R,$){T=A(function(){R(e.unstable_now())},$)}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(R){R.callback=null},e.unstable_forceFrameRate=function(R){0>R||125<R?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):D=0<R?Math.floor(1e3/R):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_next=function(R){switch(g){case 1:case 2:case 3:var $=3;break;default:$=g}var H=g;g=$;try{return R()}finally{g=H}},e.unstable_requestPaint=function(){S=!0},e.unstable_runWithPriority=function(R,$){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var H=g;g=R;try{return $()}finally{g=H}},e.unstable_scheduleCallback=function(R,$,H){var W=e.unstable_now();switch(typeof H=="object"&&H!==null?(H=H.delay,H=typeof H=="number"&&0<H?W+H:W):H=W,R){case 1:var ae=-1;break;case 2:ae=250;break;case 5:ae=1073741823;break;case 4:ae=1e4;break;default:ae=5e3}return ae=H+ae,R={id:m++,callback:$,priorityLevel:R,startTime:H,expirationTime:ae,sortIndex:-1},H>W?(R.sortIndex=H,t(d,R),n(f)===null&&R===n(d)&&(b?(_(T),T=-1):b=!0,q(P,H-W))):(R.sortIndex=ae,t(f,R),O||x||(O=!0,E||(E=!0,z()))),R},e.unstable_shouldYield=U,e.unstable_wrapCallback=function(R){var $=g;return function(){var H=g;g=$;try{return R.apply(this,arguments)}finally{g=H}}}})(s0)),s0}var Ej;function pV(){return Ej||(Ej=1,o0.exports=hV()),o0.exports}var l0={exports:{}},mn={};/** 26 * @license React 27 * react-dom.production.js 28 * 29 * Copyright (c) Meta Platforms, Inc. and 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 Nj;function mV(){if(Nj)return mn;Nj=1;var e=$m();function t(f){var d="https://react.dev/errors/"+f;if(1<arguments.length){d+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)d+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+f+"; visit "+d+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},a=Symbol.for("react.portal");function o(f,d,m){var h=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:h==null?null:""+h,children:f,containerInfo:d,implementation:m}}var l=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(f,d){if(f==="font")return"";if(typeof d=="string")return d==="use-credentials"?d:""}return mn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,mn.createPortal=function(f,d){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)throw Error(t(299));return o(f,d,null,m)},mn.flushSync=function(f){var d=l.T,m=r.p;try{if(l.T=null,r.p=2,f)return f()}finally{l.T=d,r.p=m,r.d.f()}},mn.preconnect=function(f,d){typeof f=="string"&&(d?(d=d.crossOrigin,d=typeof d=="string"?d==="use-credentials"?d:"":void 0):d=null,r.d.C(f,d))},mn.prefetchDNS=function(f){typeof f=="string"&&r.d.D(f)},mn.preinit=function(f,d){if(typeof f=="string"&&d&&typeof d.as=="string"){var m=d.as,h=c(m,d.crossOrigin),g=typeof d.integrity=="string"?d.integrity:void 0,x=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;m==="style"?r.d.S(f,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:h,integrity:g,fetchPriority:x}):m==="script"&&r.d.X(f,{crossOrigin:h,integrity:g,fetchPriority:x,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},mn.preinitModule=function(f,d){if(typeof f=="string")if(typeof d=="object"&&d!==null){if(d.as==null||d.as==="script"){var m=c(d.as,d.crossOrigin);r.d.M(f,{crossOrigin:m,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0})}}else d==null&&r.d.M(f)},mn.preload=function(f,d){if(typeof f=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var m=d.as,h=c(m,d.crossOrigin);r.d.L(f,m,{crossOrigin:h,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0,type:typeof d.type=="string"?d.type:void 0,fetchPriority:typeof d.fetchPriority=="string"?d.fetchPriority:void 0,referrerPolicy:typeof d.referrerPolicy=="string"?d.referrerPolicy:void 0,imageSrcSet:typeof d.imageSrcSet=="string"?d.imageSrcSet:void 0,imageSizes:typeof d.imageSizes=="string"?d.imageSizes:void 0,media:typeof d.media=="string"?d.media:void 0})}},mn.preloadModule=function(f,d){if(typeof f=="string")if(d){var m=c(d.as,d.crossOrigin);r.d.m(f,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:m,integrity:typeof d.integrity=="string"?d.integrity:void 0})}else r.d.m(f)},mn.requestFormReset=function(f){r.d.r(f)},mn.unstable_batchedUpdates=function(f,d){return f(d)},mn.useFormState=function(f,d,m){return l.H.useFormState(f,d,m)},mn.useFormStatus=function(){return l.H.useHostTransitionStatus()},mn.version="19.2.1",mn}var Mj;function PI(){if(Mj)return l0.exports;Mj=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(),l0.exports=mV(),l0.exports}/** 34 * @license React 35 * react-dom-client.production.js 36 * 37 * Copyright (c) Meta Platforms, Inc. and affiliates. 38 * 39 * This source code is licensed under the MIT license found in the 40 * LICENSE file in the root directory of this source tree. 41 */var Dj;function gV(){if(Dj)return xu;Dj=1;var e=pV(),t=$m(),n=PI();function r(i){var s="https://react.dev/errors/"+i;if(1<arguments.length){s+="?args[]="+encodeURIComponent(arguments[1]);for(var u=2;u<arguments.length;u++)s+="&args[]="+encodeURIComponent(arguments[u])}return"Minified React error #"+i+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)}function o(i){var s=i,u=i;if(i.alternate)for(;s.return;)s=s.return;else{i=s;do s=i,(s.flags&4098)!==0&&(u=s.return),i=s.return;while(i)}return s.tag===3?u:null}function l(i){if(i.tag===13){var s=i.memoizedState;if(s===null&&(i=i.alternate,i!==null&&(s=i.memoizedState)),s!==null)return s.dehydrated}return null}
vendor: 13,471 bytes, lines 41-48
41function c(i){if(i.tag===31){var s=i.memoizedState;if(s===null&&(i=i.alternate,i!==null&&(s=i.memoizedState)),s!==null)return s.dehydrated}return null}function f(i){if(o(i)!==i)throw Error(r(188))}function d(i){var s=i.alternate;if(!s){if(s=o(i),s===null)throw Error(r(188));return s!==i?null:i}for(var u=i,p=s;;){var y=u.return;if(y===null)break;var w=y.alternate;if(w===null){if(p=y.return,p!==null){u=p;continue}break}if(y.child===w.child){for(w=y.child;w;){if(w===u)return f(y),i;if(w===p)return f(y),s;w=w.sibling}throw Error(r(188))}if(u.return!==p.return)u=y,p=w;else{for(var N=!1,k=y.child;k;){if(k===u){N=!0,u=y,p=w;break}if(k===p){N=!0,p=y,u=w;break}k=k.sibling}if(!N){for(k=w.child;k;){if(k===u){N=!0,u=w,p=y;break}if(k===p){N=!0,p=w,u=y;break}k=k.sibling}if(!N)throw Error(r(189))}}if(u.alternate!==p)throw Error(r(190))}if(u.tag!==3)throw Error(r(188));return u.stateNode.current===u?i:s}function m(i){var s=i.tag;if(s===5||s===26||s===27||s===6)return i;for(i=i.child;i!==null;){if(s=m(i),s!==null)return s;i=i.sibling}return null}var h=Object.assign,g=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),O=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),_=Symbol.for("react.consumer"),C=Symbol.for("react.context"),M=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),E=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),D=Symbol.for("react.lazy"),L=Symbol.for("react.activity"),U=Symbol.for("react.memo_cache_sentinel"),I=Symbol.iterator;function z(i){return i===null||typeof i!="object"?null:(i=I&&i[I]||i["@@iterator"],typeof i=="function"?i:null)}var F=Symbol.for("react.client.reference");function K(i){if(i==null)return null;if(typeof i=="function")return i.$$typeof===F?null:i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case b:return"Fragment";case A:return"Profiler";case S:return"StrictMode";case P:return"Suspense";case E:return"SuspenseList";case L:return"Activity"}if(typeof i=="object")switch(i.$$typeof){case O:return"Portal";case C:return i.displayName||"Context";case _:return(i._context.displayName||"Context")+".Consumer";case M:var s=i.render;return i=i.displayName,i||(i=s.displayName||s.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case T:return s=i.displayName||null,s!==null?s:K(i.type)||"Memo";case D:s=i._payload,i=i._init;try{return K(i(s))}catch{}}return null}var q=Array.isArray,R=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H={pending:!1,data:null,method:null,action:null},W=[],ae=-1;function B(i){return{current:i}}function Y(i){0>ae||(i.current=W[ae],W[ae]=null,ae--)}function X(i,s){ae++,W[ae]=i.current,i.current=s}var J=B(null),ue=B(null),he=B(null),fe=B(null);function me(i,s){switch(X(he,s),X(ue,i),X(J,null),s.nodeType){case 9:case 11:i=(i=s.documentElement)&&(i=i.namespaceURI)?MT(i):0;break;default:if(i=s.tagName,s=s.namespaceURI)s=MT(s),i=DT(s,i);else switch(i){case"svg":i=1;break;case"math":i=2;break;default:i=0}}Y(J),X(J,i)}function le(){Y(J),Y(ue),Y(he)}function pe(i){i.memoizedState!==null&&X(fe,i);var s=J.current,u=DT(s,i.type);s!==u&&(X(ue,i),X(J,u))}function ve(i){ue.current===i&&(Y(J),Y(ue)),fe.current===i&&(Y(fe),pu._currentValue=H)}var ie,Re;function Pe(i){if(ie===void 0)try{throw Error()}catch(u){var s=u.stack.trim().match(/\n( *(at )?)/);ie=s&&s[1]||"",Re=-1<u.stack.indexOf(` 42 at`)?" (<anonymous>)":-1<u.stack.indexOf("@")?"@unknown:0:0":""}return` 43`+ie+i+Re}var nt=!1;function Je(i,s){if(!i||nt)return"";nt=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var p={DetermineComponentFrameRoot:function(){try{if(s){var de=function(){throw Error()};if(Object.defineProperty(de.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(de,[])}catch(re){var ne=re}Reflect.construct(i,[],de)}else{try{de.call()}catch(re){ne=re}i.call(de.prototype)}}else{try{throw Error()}catch(re){ne=re}(de=i())&&typeof de.catch=="function"&&de.catch(function(){})}}catch(re){if(re&&ne&&typeof re.stack=="string")return[re.stack,ne.stack]}return[null,null]}};p.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var y=Object.getOwnPropertyDescriptor(p.DetermineComponentFrameRoot,"name");y&&y.configurable&&Object.defineProperty(p.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var w=p.DetermineComponentFrameRoot(),N=w[0],k=w[1];if(N&&k){var G=N.split(` 44`),te=k.split(` 45`);for(y=p=0;p<G.length&&!G[p].includes("DetermineComponentFrameRoot");)p++;for(;y<te.length&&!te[y].includes("DetermineComponentFrameRoot");)y++;if(p===G.length||y===te.length)for(p=G.length-1,y=te.length-1;1<=p&&0<=y&&G[p]!==te[y];)y--;for(;1<=p&&0<=y;p--,y--)if(G[p]!==te[y]){if(p!==1||y!==1)do if(p--,y--,0>y||G[p]!==te[y]){var oe=` 46`+G[p].replace(" at new "," at ");return i.displayName&&oe.includes("<anonymous>")&&(oe=oe.replace("<anonymous>",i.displayName)),oe}while(1<=p&&0<=y);break}}}finally{nt=!1,Error.prepareStackTrace=u}return(u=i?i.displayName||i.name:"")?Pe(u):""}function pt(i,s){switch(i.tag){case 26:case 27:case 5:return Pe(i.type);case 16:return Pe("Lazy");case 13:return i.child!==s&&s!==null?Pe("Suspense Fallback"):Pe("Suspense");case 19:return Pe("SuspenseList");case 0:case 15:return Je(i.type,!1);case 11:return Je(i.type.render,!1);case 1:return Je(i.type,!0);case 31:return Pe("Activity");default:return""}}function Mn(i){try{var s="",u=null;do s+=pt(i,u),u=i,i=i.return;while(i);return s}catch(p){return` 47Error generating stack: `+p.message+` 48`+p.stack}}var $t=Object.prototype.hasOwnProperty,ta=e.unstable_scheduleCallback,Xn=e.unstable_cancelCallback,Ot=e.unstable_shouldYield,dr=e.unstable_requestPaint,Zt=e.unstable_now,bs=e.unstable_getCurrentPriorityLevel,fo=e.unstable_ImmediatePriority,bd=e.unstable_UserBlockingPriority,ho=e.unstable_NormalPriority,Cc=e.unstable_LowPriority,Aa=e.unstable_IdlePriority,xd=e.log,di=e.unstable_setDisableYieldValue,po=null,Cn=null;function Lr(i){if(typeof xd=="function"&&di(i),Cn&&typeof Cn.setStrictMode=="function")try{Cn.setStrictMode(po,i)}catch{}}var hn=Math.clz32?Math.clz32:na,Ug=Math.log,Tc=Math.LN2;function na(i){return i>>>=0,i===0?32:31-(Ug(i)/Tc|0)|0}var xs=256,ws=262144,mo=4194304;function ra(i){var s=i&42;if(s!==0)return s;switch(i&-i){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return i&261888;case 262144:case 524288:case 1048576:case 2097152:return i&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return i&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return i}}function Ee(i,s,u){var p=i.pendingLanes;if(p===0)return 0;var y=0,w=i.suspendedLanes,N=i.pingedLanes;i=i.warmLanes;var k=p&134217727;return k!==0?(p=k&~w,p!==0?y=ra(p):(N&=k,N!==0?y=ra(N):u||(u=k&~i,u!==0&&(y=ra(u))))):(k=p&~w,k!==0?y=ra(k):N!==0?y=ra(N):u||(u=p&~i,u!==0&&(y=ra(u)))),y===0?0:s!==0&&s!==y&&(s&w)===0&&(w=y&-y,u=s&-s,w>=u||w===32&&(u&4194048)!==0)?s:y}function bt(i,s){return(i.pendingLanes&~(i.suspendedLanes&~i.pingedLanes)&s)===0}function Jt(i,s){switch(i){case 1:case 2:case 4:case 8:case 64:return s+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return s+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function pn(){var i=mo;return mo<<=1,(mo&62914560)===0&&(mo=4194304),i}function hi(i){for(var s=[],u=0;31>u;u++)s.push(i);return s}function At(i,s){i.pendingLanes|=s,s!==268435456&&(i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0)}function Dn(i,s,u,p,y,w){var N=i.pendingLanes;i.pendingLanes=u,i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0,i.expiredLanes&=u,i.entangledLanes&=u,i.errorRecoveryDisabledLanes&=u,i.shellSuspendCounter=0;var k=i.entanglements,G=i.expirationTimes,te=i.hiddenUpdates;for(u=N&~u;0<u;){var oe=31-hn(u),de=1<<oe;k[oe]=0,G[oe]=-1;var ne=te[oe];if(ne!==null)for(te[oe]=null,oe=0;oe<ne.length;oe++){var re=ne[oe];re!==null&&(re.lane&=-536870913)}u&=~de}p!==0&&go(i,p,0),w!==0&&y===0&&i.tag!==0&&(i.suspendedLanes|=w&~(N&~s))}function go(i,s,u){i.pendingLanes|=s,i.suspendedLanes&=~s;var p=31-hn(s);i.entangledLanes|=s,i.entanglements[p]=i.entanglements[p]|1073741824|u&261930}function Rn(i,s){var u=i.entangledLanes|=s;for(i=i.entanglements;u;){var p=31-hn(u),y=1<<p;y&s|i[p]&s&&(i[p]|=s),u&=~y}}function kn(i,s){var u=s&-s;return u=(u&42)!==0?1:Ss(u),(u&(i.suspendedLanes|s))!==0?0:u}function Ss(i){switch(i){case 2:i=1;break;case 8:i=4;break;case 32:i=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:i=128;break;case 268435456:i=134217728;break;default:i=0}return i}function $r(i){return i&=-i,2<i?8<i?(i&134217727)!==0?32:268435456:8:2}function Hg(){var i=$.p;return i!==0?i:(i=window.event,i===void 0?32:nj(i.type))}function y2(i,s){var u=$.p;try{return $.p=i,s()}finally{$.p=u}}var pi=Math.random().toString(36).slice(2),an="__reactFiber$"+pi,In="__reactProps$"+pi,Os="__reactContainer$"+pi,Vg="__reactEvents$"+pi,Vz="__reactListeners$"+pi,Fz="__reactHandles$"+pi,b2="__reactResources$"+pi,jc="__reactMarker$"+pi;function Fg(i){delete i[an],delete i[In],delete i[Vg],delete i[Vz],delete i[Fz]}function As(i){var s=i[an];if(s)return s;for(var u=i.parentNode;u;){if(s=u[Os]||u[an]){if(u=s.alternate,s.child!==null||u!==null&&u.child!==null)for(i=qT(i);i!==null;){if(u=i[an])return u;i=qT(i)}return s}i=u,u=i.parentNode}return null}function Ps(i){if(i=i[an]||i[Os]){var s=i.tag;if(s===5||s===6||s===13||s===31||s===26||s===27||s===3)return i}return null}function Ec(i){var s=i.tag;if(s===5||s===26||s===27||s===6)return i.stateNode;throw Error(r(33))}function _s(i){var s=i[b2];return s||(s=i[b2]={hoistableStyles:new Map,hoistableScripts:new Map}),s}function en(i){i[jc]=!0}var x2=new Set,w2={};function vo(i,s){Cs(i,s),Cs(i+"Capture",s)}function Cs(i,s){for(w2[i]=s,i=0;i<s.length;i++)x2.add(s[i])}var Kz=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),S2={},O2={};function Gz(i){return $t.call(O2,i)?!0:$t.call(S2,i)?!1:Kz.test(i)?O2[i]=!0:(S2[i]=!0,!1)}function wd(i,s,u){if(Gz(s))if(u===null)i.removeAttribute(s);else{switch(typeof u){case"undefined":case"function":case"symbol":i.removeAttribute(s);return;case"boolean":var p=s.toLowerCase().slice(0,5);if(p!=="data-"&&p!=="aria-"){i.removeAttribute(s);return}}i.setAttribute(s,""+u)}}function Sd(i,s,u){if(u===null)i.removeAttribute(s);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(s);return}i.setAttribute(s,""+u)}}function Pa(i,s,u,p){if(p===null)i.removeAttribute(u);else{switch(typeof p){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(u);return}i.setAttributeNS(s,u,""+p)}}function hr(i){switch(typeof i){case"bigint":case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function A2(i){var s=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function Yz(i,s,u){var p=Object.getOwnPropertyDescriptor(i.constructor.prototype,s);if(!i.hasOwnProperty(s)&&typeof p<"u"&&typeof p.get=="function"&&typeof p.set=="function"){var y=p.get,w=p.set;return Object.defineProperty(i,s,{configurable:!0,get:function(){return y.call(this)},set:function(N){u=""+N,w.call(this,N)}}),Object.defineProperty(i,s,{enumerable:p.enumerable}),{getValue:function(){return u},setValue:function(N){u=""+N},stopTracking:function(){i._valueTracker=null,delete i[s]}}}}function Kg(i){if(!i._valueTracker){var s=A2(i)?"checked":"value";i._valueTracker=Yz(i,s,""+i[s])}}function P2(i){if(!i)return!1;var s=i._valueTracker;if(!s)return!0;var u=s.getValue(),p="";return i&&(p=A2(i)?i.checked?"true":"false":i.value),i=p,i!==u?(s.setValue(i),!0):!1}function Od(i){if(i=i||(typeof document<"u"?document:void 0),typeof i>"u")return null;try{return i.activeElement||i.body}catch{return i.body}}var Xz=/[\n"\\]/g;function pr(i){return i.replace(Xz,function(s){return"\\"+s.charCodeAt(0).toString(16)+" "})}function Gg(i,s,u,p,y,w,N,k){i.name="",N!=null&&typeof N!="function"&&typeof N!="symbol"&&typeof N!="boolean"?i.type=N:i.removeAttribute("type"),s!=null?N==="number"?(s===0&&i.value===""||i.value!=s)&&(i.value=""+hr(s)):i.value!==""+hr(s)&&(i.value=""+hr(s)):N!=="submit"&&N!=="reset"||i.removeAttribute("value"),s!=null?Yg(i,N,hr(s)):u!=null?Yg(i,N,hr(u)):p!=null&&i.removeAttribute("value"),y==null&&w!=null&&(i.defaultChecked=!!w),y!=null&&(i.checked=y&&t
vendor: 5,690 bytes, line 48
48ypeof y!="function"&&typeof y!="symbol"),k!=null&&typeof k!="function"&&typeof k!="symbol"&&typeof k!="boolean"?i.name=""+hr(k):i.removeAttribute("name")}function _2(i,s,u,p,y,w,N,k){if(w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"&&(i.type=w),s!=null||u!=null){if(!(w!=="submit"&&w!=="reset"||s!=null)){Kg(i);return}u=u!=null?""+hr(u):"",s=s!=null?""+hr(s):u,k||s===i.value||(i.value=s),i.defaultValue=s}p=p??y,p=typeof p!="function"&&typeof p!="symbol"&&!!p,i.checked=k?i.checked:!!p,i.defaultChecked=!!p,N!=null&&typeof N!="function"&&typeof N!="symbol"&&typeof N!="boolean"&&(i.name=N),Kg(i)}function Yg(i,s,u){s==="number"&&Od(i.ownerDocument)===i||i.defaultValue===""+u||(i.defaultValue=""+u)}function Ts(i,s,u,p){if(i=i.options,s){s={};for(var y=0;y<u.length;y++)s["$"+u[y]]=!0;for(u=0;u<i.length;u++)y=s.hasOwnProperty("$"+i[u].value),i[u].selected!==y&&(i[u].selected=y),y&&p&&(i[u].defaultSelected=!0)}else{for(u=""+hr(u),s=null,y=0;y<i.length;y++){if(i[y].value===u){i[y].selected=!0,p&&(i[y].defaultSelected=!0);return}s!==null||i[y].disabled||(s=i[y])}s!==null&&(s.selected=!0)}}function C2(i,s,u){if(s!=null&&(s=""+hr(s),s!==i.value&&(i.value=s),u==null)){i.defaultValue!==s&&(i.defaultValue=s);return}i.defaultValue=u!=null?""+hr(u):""}function T2(i,s,u,p){if(s==null){if(p!=null){if(u!=null)throw Error(r(92));if(q(p)){if(1<p.length)throw Error(r(93));p=p[0]}u=p}u==null&&(u=""),s=u}u=hr(s),i.defaultValue=u,p=i.textContent,p===u&&p!==""&&p!==null&&(i.value=p),Kg(i)}function js(i,s){if(s){var u=i.firstChild;if(u&&u===i.lastChild&&u.nodeType===3){u.nodeValue=s;return}}i.textContent=s}var Qz=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function j2(i,s,u){var p=s.indexOf("--")===0;u==null||typeof u=="boolean"||u===""?p?i.setProperty(s,""):s==="float"?i.cssFloat="":i[s]="":p?i.setProperty(s,u):typeof u!="number"||u===0||Qz.has(s)?s==="float"?i.cssFloat=u:i[s]=(""+u).trim():i[s]=u+"px"}function E2(i,s,u){if(s!=null&&typeof s!="object")throw Error(r(62));if(i=i.style,u!=null){for(var p in u)!u.hasOwnProperty(p)||s!=null&&s.hasOwnProperty(p)||(p.indexOf("--")===0?i.setProperty(p,""):p==="float"?i.cssFloat="":i[p]="");for(var y in s)p=s[y],s.hasOwnProperty(y)&&u[y]!==p&&j2(i,y,p)}else for(var w in s)s.hasOwnProperty(w)&&j2(i,w,s[w])}function Xg(i){if(i.indexOf("-")===-1)return!1;switch(i){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 Wz=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode
48-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Zz=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Ad(i){return Zz.test(""+i)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":i}function _a(){}var Qg=null;function Wg(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var Es=null,Ns=null;function N2(i){var s=Ps(i);if(s&&(i=s.stateNode)){var u=i[In]||null;e:switch(i=s.stateNode,s.type){case"input":if(Gg(i,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name),s=u.name,u.type==="radio"&&s!=null){for(u=i;u.parentNode;)u=u.parentNode;for(u=u.querySelectorAll('input[name="'+pr(""+s)+'"][type="radio"]'),s=0;s<u.length;s++){var p=u[s];if(p!==i&&p.form===i.form){var y=p[In]||null;if(!y)throw Error(r(90));Gg(p,y.value,y.defaultValue,y.defaultValue,y.checked,y.defaultChecked,y.type,y.name)}}for(s=0;s<u.length;s++)p=u[s],p.form===i.form&&P2(p)}break e;case"textarea":C2(i,u.value,u.defaultValue);break e;case"select":s=u.value,s!=null&&Ts(i,!!u.multiple,s,!1)}}}var Zg=!1;function M2(i,s,u){if(Zg)return i(s,u);Zg=!0;try{var p=i(s);return p}finally{if(Zg=!1,(Es!==null||Ns!==null)&&(fh(),Es&&(s=Es,i=Ns,Ns=Es=null,N2(s),i)))for(s=0;s<i.length;s++)N2(i[s])}}function Nc(i,s){var u=i.stateNode;if(u===null)return null;var p=u[In]||null;if(p===null)return null;u=p[s];e:switch(s){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(p=!p.disabled)||(i=i.type,p=!(i==="button"||i==="input"||i==="select"||i==="textarea")),i=!p;break e;default:i=!1}if(i)return null;if(u&&typeof u!="function")throw Error(r(231,s,typeof u));return u}var Ca=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Jg=!1;if(Ca)try{var Mc={};Object.defineProperty(Mc,"passive",{get:function(){Jg=!0}}),window.addEventListener("test",Mc,Mc),window.removeEventListener("test",Mc,Mc)}catch{Jg=!1}var mi=null,ev=null,Pd=null;function D2(){if(Pd)return Pd;var i,s=ev,u=s.length,p,y="value"in mi?mi.value:mi.textContent,w=y.length;for(i=0;i<u&&s[i]===y[i];i++);var N=u-i;for(p=1;p<=N&&s[u-p]===y[w-p];p++);return Pd=y.slice(i,1<p?1-p:void 0)}function _d(i){var s=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&s===13&&(i=13)):i=s,i===10&&(i=13),32<=i||i===13?i:0}function Cd(){return!0}function R2(){return!1}function Ln(i){function s(u,p,y,w,N){this._reactName=u,this._targetInst=y,this.type=p,this.nativeEvent=w,this.target=N,this.currentTarget=null;for(var k in i)i.hasOwnProperty(k)&&(u=i[k],this[k]=u?u(w):w[k]);return this.isDefaultPrevented=(w.defaultPrevented!=null?w.defaultPrevented:w.returnValue===!1)?Cd:R2,this.isPropagationStopped=R2,this}return h(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var u=this.nativeEvent;u&&(u.preventDefault?u.preventDefault():typeof u.returnValue!="unknown"&&(u.returnValue=!1),this.isDefaultPrevented=Cd)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=Cd)},persist:function(){},isPersistent:Cd}),s}var yo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Td=Ln(yo),Dc=h({},yo,{view:0,detail:0}),Jz=Ln(Dc),tv,nv,Rc,jd=h({},Dc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:av,button:0,buttons:0,relatedTarget:function(i){return i.relatedTarget===void 0?i.fromElement===i.srcElement?i.toElement:i.fromElement:i.relatedTarget},movementX:function(i){return"movementX"in i?i.movementX:(i!==Rc&&(Rc&&i.type==="mousemove"?(tv=i.screenX-Rc.screenX,nv=i.screenY-Rc.screenY):nv=tv=0,Rc=i),tv)},movementY:function(i){return"movementY"in i?i.movementY:nv}}),k2=Ln(jd),eU=h({},jd,{dataTransfer:0}),tU=Ln(eU),nU=h({},Dc,{relatedTarget:0}),rv=Ln(nU),rU=h({},yo,{animationName:0,elapsedTime:0,pseudoElement:0}),aU=Ln(rU),iU=h({},yo,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),oU=Ln(iU),sU=h({},yo,{data:0}),I2=Ln(sU),lU={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},cU={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"},uU={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function fU(i){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(i):(i=uU[i])?!!s[i]:!1}function av(){return fU}var dU=h({},Dc,{key:function(i){if(i.key){var s=lU[i.key]||i.key;if(s!=="Unidentified")return s}
vendor: 4,180 bytes, line 48
48return i.type==="keypress"?(i=_d(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?cU[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:av,charCode:function(i){return i.type==="keypress"?_d(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?_d(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),hU=Ln(dU),pU=h({},jd,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),L2=Ln(pU),mU=h({},Dc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:av}),gU=Ln(mU),vU=h({},yo,{propertyName:0,elapsedTime:0,pseudoElement:0}),yU=Ln(vU),bU=h({},jd,{deltaX:function(i){return"deltaX"in i?i.deltaX:"wheelDeltaX"in i?-i.wheelDeltaX:0},deltaY:function(i){return"deltaY"in i?i.deltaY:"wheelDeltaY"in i?-i.wheelDeltaY:"wheelDelta"in i?-i.wheelDelta:0},deltaZ:0,deltaMode:0}),xU=Ln(bU),wU=h({},yo,{newState:0,oldState:0}),SU=Ln(wU),OU=[9,13,27,32],iv=Ca&&"CompositionEvent"in window,kc=null;Ca&&"documentMode"in document&&(kc=document.documentMode);var AU=Ca&&"TextEvent"in window&&!kc,$2=Ca&&(!iv||kc&&8<kc&&11>=kc),B2=" ",q2=!1;function z2(i,s){switch(i){case"keyup":return OU.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function U2(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var Ms=!1;function PU(i,s){switch(i){case"compositionend":return U2(s);case"keypress":return s.which!==32?null:(q2=!0,B2);case"textInput":return i=s.data,i===B2&&q2?null:i;default:return null}}function _U(i,s){if(Ms)return i==="compositionend"||!iv&&z2(i,s)?(i=D2(),Pd=ev=mi=null,Ms=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return $2&&s.locale!=="ko"?null:s.data;default:return null}}var CU={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 H2(i){var s=i&&i.nodeName&&i.nodeName.toLowerCase();return s==="input"?!!CU[i.type]:s==="textarea"}function V2(i,s,u,p){Es?Ns?Ns.push(p):Ns=[p]:Es=p,s=yh(s,"onChange"),0<s.length&&(u=new Td("onChange","change",null,u,p),i.push({event:u,listeners:s}))}var Ic=null,Lc=null;function TU(i){_T(i,0)}function Ed(i){var s=Ec(i);if(P2(s))return i}function F2(i,s){if(i==="change")return s}var K2=!1;if(Ca){var ov;if(Ca){var sv="oninput"in document;if(!sv){var G2=document.createElement("div");G2.setAttribute("oninput","return;"),sv=typeof G2.oninput=="function"}ov=sv}else ov=!1;K2=ov&&(!document.documentMode||9<document.documentMode)}function Y2(){Ic&&(Ic.detachEvent("onpropertychange",X2),Lc=Ic=null)}function X2(i){if(i.propertyName==="value"&&Ed(Lc)){var s=[];V2(s,Lc,i,Wg(i)),M2(TU,s)}}function jU(i,s,u){i==="focusin"?(Y2(),Ic=s,Lc=u,Ic.attachEvent("onpropertychange",X2)):i==="focusout"&&Y2()}function EU(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return Ed(Lc)}function NU(i,s){if(i==="click")return Ed(s)}function MU(i,s){if(i==="input"||i==="change")return Ed(s)}function DU(i,s){return i===s&&(i!==0||1/i===1/s)||i!==i&&s!==s}var Qn=typeof Object.is=="function"?Object.is:DU;function $c(i,s){if(Qn(i,s))return!0;if(typeof i!="object"||i===null||typeof s!="object"||s===null)return!1;var u=Object.keys(i),p=Object.keys(s);if(u.length!==p.length)return!1;for(p=0;p<u.length;p++){var y=u[p];if(!$t.call(s,y)||!Qn(i[y],s[y]))return!1}return!0}function Q2(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function W2(i,s){var u=Q2(i);i=0;for(var p;u;){if(u.nodeType===3){if(p=i+u.textContent.length,i<=s&&p>=s)return{node:u,offset:s-i};i=p}e:{for(;u;){if(u.nextSibling){u=u.nextSibling;break e}u=u.parentNode}u=void 0}u=Q2(u)}}function Z2(i,s){return i&&s?i===s?!0:i&&i.nodeType===3?!1:s&&s.nodeType===3?Z2(i,s.parentNode):"contains"in i?i.contains(s):i.
vendor: 20,178 bytes, line 48
48compareDocumentPosition?!!(i.compareDocumentPosition(s)&16):!1:!1}function J2(i){i=i!=null&&i.ownerDocument!=null&&i.ownerDocument.defaultView!=null?i.ownerDocument.defaultView:window;for(var s=Od(i.document);s instanceof i.HTMLIFrameElement;){try{var u=typeof s.contentWindow.location.href=="string"}catch{u=!1}if(u)i=s.contentWindow;else break;s=Od(i.document)}return s}function lv(i){var s=i&&i.nodeName&&i.nodeName.toLowerCase();return s&&(s==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||s==="textarea"||i.contentEditable==="true")}var RU=Ca&&"documentMode"in document&&11>=document.documentMode,Ds=null,cv=null,Bc=null,uv=!1;function e_(i,s,u){var p=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;uv||Ds==null||Ds!==Od(p)||(p=Ds,"selectionStart"in p&&lv(p)?p={start:p.selectionStart,end:p.selectionEnd}:(p=(p.ownerDocument&&p.ownerDocument.defaultView||window).getSelection(),p={anchorNode:p.anchorNode,anchorOffset:p.anchorOffset,focusNode:p.focusNode,focusOffset:p.focusOffset}),Bc&&$c(Bc,p)||(Bc=p,p=yh(cv,"onSelect"),0<p.length&&(s=new Td("onSelect","select",null,s,u),i.push({event:s,listeners:p}),s.target=Ds)))}function bo(i,s){var u={};return u[i.toLowerCase()]=s.toLowerCase(),u["Webkit"+i]="webkit"+s,u["Moz"+i]="moz"+s,u}var Rs={animationend:bo("Animation","AnimationEnd"),animationiteration:bo("Animation","AnimationIteration"),animationstart:bo("Animation","AnimationStart"),transitionrun:bo("Transition","TransitionRun"),transitionstart:bo("Transition","TransitionStart"),transitioncancel:bo("Transition","TransitionCancel"),transitionend:bo("Transition","TransitionEnd")},fv={},t_={};Ca&&(t_=document.createElement("div").style,"AnimationEvent"in window||(delete Rs.animationend.animation,delete Rs.animationiteration.animation,delete Rs.animationstart.animation),"TransitionEvent"in window||delete Rs.transitionend.transition);function xo(i){if(fv[i])return fv[i];if(!Rs[i])return i;var s=Rs[i],u;for(u in s)if(s.hasOwnProperty(u)&&u in t_)return fv[i]=s[u];return i}var n_=xo("animationend"),r_=xo("animationiteration"),a_=xo("animationstart"),kU=xo("transitionrun"),IU=xo("transitionstart"),LU=xo("transitioncancel"),i_=xo("transitionend"),o_=new Map,dv="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");dv.push("scrollEnd");function Br(i,s){o_.set(i,s),vo(s,[i])}var Nd=typeof reportError=="function"?reportError:function(i){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var s=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof i=="object"&&i!==null&&typeof i.message=="string"?String(i.message):String(i),error:i});if(!window.dispatchEvent(s))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",i);return}console.error(i)},mr=[],ks=0,hv=0;function Md(){for(var i=ks,s=hv=ks=0;s<i;){var u=mr[s];mr[s++]=null;var p=mr[s];mr[s++]=null;var y=mr[s];mr[s++]=null;var w=mr[s];if(mr[s++]=null,p!==null&&y!==null){var N=p.pending;N===null?y.next=y:(y.next=N.next,N.next=y),p.pending=y}w!==0&&s_(u,y,w)}}function Dd(i,s,u,p){mr[ks++]=i,mr[ks++]=s,mr[ks++]=u,mr[ks++]=p,hv|=p,i.lanes|=p,i=i.alternate,i!==null&&(i.lanes|=p)}function pv(i,s,u,p){return Dd(i,s,u,p),Rd(i)}function wo(i,s){return Dd(i,null,null,s),Rd(i)}function s_(i,s,u){i.lanes|=u;var p=i.alternate;p!==null&&(p.lanes|=u);for(var y=!1,w=i.return;w!==null;)w.childLanes|=u,p=w.alternate,p!==null&&(p.childLanes|=u),w.tag===22&&(i=w.stateNode,i===null||i._visibility&1||(y=!0)),i=w,w=w.return;return i.tag===3?(w=i.stateNode,y&&s!==null&&(y=31-hn(u),i=w.hiddenUpdates,p=i[y],p===null?i[y]=[s]:p.push(s),s.lane=u|536870912),w):null}function Rd(i){if(50<su)throw su=0,Oy=null,Error(r(185));for(var s=i.return;s!==null;)i=s,s=i.return;return i.tag===3?i.stateNode:null}var Is={};function $U(i,s,u,p){this.tag=i,this.key=u,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=p,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Wn(i,s,u,p){return new $U(i,s,u,p)}function mv(i){return i=i.prototype,!(!i||!i.isReactComponent)}function Ta(i,s){var u=i.alternate;return u===null?(u=Wn(i.tag,s,i.key,i.mode),u.elementType=i.elementType,u.type=i.type,u.stateNode=i.stateNode,u.alternate=i,i.alternate=u):(u.pendingProps=s,u.type=i.type,u.flags=0,u.subtreeFlags=0,u.deletions=null),u.flags=i.flags&65011712,u.childLanes=i.childLanes,u.lanes=i.lanes,u.child=i.child,u.memoizedProps=i.memoizedProps,u.memoizedState=i.memoizedState,u.updateQueue=i.updateQueue,s=i.dependencies,u.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},u.sibling=i.sibling,u.index=i.index,u.ref=i.ref,u.refCleanup=i.refCleanup,u}function l_(i,s){i.flags&=65011714;var u=i.alternate;return u===null?(i.childLanes=0,i.lanes=s,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=u.childLanes,i.lanes=u.lanes,i.child=u.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=u.memoizedProps,i.memoizedState=u.memoizedState,i.updateQueue=u.updateQueue,i.type=u.type,s=u.dependencies,i.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext}),i}function kd(i,s,u,p,y,w){var N=0;if(p=i,typeof i=="function")mv(i)&&(N=1);else if(typeof i=="string")N=HH(i,u,J.current)?26:i==="html"||i==="head"||i==="body"?27:5;else e:switch(i){case L:return i=Wn(31,u,s,y),i.elementType=L,i.lanes=w,i;case b:return So(u.children,y,w,s);case S:N=8,y|=24;break;case A:return i=Wn(12,u,s,y|2),i.elementType=A,i.lanes=w,i;case P:return i=Wn(13,u,s,y),i.elementType=P,i.lanes=w,i;case E:return i=Wn(19,u,s,y),i.elementType=E,i.lanes=w,i;default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case C:N=10;break e;case _:N=9;break e;case M:N=11;break e;case T:N=14;break e;case D:N=16,p=null;break e}N=29,u=Error(r(130,i===null?"null":typeof i,"")),p=null}return s=Wn(N,u,s,y),s.elementType=i,s.type=p,s.lanes=w,s}function So(i,s,u,p){return i=Wn(7,i,p,s),i.lanes=u,i}function gv(i,s,u){return i=Wn(6,i,null,s),i.lanes=u,i}function c_(i){var s=Wn(18,null,null,0);return s.stateNode=i,s}function vv(i,s,u){return s=Wn(4,i.children!==null?i.children:[],i.key,s),s.lanes=u,s.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},s}var u_=new WeakMap;function gr(i,s){if(typeof i=="object"&&i!==null){var u=u_.get(i);return u!==void 0?u:(s={value:i,source:s,stack:Mn(s)},u_.set(i,s),s)}return{value:i,source:s,stack:Mn(s)}}var Ls=[],$s=0,Id=null,qc=0,vr=[],yr=0,gi=null,aa=1,ia="";function ja(i,s){Ls[$s++]=qc,Ls[$s++]=Id,Id=i,qc=s}function f_(i,s,u){vr[yr++]=aa,vr[yr++]=ia,vr[yr++]=gi,gi=i;var p=aa;i=ia;var y=32-hn(p)-1;p&=~(1<<y),u+=1;var w=32-hn(s)+y;if(30<w){var N=y-y%5;w=(p&(1<<N)-1).toString(32),p>>=N,y-=N,aa=1<<32-hn(s)+y|u<<y|p,ia=w+i}else aa=1<<w|u<<y|p,ia=i}function yv(i){i.return!==null&&(ja(i,1),f_(i,1,0))}function bv(i){for(;i===Id;)Id=Ls[--$s],Ls[$s]=null,qc=Ls[--$s],Ls[$s]=null;for(;i===gi;)gi=vr[--yr],vr[yr]=null,ia=vr[--yr],vr[yr]=null,aa=vr[--yr],vr[yr]=null}function d_(i,s){vr[yr++]=aa,vr[yr++]=ia,vr[yr++]=gi,aa=s.id,ia=s.overflow,gi=i}var on=null,gt=null,Ve=!1,vi=null,br=!1,xv=Error(r(519));function yi(i){var s=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw zc(gr(s,i)),xv}function h_(i){var s=i.stateNode,u=i.type,p=i.memoizedProps;switch(s[an]=i,s[In]=p,u){case"dialog":Be("cancel",s),Be("close",s);break;case"iframe":case"object":case"embed":Be("load",s);break;case"video":case"audio":for(u=0;u<cu.length;u++)Be(cu[u],s);break;case"source":Be("error",s);break;case"img":case"image":case"link":Be("error",s),Be("load",s);break;case"details":Be("toggle",s);break;case"input":Be("invalid",s),_2(s,p.value,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name,!0);break;case"select":Be("invalid",s);break;case"textarea":Be("invalid",s),T2(s,p.value,p.defaultValue,p.children)}u=p.children,typeof u!="string"&&typeof u!="number"&&typeof u!="bigint"||s.textContent===""+u||p.suppressHydrationWarning===!0||ET(s.textContent,u)?(p.popover!=null&&(Be("beforetoggle",s),Be("toggle",s)),p.onScroll!=null&&Be("scroll",s),p.onScrollEnd!=null&&Be("scrollend",s),p.onClick!=null&&(s.onclick=_a),s=!0):s=!1,s||yi(i,!0)}function p_(i){for(on=i.return;on;)switch(on.tag){case 5:case 31:case 13:br=!1;return;case 27:case 3:br=!0;return;default:on=on.return}}function Bs(i){if(i!==on)return!1;if(!Ve)return p_(i),Ve=!0,!1;var s=i.tag,u;if((u=s!==3&&s!==27)&&((u=s===5)&&(u=i.type,u=!(u!=="form"&&u!=="button")||$y(i.type,i.memoizedProps)),u=!u),u&>&&yi(i),p_(i),s===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(317));gt=BT(i)}else if(s===31){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(317));gt=BT(i)}else s===27?(s=gt,Mi(i.type)?(i=Hy,Hy=null,gt=i):gt=s):gt=on?wr(i.stateNode.nextSibling):null;return!0}function Oo(){gt=on=null,Ve=!1}function wv(){var i=vi;return i!==null&&(zn===null?zn=i:zn.push.apply(zn,i),vi=null),i}function zc(i){vi===null?vi=[i]:vi.push(i)}var Sv=B(null),Ao=null,Ea=null;function bi(i,s,u){X(Sv,s._currentValue),s._currentValue=u}function Na(i){i._currentValue=Sv.current,Y(Sv)}function Ov(i,s,u){for(;i!==null;){var p=i.alternate;if((i.childLanes&s)!==s?(i.childLanes|=s,p!==null&&(p.childLanes|=s)):p!==null&&(p.childLanes&s)!==s&&(p.childLanes|=s),i===u)break;i=i.return}}function Av(i,s,u,p){var y=i.child;for(y!==null&&(y.return=i);y!==null;){var w=y.dependencies;if(w!==null){var N=y.child;w=w.firstContext;e:for(;w!==null;){var k=w;w=y;for(var G=0;G<s.length;G++)if(k.context===s[G]){w.lanes|=u,k=w.alternate,k!==null&&(k.lanes|=u),Ov(w.return,u,i),p||(N=null);break e}w=k.next}}else if(y.tag===18){if(N=y.return,N===null)throw Error(r(341));N.lanes|=u,w=N.alternate,w!==null&&(w.lanes|=u),Ov(N,u,i),N=null}else N=y.child;if(N!==null)N.return=y;else for(N=y;N!==null;){if(N===i){N=null;break}if(y=N.sibling,y!==null){y.return=N.return,N=y;break}N=N.return}y=N}}function qs(i,s,u,p){i=null;for(var y=s,w=!1;y!==null;){if(!w){if((y.flags&524288)!==0)w=!0;else if((y.flags&262144)!==0)break}if(y.tag===10){var N=y.alternate;if(N===null)throw Error(r(387));if(N=N.memoizedProps,N!==null){var k=y.type;Qn(y.pendingProps.value,N.value)||(i!==null?i.push(k):i=[k])}}else if(y===fe.current){if(N=y.alternate,N===null)throw Error(r(387));N.memoizedState.memoizedState!==y.memoizedState.memoizedState&&(i!==null?i.push(pu):i=[pu])}y=y.return}i!==null&&Av(s,i,u,p),s.flags|=262144}function Ld(i){for(i=i.firstContext;i!==null;){if(!Qn(i.context._currentValue,i.memoizedValue))return!0;i=i.next}return!1}function Po(i){Ao=i,Ea=null,i=i.dependencies,i!==null&&(i.firstContext=null)}function sn(i){return m_(Ao,i)}function $d(i,s){return Ao===null&&Po(i),m_(i,s)}function m_(i,s){var u=s._currentValue;if(s={context:s,memoizedValue:u,next:null},Ea===null){if(i===null)throw Error(r(308));Ea=s,i.dependencies={lanes:0,firstContext:s},i.flags|=524288}else Ea=Ea.next=s;return u}var BU=typeof AbortController<"u"?AbortController:function(){var i=[],s=this.signal={aborted:!1,addEventListener:function(u,p){i.push(p)}};this.abort=function(){s.aborted=!0,i.forEach(function(u){return u()})}},qU=e.unstable_scheduleCallback,zU=e.unstable_NormalPriority,Bt={$$typeof:C,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Pv(){return{controller:new BU,data:new Map,refCount:0}}function Uc(i){i.refCount--,i.refCount===0&&qU(zU,function(){i.controller.abort()})}var Hc=null,_v=0,zs=0,Us=null;function UU(i,s){if(Hc===null){var u=Hc=[];_v=0,zs=jy(),Us={status:"pending",value:void 0,then:function(p){u.push(p)}}}return _v++,s.then(g_,g_),s}function g_(){if(--_v===0&&Hc!==null){Us!==null&&(Us.status="fulfilled");var i=Hc;Hc=null,zs=0,Us=null;for(var s=0;s<i.length;s++)(0,i[s])()}}function HU(i,s){var u=[],p={status:"pending",value:null,reason:null,then:function(y){u.push(y)}};return i.then(function(){p.status="fulfilled",p.value=s;for(var y=0;y<u.length;y++)(0,u[y])(s)},function(y){for(p.status="rejected",p.reason=y,y=0;y<u.length;y++)(0,u[y])(void 0)}),p}var v_=R.S;R.S=function(i,s){eT=Zt(),typeof s=="object"&&s!==null&&typeof s.then=="function"&&UU(i,s),v_!==null&&v_(i,s)};var _o=B(null);function Cv(){var i=_o.current;return i!==null?i:ft.pooledCache}function Bd(i,s){s===null?X(_o,_o.current):X(_o,s.pool)}function y_(){var i=Cv();return i===null?null:{parent:Bt._currentValue,pool:i}}var Hs=Error(r(460)),Tv=Error(r(474)),qd=Error(r(542)),zd={then:function(){}};function b_(i){return i=i.status,i==="fulfilled"||i==="rejected"}function x_(i,s,u){switch(u=i[u],u===void 0?i.push(s):u!==s&&(s.then(_a,_a),s=u),s.status){case"fulfilled":return s.value;case"rejected":throw i=s.reason,S_(i),i;default:if(typeof s.status=="string")s.then(_a,_a);else{if(i=ft,i!==null&&100<i.shellSuspendCounter)throw Error(r(482));i=s,i.status="pending",i.then(function(p){if(s.status==="pending"){var y=s;y.status="fulfilled",y.value=p}},function(p){if(s.status==="pending"){var y=s;y.status="rejected",y.reason=p}})}switch(s.status){case"fulfilled":return s.value;case"rejected":throw i=s.reason,S_(i),i}throw To=s,Hs}}function Co(i){try{var s=i._init;return s(i._payload)}catch(u){throw u!==null&&typeof u=="object"&&typeof u.then=="function"?(To=u,Hs):u}}var To=null;function w_(){if(To===null)throw Error(r(459));var i=To;return To=null,i}function S_(i){if(i===Hs||i===qd)throw Error(r(483))}var Vs=null,Vc=0;function Ud(i){var s=Vc;return Vc+=1,Vs===null&&(Vs=[]),x_(Vs,i,s)}function Fc(i,s){s=s.props.ref,i.ref=s!==void 0?s:null}function Hd(i,s){throw s.$$typeof===g?Error(r(525)):(i=Object.prototype.toString.call(s),Error(r(31,i==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":i)))}function O_(i){function s(Z,Q){if(i){var ee=Z.deletions;ee===null?(Z.deletions=[Q],Z.flags|=16):ee.push(Q)}}function u(Z,Q){if(!i)return null;for(;Q!==null;)s(Z,Q),Q=Q.sibling;return null}function p(Z){for(var Q=new Map;Z!==null;)Z.key!==null?Q.set(Z.key,Z):Q.set(Z.index,Z),Z=Z.sibling;return Q}function y(Z,Q){return Z=Ta(Z,Q),Z.index=0,Z.sibling=null,Z}function w(Z,Q,ee){return Z.index=ee,i?(ee=Z.alternate,ee!==null?(ee=ee.index,ee<Q?(Z.flags|=67108866,Q):ee):(Z.flags|=67108866,Q)):(Z.flags|=1048576,Q)}function N(Z){return i&&Z.alternate===null&&(Z.flags|=67108866),Z}function k(Z,Q,ee,ce){return Q===null||Q.tag!==6?(Q=gv(ee,Z.mode,ce),Q.return=Z,Q):(Q=y(Q,ee),Q.return=Z,Q)}function G(Z,Q,ee,ce){var Ae=ee.type;return Ae===b?oe(Z,Q,ee.props.children,ce,ee.key):Q!==null&&(Q.elementType===Ae||typeof Ae=="object"&&Ae!==null&&Ae.$$typeof===D&&Co(Ae)===Q.type)?(Q=y(Q,ee.props),Fc(Q,ee),Q.return=Z,Q):(Q=kd(ee.type,ee.key,ee.props,null,Z.mode,ce),Fc(Q,ee),Q.return=Z,Q)}function te(Z,Q,ee,ce){return Q===null||Q.tag!==4||Q.stateNode.containerInfo!==ee.containerInfo||Q.stateNode.implementation!==ee.implementation?(Q=vv(ee,Z.mode,ce),Q.return=Z,Q):(Q=y(Q,ee.children||[]),Q.return=Z,Q)}function oe(Z,Q,ee,ce,Ae){return Q===null||Q.tag!==7?(Q=So(ee,Z.mode,ce,Ae),Q.return=Z,Q):(Q=y(Q,ee),Q.return=Z,Q)}function de(Z,Q,ee){if(typeof Q=="string"&&Q!==""||typeof Q=="number"||typeof Q=="bigint")return Q=gv(""+Q,Z.mode,ee),Q.return=Z,Q;if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case x:return ee=kd(Q.type,Q.key,Q.props,null,Z.mode,ee),Fc(ee,Q),ee.return=Z,ee;case O:return Q=vv(Q,Z.mode,ee),Q.return=Z,Q;case D:return Q=Co(Q),de(Z,Q,ee)}if(q(Q)||z(Q))return Q=So(Q,Z.mode,ee,null),Q.return=Z,Q;if(typeof Q.then=="function")return de(Z,Ud(Q),ee);if(Q.$$typeof===C)return de(Z,$d(Z,Q),ee);Hd(Z,Q)}return null}function ne(Z,Q,ee,ce){var Ae=Q!==null?Q.key:null;if(typeof ee=="string"&&ee!==""||typeof ee=="number"||typeof ee=="bigint")return Ae!==null?null:k(Z,Q,""+ee,ce);if(typeof ee=="object"&&ee!==null){switch(ee.$$typeof){case x:return ee.key===Ae?G(Z,Q,ee,ce):null;case O:return ee.key===Ae?te(Z,Q,ee,ce):null;case D:return ee=Co(ee),ne(Z,Q,ee,ce)}if(q(ee)||z(ee))return Ae!==null?null:oe(Z,Q,ee,ce,null);if(typeof ee.then=="function")return ne(Z,Q,Ud(ee),ce);if(ee.$$typeof===C)return ne(Z,Q,$d(Z,ee),ce);Hd(Z,ee)}return null}function re(Z,Q,ee,ce,Ae){if(typeof ce=="string"&&ce!==""||typeof ce=="number"||typeof ce=="bigint")return Z=Z.get(ee)||null,k(Q,Z,""+ce,Ae);if(typeof ce=="object"&&ce!==null){switch(ce.$$typeof){case x:return Z=Z.get(ce.key===null?ee:ce.key)||null,G(Q,Z,ce,Ae);case O:return Z=Z.get(ce.key===null?ee:ce.key)||null,te(Q,Z,ce,Ae);case D:return ce=Co(ce),re(Z,Q,ee,ce,Ae)}if(q(ce)||z(ce))return Z=Z.get(ee)||null,oe(Q,Z,ce,Ae,null);if(typeof ce.then=="function")return re(Z,Q,ee,Ud(ce),Ae);if(ce.$$typeof===C)return re(Z,Q,ee,$d(Q,ce),Ae);Hd(Q,ce)}return null}function xe(Z,Q,ee,ce){for(var Ae=null,Ye=null,Oe=Q,De=Q=0,He=null;Oe!==null&&De<ee.length;De++){Oe.index>De?(He=Oe,Oe=null):He=Oe.sibling;var Xe=ne(Z,Oe,ee[De],ce);if(Xe===null){Oe===null&&(Oe=He);break}i&&Oe&&Xe.alternate===null&&s(Z,Oe),Q=w(Xe,Q,De),Ye===null?Ae=Xe:Ye.sibling=Xe,Ye=Xe,Oe=He}if(De===ee.length)return u(Z,Oe),Ve&&ja(Z,De),Ae;if(Oe===null){for(;De<ee.length;De++)Oe=de(Z,ee[De],ce),Oe!==null&&(Q=w(Oe,Q,De),Ye===null?Ae=Oe:Ye.sibling=Oe,Ye=Oe);return Ve&&ja(Z,De),Ae}for(Oe=p(Oe);De<ee.length;De++)He=re(Oe,Z,De,ee[De],ce),He!==null&&(i&&He.alternate!==null&&Oe.delete(He.key===null?De:He.key),Q=w(He,Q,De),Ye===null?Ae=He:Ye.sibling=He,Ye=He);return i&&Oe.forEach(function(Li){return s(Z,Li)}),Ve&&ja(Z,De),Ae}function _e(Z,Q,ee,ce){if(ee==null)throw Error(r(151));for(var Ae=null,Ye=null,Oe=Q,De=Q=0,He=null,Xe=ee.next();Oe!==null&&!Xe.done;De++,Xe=ee.next()){Oe.index>De?(He=Oe,Oe=null):He=Oe.sibling;var Li=ne(Z,Oe,Xe.value,ce);if(Li===null){Oe===null&&(Oe=He);break}i&&Oe&&Li.alternate===null&&s(Z,Oe),Q=w(Li,Q,De),Ye===null?Ae=Li:Ye.sibling=Li,Ye=Li,Oe=He}if(Xe.done)return u(Z,Oe),Ve&&ja(Z,De),Ae;if(Oe===null){for(;!Xe.done;De++,Xe=ee.next())Xe=de(Z,Xe.value,ce),Xe!==null&&(Q=w(Xe,Q,De),Ye===null?Ae=Xe:Ye.sibling=Xe,Ye=Xe);return Ve&&ja(Z,De),Ae}for(Oe=p(Oe);!Xe.done;De++,Xe=ee.next())Xe=re(Oe,Z,De,Xe.value,ce),Xe!==null&&(i&&Xe.alternate!==null&&Oe.delete(Xe.key===null?De:Xe.key),Q=w(Xe,Q,De),Ye===null?Ae=Xe:Ye.sibling=Xe,Ye=Xe);return i&&Oe.forEach(function(e7){return s(Z,e7)}),Ve&&ja(Z,De),Ae}function lt(Z,Q,ee,ce){if(typeof ee=="object"&&ee!==null&&ee.type===b&&ee.key===null&&(ee=ee.props.children),typeof ee=="object"&&ee!==null){switch(ee.$$typeof){case x:e:{for(var Ae=ee.key;Q!==null;){if(Q.key===Ae){if(Ae=ee.type,Ae===b){if(Q.tag===7){u(Z,Q.sibling),ce=y(Q,ee.props.children),ce.return=Z,Z=ce;break e}}else if(Q.elementType===Ae||typeof Ae=="object"&&Ae!==null&&Ae.$$typeof===D&&Co(Ae)===Q.type){u(Z,Q.sibling),ce=y(Q,ee.props),Fc(ce,ee),ce.return=Z,Z=ce;break e}u(Z,Q);break}else s(Z,Q);Q=Q.sibling}ee.type===b?(ce=So(ee.props.children,Z.mode,ce,ee.key),ce.return=Z,Z=ce):(ce=kd(ee.type,ee.key,ee.props,null,Z.mode,ce),Fc(ce,ee),ce.return=Z,Z=ce)}return N(Z);case O:e:{for(Ae=ee.key;Q!==null;){if(Q.key===Ae)if(Q.tag===4&&Q.stateNode.containerInfo===ee.containerInfo&&Q.stateNode.implementation===ee.implementation){u(Z,Q.sibling),ce=y(Q,ee.children||[]),ce.return=Z,Z=ce;break e}else{u(Z,Q);break}else s(Z,Q);Q=Q.sibling}ce=vv(ee,Z.mode,ce),ce.return=Z,Z=ce}return N(Z);case D:return ee=Co(ee),lt(Z,Q,ee,ce)}if(q(ee))return xe(Z,Q,ee,ce);if(z(ee)){if(Ae=z(ee),typeof Ae!="function")throw Error(r(150));return ee=Ae.call(ee),_e(Z,Q,ee,ce)}if(typeof ee.then=="function")return lt(Z,Q,Ud(ee),ce);
vendor: 4,629 bytes, line 48
48if(ee.$$typeof===C)return lt(Z,Q,$d(Z,ee),ce);Hd(Z,ee)}return typeof ee=="string"&&ee!==""||typeof ee=="number"||typeof ee=="bigint"?(ee=""+ee,Q!==null&&Q.tag===6?(u(Z,Q.sibling),ce=y(Q,ee),ce.return=Z,Z=ce):(u(Z,Q),ce=gv(ee,Z.mode,ce),ce.return=Z,Z=ce),N(Z)):u(Z,Q)}return function(Z,Q,ee,ce){try{Vc=0;var Ae=lt(Z,Q,ee,ce);return Vs=null,Ae}catch(Oe){if(Oe===Hs||Oe===qd)throw Oe;var Ye=Wn(29,Oe,null,Z.mode);return Ye.lanes=ce,Ye.return=Z,Ye}finally{}}}var jo=O_(!0),A_=O_(!1),xi=!1;function jv(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ev(i,s){i=i.updateQueue,s.updateQueue===i&&(s.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,callbacks:null})}function wi(i){return{lane:i,tag:0,payload:null,callback:null,next:null}}function Si(i,s,u){var p=i.updateQueue;if(p===null)return null;if(p=p.shared,(Ze&2)!==0){var y=p.pending;return y===null?s.next=s:(s.next=y.next,y.next=s),p.pending=s,s=Rd(i),s_(i,null,u),s}return Dd(i,p,s,u),Rd(i)}function Kc(i,s,u){if(s=s.updateQueue,s!==null&&(s=s.shared,(u&4194048)!==0)){var p=s.lanes;p&=i.pendingLanes,u|=p,s.lanes=u,Rn(i,u)}}function Nv(i,s){var u=i.updateQueue,p=i.alternate;if(p!==null&&(p=p.updateQueue,u===p)){var y=null,w=null;if(u=u.firstBaseUpdate,u!==null){do{var N={lane:u.lane,tag:u.tag,payload:u.payload,callback:null,next:null};w===null?y=w=N:w=w.next=N,u=u.next}while(u!==null);w===null?y=w=s:w=w.next=s}else y=w=s;u={baseState:p.baseState,firstBaseUpdate:y,lastBaseUpdate:w,shared:p.shared,callbacks:p.callbacks},i.updateQueue=u;return}i=u.lastBaseUpdate,i===null?u.firstBaseUpdate=s:i.next=s,u.lastBaseUpdate=s}var Mv=!1;function Gc(){if(Mv){var i=Us;if(i!==null)throw i}}function Yc(i,s,u,p){Mv=!1;var y=i.updateQueue;xi=!1;var w=y.firstBaseUpdate,N=y.lastBaseUpdate,k=y.shared.pending;if(k!==null){y.shared.pending=null;var G=k,te=G.next;G.next=null,N===null?w=te:N.next=te,N=G;var oe=i.alternate;oe!==null&&(oe=oe.updateQueue,k=oe.lastBaseUpdate,k!==N&&(k===null?oe.firstBaseUpdate=te:k.next=te,oe.lastBaseUpdate=G))}if(w!==null){var de=y.baseState;N=0,oe=te=G=null,k=w;do{var ne=k.lane&-536870913,re=ne!==k.lane;if(re?(Ue&ne)===ne:(p&ne)===ne){ne!==0&&ne===zs&&(Mv=!0),oe!==null&&(oe=oe.next={lane:0,tag:k.tag,payload:k.payload,callback:null,next:null});e:{var xe=i,_e=k;ne=s;var lt=u;switch(_e.tag){case 1:if(xe=_e.payload,typeof xe=="function"){de=xe.call(lt,de,ne);break e}de=xe;break e;case 3:xe.flags=xe.flags&-65537|128;case 0:if(xe=_e.payload,ne=typeof xe=="function"?xe.call(lt,de,ne):xe,ne==null)break e;de=h({},de,ne);break e;case 2:xi=!0}}ne=k.callback,ne!==null&&(i.flags|=64,re&&(i.flags|=8192),re=y.callbacks,re===null?y.callbacks=[ne]:re.push(ne))}else re={lane:ne,tag:k.tag,payload:k.payload,callback:k.callback,next:null},oe===null?(te=oe=re,G=de):oe=oe.next=re,N|=ne;if(k=k.next,k===null){if(k=y.shared.pending,k===null)break;re=k,k=re.next,re.next=null,y.lastBaseUpdate=re,y.shared.pending=null}}while(!0);oe===null&&(G=de),y.baseState=G,y.firstBaseUpdate=te,y.lastBaseUpdate=oe,w===null&&(y.shared.lanes=0),Ci|=N,i.lanes=N,i.memoizedState=de}}function P_(i,s){if(typeof i!="function")throw Error(r(191,i));i.call(s)}function __(i,s){var u=i.callbacks;if(u!==null)for(i.callbacks=null,i=0;i<u.length;i++)P_(u[i],s)}var Fs=B(null),Vd=B(0);function C_(i,s){i=qa,X(Vd,i),X(Fs,s),qa=i|s.baseLanes}function Dv(){X(Vd,qa),X(Fs,Fs.current)}function Rv(){qa=Vd.current,Y(Fs),Y(Vd)}var Zn=B(null),xr=null;function Oi(i){var s=i.alternate;X(Nt,Nt.current&1),X(Zn,i),xr===null&&(s===null||Fs.current!==null||s.memoizedState!==null)&&(xr=i)}function kv(i){X(Nt,Nt.current),X(Zn,i),xr===null&&(xr=i)}function T_(i){i.tag===22?(X(Nt,Nt.current),X(Zn,i),xr===null&&(xr=i)):Ai()}function Ai(){X(Nt,Nt.current),X(Zn,Zn.current)}function Jn(i){Y(Zn),xr===i&&(xr=null),Y(Nt)}var Nt=B(0);function Fd(i){for(var s=i;s!==null;){if(s.tag===13){var u=s.memoizedState;if(u!==null&&(u=u.dehydrated,u===null||zy(u)||Uy(u)))return s}else if(s.tag===19&&(s.memoizedProps.revealOrder==="forwards"||s.memoizedProps.revealOrder==="backwards"||s.memoizedProps.revealOrder==="unstable_legacy-backwards"||s.memoizedProps.revealOrder==="together")){if((s.flags&128)!==0)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===i)break;for(;s.sibling===null;){if(s.return===null||s.return===i)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var Ma=0,Me=null,ot=null,qt=null,Kd=!1,Ks=!1,Eo=!1,Gd=0,Xc=0,Gs=null,VU=0;function _t(){throw Error(r(321))}
vendor: 18,966 bytes, line 48
48function Iv(i,s){if(s===null)return!1;for(var u=0;u<s.length&&u<i.length;u++)if(!Qn(i[u],s[u]))return!1;return!0}function Lv(i,s,u,p,y,w){return Ma=w,Me=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,R.H=i===null||i.memoizedState===null?fC:Zv,Eo=!1,w=u(p,y),Eo=!1,Ks&&(w=E_(s,u,p,y)),j_(i),w}function j_(i){R.H=Zc;var s=ot!==null&&ot.next!==null;if(Ma=0,qt=ot=Me=null,Kd=!1,Xc=0,Gs=null,s)throw Error(r(300));i===null||zt||(i=i.dependencies,i!==null&&Ld(i)&&(zt=!0))}function E_(i,s,u,p){Me=i;var y=0;do{if(Ks&&(Gs=null),Xc=0,Ks=!1,25<=y)throw Error(r(301));if(y+=1,qt=ot=null,i.updateQueue!=null){var w=i.updateQueue;w.lastEffect=null,w.events=null,w.stores=null,w.memoCache!=null&&(w.memoCache.index=0)}R.H=dC,w=s(u,p)}while(Ks);return w}function FU(){var i=R.H,s=i.useState()[0];return s=typeof s.then=="function"?Qc(s):s,i=i.useState()[0],(ot!==null?ot.memoizedState:null)!==i&&(Me.flags|=1024),s}function $v(){var i=Gd!==0;return Gd=0,i}function Bv(i,s,u){s.updateQueue=i.updateQueue,s.flags&=-2053,i.lanes&=~u}function qv(i){if(Kd){for(i=i.memoizedState;i!==null;){var s=i.queue;s!==null&&(s.pending=null),i=i.next}Kd=!1}Ma=0,qt=ot=Me=null,Ks=!1,Xc=Gd=0,Gs=null}function Tn(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return qt===null?Me.memoizedState=qt=i:qt=qt.next=i,qt}function Mt(){if(ot===null){var i=Me.alternate;i=i!==null?i.memoizedState:null}else i=ot.next;var s=qt===null?Me.memoizedState:qt.next;if(s!==null)qt=s,ot=i;else{if(i===null)throw Me.alternate===null?Error(r(467)):Error(r(310));ot=i,i={memoizedState:ot.memoizedState,baseState:ot.baseState,baseQueue:ot.baseQueue,queue:ot.queue,next:null},qt===null?Me.memoizedState=qt=i:qt=qt.next=i}return qt}function Yd(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Qc(i){var s=Xc;return Xc+=1,Gs===null&&(Gs=[]),i=x_(Gs,i,s),s=Me,(qt===null?s.memoizedState:qt.next)===null&&(s=s.alternate,R.H=s===null||s.memoizedState===null?fC:Zv),i}function Xd(i){if(i!==null&&typeof i=="object"){if(typeof i.then=="function")return Qc(i);if(i.$$typeof===C)return sn(i)}throw Error(r(438,String(i)))}function zv(i){var s=null,u=Me.updateQueue;if(u!==null&&(s=u.memoCache),s==null){var p=Me.alternate;p!==null&&(p=p.updateQueue,p!==null&&(p=p.memoCache,p!=null&&(s={data:p.data.map(function(y){return y.slice()}),index:0})))}if(s==null&&(s={data:[],index:0}),u===null&&(u=Yd(),Me.updateQueue=u),u.memoCache=s,u=s.data[s.index],u===void 0)for(u=s.data[s.index]=Array(i),p=0;p<i;p++)u[p]=U;return s.index++,u}function Da(i,s){return typeof s=="function"?s(i):s}function Qd(i){var s=Mt();return Uv(s,ot,i)}function Uv(i,s,u){var p=i.queue;if(p===null)throw Error(r(311));p.lastRenderedReducer=u;var y=i.baseQueue,w=p.pending;if(w!==null){if(y!==null){var N=y.next;y.next=w.next,w.next=N}s.baseQueue=y=w,p.pending=null}if(w=i.baseState,y===null)i.memoizedState=w;else{s=y.next;var k=N=null,G=null,te=s,oe=!1;do{var de=te.lane&-536870913;if(de!==te.lane?(Ue&de)===de:(Ma&de)===de){var ne=te.revertLane;if(ne===0)G!==null&&(G=G.next={lane:0,revertLane:0,gesture:null,action:te.action,hasEagerState:te.hasEagerState,eagerState:te.eagerState,next:null}),de===zs&&(oe=!0);else if((Ma&ne)===ne){te=te.next,ne===zs&&(oe=!0);continue}else de={lane:0,revertLane:te.revertLane,gesture:null,action:te.action,hasEagerState:te.hasEagerState,eagerState:te.eagerState,next:null},G===null?(k=G=de,N=w):G=G.next=de,Me.lanes|=ne,Ci|=ne;de=te.action,Eo&&u(w,de),w=te.hasEagerState?te.eagerState:u(w,de)}else ne={lane:de,revertLane:te.revertLane,gesture:te.gesture,action:te.action,hasEagerState:te.hasEagerState,eagerState:te.eagerState,next:null},G===null?(k=G=ne,N=w):G=G.next=ne,Me.lanes|=de,Ci|=de;te=te.next}while(te!==null&&te!==s);if(G===null?N=w:G.next=k,!Qn(w,i.memoizedState)&&(zt=!0,oe&&(u=Us,u!==null)))throw u;i.memoizedState=w,i.baseState=N,i.baseQueue=G,p.lastRenderedState=w}return y===null&&(p.lanes=0),[i.memoizedState,p.dispatch]}function Hv(i){var s=Mt(),u=s.queue;if(u===null)throw Error(r(311));u.lastRenderedReducer=i;var p=u.dispatch,y=u.pending,w=s.memoizedState;if(y!==null){u.pending=null;var N=y=y.next;do w=i(w,N.action),N=N.next;while(N!==y);Qn(w,s.memoizedState)||(zt=!0),s.memoizedState=w,s.baseQueue===null&&(s.baseState=w),u.lastRenderedState=w}return[w,p]}function N_(i,s,u){var p=Me,y=Mt(),w=Ve;if(w){if(u===void 0)throw Error(r(407));u=u()}else u=s();var N=!Qn((ot||y).memoizedState,u);if(N&&(y.memoizedState=u,zt=!0),y=y.queue,Kv(R_.bind(null,p,y,i),[i]),y.getSnapshot!==s||N||qt!==null&&qt.memoizedState.tag&1){if(p.flags|=2048,Ys(9,{destroy:void 0},D_.bind(null,p,y,u,s),null),ft===null)throw Error(r(349));w||(Ma&127)!==0||M_(p,s,u)}return u}function M_(i,s,u){i.flags|=16384,i={getSnapshot:s,value:u},s=Me.updateQueue,s===null?(s=Yd(),Me.updateQueue=s,s.stores=[i]):(u=s.stores,u===null?s.stores=[i]:u.push(i))}function D_(i,s,u,p){s.value=u,s.getSnapshot=p,k_(s)&&I_(i)}function R_(i,s,u){return u(function(){k_(s)&&I_(i)})}function k_(i){var s=i.getSnapshot;i=i.value;try{var u=s();return!Qn(i,u)}catch{return!0}}function I_(i){var s=wo(i,2);s!==null&&Un(s,i,2)}function Vv(i){var s=Tn();if(typeof i=="function"){var u=i;if(i=u(),Eo){Lr(!0);try{u()}finally{Lr(!1)}}}return s.memoizedState=s.baseState=i,s.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Da,lastRenderedState:i},s}function L_(i,s,u,p){return i.baseState=u,Uv(i,ot,typeof p=="function"?p:Da)}function KU(i,s,u,p,y){if(Jd(i))throw Error(r(485));if(i=s.action,i!==null){var w={payload:y,action:i,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(N){w.listeners.push(N)}};R.T!==null?u(!0):w.isTransition=!1,p(w),u=s.pending,u===null?(w.next=s.pending=w,$_(s,w)):(w.next=u.next,s.pending=u.next=w)}}function $_(i,s){var u=s.action,p=s.payload,y=i.state;if(s.isTransition){var w=R.T,N={};R.T=N;try{var k=u(y,p),G=R.S;G!==null&&G(N,k),B_(i,s,k)}catch(te){Fv(i,s,te)}finally{w!==null&&N.types!==null&&(w.types=N.types),R.T=w}}else try{w=u(y,p),B_(i,s,w)}catch(te){Fv(i,s,te)}}function B_(i,s,u){u!==null&&typeof u=="object"&&typeof u.then=="function"?u.then(function(p){q_(i,s,p)},function(p){return Fv(i,s,p)}):q_(i,s,u)}function q_(i,s,u){s.status="fulfilled",s.value=u,z_(s),i.state=u,s=i.pending,s!==null&&(u=s.next,u===s?i.pending=null:(u=u.next,s.next=u,$_(i,u)))}function Fv(i,s,u){var p=i.pending;if(i.pending=null,p!==null){p=p.next;do s.status="rejected",s.reason=u,z_(s),s=s.next;while(s!==p)}i.action=null}function z_(i){i=i.listeners;for(var s=0;s<i.length;s++)(0,i[s])()}function U_(i,s){return s}function H_(i,s){if(Ve){var u=ft.formState;if(u!==null){e:{var p=Me;if(Ve){if(gt){t:{for(var y=gt,w=br;y.nodeType!==8;){if(!w){y=null;break t}if(y=wr(y.nextSibling),y===null){y=null;break t}}w=y.data,y=w==="F!"||w==="F"?y:null}if(y){gt=wr(y.nextSibling),p=y.data==="F!";break e}}yi(p)}p=!1}p&&(s=u[0])}}return u=Tn(),u.memoizedState=u.baseState=s,p={pending:null,lanes:0,dispatch:null,lastRenderedReducer:U_,lastRenderedState:s},u.queue=p,u=lC.bind(null,Me,p),p.dispatch=u,p=Vv(!1),w=Wv.bind(null,Me,!1,p.queue),p=Tn(),y={state:s,dispatch:null,action:i,pending:null},p.queue=y,u=KU.bind(null,Me,y,w,u),y.dispatch=u,p.memoizedState=i,[s,u,!1]}function V_(i){var s=Mt();return F_(s,ot,i)}function F_(i,s,u){if(s=Uv(i,s,U_)[0],i=Qd(Da)[0],typeof s=="object"&&s!==null&&typeof s.then=="function")try{var p=Qc(s)}catch(N){throw N===Hs?qd:N}else p=s;s=Mt();var y=s.queue,w=y.dispatch;return u!==s.memoizedState&&(Me.flags|=2048,Ys(9,{destroy:void 0},GU.bind(null,y,u),null)),[p,w,i]}function GU(i,s){i.action=s}function K_(i){var s=Mt(),u=ot;if(u!==null)return F_(s,u,i);Mt(),s=s.memoizedState,u=Mt();var p=u.queue.dispatch;return u.memoizedState=i,[s,p,!1]}function Ys(i,s,u,p){return i={tag:i,create:u,deps:p,inst:s,next:null},s=Me.updateQueue,s===null&&(s=Yd(),Me.updateQueue=s),u=s.lastEffect,u===null?s.lastEffect=i.next=i:(p=u.next,u.next=i,i.next=p,s.lastEffect=i),i}function G_(){return Mt().memoizedState}function Wd(i,s,u,p){var y=Tn();Me.flags|=i,y.memoizedState=Ys(1|s,{destroy:void 0},u,p===void 0?null:p)}function Zd(i,s,u,p){var y=Mt();p=p===void 0?null:p;var w=y.memoizedState.inst;ot!==null&&p!==null&&Iv(p,ot.memoizedState.deps)?y.memoizedState=Ys(s,w,u,p):(Me.flags|=i,y.memoizedState=Ys(1|s,w,u,p))}function Y_(i,s){Wd(8390656,8,i,s)}function Kv(i,s){Zd(2048,8,i,s)}function YU(i){Me.flags|=4;var s=Me.updateQueue;if(s===null)s=Yd(),Me.updateQueue=s,s.events=[i];else{var u=s.events;u===null?s.events=[i]:u.push(i)}}function X_(i){var s=Mt().memoizedState;return YU({ref:s,nextImpl:i}),function(){if((Ze&2)!==0)throw Error(r(440));return s.impl.apply(void 0,arguments)}}function Q_(i,s){return Zd(4,2,i,s)}function W_(i,s){return Zd(4,4,i,s)}function Z_(i,s){if(typeof s=="function"){i=i();var u=s(i);return function(){typeof u=="function"?u():s(null)}}if(s!=null)return i=i(),s.current=i,function(){s.current=null}}function J_(i,s,u){u=u!=null?u.concat([i]):null,Zd(4,4,Z_.bind(null,s,i),u)}function Gv(){}function eC(i,s){var u=Mt();s=s===void 0?null:s;var p=u.memoizedState;return s!==null&&Iv(s,p[1])?p[0]:(u.memoizedState=[i,s],i)}function tC(i,s){var u=Mt();s=s===void 0?null:s;var p=u.memoizedState;if(s!==null&&Iv(s,p[1]))return p[0];if(p=i(),Eo){Lr(!0);try{i()}finally{Lr(!1)}}return u.memoizedState=[p,s],p}function Yv(i,s,u){return u===void 0||(Ma&1073741824)!==0&&(Ue&261930)===0?i.memoizedState=s:(i.memoizedState=u,i=nT(),Me.lanes|=i,Ci|=i,u)}function nC(i,s,u,p){return Qn(u,s)?u:Fs.current!==null?(i=Yv(i,u,p),Qn(i,s)||(zt=!0),i):(Ma&42)===0||(Ma&1073741824)!==0&&(Ue&261930)===0?(zt=!0,i.memoizedState=u):(i=nT(),Me.lanes|=i,Ci|=i,s)}function rC(i,s,u,p,y){var w=$.p;$.p=w!==0&&8>w?w:8;var N=R.T,k={};R.T=k,Wv(i,!1,s,u);try{var G=y(),te=R.S;if(te!==null&&te(k,G),G!==null&&typeof G=="object"&&typeof G.then=="function"){var oe=HU(G,p);Wc(i,s,oe,nr(i))}else Wc(i,s,p,nr(i))}catch(de){Wc(i,s,{then:function(){},status:"rejected",reason:de},nr())}finally{$.p=w,N!==null&&k.types!==null&&(N.types=k.types),R.T=N}}function XU(){}function Xv(i,s,u,p){if(i.tag!==5)throw Error(r(476));var y=aC(i).queue;rC(i,y,s,H,u===null?XU:function(){return iC(i),u(p)})}function aC(i){var s=i.memoizedState;if(s!==null)return s;s={memoizedState:H,baseState:H,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Da,lastRenderedState:H},next:null};var u={};return s.next={memoizedState:u,baseState:u,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Da,lastRenderedState:u},next:null},i.memoizedState=s,i=i.alternate,i!==null&&(i.memoizedState=s),s}function iC(i){var s=aC(i);s.next===null&&(s=i.alternate.memoizedState),Wc(i,s.next.queue,{},nr())}function Qv(){return sn(pu)}function oC(){return Mt().memoizedState}function sC(){return Mt().memoizedState}function QU(i){for(var s=i.return;s!==null;){switch(s.tag){case 24:case 3:var u=nr();i=wi(u);var p=Si(s,i,u);p!==null&&(Un(p,s,u),Kc(p,s,u)),s={cache:Pv()},i.payload=s;return}s=s.return}}function WU(i,s,u){var p=nr();u={lane:p,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},Jd(i)?cC(s,u):(u=pv(i,s,u,p),u!==null&&(Un(u,i,p),uC(u,s,p)))}function lC(i,s,u){var p=nr();Wc(i,s,u,p)}function Wc(i,s,u,p){var y={lane:p,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null};if(Jd(i))cC(s,y);else{var w=i.alternate;if(i.lanes===0&&(w===null||w.lanes===0)&&(w=s.lastRenderedReducer,w!==null))try{var N=s.lastRenderedState,k=w(N,u);if(y.hasEagerState=!0,y.eagerState=k,Qn(k,N))return Dd(i,s,y,0),ft===null&&Md(),!1}catch{}finally{}if(u=pv(i,s,y,p),u!==null)return Un(u,i,p),uC(u,s,p),!0}return!1}function Wv(i,s,u,p){if(p={lane:2,revertLane:jy(),gesture:null,action:p,hasEagerState:!1,eagerState:null,next:null},Jd(i)){if(s)throw Error(r(479))}else s=pv(i,u,p,2),s!==null&&Un(s,i,2)}function Jd(i){var s=i.alternate;return i===Me||s!==null&&s===Me}function cC(i,s){Ks=Kd=!0;var u=i.pending;u===null?s.next=s:(s.next=u.next,u.next=s),i.pending=s}function uC(i,s,u){if((u&4194048)!==0){var p=s.lanes;p&=i.pendingLanes,u|=p,s.lanes=u,Rn(i,u)}}var Zc={readContext:sn,use:Xd,useCallback:_t,useContext:_t,useEffect:_t,useImperativeHandle:_t,useLayoutEffect:_t,useInsertionEffect:_t,useMemo:_t,useReducer:_t,useRef:_t,useState:_t,useDebugValue:_t,useDeferredValue:_t,useTransition:_t,useSyncExternalStore:_t,useId:_t,useHostTransitionStatus:_t,useFormState:_t,useActionState:_t,useOptimistic:_t,useMemoCache:_t,useCacheRefresh:_t};Zc.useEffectEvent=_t;var fC={readContext:sn,use:Xd,useCallback:function(i,s){return Tn().memoizedState=[i,s===void 0?null:s],i},useContext:sn,useEffect:Y_,useImperativeHandle:function(i,s,u){u=u!=null?u.concat([i]):null,Wd(4194308,4,Z_.bind(null,s,i),u)},useLayoutEffect:function(i,s){return Wd(4194308,4,i,s)},useInsertionEffect:function(i,s){Wd(4,2,i,s)},useMemo:function(i,s){var u=Tn();s=s===void 0?null:s;var p=i();if(Eo){Lr(!0);try{i()}finally{Lr(!1)}}return u.memoizedState=[p,s],p},useReducer:function(i,s,u){var p=Tn();if(u!==void 0){var y=u(s);if(Eo){Lr(!0);try{u(s)}finally{Lr(!1)}}}else y=s;return p.memoizedState=p.baseState=y,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:y},p.queue=i,i=i.dispatch=WU.bind(null,Me,i),[p.memoizedState,i]},useRef:function(i){var s=Tn();return i={current:i},s.memoizedState=i},useState:function(i){i=Vv(i);var s=i.queue,u=lC.bind(null,Me,s);return s.dispatch=u,[i.memoizedState,u]},useDebugValue:Gv,useDeferredValue:function(i,s){var u=Tn();return Yv(u,i,s)},useTransition:function(){var i=Vv(!1);return i=rC.bind(null,Me,i.queue,!0,!1),Tn().memoizedState=i,[!1,i]},useSyncExternalStore:function(i,s,u){var p=Me,y=Tn();if(Ve){if(u===void 0)throw Error(r(407));u=u()}else{if(u=s(),ft===null)throw Error(r(349));(Ue&127)!==0||M_(p,s,u)}y.memoizedState=u;var w={value:u,getSnapshot:s};return y.queue=w,Y_(R_.bind(null,p,w,i),[i]),p.flags|=2048,Ys(9,{destroy:void 0},D_.bind(null,p,w,u,s),null),u},useId:function(){var i=Tn(),s=ft.identifierPrefix;if(Ve){var u=ia,p=aa;u=(p&~(1<<32-hn(p)-1)).toString(32)+u,s="_"+s+"R_"+u,u=Gd++,0<u&&(s+="H"+u.toString(32)),s+="_"}else u=VU++,s="_"+s+"r_"+u.toString(32)+"_";return i.memoizedState=s},useHostTransitionStatus:Qv,useFormState:H_,useActionState:H_,useOptimistic:function(i){var s=Tn();s.memoizedState=s.baseState=i;var u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return s.queue=u,s=Wv.bind(null,Me,!0,u),u.dispatch=s,[i,s]},useMemoCache:zv,useCacheRefresh:function(){return Tn().memoizedState=QU.bind(null,Me)},useEffectEvent:function(i){var s=Tn(),u={impl:i};return s.memoizedState=u,function(){if((Ze&2)!==0)throw Error(r(440));return u.impl.apply(void 0,arguments)}}},Zv={readContext:sn,use:Xd,useCallback:eC,useContext:sn,useEffect:Kv,useImperativeHandle:J_,useInsertionEffect:Q_,useLayoutEffect:W_,useMemo:tC,useReducer:Qd,useRef:G_,useState:function(){return Qd(Da)},useDebugValue:Gv,useDeferredValue:function(i,s){var u=Mt();return nC(u,ot.memoizedState,i,s)},useTransition:function(){var i=Qd(Da)[0],s=Mt().memoizedState;return[typeof i=="boolean"?i:Qc(i),s]},useSyncExternalStore:N_,useId:oC,useHostTransitionStatus:Qv,useFormState:V_,useActionState:V_,useOptimistic:function(i,s){var u=Mt();return L_(u,ot,i,s)},useMemoCache:zv,useCacheRefresh:sC};Zv.useEffectEvent=X_;var dC={readContext:sn,use:Xd,useCallback:eC,useContext:sn,useEffect:Kv,useImperativeHandle:J_,useInsertionEffect:Q_,useLayoutEffect:W_,useMemo:tC,useReducer:Hv,useRef:G_,useState:function(){return Hv(Da)},useDebugValue:Gv,useDeferredValue:function(i,s){var u=Mt();return ot===null?Yv(u,i,s):nC(u,ot.memoizedState,i,s)},useTransition:function(){var i=Hv(Da)[0],s=Mt().memoizedState;return[typeof i=="boolean"?i:Qc(i),s]},useSyncExternalStore:N_,useId:oC,useHostTransitionStatus:Qv,useFormState:K_,useActionState:K_,useOptimistic:function(i,s){var u=Mt();return ot!==null?L_(u,ot,i,s):(u.baseState=i,[i,u.queue.dispatch])},useMemoCache:zv,useCacheRefresh:sC};dC.useEffectEvent=X_;function Jv(i,s,u,p){s=i.memoizedState,u=u(p,s),u=u==null?s:h({},s,u),i.memoizedState=u,i.lanes===0&&(i.updateQueue.baseState=u)}var ey={enqueueSetState:function(i,s,u){i=i._reactInternals;var p=nr(),y=wi(p);y.payload=s,u!=null&&(y.callback=u),s=Si(i,y,p),s!==null&&(Un(s,i,p),Kc(s,i,p))},enqueueReplaceState:function(i,s,u){i=i._reactInternals;var p=nr(),y=wi(p);y.tag=1,y.payload=s,u!=null&&(y.callback=u),s=Si(i,y,p),s!==null&&(Un(s,i,p),Kc(s,i,p))},enqueueForceUpdate:function(i,s){i=i._reactInternals;var u=nr(),p=wi(u);p.tag=2,s!=null&&(p.callback=s),s=Si(i,p,u),s!==null&&(Un(s,i,u),Kc(s,i,u))}};function hC(i,s,u,p,y,w,N){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(p,w,N):s.prototype&&s.prototype.isPureReactComponent?!$c(u,p)||!$c(y,w):!0}function pC(i,s,u,p){i=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(u,p),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(u,p),s.state!==i&&ey.enqueueReplaceState(s,s.state,null)}function No(i,s){var u=s;if("ref"in s){u={};for(var p in s)p!=="ref"&&(u[p]=s[p])}if(i=i.defaultProps){u===s&&(u=h({},u));for(var y in i)u[y]===void 0&&(u[y]=i[y])}return u}function mC(i){Nd(i)}function gC(i){console.error(i)}function vC(i){Nd(i)}function eh(i,s){try{var u=i.onUncaughtError;u(s.value,{componentStack:s.stack})}catch(p){setTimeout(function(){throw p})}}function yC(i,s,u){try{var p=i.onCaughtError;p(u.value,{componentStack:u.stack,errorBoundary:s.tag===1?s.stateNode:null})}catch(y){setTimeout(function(){throw y})}}function ty(i,s,u){return u=wi(u),u.tag=3,u.payload={element:null},u.callback=function(){eh(i,s)},u}function bC(i){return i=wi(i),i.tag=3,i}function xC(i,s,u,p){var y=u.type.getDerivedStateFromError;if(typeof y=="function"){var w=p.value;i.payload=function(){return y(w)},i.callback=function(){yC(s,u,p)}}var N=u.stateNode;N!==null&&typeof N.componentDidCatch=="function"&&(i.callback=function(){yC(s,u,p),typeof y!="function"&&(Ti===null?Ti=new Set([this]):Ti.add(this));var k=p.stack;this.componentDidCatch(p.value,{componentStack:k!==null?k:""})})}function ZU(i,s,u,p,y){if(u.flags|=32768,p!==null&&typeof p=="object"&&typeof p.then=="function"){if(s=u.alternate,s!==null&&qs(s,u,y,!0),u=Zn.current,u!==null){switch(u.tag){case 31:case 13:return xr===null?dh():u.alternate===null&&Ct===0&&(Ct=3),u.flags&=-257,u.flags|=65536,u.lanes=y,p===zd?u.flags|=16384:(s=u.updateQueue,s===null?u.updateQueue=new Set([p]):s.add(p),_y(i,p,y)),!1;case 22:return u.flags|=65536,p===zd?u.flags|=16384:(s=u.updateQueue,s===null?(s={transitions:null,markerInstances:null,retryQueue:new Set([p])},u.updateQueue=s):(u=s.retryQueue,u===null?s.retryQueue=new Set([p]):u.add(p)),_y(i,p,y)),!1}throw Error(r(435,u.tag))}return _y(i,p,y),dh(),!1}if(Ve)return s=Zn.current,s!==null?((s.flags&65536)===0&&(s.flags|=256),s.flags|=65536,s.lanes=y,p!==xv&&(i=Error(r(422),{cause:p}),zc(gr(i,u)))):(p!==xv&&(s=Error(r(423),{cause:p}
vendor: 14,390 bytes, line 48
48),zc(gr(s,u))),i=i.current.alternate,i.flags|=65536,y&=-y,i.lanes|=y,p=gr(p,u),y=ty(i.stateNode,p,y),Nv(i,y),Ct!==4&&(Ct=2)),!1;var w=Error(r(520),{cause:p});if(w=gr(w,u),ou===null?ou=[w]:ou.push(w),Ct!==4&&(Ct=2),s===null)return!0;p=gr(p,u),u=s;do{switch(u.tag){case 3:return u.flags|=65536,i=y&-y,u.lanes|=i,i=ty(u.stateNode,p,i),Nv(u,i),!1;case 1:if(s=u.type,w=u.stateNode,(u.flags&128)===0&&(typeof s.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&(Ti===null||!Ti.has(w))))return u.flags|=65536,y&=-y,u.lanes|=y,y=bC(y),xC(y,i,u,p),Nv(u,y),!1}u=u.return}while(u!==null);return!1}var ny=Error(r(461)),zt=!1;function ln(i,s,u,p){s.child=i===null?A_(s,null,u,p):jo(s,i.child,u,p)}function wC(i,s,u,p,y){u=u.render;var w=s.ref;if("ref"in p){var N={};for(var k in p)k!=="ref"&&(N[k]=p[k])}else N=p;return Po(s),p=Lv(i,s,u,N,w,y),k=$v(),i!==null&&!zt?(Bv(i,s,y),Ra(i,s,y)):(Ve&&k&&yv(s),s.flags|=1,ln(i,s,p,y),s.child)}function SC(i,s,u,p,y){if(i===null){var w=u.type;return typeof w=="function"&&!mv(w)&&w.defaultProps===void 0&&u.compare===null?(s.tag=15,s.type=w,OC(i,s,w,p,y)):(i=kd(u.type,null,p,s,s.mode,y),i.ref=s.ref,i.return=s,s.child=i)}if(w=i.child,!uy(i,y)){var N=w.memoizedProps;if(u=u.compare,u=u!==null?u:$c,u(N,p)&&i.ref===s.ref)return Ra(i,s,y)}return s.flags|=1,i=Ta(w,p),i.ref=s.ref,i.return=s,s.child=i}function OC(i,s,u,p,y){if(i!==null){var w=i.memoizedProps;if($c(w,p)&&i.ref===s.ref)if(zt=!1,s.pendingProps=p=w,uy(i,y))(i.flags&131072)!==0&&(zt=!0);else return s.lanes=i.lanes,Ra(i,s,y)}return ry(i,s,u,p,y)}function AC(i,s,u,p){var y=p.children,w=i!==null?i.memoizedState:null;if(i===null&&s.stateNode===null&&(s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),p.mode==="hidden"){if((s.flags&128)!==0){if(w=w!==null?w.baseLanes|u:u,i!==null){for(p=s.child=i.child,y=0;p!==null;)y=y|p.lanes|p.childLanes,p=p.sibling;p=y&~w}else p=0,s.child=null;return PC(i,s,w,u,p)}if((u&536870912)!==0)s.memoizedState={baseLanes:0,cachePool:null},i!==null&&Bd(s,w!==null?w.cachePool:null),w!==null?C_(s,w):Dv(),T_(s);else return p=s.lanes=536870912,PC(i,s,w!==null?w.baseLanes|u:u,u,p)}else w!==null?(Bd(s,w.cachePool),C_(s,w),Ai(),s.memoizedState=null):(i!==null&&Bd(s,null),Dv(),Ai());return ln(i,s,y,u),s.child}function Jc(i,s){return i!==null&&i.tag===22||s.stateNode!==null||(s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.sibling}function PC(i,s,u,p,y){var w=Cv();return w=w===null?null:{parent:Bt._currentValue,pool:w},s.memoizedState={baseLanes:u,cachePool:w},i!==null&&Bd(s,null),Dv(),T_(s),i!==null&&qs(i,s,p,!0),s.childLanes=y,null}function th(i,s){return s=rh({mode:s.mode,children:s.children},i.mode),s.ref=i.ref,i.child=s,s.return=i,s}function _C(i,s,u){return jo(s,i.child,null,u),i=th(s,s.pendingProps),i.flags|=2,Jn(s),s.memoizedState=null,i}function JU(i,s,u){var p=s.pendingProps,y=(s.flags&128)!==0;if(s.flags&=-129,i===null){if(Ve){if(p.mode==="hidden")return i=th(s,p),s.lanes=536870912,Jc(null,i);if(kv(s),(i=gt)?(i=$T(i,br),i=i!==null&&i.data==="&"?i:null,i!==null&&(s.memoizedState={dehydrated:i,treeContext:gi!==null?{id:aa,overflow:ia}:null,retryLane:536870912,hydrationErrors:null},u=c_(i),u.return=s,s.child=u,on=s,gt=null)):i=null,i===null)throw yi(s);return s.lanes=536870912,null}return th(s,p)}var w=i.memoizedState;if(w!==null){var N=w.dehydrated;if(kv(s),y)if(s.flags&256)s.flags&=-257,s=_C(i,s,u);else if(s.memoizedState!==null)s.child=i.child,s.flags|=128,s=null;else throw Error(r(558));else if(zt||qs(i,s,u,!1),y=(u&i.childLanes)!==0,zt||y){if(p=ft,p!==null&&(N=kn(p,u),N!==0&&N!==w.retryLane))throw w.retryLane=N,wo(i,N),Un(p,i,N),ny;dh(),s=_C(i,s,u)}else i=w.treeContext,gt=wr(N.nextSibling),on=s,Ve=!0,vi=null,br=!1,i!==null&&d_(s,i),s=th(s,p),s.flags|=4096;return s}return i=Ta(i.child,{mode:p.mode,children:p.children}),i.ref=s.ref,s.child=i,i.return=s,i}function nh(i,s){var u=s.ref;if(u===null)i!==null&&i.ref!==null&&(s.flags|=4194816);else{if(typeof u!="function"&&typeof u!="object")throw Error(r(284));(i===null||i.ref!==u)&&(s.flags|=4194816)}}function ry(i,s,u,p,y){return Po(s),u=Lv(i,s,u,p,void 0,y),p=$v(),i!==null&&!zt?(Bv(i,s,y),Ra(i,s,y)):(Ve&&p&&yv(s),s.flags|=1,ln(i,s,u,y),s.child)}function CC(i,s,u,p,y,w){return Po(s),s.updateQueue=null,u=E_(s,p,u,y),j_(i),p=$v(),i!==null&&!zt?(Bv(i,s,w),Ra(i,s,w)):(Ve&&p&&yv(s),s.flags|=1,ln(i,s,u,w),s.child)}function TC(i,s,u,p,y){if(Po(s),s.stateNode===null){var w=Is,N=u.contextType;typeof N=="object"&&N!==null&&(w=sn(N)),w=new u(p,w),s.memoizedState=w.state!==null&&w.state!==void 0?w.state:null,w.updater=ey,s.stateNode=w,w._reactInternals=s,w=s.stateNode,w.props=p,w.state=s.memoizedState,w.refs={},jv(s),N=u.contextType,w.context=typeof N=="object"&&N!==null?sn(N):Is,w.state=s.memoizedState,N=u.getDerivedStateFromProps,typeof N=="function"&&(Jv(s,u,N,p),w.state=s.memoizedState),typeof u.getDerivedStateFromProps=="function"||typeof w.getSnapshotBeforeUpdate=="function"||typeof w.UNSAFE_componentWillMount!="function"&&typeof w.componentWillMount!="function"||(N=w.state,typeof w.componentWillMount=="function"&&w.componentWillMount(),typeof w.UNSAFE_componentWillMount=="function"&&w.UNSAFE_componentWillMount(),N!==w.state&&ey.enqueueReplaceState(w,w.state,null),Yc(s,p,w,y),Gc(),w.state=s.memoizedState),typeof w.componentDidMount=="function"&&(s.flags|=4194308),p=!0}else if(i===null){w=s.stateNode;var k=s.memoizedProps,G=No(u,k);w.props=G;var te=w.context,oe=u.contextType;N=Is,typeof oe=="object"&&oe!==null&&(N=sn(oe));var de=u.getDerivedStateFromProps;oe=typeof de=="function"||typeof w.getSnapshotBeforeUpdate=="function",k=s.pendingProps!==k,oe||typeof w.UNSAFE_componentWillReceiveProps!="function"&&typeof w.componentWillReceiveProps!="function"||(k||te!==N)&&pC(s,w,p,N),xi=!1;var ne=s.memoizedState;w.state=ne,Yc(s,p,w,y),Gc(),te=s.memoizedState,k||ne!==te||xi?(typeof de=="function"&&(Jv(s,u,de,p),te=s.memoizedState),(G=xi||hC(s,u,G,p,ne,te,N))?(oe||typeof w.UNSAFE_componentWillMount!="function"&&typeof w.componentWillMount!="function"||(typeof w.componentWillMount=="function"&&w.componentWillMount(),typeof w.UNSAFE_componentWillMount=="function"&&w.UNSAFE_componentWillMount()),typeof w.componentDidMount=="function"&&(s.flags|=4194308)):(typeof w.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=p,s.memoizedState=te),w.props=p,w.state=te,w.context=N,p=G):(typeof w.componentDidMount=="function"&&(s.flags|=4194308),p=!1)}else{w=s.stateNode,Ev(i,s),N=s.memoizedProps,oe=No(u,N),w.props=oe,de=s.pendingProps,ne=w.context,te=u.contextType,G=Is,typeof te=="object"&&te!==null&&(G=sn(te)),k=u.getDerivedStateFromProps,(te=typeof k=="function"||typeof w.getSnapshotBeforeUpdate=="function")||typeof w.UNSAFE_componentWillReceiveProps!="function"&&typeof w.componentWillReceiveProps!="function"||(N!==de||ne!==G)&&pC(s,w,p,G),xi=!1,ne=s.memoizedState,w.state=ne,Yc(s,p,w,y),Gc();var re=s.memoizedState;N!==de||ne!==re||xi||i!==null&&i.dependencies!==null&&Ld(i.dependencies)?(typeof k=="function"&&(Jv(s,u,k,p),re=s.memoizedState),(oe=xi||hC(s,u,oe,p,ne,re,G)||i!==null&&i.dependencies!==null&&Ld(i.dependencies))?(te||typeof w.UNSAFE_componentWillUpdate!="function"&&typeof w.componentWillUpdate!="function"||(typeof w.componentWillUpdate=="function"&&w.componentWillUpdate(p,re,G),typeof w.UNSAFE_componentWillUpdate=="function"&&w.UNSAFE_componentWillUpdate(p,re,G)),typeof w.componentDidUpdate=="function"&&(s.flags|=4),typeof w.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof w.componentDidUpdate!="function"||N===i.memoizedProps&&ne===i.memoizedState||(s.flags|=4),typeof w.getSnapshotBeforeUpdate!="function"||N===i.memoizedProps&&ne===i.memoizedState||(s.flags|=1024),s.memoizedProps=p,s.memoizedState=re),w.props=p,w.state=re,w.context=G,p=oe):(typeof w.componentDidUpdate!="function"||N===i.memoizedProps&&ne===i.memoizedState||(s.flags|=4),typeof w.getSnapshotBeforeUpdate!="function"||N===i.memoizedProps&&ne===i.memoizedState||(s.flags|=1024),p=!1)}return w=p,nh(i,s),p=(s.flags&128)!==0,w||p?(w=s.stateNode,u=p&&typeof u.getDerivedStateFromError!="function"?null:w.render(),s.flags|=1,i!==null&&p?(s.child=jo(s,i.child,null,y),s.child=jo(s,null,u,y)):ln(i,s,u,y),s.memoizedState=w.state,i=s.child):i=Ra(i,s,y),i}function jC(i,s,u,p){return Oo(),s.flags|=256,ln(i,s,u,p),s.child}var ay={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function iy(i){return{baseLanes:i,cachePool:y_()}}function oy(i,s,u){return i=i!==null?i.childLanes&~u:0,s&&(i|=tr),i}function EC(i,s,u){var p=s.pendingProps,y=!1,w=(s.flags&128)!==0,N;if((N=w)||(N=i!==null&&i.memoizedState===null?!1:(Nt.current&2)!==0),N&&(y=!0,s.flags&=-129),N=(s.flags&32)!==0,s.flags&=-33,i===null){if(Ve){if(y?Oi(s):Ai(),(i=gt)?(i=$T(i,br),i=i!==null&&i.data!=="&"?i:null,i!==null&&(s.memoizedState={dehydrated:i,treeContext:gi!==null?{id:aa,overflow:ia}:null,retryLane:536870912,hydrationErrors:null},u=c_(i),u.return=s,s.child=u,on=s,gt=null)):i=null,i===null)throw yi(s);return Uy(i)?s.lanes=32:s.lanes=536870912,null}var k=p.children;return p=p.fallback,y?(Ai(),y=s.mode,k=rh({mode:"hidden",children:k},y),p=So(p,y,u,null),k.return=s,p.return=s,k.sibling=p,s.child=k,p=s.child,p.memoizedState=iy(u),p.childLanes=oy(i,N,u),s.memoizedState=ay,Jc(null,p)):(Oi(s),sy(s,k))}var G=i.memoizedState;if(G!==null&&(k=G.dehydrated,k!==null)){if(w)s.flags&256?(Oi(s),s.flags&=-257,s=ly(i,s,u)):s.memoizedState!==null?(Ai(),s.child=i.child,s.flags|=128,s=null):(Ai(),k=p.fallback,y=s.mode,p=rh({mode:"visible",children:p.children},y),k=So(k,y,u,null),k.flags|=2,p.return=s,k.return=s,p.sibling=k,s.child=p,jo(s,i.child,null,u),p=s.child,p.memoizedState=iy(u),p.childLanes=oy(i,N,u),s.memoizedState=ay,s=Jc(null,p));else if(Oi(s),Uy(k)){if(N=k.nextSibling&&k.nextSibling.dataset,N)var te=N.dgst;N=te,p=Error(r(419)),p.stack="",p.digest=N,zc({value:p,source:null,stack:null}),s=ly(i,s,u)}else if(zt||qs(i,s,u,!1),N=(u&i.childLanes)!==0,zt||N){if(N=ft,N!==null&&(p=kn(N,u),p!==0&&p!==G.retryLane))throw G.retryLane=p,wo(i,p),Un(N,i,p),ny;zy(k)||dh(),s=ly(i,s,u)}else zy(k)?(s.flags|=192,s.child=i.child,s=null):(i=G.treeContext,gt=wr(k.nextSibling),on=s,Ve=!0,vi=null,br=!1,i!==null&&d_(s,i),s=sy(s,p.children),s.flags|=4096);return s}return y?(Ai(),k=p.fallback,y=s.mode,G=i.child,te=G.sibling,p=Ta(G,{mode:"hidden",children:p.children}),p.subtreeFlags=G.subtreeFlags&65011712,te!==null?k=Ta(te,k):(k=So(k,y,u,null),k.flags|=2),k.return=s,p.return=s,p.sibling=k,s.child=p,Jc(null,p),p=s.child,k=i.child.memoizedState,k===null?k=iy(u):(y=k.cachePool,y!==null?(G=Bt._currentValue,y=y.parent!==G?{parent:G,pool:G}:y):y=y_(),k={baseLanes:k.baseLanes|u,cachePool:y}),p.memoizedState=k,p.childLanes=oy(i,N,u),s.memoizedState=ay,Jc(i.child,p)):(Oi(s),u=i.child,i=u.sibling,u=Ta(u,{mode:"visible",children:p.children}),u.return=s,u.sibling=null,i!==null&&(N=s.deletions,N===null?(s.deletions=[i],s.flags|=16):N.push(i)),s.child=u,s.memoizedState=null,u)}function sy(i,s){return s=rh({mode:"visible",children:s},i.mode),s.return=i,i.child=s}function rh(i,s){return i=Wn(22,i,null,s),i.lanes=0,i}function ly(i,s,u){return jo(s,i.child,null,u),i=sy(s,s.pendingProps.children),i.flags|=2,s.memoizedState=null,i}function NC(i,s,u){i.lanes|=s;var p=i.alternate;p!==null&&(p.lanes|=s),Ov(i.return,s,u)}function cy(i,s,u,p,y,w){var N=i.memoizedState;N===null?i.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:p,tail:u,tailMode:y,treeForkCount:w}:(N.isBackwards=s,N.rendering=null,N.renderingStartTime=0,N.last=p,N.tail=u,N.tailMode=y,N.treeForkCount=w)}function MC(i,s,u){var p=s.pendingProps,y=p.revealOrder,w=p.tail;p=p.children;var N=Nt.current,k=(N&2)!==0;if(k?(N=N&1|2,s.flags|=128):N&=1,X(Nt,N),ln(i,s,p,u),p=Ve?qc:0,!k&&i!==null&&(i.flags&128)!==0)e:for(i=s.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&NC(i,u,s);else if(i.tag===19)NC(i,u,s);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===s)break e;for(;i.sibling===null;){if(i.return===null||i.return===s)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}switch(y){case"forwards":for(u=s.child,y=null;u!==null;)i=u.alternate,i!==null&&Fd(i)===null&&(y=u),u=u.sibling;u=y,u===null?(y=s.child,s.child=null):(y=u.sibling,u.sibling=null),cy(s,!1,y,u,w,p);break;case"backwards":case"unstable_legacy-backwards":for(u=null,y=s.child,s.child=null;y!==null;){if(i=y.alternate,i!==null&&Fd(i)===null){s.child=y;break}i=y.sibling,y.sibling=u,u=y,y=i}cy(s,!0,u,null,w,p);break;case"together":cy(s,!1,null,null,void 0,p);break;default:s.memoizedState=null}return s.child}function Ra(i,s,u){if(i!==null&&(s.dependencies=i.dependencies),Ci|=s.lanes,(u&s.childLanes)===0)if(i!==null){if(qs(i,s,u,!1),(u&s.childLanes)===0)return null}else return null;if(i!==null&&s.child!==i.child)throw Error(r(153));if(s.child!==null){for(i=s.child,u=Ta(i,i.pendingProps),s.child=u,u.return=s;i.sibling!==null;)i=i.sibling,u=u.sibling=Ta(i,i.pendingProps),u.return=s;u.sibling=null}return s.child}function uy(i,s){return(i.lanes&s)!==0?!0:(i=i.dependencies,!!(i!==null&&Ld(i)))}function eH(i,s,u){switch(s.tag){case 3:me(s,s.stateNode.containerInfo),bi(s,Bt,i.memoizedState.cache),Oo();break;case 27:case 5:pe(s);break;case 4:me(s,s.stateNode.containerInfo);break;case 10:bi(s,s.type,s.memoizedProps.value);break;case 31:if(s.memoizedState!==null)return s.flags|=128,kv(s),null;break;case 13:var p=s.memoizedState;if(p!==null)return p.dehydrated!==null?(Oi(s),s.flags|=128,null):(u&s.child.childLanes)!==0?EC(i,s,u):(Oi(s),i=Ra(i,s,u),i!==null?i.sibling:null);Oi(s);break;case 19:var y=(i.flags&128)!==0;if(p=(u&s.childLanes)!==0,p||(qs(i,s,u,!1),p=(u&s.childLanes)!==0),y){if(p)return MC(i,s,u);s.flags|=128}if(y=s.memoizedState,y!==null&&(y.rendering=null,y.tail=null,y.lastEffect=null),X(Nt,Nt.current),p)break;return null;case 22:return s.lanes=0,AC(i,s,u,s.pendingProps);case 24:bi(s,Bt,i.memoizedState.cache)}return Ra(i,s,u)}function DC(i,s,u){if(i!==null)if(i.memoizedProps!==s.pendingProps)zt=!0;else{if(!uy(i,u)&&(s.flags&128)===0)return zt=!1,eH(i,s,u);zt=(i.flags&131072)!==0}else zt=!1,Ve&&(s.flags&1048576)!==0&&f_(s,qc,s.index);switch(s.lanes=0,s.tag){case 16:e:{var p=s.pendingProps;if(i=Co(s.elementType),s.type=i,typeof i=="function")mv(i)?(p=No(i,p),s.tag=1,s=TC(null,s,i,p,u)):(s.tag=0,s=ry(null,s,i,p,u));else{if(i!=null){var y=i.$$typeof;
vendor: 4,737 bytes, line 48
48if(y===M){s.tag=11,s=wC(null,s,i,p,u);break e}else if(y===T){s.tag=14,s=SC(null,s,i,p,u);break e}}throw s=K(i)||i,Error(r(306,s,""))}}return s;case 0:return ry(i,s,s.type,s.pendingProps,u);case 1:return p=s.type,y=No(p,s.pendingProps),TC(i,s,p,y,u);case 3:e:{if(me(s,s.stateNode.containerInfo),i===null)throw Error(r(387));p=s.pendingProps;var w=s.memoizedState;y=w.element,Ev(i,s),Yc(s,p,null,u);var N=s.memoizedState;if(p=N.cache,bi(s,Bt,p),p!==w.cache&&Av(s,[Bt],u,!0),Gc(),p=N.element,w.isDehydrated)if(w={element:p,isDehydrated:!1,cache:N.cache},s.updateQueue.baseState=w,s.memoizedState=w,s.flags&256){s=jC(i,s,p,u);break e}else if(p!==y){y=gr(Error(r(424)),s),zc(y),s=jC(i,s,p,u);break e}else{switch(i=s.stateNode.containerInfo,i.nodeType){case 9:i=i.body;break;default:i=i.nodeName==="HTML"?i.ownerDocument.body:i}for(gt=wr(i.firstChild),on=s,Ve=!0,vi=null,br=!0,u=A_(s,null,p,u),s.child=u;u;)u.flags=u.flags&-3|4096,u=u.sibling}else{if(Oo(),p===y){s=Ra(i,s,u);break e}ln(i,s,p,u)}s=s.child}return s;case 26:return nh(i,s),i===null?(u=VT(s.type,null,s.pendingProps,null))?s.memoizedState=u:Ve||(u=s.type,i=s.pendingProps,p=bh(he.current).createElement(u),p[an]=s,p[In]=i,cn(p,u,i),en(p),s.stateNode=p):s.memoizedState=VT(s.type,i.memoizedProps,s.pendingProps,i.memoizedState),null;case 27:return pe(s),i===null&&Ve&&(p=s.stateNode=zT(s.type,s.pendingProps,he.current),on=s,br=!0,y=gt,Mi(s.type)?(Hy=y,gt=wr(p.firstChild)):gt=y),ln(i,s,s.pendingProps.children,u),nh(i,s),i===null&&(s.flags|=4194304),s.child;case 5:return i===null&&Ve&&((y=p=gt)&&(p=EH(p,s.type,s.pendingProps,br),p!==null?(s.stateNode=p,on=s,gt=wr(p.firstChild),br=!1,y=!0):y=!1),y||yi(s)),pe(s),y=s.type,w=s.pendingProps,N=i!==null?i.memoizedProps:null,p=w.children,$y(y,w)?p=null:N!==null&&$y(y,N)&&(s.flags|=32),s.memoizedState!==null&&(y=Lv(i,s,FU,null,null,u),pu._currentValue=y),nh(i,s),ln(i,s,p,u),s.child;case 6:return i===null&&Ve&&((i=u=gt)&&(u=NH(u,s.pendingProps,br),u!==null?(s.stateNode=u,on=s,gt=null,i=!0):i=!1),i||yi(s)),null;case 13:return EC(i,s,u);case 4:return me(s,s.stateNode.containerInfo),p=s.pendingProps,i===null?s.child=jo(s,null,p,u):ln(i,s,p,u),s.child;case 11:return wC(i,s,s.type,s.pendingProps,u);case 7:return ln(i,s,s.pendingProps,u),s.child;case 8:return ln(i,s,s.pendingProps.children,u),s.child;case 12:return ln(i,s,s.pendingProps.children,u),s.child;case 10:return p=s.pendingProps,bi(s,s.type,p.value),ln(i,s,p.children,u),s.child;case 9:return y=s.type._context,p=s.pendingProps.children,Po(s),y=sn(y),p=p(y),s.flags|=1,ln(i,s,p,u),s.child;case 14:return SC(i,s,s.type,s.pendingProps,u);case 15:return OC(i,s,s.type,s.pendingProps,u);case 19:return MC(i,s,u);case 31:return JU(i,s,u);case 22:return AC(i,s,u,s.pendingProps);case 24:return Po(s),p=sn(Bt),i===null?(y=Cv(),y===null&&(y=ft,w=Pv(),y.pooledCache=w,w.refCount++,w!==null&&(y.pooledCacheLanes|=u),y=w),s.memoizedState={parent:p,cache:y},jv(s),bi(s,Bt,y)):((i.lanes&u)!==0&&(Ev(i,s),Yc(s,null,null,u),Gc()),y=i.memoizedState,w=s.memoizedState,y.parent!==p?(y={parent:p,cache:p},s.memoizedState=y,s.lanes===0&&(s.memoizedState=s.updateQueue.baseState=y),bi(s,Bt,p)):(p=w.cache,bi(s,Bt,p),p!==y.cache&&Av(s,[Bt],u,!0))),ln(i,s,s.pendingProps.children,u),s.child;case 29:throw s.pendingProps}throw Error(r(156,s.tag))}function ka(i){i.flags|=4}function fy(i,s,u,p,y){if((s=(i.mode&32)!==0)&&(s=!1),s){if(i.flags|=16777216,(y&335544128)===y)if(i.stateNode.complete)i.flags|=8192;else if(oT())i.flags|=8192;else throw To=zd,Tv}else i.flags&=-16777217}function RC(i,s){if(s.type!=="stylesheet"||(s.state.loading&4)!==0)i.flags&=-16777217;else if(i.flags|=16777216,!XT(s))if(oT())i.flags|=8192;else throw To=zd,Tv}function ah(i,s){s!==null&&(i.flags|=4),i.flags&16384&&(s=i.tag!==22?pn():536870912,i.lanes|=s,Zs|=s)}function eu(i,s){if(!Ve)switch(i.tailMode){case"hidden":s=i.tail;for(var u=null;s!==null;)s.alternate!==null&&(u=s),s=s.sibling;u===null?i.tail=null:u.sibling=null;break;case"collapsed":u=i.tail;for(var p=null;u!==null;)u.alternate!==null&&(p=u),u=u.sibling;p===null?s||i.tail===null?i.tail=null:i.tail.sibling=null:p.sibling=null}}function vt(i){var s=i.alternate!==null&&i.alternate.child===i.child,u=0,p=0;if(s)for(var y=i.child;y!==null;)u|=y.lanes|y.childLanes,p|=y.subtreeFlags&65011712,p|=y.flags&65011712,y.return=i,y=y.sibling;else for(y=i.child;y!==null;)u|=y.lanes|y.childLanes,p|=y.subtreeFlags,p|=y.flags,y.return=i,y=y.sibling;return i.subtreeFlags|=p,i.childLanes=u,s}function tH(i,s,u){var p=s.pendingProps;switch(bv(s),s.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return vt(s),null;case 1:return vt(s),null;case 3:return u=s.stateNode,p=null,i!==null&&(p=i.memoizedState.cache),s.memoizedState.cache!==p&&
vendor: 4,468 bytes, line 48
48(s.flags|=2048),Na(Bt),le(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(i===null||i.child===null)&&(Bs(s)?ka(s):i===null||i.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,wv())),vt(s),null;case 26:var y=s.type,w=s.memoizedState;return i===null?(ka(s),w!==null?(vt(s),RC(s,w)):(vt(s),fy(s,y,null,p,u))):w?w!==i.memoizedState?(ka(s),vt(s),RC(s,w)):(vt(s),s.flags&=-16777217):(i=i.memoizedProps,i!==p&&ka(s),vt(s),fy(s,y,i,p,u)),null;case 27:if(ve(s),u=he.current,y=s.type,i!==null&&s.stateNode!=null)i.memoizedProps!==p&&ka(s);else{if(!p){if(s.stateNode===null)throw Error(r(166));return vt(s),null}i=J.current,Bs(s)?h_(s):(i=zT(y,p,u),s.stateNode=i,ka(s))}return vt(s),null;case 5:if(ve(s),y=s.type,i!==null&&s.stateNode!=null)i.memoizedProps!==p&&ka(s);else{if(!p){if(s.stateNode===null)throw Error(r(166));return vt(s),null}if(w=J.current,Bs(s))h_(s);else{var N=bh(he.current);switch(w){case 1:w=N.createElementNS("http://www.w3.org/2000/svg",y);break;case 2:w=N.createElementNS("http://www.w3.org/1998/Math/MathML",y);break;default:switch(y){case"svg":w=N.createElementNS("http://www.w3.org/2000/svg",y);break;case"math":w=N.createElementNS("http://www.w3.org/1998/Math/MathML",y);break;case"script":w=N.createElement("div"),w.innerHTML="<script><\/script>",w=w.removeChild(w.firstChild);break;case"select":w=typeof p.is=="string"?N.createElement("select",{is:p.is}):N.createElement("select"),p.multiple?w.multiple=!0:p.size&&(w.size=p.size);break;default:w=typeof p.is=="string"?N.createElement(y,{is:p.is}):N.createElement(y)}}w[an]=s,w[In]=p;e:for(N=s.child;N!==null;){if(N.tag===5||N.tag===6)w.appendChild(N.stateNode);else if(N.tag!==4&&N.tag!==27&&N.child!==null){N.child.return=N,N=N.child;continue}if(N===s)break e;for(;N.sibling===null;){if(N.return===null||N.return===s)break e;N=N.return}N.sibling.return=N.return,N=N.sibling}s.stateNode=w;e:switch(cn(w,y,p),y){case"button":case"input":case"select":case"textarea":p=!!p.autoFocus;break e;case"img":p=!0;break e;default:p=!1}p&&ka(s)}}return vt(s),fy(s,s.type,i===null?null:i.memoizedProps,s.pendingProps,u),null;case 6:if(i&&s.stateNode!=null)i.memoizedProps!==p&&ka(s);else{if(typeof p!="string"&&s.stateNode===null)throw Error(r(166));if(i=he.current,Bs(s)){if(i=s.stateNode,u=s.memoizedProps,p=null,y=on,y!==null)switch(y.tag){case 27:case 5:p=y.memoizedProps}i[an]=s,i=!!(i.nodeValue===u||p!==null&&p.suppressHydrationWarning===!0||ET(i.nodeValue,u)),i||yi(s,!0)}else i=bh(i).createTextNode(p),i[an]=s,s.stateNode=i}return vt(s),null;case 31:if(u=s.memoizedState,i===null||i.memoizedState!==null){if(p=Bs(s),u!==null){if(i===null){if(!p)throw Error(r(318));if(i=s.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(557));i[an]=s}else Oo(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;vt(s),i=!1}else u=wv(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=u),i=!0;if(!i)return s.flags&256?(Jn(s),s):(Jn(s),null);if((s.flags&128)!==0)throw Error(r(558))}return vt(s),null;case 13:if(p=s.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(y=Bs(s),p!==null&&p.dehydrated!==null){if(i===null){if(!y)throw Error(r(318));if(y=s.memoizedState,y=y!==null?y.dehydrated:null,!y)throw Error(r(317));y[an]=s}else Oo(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;vt(s),y=!1}else y=wv(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=y),y=!0;if(!y)return s.flags&256?(Jn(s),s):(Jn(s),null)}return Jn(s),(s.flags&128)!==0?(s.lanes=u,s):(u=p!==null,i=i!==null&&i.memoizedState!==null,u&&(p=s.child,y=null,p.alternate!==null&&p.alternate.memoizedState!==null&&p.alternate.memoizedState.cachePool!==null&&(y=p.alternate.memoizedState.cachePool.pool),w=null,p.memoizedState!==null&&p.memoizedState.cachePool!==null&&(w=p.memoizedState.cachePool.pool),w!==y&&(p.flags|=2048)),u!==i&&u&&(s.child.flags|=8192),ah(s,s.updateQueue),vt(s),null);case 4:return le(),i===null&&Dy(s.stateNode.containerInfo),vt(s),null;case 10:return Na(s.type),vt(s),null;case 19:if(Y(Nt),p=s.memoizedState,p===null)return vt(s),null;if(y=(s.flags&128)!==0,w=p.rendering,w===null)if(y)eu(p,!1);else{if(Ct!==0||i!==null&&(i.flags&128)!==0)for(i=s.child;i!==null;){if(w=Fd(i),w!==null){for(s.flags|=128,eu(p,!1),i=w.updateQueue,s.updateQueue=i,ah(s,i),s.subtreeFlags=0,i=u,u=s.child;u!==null;)l_(u,i),u=u.sibling;return X(Nt,Nt.current&1|2),Ve&&ja(s,p.treeForkCount),s.child}i=i.sibling}p.tail!==null&&Zt()>
vendor: 19,063 bytes, line 48
48ch&&(s.flags|=128,y=!0,eu(p,!1),s.lanes=4194304)}else{if(!y)if(i=Fd(w),i!==null){if(s.flags|=128,y=!0,i=i.updateQueue,s.updateQueue=i,ah(s,i),eu(p,!0),p.tail===null&&p.tailMode==="hidden"&&!w.alternate&&!Ve)return vt(s),null}else 2*Zt()-p.renderingStartTime>ch&&u!==536870912&&(s.flags|=128,y=!0,eu(p,!1),s.lanes=4194304);p.isBackwards?(w.sibling=s.child,s.child=w):(i=p.last,i!==null?i.sibling=w:s.child=w,p.last=w)}return p.tail!==null?(i=p.tail,p.rendering=i,p.tail=i.sibling,p.renderingStartTime=Zt(),i.sibling=null,u=Nt.current,X(Nt,y?u&1|2:u&1),Ve&&ja(s,p.treeForkCount),i):(vt(s),null);case 22:case 23:return Jn(s),Rv(),p=s.memoizedState!==null,i!==null?i.memoizedState!==null!==p&&(s.flags|=8192):p&&(s.flags|=8192),p?(u&536870912)!==0&&(s.flags&128)===0&&(vt(s),s.subtreeFlags&6&&(s.flags|=8192)):vt(s),u=s.updateQueue,u!==null&&ah(s,u.retryQueue),u=null,i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(u=i.memoizedState.cachePool.pool),p=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(p=s.memoizedState.cachePool.pool),p!==u&&(s.flags|=2048),i!==null&&Y(_o),null;case 24:return u=null,i!==null&&(u=i.memoizedState.cache),s.memoizedState.cache!==u&&(s.flags|=2048),Na(Bt),vt(s),null;case 25:return null;case 30:return null}throw Error(r(156,s.tag))}function nH(i,s){switch(bv(s),s.tag){case 1:return i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 3:return Na(Bt),le(),i=s.flags,(i&65536)!==0&&(i&128)===0?(s.flags=i&-65537|128,s):null;case 26:case 27:case 5:return ve(s),null;case 31:if(s.memoizedState!==null){if(Jn(s),s.alternate===null)throw Error(r(340));Oo()}return i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 13:if(Jn(s),i=s.memoizedState,i!==null&&i.dehydrated!==null){if(s.alternate===null)throw Error(r(340));Oo()}return i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 19:return Y(Nt),null;case 4:return le(),null;case 10:return Na(s.type),null;case 22:case 23:return Jn(s),Rv(),i!==null&&Y(_o),i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 24:return Na(Bt),null;case 25:return null;default:return null}}function kC(i,s){switch(bv(s),s.tag){case 3:Na(Bt),le();break;case 26:case 27:case 5:ve(s);break;case 4:le();break;case 31:s.memoizedState!==null&&Jn(s);break;case 13:Jn(s);break;case 19:Y(Nt);break;case 10:Na(s.type);break;case 22:case 23:Jn(s),Rv(),i!==null&&Y(_o);break;case 24:Na(Bt)}}function tu(i,s){try{var u=s.updateQueue,p=u!==null?u.lastEffect:null;if(p!==null){var y=p.next;u=y;do{if((u.tag&i)===i){p=void 0;var w=u.create,N=u.inst;p=w(),N.destroy=p}u=u.next}while(u!==y)}}catch(k){at(s,s.return,k)}}function Pi(i,s,u){try{var p=s.updateQueue,y=p!==null?p.lastEffect:null;if(y!==null){var w=y.next;p=w;do{if((p.tag&i)===i){var N=p.inst,k=N.destroy;if(k!==void 0){N.destroy=void 0,y=s;var G=u,te=k;try{te()}catch(oe){at(y,G,oe)}}}p=p.next}while(p!==w)}}catch(oe){at(s,s.return,oe)}}function IC(i){var s=i.updateQueue;if(s!==null){var u=i.stateNode;try{__(s,u)}catch(p){at(i,i.return,p)}}}function LC(i,s,u){u.props=No(i.type,i.memoizedProps),u.state=i.memoizedState;try{u.componentWillUnmount()}catch(p){at(i,s,p)}}function nu(i,s){try{var u=i.ref;if(u!==null){switch(i.tag){case 26:case 27:case 5:var p=i.stateNode;break;case 30:p=i.stateNode;break;default:p=i.stateNode}typeof u=="function"?i.refCleanup=u(p):u.current=p}}catch(y){at(i,s,y)}}function oa(i,s){var u=i.ref,p=i.refCleanup;if(u!==null)if(typeof p=="function")try{p()}catch(y){at(i,s,y)}finally{i.refCleanup=null,i=i.alternate,i!=null&&(i.refCleanup=null)}else if(typeof u=="function")try{u(null)}catch(y){at(i,s,y)}else u.current=null}function $C(i){var s=i.type,u=i.memoizedProps,p=i.stateNode;try{e:switch(s){case"button":case"input":case"select":case"textarea":u.autoFocus&&p.focus();break e;case"img":u.src?p.src=u.src:u.srcSet&&(p.srcset=u.srcSet)}}catch(y){at(i,i.return,y)}}function dy(i,s,u){try{var p=i.stateNode;AH(p,i.type,u,s),p[In]=s}catch(y){at(i,i.return,y)}}function BC(i){return i.tag===5||i.tag===3||i.tag===26||i.tag===27&&Mi(i.type)||i.tag===4}function hy(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||BC(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.tag===27&&Mi(i.type)||i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function py(i,s,u){var p=i.tag;if(p===5||p===6)i=i.stateNode,s?(u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u).insertBefore(i,s):(s=u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u,s.appendChild(i),u=u._reactRootContainer,u!=null||s.onclick!==null||(s.onclick=_a));else if(p!==4&&(p===27&&Mi(i.type)&&(u=i.stateNode,s=null),i=i.child,i!==null))for(py(i,s,u),i=i.sibling;i!==null;)py(i,s,u),i=i.sibling}function ih(i,s,u){var p=i.tag;if(p===5||p===6)i=i.stateNode,s?u.insertBefore(i,s):u.appendChild(i);else if(p!==4&&(p===27&&Mi(i.type)&&(u=i.stateNode),i=i.child,i!==null))for(ih(i,s,u),i=i.sibling;i!==null;)ih(i,s,u),i=i.sibling}function qC(i){var s=i.stateNode,u=i.memoizedProps;try{for(var p=i.type,y=s.attributes;y.length;)s.removeAttributeNode(y[0]);cn(s,p,u),s[an]=i,s[In]=u}catch(w){at(i,i.return,w)}}var Ia=!1,Ut=!1,my=!1,zC=typeof WeakSet=="function"?WeakSet:Set,tn=null;function rH(i,s){if(i=i.containerInfo,Iy=_h,i=J2(i),lv(i)){if("selectionStart"in i)var u={start:i.selectionStart,end:i.selectionEnd};else e:{u=(u=i.ownerDocument)&&u.defaultView||window;var p=u.getSelection&&u.getSelection();if(p&&p.rangeCount!==0){u=p.anchorNode;var y=p.anchorOffset,w=p.focusNode;p=p.focusOffset;try{u.nodeType,w.nodeType}catch{u=null;break e}var N=0,k=-1,G=-1,te=0,oe=0,de=i,ne=null;t:for(;;){for(var re;de!==u||y!==0&&de.nodeType!==3||(k=N+y),de!==w||p!==0&&de.nodeType!==3||(G=N+p),de.nodeType===3&&(N+=de.nodeValue.length),(re=de.firstChild)!==null;)ne=de,de=re;for(;;){if(de===i)break t;if(ne===u&&++te===y&&(k=N),ne===w&&++oe===p&&(G=N),(re=de.nextSibling)!==null)break;de=ne,ne=de.parentNode}de=re}u=k===-1||G===-1?null:{start:k,end:G}}else u=null}u=u||{start:0,end:0}}else u=null;for(Ly={focusedElem:i,selectionRange:u},_h=!1,tn=s;tn!==null;)if(s=tn,i=s.child,(s.subtreeFlags&1028)!==0&&i!==null)i.return=s,tn=i;else for(;tn!==null;){switch(s=tn,w=s.alternate,i=s.flags,s.tag){case 0:if((i&4)!==0&&(i=s.updateQueue,i=i!==null?i.events:null,i!==null))for(u=0;u<i.length;u++)y=i[u],y.ref.impl=y.nextImpl;break;case 11:case 15:break;case 1:if((i&1024)!==0&&w!==null){i=void 0,u=s,y=w.memoizedProps,w=w.memoizedState,p=u.stateNode;try{var xe=No(u.type,y);i=p.getSnapshotBeforeUpdate(xe,w),p.__reactInternalSnapshotBeforeUpdate=i}catch(_e){at(u,u.return,_e)}}break;case 3:if((i&1024)!==0){if(i=s.stateNode.containerInfo,u=i.nodeType,u===9)qy(i);else if(u===1)switch(i.nodeName){case"HEAD":case"HTML":case"BODY":qy(i);break;default:i.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((i&1024)!==0)throw Error(r(163))}if(i=s.sibling,i!==null){i.return=s.return,tn=i;break}tn=s.return}}function UC(i,s,u){var p=u.flags;switch(u.tag){case 0:case 11:case 15:$a(i,u),p&4&&tu(5,u);break;case 1:if($a(i,u),p&4)if(i=u.stateNode,s===null)try{i.componentDidMount()}catch(N){at(u,u.return,N)}else{var y=No(u.type,s.memoizedProps);s=s.memoizedState;try{i.componentDidUpdate(y,s,i.__reactInternalSnapshotBeforeUpdate)}catch(N){at(u,u.return,N)}}p&64&&IC(u),p&512&&nu(u,u.return);break;case 3:if($a(i,u),p&64&&(i=u.updateQueue,i!==null)){if(s=null,u.child!==null)switch(u.child.tag){case 27:case 5:s=u.child.stateNode;break;case 1:s=u.child.stateNode}try{__(i,s)}catch(N){at(u,u.return,N)}}break;case 27:s===null&&p&4&&qC(u);case 26:case 5:$a(i,u),s===null&&p&4&&$C(u),p&512&&nu(u,u.return);break;case 12:$a(i,u);break;case 31:$a(i,u),p&4&&FC(i,u);break;case 13:$a(i,u),p&4&&KC(i,u),p&64&&(i=u.memoizedState,i!==null&&(i=i.dehydrated,i!==null&&(u=dH.bind(null,u),MH(i,u))));break;case 22:if(p=u.memoizedState!==null||Ia,!p){s=s!==null&&s.memoizedState!==null||Ut,y=Ia;var w=Ut;Ia=p,(Ut=s)&&!w?Ba(i,u,(u.subtreeFlags&8772)!==0):$a(i,u),Ia=y,Ut=w}break;case 30:break;default:$a(i,u)}}function HC(i){var s=i.alternate;s!==null&&(i.alternate=null,HC(s)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(s=i.stateNode,s!==null&&Fg(s)),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}var xt=null,$n=!1;function La(i,s,u){for(u=u.child;u!==null;)VC(i,s,u),u=u.sibling}function VC(i,s,u){if(Cn&&typeof Cn.onCommitFiberUnmount=="function")try{Cn.onCommitFiberUnmount(po,u)}catch{}switch(u.tag){case 26:Ut||oa(u,s),La(i,s,u),u.memoizedState?u.memoizedState.count--:u.stateNode&&(u=u.stateNode,u.parentNode.removeChild(u));break;case 27:Ut||oa(u,s);var p=xt,y=$n;Mi(u.type)&&(xt=u.stateNode,$n=!1),La(i,s,u),fu(u.stateNode),xt=p,$n=y;break;case 5:Ut||oa(u,s);case 6:if(p=xt,y=$n,xt=null,La(i,s,u),xt=p,$n=y,xt!==null)if($n)try{(xt.nodeType===9?xt.body:xt.nodeName==="HTML"?xt.ownerDocument.body:xt).removeChild(u.stateNode)}catch(w){at(u,s,w)}else try{xt.removeChild(u.stateNode)}catch(w){at(u,s,w)}break;case 18:xt!==null&&($n?(i=xt,IT(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,u.stateNode),ol(i)):IT(xt,u.stateNode));break;case 4:p=xt,y=$n,xt=u.stateNode.containerInfo,$n=!0,La(i,s,u),xt=p,$n=y;break;case 0:case 11:case 14:case 15:Pi(2,u,s),Ut||Pi(4,u,s),La(i,s,u);break;case 1:Ut||(oa(u,s),p=u.stateNode,typeof p.componentWillUnmount=="function"&&LC(u,s,p)),La(i,s,u);break;case 21:La(i,s,u);break;case 22:Ut=(p=Ut)||u.memoizedState!==null,La(i,s,u),Ut=p;break;default:La(i,s,u)}}function FC(i,s){if(s.memoizedState===null&&(i=s.alternate,i!==null&&(i=i.memoizedState,i!==null))){i=i.dehydrated;try{ol(i)}catch(u){at(s,s.return,u)}}}function KC(i,s){if(s.memoizedState===null&&(i=s.alternate,i!==null&&(i=i.memoizedState,i!==null&&(i=i.dehydrated,i!==null))))try{ol(i)}catch(u){at(s,s.return,u)}}function aH(i){switch(i.tag){case 31:case 13:case 19:var s=i.stateNode;return s===null&&(s=i.stateNode=new zC),s;case 22:return i=i.stateNode,s=i._retryCache,s===null&&(s=i._retryCache=new zC),s;default:throw Error(r(435,i.tag))}}function oh(i,s){var u=aH(i);s.forEach(function(p){if(!u.has(p)){u.add(p);var y=hH.bind(null,i,p);p.then(y,y)}})}function Bn(i,s){var u=s.deletions;if(u!==null)for(var p=0;p<u.length;p++){var y=u[p],w=i,N=s,k=N;e:for(;k!==null;){switch(k.tag){case 27:if(Mi(k.type)){xt=k.stateNode,$n=!1;break e}break;case 5:xt=k.stateNode,$n=!1;break e;case 3:case 4:xt=k.stateNode.containerInfo,$n=!0;break e}k=k.return}if(xt===null)throw Error(r(160));VC(w,N,y),xt=null,$n=!1,w=y.alternate,w!==null&&(w.return=null),y.return=null}if(s.subtreeFlags&13886)for(s=s.child;s!==null;)GC(s,i),s=s.sibling}var qr=null;function GC(i,s){var u=i.alternate,p=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:Bn(s,i),qn(i),p&4&&(Pi(3,i,i.return),tu(3,i),Pi(5,i,i.return));break;case 1:Bn(s,i),qn(i),p&512&&(Ut||u===null||oa(u,u.return)),p&64&&Ia&&(i=i.updateQueue,i!==null&&(p=i.callbacks,p!==null&&(u=i.shared.hiddenCallbacks,i.shared.hiddenCallbacks=u===null?p:u.concat(p))));break;case 26:var y=qr;if(Bn(s,i),qn(i),p&512&&(Ut||u===null||oa(u,u.return)),p&4){var w=u!==null?u.memoizedState:null;if(p=i.memoizedState,u===null)if(p===null)if(i.stateNode===null){e:{p=i.type,u=i.memoizedProps,y=y.ownerDocument||y;t:switch(p){case"title":w=y.getElementsByTagName("title")[0],(!w||w[jc]||w[an]||w.namespaceURI==="http://www.w3.org/2000/svg"||w.hasAttribute("itemprop"))&&(w=y.createElement(p),y.head.insertBefore(w,y.querySelector("head > title"))),cn(w,p,u),w[an]=i,en(w),p=w;break e;case"link":var N=GT("link","href",y).get(p+(u.href||""));if(N){for(var k=0;k<N.length;k++)if(w=N[k],w.getAttribute("href")===(u.href==null||u.href===""?null:u.href)&&w.getAttribute("rel")===(u.rel==null?null:u.rel)&&w.getAttribute("title")===(u.title==null?null:u.title)&&w.getAttribute("crossorigin")===(u.crossOrigin==null?null:u.crossOrigin)){N.splice(k,1);break t}}w=y.createElement(p),cn(w,p,u),y.head.appendChild(w);break;case"meta":if(N=GT("meta","content",y).get(p+(u.content||""))){for(k=0;k<N.length;k++)if(w=N[k],w.getAttribute("content")===(u.content==null?null:""+u.content)&&w.getAttribute("name")===(u.name==null?null:u.name)&&w.getAttribute("property")===(u.property==null?null:u.property)&&w.getAttribute("http-equiv")===(u.httpEquiv==null?null:u.httpEquiv)&&w.getAttribute("charset")===(u.charSet==null?null:u.charSet)){N.splice(k,1);break t}}w=y.createElement(p),cn(w,p,u),y.head.appendChild(w);break;default:throw Error(r(468,p))}w[an]=i,en(w),p=w}i.stateNode=p}else YT(y,i.type,i.stateNode);else i.stateNode=KT(y,p,i.memoizedProps);else w!==p?(w===null?u.stateNode!==null&&(u=u.stateNode,u.parentNode.removeChild(u)):w.count--,p===null?YT(y,i.type,i.stateNode):KT(y,p,i.memoizedProps)):p===null&&i.stateNode!==null&&dy(i,i.memoizedProps,u.memoizedProps)}break;case 27:Bn(s,i),qn(i),p&512&&(Ut||u===null||oa(u,u.return)),u!==null&&p&4&&dy(i,i.memoizedProps,u.memoizedProps);break;case 5:if(Bn(s,i),qn(i),p&512&&(Ut||u===null||oa(u,u.return)),i.flags&32){y=i.stateNode;try{js(y,"")}catch(xe){at(i,i.return,xe)}}p&4&&i.stateNode!=null&&(y=i.memoizedProps,dy(i,y,u!==null?u.memoizedProps:y)),p&1024&&(my=!0);break;case 6:if(Bn(s,i),qn(i),p&4){if(i.stateNode===null)throw Error(r(162));p=i.memoizedProps,u=i.stateNode;try{u.nodeValue=p}catch(xe){at(i,i.return,xe)}}break;case 3:if(Sh=null,y=qr,qr=xh(s.containerInfo),Bn(s,i),qr=y,qn(i),p&4&&u!==null&&u.memoizedState.isDehydrated)try{ol(s.containerInfo)}catch(xe){at(i,i.return,xe)}my&&(my=!1,YC(i));break;case 4:p=qr,qr=xh(i.stateNode.containerInfo),Bn(s,i),qn(i),qr=p;break;case 12:Bn(s,i),qn(i);break;case 31:Bn(s,i),qn(i),p&4&&(p=i.updateQueue,p!==null&&(i.updateQueue=null,oh(i,p)));break;case 13:Bn(s,i),qn(i),i.child.flags&8192&&i.memoizedState!==null!=(u!==null&&u.memoizedState!==null)&&(lh=Zt()),p&4&&(p=i.updateQueue,p!==null&&(i.updateQueue=null,oh(i,p)));break;case 22:y=i.memoizedState!==null;var G=u!==null&&u.memoizedState!==null,te=Ia,oe=Ut;if(Ia=te||y,Ut=oe||G,Bn(s,i),Ut=oe,Ia=te,qn(i),p&8192)e:for(s=i.stateNode,s._visibility=y?s._visibility&-2:s._visibility|1,y&&(u===null||G||Ia||Ut||Mo(i)),u=null,s=i;;){if(s.tag===5||s.tag===26){if(u===null){G=u=s;try{if(w=G.stateNode,y)N=w.style,typeof N.setProperty=="function"?N.setProperty("display","none","important"):N.display="none";else{k=G.stateNode;var de=G.memoizedProps.style,ne=de!=null&&de.hasOwnProperty("display")?de.display:null;k.style.display=ne==null||typeof ne=="boolean"?"":(""+ne).trim()}}catch(xe){at(G,G.return,xe)}}}else if(s.tag===6){if(u===null){G=s;try{G.stateNode.nodeValue=y?"":G.memoizedProps}catch(xe){at(G,G.return,xe)}}}else if(s.tag===18){if(u===null){G=s;try{var re=G.stateNode;y?LT(re,!0):LT(G.stateNode,!1)}catch(xe){at(G,G.return,xe)}}}else if((s.tag!==22&&s.tag!==23||s.memoizedState===null||s===i)&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===i)break e;for(;s.sibling===null;){if(s.return===null||s.return===i)break e;u===s&&(u=null),s=s.return}u===s&&(u=null),s.sibling.return=s.return,s=s.sibling}p&4&&(p=i.updateQueue,p!==null&&(u=p.retryQueue,u!==null&&(p.retryQueue=null,oh(i,u))));break;case 19:Bn(s,i),qn(i),p&4&&(p=i.updateQueue,p!==null&&(i.updateQueue=null,oh(i,p)));break;case 30:break;case 21:break;default:Bn(s,i),qn(i)}}function qn(i){var s=i.flags;if(s&2){try{for(var u,p=i.return;p!==null;){if(BC(p)){u=p;break}p=p.return}if(u==null)throw Error(r(160));switch(u.tag){case 27:var y=u.stateNode,w=hy(i);ih(i,w,y);break;case 5:var N=u.stateNode;u.flags&32&&(js(N,""),u.flags&=-33);var k=hy(i);ih(i,k,N);break;case 3:case 4:var G=u.stateNode.containerInfo,te=hy(i);py(i,te,G);break;default:throw Error(r(161))}}catch(oe){at(i,i.return,oe)}i.flags&=-3}s&4096&&(i.flags&=-4097)}function YC(i){if(i.subtreeFlags&1024)for(i=i.child;i!==null;){var s=i;YC(s),s.tag===5&&s.flags&1024&&s.stateNode.reset(),i=i.sibling}}function $a(i,s){if(s.subtreeFlags&8772)for(s=s.child;s!==null;)UC(i,s.alternate,s),s=s.sibling}function Mo(i){for(i=i.child;i!==null;){var s=i;switch(s.tag){case 0:case 11:case 14:case 15:Pi(4,s,s.return),Mo(s);break;case 1:oa(s,s.return);var u=s.stateNode;typeof u.componentWillUnmount=="function"&&LC(s,s.return,u),Mo(s);break;case 27:fu(s.stateNode);case 26:case 5:oa(s,s.return),Mo(s);break;case 22:s.memoizedState===null&&Mo(s);break;case 30:Mo(s);break;default:Mo(s)}i=i.sibling}}function Ba(i,s,u){for(u=u&&(s.subtreeFlags&8772)!==0,s=s.child;s!==null;){var p=s.alternate,y=i,w=s,N=w.flags;switch(w.tag){case 0:case 11:case 15:Ba(y,w,u),tu(4,w);break;case 1:if(Ba(y,w,u),p=w,y=p.stateNode,typeof y.componentDidMount=="function")try{y.componentDidMount()}catch(te){at(p,p.return,te)}if(p=w,y=p.updateQueue,y!==null){var k=p.stateNode;try{var G=y.shared.hiddenCallbacks;if(G!==null)for(y.shared.hiddenCallbacks=null,y=0;y<G.length;y++)P_(G[y],k)}catch(te){at(p,p.return,te)}}u&&N&64&&IC(w),nu(w,w.return);break;case 27:qC(w);case 26:case 5:Ba(y,w,u),u&&p===null&&N&4&&$C(w),nu(w,w.return);break;case 12:Ba(y,w,u);break;case 31:Ba(y,w,u),u&&N&4&&FC(y,w);break;case 13:Ba(y,w,u),u&&N&4&&KC(y,w);break;case 22:w.memoizedState===null&&Ba(y,w,u),nu(w,w.return);break;case 30:break;default:Ba(y,w,u)}s=s.sibling}}function gy(i,s){var u=null;i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(u=i.memoizedState.cachePool.pool),i=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(i=s.memoizedState.cachePool.pool),i!==u&&(i!=null&&i.refCount++,u!=null&&Uc(u))}function vy(i,s){i=null,s.alternate!==null&&(i=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==i&&(s.refCount++,i!=null&&Uc(i))}function zr(i,s,u,p){if(s.subtreeFlags&10256)for(s=s.child;s!==null;)XC(i,s,u,p),s=s.sibling}function XC(i,s,u,p){var y=s.flags;switch(s.tag){case 0:case 11:case 15:zr(i,s,u,p),y&2048&&tu(9,s);break;case 1:zr(i,s,u,p);break;case 3:zr(i,s,u,p),y&2048&&(i=null,s.alternate!==null&&(i=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==i&&(s.refCount++,i!=null&&Uc(i)));break;case 12:if(y&2048){zr(i,s,u,p),i=s.stateNode;try{var w=s.memoizedProps,N=w.id,k=w.onPostCommit;typeof k=="function"&&k(N,s.alternate===null?"mount":"update",i.passiveEffectDuration,-0)}catch(G){at(s,s.return,G)}}else zr(i,s,u,p);break;case 31:zr(i,s,u,p);break;case 13:zr(i,s,u,p);break;case 23:break;case 22:w=s.stateNode,N=s.alternate,s.memoizedState!==null?w._visibility&2?zr(i,s,u,p):ru(i,s):w._visibility&2?zr(i,s,u,p):(w._visibility|=2,Xs(i,s,u,p,(s.subtreeFlags&10256)!==0||!1)),y&2048&&gy(N,s);break;case 24:zr(i,s,u,p),y&2048&&vy(s.alternate,s);break;default:zr(i,s,u,p)}}function Xs(i,s,u,p,y){for(y=y&&((s.subtreeFlags&10256)!==0||!1),s=s.child;s!==null;){var w=i,N=s,k=u,G=p,te=N.flags;switch(N.tag){case 0:case 11:case 15:Xs(w,N,k,G,y),tu(8,N);break;case 23:break;case 22:var oe=N.stateNode;N.memoizedState!==null?oe._visibility&2?Xs(w,N,k,G,y):ru(w,N):(oe._visibility|=2,Xs(w,N,k,G,y)),y&&te&2048&&gy(N.alternate,N);break;case 24:Xs(w,N,k,G,y),y&&te&2048&&vy(N.alternate,N);break;default:Xs(w,N,k,G,y)}s=s.sibling}}
vendor: 27,370 bytes, lines 48-49
48function ru(i,s){if(s.subtreeFlags&10256)for(s=s.child;s!==null;){var u=i,p=s,y=p.flags;switch(p.tag){case 22:ru(u,p),y&2048&&gy(p.alternate,p);break;case 24:ru(u,p),y&2048&&vy(p.alternate,p);break;default:ru(u,p)}s=s.sibling}}var au=8192;function Qs(i,s,u){if(i.subtreeFlags&au)for(i=i.child;i!==null;)QC(i,s,u),i=i.sibling}function QC(i,s,u){switch(i.tag){case 26:Qs(i,s,u),i.flags&au&&i.memoizedState!==null&&VH(u,qr,i.memoizedState,i.memoizedProps);break;case 5:Qs(i,s,u);break;case 3:case 4:var p=qr;qr=xh(i.stateNode.containerInfo),Qs(i,s,u),qr=p;break;case 22:i.memoizedState===null&&(p=i.alternate,p!==null&&p.memoizedState!==null?(p=au,au=16777216,Qs(i,s,u),au=p):Qs(i,s,u));break;default:Qs(i,s,u)}}function WC(i){var s=i.alternate;if(s!==null&&(i=s.child,i!==null)){s.child=null;do s=i.sibling,i.sibling=null,i=s;while(i!==null)}}function iu(i){var s=i.deletions;if((i.flags&16)!==0){if(s!==null)for(var u=0;u<s.length;u++){var p=s[u];tn=p,JC(p,i)}WC(i)}if(i.subtreeFlags&10256)for(i=i.child;i!==null;)ZC(i),i=i.sibling}function ZC(i){switch(i.tag){case 0:case 11:case 15:iu(i),i.flags&2048&&Pi(9,i,i.return);break;case 3:iu(i);break;case 12:iu(i);break;case 22:var s=i.stateNode;i.memoizedState!==null&&s._visibility&2&&(i.return===null||i.return.tag!==13)?(s._visibility&=-3,sh(i)):iu(i);break;default:iu(i)}}function sh(i){var s=i.deletions;if((i.flags&16)!==0){if(s!==null)for(var u=0;u<s.length;u++){var p=s[u];tn=p,JC(p,i)}WC(i)}for(i=i.child;i!==null;){switch(s=i,s.tag){case 0:case 11:case 15:Pi(8,s,s.return),sh(s);break;case 22:u=s.stateNode,u._visibility&2&&(u._visibility&=-3,sh(s));break;default:sh(s)}i=i.sibling}}function JC(i,s){for(;tn!==null;){var u=tn;switch(u.tag){case 0:case 11:case 15:Pi(8,u,s);break;case 23:case 22:if(u.memoizedState!==null&&u.memoizedState.cachePool!==null){var p=u.memoizedState.cachePool.pool;p!=null&&p.refCount++}break;case 24:Uc(u.memoizedState.cache)}if(p=u.child,p!==null)p.return=u,tn=p;else e:for(u=i;tn!==null;){p=tn;var y=p.sibling,w=p.return;if(HC(p),p===u){tn=null;break e}if(y!==null){y.return=w,tn=y;break e}tn=w}}}var iH={getCacheForType:function(i){var s=sn(Bt),u=s.data.get(i);return u===void 0&&(u=i(),s.data.set(i,u)),u},cacheSignal:function(){return sn(Bt).controller.signal}},oH=typeof WeakMap=="function"?WeakMap:Map,Ze=0,ft=null,$e=null,Ue=0,rt=0,er=null,_i=!1,Ws=!1,yy=!1,qa=0,Ct=0,Ci=0,Do=0,by=0,tr=0,Zs=0,ou=null,zn=null,xy=!1,lh=0,eT=0,ch=1/0,uh=null,Ti=null,Kt=0,ji=null,Js=null,za=0,wy=0,Sy=null,tT=null,su=0,Oy=null;function nr(){return(Ze&2)!==0&&Ue!==0?Ue&-Ue:R.T!==null?jy():Hg()}function nT(){if(tr===0)if((Ue&536870912)===0||Ve){var i=ws;ws<<=1,(ws&3932160)===0&&(ws=262144),tr=i}else tr=536870912;return i=Zn.current,i!==null&&(i.flags|=32),tr}function Un(i,s,u){(i===ft&&(rt===2||rt===9)||i.cancelPendingCommit!==null)&&(el(i,0),Ei(i,Ue,tr,!1)),At(i,u),((Ze&2)===0||i!==ft)&&(i===ft&&((Ze&2)===0&&(Do|=u),Ct===4&&Ei(i,Ue,tr,!1)),sa(i))}function rT(i,s,u){if((Ze&6)!==0)throw Error(r(327));var p=!u&&(s&127)===0&&(s&i.expiredLanes)===0||bt(i,s),y=p?cH(i,s):Py(i,s,!0),w=p;do{if(y===0){Ws&&!p&&Ei(i,s,0,!1);break}else{if(u=i.current.alternate,w&&!sH(u)){y=Py(i,s,!1),w=!1;continue}if(y===2){if(w=s,i.errorRecoveryDisabledLanes&w)var N=0;else N=i.pendingLanes&-536870913,N=N!==0?N:N&536870912?536870912:0;if(N!==0){s=N;e:{var k=i;y=ou;var G=k.current.memoizedState.isDehydrated;if(G&&(el(k,N).flags|=256),N=Py(k,N,!1),N!==2){if(yy&&!G){k.errorRecoveryDisabledLanes|=w,Do|=w,y=4;break e}w=zn,zn=y,w!==null&&(zn===null?zn=w:zn.push.apply(zn,w))}y=N}if(w=!1,y!==2)continue}}if(y===1){el(i,0),Ei(i,s,0,!0);break}e:{switch(p=i,w=y,w){case 0:case 1:throw Error(r(345));case 4:if((s&4194048)!==s)break;case 6:Ei(p,s,tr,!_i);break e;case 2:zn=null;break;case 3:case 5:break;default:throw Error(r(329))}if((s&62914560)===s&&(y=lh+300-Zt(),10<y)){if(Ei(p,s,tr,!_i),Ee(p,0,!0)!==0)break e;za=s,p.timeoutHandle=RT(aT.bind(null,p,u,zn,uh,xy,s,tr,Do,Zs,_i,w,"Throttled",-0,0),y);break e}aT(p,u,zn,uh,xy,s,tr,Do,Zs,_i,w,null,-0,0)}}break}while(!0);sa(i)}function aT(i,s,u,p,y,w,N,k,G,te,oe,de,ne,re){if(i.timeoutHandle=-1,de=s.subtreeFlags,de&8192||(de&16785408)===16785408){de={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:_a},QC(s,w,de);var xe=(w&62914560)===w?lh-Zt():(w&4194048)===w?eT-Zt():0;if(xe=FH(de,xe),xe!==null){za=w,i.cancelPendingCommit=xe(dT.bind(null,i,s,w,u,p,y,N,k,G,oe,de,null,ne,re)),Ei(i,w,N,!te);return}}dT(i,s,w,u,p,y,N,k,G)}function sH(i){for(var s=i;;){var u=s.tag;if((u===0||u===11||u===15)&&s.flags&16384&&(u=s.updateQueue,u!==null&&(u=u.stores,u!==null)))for(var p=0;p<u.length;p++){var y=u[p],w=y.getSnapshot;y=y.value;try{if(!Qn(w(),y))return!1}catch{return!1}}if(u=s.child,s.subtreeFlags&16384&&u!==null)u.return=s,s=u;else{if(s===i)break;for(;s.sibling===null;){if(s.return===null||s.return===i)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function Ei(i,s,u,p){s&=~by,s&=~Do,i.suspendedLanes|=s,i.pingedLanes&=~s,p&&(i.warmLanes|=s),p=i.expirationTimes;for(var y=s;0<y;){var w=31-hn(y),N=1<<w;p[w]=-1,y&=~N}u!==0&&go(i,u,s)}function fh(){return(Ze&6)===0?(lu(0),!1):!0}function Ay(){if($e!==null){if(rt===0)var i=$e.return;else i=$e,Ea=Ao=null,qv(i),Vs=null,Vc=0,i=$e;for(;i!==null;)kC(i.alternate,i),i=i.return;$e=null}}function el(i,s){var u=i.timeoutHandle;u!==-1&&(i.timeoutHandle=-1,CH(u)),u=i.cancelPendingCommit,u!==null&&(i.cancelPendingCommit=null,u()),za=0,Ay(),ft=i,$e=u=Ta(i.current,null),Ue=s,rt=0,er=null,_i=!1,Ws=bt(i,s),yy=!1,Zs=tr=by=Do=Ci=Ct=0,zn=ou=null,xy=!1,(s&8)!==0&&(s|=s&32);var p=i.entangledLanes;if(p!==0)for(i=i.entanglements,p&=s;0<p;){var y=31-hn(p),w=1<<y;s|=i[y],p&=~w}return qa=s,Md(),u}function iT(i,s){Me=null,R.H=Zc,s===Hs||s===qd?(s=w_(),rt=3):s===Tv?(s=w_(),rt=4):rt=s===ny?8:s!==null&&typeof s=="object"&&typeof s.then=="function"?6:1,er=s,$e===null&&(Ct=1,eh(i,gr(s,i.current)))}function oT(){var i=Zn.current;return i===null?!0:(Ue&4194048)===Ue?xr===null:(Ue&62914560)===Ue||(Ue&536870912)!==0?i===xr:!1}function sT(){var i=R.H;return R.H=Zc,i===null?Zc:i}function lT(){var i=R.A;return R.A=iH,i}function dh(){Ct=4,_i||(Ue&4194048)!==Ue&&Zn.current!==null||(Ws=!0),(Ci&134217727)===0&&(Do&134217727)===0||ft===null||Ei(ft,Ue,tr,!1)}function Py(i,s,u){var p=Ze;Ze|=2;var y=sT(),w=lT();(ft!==i||Ue!==s)&&(uh=null,el(i,s)),s=!1;var N=Ct;e:do try{if(rt!==0&&$e!==null){var k=$e,G=er;switch(rt){case 8:Ay(),N=6;break e;case 3:case 2:case 9:case 6:Zn.current===null&&(s=!0);var te=rt;if(rt=0,er=null,tl(i,k,G,te),u&&Ws){N=0;break e}break;default:te=rt,rt=0,er=null,tl(i,k,G,te)}}lH(),N=Ct;break}catch(oe){iT(i,oe)}while(!0);return s&&i.shellSuspendCounter++,Ea=Ao=null,Ze=p,R.H=y,R.A=w,$e===null&&(ft=null,Ue=0,Md()),N}function lH(){for(;$e!==null;)cT($e)}function cH(i,s){var u=Ze;Ze|=2;var p=sT(),y=lT();ft!==i||Ue!==s?(uh=null,ch=Zt()+500,el(i,s)):Ws=bt(i,s);e:do try{if(rt!==0&&$e!==null){s=$e;var w=er;t:switch(rt){case 1:rt=0,er=null,tl(i,s,w,1);break;case 2:case 9:if(b_(w)){rt=0,er=null,uT(s);break}s=function(){rt!==2&&rt!==9||ft!==i||(rt=7),sa(i)},w.then(s,s);break e;case 3:rt=7;break e;case 4:rt=5;break e;case 7:b_(w)?(rt=0,er=null,uT(s)):(rt=0,er=null,tl(i,s,w,7));break;case 5:var N=null;switch($e.tag){case 26:N=$e.memoizedState;case 5:case 27:var k=$e;if(N?XT(N):k.stateNode.complete){rt=0,er=null;var G=k.sibling;if(G!==null)$e=G;else{var te=k.return;te!==null?($e=te,hh(te)):$e=null}break t}}rt=0,er=null,tl(i,s,w,5);break;case 6:rt=0,er=null,tl(i,s,w,6);break;case 8:Ay(),Ct=6;break e;default:throw Error(r(462))}}uH();break}catch(oe){iT(i,oe)}while(!0);return Ea=Ao=null,R.H=p,R.A=y,Ze=u,$e!==null?0:(ft=null,Ue=0,Md(),Ct)}function uH(){for(;$e!==null&&!Ot();)cT($e)}function cT(i){var s=DC(i.alternate,i,qa);i.memoizedProps=i.pendingProps,s===null?hh(i):$e=s}function uT(i){var s=i,u=s.alternate;switch(s.tag){case 15:case 0:s=CC(u,s,s.pendingProps,s.type,void 0,Ue);break;case 11:s=CC(u,s,s.pendingProps,s.type.render,s.ref,Ue);break;case 5:qv(s);default:kC(u,s),s=$e=l_(s,qa),s=DC(u,s,qa)}i.memoizedProps=i.pendingProps,s===null?hh(i):$e=s}function tl(i,s,u,p){Ea=Ao=null,qv(s),Vs=null,Vc=0;var y=s.return;try{if(ZU(i,y,s,u,Ue)){Ct=1,eh(i,gr(u,i.current)),$e=null;return}}catch(w){if(y!==null)throw $e=y,w;Ct=1,eh(i,gr(u,i.current)),$e=null;return}s.flags&32768?(Ve||p===1?i=!0:Ws||(Ue&536870912)!==0?i=!1:(_i=i=!0,(p===2||p===9||p===3||p===6)&&(p=Zn.current,p!==null&&p.tag===13&&(p.flags|=16384))),fT(s,i)):hh(s)}function hh(i){var s=i;do{if((s.flags&32768)!==0){fT(s,_i);return}i=s.return;var u=tH(s.alternate,s,qa);if(u!==null){$e=u;return}if(s=s.sibling,s!==null){$e=s;return}$e=s=i}while(s!==null);Ct===0&&(Ct=5)}function fT(i,s){do{var u=nH(i.alternate,i);if(u!==null){u.flags&=32767,$e=u;return}if(u=i.return,u!==null&&(u.flags|=32768,u.subtreeFlags=0,u.deletions=null),!s&&(i=i.sibling,i!==null)){$e=i;return}$e=i=u}while(i!==null);Ct=6,$e=null}function dT(i,s,u,p,y,w,N,k,G){i.cancelPendingCommit=null;do ph();while(Kt!==0);if((Ze&6)!==0)throw Error(r(327));if(s!==null){if(s===i.current)throw Error(r(177));if(w=s.lanes|s.childLanes,w|=hv,Dn(i,u,w,N,k,G),i===ft&&($e=ft=null,Ue=0),Js=s,ji=i,za=u,wy=w,Sy=y,tT=p,(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?(i.callbackNode=null,i.callbackPriority=0,pH(ho,function(){return vT(),null})):(i.callbackNode=null,i.callbackPriority=0),p=(s.flags&13878)!==0,(s.subtreeFlags&13878)!==0||p){p=R.T,R.T=null,y=$.p,$.p=2,N=Ze,Ze|=4;try{rH(i,s,u)}finally{Ze=N,$.p=y,R.T=p}}Kt=1,hT(),pT(),mT()}}function hT(){if(Kt===1){Kt=0;var i=ji,s=Js,u=(s.flags&13878)!==0;if((s.subtreeFlags&13878)!==0||u){u=R.T,R.T=null;var p=$.p;$.p=2;var y=Ze;Ze|=4;try{GC(s,i);var w=Ly,N=J2(i.containerInfo),k=w.focusedElem,G=w.selectionRange;if(N!==k&&k&&k.ownerDocument&&Z2(k.ownerDocument.documentElement,k)){if(G!==null&&lv(k)){var te=G.start,oe=G.end;if(oe===void 0&&(oe=te),"selectionStart"in k)k.selectionStart=te,k.selectionEnd=Math.min(oe,k.value.length);else{var de=k.ownerDocument||document,ne=de&&de.defaultView||window;if(ne.getSelection){var re=ne.getSelection(),xe=k.textContent.length,_e=Math.min(G.start,xe),lt=G.end===void 0?_e:Math.min(G.end,xe);!re.extend&&_e>lt&&(N=lt,lt=_e,_e=N);var Z=W2(k,_e),Q=W2(k,lt);if(Z&&Q&&(re.rangeCount!==1||re.anchorNode!==Z.node||re.anchorOffset!==Z.offset||re.focusNode!==Q.node||re.focusOffset!==Q.offset)){var ee=de.createRange();ee.setStart(Z.node,Z.offset),re.removeAllRanges(),_e>lt?(re.addRange(ee),re.extend(Q.node,Q.offset)):(ee.setEnd(Q.node,Q.offset),re.addRange(ee))}}}}for(de=[],re=k;re=re.parentNode;)re.nodeType===1&&de.push({element:re,left:re.scrollLeft,top:re.scrollTop});for(typeof k.focus=="function"&&k.focus(),k=0;k<de.length;k++){var ce=de[k];ce.element.scrollLeft=ce.left,ce.element.scrollTop=ce.top}}_h=!!Iy,Ly=Iy=null}finally{Ze=y,$.p=p,R.T=u}}i.current=s,Kt=2}}function pT(){if(Kt===2){Kt=0;var i=ji,s=Js,u=(s.flags&8772)!==0;if((s.subtreeFlags&8772)!==0||u){u=R.T,R.T=null;var p=$.p;$.p=2;var y=Ze;Ze|=4;try{UC(i,s.alternate,s)}finally{Ze=y,$.p=p,R.T=u}}Kt=3}}function mT(){if(Kt===4||Kt===3){Kt=0,dr();var i=ji,s=Js,u=za,p=tT;(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?Kt=5:(Kt=0,Js=ji=null,gT(i,i.pendingLanes));var y=i.pendingLanes;if(y===0&&(Ti=null),$r(u),s=s.stateNode,Cn&&typeof Cn.onCommitFiberRoot=="function")try{Cn.onCommitFiberRoot(po,s,void 0,(s.current.flags&128)===128)}catch{}if(p!==null){s=R.T,y=$.p,$.p=2,R.T=null;try{for(var w=i.onRecoverableError,N=0;N<p.length;N++){var k=p[N];w(k.value,{componentStack:k.stack})}}finally{R.T=s,$.p=y}}(za&3)!==0&&ph(),sa(i),y=i.pendingLanes,(u&261930)!==0&&(y&42)!==0?i===Oy?su++:(su=0,Oy=i):su=0,lu(0)}}function gT(i,s){(i.pooledCacheLanes&=s)===0&&(s=i.pooledCache,s!=null&&(i.pooledCache=null,Uc(s)))}function ph(){return hT(),pT(),mT(),vT()}function vT(){if(Kt!==5)return!1;var i=ji,s=wy;wy=0;var u=$r(za),p=R.T,y=$.p;try{$.p=32>u?32:u,R.T=null,u=Sy,Sy=null;var w=ji,N=za;if(Kt=0,Js=ji=null,za=0,(Ze&6)!==0)throw Error(r(331));var k=Ze;if(Ze|=4,ZC(w.current),XC(w,w.current,N,u),Ze=k,lu(0,!1),Cn&&typeof Cn.onPostCommitFiberRoot=="function")try{Cn.onPostCommitFiberRoot(po,w)}catch{}return!0}finally{$.p=y,R.T=p,gT(i,s)}}function yT(i,s,u){s=gr(u,s),s=ty(i.stateNode,s,2),i=Si(i,s,2),i!==null&&(At(i,2),sa(i))}function at(i,s,u){if(i.tag===3)yT(i,i,u);else for(;s!==null;){if(s.tag===3){yT(s,i,u);break}else if(s.tag===1){var p=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof p.componentDidCatch=="function"&&(Ti===null||!Ti.has(p))){i=gr(u,i),u=bC(2),p=Si(s,u,2),p!==null&&(xC(u,p,s,i),At(p,2),sa(p));break}}s=s.return}}function _y(i,s,u){var p=i.pingCache;if(p===null){p=i.pingCache=new oH;var y=new Set;p.set(s,y)}else y=p.get(s),y===void 0&&(y=new Set,p.set(s,y));y.has(u)||(yy=!0,y.add(u),i=fH.bind(null,i,s,u),s.then(i,i))}function fH(i,s,u){var p=i.pingCache;p!==null&&p.delete(s),i.pingedLanes|=i.suspendedLanes&u,i.warmLanes&=~u,ft===i&&(Ue&u)===u&&(Ct===4||Ct===3&&(Ue&62914560)===Ue&&300>Zt()-lh?(Ze&2)===0&&el(i,0):by|=u,Zs===Ue&&(Zs=0)),sa(i)}function bT(i,s){s===0&&(s=pn()),i=wo(i,s),i!==null&&(At(i,s),sa(i))}function dH(i){var s=i.memoizedState,u=0;s!==null&&(u=s.retryLane),bT(i,u)}function hH(i,s){var u=0;switch(i.tag){case 31:case 13:var p=i.stateNode,y=i.memoizedState;y!==null&&(u=y.retryLane);break;case 19:p=i.stateNode;break;case 22:p=i.stateNode._retryCache;break;default:throw Error(r(314))}p!==null&&p.delete(s),bT(i,u)}function pH(i,s){return ta(i,s)}var mh=null,nl=null,Cy=!1,gh=!1,Ty=!1,Ni=0;function sa(i){i!==nl&&i.next===null&&(nl===null?mh=nl=i:nl=nl.next=i),gh=!0,Cy||(Cy=!0,gH())}function lu(i,s){if(!Ty&&gh){Ty=!0;do for(var u=!1,p=mh;p!==null;){if(i!==0){var y=p.pendingLanes;if(y===0)var w=0;else{var N=p.suspendedLanes,k=p.pingedLanes;w=(1<<31-hn(42|i)+1)-1,w&=y&~(N&~k),w=w&201326741?w&201326741|1:w?w|2:0}w!==0&&(u=!0,OT(p,w))}else w=Ue,w=Ee(p,p===ft?w:0,p.cancelPendingCommit!==null||p.timeoutHandle!==-1),(w&3)===0||bt(p,w)||(u=!0,OT(p,w));p=p.next}while(u);Ty=!1}}function mH(){xT()}function xT(){gh=Cy=!1;var i=0;Ni!==0&&_H()&&(i=Ni);for(var s=Zt(),u=null,p=mh;p!==null;){var y=p.next,w=wT(p,s);w===0?(p.next=null,u===null?mh=y:u.next=y,y===null&&(nl=u)):(u=p,(i!==0||(w&3)!==0)&&(gh=!0)),p=y}Kt!==0&&Kt!==5||lu(i),Ni!==0&&(Ni=0)}function wT(i,s){for(var u=i.suspendedLanes,p=i.pingedLanes,y=i.expirationTimes,w=i.pendingLanes&-62914561;0<w;){var N=31-hn(w),k=1<<N,G=y[N];G===-1?((k&u)===0||(k&p)!==0)&&(y[N]=Jt(k,s)):G<=s&&(i.expiredLanes|=k),w&=~k}if(s=ft,u=Ue,u=Ee(i,i===s?u:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),p=i.callbackNode,u===0||i===s&&(rt===2||rt===9)||i.cancelPendingCommit!==null)return p!==null&&p!==null&&Xn(p),i.callbackNode=null,i.callbackPriority=0;if((u&3)===0||bt(i,u)){if(s=u&-u,s===i.callbackPriority)return s;switch(p!==null&&Xn(p),$r(u)){case 2:case 8:u=bd;break;case 32:u=ho;break;case 268435456:u=Aa;break;default:u=ho}return p=ST.bind(null,i),u=ta(u,p),i.callbackPriority=s,i.callbackNode=u,s}return p!==null&&p!==null&&Xn(p),i.callbackPriority=2,i.callbackNode=null,2}function ST(i,s){if(Kt!==0&&Kt!==5)return i.callbackNode=null,i.callbackPriority=0,null;var u=i.callbackNode;if(ph()&&i.callbackNode!==u)return null;var p=Ue;return p=Ee(i,i===ft?p:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),p===0?null:(rT(i,p,s),wT(i,Zt()),i.callbackNode!=null&&i.callbackNode===u?ST.bind(null,i):null)}function OT(i,s){if(ph())return null;rT(i,s,!0)}function gH(){TH(function(){(Ze&6)!==0?ta(fo,mH):xT()})}function jy(){if(Ni===0){var i=zs;i===0&&(i=xs,xs<<=1,(xs&261888)===0&&(xs=256)),Ni=i}return Ni}function AT(i){return i==null||typeof i=="symbol"||typeof i=="boolean"?null:typeof i=="function"?i:Ad(""+i)}function PT(i,s){var u=s.ownerDocument.createElement("input");return u.name=s.name,u.value=s.value,i.id&&u.setAttribute("form",i.id),s.parentNode.insertBefore(u,s),i=new FormData(i),u.parentNode.removeChild(u),i}function vH(i,s,u,p,y){if(s==="submit"&&u&&u.stateNode===y){var w=AT((y[In]||null).action),N=p.submitter;N&&(s=(s=N[In]||null)?AT(s.formAction):N.getAttribute("formAction"),s!==null&&(w=s,N=null));var k=new Td("action","action",null,p,y);i.push({event:k,listeners:[{instance:null,listener:function(){if(p.defaultPrevented){if(Ni!==0){var G=N?PT(y,N):new FormData(y);Xv(u,{pending:!0,data:G,method:y.method,action:w},null,G)}}else typeof w=="function"&&(k.preventDefault(),G=N?PT(y,N):new FormData(y),Xv(u,{pending:!0,data:G,method:y.method,action:w},w,G))},currentTarget:y}]})}}for(var Ey=0;Ey<dv.length;Ey++){var Ny=dv[Ey],yH=Ny.toLowerCase(),bH=Ny[0].toUpperCase()+Ny.slice(1);Br(yH,"on"+bH)}Br(n_,"onAnimationEnd"),Br(r_,"onAnimationIteration"),Br(a_,"onAnimationStart"),Br("dblclick","onDoubleClick"),Br("focusin","onFocus"),Br("focusout","onBlur"),Br(kU,"onTransitionRun"),Br(IU,"onTransitionStart"),Br(LU,"onTransitionCancel"),Br(i_,"onTransitionEnd"),Cs("onMouseEnter",["mouseout","mouseover"]),Cs("onMouseLeave",["mouseout","mouseover"]),Cs("onPointerEnter",["pointerout","pointerover"]),Cs("onPointerLeave",["pointerout","pointerover"]),vo("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),vo("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),vo("onBeforeInput",["compositionend","keypress","textInput","paste"]),vo("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),vo("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),vo("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var cu="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(" "),xH=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(cu));function _T(i,s){s=(s&4)!==0;for(var u=0;u<i.length;u++){var p=i[u],y=p.event;p=p.listeners;e:{var w=void 0;if(s)for(var N=p.length-1;0<=N;N--){var k=p[N],G=k.instance,te=k.currentTarget;if(k=k.listener,G!==w&&y.isPropagationStopped())break e;w=k,y.currentTarget=te;try{w(y)}catch(oe){Nd(oe)}y.currentTarget=null,w=G}else for(N=0;N<p.length;N++){if(k=p[N],G=k.instance,te=k.currentTarget,k=k.listener,G!==w&&y.isPropagationStopped())break e;w=k,y.currentTarget=te;try{w(y)}catch(oe){Nd(oe)}y.currentTarget=null,w=G}}}}function Be(i,s){var u=s[Vg];u===void 0&&(u=s[Vg]=new Set);var p=i+"__bubble";u.has(p)||(CT(s,i,2,!1),u.add(p))}function My(i,s,u){var p=0;s&&(p|=4),CT(u,i,p,s)}var vh="_reactListening"+Math.random().toString(36).slice(2);function Dy(i){if(!i[vh]){i[vh]=!0,x2.forEach(function(u){u!=="selectionchange"&&(xH.has(u)||My(u,!1,i),My(u,!0,i))});var s=i.nodeType===9?i:i.ownerDocument;s===null||s[vh]||(s[vh]=!0,My("selectionchange",!1,s))}}function CT(i,s,u,p){switch(nj(s)){case 2:var y=YH;break;case 8:y=XH;break;default:y=Yy}u=y.bind(null,s,u,i),y=void 0,!Jg||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(y=!0),p?y!==void 0?i.addEventListener(s,u,{capture:!0,passive:y}):i.addEventListener(s,u,!0):y!==void 0?i.addEventListener(s,u,{passive:y}):i.addEventListener(s,u,!1)}function Ry(i,s,u,p,y){var w=p;if((s&1)===0&&(s&2)===0&&p!==null)e:for(;;){if(p===null)return;var N=p.tag;if(N===3||N===4){var k=p.stateNode.containerInfo;if(k===y)break;if(N===4)for(N=p.return;N!==null;){var G=N.tag;if((G===3||G===4)&&N.stateNode.containerInfo===y)return;N=N.return}for(;k!==null;){if(N=As(k),N===null)return;if(G=N.tag,G===5||G===6||G===26||G===27){p=w=N;continue e}k=k.parentNode}}p=p.return}M2(function(){var te=w,oe=Wg(u),de=[];e:{var ne=o_.get(i);if(ne!==void 0){var re=Td,xe=i;switch(i){case"keypress":if(_d(u)===0)break e;case"keydown":case"keyup":re=hU;break;case"focusin":xe="focus",re=rv;break;case"focusout":xe="blur",re=rv;break;case"beforeblur":case"afterblur":re=rv;break;case"click":if(u.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":re=k2;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":re=tU;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":re=gU;break;case n_:case r_:case a_:re=aU;break;case i_:re=yU;break;case"scroll":case"scrollend":re=Jz;break;case"wheel":re=xU;break;case"copy":case"cut":case"paste":re=oU;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":re=L2;break;case"toggle":case"beforetoggle":re=SU}var _e=(s&4)!==0,lt=!_e&&(i==="scroll"||i==="scrollend"),Z=_e?ne!==null?ne+"Capture":null:ne;_e=[];for(var Q=te,ee;Q!==null;){var ce=Q;if(ee=ce.stateNode,ce=ce.tag,ce!==5&&ce!==26&&ce!==27||ee===null||Z===null||(ce=Nc(Q,Z),ce!=null&&_e.push(uu(Q,ce,ee))),lt)break;Q=Q.return}0<_e.length&&(ne=new re(ne,xe,null,u,oe),de.push({event:ne,listeners:_e}))}}if((s&7)===0){e:{if(ne=i==="mouseover"||i==="pointerover",re=i==="mouseout"||i==="pointerout",ne&&u!==Qg&&(xe=u.relatedTarget||u.fromElement)&&(As(xe)||xe[Os]))break e;if((re||ne)&&(ne=oe.window===oe?oe:(ne=oe.ownerDocument)?ne.defaultView||ne.parentWindow:window,re?(xe=u.relatedTarget||u.toElement,re=te,xe=xe?As(xe):null,xe!==null&&(lt=o(xe),_e=xe.tag,xe!==lt||_e!==5&&_e!==27&&_e!==6)&&(xe=null)):(re=null,xe=te),re!==xe)){if(_e=k2,ce="onMouseLeave",Z="onMouseEnter",Q="mouse",(i==="pointerout"||i==="pointerover")&&(_e=L2,ce="onPointerLeave",Z="onPointerEnter",Q="pointer"),lt=re==null?ne:Ec(re),ee=xe==null?ne:Ec(xe),ne=new _e(ce,Q+"leave",re,u,oe),ne.target=lt,ne.relatedTarget=ee,ce=null,As(oe)===te&&(_e=new _e(Z,Q+"enter",xe,u,oe),_e.target=ee,_e.relatedTarget=lt,ce=_e),lt=ce,re&&xe)t:{for(_e=wH,Z=re,Q=xe,ee=0,ce=Z;ce;ce=_e(ce))ee++;ce=0;for(var Ae=Q;Ae;Ae=_e(Ae))ce++;for(;0<ee-ce;)Z=_e(Z),ee--;for(;0<ce-ee;)Q=_e(Q),ce--;for(;ee--;){if(Z===Q||Q!==null&&Z===Q.alternate){_e=Z;break t}Z=_e(Z),Q=_e(Q)}_e=null}else _e=null;re!==null&&TT(de,ne,re,_e,!1),xe!==null&<!==null&&TT(de,lt,xe,_e,!0)}}e:{if(ne=te?Ec(te):window,re=ne.nodeName&&ne.nodeName.toLowerCase(),re==="select"||re==="input"&&ne.type==="file")var Ye=F2;else if(H2(ne))if(K2)Ye=MU;else{Ye=EU;var Oe=jU}else re=ne.nodeName,!re||re.toLowerCase()!=="input"||ne.type!=="checkbox"&&ne.type!=="radio"?te&&Xg(te.elementType)&&(Ye=F2):Ye=NU;if(Ye&&(Ye=Ye(i,te))){V2(de,Ye,u,oe);break e}Oe&&Oe(i,ne,te),i==="focusout"&&te&&ne.type==="number"&&te.memoizedProps.value!=null&&Yg(ne,"number",ne.value)}switch(Oe=te?Ec(te):window,i){case"focusin":(H2(Oe)||Oe.contentEditable==="true")&&(Ds=Oe,cv=te,Bc=null);break;case"focusout":Bc=cv=Ds=null;break;case"mousedown":uv=!0;break;case"contextmenu":case"mouseup":case"dragend":uv=!1,e_(de,u,oe);break;case"selectionchange":if(RU)break;case"keydown":case"keyup":e_(de,u,oe)}var De;if(iv)e:{switch(i){case"compositionstart":var He="onCompositionStart";break e;case"compositionend":He="onCompositionEnd";break e;case"compositionupdate":He="onCompositionUpdate";break e}He=void 0}else Ms?z2(i,u)&&(He="onCompositionEnd"):i==="keydown"&&u.keyCode===229&&(He="onCompositionStart");He&&($2&&u.locale!=="ko"&&(Ms||He!=="onCompositionStart"?He==="onCompositionEnd"&&Ms&&(De=D2()):(mi=oe,ev="value"in mi?mi.value:mi.textContent,Ms=!0)),Oe=yh(te,He),0<Oe.length&&(He=new I2(He,i,null,u,oe),de.push({event:He,listeners:Oe}),De?He.data=De:(De=U2(u),De!==null&&(He.data=De)))),(De=AU?PU(i,u):_U(i,u))&&(He=yh(te,"onBeforeInput"),0<He.length&&(Oe=new I2("onBeforeInput","beforeinput",null,u,oe),de.push({event:Oe,listeners:He}),Oe.data=De)),vH(de,i,te,u,oe)}_T(de,s)})}function uu(i,s,u){return{instance:i,listener:s,currentTarget:u}}function yh(i,s){for(var u=s+"Capture",p=[];i!==null;){var y=i,w=y.stateNode;if(y=y.tag,y!==5&&y!==26&&y!==27||w===null||(y=Nc(i,u),y!=null&&p.unshift(uu(i,y,w)),y=Nc(i,s),y!=null&&p.push(uu(i,y,w))),i.tag===3)return p;i=i.return}return[]}function wH(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5&&i.tag!==27);return i||null}function TT(i,s,u,p,y){for(var w=s._reactName,N=[];u!==null&&u!==p;){var k=u,G=k.alternate,te=k.stateNode;if(k=k.tag,G!==null&&G===p)break;k!==5&&k!==26&&k!==27||te===null||(G=te,y?(te=Nc(u,w),te!=null&&N.unshift(uu(u,te,G))):y||(te=Nc(u,w),te!=null&&N.push(uu(u,te,G)))),u=u.return}N.length!==0&&i.push({event:s,listeners:N})}var SH=/\r\n?/g,OH=/\u0000|\uFFFD/g;function jT(i){return(typeof i=="string"?i:""+i).replace(SH,` 49`).replace(OH,"")}function ET(i,s){return s=jT(s),jT(i)===s}function st(i,s,u,p,y,w){switch(u){case"children":typeof p=="string"?s==="body"||s==="textarea"&&p===""||js(i,p):(typeof p=="number"||typeof p=="bigint")&&s!=="body"&&js(i,""+p);break;case"className":Sd(i,"class",p);break;case"tabIndex":Sd(i,"tabindex",p);break;case"dir":case"role":case"viewBox":case"width":case"height":Sd(i,u,p);break;case"style":E2(i,p,w);break;case"data":if(s!=="object"){Sd(i,"data",p);break}case"src":case"href":if(p===""&&(s!=="a"||u!=="href")){i.removeAttribute(u);break}if(p==null||typeof p=="function"||typeof p=="symbol"||typeof p=="boolean"){i.removeAttribute(u);break}p=Ad(""+p),i.setAttribute(u,p);break;case"action":case"formAction":if(typeof p=="function"){i.setAttribute(u,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof w=="function"&&(u==="formAction"?(s!=="input"&&st(i,s,"name",y.name,y,null),st(i,s,"formEncType",y.formEncType,y,null),st(i,s,"formMethod",y.formMethod,y,null),st(i,s,"formTarget",y.formTarget,y,null)):(st(i,s,"encType",y.encType,y,null),st(i,s,"method",y.method,y,null),st(i,s,"target",y.target,y,null)));if(p==null||typeof p=="symbol"||typeof p=="boolean"){i.removeAttribute(u);break}p=Ad(""+p),i.setAttribute(u,p);break;case"onClick":p!=null&&(i.onclick=_a);break;case"onScroll":p!=null&&Be("scroll",i);break;case"onScrollEnd":p!=null&&Be("scrollend",i);break;case"dangerouslySetInnerHTML":if(p!=null){if(typeof p!="object"||!("__html"in p))throw Error(r(61));if(u=p.__html,u!=null){if(y.children!=null)throw Error(r(60));i.innerHTML=u}}break;case"multiple":i.multiple=p&&typeof p!="function"&&typeof p!="symbol";break;case"muted":i.muted=p&&typeof p!="function"&&typeof p!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(p==null||typeof p=="function"||typeof p=="boolean"||typeof p=="symbol"){i.removeAttribute("xlink:href");break}u=Ad(""+p),i.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",u);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":p!=null&&typeof p!="function"&&typeof p!="symbol"?i.setAttribute(u,""+p):i.removeAttribute(u);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInl
49ine":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":p&&typeof p!="function"&&typeof p!="symbol"?i.setAttribute(u,""):i.removeAttribute(u);break;case"capture":case"download":p===!0?i.setAttribute(u,""):p!==!1&&p!=null&&typeof p!="function"&&typeof p!="symbol"?i.setAttribute(u,p):i.removeAttribute(u);break;case"cols":case"rows":case"size":case"span":p!=null&&typeof p!="function"&&typeof p!="symbol"&&!isNaN(p)&&1<=p?i.setAttribute(u,p):i.removeAttribute(u);break;case"rowSpan":case"start":p==null||typeof p=="function"||typeof p=="symbol"||isNaN(p)?i.removeAttribute(u):i.setAttribute(u,p);break;case"popover":Be("beforetoggle",i),Be("toggle",i),wd(i,"popover",p);break;case"xlinkActuate":Pa(i,"http://www.w3.org/1999/xlink","xlink:actuate",p);break;case"xlinkArcrole":Pa(i,"http://www.w3.org/1999/xlink","xlink:arcrole",p);break;case"xlinkRole":Pa(i,"http://www.w3.org/1999/xlink","xlink:role",p);break;case"xlinkShow":Pa(i,"http://www.w3.org/1999/xlink","xlink:show",p);break;case"xlinkTitle":Pa(i,"http://www.w3.org/1999/xlink","xlink:title",p);break;case"xlinkType":Pa(i,"http://www.w3.org/1999/xlink","xlink:type",p);break;case"xmlBase":Pa(i,"http://www.w3.org/XML/1998/namespace","xml:base",p);break;case"xmlLang":Pa(i,"http://www.w3.org/XML/1998/namespace","xml:lang",p);break;case"xmlSpace":Pa(i,"http://www.w3.org/XML/1998/namespace","xml:space",p);break;case"is":wd(i,"is",p);break;case"innerText":case"textContent":break;default:(!(2<u.length)||u[0]!=="o"&&u[0]!=="O"||u[1]!=="n"&&u[1]!=="N")&&(u=Wz.get(u)||u,wd(i,u,p))}}function ky(i,s,u,p,y,w){switch(u){case"style":E2(i,p,w);break;case"dangerouslySetInnerHTML":if(p!=null){if(typeof p!="object"||!("__html"in p))throw Error(r(61));if(u=p.__html,u!=null){if(y.children!=null)throw Error(r(60));i.innerHTML=u}}break;case"children":typeof p=="string"?js(i,p):(typeof p=="number"||typeof p=="bigint")&&js(i,""+p);break;case"onScroll":p!=null&&Be("scroll",i);break;case"onScrollEnd":p!=null&&Be("scrollend",i);break;case"onClick":p!=null&&(i.onclick=_a);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!w2.hasOwnProperty(u))e:{if(u[0]==="o"&&u[1]==="n"&&(y=u.endsWith("Capture"),s=u.slice(2,y?u.length-7:void 0),w=i[In]||null,w=w!=null?w[u]:null,typeof w=="function"&&i.removeEventListener(s,w,y),typeof p=="function")){typeof w!="function"&&w!==null&&(u in i?i[u]=null:i.hasAttribute(u)&&i.removeAttribute(u)),i.addEventListener(s,p,y);break e}u in i?i[u]=p:p===!0?i.setAttribute(u,""):wd(i,u,p)}}}function cn(i,s,u){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Be("error",i),Be("load",i);var p=!1,y=!1,w;for(w in u)if(u.hasOwnProperty(w)){var N=u[w];if(N!=null)switch(w){case"src":p=!0;break;case"srcSet":y=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,s));default:st(i,s,w,N,u,null)}}y&&st(i,s,"srcSet",u.srcSet,u,null),p&&st(i,s,"src",u.src,u,null);return;case"input":Be("invalid",i);var k=w=N=y=null,G=null,te=null;for(p in u)if(u.hasOwnProperty(p)){var oe=u[p];if(oe!=null)switch(p){case"name":y=oe;break;case"type":N=oe;break;case"checked":G=oe;break;case"defaultChecked":te=oe;break;case"value":w=oe;break;case"defaultValue":k=oe;break;case"children":case"dangerouslySetInnerHTML":if(oe!=null)throw Error(r(137,s));break;default:st(i,s,p,oe,u,null)}}_2(i,w,k,G,te,N,y,!1);return;case"select":Be("invalid",i),p=N=w=null;for(y in u)if(u.hasOwnProperty(y)&&(k=u[y],k!=null))switch(y){case"value":w=k;break;case"defaultValue":N=k;break;case"multiple":p=k;default:st(i,s,y,k,u,null)}s=w,u=N,i.multiple=!!p,s!=null?Ts(i,!!p,s,!1):u!=null&&Ts(i,!!p,u,!0);return;case"textarea":Be("invalid",i),w=y=p=null;for(N in u)if(u.hasOwnProperty(N)&&(k=u[N],k!=null))switch(N){case"value":p=k;break;case"defaultValue":y=k;break;case"children":w=k;break;case"dangerouslySetInnerHTML":if(k!=null)throw Error(r(91));break;default:st(i,s,N,k,u,null)}T2(i,p,y,w);return;case"option":for(G in u)if(u.hasOwnProperty(G)&&(p=u[G],p!=null))switch(G){case"selected":i.selected=p&&typeof p!="function"&&typeof p!="symbol";break;default:st(i,s,G,p,u,null)}return;case"dialog":Be("beforetoggle",i),Be("toggle",i),Be("cancel",i),Be("close",i);break;case"iframe":case"object":Be("load",i);break;case"video":case"audio":for(p=0;p<cu.length;p++)Be(cu[p],i);break;case"image":Be("error",i),Be("load",i);break;case"details":Be("toggle",i);break;
vendor: 4,389 bytes, line 49
49case"embed":case"source":case"link":Be("error",i),Be("load",i);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(te in u)if(u.hasOwnProperty(te)&&(p=u[te],p!=null))switch(te){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,s));default:st(i,s,te,p,u,null)}return;default:if(Xg(s)){for(oe in u)u.hasOwnProperty(oe)&&(p=u[oe],p!==void 0&&ky(i,s,oe,p,u,void 0));return}}for(k in u)u.hasOwnProperty(k)&&(p=u[k],p!=null&&st(i,s,k,p,u,null))}function AH(i,s,u,p){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var y=null,w=null,N=null,k=null,G=null,te=null,oe=null;for(re in u){var de=u[re];if(u.hasOwnProperty(re)&&de!=null)switch(re){case"checked":break;case"value":break;case"defaultValue":G=de;default:p.hasOwnProperty(re)||st(i,s,re,null,p,de)}}for(var ne in p){var re=p[ne];if(de=u[ne],p.hasOwnProperty(ne)&&(re!=null||de!=null))switch(ne){case"type":w=re;break;case"name":y=re;break;case"checked":te=re;break;case"defaultChecked":oe=re;break;case"value":N=re;break;case"defaultValue":k=re;break;case"children":case"dangerouslySetInnerHTML":if(re!=null)throw Error(r(137,s));break;default:re!==de&&st(i,s,ne,re,p,de)}}Gg(i,N,k,G,te,oe,w,y);return;case"select":re=N=k=ne=null;for(w in u)if(G=u[w],u.hasOwnProperty(w)&&G!=null)switch(w){case"value":break;case"multiple":re=G;default:p.hasOwnProperty(w)||st(i,s,w,null,p,G)}for(y in p)if(w=p[y],G=u[y],p.hasOwnProperty(y)&&(w!=null||G!=null))switch(y){case"value":ne=w;break;case"defaultValue":k=w;break;case"multiple":N=w;default:w!==G&&st(i,s,y,w,p,G)}s=k,u=N,p=re,ne!=null?Ts(i,!!u,ne,!1):!!p!=!!u&&(s!=null?Ts(i,!!u,s,!0):Ts(i,!!u,u?[]:"",!1));return;case"textarea":re=ne=null;for(k in u)if(y=u[k],u.hasOwnProperty(k)&&y!=null&&!p.hasOwnProperty(k))switch(k){case"value":break;case"children":break;default:st(i,s,k,null,p,y)}for(N in p)if(y=p[N],w=u[N],p.hasOwnProperty(N)&&(y!=null||w!=null))switch(N){case"value":ne=y;break;case"defaultValue":re=y;break;case"children":break;case"dangerouslySetInnerHTML":if(y!=null)throw Error(r(91));break;default:y!==w&&st(i,s,N,y,p,w)}C2(i,ne,re);return;case"option":for(var xe in u)if(ne=u[xe],u.hasOwnProperty(xe)&&ne!=null&&!p.hasOwnProperty(xe))switch(xe){case"selected":i.selected=!1;break;default:st(i,s,xe,null,p,ne)}for(G in p)if(ne=p[G],re=u[G],p.hasOwnProperty(G)&&ne!==re&&(ne!=null||re!=null))switch(G){case"selected":i.selected=ne&&typeof ne!="function"&&typeof ne!="symbol";break;default:st(i,s,G,ne,p,re)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var _e in u)ne=u[_e],u.hasOwnProperty(_e)&&ne!=null&&!p.hasOwnProperty(_e)&&st(i,s,_e,null,p,ne);for(te in p)if(ne=p[te],re=u[te],p.hasOwnProperty(te)&&ne!==re&&(ne!=null||re!=null))switch(te){case"children":case"dangerouslySetInnerHTML":if(ne!=null)throw Error(r(137,s));break;default:st(i,s,te,ne,p,re)}return;default:if(Xg(s)){for(var lt in u)ne=u[lt],u.hasOwnProperty(lt)&&ne!==void 0&&!p.hasOwnProperty(lt)&&ky(i,s,lt,void 0,p,ne);for(oe in p)ne=p[oe],re=u[oe],!p.hasOwnProperty(oe)||ne===re||ne===void 0&&re===void 0||ky(i,s,oe,ne,p,re);return}}for(var Z in u)ne=u[Z],u.hasOwnProperty(Z)&&ne!=null&&!p.hasOwnProperty(Z)&&st(i,s,Z,null,p,ne);for(de in p)ne=p[de],re=u[de],!p.hasOwnProperty(de)||ne===re||ne==null&&re==null||st(i,s,de,ne,p,re)}function NT(i){switch(i){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function PH(){if(typeof performance.getEntriesByType=="function"){for(var i=0,s=0,u=performance.getEntriesByType("resource"),p=0;p<u.length;p++){var y=u[p],w=y.transferSize,N=y.initiatorType,k=y.duration;if(w&&k&&NT(N)){for(N=0,k=y.responseEnd,p+=1;p<u.length;p++){var G=u[p],te=G.startTime;if(te>k)break;var oe=G.transferSize,de=G.initiatorType;oe&&NT(de)&&(G=G.responseEnd,N+=oe*(G<k?1:(k-te)/(G-te)))}if(--p,s+=8*(w+N)/(y.duration/1e3),i++,10<i)break}}if(0<i)return s/i/1e6}return navigator.connection&&(i=navigator.connection.downlink,typeof i=="number")?i:5}var Iy=null,Ly=null;function bh(i){return i.nodeType===9?i:i.ownerDocument}function MT(i){switch(i){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}
vendor: 16,190 bytes, line 49
49function DT(i,s){if(i===0)switch(s){case"svg":return 1;case"math":return 2;default:return 0}return i===1&&s==="foreignObject"?0:i}function $y(i,s){return i==="textarea"||i==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.children=="bigint"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var By=null;function _H(){var i=window.event;return i&&i.type==="popstate"?i===By?!1:(By=i,!0):(By=null,!1)}var RT=typeof setTimeout=="function"?setTimeout:void 0,CH=typeof clearTimeout=="function"?clearTimeout:void 0,kT=typeof Promise=="function"?Promise:void 0,TH=typeof queueMicrotask=="function"?queueMicrotask:typeof kT<"u"?function(i){return kT.resolve(null).then(i).catch(jH)}:RT;function jH(i){setTimeout(function(){throw i})}function Mi(i){return i==="head"}function IT(i,s){var u=s,p=0;do{var y=u.nextSibling;if(i.removeChild(u),y&&y.nodeType===8)if(u=y.data,u==="/$"||u==="/&"){if(p===0){i.removeChild(y),ol(s);return}p--}else if(u==="$"||u==="$?"||u==="$~"||u==="$!"||u==="&")p++;else if(u==="html")fu(i.ownerDocument.documentElement);else if(u==="head"){u=i.ownerDocument.head,fu(u);for(var w=u.firstChild;w;){var N=w.nextSibling,k=w.nodeName;w[jc]||k==="SCRIPT"||k==="STYLE"||k==="LINK"&&w.rel.toLowerCase()==="stylesheet"||u.removeChild(w),w=N}}else u==="body"&&fu(i.ownerDocument.body);u=y}while(u);ol(s)}function LT(i,s){var u=i;i=0;do{var p=u.nextSibling;if(u.nodeType===1?s?(u._stashedDisplay=u.style.display,u.style.display="none"):(u.style.display=u._stashedDisplay||"",u.getAttribute("style")===""&&u.removeAttribute("style")):u.nodeType===3&&(s?(u._stashedText=u.nodeValue,u.nodeValue=""):u.nodeValue=u._stashedText||""),p&&p.nodeType===8)if(u=p.data,u==="/$"){if(i===0)break;i--}else u!=="$"&&u!=="$?"&&u!=="$~"&&u!=="$!"||i++;u=p}while(u)}function qy(i){var s=i.firstChild;for(s&&s.nodeType===10&&(s=s.nextSibling);s;){var u=s;switch(s=s.nextSibling,u.nodeName){case"HTML":case"HEAD":case"BODY":qy(u),Fg(u);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(u.rel.toLowerCase()==="stylesheet")continue}i.removeChild(u)}}function EH(i,s,u,p){for(;i.nodeType===1;){var y=u;if(i.nodeName.toLowerCase()!==s.toLowerCase()){if(!p&&(i.nodeName!=="INPUT"||i.type!=="hidden"))break}else if(p){if(!i[jc])switch(s){case"meta":if(!i.hasAttribute("itemprop"))break;return i;case"link":if(w=i.getAttribute("rel"),w==="stylesheet"&&i.hasAttribute("data-precedence"))break;if(w!==y.rel||i.getAttribute("href")!==(y.href==null||y.href===""?null:y.href)||i.getAttribute("crossorigin")!==(y.crossOrigin==null?null:y.crossOrigin)||i.getAttribute("title")!==(y.title==null?null:y.title))break;return i;case"style":if(i.hasAttribute("data-precedence"))break;return i;case"script":if(w=i.getAttribute("src"),(w!==(y.src==null?null:y.src)||i.getAttribute("type")!==(y.type==null?null:y.type)||i.getAttribute("crossorigin")!==(y.crossOrigin==null?null:y.crossOrigin))&&w&&i.hasAttribute("async")&&!i.hasAttribute("itemprop"))break;return i;default:return i}}else if(s==="input"&&i.type==="hidden"){var w=y.name==null?null:""+y.name;if(y.type==="hidden"&&i.getAttribute("name")===w)return i}else return i;if(i=wr(i.nextSibling),i===null)break}return null}function NH(i,s,u){if(s==="")return null;for(;i.nodeType!==3;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!u||(i=wr(i.nextSibling),i===null))return null;return i}function $T(i,s){for(;i.nodeType!==8;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!s||(i=wr(i.nextSibling),i===null))return null;return i}function zy(i){return i.data==="$?"||i.data==="$~"}function Uy(i){return i.data==="$!"||i.data==="$?"&&i.ownerDocument.readyState!=="loading"}function MH(i,s){var u=i.ownerDocument;if(i.data==="$~")i._reactRetry=s;else if(i.data!=="$?"||u.readyState!=="loading")s();else{var p=function(){s(),u.removeEventListener("DOMContentLoaded",p)};u.addEventListener("DOMContentLoaded",p),i._reactRetry=p}}function wr(i){for(;i!=null;i=i.nextSibling){var s=i.nodeType;if(s===1||s===3)break;if(s===8){if(s=i.data,s==="$"||s==="$!"||s==="$?"||s==="$~"||s==="&"||s==="F!"||s==="F")break;if(s==="/$"||s==="/&")return null}}return i}var Hy=null;function BT(i){i=i.nextSibling;for(var s=0;i;){if(i.nodeType===8){var u=i.data;if(u==="/$"||u==="/&"){if(s===0)return wr(i.nextSibling);s--}else u!=="$"&&u!=="$!"&&u!=="$?"&&u!=="$~"&&u!=="&"||s++}i=i.nextSibling}return null}function qT(i){i=i.previousSibling;for(var s=0;i;){if(i.nodeType===8){var u=i.data;if(u==="$"||u==="$!"||u==="$?"||u==="$~"||u==="&"){if(s===0)return i;s--}else u!=="/$"&&u!=="/&"||s++}i=i.previousSibling}return null}function zT(i,s,u){switch(s=bh(u),i){case"html":if(i=s.documentElement,!i)throw Error(r(452));return i;case"head":if(i=s.head,!i)throw Error(r(453));return i;case"body":if(i=s.body,!i)throw Error(r(454));return i;default:throw Error(r(451))}}function fu(i){for(var s=i.attributes;s.length;)i.removeAttributeNode(s[0]);Fg(i)}var Sr=new Map,UT=new Set;function xh(i){return typeof i.getRootNode=="function"?i.getRootNode():i.nodeType===9?i:i.ownerDocument}var Ua=$.d;$.d={f:DH,r:RH,D:kH,C:IH,L:LH,m:$H,X:qH,S:BH,M:zH};function DH(){var i=Ua.f(),s=fh();return i||s}function RH(i){var s=Ps(i);s!==null&&s.tag===5&&s.type==="form"?iC(s):Ua.r(i)}var rl=typeof document>"u"?null:document;function HT(i,s,u){var p=rl;if(p&&typeof s=="string"&&s){var y=pr(s);y='link[rel="'+i+'"][href="'+y+'"]',typeof u=="string"&&(y+='[crossorigin="'+u+'"]'),UT.has(y)||(UT.add(y),i={rel:i,crossOrigin:u,href:s},p.querySelector(y)===null&&(s=p.createElement("link"),cn(s,"link",i),en(s),p.head.appendChild(s)))}}function kH(i){Ua.D(i),HT("dns-prefetch",i,null)}function IH(i,s){Ua.C(i,s),HT("preconnect",i,s)}function LH(i,s,u){Ua.L(i,s,u);var p=rl;if(p&&i&&s){var y='link[rel="preload"][as="'+pr(s)+'"]';s==="image"&&u&&u.imageSrcSet?(y+='[imagesrcset="'+pr(u.imageSrcSet)+'"]',typeof u.imageSizes=="string"&&(y+='[imagesizes="'+pr(u.imageSizes)+'"]')):y+='[href="'+pr(i)+'"]';var w=y;switch(s){case"style":w=al(i);break;case"script":w=il(i)}Sr.has(w)||(i=h({rel:"preload",href:s==="image"&&u&&u.imageSrcSet?void 0:i,as:s},u),Sr.set(w,i),p.querySelector(y)!==null||s==="style"&&p.querySelector(du(w))||s==="script"&&p.querySelector(hu(w))||(s=p.createElement("link"),cn(s,"link",i),en(s),p.head.appendChild(s)))}}function $H(i,s){Ua.m(i,s);var u=rl;if(u&&i){var p=s&&typeof s.as=="string"?s.as:"script",y='link[rel="modulepreload"][as="'+pr(p)+'"][href="'+pr(i)+'"]',w=y;switch(p){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":w=il(i)}if(!Sr.has(w)&&(i=h({rel:"modulepreload",href:i},s),Sr.set(w,i),u.querySelector(y)===null)){switch(p){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(u.querySelector(hu(w)))return}p=u.createElement("link"),cn(p,"link",i),en(p),u.head.appendChild(p)}}}function BH(i,s,u){Ua.S(i,s,u);var p=rl;if(p&&i){var y=_s(p).hoistableStyles,w=al(i);s=s||"default";var N=y.get(w);if(!N){var k={loading:0,preload:null};if(N=p.querySelector(du(w)))k.loading=5;else{i=h({rel:"stylesheet",href:i,"data-precedence":s},u),(u=Sr.get(w))&&Vy(i,u);var G=N=p.createElement("link");en(G),cn(G,"link",i),G._p=new Promise(function(te,oe){G.onload=te,G.onerror=oe}),G.addEventListener("load",function(){k.loading|=1}),G.addEventListener("error",function(){k.loading|=2}),k.loading|=4,wh(N,s,p)}N={type:"stylesheet",instance:N,count:1,state:k},y.set(w,N)}}}function qH(i,s){Ua.X(i,s);var u=rl;if(u&&i){var p=_s(u).hoistableScripts,y=il(i),w=p.get(y);w||(w=u.querySelector(hu(y)),w||(i=h({src:i,async:!0},s),(s=Sr.get(y))&&Fy(i,s),w=u.createElement("script"),en(w),cn(w,"link",i),u.head.appendChild(w)),w={type:"script",instance:w,count:1,state:null},p.set(y,w))}}function zH(i,s){Ua.M(i,s);var u=rl;if(u&&i){var p=_s(u).hoistableScripts,y=il(i),w=p.get(y);w||(w=u.querySelector(hu(y)),w||(i=h({src:i,async:!0,type:"module"},s),(s=Sr.get(y))&&Fy(i,s),w=u.createElement("script"),en(w),cn(w,"link",i),u.head.appendChild(w)),w={type:"script",instance:w,count:1,state:null},p.set(y,w))}}function VT(i,s,u,p){var y=(y=he.current)?xh(y):null;if(!y)throw Error(r(446));switch(i){case"meta":case"title":return null;case"style":return typeof u.precedence=="string"&&typeof u.href=="string"?(s=al(u.href),u=_s(y).hoistableStyles,p=u.get(s),p||(p={type:"style",instance:null,count:0,state:null},u.set(s,p)),p):{type:"void",instance:null,count:0,state:null};case"link":if(u.rel==="stylesheet"&&typeof u.href=="string"&&typeof u.precedence=="string"){i=al(u.href);var w=_s(y).hoistableStyles,N=w.get(i);if(N||(y=y.ownerDocument||y,N={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},w.set(i,N),(w=y.querySelector(du(i)))&&!w._p&&(N.instance=w,N.state.loading=5),Sr.has(i)||(u={rel:"preload",as:"style",href:u.href,crossOrigin:u.crossOrigin,integrity:u.integrity,media:u.media,hrefLang:u.hrefLang,referrerPolicy:u.referrerPolicy},Sr.set(i,u),w||UH(y,i,u,N.state))),s&&p===null)throw Error(r(528,""));return N}if(s&&p!==null)throw Error(r(529,""));return null;case"script":return s=u.async,u=u.src,typeof u=="string"&&s&&typeof s!="function"&&typeof s!="symbol"?(s=il(u),u=_s(y).hoistableScripts,p=u.get(s),p||(p={type:"script",instance:null,count:0,state:null},u.set(s,p)),p):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,i))}}function al(i){return'href="'+pr(i)+'"'}function du(i){return'link[rel="stylesheet"]['+i+"]"}function FT(i){return h({},i,{"data-precedence":i.precedence,precedence:null})}function UH(i,s,u,p){i.querySelector('link[rel="preload"][as="style"]['+s+"]")?p.loading=1:(s=i.createElement("link"),p.preload=s,s.addEventListener("load",function(){return p.loading|=1}),s.addEventListener("error",function(){return p.loading|=2}),cn(s,"link",u),en(s),i.head.appendChild(s))}function il(i){return'[src="'+pr(i)+'"]'}function hu(i){return"script[async]"+i}function KT(i,s,u){if(s.count++,s.instance===null)switch(s.type){case"style":var p=i.querySelector('style[data-href~="'+pr(u.href)+'"]');if(p)return s.instance=p,en(p),p;var y=h({},u,{"data-href":u.href,"data-precedence":u.precedence,href:null,precedence:null});return p=(i.ownerDocument||i).createElement("style"),en(p),cn(p,"style",y),wh(p,u.precedence,i),s.instance=p;case"stylesheet":y=al(u.href);var w=i.querySelector(du(y));if(w)return s.state.loading|=4,s.instance=w,en(w),w;p=FT(u),(y=Sr.get(y))&&Vy(p,y),w=(i.ownerDocument||i).createElement("link"),en(w);var N=w;return N._p=new Promise(function(k,G){N.onload=k,N.onerror=G}),cn(w,"link",p),s.state.loading|=4,wh(w,u.precedence,i),s.instance=w;case"script":return w=il(u.src),(y=i.querySelector(hu(w)))?(s.instance=y,en(y),y):(p=u,(y=Sr.get(w))&&(p=h({},u),Fy(p,y)),i=i.ownerDocument||i,y=i.createElement("script"),en(y),cn(y,"link",p),i.head.appendChild(y),s.instance=y);case"void":return null;default:throw Error(r(443,s.type))}else s.type==="stylesheet"&&(s.state.loading&4)===0&&(p=s.instance,s.state.loading|=4,wh(p,u.precedence,i));return s.instance}function wh(i,s,u){for(var p=u.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),y=p.length?p[p.length-1]:null,w=y,N=0;N<p.length;N++){var k=p[N];if(k.dataset.precedence===s)w=k;else if(w!==y)break}w?w.parentNode.insertBefore(i,w.nextSibling):(s=u.nodeType===9?u.head:u,s.insertBefore(i,s.firstChild))}function Vy(i,s){i.crossOrigin==null&&(i.crossOrigin=s.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=s.referrerPolicy),i.title==null&&(i.title=s.title)}function Fy(i,s){i.crossOrigin==null&&(i.crossOrigin=s.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=s.referrerPolicy),i.integrity==null&&(i.integrity=s.integrity)}var Sh=null;function GT(i,s,u){if(Sh===null){var p=new Map,y=Sh=new Map;y.set(u,p)}else y=Sh,p=y.get(u),p||(p=new Map,y.set(u,p));if(p.has(i))return p;for(p.set(i,null),u=u.getElementsByTagName(i),y=0;y<u.length;y++){var w=u[y];if(!(w[jc]||w[an]||i==="link"&&w.getAttribute("rel")==="stylesheet")&&w.namespaceURI!=="http://www.w3.org/2000/svg"){var N=w.getAttribute(s)||"";N=i+N;var k=p.get(N);k?k.push(w):p.set(N,[w])}}return p}function YT(i,s,u){i=i.ownerDocument||i,i.head.insertBefore(u,s==="title"?i.querySelector("head > title"):null)}function HH(i,s,u){if(u===1||s.itemProp!=null)return!1;switch(i){case"meta":case"title":return!0;case"style":if(typeof s.precedence!="string"||typeof s.href!="string"||s.href==="")break;return!0;case"link":if(typeof s.rel!="string"||typeof s.href!="string"||s.href===""||s.onLoad||s.onError)break;switch(s.rel){case"stylesheet":return i=s.disabled,typeof s.precedence=="string"&&i==null;default:return!0}case"script":if(s.async&&typeof s.async!="function"&&typeof s.async!="symbol"&&!s.onLoad&&!s.onError&&s.src&&typeof s.src=="string")return!0}return!1}function XT(i){return!(i.type==="stylesheet"&&(i.state.loading&3)===0)}function VH(i,s,u,p){if(u.type==="stylesheet"&&(typeof p.media!="string"||matchMedia(p.media).matches!==!1)&&(u.state.loading&4)===0){if(u.instance===null){var y=al(p.href),w=s.querySelector(du(y));if(w){s=w._p,s!==null&&typeof s=="object"&&typeof s.then=="function"&&(i.count++,i=Oh.bind(i),s.then(i,i)),u.state.loading|=4,u.instance=w,en(w);return}w=s.ownerDocument||s,p=FT(p),(y=Sr.get(y))&&Vy(p,y),w=w.createElement("link"),en(w);var N=w;N._p=new Promise(function(k,G){N.onload=k,N.onerror=G}),cn(w,"link",p),u.instance=w}i.stylesheets===null&&(i.stylesheets=new Map),i.stylesheets.set(u,s),(s=u.state.preload)&&(u.state.loading&3)===0&&(i.count++,u=Oh.bind(i),s.addEventListener("load",u),s.addEventListener("error",u))}}var Ky=0;function FH(i,s){return i.stylesheets&&i.count===0&&Ph(i,i.stylesheets),0<i.count||0<i.imgCount?function(u){var p=setTimeout(function(){if(i.stylesheets&&Ph(i,i.stylesheets),i.unsuspend){var w=i.unsuspend;i.unsuspend=null,w()}},6e4+s);0<i.imgBytes&&Ky===0&&(Ky=62500*PH());var y=setTimeout(function(){if(i.waitingForImages=!1,i.count===0&&(i.stylesheets&&Ph(i,i.stylesheets),i.unsuspend)){var w=i.unsuspend;i.unsuspend=null,w()}},(i.imgBytes>Ky?50:800)+s);return i.unsuspend=u,function(){i.unsuspend=null,clearTimeout(p),clearTimeout(y)}}:null}function Oh(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ph(this,this.stylesheets);else if(this.unsuspend){var i=this.unsuspend;this.unsuspend=null,i()}}}var Ah=null;function Ph(i,s){i.stylesheets=null,i.unsuspend!==null&&(i.count++,Ah=new Map,s.forEach(KH,i),Ah=null,Oh.call(i))}function KH(i,s){if(!(s.state.loading&4)){var u=Ah.get(i);if(u)var p=u.get(null);else{u=new Map,Ah.set(i,u);for(var y=i.querySelectorAll("link[data-precedence],style[data-precedence]"),w=0;w<y.length;w++){var N=y[w];(N.nodeName==="LINK"||N.getAttribute("media")!=="not all")&&(u.set(N.dataset.precedence,N),p=N)}p&&u.set(null,p)}y=s.instance,N=y.getAttribute("data-precedence"),w=u.get(N)||p,w===p&&u.set(null,y),u.set(N,y),this.count++,p=Oh.bind(this),y.addEventListener("load",p),y.addEventListener("error",p),w?w.parentNode.insertBefore(y,w.nextSibling):(i=i.nodeType===9?i.head:i,i.insertBefore(y,i.firstChild)),s.state.loading|=4}}var pu={$$typeof:C,Provider:null,Consumer:null,_currentValue:H,_currentValue2:H,_threadCount:0};function GH(i,s,u,p,y,w,N,k,G){this.tag=1,this.containerInfo=i,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=hi(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=hi(0),this.hiddenUpdates=hi(null),this.identifierPrefix=p,this.onUncaughtError=y,this.onCaughtError=w,this.onRecoverableError=N,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=G,this.incompleteTransitions=new Map}function QT(i,s,u,p,y,w,N,k,G,te,oe,de){return i=new GH(i,s,u,N,G,te,oe,de,k),s=1,w===!0&&(s|=24),w=Wn(3,null,null,s),i.current=w,w.stateNode=i,s=Pv(),s.refCount++,i.pooledCache=s,s.refCount++,w.memoizedState={element:p,isDehydrated:u,cac
vendor: 7,758 bytes, line 49
49he:s},jv(w),i}function WT(i){return i?(i=Is,i):Is}function ZT(i,s,u,p,y,w){y=WT(y),p.context===null?p.context=y:p.pendingContext=y,p=wi(s),p.payload={element:u},w=w===void 0?null:w,w!==null&&(p.callback=w),u=Si(i,p,s),u!==null&&(Un(u,i,s),Kc(u,i,s))}function JT(i,s){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var u=i.retryLane;i.retryLane=u!==0&&u<s?u:s}}function Gy(i,s){JT(i,s),(i=i.alternate)&&JT(i,s)}function ej(i){if(i.tag===13||i.tag===31){var s=wo(i,67108864);s!==null&&Un(s,i,67108864),Gy(i,67108864)}}function tj(i){if(i.tag===13||i.tag===31){var s=nr();s=Ss(s);var u=wo(i,s);u!==null&&Un(u,i,s),Gy(i,s)}}var _h=!0;function YH(i,s,u,p){var y=R.T;R.T=null;var w=$.p;try{$.p=2,Yy(i,s,u,p)}finally{$.p=w,R.T=y}}function XH(i,s,u,p){var y=R.T;R.T=null;var w=$.p;try{$.p=8,Yy(i,s,u,p)}finally{$.p=w,R.T=y}}function Yy(i,s,u,p){if(_h){var y=Xy(p);if(y===null)Ry(i,s,p,Ch,u),rj(i,p);else if(WH(y,i,s,u,p))p.stopPropagation();else if(rj(i,p),s&4&&-1<QH.indexOf(i)){for(;y!==null;){var w=Ps(y);if(w!==null)switch(w.tag){case 3:if(w=w.stateNode,w.current.memoizedState.isDehydrated){var N=ra(w.pendingLanes);if(N!==0){var k=w;for(k.pendingLanes|=2,k.entangledLanes|=2;N;){var G=1<<31-hn(N);k.entanglements[1]|=G,N&=~G}sa(w),(Ze&6)===0&&(ch=Zt()+500,lu(0))}}break;case 31:case 13:k=wo(w,2),k!==null&&Un(k,w,2),fh(),Gy(w,2)}if(w=Xy(p),w===null&&Ry(i,s,p,Ch,u),w===y)break;y=w}y!==null&&p.stopPropagation()}else Ry(i,s,p,null,u)}}function Xy(i){return i=Wg(i),Qy(i)}var Ch=null;function Qy(i){if(Ch=null,i=As(i),i!==null){var s=o(i);if(s===null)i=null;else{var u=s.tag;if(u===13){if(i=l(s),i!==null)return i;i=null}else if(u===31){if(i=c(s),i!==null)return i;i=null}else if(u===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;i=null}else s!==i&&(i=null)}}return Ch=i,null}function nj(i){switch(i){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(bs()){case fo:return 2;case bd:return 8;case ho:case Cc:return 32;case Aa:return 268435456;default:return 32}default:return 32}}var Wy=!1,Di=null,Ri=null,ki=null,mu=new Map,gu=new Map,Ii=[],QH="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function rj(i,s){switch(i){case"focusin":case"focusout":Di=null;break;case"dragenter":case"dragleave":Ri=null;break;case"mouseover":case"mouseout":ki=null;break;case"pointerover":case"pointerout":mu.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":gu.delete(s.pointerId)}}function vu(i,s,u,p,y,w){return i===null||i.nativeEvent!==w?(i={blockedOn:s,domEventName:u,eventSystemFlags:p,nativeEvent:w,targetContainers:[y]},s!==null&&(s=Ps(s),s!==null&&ej(s)),i):(i.eventSystemFlags|=p,s=i.targetContainers,y!==null&&s.indexOf(y)===-1&&s.push(y),i)}function WH(i,s,u,p,y){switch(s){case"focusin":return Di=vu(Di,i,s,u,p,y),!0;case"dragenter":return Ri=vu(Ri,i,s,u,p,y),!0;case"mouseover":return ki=vu(ki,i,s,u,p,y),!0;case"pointerover":var w=y.pointerId;return mu.set(w,vu(mu.get(w)||null,i,s,u,p,y)),!0;case"gotpointercapture":return w=y.pointerId,gu.set(w,vu(gu.get(w)||null,i,s,u,p,y)),!0}return!1}function aj(i){var s=As(i.target);if(s!==null){var u=o(s);if(u!==null){if(s=u.tag,s===13){if(s=l(u),s!==null){i.blockedOn=s,y2(i.priority,function(){tj(u)});return}}else if(s===31){if(s=c(u),s!==null){i.blockedOn=s,y2(i.priority,function(){tj(u)});return}}else if(s===3&&u.stateNode.current.memoizedState.isDehydrated){i.blockedOn=u.tag===3?u.stateNode.containerInfo:null;return}}}i.blockedOn=null}function Th(i){if(i.blockedOn!==null)return!1;for(var s=i.targetContainers;0<s.length;){var u=Xy(i.nativeEvent);if(u===null){u=i.nativeEvent;var p=new u.constructor(u.type,u);Qg=p,u.target.dispatchEvent(p),Qg=null}else return s=Ps(u),s!==null&&ej(s),i.blockedOn=u,!1;s.shift()}return!0}function ij(i,s,u){Th(i)&&u.delete(s)}function ZH(){Wy=!1,Di!==null&&Th(Di)&&(Di=null),Ri!==null&&Th(Ri)&&(Ri=null),ki!==null&&Th(ki)&&(ki=null),mu.forEach(ij),gu.forEach(ij)}function jh(i,s){i.blockedOn===s&&(i.blockedOn=null,Wy||(Wy=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,ZH)))}var Eh=null;function oj(i){Eh!==i&&(Eh=i,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Eh===i&&(Eh=null);for(var s=0;s<i.length;s+=3){var u=i[s],p=i[s+1],y=i[s+2];if(typeof p!="function"){if(Qy(p||u)===null)continue;break}var w=Ps(u);w!==null&&(i.splice(s,3),s-=3,Xv(w,{pending:!0,data:y,method:u.method,action:p},p,y))}}))}function ol(i){function s(G){return jh(G,i)}Di!==null&&jh(Di,i),Ri!==null&&jh(Ri,i),ki!==null&&jh(ki,i),mu.forEach(s),gu.forEach(s);for(var u=0;u<Ii.length;u++){var p=Ii[u];p.blockedOn===i&&(p.blockedOn=null)}for(;0<Ii.length&&(u=Ii[0],u.blockedOn===null);)aj(u),u.blockedOn===null&&Ii.shift();if(u=(i.ownerDocument||i).$$reactFormReplay,u!=null)for(p=0;p<u.length;p+=3){var y=u[p],w=u[p+1],N=y[In]||null;if(typeof w=="function")N||oj(u);else if(N){var k=null;if(w&&w.hasAttribute("formAction")){if(y=w,N=w[In]||null)k=N.formAction;else if(Qy(y)!==null)continue}else k=N.action;typeof k=="function"?u[p+1]=k:(u.splice(p,3),p-=3),oj(u)}}}function sj(){function i(w){w.canIntercept&&w.info==="react-transition"&&w.intercept({handler:function(){return new Promise(function(N){return y=N})},focusReset:"manual",scroll:"manual"})}function s(){y!==null&&(y(),y=null),p||setTimeout(u,20)}function u(){if(!p&&!navigation.transition){var w=navigation.currentEntry;w&&w.url!=null&&navigation.navigate(w.url,{state:w.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var p=!1,y=null;return navigation.addEventListener("navigate",i),navigation.addEventListener("navigatesuccess",s),navigation.addEventListener("navigateerror",s),setTimeout(u,100),function(){p=!0,navigation.removeEventListener("navigate",i),navigation.removeEventListener("navigatesuccess",s),navigation.removeEventListener("navigateerror",s),y!==null&&(y(),y=null)}}}function Zy(i){this._internalRoot=i}Nh.prototype.render=Zy.prototype.render=function(i){var s=this._internalRoot;if(s===null)throw Error(r(409));var u=s.current,p=nr();ZT(u,p,i,s,null,null)},Nh.prototype.unmount=Zy.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var s=i.containerInfo;ZT(i.current,2,null,i,null,null),fh(),s[Os]=null}};function Nh(i){this._internalRoot=i}Nh.prototype.unstable_scheduleHydration=function(i){if(i){var s=Hg();i={blockedOn:null,target:i,priority:s};for(var u=0;u<Ii.length&&s!==0&&s<Ii[u].priority;u++);Ii.splice(u,0,i),u===0&&aj(i)}};
49var lj=t.version;if(lj!=="19.2.1")throw Error(r(527,lj,"19.2.1"));$.findDOMNode=function(i){var s=i._reactInternals;if(s===void 0)throw typeof i.render=="function"?Error(r(188)):(i=Object.keys(i).join(","),Error(r(268,i)));return i=d(s),i=i!==null?m(i):null,i=i===null?null:i.stateNode,i};var JH={bundleType:0,version:"19.2.1",rendererPackageName:"react-dom",currentDispatcherRef:R,reconcilerVersion:"19.2.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Mh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Mh.isDisabled&&Mh.supportsFiber)try{po=Mh.inject(JH),Cn=Mh}catch{}}return xu.createRoot=function(i,s){if(!a(i))throw Error(r(299));var u=!1,p="",y=mC,w=gC,N=vC;return s!=null&&(s.unstable_strictMode===!0&&(u=!0),s.identifierPrefix!==void 0&&(p=s.identifierPrefix),s.onUncaughtError!==void 0&&(y=s.onUncaughtError),s.onCaughtError!==void 0&&(w=s.onCaughtError),s.onRecoverableError!==void 0&&(N=s.onRecoverableError)),s=QT(i,1,!1,null,null,u,p,null,y,w,N,sj),i[Os]=s.current,Dy(i),new Zy(s)},xu.hydrateRoot=function(i,s,u){if(!a(i))throw Error(r(299));var p=!1,y="",w=mC,N=gC,k=vC,G=null;return u!=null&&(u.unstable_strictMode===!0&&(p=!0),u.identifierPrefix!==void 0&&(y=u.identifierPrefix),u.onUncaughtError!==void 0&&(w=u.onUncaughtError),u.onCaughtError!==void 0&&(N=u.onCaughtError),u.onRecoverableError!==void 0&&(k=u.onRecoverableError),u.formState!==void 0&&(G=u.formState)),s=QT(i,1,!0,s,u??null,p,y,G,w,N,k,sj),s.context=WT(null),u=s.current,p=nr(),p=Ss(p),y=wi(p),y.callback=null,Si(u,y,p),u=p,s.current.lanes=u,At(s,u),sa(s),i[Os]=s.current,Dy(i),new Nh(s)},xu.version="19.2.1",xu}var Rj;function vV(){if(Rj)return i0.exports;Rj=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(),i0.exports=gV(),i0.exports}var yV=vV(),bV=(function(){function e(){this.keyToValue=new Map,this.valueToKey=new Map}return e.prototype.set=function(t,n){this.keyToValue.set(t,n),this.valueToKey.set(n,t)},e.prototype.getByKey=function(t){return this.keyToValue.get(t)},e.prototype.getByValue=function(t){return this.valueToKey.get(t)},e.prototype.clear=function(){this.keyToValue.clear(),this.valueToKey.clear()},e})(),_I=(function(){function e(t){this.generateIdentifier=t,this.kv=new bV}return e.prototype.register=function(t,n){this.kv.getByValue(t)||(n||(n=this.generateIdentifier(t)),this.kv.set(n,t))},e.prototype.clear=function(){this.kv.clear()},e.prototype.getIdentifier=function(t){return this.kv.getByValue(t)},e.prototype.getValue=function(t){return this.kv.getByKey(t)},e})(),xV=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(r[o]=a[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),wV=(function(e){xV(t,e);function t(){var n=e.call(this,function(r){return r.name})||this;return n.classToAllowedProps=new Map,n}return t.prototype.register=function(n,r){typeof r=="object"?(r.allowProps&&this.classToAllowedProps.set(n,r.allowProps),e.prototype.register.call(this,n,r.identifier)):e.prototype.register.call(this,n,r)},t.prototype.getAllowedProps=function(n){return this.classToAllowedProps.get(n)},t})(_I),SV=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),a,o=[],l;try{for(;(t===void 0||t-- >0)&&!(a=r.next()).done;)o.push(a.value)}catch(c){l={error:c}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(l)throw l.error}}return o};function OV(e){if("values"in Object)return Object.values(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t}function AV(e,t){var n=OV(e);if("find"in n)return n.find(t);for(var r=n,a=0;a<r.length;a++){var o=r[a];if(t(o))return o}}function kl(e,t){Object.entries(e).forEach(function(n){var r=SV(n,2),a=r[0],o=r[1];return t(o,a)})}function hp(e,t){return e.indexOf(t)!==-1}function kj(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(t(r))return r}}var PV=(function(){function e(){this.transfomers={}}return e.prototype.register=function(t){this.transfomers[t.name]=t},e.prototype.findApplicable=function(t){return AV(this.transfomers,function(n){return n.isApplicable(t)})},e.prototype.findByName=function(t){return this.transfomers[t]},e})(),_V=function(e){return Object.prototype.toString.call(e).slice(8,-1)},CI=function(e){return typeof e>"u"},CV=function(e){return e===null},Ju=function(e){return typeof e!="object"||e===null||e===Object.prototype?!1:Object.getPrototypeOf(e)===null?!0:Object.getPrototypeOf(e)===Object.prototype},Yw=function(e){return Ju(e)&&Object.keys(e).length===0},Qi=function(e){return Array.isArray(e)},TV=function(e){return typeof e=="string"},jV=function(e){return typeof e=="number"&&!isNaN(e)},EV=function(e){return typeof e=="boolean"},NV=function(e){return e instanceof RegExp},ef=function(e){return e instanceof Map},tf=function(e){return e instanceof Set},TI=function(e){return _V(e)==="Symbol"},MV=function(e){return e instanceof Date&&!isNaN(e.valueOf())},DV=function(e){return e instanceof Error},Ij=function(e){return typeof e=="number"&&isNaN(e)},RV=function(e){return EV(e)||CV(e)||CI(e)||jV(e)||TV(e)||TI(e)},kV=function(e){return typeof e=="bigint"},IV=function(e){return e===1/0||e===-1/0},LV=function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)},$V=function(e){return e instanceof URL},jI=function(e){return e.replace(/\./g,"\\.")},c0=function(e){return e.map(String).map(jI).join(".")},qu=function(e){for(var t=[],n="",r=0;r<e.length;r++){var a=e.charAt(r),o=a==="\\"&&e.charAt(r+1)===".";if(o){n+=".",r++;continue}var l=a===".";if(l){t.push(n),n="";continue}n+=a}var c=n;return t.push(c),t},Xw=function(){return Xw=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Xw.apply(this,arguments)},Qw=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),a,o=[],l;try{for(;(t===void 0||t-- >0)&&!(a=r.next()).done;)o.push(a.value)}catch(c){l={error:c}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(l)throw l.error}}return o},Ww=function(e,t){for(var n=0,r=t.length,a=e.length;n<r;n++,a++)e[a]=t[n];return e};function la(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}var EI=[la(CI,"undefined",function(){return null},function(){}),la(kV,"bigint",function(e){return e.toString()},function(e){return typeof BigInt<"u"?BigInt(e):(console.error("Please add a BigInt polyfill."),e)}),la(MV,"Date",function(e){return e.toISOString()},function(e){return new Date(e)}),la(DV,"Error",function(e,t){var n={name:e.name,message:e.message};return t.allowedErrorProps.forEach(function(r){n[r]=e[r]}),n},function(e,t){var n=new Error(e.message);return n.name=e.name,n.stack=e.stack,t.allowedErrorProps.forEach(function(r){n[r]=e[r]}),n}),la(NV,"regexp",function(e){return""+e},function(e){var t=e.slice(1,e.lastIndexOf("/")),n=e.slice(e.lastIndexOf("/")+1);return new RegExp(t,n)}
49),la(tf,"set",function(e){return Ww([],Qw(e.values()))},function(e){return new Set(e)}),la(ef,"map",function(e){return Ww([],Qw(e.entries()))},function(e){return new Map(e)}),la(function(e){return Ij(e)||IV(e)},"number",function(e){return Ij(e)?"NaN":e>0?"Infinity":"-Infinity"},Number),la(function(e){return e===0&&1/e===-1/0},"number",function(){return"-0"},Number),la($V,"URL",function(e){return e.toString()},function(e){return new URL(e)})];function Fm(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}var NI=Fm(function(e,t){if(TI(e)){var n=!!t.symbolRegistry.getIdentifier(e);return n}return!1},function(e,t){var n=t.symbolRegistry.getIdentifier(e);return["symbol",n]},function(e){return e.description},function(e,t,n){var r=n.symbolRegistry.getValue(t[1]);if(!r)throw new Error("Trying to deserialize unknown symbol");return r}),BV=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce(function(e,t){return e[t.name]=t,e},{}),MI=Fm(LV,function(e){return["typed-array",e.constructor.name]},function(e){return Ww([],Qw(e))},function(e,t){var n=BV[t[1]];if(!n)throw new Error("Trying to deserialize unknown typed array");return new n(e)});function DI(e,t){if(e?.constructor){var n=!!t.classRegistry.getIdentifier(e.constructor);return n}return!1}var RI=Fm(DI,function(e,t){var n=t.classRegistry.getIdentifier(e.constructor);return["class",n]},function(e,t){var n=t.classRegistry.getAllowedProps(e.constructor);if(!n)return Xw({},e);var r={};return n.forEach(function(a){r[a]=e[a]}),r},function(e,t,n){var r=n.classRegistry.getValue(t[1]);if(!r)throw new Error("Trying to deserialize unknown class - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564");return Object.assign(Object.create(r.prototype),e)}),kI=Fm(function(e,t){return!!t.customTransformerRegistry.findApplicable(e)},function(e,t){var n=t.customTransformerRegistry.findApplicable(e);return["custom",n.name]},function(e,t){var n=t.customTransformerRegistry.findApplicable(e);return n.serialize(e)},function(e,t,n){var r=n.customTransformerRegistry.findByName(t[1]);if(!r)throw new Error("Trying to deserialize unknown custom value");return r.deserialize(e)}),qV=[RI,NI,kI,MI],Lj=function(e,t){var n=kj(qV,function(a){return a.isApplicable(e,t)});if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};var r=kj(EI,function(a){return a.isApplicable(e,t)});if(r)return{value:r.transform(e,t),type:r.annotation}},II={};EI.forEach(function(e){II[e.annotation]=e});var zV=function(e,t,n){if(Qi(t))switch(t[0]){case"symbol":return NI.untransform(e,t,n);case"class":return RI.untransform(e,t,n);case"custom":return kI.untransform(e,t,n);case"typed-array":return MI.untransform(e,t,n);default:throw new Error("Unknown transformation: "+t)}else{var r=II[t];if(!r)throw new Error("Unknown transformation: "+t);return r.untransform(e,n)}},vl=function(e,t){for(var n=e.keys();t>0;)n.next(),t--;return n.next().value};function LI(e){if(hp(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(hp(e,"prototype"))throw new Error("prototype is not allowed as a property");if(hp(e,"constructor"))throw new Error("constructor is not allowed as a property")}var UV=function(e,t){LI(t);for(var n=0;n<t.length;n++){var r=t[n];if(tf(e))e=vl(e,+r);else if(ef(e)){var a=+r,o=+t[++n]==0?"key":"value",l=vl(e,a);switch(o){case"key":e=l;break;case"value":e=e.get(l);break}}else e=e[r]}return e},Zw=function(e,t,n){if(LI(t),t.length===0)return n(e);for(var r=e,a=0;a<t.length-1;a++){var o=t[a];if(Qi(r)){var l=+o;r=r[l]}else if(Ju(r))r=r[o];else if(tf(r)){var c=+o;r=vl(r,c)}else if(ef(r)){var f=a===t.length-2;if(f)break;var c=+o,d=+t[++a]==0?"key":"value",m=vl(r,c);switch(d){case"key":r=m;break;case"value":r=r.get(m);break}}}var h=t[t.length-1];if(Qi(r)?r[+h]=n(r[+h]):Ju(r)&&(r[h]=n(r[h])),tf(r)){var g=vl(r,+h),x=n(g);g!==x&&(r.delete(g),r.add(x))}if(ef(r)){var c=+t[t.length-2],O=vl(r,c),d=+h==0?"key":"value";switch(d){case"key":{var b=n(O);r.set(b,r.get(O)),b!==O&&r.delete(O);break}case"value":{r.set(O,n(r.get(O)));break}}}return e},Fa=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),a,o=[],l;try{for(;(t===void 0||t-- >0)&&!(a=r.next()).done;)o.push(a.value)}catch(c){l={error:c}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(l)throw l.error}}return o},Vi=function(e,t){for(var n=0,r=t.length,a=e.length;n<r;n++,a++)e[a]=t[n];return e};
49function Jw(e,t,n){if(n===void 0&&(n=[]),!!e){if(!Qi(e)){kl(e,function(l,c){return Jw(l,t,Vi(Vi([],Fa(n)),Fa(qu(c))))});return}var r=Fa(e,2),a=r[0],o=r[1];o&&kl(o,function(l,c){Jw(l,t,Vi(Vi([],Fa(n)),Fa(qu(c))))}),t(a,n)}}function HV(e,t,n){return Jw(t,function(r,a){e=Zw(e,a,function(o){return zV(o,r,n)})}),e}function VV(e,t){function n(l,c){var f=UV(e,qu(c));l.map(qu).forEach(function(d){e=Zw(e,d,function(){return f})})}if(Qi(t)){var r=Fa(t,2),a=r[0],o=r[1];a.forEach(function(l){e=Zw(e,qu(l),function(){return e})}),o&&kl(o,n)}else kl(t,n);return e}var FV=function(e,t){return Ju(e)||Qi(e)||ef(e)||tf(e)||DI(e,t)};function KV(e,t,n){var r=n.get(e);r?r.push(t):n.set(e,[t])}function GV(e,t){var n={},r=void 0;return e.forEach(function(a){if(!(a.length<=1)){t||(a=a.map(function(f){return f.map(String)}).sort(function(f,d){return f.length-d.length}));var o=Fa(a),l=o[0],c=o.slice(1);l.length===0?r=c.map(c0):n[c0(l)]=c.map(c0)}}),r?Yw(n)?[r]:[r,n]:Yw(n)?void 0:n}var $I=function(e,t,n,r,a,o,l){var c;a===void 0&&(a=[]),o===void 0&&(o=[]),l===void 0&&(l=new Map);var f=RV(e);if(!f){KV(e,a,t);var d=l.get(e);if(d)return r?{transformedValue:null}:d}if(!FV(e,n)){var m=Lj(e,n),h=m?{transformedValue:m.value,annotations:[m.type]}:{transformedValue:e};return f||l.set(e,h),h}if(hp(o,e))return{transformedValue:null};var g=Lj(e,n),x=(c=g?.value)!==null&&c!==void 0?c:e,O=Qi(x)?[]:{},b={};kl(x,function(A,_){var C=$I(A,t,n,r,Vi(Vi([],Fa(a)),[_]),Vi(Vi([],Fa(o)),[e]),l);O[_]=C.transformedValue,Qi(C.annotations)?b[_]=C.annotations:Ju(C.annotations)&&kl(C.annotations,function(M,P){b[jI(_)+"."+P]=M})});var S=Yw(b)?{transformedValue:O,annotations:g?[g.type]:void 0}:{transformedValue:O,annotations:g?[g.type,b]:b};return f||l.set(e,S),S};function BI(e){return Object.prototype.toString.call(e).slice(8,-1)}function $j(e){return BI(e)==="Array"}function YV(e){if(BI(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}function XV(e,t,n,r,a){const o={}.propertyIsEnumerable.call(r,t)?"enumerable":"nonenumerable";o==="enumerable"&&(e[t]=n),a&&o==="nonenumerable"&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}function eS(e,t={}){if($j(e))return e.map(a=>eS(a,t));if(!YV(e))return e;const n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertySymbols(e);return[...n,...r].reduce((a,o)=>{if($j(t.props)&&!t.props.includes(o))return a;const l=e[o],c=eS(l,t);return XV(a,o,c,e,t.nonenumerable),a},{})}var Ho=function(){return Ho=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Ho.apply(this,arguments)},QV=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),a,o=[],l;try{for(;(t===void 0||t-- >0)&&!(a=r.next()).done;)o.push(a.value)}catch(c){l={error:c}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(l)throw l.error}}return o},WV=function(e,t){for(var n=0,r=t.length,a=e.length;n<r;n++,a++)e[a]=t[n];return e},si=(function(){function e(t){var n=t===void 0?{}:t,r=n.dedupe,a=r===void 0?!1:r;this.classRegistry=new wV,this.symbolRegistry=new _I(function(o){var l;return(l=o.description)!==null&&l!==void 0?l:""}),this.customTransformerRegistry=new PV,this.allowedErrorProps=[],this.dedupe=a}return e.prototype.serialize=function(t){var n=new Map,r=$I(t,n,this,this.dedupe),a={json:r.transformedValue};r.annotations&&(a.meta=Ho(Ho({},a.meta),{values:r.annotations}));var o=GV(n,this.dedupe);return o&&(a.meta=Ho(Ho({},a.meta),{referentialEqualities:o})),a},e.prototype.deserialize=function(t){var n=t.json,r=t.meta,a=eS(n);return r?.values&&(a=HV(a,r.values,this)),r?.referentialEqualities&&(a=VV(a,r.referentialEqualities)),a},e.prototype.stringify=function(t){return JSON.stringify(this.serialize(t))},e.prototype.parse=function(t){return this.deserialize(JSON.parse(t))},e.prototype.registerClass=function(t,n){this.classRegistry.register(t,n)},e.prototype.registerSymbol=function(t,n){this.symbolRegistry.register(t,n)},e.prototype.registerCustom=function(t,n){this.customTransformerRegistry.register(Ho({name:n},t))},e.prototype.allowErrorProps=function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];(t=this.allowedErrorProps).push.apply(t,WV([],QV(n)))},e.defaultInstance=new e,e.serialize=e.defaultInstance.serialize.bind(e.defaultInstance),e.deserialize=e.defaultInstance.deserialize.bind(e.defaultInstance),e.stringify=e.defaultInstance.stringify.bind(e.defaultInstance),e.parse=e.defaultInstance.parse.bind(e.defaultInstance),e.registerClass=e.defaultInstance.registerClass.bind(e.defaultInstance),e.registerSymbol=e.defaultInstance.registerSymbol.bind(e.defaultInstance),e.registerCustom=e.defaultInstance.registerCustom.bind(e.defaultInstance),e.allowErrorProps=e.defaultInstance.allowErrorProps.bind(e.defaultInstance),e})();
vendor: 4,470 bytes, line 49
49si.serialize;si.deserialize;si.stringify;si.parse;si.registerClass;si.registerCustom;si.registerSymbol;si.allowErrorProps;var ZV=(e,t,n,r,a,o,l,c)=>{let f=document.documentElement,d=["light","dark"];function m(x){(Array.isArray(e)?e:[e]).forEach(O=>{let b=O==="class",S=b&&o?a.map(A=>o[A]||A):a;b?(f.classList.remove(...S),f.classList.add(o&&o[x]?o[x]:x)):f.setAttribute(O,x)}),h(x)}function h(x){c&&d.includes(x)&&(f.style.colorScheme=x)}function g(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(r)m(r);else try{let x=localStorage.getItem(t)||n,O=l&&x==="system"?g():x;m(O)}catch{}},JV=j.createContext(void 0),eF={setTheme:e=>{},themes:[]},tF=()=>{var e;return(e=j.useContext(JV))!=null?e:eF};j.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:a,defaultTheme:o,value:l,themes:c,nonce:f,scriptProps:d})=>{let m=JSON.stringify([n,t,o,e,c,l,r,a]).slice(1,-1);return j.createElement("script",{...d,suppressHydrationWarning:!0,nonce:typeof window>"u"?f:"",dangerouslySetInnerHTML:{__html:`(${ZV.toString()})(${m})`}})});var Jf=PI();const qI=ut(Jf);function nF(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 rF=e=>{switch(e){case"success":return oF;case"info":return lF;case"warning":return sF;case"error":return cF;default:return null}},aF=Array(12).fill(0),iF=({visible:e,className:t})=>V.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},V.createElement("div",{className:"sonner-spinner"},aF.map((n,r)=>V.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),oF=V.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},V.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),sF=V.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},V.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),lF=V.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},V.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),cF=V.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},V.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),uF=V.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},V.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),V.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),fF=()=>{const[e,t]=V.useState(document.hidden);return V.useEffect(()=>{const n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let tS=1;class dF{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;const{message:r,...a}=t,o=typeof t?.id=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:tS++,l=this.toasts.find(f=>f.id===o),c=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(o)&&this.dismissedToasts.delete(o),l?this.toasts=this.toasts.map(f=>f.id===o?(this.publish({...f,...t,id:o,title:r}
vendor: 3,172 bytes, line 49
49),{...f,...t,id:o,dismissible:c,title:r}):f):this.addToast({title:r,...a,dismissible:c,id:o}),o},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:t,dismiss:!0})))):this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,dismiss:!0}))}),t),this.message=(t,n)=>this.create({...n,message:t}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const a=Promise.resolve(t instanceof Function?t():t);let o=r!==void 0,l;const c=a.then(async d=>{if(l=["resolve",d],V.isValidElement(d))o=!1,this.create({id:r,type:"default",message:d});else if(pF(d)&&!d.ok){o=!1;const h=typeof n.error=="function"?await n.error(`HTTP error! status: ${d.status}`):n.error,g=typeof n.description=="function"?await n.description(`HTTP error! status: ${d.status}`):n.description,O=typeof h=="object"&&!V.isValidElement(h)?h:{message:h};this.create({id:r,type:"error",description:g,...O})}else if(d instanceof Error){o=!1;const h=typeof n.error=="function"?await n.error(d):n.error,g=typeof n.description=="function"?await n.description(d):n.description,O=typeof h=="object"&&!V.isValidElement(h)?h:{message:h};this.create({id:r,type:"error",description:g,...O})}else if(n.success!==void 0){o=!1;const h=typeof n.success=="function"?await n.success(d):n.success,g=typeof n.description=="function"?await n.description(d):n.description,O=typeof h=="object"&&!V.isValidElement(h)?h:{message:h};this.create({id:r,type:"success",description:g,...O})}}).catch(async d=>{if(l=["reject",d],n.error!==void 0){o=!1;const m=typeof n.error=="function"?await n.error(d):n.error,h=typeof n.description=="function"?await n.description(d):n.description,x=typeof m=="object"&&!V.isValidElement(m)?m:{message:m};this.create({id:r,type:"error",description:h,...x})}}).finally(()=>{o&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),f=()=>new Promise((d,m)=>c.then(()=>l[0]==="reject"?m(l[1]):d(l[1])).catch(m));return typeof r!="string"&&typeof r!="number"?{unwrap:f}:Object.assign(r,{unwrap:f})},this.custom=(t,n)=>{const r=n?.id||tS++;return this.create({jsx:t(r),id:r,...n}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const Fn=new dF,hF=(e,t)=>{const n=t?.id||tS++;return Fn.addToast({title:e,...t,id:n}),n},pF=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",mF=hF,gF=()=>Fn.toasts,vF=()=>Fn.getActiveToasts(),An=Object.assign(mF,{success:Fn.success,info:Fn.info,warning:Fn.warning,error:Fn.error,custom:Fn.custom,message:Fn.message,promise:Fn.promise,dismiss:Fn.dismiss,loading:Fn.loading},{getHistory:gF,getToasts:vF});nF
vendor: 14,873 bytes, line 49
49("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function
vendor: 544 bytes, line 49
49$h(e){return e.label!==void 0}const yF=3,bF="24px",xF="16px",Bj=4e3,wF=356,SF=14,OF=45,AF=200;function ca(...e){return e.filter(Boolean).join(" ")}function PF(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const _F=e=>{var t,n,r,a,o,l,c,f,d;const{invert:m,toast:h,unstyled:g,interacting:x,setHeights:O,visibleToasts:b,heights:S,index:A,toasts:_,expanded:C,removeToast:M,defaultRichColors:P,closeButton:E,style:T,cancelButtonStyle:D,actionButtonStyle:L,className:U="",descriptionClassName:I="",duration:z,position:F,gap:K,exp
vendor: 19,272 bytes, line 49
49andByDefault:q,classNames:R,icons:$,closeButtonAriaLabel:H="Close toast"}=e,[W,ae]=V.useState(null),[B,Y]=V.useState(null),[X,J]=V.useState(!1),[ue,he]=V.useState(!1),[fe,me]=V.useState(!1),[le,pe]=V.useState(!1),[ve,ie]=V.useState(!1),[Re,Pe]=V.useState(0),[nt,Je]=V.useState(0),pt=V.useRef(h.duration||z||Bj),Mn=V.useRef(null),$t=V.useRef(null),ta=A===0,Xn=A+1<=b,Ot=h.type,dr=h.dismissible!==!1,Zt=h.className||"",bs=h.descriptionClassName||"",fo=V.useMemo(()=>S.findIndex(Ee=>Ee.toastId===h.id)||0,[S,h.id]),bd=V.useMemo(()=>{var Ee;return(Ee=h.closeButton)!=null?Ee:E},[h.closeButton,E]),ho=V.useMemo(()=>h.duration||z||Bj,[h.duration,z]),Cc=V.useRef(0),Aa=V.useRef(0),xd=V.useRef(0),di=V.useRef(null),[po,Cn]=F.split("-"),Lr=V.useMemo(()=>S.reduce((Ee,bt,Jt)=>Jt>=fo?Ee:Ee+bt.height,0),[S,fo]),hn=fF(),Ug=h.invert||m,Tc=Ot==="loading";Aa.current=V.useMemo(()=>fo*K+Lr,[fo,Lr]),V.useEffect(()=>{pt.current=ho},[ho]),V.useEffect(()=>{J(!0)},[]),V.useEffect(()=>{const Ee=$t.current;if(Ee){const bt=Ee.getBoundingClientRect().height;return Je(bt),O(Jt=>[{toastId:h.id,height:bt,position:h.position},...Jt]),()=>O(Jt=>Jt.filter(pn=>pn.toastId!==h.id))}},[O,h.id]),V.useLayoutEffect(()=>{if(!X)return;const Ee=$t.current,bt=Ee.style.height;Ee.style.height="auto";const Jt=Ee.getBoundingClientRect().height;Ee.style.height=bt,Je(Jt),O(pn=>pn.find(At=>At.toastId===h.id)?pn.map(At=>At.toastId===h.id?{...At,height:Jt}:At):[{toastId:h.id,height:Jt,position:h.position},...pn])},[X,h.title,h.description,O,h.id,h.jsx,h.action,h.cancel]);const na=V.useCallback(()=>{he(!0),Pe(Aa.current),O(Ee=>Ee.filter(bt=>bt.toastId!==h.id)),setTimeout(()=>{M(h)},AF)},[h,M,O,Aa]);V.useEffect(()=>{if(h.promise&&Ot==="loading"||h.duration===1/0||h.type==="loading")return;let Ee;return C||x||hn?(()=>{if(xd.current<Cc.current){const pn=new Date().getTime()-Cc.current;pt.current=pt.current-pn}xd.current=new Date().getTime()})():(()=>{pt.current!==1/0&&(Cc.current=new Date().getTime(),Ee=setTimeout(()=>{h.onAutoClose==null||h.onAutoClose.call(h,h),na()},pt.current))})(),()=>clearTimeout(Ee)},[C,x,h,Ot,hn,na]),V.useEffect(()=>{h.delete&&(na(),h.onDismiss==null||h.onDismiss.call(h,h))},[na,h.delete]);function xs(){var Ee;if($?.loading){var bt;return V.createElement("div",{className:ca(R?.loader,h==null||(bt=h.classNames)==null?void 0:bt.loader,"sonner-loader"),"data-visible":Ot==="loading"},$.loading)}return V.createElement(iF,{className:ca(R?.loader,h==null||(Ee=h.classNames)==null?void 0:Ee.loader),visible:Ot==="loading"})}const ws=h.icon||$?.[Ot]||rF(Ot);var mo,ra;return V.createElement("li",{tabIndex:0,ref:$t,className:ca(U,Zt,R?.toast,h==null||(t=h.classNames)==null?void 0:t.toast,R?.default,R?.[Ot],h==null||(n=h.classNames)==null?void 0:n[Ot]),"data-sonner-toast":"","data-rich-colors":(mo=h.richColors)!=null?mo:P,"data-styled":!(h.jsx||h.unstyled||g),"data-mounted":X,"data-promise":!!h.promise,"data-swiped":ve,"data-removed":ue,"data-visible":Xn,"data-y-position":po,"data-x-position":Cn,"data-index":A,"data-front":ta,"data-swiping":fe,"data-dismissible":dr,"data-type":Ot,"data-invert":Ug,"data-swipe-out":le,"data-swipe-direction":B,"data-expanded":!!(C||q&&X),"data-testid":h.testId,style:{"--index":A,"--toasts-before":A,"--z-index":_.length-A,"--offset":`${ue?Re:Aa.current}px`,"--initial-height":q?"auto":`${nt}px`,...T,...h.style},onDragEnd:()=>{me(!1),ae(null),di.current=null},onPointerDown:Ee=>{Ee.button!==2&&(Tc||!dr||(Mn.current=new Date,Pe(Aa.current),Ee.target.setPointerCapture(Ee.pointerId),Ee.target.tagName!=="BUTTON"&&(me(!0),di.current={x:Ee.clientX,y:Ee.clientY})))},onPointerUp:()=>{var Ee,bt,Jt;if(le||!dr)return;di.current=null;const pn=Number(((Ee=$t.current)==null?void 0:Ee.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),hi=Number(((bt=$t.current)==null?void 0:bt.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),At=new Date().getTime()-((Jt=Mn.current)==null?void 0:Jt.getTime()),Dn=W==="x"?pn:hi,go=Math.abs(Dn)/At;if(Math.abs(Dn)>=OF||go>.11){Pe(Aa.current),h.onDismiss==null||h.onDismiss.call(h,h),Y(W==="x"?pn>0?"right":"left":hi>0?"down":"up"),na(),pe(!0);return}else{var Rn,kn;(Rn=$t.current)==null||Rn.style.setProperty("--swipe-amount-x","0px"),(kn=$t.current)==null||kn.style.setProperty("--swipe-amount-y","0px")}ie(!1),me(!1),ae(null)},onPointerMove:Ee=>{var bt,Jt,pn;if(!di.current||!dr||((bt=window.getSelection())==null?void 0:bt.toString().length)>0)return;const At=Ee.clientY-di.current.y,Dn=Ee.clientX-di.current.x;var go;const Rn=(go=e.swipeDirections)!=null?go:PF(F);!W&&(Math.abs(Dn)>1||Math.abs(At)>1)&&ae(Math.abs(Dn)>Math.abs(At)?"x":"y");let kn={x:0,y:0};const Ss=$r=>1/(1.5+Math.abs($r)/20);if(W==="y"){if(Rn.includes("top")||Rn.includes("bottom"))if(Rn.includes("top")&&At<0||Rn.includes("bottom")&&At>0)kn.y=At;else{const $r=At*Ss(At);kn.y=Math.abs($r)<Math.abs(At)?$r:At}}else if(W==="x"&&(Rn.includes("left")||Rn.includes("right")))if(Rn.includes("left")&&Dn<0||Rn.includes("right")&&Dn>0)kn.x=Dn;else{const $r=Dn*Ss(Dn);kn.x=Math.abs($r)<Math.abs(Dn)?$r:Dn}(Math.abs(kn.x)>0||Math.abs(kn.y)>0)&&ie(!0),(Jt=$t.current)==null||Jt.style.setProperty("--swipe-amount-x",`${kn.x}px`),(pn=$t.current)==null||pn.style.setProperty("--swipe-amount-y",`${kn.y}px`)}},bd&&!h.jsx&&Ot!=="loading"?V.createElement("button",{"aria-label":H,"data-disabled":Tc,"data-close-button":!0,onClick:Tc||!dr?()=>{}:()=>{na(),h.onDismiss==null||h.onDismiss.call(h,h)},className:ca(R?.closeButton,h==null||(r=h.classNames)==null?void 0:r.closeButton)},(ra=$?.close)!=null?ra:uF):null,(Ot||h.icon||h.promise)&&h.icon!==null&&($?.[Ot]!==null||h.icon)?V.createElement("div",{"data-icon":"",className:ca(R?.icon,h==null||(a=h.classNames)==null?void 0:a.icon)},h.promise||h.type==="loading"&&!h.icon?h.icon||xs():null,h.type!=="loading"?ws:null):null,V.createElement("div",{"data-content":"",className:ca(R?.content,h==null||(o=h.classNames)==null?void 0:o.content)},V.createElement("div",{"data-title":"",className:ca(R?.title,h==null||(l=h.classNames)==null?void 0:l.title)},h.jsx?h.jsx:typeof h.title=="function"?h.title():h.title),h.description?V.createElement("div",{"data-description":"",className:ca(I,bs,R?.description,h==null||(c=h.classNames)==null?void 0:c.description)},typeof h.description=="function"?h.description():h.description):null),V.isValidElement(h.cancel)?h.cancel:h.cancel&&$h(h.cancel)?V.createElement("button",{"data-button":!0,"data-cancel":!0,style:h.cancelButtonStyle||D,onClick:Ee=>{$h(h.cancel)&&dr&&(h.cancel.onClick==null||h.cancel.onClick.call(h.cancel,Ee),na())},className:ca(R?.cancelButton,h==null||(f=h.classNames)==null?void 0:f.cancelButton)},h.cancel.label):null,V.isValidElement(h.action)?h.action:h.action&&$h(h.action)?V.createElement("button",{"data-button":!0,"data-action":!0,style:h.actionButtonStyle||L,onClick:Ee=>{$h(h.action)&&(h.action.onClick==null||h.action.onClick.call(h.action,Ee),!Ee.defaultPrevented&&na())},className:ca(R?.actionButton,h==null||(d=h.classNames)==null?void 0:d.actionButton)},h.action.label):null)};function qj(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function CF(e,t){const n={};return[e,t].forEach((r,a)=>{const o=a===1,l=o?"--mobile-offset":"--offset",c=o?xF:bF;function f(d){["top","right","bottom","left"].forEach(m=>{n[`${l}-${m}`]=typeof d=="number"?`${d}px`:d})}typeof r=="number"||typeof r=="string"?f(r):typeof r=="object"?["top","right","bottom","left"].forEach(d=>{r[d]===void 0?n[`${l}-${d}`]=c:n[`${l}-${d}`]=typeof r[d]=="number"?`${r[d]}px`:r[d]}):f(c)}),n}const TF=V.forwardRef(function(t,n){const{id:r,invert:a,position:o="bottom-right",hotkey:l=["altKey","KeyT"],expand:c,closeButton:f,className:d,offset:m,mobileOffset:h,theme:g="light",richColors:x,duration:O,style:b,visibleToasts:S=yF,toastOptions:A,dir:_=qj(),gap:C=SF,icons:M,containerAriaLabel:P="Notifications"}=t,[E,T]=V.useState([]),D=V.useMemo(()=>r?E.filter(X=>X.toasterId===r):E.filter(X=>!X.toasterId),[E,r]),L=V.useMemo(()=>Array.from(new Set([o].concat(D.filter(X=>X.position).map(X=>X.position)))),[D,o]),[U,I]=V.useState([]),[z,F]=V.useState(!1),[K,q]=V.useState(!1),[R,$]=V.useState(g!=="system"?g:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),H=V.useRef(null),W=l.join("+").replace(/Key/g,"").replace(/Digit/g,""),ae=V.useRef(null),B=V.useRef(!1),Y=V.useCallback(X=>{T(J=>{var ue;return(ue=J.find(he=>he.id===X.id))!=null&&ue.delete||Fn.dismiss(X.id),J.filter(({id:he})=>he!==X.id)})},[]);return V.useEffect(()=>Fn.subscribe(X=>{if(X.dismiss){requestAnimationFrame(()=>{T(J=>J.map(ue=>ue.id===X.id?{...ue,delete:!0}:ue))});return}setTimeout(()=>{qI.flushSync(()=>{T(J=>{const ue=J.findIndex(he=>he.id===X.id);return ue!==-1?[...J.slice(0,ue),{...J[ue],...X},...J.slice(ue+1)]:[X,...J]})})})}),[E]),V.useEffect(()=>{if(g!=="system"){$(g);return}if(g==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?$("dark"):$("light")),typeof window>"u")return;const X=window.matchMedia("(prefers-color-scheme: dark)");try{X.addEventListener("change",({matches:J})=>{$(J?"dark":"light")})}catch{X.addListener(({matches:ue})=>{try{$(ue?"dark":"light")}catch(he){console.error(he)}})}},[g]),V.useEffect(()=>{E.length<=1&&F(!1)},[E]),V.useEffect(()=>{const X=J=>{var ue;if(l.every(me=>J[me]||J.code===me)){var fe;F(!0),(fe=H.current)==null||fe.focus()}J.code==="Escape"&&(document.activeElement===H.current||(ue=H.current)!=null&&ue.contains(document.activeElement))&&F(!1)};return document.addEventListener("keydown",X),()=>document.removeEventListener("keydown",X)},[l]),V.useEffect(()=>{if(H.current)return()=>{ae.current&&(ae.current.focus({preventScroll:!0}),ae.current=null,B.current=!1)}},[H.current]),V.createElement("section",{ref:n,"aria-label":`${P} ${W}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},L.map((X,J)=>{var ue;const[he,fe]=X.split("-");return D.length?V.createElement("ol",{key:X,dir:_==="auto"?qj():_,tabIndex:-1,ref:H,className:d,"data-sonner-toaster":!0,"data-sonner-theme":R,"data-y-position":he,"data-x-position":fe,style:{"--front-toast-height":`${((ue=U[0])==null?void 0:ue.height)||0}px`,"--width":`${wF}px`,"--gap":`${C}px`,...b,...CF(m,h)},onBlur:me=>{B.current&&!me.currentTarget.contains(me.relatedTarget)&&(B.current=!1,ae.current&&(ae.current.focus({preventScroll:!0}),ae.current=null))},onFocus:me=>{me.target instanceof HTMLElement&&me.target.dataset.dismissible==="false"||B.current||(B.current=!0,ae.current=me.relatedTarget)},onMouseEnter:()=>F(!0),onMouseMove:()=>F(!0),onMouseLeave:()=>{K||F(!1)},onDragEnd:()=>F(!1),onPointerDown:me=>{me.target instanceof HTMLElement&&me.target.dataset.dismissible==="false"||q(!0)},onPointerUp:()=>q(!1)},D.filter(me=>!me.position&&J===0||me.position===X).map((me,le)=>{var pe,ve;return V.createElement(_F,{key:me.id,icons:M,index:le,toast:me,defaultRichColors:x,duration:(pe=A?.duration)!=null?pe:O,className:A?.className,descriptionClassName:A?.descriptionClassName,invert:a,visibleToasts:S,closeButton:(ve=A?.closeButton)!=null?ve:f,interacting:K,position:X,style:A?.style,unstyled:A?.unstyled,classNames:A?.classNames,cancelButtonStyle:A?.cancelButtonStyle,actionButtonStyle:A?.actionButtonStyle,closeButtonAriaLabel:A?.closeButtonAriaLabel,removeToast:Y,toasts:D.filter(ie=>ie.position==me.position),heights:U.filter(ie=>ie.position==me.position),setHeights:I,expandByDefault:c,gap:C,expanded:z,swipeDirections:t.swipeDirections})})):null}))}),jF=({...e})=>{const{theme:t="system"}=tF();return v.jsx(TF,{"data-loc":"client/src/components/ui/sonner.tsx:8",theme:t,className:"toaster group",style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)"},...e})};function Fe(e,t,{checkForDefaultPrevented:n=!0}={}){return function(a){if(e?.(a),n===!1||!a.defaultPrevented)return t?.(a)}}function zj(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function zI(...e){return t=>{let n=!1;const r=e.map(a=>{const o=zj(a,t);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let a=0;a<r.length;a++){const o=r[a];typeof o=="function"?o():zj(e[a],null)}}}}function kt(...e){return j.useCallback(zI(...e),e)}function lc(e,t=[]){let n=[];function r(o,l){const c=j.createContext(l),f=n.length;n=[...n,l];const d=h=>{const{scope:g,children:x,...O}=h,b=g?.[e]?.[f]||c,S=j.useMemo(()=>O,Object.values(O));return v.jsx(b.Provider,{value:S,children:x})};d.displayName=o+"Provider";function m(h,g){const x=g?.[e]?.[f]||c,O=j.useContext(x);if(O)return O;if(l!==void 0)return l;throw new Error(`\`${h}\` must be used within \`${o}\``)}return[d,m]}const a=()=>{const o=n.map(l=>j.createContext(l));return function(c){const f=c?.[e]||o;return j.useMemo(()=>({[`__scope${e}`]:{...c,[e]:f}}),[c,f])}};return a.scopeName=e,[r,EF(a,...t)]}function EF(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(o){const l=r.reduce((c,{useScope:f,scopeName:d})=>{const h=f(o)[`__scope${d}`];return{...c,...h}},{});return j.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}function nf(e){const t=NF(e),n=j.forwardRef((r,a)=>{const{children:o,...l}=r,c=j.Children.toArray(o),f=c.find(DF);if(f){const d=f.props.children,m=c.map(h=>h===f?j.Children.count(d)>1?j.Children.only(null):j.isValidElement(d)?d.props.children:null:h);return v.jsx(t,{...l,ref:a,children:j.isValidElement(d)?j.cloneElement(d,void 0,m):null})}return v.jsx(t,{...l,ref:a,children:o})});return n.displayName=`${e}.Slot`,n}var UI=nf("Slot");function NF(e){const t=j.forwardRef((n,r)=>{const{children:a,...o}=n;if(j.isValidElement(a)){const l=kF(a),c=RF(o,a.props);return a.type!==j.Fragment&&(c.ref=r?zI(r,l):l),j.cloneElement(a,c)}return j.Children.count(a)>1?j.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var HI=Symbol("radix.slottable");function MF(e){const t=({children:n})=>v.jsx(v.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=HI,t}function DF(e){return j.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===HI}function RF(e,t){const n={...t};for(const r in t){const a=e[r],o=t[r];/^on[A-Z]/.test(r)?a&&o?n[r]=(...c)=>{const f=o(...c);return a(...c),f}:a&&(n[r]=a):r==="style"?n[r]={...a,...o}:r==="className"&&(n[r]=[a,o].filter(Boolean).join(" "))}return{...e,...n}}function kF(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var IF=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],it=IF.reduce((e,t)=>{const n=nf(`Primitive.${t}`),r=j.forwardRef((a,o)=>{const{asChild:l,...c}=a,f=l?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),v.jsx(f,{...c,ref:o})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function LF(e,t){e&&Jf.flushSync(()=>e.dispatchEvent(t))}function Wi(e){const t=j.useRef(e);return j.useEffect(()=>{t.current=e}),j.useMemo(()=>(...n)=>t.current?.(...n),[])}function $F(e,t=globalThis?.document){const n=Wi(e);j.useEffect(()=>{const r=a=>{a.key==="Escape"&&n(a)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var BF="DismissableLayer",nS="dismissableLayer.update",qF="dismissableLayer.pointerDownOutside",zF="dismissableLayer.focusOutside",Uj,VI=j.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),fA=j.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:l,onDismiss:c,...f}=e,d=j.useContext(VI),[m,h]=j.useState(null),g=m?.ownerDocument??globalThis?.document,[,x]=j.useState({}),O=kt(t,T=>h(T)),b=Array.from(d.layers),[S]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),A=b.indexOf(S),_=m?b.indexOf(m):-1,C=d.layersWithOutsidePointerEventsDisabled.size>0,M=_>=A,P=VF(T=>{const D=T.target,L=[...d.branches].some(U=>U.contains(D));!M||L||(a?.(T),l?.(T),T.defaultPrevented||c?.())},g),E=FF(T=>{const D=T.target;[...d.branches].some(U=>U.contains(D))||(o?.(T),l?.(T),T.defaultPrevented||c?.())},g);return $F(T=>{_===d.layers.size-1&&(r?.(T),!T.defaultPrevented&&c&&(T.preventDefault(),c()))},g),j.useEffect(()=>{if(m)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Uj=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(m)),d.layers.add(m),Hj(),()=>{n&&d.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=Uj)}},[m,g,n,d]),j.useEffect(()=>()=>{m&&(d.layers.delete(m),d.layersWithOutsidePointerEventsDisabled.delete(m),Hj())},[m,d]),j.useEffect(()=>{const T=()=>x({});return document.addEventListener(nS,T),()=>document.removeEventListener(nS,T)},[]),v.jsx(it.div,{...f,ref:O,style:{pointerEvents:C?M?"auto":"none":void 0,...e.style},onFocusCapture:Fe(e.onFocusCapture,E.onFocusCapture),onBlurCapture:Fe(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:Fe(e.onPointerDownCapture,P.onPointerDownCapture)})});fA.displayName=BF;var UF="DismissableLayerBranch",HF=j.forwardRef((e,t)=>{const n=j.useContext(VI),r=j.useRef(null),a=kt(t,r);return j.useEffect(()=>{const o=r.current;if(o)return n.branches.add(o),()=>{n.branches.delete(o)}},[n.branches]),v.jsx(it.div,{...e,ref:a})});HF.displayName=UF;function VF(e,t=globalThis?.document){const n=Wi(e),r=j.useRef(!1),a=j.useRef(()=>{});return j.useEffect(()=>{const o=c=>{if(c.target&&!r.current){let f=function(){FI(qF,n,d,{discrete:!0})};const d={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",a.current),a.current=f,t.addEventListener("click",a.current,{once:!0})):f()}else t.removeEventListener("click",a.current);r.current=!1},l=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(l),t.removeEventListener("pointerdown",o),t.removeEventListener("click",a.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function FF(e,t=globalThis?.document){const n=Wi(e),r=j.useRef(!1);return j.useEffect(()=>{const a=o=>{o.target&&!r.current&&FI(zF,n,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",a),()=>t.removeEventListener("focusin",a)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Hj(){const e=new CustomEvent(nS);document.dispatchEvent(e)}function FI(e,t,n,{discrete:r}){const a=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),r?LF(a,o):a.dispatchEvent(o)}var _n=globalThis?.document?j.useLayoutEffect:()=>{},KF=Bm[" useId ".trim().toString()]||(()=>{}),GF=0;function ed(e){const[t,n]=j.useState(KF());return _n(()=>{n(r=>r??String(GF++))},[e]),e||(t?`radix-${t}`:"")}const YF=["top","right","bottom","left"],Zi=Math.min,or=Math.max,Ap=Math.round,Bh=Math.floor,pa=e=>({x:e,y:e}
vendor: 16,101 bytes, line 49
49),XF={left:"right",right:"left",bottom:"top",top:"bottom"},QF={start:"end",end:"start"};function rS(e,t,n){return or(e,Zi(t,n))}function Za(e,t){return typeof e=="function"?e(t):e}function Ja(e){return e.split("-")[0]}function cc(e){return e.split("-")[1]}function dA(e){return e==="x"?"y":"x"}function hA(e){return e==="y"?"height":"width"}const WF=new Set(["top","bottom"]);function da(e){return WF.has(Ja(e))?"y":"x"}function pA(e){return dA(da(e))}function ZF(e,t,n){n===void 0&&(n=!1);const r=cc(e),a=pA(e),o=hA(a);let l=a==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(l=Pp(l)),[l,Pp(l)]}function JF(e){const t=Pp(e);return[aS(e),t,aS(t)]}function aS(e){return e.replace(/start|end/g,t=>QF[t])}const Vj=["left","right"],Fj=["right","left"],eK=["top","bottom"],tK=["bottom","top"];function nK(e,t,n){switch(e){case"top":case"bottom":return n?t?Fj:Vj:t?Vj:Fj;case"left":case"right":return t?eK:tK;default:return[]}}function rK(e,t,n,r){const a=cc(e);let o=nK(Ja(e),n==="start",r);return a&&(o=o.map(l=>l+"-"+a),t&&(o=o.concat(o.map(aS)))),o}function Pp(e){return e.replace(/left|right|bottom|top/g,t=>XF[t])}function aK(e){return{top:0,right:0,bottom:0,left:0,...e}}function KI(e){return typeof e!="number"?aK(e):{top:e,right:e,bottom:e,left:e}}function _p(e){const{x:t,y:n,width:r,height:a}=e;return{width:r,height:a,top:n,left:t,right:t+r,bottom:n+a,x:t,y:n}}function Kj(e,t,n){let{reference:r,floating:a}=e;const o=da(t),l=pA(t),c=hA(l),f=Ja(t),d=o==="y",m=r.x+r.width/2-a.width/2,h=r.y+r.height/2-a.height/2,g=r[c]/2-a[c]/2;let x;switch(f){case"top":x={x:m,y:r.y-a.height};break;case"bottom":x={x:m,y:r.y+r.height};break;case"right":x={x:r.x+r.width,y:h};break;case"left":x={x:r.x-a.width,y:h};break;default:x={x:r.x,y:r.y}}switch(cc(t)){case"start":x[l]-=g*(n&&d?-1:1);break;case"end":x[l]+=g*(n&&d?-1:1);break}return x}const iK=async(e,t,n)=>{const{placement:r="bottom",strategy:a="absolute",middleware:o=[],platform:l}=n,c=o.filter(Boolean),f=await(l.isRTL==null?void 0:l.isRTL(t));let d=await l.getElementRects({reference:e,floating:t,strategy:a}),{x:m,y:h}=Kj(d,r,f),g=r,x={},O=0;for(let b=0;b<c.length;b++){const{name:S,fn:A}=c[b],{x:_,y:C,data:M,reset:P}=await A({x:m,y:h,initialPlacement:r,placement:g,strategy:a,middlewareData:x,rects:d,platform:l,elements:{reference:e,floating:t}});m=_??m,h=C??h,x={...x,[S]:{...x[S],...M}},P&&O<=50&&(O++,typeof P=="object"&&(P.placement&&(g=P.placement),P.rects&&(d=P.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:a}):P.rects),{x:m,y:h}=Kj(d,g,f)),b=-1)}return{x:m,y:h,placement:g,strategy:a,middlewareData:x}};async function rf(e,t){var n;t===void 0&&(t={});const{x:r,y:a,platform:o,rects:l,elements:c,strategy:f}=e,{boundary:d="clippingAncestors",rootBoundary:m="viewport",elementContext:h="floating",altBoundary:g=!1,padding:x=0}=Za(t,e),O=KI(x),S=c[g?h==="floating"?"reference":"floating":h],A=_p(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(S)))==null||n?S:S.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(c.floating)),boundary:d,rootBoundary:m,strategy:f})),_=h==="floating"?{x:r,y:a,width:l.floating.width,height:l.floating.height}:l.reference,C=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c.floating)),M=await(o.isElement==null?void 0:o.isElement(C))?await(o.getScale==null?void 0:o.getScale(C))||{x:1,y:1}:{x:1,y:1},P=_p(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:_,offsetParent:C,strategy:f}):_);return{top:(A.top-P.top+O.top)/M.y,bottom:(P.bottom-A.bottom+O.bottom)/M.y,left:(A.left-P.left+O.left)/M.x,right:(P.right-A.right+O.right)/M.x}}const oK=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:a,rects:o,platform:l,elements:c,middlewareData:f}=t,{element:d,padding:m=0}=Za(e,t)||{};if(d==null)return{};const h=KI(m),g={x:n,y:r},x=pA(a),O=hA(x),b=await l.getDimensions(d),S=x==="y",A=S?"top":"left",_=S?"bottom":"right",C=S?"clientHeight":"clientWidth",M=o.reference[O]+o.reference[x]-g[x]-o.floating[O],P=g[x]-o.reference[x],E=await(l.getOffsetParent==null?void 0:l.getOffsetParent(d));let T=E?E[C]:0;(!T||!await(l.isElement==null?void 0:l.isElement(E)))&&(T=c.floating[C]||o.floating[O]);const D=M/2-P/2,L=T/2-b[O]/2-1,U=Zi(h[A],L),I=Zi(h[_],L),z=U,F=T-b[O]-I,K=T/2-b[O]/2+D,q=rS(z,K,F),R=!f.arrow&&cc(a)!=null&&K!==q&&o.reference[O]/2-(K<z?U:I)-b[O]/2<0,$=R?K<z?K-z:K-F:0;return{[x]:g[x]+$,data:{[x]:q,centerOffset:K-q-$,...R&&{alignmentOffset:$}},reset:R}}}),sK=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:a,middlewareData:o,rects:l,initialPlacement:c,platform:f,elements:d}=t,{mainAxis:m=!0,crossAxis:h=!0,fallbackPlacements:g,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:O="none",flipAlignment:b=!0,...S}=Za(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const A=Ja(a),_=da(c),C=Ja(c)===c,M=await(f.isRTL==null?void 0:f.isRTL(d.floating)),P=g||(C||!b?[Pp(c)]:JF(c)),E=O!=="none";!g&&E&&P.push(...rK(c,b,O,M));const T=[c,...P],D=await rf(t,S),L=[];let U=((r=o.flip)==null?void 0:r.overflows)||[];if(m&&L.push(D[A]),h){const K=ZF(a,l,M);L.push(D[K[0]],D[K[1]])}if(U=[...U,{placement:a,overflows:L}],!L.every(K=>K<=0)){var I,z;const K=(((I=o.flip)==null?void 0:I.index)||0)+1,q=T[K];if(q&&(!(h==="alignment"?_!==da(q):!1)||U.every(H=>da(H.placement)===_?H.overflows[0]>0:!0)))return{data:{index:K,overflows:U},reset:{placement:q}};let R=(z=U.filter($=>$.overflows[0]<=0).sort(($,H)=>$.overflows[1]-H.overflows[1])[0])==null?void 0:z.placement;if(!R)switch(x){case"bestFit":{var F;const $=(F=U.filter(H=>{if(E){const W=da(H.placement);return W===_||W==="y"}return!0}).map(H=>[H.placement,H.overflows.filter(W=>W>0).reduce((W,ae)=>W+ae,0)]).sort((H,W)=>H[1]-W[1])[0])==null?void 0:F[0];$&&(R=$);break}case"initialPlacement":R=c;break}if(a!==R)return{reset:{placement:R}}}return{}}}};function Gj(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Yj(e){return YF.some(t=>e[t]>=0)}const lK=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...a}=Za(e,t);switch(r){case"referenceHidden":{const o=await rf(t,{...a,elementContext:"reference"}),l=Gj(o,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:Yj(l)}}}case"escaped":{const o=await rf(t,{...a,altBoundary:!0}),l=Gj(o,n.floating);return{data:{escapedOffsets:l,escaped:Yj(l)}}}default:return{}}}}},GI=new Set(["left","top"]);async function cK(e,t){const{placement:n,platform:r,elements:a}=e,o=await(r.isRTL==null?void 0:r.isRTL(a.floating)),l=Ja(n),c=cc(n),f=da(n)==="y",d=GI.has(l)?-1:1,m=o&&f?-1:1,h=Za(t,e);let{mainAxis:g,crossAxis:x,alignmentAxis:O}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return c&&typeof O=="number"&&(x=c==="end"?O*-1:O),f?{x:x*m,y:g*d}:{x:g*d,y:x*m}}const uK=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:a,y:o,placement:l,middlewareData:c}=t,f=await cK(t,e);return l===((n=c.offset)==null?void 0:n.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:a+f.x,y:o+f.y,data:{...f,placement:l}}}}},fK=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:a}=t,{mainAxis:o=!0,crossAxis:l=!1,limiter:c={fn:S=>{let{x:A,y:_}=S;return{x:A,y:_}}},...f}=Za(e,t),d={x:n,y:r},m=await rf(t,f),h=da(Ja(a)),g=dA(h);let x=d[g],O=d[h];if(o){const S=g==="y"?"top":"left",A=g==="y"?"bottom":"right",_=x+m[S],C=x-m[A];x=rS(_,x,C)}if(l){const S=h==="y"?"top":"left",A=h==="y"?"bottom":"right",_=O+m[S],C=O-m[A];O=rS(_,O,C)}const b=c.fn({...t,[g]:x,[h]:O});return{...b,data:{x:b.x-n,y:b.y-r,enabled:{[g]:o,[h]:l}}}}}},dK=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:a,rects:o,middlewareData:l}=t,{offset:c=0,mainAxis:f=!0,crossAxis:d=!0}=Za(e,t),m={x:n,y:r},h=da(a),g=dA(h);let x=m[g],O=m[h];const b=Za(c,t),S=typeof b=="number"?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(f){const C=g==="y"?"height":"width",M=o.reference[g]-o.floating[C]+S.mainAxis,P=o.reference[g]+o.reference[C]-S.mainAxis;x<M?x=M:x>P&&(x=P)}if(d){var A,_;const C=g==="y"?"width":"height",M=GI.has(Ja(a)),P=o.reference[h]-o.floating[C]+(M&&((A=l.offset)==null?void 0:A[h])||0)+(M?0:S.crossAxis),E=o.reference[h]+o.reference[C]+(M?0:((_=l.offset)==null?void 0:_[h])||0)-(M?S.crossAxis:0);O<P?O=P:O>E&&(O=E)}return{[g]:x,[h]:O}}}},hK=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:a,rects:o,platform:l,elements:c}=t,{apply:f=()=>{},...d}=Za(e,t),m=await rf(t,d),h=Ja(a),g=cc(a),x=da(a)==="y",{width:O,height:b}=o.floating;let S,A;h==="top"||h==="bottom"?(S=h,A=g===(await(l.isRTL==null?void 0:l.isRTL(c.floating))?"start":"end")?"left":"right"):(A=h,S=g==="end"?"top":"bottom");const _=b-m.top-m.bottom,C=O-m.left-m.right,M=Zi(b-m[S],_),P=Zi(O-m[A],C),E=!t.middlewareData.shift;let T=M,D=P;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(D=C),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(T=_),E&&!g){const U=or(m.left,0),I=or(m.right,0),z=or(m.top,0),F=or(m.bottom,0);x?D=O-2*(U!==0||I!==0?U+I:or(m.left,m.right)):T=b-2*(z!==0||F!==0?z+F:or(m.top,m.bottom))}await f({...t,availableWidth:D,availableHeight:T});const L=await l.getDimensions(c.floating);return O!==L.width||b!==L.height?{reset:{rects:!0}}:{}}}};function Km(){return typeof window<"u"}function uc(e){return YI(e)?(e.nodeName||"").toLowerCase():"#document"}function cr(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Sa(e){var t;return(t=(YI(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function YI(e){return Km()?e instanceof Node||e instanceof cr(e).Node:!1}function Wr(e){return Km()?e instanceof Element||e instanceof cr(e).Element:!1}function ba(e){return Km()?e instanceof HTMLElement||e instanceof cr(e).HTMLElement:!1}function Xj(e){return!Km()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof cr(e).ShadowRoot}const pK=new Set(["inline","contents"]);function td(e){const{overflow:t,overflowX:n,overflowY:r,display:a}=Zr(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!pK.has(a)}const mK=new Set(["table","td","th"]);function gK(e){return mK.has(uc(e))}const vK=[":popover-open",":modal"];function Gm(e){return vK.some(t=>{try{return e.matches(t)}catch{return!1}})}const yK=["transform","translate","scale","rotate","perspective"],bK=["transform","translate","scale","rotate","perspective","filter"],xK=["paint","layout","strict","content"];function mA(e){const t=gA(),n=Wr(e)?Zr(e):e;return yK.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||bK.some(r=>(n.willChange||"").includes(r))||xK.some(r=>(n.contain||"").includes(r))}function wK(e){let t=Ji(e);for(;ba(t)&&!Il(t);){if(mA(t))return t;if(Gm(t))return null;t=Ji(t)}return null}function gA(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const SK=new Set(["html","body","#document"]);function Il(e){return SK.has(uc(e))}function Zr(e){return cr(e).getComputedStyle(e)}function Ym(e){return Wr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ji(e){if(uc(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Xj(e)&&e.host||Sa(e);return Xj(t)?t.host:t}function XI(e){const t=Ji(e);return Il(t)?e.ownerDocument?e.ownerDocument.body:e.body:ba(t)&&td(t)?t:XI(t)}function af(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const a=XI(e),o=a===((r=e.ownerDocument)==null?void 0:r.body),l=cr(a);if(o){const c=iS(l);return t.concat(l,l.visualViewport||[],td(a)?a:[],c&&n?af(c):[])}return t.concat(a,af(a,[],n))}function iS(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function QI(e){const t=Zr(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const a=ba(e),o=a?e.offsetWidth:n,l=a?e.offsetHeight:r,c=Ap(n)!==o||Ap(r)!==l;return c&&(n=o,r=l),{width:n,height:r,$:c}}function vA(e){return Wr(e)?e:e.contextElement}function _l(e){const t=vA(e);if(!ba(t))return pa(1);const n=t.getBoundingClientRect(),{width:r,height:a,$:o}=QI(t);let l=(o?Ap(n.width):n.width)/r,c=(o?Ap(n.height):n.height)/a;return(!l||!Number.isFinite(l))&&(l=1),(!c||!Number.isFinite(c))&&(c=1),{x:l,y:c}}const OK=pa(0);function WI(e){const t=cr(e);return!gA()||!t.visualViewport?OK:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function AK(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==cr(e)?!1:t}function rs(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const a=e.getBoundingClientRect(),o=vA(e);let l=pa(1);t&&(r?Wr(r)&&(l=_l(r)):l=_l(e));const c=AK(o,n,r)?WI(o):pa(0);let f=(a.left+c.x)/l.x,d=(a.top+c.y)/l.y,m=a.width/l.x,h=a.height/l.y;if(o){const g=cr(o),x=r&&Wr(r)?cr(r):r;let O=g,b=iS(O);for(;b&&r&&x!==O;){const S=_l(b),A=b.getBoundingClientRect(),_=Zr(b),C=A.left+(b.clientLeft+parseFloat(_.paddingLeft))*S.x,M=A.top+(b.clientTop+parseFloat(_.paddingTop))*S.y;f*=S.x,d*=S.y,m*=S.x,h*=S.y,f+=C,d+=M,O=cr(b),b=iS(O)}}return _p({width:m,height:h,x:f,y:d})}function Xm(e,t){const n=Ym(e).scrollLeft;return t?t.left+n:rs(Sa(e)).left+n}function ZI(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Xm(e,n),a=n.top+t.scrollTop;return{x:r,y:a}}function PK(e){let{elements:t,rect:n,offsetParent:r,strategy:a}=e;const o=a==="fixed",l=Sa(r),c=t?Gm(t.floating):!1;if(r===l||c&&o)return n;let f={scrollLeft:0,scrollTop:0},d=pa(1);const m=pa(0),h=ba(r);if((h||!h&&!o)&&((uc(r)!=="body"||td(l))&&(f=Ym(r)),ba(r))){const x=rs(r);d=_l(r),m.x=x.x+r.clientLeft,m.y=x.y+r.clientTop}const g=l&&!h&&!o?ZI(l,f):pa(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-f.scrollLeft*d.x+m.x+g.x,y:n.y*d.y-f.scrollTop*d.y+m.y+g.y}}function _K(e){return Array.from(e.getClientRects())}function CK(e){const t=Sa(e),n=Ym(e),r=e.ownerDocument.body,a=or(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=or(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+Xm(e);const c=-n.scrollTop;return Zr(r).direction==="rtl"&&(l+=or(t.clientWidth,r.clientWidth)-a),{width:a,height:o,x:l,y:c}}const Qj=25;function TK(e,t){const n=cr(e),r=Sa(e),a=n.visualViewport;let o=r.clientWidth,l=r.clientHeight,c=0,f=0;if(a){o=a.width,l=a.height;const m=gA();(!m||m&&t==="fixed")&&(c=a.offsetLeft,f=a.offsetTop)}const d=Xm(r);if(d<=0){const m=r.ownerDocument,h=m.body,g=getComputedStyle(h),x=m.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,O=Math.abs(r.clientWidth-h.clientWidth-x);O<=Qj&&(o-=O)}else d<=Qj&&(o+=d);return{width:o,height:l,x:c,y:f}}const jK=new Set(["absolute","fixed"]);function EK(e,t){const n=rs(e,!0,t==="fixed"),r=n.top+e.clientTop,a=n.left+e.clientLeft,o=ba(e)?_l(e):pa(1),l=e.clientWidth*o.x,c=e.clientHeight*o.y,f=a*o.x,d=r*o.y;return{width:l,height:c,x:f,y:d}}function Wj(e,t,n){let r;if(t==="viewport")r=TK(e,n);else if(t==="document")r=CK(Sa(e));else if(Wr(t))r=EK(t,n);else{const a=WI(e);r={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return _p(r)}function JI(e,t){const n=Ji(e);return n===t||!Wr(n)||Il(n)?!1:Zr(n).position==="fixed"||JI(n,t)}function NK(e,t){const n=t.get(e);if(n)return n;let r=af(e,[],!1).filter(c=>Wr(c)&&uc(c)!=="body"),a=null;const o=Zr(e).position==="fixed";let l=o?Ji(e):e;for(;Wr(l)&&!Il(l);){const c=Zr(l),f=mA(l);!f&&c.position==="fixed"&&(a=null),(o?!f&&!a:!f&&c.position==="static"&&!!a&&jK.has(a.position)||td(l)&&!f&&JI(e,l))?r=r.filter(m=>m!==l):a=c,l=Ji(l)}return t.set(e,r),r}function MK(e){let{element:t,boundary:n,rootBoundary:r,strategy:a}=e;const l=[...n==="clippingAncestors"?Gm(t)?[]:NK(t,this._c):[].concat(n),r],c=l[0],f=l.reduce((d,m)=>{const h=Wj(t,m,a);return d.top=or(h.top,d.top),d.right=Zi(h.right,d.right),d.bottom=Zi(h.bottom,d.bottom),d.left
vendor: 9,826 bytes, line 49
49=or(h.left,d.left),d},Wj(t,c,a));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function DK(e){const{width:t,height:n}=QI(e);return{width:t,height:n}}function RK(e,t,n){const r=ba(t),a=Sa(t),o=n==="fixed",l=rs(e,!0,o,t);let c={scrollLeft:0,scrollTop:0};const f=pa(0);function d(){f.x=Xm(a)}if(r||!r&&!o)if((uc(t)!=="body"||td(a))&&(c=Ym(t)),r){const x=rs(t,!0,o,t);f.x=x.x+t.clientLeft,f.y=x.y+t.clientTop}else a&&d();o&&!r&&a&&d();const m=a&&!r&&!o?ZI(a,c):pa(0),h=l.left+c.scrollLeft-f.x-m.x,g=l.top+c.scrollTop-f.y-m.y;return{x:h,y:g,width:l.width,height:l.height}}function u0(e){return Zr(e).position==="static"}function Zj(e,t){if(!ba(e)||Zr(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Sa(e)===n&&(n=n.ownerDocument.body),n}function e6(e,t){const n=cr(e);if(Gm(e))return n;if(!ba(e)){let a=Ji(e);for(;a&&!Il(a);){if(Wr(a)&&!u0(a))return a;a=Ji(a)}return n}let r=Zj(e,t);for(;r&&gK(r)&&u0(r);)r=Zj(r,t);return r&&Il(r)&&u0(r)&&!mA(r)?n:r||wK(e)||n}const kK=async function(e){const t=this.getOffsetParent||e6,n=this.getDimensions,r=await n(e.floating);return{reference:RK(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function IK(e){return Zr(e).direction==="rtl"}const LK={convertOffsetParentRelativeRectToViewportRelativeRect:PK,getDocumentElement:Sa,getClippingRect:MK,getOffsetParent:e6,getElementRects:kK,getClientRects:_K,getDimensions:DK,getScale:_l,isElement:Wr,isRTL:IK};function t6(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function $K(e,t){let n=null,r;const a=Sa(e);function o(){var c;clearTimeout(r),(c=n)==null||c.disconnect(),n=null}function l(c,f){c===void 0&&(c=!1),f===void 0&&(f=1),o();const d=e.getBoundingClientRect(),{left:m,top:h,width:g,height:x}=d;if(c||t(),!g||!x)return;const O=Bh(h),b=Bh(a.clientWidth-(m+g)),S=Bh(a.clientHeight-(h+x)),A=Bh(m),C={rootMargin:-O+"px "+-b+"px "+-S+"px "+-A+"px",threshold:or(0,Zi(1,f))||1};let M=!0;function P(E){const T=E[0].intersectionRatio;if(T!==f){if(!M)return l();T?l(!1,T):r=setTimeout(()=>{l(!1,1e-7)},1e3)}T===1&&!t6(d,e.getBoundingClientRect())&&l(),M=!1}try{n=new IntersectionObserver(P,{...C,root:a.ownerDocument})}catch{n=new IntersectionObserver(P,C)}n.observe(e)}return l(!0),o}function BK(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:a=!0,ancestorResize:o=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:f=!1}=r,d=vA(e),m=a||o?[...d?af(d):[],...af(t)]:[];m.forEach(A=>{a&&A.addEventListener("scroll",n,{passive:!0}),o&&A.addEventListener("resize",n)});const h=d&&c?$K(d,n):null;let g=-1,x=null;l&&(x=new ResizeObserver(A=>{let[_]=A;_&&_.target===d&&x&&(x.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var C;(C=x)==null||C.observe(t)})),n()}),d&&!f&&x.observe(d),x.observe(t));let O,b=f?rs(e):null;f&&S();function S(){const A=rs(e);b&&!t6(b,A)&&n(),b=A,O=requestAnimationFrame(S)}return n(),()=>{var A;m.forEach(_=>{a&&_.removeEventListener("scroll",n),o&&_.removeEventListener("resize",n)}),h?.(),(A=x)==null||A.disconnect(),x=null,f&&cancelAnimationFrame(O)}}const qK=uK,zK=fK,UK=sK,HK=hK,VK=lK,Jj=oK,FK=dK,KK=(e,t,n)=>{const r=new Map,a={platform:LK,...n},o={...a.platform,_c:r};return iK(e,t,{...a,platform:o})};var GK=typeof document<"u",YK=function(){},pp=GK?j.useLayoutEffect:YK;function Cp(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,a;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(!Cp(e[r],t[r]))return!1;return!0}if(a=Object.keys(e),n=a.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,a[r]))return!1;for(r=n;r--!==0;){const o=a[r];if(!(o==="_owner"&&e.$$typeof)&&!Cp(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function n6(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function eE(e,t){const n=n6(e);return Math.round(t*n)/n}function f0(e){const t=j.useRef(e);return pp(()=>{t.current=e}),t}function XK(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:a,elements:{reference:o,floating:l}={},transform:c=!0,whileElementsMounted:f,open:d}=e,[m,h]=j.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,x]=j.useState(r);Cp(g,r)||x(r);const[O,b]=j.useState(null),[S,A]=j.useState(null),_=j.useCallback(H=>{H!==E.current&&(E.current=H,b(H))},[]),C=j.useCallback(H=>{H!==T.current&&(T.current=H,A(H))},[]),M=o||O,P=l||S,E=j.useRef(null),T=j.useRef(null),D=j.useRef(m),L=f!=null,U=f0(f),I=f0(a),z=f0(d),F=j.useCallback(()=>{if(!E.current||!T.current)return;const H={placement:t,strategy:n,middleware:g};I.current&&(H.platform=I.current),KK(E.current,T.current,H).then(W=>{const ae={...W,isPositioned:z.current!==!1};K.current&&!Cp(D.current,ae)&&(D.current=ae,Jf.flushSync(()=>{h(ae)}))})},[g,t,n,I,z]);pp(()=>{d===!1&&D.current.isPositioned&&(D.current.isPositioned=!1,h(H=>({...H,isPositioned:!1})))},[d]);const K=j.useRef(!1);pp(()=>(K.current=!0,()=>{K.current=!1}),[]),pp(()=>{if(M&&(E.current=M),P&&(T.current=P),M&&P){if(U.current)return U.current(M,P,F);F()}},[M,P,F,U,L]);const q=j.useMemo(()=>({reference:E,floating:T,setReference:_,setFloating:C}),[_,C]),R=j.useMemo(()=>({reference:M,floating:P}),[M,P]),$=j.useMemo(()=>{const H={position:n,left:0,top:0};if(!R.floating)return H;const W=eE(R.floating,m.x),ae=eE(R.floating,m.y);return c?{...H,transform:"translate("+W+"px, "+ae+"px)",...n6(R.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:W,top:ae}},[n,c,R.floating,m.x,m.y]);return j.useMemo(()=>({...m,update:F,refs:q,elements:R,floatingStyles:$}),[m,F,q,R,$])}const QK=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:a}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Jj({element:r.current,padding:a}).fn(n):{}:r?Jj({element:r,padding:a}).fn(n):{}}}},WK=(e,t)=>({...qK(e),options:[e,t]}),ZK=(e,t)=>({...zK(e),options:[e,t]}),JK=(e,t)=>({...FK(e),options:[e,t]}),eG=(e,t)=>({...UK(e),options:[e,t]}),tG=(e,t)=>({...HK(e),options:[e,t]}),nG=(e,t)=>({...VK(e),options:[e,t]}),rG=(e,t)=>({...QK(e),options:[e,t]});var aG="Arrow",r6=j.forwardRef((e,t)=>{const{children:n,width:r=10,height:a=5,...o}=e;return v.jsx(it.svg,{...o,ref:t,width:r,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:v.jsx("polygon",{points:"0,0 30,0 15,10"})})});r6.displayName=aG;var iG=r6;function oG(e){const[t,n]=j.useState(void 0);return _n(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const o=a[0];let l,c;if("borderBoxSize"in o){const f=o.borderBoxSize,d=Array.isArray(f)?f[0]:f;l=d.inlineSize,c=d.blockSize}else l=e.offsetWidth,c=e.offsetHeight;n({width:l,height:c})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var yA="Popper",[a6,Qm]=lc(yA),[sG,i6]=a6(yA),o6=e=>{const{__scopePopper:t,children:n}=e,[r,a]=j.useState(null);return v.jsx(sG,{scope:t,anchor:r,onAnchorChange:a,children:n})};o6.displayName=yA;var s6="PopperAnchor",l6=j.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...a}=e,o=i6(s6,n),l=j.useRef(null),c=kt(t,l),f=j.useRef(null);return j.useEffect(()=>{const d=f.current;f.current=r?.current||l.current,d!==f.current&&o.onAnchorChange(f.current)}),r?null:v.jsx(it.div,{...a,ref:c})});l6.displayName=s6;var bA="PopperContent",[lG,cG]=a6(bA),c6=j.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:a=0,align:o="center",alignOffset:l=0,arrowPadding:c=0,avoidCollisions:f=!0,collisionBoundary:d=[],collisionPadding:m=0,sticky:h="partial",hideWhenDetached:g=!1,updatePositionStrategy:x="optimized",onPlaced:O,...b}=e,S=i6(bA,n),[A,_]=j.useState(null),C=kt(t,fe=>_(fe)),[M,P]=j.useState(null),E=oG(M),T=E?.width??0,D=E?.height??0,L=r+(o!=="center"?"-"+o:""),U=typeof m=="number"?m:{top:0,right:0,bottom:0,left:0,...m},I=Array.isArray(d)?d:[d],z=I.length>0,F={padding:U,boundary:I.filter(fG),altBoundary:z},{refs:K,floatingStyles:q,placement:R,isPositioned:$,middlewareData:H}=XK({strategy:"fixed",placement:L,whileElementsMounted:(...fe)=>BK(...fe,{animationFrame:x==="always"}),elements:{reference:S.anchor},middleware:[WK({mainAxis:a+D,alignmentAxis:l}),f&&ZK({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?JK():void 0,...F}),f&&eG({...F}),tG({...F,apply:({elements:fe,rects:me,availableWidth:le,availableHeight:pe})=>{const{width:ve,height:ie}=me.reference,Re=fe.floating.style;Re.setProperty("--radix-popper-available-width",`${le}px`),Re.setProperty("--radix-popper-available-height",`${pe}px`),Re.setProperty("--radix-popper-anchor-width",`${ve}px`),Re.setProperty("--radix-popper-anchor-height",`${ie}px`)}}),M&&rG({element:M,padding:c}),dG({arrowWidth:T,arrowHeight:D}),g&&nG({strategy:"referenceHidden",...F})]}),[W,ae]=d6(R),B=Wi(O);_n(()=>{$&&B?.()},[$,B]);const Y=H.arrow?.x,X=H.arrow?.y,J=H.arrow?.centerOffset!==0,[ue,he]=j.useState();return _n(()=>{A&&he(window.getComputedStyle(A).zIndex)},[A]),v.jsx("div",{ref:K.setFloating,"data-radix-popper-content-wrapper":"",style:{...q,transform:$?q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ue,"--radix-popper-transform-origin":[H.transformOrigin?.x,H.transformOrigin?.y].join(" "),...H.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:v.jsx(lG,{scope:n,placedSide:W,onArrowChange:P,arrowX:Y,arrowY:X,shouldHideArrow:J,children:v.jsx(it.div,{"data-side":W,"data-align":ae,...b,ref:C,style:{...b.style,animation:$?void 0:"none"}})})})});c6.displayName=bA;var u6="PopperArrow",uG={top:"bottom",right:"left",bottom:"top",left:"r
49ight"},f6=j.forwardRef(function(t,n){const{__scopePopper:r,...a}=t,o=cG(u6,r),l=uG[o.placedSide];return v.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[l]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:v.jsx(iG,{...a,ref:n,style:{...a.style,display:"block"}})})});f6.displayName=u6;function fG(e){return e!==null}var dG=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:a}=t,l=a.arrow?.centerOffset!==0,c=l?0:e.arrowWidth,f=l?0:e.arrowHeight,[d,m]=d6(n),h={start:"0%",center:"50%",end:"100%"}[m],g=(a.arrow?.x??0)+c/2,x=(a.arrow?.y??0)+f/2;let O="",b="";return d==="bottom"?(O=l?h:`${g}px`,b=`${-f}px`):d==="top"?(O=l?h:`${g}px`,b=`${r.floating.height+f}px`):d==="right"?(O=`${-f}px`,b=l?h:`${x}px`):d==="left"&&(O=`${r.floating.width+f}px`,b=l?h:`${x}px`),{data:{x:O,y:b}}}});function d6(e){const[t,n="center"]=e.split("-");return[t,n]}var hG=o6,h6=l6,p6=c6,m6=f6,pG="Portal",g6=j.forwardRef((e,t)=>{const{container:n,...r}=e,[a,o]=j.useState(!1);_n(()=>o(!0),[]);const l=n||a&&globalThis?.document?.body;return l?qI.createPortal(v.jsx(it.div,{...r,ref:t}),l):null});g6.displayName=pG;function mG(e,t){return j.useReducer((n,r)=>t[n][r]??n,e)}var xA=e=>{const{present:t,children:n}=e,r=gG(t),a=typeof n=="function"?n({present:r.isPresent}):j.Children.only(n),o=kt(r.ref,vG(a));return typeof n=="function"||r.isPresent?j.cloneElement(a,{ref:o}):null};xA.displayName="Presence";function gG(e){const[t,n]=j.useState(),r=j.useRef(null),a=j.useRef(e),o=j.useRef("none"),l=e?"mounted":"unmounted",[c,f]=mG(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return j.useEffect(()=>{const d=qh(r.current);o.current=c==="mounted"?d:"none"},[c]),_n(()=>{const d=r.current,m=a.current;if(m!==e){const g=o.current,x=qh(d);e?f("MOUNT"):x==="none"||d?.display==="none"?f("UNMOUNT"):f(m&&g!==x?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,f]),_n(()=>{if(t){let d;const m=t.ownerDocument.defaultView??window,h=x=>{const b=qh(r.current).includes(CSS.escape(x.animationName));if(x.target===t&&b&&(f("ANIMATION_END"),!a.current)){const S=t.style.animationFillMode;t.style.animationFillMode="forwards",d=m.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=S)})}},g=x=>{x.target===t&&(o.current=qh(r.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",h),t.addEventListener("animationend",h),()=>{m.clearTimeout(d),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",h),t.removeEventListener("animationend",h)}}else f("ANIMATION_END")},[t,f]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:j.useCallback(d=>{r.current=d?getComputedStyle(d):null,n(d)},[])}}function qh(e){return e?.animationName||"none"}function vG(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var yG=Bm[" useInsertionEffect ".trim().toString()]||_n;function Tp({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[a,o,l]=bG({defaultProp:t,onChange:n}),c=e!==void 0,f=c?e:a;{const m=j.useRef(e!==void 0);j.useEffect(()=>{const h=m.current;h!==c&&console.warn(`${r} is changing from ${h?"controlled":"uncontrolled"} to ${c?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),m.current=c},[c,r])}const d=j.useCallback(m=>{if(c){const h=xG(m)?m(e):m;h!==e&&l.current?.(h)}else o(m)},[c,e,o,l]);return[f,d]}function bG({defaultProp:e,onChange:t}){const[n,r]=j.useState(e),a=j.useRef(n),o=j.useRef(t);return yG(()=>{o.current=t},[t]),j.useEffect(()=>{a.current!==n&&(o.current?.(n),a.current=n)},[n,a]),[n,r,o]}function xG(e){return typeof e=="function"}var v6=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"}),wG="VisuallyHidden",y6=j.forwardRef((e,t)=>
vendor: 4,389 bytes, line 49
49v.jsx(it.span,{...e,ref:t,style:{...v6,...e.style}}));y6.displayName=wG;var SG=y6,[Wm]=lc("Tooltip",[Qm]),wA=Qm(),b6="TooltipProvider",OG=700,tE="tooltip.open",[AG,x6]=Wm(b6),w6=e=>{const{__scopeTooltip:t,delayDuration:n=OG,skipDelayDuration:r=300,disableHoverableContent:a=!1,children:o}=e,l=j.useRef(!0),c=j.useRef(!1),f=j.useRef(0);return j.useEffect(()=>{const d=f.current;return()=>window.clearTimeout(d)},[]),v.jsx(AG,{scope:t,isOpenDelayedRef:l,delayDuration:n,onOpen:j.useCallback(()=>{window.clearTimeout(f.current),l.current=!1},[]),onClose:j.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>l.current=!0,r)},[r]),isPointerInTransitRef:c,onPointerInTransitChange:j.useCallback(d=>{c.current=d},[]),disableHoverableContent:a,children:o})};w6.displayName=b6;var S6="Tooltip",[C0e,Zm]=Wm(S6),oS="TooltipTrigger",PG=j.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,a=Zm(oS,n),o=x6(oS,n),l=wA(n),c=j.useRef(null),f=kt(t,c,a.onTriggerChange),d=j.useRef(!1),m=j.useRef(!1),h=j.useCallback(()=>d.current=!1,[]);return j.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),v.jsx(h6,{asChild:!0,...l,children:v.jsx(it.button,{"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute,...r,ref:f,onPointerMove:Fe(e.onPointerMove,g=>{g.pointerType!=="touch"&&!m.current&&!o.isPointerInTransitRef.current&&(a.onTriggerEnter(),m.current=!0)}),onPointerLeave:Fe(e.onPointerLeave,()=>{a.onTriggerLeave(),m.current=!1}),onPointerDown:Fe(e.onPointerDown,()=>{a.open&&a.onClose(),d.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:Fe(e.onFocus,()=>{d.current||a.onOpen()}),onBlur:Fe(e.onBlur,a.onClose),onClick:Fe(e.onClick,a.onClose)})})});PG.displayName=oS;var _G="TooltipPortal",[T0e,CG]=Wm(_G,{forceMount:void 0}),Ll="TooltipContent",TG=j.forwardRef((e,t)=>{const n=CG(Ll,e.__scopeTooltip),{forceMount:r=n.forceMount,side:a="top",...o}=e,l=Zm(Ll,e.__scopeTooltip);return v.jsx(xA,{present:r||l.open,children:l.disableHoverableContent?v.jsx(O6,{side:a,...o,ref:t}):v.jsx(jG,{side:a,...o,ref:t})})}),jG=j.forwardRef((e,t)=>{const n=Zm(Ll,e.__scopeTooltip),r=x6(Ll,e.__scopeTooltip),a=j.useRef(null),o=kt(t,a),[l,c]=j.useState(null),{trigger:f,onClose:d}=n,m=a.current,{onPointerInTransitChange:h}=r,g=j.useCallback(()=>{c(null),h(!1)},[h]),x=j.useCallback((O,b)=>{const S=O.currentTarget,A={x:O.clientX,y:O.clientY},_=RG(A,S.getBoundingClientRect()),C=kG(A,_),M=IG(b.getBoundingClientRect()),P=$G([...C,...M]);c(P),h(!0)},[h]);return j.useEffect(()=>()=>g(),[g]),j.useEffect(()=>{if(f&&m){const O=S=>x(S,m),b=S=>x(S,f);return f.addEventListener("pointerleave",O),m.addEventListener("pointerleave",b),()=>{f.removeEventListener("pointerleave",O),m.removeEventListener("pointerleave",b)}}},[f,m,x,g]),j.useEffect(()=>{if(l){const O=b=>{const S=b.target,A={x:b.clientX,y:b.clientY},_=f?.contains(S)||m?.contains(S),C=!LG(A,l);_?g():C&&(g(),d())};return document.addEventListener("pointermove",O),()=>document.removeEventListener("pointermove",O)}},[f,m,l,d,g]),v.jsx(O6,{...e,ref:o})}),[EG,NG]=Wm(S6,{isInside:!1}),MG=MF("TooltipContent"),O6=j.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":a,onEscapeKeyDown:o,onPointerDownOutside:l,...c}=e,f=Zm(Ll,n),d=wA(n),{onClose:m}=f;return j.useEffect(()=>(document.addEventListener(tE,m),()=>document.removeEventListener(tE,m)),[m]),j.useEffect(()=>{if(f.trigger){const h=g=>{g.target?.contains(f.trigger)&&m()};return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[f.trigger,m]),v.jsx(fA,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:l,onFocusOutside:h=>h.preventDefault(),onDismiss:m,children:v.jsxs(p6,{"data-state":f.stateAttribute,...d,...c,ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[v.jsx(MG,{children:r}),v.jsx(EG,{scope:n,isInside:!0,children:v.jsx(SG,{id:f.contentId,role:"tooltip",children:a||r})})]})})});TG.displayName=Ll;var A6="TooltipArrow",DG=j.forwardRef((e,t)=>
vendor: 9,389 bytes, line 49
49{const{__scopeTooltip:n,...r}=e,a=wA(n);return NG(A6,n).isInside?null:v.jsx(m6,{...a,...r,ref:t})});DG.displayName=A6;function RG(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),a=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(n,r,a,o)){case o:return"left";case a:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function kG(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function IG(e){const{top:t,right:n,bottom:r,left:a}=e;return[{x:a,y:t},{x:n,y:t},{x:n,y:r},{x:a,y:r}]}function LG(e,t){const{x:n,y:r}=e;let a=!1;for(let o=0,l=t.length-1;o<t.length;l=o++){const c=t[o],f=t[l],d=c.x,m=c.y,h=f.x,g=f.y;m>r!=g>r&&n<(h-d)*(r-m)/(g-m)+d&&(a=!a)}return a}function $G(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),BG(t)}function BG(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const a=e[r];for(;t.length>=2;){const o=t[t.length-1],l=t[t.length-2];if((o.x-l.x)*(a.y-l.y)>=(o.y-l.y)*(a.x-l.x))t.pop();else break}t.push(a)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const a=e[r];for(;n.length>=2;){const o=n[n.length-1],l=n[n.length-2];if((o.x-l.x)*(a.y-l.y)>=(o.y-l.y)*(a.x-l.x))n.pop();else break}n.push(a)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var qG=w6;function P6(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=P6(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ge(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=P6(e))&&(r&&(r+=" "),r+=t);return r}const SA="-",zG=e=>{const t=HG(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{const c=l.split(SA);return c[0]===""&&c.length!==1&&c.shift(),_6(c,t)||UG(l)},getConflictingClassGroupIds:(l,c)=>{const f=n[l]||[];return c&&r[l]?[...f,...r[l]]:f}}},_6=(e,t)=>{if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),a=r?_6(e.slice(1),r):void 0;if(a)return a;if(t.validators.length===0)return;const o=e.join(SA);return t.validators.find(({validator:l})=>l(o))?.classGroupId},nE=/^\[(.+)\]$/,UG=e=>{if(nE.test(e)){const t=nE.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},HG=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const a in n)sS(n[a],r,a,t);return r},sS=(e,t,n,r)=>{e.forEach(a=>{if(typeof a=="string"){const o=a===""?t:rE(t,a);o.classGroupId=n;return}if(typeof a=="function"){if(VG(a)){sS(a(r),t,n,r);return}t.validators.push({validator:a,classGroupId:n});return}Object.entries(a).forEach(([o,l])=>{sS(l,rE(t,o),n,r)})})},rE=(e,t)=>{let n=e;return t.split(SA).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},VG=e=>e.isThemeGetter,FG=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const a=(o,l)=>{n.set(o,l),t++,t>e&&(t=0,r=n,n=new Map)};return{get(o){let l=n.get(o);if(l!==void 0)return l;if((l=r.get(o))!==void 0)return a(o,l),l},set(o,l){n.has(o)?n.set(o,l):a(o,l)}}},lS="!",cS=":",KG=cS.length,GG=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=a=>{const o=[];let l=0,c=0,f=0,d;for(let O=0;O<a.length;O++){let b=a[O];if(l===0&&c===0){if(b===cS){o.push(a.slice(f,O)),f=O+KG;continue}if(b==="/"){d=O;continue}}b==="["?l++:b==="]"?l--:b==="("?c++:b===")"&&c--}const m=o.length===0?a:a.substring(f),h=YG(m),g=h!==m,x=d&&d>f?d-f:void 0;return{modifiers:o,hasImportantModifier:g,baseClassName:h,maybePostfixModifierPosition:x}};if(t){const a=t+cS,o=r;r=l=>l.startsWith(a)?o(l.substring(a.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:l,maybePostfixModifierPosition:void 0}}if(n){const a=r;r=o=>n({className:o,parseClassName:a})}return r},YG=e=>e.endsWith(lS)?e.substring(0,e.length-1):e.startsWith(lS)?e.substring(1):e,XG=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const a=[];let o=[];return r.forEach(l=>{l[0]==="["||t[l]?(a.push(...o.sort(),l),o=[]):o.push(l)}),a.push(...o.sort()),a}},QG=e=>({cache:FG(e.cacheSize),parseClassName:GG(e),sortModifiers:XG(e),...zG(e)}),WG=/\s+/,ZG=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:a,sortModifiers:o}=t,l=[],c=e.trim().split(WG);let f="";for(let d=c.length-1;d>=0;d-=1){const m=c[d],{isExternal:h,modifiers:g,hasImportantModifier:x,baseClassName:O,maybePostfixModifierPosition:b}=n(m);if(h){f=m+(f.length>0?" "+f:f);continue}let S=!!b,A=r(S?O.substring(0,b):O);if(!A){if(!S){f=m+(f.length>0?" "+f:f);continue}if(A=r(O),!A){f=m+(f.length>0?" "+f:f);continue}S=!1}const _=o(g).join(":"),C=x?_+lS:_,M=C+A;if(l.includes(M))continue;l.push(M);const P=a(A,S);for(let E=0;E<P.length;++E){const T=P[E];l.push(C+T)}f=m+(f.length>0?" "+f:f)}return f};function JG(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=C6(t))&&(r&&(r+=" "),r+=n);return r}const C6=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=C6(e[r]))&&(n&&(n+=" "),n+=t);return n};function eY(e,...t){let n,r,a,o=l;function l(f){const d=t.reduce((m,h)=>h(m),e());return n=QG(d),r=n.cache.get,a=n.cache.set,o=c,c(f)}function c(f){const d=r(f);if(d)return d;const m=ZG(f,n);return a(f,m),m}return function(){return o(JG.apply(null,arguments))}}const Gt=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},T6=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,j6=/^\((?:(\w[\w-]*):)?(.+)\)$/i,tY=/^\d+\/\d+$/,nY=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,rY=/\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$/,aY=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,iY=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,oY=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ll=e=>tY.test(e),ke=e=>!!e&&!Number.isNaN(Number(e)),$i=e=>!!e&&Number.isInteger(Number(e)),d0=e=>e.endsWith("%")&&ke(e.slice(0,-1)),Ha=e=>nY.test(e),sY=()=>!0,lY=e=>rY.test(e)&&!aY.test(e),E6=()=>!1,cY=e=>iY.test(e),uY=e=>oY.test(e),fY=e=>!we(e)&&!Se(e),dY=e=>fc(e,D6,E6),we=e=>T6.test(e),Ro=e=>fc(e,R6,lY),h0=e=>fc(e,vY,ke),aE=e=>fc(e,N6,E6),hY=e=>fc(e,M6,uY),zh=e=>fc(e,k6,cY),Se=e=>j6.test(e),wu=e=>dc(e,R6),pY=e=>dc(e,yY),iE=e=>dc(e,N6),mY=e=>dc(e,D6),gY=e=>dc(e,M6),Uh=e=>dc(e,k6,!0),fc=(e,t,n)=>{const r=T6.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},dc=(e,t,n=!1)=>{const r=j6.exec(e);return r?r[1]?t(r[1]):n:!1},N6=e=>e==="position"||e==="percentage",M6=e=>e==="image"||e==="url",D6=e=>e==="length"||e==="size"||e==="bg-size",R6=e=>e==="length",vY=e=>e==="number",yY=e=>e==="family-name",k6=e=>e==="shadow",bY=()=>{const e=Gt("color"),t=Gt("font"),n=Gt("text"),r=Gt("font-weight"),a=Gt("tracking"),o=Gt("leading"),l=Gt("breakpoint"),c=Gt("container"),f=Gt("spacing"),d=Gt("radius"),m=Gt("shadow"),h=Gt("inset-shadow"),g=Gt("text-shadow"),x=Gt("drop-shadow"),O=Gt("blur"),b=Gt("perspective"),S=Gt("aspect"),A=Gt("ease"),_=Gt("animate"),C=()=>["auto","avoid","all","avoid-page","page","left","right","column"],M=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],P=()=>[...M(),Se,we],E=()=>["auto","hidden","clip","visible","scroll"],T=()=>["auto","contain","none"],D=()=>[Se,we,f],L=()=>[ll,"full","auto",...D()],U=()=>[$i,"none","subgrid",Se,we],I=()=>["auto",{span:["full",$i,Se,we]},$i,Se,we],z=()=>[$i,"auto",Se,we],F=()=>["auto","min","max","fr",Se,we],K=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],q=()=>["start","end","center","stretch","center-safe","end-safe"],R=()=>["auto",...D()],$=()=>[ll,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...D()],H=()=>[e,Se,we],W=()=>[...M(),iE,aE,{position:[Se,we]}],ae=()=>["no-repeat",{repeat:["","x","y","space","round"]}],B=()=>["auto","cover","contain",mY,dY,{size:[Se,we]}],Y=()=>[d0,wu,Ro],X=()=>["","none","full",d,Se,we],J=()=>["",ke,wu,Ro],ue=()=>["solid","dashed","dotted","double"],he=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],fe=()=>[ke,d0,iE,aE],me=()=>["","none",O,Se,we],le=()=>["none",ke,Se,we],pe=()=>["none",ke,Se,we],ve=()=>[ke,Se,we],ie=()=>[ll,"full",...D()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ha],breakpoint:[Ha],color:[sY],container:[Ha],"drop-shadow":[Ha],ease:["in","out","in-out"],font:[fY],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ha],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ha],shadow:[Ha],spacing:["px",ke],text:[Ha],"text-shadow":[Ha],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ll,we,Se,S]}
vendor: 12,846 bytes, line 49
49],container:["container"],columns:[{columns:[ke,we,Se,c]}],"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:P()}],overflow:[{overflow:E()}],"overflow-x":[{"overflow-x":E()}],"overflow-y":[{"overflow-y":E()}],overscroll:[{overscroll:T()}],"overscroll-x":[{"overscroll-x":T()}],"overscroll-y":[{"overscroll-y":T()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:L()}],"inset-x":[{"inset-x":L()}],"inset-y":[{"inset-y":L()}],start:[{start:L()}],end:[{end:L()}],top:[{top:L()}],right:[{right:L()}],bottom:[{bottom:L()}],left:[{left:L()}],visibility:["visible","invisible","collapse"],z:[{z:[$i,"auto",Se,we]}],basis:[{basis:[ll,"full","auto",c,...D()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ke,ll,"auto","initial","none",we]}],grow:[{grow:["",ke,Se,we]}],shrink:[{shrink:["",ke,Se,we]}],order:[{order:[$i,"first","last","none",Se,we]}],"grid-cols":[{"grid-cols":U()}],"col-start-end":[{col:I()}],"col-start":[{"col-start":z()}],"col-end":[{"col-end":z()}],"grid-rows":[{"grid-rows":U()}],"row-start-end":[{row:I()}],"row-start":[{"row-start":z()}],"row-end":[{"row-end":z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":F()}],"auto-rows":[{"auto-rows":F()}],gap:[{gap:D()}],"gap-x":[{"gap-x":D()}],"gap-y":[{"gap-y":D()}],"justify-content":[{justify:[...K(),"normal"]}],"justify-items":[{"justify-items":[...q(),"normal"]}],"justify-self":[{"justify-self":["auto",...q()]}],"align-content":[{content:["normal",...K()]}],"align-items":[{items:[...q(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...q(),{baseline:["","last"]}]}],"place-content":[{"place-content":K()}],"place-items":[{"place-items":[...q(),"baseline"]}],"place-self":[{"place-self":["auto",...q()]}],p:[{p:D()}],px:[{px:D()}],py:[{py:D()}],ps:[{ps:D()}],pe:[{pe:D()}],pt:[{pt:D()}],pr:[{pr:D()}],pb:[{pb:D()}],pl:[{pl:D()}],m:[{m:R()}],mx:[{mx:R()}],my:[{my:R()}],ms:[{ms:R()}],me:[{me:R()}],mt:[{mt:R()}],mr:[{mr:R()}],mb:[{mb:R()}],ml:[{ml:R()}],"space-x":[{"space-x":D()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":D()}],"space-y-reverse":["space-y-reverse"],size:[{size:$()}],w:[{w:[c,"screen",...$()]}],"min-w":[{"min-w":[c,"screen","none",...$()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[l]},...$()]}],h:[{h:["screen","lh",...$()]}],"min-h":[{"min-h":["screen","lh","none",...$()]}],"max-h":[{"max-h":["screen","lh",...$()]}],"font-size":[{text:["base",n,wu,Ro]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Se,h0]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",d0,we]}],"font-family":[{font:[pY,we,t]}],"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:[a,Se,we]}],"line-clamp":[{"line-clamp":[ke,"none",Se,h0]}],leading:[{leading:[o,...D()]}],"list-image":[{"list-image":["none",Se,we]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Se,we]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:H()}],"text-color":[{text:H()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ue(),"wavy"]}],"text-decoration-thickness":[{decoration:[ke,"from-font","auto",Se,Ro]}],"text-decoration-color":[{decoration:H()}],"underline-offset":[{"underline-offset":[ke,"auto",Se,we]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:D()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Se,we]}],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",Se,we]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:W()}],"bg-repeat":[{bg:ae()}],"bg-size":[{bg:B()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},$i,Se,we],radial:["",Se,we],conic:[$i,Se,we]},gY,hY]}],"bg-color":[{bg:H()}],"gradient-from-pos":[{from:Y()}],"gradient-via-pos":[{via:Y()}],"gradient-to-pos":[{to:Y()}],"gradient-from":[{from:H()}],"gradient-via":[{via:H()}],"gradient-to":[{to:H()}],rounded:[{rounded:X()}],"rounded-s":[{"rounded-s":X()}],"rounded-e":[{"rounded-e":X()}],"rounded-t":[{"rounded-t":X()}],"rounded-r":[{"rounded-r":X()}],"rounded-b":[{"rounded-b":X()}],"rounded-l":[{"rounded-l":X()}],"rounded-ss":[{"rounded-ss":X()}],"rounded-se":[{"rounded-se":X()}],"rounded-ee":[{"rounded-ee":X()}],"rounded-es":[{"rounded-es":X()}],"rounded-tl":[{"rounded-tl":X()}],"rounded-tr":[{"rounded-tr":X()}],"rounded-br":[{"rounded-br":X()}],"rounded-bl":[{"rounded-bl":X()}],"border-w":[{border:J()}],"border-w-x":[{"border-x":J()}],"border-w-y":[{"border-y":J()}],"border-w-s":[{"border-s":J()}],"border-w-e":[{"border-e":J()}],"border-w-t":[{"border-t":J()}],"border-w-r":[{"border-r":J()}],"border-w-b":[{"border-b":J()}],"border-w-l":[{"border-l":J()}],"divide-x":[{"divide-x":J()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":J()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ue(),"hidden","none"]}],"divide-style":[{divide:[...ue(),"hidden","none"]}],"border-color":[{border:H()}],"border-color-x":[{"border-x":H()}],"border-color-y":[{"border-y":H()}],"border-color-s":[{"border-s":H()}],"border-color-e":[{"border-e":H()}],"border-color-t":[{"border-t":H()}],"border-color-r":[{"border-r":H()}],"border-color-b":[{"border-b":H()}],"border-color-l":[{"border-l":H()}],"divide-color":[{divide:H()}],"outline-style":[{outline:[...ue(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ke,Se,we]}],"outline-w":[{outline:["",ke,wu,Ro]}],"outline-color":[{outline:H()}],shadow:[{shadow:["","none",m,Uh,zh]}],"shadow-color":[{shadow:H()}],"inset-shadow":[{"inset-shadow":["none",h,Uh,zh]}],"inset-shadow-color":[{"inset-shadow":H()}],"ring-w":[{ring:J()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:H()}],"ring-offset-w":[{"ring-offset":[ke,Ro]}],"ring-offset-color":[{"ring-offset":H()}],"inset-ring-w":[{"inset-ring":J()}],"inset-ring-color":[{"inset-ring":H()}],"text-shadow":[{"text-shadow":["none",g,Uh,zh]}],"text-shadow-color":[{"text-shadow":H()}],opacity:[{opacity:[ke,Se,we]}],"mix-blend":[{"mix-blend":[...he(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":he()}],"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":[ke]}],"mask-image-linear-from-pos":[{"mask-linear-from":fe()}],"mask-image-linear-to-pos":[{"mask-linear-to":fe()}],"mask-image-linear-from-color":[{"mask-linear-from":H()}],"mask-image-linear-to-color":[{"mask-linear-to":H()}],"mask-image-t-from-pos":[{"mask-t-from":fe()}],"mask-image-t-to-pos":[{"mask-t-to":fe()}],"mask-image-t-from-color":[{"mask-t-from":H()}],"mask-image-t-to-color":[{"mask-t-to":H()}],"mask-image-r-from-pos":[{"mask-r-from":fe()}],"mask-image-r-to-pos":[{"mask-r-to":fe()}],"mask-image-r-from-color":[{"mask-r-from":H()}],"mask-image-r-to-color":[{"mask-r-to":H()}],"mask-image-b-from-pos":[{"mask-b-from":fe()}],"mask-image-b-to-pos":[{"mask-b-to":fe()}],"mask-image-b-from-color":[{"mask-b-from":H()}],"mask-image-b-to-color":[{"mask-b-to":H()}],"mask-image-l-from-pos":[{"mask-l-from":fe()}],"mask-image-l-to-pos":[{"mask-l-to":fe()}],"mask-image-l-from-color":[{"mask-l-from":H()}],"mask-image-l-to-color":[{"mask-l-to":H()}],"mask-image-x-from-pos":[{"mask-x-from":fe()}],"mask-image-x-to-pos":[{"mask-x-to":fe()}],"mask-image-x-from-color":[{"mask-x-from":H()}],"mask-image-x-to-color":[{"mask-x-to":H()}],"mask-image-y-from-pos":[{"mask-y-from":fe()}],"mask-image-y-to-pos":[{"mask-y-to":fe()}],"mask-image-y-from-color":[{"mask-y-from":H()}],"mask-image-y-to-color":[{"mask-y-to":H()}],"mask-image-radial":[{"mask-radial":[Se,we]}],"mask-image-radial-from-pos":[{"mask-radial-from":fe()}],"mask-image-radial-to-pos":[{"mask-radial-to":fe()}],"mask-image-radial-from-color":[{"mask-radial-from":H()}],"mask-image-radial-to-color":[{"mask-radial-to":H()}],"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":M()}],"mask-image-conic-pos":[{"mask-conic":[ke]}],"mask-image-conic-from-pos":[{"mask-conic-from":fe()}],"mask-image-conic-to-pos":[{"mask-conic-to":fe()}],"mask-image-conic-from-color":[{"mask-conic-from":H()}],"mask-image-conic-to-color":[{"mask-conic-to":H()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:W()}],"mask-repeat":[{mask:ae()}],"mask-size":[{mask:B()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Se,we]}],filter:[{filter:["","none",Se,we]}],blur:[{blur:me()}],brightness:[{brightness:[ke,Se,we]}],contrast:[{contrast:[ke,Se,we]}],"drop-shadow":[{"drop-shadow":["","none",x,Uh,zh]}],"drop-shadow-color":[{"drop-shadow":H()}],grayscale:[{grayscale:["",ke,Se,we]}],"hue-rotate":[{"hue-rotate":[ke,Se,we]}],invert:[{invert:["",ke,Se,we]}],saturate:[{saturate:[ke,Se,we]}],sepia:[{sepia:["",ke,Se,we]}],"backdrop-filter":[{"backdrop-filter":["","none",Se,we]}],"backdrop-blur":[{"backdrop-blur":me()}],"backdrop-brightness":[{"backdrop-brightness":[ke,Se,we]}],"backdrop-contrast":[{"backdrop-contrast":[ke,Se,we]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ke,Se,we]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ke,Se,we]}],"backdrop-invert":[{"backdrop-invert":["",ke,Se,we]}],"backdrop-opacity":[{"backdrop-opacity":[ke,Se,we]}],"backdrop-saturate":[{"backdrop-saturate":[ke,Se,we]}],"backdrop-sepia":[{"backdrop-sepia":["",ke,Se,we]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":D()}],"border-spacing-x":[{"border-spacing-x":D()}],"border-spacing-y":[{"border-spacing-y":D()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Se,we]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ke,"initial",Se,we]}],ease:[{ease:["linear","initial",A,Se,we]}],delay:[{delay:[ke,Se,we]}],animate:[{animate:["none",_,Se,we]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[b,Se,we]}],"perspective-origin":[{"perspective-origin":P()}],rotate:[{rotate:le()}],"rotate-x":[{"rotate-x":le()}],"rotate-y":[{"rotate-y":le()}],"rotate-z":[{"rotate-z":le()}],scale:[{scale:pe()}],"scale-x":[{"scale-x":pe()}],"scale-y":[{"scale-y":pe()}],"scale-z":[{"scale-z":pe()}],"scale-3d":["scale-3d"],skew:[{skew:ve()}],"skew-x":[{"skew-x":ve()}],"skew-y":[{"skew-y":ve()}],transform:[{transform:[Se,we,"","none","gpu","cpu"]}],"transform-origin":[{origin:P()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ie()}],"translate-x":[{"translate-x":ie()}],"translate-y":[{"translate-y":ie()}],"translate-z":[{"translate-z":ie()}],"translate-none":["translate-none"],accent:[{accent:H()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:H()}
vendor: 6,750 bytes, line 49
49],"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",Se,we]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":D()}],"scroll-mx":[{"scroll-mx":D()}],"scroll-my":[{"scroll-my":D()}],"scroll-ms":[{"scroll-ms":D()}],"scroll-me":[{"scroll-me":D()}],"scroll-mt":[{"scroll-mt":D()}],"scroll-mr":[{"scroll-mr":D()}],"scroll-mb":[{"scroll-mb":D()}],"scroll-ml":[{"scroll-ml":D()}],"scroll-p":[{"scroll-p":D()}],"scroll-px":[{"scroll-px":D()}],"scroll-py":[{"scroll-py":D()}],"scroll-ps":[{"scroll-ps":D()}],"scroll-pe":[{"scroll-pe":D()}],"scroll-pt":[{"scroll-pt":D()}],"scroll-pr":[{"scroll-pr":D()}],"scroll-pb":[{"scroll-pb":D()}],"scroll-pl":[{"scroll-pl":D()}],"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",Se,we]}],fill:[{fill:["none",...H()]}],"stroke-w":[{stroke:[ke,wu,Ro,h0]}],stroke:[{stroke:["none",...H()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","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","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","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-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-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-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-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},xY=eY(bY);function It(...e){return xY(Ge(e))}function wY({delayDuration:e=0,...t}){return v.jsx(qG,{"data-loc":"client/src/components/ui/tooltip.tsx:11","data-slot":"tooltip-provider",delayDuration:e,...t})}const oE=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,sE=Ge,I6=(e,t)=>n=>{var r;if(t?.variants==null)return sE(e,n?.class,n?.className);const{variants:a,defaultVariants:o}=t,l=Object.keys(a).map(d=>{const m=n?.[d],h=o?.[d];if(m===null)return null;const g=oE(m)||oE(h);return a[d][g]}),c=n&&Object.entries(n).reduce((d,m)=>{let[h,g]=m;return g===void 0||(d[h]=g),d},{}),f=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((d,m)=>{let{class:h,className:g,...x}=m;return Object.entries(x).every(O=>{let[b,S]=O;return Array.isArray(S)?S.includes({...o,...c}[b]):{...o,...c}[b]===S})?[...d,h,g]:d},[]);return sE(e,l,f,n?.class,n?.className)},SY=I6("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-transparent shadow-xs hover:bg-accent dark:bg-transparent dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function je({className:e,variant:t,size:n,asChild:r=!1,...a}){const o=r?UI:"button";return v.jsx(o,{"data-loc":"client/src/components/ui/button.tsx:52","data-slot":"button",className:It(SY({variant:t,size:n,className:e})),...a}
vendor: 6,823 bytes, lines 49-138
49)}function xn({className:e,...t}){return v.jsx("div",{"data-loc":"client/src/components/ui/card.tsx:7","data-slot":"card",className:It("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e),...t})}function of({className:e,...t}){return v.jsx("div",{"data-loc":"client/src/components/ui/card.tsx:20","data-slot":"card-header",className:It("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...t})}function sf({className:e,...t}){return v.jsx("div",{"data-loc":"client/src/components/ui/card.tsx:33","data-slot":"card-title",className:It("leading-none font-semibold",e),...t})}function wn({className:e,...t}){return v.jsx("div",{"data-loc":"client/src/components/ui/card.tsx:66","data-slot":"card-content",className:It("px-6",e),...t})}/** 50 * @license lucide-react v0.453.0 - ISC 51 * 52 * This source code is licensed under the ISC license. 53 * See the LICENSE file in the root directory of this source tree. 54 */const OY=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),L6=(...e)=>e.filter((t,n,r)=>!!t&&r.indexOf(t)===n).join(" ");/** 55 * @license lucide-react v0.453.0 - ISC 56 * 57 * This source code is licensed under the ISC license. 58 * See the LICENSE file in the root directory of this source tree. 59 */var AY={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"};/** 60 * @license lucide-react v0.453.0 - ISC 61 * 62 * This source code is licensed under the ISC license. 63 * See the LICENSE file in the root directory of this source tree. 64 */const PY=j.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:a="",children:o,iconNode:l,...c},f)=>j.createElement("svg",{ref:f,...AY,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:L6("lucide",a),...c},[...l.map(([d,m])=>j.createElement(d,m)),...Array.isArray(o)?o:[o]]));/** 65 * @license lucide-react v0.453.0 - ISC 66 * 67 * This source code is licensed under the ISC license. 68 * See the LICENSE file in the root directory of this source tree. 69 */const ze=(e,t)=>{const n=j.forwardRef(({className:r,...a},o)=>j.createElement(PY,{ref:o,iconNode:t,className:L6(`lucide-${OY(e)}`,r),...a}));return n.displayName=`${e}`,n};/** 70 * @license lucide-react v0.453.0 - ISC 71 * 72 * This source code is licensed under the ISC license. 73 * See the LICENSE file in the root directory of this source tree. 74 */const _Y=ze("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/** 75 * @license lucide-react v0.453.0 - ISC 76 * 77 * This source code is licensed under the ISC license. 78 * See the LICENSE file in the root directory of this source tree. 79 */const nd=ze("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/** 80 * @license lucide-react v0.453.0 - ISC 81 * 82 * This source code is licensed under the ISC license. 83 * See the LICENSE file in the root directory of this source tree. 84 */const lE=ze("BookMarked",[["path",{d:"M10 2v8l3-3 3 3V2",key:"sqw3rj"}],["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}]]);/** 85 * @license lucide-react v0.453.0 - ISC 86 * 87 * This source code is licensed under the ISC license. 88 * See the LICENSE file in the root directory of this source tree. 89 */const CY=ze("BookOpen",[["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"}]]);/** 90 * @license lucide-react v0.453.0 - ISC 91 * 92 * This source code is licensed under the ISC license. 93 * See the LICENSE file in the root directory of this source tree. 94 */const jp=ze("Calculator",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",key:"1nb95v"}],["line",{x1:"8",x2:"16",y1:"6",y2:"6",key:"x4nwl0"}],["line",{x1:"16",x2:"16",y1:"14",y2:"18",key:"wjye3r"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M8 18h.01",key:"lrp35t"}]]);/** 95 * @license lucide-react v0.453.0 - ISC 96 * 97 * This source code is licensed under the ISC license. 98 * See the LICENSE file in the root directory of this source tree. 99 */const TY=ze("ChartColumn",[["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"}]]);/** 100 * @license lucide-react v0.453.0 - ISC 101 * 102 * This source code is licensed under the ISC license. 103 * See the LICENSE file in the root directory of this source tree. 104 */const jY=ze("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** 105 * @license lucide-react v0.453.0 - ISC 106 * 107 * This source code is licensed under the ISC license. 108 * See the LICENSE file in the root directory of this source tree. 109 */const $6=ze("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** 110 * @license lucide-react v0.453.0 - ISC 111 * 112 * This source code is licensed under the ISC license. 113 * See the LICENSE file in the root directory of this source tree. 114 */const EY=ze("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/** 115 * @license lucide-react v0.453.0 - ISC 116 * 117 * This source code is licensed under the ISC license. 118 * See the LICENSE file in the root directory of this source tree. 119 */const Su=ze("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/** 120 * @license lucide-react v0.453.0 - ISC 121 * 122 * This source code is licensed under the ISC license. 123 * See the LICENSE file in the root directory of this source tree. 124 */const NY=ze("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/** 125 * @license lucide-react v0.453.0 - ISC 126 * 127 * This source code is licensed under the ISC license. 128 * See the LICENSE file in the root directory of this source tree. 129 */const B6=ze("CircleAlert",[["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"}]]);/** 130 * @license lucide-react v0.453.0 - ISC 131 * 132 * This source code is licensed under the ISC license. 133 * See the LICENSE file in the root directory of this source tree. 134 */const q6=ze("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/** 135 * @license lucide-react v0.453.0 - ISC 136 * 137 * This source code is licensed under the ISC license. 138 * See the LICENSE file in the root directory of this source tree.
139 */const MY=ze("CreditCard",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]]);/** 140 * @license lucide-react v0.453.0 - ISC 141 * 142 * This source code is licensed under the ISC license. 143 * See the LICENSE file in the root directory of this source tree. 144 */const DY=ze("DollarSign",[["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"}]]);/** 145 * @license lucide-react v0.453.0 - ISC 146 * 147 * This source code is licensed under the ISC license. 148 * See the LICENSE file in the root directory of this source tree. 149 */const RY=ze("ExternalLink",[["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"}]]);/** 150 * @license lucide-react v0.453.0 - ISC 151 * 152 * This source code is licensed under the ISC license. 153 * See the LICENSE file in the root directory of this source tree. 154 */const kY=ze("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]);/** 155 * @license lucide-react v0.453.0 - ISC 156 * 157 * This source code is licensed under the ISC license. 158 * See the LICENSE file in the root directory of this source tree. 159 */const IY=ze("House",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-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"}]]);/** 160 * @license lucide-react v0.453.0 - ISC 161 * 162 * This source code is licensed under the ISC license. 163 * See the LICENSE file in the root directory of this source tree. 164 */const LY=ze("Menu",[["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"}]]);/** 165 * @license lucide-react v0.453.0 - ISC 166 * 167 * This source code is licensed under the ISC license. 168 * See the LICENSE file in the root directory of this source tree. 169 */const $Y=ze("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);/** 170 * @license lucide-react v0.453.0 - ISC 171 * 172 * This source code is licensed under the ISC license. 173 * See the LICENSE file in the root directory of this source tree. 174 */const Nr=ze("Package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["path",{d:"m3.3 7 7.703 4.734a2 2 0 0 0 1.994 0L20.7 7",key:"yx3hmr"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]);/** 175 * @license lucide-react v0.453.0 - ISC 176 * 177 * This source code is licensed under the ISC license. 178 * See the LICENSE file in the root directory of this source tree. 179 */const as=ze("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/** 180 * @license lucide-react v0.453.0 - ISC 181 * 182 * This source code is licensed under the ISC license. 183 * See the LICENSE file in the root directory of this source tree. 184 */const BY=ze("RefreshCw",[["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"}]]);/** 185 * @license lucide-react v0.453.0 - ISC 186 * 187 * This source code is licensed under the ISC license. 188 * See the LICENSE file in the root directory of this source tree. 189 */const qY=ze("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);/** 190 * @license lucide-react v0.453.0 - ISC 191 * 192 * This source code is licensed under the ISC license. 193 * See the LICENSE file in the root directory of this source tree. 194 */const OA=ze("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/** 195 * @license lucide-react v0.453.0 - ISC 196 * 197 * This source code is licensed under the ISC license. 198 * See the LICENSE file in the root directory of this source tree. 199 */const z6=ze("Shield",[["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",ke
vendor: 8,743 bytes, lines 199-262
199y:"oel41y"}]]);/** 200 * @license lucide-react v0.453.0 - ISC 201 * 202 * This source code is licensed under the ISC license. 203 * See the LICENSE file in the root directory of this source tree. 204 */const Ep=ze("ShoppingBag",[["path",{d:"M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z",key:"hou9p0"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M16 10a4 4 0 0 1-8 0",key:"1ltviw"}]]);/** 205 * @license lucide-react v0.453.0 - ISC 206 * 207 * This source code is licensed under the ISC license. 208 * See the LICENSE file in the root directory of this source tree. 209 */const AA=ze("ShoppingCart",[["circle",{cx:"8",cy:"21",r:"1",key:"jimo8o"}],["circle",{cx:"19",cy:"21",r:"1",key:"13723u"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",key:"9zh506"}]]);/** 210 * @license lucide-react v0.453.0 - ISC 211 * 212 * This source code is licensed under the ISC license. 213 * See the LICENSE file in the root directory of this source tree. 214 */const zY=ze("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/** 215 * @license lucide-react v0.453.0 - ISC 216 * 217 * This source code is licensed under the ISC license. 218 * See the LICENSE file in the root directory of this source tree. 219 */const Np=ze("Star",[["polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2",key:"8f66p6"}]]);/** 220 * @license lucide-react v0.453.0 - ISC 221 * 222 * This source code is licensed under the ISC license. 223 * See the LICENSE file in the root directory of this source tree. 224 */const Mp=ze("Trash2",[["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"}]]);/** 225 * @license lucide-react v0.453.0 - ISC 226 * 227 * This source code is licensed under the ISC license. 228 * See the LICENSE file in the root directory of this source tree. 229 */const PA=ze("TrendingDown",[["polyline",{points:"22 17 13.5 8.5 8.5 13.5 2 7",key:"1r2t7k"}],["polyline",{points:"16 17 22 17 22 11",key:"11uiuu"}]]);/** 230 * @license lucide-react v0.453.0 - ISC 231 * 232 * This source code is licensed under the ISC license. 233 * See the LICENSE file in the root directory of this source tree. 234 */const Cl=ze("TrendingUp",[["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"}]]);/** 235 * @license lucide-react v0.453.0 - ISC 236 * 237 * This source code is licensed under the ISC license. 238 * See the LICENSE file in the root directory of this source tree. 239 */const UY=ze("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/** 240 * @license lucide-react v0.453.0 - ISC 241 * 242 * This source code is licensed under the ISC license. 243 * See the LICENSE file in the root directory of this source tree. 244 */const HY=ze("Trophy",[["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"}]]);/** 245 * @license lucide-react v0.453.0 - ISC 246 * 247 * This source code is licensed under the ISC license. 248 * See the LICENSE file in the root directory of this source tree. 249 */const VY=ze("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/** 250 * @license lucide-react v0.453.0 - ISC 251 * 252 * This source code is licensed under the ISC license. 253 * See the LICENSE file in the root directory of this source tree. 254 */const U6=ze("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]);function FY(e,t){if(e instanceof RegExp)return{keys:!1,pattern:e};var n,r,a,o,l=[],c="",f=e.split("/");for(f[0]||f.shift();a=f.shift();)n=a[0],n==="*"?(l.push(n),c+=a[1]==="?"?"(?:/(.*))?":"/(.*)"):n===":"?(r=a.indexOf("?",1),o=a.indexOf(".",1),l.push(a.substring(1,~r?r:~o?o:a.length)),c+=~r&&!~o?"(?:/([^/]+?))?":"/([^/]+?)",~o&&(c+=(~r?"?":"")+"\\"+a.substring(o))):c+="/"+a;return{keys:l,pattern:new RegExp("^"+c+(t?"(?=$|/)":"/?$"),"i")}}var p0={exports:{}},m0={};/** 255 * @license React 256 * use-sync-external-store-shim.production.js 257 * 258 * Copyright (c) Meta Platforms, Inc. and affiliates. 259 * 260 * This source code is licensed under the MIT license found in the 261 * LICENSE file in the root directory of this source tree. 262 */var cE;function KY(){if(cE)return m0;cE=1;var e=$m();function t(h,g){return h===g&&(h!==0||1/h===1/g)||h!==h&&g!==g}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,a=e.useEffect,o=e.useLayoutEffect,l=e.useDebugValue;function c(h,g){var x=g(),O=r({inst:{value:x,getSnapshot:g}}),b=O[0].inst,S=O[1];return o(function(){b.value=x,b.getSnapshot=g,f(b)&&S({inst:b})},[h,x,g]),a(function(){return f(b)&&S({inst:b}),h(function(){f(b)&&S({inst:b})})},[h]),l(x),x}function f(h){var g=h.getSnapshot;h=h.value;try{var x=g();return!n(h,x)}catch{return!0}}function d(h,g){return g()}var m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:c;return m0.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:m,m0}var uE;function GY(){return uE||(uE=1,p0.exports=KY()),p0.exports}var YY=GY();const XY=Bm.useInsertionEffect,QY=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",WY=QY?j.useLayoutEffect:j.useEffect,ZY=XY||WY,H6=e=>{const t=j.useRef([e,(...n)=>t[0](...n)]).current;return ZY(()=>{t[0]=e}),t[1]},JY="popstate",_A="pushState",CA="replaceState",eX="hashchange",fE=[JY,_A,CA,eX],tX=e=>{for(const t of fE)addEventListener(t,e);return()=>{for(const t of fE)removeEventListener(t,e)}},V6=(e,t)=>YY.useSyncExternalStore(tX,e,t),nX=()=>location.search,rX=({ssrSearch:e=""}={})=>V6(nX,()=>e),dE=()=>location.pathname,aX=({ssrPath:e}={})=>V6(dE,e?()=>e:dE),iX=(e,{replace:t=!1,state:n=null}={})=>history[t?CA:_A](n,"",e),oX=(e={})=>[aX(e),iX],hE=Symbol.for("wouter_v3");if(typeof history<"u"&&typeof window[hE]>"u"){for(const e of[_A,CA]){const t=history[e];history[e]=function(){const n=t.apply(this,arguments),r=new Event(e);return r.arguments=arguments,dispatchEvent(r),n}}Object.defineProperty(window,hE,{value:!0})}const sX=(e,t)=>t.toLowerCase().indexOf(e.toLowerCase())?"~"+t:t.slice(e.length)||"/",F6=(e="")=>e==="/"?"":e,lX=(e,t)=>e[0]==="~"?e.slice(1):F6(t)+e,cX=(e="",t)=>sX(pE(F6(e)),pE(t)),pE=e=>{try{return decodeURI(e)}catch{return e}},K6={hook:oX,searchHook:rX,parser:FY,base:"",ssrPath:void 0,ssrSearch:void 0,ssrContext:void 0,hrefs:e=>e},G6=j.createContext(K6),hc=()=>j.useContext(G6),Y6={},X6=j.createContext(Y6),uX=()=>j.useContext(X6),Jm=e=>{const[t,n]=e.hook(e);return[cX(e.base,t),H6((r,a)=>n(lX(r,e.base),a))]},eg=()=>Jm(hc()),TA=(e,t,n,r)=>{const{pattern:a,keys:o}=t instanceof RegExp?{keys:!1,pattern:t}:e(t||"*",r),l=a.exec(n)||[],[c,...f]=l;return c!==void 0?[!0,(()=>{const d=o!==!1?Object.fromEntries(o.map((h,g)=>[h,f[g]])):l.groups;let m={...f};return d&&Object.assign(m,d),m})(),...r?[c]:[]]:[!1,null]},jA=e=>TA(hc().parser,e,eg()[0]),fX=({children:e,...t})=>{const n=hc(),r=t.hook?K6:n;let a=r;const[o,l]=t.ssrPath?.split("?")??[];l&&(t.ssrSearch=l,t.ssrPath=o),t.hrefs=t.hrefs??t.hook?.hrefs;let c=j.useRef({}),f=c.current,d=f;for(let m in r){const h=m==="base"?r[m]+(t[m]||""):t[m]||r[m];f===d&&h!==d[m]&&(c.current=d={...d}),d[m]=h,(h!==r[m]||h!==a[m])&&(a=d)}return j.createElement(G6.Provider,{value:a,children:e})},mE=({children:e,component:t},n)=>t?j.createElement(t,{params:n}):typeof e=="function"?e(n):e,dX=e=>{let t=j.useRef(Y6);const n=t.current;return t.current=Object.keys(e).length!==Object.keys(n).length||Object.entries(e).some(([r,a])=>a!==n[r])?e:n},gn=({path:e,nest:t,match:n,...r})=>{const a=hc(),[o]=Jm(a),[l,c,f]=n??TA(a.parser,e,o,t),d=dX({...uX(),...c});if(!l)return null;const m=f?j.createElement(fX,{base:f},mE(r,d)):mE(r,d);return j.createElement(X6.Provider,{value:d,children:m})},Le=j.forwardRef((e,t)=>
262{const n=hc(),[r,a]=Jm(n),{to:o="",href:l=o,onClick:c,asChild:f,children:d,className:m,replace:h,state:g,...x}=e,O=H6(S=>{S.ctrlKey||S.metaKey||S.altKey||S.shiftKey||S.button!==0||(c?.(S),S.defaultPrevented||(S.preventDefault(),a(l,e)))}),b=n.hrefs(l[0]==="~"?l.slice(1):n.base+l,n);return f&&j.isValidElement(d)?j.cloneElement(d,{onClick:O,href:b}):j.createElement("a",{...x,onClick:O,href:b,className:m?.call?m(r===l):m,children:d,ref:t})}),uS=e=>Array.isArray(e)?e.flatMap(t=>uS(t&&t.type===j.Fragment?t.props.children:t)):[e],hX=({children:e,location:t})=>{const n=hc(),[r]=Jm(n);typeof window<"u"&&(window.__WOUTER_ROUTES__||(window.__WOUTER_ROUTES__=[]),uS(e).forEach(o=>{if(j.isValidElement(o)&&o.props.path){const l=o.props.path;window.__WOUTER_ROUTES__.includes(l)||window.__WOUTER_ROUTES__.push(l)}}));for(const a of uS(e)){let o=0;if(j.isValidElement(a)&&(o=TA(n.parser,a.props.path,t||r,a.props.nest))[0])return j.cloneElement(a,{match:o})}return null};function gE(){const[,e]=eg(),t=()=>{e("/")};return v.jsx("div",{"data-loc":"client/src/pages/NotFound.tsx:14",className:"min-h-screen w-full flex items-center justify-center bg-gradient-to-br from-slate-50 to-slate-100",children:v.jsx(xn,{"data-loc":"client/src/pages/NotFound.tsx:15",className:"w-full max-w-lg mx-4 shadow-lg border-0 bg-white/80 backdrop-blur-sm",children:v.jsxs(wn,{"data-loc":"client/src/pages/NotFound.tsx:16",className:"pt-8 pb-8 text-center",children:[v.jsx("div",{"data-loc":"client/src/pages/NotFound.tsx:17",className:"flex justify-center mb-6",children:v.jsxs("div",{"data-loc":"client/src/pages/NotFound.tsx:18",className:"relative",children:[v.jsx("div",{"data-loc":"client/src/pages/NotFound.tsx:19",className:"absolute inset-0 bg-red-100 rounded-full animate-pulse"}),v.jsx(B6,{"data-loc":"client/src/pages/NotFound.tsx:20",className:"relative h-16 w-16 text-red-500"})]})}),v.jsx("h1",{"data-loc":"client/src/pages/NotFound.tsx:24",className:"text-4xl font-bold text-slate-900 mb-2",children:"404"}),v.jsx("h2",{"data-loc":"client/src/pages/NotFound.tsx:26",className:"text-xl font-semibold text-slate-700 mb-4",children:"Page Not Found"}),v.jsxs("p",{"data-loc":"client/src/pages/NotFound.tsx:30",className:"text-slate-600 mb-8 leading-relaxed",children:["Sorry, the page you are looking for doesn't exist.",v.jsx("br",{"data-loc":"client/src/pages/NotFound.tsx:32"}),"It may have been moved or deleted."]}),v.jsx("div",{"data-loc":"client/src/pages/NotFound.tsx:36",id:"not-found-button-group",className:"flex flex-col sm:flex-row gap-3 justify-center",children:v.jsxs(je,{"data-loc":"client/src/pages/NotFound.tsx:40",onClick:t,className:"bg-blue-600 hover:bg-blue-700 text-white px-6 py-2.5 rounded-lg transition-all duration-200 shadow-md hover:shadow-lg",children:[v.jsx(IY,{"data-loc":"client/src/pages/NotFound.tsx:44",className:"w-4 h-4 mr-2"}),"Go Home"]})})]})})})}class pX extends j.Component{constructor(t){super(t),this.state={hasError:!1,error:null}}static getDerivedStateFromError(t){return{hasError:!0,error:t}}render(){return this.state.hasError?v.jsx("div",{"data-loc":"client/src/components/ErrorBoundary.tsx:27",className:"flex items-center justify-center min-h-screen p-8 bg-background",children:v.jsxs("div",{"data-loc":"client/src/components/ErrorBoundary.tsx:28",className:"flex flex-col items-center w-full max-w-2xl p-8",children:[v.jsx(UY,{"data-loc":"client/src/components/ErrorBoundary.tsx:29",size:48,className:"text-destructive mb-6 flex-shrink-0"}),v.jsx("h2",{"data-loc":"client/src/components/ErrorBoundary.tsx:34",className:"text-xl mb-4",children:"An unexpected error occurred."}),v.jsx("div",{"data-loc":"client/src/components/ErrorBoundary.tsx:36",className:"p-4 w-full rounded bg-muted overflow-auto mb-6",children:v.jsx("pre",{"data-loc":"client/src/components/ErrorBoundary.tsx:37",className:"text-sm text-muted-foreground whitespace-break-spaces",children:this.state.error?.stack})}),v.jsxs("button",{"data-loc":"client/src/components/ErrorBoundary.tsx:42",onClick:()=>window.location.reload(),className:It("flex items-center gap-2 px-4 py-2 rounded-lg","bg-primary text-primary-foreground","hover:opacity-90 cursor-pointer"),children:[v.jsx(qY,{"data-loc":"client/src/components/ErrorBoundary.tsx:50",size:16}),"Reload Page"]})]})}):this.props.children}}const mX=j.createContext(void 0);function gX({children:e,defaultTheme:t="light",switchable:n=!1}){const[r,a]=j.useState(()=>n&&localStorage.getItem("theme")||t);j.useEffect(()=>{const l=document.documentElement;
262r==="dark"?l.classList.add("dark"):l.classList.remove("dark"),n&&localStorage.setItem("theme",r)},[r,n]);const o=n?()=>{a(l=>l==="light"?"dark":"light")}:void 0;return v.jsx(mX.Provider,{"data-loc":"client/src/contexts/ThemeContext.tsx:52",value:{theme:r,toggleTheme:o,switchable:n},children:e})}const Q6=j.createContext(null);function vX({children:e}){const[t,n]=j.useState([]),r=j.useCallback(d=>{n(m=>m.some(g=>g.productId===d.productId&&g.slotNumber===d.slotNumber)?m:[...m,d])},[]),a=j.useCallback((d,m)=>{n(h=>h.filter(g=>!(g.productId===d&&g.slotNumber===m)))},[]),o=j.useCallback(()=>n([]),[]),l=j.useCallback((d,m)=>t.some(h=>h.productId===d&&h.slotNumber===m),[t]),c=t.length,f=t.reduce((d,m)=>d+m.priceHkd,0);return v.jsx(Q6.Provider,{"data-loc":"client/src/contexts/CartContext.tsx:48",value:{items:t,addItem:r,removeItem:a,clearCart:o,totalCount:c,totalPrice:f,isInCart:l},children:e})}function EA(){const e=j.useContext(Q6);if(!e)throw new Error("useCart must be used within CartProvider");return e}const yX=I6("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function ur({className:e,variant:t,asChild:n=!1,...r}){const a=n?UI:"span";return v.jsx(a,{"data-loc":"client/src/components/ui/badge.tsx:38","data-slot":"badge",className:It(yX({variant:t}),e),...r})}const ei=()=>{const e="https://manus.im",t="a6azgNpgDLpyAjiHYXoZ32",n=`${window.location.origin}/api/oauth/callback`,r=crypto.randomUUID();document.cookie=`${fV}=${r}; Path=/; Max-Age=600; SameSite=None; Secure`;const a=dV({redirectUri:n,nonce:r}),o=new URL(`${e}/app-auth`);o.searchParams.set("appId",t),o.searchParams.set("redirectUri",n),o.searchParams.set("state",a),o.searchParams.set("type","signIn"),window.location.href=o.toString()};function li(e){const{redirectOnUnauthenticated:t=!1,redirectPath:n}={},r=dt.useUtils(),a=dt.auth.me.useQuery(void 0,{retry:!1,refetchOnWindowFocus:!1}),o=dt.auth.logout.useMutation({onSuccess:()=>{r.auth.me.setData(void 0,null)}}),l=j.useCallback(async()=>{try{await o.mutateAsync()}catch(f){if(f instanceof Rl&&f.data?.code==="UNAUTHORIZED")return;throw f}finally{try{sessionStorage.removeItem("manus-cookie")}catch{}r.auth.me.setData(void 0,null),await r.auth.me.invalidate()}},[o,r]),c=j.useMemo(()=>(localStorage.setItem("manus-runtime-user-info",JSON.stringify(a.data)),{user:a.data??null,loading:a.isLoading||o.isPending,error:a.error??o.error??null,isAuthenticated:!!a.data}),[a.data,a.error,a.isLoading,o.error,o.isPending]);return j.useEffect(()=>{t&&(a.isLoading||o.isPending||c.user||typeof window>"u"||n&&window.location.pathname===n||(n?window.location.href=n:ei()))},[t,n,o.isPending,a.isLoading,c.user]),{...c,refresh:()=>a.refetch(),logout:l}}const vE=[{href:"/market",label:"PSA è¡æ
",icon:Cl},{href:"/oripa",label:"ç¦è¢å¡æ± ",icon:Nr},{href:"/calculator",label:"è¨ç®æ©",icon:jp},{href:"/collection",label:"æçæ¶è",icon:Np}];function bX(){const[e]=eg(),{user:t,isAuthenticated:n}=li(),{totalCount:r}=EA(),a=dt.auth.logout.useMutation(),[o,l]=j.useState(!1),c=async()=>{await a.mutateAsync(),window.location.reload()};return v.jsx("header",{"data-loc":"client/src/components/Navbar.tsx:31",className:"sticky top-0 z-50 border-b border-border/50 backdrop-blur-xl bg-background/80",children:v.jsxs("div",{"data-loc":"client/src/components/Navbar.tsx:32",className:"container",children:[v.jsxs("div",{"data-loc":"client/src/components/Navbar.tsx:33",className:"flex items-center justify-between h-16",children:[v.jsxs(Le,{"data-loc":"client/src/components/Navbar.tsx:35",href:"/",className:"flex items-center gap-2 group",children:[v.jsx("div",{"data-loc":"client/src/components/Navbar.tsx:36",className:"w-8 h-8 rounded-full bg-primary/20 border border-primary/40 flex items-center justify-center group-hover:bg-primary/30 transition-colors",children:v.jsx("span",{"data-loc":"client/src/components/Navbar.tsx:37",className:"text-primary text-sm font-bold",children:"P"})}),v.jsx("span",{"data-loc":"client/src/components/Navbar.tsx:39",className:"font-display text-lg font-bold text-gold-gradient hidden sm:block",children:"Cha
262oIQ"})]}),v.jsxs("nav",{"data-loc":"client/src/components/Navbar.tsx:45",className:"hidden md:flex items-center gap-1",children:[vE.map(({href:f,label:d,icon:m})=>v.jsx(Le,{"data-loc":"client/src/components/Navbar.tsx:47",href:f,children:v.jsxs(je,{"data-loc":"client/src/components/Navbar.tsx:48",variant:"ghost",size:"sm",className:`gap-2 ${e===f?"text-primary bg-primary/10":"text-muted-foreground hover:text-foreground"}`,children:[v.jsx(m,{"data-loc":"client/src/components/Navbar.tsx:53",className:"w-4 h-4"}),d]})},f)),t?.role==="admin"&&v.jsx(Le,{"data-loc":"client/src/components/Navbar.tsx:59",href:"/admin",children:v.jsxs(je,{"data-loc":"client/src/components/Navbar.tsx:60",variant:"ghost",size:"sm",className:"gap-2 text-muted-foreground hover:text-foreground",children:[v.jsx(z6,{"data-loc":"client/src/components/Navbar.tsx:61",className:"w-4 h-4"}),"管ç"]})})]}),v.jsxs("div",{"data-loc":"client/src/components/Navbar.tsx:69",className:"flex items-center gap-2",children:[v.jsx(Le,{"data-loc":"client/src/components/Navbar.tsx:71",href:"/cart",children:v.jsxs(je,{"data-loc":"client/src/components/Navbar.tsx:72",variant:"ghost",size:"icon",className:"relative",children:[v.jsx(AA,{"data-loc":"client/src/components/Navbar.tsx:73",className:"w-5 h-5"}),r>0&&v.jsx(ur,{"data-loc":"client/src/components/Navbar.tsx:75",className:"absolute -top-1 -right-1 w-5 h-5 p-0 flex items-center justify-center text-xs bg-primary text-primary-foreground",children:r})]})}),n?v.jsxs("div",{"data-loc":"client/src/components/Navbar.tsx:84",className:"hidden md:flex items-center gap-2",children:[v.jsx(Le,{"data-loc":"client/src/components/Navbar.tsx:85",href:"/orders",children:v.jsx(je,{"data-loc":"client/src/components/Navbar.tsx:86",variant:"ghost",size:"sm",className:"text-muted-foreground text-xs",children:t?.name??"æçè¨å®"})}),v.jsx(je,{"data-loc":"client/src/components/Navbar.tsx:90",variant:"outline",size:"sm",onClick:c,className:"text-xs border-border/50",children:"ç»åº"})]}):v.jsx(je,{"data-loc":"client/src/components/Navbar.tsx:95",size:"sm",className:"hidden md:flex bg-primary text-primary-foreground hover:bg-primary/90 font-medium",onClick:()=>ei(),children:"ç»å
¥"}),v.jsx(je,{"data-loc":"client/src/components/Navbar.tsx:105",variant:"ghost",size:"icon",className:"md:hidden",onClick:()=>l(!o),children:o?v.jsx(VY,{"data-loc":"client/src/components/Navbar.tsx:111",className:"w-5 h-5"}):v.jsx(LY,{"data-loc":"client/src/components/Navbar.tsx:111",className:"w-5 h-5"})})]})]}),o&&v.jsxs("div",{"data-loc":"client/src/components/Navbar.tsx:118",className:"md:hidden border-t border-border/50 py-3 space-y-1",children:[vE.map(({href:f,label:d,icon:m})=>v.jsx(Le,{"data-loc":"client/src/components/Navbar.tsx:120",href:f,onClick:()=>l(!1),children:v.jsxs(je,{"data-loc":"client/src/components/Navbar.tsx:121",variant:"ghost",className:"w-full justify-start gap-2 text-muted-foreground",children:[v.jsx(m,{"data-loc":"client/src/components/Navbar.tsx:122",className:"w-4 h-4"}),d]})},f)),!n&&v.jsx(je,{"data-loc":"client/src/components/Navbar.tsx:128",className:"w-full mt-2 bg-primary text-primary-foreground",onClick:()=>ei(),children:"ç»å
¥"})]})]})})}function xX(){return v.jsx("footer",{"data-loc":"client/src/components/Footer.tsx:5",className:"border-t border-border/50 bg-card/50 mt-16",children:v.jsxs("div",{"data-loc":"client/src/components/Footer.tsx:6",className:"container py-10",children:[v.jsxs("div",{"data-loc":"client/src/components/Footer.tsx:7",className:"grid grid-cols-1 md:grid-cols-3 gap-8",children:[v.jsxs("div",{"data-loc":"client/src/components/Footer.tsx:8",children:[v.jsx("h3",{"data-loc":"client/src/components/Footer.tsx:9",className:"font-display text-primary font-semibold mb-3",children:"ChaoIQ"}),v.jsxs("p",{"data-loc":"client/src/components/Footer.tsx:10",className:"text-muted-foreground text-sm leading-relaxed",children:["寶å¯å¤¢å¡ç趨å¢åæå¹³å°",v.jsx("br",{"data-loc":"client/src/components/Footer.tsx:11"}),"PSA è©ç´å¡å¹èµ°å¢ · Oripa ç¦è¢æ½ç"]})]}),v.jsxs("div",{"data-loc":"client/src/components/Footer.tsx:15",children:[v.jsx("h4",{"data-loc":"client/src/components/Footer.tsx:16",className:"text-sm font-semibold text-foreground mb-3",children:"å¿«éé£çµ"}),v.jsxs("ul",{"data-loc":"client/src/components/Footer.tsx:17",className:"space-y-2 text-sm text-muted-foreground",children:[v.jsx("li",{"data-loc":"client/src/components/Footer.tsx:18",children:v.jsx(Le,{"data-loc":"client/src/components/Footer.tsx:18",href:"/market",className:"hover:text-primary transition-colors",children:"PSA è¡æ
"})}),v.jsx("li",{"data-loc":"client/src/components/Footer.tsx:19",children:v.jsx(Le,{"data-loc":"client/src/components/Footer.tsx:19",href:"/oripa",className:"hover:text-primary transition-colors",children:"ç¦è¢å¡æ± "})}),v.jsx("li",{"data-loc":"client/src/components/Footer.tsx:20",children:v.jsx(Le,{"data-loc":"client/src/components/Footer.tsx:20",href:"/orders",className:"hover:text-primary transition-colors",children:"æçè¨å®"})})]})]}),v.jsxs("div",{"data-loc":"client/src/components/Footer.tsx:23",children:[v.jsx("h4",{"data-loc":"client/src/components/Footer.tsx:24",className:"text-sm font-semibold text-foreground mb-3",children:"éæ¼"}),v.jsxs("ul",{"data-loc":"client/src/components/Footer.tsx:25",className:"space-y-2 text-sm text-muted-foreground",children:[v.jsx("li",{"data-loc":"client/src/components/Footer.tsx:26",children:v.jsx("span",{"data-loc":"client/src/components/Footer.tsx:26",className:"cursor-pointer hover:text-primary transition-colors",children:"éæ¼æå"})}),v.jsx("li",{"data-loc":"client/src/components/Footer.tsx:27",children:v.jsx("span",{"data-loc":"client/src/components/Footer.tsx:27",className:"cursor-pointer hover:text-primary transition-colors",children:"å
è²¬è²æ"})}),v.jsx("li",{"data-loc":"client/src/components/Footer.tsx:28",children:v.jsx("span",{"data-loc":"client/src/components/Footer.tsx:28",className:"cursor-pointer hover:text-primary transition-colors",children:"ééæ¿ç"})})]})]})]}),v.jsxs("div",{"data-loc":"client/src/components/Footer.tsx:32",className:"mt-8 pt-6 border-t border-border/30 flex flex-col sm:flex-row items-center justify-between gap-3",children:[v.jsx("p",{"data-loc":"client/src/components/Footer.tsx:33",className:"text-xs text-muted-foreground",children:"© 2026 ChaoIQ â 寶å¯å¤¢å¡ç趨å¢åæå¹³å°"}),v.jsx("p",{"data-loc":"client/src/components/Footer.tsx:34",className:"text-xs text-muted-foreground",children:"å¡ç广 ¼æ¸æä¾æºï¼SNKRDUNK + eBay · æ¯æ¥æ´æ°"})]})]})})}function wX(){const e=j.useRef(null);return j.useEffect(()=>{const t=e.current;if(!t)return;const n=t.getContext("2d");if(!n)return;let r;const a=[],o=()=>{t.width=window.innerWidth,t.height=window.innerHeight};o(),window.addEventListener("resize",o);for(let d=0;d<25;d++)a.push({x:Math.random()*window.innerWidth,y:Math.random()*window.innerHeight,size:Math.random()*12+4,speedX:(Math.random()-.5)*.3,speedY:(Math.random()-.5)*.3,opacity:Math.random()*.12+.03,type:["pokeball","star","diamond"][Math.floor(Math.random()*3)],rotation:Math.random()*Math.PI*2,rotationSpeed:(Math.random()-.5)*.01});const l=(d,m,h,g,x)=>{d.save(),d.globalAlpha=x,d.strokeStyle="oklch(0.78 0.15 85)",d.lineWidth=1,d.beginPath(),d.arc(m,h,g,0,Math.PI*2),d.stroke(),d.beginPath(),d.moveTo(m-g,h),d.lineTo(m+g,h),d.stroke(),d.beginPath(),d.arc(m,h,g*.25,0,Math.PI*2),d.stroke(),d.restore(
262)},c=(d,m,h,g,x,O)=>{d.save(),d.globalAlpha=x,d.strokeStyle="oklch(0.78 0.15 85)",d.lineWidth=.8,d.translate(m,h),d.rotate(O),d.beginPath();for(let b=0;b<4;b++){const S=b*Math.PI/2;d.moveTo(0,0),d.lineTo(Math.cos(S)*g,Math.sin(S)*g)}d.stroke(),d.restore()},f=()=>{n.clearRect(0,0,t.width,t.height),a.forEach(d=>{d.x+=d.speedX,d.y+=d.speedY,d.rotation+=d.rotationSpeed,d.x<-50&&(d.x=t.width+50),d.x>t.width+50&&(d.x=-50),d.y<-50&&(d.y=t.height+50),d.y>t.height+50&&(d.y=-50),d.type==="pokeball"?l(n,d.x,d.y,d.size,d.opacity):c(n,d.x,d.y,d.size,d.opacity,d.rotation)}),r=requestAnimationFrame(f)};return f(),()=>{cancelAnimationFrame(r),window.removeEventListener("resize",o)}},[]),v.jsx("canvas",{"data-loc":"client/src/components/PokemonBackground.tsx:114",ref:e,className:"fixed inset-0 pointer-events-none z-0",style:{opacity:1}})}function SX(){const{data:e}=dt.market.trending.useQuery(),{data:t}=dt.oripa.list.useQuery(),{isAuthenticated:n}=li();return v.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:17",className:"overflow-hidden",children:[v.jsxs("section",{"data-loc":"client/src/pages/Home.tsx:19",className:"relative min-h-[85vh] flex items-center justify-center overflow-hidden",children:[v.jsx(wX,{"data-loc":"client/src/pages/Home.tsx:21"}),v.jsx("div",{"data-loc":"client/src/pages/Home.tsx:22",className:"absolute inset-0 bg-gradient-to-br from-background via-pokemon-navy/80 to-background"}),v.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:23",className:"absolute inset-0 overflow-hidden pointer-events-none",children:[v.jsx("div",{"data-loc":"client/src/pages/Home.tsx:25",className:"absolute top-1/4 left-1/4 w-96 h-96 rounded-full border border-primary/5 animate-[spin_30s_linear_infinite]"}),v.jsx("div",{"data-loc":"client/src/pages/Home.tsx:26",className:"absolute top-1/3 right-1/4 w-64 h-64 rounded-full border border-primary/8 animate-[spin_20s_linear_infinite_reverse]"}),v.jsx("div",{"data-loc":"client/src/pages/Home.tsx:27",className:"absolute bottom-1/4 left-1/3 w-48 h-48 rounded-full bg-primary/3 blur-3xl"}),v.jsx("div",{"data-loc":"client/src/pages/Home.tsx:28",className:"absolute top-1/2 right-1/3 w-72 h-72 rounded-full bg-blue-500/5 blur-3xl"}),v.jsx("div",{"data-loc":"client/src/pages/Home.tsx:30",className:"absolute top-16 right-16 opacity-20 text-8xl animate-[float_6s_ease-in-out_infinite]",children:"â¡"}),v.jsx("div",{"data-loc":"client/src/pages/Home.tsx:31",className:"absolute bottom-24 left-16 opacity-15 text-6xl animate-[float_8s_ease-in-out_infinite_2s]",children:"ð¥"}),v.jsx("div",{"data-loc":"client/src/pages/Home.tsx:32",className:"absolute top-1/3 left-8 opacity-10 text-5xl animate-[float_7s_ease-in-out_infinite_1s]",children:"ð§"})]}),v.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:34",className:"relative container text-center z-10",children:[v.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:35",className:"inline-flex items-center gap-2 px-4 py-1.5 rounded-full border border-primary/30 bg-primary/10 text-primary text-sm font-medium mb-6",children:[v.jsx(zY,{"data-loc":"client/src/pages/Home.tsx:36",className:"w-3.5 h-3.5"}),"寶å¯å¤¢å¡ç趨å¢åæå¹³å°"]}),v.jsx("h1",{"data-loc":"client/src/pages/Home.tsx:39",className:"font-display text-5xl md:text-7xl font-black mb-6 leading-tight",children:v.jsx("span",{"data-loc":"client/src/pages/Home.tsx:40",className:"text-gold-gradient",children:"ChaoIQ"})}),v.jsxs("p",{"data-loc":"client/src/pages/Home.tsx:42",className:"text-muted-foreground text-lg md:text-xl max-w-2xl mx-auto mb-10 leading-relaxed",children:["追蹤 PSA è©ç´å¡çå³æè¶¨å¢èµ°å¢",v.jsx("br",{"data-loc":"client/src/pages/Home.tsx:43"}),"åè Oripa ç¦è¢æ½çï¼è´åç¨æå¯¶å¯å¤¢å¡"]}),v.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:46",className:"flex flex-col sm:flex-row gap-4 justify-center flex-wrap",children:[v.jsx(Le,{"data-loc":"client/src/pages/Home.tsx:47",href:"/market",children:v.jsxs(je,{"data-loc":"client/src/pages/Home.tsx:48",size:"lg",className:"bg-primary text-primary-foreground hover:bg-primary/90 font-semibold px-8 gap-2 shadow-lg shadow-primary/20",children:[v.jsx(Cl,{"data-loc":"client/src/pages/Home.tsx:49",className:"w-5 h-5"}),"æ¥ç PSA è¡æ
"]})}),v.jsx(Le,{"data-loc":"client/src/pages/Home.tsx:53",href:"/oripa",children:v.jsxs(je,{"data-loc":"client/src/pages/Home.tsx:54",size:"lg",variant:"outline",className:"border-border/60 hover:border-primary/60 hover:bg-primary/5 font-semibold px-8 gap-2",children:[v.jsx(Nr,{"data-loc":"client/src/pages/Home.tsx:55",className:"w-5 h-5"}),"ç¦è¢å¡æ± "]})}),v.jsx(Le,{"data-loc":"client/src/pages/Home.tsx:59",href:"/calculator",children:v.jsxs(je,{"data-loc":"client/src/pages/Home.tsx:60",size:"lg",variant:"outline",className:"border-primary/40 hover:border-primary hover:bg-primary/10 font-semibold px-8 gap-2 text-primary",children:[v.jsx(jp,{"data-loc":"client/src/pages/Home.tsx:61",className:"w-5 h-5"}),"è¨ç®æ©"]})}),v.jsx(Le,{"data-loc":"client/src/pages/Home.tsx:65",href:"/collection",children:v.jsxs(je,{"data-loc":"client/src/pages/Home.tsx:66",size:"lg",variant:"outline",className:"border-border/60 hover:border-amber-500/60 hover:bg-amber-500/5 font-semibold px-8 gap-2",children:[v.jsx(lE,{"data-loc":"client/src/pages/Home.tsx:67",className:"w-5 h-5"}),"æçæ¶è"]})})]}),v.jsx("div",{"data-loc":"client/src/pages/Home.tsx:73",className:"mt-16 grid grid-cols-3 gap-6 max-w-lg mx-auto",children:[{value:"PSA 10",label:"æé«è©ç´"},{value:"æ¯æ¥",label:"æ¸ææ´æ°"},{value:"100%",label:"éåçä¿è"}].map(r=>v.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:79",className:"text-center",children:[v.jsx("div",{"data-loc":"client/src/pages/Home.tsx:80",className:"font-display text-2xl font-bold text-primary",children:r.value}),v.jsx("div",{"data-loc":"client/src/pages/Home.tsx:81",className:"text-xs text-muted-foreground mt-1",children:r.label})]},r.label))})]})]}),v.jsx("section",{"data-loc":"client/src/pages/Home.tsx:89",className:"py-10 border-b border-border/20",children:v.jsx("div",{"data-loc":"client/src/pages/Home.tsx:90",className:"container",children:v.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:91",className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4",children:[v.jsx(Le,{"data-loc":"client/src/pages/Home.tsx:93",href:"/market",children:v.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:94",className:"group relative rounded-2xl overflow-hidden border border-border/40 bg-card/60 hover:border-primary/50 hover:bg-card transition-all duration-300 cursor-pointer p-5 flex items-center gap-4",children:[v.jsx("div",{"data-loc":"client/src/pages/Home.tsx:95",className:"w-12 h-12 rounded-xl bg-emerald-500/10 border border-emerald-500/20 flex items-center justify-center flex-shrink-0 group-hover:bg-emerald-500/20 transition-colors",children:v.jsx(Cl,{"data-loc":"client/src/pages/Home.tsx:96",className:"w-6 h-6 text-emerald-400"})}),v.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:98",className:"flex-1 min-w-0",children:[v.jsx("div",{"data-loc":"client/src/pages/Home.tsx:99",className:"font-bold text-foreground group-hover:text-primary transition-colors",children:"PSA è¡æ
"}),v.jsx("div",{"data-loc":"client/src/pages/Home.tsx:100",className:"text-xs text-muted-foreground mt-0.5",children:"峿å¡çæäº¤å¹æ ¼èµ°å¢"})]}),v.jsx(Su,{"data-loc":"client/src/pages/Home.tsx:102",className:"w-4 h-4 text-muted-foreground
262/40 group-hover:text-primary group-hover:translate-x-1 transition-all"})]})}),v.jsx(Le,{"data-loc":"client/src/pages/Home.tsx:106",href:"/oripa",children:v.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:107",className:"group relative rounded-2xl overflow-hidden border border-border/40 bg-card/60 hover:border-primary/50 hover:bg-card transition-all duration-300 cursor-pointer p-5 flex items-center gap-4",children:[v.jsx("div",{"data-loc":"client/src/pages/Home.tsx:108",className:"w-12 h-12 rounded-xl bg-primary/10 border border-primary/20 flex items-center justify-center flex-shrink-0 group-hover:bg-primary/20 transition-colors",children:v.jsx(Nr,{"data-loc":"client/src/pages/Home.tsx:109",className:"w-6 h-6 text-primary"})}),v.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:111",className:"flex-1 min-w-0",children:[v.jsx("div",{"data-loc":"client/src/pages/Home.tsx:112",className:"font-bold text-foreground group-hover:text-primary transition-colors",children:"ç¦è¢å¡æ± "}),v.jsx("div",{"data-loc":"client/src/pages/Home.tsx:113",className:"text-xs text-muted-foreground mt-0.5",children:"Oripa æ½ç · PSA 10 ä¿è"})]}),v.jsx(Su,{"data-loc":"client/src/pages/Home.tsx:115",className:"w-4 h-4 text-muted-foreground/40 group-hover:text-primary group-hover:translate-x-1 transition-all"})]})}),v.jsx(Le,{"data-loc":"client/src/pages/Home.tsx:119",href:"/calculator",children:v.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:120",className:"group relative rounded-2xl overflow-hidden border border-primary/30 bg-primary/5 hover:border-primary/60 hover:bg-primary/10 transition-all duration-300 cursor-pointer p-5 flex items-center gap-4",children:[v.jsx("div",{"data-loc":"client/src/pages/Home.tsx:121",className:"w-12 h-12 rounded-xl bg-primary/15 border border-primary/30 flex items-center justify-center flex-shrink-0 group-hover:bg-primary/25 transition-colors",children:v.jsx(jp,{"data-loc":"client/src/pages/Home.tsx:122",className:"w-6 h-6 text-primary"})}),v.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:124",className:"flex-1 min-w-0",children:[v.jsx("div",{"data-loc":"client/src/pages/Home.tsx:125",className:"font-bold text-primary",children:"ç¦è¢è¨ç®æ©"}),v.jsx("div",{"data-loc":"client/src/pages/Home.tsx:126",className:"text-xs text-muted-foreground mt-0.5",children:"è¨ç®ä¸çæ¦çåéåç"})]}),v.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:128",className:"flex items-center gap-1",children:[v.jsx(U6,{"data-loc":"client/src/pages/Home.tsx:129",className:"w-3 h-3 text-primary"}),v.jsx("span",{"data-loc":"client/src/pages/Home.tsx:130",className:"text-[10px] font-bold text-primary",children:"å
è²»"})]})]})}),v.jsx(Le,{"data-loc":"client/src/pages/Home.tsx:135",href:"/collection",children:v.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:136",className:"group relative rounded-2xl overflow-hidden border border-border/40 bg-card/60 hover:border-amber-500/50 hover:bg-card transition-all duration-300 cursor-pointer p-5 flex items-center gap-4",children:[v.jsx("div",{"data-loc":"client/src/pages/Home.tsx:137",className:"w-12 h-12 rounded-xl bg-amber-500/10 border border-amber-500/20 flex items-center justify-center flex-shrink-0 group-hover:bg-amber-500/20 transition-colors",children:v.jsx(lE,{"data-loc":"client/src/pages/Home.tsx:138",className:"w-6 h-6 text-amber-400"})}),v.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:140",className:"flex-1 min-w-0",children:[v.jsx("div",{"data-loc":"client/src/pages/Home.tsx:141",className:"font-bold text-foreground group-hover:text-amber-400 transition-colors",children:"æçæ¶è"}),v.jsx("div",{"data-loc":"client/src/pages/Home.tsx:142",className:"text-xs text-muted-foreground mt-0.5",children:"追蹤å人å¡ç PSA èµ°å¢"})]}),v.jsx(Su,{"data-loc":"client/src/pages/Home.tsx:144",className:"w-4 h-4 text-muted-foreground/40 group-hover:text-amber-400 group-hover:translate-x-1 transition-all"})]})})]})})}),v.jsx("section",{"data-loc":"client/src/pages/Home.tsx:152",className:"py-16 bg-card/30",children:v.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:153",className:"container",children:[v.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:154",className:"flex items-center justify-between mb-8",children:[v.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:155",children:[v.jsx("h2",{"data-loc":"client/src/pages/Home.tsx:156",className:"font-display text-2xl font-bold text-foreground",children:"æ¬é±è¡æ
æ¦"}),v.jsx("p",{"data-loc":"client/src/pages/Home.tsx:157",className:"text-muted-foreground text-sm mt-1",children:"PSA 10 æäº¤ä¸ä½æ¸ · æ¯æ¥æ´æ°"})]}),v.jsx(Le,{"data-loc":"client/src/pages/Home.tsx:159",href:"/market",children:v.jsxs(je,{"data-loc":"client/src/pages/Home.tsx:160",variant:"ghost",size:"sm",className:"gap-1 text-primary text-sm",children:["æ¥çå
¨é¨ ",v.jsx(Su,{"data-loc":"client/src/pages/Home.tsx:161",className:"w-4 h-4"})]})})]}),v.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:165",className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[v.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:167",children:[v.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:168",className:"flex items-center gap-2 mb-4",children:[v.jsx(Cl,{"data-loc":"client/src/pages/Home.tsx:169",className:"w-4 h-4 text-emerald-400"}),v.jsx("span",{"data-loc":"client/src/pages/Home.tsx:170",className:"text-sm font-semibold text-emerald-400",children:"æ¬é±æ¼²å¹
æ¦"})]}),v.jsx("div",{"data-loc":"client/src/pages/Home.tsx:172",className:"space-y-2",children:(e?.gainers??Array.from({length:5})).map((r,a)=>v.jsx(yE,{"data-loc":"client/src/pages/Home.tsx:174",card:r,direction:"up",rank:a+1},a))})]}),v.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:179",children:[v.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:180",className:"flex items-center gap-2 mb-4",children:[v.jsx(PA,{"data-loc":"client/src/pages/Home.tsx:181",className:"w-4 h-4 text-red-400"}),v.jsx("span",{"data-loc":"client/src/pages/Home.tsx:182",className:"text-sm font-semibold text-red-400",children:"æ¬é±è·å¹
æ¦"})]}),v.jsx("div",{"data-loc":"client/src/pages/Home.tsx:184",className:"space-y-2",children:(e?.losers??Array.from({length:5})).map((r,a)=>v.jsx(yE,{"data-loc":"client/src/pages/Home.tsx:186",card:r,direction:"down",rank:a+1},a))})]})]})]})}),v.jsx("section",{"data-loc":"client/src/pages/Home.tsx:195",className:"py-16",children:v.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:196",className:"container",children:[v.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:197",className:"flex items-center justify-between mb-8",children:[v.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:198",children:[v.jsx("h2",{"data-loc":"client/src/pages/Home.tsx:199",className:"font-display text-2xl font-bold text-foreground",children:"Oripa ç¦è¢å¡æ± "}),v.jsx("p",{"data-loc":"client/src/pages/Home.tsx:200",className:"text-muted-foreground text-sm mt-1",children:"100% éåç · PSA 10 ä¿è"})]}),v.jsx(Le,{"data-loc":"client/src/pages/Home.tsx:202",href:"/oripa",children:v.jsxs(je,{"data-loc":"client/src/pages/Home.tsx:203",variant:"ghost",size:"sm",className:"gap-1 text-primary text-sm",children:["æ¥çå
¨é¨ ",v.jsx(Su,{"data-loc":"client/src/pages/Home.tsx:204",className:"w-4 h-4"})]})})]}),t?.length?v.jsx("div",{"data-loc":"client/src/pages/Home.tsx:215",className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6",children:t.slice(0,3).map(r=>v.jsx(OX,{"data-loc":"client/src/pages/Home.tsx:217",product:r},r.id))}):v.jsx("div",{"data-loc":"client/src/pages/Home.tsx:209",className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6",children:Array.from({length:3}).map((r,a)=>v.jsx("div",{"data-loc":"client/src/pages/Home.tsx:211",className:"h-72 rounded-2xl bg-card animate-pulse border border-border/30"},a))})]})}),!n&&v.jsx("section",{"data-loc":"client/src/pages/Home.tsx:226",className:"py-16 bg-gradient-to-r from-primary/10 via-primary/5 to-primary/10 border-y border-primary/20",children:v.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:227",className:"container text-center",children:[v.jsx(Np,{"data-loc":"client/src/pages/Home.tsx:228",className:"w-10 h-10 text-primary mx-auto mb-4"}),v.jsx("h2",{"data-loc":"client/src/pages/Home.tsx:229",className:"font-display text-2xl font-bold text-foreground mb-3",children:"ç«å³ç»å
¥ï¼éå§æ¶è"}),v.jsx("p",{"data-loc":"client/src/pages/Home.tsx:230",className:"text-muted-foreground mb-6",children:"ç»å
¥å¾å¯è³¼è²·ç¦è¢èç¢¼ï¼æ¥ç購買è¨é"}),v.jsx(je,{"data-loc":"client/src/pages/Home.tsx:231",size:"lg",className:"bg-primary text-primary-foreground px-10",onClick:()=>ei(),children:"ç«å³ç»å
¥"})]})})]})}function yE({card:e,direction:t,rank:n}){return e?v.jsx(Le,{"data-loc":"client/src/pages/Home.tsx:244",href:`/card/${e.id}`,children:v.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:245",className:"flex items-center gap-3 p-3 rounded-xl bg-card/50 border border-border/30 hover:border-primary/30 hover:bg-card transition-all cursor-pointer group",children:[v.jsx("span",{"data-loc":"client/src/pages/Home.tsx:246",className:"text-xs text-muted-foreground w-5 text-center font-mono",children:n}),v.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:247",className:"flex-1 min-w-0",children:[v.jsx("p",{"data-loc":"client/src/pages/Home.tsx:248",className:"text-sm font-medium text-foreground truncate group-hover:text-primary transition-colors",children:e.name}),v.jsx("p",{"data-loc":"client/src/pages/Home.tsx:249",className:"text-xs text-muted-foreground",children:e.priceJpy||e.psa10Price?`Â¥${(e.priceJpy||e.psa10Price).toLocaleStr
262ing()}`:"â"})]}),v.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:255",className:`text-sm font-semibold ${t==="up"?"text-emerald-400":"text-red-400"}`,children:[t==="up"?"+":"",e.change?.toFixed(1),"%"]})]})}):v.jsx("div",{"data-loc":"client/src/pages/Home.tsx:242",className:"h-14 rounded-xl bg-card/50 animate-pulse"})}function OX({product:e}){const n=(e.isSoldOut?e.totalSlots:0)/e.totalSlots*100;return v.jsx(Le,{"data-loc":"client/src/pages/Home.tsx:267",href:`/oripa/${e.id}`,children:v.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:268",className:"group rounded-2xl overflow-hidden bg-card border border-border/40 card-glow cursor-pointer transition-all duration-300 hover:-translate-y-1",children:[v.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:269",className:"relative aspect-square overflow-hidden bg-secondary",children:[e.coverImageUrl?v.jsx("img",{"data-loc":"client/src/pages/Home.tsx:271",src:e.coverImageUrl,alt:e.name,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"}):v.jsx("div",{"data-loc":"client/src/pages/Home.tsx:273",className:"w-full h-full flex items-center justify-center",children:v.jsx(Nr,{"data-loc":"client/src/pages/Home.tsx:274",className:"w-16 h-16 text-muted-foreground/30"})}),e.isSoldOut&&v.jsx("div",{"data-loc":"client/src/pages/Home.tsx:278",className:"absolute inset-0 bg-background/70 flex items-center justify-center",children:v.jsx(ur,{"data-loc":"client/src/pages/Home.tsx:279",className:"bg-destructive/80 text-white text-sm px-4 py-1",children:"å®ç½"})}),e.returnRate&&v.jsx("div",{"data-loc":"client/src/pages/Home.tsx:283",className:"absolute top-3 left-3",children:v.jsxs(ur,{"data-loc":"client/src/pages/Home.tsx:284",className:"bg-primary/90 text-primary-foreground text-xs",children:[e.returnRate,"% éåç"]})})]}),v.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:288",className:"p-4",children:[v.jsx("h3",{"data-loc":"client/src/pages/Home.tsx:289",className:"font-semibold text-foreground truncate group-hover:text-primary transition-colors",children:e.name}),v.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:290",className:"flex items-center justify-between mt-2",children:[v.jsxs("span",{"data-loc":"client/src/pages/Home.tsx:291",className:"text-primary font-bold text-lg",children:["HKD $",Number(e.priceHkd).toLocaleString()]}),v.jsxs("span",{"data-loc":"client/src/pages/Home.tsx:292",className:"text-xs text-muted-foreground",children:["å
± ",e.totalSlots," å£"]})]}),v.jsx("div",{"data-loc":"client/src/pages/Home.tsx:295",className:"mt-3 h-1.5 bg-secondary rounded-full overflow-hidden",children:v.jsx("div",{"data-loc":"client/src/pages/Home.tsx:296",className:"h-full bg-primary/60 rounded-full transition-all",style:{width:`${n}%`}})})]})]})})}var g0="focusScope.autoFocusOnMount",v0="focusScope.autoFocusOnUnmount",bE={bubbles:!1,cancelable:!0},AX="FocusScope",W6=j.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:a,onUnmountAutoFocus:o,...l}=e,[c,f]=j.useState(null),d=Wi(a),m=Wi(o),h=j.useRef(null),g=kt(t,b=>f(b)),x=j.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;j.useEffect(()=>{if(r){let b=function(C){if(x.paused||!c)return;const M=C.target;c.contains(M)?h.current=M:qi(h.current,{select:!0})},S=function(C){if(x.paused||!c)return;const M=C.relatedTarget;M!==null&&(c.contains(M)||qi(h.current,{select:!0}))},A=function(C){if(document.activeElement===document.body)for(const P of C)P.removedNodes.length>0&&qi(c)};document.addEventListener("focusin",b),document.addEventListener("focusout",S);const _=new MutationObserver(A);return c&&_.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",b),document.removeEventListener("focusout",S),_.disconnect()}}},[r,c,x.paused]),j.useEffect(()=>{if(c){wE.add(x);const b=document.activeElement;if(!c.contains(b)){const A=new CustomEvent(g0,bE);c.addEventListener(g0,d),c.dispatchEvent(A),A.defaultPrevented||(PX(EX(Z6(c)),{select:!0}),document.activeElement===b&&qi(c))}return()=>{c.removeEventListener(g0,d),setTimeout(()=>{const A=new CustomEvent(v0,bE);c.addEventListener(v0,m),c.dispatchEvent(A),A.defaultPrevented||qi(b??document.body,{select:!0}),c.removeEventListener(v0,m),wE.remove(x)},0)}}},[c,d,m,x]);const O=j.useCallback(b=>{if(!n&&!r||x.paused)return;
vendor: 9,347 bytes, lines 262-299
262const S=b.key==="Tab"&&!b.altKey&&!b.ctrlKey&&!b.metaKey,A=document.activeElement;if(S&&A){const _=b.currentTarget,[C,M]=_X(_);C&&M?!b.shiftKey&&A===M?(b.preventDefault(),n&&qi(C,{select:!0})):b.shiftKey&&A===C&&(b.preventDefault(),n&&qi(M,{select:!0})):A===_&&b.preventDefault()}},[n,r,x.paused]);return v.jsx(it.div,{tabIndex:-1,...l,ref:g,onKeyDown:O})});W6.displayName=AX;function PX(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(qi(r,{select:t}),document.activeElement!==n)return}function _X(e){const t=Z6(e),n=xE(t,e),r=xE(t.reverse(),e);return[n,r]}function Z6(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const a=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||a?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function xE(e,t){for(const n of e)if(!CX(n,{upTo:t}))return n}function CX(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function TX(e){return e instanceof HTMLInputElement&&"select"in e}function qi(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&TX(e)&&t&&e.select()}}var wE=jX();function jX(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=SE(e,t),e.unshift(t)},remove(t){e=SE(e,t),e[0]?.resume()}}}function SE(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function EX(e){return e.filter(t=>t.tagName!=="A")}var y0=0;function NX(){j.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??OE()),document.body.insertAdjacentElement("beforeend",e[1]??OE()),y0++,()=>{y0===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),y0--}},[])}function OE(){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}var fa=function(){return fa=Object.assign||function(t){for(var n,r=1,a=arguments.length;r<a;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},fa.apply(this,arguments)};function J6(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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n}function MX(e,t,n){if(n||arguments.length===2)for(var r=0,a=t.length,o;r<a;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}var mp="right-scroll-bar-position",gp="width-before-scroll-bar",DX="with-scroll-bars-hidden",RX="--removed-body-scroll-bar-size";function b0(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function kX(e,t){var n=j.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var a=n.value;a!==r&&(n.value=r,n.callback(r,a))}}}})[0];return n.callback=t,n.facade}var IX=typeof window<"u"?j.useLayoutEffect:j.useEffect,AE=new WeakMap;function LX(e,t){var n=kX(null,function(r){return e.forEach(function(a){return b0(a,r)})});return IX(function(){var r=AE.get(n);if(r){var a=new Set(r),o=new Set(e),l=n.current;a.forEach(function(c){o.has(c)||b0(c,null)}),o.forEach(function(c){a.has(c)||b0(c,l)})}AE.set(n,e)},[e]),n}function $X(e){return e}function BX(e,t){t===void 0&&(t=$X);var n=[],r=!1,a={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(o){var l=t(o,r);return n.push(l),function(){n=n.filter(function(c){return c!==l})}},assignSyncMedium:function(o){for(r=!0;n.length;){var l=n;n=[],l.forEach(o)}n={push:function(c){return o(c)},filter:function(){return n}}},assignMedium:function(o){r=!0;var l=[];if(n.length){var c=n;n=[],c.forEach(o),l=n}var f=function(){var m=l;l=[],m.forEach(o)},d=function(){return Promise.resolve().then(f)};d(),n={push:function(m){l.push(m),d()},filter:function(m){return l=l.filter(m),n}}}};return a}function qX(e){e===void 0&&(e={});var t=BX(null);return t.options=fa({async:!0,ssr:!1},e),t}var eL=function(e){var t=e.sideCar,n=J6(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 j.createElement(r,fa({},n))};eL.isSideCarExport=!0;function zX(e,t){return e.useMedium(t),eL}var tL=qX(),x0=function(){},tg=j.forwardRef(function(e,t){var n=j.useRef(null),r=j.useState({onScrollCapture:x0,onWheelCapture:x0,onTouchMoveCapture:x0}),a=r[0],o=r[1],l=e.forwardProps,c=e.children,f=e.className,d=e.removeScrollBar,m=e.enabled,h=e.shards,g=e.sideCar,x=e.noRelative,O=e.noIsolation,b=e.inert,S=e.allowPinchZoom,A=e.as,_=A===void 0?"div":A,C=e.gapMode,M=J6(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),P=g,E=LX([n,t]),T=fa(fa({},M),a);return j.createElement(j.Fragment,null,m&&j.createElement(P,{sideCar:tL,removeScrollBar:d,shards:h,noRelative:x,noIsolation:O,inert:b,setCallbacks:o,allowPinchZoom:!!S,lockRef:n,gapMode:C}),l?j.cloneElement(j.Children.only(c),fa(fa({},T),{ref:E})):j.createElement(_,fa({},T,{className:f,ref:E}),c))});tg.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};tg.classNames={fullWidth:gp,zeroRight:mp};var UX=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function HX(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=UX();return t&&e.setAttribute("nonce",t),e}function VX(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function FX(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var KX=function(){var e=0,t=null;return{add:function(n){e==0&&(t=HX())&&(VX(t,n),FX(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},GX=function(){var e=KX();return function(t,n){j.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},nL=function(){var e=GX(),t=function(n){var r=n.styles,a=n.dynamic;return e(r,a),null};return t},YX={left:0,top:0,right:0,gap:0},w0=function(e){return parseInt(e||"",10)||0},XX=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],a=t[e==="padding"?"paddingRight":"marginRight"];return[w0(n),w0(r),w0(a)]},QX=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return YX;var t=XX(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])}},WX=nL(),Tl="data-scroll-locked",ZX=function(e,t,n,r){var a=e.left,o=e.top,l=e.right,c=e.gap;return n===void 0&&(n="margin"),` 263 .`.concat(DX,` { 264 overflow: hidden `).concat(r,`; 265 padding-right: `).concat(c,"px ").concat(r,`; 266 } 267 body[`).concat(Tl,`] { 268 overflow: hidden `).concat(r,`; 269 overscroll-behavior: contain; 270 `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` 271 padding-left: `.concat(a,`px; 272 padding-top: `).concat(o,`px; 273 padding-right: `).concat(l,`px; 274 margin-left:0; 275 margin-top:0; 276 margin-right: `).concat(c,"px ").concat(r,`; 277 `),n==="padding"&&"padding-right: ".concat(c,"px ").concat(r,";")].filter(Boolean).join(""),` 278 } 279 280 .`).concat(mp,` { 281 right: `).concat(c,"px ").concat(r,`; 282 } 283 284 .`).concat(gp,` { 285 margin-right: `).concat(c,"px ").concat(r,`; 286 } 287 288 .`).concat(mp," .").concat(mp,` { 289 right: 0 `).concat(r,`; 290 } 291 292 .`).concat(gp," .").concat(gp,` { 293 margin-right: 0 `).concat(r,`; 294 } 295 296 body[`).concat(Tl,`] { 297 `).concat(RX,": ").concat(c,`px; 298 } 299`)},PE=function(){var e=parseInt(document.body.getAttribute(Tl)||"0",10);return isFinite(e)?e:0},JX=function(){j.useEffect(function(){return document.body.setAttribute(Tl,(PE()+1).toString()),function(){var e=PE()-1;e<=0?document.body.removeAttribute(Tl):document.body.setAttribute(Tl,e.toString())}},[])},eQ=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,a=r===void 0?"margin":r;JX();var o=j.useMemo(function(){return QX(a)},[a]);return j.createElement(WX,{styles:ZX(o,!t,a,n?"":"!important")})},fS=!1;if(typeof window<"u")try{var Hh=Object.defineProperty({},"passive",{get:function(){return fS=!0,!0}});window.addEventListener("test",Hh,Hh),window.removeEventListener("test",Hh,Hh)}catch{fS=!1}var cl=fS?{passive:!1}:!1,tQ=function(e){return e.tagName==="TEXTAREA"},rL=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!tQ(e)&&n[t]==="visible")},nQ=function(e){return rL(e,"overflowY")},rQ=function(e){return rL(e,"overflowX")},_E=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var a=aL(e,r);if(a){var o=iL(e,r),l=o[1],c=o[2];
vendor: 4,616 bytes, lines 299-302
299if(l>c)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},aQ=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},iQ=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},aL=function(e,t){return e==="v"?nQ(t):rQ(t)},iL=function(e,t){return e==="v"?aQ(t):iQ(t)},oQ=function(e,t){return e==="h"&&t==="rtl"?-1:1},sQ=function(e,t,n,r,a){var o=oQ(e,window.getComputedStyle(t).direction),l=o*r,c=n.target,f=t.contains(c),d=!1,m=l>0,h=0,g=0;do{if(!c)break;var x=iL(e,c),O=x[0],b=x[1],S=x[2],A=b-S-o*O;(O||A)&&aL(e,c)&&(h+=A,g+=O);var _=c.parentNode;c=_&&_.nodeType===Node.DOCUMENT_FRAGMENT_NODE?_.host:_}while(!f&&c!==document.body||f&&(t.contains(c)||t===c));return(m&&Math.abs(h)<1||!m&&Math.abs(g)<1)&&(d=!0),d},Vh=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},CE=function(e){return[e.deltaX,e.deltaY]},TE=function(e){return e&&"current"in e?e.current:e},lQ=function(e,t){return e[0]===t[0]&&e[1]===t[1]},cQ=function(e){return` 300 .block-interactivity-`.concat(e,` {pointer-events: none;} 301 .allow-interactivity-`).concat(e,` {pointer-events: all;} 302`)},uQ=0,ul=[];function fQ(e){var t=j.useRef([]),n=j.useRef([0,0]),r=j.useRef(),a=j.useState(uQ++)[0],o=j.useState(nL)[0],l=j.useRef(e);j.useEffect(function(){l.current=e},[e]),j.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var b=MX([e.lockRef.current],(e.shards||[]).map(TE),!0).filter(Boolean);return b.forEach(function(S){return S.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),b.forEach(function(S){return S.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var c=j.useCallback(function(b,S){if("touches"in b&&b.touches.length===2||b.type==="wheel"&&b.ctrlKey)return!l.current.allowPinchZoom;var A=Vh(b),_=n.current,C="deltaX"in b?b.deltaX:_[0]-A[0],M="deltaY"in b?b.deltaY:_[1]-A[1],P,E=b.target,T=Math.abs(C)>Math.abs(M)?"h":"v";if("touches"in b&&T==="h"&&E.type==="range")return!1;var D=_E(T,E);if(!D)return!0;if(D?P=T:(P=T==="v"?"h":"v",D=_E(T,E)),!D)return!1;if(!r.current&&"changedTouches"in b&&(C||M)&&(r.current=P),!P)return!0;var L=r.current||P;return sQ(L,S,b,L==="h"?C:M)},[]),f=j.useCallback(function(b){var S=b;if(!(!ul.length||ul[ul.length-1]!==o)){var A="deltaY"in S?CE(S):Vh(S),_=t.current.filter(function(P){return P.name===S.type&&(P.target===S.target||S.target===P.shadowParent)&&lQ(P.delta,A)})[0];if(_&&_.should){S.cancelable&&S.preventDefault();return}if(!_){var C=(l.current.shards||[]).map(TE).filter(Boolean).filter(function(P){return P.contains(S.target)}),M=C.length>0?c(S,C[0]):!l.current.noIsolation;M&&S.cancelable&&S.preventDefault()}}},[]),d=j.useCallback(function(b,S,A,_){var C={name:b,delta:S,target:A,should:_,shadowParent:dQ(A)};t.current.push(C),setTimeout(function(){t.current=t.current.filter(function(M){return M!==C})},1)},[]),m=j.useCallback(function(b){n.current=Vh(b),r.current=void 0},[]),h=j.useCallback(function(b){d(b.type,CE(b),b.target,c(b,e.lockRef.current))},[]),g=j.useCallback(function(b){d(b.type,Vh(b),b.target,c(b,e.lockRef.current))},[]);j.useEffect(function(){return ul.push(o),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:g}),document.addEventListener("wheel",f,cl),document.addEventListener("touchmove",f,cl),document.addEventListener("touchstart",m,cl),function(){ul=ul.filter(function(b){return b!==o}),document.removeEventListener("wheel",f,cl),document.removeEventListener("touchmove",f,cl),document.removeEventListener("touchstart",m,cl)}},[]);var x=e.removeScrollBar,O=e.inert;return j.createElement(j.Fragment,null,O?j.createElement(o,{styles:cQ(a)}):null,x?j.createElement(eQ,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function dQ(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const hQ=zX(tL,fQ);var oL=j.forwardRef(function(e,t){return j.createElement(tg,fa({},e,{ref:t,sideCar:hQ}))});oL.classNames=tg.classNames;var pQ=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},fl=new WeakMap,Fh=new WeakMap,Kh={},S0=0,sL=function(e){return e&&(e.host||sL(e.parentNode))},mQ=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=sL(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})},gQ=function(e,t,n,r){var a=mQ(t,Array.isArray(e)?e:[e]);Kh[n]||(Kh[n]=new WeakMap);
302var o=Kh[n],l=[],c=new Set,f=new Set(a),d=function(h){!h||c.has(h)||(c.add(h),d(h.parentNode))};a.forEach(d);var m=function(h){!h||f.has(h)||Array.prototype.forEach.call(h.children,function(g){if(c.has(g))m(g);else try{var x=g.getAttribute(r),O=x!==null&&x!=="false",b=(fl.get(g)||0)+1,S=(o.get(g)||0)+1;fl.set(g,b),o.set(g,S),l.push(g),b===1&&O&&Fh.set(g,!0),S===1&&g.setAttribute(n,"true"),O||g.setAttribute(r,"true")}catch(A){console.error("aria-hidden: cannot operate on ",g,A)}})};return m(t),c.clear(),S0++,function(){l.forEach(function(h){var g=fl.get(h)-1,x=o.get(h)-1;fl.set(h,g),o.set(h,x),g||(Fh.has(h)||h.removeAttribute(r),Fh.delete(h)),x||h.removeAttribute(n)}),S0--,S0||(fl=new WeakMap,fl=new WeakMap,Fh=new WeakMap,Kh={})}},vQ=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),a=pQ(e);return a?(r.push.apply(r,Array.from(a.querySelectorAll("[aria-live], script"))),gQ(r,a,n,"aria-hidden")):function(){return null}};const yQ=j.createContext({isComposing:()=>!1,setComposing:()=>{},justEndedComposing:()=>!1,markCompositionEnd:()=>{}}),lL=()=>j.useContext(yQ);function Gh(e){const t=j.useRef(e);t.current=e;const n=j.useRef(null);return n.current||(n.current=function(...r){return t.current.apply(this,r)}),n.current}function cL(e={}){const{onKeyDown:t,onCompositionStart:n,onCompositionEnd:r}=e,a=j.useRef(!1),o=j.useRef(null),l=j.useRef(null),c=Gh(h=>{o.current&&(clearTimeout(o.current),o.current=null),l.current&&(clearTimeout(l.current),l.current=null),a.current=!0,n?.(h)}),f=Gh(h=>{o.current=setTimeout(()=>{l.current=setTimeout(()=>{a.current=!1})}),r?.(h)}),d=Gh(h=>{if(a.current&&(h.key==="Escape"||h.key==="Enter"&&!h.shiftKey)){h.stopPropagation();return}t?.(h)}),m=Gh(()=>a.current);return{onCompositionStart:c,onCompositionEnd:f,onKeyDown:d,isComposing:m}}function Vn({className:e,type:t,onKeyDown:n,onCompositionStart:r,onCompositionEnd:a,...o}){const l=lL(),{onCompositionStart:c,onCompositionEnd:f,onKeyDown:d}=cL({onKeyDown:m=>{const h=m.nativeEvent.isComposing||l.justEndedComposing();m.key==="Enter"&&h||n?.(m)},onCompositionStart:m=>{l.setComposing(!0),r?.(m)},onCompositionEnd:m=>{l.markCompositionEnd(),setTimeout(()=>{l.setComposing(!1)},100),a?.(m)}});return v.jsx("input",{"data-loc":"client/src/components/ui/input.tsx:53",type:t,"data-slot":"input",className:It("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),onCompositionStart:c,onCompositionEnd:f,onKeyDown:d,...o})}function uL(e){const t=e+"CollectionProvider",[n,r]=lc(t),[a,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),l=b=>{const{scope:S,children:A}=b,_=V.useRef(null),C=V.useRef(new Map).current;return v.jsx(a,{scope:S,itemMap:C,collectionRef:_,children:A})};l.displayName=t;const c=e+"CollectionSlot",f=nf(c),d=V.forwardRef((b,S)=>{const{scope:A,children:_}=b,C=o(c,A),M=kt(S,C.collectionRef);return v.jsx(f,{ref:M,children:_})});d.displayName=c;const m=e+"CollectionItemSlot",h="data-radix-collection-item",g=nf(m),x=V.forwardRef((b,S)=>{const{scope:A,children:_,...C}=b,M=V.useRef(null),P=kt(S,M),E=o(m,A);return V.useEffect(()=>(E.itemMap.set(M,{ref:M,...C}),()=>void E.itemMap.delete(M))),v.jsx(g,{[h]:"",ref:P,children:_})});x.displayName=m;function O(b){const S=o(e+"CollectionConsumer",b);return V.useCallback(()=>{const _=S.collectionRef.current;if(!_)return[];const C=Array.from(_.querySelectorAll(`[${h}]`));return Array.from(S.itemMap.values()).sort((E,T)=>C.indexOf(E.ref.current)-C.indexOf(T.ref.current))},[S.collectionRef,S.itemMap])}return[{Provider:l,Slot:d,ItemSlot:x},O,r]}var bQ=j.createContext(void 0);function NA(e){const t=j.useContext(bQ);return e||t||"ltr"}var O0="rovingFocusGroup.onEntryFocus",xQ={bubbles:!1,cancelable:!0},rd="RovingFocusGroup",[dS,fL,wQ]=uL(rd),[SQ,dL]=lc(rd,[wQ]),[OQ,AQ]=SQ(rd),hL=j.forwardRef((e,t)=>
vendor: 4,505 bytes, line 302
302v.jsx(dS.Provider,{scope:e.__scopeRovingFocusGroup,children:v.jsx(dS.Slot,{scope:e.__scopeRovingFocusGroup,children:v.jsx(PQ,{...e,ref:t})})}));hL.displayName=rd;var PQ=j.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:a=!1,dir:o,currentTabStopId:l,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:f,onEntryFocus:d,preventScrollOnEntryFocus:m=!1,...h}=e,g=j.useRef(null),x=kt(t,g),O=NA(o),[b,S]=Tp({prop:l,defaultProp:c??null,onChange:f,caller:rd}),[A,_]=j.useState(!1),C=Wi(d),M=fL(n),P=j.useRef(!1),[E,T]=j.useState(0);return j.useEffect(()=>{const D=g.current;if(D)return D.addEventListener(O0,C),()=>D.removeEventListener(O0,C)},[C]),v.jsx(OQ,{scope:n,orientation:r,dir:O,loop:a,currentTabStopId:b,onItemFocus:j.useCallback(D=>S(D),[S]),onItemShiftTab:j.useCallback(()=>_(!0),[]),onFocusableItemAdd:j.useCallback(()=>T(D=>D+1),[]),onFocusableItemRemove:j.useCallback(()=>T(D=>D-1),[]),children:v.jsx(it.div,{tabIndex:A||E===0?-1:0,"data-orientation":r,...h,ref:x,style:{outline:"none",...e.style},onMouseDown:Fe(e.onMouseDown,()=>{P.current=!0}),onFocus:Fe(e.onFocus,D=>{const L=!P.current;if(D.target===D.currentTarget&&L&&!A){const U=new CustomEvent(O0,xQ);if(D.currentTarget.dispatchEvent(U),!U.defaultPrevented){const I=M().filter(R=>R.focusable),z=I.find(R=>R.active),F=I.find(R=>R.id===b),q=[z,F,...I].filter(Boolean).map(R=>R.ref.current);gL(q,m)}}P.current=!1}),onBlur:Fe(e.onBlur,()=>_(!1))})})}),pL="RovingFocusGroupItem",mL=j.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:a=!1,tabStopId:o,children:l,...c}=e,f=ed(),d=o||f,m=AQ(pL,n),h=m.currentTabStopId===d,g=fL(n),{onFocusableItemAdd:x,onFocusableItemRemove:O,currentTabStopId:b}=m;return j.useEffect(()=>{if(r)return x(),()=>O()},[r,x,O]),v.jsx(dS.ItemSlot,{scope:n,id:d,focusable:r,active:a,children:v.jsx(it.span,{tabIndex:h?0:-1,"data-orientation":m.orientation,...c,ref:t,onMouseDown:Fe(e.onMouseDown,S=>{r?m.onItemFocus(d):S.preventDefault()}),onFocus:Fe(e.onFocus,()=>m.onItemFocus(d)),onKeyDown:Fe(e.onKeyDown,S=>{if(S.key==="Tab"&&S.shiftKey){m.onItemShiftTab();return}if(S.target!==S.currentTarget)return;const A=TQ(S,m.orientation,m.dir);if(A!==void 0){if(S.metaKey||S.ctrlKey||S.altKey||S.shiftKey)return;S.preventDefault();let C=g().filter(M=>M.focusable).map(M=>M.ref.current);if(A==="last")C.reverse();else if(A==="prev"||A==="next"){A==="prev"&&C.reverse();const M=C.indexOf(S.currentTarget);C=m.loop?jQ(C,M+1):C.slice(M+1)}setTimeout(()=>gL(C))}}),children:typeof l=="function"?l({isCurrentTabStop:h,hasTabStop:b!=null}):l})})});mL.displayName=pL;var _Q={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function CQ(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function TQ(e,t,n){const r=CQ(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return _Q[r]}function gL(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function jQ(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var EQ=hL,NQ=mL,ng="Tabs",[MQ]=lc(ng,[dL]),vL=dL(),[DQ,MA]=MQ(ng),yL=j.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:a,defaultValue:o,orientation:l="horizontal",dir:c,activationMode:f="automatic",...d}=e,m=NA(c),[h,g]=Tp({prop:r,onChange:a,defaultProp:o??"",caller:ng});return v.jsx(DQ,{scope:n,baseId:ed(),value:h,onValueChange:g,orientation:l,dir:m,activationMode:f,children:v.jsx(it.div,{dir:m,"data-orientation":l,...d,ref:t})})});yL.displayName=ng;var bL="TabsList",xL=j.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...a}=e,o=MA(bL,n),l=vL(n);return v.jsx(EQ,{asChild:!0,...l,orientation:o.orientation,dir:o.dir,loop:r,children:v.jsx(it.div,{role:"tablist","aria-orientation":o.orientation,...a,ref:t})})});xL.displayName=bL;var wL="TabsTrigger",SL=j.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:a=!1,...o}=e,l=MA(wL,n),c=vL(n),f=PL(l.baseId,r),d=_L(l.baseId,r),m=r===l.value;return v.jsx(NQ,{asChild:!0,...c,focusable:!a,active:m,children:v.jsx(it.button,{type:"button",role:"tab","aria-selected":m,"aria-controls":d,"data-state":m?"active":"inactive","data-disabled":a?"":void 0,disabled:a,id:f,...o,ref:t,onMouseDown:Fe(e.onMouseDown,h=>{!a&&h.button===0&&h.ctrlKey===!1?l.onValueChange(r):h.preventDefault()}),onKeyDown:Fe(e.onKeyDown,h=>{[" ","Enter"].includes(h.key)&&l.onValueChange(r)}
302),onFocus:Fe(e.onFocus,()=>{const h=l.activationMode!=="manual";!m&&!a&&h&&l.onValueChange(r)})})})});SL.displayName=wL;var OL="TabsContent",AL=j.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:a,children:o,...l}=e,c=MA(OL,n),f=PL(c.baseId,r),d=_L(c.baseId,r),m=r===c.value,h=j.useRef(m);return j.useEffect(()=>{const g=requestAnimationFrame(()=>h.current=!1);return()=>cancelAnimationFrame(g)},[]),v.jsx(xA,{present:a||m,children:({present:g})=>v.jsx(it.div,{"data-state":m?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":f,hidden:!g,id:d,tabIndex:0,...l,ref:t,style:{...e.style,animationDuration:h.current?"0s":void 0},children:g&&o})})});AL.displayName=OL;function PL(e,t){return`${e}-trigger-${t}`}function _L(e,t){return`${e}-content-${t}`}var RQ=yL,kQ=xL,IQ=SL,LQ=AL;function CL({className:e,...t}){return v.jsx(RQ,{"data-loc":"client/src/components/ui/tabs.tsx:11","data-slot":"tabs",className:It("flex flex-col gap-2",e),...t})}function TL({className:e,...t}){return v.jsx(kQ,{"data-loc":"client/src/components/ui/tabs.tsx:24","data-slot":"tabs-list",className:It("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",e),...t})}function Dp({className:e,...t}){return v.jsx(IQ,{"data-loc":"client/src/components/ui/tabs.tsx:40","data-slot":"tabs-trigger",className:It("data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}function Rp({className:e,...t}){return v.jsx(LQ,{"data-loc":"client/src/components/ui/tabs.tsx:56","data-slot":"tabs-content",className:It("flex-1 outline-none",e),...t})}function $Q(){const[e,t]=j.useState(""),[n,r]=j.useState(""),{data:a}=dt.market.trending.useQuery(),{data:o,isLoading:l}=dt.market.search.useQuery({q:n},{enabled:n.length>0});return v.jsxs("div",{"data-loc":"client/src/pages/MarketPage.tsx:20",className:"container py-10",children:[v.jsxs("div",{"data-loc":"client/src/pages/MarketPage.tsx:22",className:"mb-8",children:[v.jsxs("div",{"data-loc":"client/src/pages/MarketPage.tsx:23",className:"flex items-center gap-3 mb-2",children:[v.jsx(TY,{"data-loc":"client/src/pages/MarketPage.tsx:24",className:"w-6 h-6 text-primary"}),v.jsx("h1",{"data-loc":"client/src/pages/MarketPage.tsx:25",className:"font-display text-3xl font-bold text-gold-gradient",children:"PSA å¡çè¡æ
"})]}),v.jsx("p",{"data-loc":"client/src/pages/MarketPage.tsx:27",className:"text-muted-foreground",children:"PSA 10 æäº¤ä¸ä½æ¸ · æ¸æä¾æºï¼SNKRDUNK + eBay · æ¯æ¥æ´æ°"})]}),v.jsxs("div",{"data-loc":"client/src/pages/MarketPage.tsx:31",className:"flex gap-3 mb-10 max-w-xl",children:[v.jsxs("div",{"data-loc":"client/src/pages/MarketPage.tsx:32",className:"relative flex-1",children:[v.jsx(OA,{"data-loc":"client/src/pages/MarketPage.tsx:33",className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),v.jsx(Vn,{"data-loc":"client/src/pages/MarketPage.tsx:34",value:e,onChange:c=>t(c.target.value),onKeyDown:c=>c.key==="Enter"&&r(e),placeholder:"æå°å¡åï¼ä¾å¦ï¼æ¯å¡è¶
ãå´ç«é¾â¦",className:"pl-10 bg-secondary/50 border-border/50 focus:border-primary"})]}),v.jsx(je,{"data-loc":"client/src/pages/MarketPage.tsx:42",onClick:()=>r(e),className:"bg-primary text-primary-foreground",children:"æå°"})]}),n&&v.jsxs("div",{"data-loc":"client/src/pages/MarketPage.tsx:47",className:"mb-10",children:[v.jsxs("h2",{"data-loc":"client/src/pages/MarketPage.tsx:48",className:"text-lg font-semibold text-foreground mb-4",children:["æå°çµæï¼ã",n,"ã"]}),l?v.jsx("div",{"data-loc":"client/src/pages/MarketPage.tsx:50",className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4",children:Array.from({length:6}).map((c,f)=>v.jsx("div",{"data-loc":"client/src/pages/MarketPage.tsx:51",className:"h-24 rounded-xl bg-card animate-pulse"},f))}):o?.products?.length?v.jsx("div",{"data-loc":"client/src/pages/MarketPage.tsx:56",className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4",children:o.products.map(c=>v.jsx(Le,{"data-loc":"client/src/pages/MarketPage.tsx:58",href:`/card/${c.snkrdunkId||c.id}`,children:v.jsxs("div",{"data-loc":"client/src/pages/MarketPage.tsx:59",className:"p-4 rounded-xl bg-card border border-border/40 hover:border-primary/40 hover:bg-card/80 transition-all cursor-pointer",children:[v.jsx("p",{"data-loc":"client/src/pages/MarketPage.tsx:60",className:"font-medium text-foreground text-sm mb-2",children:c["product-name"]}),v.jsxs("div",{"data-loc":"client/src/pages/MarketPage.tsx:61",className:"flex justify-between text-xs text-muted-foreground",children:[v.jsx("span",{"data-loc":"client/src/pages/MarketPage.tsx:62",children:"PSA 10"}),v.jsx("span",{"data-loc":"client/src/pages/MarketPage.tsx:63",className:"text-primary font-semibold",children:c["manual-only-price"]?`Â¥${c["manual-only-price"].toLocaleStr
302ing()}`:"â"})]})]})},c.snkrdunkId||c.id))}):v.jsx("p",{"data-loc":"client/src/pages/MarketPage.tsx:54",className:"text-muted-foreground",children:"æ¾ä¸å°ç¸éå¡ç"})]}),v.jsxs(CL,{"data-loc":"client/src/pages/MarketPage.tsx:76",defaultValue:"gainers",children:[v.jsxs("div",{"data-loc":"client/src/pages/MarketPage.tsx:77",className:"flex items-center justify-between mb-6",children:[v.jsx("h2",{"data-loc":"client/src/pages/MarketPage.tsx:78",className:"font-display text-xl font-bold text-foreground",children:"æ¬é±æ¦å®"}),v.jsxs(TL,{"data-loc":"client/src/pages/MarketPage.tsx:79",className:"bg-secondary/50",children:[v.jsxs(Dp,{"data-loc":"client/src/pages/MarketPage.tsx:80",value:"gainers",className:"gap-2 data-[state=active]:bg-emerald-500/20 data-[state=active]:text-emerald-400",children:[v.jsx(Cl,{"data-loc":"client/src/pages/MarketPage.tsx:81",className:"w-4 h-4"})," æ¼²å¹
æ¦"]}),v.jsxs(Dp,{"data-loc":"client/src/pages/MarketPage.tsx:83",value:"losers",className:"gap-2 data-[state=active]:bg-red-500/20 data-[state=active]:text-red-400",children:[v.jsx(PA,{"data-loc":"client/src/pages/MarketPage.tsx:84",className:"w-4 h-4"})," è·å¹
æ¦"]})]})]}),v.jsx(Rp,{"data-loc":"client/src/pages/MarketPage.tsx:88",value:"gainers",children:v.jsx(jE,{"data-loc":"client/src/pages/MarketPage.tsx:89",cards:a?.gainers,direction:"up"})}),v.jsx(Rp,{"data-loc":"client/src/pages/MarketPage.tsx:91",value:"losers",children:v.jsx(jE,{"data-loc":"client/src/pages/MarketPage.tsx:92",cards:a?.losers,direction:"down"})})]})]})}function jE({cards:e,direction:t}){return e?v.jsx("div",{"data-loc":"client/src/pages/MarketPage.tsx:109",className:"space-y-3",children:e.map((r,a)=>v.jsx(Le,{"data-loc":"client/src/pages/MarketPage.tsx:111",href:`/card/${r.snkrdunkId||r.id}`,children:v.jsxs("div",{"data-loc":"client/src/pages/MarketPage.tsx:112",className:"flex items-center gap-4 p-4 rounded-xl bg-card border border-border/40 hover:border-primary/30 hover:bg-card/80 transition-all cursor-pointer group",children:[v.jsx("span",{"data-loc":"client/src/pages/MarketPage.tsx:113",className:"text-muted-foreground font-mono text-sm w-6 text-center",children:a+1}),v.jsx("div",{"data-loc":"client/src/pages/MarketPage.tsx:114",className:"w-10 h-14 rounded-lg overflow-hidden bg-secondary/50 flex-shrink-0 border border-border/30",children:r.imageUrl?v.jsx("img",{"data-loc":"client/src/pages/MarketPage.tsx:116",src:r.imageUrl,alt:r.name,className:"w-full h-full object-cover"}):v.jsx("div",{"data-loc":"client/src/pages/MarketPage.tsx:118",className:"w-full h-full flex items-center justify-center text-muted-foreground/30 text-xs",children:"ð"})}),v.jsxs("div",{"data-loc":"client/src/pages/MarketPage.tsx:121",className:"flex-1 min-w-0",children:[v.jsx("p",{"data-loc":"client/src/pages/MarketPage.tsx:122",className:"font-medium text-foreground group-hover:text-primary transition-colors truncate",children:r.name}),v.jsxs("p",{"data-loc":"client/src/pages/MarketPage.tsx:123",className:"text-xs text-muted-foreground mt-0.5",children:["仿¥æäº¤ ",r.salesCount," å®"]})]}),v.jsxs("div",{"data-loc":"client/src/pages/MarketPage.tsx:125",className:"text-right min-w-[120px]",children:[(()=>{const o=r.priceJpy||r.psa10Price,l=o?Math.round(o*.052):null;return v.jsxs(v.Fragment,{children:[v.jsx("p",{"data-loc":"client/src/pages/MarketPage.tsx:131",className:"font-semibold text-foreground text-sm",children:o?`Â¥${o.toLocaleString()}`:"â"}),v.jsx("p",{"data-loc":"client/src/pages/MarketPage.tsx:134",className:"text-xs text-primary font-medium",children:l?`â HK$${l.toLocaleString()}`:""})]})})(),v.jsxs("p",{"data-loc":"client/src/pages/MarketPage.tsx:140",className:`text-sm font-bold ${t==="up"?"text-emerald-400":"text-red-400"}`,children:[t==="up"?"+":"",r.change.toFixed(1),"%"]})]})]})},r.snkrdunkId||r.id))}):v.jsx("div",{"data-loc":"client/src/pages/MarketPage.tsx:104",className:"space-y-3",children:Array.from({length:20}).map((r,a)=>v.jsx("div",{"data-loc":"client/src/pages/MarketPage.tsx:105",className:"h-16 rounded-xl bg-card animate-pulse"},a))})}var A0,EE;function Yn(){if(EE)return A0;EE=1;var e=Array.isArray;return A0=e,A0}var P0,NE;function jL(){if(NE)return P0;NE=1;var e=typeof Dh=="object"&&Dh&&Dh.Object===Object&&Dh;return P0=e,P0}var _0,ME;function Oa(){if(ME)return _0;ME=1;var e=jL(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return _0=n,_0}var C0,DE;function ad(){if(DE)return C0;DE=1;var e=Oa(),t=e.Symbol;return C0=t,C0}var T0,RE;function BQ(){if(RE)return T0;RE=1;var e=ad(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,a=e?e.toStringTag:void 0;function o(l){var c=n.call(l,a),f=l[a];try{l[a]=void 0;var d=!0}catch{}var m=r.call(l);return d&&(c?l[a]=f:delete l[a]),m}return T0=o,T0}var j0,kE;function qQ(){if(kE)return j0;kE=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return j0=n,j0}var E0,IE;function ci(){if(IE)return E0;IE=1;
vendor: 1,266 bytes, line 302
302var e=ad(),t=BQ(),n=qQ(),r="[object Null]",a="[object Undefined]",o=e?e.toStringTag:void 0;function l(c){return c==null?c===void 0?a:r:o&&o in Object(c)?t(c):n(c)}return E0=l,E0}var N0,LE;function ui(){if(LE)return N0;LE=1;function e(t){return t!=null&&typeof t=="object"}return N0=e,N0}var M0,$E;function pc(){if($E)return M0;$E=1;var e=ci(),t=ui(),n="[object Symbol]";function r(a){return typeof a=="symbol"||t(a)&&e(a)==n}return M0=r,M0}var D0,BE;function DA(){if(BE)return D0;BE=1;var e=Yn(),t=pc(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function a(o,l){if(e(o))return!1;var c=typeof o;return c=="number"||c=="symbol"||c=="boolean"||o==null||t(o)?!0:r.test(o)||!n.test(o)||l!=null&&o in Object(l)}return D0=a,D0}var R0,qE;function ro(){if(qE)return R0;qE=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return R0=e,R0}var k0,zE;function RA(){if(zE)return k0;zE=1;var e=ci(),t=ro(),n="[object AsyncFunction]",r="[object Function]",a="[object GeneratorFunction]",o="[object Proxy]";function l(c){if(!t(c))return!1;var f=e(c);return f==r||f==a||f==n||f==o}return k0=l,k0}var I0,UE;function zQ(){if(UE)return I0;UE=1;var e=Oa(),t=e["__core-js_shared__"];return I0=t,I0}var L0,HE;function UQ(){if(HE)return L0;HE=1;
vendor: 4,655 bytes, line 302
302var e=zQ(),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 L0=n,L0}var $0,VE;function EL(){if(VE)return $0;VE=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 $0=n,$0}var B0,FE;function HQ(){if(FE)return B0;FE=1;var e=RA(),t=UQ(),n=ro(),r=EL(),a=/[\\^$.*+?()[\]{}|]/g,o=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,f=l.toString,d=c.hasOwnProperty,m=RegExp("^"+f.call(d).replace(a,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function h(g){if(!n(g)||t(g))return!1;var x=e(g)?m:o;return x.test(r(g))}return B0=h,B0}var q0,KE;function VQ(){if(KE)return q0;KE=1;function e(t,n){return t?.[n]}return q0=e,q0}var z0,GE;function ms(){if(GE)return z0;GE=1;var e=HQ(),t=VQ();function n(r,a){var o=t(r,a);return e(o)?o:void 0}return z0=n,z0}var U0,YE;function rg(){if(YE)return U0;YE=1;var e=ms(),t=e(Object,"create");return U0=t,U0}var H0,XE;function FQ(){if(XE)return H0;XE=1;var e=rg();function t(){this.__data__=e?e(null):{},this.size=0}return H0=t,H0}var V0,QE;function KQ(){if(QE)return V0;QE=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return V0=e,V0}var F0,WE;function GQ(){if(WE)return F0;WE=1;var e=rg(),t="__lodash_hash_undefined__",n=Object.prototype,r=n.hasOwnProperty;function a(o){var l=this.__data__;if(e){var c=l[o];return c===t?void 0:c}return r.call(l,o)?l[o]:void 0}return F0=a,F0}var K0,ZE;function YQ(){if(ZE)return K0;ZE=1;var e=rg(),t=Object.prototype,n=t.hasOwnProperty;function r(a){var o=this.__data__;return e?o[a]!==void 0:n.call(o,a)}return K0=r,K0}var G0,JE;function XQ(){if(JE)return G0;JE=1;var e=rg(),t="__lodash_hash_undefined__";function n(r,a){var o=this.__data__;return this.size+=this.has(r)?0:1,o[r]=e&&a===void 0?t:a,this}return G0=n,G0}var Y0,eN;function QQ(){if(eN)return Y0;eN=1;var e=FQ(),t=KQ(),n=GQ(),r=YQ(),a=XQ();function o(l){var c=-1,f=l==null?0:l.length;for(this.clear();++c<f;){var d=l[c];this.set(d[0],d[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=a,Y0=o,Y0}var X0,tN;function WQ(){if(tN)return X0;tN=1;function e(){this.__data__=[],this.size=0}return X0=e,X0}var Q0,nN;function kA(){if(nN)return Q0;nN=1;function e(t,n){return t===n||t!==t&&n!==n}return Q0=e,Q0}var W0,rN;function ag(){if(rN)return W0;rN=1;var e=kA();function t(n,r){for(var a=n.length;a--;)if(e(n[a][0],r))return a;return-1}return W0=t,W0}var Z0,aN;function ZQ(){if(aN)return Z0;aN=1;var e=ag(),t=Array.prototype,n=t.splice;function r(a){var o=this.__data__,l=e(o,a);if(l<0)return!1;var c=o.length-1;return l==c?o.pop():n.call(o,l,1),--this.size,!0}return Z0=r,Z0}var J0,iN;function JQ(){if(iN)return J0;iN=1;var e=ag();function t(n){var r=this.__data__,a=e(r,n);return a<0?void 0:r[a][1]}return J0=t,J0}var eb,oN;function eW(){if(oN)return eb;oN=1;var e=ag();function t(n){return e(this.__data__,n)>-1}return eb=t,eb}var tb,sN;function tW(){if(sN)return tb;sN=1;var e=ag();function t(n,r){var a=this.__data__,o=e(a,n);return o<0?(++this.size,a.push([n,r])):a[o][1]=r,this}return tb=t,tb}var nb,lN;function ig(){if(lN)return nb;lN=1;var e=WQ(),t=ZQ(),n=JQ(),r=eW(),a=tW();function o(l){var c=-1,f=l==null?0:l.length;for(this.clear();++c<f;){var d=l[c];this.set(d[0],d[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=a,nb=o,nb}var rb,cN;function IA(){if(cN)return rb;cN=1;var e=ms(),t=Oa(),n=e(t,"Map");return rb=n,rb}var ab,uN;function nW(){if(uN)return ab;uN=1;var e=QQ(),t=ig(),n=IA();function r(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}return ab=r,ab}var ib,fN;function rW(){if(fN)return ib;fN=1;function e(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}return ib=e,ib}var ob,dN;function og(){if(dN)return ob;dN=1;var e=rW();function t(n,r){var a=n.__data__;return e(r)?a[typeof r=="string"?"string":"hash"]:a.map}return ob=t,ob}var sb,hN;function aW(){if(hN)return sb;hN=1;var e=og();function t(n){var r=e(this,n).delete(n);return this.size-=r?1:0,r}return sb=t,sb}var lb,pN;function iW(){if(pN)return lb;pN=1;var e=og();function t(n){return e(this,n).get(n)}return lb=t,lb}var cb,mN;function oW(){if(mN)return cb;mN=1;var e=og();function t(n){return e(this,n).has(n)}return cb=t,cb}var ub,gN;function sW(){if(gN)return ub;gN=1;var e=og();function t(n,r){var a=e(this,n),o=a.size;return a.set(n,r),this.size+=a.size==o?0:1,this}return ub=t,ub}var fb,vN;
vendor: 11,080 bytes, lines 302-310
302function LA(){if(vN)return fb;vN=1;var e=nW(),t=aW(),n=iW(),r=oW(),a=sW();function o(l){var c=-1,f=l==null?0:l.length;for(this.clear();++c<f;){var d=l[c];this.set(d[0],d[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=a,fb=o,fb}var db,yN;function NL(){if(yN)return db;yN=1;var e=LA(),t="Expected a function";function n(r,a){if(typeof r!="function"||a!=null&&typeof a!="function")throw new TypeError(t);var o=function(){var l=arguments,c=a?a.apply(this,l):l[0],f=o.cache;if(f.has(c))return f.get(c);var d=r.apply(this,l);return o.cache=f.set(c,d)||f,d};return o.cache=new(n.Cache||e),o}return n.Cache=e,db=n,db}var hb,bN;function lW(){if(bN)return hb;bN=1;var e=NL(),t=500;function n(r){var a=e(r,function(l){return o.size===t&&o.clear(),l}),o=a.cache;return a}return hb=n,hb}var pb,xN;function cW(){if(xN)return pb;xN=1;var e=lW(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=e(function(a){var o=[];return a.charCodeAt(0)===46&&o.push(""),a.replace(t,function(l,c,f,d){o.push(f?d.replace(n,"$1"):c||l)}),o});return pb=r,pb}var mb,wN;function $A(){if(wN)return mb;wN=1;function e(t,n){for(var r=-1,a=t==null?0:t.length,o=Array(a);++r<a;)o[r]=n(t[r],r,t);return o}return mb=e,mb}var gb,SN;function uW(){if(SN)return gb;SN=1;var e=ad(),t=$A(),n=Yn(),r=pc(),a=e?e.prototype:void 0,o=a?a.toString:void 0;function l(c){if(typeof c=="string")return c;if(n(c))return t(c,l)+"";if(r(c))return o?o.call(c):"";var f=c+"";return f=="0"&&1/c==-1/0?"-0":f}return gb=l,gb}var vb,ON;function ML(){if(ON)return vb;ON=1;var e=uW();function t(n){return n==null?"":e(n)}return vb=t,vb}var yb,AN;function DL(){if(AN)return yb;AN=1;var e=Yn(),t=DA(),n=cW(),r=ML();function a(o,l){return e(o)?o:t(o,l)?[o]:n(r(o))}return yb=a,yb}var bb,PN;function sg(){if(PN)return bb;PN=1;var e=pc();function t(n){if(typeof n=="string"||e(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}return bb=t,bb}var xb,_N;function BA(){if(_N)return xb;_N=1;var e=DL(),t=sg();function n(r,a){a=e(a,r);for(var o=0,l=a.length;r!=null&&o<l;)r=r[t(a[o++])];return o&&o==l?r:void 0}return xb=n,xb}var wb,CN;function RL(){if(CN)return wb;CN=1;var e=BA();function t(n,r,a){var o=n==null?void 0:e(n,r);return o===void 0?a:o}return wb=t,wb}var fW=RL();const Mr=ut(fW);var Sb,TN;function dW(){if(TN)return Sb;TN=1;function e(t){return t==null}return Sb=e,Sb}var hW=dW();const qe=ut(hW);var Ob,jN;function pW(){if(jN)return Ob;jN=1;var e=ci(),t=Yn(),n=ui(),r="[object String]";function a(o){return typeof o=="string"||!t(o)&&n(o)&&e(o)==r}return Ob=a,Ob}var mW=pW();const is=ut(mW);var gW=RA();const Ie=ut(gW);var vW=ro();const mc=ut(vW);var Ab={exports:{}},et={};/** 303 * @license React 304 * react-is.production.min.js 305 * 306 * Copyright (c) Facebook, Inc. and its affiliates. 307 * 308 * This source code is licensed under the MIT license found in the 309 * LICENSE file in the root directory of this source tree. 310 */var EN;function yW(){if(EN)return et;EN=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),x=Symbol.for("react.offscreen"),O;O=Symbol.for("react.module.reference");function b(S){if(typeof S=="object"&&S!==null){var A=S.$$typeof;switch(A){case e:switch(S=S.type,S){case n:case a:case r:case d:case m:return S;default:switch(S=S&&S.$$typeof,S){case c:case l:case f:case g:case h:case o:return S;default:return A}}case t:return A}}}return et.ContextConsumer=l,et.ContextProvider=o,et.Element=e,et.ForwardRef=f,et.Fragment=n,et.Lazy=g,et.Memo=h,et.Portal=t,et.Profiler=a,et.StrictMode=r,et.Suspense=d,et.SuspenseList=m,et.isAsyncMode=function(){return!1},et.isConcurrentMode=function(){return!1},et.isContextConsumer=function(S){return b(S)===l},et.isContextProvider=function(S){return b(S)===o},et.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===e},et.isForwardRef=function(S){return b(S)===f},et.isFragment=function(S){return b(S)===n},et.isLazy=function(S){return b(S)===g},et.isMemo=function(S){return b(S)===h},et.isPortal=function(S){return b(S)===t},et.isProfiler=function(S){return b(S)===a},et.isStrictMode=function(S){return b(S)===r},et.isSuspense=function(S){return b(S)===d},et.isSuspenseList=function(S){return b(S)===m},et.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===n||S===a||S===r||S===d||S===m||S===x||typeof S=="object"&&S!==null&&(S.$$typeof===g||S.$$typeof===h||S.$$typeof===o||S.$$typeof===l||S.$$typeof===f||S.$$typeof===O||S.getModuleId!==void 0)},et.typeOf=b,et}var NN;function bW(){return NN||(NN=1,Ab.exports=yW()),Ab.exports}var xW=bW(),Pb,MN;function kL(){if(MN)return Pb;MN=1;var e=ci(),t=ui(),n="[object Number]";function r(a){return typeof a=="number"||t(a)&&e(a)==n}return Pb=r,Pb}var _b,DN;function wW(){if(DN)return _b;DN=1;var e=kL();function t(n){return e(n)&&n!=+n}return _b=t,_b}var SW=wW();const id=ut(SW);var OW=kL();const AW=ut(OW);var Qr=function(t){return t===0?0:t>0?1:-1},Fo=function(t){return is(t)&&t.indexOf("%")===t.length-1},ge=function(t){return AW(t)&&!id(t)},PW=function(t){return qe(t)},Qt=function(t){return ge(t)||is(t)},_W=0,od=function(t){var n=++_W;return"".concat(t||"").concat(n)},os=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!ge(t)&&!is(t))return r;var o;if(Fo(t)){var l=t.indexOf("%");o=n*parseFloat(t.slice(0,l))/100}else o=+t;return id(o)&&(o=r),a&&o>n&&(o=n),o},Hi=function(t){if(!t)return null;var n=Object.keys(t);return n&&n.length?t[n[0]]:null},CW=function(t){if(!Array.isArray(t))return!1;for(var n=t.length,r={},a=0;a<n;a++)if(!r[t[a]])r[t[a]]=!0;else return!0;return!1},Yr=function(t,n){return ge(t)&&ge(n)?function(r){return t+r*(n-t)}:function(){return n}};function kp(e,t,n){return!e||!e.length?null:e.find(function(r){return r&&(typeof t=="function"?t(r):Mr(r,t))===n})}var TW=function(t,n){return ge(t)&&ge(n)?t-n:is(t)&&is(n)?t.localeCompare(n):t instanceof Date&&n instanceof Date?t.getTime()-n.getTime():String(t).localeCompare(String(n))};function jl(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 hS(e){"@babel/helpers - typeof";return hS=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},hS(e)}var jW=["viewBox","children"],EW=["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"],RN=["points","pathLength"],Cb={svg:jW,polygon:RN,polyline:RN},qA=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onF
310ocus","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"],Ip=function(t,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var r=t;if(j.isValidElement(t)&&(r=t.props),!mc(r))return null;var a={};return Object.keys(r).forEach(function(o){qA.includes(o)&&(a[o]=n||function(l){return r[o](r,l)})}),a},NW=function(t,n,r){return function(a){return t(n,r,a),null}},Lp=function(t,n,r){if(!mc(t)||hS(t)!=="object")return null;var a=null;return Object.keys(t).forEach(function(o){var l=t[o];qA.includes(o)&&typeof l=="function"&&(a||(a={}),a[o]=NW(l,n,r))}),a},MW=["children"],DW=["children"];function kN(e,t){if(e==null)return{};var n=RW(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function RW(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 pS(e){"@babel/helpers - typeof";return pS=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},pS(e)}var IN={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"}
vendor: 4,375 bytes, line 310
310,Xa=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},LN=null,Tb=null,zA=function e(t){if(t===LN&&Array.isArray(Tb))return Tb;var n=[];return j.Children.forEach(t,function(r){qe(r)||(xW.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),Tb=n,LN=t,n};function Dr(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(a){return Xa(a)}):r=[Xa(t)],zA(e).forEach(function(a){var o=Mr(a,"type.displayName")||Mr(a,"type.name");r.indexOf(o)!==-1&&n.push(a)}),n}function ir(e,t){var n=Dr(e,t);return n&&n[0]}var $N=function(t){if(!t||!t.props)return!1;var n=t.props,r=n.width,a=n.height;return!(!ge(r)||r<=0||!ge(a)||a<=0)},kW=["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"],IW=function(t){return t&&t.type&&is(t.type)&&kW.indexOf(t.type)>=0},LW=function(t){return t&&pS(t)==="object"&&"clipDot"in t},$W=function(t,n,r,a){var o,l=(o=Cb?.[a])!==null&&o!==void 0?o:[];return n.startsWith("data-")||!Ie(t)&&(a&&l.includes(n)||EW.includes(n))||r&&qA.includes(n)},Ke=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var a=t;if(j.isValidElement(t)&&(a=t.props),!mc(a))return null;var o={};return Object.keys(a).forEach(function(l){var c;$W((c=a)===null||c===void 0?void 0:c[l],l,n,r)&&(o[l]=a[l])}),o},mS=function e(t,n){if(t===n)return!0;var r=j.Children.count(t);if(r!==j.Children.count(n))return!1;if(r===0)return!0;if(r===1)return BN(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var a=0;a<r;a++){var o=t[a],l=n[a];if(Array.isArray(o)||Array.isArray(l)){if(!e(o,l))return!1}else if(!BN(o,l))return!1}return!0},BN=function(t,n){if(qe(t)&&qe(n))return!0;if(!qe(t)&&!qe(n)){var r=t.props||{},a=r.children,o=kN(r,MW),l=n.props||{},c=l.children,f=kN(l,DW);return a&&c?jl(o,f)&&mS(a,c):!a&&!c?jl(o,f):!1}return!1},qN=function(t,n){var r=[],a={};return zA(t).forEach(function(o,l){if(IW(o))r.push(o);else if(o){var c=Xa(o.type),f=n[c]||{},d=f.handler,m=f.once;if(d&&(!m||!a[c])){var h=d(o,c,l);r.push(h),a[c]=!0}}}),r},BW=function(t){var n=t&&t.type;return n&&IN[n]?IN[n]:null},qW=function(t,n){return zA(n).indexOf(t)},zW=["children","width","height","viewBox","className","style","title","desc"];function gS(){return gS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gS.apply(this,arguments)}function UW(e,t){if(e==null)return{};var n=HW(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function HW(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 vS(e){var t=e.children,n=e.width,r=e.height,a=e.viewBox,o=e.className,l=e.style,c=e.title,f=e.desc,d=UW(e,zW),m=a||{width:n,height:r,x:0,y:0},h=Ge("recharts-surface",o);return V.createElement("svg",gS({},Ke(d,!0,"svg"),{className:h,width:n,height:r,style:l,viewBox:"".concat(m.x," ").concat(m.y," ").concat(m.width," ").concat(m.height)}),V.createElement("title",null,c),V.createElement("desc",null,f),t)}var VW=["children","className"];function yS(){return yS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yS.apply(this,arguments)}function FW(e,t){if(e==null)return{};var n=KW(e,t),r,a;
310if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function KW(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 Rt=V.forwardRef(function(e,t){var n=e.children,r=e.className,a=FW(e,VW),o=Ge("recharts-layer",r);return V.createElement("g",yS({className:o},Ke(a,!0),{ref:t}),n)}),Qa=function(t,n){for(var r=arguments.length,a=new Array(r>2?r-2:0),o=2;o<r;o++)a[o-2]=arguments[o]},jb,zN;function GW(){if(zN)return jb;zN=1;function e(t,n,r){var a=-1,o=t.length;n<0&&(n=-n>o?0:o+n),r=r>o?o:r,r<0&&(r+=o),o=n>r?0:r-n>>>0,n>>>=0;for(var l=Array(o);++a<o;)l[a]=t[a+n];return l}return jb=e,jb}var Eb,UN;function YW(){if(UN)return Eb;UN=1;var e=GW();function t(n,r,a){var o=n.length;return a=a===void 0?o:a,!r&&a>=o?n:e(n,r,a)}return Eb=t,Eb}var Nb,HN;function IL(){if(HN)return Nb;HN=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",a=t+n+r,o="\\ufe0e\\ufe0f",l="\\u200d",c=RegExp("["+l+e+a+o+"]");function f(d){return c.test(d)}return Nb=f,Nb}var Mb,VN;function XW(){if(VN)return Mb;VN=1;function e(t){return t.split("")}return Mb=e,Mb}var Db,FN;function QW(){if(FN)return Db;FN=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",a=t+n+r,o="\\ufe0e\\ufe0f",l="["+e+"]",c="["+a+"]",f="\\ud83c[\\udffb-\\udfff]",d="(?:"+c+"|"+f+")",m="[^"+e+"]",h="(?:\\ud83c[\\udde6-\\uddff]){2}",g="[\\ud800-\\udbff][\\udc00-\\udfff]",x="\\u200d",O=d+"?",b="["+o+"]?",S="(?:"+x+"(?:"+[m,h,g].join("|")+")"+b+O+")*",A=b+O+S,_="(?:"+[m+c+"?",c,h,g,l].join("|")+")",C=RegExp(f+"(?="+f+")|"+_+A,"g");function M(P){return P.match(C)||[]}return Db=M,Db}var Rb,KN;function WW(){if(KN)return Rb;KN=1;var e=XW(),t=IL(),n=QW();function r(a){return t(a)?n(a):e(a)}return Rb=r,Rb}var kb,GN;function ZW(){if(GN)return kb;GN=1;var e=YW(),t=IL(),n=WW(),r=ML();function a(o){return function(l){l=r(l);var c=t(l)?n(l):void 0,f=c?c[0]:l.charAt(0),d=c?e(c,1).join(""):l.slice(1);return f[o]()+d}}return kb=a,kb}var Ib,YN;function JW(){if(YN)return Ib;YN=1;var e=ZW(),t=e("toUpperCase");return Ib=t,Ib}var eZ=JW();const lg=ut(eZ);function mt(e){return function(){return e}}const LL=Math.cos,$p=Math.sin,ea=Math.sqrt,Bp=Math.PI,cg=2*Bp,bS=Math.PI,xS=2*bS,qo=1e-6,tZ=xS-qo;function $L(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function nZ(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return $L;const n=10**t;return function(r){this._+=r[0];for(let a=1,o=r.length;a<o;++a)this._+=Math.round(arguments[a]*n)/n+r[a]}}class rZ{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?$L:nZ(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,a){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+a}`}bezierCurveTo(t,n,r,a,o,l){this._append`C${+t},${+n},${+r},${+a},${this._x1=+o},${this._y1=+l}`}arcTo(t,n,r,a,o){if(t=+t,n=+n,r=+r,a=+a,o=+o,o<0)throw new Error(`negative radius: ${o}`);let l=this._x1,c=this._y1,f=r-t,d=a-n,m=l-t,h=c-n,g=m*m+h*h;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(g>qo)if(!(Math.abs(h*f-d*m)>qo)||!o)this._append`L${this._x1=t},${this._y1=n}`;else{let x=r-l,O=a-c,b=f*f+d*d,S=x*x+O*O,A=Math.sqrt(b),_=Math.sqrt(g),C=o*Math.tan((bS-Math.acos((b+g-S)/(2*A*_)))/2),M=C/_,P=C/A;Math.abs(M-1)>qo&&this._append`L${t+M*m},${n+M*h}`,this._append`A${o},${o},0,0,${+(h*x>m*O)},${this._x1=t+P*f},${this._y1=n+P*d}`}}arc(t,n,r,a,o,l){if(t=+t,n=+n,r=+r,l=!!l,r<0)throw new Error(`negative radius: ${r}`);let c=r*Math.cos(a),f=r*Math.sin(a),d=t+c,m=n+f,h=1^l,g=l?a-o:o-a;this._x1===null?this._append`M${d},${m}`:(Math.abs(this._x1-d)>qo||Math.abs(this._y1-m)>qo)&&this._append`L${d},${m}`,r&&(g<0&&(g=g%xS+xS),g>tZ?this._append`A${r},${r},0,1,${h}
310,${t-c},${n-f}A${r},${r},0,1,${h},${this._x1=d},${this._y1=m}`:g>qo&&this._append`A${r},${r},0,${+(g>=bS)},${h},${this._x1=t+r*Math.cos(o)},${this._y1=n+r*Math.sin(o)}`)}rect(t,n,r,a){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+a}h${-r}Z`}toString(){return this._}}function UA(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 rZ(t)}function HA(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function BL(e){this._context=e}BL.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 ug(e){return new BL(e)}function qL(e){return e[0]}function zL(e){return e[1]}function UL(e,t){var n=mt(!0),r=null,a=ug,o=null,l=UA(c);e=typeof e=="function"?e:e===void 0?qL:mt(e),t=typeof t=="function"?t:t===void 0?zL:mt(t);function c(f){var d,m=(f=HA(f)).length,h,g=!1,x;for(r==null&&(o=a(x=l())),d=0;d<=m;++d)!(d<m&&n(h=f[d],d,f))===g&&((g=!g)?o.lineStart():o.lineEnd()),g&&o.point(+e(h,d,f),+t(h,d,f));if(x)return o=null,x+""||null}return c.x=function(f){return arguments.length?(e=typeof f=="function"?f:mt(+f),c):e},c.y=function(f){return arguments.length?(t=typeof f=="function"?f:mt(+f),c):t},c.defined=function(f){return arguments.length?(n=typeof f=="function"?f:mt(!!f),c):n},c.curve=function(f){return arguments.length?(a=f,r!=null&&(o=a(r)),c):a},c.context=function(f){return arguments.length?(f==null?r=o=null:o=a(r=f),c):r},c}function Yh(e,t,n){var r=null,a=mt(!0),o=null,l=ug,c=null,f=UA(d);e=typeof e=="function"?e:e===void 0?qL:mt(+e),t=typeof t=="function"?t:mt(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?zL:mt(+n);function d(h){var g,x,O,b=(h=HA(h)).length,S,A=!1,_,C=new Array(b),M=new Array(b);for(o==null&&(c=l(_=f())),g=0;g<=b;++g){if(!(g<b&&a(S=h[g],g,h))===A)if(A=!A)x=g,c.areaStart(),c.lineStart();else{for(c.lineEnd(),c.lineStart(),O=g-1;O>=x;--O)c.point(C[O],M[O]);c.lineEnd(),c.areaEnd()}A&&(C[g]=+e(S,g,h),M[g]=+t(S,g,h),c.point(r?+r(S,g,h):C[g],n?+n(S,g,h):M[g]))}if(_)return c=null,_+""||null}function m(){return UL().defined(a).curve(l).context(o)}return d.x=function(h){return arguments.length?(e=typeof h=="function"?h:mt(+h),r=null,d):e},d.x0=function(h){return arguments.length?(e=typeof h=="function"?h:mt(+h),d):e},d.x1=function(h){return arguments.length?(r=h==null?null:typeof h=="function"?h:mt(+h),d):r},d.y=function(h){return arguments.length?(t=typeof h=="function"?h:mt(+h),n=null,d):t},d.y0=function(h){return arguments.length?(t=typeof h=="function"?h:mt(+h),d):t},d.y1=function(h){return arguments.length?(n=h==null?null:typeof h=="function"?h:mt(+h),d):n},d.lineX0=d.lineY0=function(){return m().x(e).y(t)},d.lineY1=function(){return m().x(e).y(n)},d.lineX1=function(){return m().x(r).y(t)},d.defined=function(h){return arguments.length?(a=typeof h=="function"?h:mt(!!h),d):a},d.curve=function(h){return arguments.length?(l=h,o!=null&&(c=l(o)),d):l},d.context=function(h){return arguments.length?(h==null?o=c=null:c=l(o=h),d):o},d}class HL{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 aZ(e){return new HL(e,!0)}function iZ(e){return new HL(e,!1)}const VA={draw(e,t){const n=ea(t/Bp);e.moveTo(n,0),e.arc(0,0,n,0,cg)}},oZ={draw(e,t){const n=ea(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()}},VL=ea(1/3),sZ=VL*2,lZ={draw(e,t){const n=ea(t/sZ),r=n*VL;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},cZ={draw(e,t){const n=ea(t),r=-n/2;e.rect(r,r,n,n)}},uZ=.8908130915292852,FL=$p(Bp/10)/$p(7*Bp/10),fZ=$p(cg/10)*FL,dZ=-LL(cg/10)*FL,hZ={draw(e,t){const n=ea(t*uZ),r=fZ*n,a=dZ*n;e.moveTo(0,-n),e.lineTo(r,a);for(let o=1;o<5;++o){const l=cg*o/5,c=LL(l),f=$p(l);e.lineTo(f*n,-c*n),e.lineTo(c*r-f*a,f*r+c*a)}e.closePath()}},Lb=ea(3),pZ={draw(e,t){const n=-ea(t/(Lb*3));e.moveTo(0,n*2),e.lineTo(-Lb*n,-n),e.lineTo(Lb*n,-n),e.closePath()}}
vendor: 7,115 bytes, line 310
310,Or=-.5,Ar=ea(3)/2,wS=1/ea(12),mZ=(wS/2+1)*3,gZ={draw(e,t){const n=ea(t/mZ),r=n/2,a=n*wS,o=r,l=n*wS+n,c=-o,f=l;e.moveTo(r,a),e.lineTo(o,l),e.lineTo(c,f),e.lineTo(Or*r-Ar*a,Ar*r+Or*a),e.lineTo(Or*o-Ar*l,Ar*o+Or*l),e.lineTo(Or*c-Ar*f,Ar*c+Or*f),e.lineTo(Or*r+Ar*a,Or*a-Ar*r),e.lineTo(Or*o+Ar*l,Or*l-Ar*o),e.lineTo(Or*c+Ar*f,Or*f-Ar*c),e.closePath()}};function vZ(e,t){let n=null,r=UA(a);e=typeof e=="function"?e:mt(e||VA),t=typeof t=="function"?t:mt(t===void 0?64:+t);function a(){let o;if(n||(n=o=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),o)return n=null,o+""||null}return a.type=function(o){return arguments.length?(e=typeof o=="function"?o:mt(o),a):e},a.size=function(o){return arguments.length?(t=typeof o=="function"?o:mt(+o),a):t},a.context=function(o){return arguments.length?(n=o??null,a):n},a}function qp(){}function zp(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 KL(e){this._context=e}KL.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:zp(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:zp(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function yZ(e){return new KL(e)}function GL(e){this._context=e}GL.prototype={areaStart:qp,areaEnd:qp,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:zp(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function bZ(e){return new GL(e)}function YL(e){this._context=e}YL.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:zp(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function xZ(e){return new YL(e)}function XL(e){this._context=e}XL.prototype={areaStart:qp,areaEnd:qp,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 wZ(e){return new XL(e)}function XN(e){return e<0?-1:1}function QN(e,t,n){var r=e._x1-e._x0,a=t-e._x1,o=(e._y1-e._y0)/(r||a<0&&-0),l=(n-e._y1)/(a||r<0&&-0),c=(o*a+l*r)/(r+a);return(XN(o)+XN(l))*Math.min(Math.abs(o),Math.abs(l),.5*Math.abs(c))||0}function WN(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function $b(e,t,n){var r=e._x0,a=e._y0,o=e._x1,l=e._y1,c=(o-r)/3;e._context.bezierCurveTo(r+c,a+c*t,o-c,l-c*n,o,l)}function Up(e){this._context=e}Up.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:$b(this,this._t0,WN(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,$b(this,WN(this,n=QN(this,e,t)),n);break;default:$b(this,this._t0,n=QN(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function QL(e){this._context=new WL(e)}(QL.prototype=Object.create(Up.prototype)).point=function(e,t){Up.prototype.point.call(this,t,e)};function WL(e){this._context=e}WL.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,a,o){this._context.bezierCurveTo(t,e,r,n,o,a)}};function SZ(e){return new Up(e)}function OZ(e){return new QL(e)}function ZL(e){this._context=e}ZL.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=ZN(e),a=ZN(t),o=0,l=1;l<n;++o,++l)this._context.bezierCurveTo(r[0][o],a[0][o],r[1][o],a[1][o],e[l],t[l]);(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 ZN(e){var t,n=e.length-1,r,a=new Array(n),o=new Array(n),l=new Array(n);for(a[0]=0,o[0]=2,l[0]=e[0]+2*e[1],t=1;t<n-1;++t)a[t]=1,o[t]=4,l[t]=4*e[t]+2*e[t+1];for(a[n-1]=2,o[n-1]=7,l[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=a[t]/o[t-1],o[t]-=r,l[t]-=r*l[t-1];for(a[n-1]=l[n-1]/o[n-1],t=n-2;t>=0;--t)a[t]=(l[t]-a[t+1])/o[t];for(o[n-1]=(e[n]+a[n-1])/2,t=0;t<n-1;++t)o[t]=2*e[t+1]-a[t+1];return[a,o]}function AZ(e){return new ZL(e)}function fg(e,t){this._context=e,this._t=t}fg.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;
vendor: 10,678 bytes, lines 310-313
310default:{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 PZ(e){return new fg(e,.5)}function _Z(e){return new fg(e,0)}function CZ(e){return new fg(e,1)}function $l(e,t){if((l=e.length)>1)for(var n=1,r,a,o=e[t[0]],l,c=o.length;n<l;++n)for(a=o,o=e[t[n]],r=0;r<c;++r)o[r][1]+=o[r][0]=isNaN(a[r][1])?a[r][0]:a[r][1]}function SS(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function TZ(e,t){return e[t]}function jZ(e){const t=[];return t.key=e,t}function EZ(){var e=mt([]),t=SS,n=$l,r=TZ;function a(o){var l=Array.from(e.apply(this,arguments),jZ),c,f=l.length,d=-1,m;for(const h of o)for(c=0,++d;c<f;++c)(l[c][d]=[0,+r(h,l[c].key,d,o)]).data=h;for(c=0,m=HA(t(l));c<f;++c)l[m[c]].index=c;return n(l,m),l}return a.keys=function(o){return arguments.length?(e=typeof o=="function"?o:mt(Array.from(o)),a):e},a.value=function(o){return arguments.length?(r=typeof o=="function"?o:mt(+o),a):r},a.order=function(o){return arguments.length?(t=o==null?SS:typeof o=="function"?o:mt(Array.from(o)),a):t},a.offset=function(o){return arguments.length?(n=o??$l,a):n},a}function NZ(e,t){if((r=e.length)>0){for(var n,r,a=0,o=e[0].length,l;a<o;++a){for(l=n=0;n<r;++n)l+=e[n][a][1]||0;if(l)for(n=0;n<r;++n)e[n][a][1]/=l}$l(e,t)}}function MZ(e,t){if((a=e.length)>0){for(var n=0,r=e[t[0]],a,o=r.length;n<o;++n){for(var l=0,c=0;l<a;++l)c+=e[l][n][1]||0;r[n][1]+=r[n][0]=-c/2}$l(e,t)}}function DZ(e,t){if(!(!((l=e.length)>0)||!((o=(a=e[t[0]]).length)>0))){for(var n=0,r=1,a,o,l;r<o;++r){for(var c=0,f=0,d=0;c<l;++c){for(var m=e[t[c]],h=m[r][1]||0,g=m[r-1][1]||0,x=(h-g)/2,O=0;O<c;++O){var b=e[t[O]],S=b[r][1]||0,A=b[r-1][1]||0;x+=S-A}f+=h,d+=x*h}a[r-1][1]+=a[r-1][0]=n,f&&(n-=d/f)}a[r-1][1]+=a[r-1][0]=n,$l(e,t)}}function lf(e){"@babel/helpers - typeof";return lf=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},lf(e)}var RZ=["type","size","sizeType"];function OS(){return OS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},OS.apply(this,arguments)}function JN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function eM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?JN(Object(n),!0).forEach(function(r){kZ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function kZ(e,t,n){return t=IZ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function IZ(e){var t=LZ(e,"string");return lf(t)=="symbol"?t:t+""}function LZ(e,t){if(lf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(lf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function $Z(e,t){if(e==null)return{};var n=BZ(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function BZ(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 JL={symbolCircle:VA,symbolCross:oZ,symbolDiamond:lZ,symbolSquare:cZ,symbolStar:hZ,symbolTriangle:pZ,symbolWye:gZ},qZ=Math.PI/180,zZ=function(t){var n="symbol".concat(lg(t));return JL[n]||VA},UZ=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 a=18*qZ;return 1.25*t*t*(Math.tan(a)-Math.tan(a*2)*Math.pow(Math.tan(a),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}},HZ=function(t,n){JL["symbol".concat(lg(t))]=n},FA=function(t){var n=t.type,r=n===void 0?"circle":n,a=t.size,o=a===void 0?64:a,l=t.sizeType,c=l===void 0?"area":l,f=$Z(t,RZ),d=eM(eM({},f),{},{type:r,size:o,sizeType:c}),m=function(){var S=zZ(r),A=vZ().type(S).size(UZ(o,c,r));return A()},h=d.className,g=d.cx,x=d.cy,O=Ke(d,!0);return g===+g&&x===+x&&o===+o?V.createElement("path",OS({},O,{className:Ge("recharts-symbols",h),transform:"translate(".concat(g,", ").concat(x,")"),d:m()})):null};FA.registerSymbol=HZ;function Bl(e){"@babel/helpers - typeof";return Bl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bl(e)}function AS(){return AS=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},AS.apply(this,arguments)}function tM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function VZ(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?tM(Object(n),!0).forEach(function(r){cf(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function FZ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function KZ(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,t8(r.key),r)}}function GZ(e,t,n){return t&&KZ(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function YZ(e,t,n){return t=Hp(t),XZ(e,e8()?Reflect.construct(t,n||[],Hp(e).constructor):t.apply(e,n))}function XZ(e,t){if(t&&(Bl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return QZ(e)}function QZ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function e8(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(e8=function(){return!!e})()}function Hp(e){return Hp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Hp(e)}function WZ(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&PS(e,t)}function PS(e,t){return PS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},PS(e,t)}function cf(e,t,n){return t=t8(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function t8(e){var t=ZZ(e,"string");return Bl(t)=="symbol"?t:t+""}function ZZ(e,t){if(Bl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Bl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Pr=32,KA=(function(e){function t(){return FZ(this,t),YZ(this,t,arguments)}return WZ(t,e),GZ(t,[{key:"renderIcon",value:function(r){var a=this.props.inactiveColor,o=Pr/2,l=Pr/6,c=Pr/3,f=r.inactive?a:r.color;if(r.type==="plainline")return V.createElement("line",{strokeWidth:4,fill:"none",stroke:f,strokeDasharray:r.payload.strokeDasharray,x1:0,y1:o,x2:Pr,y2:o,className:"recharts-legend-icon"});if(r.type==="line")return V.createElement("path",{strokeWidth:4,fill:"none",stroke:f,d:"M0,".concat(o,"h").concat(c,` 311 A`).concat(l,",").concat(l,",0,1,1,").concat(2*c,",").concat(o,` 312 H`).concat(Pr,"M").concat(2*c,",").concat(o,` 313 A`).concat(l,",").concat(l,",0,1,1,").concat(c,",").concat(o),className:"recharts-legend-icon"});if(r.type==="rect")return V.createElement("path",{stroke:"none",fill:f,d:"M0,".concat(Pr/8,"h").concat(Pr,"v").concat(Pr*3/4,"h").concat(-Pr,"z"),className:"recharts-legend-icon"});if(V.isValidElement(r.legendIcon)){var d=VZ({},r);return delete d.legendIcon,V.cloneElement(r.legendIcon,d)}return V.createElement(FA,{fill:f,cx:o,cy:o,size:Pr,sizeType:"diameter",type:r.type})}},{key:"renderItems",value:function(){var r=this,a=this.props,o=a.payload,l=a.iconSize,c=a.layout,f=a.formatter,d=a.inactiveColor,m={x:0,y:0,width:Pr,height:Pr},h={display:c==="horizontal"?"inline-block":"block",marginRight:10},g={display:"inline-block",verticalAlign:"middle",marginRight:4};return o.map(function(x,O){var b=x.formatter||f,S=Ge(cf(cf({"recharts-legend-item":!0},"legend-item-".concat(O),!0),"inactive",x.inactive));if(x.type==="none")return null;var A=Ie(x.value)?null:x.value;Qa(!Ie(x.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 _=x.inactive?d:x.color;return V.createElement("li",AS({className:S,style:h,key:"legend-item-".concat(O)},Lp(r.props,x,O)),V.createElement(vS,{width:l,height:l,viewBox:m,style:g},r.renderIcon(x)),V.createElement("span",{className:"recharts-legend-item-text",style:{color:_}},b?b(A,x,O):A))})}},{key:"render",value:function(){var r=this.props,a=r.payload,o=r.layout,l=r.align;if(!a||!a.length)return null;var c={padding:0,margin:0,textAlign:o==="horizontal"?l:"left"};return V.createElement("ul",{className:"recharts-default-legend",style:c},this.renderItems())}}])})(j.PureComponent);cf(KA,"displayName","Legend");cf(KA,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var Bb,nM;function JZ(){if(nM)return Bb;nM=1;var e=ig();function t(){this.__data__=new e,this.size=0}return Bb=t,Bb}var qb,rM;function eJ(){if(rM)return qb;rM=1;function e(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r}return qb=e,qb}var zb,aM;function tJ(){if(aM)return zb;aM=1;function e(t){return this.__data__.get(t)}return zb=e,zb}var Ub,iM;
vendor: 4,248 bytes, line 313
313function nJ(){if(iM)return Ub;iM=1;function e(t){return this.__data__.has(t)}return Ub=e,Ub}var Hb,oM;function rJ(){if(oM)return Hb;oM=1;var e=ig(),t=IA(),n=LA(),r=200;function a(o,l){var c=this.__data__;if(c instanceof e){var f=c.__data__;if(!t||f.length<r-1)return f.push([o,l]),this.size=++c.size,this;c=this.__data__=new n(f)}return c.set(o,l),this.size=c.size,this}return Hb=a,Hb}var Vb,sM;function n8(){if(sM)return Vb;sM=1;var e=ig(),t=JZ(),n=eJ(),r=tJ(),a=nJ(),o=rJ();function l(c){var f=this.__data__=new e(c);this.size=f.size}return l.prototype.clear=t,l.prototype.delete=n,l.prototype.get=r,l.prototype.has=a,l.prototype.set=o,Vb=l,Vb}var Fb,lM;function aJ(){if(lM)return Fb;lM=1;var e="__lodash_hash_undefined__";function t(n){return this.__data__.set(n,e),this}return Fb=t,Fb}var Kb,cM;function iJ(){if(cM)return Kb;cM=1;function e(t){return this.__data__.has(t)}return Kb=e,Kb}var Gb,uM;function r8(){if(uM)return Gb;uM=1;var e=LA(),t=aJ(),n=iJ();function r(a){var o=-1,l=a==null?0:a.length;for(this.__data__=new e;++o<l;)this.add(a[o])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,Gb=r,Gb}var Yb,fM;function a8(){if(fM)return Yb;fM=1;function e(t,n){for(var r=-1,a=t==null?0:t.length;++r<a;)if(n(t[r],r,t))return!0;return!1}return Yb=e,Yb}var Xb,dM;function i8(){if(dM)return Xb;dM=1;function e(t,n){return t.has(n)}return Xb=e,Xb}var Qb,hM;function o8(){if(hM)return Qb;hM=1;var e=r8(),t=a8(),n=i8(),r=1,a=2;function o(l,c,f,d,m,h){var g=f&r,x=l.length,O=c.length;if(x!=O&&!(g&&O>x))return!1;var b=h.get(l),S=h.get(c);if(b&&S)return b==c&&S==l;var A=-1,_=!0,C=f&a?new e:void 0;for(h.set(l,c),h.set(c,l);++A<x;){var M=l[A],P=c[A];if(d)var E=g?d(P,M,A,c,l,h):d(M,P,A,l,c,h);if(E!==void 0){if(E)continue;_=!1;break}if(C){if(!t(c,function(T,D){if(!n(C,D)&&(M===T||m(M,T,f,d,h)))return C.push(D)})){_=!1;break}}else if(!(M===P||m(M,P,f,d,h))){_=!1;break}}return h.delete(l),h.delete(c),_}return Qb=o,Qb}var Wb,pM;function oJ(){if(pM)return Wb;pM=1;var e=Oa(),t=e.Uint8Array;return Wb=t,Wb}var Zb,mM;function sJ(){if(mM)return Zb;mM=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(a,o){r[++n]=[o,a]}),r}return Zb=e,Zb}var Jb,gM;function GA(){if(gM)return Jb;gM=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(a){r[++n]=a}),r}return Jb=e,Jb}var ex,vM;function lJ(){if(vM)return ex;vM=1;var e=ad(),t=oJ(),n=kA(),r=o8(),a=sJ(),o=GA(),l=1,c=2,f="[object Boolean]",d="[object Date]",m="[object Error]",h="[object Map]",g="[object Number]",x="[object RegExp]",O="[object Set]",b="[object String]",S="[object Symbol]",A="[object ArrayBuffer]",_="[object DataView]",C=e?e.prototype:void 0,M=C?C.valueOf:void 0;function P(E,T,D,L,U,I,z){switch(D){case _:if(E.byteLength!=T.byteLength||E.byteOffset!=T.byteOffset)return!1;E=E.buffer,T=T.buffer;case A:return!(E.byteLength!=T.byteLength||!I(new t(E),new t(T)));case f:case d:case g:return n(+E,+T);case m:return E.name==T.name&&E.message==T.message;case x:case b:return E==T+"";case h:var F=a;case O:var K=L&l;if(F||(F=o),E.size!=T.size&&!K)return!1;var q=z.get(E);if(q)return q==T;L|=c,z.set(E,T);var R=r(F(E),F(T),L,U,I,z);return z.delete(E),R;case S:if(M)return M.call(E)==M.call(T)}return!1}return ex=P,ex}var tx,yM;function s8(){if(yM)return tx;yM=1;function e(t,n){for(var r=-1,a=n.length,o=t.length;++r<a;)t[o+r]=n[r];return t}return tx=e,tx}var nx,bM;function cJ(){if(bM)return nx;bM=1;var e=s8(),t=Yn();function n(r,a,o){var l=a(r);return t(r)?l:e(l,o(r))}return nx=n,nx}var rx,xM;function uJ(){if(xM)return rx;xM=1;function e(t,n){for(var r=-1,a=t==null?0:t.length,o=0,l=[];++r<a;){var c=t[r];n(c,r,t)&&(l[o++]=c)}return l}return rx=e,rx}var ax,wM;function fJ(){if(wM)return ax;wM=1;function e(){return[]}return ax=e,ax}var ix,SM;function dJ(){if(SM)return ix;SM=1;var e=uJ(),t=fJ(),n=Object.prototype,r=n.propertyIsEnumerable,a=Object.getOwnPropertySymbols,o=a?function(l){return l==null?[]:(l=Object(l),e(a(l),function(c){return r.call(l,c)}))}:t;return ix=o,ix}var ox,OM;function hJ(){if(OM)return ox;OM=1;function e(t,n){for(var r=-1,a=Array(t);++r<t;)a[r]=n(r);return a}return ox=e,ox}var sx,AM;function pJ(){if(AM)return sx;AM=1;var e=ci(),t=ui(),n="[object Arguments]";function r(a){return t(a)&&e(a)==n}return sx=r,sx}var lx,PM;
vendor: 3,331 bytes, line 313
313function YA(){if(PM)return lx;PM=1;var e=pJ(),t=ui(),n=Object.prototype,r=n.hasOwnProperty,a=n.propertyIsEnumerable,o=e((function(){return arguments})())?e:function(l){return t(l)&&r.call(l,"callee")&&!a.call(l,"callee")};return lx=o,lx}var Ru={exports:{}},cx,_M;function mJ(){if(_M)return cx;_M=1;function e(){return!1}return cx=e,cx}Ru.exports;var CM;function l8(){return CM||(CM=1,(function(e,t){var n=Oa(),r=mJ(),a=t&&!t.nodeType&&t,o=a&&!0&&e&&!e.nodeType&&e,l=o&&o.exports===a,c=l?n.Buffer:void 0,f=c?c.isBuffer:void 0,d=f||r;e.exports=d})(Ru,Ru.exports)),Ru.exports}var ux,TM;function XA(){if(TM)return ux;TM=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function n(r,a){var o=typeof r;return a=a??e,!!a&&(o=="number"||o!="symbol"&&t.test(r))&&r>-1&&r%1==0&&r<a}return ux=n,ux}var fx,jM;function QA(){if(jM)return fx;jM=1;var e=9007199254740991;function t(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=e}return fx=t,fx}var dx,EM;function gJ(){if(EM)return dx;EM=1;var e=ci(),t=QA(),n=ui(),r="[object Arguments]",a="[object Array]",o="[object Boolean]",l="[object Date]",c="[object Error]",f="[object Function]",d="[object Map]",m="[object Number]",h="[object Object]",g="[object RegExp]",x="[object Set]",O="[object String]",b="[object WeakMap]",S="[object ArrayBuffer]",A="[object DataView]",_="[object Float32Array]",C="[object Float64Array]",M="[object Int8Array]",P="[object Int16Array]",E="[object Int32Array]",T="[object Uint8Array]",D="[object Uint8ClampedArray]",L="[object Uint16Array]",U="[object Uint32Array]",I={};I[_]=I[C]=I[M]=I[P]=I[E]=I[T]=I[D]=I[L]=I[U]=!0,I[r]=I[a]=I[S]=I[o]=I[A]=I[l]=I[c]=I[f]=I[d]=I[m]=I[h]=I[g]=I[x]=I[O]=I[b]=!1;function z(F){return n(F)&&t(F.length)&&!!I[e(F)]}return dx=z,dx}var hx,NM;function c8(){if(NM)return hx;NM=1;function e(t){return function(n){return t(n)}}return hx=e,hx}var ku={exports:{}};ku.exports;var MM;function vJ(){return MM||(MM=1,(function(e,t){var n=jL(),r=t&&!t.nodeType&&t,a=r&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===r,l=o&&n.process,c=(function(){try{var f=a&&a.require&&a.require("util").types;return f||l&&l.binding&&l.binding("util")}catch{}})();e.exports=c})(ku,ku.exports)),ku.exports}var px,DM;function u8(){if(DM)return px;DM=1;var e=gJ(),t=c8(),n=vJ(),r=n&&n.isTypedArray,a=r?t(r):e;return px=a,px}var mx,RM;function yJ(){if(RM)return mx;RM=1;var e=hJ(),t=YA(),n=Yn(),r=l8(),a=XA(),o=u8(),l=Object.prototype,c=l.hasOwnProperty;function f(d,m){var h=n(d),g=!h&&t(d),x=!h&&!g&&r(d),O=!h&&!g&&!x&&o(d),b=h||g||x||O,S=b?e(d.length,String):[],A=S.length;for(var _ in d)(m||c.call(d,_))&&!(b&&(_=="length"||x&&(_=="offset"||_=="parent")||O&&(_=="buffer"||_=="byteLength"||_=="byteOffset")||a(_,A)))&&S.push(_);return S}return mx=f,mx}var gx,kM;function bJ(){if(kM)return gx;kM=1;var e=Object.prototype;function t(n){var r=n&&n.constructor,a=typeof r=="function"&&r.prototype||e;return n===a}return gx=t,gx}var vx,IM;function f8(){if(IM)return vx;IM=1;function e(t,n){return function(r){return t(n(r))}}return vx=e,vx}var yx,LM;function xJ(){if(LM)return yx;LM=1;var e=f8(),t=e(Object.keys,Object);return yx=t,yx}var bx,$M;function wJ(){if($M)return bx;$M=1;var e=bJ(),t=xJ(),n=Object.prototype,r=n.hasOwnProperty;function a(o){if(!e(o))return t(o);var l=[];for(var c in Object(o))r.call(o,c)&&c!="constructor"&&l.push(c);return l}return bx=a,bx}var xx,BM;
vendor: 4,236 bytes, line 313
313function sd(){if(BM)return xx;BM=1;var e=RA(),t=QA();function n(r){return r!=null&&t(r.length)&&!e(r)}return xx=n,xx}var wx,qM;function dg(){if(qM)return wx;qM=1;var e=yJ(),t=wJ(),n=sd();function r(a){return n(a)?e(a):t(a)}return wx=r,wx}var Sx,zM;function SJ(){if(zM)return Sx;zM=1;var e=cJ(),t=dJ(),n=dg();function r(a){return e(a,n,t)}return Sx=r,Sx}var Ox,UM;function OJ(){if(UM)return Ox;UM=1;var e=SJ(),t=1,n=Object.prototype,r=n.hasOwnProperty;function a(o,l,c,f,d,m){var h=c&t,g=e(o),x=g.length,O=e(l),b=O.length;if(x!=b&&!h)return!1;for(var S=x;S--;){var A=g[S];if(!(h?A in l:r.call(l,A)))return!1}var _=m.get(o),C=m.get(l);if(_&&C)return _==l&&C==o;var M=!0;m.set(o,l),m.set(l,o);for(var P=h;++S<x;){A=g[S];var E=o[A],T=l[A];if(f)var D=h?f(T,E,A,l,o,m):f(E,T,A,o,l,m);if(!(D===void 0?E===T||d(E,T,c,f,m):D)){M=!1;break}P||(P=A=="constructor")}if(M&&!P){var L=o.constructor,U=l.constructor;L!=U&&"constructor"in o&&"constructor"in l&&!(typeof L=="function"&&L instanceof L&&typeof U=="function"&&U instanceof U)&&(M=!1)}return m.delete(o),m.delete(l),M}return Ox=a,Ox}var Ax,HM;function AJ(){if(HM)return Ax;HM=1;var e=ms(),t=Oa(),n=e(t,"DataView");return Ax=n,Ax}var Px,VM;function PJ(){if(VM)return Px;VM=1;var e=ms(),t=Oa(),n=e(t,"Promise");return Px=n,Px}var _x,FM;function d8(){if(FM)return _x;FM=1;var e=ms(),t=Oa(),n=e(t,"Set");return _x=n,_x}var Cx,KM;function _J(){if(KM)return Cx;KM=1;var e=ms(),t=Oa(),n=e(t,"WeakMap");return Cx=n,Cx}var Tx,GM;function CJ(){if(GM)return Tx;GM=1;var e=AJ(),t=IA(),n=PJ(),r=d8(),a=_J(),o=ci(),l=EL(),c="[object Map]",f="[object Object]",d="[object Promise]",m="[object Set]",h="[object WeakMap]",g="[object DataView]",x=l(e),O=l(t),b=l(n),S=l(r),A=l(a),_=o;return(e&&_(new e(new ArrayBuffer(1)))!=g||t&&_(new t)!=c||n&&_(n.resolve())!=d||r&&_(new r)!=m||a&&_(new a)!=h)&&(_=function(C){var M=o(C),P=M==f?C.constructor:void 0,E=P?l(P):"";if(E)switch(E){case x:return g;case O:return c;case b:return d;case S:return m;case A:return h}return M}),Tx=_,Tx}var jx,YM;function TJ(){if(YM)return jx;YM=1;var e=n8(),t=o8(),n=lJ(),r=OJ(),a=CJ(),o=Yn(),l=l8(),c=u8(),f=1,d="[object Arguments]",m="[object Array]",h="[object Object]",g=Object.prototype,x=g.hasOwnProperty;function O(b,S,A,_,C,M){var P=o(b),E=o(S),T=P?m:a(b),D=E?m:a(S);T=T==d?h:T,D=D==d?h:D;var L=T==h,U=D==h,I=T==D;if(I&&l(b)){if(!l(S))return!1;P=!0,L=!1}if(I&&!L)return M||(M=new e),P||c(b)?t(b,S,A,_,C,M):n(b,S,T,A,_,C,M);if(!(A&f)){var z=L&&x.call(b,"__wrapped__"),F=U&&x.call(S,"__wrapped__");if(z||F){var K=z?b.value():b,q=F?S.value():S;return M||(M=new e),C(K,q,A,_,M)}}return I?(M||(M=new e),r(b,S,A,_,C,M)):!1}return jx=O,jx}var Ex,XM;function WA(){if(XM)return Ex;XM=1;var e=TJ(),t=ui();function n(r,a,o,l,c){return r===a?!0:r==null||a==null||!t(r)&&!t(a)?r!==r&&a!==a:e(r,a,o,l,n,c)}return Ex=n,Ex}var Nx,QM;function jJ(){if(QM)return Nx;QM=1;var e=n8(),t=WA(),n=1,r=2;function a(o,l,c,f){var d=c.length,m=d,h=!f;if(o==null)return!m;for(o=Object(o);d--;){var g=c[d];if(h&&g[2]?g[1]!==o[g[0]]:!(g[0]in o))return!1}for(;++d<m;){g=c[d];var x=g[0],O=o[x],b=g[1];if(h&&g[2]){if(O===void 0&&!(x in o))return!1}else{var S=new e;if(f)var A=f(O,b,x,o,l,S);if(!(A===void 0?t(b,O,n|r,f,S):A))return!1}}return!0}return Nx=a,Nx}var Mx,WM;function h8(){if(WM)return Mx;WM=1;var e=ro();function t(n){return n===n&&!e(n)}return Mx=t,Mx}var Dx,ZM;function EJ(){if(ZM)return Dx;ZM=1;var e=h8(),t=dg();function n(r){for(var a=t(r),o=a.length;o--;){var l=a[o],c=r[l];a[o]=[l,c,e(c)]}return a}return Dx=n,Dx}var Rx,JM;function p8(){if(JM)return Rx;JM=1;function e(t,n){return function(r){return r==null?!1:r[t]===n&&(n!==void 0||t in Object(r))}}return Rx=e,Rx}var kx,eD;function NJ(){if(eD)return kx;eD=1;var e=jJ(),t=EJ(),n=p8();function r(a){var o=t(a);return o.length==1&&o[0][2]?n(o[0][0],o[0][1]):function(l){return l===a||e(l,a,o)}}return kx=r,kx}var Ix,tD;function MJ(){if(tD)return Ix;tD=1;function e(t,n){return t!=null&&n in Object(t)}return Ix=e,Ix}var Lx,nD;function DJ(){if(nD)return Lx;nD=1;var e=DL(),t=YA(),n=Yn(),r=XA(),a=QA(),o=sg();function l(c,f,d){f=e(f,c);for(var m=-1,h=f.length,g=!1;++m<h;){var x=o(f[m]);if(!(g=c!=null&&d(c,x)))break;c=c[x]}return g||++m!=h?g:(h=c==null?0:c.length,!!h&&a(h)&&r(x,h)&&(n(c)||t(c))
vendor: 45,401 bytes, lines 313-321
313)}return Lx=l,Lx}var $x,rD;function RJ(){if(rD)return $x;rD=1;var e=MJ(),t=DJ();function n(r,a){return r!=null&&t(r,a,e)}return $x=n,$x}var Bx,aD;function kJ(){if(aD)return Bx;aD=1;var e=WA(),t=RL(),n=RJ(),r=DA(),a=h8(),o=p8(),l=sg(),c=1,f=2;function d(m,h){return r(m)&&a(h)?o(l(m),h):function(g){var x=t(g,m);return x===void 0&&x===h?n(g,m):e(h,x,c|f)}}return Bx=d,Bx}var qx,iD;function gc(){if(iD)return qx;iD=1;function e(t){return t}return qx=e,qx}var zx,oD;function IJ(){if(oD)return zx;oD=1;function e(t){return function(n){return n?.[t]}}return zx=e,zx}var Ux,sD;function LJ(){if(sD)return Ux;sD=1;var e=BA();function t(n){return function(r){return e(r,n)}}return Ux=t,Ux}var Hx,lD;function $J(){if(lD)return Hx;lD=1;var e=IJ(),t=LJ(),n=DA(),r=sg();function a(o){return n(o)?e(r(o)):t(o)}return Hx=a,Hx}var Vx,cD;function ao(){if(cD)return Vx;cD=1;var e=NJ(),t=kJ(),n=gc(),r=Yn(),a=$J();function o(l){return typeof l=="function"?l:l==null?n:typeof l=="object"?r(l)?t(l[0],l[1]):e(l):a(l)}return Vx=o,Vx}var Fx,uD;function m8(){if(uD)return Fx;uD=1;function e(t,n,r,a){for(var o=t.length,l=r+(a?1:-1);a?l--:++l<o;)if(n(t[l],l,t))return l;return-1}return Fx=e,Fx}var Kx,fD;function BJ(){if(fD)return Kx;fD=1;function e(t){return t!==t}return Kx=e,Kx}var Gx,dD;function qJ(){if(dD)return Gx;dD=1;function e(t,n,r){for(var a=r-1,o=t.length;++a<o;)if(t[a]===n)return a;return-1}return Gx=e,Gx}var Yx,hD;function zJ(){if(hD)return Yx;hD=1;var e=m8(),t=BJ(),n=qJ();function r(a,o,l){return o===o?n(a,o,l):e(a,t,l)}return Yx=r,Yx}var Xx,pD;function UJ(){if(pD)return Xx;pD=1;var e=zJ();function t(n,r){var a=n==null?0:n.length;return!!a&&e(n,r,0)>-1}return Xx=t,Xx}var Qx,mD;function HJ(){if(mD)return Qx;mD=1;function e(t,n,r){for(var a=-1,o=t==null?0:t.length;++a<o;)if(r(n,t[a]))return!0;return!1}return Qx=e,Qx}var Wx,gD;function VJ(){if(gD)return Wx;gD=1;function e(){}return Wx=e,Wx}var Zx,vD;function FJ(){if(vD)return Zx;vD=1;var e=d8(),t=VJ(),n=GA(),r=1/0,a=e&&1/n(new e([,-0]))[1]==r?function(o){return new e(o)}:t;return Zx=a,Zx}var Jx,yD;function KJ(){if(yD)return Jx;yD=1;var e=r8(),t=UJ(),n=HJ(),r=i8(),a=FJ(),o=GA(),l=200;function c(f,d,m){var h=-1,g=t,x=f.length,O=!0,b=[],S=b;if(m)O=!1,g=n;else if(x>=l){var A=d?null:a(f);if(A)return o(A);O=!1,g=r,S=new e}else S=d?[]:b;e:for(;++h<x;){var _=f[h],C=d?d(_):_;if(_=m||_!==0?_:0,O&&C===C){for(var M=S.length;M--;)if(S[M]===C)continue e;d&&S.push(C),b.push(_)}else g(S,C,m)||(S!==b&&S.push(C),b.push(_))}return b}return Jx=c,Jx}var e1,bD;function GJ(){if(bD)return e1;bD=1;var e=ao(),t=KJ();function n(r,a){return r&&r.length?t(r,e(a,2)):[]}return e1=n,e1}var YJ=GJ();const xD=ut(YJ);function g8(e,t,n){return t===!0?xD(e,n):Ie(t)?xD(e,t):e}function ql(e){"@babel/helpers - typeof";return ql=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},ql(e)}var XJ=["ref"];function wD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Va(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wD(Object(n),!0).forEach(function(r){hg(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 QJ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function SD(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,y8(r.key),r)}}function WJ(e,t,n){return t&&SD(e.prototype,t),n&&SD(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ZJ(e,t,n){return t=Vp(t),JJ(e,v8()?Reflect.construct(t,n||[],Vp(e).constructor):t.apply(e,n))}function JJ(e,t){if(t&&(ql(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return eee(e)}function eee(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v8(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(v8=function(){return!!e})()}function Vp(e){return Vp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Vp(e)}function tee(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&&_S(e,t)}function _S(e,t){return _S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},_S(e,t)}function hg(e,t,n){return t=y8(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y8(e){var t=nee(e,"string");return ql(t)=="symbol"?t:t+""}function nee(e,t){if(ql(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ql(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function ree(e,t){if(e==null)return{};var n=aee(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function aee(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 iee(e){return e.value}function oee(e,t){if(V.isValidElement(e))return V.cloneElement(e,t);if(typeof e=="function")return V.createElement(e,t);t.ref;var n=ree(t,XJ);return V.createElement(KA,n)}var OD=1,El=(function(e){function t(){var n;QJ(this,t);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return n=ZJ(this,t,[].concat(a)),hg(n,"lastBoundingBox",{width:-1,height:-1}),n}return tee(t,e),WJ(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,a=this.getBBox();a?(Math.abs(a.width-this.lastBoundingBox.width)>OD||Math.abs(a.height-this.lastBoundingBox.height)>OD)&&(this.lastBoundingBox.width=a.width,this.lastBoundingBox.height=a.height,r&&r(a)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,r&&r(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Va({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(r){var a=this.props,o=a.layout,l=a.align,c=a.verticalAlign,f=a.margin,d=a.chartWidth,m=a.chartHeight,h,g;if(!r||(r.left===void 0||r.left===null)&&(r.right===void 0||r.right===null))if(l==="center"&&o==="vertical"){var x=this.getBBoxSnapshot();h={left:((d||0)-x.width)/2}}else h=l==="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(c==="middle"){var O=this.getBBoxSnapshot();g={top:((m||0)-O.height)/2}}else g=c==="bottom"?{bottom:f&&f.bottom||0}:{top:f&&f.top||0};return Va(Va({},h),g)}},{key:"render",value:function(){var r=this,a=this.props,o=a.content,l=a.width,c=a.height,f=a.wrapperStyle,d=a.payloadUniqBy,m=a.payload,h=Va(Va({position:"absolute",width:l||"auto",height:c||"auto"},this.getDefaultPosition(f)),f);return V.createElement("div",{className:"recharts-legend-wrapper",style:h,ref:function(x){r.wrapperNode=x}},oee(o,Va(Va({},this.props),{},{payload:g8(m,d,iee)})))}}],[{key:"getWithHeight",value:function(r,a){var o=Va(Va({},this.defaultProps),r.props),l=o.layout;return l==="vertical"&&ge(r.props.height)?{height:r.props.height}:l==="horizontal"?{width:r.props.width||a}:null}}])})(j.PureComponent);hg(El,"displayName","Legend");hg(El,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var t1,AD;function see(){if(AD)return t1;AD=1;var e=ad(),t=YA(),n=Yn(),r=e?e.isConcatSpreadable:void 0;function a(o){return n(o)||t(o)||!!(r&&o&&o[r])}return t1=a,t1}var n1,PD;function b8(){if(PD)return n1;PD=1;var e=s8(),t=see();function n(r,a,o,l,c){var f=-1,d=r.length;for(o||(o=t),c||(c=[]);++f<d;){var m=r[f];a>0&&o(m)?a>1?n(m,a-1,o,l,c):e(c,m):l||(c[c.length]=m)}return c}return n1=n,n1}var r1,_D;function lee(){if(_D)return r1;_D=1;function e(t){return function(n,r,a){for(var o=-1,l=Object(n),c=a(n),f=c.length;f--;){var d=c[t?f:++o];if(r(l[d],d,l)===!1)break}return n}}return r1=e,r1}var a1,CD;function cee(){if(CD)return a1;CD=1;var e=lee(),t=e();return a1=t,a1}var i1,TD;function x8(){if(TD)return i1;TD=1;var e=cee(),t=dg();function n(r,a){return r&&e(r,a,t)}return i1=n,i1}var o1,jD;function uee(){if(jD)return o1;jD=1;var e=sd();function t(n,r){return function(a,o){if(a==null)return a;if(!e(a))return n(a,o);for(var l=a.length,c=r?l:-1,f=Object(a);(r?c--:++c<l)&&o(f[c],c,f)!==!1;);return a}}return o1=t,o1}var s1,ED;function ZA(){if(ED)return s1;ED=1;var e=x8(),t=uee(),n=t(e);return s1=n,s1}var l1,ND;function w8(){if(ND)return l1;ND=1;var e=ZA(),t=sd();function n(r,a){var o=-1,l=t(r)?Array(r.length):[];return e(r,function(c,f,d){l[++o]=a(c,f,d)}),l}return l1=n,l1}var c1,MD;function fee(){if(MD)return c1;MD=1;function e(t,n){var r=t.length;for(t.sort(n);r--;)t[r]=t[r].value;return t}return c1=e,c1}var u1,DD;function dee(){if(DD)return u1;DD=1;var e=pc();function t(n,r){if(n!==r){var a=n!==void 0,o=n===null,l=n===n,c=e(n),f=r!==void 0,d=r===null,m=r===r,h=e(r);if(!d&&!h&&!c&&n>r||c&&f&&m&&!d&&!h||o&&f&&m||!a&&m||!l)return 1;if(!o&&!c&&!h&&n<r||h&&a&&l&&!o&&!c||d&&a&&l||!f&&l||!m)return-1}return 0}return u1=t,u1}var f1,RD;function hee(){if(RD)return f1;RD=1;var e=dee();function t(n,r,a){for(var o=-1,l=n.criteria,c=r.criteria,f=l.length,d=a.length;++o<f;){var m=e(l[o],c[o]);if(m){if(o>=d)return m;var h=a[o];return m*(h=="desc"?-1:1)}}return n.index-r.index}return f1=t,f1}var d1,kD;function pee(){if(kD)return d1;kD=1;var e=$A(),t=BA(),n=ao(),r=w8(),a=fee(),o=c8(),l=hee(),c=gc(),f=Yn();function d(m,h,g){h.length?h=e(h,function(b){return f(b)?function(S){return t(S,b.length===1?b[0]:b)}:b}):h=[c];var x=-1;h=e(h,o(n));var O=r(m,function(b,S,A){var _=e(h,function(C){return C(b)});return{criteria:_,index:++x,value:b}});return a(O,function(b,S){return l(b,S,g)})}return d1=d,d1}var h1,ID;function mee(){if(ID)return h1;ID=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 h1=e,h1}var p1,LD;function gee(){if(LD)return p1;LD=1;var e=mee(),t=Math.max;function n(r,a,o){return a=t(a===void 0?r.length-1:a,0),function(){for(var l=arguments,c=-1,f=t(l.length-a,0),d=Array(f);++c<f;)d[c]=l[a+c];c=-1;for(var m=Array(a+1);++c<a;)m[c]=l[c];return m[a]=o(d),e(r,this,m)}}return p1=n,p1}var m1,$D;function vee(){if($D)return m1;$D=1;function e(t){return function(){return t}}return m1=e,m1}var g1,BD;function S8(){if(BD)return g1;BD=1;var e=ms(),t=(function(){try{var n=e(Object,"defineProperty");return n({},"",{}),n}catch{}})();return g1=t,g1}var v1,qD;function yee(){if(qD)return v1;qD=1;var e=vee(),t=S8(),n=gc(),r=t?function(a,o){return t(a,"toString",{configurable:!0,enumerable:!1,value:e(o),writable:!0})}:n;return v1=r,v1}var y1,zD;function bee(){if(zD)return y1;zD=1;var e=800,t=16,n=Date.now;function r(a){var o=0,l=0;return function(){var c=n(),f=t-(c-l);if(l=c,f>0){if(++o>=e)return arguments[0]}else o=0;return a.apply(void 0,arguments)}}return y1=r,y1}var b1,UD;function xee(){if(UD)return b1;UD=1;var e=yee(),t=bee(),n=t(e);return b1=n,b1}var x1,HD;function wee(){if(HD)return x1;HD=1;var e=gc(),t=gee(),n=xee();function r(a,o){return n(t(a,o,e),a+"")}return x1=r,x1}var w1,VD;function pg(){if(VD)return w1;VD=1;var e=kA(),t=sd(),n=XA(),r=ro();function a(o,l,c){if(!r(c))return!1;var f=typeof l;return(f=="number"?t(c)&&n(l,c.length):f=="string"&&l in c)?e(c[l],o):!1}return w1=a,w1}var S1,FD;function See(){if(FD)return S1;FD=1;var e=b8(),t=pee(),n=wee(),r=pg(),a=n(function(o,l){if(o==null)return[];var c=l.length;return c>1&&r(o,l[0],l[1])?l=[]:c>2&&r(l[0],l[1],l[2])&&(l=[l[0]]),t(o,e(l,1),[])});return S1=a,S1}var Oee=See();const JA=ut(Oee);function uf(e){"@babel/helpers - typeof";return uf=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},uf(e)}function CS(){return CS=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},CS.apply(this,arguments)}function Aee(e,t){return Tee(e)||Cee(e,t)||_ee(e,t)||Pee()}function Pee(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 314In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _ee(e,t){if(e){if(typeof e=="string")return KD(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 KD(e,t)}}function KD(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 Cee(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,o,l,c=[],f=!0,d=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(f=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){d=!0,a=m}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw a}}return c}}function Tee(e){if(Array.isArray(e))return e}function GD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function O1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?GD(Object(n),!0).forEach(function(r){jee(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):GD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function jee(e,t,n){return t=Eee(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Eee(e){var t=Nee(e,"string");return uf(t)=="symbol"?t:t+""}function Nee(e,t){if(uf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(uf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Mee(e){return Array.isArray(e)&&Qt(e[0])&&Qt(e[1])?e.join(" ~ "):e}var Dee=function(t){var n=t.separator,r=n===void 0?" : ":n,a=t.contentStyle,o=a===void 0?{}:a,l=t.itemStyle,c=l===void 0?{}:l,f=t.labelStyle,d=f===void 0?{}:f,m=t.payload,h=t.formatter,g=t.itemSorter,x=t.wrapperClassName,O=t.labelClassName,b=t.label,S=t.labelFormatter,A=t.accessibilityLayer,_=A===void 0?!1:A,C=function(){if(m&&m.length){var z={padding:0,margin:0},F=(g?JA(m,g):m).map(function(K,q){if(K.type==="none")return null;var R=O1({display:"block",paddingTop:4,paddingBottom:4,color:K.color||"#000"},c),$=K.formatter||h||Mee,H=K.value,W=K.name,ae=H,B=W;if($&&ae!=null&&B!=null){var Y=$(H,W,K,q,m);if(Array.isArray(Y)){var X=Aee(Y,2);ae=X[0],B=X[1]}else ae=Y}return V.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(q),style:R},Qt(B)?V.createElement("span",{className:"recharts-tooltip-item-name"},B):null,Qt(B)?V.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,V.createElement("span",{className:"recharts-tooltip-item-value"},ae),V.createElement("span",{className:"recharts-tooltip-item-unit"},K.unit||""))});return V.createElement("ul",{className:"recharts-tooltip-item-list",style:z},F)}return null},M=O1({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},o),P=O1({margin:0},d),E=!qe(b),T=E?b:"",D=Ge("recharts-default-tooltip",x),L=Ge("recharts-tooltip-label",O);E&&S&&m!==void 0&&m!==null&&(T=S(b,m));var U=_?{role:"status","aria-live":"assertive"}:{};return V.createElement("div",CS({className:D,style:M},U),V.createElement("p",{className:L,style:P},V.isValidElement(T)?T:"".concat(T)),C())};function ff(e){"@babel/helpers - typeof";return ff=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},ff(e)}function Xh(e,t,n){return t=Ree(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ree(e){var t=kee(e,"string");return ff(t)=="symbol"?t:t+""}function kee(e,t){if(ff(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ff(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ou="recharts-tooltip-wrapper",Iee={visibility:"hidden"};function Lee(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return Ge(Ou,Xh(Xh(Xh(Xh({},"".concat(Ou,"-right"),ge(n)&&t&&ge(t.x)&&n>=t.x),"".concat(Ou,"-left"),ge(n)&&t&&ge(t.x)&&n<t.x),"".concat(Ou,"-bottom"),ge(r)&&t&&ge(t.y)&&r>=t.y),"".concat(Ou,"-top"),ge(r)&&t&&ge(t.y)&&r<t.y))}function YD(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,a=e.offsetTopLeft,o=e.position,l=e.reverseDirection,c=e.tooltipDimension,f=e.viewBox,d=e.viewBoxDimension;if(o&&ge(o[r]))return o[r];var m=n[r]-c-a,h=n[r]+a;if(t[r])return l[r]?m:h;if(l[r]){var g=m,x=f[r];return g<x?Math.max(h,f[r]):Math.max(m,f[r])}var O=h+c,b=f[r]+d;return O>b?Math.max(m,f[r]):Math.max(h,f[r])}function $ee(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 Bee(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,a=e.position,o=e.reverseDirection,l=e.tooltipBox,c=e.useTranslate3d,f=e.viewBox,d,m,h;return l.height>0&&l.width>0&&n?(m=YD({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:a,reverseDirection:o,tooltipDimension:l.width,viewBox:f,viewBoxDimension:f.width}),h=YD({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:a,reverseDirection:o,tooltipDimension:l.height,viewBox:f,viewBoxDimension:f.height}),d=$ee({translateX:m,translateY:h,useTranslate3d:c})):d=Iee,{cssProperties:d,cssClasses:Lee({translateX:m,translateY:h,coordinate:n})}}function zl(e){"@babel/helpers - typeof";return zl=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},zl(e)}function XD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function QD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?XD(Object(n),!0).forEach(function(r){jS(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function qee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zee(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,A8(r.key),r)}}function Uee(e,t,n){return t&&zee(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Hee(e,t,n){return t=Fp(t),Vee(e,O8()?Reflect.construct(t,n||[],Fp(e).constructor):t.apply(e,n))}function Vee(e,t){if(t&&(zl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Fee(e)}function Fee(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function O8(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(O8=function(){return!!e})()}function Fp(e){return Fp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Fp(e)}function Kee(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&TS(e,t)}function TS(e,t){return TS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},TS(e,t)}function jS(e,t,n){return t=A8(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function A8(e){var t=Gee(e,"string");return zl(t)=="symbol"?t:t+""}function Gee(e,t){if(zl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(zl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var WD=1,Yee=(function(e){function t(){var n;qee(this,t);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return n=Hee(this,t,[].concat(a)),jS(n,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),jS(n,"handleKeyDown",function(l){if(l.key==="Escape"){var c,f,d,m;n.setState({dismissed:!0,dismissedAtCoordinate:{x:(c=(f=n.props.coordinate)===null||f===void 0?void 0:f.x)!==null&&c!==void 0?c:0,y:(d=(m=n.props.coordinate)===null||m===void 0?void 0:m.y)!==null&&d!==void 0?d:0}})}}),n}return Kee(t,e),Uee(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-this.state.lastBoundingBox.width)>WD||Math.abs(r.height-this.state.lastBoundingBox.height)>WD)&&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,a;this.props.active&&this.updateBBox(),this.state.dismissed&&(((r=this.props.coordinate)===null||r===void 0?void 0:r.x)!==this.state.dismissedAtCoordinate.x||((a=this.props.coordinate)===null||a===void 0?void 0:a.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var r=this,a=this.props,o=a.active,l=a.allowEscapeViewBox,c=a.animationDuration,f=a.animationEasing,d=a.children,m=a.coordinate,h=a.hasPayload,g=a.isAnimationActive,x=a.offset,O=a.position,b=a.reverseDirection,S=a.useTranslate3d,A=a.viewBox,_=a.wrapperStyle,C=Bee({allowEscapeViewBox:l,coordinate:m,offsetTopLeft:x,position:O,reverseDirection:b,tooltipBox:this.state.lastBoundingBox,useTranslate3d:S,viewBox:A}),M=C.cssClasses,P=C.cssProperties,E=QD(QD({transition:g&&o?"transform ".concat(c,"ms ").concat(f):void 0},P),{},{pointerEvents:"none",visibility:!this.state.dismissed&&o&&h?"visible":"hidden",position:"absolute",top:0,left:0},_);return V.createElement("div",{tabIndex:-1,className:M,style:E,ref:function(D){r.wrapperNode=D}},d)}}])})(j.PureComponent),Xee=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},vc={isSsr:Xee()};function Ul(e){"@babel/helpers - typeof";return Ul=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},Ul(e)}function ZD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function JD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ZD(Object(n),!0).forEach(function(r){eP(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Qee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wee(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,_8(r.key),r)}}function Zee(e,t,n){return t&&Wee(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Jee(e,t,n){return t=Kp(t),ete(e,P8()?Reflect.construct(t,n||[],Kp(e).constructor):t.apply(e,n))}function ete(e,t){if(t&&(Ul(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return tte(e)}function tte(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function P8(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(P8=function(){return!!e})()}function Kp(e){return Kp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Kp(e)}function nte(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&&ES(e,t)}function ES(e,t){return ES=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},ES(e,t)}function eP(e,t,n){return t=_8(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _8(e){var t=rte(e,"string");return Ul(t)=="symbol"?t:t+""}function rte(e,t){if(Ul(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ul(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function ate(e){return e.dataKey}function ite(e,t){return V.isValidElement(e)?V.cloneElement(e,t):typeof e=="function"?V.createElement(e,t):V.createElement(Dee,t)}var Fr=(function(e){function t(){return Qee(this,t),Jee(this,t,arguments)}return nte(t,e),Zee(t,[{key:"render",value:function(){var r=this,a=this.props,o=a.active,l=a.allowEscapeViewBox,c=a.animationDuration,f=a.animationEasing,d=a.content,m=a.coordinate,h=a.filterNull,g=a.isAnimationActive,x=a.offset,O=a.payload,b=a.payloadUniqBy,S=a.position,A=a.reverseDirection,_=a.useTranslate3d,C=a.viewBox,M=a.wrapperStyle,P=O??[];h&&P.length&&(P=g8(O.filter(function(T){return T.value!=null&&(T.hide!==!0||r.props.includeHidden)}),b,ate));var E=P.length>0;return V.createElement(Yee,{allowEscapeViewBox:l,animationDuration:c,animationEasing:f,isAnimationActive:g,active:o,coordinate:m,hasPayload:E,offset:x,position:S,reverseDirection:A,useTranslate3d:_,viewBox:C,wrapperStyle:M},ite(d,JD(JD({},this.props),{},{payload:P})))}}])})(j.PureComponent);eP(Fr,"displayName","Tooltip");eP(Fr,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!vc.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 A1,eR;function ote(){if(eR)return A1;eR=1;var e=Oa(),t=function(){return e.Date.now()};return A1=t,A1}var P1,tR;function ste(){if(tR)return P1;tR=1;var e=/\s/;function t(n){for(var r=n.length;r--&&e.test(n.charAt(r)););return r}return P1=t,P1}var _1,nR;function lte(){if(nR)return _1;nR=1;var e=ste(),t=/^\s+/;function n(r){return r&&r.slice(0,e(r)+1).replace(t,"")}return _1=n,_1}var C1,rR;function C8(){if(rR)return C1;rR=1;var e=lte(),t=ro(),n=pc(),r=NaN,a=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;function f(d){if(typeof d=="number")return d;if(n(d))return r;if(t(d)){var m=typeof d.valueOf=="function"?d.valueOf():d;d=t(m)?m+"":m}if(typeof d!="string")return d===0?d:+d;d=e(d);var h=o.test(d);return h||l.test(d)?c(d.slice(2),h?2:8):a.test(d)?r:+d}return C1=f,C1}var T1,aR;function cte(){if(aR)return T1;aR=1;var e=ro(),t=ote(),n=C8(),r="Expected a function",a=Math.max,o=Math.min;function l(c,f,d){var m,h,g,x,O,b,S=0,A=!1,_=!1,C=!0;if(typeof c!="function")throw new TypeError(r);f=n(f)||0,e(d)&&(A=!!d.leading,_="maxWait"in d,g=_?a(n(d.maxWait)||0,f):g,C="trailing"in d?!!d.trailing:C);function M(F){var K=m,q=h;return m=h=void 0,S=F,x=c.apply(q,K),x}function P(F){return S=F,O=setTimeout(D,f),A?M(F):x}function E(F){var K=F-b,q=F-S,R=f-K;return _?o(R,g-q):R}function T(F){var K=F-b,q=F-S;return b===void 0||K>=f||K<0||_&&q>=g}function D(){var F=t();if(T(F))return L(F);O=setTimeout(D,E(F))}function L(F){return O=void 0,C&&m?M(F):(m=h=void 0,x)}function U(){O!==void 0&&clearTimeout(O),S=0,m=b=h=O=void 0}function I(){return O===void 0?x:L(t())}function z(){var F=t(),K=T(F);if(m=arguments,h=this,b=F,K){if(O===void 0)return P(b);if(_)return clearTimeout(O),O=setTimeout(D,f),M(b)}return O===void 0&&(O=setTimeout(D,f)),x}return z.cancel=U,z.flush=I,z}return T1=l,T1}var j1,iR;function ute(){if(iR)return j1;iR=1;var e=cte(),t=ro(),n="Expected a function";function r(a,o,l){var c=!0,f=!0;if(typeof a!="function")throw new TypeError(n);return t(l)&&(c="leading"in l?!!l.leading:c,f="trailing"in l?!!l.trailing:f),e(a,o,{leading:c,maxWait:o,trailing:f})}return j1=r,j1}var fte=ute();const T8=ut(fte);function df(e){"@babel/helpers - typeof";return df=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},df(e)}function oR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Qh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?oR(Object(n),!0).forEach(function(r){dte(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function dte(e,t,n){return t=hte(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hte(e){var t=pte(e,"string");return df(t)=="symbol"?t:t+""}function pte(e,t){if(df(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(df(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function mte(e,t){return bte(e)||yte(e,t)||vte(e,t)||gte()}function gte(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 315In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vte(e,t){if(e){if(typeof e=="string")return sR(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 sR(e,t)}}function sR(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 yte(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,o,l,c=[],f=!0,d=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(f=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){d=!0,a=m}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw a}}return c}}function bte(e){if(Array.isArray(e))return e}var j8=j.forwardRef(function(e,t){var n=e.aspect,r=e.initialDimension,a=r===void 0?{width:-1,height:-1}:r,o=e.width,l=o===void 0?"100%":o,c=e.height,f=c===void 0?"100%":c,d=e.minWidth,m=d===void 0?0:d,h=e.minHeight,g=e.maxHeight,x=e.children,O=e.debounce,b=O===void 0?0:O,S=e.id,A=e.className,_=e.onResize,C=e.style,M=C===void 0?{}:C,P=j.useRef(null),E=j.useRef();E.current=_,j.useImperativeHandle(t,function(){return Object.defineProperty(P.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),P.current},configurable:!0})});var T=j.useState({containerWidth:a.width,containerHeight:a.height}),D=mte(T,2),L=D[0],U=D[1],I=j.useCallback(function(F,K){U(function(q){var R=Math.round(F),$=Math.round(K);return q.containerWidth===R&&q.containerHeight===$?q:{containerWidth:R,containerHeight:$}})},[]);j.useEffect(function(){var F=function(W){var ae,B=W[0].contentRect,Y=B.width,X=B.height;I(Y,X),(ae=E.current)===null||ae===void 0||ae.call(E,Y,X)};b>0&&(F=T8(F,b,{trailing:!0,leading:!1}));var K=new ResizeObserver(F),q=P.current.getBoundingClientRect(),R=q.width,$=q.height;return I(R,$),K.observe(P.current),function(){K.disconnect()}},[I,b]);var z=j.useMemo(function(){var F=L.containerWidth,K=L.containerHeight;if(F<0||K<0)return null;Qa(Fo(l)||Fo(f),`The width(%s) and height(%s) are both fixed numbers, 316 maybe you don't need to use a ResponsiveContainer.`,l,f),Qa(!n||n>0,"The aspect(%s) must be greater than zero.",n);var q=Fo(l)?F:l,R=Fo(f)?K:f;n&&n>0&&(q?R=q/n:R&&(q=R*n),g&&R>g&&(R=g)),Qa(q>0||R>0,`The width(%s) and height(%s) of chart should be greater than 0, 317 please check the style of container, or the props width(%s) and height(%s), 318 or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the 319 height and width.`,q,R,l,f,m,h,n);var $=!Array.isArray(x)&&Xa(x.type).endsWith("Chart");return V.Children.map(x,function(H){return V.isValidElement(H)?j.cloneElement(H,Qh({width:q,height:R},$?{style:Qh({height:"100%",width:"100%",maxHeight:R,maxWidth:q},H.props.style)}:{})):H})},[n,x,f,g,h,m,L,l]);return V.createElement("div",{id:S?"".concat(S):void 0,className:Ge("recharts-responsive-container",A),style:Qh(Qh({},M),{},{width:l,height:f,minWidth:m,minHeight:h,maxHeight:g}),ref:P},z)}),E8=function(t){return null};E8.displayName="Cell";function hf(e){"@babel/helpers - typeof";return hf=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},hf(e)}function lR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function NS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?lR(Object(n),!0).forEach(function(r){xte(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function xte(e,t,n){return t=wte(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wte(e){var t=Ste(e,"string");return hf(t)=="symbol"?t:t+""}function Ste(e,t){if(hf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(hf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var dl={widthCache:{},cacheCount:0},Ote=2e3,Ate={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},cR="recharts_measurement_span";function Pte(e){var t=NS({},e);return Object.keys(t).forEach(function(n){t[n]||delete t[n]}),t}var zu=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||vc.isSsr)return{width:0,height:0};var r=Pte(n),a=JSON.stringify({text:t,copyStyle:r});if(dl.widthCache[a])return dl.widthCache[a];try{var o=document.getElementById(cR);o||(o=document.createElement("span"),o.setAttribute("id",cR),o.setAttribute("aria-hidden","true"),document.body.appendChild(o));var l=NS(NS({},Ate),r);Object.assign(o.style,l),o.textContent="".concat(t);var c=o.getBoundingClientRect(),f={width:c.width,height:c.height};return dl.widthCache[a]=f,++dl.cacheCount>Ote&&(dl.cacheCount=0,dl.widthCache={}),f}catch{return{width:0,height:0}}},_te=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function pf(e){"@babel/helpers - typeof";return pf=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},pf(e)}function Gp(e,t){return Ete(e)||jte(e,t)||Tte(e,t)||Cte()}function Cte(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 320In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Tte(e,t){if(e){if(typeof e=="string")return uR(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 uR(e,t)}}function uR(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 jte(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,o,l,c=[],f=!0,d=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;f=!1}else for(;!(f=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){d=!0,a=m}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw a}}return c}}function Ete(e){if(Array.isArray(e))return e}function Nte(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fR(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,Dte(r.key),r)}}function Mte(e,t,n){return t&&fR(e.prototype,t),n&&fR(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Dte(e){var t=Rte(e,"string");return pf(t)=="symbol"?t:t+""}function Rte(e,t){if(pf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(pf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var dR=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,hR=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,kte=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,Ite=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,N8={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},Lte=Object.keys(N8),yl="NaN";function $te(e,t){return e*N8[t]}var Wh=(function(){function e(t,n){Nte(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=""),n!==""&&!kte.test(n)&&(this.num=NaN,this.unit=""),Lte.includes(n)&&(this.num=$te(t,n),this.unit="px")}return Mte(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,a=(r=Ite.exec(n))!==null&&r!==void 0?r:[],o=Gp(a,3),l=o[1],c=o[2];return new e(parseFloat(l),c??"")}}])})();function M8(e){if(e.includes(yl))return yl;for(var t=e;t.includes("*")||t.includes("/");){var n,r=(n=dR.exec(t))!==null&&n!==void 0?n:[],a=Gp(r,4),o=a[1],l=a[2],c=a[3],f=Wh.parse(o??""),d=Wh.parse(c??""),m=l==="*"?f.multiply(d):f.divide(d);if(m.isNaN())return yl;t=t.replace(dR,m.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var h,g=(h=hR.exec(t))!==null&&h!==void 0?h:[],x=Gp(g,4),O=x[1],b=x[2],S=x[3],A=Wh.parse(O??""),_=Wh.parse(S??""),C=b==="+"?A.add(_):A.subtract(_);if(C.isNaN())return yl;t=t.replace(hR,C.toString())}return t}var pR=/\(([^()]*)\)/;function Bte(e){for(var t=e;t.includes("(");){var n=pR.exec(t),r=Gp(n,2),a=r[1];t=t.replace(pR,M8(a))}return t}function qte(e){var t=e.replace(/\s+/g,"");return t=Bte(t),t=M8(t),t}function zte(e){try{return qte(e)}catch{return yl}}function E1(e){var t=zte(e.slice(5,-1));return t===yl?"":t}var Ute=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],Hte=["dx","dy","angle","className","breakAll"];function MS(){return MS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},MS.apply(this,arguments)}function mR(e,t){if(e==null)return{};var n=Vte(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Vte(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 gR(e,t){return Yte(e)||Gte(e,t)||Kte(e,t)||Fte()}function Fte(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 321In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Kte(e,t){if(e){if(typeof e=="string")return vR(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 vR(e,t)}}function vR(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 Gte(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,o,l,c=[],f=!0,d=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;f=!1}else for(;!(f=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){d=!0,a=m}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw a}}return c}}function Yte(e){if(Array.isArray(e))return e}var D8=/[ \f\n\r\t\v\u2028\u2029]+/,R8=function(t){var n=t.children,r=t.breakAll,a=t.style;try{var o=[];qe(n)||(r?o=n.toString().split(""):o=n.toString().split(D8));var l=o.map(function(f){return{word:f,width:zu(f,a).width}}),c=r?0:zu(" ",a).width;return{wordsWithComputedWidth:l,spaceWidth:c}}catch{return null}},Xte=function(t,n,r,a,o){var l=t.maxLines,c=t.children,f=t.style,d=t.breakAll,m=ge(l),h=c,g=function(){var q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return q.reduce(function(R,$){var H=$.word,W=$.width,ae=R[R.length-1];if(ae&&(a==null||o||ae.width+W+r<Number(a)))ae.words.push(H),ae.width+=W+r;else{var B={words:[H],width:W};R.push(B)}return R},[])},x=g(n),O=function(q){return q.reduce(function(R,$){return R.width>$.width?R:$})};if(!m)return x;for(var b="â¦",S=function(q){var R=h.slice(0,q),$=R8({breakAll:d,style:f,children:R+b}).wordsWithComputedWidth,H=g($),W=H.length>l||O(H).width>Number(a);return[W,H]},A=0,_=h.length-1,C=0,M;A<=_&&C<=h.length-1;){var P=Math.floor((A+_)/2),E=P-1,T=S(E),D=gR(T,2),L=D[0],U=D[1],I=S(P),z=gR(I,1),F=z[0];if(!L&&!F&&(A=P+1),L&&F&&(_=P-1),!L&&F){M=U;break}C++}return M||x},yR=function(t){var n=qe(t)?[]:t.toString().split(D8);return[{words:n}]},Qte=function(t){var n=t.width,r=t.scaleToFit,a=t.children,o=t.style,l=t.breakAll,c=t.maxLines;if((n||r)&&!vc.isSsr){var f,d,m=R8({breakAll:l,children:a,style:o});
321if(m){var h=m.wordsWithComputedWidth,g=m.spaceWidth;f=h,d=g}else return yR(a);return Xte({breakAll:l,children:a,maxLines:c,style:o},f,d,n,r)}return yR(a)},bR="#808080",Yp=function(t){var n=t.x,r=n===void 0?0:n,a=t.y,o=a===void 0?0:a,l=t.lineHeight,c=l===void 0?"1em":l,f=t.capHeight,d=f===void 0?"0.71em":f,m=t.scaleToFit,h=m===void 0?!1:m,g=t.textAnchor,x=g===void 0?"start":g,O=t.verticalAnchor,b=O===void 0?"end":O,S=t.fill,A=S===void 0?bR:S,_=mR(t,Ute),C=j.useMemo(function(){return Qte({breakAll:_.breakAll,children:_.children,maxLines:_.maxLines,scaleToFit:h,style:_.style,width:_.width})},[_.breakAll,_.children,_.maxLines,h,_.style,_.width]),M=_.dx,P=_.dy,E=_.angle,T=_.className,D=_.breakAll,L=mR(_,Hte);if(!Qt(r)||!Qt(o))return null;var U=r+(ge(M)?M:0),I=o+(ge(P)?P:0),z;switch(b){case"start":z=E1("calc(".concat(d,")"));break;case"middle":z=E1("calc(".concat((C.length-1)/2," * -").concat(c," + (").concat(d," / 2))"));break;default:z=E1("calc(".concat(C.length-1," * -").concat(c,")"));break}var F=[];if(h){var K=C[0].width,q=_.width;F.push("scale(".concat((ge(q)?q/K:1)/K,")"))}return E&&F.push("rotate(".concat(E,", ").concat(U,", ").concat(I,")")),F.length&&(L.transform=F.join(" ")),V.createElement("text",MS({},Ke(L,!0),{x:U,y:I,className:Ge("recharts-text",T),textAnchor:x,fill:A.includes("url")?bR:A}),C.map(function(R,$){var H=R.words.join(D?"":" ");return V.createElement("tspan",{x:U,dy:$===0?z:c,key:"".concat(H,"-").concat($)},H)}))};function Gi(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Wte(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function tP(e){let t,n,r;e.length!==2?(t=Gi,n=(c,f)=>Gi(e(c),f),r=(c,f)=>e(c)-f):(t=e===Gi||e===Wte?e:Zte,n=e,r=e);function a(c,f,d=0,m=c.length){if(d<m){if(t(f,f)!==0)return m;do{const h=d+m>>>1;n(c[h],f)<0?d=h+1:m=h}while(d<m)}return d}function o(c,f,d=0,m=c.length){if(d<m){if(t(f,f)!==0)return m;do{const h=d+m>>>1;n(c[h],f)<=0?d=h+1:m=h}while(d<m)}return d}function l(c,f,d=0,m=c.length){const h=a(c,f,d,m-1);return h>d&&r(c[h-1],f)>-r(c[h],f)?h-1:h}return{left:a,center:l,right:o}}function Zte(){return 0}function k8(e){return e===null?NaN:+e}function*Jte(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const ene=tP(Gi),ld=ene.right;tP(k8).center;class xR extends Map{constructor(t,n=rne){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,a]of t)this.set(r,a)}get(t){return super.get(wR(this,t))}has(t){return super.has(wR(this,t))}set(t,n){return super.set(tne(this,t),n)}delete(t){return super.delete(nne(this,t))}}function wR({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function tne({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function nne({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function rne(e){return e!==null&&typeof e=="object"?e.valueOf():e}function ane(e=Gi){if(e===Gi)return I8;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 I8(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const ine=Math.sqrt(50),one=Math.sqrt(10),sne=Math.sqrt(2);function Xp(e,t,n){const r=(t-e)/Math.max(0,n),a=Math.floor(Math.log10(r)),o=r/Math.pow(10,a),l=o>=ine?10:o>=one?5:o>=sne?2:1;let c,f,d;return a<0?(d=Math.pow(10,-a)/l,c=Math.round(e*d),f=Math.round(t*d),c/d<e&&++c,f/d>t&&--f,d=-d):(d=Math.pow(10,a)*l,c=Math.round(e/d),f=Math.round(t/d),c*d<e&&++c,f*d>t&&--f),f<c&&.5<=n&&n<2?Xp(e,t,n*2):[c,f,d]}function DS(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[a,o,l]=r?Xp(t,e,n):Xp(e,t,n);if(!(o>=a))return[];const c=o-a+1,f=new Array(c);if(r)if(l<0)for(let d=0;d<c;++d)f[d]=(o-d)/-l;else for(let d=0;d<c;++d)f[d]=(o-d)*l;else if(l<0)for(let d=0;d<c;++d)f[d]=(a+d)/-l;else for(let d=0;d<c;++d)f[d]=(a+d)*l;return f}
321function RS(e,t,n){return t=+t,e=+e,n=+n,Xp(e,t,n)[2]}function kS(e,t,n){t=+t,e=+e,n=+n;const r=t<e,a=r?RS(t,e,n):RS(e,t,n);return(r?-1:1)*(a<0?1/-a:a)}function SR(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function OR(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function L8(e,t,n=0,r=1/0,a){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(a=a===void 0?I8:ane(a);r>n;){if(r-n>600){const f=r-n+1,d=t-n+1,m=Math.log(f),h=.5*Math.exp(2*m/3),g=.5*Math.sqrt(m*h*(f-h)/f)*(d-f/2<0?-1:1),x=Math.max(n,Math.floor(t-d*h/f+g)),O=Math.min(r,Math.floor(t+(f-d)*h/f+g));L8(e,t,x,O,a)}const o=e[t];let l=n,c=r;for(Au(e,n,t),a(e[r],o)>0&&Au(e,n,r);l<c;){for(Au(e,l,c),++l,--c;a(e[l],o)<0;)++l;for(;a(e[c],o)>0;)--c}a(e[n],o)===0?Au(e,n,c):(++c,Au(e,c,r)),c<=t&&(n=c+1),t<=c&&(r=c-1)}return e}function Au(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function lne(e,t,n){if(e=Float64Array.from(Jte(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return OR(e);if(t>=1)return SR(e);var r,a=(r-1)*t,o=Math.floor(a),l=SR(L8(e,o).subarray(0,o+1)),c=OR(e.subarray(o+1));return l+(c-l)*(a-o)}}function cne(e,t,n=k8){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,a=(r-1)*t,o=Math.floor(a),l=+n(e[o],o,e),c=+n(e[o+1],o+1,e);return l+(c-l)*(a-o)}}function une(e,t,n){e=+e,t=+t,n=(a=arguments.length)<2?(t=e,e=0,1):a<3?1:+n;for(var r=-1,a=Math.max(0,Math.ceil((t-e)/n))|0,o=new Array(a);++r<a;)o[r]=e+r*n;return o}function Ir(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function fi(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 IS=Symbol("implicit");function nP(){var e=new xR,t=[],n=[],r=IS;function a(o){let l=e.get(o);if(l===void 0){if(r!==IS)return r;e.set(o,l=t.push(o)-1)}return n[l%n.length]}return a.domain=function(o){if(!arguments.length)return t.slice();t=[],e=new xR;for(const l of o)e.has(l)||e.set(l,t.push(l)-1);return a},a.range=function(o){return arguments.length?(n=Array.from(o),a):n.slice()},a.unknown=function(o){return arguments.length?(r=o,a):r},a.copy=function(){return nP(t,n).unknown(r)},Ir.apply(a,arguments),a}function mf(){var e=nP().unknown(void 0),t=e.domain,n=e.range,r=0,a=1,o,l,c=!1,f=0,d=0,m=.5;delete e.unknown;function h(){var g=t().length,x=a<r,O=x?a:r,b=x?r:a;o=(b-O)/Math.max(1,g-f+d*2),c&&(o=Math.floor(o)),O+=(b-O-o*(g-f))*m,l=o*(1-f),c&&(O=Math.round(O),l=Math.round(l));var S=une(g).map(function(A){return O+o*A});return n(x?S.reverse():S)}return e.domain=function(g){return arguments.length?(t(g),h()):t()},e.range=function(g){return arguments.length?([r,a]=g,r=+r,a=+a,h()):[r,a]},e.rangeRound=function(g){return[r,a]=g,r=+r,a=+a,c=!0,h()},e.bandwidth=function(){return l},e.step=function(){return o},e.round=function(g){return arguments.length?(c=!!g,h()):c},e.padding=function(g){return arguments.length?(f=Math.min(1,d=+g),h()):f},e.paddingInner=function(g){return arguments.length?(f=Math.min(1,g),h()):f},e.paddingOuter=function(g){return arguments.length?(d=+g,h()):d},e.align=function(g){return arguments.length?(m=Math.max(0,Math.min(1,g)),h()):m},e.copy=function(){return mf(t(),[r,a]).round(c).paddingInner(f).paddingOuter(d).align(m)},Ir.apply(h(),arguments)}function $8(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return $8(t())},e}function Uu(){return $8(mf.apply(null,arguments).paddingInner(1))}function rP(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function B8(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function cd(){}var gf=.7,Qp=1/gf,Nl="\\s*([+-]?\\d+)\\s*",vf="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ma="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",fne=/^#([0-9a-f]{3,8})$/,dne=new RegExp(`^rgb\\(${Nl},${Nl},${Nl}\\)$`),hne=new RegExp(`^rgb\\(${ma},${ma},${ma}\\)$`),pne=new RegExp(`^rgba\\(${Nl},${Nl},${Nl},${vf}\\)$`),mne=new RegExp(`^rgba\\(${ma},${ma},${ma},${vf}\\)$`),gne=new RegExp(`^hsl\\(${vf},${ma},${ma}\\)$`),vne=new RegExp(`^hsla\\(${vf},${ma},${ma},${vf}\\)$`),AR={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};rP(cd,yf,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:PR,formatHex:PR,formatHex8:yne,formatHsl:bne,formatRgb:_R,toString:_R}
vendor: 7,119 bytes, line 321
321);function PR(){return this.rgb().formatHex()}function yne(){return this.rgb().formatHex8()}function bne(){return q8(this).formatHsl()}function _R(){return this.rgb().formatRgb()}function yf(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=fne.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?CR(t):n===3?new Kn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Zh(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Zh(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=dne.exec(e))?new Kn(t[1],t[2],t[3],1):(t=hne.exec(e))?new Kn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=pne.exec(e))?Zh(t[1],t[2],t[3],t[4]):(t=mne.exec(e))?Zh(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=gne.exec(e))?ER(t[1],t[2]/100,t[3]/100,1):(t=vne.exec(e))?ER(t[1],t[2]/100,t[3]/100,t[4]):AR.hasOwnProperty(e)?CR(AR[e]):e==="transparent"?new Kn(NaN,NaN,NaN,0):null}function CR(e){return new Kn(e>>16&255,e>>8&255,e&255,1)}function Zh(e,t,n,r){return r<=0&&(e=t=n=NaN),new Kn(e,t,n,r)}function xne(e){return e instanceof cd||(e=yf(e)),e?(e=e.rgb(),new Kn(e.r,e.g,e.b,e.opacity)):new Kn}function LS(e,t,n,r){return arguments.length===1?xne(e):new Kn(e,t,n,r??1)}function Kn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}rP(Kn,LS,B8(cd,{brighter(e){return e=e==null?Qp:Math.pow(Qp,e),new Kn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?gf:Math.pow(gf,e),new Kn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Kn(Wo(this.r),Wo(this.g),Wo(this.b),Wp(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:TR,formatHex:TR,formatHex8:wne,formatRgb:jR,toString:jR}));function TR(){return`#${Ko(this.r)}${Ko(this.g)}${Ko(this.b)}`}function wne(){return`#${Ko(this.r)}${Ko(this.g)}${Ko(this.b)}${Ko((isNaN(this.opacity)?1:this.opacity)*255)}`}function jR(){const e=Wp(this.opacity);return`${e===1?"rgb(":"rgba("}${Wo(this.r)}, ${Wo(this.g)}, ${Wo(this.b)}${e===1?")":`, ${e})`}`}function Wp(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Wo(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ko(e){return e=Wo(e),(e<16?"0":"")+e.toString(16)}function ER(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Xr(e,t,n,r)}function q8(e){if(e instanceof Xr)return new Xr(e.h,e.s,e.l,e.opacity);if(e instanceof cd||(e=yf(e)),!e)return new Xr;if(e instanceof Xr)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,a=Math.min(t,n,r),o=Math.max(t,n,r),l=NaN,c=o-a,f=(o+a)/2;return c?(t===o?l=(n-r)/c+(n<r)*6:n===o?l=(r-t)/c+2:l=(t-n)/c+4,c/=f<.5?o+a:2-o-a,l*=60):c=f>0&&f<1?0:l,new Xr(l,c,f,e.opacity)}function Sne(e,t,n,r){return arguments.length===1?q8(e):new Xr(e,t,n,r??1)}function Xr(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}rP(Xr,Sne,B8(cd,{brighter(e){return e=e==null?Qp:Math.pow(Qp,e),new Xr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?gf:Math.pow(gf,e),new Xr(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,a=2*n-r;return new Kn(N1(e>=240?e-240:e+120,a,r),N1(e,a,r),N1(e<120?e+240:e-120,a,r),this.opacity)},clamp(){return new Xr(NR(this.h),Jh(this.s),Jh(this.l),Wp(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=Wp(this.opacity);return`${e===1?"hsl(":"hsla("}${NR(this.h)}, ${Jh(this.s)*100}%, ${Jh(this.l)*100}%${e===1?")":`, ${e})`}`}}));function NR(e){return e=(e||0)%360,e<0?e+360:e}function Jh(e){return Math.max(0,Math.min(1,e||0))}function N1(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 aP=e=>()=>e;function One(e,t){return function(n){return e+n*t}}function Ane(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 Pne(e){return(e=+e)==1?z8:function(t,n){return n-t?Ane(t,n,e):aP(isNaN(t)?n:t)}}function z8(e,t){var n=t-e;return n?One(e,n):aP(isNaN(e)?t:e)}const MR=(function e(t){var n=Pne(t);function r(a,o){var l=n((a=LS(a)).r,(o=LS(o)).r),c=n(a.g,o.g),f=n(a.b,o.b),d=z8(a.opacity,o.opacity);return function(m){return a.r=l(m),a.g=c(m),a.b=f(m),a.opacity=d(m),a+""}}return r.gamma=e,r})(1);function _ne(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),a;return function(o){for(a=0;a<n;++a)r[a]=e[a]*(1-o)+t[a]*o;return r}}function Cne(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Tne(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,a=new Array(r),o=new Array(n),l;for(l=0;l<r;++l)a[l]=yc(e[l],t[l]);for(;l<n;++l)o[l]=t[l];return function(c){for(l=0;l<r;++l)o[l]=a[l](c);return o}}function jne(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Zp(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Ene(e,t){var n={},r={},a;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(a in t)a in e?n[a]=yc(e[a],t[a]):r[a]=t[a];return function(o){for(a in n)r[a]=n[a](o);return r}}var $S=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,M1=new RegExp($S.source,"g");function Nne(e){return function(){return e}}function Mne(e){return function(t){return e(t)+""}}function Dne(e,t){var n=$S.lastIndex=M1.lastIndex=0,r,a,o,l=-1,c=[],f=[];for(e=e+"",t=t+"";(r=$S.exec(e))&&(a=M1.exec(t));)(o=a.index)>n&&(o=t.slice(n,o),c[l]?c[l]+=o:c[++l]=o),(r=r[0])===(a=a[0])?c[l]?c[l]+=a:c[++l]=a:(c[++l]=null,f.push({i:l,x:Zp(r,a)})),n=M1.lastIndex;return n<t.length&&(o=t.slice(n),c[l]?c[l]+=o:c[++l]=o),c.length<2?f[0]?Mne(f[0].x):Nne(t):(t=f.length,function(d){for(var m=0,h;m<t;++m)c[(h=f[m]).i]=h.x(d);return c.join("")})}function yc(e,t){var n=typeof t,r;return t==null||n==="boolean"?aP(t):(n==="number"?Zp:n==="string"?(r=yf(t))?(t=r,MR):Dne:t instanceof yf?MR:t instanceof Date?jne:Cne(t)?_ne:Array.isArray(t)?Tne:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?Ene:Zp)(e,t)}function iP(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function Rne(e,t){t===void 0&&(t=e,e=yc);for(var n=0,r=t.length-1,a=t[0],o=new Array(r<0?0:r);n<r;)o[n]=e(a,a=t[++n]);return function(l){var c=Math.max(0,Math.min(r-1,Math.floor(l*=r)));return o[c](l-c)}}function kne(e){return function(){return e}}function Jp(e){return+e}var DR=[0,1];function En(e){return e}function BS(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:kne(isNaN(t)?NaN:.5)}function Ine(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function Lne(e,t,n){var r=e[0],a=e[1],o=t[0],l=t[1];return a<r?(r=BS(a,r),o=n(l,o)):(r=BS(r,a),o=n(o,l)),function(c){return o(r(c))}}function $ne(e,t,n){var r=Math.min(e.length,t.length)-1,a=new Array(r),o=new Array(r),l=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++l<r;)a[l]=BS(e[l],e[l+1]),o[l]=n(t[l],t[l+1]);return function(c){var f=ld(e,c,1,r)-1;return o[f](a[f](c))}}function ud(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}
vendor: 4,601 bytes, line 321
321function mg(){var e=DR,t=DR,n=yc,r,a,o,l=En,c,f,d;function m(){var g=Math.min(e.length,t.length);return l!==En&&(l=Ine(e[0],e[g-1])),c=g>2?$ne:Lne,f=d=null,h}function h(g){return g==null||isNaN(g=+g)?o:(f||(f=c(e.map(r),t,n)))(r(l(g)))}return h.invert=function(g){return l(a((d||(d=c(t,e.map(r),Zp)))(g)))},h.domain=function(g){return arguments.length?(e=Array.from(g,Jp),m()):e.slice()},h.range=function(g){return arguments.length?(t=Array.from(g),m()):t.slice()},h.rangeRound=function(g){return t=Array.from(g),n=iP,m()},h.clamp=function(g){return arguments.length?(l=g?!0:En,m()):l!==En},h.interpolate=function(g){return arguments.length?(n=g,m()):n},h.unknown=function(g){return arguments.length?(o=g,h):o},function(g,x){return r=g,a=x,m()}}function oP(){return mg()(En,En)}function Bne(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function em(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function Hl(e){return e=em(Math.abs(e)),e?e[1]:NaN}function qne(e,t){return function(n,r){for(var a=n.length,o=[],l=0,c=e[0],f=0;a>0&&c>0&&(f+c+1>r&&(c=Math.max(1,r-f)),o.push(n.substring(a-=c,a+c)),!((f+=c+1)>r));)c=e[l=(l+1)%e.length];return o.reverse().join(t)}}function zne(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var Une=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function bf(e){if(!(t=Une.exec(e)))throw new Error("invalid format: "+e);var t;return new sP({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]})}bf.prototype=sP.prototype;function sP(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+""}sP.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 Hne(e){e:for(var t=e.length,n=1,r=-1,a;n<t;++n)switch(e[n]){case".":r=a=n;break;case"0":r===0&&(r=n),a=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(a+1):e}var U8;function Vne(e,t){var n=em(e,t);if(!n)return e+"";var r=n[0],a=n[1],o=a-(U8=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,l=r.length;return o===l?r:o>l?r+new Array(o-l+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+em(e,Math.max(0,t+o-1))[0]}function RR(e,t){var n=em(e,t);if(!n)return e+"";var r=n[0],a=n[1];return a<0?"0."+new Array(-a).join("0")+r:r.length>a+1?r.slice(0,a+1)+"."+r.slice(a+1):r+new Array(a-r.length+2).join("0")}const kR={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:Bne,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)=>RR(e*100,t),r:RR,s:Vne,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function IR(e){return e}var LR=Array.prototype.map,$R=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Fne(e){var t=e.grouping===void 0||e.thousands===void 0?IR:qne(LR.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",a=e.decimal===void 0?".":e.decimal+"",o=e.numerals===void 0?IR:zne(LR.call(e.numerals,String)),l=e.percent===void 0?"%":e.percent+"",c=e.minus===void 0?"â":e.minus+"",f=e.nan===void 0?"NaN":e.nan+"";function d(h){h=bf(h);var g=h.fill,x=h.align,O=h.sign,b=h.symbol,S=h.zero,A=h.width,_=h.comma,C=h.precision,M=h.trim,P=h.type;P==="n"?(_=!0,P="g"):kR[P]||(C===void 0&&(C=12),M=!0,P="g"),(S||g==="0"&&x==="=")&&(S=!0,g="0",x="=");var E=b==="$"?n:b==="#"&&/[boxX]/.test(P)?"0"+P.toLowerCase():"",T=b==="$"?r:/[%p]/.test(P)?l:"",D=kR[P],L=/[defgprs%]/.test(P);C=C===void 0?6:/[gprs]/.test(P)?Math.max(1,Math.min(21,C)):Math.max(0,Math.min(20,C));function U(I){var z=E,F=T,K,q,R;if(P==="c")F=D(I)+F,I="";else{I=+I;var $=I<0||1/I<0;if(I=isNaN(I)?f:D(Math.abs(I),C),M&&(I=Hne(I)),$&&+I==0&&O!=="+"&&($=!1),z=($?O==="("?O:c:O==="-"||O==="("?"":O)+z,F=(P==="s"?$R[8+U8/3]:"")+F+($&&O==="("?")":""),L){for(K=-1,q=I.length;++K<q;
vendor: 4,083 bytes, line 321
321)if(R=I.charCodeAt(K),48>R||R>57){F=(R===46?a+I.slice(K+1):I.slice(K))+F,I=I.slice(0,K);break}}}_&&!S&&(I=t(I,1/0));var H=z.length+I.length+F.length,W=H<A?new Array(A-H+1).join(g):"";switch(_&&S&&(I=t(W+I,W.length?A-F.length:1/0),W=""),x){case"<":I=z+I+F+W;break;case"=":I=z+W+I+F;break;case"^":I=W.slice(0,H=W.length>>1)+z+I+F+W.slice(H);break;default:I=W+z+I+F;break}return o(I)}return U.toString=function(){return h+""},U}function m(h,g){var x=d((h=bf(h),h.type="f",h)),O=Math.max(-8,Math.min(8,Math.floor(Hl(g)/3)))*3,b=Math.pow(10,-O),S=$R[8+O/3];return function(A){return x(b*A)+S}}return{format:d,formatPrefix:m}}var ep,lP,H8;Kne({thousands:",",grouping:[3],currency:["$",""]});function Kne(e){return ep=Fne(e),lP=ep.format,H8=ep.formatPrefix,ep}function Gne(e){return Math.max(0,-Hl(Math.abs(e)))}function Yne(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Hl(t)/3)))*3-Hl(Math.abs(e)))}function Xne(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Hl(t)-Hl(e))+1}function V8(e,t,n,r){var a=kS(e,t,n),o;switch(r=bf(r??",f"),r.type){case"s":{var l=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(o=Yne(a,l))&&(r.precision=o),H8(r,l)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=Xne(a,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=Gne(a))&&(r.precision=o-(r.type==="%")*2);break}}return lP(r)}function io(e){var t=e.domain;return e.ticks=function(n){var r=t();return DS(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var a=t();return V8(a[0],a[a.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),a=0,o=r.length-1,l=r[a],c=r[o],f,d,m=10;for(c<l&&(d=l,l=c,c=d,d=a,a=o,o=d);m-- >0;){if(d=RS(l,c,n),d===f)return r[a]=l,r[o]=c,t(r);if(d>0)l=Math.floor(l/d)*d,c=Math.ceil(c/d)*d;else if(d<0)l=Math.ceil(l*d)/d,c=Math.floor(c*d)/d;else break;f=d}return e},e}function tm(){var e=oP();return e.copy=function(){return ud(e,tm())},Ir.apply(e,arguments),io(e)}function F8(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,Jp),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return F8(e).unknown(t)},e=arguments.length?Array.from(e,Jp):[0,1],io(n)}function K8(e,t){e=e.slice();var n=0,r=e.length-1,a=e[n],o=e[r],l;return o<a&&(l=n,n=r,r=l,l=a,a=o,o=l),e[n]=t.floor(a),e[r]=t.ceil(o),e}function BR(e){return Math.log(e)}function qR(e){return Math.exp(e)}function Qne(e){return-Math.log(-e)}function Wne(e){return-Math.exp(-e)}function Zne(e){return isFinite(e)?+("1e"+e):e<0?0:e}function Jne(e){return e===10?Zne:e===Math.E?Math.exp:t=>Math.pow(e,t)}function ere(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 zR(e){return(t,n)=>-e(-t,n)}function cP(e){const t=e(BR,qR),n=t.domain;let r=10,a,o;function l(){return a=ere(r),o=Jne(r),n()[0]<0?(a=zR(a),o=zR(o),e(Qne,Wne)):e(BR,qR),t}return t.base=function(c){return arguments.length?(r=+c,l()):r},t.domain=function(c){return arguments.length?(n(c),l()):n()},t.ticks=c=>{const f=n();let d=f[0],m=f[f.length-1];const h=m<d;h&&([d,m]=[m,d]);let g=a(d),x=a(m),O,b;const S=c==null?10:+c;let A=[];if(!(r%1)&&x-g<S){if(g=Math.floor(g),x=Math.ceil(x),d>0){for(;g<=x;++g)for(O=1;O<r;++O)if(b=g<0?O/o(-g):O*o(g),!(b<d)){if(b>m)break;A.push(b)}}else for(;g<=x;++g)for(O=r-1;O>=1;--O)if(b=g>0?O/o(-g):O*o(g),!(b<d)){if(b>m)break;A.push(b)}A.length*2<S&&(A=DS(d,m,S))}else A=DS(g,x,Math.min(x-g,S)).map(o);return h?A.reverse():A},t.tickFormat=(c,f)=>{if(c==null&&(c=10),f==null&&(f=r===10?"s":","),typeof f!="function"&&(!(r%1)&&(f=bf(f)).precision==null&&(f.trim=!0),f=lP(f)),c===1/0)return f;const d=Math.max(1,r*c/t.ticks().length);return m=>{let h=m/o(Math.round(a(m)));return h*r<r-.5&&(h*=r),h<=d?f(m):""}},t.nice=()=>n(K8(n(),{floor:c=>o(Math.floor(a(c))),ceil:c=>o(Math.ceil(a(c)))})),t}function G8(){const e=cP(mg()).domain([1,10]);return e.copy=()=>ud(e,G8()).base(e.base()),Ir.apply(e,arguments),e}
321function UR(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function HR(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function uP(e){var t=1,n=e(UR(t),HR(t));return n.constant=function(r){return arguments.length?e(UR(t=+r),HR(t)):t},io(n)}function Y8(){var e=uP(mg());return e.copy=function(){return ud(e,Y8()).constant(e.constant())},Ir.apply(e,arguments)}function VR(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function tre(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function nre(e){return e<0?-e*e:e*e}function fP(e){var t=e(En,En),n=1;function r(){return n===1?e(En,En):n===.5?e(tre,nre):e(VR(n),VR(1/n))}return t.exponent=function(a){return arguments.length?(n=+a,r()):n},io(t)}function dP(){var e=fP(mg());return e.copy=function(){return ud(e,dP()).exponent(e.exponent())},Ir.apply(e,arguments),e}function rre(){return dP.apply(null,arguments).exponent(.5)}function FR(e){return Math.sign(e)*e*e}function are(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function X8(){var e=oP(),t=[0,1],n=!1,r;function a(o){var l=are(e(o));return isNaN(l)?r:n?Math.round(l):l}return a.invert=function(o){return e.invert(FR(o))},a.domain=function(o){return arguments.length?(e.domain(o),a):e.domain()},a.range=function(o){return arguments.length?(e.range((t=Array.from(o,Jp)).map(FR)),a):t.slice()},a.rangeRound=function(o){return a.range(o).round(!0)},a.round=function(o){return arguments.length?(n=!!o,a):n},a.clamp=function(o){return arguments.length?(e.clamp(o),a):e.clamp()},a.unknown=function(o){return arguments.length?(r=o,a):r},a.copy=function(){return X8(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},Ir.apply(a,arguments),io(a)}function Q8(){var e=[],t=[],n=[],r;function a(){var l=0,c=Math.max(1,t.length);for(n=new Array(c-1);++l<c;)n[l-1]=cne(e,l/c);return o}function o(l){return l==null||isNaN(l=+l)?r:t[ld(n,l)]}return o.invertExtent=function(l){var c=t.indexOf(l);return c<0?[NaN,NaN]:[c>0?n[c-1]:e[0],c<n.length?n[c]:e[e.length-1]]},o.domain=function(l){if(!arguments.length)return e.slice();e=[];for(let c of l)c!=null&&!isNaN(c=+c)&&e.push(c);return e.sort(Gi),a()},o.range=function(l){return arguments.length?(t=Array.from(l),a()):t.slice()},o.unknown=function(l){return arguments.length?(r=l,o):r},o.quantiles=function(){return n.slice()},o.copy=function(){return Q8().domain(e).range(t).unknown(r)},Ir.apply(o,arguments)}function W8(){var e=0,t=1,n=1,r=[.5],a=[0,1],o;function l(f){return f!=null&&f<=f?a[ld(r,f,0,n)]:o}function c(){var f=-1;for(r=new Array(n);++f<n;)r[f]=((f+1)*t-(f-n)*e)/(n+1);return l}return l.domain=function(f){return arguments.length?([e,t]=f,e=+e,t=+t,c()):[e,t]},l.range=function(f){return arguments.length?(n=(a=Array.from(f)).length-1,c()):a.slice()},l.invertExtent=function(f){var d=a.indexOf(f);return d<0?[NaN,NaN]:d<1?[e,r[0]]:d>=n?[r[n-1],t]:[r[d-1],r[d]]},l.unknown=function(f){return arguments.length&&(o=f),l},l.thresholds=function(){return r.slice()},l.copy=function(){return W8().domain([e,t]).range(a).unknown(o)},Ir.apply(io(l),arguments)}function Z8(){var e=[.5],t=[0,1],n,r=1;function a(o){return o!=null&&o<=o?t[ld(e,o,0,r)]:n}return a.domain=function(o){return arguments.length?(e=Array.from(o),r=Math.min(e.length,t.length-1),a):e.slice()},a.range=function(o){return arguments.length?(t=Array.from(o),r=Math.min(e.length,t.length-1),a):t.slice()},a.invertExtent=function(o){var l=t.indexOf(o);return[e[l-1],e[l]]},a.unknown=function(o){return arguments.length?(n=o,a):n},a.copy=function(){return Z8().domain(e).range(t).unknown(n)},Ir.apply(a,arguments)}const D1=new Date,R1=new Date;function Wt(e,t,n,r){function a(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return a.floor=o=>(e(o=new Date(+o)),o),a.ceil=o=>(e(o=new Date(o-1)),t(o,1),e(o),o),a.round=o=>{const l=a(o),c=a.ceil(o);return o-l<c-o?l:c},a.offset=(o,l)=>(t(o=new Date(+o),l==null?1:Math.floor(l)),o),a.range=(o,l,c)=>{const f=[];if(o=a.ceil(o),c=c==null?1:Math.floor(c),!(o<l)||!(c>0))return f;let d;do f.push(d=new Date(+o)),t(o,c),e(o);while(d<o&&o<l);return f},a.filter=o=>Wt(l=>{if(l>=l)for(;e(l),!o(l);)l.setTime(l-1)},(l,c)=>{if(l>=l)if(c<0)for(;++c<=0;)for(;t(l,-1),!o(l););else for(;--c>=0;)for(;t(l,1),!o(l););}),n&&(a.count=(o,l)=>(D1.setTime(+o),R1.setTime(+l),e(D1),e(R1),Math.floor(n(D1,R1))),a.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?a.filter(r?l=>r(l)%o===0:l=>a.count(0,l)%o===0):a)),a}const nm=Wt(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);nm.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Wt(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):nm);nm.range;const Ka=1e3,jr=Ka*60,Ga=jr*60,ti=Ga*24,hP=ti*7,KR=ti*30,k1=ti*365,Go=Wt(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Ka)},(e,t)=>(t-e)/Ka,e=>e.getUTCSeconds());Go.range;const pP=Wt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ka)},(e,t)=>{e.setTime(+e+t*jr)},(e,t)=>(t-e)/jr,e=>e.getMinutes());pP.range;const mP=Wt(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*jr)},(e,t)=>(t-e)/jr,e=>e.getUTCMinutes());mP.range;const gP=Wt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ka-e.getMinutes()*jr)},(e,t)=>{e.setTime(+e+t*Ga)},(e,t)=>(t-e)/Ga,e=>e.getHours());gP.range;const vP=Wt(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Ga)},(e,t)=>(t-e)/Ga,e=>e.getUTCHours());vP.range;const fd=Wt(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*jr)/ti,e=>e.getDate()-1);fd.range;const gg=Wt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ti,e=>e.getUTCDate()-1);gg.range;const J8=Wt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ti,e=>Math.floor(e/ti));J8.range;function gs(e){return Wt(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())*jr)/hP)}const vg=gs(0),rm=gs(1),ire=gs(2),ore=gs(3),Vl=gs(4),sre=gs(5),lre=gs(6);vg.range;rm.range;ire.range;ore.range;Vl.range;sre.range;lre.range;function vs(e){return Wt(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)/hP)}const yg=vs(0),am=vs(1),cre=vs(2),ure=vs(3),Fl=vs(4),fre=vs(5),dre=vs(6);yg.range;am.range;cre.range;ure.range;Fl.range;fre.range;dre.range;const yP=Wt(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());yP.range;const bP=Wt(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());bP.range;const ni=Wt(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());ni.every=e=>
vendor: 6,197 bytes, line 321
321!isFinite(e=Math.floor(e))||!(e>0)?null:Wt(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)});ni.range;const ri=Wt(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());ri.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Wt(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)});ri.range;function e$(e,t,n,r,a,o){const l=[[Go,1,Ka],[Go,5,5*Ka],[Go,15,15*Ka],[Go,30,30*Ka],[o,1,jr],[o,5,5*jr],[o,15,15*jr],[o,30,30*jr],[a,1,Ga],[a,3,3*Ga],[a,6,6*Ga],[a,12,12*Ga],[r,1,ti],[r,2,2*ti],[n,1,hP],[t,1,KR],[t,3,3*KR],[e,1,k1]];function c(d,m,h){const g=m<d;g&&([d,m]=[m,d]);const x=h&&typeof h.range=="function"?h:f(d,m,h),O=x?x.range(d,+m+1):[];return g?O.reverse():O}function f(d,m,h){const g=Math.abs(m-d)/h,x=tP(([,,S])=>S).right(l,g);if(x===l.length)return e.every(kS(d/k1,m/k1,h));if(x===0)return nm.every(Math.max(kS(d,m,h),1));const[O,b]=l[g/l[x-1][2]<l[x][2]/g?x-1:x];return O.every(b)}return[c,f]}const[hre,pre]=e$(ri,bP,yg,J8,vP,mP),[mre,gre]=e$(ni,yP,vg,fd,gP,pP);function I1(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 L1(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 Pu(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function vre(e){var t=e.dateTime,n=e.date,r=e.time,a=e.periods,o=e.days,l=e.shortDays,c=e.months,f=e.shortMonths,d=_u(a),m=Cu(a),h=_u(o),g=Cu(o),x=_u(l),O=Cu(l),b=_u(c),S=Cu(c),A=_u(f),_=Cu(f),C={a:$,A:H,b:W,B:ae,c:null,d:ZR,e:ZR,f:qre,g:Qre,G:Zre,H:Lre,I:$re,j:Bre,L:t$,m:zre,M:Ure,p:B,q:Y,Q:tk,s:nk,S:Hre,u:Vre,U:Fre,V:Kre,w:Gre,W:Yre,x:null,X:null,y:Xre,Y:Wre,Z:Jre,"%":ek},M={a:X,A:J,b:ue,B:he,c:null,d:JR,e:JR,f:rae,g:hae,G:mae,H:eae,I:tae,j:nae,L:r$,m:aae,M:iae,p:fe,q:me,Q:tk,s:nk,S:oae,u:sae,U:lae,V:cae,w:uae,W:fae,x:null,X:null,y:dae,Y:pae,Z:gae,"%":ek},P={a:U,A:I,b:z,B:F,c:K,d:QR,e:QR,f:Dre,g:XR,G:YR,H:WR,I:WR,j:jre,L:Mre,m:Tre,M:Ere,p:L,q:Cre,Q:kre,s:Ire,S:Nre,u:Sre,U:Ore,V:Are,w:wre,W:Pre,x:q,X:R,y:XR,Y:YR,Z:_re,"%":Rre};C.x=E(n,C),C.X=E(r,C),C.c=E(t,C),M.x=E(n,M),M.X=E(r,M),M.c=E(t,M);function E(le,pe){return function(ve){var ie=[],Re=-1,Pe=0,nt=le.length,Je,pt,Mn;for(ve instanceof Date||(ve=new Date(+ve));++Re<nt;)le.charCodeAt(Re)===37&&(ie.push(le.slice(Pe,Re)),(pt=GR[Je=le.charAt(++Re)])!=null?Je=le.charAt(++Re):pt=Je==="e"?" ":"0",(Mn=pe[Je])&&(Je=Mn(ve,pt)),ie.push(Je),Pe=Re+1);return ie.push(le.slice(Pe,Re)),ie.join("")}}function T(le,pe){return function(ve){var ie=Pu(1900,void 0,1),Re=D(ie,le,ve+="",0),Pe,nt;if(Re!=ve.length)return null;if("Q"in ie)return new Date(ie.Q);if("s"in ie)return new Date(ie.s*1e3+("L"in ie?ie.L:0));if(pe&&!("Z"in ie)&&(ie.Z=0),"p"in ie&&(ie.H=ie.H%12+ie.p*12),ie.m===void 0&&(ie.m="q"in ie?ie.q:0),"V"in ie){if(ie.V<1||ie.V>53)return null;"w"in ie||(ie.w=1),"Z"in ie?(Pe=L1(Pu(ie.y,0,1)),nt=Pe.getUTCDay(),Pe=nt>4||nt===0?am.ceil(Pe):am(Pe),Pe=gg.offset(Pe,(ie.V-1)*7),ie.y=Pe.getUTCFullYear(),ie.m=Pe.getUTCMonth(),ie.d=Pe.getUTCDate()+(ie.w+6)%7):(Pe=I1(Pu(ie.y,0,1)),nt=Pe.getDay(),Pe=nt>4||nt===0?rm.ceil(Pe):rm(Pe),Pe=fd.offset(Pe,(ie.V-1)*7),ie.y=Pe.getFullYear(),ie.m=Pe.getMonth(),ie.d=Pe.getDate()+(ie.w+6)%7)}else("W"in ie||"U"in ie)&&("w"in ie||(ie.w="u"in ie?ie.u%7:"W"in ie?1:0),nt="Z"in ie?L1(Pu(ie.y,0,1)).getUTCDay():I1(Pu(ie.y,0,1)).getDay(),ie.m=0,ie.d="W"in ie?(ie.w+6)%7+ie.W*7-(nt+5)%7:ie.w+ie.U*7-(nt+6)%7);return"Z"in ie?(ie.H+=ie.Z/100|0,ie.M+=ie.Z%100,L1(ie)):I1(ie)}}function D(le,pe,ve,ie){for(var Re=0,Pe=pe.length,nt=ve.length,Je,pt;Re<Pe;){if(ie>=nt)return-1;if(Je=pe.charCodeAt(Re++),Je===37){if(Je=pe.charAt(Re++),pt=P[Je in GR?pe.charAt(Re++):Je],!pt||(ie=pt(le,ve,ie))<0)return-1}else if(Je!=ve.charCodeAt(ie++))return-1}return ie}function L(le,pe,ve){var ie=d.exec(pe.slice(ve));return ie?(le.p=m.get(ie[0].toLowerCase()),ve+ie[0].length):-1}function U(le,pe,ve){var ie=x.exec(pe.slice(ve));return ie?(le.w=O.get(ie[0].toLowerCase()),ve+ie[0].length):-1}function I(le,pe,ve){var ie=h.exec(pe.slice(ve));return ie?(le.w=g.get(ie[0].toLowerCase()),ve+ie[0].length):-1}function z(le,pe,ve){var ie=A.exec(pe.slice(ve));return ie?(le.m=_.get(ie[0].toLowerCase()),ve+ie[0].length):-1}function F(le,pe,ve){var ie=b.exec(pe.slice(ve));return ie?(le.m=S.get(ie[0].toLowerCase()),ve+ie[0].length):-1}function K(le,pe,ve){return D(le,t,pe,ve)}function q(le,pe,ve){return D(le,n,pe,ve)}function R(le,pe,ve){return D(le,r,pe,ve)}function $(le){return l[le.getDay()]}function H(le){return o[le.getDay()]}function W(le){return f[le.getMonth()]}function ae(le){return c[le.getMonth()]}function B(le){return a[+(le.getHours()>=12)]}function Y(le){return 1+~~(le.getMonth()/3)}function X(le){return l[le.getUTCDay()]}function J(le){return o[le.getUTCDay()]}function ue(le){return f[le.getUTCMonth()]}function he(le){return c[le.getUTCMonth()]}function fe(le){return a[+(le.getUTCHours()>=12)]}function me(le){return 1+~~(le.getUTCMonth()/3)}return{format:function(le){var pe=E(le+="",C);return pe.toString=function(){return le},pe},parse:function(le){var pe=T(le+="",!1);return pe.toString=function(){return le},pe},utcFormat:function(le){var pe=E(le+="",M);return pe.toString=function(){return le},pe},utcParse:function(le){var pe=T(le+="",!0);return pe.toString=function(){return le},pe}}}var GR={"-":"",_:" ",0:"0"},rn=/^\s*\d+/,yre=/^%/,bre=/[\\^$*+?|[\]().{}]/g;function We(e,t,n){var r=e<0?"-":"",a=(r?-e:e)+"",o=a.length;return r+(o<n?new Array(n-o+1).join(t)+a:a)}function xre(e){return e.replace(bre,"\\$&")}function _u(e){return new RegExp("^(?:"+e.map(xre).join("|")+")","i")}function Cu(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function wre(e,t,n){var r=rn.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Sre(e,t,n){var r=rn.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Ore(e,t,n){var r=rn.exec(t.slice(n,n+2));
vendor: 4,106 bytes, line 321
321return r?(e.U=+r[0],n+r[0].length):-1}function Are(e,t,n){var r=rn.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Pre(e,t,n){var r=rn.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function YR(e,t,n){var r=rn.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function XR(e,t,n){var r=rn.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function _re(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 Cre(e,t,n){var r=rn.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function Tre(e,t,n){var r=rn.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function QR(e,t,n){var r=rn.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function jre(e,t,n){var r=rn.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function WR(e,t,n){var r=rn.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Ere(e,t,n){var r=rn.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Nre(e,t,n){var r=rn.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Mre(e,t,n){var r=rn.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Dre(e,t,n){var r=rn.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Rre(e,t,n){var r=yre.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function kre(e,t,n){var r=rn.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Ire(e,t,n){var r=rn.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function ZR(e,t){return We(e.getDate(),t,2)}function Lre(e,t){return We(e.getHours(),t,2)}function $re(e,t){return We(e.getHours()%12||12,t,2)}function Bre(e,t){return We(1+fd.count(ni(e),e),t,3)}function t$(e,t){return We(e.getMilliseconds(),t,3)}function qre(e,t){return t$(e,t)+"000"}function zre(e,t){return We(e.getMonth()+1,t,2)}function Ure(e,t){return We(e.getMinutes(),t,2)}function Hre(e,t){return We(e.getSeconds(),t,2)}function Vre(e){var t=e.getDay();return t===0?7:t}function Fre(e,t){return We(vg.count(ni(e)-1,e),t,2)}function n$(e){var t=e.getDay();return t>=4||t===0?Vl(e):Vl.ceil(e)}function Kre(e,t){return e=n$(e),We(Vl.count(ni(e),e)+(ni(e).getDay()===4),t,2)}function Gre(e){return e.getDay()}function Yre(e,t){return We(rm.count(ni(e)-1,e),t,2)}function Xre(e,t){return We(e.getFullYear()%100,t,2)}function Qre(e,t){return e=n$(e),We(e.getFullYear()%100,t,2)}function Wre(e,t){return We(e.getFullYear()%1e4,t,4)}function Zre(e,t){var n=e.getDay();return e=n>=4||n===0?Vl(e):Vl.ceil(e),We(e.getFullYear()%1e4,t,4)}function Jre(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+We(t/60|0,"0",2)+We(t%60,"0",2)}function JR(e,t){return We(e.getUTCDate(),t,2)}function eae(e,t){return We(e.getUTCHours(),t,2)}function tae(e,t){return We(e.getUTCHours()%12||12,t,2)}function nae(e,t){return We(1+gg.count(ri(e),e),t,3)}function r$(e,t){return We(e.getUTCMilliseconds(),t,3)}function rae(e,t){return r$(e,t)+"000"}function aae(e,t){return We(e.getUTCMonth()+1,t,2)}function iae(e,t){return We(e.getUTCMinutes(),t,2)}function oae(e,t){return We(e.getUTCSeconds(),t,2)}function sae(e){var t=e.getUTCDay();return t===0?7:t}function lae(e,t){return We(yg.count(ri(e)-1,e),t,2)}function a$(e){var t=e.getUTCDay();return t>=4||t===0?Fl(e):Fl.ceil(e)}function cae(e,t){return e=a$(e),We(Fl.count(ri(e),e)+(ri(e).getUTCDay()===4),t,2)}function uae(e){return e.getUTCDay()}function fae(e,t){return We(am.count(ri(e)-1,e),t,2)}function dae(e,t){return We(e.getUTCFullYear()%100,t,2)}function hae(e,t){return e=a$(e),We(e.getUTCFullYear()%100,t,2)}function pae(e,t){return We(e.getUTCFullYear()%1e4,t,4)}function mae(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Fl(e):Fl.ceil(e),We(e.getUTCFullYear()%1e4,t,4)}function gae(){return"+0000"}function ek(){return"%"}function tk(e){return+e}function nk(e){return Math.floor(+e/1e3)}var hl,i$,o$;vae({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
321ay","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 vae(e){return hl=vre(e),i$=hl.format,hl.parse,o$=hl.utcFormat,hl.utcParse,hl}function yae(e){return new Date(e)}function bae(e){return e instanceof Date?+e:+new Date(+e)}function xP(e,t,n,r,a,o,l,c,f,d){var m=oP(),h=m.invert,g=m.domain,x=d(".%L"),O=d(":%S"),b=d("%I:%M"),S=d("%I %p"),A=d("%a %d"),_=d("%b %d"),C=d("%B"),M=d("%Y");function P(E){return(f(E)<E?x:c(E)<E?O:l(E)<E?b:o(E)<E?S:r(E)<E?a(E)<E?A:_:n(E)<E?C:M)(E)}return m.invert=function(E){return new Date(h(E))},m.domain=function(E){return arguments.length?g(Array.from(E,bae)):g().map(yae)},m.ticks=function(E){var T=g();return e(T[0],T[T.length-1],E??10)},m.tickFormat=function(E,T){return T==null?P:d(T)},m.nice=function(E){var T=g();return(!E||typeof E.range!="function")&&(E=t(T[0],T[T.length-1],E??10)),E?g(K8(T,E)):m},m.copy=function(){return ud(m,xP(e,t,n,r,a,o,l,c,f,d))},m}function xae(){return Ir.apply(xP(mre,gre,ni,yP,vg,fd,gP,pP,Go,i$).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function wae(){return Ir.apply(xP(hre,pre,ri,bP,yg,gg,vP,mP,Go,o$).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function bg(){var e=0,t=1,n,r,a,o,l=En,c=!1,f;function d(h){return h==null||isNaN(h=+h)?f:l(a===0?.5:(h=(o(h)-n)*a,c?Math.max(0,Math.min(1,h)):h))}d.domain=function(h){return arguments.length?([e,t]=h,n=o(e=+e),r=o(t=+t),a=n===r?0:1/(r-n),d):[e,t]},d.clamp=function(h){return arguments.length?(c=!!h,d):c},d.interpolator=function(h){return arguments.length?(l=h,d):l};function m(h){return function(g){var x,O;return arguments.length?([x,O]=g,l=h(x,O),d):[l(0),l(1)]}}return d.range=m(yc),d.rangeRound=m(iP),d.unknown=function(h){return arguments.length?(f=h,d):f},function(h){return o=h,n=h(e),r=h(t),a=n===r?0:1/(r-n),d}}function oo(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function s$(){var e=io(bg()(En));return e.copy=function(){return oo(e,s$())},fi.apply(e,arguments)}function l$(){var e=cP(bg()).domain([1,10]);return e.copy=function(){return oo(e,l$()).base(e.base())},fi.apply(e,arguments)}function c$(){var e=uP(bg());return e.copy=function(){return oo(e,c$()).constant(e.constant())},fi.apply(e,arguments)}function wP(){var e=fP(bg());return e.copy=function(){return oo(e,wP()).exponent(e.exponent())},fi.apply(e,arguments)}function Sae(){return wP.apply(null,arguments).exponent(.5)}function u$(){var e=[],t=En;function n(r){if(r!=null&&!isNaN(r=+r))return t((ld(e,r,1)-1)/(e.length-1))}return n.domain=function(r){if(!arguments.length)return e.slice();e=[];for(let a of r)a!=null&&!isNaN(a=+a)&&e.push(a);return e.sort(Gi),n},n.interpolator=function(r){return arguments.length?(t=r,n):t},n.range=function(){return e.map((r,a)=>t(a/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(a,o)=>lne(e,o/r))},n.copy=function(){return u$(t).domain(e)},fi.apply(n,arguments)}function xg(){var e=0,t=.5,n=1,r=1,a,o,l,c,f,d=En,m,h=!1,g;function x(b){return isNaN(b=+b)?g:(b=.5+((b=+m(b))-o)*(r*b<r*o?c:f),d(h?Math.max(0,Math.min(1,b)):b))}x.domain=function(b){return arguments.length?([e,t,n]=b,a=m(e=+e),o=m(t=+t),l=m(n=+n),c=a===o?0:.5/(o-a),f=o===l?0:.5/(l-o),r=o<a?-1:1,x):[e,t,n]},x.clamp=function(b){return arguments.length?(h=!!b,x):h},x.interpolator=function(b){return arguments.length?(d=b,x):d};function O(b){return function(S){var A,_,C;return arguments.length?([A,_,C]=S,d=Rne(b,[A,_,C]),x):[d(0),d(.5),d(1)]}}return x.range=O(yc),x.rangeRound=O(iP),x.unknown=function(b){return arguments.length?(g=b,x):g},function(b){return m=b,a=b(e),o=b(t),l=b(n),c=a===o?0:.5/(o-a),f=o===l?0:.5/(l-o),r=o<a?-1:1,x}}function f$(){var e=io(xg()(En));return e.copy=function(){return oo(e,f$())},fi.apply(e,arguments)}function d$(){var e=cP(xg()).domain([.1,1,10]);return e.copy=function(){return oo(e,d$()).base(e.base())},fi.apply(e,arguments)}function h$(){var e=uP(xg());return e.copy=function(){return oo(e,h$()).constant(e.constant())},fi.apply(e,arguments)}function SP(){var e=fP(xg());return e.copy=function(){return oo(e,SP()).exponent(e.exponent())},fi.apply(e,arguments)}function Oae(){return SP.apply(null,arguments).exponent(.5)}const rk=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:mf,scaleDiverging:f$,scaleDivergingLog:d$,scaleDivergingPow:SP,scaleDivergingSqrt:Oae,scaleDivergingSymlog:h$,scaleIdentity:F8,scaleImplicit:IS,scaleLinear:tm,scaleLog:G8,scaleOrdinal:nP,scalePoint:Uu,scalePow:dP,scaleQuantile:Q8,scaleQuantize:W8,scaleRadial:X8,scaleSequential:s$,scaleSequentialLog:l$,scaleSequentialPow:wP,scaleSequentialQuantile:u$,scaleSequentialSqrt:Sae,scaleSequentialSymlog:c$,scaleSqrt:rre,scaleSymlog:Y8,scaleThreshold:Z8,scaleTime:xae,scaleUtc:wae,tickFormat:V8},Symbol.toStringTag,{value:"Module"}));var $1,ak;function p$(){if(ak)return $1;ak=1;var e=pc();function t(n,r,a){for(var o=-1,l=n.length;++o<l;){var c=n[o],f=r(c);if(f!=null&&(d===void 0?f===f&&!e(f):a(f,d)))var d=f,m=c}return m}return $1=t,$1}var B1,ik;function Aae(){if(ik)return B1;ik=1;function e(t,n){return t>n}return B1=e,B1}var q1,ok;function Pae(){if(ok)return q1;ok=1;var e=p$(),t=Aae(),n=gc();function r(a){return a&&a.length?e(a,n,t):void 0}return q1=r,q1}var _ae=Pae();const wg=ut(_ae);var z1,sk;function Cae(){if(sk)return z1;sk=1;function e(t,n){return t<n}return z1=e,z1}var U1,lk;function Tae(){if(lk)return U1;lk=1;var e=p$(),t=Cae(),n=gc();function r(a){return a&&a.length?e(a,n,t):void 0}return U1=r,U1}var jae=Tae();const Sg=ut(jae);var H1,ck;function Eae(){if(ck)return H1;ck=1;var e=$A(),t=ao(),n=w8(),r=Yn();function a(o,l){var c=r(o)?e:n;return c(o,t(l,3))}return H1=a,H1}var V1,uk;function Nae(){if(uk)return V1;uk=1;var e=b8(),t=Eae();function n(r,a){return e(t(r,a),1)}return V1=n,V1}var Mae=Nae();const Dae=ut(Mae);var F1,fk;
vendor: 66,500 bytes, lines 321-347
321function Rae(){if(fk)return F1;fk=1;var e=WA();function t(n,r){return e(n,r)}return F1=t,F1}var kae=Rae();const Og=ut(kae);var bc=1e9,Iae={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},AP,wt=!0,kr="[DecimalError] ",Zo=kr+"Invalid argument: ",OP=kr+"Exponent out of range: ",xc=Math.floor,zo=Math.pow,Lae=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,lr,nn=1e7,yt=7,m$=9007199254740991,im=xc(m$/yt),be={};be.absoluteValue=be.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};be.comparedTo=be.cmp=function(e){var t,n,r,a,o=this;if(e=new o.constructor(e),o.s!==e.s)return o.s||-e.s;if(o.e!==e.e)return o.e>e.e^o.s<0?1:-1;for(r=o.d.length,a=e.d.length,t=0,n=r<a?r:a;t<n;++t)if(o.d[t]!==e.d[t])return o.d[t]>e.d[t]^o.s<0?1:-1;return r===a?0:r>a^o.s<0?1:-1};be.decimalPlaces=be.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*yt;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};be.dividedBy=be.div=function(e){return Wa(this,new this.constructor(e))};be.dividedToIntegerBy=be.idiv=function(e){var t=this,n=t.constructor;return ht(Wa(t,new n(e),0,1),n.precision)};be.equals=be.eq=function(e){return!this.cmp(e)};be.exponent=function(){return Ft(this)};be.greaterThan=be.gt=function(e){return this.cmp(e)>0};be.greaterThanOrEqualTo=be.gte=function(e){return this.cmp(e)>=0};be.isInteger=be.isint=function(){return this.e>this.d.length-2};be.isNegative=be.isneg=function(){return this.s<0};be.isPositive=be.ispos=function(){return this.s>0};be.isZero=function(){return this.s===0};be.lessThan=be.lt=function(e){return this.cmp(e)<0};be.lessThanOrEqualTo=be.lte=function(e){return this.cmp(e)<1};be.logarithm=be.log=function(e){var t,n=this,r=n.constructor,a=r.precision,o=a+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(lr))throw Error(kr+"NaN");if(n.s<1)throw Error(kr+(n.s?"NaN":"-Infinity"));return n.eq(lr)?new r(0):(wt=!1,t=Wa(xf(n,o),xf(e,o),o),wt=!0,ht(t,a))};be.minus=be.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?y$(t,e):g$(t,(e.s=-e.s,e))};be.modulo=be.mod=function(e){var t,n=this,r=n.constructor,a=r.precision;if(e=new r(e),!e.s)throw Error(kr+"NaN");return n.s?(wt=!1,t=Wa(n,e,0,1).times(e),wt=!0,n.minus(t)):ht(new r(n),a)};be.naturalExponential=be.exp=function(){return v$(this)};be.naturalLogarithm=be.ln=function(){return xf(this)};be.negated=be.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};be.plus=be.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?g$(t,e):y$(t,(e.s=-e.s,e))};be.precision=be.sd=function(e){var t,n,r,a=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Zo+e);if(t=Ft(a)+1,r=a.d.length-1,n=r*yt+1,r=a.d[r],r){for(;r%10==0;r/=10)n--;for(r=a.d[0];r>=10;r/=10)n++}return e&&t>n?t:n};be.squareRoot=be.sqrt=function(){var e,t,n,r,a,o,l,c=this,f=c.constructor;if(c.s<1){if(!c.s)return new f(0);throw Error(kr+"NaN")}for(e=Ft(c),wt=!1,a=Math.sqrt(+c),a==0||a==1/0?(t=ha(c.d),(t.length+e)%2==0&&(t+="0"),a=Math.sqrt(t),e=xc((e+1)/2)-(e<0||e%2),a==1/0?t="5e"+e:(t=a.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),r=new f(t)):r=new f(a.toString()),n=f.precision,a=l=n+3;;)if(o=r,r=o.plus(Wa(c,o,l+2)).times(.5),ha(o.d).slice(0,l)===(t=ha(r.d)).slice(0,l)){if(t=t.slice(l-3,l+1),a==l&&t=="4999"){if(ht(o,n+1,0),o.times(o).eq(c)){r=o;break}}else if(t!="9999")break;l+=4}return wt=!0,ht(r,n)};be.times=be.mul=function(e){var t,n,r,a,o,l,c,f,d,m=this,h=m.constructor,g=m.d,x=(e=new h(e)).d;if(!m.s||!e.s)return new h(0);for(e.s*=m.s,n=m.e+e.e,f=g.length,d=x.length,f<d&&(o=g,g=x,x=o,l=f,f=d,d=l),o=[],l=f+d,r=l;r--;)o.push(0);for(r=d;--r>=0;){for(t=0,a=f+r;a>r;)c=o[a]+x[r]*g[a-r-1]+t,o[a--]=c%nn|0,t=c/nn|0;o[a]=(o[a]+t)%nn|0}for(;!o[--l];)o.pop();return t?++n:o.shift(),e.d=o,e.e=n,wt?ht(e,h.precision):e};be.toDecimalPlaces=be.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(xa(e,0,bc),t===void 0?t=r.rounding:xa(t,0,8),ht(n,e+Ft(n)+1,t))};be.toExponential=function(e,t){var n,r=this,a=r.constructor;return e===void 0?n=ss(r,!0):(xa(e,0,bc),t===void 0?t=a.rounding:xa(t,0,8),r=ht(new a(r),e+1,t),n=ss(r,!0,e+1)),n};be.toFixed=function(e,t){var n,r,a=this,o=a.constructor;return e===void 0?ss(a):(xa(e,0,bc),t===void 0?t=o.rounding:xa(t,0,8),r=ht(new o(a),e+Ft(a)+1,t),n=ss(r.abs(),!1,e+Ft(r)+1),a.isneg()&&!a.isZero()?"-"+n:n)};be.toInteger=be.toint=function(){var e=this,t=e.constructor;return ht(new t(e),Ft(e)+1,t.rounding)};be.toNumber=function(){return+this};be.toPower=be.pow=function(e){var t,n,r,a,o,l,c=this,f=c.constructor,d=12,m=+(e=new f(e));if(!e.s)return new f(lr);if(c=new f(c),!c.s){if(e.s<1)throw Error(kr+"Infinity");return c}if(c.eq(lr))return c;if(r=f.precision,e.eq(lr))return ht(c,r);if(t=e.e,n=e.d.length-1,l=t>=n,o=c.s,l){if((n=m<0?-m:m)<=m$){for(a=new f(lr),t=Math.ceil(r/yt+4),wt=!1;n%2&&(a=a.times(c),hk(a.d,t)),n=xc(n/2),n!==0;)c=c.times(c),hk(c.d,t);return wt=!0,e.s<0?new f(lr).div(a):ht(a,r)}}else if(o<0)throw Error(kr+"NaN");return o=o<0&&e.d[Math.max(t,n)]&1?-1:1,c.s=1,wt=!1,a=e.times(xf(c,r+d)),wt=!0,a=v$(a),a.s=o,a};be.toPrecision=function(e,t){var n,r,a=this,o=a.constructor;return e===void 0?(n=Ft(a),r=ss(a,n<=o.toExpNeg||n>=o.toExpPos)):(xa(e,1,bc),t===void 0?t=o.rounding:xa(t,0,8),a=ht(new o(a),e,t),n=Ft(a),r=ss(a,e<=n||n<=o.toExpNeg,e)),r};be.toSignificantDigits=be.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(xa(e,1,bc),t===void 0?t=r.rounding:xa(t,0,8)),ht(new r(n),e,t)};be.toString=be.valueOf=be.val=be.toJSON=be[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Ft(e),n=e.constructor;return ss(e,t<=n.toExpNeg||t>=n.toExpPos)};function g$(e,t){var n,r,a,o,l,c,f,d,m=e.constructor,h=m.precision;if(!e.s||!t.s)return t.s||(t=new m(e)),wt?ht(t,h):t;if(f=e.d,d=t.d,l=e.e,a=t.e,f=f.slice(),o=l-a,o){for(o<0?(r=f,o=-o,c=d.length):(r=d,a=l,c=f.length),l=Math.ceil(h/yt),c=l>c?l+1:c+1,o>c&&(o=c,r.length=1),r.reverse();o--;)r.push(0);r.reverse()}for(c=f.length,o=d.length,c-o<0&&(o=c,r=d,d=f,f=r),n=0;o;)n=(f[--o]=f[o]+d[o]+n)/nn|0,f[o]%=nn;for(n&&(f.unshift(n),++a),c=f.length;f[--c]==0;)f.pop();return t.d=f,t.e=a,wt?ht(t,h):t}function xa(e,t,n){if(e!==~~e||e<t||e>n)throw Error(Zo+e)}function ha(e){var t,n,r,a=e.length-1,o="",l=e[0];if(a>0){for(o+=l,t=1;t<a;t++)r=e[t]+"",n=yt-r.length,n&&(o+=Ui(n)),o+=r;l=e[t],r=l+"",n=yt-r.length,n&&(o+=Ui(n))}else if(l===0)return"0";for(;l%10===0;)l/=10;return o+l}var Wa=(function(){function e(r,a){var o,l=0,c=r.length;for(r=r.slice();c--;)o=r[c]*a+l,r[c]=o%nn|0,l=o/nn|0;return l&&r.unshift(l),r}function t(r,a,o,l){var c,f;if(o!=l)f=o>l?1:-1;else for(c=f=0;c<o;c++)if(r[c]!=a[c]){f=r[c]>a[c]?1:-1;break}return f}function n(r,a,o){for(var l=0;o--;)r[o]-=l,l=r[o]<a[o]?1:0,r[o]=l*nn+r[o]-a[o];for(;!r[0]&&r.length>1;)r.shift()}return function(r,a,o,l){var c,f,d,m,h,g,x,O,b,S,A,_,C,M,P,E,T,D,L=r.constructor,U=r.s==a.s?1:-1,I=r.d,z=a.d;if(!r.s)return new L(r);if(!a.s)throw Error(kr+"Division by zero");for(f=r.e-a.e,T=z.length,P=I.length,x=new L(U),O=x.d=[],d=0;z[d]==(I[d]||0);)++d;if(z[d]>(I[d]||0)&&--f,o==null?_=o=L.precision:l?_=o+(Ft(r)-Ft(a))+1:_=o,_<0)return new L(0);if(_=_/yt+2|0,d=0,T==1)for(m=0,z=z[0],_++;(d<P||m)&&_--;d++)C=m*nn+(I[d]||0),O[d]=C/z|0,m=C%z|0;else{for(m=nn/(z[0]+1)|0,m>1&&(z=e(z,m),I=e(I,m),T=z.length,P=I.length),M=T,b=I.slice(0,T),S=b.length;S<T;)b[S++]=0;D=z.slice(),D.unshift(0),E=z[0],z[1]>=nn/2&&++E;do m=0,c=t(z,b,T,S),c<0?(A=b[0],T!=S&&(A=A*nn+(b[1]||0)),m=A/E|0,m>1?(m>=nn&&(m=nn-1),h=e(z,m),g=h.length,S=b.length,c=t(h,b,g,S),c==1&&(m--,n(h,T<g?D:z,g))):(m==0&&(c=m=1),h=z.slice()),g=h.length,g<S&&h.unshift(0),n(b,h,S),c==-1&&(S=b.length,c=t(z,b,T,S),c<1&&(m++,n(b,T<S?D:z,S))),S=b.length):c===0&&(m++,b=[0]),O[d++]=m,c&&b[0]?b[S++]=I[M]||0:(b=[I[M]],S=1);while((M++<P||b[0]!==void 0)&&_--)}return O[0]||O.shift(),x.e=f,ht(x,l?o+Ft(x)+1:o)}})();function v$(e,t){var n,r,a,o,l,c,f=0,d=0,m=e.constructor,h=m.precision;if(Ft(e)>16)throw Error(OP+Ft(e));if(!e.s)return new m(lr);for(wt=!1,c=h,l=new m(.03125);e.abs().gte(.1);)e=e.times(l),d+=5;for(r=Math.log(zo(2,d))/Math.LN10*2+5|0,c+=r,n=a=o=new m(lr),m.precision=c;;){if(a=ht(a.times(e),c),n=n.times(++f),l=o.plus(Wa(a,n,c)),ha(l.d).slice(0,c)===ha(o.d).slice(0,c)){for(;d--;)o=ht(o.times(o),c);return m.precision=h,t==null?(wt=!0,ht(o,h)):o}o=l}}function Ft(e){for(var t=e.e*yt,n=e.d[0];n>=10;n/=10)t++;return t}function K1(e,t,n){if(t>e.LN10.sd())throw wt=!0,n&&(e.precision=n),Error(kr+"LN10 precision limit exceeded");return ht(new e(e.LN10),t)}function Ui(e){for(var t="";e--;)t+="0";return t}function xf(e,t){var n,r,a,o,l,c,f,d,m,h=1,g=10,x=e,O=x.d,b=x.constructor,S=b.precision;if(x.s<1)throw Error(kr+(x.s?"NaN":"-Infinity"));if(x.eq(lr))return new b(0);if(t==null?(wt=!1,d=S):d=t,x.eq(10))return t==null&&(wt=!0),K1(b,d);if(d+=g,b.precision=d,n=ha(O),r=n.charAt(0),o=Ft(x),Math.abs(o)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)x=x.times(e),n=ha(x.d),r=n.charAt(0),h++;o=Ft(x),r>1?(x=new b("0."+n),o++):x=new b(r+"."+n.slice(1))}else return f=K1(b,d+2,S).times(o+""),x=xf(new b(r+"."+n.slice(1)),d-g).plus(f),b.precision=S,t==null?(wt=!0,ht(x,S)):x;for(c=l=x=Wa(x.minus(lr),x.plus(lr),d),m=ht(x.times(x),d),a=3;;){if(l=ht(l.times(m),d),f=c.plus(Wa(l,new b(a),d)),ha(f.d).slice(0,d)===ha(c.d).slice(0,d))return c=c.times(2),o!==0&&(c=c.plus(K1(b,d+2,S).times(o+""))),c=Wa(c,new b(h),d),b.precision=S,t==null?(wt=!0,ht(c,S)):c;c=f,a+=2}}function dk(e,t){var n,r,a;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(a=t.length;t.charCodeAt(a-1)===48;)--a;if(t=t.slice(r,a),t){if(a-=r,n=n-r-1,e.e=xc(n/yt),e.d=[],r=(n+1)%yt,n<0&&(r+=yt),r<a){for(r&&e.d.push(+t.slice(0,r)),a-=yt;r<a;)e.d.push(+t.slice(r,r+=yt));t=t.slice(r),r=yt-t.length}else r-=a;for(;r--;)t+="0";if(e.d.push(+t),wt&&(e.e>im||e.e<-im))throw Error(OP+n)}else e.s=0,e.e=0,e.d=[0];return e}function ht(e,t,n){var r,a,o,l,c,f,d,m,h=e.d;for(l=1,o=h[0];o>=10;o/=10)l++;if(r=t-l,r<0)r+=yt,a=t,d=h[m=0];else{if(m=Math.ceil((r+1)/yt),o=h.length,m>=o)return e;for(d=o=h[m],l=1;o>=10;o/=10)l++;r%=yt,a=r-yt+l}if(n!==void 0&&(o=zo(10,l-a-1),c=d/o%10|0,f=t<0||h[m+1]!==void 0||d%o,f=n<4?(c||f)&&(n==0||n==(e.s<0?3:2)):c>5||c==5&&(n==4||f||n==6&&(r>0?a>0?d/zo(10,l-a):0:h[m-1])%10&1||n==(e.s<0?8:7))),t<1||!h[0])return f?(o=Ft(e),h.length=1,t=t-o-1,h[0]=zo(10,(yt-t%yt)%yt),e.e=xc(-t/yt)||0):(h.length=1,h[0]=e.e=e.s=0),e;if(r==0?(h.length=m,o=1,m--):(h.length=m+1,o=zo(10,yt-r),h[m]=a>0?(d/zo(10,l-a)%zo(10,a)|0)*o:0),f)for(;;)if(m==0){(h[0]+=o)==nn&&(h[0]=1,++e.e);break}else{if(h[m]+=o,h[m]!=nn)break;h[m--]=0,o=1}for(r=h.length;h[--r]===0;)h.pop();if(wt&&(e.e>im||e.e<-im))throw Error(OP+Ft(e));return e}function y$(e,t){var n,r,a,o,l,c,f,d,m,h,g=e.constructor,x=g.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new g(e),wt?ht(t,x):t;if(f=e.d,h=t.d,r=t.e,d=e.e,f=f.slice(),l=d-r,l){for(m=l<0,m?(n=f,l=-l,c=h.length):(n=h,r=d,c=f.length),a=Math.max(Math.ceil(x/yt),c)+2,l>a&&(l=a,n.length=1),n.reverse(),a=l;a--;)n.push(0);n.reverse()}else{for(a=f.length,c=h.length,m=a<c,m&&(c=a),a=0;a<c;a++)if(f[a]!=h[a]){m=f[a]<h[a];break}l=0}for(m&&(n=f,f=h,h=n,t.s=-t.s),c=f.length,a=h.length-c;a>0;--a)f[c++]=0;for(a=h.length;a>l;){if(f[--a]<h[a]){for(o=a;o&&f[--o]===0;)f[o]=nn-1;--f[o],f[a]+=nn}f[a]-=h[a]}for(;f[--c]===0;)f.pop();for(;f[0]===0;f.shift())--r;return f[0]?(t.d=f,t.e=r,wt?ht(t,x):t):new g(0)}function ss(e,t,n){var r,a=Ft(e),o=ha(e.d),l=o.length;return t?(n&&(r=n-l)>0?o=o.charAt(0)+"."+o.slice(1)+Ui(r):l>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(a<0?"e":"e+")+a):a<0?(o="0."+Ui(-a-1)+o,n&&(r=n-l)>0&&(o+=Ui(r))):a>=l?(o+=Ui(a+1-l),n&&(r=n-a-1)>0&&(o=o+"."+Ui(r))):((r=a+1)<l&&(o=o.slice(0,r)+"."+o.slice(r)),n&&(r=n-l)>0&&(a+1===l&&(o+="."),o+=Ui(r))),e.s<0?"-"+o:o}function hk(e,t){if(e.length>t)return e.length=t,!0}function b$(e){var t,n,r;function a(o){var l=this;if(!(l instanceof a))return new a(o);if(l.constructor=a,o instanceof a){l.s=o.s,l.e=o.e,l.d=(o=o.d)?o.slice():o;return}if(typeof o=="number"){if(o*0!==0)throw Error(Zo+o);if(o>0)l.s=1;else if(o<0)o=-o,l.s=-1;else{l.s=0,l.e=0,l.d=[0];return}if(o===~~o&&o<1e7){l.e=0,l.d=[o];return}return dk(l,o.toString())}else if(typeof o!="string")throw Error(Zo+o);if(o.charCodeAt(0)===45?(o=o.slice(1),l.s=-1):l.s=1,Lae.test(o))dk(l,o);else throw Error(Zo+o)}if(a.prototype=be,a.ROUND_UP=0,a.ROUND_DOWN=1,a.ROUND_CEIL=2,a.ROUND_FLOOR=3,a.ROUND_HALF_UP=4,a.ROUND_HALF_DOWN=5,a.ROUND_HALF_EVEN=6,a.ROUND_HALF_CEIL=7,a.ROUND_HALF_FLOOR=8,a.clone=b$,a.config=a.set=$ae,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 a.config(e),a}function $ae(e){if(!e||typeof e!="object")throw Error(kr+"Object expected");var t,n,r,a=["precision",1,bc,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<a.length;t+=3)if((r=e[n=a[t]])!==void 0)if(xc(r)===r&&r>=a[t+1]&&r<=a[t+2])this[n]=r;else throw Error(Zo+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(Zo+n+": "+r);return this}var AP=b$(Iae);lr=new AP(1);const ct=AP;function Bae(e){return Hae(e)||Uae(e)||zae(e)||qae()}function qae(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 322In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zae(e,t){if(e){if(typeof e=="string")return qS(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 qS(e,t)}}function Uae(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function Hae(e){if(Array.isArray(e))return qS(e)}function qS(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 Vae=function(t){return t},x$={},w$=function(t){return t===x$},pk=function(t){return function n(){return arguments.length===0||arguments.length===1&&w$(arguments.length<=0?void 0:arguments[0])?n:t.apply(void 0,arguments)}},Fae=function e(t,n){return t===1?n:pk(function(){for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];var l=a.filter(function(c){return c!==x$}).length;return l>=t?n.apply(void 0,a):e(t-l,pk(function(){for(var c=arguments.length,f=new Array(c),d=0;d<c;d++)f[d]=arguments[d];var m=a.map(function(h){return w$(h)?f.shift():h});return n.apply(void 0,Bae(m).concat(f))}))})},Ag=function(t){return Fae(t.length,t)},zS=function(t,n){for(var r=[],a=t;a<n;++a)r[a-t]=a;return r},Kae=Ag(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(n){return t[n]}).map(e)}),Gae=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return Vae;var a=n.reverse(),o=a[0],l=a.slice(1);return function(){return l.reduce(function(c,f){return f(c)},o.apply(void 0,arguments))}},US=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},S$=function(t){var n=null,r=null;return function(){for(var a=arguments.length,o=new Array(a),l=0;l<a;l++)o[l]=arguments[l];return n&&o.every(function(c,f){return c===n[f]})||(n=o,r=t.apply(void 0,o)),r}};function Yae(e){var t;return e===0?t=1:t=Math.floor(new ct(e).abs().log(10).toNumber())+1,t}function Xae(e,t,n){for(var r=new ct(e),a=0,o=[];r.lt(t)&&a<1e5;)o.push(r.toNumber()),r=r.add(n),a++;return o}var Qae=Ag(function(e,t,n){var r=+e,a=+t;return r+n*(a-r)}),Wae=Ag(function(e,t,n){var r=t-+e;return r=r||1/0,(n-e)/r}),Zae=Ag(function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))});const Pg={rangeStep:Xae,getDigitCount:Yae,interpolateNumber:Qae,uninterpolateNumber:Wae,uninterpolateTruncation:Zae};function HS(e){return tie(e)||eie(e)||O$(e)||Jae()}function Jae(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 323In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function eie(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function tie(e){if(Array.isArray(e))return VS(e)}function wf(e,t){return aie(e)||rie(e,t)||O$(e,t)||nie()}function nie(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 324In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function O$(e,t){if(e){if(typeof e=="string")return VS(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 VS(e,t)}}function VS(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 rie(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,a=!1,o=void 0;try{for(var l=e[Symbol.iterator](),c;!(r=(c=l.next()).done)&&(n.push(c.value),!(t&&n.length===t));r=!0);}catch(f){a=!0,o=f}finally{try{!r&&l.return!=null&&l.return()}finally{if(a)throw o}}return n}}function aie(e){if(Array.isArray(e))return e}function A$(e){var t=wf(e,2),n=t[0],r=t[1],a=n,o=r;return n>r&&(a=r,o=n),[a,o]}function P$(e,t,n){if(e.lte(0))return new ct(0);var r=Pg.getDigitCount(e.toNumber()),a=new ct(10).pow(r),o=e.div(a),l=r!==1?.05:.1,c=new ct(Math.ceil(o.div(l).toNumber())).add(n).mul(l),f=c.mul(a);return t?f:new ct(Math.ceil(f))}function iie(e,t,n){var r=1,a=new ct(e);if(!a.isint()&&n){var o=Math.abs(e);o<1?(r=new ct(10).pow(Pg.getDigitCount(e)-1),a=new ct(Math.floor(a.div(r).toNumber())).mul(r)):o>1&&(a=new ct(Math.floor(e)))}else e===0?a=new ct(Math.floor((t-1)/2)):n||(a=new ct(Math.floor(e)));var l=Math.floor((t-1)/2),c=Gae(Kae(function(f){return a.add(new ct(f-l).mul(r)).toNumber()}),zS);return c(0,t)}function _$(e,t,n,r){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new ct(0),tickMin:new ct(0),tickMax:new ct(0)};var o=P$(new ct(t).sub(e).div(n-1),r,a),l;e<=0&&t>=0?l=new ct(0):(l=new ct(e).add(t).div(2),l=l.sub(new ct(l).mod(o)));var c=Math.ceil(l.sub(e).div(o).toNumber()),f=Math.ceil(new ct(t).sub(l).div(o).toNumber()),d=c+f+1;return d>n?_$(e,t,n,r,a+1):(d<n&&(f=t>0?f+(n-d):f,c=t>0?c:c+(n-d)),{step:o,tickMin:l.sub(new ct(c).mul(o)),tickMax:l.add(new ct(f).mul(o))})}function oie(e){var t=wf(e,2),n=t[0],r=t[1],a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,l=Math.max(a,2),c=A$([n,r]),f=wf(c,2),d=f[0],m=f[1];if(d===-1/0||m===1/0){var h=m===1/0?[d].concat(HS(zS(0,a-1).map(function(){return 1/0}))):[].concat(HS(zS(0,a-1).map(function(){return-1/0})),[m]);return n>r?US(h):h}if(d===m)return iie(d,a,o);var g=_$(d,m,l,o),x=g.step,O=g.tickMin,b=g.tickMax,S=Pg.rangeStep(O,b.add(new ct(.1).mul(x)),x);return n>r?US(S):S}function sie(e,t){var n=wf(e,2),r=n[0],a=n[1],o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,l=A$([r,a]),c=wf(l,2),f=c[0],d=c[1];if(f===-1/0||d===1/0)return[r,a];if(f===d)return[f];var m=Math.max(t,2),h=P$(new ct(d).sub(f).div(m-1),o,0),g=[].concat(HS(Pg.rangeStep(new ct(f),new ct(d).sub(new ct(.99).mul(h)),h)),[d]);return r>a?US(g):g}var lie=S$(oie),cie=S$(sie),uie="Invariant failed";function ls(e,t){throw new Error(uie)}var fie=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Kl(e){"@babel/helpers - typeof";return Kl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kl(e)}function om(){return om=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},om.apply(this,arguments)}function die(e,t){return gie(e)||mie(e,t)||pie(e,t)||hie()}function hie(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 325In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pie(e,t){if(e){if(typeof e=="string")return mk(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 mk(e,t)}}function mk(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 mie(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,o,l,c=[],f=!0,d=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(f=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){d=!0,a=m}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw a}}return c}}function gie(e){if(Array.isArray(e))return e}function vie(e,t){if(e==null)return{};var n=yie(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function yie(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 bie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xie(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,j$(r.key),r)}}function wie(e,t,n){return t&&xie(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Sie(e,t,n){return t=sm(t),Oie(e,C$()?Reflect.construct(t,n||[],sm(e).constructor):t.apply(e,n))}function Oie(e,t){if(t&&(Kl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Aie(e)}function Aie(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function C$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(C$=function(){return!!e})()}function sm(e){return sm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},sm(e)}function Pie(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&FS(e,t)}function FS(e,t){return FS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},FS(e,t)}function T$(e,t,n){return t=j$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function j$(e){var t=_ie(e,"string");return Kl(t)=="symbol"?t:t+""}function _ie(e,t){if(Kl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Kl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var dd=(function(e){function t(){return bie(this,t),Sie(this,t,arguments)}return Pie(t,e),wie(t,[{key:"render",value:function(){var r=this.props,a=r.offset,o=r.layout,l=r.width,c=r.dataKey,f=r.data,d=r.dataPointFormatter,m=r.xAxis,h=r.yAxis,g=vie(r,fie),x=Ke(g,!1);this.props.direction==="x"&&m.type!=="number"&&ls();var O=f.map(function(b){var S=d(b,c),A=S.x,_=S.y,C=S.value,M=S.errorVal;if(!M)return null;var P=[],E,T;if(Array.isArray(M)){var D=die(M,2);E=D[0],T=D[1]}else E=T=M;if(o==="vertical"){var L=m.scale,U=_+a,I=U+l,z=U-l,F=L(C-E),K=L(C+T);P.push({x1:K,y1:I,x2:K,y2:z}),P.push({x1:F,y1:U,x2:K,y2:U}),P.push({x1:F,y1:I,x2:F,y2:z})}else if(o==="horizontal"){var q=h.scale,R=A+a,$=R-l,H=R+l,W=q(C-E),ae=q(C+T);P.push({x1:$,y1:ae,x2:H,y2:ae}),P.push({x1:R,y1:W,x2:R,y2:ae}),P.push({x1:$,y1:W,x2:H,y2:W})}return V.createElement(Rt,om({className:"recharts-errorBar",key:"bar-".concat(P.map(function(B){return"".concat(B.x1,"-").concat(B.x2,"-").concat(B.y1,"-").concat(B.y2)}))},x),P.map(function(B){return V.createElement("line",om({},B,{key:"line-".concat(B.x1,"-").concat(B.x2,"-").concat(B.y1,"-").concat(B.y2)}))}))});return V.createElement(Rt,{className:"recharts-errorBars"},O)}}])})(V.Component);T$(dd,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});T$(dd,"displayName","ErrorBar");function Sf(e){"@babel/helpers - typeof";return Sf=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},Sf(e)}function gk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function ko(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?gk(Object(n),!0).forEach(function(r){Cie(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Cie(e,t,n){return t=Tie(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tie(e){var t=jie(e,"string");return Sf(t)=="symbol"?t:t+""}function jie(e,t){if(Sf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Sf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var E$=function(t){var n=t.children,r=t.formattedGraphicalItems,a=t.legendWidth,o=t.legendContent,l=ir(n,El);if(!l)return null;var c=El.defaultProps,f=c!==void 0?ko(ko({},c),l.props):{},d;return l.props&&l.props.payload?d=l.props&&l.props.payload:o==="children"?d=(r||[]).reduce(function(m,h){var g=h.item,x=h.props,O=x.sectors||x.data||[];return m.concat(O.map(function(b){return{type:l.props.iconType||g.props.legendType,value:b.name,color:b.fill,payload:b}}))},[]):d=(r||[]).map(function(m){var h=m.item,g=h.type.defaultProps,x=g!==void 0?ko(ko({},g),h.props):{},O=x.dataKey,b=x.name,S=x.legendType,A=x.hide;return{inactive:A,dataKey:O,type:f.iconType||S||"square",color:PP(h),value:b||O,payload:x}}),ko(ko(ko({},f),El.getWithHeight(l,a)),{},{payload:d,item:l})};function Of(e){"@babel/helpers - typeof";return Of=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},Of(e)}function vk(e){return Die(e)||Mie(e)||Nie(e)||Eie()}function Eie(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 326In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Nie(e,t){if(e){if(typeof e=="string")return KS(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 KS(e,t)}}function Mie(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Die(e){if(Array.isArray(e))return KS(e)}function KS(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 yk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function jt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yk(Object(n),!0).forEach(function(r){Ml(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ml(e,t,n){return t=Rie(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rie(e){var t=kie(e,"string");return Of(t)=="symbol"?t:t+""}function kie(e,t){if(Of(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Of(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function fr(e,t,n){return qe(e)||qe(t)?n:Qt(t)?Mr(e,t,n):Ie(t)?t(e):n}function Hu(e,t,n,r){var a=Dae(e,function(c){return fr(c,t)});if(n==="number"){var o=a.filter(function(c){return ge(c)||parseFloat(c)});return o.length?[Sg(o),wg(o)]:[1/0,-1/0]}var l=r?a.filter(function(c){return!qe(c)}):a;return l.map(function(c){return Qt(c)||c instanceof Date?c:""})}var Iie=function(t){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],a=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,l=-1,c=(n=r?.length)!==null&&n!==void 0?n:0;if(c<=1)return 0;if(o&&o.axisType==="angleAxis"&&Math.abs(Math.abs(o.range[1]-o.range[0])-360)<=1e-6)for(var f=o.range,d=0;d<c;d++){var m=d>0?a[d-1].coordinate:a[c-1].coordinate,h=a[d].coordinate,g=d>=c-1?a[0].coordinate:a[d+1].coordinate,x=void 0;if(Qr(h-m)!==Qr(g-h)){var O=[];if(Qr(g-h)===Qr(f[1]-f[0])){x=g;var b=h+f[1]-f[0];O[0]=Math.min(b,(b+m)/2),O[1]=Math.max(b,(b+m)/2)}else{x=m;var S=g+f[1]-f[0];O[0]=Math.min(h,(S+h)/2),O[1]=Math.max(h,(S+h)/2)}var A=[Math.min(h,(x+h)/2),Math.max(h,(x+h)/2)];if(t>A[0]&&t<=A[1]||t>=O[0]&&t<=O[1]){l=a[d].index;break}}else{var _=Math.min(m,g),C=Math.max(m,g);if(t>(_+h)/2&&t<=(C+h)/2){l=a[d].index;break}}}else for(var M=0;M<c;M++)if(M===0&&t<=(r[M].coordinate+r[M+1].coordinate)/2||M>0&&M<c-1&&t>(r[M].coordinate+r[M-1].coordinate)/2&&t<=(r[M].coordinate+r[M+1].coordinate)/2||M===c-1&&t>(r[M].coordinate+r[M-1].coordinate)/2){l=r[M].index;break}return l},PP=function(t){var n,r=t,a=r.type.displayName,o=(n=t.type)!==null&&n!==void 0&&n.defaultProps?jt(jt({},t.type.defaultProps),t.props):t.props,l=o.stroke,c=o.fill,f;switch(a){case"Line":f=l;break;case"Area":case"Radar":f=l&&l!=="none"?l:c;break;default:f=c;break}return f},Lie=function(t){var n=t.barSize,r=t.totalSize,a=t.stackGroups,o=a===void 0?{}:a;if(!o)return{};for(var l={},c=Object.keys(o),f=0,d=c.length;f<d;f++)for(var m=o[c[f]].stackGroups,h=Object.keys(m),g=0,x=h.length;g<x;g++){var O=m[h[g]],b=O.items,S=O.cateAxisId,A=b.filter(function(T){return Xa(T.type).indexOf("Bar")>=0});if(A&&A.length){var _=A[0].type.defaultProps,C=_!==void 0?jt(jt({},_),A[0].props):A[0].props,M=C.barSize,P=C[S];l[P]||(l[P]=[]);var E=qe(M)?n:M;l[P].push({item:A[0],stackList:A.slice(1),barSize:qe(E)?void 0:os(E,r,0)})}}return l},$ie=function(t){var n=t.barGap,r=t.barCategoryGap,a=t.bandSize,o=t.sizeList,l=o===void 0?[]:o,c=t.maxBarSize,f=l.length;if(f<1)return null;var d=os(n,a,0,!0),m,h=[];if(l[0].barSize===+l[0].barSize){var g=!1,x=a/f,O=l.reduce(function(M,P){return M+P.barSize||0},0);O+=(f-1)*d,O>=a&&(O-=(f-1)*d,d=0),O>=a&&x>0&&(g=!0,x*=.9,O=f*x);var b=(a-O)/2>>0,S={offset:b-d,size:0};m=l.reduce(function(M,P){var E={item:P.item,position:{offset:S.offset+S.size+d,size:g?x:P.barSize}},T=[].concat(vk(M),[E]);return S=T[T.length-1].position,P.stackList&&P.stackList.length&&P.stackList.forEach(function(D){T.push({item:D,position:S})}),T},h)}else{var A=os(r,a,0,!0);a-2*A-(f-1)*d<=0&&(d=0);var _=(a-2*A-(f-1)*d)/f;_>1&&(_>>=0);var C=c===+c?Math.min(_,c):_;m=l.reduce(function(M,P,E){var T=[].concat(vk(M),[{item:P.item,position:{offset:A+(_+d)*E+(_-C)/2,size:C}}]);return P.stackList&&P.stackList.length&&P.stackList.forEach(function(D){T.push({item:D,position:T[T.length-1].position})}),T},h)}return m},Bie=function(t,n,r,a){var o=r.children,l=r.width,c=r.margin,f=l-(c.left||0)-(c.right||0),d=E$({children:o,legendWidth:f});if(d){var m=a||{},h=m.width,g=m.height,x=d.align,O=d.verticalAlign,b=d.layout;if((b==="vertical"||b==="horizontal"&&O==="middle")&&x!=="center"&&ge(t[x]))return jt(jt({},t),{},Ml({},x,t[x]+(h||0)));if((b==="horizontal"||b==="vertical"&&x==="center")&&O!=="middle"&&ge(t[O]))return jt(jt({},t),{},Ml({},O,t[O]+(g||0)))}return t},qie=function(t,n,r){return qe(n)?!0:t==="horizontal"?n==="yAxis":t==="vertical"||r==="x"?n==="xAxis":r==="y"?n==="yAxis":!0},N$=function(t,n,r,a,o){var l=n.props.children,c=Dr(l,dd).filter(function(d){return qie(a,o,d.props.direction)});if(c&&c.length){var f=c.map(function(d){return d.props.dataKey});return t.reduce(function(d,m){var h=fr(m,r);if(qe(h))return d;var g=Array.isArray(h)?[Sg(h),wg(h)]:[h,h],x=f.reduce(function(O,b){var S=fr(m,b,0),A=g[0]-Math.abs(Array.isArray(S)?S[0]:S),_=g[1]+Math.abs(Array.isArray(S)?S[1]:S);return[Math.min(A,O[0]),Math.max(_,O[1])]},[1/0,-1/0]);return[Math.min(x[0],d[0]),Math.max(x[1],d[1])]},[1/0,-1/0])}return null},zie=function(t,n,r,a,o){var l=n.map(function(c){return N$(t,c,r,o,a)}).filter(function(c){return!qe(c)});return l&&l.length?l.reduce(function(c,f){return[Math.min(c[0],f[0]),Math.max(c[1],f[1])]},[1/0,-1/0]):null},M$=function(t,n,r,a,o){var l=n.map(function(f){var d=f.props.dataKey;return r==="number"&&d&&N$(t,f,d,a)||Hu(t,d,r,o)});if(r==="number")return l.reduce(function(f,d){return[Math.min(f[0],d[0]),Math.max(f[1],d[1])]},[1/0,-1/0]);var c={};return l.reduce(function(f,d){for(var m=0,h=d.length;m<h;m++)c[d[m]]||(c[d[m]]=!0,f.push(d[m]));return f},[])},D$=function(t,n){return t==="horizontal"&&n==="xAxis"||t==="vertical"&&n==="yAxis"||t==="centric"&&n==="angleAxis"||t==="radial"&&n==="radiusAxis"},R$=function(t,n,r,a){if(a)return t.map(function(f){return f.coordinate});var o,l,c=t.map(function(f){return f.coordinate===n&&(o=!0),f.coordinate===r&&(l=!0),f.coordinate});return o||c.push(n),l||c.push(r),c},Ya=function(t,n,r){if(!t)return null;var a=t.scale,o=t.duplicateDomain,l=t.type,c=t.range,f=t.realScaleType==="scaleBand"?a.bandwidth()/2:2,d=(n||r)&&l==="category"&&a.bandwidth?a.bandwidth()/f:0;if(d=t.axisType==="angleAxis"&&c?.length>=2?Qr(c[0]-c[1])*2*d:d,n&&(t.ticks||t.niceTicks)){var m=(t.ticks||t.niceTicks).map(function(h){var g=o?o.indexOf(h):h;return{coordinate:a(g)+d,value:h,offset:d}});return m.filter(function(h){return!id(h.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(h,g){return{coordinate:a(h)+d,value:h,index:g,offset:d}}):a.ticks&&!r?a.ticks(t.tickCount).map(function(h){return{coordinate:a(h)+d,value:h,offset:d}}):a.domain().map(function(h,g){return{coordinate:a(h)+d,value:o?o[h]:h,index:g,offset:d}})},G1=new WeakMap,tp=function(t,n){if(typeof n!="function")return t;G1.has(t)||G1.set(t,new WeakMap);var r=G1.get(t);if(r.has(n))return r.get(n);var a=function(){t.apply(void 0,arguments),n.apply(void 0,arguments)};return r.set(n,a),a},Uie=function(t,n,r){var a=t.scale,o=t.type,l=t.layout,c=t.axisType;if(a==="auto")return l==="radial"&&c==="radiusAxis"?{scale:mf(),realScaleType:"band"}:l==="radial"&&c==="angleAxis"?{scale:tm(),realScaleType:"linear"}:o==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:Uu(),realScaleType:"point"}:o==="category"?{scale:mf(),realScaleType:"band"}:{scale:tm(),realScaleType:"linear"};if(is(a)){var f="scale".concat(lg(a));return{scale:(rk[f]||Uu)(),realScaleType:rk[f]?f:"point"}}return Ie(a)?{scale:a}:{scale:Uu(),realScaleType:"point"}},bk=1e-4,Hie=function(t){var n=t.domain();if(!(!n||n.length<=2)){var r=n.length,a=t.range(),o=Math.min(a[0],a[1])-bk,l=Math.max(a[0],a[1])+bk,c=t(n[0]),f=t(n[r-1]);(c<o||c>l||f<o||f>l)&&t.domain([n[0],n[r-1]])}},Vie=function(t,n){if(!t)return null;for(var r=0,a=t.length;r<a;r++)if(t[r].item===n)return t[r].position;return null},Fie=function(t,n){if(!n||n.length!==2||!ge(n[0])||!ge(n[1]))return t;var r=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]),o=[t[0],t[1]];return(!ge(t[0])||t[0]<r)&&(o[0]=r),(!ge(t[1])||t[1]>a)&&(o[1]=a),o[0]>a&&(o[0]=a),o[1]<r&&(o[1]=r),o},Kie=function(t){var n=t.length;if(!(n<=0))for(var r=0,a=t[0].length;r<a;++r)for(var o=0,l=0,c=0;c<n;++c){var f=id(t[c][r][1])?t[c][r][0]:t[c][r][1];f>=0?(t[c][r][0]=o,t[c][r][1]=o+f,o=t[c][r][1]):(t[c][r][0]=l,t[c][r][1]=l+f,l=t[c][r][1])}},Gie=function(t){var n=t.length;if(!(n<=0))for(var r=0,a=t[0].length;r<a;++r)for(var o=0,l=0;l<n;++l){var c=id(t[l][r][1])?t[l][r][0]:t[l][r][1];c>=0?(t[l][r][0]=o,t[l][r][1]=o+c,o=t[l][r][1]):(t[l][r][0]=0,t[l][r][1]=0)}},Yie={sign:Kie,expand:NZ,none:$l,silhouette:MZ,wiggle:DZ,positive:Gie},Xie=function(t,n,r){var a=n.map(function(c){return c.props.dataKey}),o=Yie[r],l=EZ().keys(a).value(function(c,f){return+fr(c,f,0)}).order(SS).offset(o);return l(t)},Qie=function(t,n,r,a,o,l){if(!t)return null;var c=l?n.reverse():n,f={},d=c.reduce(function(h,g){var x,O=(x=g.type)!==null&&x!==void 0&&x.defaultProps?jt(jt({},g.type.defaultProps),g.props):g.props,b=O.stackId,S=O.hide;if(S)return h;var A=O[r],_=h[A]||{hasStack:!1,stackGroups:{}};if(Qt(b)){var C=_.stackGroups[b]||{numericAxisId:r,cateAxisId:a,items:[]};C.items.push(g),_.hasStack=!0,_.stackGroups[b]=C}else _.stackGroups[od("_stackId_")]={numericAxisId:r,cateAxisId:a,items:[g]};return jt(jt({},h),{},Ml({},A,_))},f),m={};return Object.keys(d).reduce(function(h,g){var x=d[g];if(x.hasStack){var O={};x.stackGroups=Object.keys(x.stackGroups).reduce(function(b,S){var A=x.stackGroups[S];return jt(jt({},b),{},Ml({},S,{numericAxisId:r,cateAxisId:a,items:A.items,stackedData:Xie(t,A.items,o)}))},O)}return jt(jt({},h),{},Ml({},g,x))},m)},Wie=function(t,n){var r=n.realScaleType,a=n.type,o=n.tickCount,l=n.originalDomain,c=n.allowDecimals,f=r||n.scale;if(f!=="auto"&&f!=="linear")return null;if(o&&a==="number"&&l&&(l[0]==="auto"||l[1]==="auto")){var d=t.domain();if(!d.length)return null;var m=lie(d,o,c);return t.domain([Sg(m),wg(m)]),{niceTicks:m}}if(o&&a==="number"){var h=t.domain(),g=cie(h,o,c);return{niceTicks:g}}return null};function xk(e){var t=e.axis,n=e.ticks,r=e.bandSize,a=e.entry,o=e.index,l=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!qe(a[t.dataKey])){var c=kp(n,"value",a[t.dataKey]);if(c)return c.coordinate+r/2}return n[o]?n[o].coordinate+r/2:null}var f=fr(a,qe(l)?t.dataKey:l);return qe(f)?null:t.scale(f)}var wk=function(t){var n=t.axis,r=t.ticks,a=t.offset,o=t.bandSize,l=t.entry,c=t.index;if(n.type==="category")return r[c]?r[c].coordinate+a:null;var f=fr(l,n.dataKey,n.domain[c]);return qe(f)?null:n.scale(f)-o/2+a},Zie=function(t){var n=t.numericAxis,r=n.scale.domain();if(n.type==="number"){var a=Math.min(r[0],r[1]),o=Math.max(r[0],r[1]);return a<=0&&o>=0?0:o<0?o:a}return r[0]},Jie=function(t,n){var r,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?jt(jt({},t.type.defaultProps),t.props):t.props,o=a.stackId;if(Qt(o)){var l=n[o];if(l){var c=l.items.indexOf(t);return c>=0?l.stackedData[c]:null}}return null},eoe=function(t){return t.reduce(function(n,r){return[Sg(r.concat([n[0]]).filter(ge)),wg(r.concat([n[1]]).filter(ge))]},[1/0,-1/0])},k$=function(t,n,r){return Object.keys(t).reduce(function(a,o){var l=t[o],c=l.stackedData,f=c.reduce(function(d,m){var h=eoe(m.slice(n,r+1));return[Math.min(d[0],h[0]),Math.max(d[1],h[1])]},[1/0,-1/0]);return[Math.min(f[0],a[0]),Math.max(f[1],a[1])]},[1/0,-1/0]).map(function(a){return a===1/0||a===-1/0?0:a})},Sk=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Ok=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,GS=function(t,n,r){if(Ie(t))return t(n,r);if(!Array.isArray(t))return n;var a=[];if(ge(t[0]))a[0]=r?t[0]:Math.min(t[0],n[0]);else if(Sk.test(t[0])){var o=+Sk.exec(t[0])[1];a[0]=n[0]-o}else Ie(t[0])?a[0]=t[0](n[0]):a[0]=n[0];if(ge(t[1]))a[1]=r?t[1]:Math.max(t[1],n[1]);else if(Ok.test(t[1])){var l=+Ok.exec(t[1])[1];a[1]=n[1]+l}else Ie(t[1])?a[1]=t[1](n[1]):a[1]=n[1];return a},lm=function(t,n,r){if(t&&t.scale&&t.scale.bandwidth){var a=t.scale.bandwidth();if(!r||a>0)return a}if(t&&n&&n.length>=2){for(var o=JA(n,function(h){return h.coordinate}),l=1/0,c=1,f=o.length;c<f;c++){var d=o[c],m=o[c-1];l=Math.min((d.coordinate||0)-(m.coordinate||0),l)}return l===1/0?0:l}return r?void 0:0},Ak=function(t,n,r){return!t||!t.length||Og(t,Mr(r,"type.defaultProps.domain"))?n:t},I$=function(t,n){var r=t.type.defaultProps?jt(jt({},t.type.defaultProps),t.props):t.props,a=r.dataKey,o=r.name,l=r.unit,c=r.formatter,f=r.tooltipType,d=r.chartType,m=r.hide;return jt(jt({},Ke(t,!1)),{},{dataKey:a,unit:l,formatter:c,name:o||a,color:PP(t),value:fr(n,a),type:f,payload:n,chartType:d,hide:m})};function Af(e){"@babel/helpers - typeof";return Af=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},Af(e)}function Pk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function _k(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Pk(Object(n),!0).forEach(function(r){toe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function toe(e,t,n){return t=noe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function noe(e){var t=roe(e,"string");return Af(t)=="symbol"?t:t+""}function roe(e,t){if(Af(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Af(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var cm=Math.PI/180,aoe=function(t){return t*180/Math.PI},dn=function(t,n,r,a){return{x:t+Math.cos(-cm*a)*r,y:n+Math.sin(-cm*a)*r}},ioe=function(t,n){var r=t.x,a=t.y,o=n.x,l=n.y;return Math.sqrt(Math.pow(r-o,2)+Math.pow(a-l,2))},ooe=function(t,n){var r=t.x,a=t.y,o=n.cx,l=n.cy,c=ioe({x:r,y:a},{x:o,y:l});if(c<=0)return{radius:c};var f=(r-o)/c,d=Math.acos(f);return a>l&&(d=2*Math.PI-d),{radius:c,angle:aoe(d),angleInRadian:d}},soe=function(t){var n=t.startAngle,r=t.endAngle,a=Math.floor(n/360),o=Math.floor(r/360),l=Math.min(a,o);return{startAngle:n-l*360,endAngle:r-l*360}},loe=function(t,n){var r=n.startAngle,a=n.endAngle,o=Math.floor(r/360),l=Math.floor(a/360),c=Math.min(o,l);return t+c*360},Ck=function(t,n){var r=t.x,a=t.y,o=ooe({x:r,y:a},n),l=o.radius,c=o.angle,f=n.innerRadius,d=n.outerRadius;if(l<f||l>d)return!1;if(l===0)return!0;var m=soe(n),h=m.startAngle,g=m.endAngle,x=c,O;if(h<=g){for(;x>g;)x-=360;for(;x<h;)x+=360;O=x>=h&&x<=g}else{for(;x>h;)x-=360;for(;x<g;)x+=360;O=x>=g&&x<=h}return O?_k(_k({},n),{},{radius:l,angle:loe(x,n)}):null};function Pf(e){"@babel/helpers - typeof";return Pf=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},Pf(e)}var coe=["offset"];function uoe(e){return poe(e)||hoe(e)||doe(e)||foe()}function foe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 327In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function doe(e,t){if(e){if(typeof e=="string")return YS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return YS(e,t)}}function hoe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function poe(e){if(Array.isArray(e))return YS(e)}function YS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function moe(e,t){if(e==null)return{};var n=goe(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function goe(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 Tk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Xt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Tk(Object(n),!0).forEach(function(r){voe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function voe(e,t,n){return t=yoe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yoe(e){var t=boe(e,"string");return Pf(t)=="symbol"?t:t+""}function boe(e,t){if(Pf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Pf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _f(){return _f=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},_f.apply(this,arguments)}var xoe=function(t){var n=t.value,r=t.formatter,a=qe(t.children)?n:t.children;return Ie(r)?r(a):a},woe=function(t,n){var r=Qr(n-t),a=Math.min(Math.abs(n-t),360);return r*a},Soe=function(t,n,r){var a=t.position,o=t.viewBox,l=t.offset,c=t.className,f=o,d=f.cx,m=f.cy,h=f.innerRadius,g=f.outerRadius,x=f.startAngle,O=f.endAngle,b=f.clockWise,S=(h+g)/2,A=woe(x,O),_=A>=0?1:-1,C,M;a==="insideStart"?(C=x+_*l,M=b):a==="insideEnd"?(C=O-_*l,M=!b):a==="end"&&(C=O+_*l,M=b),M=A<=0?M:!M;var P=dn(d,m,S,C),E=dn(d,m,S,C+(M?1:-1)*359),T="M".concat(P.x,",").concat(P.y,` 328 A`).concat(S,",").concat(S,",0,1,").concat(M?0:1,`, 329 `).concat(E.x,",").concat(E.y),D=qe(t.id)?od("recharts-radial-line-"):t.id;return V.createElement("text",_f({},r,{dominantBaseline:"central",className:Ge("recharts-radial-bar-label",c)}),V.createElement("defs",null,V.createElement("path",{id:D,d:T})),V.createElement("textPath",{xlinkHref:"#".concat(D)},n))},Ooe=function(t){var n=t.viewBox,r=t.offset,a=t.position,o=n,l=o.cx,c=o.cy,f=o.innerRadius,d=o.outerRadius,m=o.startAngle,h=o.endAngle,g=(m+h)/2;if(a==="outside"){var x=dn(l,c,d+r,g),O=x.x,b=x.y;return{x:O,y:b,textAnchor:O>=l?"start":"end",verticalAnchor:"middle"}}if(a==="center")return{x:l,y:c,textAnchor:"middle",verticalAnchor:"middle"};if(a==="centerTop")return{x:l,y:c,textAnchor:"middle",verticalAnchor:"start"};if(a==="centerBottom")return{x:l,y:c,textAnchor:"middle",verticalAnchor:"end"};var S=(f+d)/2,A=dn(l,c,S,g),_=A.x,C=A.y;return{x:_,y:C,textAnchor:"middle",verticalAnchor:"middle"}},Aoe=function(t){var n=t.viewBox,r=t.parentViewBox,a=t.offset,o=t.position,l=n,c=l.x,f=l.y,d=l.width,m=l.height,h=m>=0?1:-1,g=h*a,x=h>0?"end":"start",O=h>0?"start":"end",b=d>=0?1:-1,S=b*a,A=b>0?"end":"start",_=b>0?"start":"end";if(o==="top"){var C={x:c+d/2,y:f-h*a,textAnchor:"middle",verticalAnchor:x};return Xt(Xt({},C),r?{height:Math.max(f-r.y,0),width:d}:{})}if(o==="bottom"){var M={x:c+d/2,y:f+m+g,textAnchor:"middle",verticalAnchor:O};return Xt(Xt({},M),r?{height:Math.max(r.y+r.height-(f+m),0),width:d}:{})}if(o==="left"){var P={x:c-S,y:f+m/2,textAnchor:A,verticalAnchor:"middle"};return Xt(Xt({},P),r?{width:Math.max(P.x-r.x,0),height:m}:{})}if(o==="right"){var E={x:c+d+S,y:f+m/2,textAnchor:_,verticalAnchor:"middle"};return Xt(Xt({},E),r?{width:Math.max(r.x+r.width-E.x,0),height:m}:{})}var T=r?{width:d,height:m}:{};return o==="insideLeft"?Xt({x:c+S,y:f+m/2,textAnchor:_,verticalAnchor:"middle"},T):o==="insideRight"?Xt({x:c+d-S,y:f+m/2,textAnchor:A,verticalAnchor:"middle"},T):o==="insideTop"?Xt({x:c+d/2,y:f+g,textAnchor:"middle",verticalAnchor:O},T):o==="insideBottom"?Xt({x:c+d/2,y:f+m-g,textAnchor:"middle",verticalAnchor:x},T):o==="insideTopLeft"?Xt({x:c+S,y:f+g,textAnchor:_,verticalAnchor:O},T):o==="insideTopRight"?Xt({x:c+d-S,y:f+g,textAnchor:A,verticalAnchor:O},T):o==="insideBottomLeft"?Xt({x:c+S,y:f+m-g,textAnchor:_,verticalAnchor:x},T):o==="insideBottomRight"?Xt({x:c+d-S,y:f+m-g,textAnchor:A,verticalAnchor:x},T):mc(o)&&(ge(o.x)||Fo(o.x))&&(ge(o.y)||Fo(o.y))?Xt({x:c+os(o.x,d),y:f+os(o.y,m),textAnchor:"end",verticalAnchor:"end"},T):Xt({x:c+d/2,y:f+m/2,textAnchor:"middle",verticalAnchor:"middle"},T)},Poe=function(t){return"cx"in t&&ge(t.cx)};function Sn(e){var t=e.offset,n=t===void 0?5:t,r=moe(e,coe),a=Xt({offset:n},r),o=a.viewBox,l=a.position,c=a.value,f=a.children,d=a.content,m=a.className,h=m===void 0?"":m,g=a.textBreakAll;if(!o||qe(c)&&qe(f)&&!j.isValidElement(d)&&!Ie(d))return null;if(j.isValidElement(d))return j.cloneElement(d,a);var x;if(Ie(d)){if(x=j.createElement(d,a),j.isValidElement(x))return x}else x=xoe(a);var O=Poe(o),b=Ke(a,!0);if(O&&(l==="insideStart"||l==="insideEnd"||l==="end"))return Soe(a,x,b);var S=O?Ooe(a):Aoe(a);return V.createElement(Yp,_f({className:Ge("recharts-label",h)},b,S,{breakAll:g}),x)}Sn.displayName="Label";var L$=function(t){var n=t.cx,r=t.cy,a=t.angle,o=t.startAngle,l=t.endAngle,c=t.r,f=t.radius,d=t.innerRadius,m=t.outerRadius,h=t.x,g=t.y,x=t.top,O=t.left,b=t.width,S=t.height,A=t.clockWise,_=t.labelViewBox;if(_)return _;if(ge(b)&&ge(S)){if(ge(h)&&ge(g))return{x:h,y:g,width:b,height:S};if(ge(x)&&ge(O))return{x,y:O,width:b,height:S}}return ge(h)&&ge(g)?{x:h,y:g,width:0,height:0}:ge(n)&&ge(r)?{cx:n,cy:r,startAngle:o||a||0,endAngle:l||a||0,innerRadius:d||0,outerRadius:m||f||c||0,clockWise:A}:t.viewBox?t.viewBox:{}},_oe=function(t,n){return t?t===!0?V.createElement(Sn,{key:"label-implicit",viewBox:n}):Qt(t)?V.createElement(Sn,{key:"label-implicit",viewBox:n,value:t}):j.isValidElement(t)?t.type===Sn?j.cloneElement(t,{key:"label-implicit",viewBox:n}):V.createElement(Sn,{key:"label-implicit",content:t,viewBox:n}):Ie(t)?V.createElement(Sn,{key:"label-implicit",content:t,viewBox:n}):mc(t)?V.createElement(Sn,_f({viewBox:n},t,{key:"label-implicit"})):null:null},Coe=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 a=t.children,o=L$(t),l=Dr(a,Sn).map(function(f,d){return j.cloneElement(f,{viewBox:n||o,key:"label-".concat(d)})});if(!r)return l;var c=_oe(t.label,n||o);return[c].concat(uoe(l))};Sn.parseViewBox=L$;Sn.renderCallByParent=Coe;var Y1,jk;function Toe(){if(jk)return Y1;jk=1;function e(t){var n=t==null?0:t.length;return n?t[n-1]:void 0}return Y1=e,Y1}var joe=Toe();const Eoe=ut(joe);function Cf(e){"@babel/helpers - typeof";return Cf=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},Cf(e)}var Noe=["valueAccessor"],Moe=["data","dataKey","clockWise","id","textBreakAll"];function Doe(e){return Loe(e)||Ioe(e)||koe(e)||Roe()}function Roe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 330In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function koe(e,t){if(e){if(typeof e=="string")return XS(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 XS(e,t)}}function Ioe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Loe(e){if(Array.isArray(e))return XS(e)}function XS(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 um(){return um=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},um.apply(this,arguments)}function Ek(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Nk(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ek(Object(n),!0).forEach(function(r){$oe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ek(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $oe(e,t,n){return t=Boe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Boe(e){var t=qoe(e,"string");return Cf(t)=="symbol"?t:t+""}function qoe(e,t){if(Cf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Cf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Mk(e,t){if(e==null)return{};var n=zoe(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function zoe(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 Uoe=function(t){return Array.isArray(t.value)?Eoe(t.value):t.value};function Yi(e){var t=e.valueAccessor,n=t===void 0?Uoe:t,r=Mk(e,Noe),a=r.data,o=r.dataKey,l=r.clockWise,c=r.id,f=r.textBreakAll,d=Mk(r,Moe);return!a||!a.length?null:V.createElement(Rt,{className:"recharts-label-list"},a.map(function(m,h){var g=qe(o)?n(m,h):fr(m&&m.payload,o),x=qe(c)?{}:{id:"".concat(c,"-").concat(h)};return V.createElement(Sn,um({},Ke(m,!0),d,x,{parentViewBox:m.parentViewBox,value:g,textBreakAll:f,viewBox:Sn.parseViewBox(qe(l)?m:Nk(Nk({},m),{},{clockWise:l})),key:"label-".concat(h),index:h}))}))}Yi.displayName="LabelList";function Hoe(e,t){return e?e===!0?V.createElement(Yi,{key:"labelList-implicit",data:t}):V.isValidElement(e)||Ie(e)?V.createElement(Yi,{key:"labelList-implicit",data:t,content:e}):mc(e)?V.createElement(Yi,um({data:t},e,{key:"labelList-implicit"})):null:null}function Voe(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,a=Dr(r,Yi).map(function(l,c){return j.cloneElement(l,{data:t,key:"labelList-".concat(c)})});if(!n)return a;var o=Hoe(e.label,t);return[o].concat(Doe(a))}Yi.renderCallByParent=Voe;function Tf(e){"@babel/helpers - typeof";return Tf=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},Tf(e)}function QS(){return QS=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},QS.apply(this,arguments)}function Dk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Rk(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Dk(Object(n),!0).forEach(function(r){Foe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Foe(e,t,n){return t=Koe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Koe(e){var t=Goe(e,"string");return Tf(t)=="symbol"?t:t+""}function Goe(e,t){if(Tf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Tf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Yoe=function(t,n){var r=Qr(n-t),a=Math.min(Math.abs(n-t),359.999);return r*a},np=function(t){var n=t.cx,r=t.cy,a=t.radius,o=t.angle,l=t.sign,c=t.isExternal,f=t.cornerRadius,d=t.cornerIsExternal,m=f*(c?1:-1)+a,h=Math.asin(f/m)/cm,g=d?o:o+l*h,x=dn(n,r,m,g),O=dn(n,r,a,g),b=d?o-l*h:o,S=dn(n,r,m*Math.cos(h*cm),b);return{center:x,circleTangency:O,lineTangency:S,theta:h}},$$=function(t){var n=t.cx,r=t.cy,a=t.innerRadius,o=t.outerRadius,l=t.startAngle,c=t.endAngle,f=Yoe(l,c),d=l+f,m=dn(n,r,o,l),h=dn(n,r,o,d),g="M ".concat(m.x,",").concat(m.y,` 331 A `).concat(o,",").concat(o,`,0, 332 `).concat(+(Math.abs(f)>180),",").concat(+(l>d),`, 333 `).concat(h.x,",").concat(h.y,` 334 `);if(a>0){var x=dn(n,r,a,l),O=dn(n,r,a,d);g+="L ".concat(O.x,",").concat(O.y,` 335 A `).concat(a,",").concat(a,`,0, 336 `).concat(+(Math.abs(f)>180),",").concat(+(l<=d),`, 337 `).concat(x.x,",").concat(x.y," Z")}else g+="L ".concat(n,",").concat(r," Z");return g},Xoe=function(t){var n=t.cx,r=t.cy,a=t.innerRadius,o=t.outerRadius,l=t.cornerRadius,c=t.forceCornerRadius,f=t.cornerIsExternal,d=t.startAngle,m=t.endAngle,h=Qr(m-d),g=np({cx:n,cy:r,radius:o,angle:d,sign:h,cornerRadius:l,cornerIsExternal:f}),x=g.circleTangency,O=g.lineTangency,b=g.theta,S=np({cx:n,cy:r,radius:o,angle:m,sign:-h,cornerRadius:l,cornerIsExternal:f}),A=S.circleTangency,_=S.lineTangency,C=S.theta,M=f?Math.abs(d-m):Math.abs(d-m)-b-C;if(M<0)return c?"M ".concat(O.x,",").concat(O.y,` 338 a`).concat(l,",").concat(l,",0,0,1,").concat(l*2,`,0 339 a`).concat(l,",").concat(l,",0,0,1,").concat(-l*2,`,0 340 `):$$({cx:n,cy:r,innerRadius:a,outerRadius:o,startAngle:d,endAngle:m});var P="M ".concat(O.x,",").concat(O.y,` 341 A`).concat(l,",").concat(l,",0,0,").concat(+(h<0),",").concat(x.x,",").concat(x.y,` 342 A`).concat(o,",").concat(o,",0,").concat(+(M>180),",").concat(+(h<0),",").concat(A.x,",").concat(A.y,` 343 A`).concat(l,",").concat(l,",0,0,").concat(+(h<0),",").concat(_.x,",").concat(_.y,` 344 `);if(a>0){var E=np({cx:n,cy:r,radius:a,angle:d,sign:h,isExternal:!0,cornerRadius:l,cornerIsExternal:f}),T=E.circleTangency,D=E.lineTangency,L=E.theta,U=np({cx:n,cy:r,radius:a,angle:m,sign:-h,isExternal:!0,cornerRadius:l,cornerIsExternal:f}),I=U.circleTangency,z=U.lineTangency,F=U.theta,K=f?Math.abs(d-m):Math.abs(d-m)-L-F;if(K<0&&l===0)return"".concat(P,"L").concat(n,",").concat(r,"Z");P+="L".concat(z.x,",").concat(z.y,` 345 A`).concat(l,",").concat(l,",0,0,").concat(+(h<0),",").concat(I.x,",").concat(I.y,` 346 A`).concat(a,",").concat(a,",0,").concat(+(K>180),",").concat(+(h>0),",").concat(T.x,",").concat(T.y,` 347 A`).concat(l,",").concat(l,",0,0,").concat(+(h<0),",").concat(D.x,",").concat(D.y,"Z")}else P+="L".concat(n,",").concat(r,"Z");return P},Qoe={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},B$=function(t){var n=Rk(Rk({},Qoe),t),r=n.cx,a=n.cy,o=n.innerRadius,l=n.outerRadius,c=n.cornerRadius,f=n.forceCornerRadius,d=n.cornerIsExternal,m=n.startAngle,h=n.endAngle,g=n.className;if(l<o||m===h)return null;var x=Ge("recharts-sector",g),O=l-o,b=os(c,O,0,!0),S;return b>0&&Math.abs(m-h)<360?S=Xoe({cx:r,cy:a,innerRadius:o,outerRadius:l,cornerRadius:Math.min(b,O/2),forceCornerRadius:f,cornerIsExternal:d,startAngle:m,endAngle:h}):S=$$({cx:r,cy:a,innerRadius:o,outerRadius:l,startAngle:m,endAngle:h}),V.createElement("path",QS({},Ke(n,!0),{className:x,d:S,role:"img"}))};function jf(e){"@babel/helpers - typeof";return jf=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},jf(e)}function WS(){return WS=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},WS.apply(this,arguments)}function kk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Ik(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?kk(Object(n),!0).forEach(function(r){Woe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Woe(e,t,n){return t=Zoe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zoe(e){var t=Joe(e,"string");return jf(t)=="symbol"?t:t+""}function Joe(e,t){if(jf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(jf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Lk={curveBasisClosed:bZ,curveBasisOpen:xZ,curveBasis:yZ,curveBumpX:aZ,curveBumpY:iZ,curveLinearClosed:wZ,curveLinear:ug,curveMonotoneX:SZ,curveMonotoneY:OZ,curveNatural:AZ,curveStep:PZ,curveStepAfter:CZ,curveStepBefore:_Z},rp=function(t){return t.x===+t.x&&t.y===+t.y},Tu=function(t){return t.x},ju=function(t){return t.y},ese=function(t,n){if(Ie(t))return t;var r="curve".concat(lg(t));return(r==="curveMonotone"||r==="curveBump")&&n?Lk["".concat(r).concat(n==="vertical"?"Y":"X")]:Lk[r]||ug},tse=function(t){var n=t.type,r=n===void 0?"linear":n,a=t.points,o=a===void 0?[]:a,l=t.baseLine,c=t.layout,f=t.connectNulls,d=f===void 0?!1:f,m=ese(r,c),h=d?o.filter(function(b){return rp(b)}):o,g;if(Array.isArray(l)){var x=d?l.filter(function(b){return rp(b)}):l,O=h.map(function(b,S){return Ik(Ik({},b),{},{base:x[S]})});return c==="vertical"?g=Yh().y(ju).x1(Tu).x0(function(b){return b.base.x}):g=Yh().x(Tu).y1(ju).y0(function(b){return b.base.y}),g.defined(rp).curve(m),g(O)}return c==="vertical"&&ge(l)?g=Yh().y(ju).x1(Tu).x0(l):ge(l)?g=Yh().x(Tu).y1(ju).y0(l):g=UL().x(Tu).y(ju),g.defined(rp).curve(m),g(h)},ZS=function(t){var n=t.className,r=t.points,a=t.path,o=t.pathRef;if((!r||!r.length)&&!a)return null;var l=r&&r.length?tse(t):a;return j.createElement("path",WS({},Ke(t,!1),Ip(t),{className:Ge("recharts-curve",n),d:l,ref:o}))},X1={exports:{}},Q1,$k;function nse(){if($k)return Q1;$k=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Q1=e,Q1}var W1,Bk;function rse(){if(Bk)return W1;Bk=1;var e=nse();function t(){}function n(){}return n.resetWarningCache=t,W1=function(){function r(l,c,f,d,m,h){if(h!==e){var g=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw g.name="Invariant Violation",g}}r.isRequired=r;function a(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:a,element:r,elementType:r,instanceOf:a,node:r,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o},W1}var qk;function ase(){return qk||(qk=1,X1.exports=rse()()),X1.exports}var ise=ase();const tt=ut(ise);var ose=Object.getOwnPropertyNames,sse=Object.getOwnPropertySymbols,lse=Object.prototype.hasOwnProperty;function zk(e,t){return function(r,a,o){return e(r,a,o)&&t(r,a,o)}}function ap(e){return function(n,r,a){if(!n||!r||typeof n!="object"||typeof r!="object")return e(n,r,a);var o=a.cache,l=o.get(n),c=o.get(r);if(l&&c)return l===r&&c===n;o.set(n,r),o.set(r,n);var f=e(n,r,a);return o.delete(n),o.delete(r),f}}function cse(e){return e?.[Symbol.toStringTag]}function Uk(e){return ose(e).concat(sse(e))}var use=Object.hasOwn||(function(e,t){return lse.call(e,t)});function ys(e,t){return e===t||!e&&!t&&e!==e&&t!==t}var fse="__v",dse="__o",hse="_owner",Hk=Object.getOwnPropertyDescriptor,Vk=Object.keys;function pse(e,t,n){var 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 mse(e,t){return ys(e.getTime(),t.getTime())}function gse(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function vse(e,t){return e===t}function Fk(e,t,n){var r=e.size;if(r!==t.size)return!1;if(!r)return!0;for(var a=new Array(r),o=e.entries(),l,c,f=0;(l=o.next())&&!l.done;){for(var d=t.entries(),m=!1,h=0;(c=d.next())&&!c.done;){if(a[h]){h++;continue}var g=l.value,x=c.value;if(n.equals(g[0],x[0],f,h,e,t,n)&&n.equals(g[1],x[1],g[0],x[0],e,t,n)){m=a[h]=!0;break}h++}if(!m)return!1;f++}return!0}var yse=ys;function bse(e,t,n){var r=Vk(e),a=r.length;if(Vk(t).length!==a)return!1;for(;a-- >0;)if(!q$(e,t,n,r[a]))return!1;return!0}function Eu(e,t,n){var r=Uk(e),a=r.length;if(Uk(t).length!==a)return!1;for(var o,l,c;a-- >0;)if(o=r[a],!q$(e,t,n,o)||(l=Hk(e,o),c=Hk(t,o),(l||c)&&(!l||!c||l.configurable!==c.configurable||l.enumerable!==c.enumerable||l.writable!==c.writable)))return!1;return!0}function xse(e,t){return ys(e.valueOf(),t.valueOf())}function wse(e,t){return e.source===t.source&&e.flags===t.flags}function Kk(e,t,n){var r=e.size;if(r!==t.size)return!1;if(!r)return!0;for(var a=new Array(r),o=e.values(),l,c;(l=o.next())&&!l.done;){for(var f=t.values(),d=!1,m=0;(c=f.next())&&!c.done;){if(!a[m]&&n.equals(l.value,c.value,l.value,c.value,e,t,n)){d=a[m]=!0;break}m++}if(!d)return!1}return!0}function Sse(e,t){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}function Ose(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 q$(e,t,n,r){return(r===hse||r===dse||r===fse)&&(e.$$typeof||t.$$typeof)?!0:use(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}var Ase="[object Arguments]",Pse="[object Boolean]",_se="[object Date]",Cse="[object Error]",Tse="[object Map]",jse="[object Number]",Ese="[object Object]",Nse="[object RegExp]",Mse="[object Set]",Dse="[object String]",Rse
347="[object URL]",kse=Array.isArray,Gk=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,Yk=Object.assign,Ise=Object.prototype.toString.call.bind(Object.prototype.toString);function Lse(e){var t=e.areArraysEqual,n=e.areDatesEqual,r=e.areErrorsEqual,a=e.areFunctionsEqual,o=e.areMapsEqual,l=e.areNumbersEqual,c=e.areObjectsEqual,f=e.arePrimitiveWrappersEqual,d=e.areRegExpsEqual,m=e.areSetsEqual,h=e.areTypedArraysEqual,g=e.areUrlsEqual,x=e.unknownTagComparators;return function(b,S,A){if(b===S)return!0;if(b==null||S==null)return!1;var _=typeof b;if(_!==typeof S)return!1;if(_!=="object")return _==="number"?l(b,S,A):_==="function"?a(b,S,A):!1;var C=b.constructor;if(C!==S.constructor)return!1;if(C===Object)return c(b,S,A);if(kse(b))return t(b,S,A);if(Gk!=null&&Gk(b))return h(b,S,A);if(C===Date)return n(b,S,A);if(C===RegExp)return d(b,S,A);if(C===Map)return o(b,S,A);if(C===Set)return m(b,S,A);var M=Ise(b);if(M===_se)return n(b,S,A);if(M===Nse)return d(b,S,A);if(M===Tse)return o(b,S,A);if(M===Mse)return m(b,S,A);if(M===Ese)return typeof b.then!="function"&&typeof S.then!="function"&&c(b,S,A);if(M===Rse)return g(b,S,A);if(M===Cse)return r(b,S,A);if(M===Ase)return c(b,S,A);if(M===Pse||M===jse||M===Dse)return f(b,S,A);if(x){var P=x[M];if(!P){var E=cse(b);E&&(P=x[E])}if(P)return P(b,S,A)}return!1}}function $se(e){var t=e.circular,n=e.createCustomConfig,r=e.strict,a={areArraysEqual:r?Eu:pse,areDatesEqual:mse,areErrorsEqual:gse,areFunctionsEqual:vse,areMapsEqual:r?zk(Fk,Eu):Fk,areNumbersEqual:yse,areObjectsEqual:r?Eu:bse,arePrimitiveWrappersEqual:xse,areRegExpsEqual:wse,areSetsEqual:r?zk(Kk,Eu):Kk,areTypedArraysEqual:r?Eu:Sse,areUrlsEqual:Ose,unknownTagComparators:void 0};if(n&&(a=Yk({},a,n(a))),t){var o=ap(a.areArraysEqual),l=ap(a.areMapsEqual),c=ap(a.areObjectsEqual),f=ap(a.areSetsEqual);a=Yk({},a,{areArraysEqual:o,areMapsEqual:l,areObjectsEqual:c,areSetsEqual:f})}return a}function Bse(e){return function(t,n,r,a,o,l,c){return e(t,n,c)}}function qse(e){var t=e.circular,n=e.comparator,r=e.createState,a=e.equals,o=e.strict;if(r)return function(f,d){var m=r(),h=m.cache,g=h===void 0?t?new WeakMap:void 0:h,x=m.meta;return n(f,d,{cache:g,equals:a,meta:x,strict:o})};if(t)return function(f,d){return n(f,d,{cache:new WeakMap,equals:a,meta:void 0,strict:o})};var l={cache:void 0,equals:a,meta:void 0,strict:o};return function(f,d){return n(f,d,l)}}var zse=so();so({strict:!0});so({circular:!0});so({circular:!0,strict:!0});so({createInternalComparator:function(){return ys}});so({strict:!0,createInternalComparator:function(){return ys}});so({circular:!0,createInternalComparator:function(){return ys}});so({circular:!0,createInternalComparator:function(){return ys},strict:!0});function so(e){e===void 0&&(e={});var t=e.circular,n=t===void 0?!1:t,r=e.createInternalComparator,a=e.createState,o=e.strict,l=o===void 0?!1:o,c=$se(e),f=Lse(c),d=r?r(f):Bse(f);return qse({circular:n,comparator:f,createState:a,equals:d,strict:l})}function Use(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function Xk(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=-1,r=function a(o){n<0&&(n=o),o-n>t?(e(o),n=-1):Use(a)};requestAnimationFrame(r)}function JS(e){"@babel/helpers - typeof";return JS=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},JS(e)}function Hse(e){return Gse(e)||Kse(e)||Fse(e)||Vse()}function Vse(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 348In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Fse(e,t){if(e){if(typeof e=="string")return Qk(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 Qk(e,t)}}function Qk(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 Kse(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Gse(e){if(Array.isArray(e))return e}function Yse(){var e={},t=function(){return null}
vendor: 160,439 bytes, lines 348-370
348,n=!1,r=function a(o){if(!n){if(Array.isArray(o)){if(!o.length)return;var l=o,c=Hse(l),f=c[0],d=c.slice(1);if(typeof f=="number"){Xk(a.bind(null,d),f);return}a(f),Xk(a.bind(null,d));return}JS(o)==="object"&&(e=o,t(e)),typeof o=="function"&&o()}};return{stop:function(){n=!0},start:function(o){n=!1,r(o)},subscribe:function(o){return t=o,function(){t=function(){return null}}}}}function Ef(e){"@babel/helpers - typeof";return Ef=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},Ef(e)}function Wk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Zk(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Wk(Object(n),!0).forEach(function(r){z$(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function z$(e,t,n){return t=Xse(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xse(e){var t=Qse(e,"string");return Ef(t)==="symbol"?t:String(t)}function Qse(e,t){if(Ef(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ef(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Wse=function(t,n){return[Object.keys(t),Object.keys(n)].reduce(function(r,a){return r.filter(function(o){return a.includes(o)})})},Zse=function(t){return t},Jse=function(t){return t.replace(/([A-Z])/g,function(n){return"-".concat(n.toLowerCase())})},Vu=function(t,n){return Object.keys(n).reduce(function(r,a){return Zk(Zk({},r),{},z$({},a,t(a,n[a])))},{})},Jk=function(t,n,r){return t.map(function(a){return"".concat(Jse(a)," ").concat(n,"ms ").concat(r)}).join(",")};function ele(e,t){return rle(e)||nle(e,t)||U$(e,t)||tle()}function tle(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 349In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nle(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,o,l,c=[],f=!0,d=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(f=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){d=!0,a=m}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw a}}return c}}function rle(e){if(Array.isArray(e))return e}function ale(e){return sle(e)||ole(e)||U$(e)||ile()}function ile(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 350In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function U$(e,t){if(e){if(typeof e=="string")return eO(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 eO(e,t)}}function ole(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function sle(e){if(Array.isArray(e))return eO(e)}function eO(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 fm=1e-4,H$=function(t,n){return[0,3*t,3*n-6*t,3*t-3*n+1]},V$=function(t,n){return t.map(function(r,a){return r*Math.pow(n,a)}).reduce(function(r,a){return r+a})},e5=function(t,n){return function(r){var a=H$(t,n);return V$(a,r)}},lle=function(t,n){return function(r){var a=H$(t,n),o=[].concat(ale(a.map(function(l,c){return l*c}).slice(1)),[0]);return V$(o,r)}},t5=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var a=n[0],o=n[1],l=n[2],c=n[3];if(n.length===1)switch(n[0]){case"linear":a=0,o=0,l=1,c=1;break;case"ease":a=.25,o=.1,l=.25,c=1;break;case"ease-in":a=.42,o=0,l=1,c=1;break;case"ease-out":a=.42,o=0,l=.58,c=1;break;case"ease-in-out":a=0,o=0,l=.58,c=1;break;default:{var f=n[0].split("(");if(f[0]==="cubic-bezier"&&f[1].split(")")[0].split(",").length===4){var d=f[1].split(")")[0].split(",").map(function(S){return parseFloat(S)}),m=ele(d,4);a=m[0],o=m[1],l=m[2],c=m[3]}}}var h=e5(a,l),g=e5(o,c),x=lle(a,l),O=function(A){return A>1?1:A<0?0:A},b=function(A){for(var _=A>1?1:A,C=_,M=0;M<8;++M){var P=h(C)-_,E=x(C);if(Math.abs(P-_)<fm||E<fm)return g(C);C=O(C-P/E)}return g(C)};return b.isStepper=!1,b},cle=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.stiff,r=n===void 0?100:n,a=t.damping,o=a===void 0?8:a,l=t.dt,c=l===void 0?17:l,f=function(m,h,g){var x=-(m-h)*r,O=g*o,b=g+(x-O)*c/1e3,S=g*c/1e3+m;return Math.abs(S-h)<fm&&Math.abs(b)<fm?[h,0]:[S,b]};return f.isStepper=!0,f.dt=c,f},ule=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var a=n[0];if(typeof a=="string")switch(a){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return t5(a);case"spring":return cle();default:if(a.split("(")[0]==="cubic-bezier")return t5(a)}return typeof a=="function"?a:null};function Nf(e){"@babel/helpers - typeof";return Nf=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},Nf(e)}function n5(e){return hle(e)||dle(e)||F$(e)||fle()}function fle(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 351In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dle(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function hle(e){if(Array.isArray(e))return nO(e)}function r5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function un(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?r5(Object(n),!0).forEach(function(r){tO(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function tO(e,t,n){return t=ple(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ple(e){var t=mle(e,"string");return Nf(t)==="symbol"?t:String(t)}function mle(e,t){if(Nf(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Nf(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function gle(e,t){return ble(e)||yle(e,t)||F$(e,t)||vle()}function vle(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 352In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function F$(e,t){if(e){if(typeof e=="string")return nO(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 nO(e,t)}}function nO(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 yle(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,o,l,c=[],f=!0,d=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(f=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){d=!0,a=m}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw a}}return c}}function ble(e){if(Array.isArray(e))return e}var dm=function(t,n,r){return t+(n-t)*r},rO=function(t){var n=t.from,r=t.to;return n!==r},xle=function e(t,n,r){var a=Vu(function(o,l){if(rO(l)){var c=t(l.from,l.to,l.velocity),f=gle(c,2),d=f[0],m=f[1];return un(un({},l),{},{from:d,velocity:m})}return l},n);return r<1?Vu(function(o,l){return rO(l)?un(un({},l),{},{velocity:dm(l.velocity,a[o].velocity,r),from:dm(l.from,a[o].from,r)}):l},n):e(t,a,r-1)};const wle=(function(e,t,n,r,a){var o=Wse(e,t),l=o.reduce(function(S,A){return un(un({},S),{},tO({},A,[e[A],t[A]]))},{}),c=o.reduce(function(S,A){return un(un({},S),{},tO({},A,{from:e[A],velocity:0,to:t[A]}))},{}),f=-1,d,m,h=function(){return null},g=function(){return Vu(function(A,_){return _.from},c)},x=function(){return!Object.values(c).filter(rO).length},O=function(A){d||(d=A);var _=A-d,C=_/n.dt;c=xle(n,c,C),a(un(un(un({},e),t),g())),d=A,x()||(f=requestAnimationFrame(h))},b=function(A){m||(m=A);var _=(A-m)/r,C=Vu(function(P,E){return dm.apply(void 0,n5(E).concat([n(_)]))},l);if(a(un(un(un({},e),t),C)),_<1)f=requestAnimationFrame(h);else{var M=Vu(function(P,E){return dm.apply(void 0,n5(E).concat([n(1)]))},l);a(un(un(un({},e),t),M))}};return h=n.isStepper?O:b,function(){return requestAnimationFrame(h),function(){cancelAnimationFrame(f)}}});function Gl(e){"@babel/helpers - typeof";return Gl=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},Gl(e)}var Sle=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function Ole(e,t){if(e==null)return{};var n=Ale(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ale(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,o;for(o=0;o<r.length;o++)a=r[o],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function Z1(e){return Tle(e)||Cle(e)||_le(e)||Ple()}function Ple(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 353In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _le(e,t){if(e){if(typeof e=="string")return aO(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 aO(e,t)}}function Cle(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Tle(e){if(Array.isArray(e))return aO(e)}function aO(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 a5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Ur(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?a5(Object(n),!0).forEach(function(r){Iu(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Iu(e,t,n){return t=K$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jle(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ele(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,K$(r.key),r)}}function Nle(e,t,n){return t&&Ele(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function K$(e){var t=Mle(e,"string");return Gl(t)==="symbol"?t:String(t)}function Mle(e,t){if(Gl(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Gl(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Dle(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&&iO(e,t)}function iO(e,t){return iO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},iO(e,t)}function Rle(e){var t=kle();return function(){var r=hm(e),a;if(t){var o=hm(this).constructor;a=Reflect.construct(r,arguments,o)}else a=r.apply(this,arguments);return oO(this,a)}}function oO(e,t){if(t&&(Gl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return sO(e)}function sO(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function kle(){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 hm(e){return hm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},hm(e)}var ai=(function(e){Dle(n,e);var t=Rle(n);function n(r,a){var o;jle(this,n),o=t.call(this,r,a);var l=o.props,c=l.isActive,f=l.attributeName,d=l.from,m=l.to,h=l.steps,g=l.children,x=l.duration;if(o.handleStyleChange=o.handleStyleChange.bind(sO(o)),o.changeStyle=o.changeStyle.bind(sO(o)),!c||x<=0)return o.state={style:{}},typeof g=="function"&&(o.state={style:m}),oO(o);if(h&&h.length)o.state={style:h[0].style};else if(d){if(typeof g=="function")return o.state={style:d},oO(o);o.state={style:f?Iu({},f,d):d}}else o.state={style:{}};return o}return Nle(n,[{key:"componentDidMount",value:function(){var a=this.props,o=a.isActive,l=a.canBegin;this.mounted=!0,!(!o||!l)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(a){var o=this.props,l=o.isActive,c=o.canBegin,f=o.attributeName,d=o.shouldReAnimate,m=o.to,h=o.from,g=this.state.style;if(c){if(!l){var x={style:f?Iu({},f,m):m};this.state&&g&&(f&&g[f]!==m||!f&&g!==m)&&this.setState(x);return}if(!(zse(a.to,m)&&a.canBegin&&a.isActive)){var O=!a.canBegin||!a.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var b=O||d?h:a.to;if(this.state&&g){var S={style:f?Iu({},f,b):b};(f&&g[f]!==b||!f&&g!==b)&&this.setState(S)}this.runAnimation(Ur(Ur({},this.props),{},{from:b,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var a=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),a&&a()}},{key:"handleStyleChange",value:function(a){this.changeStyle(a)}},{key:"changeStyle",value:function(a){this.mounted&&this.setState({style:a})}},{key:"runJSAnimation",value:function(a){var o=this,l=a.from,c=a.to,f=a.duration,d=a.easing,m=a.begin,h=a.onAnimationEnd,g=a.onAnimationStart,x=wle(l,c,ule(d),f,this.changeStyle),O=function(){o.stopJSAnimation=x()};this.manager.start([g,m,O,f,h])}},{key:"runStepAnimation",value:function(a){var o=this,l=a.steps,c=a.begin,f=a.onAnimationStart,d=l[0],m=d.style,h=d.duration,g=h===void 0?0:h,x=function(b,S,A){if(A===0)return b;var _=S.duration,C=S.easing,M=C===void 0?"ease":C,P=S.style,E=S.properties,T=S.onAnimationEnd,D=A>0?l[A-1]:S,L=E||Object.keys(P);if(typeof M=="function"||M==="spring")return[].concat(Z1(b),[o.runJSAnimation.bind(o,{from:D.style,to:P,duration:_,easing:M}),_]);var U=Jk(L,_,M),I=Ur(Ur(Ur({},D.style),P),{},{transition:U});return[].concat(Z1(b),[I,_,T]).filter(Zse)};return this.manager.start([f].concat(Z1(l.reduce(x,[m,Math.max(g,c)])),[a.onAnimationEnd]))}},{key:"runAnimation",value:function(a){this.manager||(this.manager=Yse());var o=a.begin,l=a.duration,c=a.attributeName,f=a.to,d=a.easing,m=a.onAnimationStart,h=a.onAnimationEnd,g=a.steps,x=a.children,O=this.manager;if(this.unSubscribe=O.subscribe(this.handleStyleChange),typeof d=="function"||typeof x=="function"||d==="spring"){this.runJSAnimation(a);return}if(g.length>1){this.runStepAnimation(a);return}var b=c?Iu({},c,f):f,S=Jk(Object.keys(b),l,d);O.start([m,o,Ur(Ur({},b),{},{transition:S}),l,h])}},{key:"render",value:function(){var a=this.props,o=a.children;a.begin;var l=a.duration;a.attributeName,a.easing;var c=a.isActive;a.steps,a.from,a.to,a.canBegin,a.onAnimationEnd,a.shouldReAnimate,a.onAnimationReStart;var f=Ole(a,Sle),d=j.Children.count(o),m=this.state.style;if(typeof o=="function")return o(m);if(!c||d===0||l<=0)return o;var h=function(x){var O=x.props,b=O.style,S=b===void 0?{}:b,A=O.className,_=j.cloneElement(x,Ur(Ur({},f),{},{style:Ur(Ur({},S),m),className:A}));return _};return d===1?h(j.Children.only(o)):V.createElement("div",null,j.Children.map(o,function(g){return h(g)}))}}]),n})(j.PureComponent);ai.displayName="Animate";ai.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};ai.propTypes={from:tt.oneOfType([tt.object,tt.string]),to:tt.oneOfType([tt.object,tt.string]),attributeName:tt.string,duration:tt.number,begin:tt.number,easing:tt.oneOfType([tt.string,tt.func]),steps:tt.arrayOf(tt.shape({duration:tt.number.isRequired,style:tt.object.isRequired,easing:tt.oneOfType([tt.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),tt.func]),properties:tt.arrayOf("string"),onAnimationEnd:tt.func})),children:tt.oneOfType([tt.node,tt.func]),isActive:tt.bool,canBegin:tt.bool,onAnimationEnd:tt.func,shouldReAnimate:tt.bool,onAnimationStart:tt.func,onAnimationReStart:tt.func};function Mf(e){"@babel/helpers - typeof";return Mf=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},Mf(e)}function pm(){return pm=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},pm.apply(this,arguments)}function Ile(e,t){return qle(e)||Ble(e,t)||$le(e,t)||Lle()}function Lle(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 354In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $le(e,t){if(e){if(typeof e=="string")return i5(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 i5(e,t)}}function i5(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 Ble(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,o,l,c=[],f=!0,d=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(f=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){d=!0,a=m}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw a}}return c}}function qle(e){if(Array.isArray(e))return e}function o5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function s5(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?o5(Object(n),!0).forEach(function(r){zle(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function zle(e,t,n){return t=Ule(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ule(e){var t=Hle(e,"string");return Mf(t)=="symbol"?t:t+""}function Hle(e,t){if(Mf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Mf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var l5=function(t,n,r,a,o){var l=Math.min(Math.abs(r)/2,Math.abs(a)/2),c=a>=0?1:-1,f=r>=0?1:-1,d=a>=0&&r>=0||a<0&&r<0?1:0,m;if(l>0&&o instanceof Array){for(var h=[0,0,0,0],g=0,x=4;g<x;g++)h[g]=o[g]>l?l:o[g];m="M".concat(t,",").concat(n+c*h[0]),h[0]>0&&(m+="A ".concat(h[0],",").concat(h[0],",0,0,").concat(d,",").concat(t+f*h[0],",").concat(n)),m+="L ".concat(t+r-f*h[1],",").concat(n),h[1]>0&&(m+="A ".concat(h[1],",").concat(h[1],",0,0,").concat(d,`, 355 `).concat(t+r,",").concat(n+c*h[1])),m+="L ".concat(t+r,",").concat(n+a-c*h[2]),h[2]>0&&(m+="A ".concat(h[2],",").concat(h[2],",0,0,").concat(d,`, 356 `).concat(t+r-f*h[2],",").concat(n+a)),m+="L ".concat(t+f*h[3],",").concat(n+a),h[3]>0&&(m+="A ".concat(h[3],",").concat(h[3],",0,0,").concat(d,`, 357 `).concat(t,",").concat(n+a-c*h[3])),m+="Z"}else if(l>0&&o===+o&&o>0){var O=Math.min(l,o);m="M ".concat(t,",").concat(n+c*O,` 358 A `).concat(O,",").concat(O,",0,0,").concat(d,",").concat(t+f*O,",").concat(n,` 359 L `).concat(t+r-f*O,",").concat(n,` 360 A `).concat(O,",").concat(O,",0,0,").concat(d,",").concat(t+r,",").concat(n+c*O,` 361 L `).concat(t+r,",").concat(n+a-c*O,` 362 A `).concat(O,",").concat(O,",0,0,").concat(d,",").concat(t+r-f*O,",").concat(n+a,` 363 L `).concat(t+f*O,",").concat(n+a,` 364 A `).concat(O,",").concat(O,",0,0,").concat(d,",").concat(t,",").concat(n+a-c*O," Z")}else m="M ".concat(t,",").concat(n," h ").concat(r," v ").concat(a," h ").concat(-r," Z");return m},Vle=function(t,n){if(!t||!n)return!1;var r=t.x,a=t.y,o=n.x,l=n.y,c=n.width,f=n.height;if(Math.abs(c)>0&&Math.abs(f)>0){var d=Math.min(o,o+c),m=Math.max(o,o+c),h=Math.min(l,l+f),g=Math.max(l,l+f);return r>=d&&r<=m&&a>=h&&a<=g}return!1},Fle={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},_P=function(t){var n=s5(s5({},Fle),t),r=j.useRef(),a=j.useState(-1),o=Ile(a,2),l=o[0],c=o[1];j.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var M=r.current.getTotalLength();M&&c(M)}catch{}},[]);var f=n.x,d=n.y,m=n.width,h=n.height,g=n.radius,x=n.className,O=n.animationEasing,b=n.animationDuration,S=n.animationBegin,A=n.isAnimationActive,_=n.isUpdateAnimationActive;if(f!==+f||d!==+d||m!==+m||h!==+h||m===0||h===0)return null;var C=Ge("recharts-rectangle",x);return _?V.createElement(ai,{canBegin:l>0,from:{width:m,height:h,x:f,y:d},to:{width:m,height:h,x:f,y:d},duration:b,animationEasing:O,isActive:_},function(M){var P=M.width,E=M.height,T=M.x,D=M.y;return V.createElement(ai,{canBegin:l>0,from:"0px ".concat(l===-1?1:l,"px"),to:"".concat(l,"px 0px"),attributeName:"strokeDasharray",begin:S,duration:b,isActive:A,easing:O},V.createElement("path",pm({},Ke(n,!0),{className:C,d:l5(T,D,P,E,g),ref:r})))}):V.createElement("path",pm({},Ke(n,!0),{className:C,d:l5(f,d,m,h,g)}))};function lO(){return lO=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},lO.apply(this,arguments)}var CP=function(t){var n=t.cx,r=t.cy,a=t.r,o=t.className,l=Ge("recharts-dot",o);return n===+n&&r===+r&&a===+a?j.createElement("circle",lO({},Ke(t,!1),Ip(t),{className:l,cx:n,cy:r,r:a})):null};function Df(e){"@babel/helpers - typeof";return Df=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},Df(e)}var Kle=["x","y","top","left","width","height","className"];function cO(){return cO=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},cO.apply(this,arguments)}function c5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Gle(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?c5(Object(n),!0).forEach(function(r){Yle(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Yle(e,t,n){return t=Xle(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xle(e){var t=Qle(e,"string");return Df(t)=="symbol"?t:t+""}function Qle(e,t){if(Df(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Df(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Wle(e,t){if(e==null)return{};var n=Zle(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Zle(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 Jle=function(t,n,r,a,o,l){return"M".concat(t,",").concat(o,"v").concat(a,"M").concat(l,",").concat(n,"h").concat(r)},ece=function(t){var n=t.x,r=n===void 0?0:n,a=t.y,o=a===void 0?0:a,l=t.top,c=l===void 0?0:l,f=t.left,d=f===void 0?0:f,m=t.width,h=m===void 0?0:m,g=t.height,x=g===void 0?0:g,O=t.className,b=Wle(t,Kle),S=Gle({x:r,y:o,top:c,left:d,width:h,height:x},b);return!ge(r)||!ge(o)||!ge(h)||!ge(x)||!ge(c)||!ge(d)?null:V.createElement("path",cO({},Ke(S,!0),{className:Ge("recharts-cross",O),d:Jle(r,o,h,x,c,d)}))},J1,u5;function tce(){if(u5)return J1;u5=1;var e=f8(),t=e(Object.getPrototypeOf,Object);return J1=t,J1}var ew,f5;function nce(){if(f5)return ew;f5=1;var e=ci(),t=tce(),n=ui(),r="[object Object]",a=Function.prototype,o=Object.prototype,l=a.toString,c=o.hasOwnProperty,f=l.call(Object);function d(m){if(!n(m)||e(m)!=r)return!1;var h=t(m);if(h===null)return!0;var g=c.call(h,"constructor")&&h.constructor;return typeof g=="function"&&g instanceof g&&l.call(g)==f}return ew=d,ew}var rce=nce();const ace=ut(rce);var tw,d5;function ice(){if(d5)return tw;d5=1;var e=ci(),t=ui(),n="[object Boolean]";function r(a){return a===!0||a===!1||t(a)&&e(a)==n}return tw=r,tw}var oce=ice();const sce=ut(oce);function Rf(e){"@babel/helpers - typeof";return Rf=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},Rf(e)}function mm(){return mm=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},mm.apply(this,arguments)}function lce(e,t){return dce(e)||fce(e,t)||uce(e,t)||cce()}function cce(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 365In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function uce(e,t){if(e){if(typeof e=="string")return h5(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 h5(e,t)}}function h5(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 fce(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,o,l,c=[],f=!0,d=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(f=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){d=!0,a=m}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw a}}return c}}function dce(e){if(Array.isArray(e))return e}function p5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function m5(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?p5(Object(n),!0).forEach(function(r){hce(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function hce(e,t,n){return t=pce(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pce(e){var t=mce(e,"string");return Rf(t)=="symbol"?t:t+""}function mce(e,t){if(Rf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Rf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var g5=function(t,n,r,a,o){var l=r-a,c;return c="M ".concat(t,",").concat(n),c+="L ".concat(t+r,",").concat(n),c+="L ".concat(t+r-l/2,",").concat(n+o),c+="L ".concat(t+r-l/2-a,",").concat(n+o),c+="L ".concat(t,",").concat(n," Z"),c},gce={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},vce=function(t){var n=m5(m5({},gce),t),r=j.useRef(),a=j.useState(-1),o=lce(a,2),l=o[0],c=o[1];j.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var C=r.current.getTotalLength();C&&c(C)}catch{}},[]);var f=n.x,d=n.y,m=n.upperWidth,h=n.lowerWidth,g=n.height,x=n.className,O=n.animationEasing,b=n.animationDuration,S=n.animationBegin,A=n.isUpdateAnimationActive;if(f!==+f||d!==+d||m!==+m||h!==+h||g!==+g||m===0&&h===0||g===0)return null;var _=Ge("recharts-trapezoid",x);return A?V.createElement(ai,{canBegin:l>0,from:{upperWidth:0,lowerWidth:0,height:g,x:f,y:d},to:{upperWidth:m,lowerWidth:h,height:g,x:f,y:d},duration:b,animationEasing:O,isActive:A},function(C){var M=C.upperWidth,P=C.lowerWidth,E=C.height,T=C.x,D=C.y;return V.createElement(ai,{canBegin:l>0,from:"0px ".concat(l===-1?1:l,"px"),to:"".concat(l,"px 0px"),attributeName:"strokeDasharray",begin:S,duration:b,easing:O},V.createElement("path",mm({},Ke(n,!0),{className:_,d:g5(T,D,M,P,E),ref:r})))}):V.createElement("g",null,V.createElement("path",mm({},Ke(n,!0),{className:_,d:g5(f,d,m,h,g)})))},yce=["option","shapeType","propTransformer","activeClassName","isActive"];function kf(e){"@babel/helpers - typeof";return kf=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},kf(e)}function bce(e,t){if(e==null)return{};var n=xce(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(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 v5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function gm(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?v5(Object(n),!0).forEach(function(r){wce(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function wce(e,t,n){return t=Sce(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sce(e){var t=Oce(e,"string");return kf(t)=="symbol"?t:t+""}function Oce(e,t){if(kf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(kf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ace(e,t){return gm(gm({},t),e)}function Pce(e,t){return e==="symbols"}function y5(e){var t=e.shapeType,n=e.elementProps;switch(t){case"rectangle":return V.createElement(_P,n);case"trapezoid":return V.createElement(vce,n);case"sector":return V.createElement(B$,n);case"symbols":if(Pce(t))return V.createElement(FA,n);break;default:return null}}function _ce(e){return j.isValidElement(e)?e.props:e}function Cce(e){var t=e.option,n=e.shapeType,r=e.propTransformer,a=r===void 0?Ace:r,o=e.activeClassName,l=o===void 0?"recharts-active-shape":o,c=e.isActive,f=bce(e,yce),d;if(j.isValidElement(t))d=j.cloneElement(t,gm(gm({},f),_ce(t)));else if(Ie(t))d=t(f);else if(ace(t)&&!sce(t)){var m=a(t,f);d=V.createElement(y5,{shapeType:n,elementProps:m})}else{var h=f;d=V.createElement(y5,{shapeType:n,elementProps:h})}return c?V.createElement(Rt,{className:l},d):d}function _g(e,t){return t!=null&&"trapezoids"in e.props}function Cg(e,t){return t!=null&&"sectors"in e.props}function If(e,t){return t!=null&&"points"in e.props}function Tce(e,t){var n,r,a=e.x===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.x)||e.x===t.x,o=e.y===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.y)||e.y===t.y;return a&&o}function jce(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function Ece(e,t){var n=e.x===t.x,r=e.y===t.y,a=e.z===t.z;return n&&r&&a}function Nce(e,t){var n;return _g(e,t)?n=Tce:Cg(e,t)?n=jce:If(e,t)&&(n=Ece),n}function Mce(e,t){var n;return _g(e,t)?n="trapezoids":Cg(e,t)?n="sectors":If(e,t)&&(n="points"),n}function Dce(e,t){if(_g(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(Cg(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 If(e,t)?t.payload:{}}function Rce(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,a=Mce(n,t),o=Dce(n,t),l=r.filter(function(f,d){var m=Og(o,f),h=n.props[a].filter(function(O){var b=Nce(n,t);return b(O,t)}),g=n.props[a].indexOf(h[h.length-1]),x=d===g;return m&&x}),c=r.indexOf(l[l.length-1]);return c}var nw,b5;function kce(){if(b5)return nw;b5=1;var e=Math.ceil,t=Math.max;function n(r,a,o,l){for(var c=-1,f=t(e((a-r)/(o||1)),0),d=Array(f);f--;)d[l?f:++c]=r,r+=o;return d}return nw=n,nw}var rw,x5;function G$(){if(x5)return rw;x5=1;var e=C8(),t=1/0,n=17976931348623157e292;function r(a){if(!a)return a===0?a:0;if(a=e(a),a===t||a===-t){var o=a<0?-1:1;return o*n}return a===a?a:0}return rw=r,rw}var aw,w5;function Ice(){if(w5)return aw;w5=1;var e=kce(),t=pg(),n=G$();function r(a){return function(o,l,c){return c&&typeof c!="number"&&t(o,l,c)&&(l=c=void 0),o=n(o),l===void 0?(l=o,o=0):l=n(l),c=c===void 0?o<l?1:-1:n(c),e(o,l,c,a)}}return aw=r,aw}var iw,S5;function Lce(){if(S5)return iw;S5=1;var e=Ice(),t=e();return iw=t,iw}var $ce=Lce();const vm=ut($ce);function Lf(e){"@babel/helpers - typeof";return Lf=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},Lf(e)}function O5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function A5(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?O5(Object(n),!0).forEach(function(r){Y$(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Y$(e,t,n){return t=Bce(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bce(e){var t=qce(e,"string");return Lf(t)=="symbol"?t:t+""}function qce(e,t){if(Lf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Lf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var zce=["Webkit","Moz","O","ms"],Uce=function(t,n){var r=t.replace(/(\w)/,function(o){return o.toUpperCase()}),a=zce.reduce(function(o,l){return A5(A5({},o),{},Y$({},l+r,n))},{});return a[t]=n,a};function Yl(e){"@babel/helpers - typeof";return Yl=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},Yl(e)}function ym(){return ym=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},ym.apply(this,arguments)}function P5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function ow(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?P5(Object(n),!0).forEach(function(r){ar(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Hce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _5(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,Q$(r.key),r)}}function Vce(e,t,n){return t&&_5(e.prototype,t),n&&_5(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Fce(e,t,n){return t=bm(t),Kce(e,X$()?Reflect.construct(t,n||[],bm(e).constructor):t.apply(e,n))}function Kce(e,t){if(t&&(Yl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Gce(e)}function Gce(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function X$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(X$=function(){return!!e})()}function bm(e){return bm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},bm(e)}function Yce(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&&uO(e,t)}function uO(e,t){return uO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},uO(e,t)}function ar(e,t,n){return t=Q$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Q$(e){var t=Xce(e,"string");return Yl(t)=="symbol"?t:t+""}function Xce(e,t){if(Yl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Yl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Qce=function(t){var n=t.data,r=t.startIndex,a=t.endIndex,o=t.x,l=t.width,c=t.travellerWidth;if(!n||!n.length)return{};var f=n.length,d=Uu().domain(vm(0,f)).range([o,o+l-c]),m=d.domain().map(function(h){return d(h)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:d(r),endX:d(a),scale:d,scaleValues:m}},C5=function(t){return t.changedTouches&&!!t.changedTouches.length},Xl=(function(e){function t(n){var r;return Hce(this,t),r=Fce(this,t,[n]),ar(r,"handleDrag",function(a){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(a):r.state.isSlideMoving&&r.handleSlideDrag(a)}),ar(r,"handleTouchMove",function(a){a.changedTouches!=null&&a.changedTouches.length>0&&r.handleDrag(a.changedTouches[0])}),ar(r,"handleDragEnd",function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var a=r.props,o=a.endIndex,l=a.onDragEnd,c=a.startIndex;l?.({endIndex:o,startIndex:c})}),r.detachDragEndListener()}),ar(r,"handleLeaveWrapper",function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))}),ar(r,"handleEnterSlideOrTraveller",function(){r.setState({isTextActive:!0})}),ar(r,"handleLeaveSlideOrTraveller",function(){r.setState({isTextActive:!1})}),ar(r,"handleSlideDragStart",function(a){var o=C5(a)?a.changedTouches[0]:a;r.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:o.pageX}),r.attachDragEndListener()}),r.travellerDragStartHandlers={startX:r.handleTravellerDragStart.bind(r,"startX"),endX:r.handleTravellerDragStart.bind(r,"endX")},r.state={},r}return Yce(t,e),Vce(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(r){var a=r.startX,o=r.endX,l=this.state.scaleValues,c=this.props,f=c.gap,d=c.data,m=d.length-1,h=Math.min(a,o),g=Math.max(a,o),x=t.getIndexInRange(l,h),O=t.getIndexInRange(l,g);return{startIndex:x-x%f,endIndex:O===m?m:O-O%f}}},{key:"getTextOfTick",value:function(r){var a=this.props,o=a.data,l=a.tickFormatter,c=a.dataKey,f=fr(o[r],c,r);return Ie(l)?l(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 a=this.state,o=a.slideMoveStartX,l=a.startX,c=a.endX,f=this.props,d=f.x,m=f.width,h=f.travellerWidth,g=f.startIndex,x=f.endIndex,O=f.onChange,b=r.pageX-o;b>0?b=Math.min(b,d+m-h-c,d+m-h-l):b<0&&(b=Math.max(b,d-l,d-c));var S=this.getIndex({startX:l+b,endX:c+b});(S.startIndex!==g||S.endIndex!==x)&&O&&O(S),this.setState({startX:l+b,endX:c+b,slideMoveStartX:r.pageX})}},{key:"handleTravellerDragStart",value:function(r,a){var o=C5(a)?a.changedTouches[0]:a;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:r,brushMoveStartX:o.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(r){var a=this.state,o=a.brushMoveStartX,l=a.movingTravellerId,c=a.endX,f=a.startX,d=this.state[l],m=this.props,h=m.x,g=m.width,x=m.travellerWidth,O=m.onChange,b=m.gap,S=m.data,A={startX:this.state.startX,endX:this.state.endX},_=r.pageX-o;_>0?_=Math.min(_,h+g-x-d):_<0&&(_=Math.max(_,h-d)),A[l]=d+_;var C=this.getIndex(A),M=C.startIndex,P=C.endIndex,E=function(){var D=S.length-1;return l==="startX"&&(c>f?M%b===0:P%b===0)||c<f&&P===D||l==="endX"&&(c>f?P%b===0:M%b===0)||c>f&&P===D};this.setState(ar(ar({},l,d+_),"brushMoveStartX",r.pageX),function(){O&&E()&&O(C)})}},{key:"handleTravellerMoveKeyboard",value:function(r,a){var o=this,l=this.state,c=l.scaleValues,f=l.startX,d=l.endX,m=this.state[a],h=c.indexOf(m);if(h!==-1){var g=h+r;if(!(g===-1||g>=c.length)){var x=c[g];a==="startX"&&x>=d||a==="endX"&&x<=f||this.setState(ar({},a,x),function(){o.props.onChange(o.getIndex({startX:o.state.startX,endX:o.state.endX}))})}}}},{key:"renderBackground",value:function(){var r=this.props,a=r.x,o=r.y,l=r.width,c=r.height,f=r.fill,d=r.stroke;return V.createElement("rect",{stroke:d,fill:f,x:a,y:o,width:l,height:c})}},{key:"renderPanorama",value:function(){var r=this.props,a=r.x,o=r.y,l=r.width,c=r.height,f=r.data,d=r.children,m=r.padding,h=j.Children.only(d);return h?V.cloneElement(h,{x:a,y:o,width:l,height:c,margin:m,compact:!0,data:f}):null}},{key:"renderTravellerLayer",value:function(r,a){var o,l,c=this,f=this.props,d=f.y,m=f.travellerWidth,h=f.height,g=f.traveller,x=f.ariaLabel,O=f.data,b=f.startIndex,S=f.endIndex,A=Math.max(r,this.props.x),_=ow(ow({},Ke(this.props,!1)),{},{x:A,y:d,width:m,height:h}),C=x||"Min value: ".concat((o=O[b])===null||o===void 0?void 0:o.name,", Max value: ").concat((l=O[S])===null||l===void 0?void 0:l.name);return V.createElement(Rt,{tabIndex:0,role:"slider","aria-label":C,"aria-valuenow":r,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[a],onTouchStart:this.travellerDragStartHandlers[a],onKeyDown:function(P){["ArrowLeft","ArrowRight"].includes(P.key)&&(P.preventDefault(),P.stopPropagation(),c.handleTravellerMoveKeyboard(P.key==="ArrowRight"?1:-1,a))},onFocus:function(){c.setState({isTravellerFocused:!0})},onBlur:function(){c.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(g,_))}},{key:"renderSlide",value:function(r,a){var o=this.props,l=o.y,c=o.height,f=o.stroke,d=o.travellerWidth,m=Math.min(r,a)+d,h=Math.max(Math.abs(a-r)-d,0);return V.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:m,y:l,width:h,height:c})}},{key:"renderText",value:function(){var r=this.props,a=r.startIndex,o=r.endIndex,l=r.y,c=r.height,f=r.travellerWidth,d=r.stroke,m=this.state,h=m.startX,g=m.endX,x=5,O={pointerEvents:"none",fill:d};return V.createElement(Rt,{className:"recharts-brush-texts"},V.createElement(Yp,ym({textAnchor:"end",verticalAnchor:"middle",x:Math.min(h,g)-x,y:l+c/2},O),this.getTextOfTick(a)),V.createElement(Yp,ym({textAnchor:"start",verticalAnchor:"middle",x:Math.max(h,g)+f+x,y:l+c/2},O),this.getTextOfTick(o)))}},{key:"render",value:function(){var r=this.props,a=r.data,o=r.className,l=r.children,c=r.x,f=r.y,d=r.width,m=r.height,h=r.alwaysShowText,g=this.state,x=g.startX,O=g.endX,b=g.isTextActive,S=g.isSlideMoving,A=g.isTravellerMoving,_=g.isTravellerFocused;if(!a||!a.length||!ge(c)||!ge(f)||!ge(d)||!ge(m)||d<=0||m<=0)return null;var C=Ge("recharts-brush",o),M=V.Children.count(l)===1,P=Uce("userSelect","none");return V.createElement(Rt,{className:C,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:P},this.renderBackground(),M&&this.renderPanorama(),this.renderSlide(x,O),this.renderTravellerLayer(x,"startX"),this.renderTravellerLayer(O,"endX"),(b||S||A||_||h)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(r){var a=r.x,o=r.y,l=r.width,c=r.height,f=r.stroke,d=Math.floor(o+c/2)-1;return V.createElement(V.Fragment,null,V.createElement("rect",{x:a,y:o,width:l,height:c,fill:f,stroke:"none"}),V.createElement("line",{x1:a+1,y1:d,x2:a+l-1,y2:d,fill:"none",stroke:"#fff"}),V.createElement("line",{x1:a+1,y1:d+2,x2:a+l-1,y2:d+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(r,a){var o;return V.isValidElement(r)?o=V.cloneElement(r,a):Ie(r)?o=r(a):o=t.renderDefaultTraveller(a),o}},{key:"getDerivedStateFromProps",value:function(r,a){var o=r.data,l=r.width,c=r.x,f=r.travellerWidth,d=r.updateId,m=r.startIndex,h=r.endIndex;if(o!==a.prevData||d!==a.prevUpdateId)return ow({prevData:o,prevTravellerWidth:f,prevUpdateId:d,prevX:c,prevWidth:l},o&&o.length?Qce({data:o,width:l,x:c,travellerWidth:f,startIndex:m,endIndex:h}):{scale:null,scaleValues:null});if(a.scale&&(l!==a.prevWidth||c!==a.prevX||f!==a.prevTravellerWidth)){a.scale.range([c,c+l-f]);var g=a.scale.domain().map(function(x){return a.scale(x)});return{prevData:o,prevTravellerWidth:f,prevUpdateId:d,prevX:c,prevWidth:l,startX:a.scale(r.startIndex),endX:a.scale(r.endIndex),scaleValues:g}}return null}},{key:"getIndexInRange",value:function(r,a){for(var o=r.length,l=0,c=o-1;c-l>1;){var f=Math.floor((l+c)/2);r[f]>a?c=f:l=f}return a>=r[c]?c:l}}])})(j.PureComponent);ar(Xl,"displayName","Brush");ar(Xl,"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 sw,T5;function Wce(){if(T5)return sw;T5=1;var e=ZA();function t(n,r){var a;return e(n,function(o,l,c){return a=r(o,l,c),!a}),!!a}return sw=t,sw}var lw,j5;function Zce(){if(j5)return lw;j5=1;var e=a8(),t=ao(),n=Wce(),r=Yn(),a=pg();function o(l,c,f){var d=r(l)?e:n;return f&&a(l,c,f)&&(c=void 0),d(l,t(c,3))}return lw=o,lw}var Jce=Zce();const eue=ut(Jce);var ga=function(t,n){var r=t.alwaysShow,a=t.ifOverflow;return r&&(a="extendDomain"),a===n},cw,E5;function tue(){if(E5)return cw;E5=1;var e=S8();function t(n,r,a){r=="__proto__"&&e?e(n,r,{configurable:!0,enumerable:!0,value:a,writable:!0}):n[r]=a}return cw=t,cw}var uw,N5;function nue(){if(N5)return uw;N5=1;var e=tue(),t=x8(),n=ao();function r(a,o){var l={};return o=n(o,3),t(a,function(c,f,d){e(l,f,o(c,f,d))}),l}return uw=r,uw}var rue=nue();const aue=ut(rue);var fw,M5;function iue(){if(M5)return fw;M5=1;function e(t,n){for(var r=-1,a=t==null?0:t.length;++r<a;)if(!n(t[r],r,t))return!1;return!0}return fw=e,fw}var dw,D5;function oue(){if(D5)return dw;D5=1;var e=ZA();function t(n,r){var a=!0;return e(n,function(o,l,c){return a=!!r(o,l,c),a}),a}return dw=t,dw}var hw,R5;function sue(){if(R5)return hw;R5=1;var e=iue(),t=oue(),n=ao(),r=Yn(),a=pg();function o(l,c,f){var d=r(l)?e:t;return f&&a(l,c,f)&&(c=void 0),d(l,n(c,3))}return hw=o,hw}var lue=sue();const W$=ut(lue);var cue=["x","y"];function $f(e){"@babel/helpers - typeof";return $f=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},$f(e)}function fO(){return fO=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},fO.apply(this,arguments)}function k5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Nu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?k5(Object(n),!0).forEach(function(r){uue(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function uue(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=due(e,"string");return $f(t)=="symbol"?t:t+""}function due(e,t){if($f(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if($f(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function hue(e,t){if(e==null)return{};var n=pue(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function pue(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function mue(e,t){var n=e.x,r=e.y,a=hue(e,cue),o="".concat(n),l=parseInt(o,10),c="".concat(r),f=parseInt(c,10),d="".concat(t.height||a.height),m=parseInt(d,10),h="".concat(t.width||a.width),g=parseInt(h,10);return Nu(Nu(Nu(Nu(Nu({},t),a),l?{x:l}:{}),f?{y:f}:{}),{},{height:m,width:g,name:t.name,radius:t.radius})}function I5(e){return V.createElement(Cce,fO({shapeType:"rectangle",propTransformer:mue,activeClassName:"recharts-active-bar"},e))}var gue=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(r,a){if(typeof t=="number")return t;var o=ge(r)||PW(r);return o?t(r,a):(o||ls(),n)}},vue=["value","background"],Z$;function Ql(e){"@babel/helpers - typeof";return Ql=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},Ql(e)}function yue(e,t){if(e==null)return{};var n=bue(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function bue(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 xm(){return xm=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},xm.apply(this,arguments)}function L5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Ht(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?L5(Object(n),!0).forEach(function(r){Fi(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function xue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $5(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,eB(r.key),r)}}function wue(e,t,n){return t&&$5(e.prototype,t),n&&$5(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Sue(e,t,n){return t=wm(t),Oue(e,J$()?Reflect.construct(t,n||[],wm(e).constructor):t.apply(e,n))}function Oue(e,t){if(t&&(Ql(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Aue(e)}function Aue(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function J$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(J$=function(){return!!e})()}function wm(e){return wm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},wm(e)}function Pue(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&&dO(e,t)}function dO(e,t){return dO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},dO(e,t)}function Fi(e,t,n){return t=eB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eB(e){var t=_ue(e,"string");return Ql(t)=="symbol"?t:t+""}function _ue(e,t){if(Ql(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ql(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var hd=(function(e){function t(){var n;xue(this,t);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return n=Sue(this,t,[].concat(a)),Fi(n,"state",{isAnimationFinished:!1}),Fi(n,"id",od("recharts-bar-")),Fi(n,"handleAnimationEnd",function(){var l=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),l&&l()}),Fi(n,"handleAnimationStart",function(){var l=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),l&&l()}),n}return Pue(t,e),wue(t,[{key:"renderRectanglesStatically",value:function(r){var a=this,o=this.props,l=o.shape,c=o.dataKey,f=o.activeIndex,d=o.activeBar,m=Ke(this.props,!1);return r&&r.map(function(h,g){var x=g===f,O=x?d:l,b=Ht(Ht(Ht({},m),h),{},{isActive:x,option:O,index:g,dataKey:c,onAnimationStart:a.handleAnimationStart,onAnimationEnd:a.handleAnimationEnd});return V.createElement(Rt,xm({className:"recharts-bar-rectangle"},Lp(a.props,h,g),{key:"rectangle-".concat(h?.x,"-").concat(h?.y,"-").concat(h?.value,"-").concat(g)}),V.createElement(I5,b))})}},{key:"renderRectanglesWithAnimation",value:function(){var r=this,a=this.props,o=a.data,l=a.layout,c=a.isAnimationActive,f=a.animationBegin,d=a.animationDuration,m=a.animationEasing,h=a.animationId,g=this.state.prevData;return V.createElement(ai,{begin:f,duration:d,isActive:c,easing:m,from:{t:0},to:{t:1},key:"bar-".concat(h),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(x){var O=x.t,b=o.map(function(S,A){var _=g&&g[A];if(_){var C=Yr(_.x,S.x),M=Yr(_.y,S.y),P=Yr(_.width,S.width),E=Yr(_.height,S.height);return Ht(Ht({},S),{},{x:C(O),y:M(O),width:P(O),height:E(O)})}if(l==="horizontal"){var T=Yr(0,S.height),D=T(O);return Ht(Ht({},S),{},{y:S.y+S.height-D,height:D})}var L=Yr(0,S.width),U=L(O);return Ht(Ht({},S),{},{width:U})});return V.createElement(Rt,null,r.renderRectanglesStatically(b))})}},{key:"renderRectangles",value:function(){var r=this.props,a=r.data,o=r.isAnimationActive,l=this.state.prevData;return o&&a&&a.length&&(!l||!Og(l,a))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(a)}},{key:"renderBackground",value:function(){var r=this,a=this.props,o=a.data,l=a.dataKey,c=a.activeIndex,f=Ke(this.props.background,!1);return o.map(function(d,m){d.value;var h=d.background,g=yue(d,vue);if(!h)return null;var x=Ht(Ht(Ht(Ht(Ht({},g),{},{fill:"#eee"},h),f),Lp(r.props,d,m)),{},{onAnimationStart:r.handleAnimationStart,onAnimationEnd:r.handleAnimationEnd,dataKey:l,index:m,className:"recharts-bar-background-rectangle"});return V.createElement(I5,xm({key:"background-bar-".concat(m),option:r.props.background,isActive:m===c},x))})}},{key:"renderErrorBar",value:function(r,a){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var o=this.props,l=o.data,c=o.xAxis,f=o.yAxis,d=o.layout,m=o.children,h=Dr(m,dd);if(!h)return null;var g=d==="vertical"?l[0].height/2:l[0].width/2,x=function(S,A){var _=Array.isArray(S.value)?S.value[1]:S.value;return{x:S.x,y:S.y,value:_,errorVal:fr(S,A)}},O={clipPath:r?"url(#clipPath-".concat(a,")"):null};return V.createElement(Rt,O,h.map(function(b){return V.cloneElement(b,{key:"error-bar-".concat(a,"-").concat(b.props.dataKey),data:l,xAxis:c,yAxis:f,layout:d,offset:g,dataPointFormatter:x})}))}},{key:"render",value:function(){var r=this.props,a=r.hide,o=r.data,l=r.className,c=r.xAxis,f=r.yAxis,d=r.left,m=r.top,h=r.width,g=r.height,x=r.isAnimationActive,O=r.background,b=r.id;if(a||!o||!o.length)return null;var S=this.state.isAnimationFinished,A=Ge("recharts-bar",l),_=c&&c.allowDataOverflow,C=f&&f.allowDataOverflow,M=_||C,P=qe(b)?this.id:b;return V.createElement(Rt,{className:A},_||C?V.createElement("defs",null,V.createElement("clipPath",{id:"clipPath-".concat(P)},V.createElement("rect",{x:_?d:d-h/2,y:C?m:m-g/2,width:_?h:h*2,height:C?g:g*2}))):null,V.createElement(Rt,{className:"recharts-bar-rectangles",clipPath:M?"url(#clipPath-".concat(P,")"):null},O?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(M,P),(!x||S)&&Yi.renderCallByParent(this.props,o))}}],[{key:"getDerivedStateFromProps",value:function(r,a){return r.animationId!==a.prevAnimationId?{prevAnimationId:r.animationId,curData:r.data,prevData:a.curData}:r.data!==a.curData?{curData:r.data}:null}}])})(j.PureComponent);Z$=hd;Fi(hd,"displayName","Bar");Fi(hd,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!vc.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});Fi(hd,"getComposedData",function(e){var t=e.props,n=e.item,r=e.barPosition,a=e.bandSize,o=e.xAxis,l=e.yAxis,c=e.xAxisTicks,f=e.yAxisTicks,d=e.stackedData,m=e.dataStartIndex,h=e.displayedData,g=e.offset,x=Vie(r,n);if(!x)return null;var O=t.layout,b=n.type.defaultProps,S=b!==void 0?Ht(Ht({},b),n.props):n.props,A=S.dataKey,_=S.children,C=S.minPointSize,M=O==="horizontal"?l:o,P=d?M.scale.domain():null,E=Zie({numericAxis:M}),T=Dr(_,E8),D=h.map(function(L,U){var I,z,F,K,q,R;d?I=Fie(d[m+U],P):(I=fr(L,A),Array.isArray(I)||(I=[E,I]));var $=gue(C,Z$.defaultProps.minPointSize)(I[1],U);if(O==="horizontal"){var H,W=[l.scale(I[0]),l.scale(I[1])],ae=W[0],B=W[1];z=wk({axis:o,ticks:c,bandSize:a,offset:x.offset,entry:L,index:U}),F=(H=B??ae)!==null&&H!==void 0?H:void 0,K=x.size;var Y=ae-B;if(q=Number.isNaN(Y)?0:Y,R={x:z,y:l.y,width:K,height:l.height},Math.abs($)>0&&Math.abs(q)<Math.abs($)){var X=Qr(q||$)*(Math.abs($)-Math.abs(q));F-=X,q+=X}}else{var J=[o.scale(I[0]),o.scale(I[1])],ue=J[0],he=J[1];if(z=ue,F=wk({axis:l,ticks:f,bandSize:a,offset:x.offset,entry:L,index:U}),K=he-ue,q=x.size,R={x:o.x,y:F,width:o.width,height:q},Math.abs($)>0&&Math.abs(K)<Math.abs($)){var fe=Qr(K||$)*(Math.abs($)-Math.abs(K));K+=fe}}return Ht(Ht(Ht({},L),{},{x:z,y:F,width:K,height:q,value:d?I:I[1],payload:L,background:R},T&&T[U]&&T[U].props),{},{tooltipPayload:[I$(n,L)],tooltipPosition:{x:z+K/2,y:F+q/2}})});return Ht({data:D,layout:O},g)});function Bf(e){"@babel/helpers - typeof";return Bf=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},Bf(e)}function Cue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function B5(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,tB(r.key),r)}}function Tue(e,t,n){return t&&B5(e.prototype,t),n&&B5(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function q5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Kr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?q5(Object(n),!0).forEach(function(r){Tg(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Tg(e,t,n){return t=tB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tB(e){var t=jue(e,"string");return Bf(t)=="symbol"?t:t+""}function jue(e,t){if(Bf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Bf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Eue=function(t,n,r,a,o){var l=t.width,c=t.height,f=t.layout,d=t.children,m=Object.keys(n),h={left:r.left,leftMirror:r.left,right:l-r.right,rightMirror:l-r.right,top:r.top,topMirror:r.top,bottom:c-r.bottom,bottomMirror:c-r.bottom},g=!!ir(d,hd);return m.reduce(function(x,O){var b=n[O],S=b.orientation,A=b.domain,_=b.padding,C=_===void 0?{}:_,M=b.mirror,P=b.reversed,E="".concat(S).concat(M?"Mirror":""),T,D,L,U,I;if(b.type==="number"&&(b.padding==="gap"||b.padding==="no-gap")){var z=A[1]-A[0],F=1/0,K=b.categoricalDomain.sort(TW);if(K.forEach(function(J,ue){ue>0&&(F=Math.min((J||0)-(K[ue-1]||0),F))}),Number.isFinite(F)){var q=F/z,R=b.layout==="vertical"?r.height:r.width;if(b.padding==="gap"&&(T=q*R/2),b.padding==="no-gap"){var $=os(t.barCategoryGap,q*R),H=q*R/2;T=H-$-(H-$)/R*$}}}a==="xAxis"?D=[r.left+(C.left||0)+(T||0),r.left+r.width-(C.right||0)-(T||0)]:a==="yAxis"?D=f==="horizontal"?[r.top+r.height-(C.bottom||0),r.top+(C.top||0)]:[r.top+(C.top||0)+(T||0),r.top+r.height-(C.bottom||0)-(T||0)]:D=b.range,P&&(D=[D[1],D[0]]);var W=Uie(b,o,g),ae=W.scale,B=W.realScaleType;ae.domain(A).range(D),Hie(ae);var Y=Wie(ae,Kr(Kr({},b),{},{realScaleType:B}));a==="xAxis"?(I=S==="top"&&!M||S==="bottom"&&M,L=r.left,U=h[E]-I*b.height):a==="yAxis"&&(I=S==="left"&&!M||S==="right"&&M,L=h[E]-I*b.width,U=r.top);var X=Kr(Kr(Kr({},b),Y),{},{realScaleType:B,x:L,y:U,scale:ae,width:a==="xAxis"?r.width:b.width,height:a==="yAxis"?r.height:b.height});return X.bandSize=lm(X,Y),!b.hide&&a==="xAxis"?h[E]+=(I?-1:1)*X.height:b.hide||(h[E]+=(I?-1:1)*X.width),Kr(Kr({},x),{},Tg({},O,X))},{})},nB=function(t,n){var r=t.x,a=t.y,o=n.x,l=n.y;return{x:Math.min(r,o),y:Math.min(a,l),width:Math.abs(o-r),height:Math.abs(l-a)}},Nue=function(t){var n=t.x1,r=t.y1,a=t.x2,o=t.y2;return nB({x:n,y:r},{x:a,y:o})},rB=(function(){function e(t){Cue(this,e),this.scale=t}return Tue(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]:{},a=r.bandAware,o=r.position;if(n!==void 0){if(o)switch(o){case"start":return this.scale(n);case"middle":{var l=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+l}case"end":{var c=this.bandwidth?this.bandwidth():0;return this.scale(n)+c}default:return this.scale(n)}if(a){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(),a=r[0],o=r[r.length-1];return a<=o?n>=a&&n<=o:n>=o&&n<=a}}],[{key:"create",value:function(n){return new e(n)}}])})();Tg(rB,"EPS",1e-4);var TP=function(t){var n=Object.keys(t).reduce(function(r,a){return Kr(Kr({},r),{},Tg({},a,rB.create(t[a])))},{});return Kr(Kr({},n),{},{apply:function(a){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=o.bandAware,c=o.position;return aue(a,function(f,d){return n[d].apply(f,{bandAware:l,position:c})})},isInRange:function(a){return W$(a,function(o,l){return n[l].isInRange(o)})}})};function Mue(e){return(e%180+180)%180}var Due=function(t){var n=t.width,r=t.height,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=Mue(a),l=o*Math.PI/180,c=Math.atan(r/n),f=l>c&&l<Math.PI-c?r/Math.sin(l):n/Math.cos(l);return Math.abs(f)},pw,z5;function Rue(){if(z5)return pw;z5=1;var e=ao(),t=sd(),n=dg();function r(a){return function(o,l,c){var f=Object(o);if(!t(o)){var d=e(l,3);o=n(o),l=function(h){return d(f[h],h,f)}}var m=a(o,l,c);return m>-1?f[d?o[m]:m]:void 0}}return pw=r,pw}var mw,U5;function kue(){if(U5)return mw;U5=1;var e=G$();function t(n){var r=e(n),a=r%1;return r===r?a?r-a:r:0}return mw=t,mw}var gw,H5;function Iue(){if(H5)return gw;H5=1;var e=m8(),t=ao(),n=kue(),r=Math.max;function a(o,l,c){var f=o==null?0:o.length;if(!f)return-1;var d=c==null?0:n(c);return d<0&&(d=r(f+d,0)),e(o,t(l,3),d)}return gw=a,gw}var vw,V5;function Lue(){if(V5)return vw;V5=1;var e=Rue(),t=Iue(),n=e(t);return vw=n,vw}var $ue=Lue();const Bue=ut($ue);var que=NL();const zue=ut(que);var Uue=zue(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("")}),jP=j.createContext(void 0),EP=j.createContext(void 0),aB=j.createContext(void 0),iB=j.createContext({}),oB=j.createContext(void 0),sB=j.createContext(0),lB=j.createContext(0),F5=function(t){var n=t.state,r=n.xAxisMap,a=n.yAxisMap,o=n.offset,l=t.clipPathId,c=t.children,f=t.width,d=t.height,m=Uue(o);return V.createElement(jP.Provider,{value:r},V.createElement(EP.Provider,{value:a},V.createElement(iB.Provider,{value:o},V.createElement(aB.Provider,{value:m},V.createElement(oB.Provider,{value:l},V.createElement(sB.Provider,{value:d},V.createElement(lB.Provider,{value:f},c)))))))},Hue=function(){return j.useContext(oB)},cB=function(t){var n=j.useContext(jP);n==null&&ls();var r=n[t];return r==null&&ls(),r},Vue=function(){var t=j.useContext(jP);return Hi(t)},Fue=function(){var t=j.useContext(EP),n=Bue(t,function(r){return W$(r.domain,Number.isFinite)});return n||Hi(t)},uB=function(t){var n=j.useContext(EP);n==null&&ls();var r=n[t];return r==null&&ls(),r},Kue=function(){var t=j.useContext(aB);return t},Gue=function(){return j.useContext(iB)},NP=function(){return j.useContext(lB)},MP=function(){return j.useContext(sB)};function Wl(e){"@babel/helpers - typeof";return Wl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wl(e)}function Yue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xue(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,dB(r.key),r)}}function Que(e,t,n){return t&&Xue(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Wue(e,t,n){return t=Sm(t),Zue(e,fB()?Reflect.construct(t,n||[],Sm(e).constructor):t.apply(e,n))}function Zue(e,t){if(t&&(Wl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Jue(e)}function Jue(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(fB=function(){return!!e})()}function Sm(e){return Sm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Sm(e)}function efe(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&&hO(e,t)}function hO(e,t){return hO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},hO(e,t)}function K5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function G5(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?K5(Object(n),!0).forEach(function(r){DP(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function DP(e,t,n){return t=dB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dB(e){var t=tfe(e,"string");return Wl(t)=="symbol"?t:t+""}function tfe(e,t){if(Wl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Wl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function nfe(e,t){return ofe(e)||ife(e,t)||afe(e,t)||rfe()}function rfe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 366In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function afe(e,t){if(e){if(typeof e=="string")return Y5(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 Y5(e,t)}}function Y5(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 ife(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,o,l,c=[],f=!0,d=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(f=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){d=!0,a=m}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw a}}return c}}function ofe(e){if(Array.isArray(e))return e}function pO(){return pO=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},pO.apply(this,arguments)}var sfe=function(t,n){var r;return V.isValidElement(t)?r=V.cloneElement(t,n):Ie(t)?r=t(n):r=V.createElement("line",pO({},n,{className:"recharts-reference-line-line"})),r},lfe=function(t,n,r,a,o,l,c,f,d){var m=o.x,h=o.y,g=o.width,x=o.height;if(r){var O=d.y,b=t.y.apply(O,{position:l});if(ga(d,"discard")&&!t.y.isInRange(b))return null;var S=[{x:m+g,y:b},{x:m,y:b}];return f==="left"?S.reverse():S}if(n){var A=d.x,_=t.x.apply(A,{position:l});if(ga(d,"discard")&&!t.x.isInRange(_))return null;var C=[{x:_,y:h+x},{x:_,y:h}];return c==="top"?C.reverse():C}if(a){var M=d.segment,P=M.map(function(E){return t.apply(E,{position:l})});return ga(d,"discard")&&eue(P,function(E){return!t.isInRange(E)})?null:P}return null};function cfe(e){var t=e.x,n=e.y,r=e.segment,a=e.xAxisId,o=e.yAxisId,l=e.shape,c=e.className,f=e.alwaysShow,d=Hue(),m=cB(a),h=uB(o),g=Kue();if(!d||!g)return null;Qa(f===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var x=TP({x:m.scale,y:h.scale}),O=Qt(t),b=Qt(n),S=r&&r.length===2,A=lfe(x,O,b,S,g,e.position,m.orientation,h.orientation,e);if(!A)return null;var _=nfe(A,2),C=_[0],M=C.x,P=C.y,E=_[1],T=E.x,D=E.y,L=ga(e,"hidden")?"url(#".concat(d,")"):void 0,U=G5(G5({clipPath:L},Ke(e,!0)),{},{x1:M,y1:P,x2:T,y2:D});return V.createElement(Rt,{className:Ge("recharts-reference-line",c)},sfe(l,U),Sn.renderCallByParent(e,Nue({x1:M,y1:P,x2:T,y2:D})))}var RP=(function(e){function t(){return Yue(this,t),Wue(this,t,arguments)}return efe(t,e),Que(t,[{key:"render",value:function(){return V.createElement(cfe,this.props)}}])})(V.Component);DP(RP,"displayName","ReferenceLine");DP(RP,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function mO(){return mO=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},mO.apply(this,arguments)}function Zl(e){"@babel/helpers - typeof";return Zl=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},Zl(e)}function X5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Q5(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?X5(Object(n),!0).forEach(function(r){jg(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):X5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ufe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ffe(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,pB(r.key),r)}}function dfe(e,t,n){return t&&ffe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function hfe(e,t,n){return t=Om(t),pfe(e,hB()?Reflect.construct(t,n||[],Om(e).constructor):t.apply(e,n))}function pfe(e,t){if(t&&(Zl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return mfe(e)}function mfe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(hB=function(){return!!e})()}function Om(e){return Om=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Om(e)}function gfe(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&&gO(e,t)}function gO(e,t){return gO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},gO(e,t)}function jg(e,t,n){return t=pB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pB(e){var t=vfe(e,"string");return Zl(t)=="symbol"?t:t+""}function vfe(e,t){if(Zl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Zl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var yfe=function(t){var n=t.x,r=t.y,a=t.xAxis,o=t.yAxis,l=TP({x:a.scale,y:o.scale}),c=l.apply({x:n,y:r},{bandAware:!0});return ga(t,"discard")&&!l.isInRange(c)?null:c},Eg=(function(e){function t(){return ufe(this,t),hfe(this,t,arguments)}return gfe(t,e),dfe(t,[{key:"render",value:function(){var r=this.props,a=r.x,o=r.y,l=r.r,c=r.alwaysShow,f=r.clipPathId,d=Qt(a),m=Qt(o);if(Qa(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!d||!m)return null;var h=yfe(this.props);if(!h)return null;var g=h.x,x=h.y,O=this.props,b=O.shape,S=O.className,A=ga(this.props,"hidden")?"url(#".concat(f,")"):void 0,_=Q5(Q5({clipPath:A},Ke(this.props,!0)),{},{cx:g,cy:x});return V.createElement(Rt,{className:Ge("recharts-reference-dot",S)},t.renderDot(b,_),Sn.renderCallByParent(this.props,{x:g-l,y:x-l,width:2*l,height:2*l}))}}])})(V.Component);jg(Eg,"displayName","ReferenceDot");jg(Eg,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});jg(Eg,"renderDot",function(e,t){var n;return V.isValidElement(e)?n=V.cloneElement(e,t):Ie(e)?n=e(t):n=V.createElement(CP,mO({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),n});function vO(){return vO=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},vO.apply(this,arguments)}function Jl(e){"@babel/helpers - typeof";return Jl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jl(e)}function W5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Z5(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?W5(Object(n),!0).forEach(function(r){Ng(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function bfe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xfe(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,gB(r.key),r)}}function wfe(e,t,n){return t&&xfe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Sfe(e,t,n){return t=Am(t),Ofe(e,mB()?Reflect.construct(t,n||[],Am(e).constructor):t.apply(e,n))}function Ofe(e,t){if(t&&(Jl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Afe(e)}function Afe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(mB=function(){return!!e})()}function Am(e){return Am=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Am(e)}function Pfe(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&&yO(e,t)}function yO(e,t){return yO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},yO(e,t)}function Ng(e,t,n){return t=gB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gB(e){var t=_fe(e,"string");return Jl(t)=="symbol"?t:t+""}function _fe(e,t){if(Jl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Jl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Cfe=function(t,n,r,a,o){var l=o.x1,c=o.x2,f=o.y1,d=o.y2,m=o.xAxis,h=o.yAxis;if(!m||!h)return null;var g=TP({x:m.scale,y:h.scale}),x={x:t?g.x.apply(l,{position:"start"}):g.x.rangeMin,y:r?g.y.apply(f,{position:"start"}):g.y.rangeMin},O={x:n?g.x.apply(c,{position:"end"}):g.x.rangeMax,y:a?g.y.apply(d,{position:"end"}):g.y.rangeMax};return ga(o,"discard")&&(!g.isInRange(x)||!g.isInRange(O))?null:nB(x,O)},Mg=(function(e){function t(){return bfe(this,t),Sfe(this,t,arguments)}return Pfe(t,e),wfe(t,[{key:"render",value:function(){var r=this.props,a=r.x1,o=r.x2,l=r.y1,c=r.y2,f=r.className,d=r.alwaysShow,m=r.clipPathId;Qa(d===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var h=Qt(a),g=Qt(o),x=Qt(l),O=Qt(c),b=this.props.shape;if(!h&&!g&&!x&&!O&&!b)return null;var S=Cfe(h,g,x,O,this.props);if(!S&&!b)return null;var A=ga(this.props,"hidden")?"url(#".concat(m,")"):void 0;return V.createElement(Rt,{className:Ge("recharts-reference-area",f)},t.renderRect(b,Z5(Z5({clipPath:A},Ke(this.props,!0)),S)),Sn.renderCallByParent(this.props,S))}}])})(V.Component);Ng(Mg,"displayName","ReferenceArea");Ng(Mg,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});Ng(Mg,"renderRect",function(e,t){var n;return V.isValidElement(e)?n=V.cloneElement(e,t):Ie(e)?n=e(t):n=V.createElement(_P,vO({},t,{className:"recharts-reference-area-rect"})),n});function vB(e,t,n){if(t<1)return[];if(t===1&&n===void 0)return e;for(var r=[],a=0;a<e.length;a+=t)r.push(e[a]);return r}function Tfe(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return Due(r,n)}function jfe(e,t,n){var r=n==="width",a=e.x,o=e.y,l=e.width,c=e.height;return t===1?{start:r?a:o,end:r?a+l:o+c}:{start:r?a+l:o+c,end:r?a:o}}function Pm(e,t,n,r,a){if(e*t<e*r||e*t>e*a)return!1;var o=n();return e*(t-e*o/2-r)>=0&&e*(t+e*o/2-a)<=0}function Efe(e,t){return vB(e,t+1)}function Nfe(e,t,n,r,a){for(var o=(r||[]).slice(),l=t.start,c=t.end,f=0,d=1,m=l,h=function(){var O=r?.[f];if(O===void 0)return{v:vB(r,d)};var b=f,S,A=function(){return S===void 0&&(S=n(O,b)),S},_=O.coordinate,C=f===0||Pm(e,_,A,m,c);C||(f=0,m=l,d+=1),C&&(m=_+e*(A()/2+a),f+=d)},g;d<=o.length;)if(g=h(),g)return g.v;return[]}function qf(e){"@babel/helpers - typeof";return qf=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},qf(e)}function J5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function yn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?J5(Object(n),!0).forEach(function(r){Mfe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):J5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Mfe(e,t,n){return t=Dfe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dfe(e){var t=Rfe(e,"string");return qf(t)=="symbol"?t:t+""}function Rfe(e,t){if(qf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(qf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function kfe(e,t,n,r,a){for(var o=(r||[]).slice(),l=o.length,c=t.start,f=t.end,d=function(g){var x=o[g],O,b=function(){return O===void 0&&(O=n(x,g)),O};if(g===l-1){var S=e*(x.coordinate+e*b()/2-f);o[g]=x=yn(yn({},x),{},{tickCoord:S>0?x.coordinate-S*e:x.coordinate})}else o[g]=x=yn(yn({},x),{},{tickCoord:x.coordinate});var A=Pm(e,x.tickCoord,b,c,f);A&&(f=x.tickCoord-e*(b()/2+a),o[g]=yn(yn({},x),{},{isShow:!0}))},m=l-1;m>=0;m--)d(m);return o}function Ife(e,t,n,r,a,o){var l=(r||[]).slice(),c=l.length,f=t.start,d=t.end;if(o){var m=r[c-1],h=n(m,c-1),g=e*(m.coordinate+e*h/2-d);l[c-1]=m=yn(yn({},m),{},{tickCoord:g>0?m.coordinate-g*e:m.coordinate});var x=Pm(e,m.tickCoord,function(){return h},f,d);x&&(d=m.tickCoord-e*(h/2+a),l[c-1]=yn(yn({},m),{},{isShow:!0}))}for(var O=o?c-1:c,b=function(_){var C=l[_],M,P=function(){return M===void 0&&(M=n(C,_)),M};if(_===0){var E=e*(C.coordinate-e*P()/2-f);l[_]=C=yn(yn({},C),{},{tickCoord:E<0?C.coordinate-E*e:C.coordinate})}else l[_]=C=yn(yn({},C),{},{tickCoord:C.coordinate});var T=Pm(e,C.tickCoord,P,f,d);T&&(f=C.tickCoord+e*(P()/2+a),l[_]=yn(yn({},C),{},{isShow:!0}))},S=0;S<O;S++)b(S);return l}function kP(e,t,n){var r=e.tick,a=e.ticks,o=e.viewBox,l=e.minTickGap,c=e.orientation,f=e.interval,d=e.tickFormatter,m=e.unit,h=e.angle;if(!a||!a.length||!r)return[];if(ge(f)||vc.isSsr)return Efe(a,typeof f=="number"&&ge(f)?f:0);var g=[],x=c==="top"||c==="bottom"?"width":"height",O=m&&x==="width"?zu(m,{fontSize:t,letterSpacing:n}):{width:0,height:0},b=function(C,M){var P=Ie(d)?d(C.value,M):C.value;return x==="width"?Tfe(zu(P,{fontSize:t,letterSpacing:n}),O,h):zu(P,{fontSize:t,letterSpacing:n})[x]},S=a.length>=2?Qr(a[1].coordinate-a[0].coordinate):1,A=jfe(o,S,x);return f==="equidistantPreserveStart"?Nfe(S,A,b,a,l):(f==="preserveStart"||f==="preserveStartEnd"?g=Ife(S,A,b,a,l,f==="preserveStartEnd"):g=kfe(S,A,b,a,l),g.filter(function(_){return _.isShow}))}var Lfe=["viewBox"],$fe=["viewBox"],Bfe=["ticks"];function ec(e){"@babel/helpers - typeof";return ec=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},ec(e)}function bl(){return bl=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},bl.apply(this,arguments)}function e3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Yt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?e3(Object(n),!0).forEach(function(r){IP(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):e3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function yw(e,t){if(e==null)return{};var n=qfe(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function qfe(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 zfe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t3(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,bB(r.key),r)}}function Ufe(e,t,n){return t&&t3(e.prototype,t),n&&t3(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Hfe(e,t,n){return t=_m(t),Vfe(e,yB()?Reflect.construct(t,n||[],_m(e).constructor):t.apply(e,n))}function Vfe(e,t){if(t&&(ec(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ffe(e)}function Ffe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(yB=function(){return!!e})()}function _m(e){return _m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},_m(e)}function Kfe(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&&bO(e,t)}function bO(e,t){return bO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},bO(e,t)}function IP(e,t,n){return t=bB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bB(e){var t=Gfe(e,"string");return ec(t)=="symbol"?t:t+""}function Gfe(e,t){if(ec(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ec(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var wc=(function(e){function t(n){var r;return zfe(this,t),r=Hfe(this,t,[n]),r.state={fontSize:"",letterSpacing:""},r}return Kfe(t,e),Ufe(t,[{key:"shouldComponentUpdate",value:function(r,a){var o=r.viewBox,l=yw(r,Lfe),c=this.props,f=c.viewBox,d=yw(c,$fe);return!jl(o,f)||!jl(l,d)||!jl(a,this.state)}},{key:"componentDidMount",value:function(){var r=this.layerReference;if(r){var a=r.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];a&&this.setState({fontSize:window.getComputedStyle(a).fontSize,letterSpacing:window.getComputedStyle(a).letterSpacing})}}},{key:"getTickLineCoord",value:function(r){var a=this.props,o=a.x,l=a.y,c=a.width,f=a.height,d=a.orientation,m=a.tickSize,h=a.mirror,g=a.tickMargin,x,O,b,S,A,_,C=h?-1:1,M=r.tickSize||m,P=ge(r.tickCoord)?r.tickCoord:r.coordinate;switch(d){case"top":x=O=r.coordinate,S=l+ +!h*f,b=S-C*M,_=b-C*g,A=P;break;case"left":b=S=r.coordinate,O=o+ +!h*c,x=O-C*M,A=x-C*g,_=P;break;case"right":b=S=r.coordinate,O=o+ +h*c,x=O+C*M,A=x+C*g,_=P;break;default:x=O=r.coordinate,S=l+ +h*f,b=S+C*M,_=b+C*g,A=P;break}return{line:{x1:x,y1:b,x2:O,y2:S},tick:{x:A,y:_}}}},{key:"getTickTextAnchor",value:function(){var r=this.props,a=r.orientation,o=r.mirror,l;switch(a){case"left":l=o?"start":"end";break;case"right":l=o?"end":"start";break;default:l="middle";break}return l}},{key:"getTickVerticalAnchor",value:function(){var r=this.props,a=r.orientation,o=r.mirror,l="end";switch(a){case"left":case"right":l="middle";break;case"top":l=o?"start":"end";break;default:l=o?"end":"start";break}return l}},{key:"renderAxisLine",value:function(){var r=this.props,a=r.x,o=r.y,l=r.width,c=r.height,f=r.orientation,d=r.mirror,m=r.axisLine,h=Yt(Yt(Yt({},Ke(this.props,!1)),Ke(m,!1)),{},{fill:"none"});if(f==="top"||f==="bottom"){var g=+(f==="top"&&!d||f==="bottom"&&d);h=Yt(Yt({},h),{},{x1:a,y1:o+g*c,x2:a+l,y2:o+g*c})}else{var x=+(f==="left"&&!d||f==="right"&&d);h=Yt(Yt({},h),{},{x1:a+x*l,y1:o,x2:a+x*l,y2:o+c})}return V.createElement("line",bl({},h,{className:Ge("recharts-cartesian-axis-line",Mr(m,"className"))}))}},{key:"renderTicks",value:function(r,a,o){var l=this,c=this.props,f=c.tickLine,d=c.stroke,m=c.tick,h=c.tickFormatter,g=c.unit,x=kP(Yt(Yt({},this.props),{},{ticks:r}),a,o),O=this.getTickTextAnchor(),b=this.getTickVerticalAnchor(),S=Ke(this.props,!1),A=Ke(m,!1),_=Yt(Yt({},S),{},{fill:"none"},Ke(f,!1)),C=x.map(function(M,P){var E=l.getTickLineCoord(M),T=E.line,D=E.tick,L=Yt(Yt(Yt(Yt({textAnchor:O,verticalAnchor:b},S),{},{stroke:"none",fill:d},A),D),{},{index:P,payload:M,visibleTicksCount:x.length,tickFormatter:h});return V.createElement(Rt,bl({className:"recharts-cartesian-axis-tick",key:"tick-".concat(M.value,"-").concat(M.coordinate,"-").concat(M.tickCoord)},Lp(l.props,M,P)),f&&V.createElement("line",bl({},_,T,{className:Ge("recharts-cartesian-axis-tick-line",Mr(f,"className"))})),m&&t.renderTickItem(m,L,"".concat(Ie(h)?h(M.value,P):M.value).concat(g||"")))});return V.createElement("g",{className:"recharts-cartesian-axis-ticks"},C)}},{key:"render",value:function(){var r=this,a=this.props,o=a.axisLine,l=a.width,c=a.height,f=a.ticksGenerator,d=a.className,m=a.hide;if(m)return null;var h=this.props,g=h.ticks,x=yw(h,Bfe),O=g;return Ie(f)&&(O=g&&g.length>0?f(this.props):f(x)),l<=0||c<=0||!O||!O.length?null:V.createElement(Rt,{className:Ge("recharts-cartesian-axis",d),ref:function(S){r.layerReference=S}},o&&this.renderAxisLine(),this.renderTicks(O,this.state.fontSize,this.state.letterSpacing),Sn.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(r,a,o){var l,c=Ge(a.className,"recharts-cartesian-axis-tick-value");return V.isValidElement(r)?l=V.cloneElement(r,Yt(Yt({},a),{},{className:c})):Ie(r)?l=r(Yt(Yt({},a),{},{className:c})):l=V.createElement(Yp,bl({},a,{className:"recharts-cartesian-axis-tick-value"}),o),l}}])})(j.Component);IP(wc,"displayName","CartesianAxis");IP(wc,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var Yfe=["x1","y1","x2","y2","key"],Xfe=["offset"];function cs(e){"@babel/helpers - typeof";return cs=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},cs(e)}function n3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function On(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?n3(Object(n),!0).forEach(function(r){Qfe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):n3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Qfe(e,t,n){return t=Wfe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wfe(e){var t=Zfe(e,"string");return cs(t)=="symbol"?t:t+""}function Zfe(e,t){if(cs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(cs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Yo(){return Yo=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},Yo.apply(this,arguments)}function r3(e,t){if(e==null)return{};var n=Jfe(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Jfe(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 ede=function(t){var n=t.fill;if(!n||n==="none")return null;var r=t.fillOpacity,a=t.x,o=t.y,l=t.width,c=t.height,f=t.ry;return V.createElement("rect",{x:a,y:o,ry:f,width:l,height:c,stroke:"none",fill:n,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function xB(e,t){var n;if(V.isValidElement(e))n=V.cloneElement(e,t);else if(Ie(e))n=e(t);else{var r=t.x1,a=t.y1,o=t.x2,l=t.y2,c=t.key,f=r3(t,Yfe),d=Ke(f,!1);d.offset;var m=r3(d,Xfe);n=V.createElement("line",Yo({},m,{x1:r,y1:a,x2:o,y2:l,fill:"none",key:c}))}return n}function tde(e){var t=e.x,n=e.width,r=e.horizontal,a=r===void 0?!0:r,o=e.horizontalPoints;if(!a||!o||!o.length)return null;var l=o.map(function(c,f){var d=On(On({},e),{},{x1:t,y1:c,x2:t+n,y2:c,key:"line-".concat(f),index:f});return xB(a,d)});return V.createElement("g",{className:"recharts-cartesian-grid-horizontal"},l)}function nde(e){var t=e.y,n=e.height,r=e.vertical,a=r===void 0?!0:r,o=e.verticalPoints;if(!a||!o||!o.length)return null;var l=o.map(function(c,f){var d=On(On({},e),{},{x1:c,y1:t,x2:c,y2:t+n,key:"line-".concat(f),index:f});return xB(a,d)});return V.createElement("g",{className:"recharts-cartesian-grid-vertical"},l)}function rde(e){var t=e.horizontalFill,n=e.fillOpacity,r=e.x,a=e.y,o=e.width,l=e.height,c=e.horizontalPoints,f=e.horizontal,d=f===void 0?!0:f;if(!d||!t||!t.length)return null;var m=c.map(function(g){return Math.round(g+a-a)}).sort(function(g,x){return g-x});a!==m[0]&&m.unshift(0);var h=m.map(function(g,x){var O=!m[x+1],b=O?a+l-g:m[x+1]-g;if(b<=0)return null;var S=x%t.length;return V.createElement("rect",{key:"react-".concat(x),y:g,x:r,height:b,width:o,stroke:"none",fill:t[S],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return V.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},h)}function ade(e){var t=e.vertical,n=t===void 0?!0:t,r=e.verticalFill,a=e.fillOpacity,o=e.x,l=e.y,c=e.width,f=e.height,d=e.verticalPoints;if(!n||!r||!r.length)return null;var m=d.map(function(g){return Math.round(g+o-o)}).sort(function(g,x){return g-x});o!==m[0]&&m.unshift(0);var h=m.map(function(g,x){var O=!m[x+1],b=O?o+c-g:m[x+1]-g;if(b<=0)return null;var S=x%r.length;return V.createElement("rect",{key:"react-".concat(x),x:g,y:l,width:b,height:f,stroke:"none",fill:r[S],fillOpacity:a,className:"recharts-cartesian-grid-bg"})});return V.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},h)}var ide=function(t,n){var r=t.xAxis,a=t.width,o=t.height,l=t.offset;return R$(kP(On(On(On({},wc.defaultProps),r),{},{ticks:Ya(r,!0),viewBox:{x:0,y:0,width:a,height:o}})),l.left,l.left+l.width,n)},ode=function(t,n){var r=t.yAxis,a=t.width,o=t.height,l=t.offset;return R$(kP(On(On(On({},wc.defaultProps),r),{},{ticks:Ya(r,!0),viewBox:{x:0,y:0,width:a,height:o}})),l.top,l.top+l.height,n)},pl={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function wB(e){var t,n,r,a,o,l,c=NP(),f=MP(),d=Gue(),m=On(On({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:pl.stroke,fill:(n=e.fill)!==null&&n!==void 0?n:pl.fill,horizontal:(r=e.horizontal)!==null&&r!==void 0?r:pl.horizontal,horizontalFill:(a=e.horizontalFill)!==null&&a!==void 0?a:pl.horizontalFill,vertical:(o=e.vertical)!==null&&o!==void 0?o:pl.vertical,verticalFill:(l=e.verticalFill)!==null&&l!==void 0?l:pl.verticalFill,x:ge(e.x)?e.x:d.left,y:ge(e.y)?e.y:d.top,width:ge(e.width)?e.width:d.width,height:ge(e.height)?e.height:d.height}),h=m.x,g=m.y,x=m.width,O=m.height,b=m.syncWithTicks,S=m.horizontalValues,A=m.verticalValues,_=Vue(),C=Fue();if(!ge(x)||x<=0||!ge(O)||O<=0||!ge(h)||h!==+h||!ge(g)||g!==+g)return null;var M=m.verticalCoordinatesGenerator||ide,P=m.horizontalCoordinatesGenerator||ode,E=m.horizontalPoints,T=m.verticalPoints;if((!E||!E.length)&&Ie(P)){var D=S&&S.length,L=P({yAxis:C?On(On({},C),{},{ticks:D?S:C.ticks}):void 0,width:c,height:f,offset:d},D?!0:b);Qa(Array.isArray(L),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(cs(L),"]")),Array.isArray(L)&&(E=L)}if((!T||!T.length)&&Ie(M)){var U=A&&A.length,I=M({xAxis:_?On(On({},_),{},{ticks:U?A:_.ticks}):void 0,width:c,height:f,offset:d},U?!0:b);Qa(Array.isArray(I),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(cs(I),"]")),Array.isArray(I)&&(T=I)}return V.createElement("g",{className:"recharts-cartesian-grid"},V.createElement(ede,{fill:m.fill,fillOpacity:m.fillOpacity,x:m.x,y:m.y,width:m.width,height:m.height,ry:m.ry}),V.createElement(tde,Yo({},m,{offset:d,horizontalPoints:E,xAxis:_,yAxis:C})),V.createElement(nde,Yo({},m,{offset:d,verticalPoints:T,xAxis:_,yAxis:C})),V.createElement(rde,Yo({},m,{horizontalPoints:E})),V.createElement(ade,Yo({},m,{verticalPoints:T})))}wB.displayName="CartesianGrid";var sde=["type","layout","connectNulls","ref"],lde=["key"];function tc(e){"@babel/helpers - typeof";return tc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tc(e)}function a3(e,t){if(e==null)return{};var n=cde(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function cde(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 Fu(){return Fu=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},Fu.apply(this,arguments)}function i3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function rr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?i3(Object(n),!0).forEach(function(r){Gr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ml(e){return hde(e)||dde(e)||fde(e)||ude()}function ude(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 367In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fde(e,t){if(e){if(typeof e=="string")return xO(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 xO(e,t)}}function dde(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function hde(e){if(Array.isArray(e))return xO(e)}function xO(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 pde(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o3(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,OB(r.key),r)}}function mde(e,t,n){return t&&o3(e.prototype,t),n&&o3(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function gde(e,t,n){return t=Cm(t),vde(e,SB()?Reflect.construct(t,n||[],Cm(e).constructor):t.apply(e,n))}function vde(e,t){if(t&&(tc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return yde(e)}function yde(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function SB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(SB=function(){return!!e})()}function Cm(e){return Cm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Cm(e)}function bde(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&&wO(e,t)}function wO(e,t){return wO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},wO(e,t)}function Gr(e,t,n){return t=OB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function OB(e){var t=xde(e,"string");return tc(t)=="symbol"?t:t+""}function xde(e,t){if(tc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(tc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Sc=(function(e){function t(){var n;pde(this,t);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return n=gde(this,t,[].concat(a)),Gr(n,"state",{isAnimationFinished:!0,totalLength:0}),Gr(n,"generateSimpleStrokeDasharray",function(l,c){return"".concat(c,"px ").concat(l-c,"px")}),Gr(n,"getStrokeDasharray",function(l,c,f){var d=f.reduce(function(A,_){return A+_});if(!d)return n.generateSimpleStrokeDasharray(c,l);for(var m=Math.floor(l/d),h=l%d,g=c-l,x=[],O=0,b=0;O<f.length;b+=f[O],++O)if(b+f[O]>h){x=[].concat(ml(f.slice(0,O)),[h-b]);break}var S=x.length%2===0?[0,g]:[g];return[].concat(ml(t.repeat(f,m)),ml(x),S).map(function(A){return"".concat(A,"px")}).join(", ")}),Gr(n,"id",od("recharts-line-")),Gr(n,"pathRef",function(l){n.mainCurve=l}),Gr(n,"handleAnimationEnd",function(){n.setState({isAnimationFinished:!0}),n.props.onAnimationEnd&&n.props.onAnimationEnd()}),Gr(n,"handleAnimationStart",function(){n.setState({isAnimationFinished:!1}),n.props.onAnimationStart&&n.props.onAnimationStart()}),n}return bde(t,e),mde(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,a){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var o=this.props,l=o.points,c=o.xAxis,f=o.yAxis,d=o.layout,m=o.children,h=Dr(m,dd);if(!h)return null;var g=function(b,S){return{x:b.x,y:b.y,value:b.value,errorVal:fr(b.payload,S)}},x={clipPath:r?"url(#clipPath-".concat(a,")"):null};return V.createElement(Rt,x,h.map(function(O){return V.cloneElement(O,{key:"bar-".concat(O.props.dataKey),data:l,xAxis:c,yAxis:f,layout:d,dataPointFormatter:g})}))}},{key:"renderDots",value:function(r,a,o){var l=this.props.isAnimationActive;if(l&&!this.state.isAnimationFinished)return null;var c=this.props,f=c.dot,d=c.points,m=c.dataKey,h=Ke(this.props,!1),g=Ke(f,!0),x=d.map(function(b,S){var A=rr(rr(rr({key:"dot-".concat(S),r:3},h),g),{},{index:S,cx:b.x,cy:b.y,value:b.value,dataKey:m,payload:b.payload,points:d});return t.renderDotItem(f,A)}),O={clipPath:r?"url(#clipPath-".concat(a?"":"dots-").concat(o,")"):null};return V.createElement(Rt,Fu({className:"recharts-line-dots",key:"dots"},O),x)}},{key:"renderCurveStatically",value:function(r,a,o,l){var c=this.props,f=c.type,d=c.layout,m=c.connectNulls;c.ref;var h=a3(c,sde),g=rr(rr(rr({},Ke(h,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:a?"url(#clipPath-".concat(o,")"):null,points:r},l),{},{type:f,layout:d,connectNulls:m});return V.createElement(ZS,Fu({},g,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(r,a){var o=this,l=this.props,c=l.points,f=l.strokeDasharray,d=l.isAnimationActive,m=l.animationBegin,h=l.animationDuration,g=l.animationEasing,x=l.animationId,O=l.animateNewValues,b=l.width,S=l.height,A=this.state,_=A.prevPoints,C=A.totalLength;return V.createElement(ai,{begin:m,duration:h,isActive:d,easing:g,from:{t:0},to:{t:1},key:"line-".concat(x),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(M){var P=M.t;if(_){var E=_.length/c.length,T=c.map(function(z,F){var K=Math.floor(F*E);if(_[K]){var q=_[K],R=Yr(q.x,z.x),$=Yr(q.y,z.y);return rr(rr({},z),{},{x:R(P),y:$(P)})}if(O){var H=Yr(b*2,z.x),W=Yr(S/2,z.y);return rr(rr({},z),{},{x:H(P),y:W(P)})}return rr(rr({},z),{},{x:z.x,y:z.y})});return o.renderCurveStatically(T,r,a)}var D=Yr(0,C),L=D(P),U;if(f){var I="".concat(f).split(/[,\s]+/gim).map(function(z){return parseFloat(z)});U=o.getStrokeDasharray(L,C,I)}else U=o.generateSimpleStrokeDasharray(C,L);return o.renderCurveStatically(c,r,a,{strokeDasharray:U})})}},{key:"renderCurve",value:function(r,a){var o=this.props,l=o.points,c=o.isAnimationActive,f=this.state,d=f.prevPoints,m=f.totalLength;return c&&l&&l.length&&(!d&&m>0||!Og(d,l))?this.renderCurveWithAnimation(r,a):this.renderCurveStatically(l,r,a)}},{key:"render",value:function(){var r,a=this.props,o=a.hide,l=a.dot,c=a.points,f=a.className,d=a.xAxis,m=a.yAxis,h=a.top,g=a.left,x=a.width,O=a.height,b=a.isAnimationActive,S=a.id;if(o||!c||!c.length)return null;var A=this.state.isAnimationFinished,_=c.length===1,C=Ge("recharts-line",f),M=d&&d.allowDataOverflow,P=m&&m.allowDataOverflow,E=M||P,T=qe(S)?this.id:S,D=(r=Ke(l,!1))!==null&&r!==void 0?r:{r:3,strokeWidth:2},L=D.r,U=L===void 0?3:L,I=D.strokeWidth,z=I===void 0?2:I,F=LW(l)?l:{},K=F.clipDot,q=K===void 0?!0:K,R=U*2+z;return V.createElement(Rt,{className:C},M||P?V.createElement("defs",null,V.createElement("clipPath",{id:"clipPath-".concat(T)},V.createElement("rect",{x:M?g:g-x/2,y:P?h:h-O/2,width:M?x:x*2,height:P?O:O*2})),!q&&V.createElement("clipPath",{id:"clipPath-dots-".concat(T)},V.createElement("rect",{x:g-R/2,y:h-R/2,width:x+R,height:O+R}))):null,!_&&this.renderCurve(E,T),this.renderErrorBar(E,T),(_||l)&&this.renderDots(E,q,T),(!b||A)&&Yi.renderCallByParent(this.props,c))}}],[{key:"getDerivedStateFromProps",value:function(r,a){return r.animationId!==a.prevAnimationId?{prevAnimationId:r.animationId,curPoints:r.points,prevPoints:a.curPoints}:r.points!==a.curPoints?{curPoints:r.points}:null}},{key:"repeat",value:function(r,a){for(var o=r.length%2!==0?[].concat(ml(r),[0]):r,l=[],c=0;c<a;++c)l=[].concat(ml(l),ml(o));return l}},{key:"renderDotItem",value:function(r,a){var o;if(V.isValidElement(r))o=V.cloneElement(r,a);else if(Ie(r))o=r(a);else{var l=a.key,c=a3(a,lde),f=Ge("recharts-line-dot",typeof r!="boolean"?r.className:"");o=V.createElement(CP,Fu({key:l},c,{className:f}))}return o}}])})(j.PureComponent);Gr(Sc,"displayName","Line");Gr(Sc,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!vc.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});Gr(Sc,"getComposedData",function(e){var t=e.props,n=e.xAxis,r=e.yAxis,a=e.xAxisTicks,o=e.yAxisTicks,l=e.dataKey,c=e.bandSize,f=e.displayedData,d=e.offset,m=t.layout,h=f.map(function(g,x){var O=fr(g,l);return m==="horizontal"?{x:xk({axis:n,ticks:a,bandSize:c,entry:g,index:x}),y:qe(O)?null:r.scale(O),value:O,payload:g}:{x:qe(O)?null:n.scale(O),y:xk({axis:r,ticks:o,bandSize:c,entry:g,index:x}),value:O,payload:g}});return rr({points:h,layout:m},d)});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 wde(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Sde(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,_B(r.key),r)}}function Ode(e,t,n){return t&&Sde(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ade(e,t,n){return t=Tm(t),Pde(e,AB()?Reflect.construct(t,n||[],Tm(e).constructor):t.apply(e,n))}function Pde(e,t){if(t&&(nc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _de(e)}function _de(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function AB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(AB=function(){return!!e})()}function Tm(e){return Tm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Tm(e)}function Cde(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&&SO(e,t)}function SO(e,t){return SO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},SO(e,t)}function PB(e,t,n){return t=_B(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _B(e){var t=Tde(e,"string");return nc(t)=="symbol"?t:t+""}function Tde(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 String(e)}function OO(){return OO=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},OO.apply(this,arguments)}function jde(e){var t=e.xAxisId,n=NP(),r=MP(),a=cB(t);return a==null?null:j.createElement(wc,OO({},a,{className:Ge("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:r},ticksGenerator:function(l){return Ya(l,!0)}}))}var Dg=(function(e){function t(){return wde(this,t),Ade(this,t,arguments)}return Cde(t,e),Ode(t,[{key:"render",value:function(){return j.createElement(jde,this.props)}}])})(j.Component);PB(Dg,"displayName","XAxis");PB(Dg,"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 rc(e){"@babel/helpers - typeof";return rc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rc(e)}function Ede(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Nde(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,jB(r.key),r)}}function Mde(e,t,n){return t&&Nde(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Dde(e,t,n){return t=jm(t),Rde(e,CB()?Reflect.construct(t,n||[],jm(e).constructor):t.apply(e,n))}function Rde(e,t){if(t&&(rc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return kde(e)}function kde(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function CB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(CB=function(){return!!e})()}function jm(e){return jm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},jm(e)}function Ide(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&&AO(e,t)}function AO(e,t){return AO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},AO(e,t)}function TB(e,t,n){return t=jB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jB(e){var t=Lde(e,"string");return rc(t)=="symbol"?t:t+""}function Lde(e,t){if(rc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(rc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function PO(){return PO=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},PO.apply(this,arguments)}var $de=function(t){var n=t.yAxisId,r=NP(),a=MP(),o=uB(n);return o==null?null:j.createElement(wc,PO({},o,{className:Ge("recharts-".concat(o.axisType," ").concat(o.axisType),o.className),viewBox:{x:0,y:0,width:r,height:a},ticksGenerator:function(c){return Ya(c,!0)}}))},pd=(function(e){function t(){return Ede(this,t),Dde(this,t,arguments)}return Ide(t,e),Mde(t,[{key:"render",value:function(){return j.createElement($de,this.props)}}])})(j.Component);TB(pd,"displayName","YAxis");TB(pd,"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 s3(e){return Ude(e)||zde(e)||qde(e)||Bde()}function Bde(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 368In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qde(e,t){if(e){if(typeof e=="string")return _O(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 _O(e,t)}}function zde(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Ude(e){if(Array.isArray(e))return _O(e)}function _O(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 CO=function(t,n,r,a,o){var l=Dr(t,RP),c=Dr(t,Eg),f=[].concat(s3(l),s3(c)),d=Dr(t,Mg),m="".concat(a,"Id"),h=a[0],g=n;if(f.length&&(g=f.reduce(function(b,S){if(S.props[m]===r&&ga(S.props,"extendDomain")&&ge(S.props[h])){var A=S.props[h];return[Math.min(b[0],A),Math.max(b[1],A)]}return b},g)),d.length){var x="".concat(h,"1"),O="".concat(h,"2");g=d.reduce(function(b,S){if(S.props[m]===r&&ga(S.props,"extendDomain")&&ge(S.props[x])&&ge(S.props[O])){var A=S.props[x],_=S.props[O];return[Math.min(b[0],A,_),Math.max(b[1],A,_)]}return b},g)}return o&&o.length&&(g=o.reduce(function(b,S){return ge(S)?[Math.min(b[0],S),Math.max(b[1],S)]:b},g)),g},bw={exports:{}},l3;function Hde(){return l3||(l3=1,(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function a(f,d,m){this.fn=f,this.context=d,this.once=m||!1}function o(f,d,m,h,g){if(typeof m!="function")throw new TypeError("The listener must be a function");var x=new a(m,h||f,g),O=n?n+d:d;return f._events[O]?f._events[O].fn?f._events[O]=[f._events[O],x]:f._events[O].push(x):(f._events[O]=x,f._eventsCount++),f}function l(f,d){--f._eventsCount===0?f._events=new r:delete f._events[d]}function c(){this._events=new r,this._eventsCount=0}c.prototype.eventNames=function(){var d=[],m,h;if(this._eventsCount===0)return d;for(h in m=this._events)t.call(m,h)&&d.push(n?h.slice(1):h);return Object.getOwnPropertySymbols?d.concat(Object.getOwnPropertySymbols(m)):d},c.prototype.listeners=function(d){var m=n?n+d:d,h=this._events[m];if(!h)return[];if(h.fn)return[h.fn];for(var g=0,x=h.length,O=new Array(x);g<x;g++)O[g]=h[g].fn;return O},c.prototype.listenerCount=function(d){var m=n?n+d:d,h=this._events[m];return h?h.fn?1:h.length:0},c.prototype.emit=function(d,m,h,g,x,O){var b=n?n+d:d;if(!this._events[b])return!1;var S=this._events[b],A=arguments.length,_,C;if(S.fn){switch(S.once&&this.removeListener(d,S.fn,void 0,!0),A){case 1:return S.fn.call(S.context),!0;case 2:return S.fn.call(S.context,m),!0;case 3:return S.fn.call(S.context,m,h),!0;case 4:return S.fn.call(S.context,m,h,g),!0;case 5:return S.fn.call(S.context,m,h,g,x),!0;case 6:return S.fn.call(S.context,m,h,g,x,O),!0}for(C=1,_=new Array(A-1);C<A;C++)_[C-1]=arguments[C];S.fn.apply(S.context,_)}else{var M=S.length,P;for(C=0;C<M;C++)switch(S[C].once&&this.removeListener(d,S[C].fn,void 0,!0),A){case 1:S[C].fn.call(S[C].context);break;case 2:S[C].fn.call(S[C].context,m);break;case 3:S[C].fn.call(S[C].context,m,h);break;case 4:S[C].fn.call(S[C].context,m,h,g);break;default:if(!_)for(P=1,_=new Array(A-1);P<A;P++)_[P-1]=arguments[P];S[C].fn.apply(S[C].context,_)}}return!0},c.prototype.on=function(d,m,h){return o(this,d,m,h,!1)},c.prototype.once=function(d,m,h){return o(this,d,m,h,!0)},c.prototype.removeListener=function(d,m,h,g){var x=n?n+d:d;if(!this._events[x])return this;if(!m)return l(this,x),this;var O=this._events[x];if(O.fn)O.fn===m&&(!g||O.once)&&(!h||O.context===h)&&l(this,x);else{for(var b=0,S=[],A=O.length;b<A;b++)(O[b].fn!==m||g&&!O[b].once||h&&O[b].context!==h)&&S.push(O[b]);S.length?this._events[x]=S.length===1?S[0]:S:l(this,x)}return this},c.prototype.removeAllListeners=function(d){var m;return d?(m=n?n+d:d,this._events[m]&&l(this,m)):(this._events=new r,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=n,c.EventEmitter=c,e.exports=c})(bw)),bw.exports}var Vde=Hde();const Fde=ut(Vde);var xw=new Fde,ww="recharts.syncMouseEvents";function zf(e){"@babel/helpers - typeof";return zf=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},zf(e)}function Kde(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Gde(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,EB(r.key),r)}}function Yde(e,t,n){return t&&Gde(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Sw(e,t,n){return t=EB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function EB(e){var t=Xde(e,"string");return zf(t)=="symbol"?t:t+""}function Xde(e,t){if(zf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(zf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Qde=(function(){function e(){Kde(this,e),Sw(this,"activeIndex",0),Sw(this,"coordinateList",[]),Sw(this,"layout","horizontal")}return Yde(e,[{key:"setDetails",value:function(n){var r,a=n.coordinateList,o=a===void 0?null:a,l=n.container,c=l===void 0?null:l,f=n.layout,d=f===void 0?null:f,m=n.offset,h=m===void 0?null:m,g=n.mouseHandlerCallback,x=g===void 0?null:g;this.coordinateList=(r=o??this.coordinateList)!==null&&r!==void 0?r:[],this.container=c??this.container,this.layout=d??this.layout,this.offset=h??this.offset,this.mouseHandlerCallback=x??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 a=this.container.getBoundingClientRect(),o=a.x,l=a.y,c=a.height,f=this.coordinateList[this.activeIndex].coordinate,d=((n=window)===null||n===void 0?void 0:n.scrollX)||0,m=((r=window)===null||r===void 0?void 0:r.scrollY)||0,h=o+f+d,g=l+this.offset.top+c/2+m;this.mouseHandlerCallback({pageX:h,pageY:g})}}}])})();function Wde(e,t,n){if(n==="number"&&t===!0&&Array.isArray(e)){var r=e?.[0],a=e?.[1];if(r&&a&&ge(r)&&ge(a))return!0}return!1}function Zde(e,t,n,r){var a=r/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-a:n.left+.5,y:e==="horizontal"?n.top+.5:t.y-a,width:e==="horizontal"?r:n.width-1,height:e==="horizontal"?n.height-1:r}}function NB(e){var t=e.cx,n=e.cy,r=e.radius,a=e.startAngle,o=e.endAngle,l=dn(t,n,r,a),c=dn(t,n,r,o);return{points:[l,c],cx:t,cy:n,radius:r,startAngle:a,endAngle:o}}function Jde(e,t,n){var r,a,o,l;if(e==="horizontal")r=t.x,o=r,a=n.top,l=n.top+n.height;else if(e==="vertical")a=t.y,l=a,r=n.left,o=n.left+n.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var c=t.cx,f=t.cy,d=t.innerRadius,m=t.outerRadius,h=t.angle,g=dn(c,f,d,h),x=dn(c,f,m,h);r=g.x,a=g.y,o=x.x,l=x.y}else return NB(t);return[{x:r,y:a},{x:o,y:l}]}function Uf(e){"@babel/helpers - typeof";return Uf=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},Uf(e)}function c3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function ip(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?c3(Object(n),!0).forEach(function(r){ehe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ehe(e,t,n){return t=the(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function the(e){var t=nhe(e,"string");return Uf(t)=="symbol"?t:t+""}function nhe(e,t){if(Uf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Uf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function rhe(e){var t,n,r=e.element,a=e.tooltipEventType,o=e.isActive,l=e.activeCoordinate,c=e.activePayload,f=e.offset,d=e.activeTooltipIndex,m=e.tooltipAxisBandSize,h=e.layout,g=e.chartName,x=(t=r.props.cursor)!==null&&t!==void 0?t:(n=r.type.defaultProps)===null||n===void 0?void 0:n.cursor;if(!r||!x||!o||!l||g!=="ScatterChart"&&a!=="axis")return null;var O,b=ZS;if(g==="ScatterChart")O=l,b=ece;else if(g==="BarChart")O=Zde(h,l,f,m),b=_P;else if(h==="radial"){var S=NB(l),A=S.cx,_=S.cy,C=S.radius,M=S.startAngle,P=S.endAngle;O={cx:A,cy:_,startAngle:M,endAngle:P,innerRadius:C,outerRadius:C},b=B$}else O={points:Jde(h,l,f)},b=ZS;var E=ip(ip(ip(ip({stroke:"#ccc",pointerEvents:"none"},f),O),Ke(x,!1)),{},{payload:c,payloadIndex:d,className:Ge("recharts-tooltip-cursor",x.className)});return j.isValidElement(x)?j.cloneElement(x,E):j.createElement(b,E)}var ahe=["item"],ihe=["children","className","width","height","style","compact","title","desc"];function ac(e){"@babel/helpers - typeof";return ac=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},ac(e)}function xl(){return xl=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},xl.apply(this,arguments)}function u3(e,t){return lhe(e)||she(e,t)||DB(e,t)||ohe()}function ohe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 369In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function she(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,o,l,c=[],f=!0,d=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(f=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){d=!0,a=m}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw a}}return c}}function lhe(e){if(Array.isArray(e))return e}function f3(e,t){if(e==null)return{};var n=che(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function che(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 uhe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fhe(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,RB(r.key),r)}}function dhe(e,t,n){return t&&fhe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function hhe(e,t,n){return t=Em(t),phe(e,MB()?Reflect.construct(t,n||[],Em(e).constructor):t.apply(e,n))}function phe(e,t){if(t&&(ac(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return mhe(e)}function mhe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function MB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(MB=function(){return!!e})()}function Em(e){return Em=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Em(e)}function ghe(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&&TO(e,t)}function TO(e,t){return TO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},TO(e,t)}function ic(e){return bhe(e)||yhe(e)||DB(e)||vhe()}function vhe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 370In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function DB(e,t){if(e){if(typeof e=="string")return jO(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 jO(e,t)}}function yhe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function bhe(e){if(Array.isArray(e))return jO(e)}function jO(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 d3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function se(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?d3(Object(n),!0).forEach(function(r){Ce(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ce(e,t,n){return t=RB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function RB(e){var t=xhe(e,"string");return ac(t)=="symbol"?t:t+""}function xhe(e,t){if(ac(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ac(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var whe={xAxis:["bottom","top"],yAxis:["left","right"]},She={width:"100%",height:"100%"},kB={x:0,y:0};function op(e){return e}var Ohe=function(t,n){return n==="horizontal"?t.x:n==="vertical"?t.y:n==="centric"?t.angle:t.radius},Ahe=function(t,n,r,a){var o=n.find(function(m){return m&&m.index===r});if(o){if(t==="horizontal")return{x:o.coordinate,y:a.y};if(t==="vertical")return{x:a.x,y:o.coordinate};if(t==="centric"){var l=o.coordinate,c=a.radius;return se(se(se({},a),dn(a.cx,a.cy,c,l)),{},{angle:l,radius:c})}var f=o.coordinate,d=a.angle;return se(se(se({},a),dn(a.cx,a.cy,f,d)),{},{angle:d,radius:f})}return kB},Rg=function(t,n){var r=n.graphicalItems,a=n.dataStartIndex,o=n.dataEndIndex,l=(r??[]).reduce(function(c,f){var d=f.props.data;return d&&d.length?[].concat(ic(c),ic(d)):c},[]);return l.length>0?l:t&&t.length&&ge(a)&&ge(o)?t.slice(a,o+1):[]};function IB(e){return e==="number"?[0,"auto"]:void 0}var EO=function(t,n,r,a){var o=t.graphicalItems,l=t.tooltipAxis,c=Rg(n,t);return r<0||!o||!o.length||r>=c.length?null:o.reduce(function(f,d){var m,h=(m=d.props.data)!==null&&m!==void 0?m:n;h&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=r&&(h=h.slice(t.dataStartIndex,t.dataEndIndex+1));var g;if(l.dataKey&&!l.allowDuplicatedCategory){var x=h===void 0?c:h;g=kp(x,l.dataKey,a)}else g=h&&h[r]||c[r];return g?[].concat(ic(f),[I$(d,g)]):f},[])},h3=function(t,n,r,a){var o=a||{x:t.chartX,y:t.chartY},l=Ohe(o,r),c=t.orderedTooltipTicks,f=t.tooltipAxis,d=t.tooltipTicks,m=Iie(l,c,d,f);if(m>=0&&d){var h=d[m]&&d[m].value,g=EO(t,n,m,h),x=Ahe(r,c,m,o);return{activeTooltipIndex:m,activeLabel:h,activePayload:g,activeCoordinate:x}}return null},Phe=function(t,n){var r=n.axes,a=n.graphicalItems,o=n.axisType,l=n.axisIdKey,c=n.stackGroups,f=n.dataStartIndex,d=n.dataEndIndex,m=t.layout,h=t.children,g=t.stackOffset,x=D$(m,o);return r.reduce(function(O,b){var S,A=b.type.defaultProps!==void 0?se(se({},b.type.defaultProps),b.props):b.props,_=A.type,C=A.dataKey,M=A.allowDataOverflow,P=A.allowDuplicatedCategory,E=A.scale,T=A.ticks,D=A.includeHidden,L=A[l];if(O[L])return O;var U=Rg(t.data,{graphicalItems:a.filter(function(Y){var X,J=l in Y.props?Y.props[l]:(X=Y.type.defaultProps)===null||X===void 0?void 0:X[l];return J===L}),dataStartIndex:f,dataEndIndex:d}),I=U.length,z,F,K;Wde(A.domain,M,_)&&(z=GS(A.domain,null,M),x&&(_==="number"||E!=="auto")&&(K=Hu(U,C,"category")));var q=IB(_);if(!z||z.length===0){var R,$=(R=A.domain)!==null&&R!==void 0?R:q;if(C){if(z=Hu(U,C,_),_==="category"&&x){var H=CW(z);P&&H?(F=z,z=vm(0,I)):P||(z=Ak($,z,b).reduce(function(Y,X){return Y.indexOf(X)>=0?Y:[].concat(ic(Y),[X])},[]))}else if(_==="category")P?z=z.filter(function(Y){return Y!==""&&!qe(Y)}):z=Ak($,z,b).reduce(function(Y,X){return Y.indexOf(X)>=0||X===""||qe(X)?Y:[].concat(ic(Y),[X])},[]);else if(_==="number"){var W=zie(U,a.filter(function(Y){var X,J,ue=l in Y.props?Y.props[l]:(X=Y.type.defaultProps)===null||X===void 0?void 0:X[l],he="hide"in Y.props?Y.props.hide:(J=Y.type.defaultProps)===null||J===void 0?void 0:J.hide;return ue===L&&(D||!he)}),C,o,m);W&&(z=W)}x&&(_==="number"||E!=="auto")&&(K=Hu(U,C,"category"))}else x?z=vm(0,I):c&&c[L]&&c[L].hasStack&&_==="number"?z=g==="expand"?[0,1]:k$(c[L].stackGroups,f,d):z=M$(U,a.filter(function(Y){var X=l in Y.props?Y.props[l]:Y.type.defaultProps[l],J="hide"in Y.props?Y.props.hide:Y.type.defaultProps.hide;return X===L&&(D||!J)}),_,m,!0);if(_==="number")z=CO(h,z,L,o,T),$&&(z=GS($,z,M));else if(_==="category"&&$){var ae=$,B=z.every(function(Y){return ae.indexOf(Y)>=0});B&&(z=ae)}}return se(se({},O),{},Ce({},L,se(se({},A),{},{axisType:o,domain:z,categoricalDomain:K,duplicateDomain:F,originalDomain:(S=A.domain)!==null&&S!==void 0?S:q,isCategorical:x,layout:m})))},{})},_he=function(t,n){var r=n.graphicalItems,a=n.Axis,o=n.axisType,l=n.axisIdKey,c=n.stackGroups,f=n.dataStartIndex,d=n.dataEndIndex,m=t.layout,h=t.children,g=Rg(t.data,{graphicalItems:r,dataStartIndex:f,dataEndIndex:d}),x=g.length,O=D$(m,o),b=-1;return r.reduce(function(S,A){var _=A.type.defaultProps!==void 0?se(se({},A.type.defaultProps),A.props):A.props,C=_[l],M=IB("number");if(!S[C]){b++;var P;return O?P=vm(0,x):c&&c[C]&&c[C].hasStack?(P=k$(c[C].stackGroups,f,d),P=CO(h,P,C,o)):(P=GS(M,M$(g,r.filter(function(E){var T,D,L=l in E.props?E.props[l]:(T=E.type.defaultProps)===null||T===void 0?void 0:T[l],U="hide"in E.props?E.props.hide:(D=E.type.defaultProps)===null||D===void 0?void 0:D.hide;return L===C&&!U}),"number",m),a.defaultProps.allowDataOverflow),P=CO(h,P,C,o)),se(se({},S),{},Ce({},C,se(se({axisType:o},a.defaultProps),{},{hide:!0,orientation:Mr(whe,"".concat(o,".").concat(b%2),null),domain:P,originalDomain:M,isCategorical:O,layout:m})))}return S},{})},Che=function(t,n){var r=n.axisType,a=r===void 0?"xAxis":r,o=n.AxisComp,l=n.graphicalItems,c=n.stackGroups,f=n.dataStartIndex,d=n.dataEndIndex,m=t.children,h="".concat(a,"Id"),g=Dr(m,o),x={};return g&&g.length?x=Phe(t,{axes:g,graphicalItems:l,axisType:a,axisIdKey:h,stackGroups:c,dataStartIndex:f,dataEndIndex:d}):l&&l.length&&(x=_he(t,{Axis:o,graphicalItems:l,axisType:a,axisIdKey:h,stackGroups:c,dataStartIndex:f,dataEndIndex:d})),x},The=function(t){var n=Hi(t),r=Ya(n,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:JA(r,function(a){return a.coordinate}),tooltipAxis:n,tooltipAxisBandSize:lm(n,r)}},p3=function(t){var n=t.children,r=t.defaultShowTooltip,a=ir(n,Xl),o=0,l=0;return t.data&&t.data.length!==0&&(l=t.data.length-1),a&&a.props&&(a.props.startIndex>=0&&(o=a.props.startIndex),a.props.endIndex>=0&&(l=a.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:o,dataEndIndex:l,activeTooltipIndex:-1,isTooltipActive:!!r}},jhe=function(t){return!t||!t.length?!1:t.some(function(n){var r=Xa(n&&n.type);return r&&r.indexOf("Bar")>=0})},m3=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"}},Ehe=function(t,n){var r=t.props,a=t.graphicalItems,o=t.xAxisMap,l=o===void 0?{}:o,c=t.yAxisMap,f=c===void 0?{}:c,d=r.width,m=r.height,h=r.children,g=r.margin||{},x=ir(h,Xl),O=ir(h,El),b=Object.keys(f).reduce(function(P,E){var T=f[E],D=T.orientation;return!T.mirror&&!T.hide?se(se({},P),{},Ce({},D,P[D]+T.width)):P},{left:g.left||0,right:g.right||0}),S=Object.keys(l).reduce(function(P,E){var T=l[E],D=T.orientation;return!T.mirror&&!T.hide?se(se({},P),{},Ce({},D,Mr(P,"".concat(D))+T.height)):P},{top:g.top||0,bottom:g.bottom||0}),A=se(se({},S),b),_=A.bottom;x&&(A.bottom+=x.props.height||Xl.defaultProps.height),O&&n&&(A=Bie(A,a,r,n));var C=d-A.left-A.right,M=m-A.top-A.bottom;return se(se({brushBottom:_},A),{},{width:Math.max(C,0),height:Math.max(M,0)})},Nhe=function(t,n){if(n==="xAxis")return t[n].width;if(n==="yAxis")return t[n].height},Mhe=function(t){var n=t.chartName,r=t.GraphicalChild,a=t.defaultTooltipEventType,o=a===void 0?"axis":a,l=t.validateTooltipEventTypes,c=l===void 0?["axis"]:l,f=t.axisComponents,d=t.legendContent,m=t.formatAxisMap,h=t.defaultProps,g=function(A,_){var C=_.graphicalItems,M=_.stackGroups,P=_.offset,E=_.updateId,T=_.dataStartIndex,D=_.dataEndIndex,L=A.barSize,U=A.layout,I=A.barGap,z=A.barCategoryGap,F=A.maxBarSize,K=m3(U),q=K.numericAxisName,R=K.cateAxisName,$=jhe(C),H=[];return C.forEach(function(W,ae){var B=Rg(A.data,{graphicalItems:[W],dataStartIndex:T,dataEndIndex:D}),Y=W.type.defaultProps!==void 0?se(se({},W.type.defaultProps),W.props):W.props,X=Y.dataKey,J=Y.maxBarSize,ue=Y["".concat(q,"Id")],he=Y["".concat(R,"Id")],fe={},me=f.reduce(function(Xn,Ot){var dr=_["".concat(Ot.axisType,"Map")],Zt=Y["".concat(Ot.axisType,"Id")];dr&&dr[Zt]||Ot.axisType==="zAxis"||ls();var bs=dr[Zt];return se(se({},Xn),{},Ce(Ce({},Ot.axisType,bs),"".concat(Ot.axisType,"Ticks"),Ya(bs)))},fe),le=me[R],pe=me["".concat(R,"Ticks")],ve=M&&M[ue]&&M[ue].hasStack&&Jie(W,M[ue].stackGroups),ie=Xa(W.type).indexOf("Bar")>=0,Re=lm(le,pe),Pe=[],nt=$&&Lie({barSize:L,stackGroups:M,totalSize:Nhe(me,R)});if(ie){var Je,pt,Mn=qe(J)?F:J,$t=(Je=(pt=lm(le,pe,!0))!==null&&pt!==void 0?pt:Mn)!==null&&Je!==void 0?Je:0;Pe=$ie({barGap:I,barCategoryGap:z,bandSize:$t!==Re?$t:Re,sizeList:nt[he],maxBarSize:Mn}),$t!==Re&&(Pe=Pe.map(function(Xn){return se(se({},Xn),{},{position:se(se({},Xn.position),{},{offset:Xn.position.offset-$t/2})})}))}var ta=W&&W.type&&W.type.getComposedData;ta&&H.push({props:se(se({},ta(se(se({},me),{},{displayedData:B,props:A,dataKey:X,item:W,bandSize:Re,barPosition:Pe,offset:P,stackedData:ve,layout:U,dataStartIndex:T,dataEndIndex:D}))),{},Ce(Ce(Ce({key:W.key||"item-".concat(ae)},q,me[q]),R,me[R]),"animationId",E)),childIndex:qW(W,A.children),item:W})}),H},x=function(A,_){var C=A.props,M=A.dataStartIndex,P=A.dataEndIndex,E=A.updateId;if(!$N({props:C}))return null;var T=C.children,D=C.layout,L=C.stackOffset,U=C.data,I=C.reverseStackOrder,z=m3(D),F=z.numericAxisName,K=z.cateAxisName,q=Dr(T,r),R=Qie(U,q,"".concat(F,"Id"),"".concat(K,"Id"),L,I),$=f.reduce(function(Y,X){var J="".concat(X.axisType,"Map");return se(se({},Y),{},Ce({},J,Che(C,se(se({},X),{},{graphicalItems:q,stackGroups:X.axisType===F&&R,dataStartIndex:M,dataEndIndex:P}))))},{}),H=Ehe(se(se({},$),{},{props:C,graphicalItems:q}),_?.legendBBox);Object.keys($).forEach(function(Y){$[Y]=m(C,$[Y],H,Y.replace("Map",""),n)});var W=$["".concat(K,"Map")],ae=The(W),B=g(C,se(se({},$),{},{dataStartIndex:M,dataEndIndex:P,updateId:E,graphicalItems:q,stackGroups:R,offset:H}));return se(se({formattedGraphicalItems:B,graphicalItems:q,offset:H,stackGroups:R},ae),$)},O=(function(S){function A(_){var C,M,P;return uhe(this,A),P=hhe(this,A,[_]),Ce(P,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),Ce(P,"accessibilityManager",new Qde),Ce(P,"handleLegendBBoxUpdate",function(E){if(E){var T=P.state,D=T.dataStartIndex,L=T.dataEndIndex,U=T.updateId;P.setState(se({legendBBox:E},x({props:P.props,dataStartIndex:D,dataEndIndex:L,updateId:U},se(se({},P.state),{},{legendBBox:E}))))}}),Ce(P,"handleReceiveSyncEvent",function(E,T,D){if(P.props.syncId===E){if(D===P.eventEmitterSymbol&&typeof P.props.syncMethod!="function")return;P.applySyncEvent(T)}}),Ce(P,"handleBrushChange",function(E){var T=E.startIndex,D=E.endIndex;if(T!==P.state.dataStartIndex||D!==P.state.dataEndIndex){var L=P.state.updateId;P.setState(function(){return se({dataStartIndex:T,dataEndIndex:D},x({props:P.props,dataStartIndex:T,dataEndIndex:D,updateId:L},P.state))}),P.triggerSyncEvent({dataStartIndex:T,dataEndIndex:D})}}),Ce(P,"handleMouseEnter",function(E){var T=P.getMouseInfo(E);if(T){var D=se(se({},T),{},{isTooltipActive:!0});P.setState(D),P.triggerSyncEvent(D);var L=P.props.onMouseEnter;Ie(L)&&L(D,E)}}),Ce(P,"triggeredAfterMouseMove",function(E){var T=P.getMouseInfo(E),D=T?se(se({},T),{},{isTooltipActive:!0}):{isTooltipActive:!1};P.setState(D),P.triggerSyncEvent(D);var L=P.props.onMouseMove;Ie(L)&&L(D,E)}),Ce(P,"handleItemMouseEnter",function(E){P.setState(function(){return{isTooltipActive:!0,activeItem:E,activePayload:E.tooltipPayload,activeCoordinate:E.tooltipPosition||{x:E.cx,y:E.cy}}})}),Ce(P,"handleItemMouseLeave",function(){P.setState(function(){return{isTooltipActive:!1}})}),Ce(P,"handleMouseMove",function(E){E.persist(),P.throttleTriggeredAfterMouseMove(E)}),Ce(P,"handleMouseLeave",function(E){P.throttleTriggeredAfterMouseMove.cancel();var T={isTooltipActive:!1};P.setState(T),P.triggerSyncEvent(T);var D=P.props.onMouseLeave;Ie(D)&&D(T,E)}),Ce(P,"handleOuterEvent",function(E){var T=BW(E),D=Mr(P.props,"".concat(T));if(T&&Ie(D)){var L,U;/.*touch.*/i.test(T)?U=P.getMouseInfo(E.changedTouches[0]):U=P.getMouseInfo(E),D((L=U)!==null&&L!==void 0?L:{},E)}}),Ce(P,"handleClick",function(E){var T=P.getMouseInfo(E);if(T){var D=se(se({},T),{},{isTooltipActive:!0});P.setState(D),P.triggerSyncEvent(D);var L=P.props.onClick;Ie(L)&&L(D,E)}}),Ce(P,"handleMouseDown",function(E){var T=P.props.onMouseDown;if(Ie(T)){var D=P.getMouseInfo(E);T(D,E)}}),Ce(P,"handleMouseUp",function(E){var T=P.props.onMouseUp;if(Ie(T)){var D=P.getMouseInfo(E);T(D,E)}}),Ce(P,"handleTouchMove",function(E){E.changedTouches!=null&&E.changedTouches.length>0&&P.throttleTriggeredAfterMouseMove(E.changedTouches[0])}),Ce(P,"handleTouchStart",function(E){E.changedTouches!=null&&E.changedTouches.length>0&&P.handleMouseDown(E.changedTouches[0])}),Ce(P,"handleTouchEnd",function(E){E.changedTouches!=null&&E.changedTouches.length>0&&P.handleMouseUp(E.changedTouches[0])}),Ce(P,"handleDoubleClick",function(E){var T=P.props.onDoubleClick;if(Ie(T)){var D=P.getMouseInfo(E);T(D,E)}}),Ce(P,"handleContextMenu",function(E){var T=P.props.onContextMenu;if(Ie(T)){var D=P.getMouseInfo(E);T(D,E)}}),Ce(P,"triggerSyncEvent",function(E){P.props.syncId!==void 0&&xw.emit(ww,P.props.syncId,E,P.eventEmitterSymbol)}),Ce(P,"applySyncEvent",function(E){var T=P.props,D=T.layout,L=T.syncMethod,U=P.state.updateId,I=E.dataStartIndex,z=E.dataEndIndex;if(E.dataStartIndex!==void 0||E.dataEndIndex!==void 0)P.setState(se({dataStartIndex:I,dataEndIndex:z},x({props:P.props,dataStartIndex:I,dataEndIndex:z,updateId:U},P.state)));else if(E.activeTooltipIndex!==void 0){var F=E.chartX,K=E.chartY,q=E.activeTooltipIndex,R=P.state,$=R.offset,H=R.tooltipTicks;if(!$)return;if(typeof L=="function")q=L(H,E);else if(L==="value"){q=-1;for(var W=0;W<H.length;W++)if(H[W].value===E.activeLabel){q=W;break}}var ae=se(se({},$),{},{x:$.left,y:$.top}),B=Math.min(F,ae.x+ae.width),Y=Math.min(K,ae.y+ae.height),X=H[q]&&H[q].value,J=EO(P.state,P.props.data,q),ue=H[q]?{x:D==="horizontal"?H[q].coordinate:B,y:D==="horizontal"?Y:H[q].coordinate}:kB;P.setState(se(se({},E),{},{activeLabel:X,activeCoordinate:ue,activePayload:J,activeTooltipIndex:q}))}else P.setState(E)}),Ce(P,"renderCursor",function(E){var T,D=P.state,L=D.isTooltipActive,U=D.activeCoordinate,I=D.activePayload,z=D.offset,F=D.activeTooltipIndex,K=D.tooltipAxisBandSize,q=P.getTooltipEventType(),R=(T=E.props.active)!==null&&T!==void 0?T:L,$=P.props.layout,H=E.key||"_recharts-cursor";return V.createElement(rhe,{key:H,activeCoordinate:U,activePayload:I,activeTooltipIndex:F,chartName:n,element:E,isActive:R,layout:$,offset:z,tooltipAxisBandSize:K,tooltipEventType:q})}),Ce(P,"renderPolarAxis",function(E,T,D){var L=Mr(E,"type.axisType"),U=Mr(P.state,"".concat(L,"Map")),I=E.type.defaultProps,z=I!==void 0?se(se({},I),E.props):E.props,F=U&&U[z["".concat(L,"Id")]];return j.cloneElement(E,se(se({},F),{},{className:Ge(L,F.className),key:E.key||"".concat(T,"-").concat(D),ticks:Ya(F,!0)}))}),Ce(P,"renderPolarGrid",function(E){var T=E.props,D=T.radialLines,L=T.polarAngles,U=T.polarRadius,I=P.state,z=I.radiusAxisMap,F=I.angleAxisMap,K=Hi(z),q=Hi(F),R=q.cx,$=q.cy,H=q.innerRadius,W=q.outerRadius;return j.cloneElement(E,{polarAngles:Array.isArray(L)?L:Ya(q,!0).map(function(ae){return ae.coordinate}),polarRadius:Array.isArray(U)?U:Ya(K,!0).map(function(ae){return ae.coordinate}),cx:R,cy:$,innerRadius:H,outerRadius:W,key:E.key||"polar-grid",radialLines:D})}),Ce(P,"renderLegend",function(){var E=P.state.formattedGraphicalItems,T=P.props,D=T.children,L=T.width,U=T.height,I=P.props.margin||{},z=L-(I.left||0)-(I.right||0),F=E$({children:D,formattedGraphicalItems:E,legendWidth:z,legendContent:d});if(!F)return null;var K=F.item,q=f3(F,ahe);return j.cloneElement(K,se(se({},q),{},{chartWidth:L,chartHeight:U,margin:I,onBBoxUpdate:P.handleLegendBBoxUpdate}))}),Ce(P,"renderTooltip",function(){var E,T=P.props,D=T.children,L=T.accessibilityLayer,U=ir(D,Fr);if(!U)return null;var I=P.state,z=I.isTooltipActive,F=I.activeCoordinate,K=I.activePayload,q=I.activeLabel,R=I.offset,$=(E=U.props.active)!==null&&E!==void 0?E:z;return j.cloneElement(U,{viewBox:se(se({},R),{},{x:R.left,y:R.top}),active:$,label:q,payload:$?K:[],coordinate:F,accessibilityLayer:L})}),Ce(P,"renderBrush",function(E){var T=P.props,D=T.margin,L=T.data,U=P.state,I=U.offset,z=U.dataStartIndex,F=U.dataEndIndex,K=U.updateId;return j.cloneElement(E,{key:E.key||"_recharts-brush",onChange:tp(P.handleBrushChange,E.props.onChange),data:L,x:ge(E.props.x)?E.props.x:I.left,y:ge(E.props.y)?E.props.y:I.top+I.height+I.brushBottom-(D.bottom||0),width:ge(E.props.width)?E.props.width:I.width,startIndex:z,endIndex:F,updateId:"brush-".concat(K)})}),Ce(P,"renderReferenceElement",function(E,T,D){if(!E)return null;var L=P,U=L.clipPathId,I=P.state,z=I.xAxisMap,F=I.yAxisMap,K=I.offset,q=E.type.defaultProps||{},R=E.props,$=R.xAxisId,H=$===void 0?q.xAxisId:$,W=R.yAxisId,ae=W===void 0?q.yAxisId:W;return j.cloneElement(E,{key:E.key||"".concat(T,"-").concat(D),xAxis:z[H],yAxis:F[ae],viewBox:{x:K.left,y:K.top,width:K.width,height:K.height},clipPathId:U})}),Ce(P,"renderActivePoints",function(E){var T=E.item,D=E.activePoint,L=E.basePoint,U=E.childIndex,I=E.isRange,z=[],F=T.props.key,K=T.item.type.defaultProps!==void 0?se(se({},T.item.type.defaultProps),T.item.props):T.item.props,q=K.activeDot,R=K.dataKey,$=se(se({index:U,dataKey:R,cx:D.x,cy:D.y,r:4,fill:PP(T.item),strokeWidth:2,stroke:"#fff",payload:D.payload,value:D.value},Ke(q,!1)),Ip(q));return z.push(A.renderActiveDot(q,$,"".concat(F,"-activePoint-").concat(U))),L?z.push(A.renderActiveDot(q,se(se({},$),{},{cx:L.x,cy:L.y}),"".concat(F,"-basePoint-").concat(U))):I&&z.push(null),z}),Ce(P,"renderGraphicChild",function(E,T,D){var L=P.filterFormatItem(E,T,D);if(!L)return null;var U=P.getTooltipEventType(),I=P.state,z=I.isTooltipActive,F=I.tooltipAxis,K=I.activeTooltipIndex,q=I.activeLabel,R=P.props.children,$=ir(R,Fr),H=L.props,W=H.points,ae=H.isRange,B=H.baseLine,Y=L.item.type.defaultProps!==void 0?se(se({},L.item.type.defaultProps),L.item.props):L.item.props,X=Y.activeDot,J=Y.hide,ue=Y.activeBar,he=Y.activeShape,fe=!!(!J&&z&&$&&(X||ue||he)),me={};U!=="axis"&&$&&$.props.trigger==="click"?me={onClick:tp(P.handleItemMouseEnter,E.props.onClick)}:U!=="axis"&&(me={onMouseLeave:tp(P.handleItemMouseLeave,E.props.onMouseLeave),onMouseEnter:tp(P.handleItemMouseEnter,E.props.onMouseEnter)});var le=j.cloneElement(E,se(se({},L.props),me));function pe(Ot){return typeof F.dataKey=="function"?F.dataKey(Ot.payload):null}if(fe)if(K>=0){var ve,ie;if(F.dataKey&&!F.allowDuplicatedCategory){var Re=typeof F.dataKey=="function"?pe:"payload.".concat(F.dataKey.toString());ve=kp(W,Re,q),ie=ae&&B&&kp(B,Re,q)}else ve=W?.[K],ie=ae&&B&&B[K];if(he||ue){var Pe=E.props.activeIndex!==void 0?E.props.activeIndex:K;return[j.cloneElement(E,se(se(se({},L.props),me),{},{activeIndex:Pe})),null,null]}if(!qe(ve))return[le].concat(ic(P.renderActivePoints({item:L,activePoint:ve,basePoint:ie,childIndex:K,isRange:ae})))}else{var nt,Je=(nt=P.getItemByXY(P.state.activeCoordinate))!==null&&nt!==void 0?nt:{graphicalItem:le},pt=Je.graphicalItem,Mn=pt.item,$t=Mn===void 0?E:Mn,ta=pt.childIndex,Xn=se(se(se({},L.props),me),{},{activeIndex:ta});return[j.cloneElement($t,Xn),null,null]}return ae?[le,null,null]:[le,null]}),Ce(P,"renderCustomized",function(E,T,D){return j.cloneElement(E,se(se({key:"recharts-customized-".concat(D)},P.props),P.state))}),Ce(P,"renderMap",{CartesianGrid:{handler:op,once:!0},ReferenceArea:{handler:P.renderReferenceElement},ReferenceLine:{handler:op},ReferenceDot:{handler:P.renderReferenceElement},XAxis:{handler:op},YAxis:{handler:op},Brush:{handler:P.renderBrush,once:!0},Bar:{handler:P.renderGraphicChild},Line:{handler:P.renderGraphicChild},Area:{handler:P.renderGraphicChild},Radar:{handler:P.renderGraphicChild},RadialBar:{handler:P.renderGraphicChild},Scatter:{handler:P.renderGraphicChild},Pie:{handler:P.renderGraphicChild},Funnel:{handler:P.renderGraphicChild},Tooltip:{handler:P.renderCursor,once:!0},PolarGrid:{handler:P.renderPolarGrid,once:!0},PolarAngleAxis:{handler:P.renderPolarAxis},PolarRadiusAxis:{handler:P.renderPolarAxis},Customized:{handler:P.renderCustomized}}),P.clipPathId="".concat((C=_.id)!==null&&C!==void 0?C:od("recharts"),"-clip"),P.throttleTriggeredAfterMouseMove=T8(P.triggeredAfterMouseMove,(M=_.throttleDelay)!==null&&M!==void 0?M:1e3/60),P.state={},P}return ghe(A,S),dhe(A,[{key:"componentDidMount",value:function(){var C,M;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(C=this.props.margin.left)!==null&&C!==void 0?C:0,top:(M=this.props.margin.top)!==null&&M!==void 0?M:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var C=this.props,M=C.children,P=C.data,E=C.height,T=C.layout,D=ir(M,Fr);if(D){var L=D.props.defaultIndex;if(!(typeof L!="number"||L<0||L>this.state.tooltipTicks.length-1)){var U=this.state.tooltipTicks[L]&&this.state.tooltipTicks[L].value,I=EO(this.state,P,L,U),z=this.state.tooltipTicks[L].coordinate,F=(this.state.offset.top+E)/2,K=T==="horizontal",q=K?{x:z,y:F}:{y:z,x:F},R=this.state.formattedGraphicalItems.find(function(H){var W=H.item;return W.type.name==="Scatter"});R&&(q=se(se({},q),R.props.points[L].tooltipPosition),I=R.props.points[L].tooltipPayload);var $={activeTooltipIndex:L,isTooltipActive:!0,activeLabel:U,activePayload:I,activeCoordinate:q};this.setState($),this.renderCursor(D),this.accessibilityManager.setIndex(L)}}}},{key:"getSnapshotBeforeUpdate",value:function(C,M){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==M.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 P,E;this.accessibilityManager.setDetails({offset:{left:(P=this.props.margin.left)!==null&&P!==void 0?P:0,top:(E=this.props.margin.top)!==null&&E!==void 0?E:0}})}return null}},{key:"componentDidUpdate",value:function(C){mS([ir(C.children,Fr)],[ir(this.props.children,Fr)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var C=ir(this.props.children,Fr);if(C&&typeof C.props.shared=="boolean"){var M=C.props.shared?"axis":"item";return c.indexOf(M)>=0?M:o}return o}},{key:"getMouseInfo",value:function(C){if(!this.container)return null;var M=this.container,P=M.getBoundingClientRect(),E=_te(P),T={chartX:Math.round(C.pageX-E.left),chartY:Math.round(C.pageY-E.top)},D=P.width/M.offsetWidth||1,L=this.inRange(T.chartX,T.chartY,D);if(!L)return null;var U=this.state,I=U.xAxisMap,z=U.yAxisMap,F=this.getTooltipEventType(),K=h3(this.state,this.props.data,this.props.layout,L);if(F!=="axis"&&I&&z){var q=Hi(I).scale,R=Hi(z).scale,$=q&&q.invert?q.invert(T.chartX):null,H=R&&R.invert?R.invert(T.chartY):null;return se(se({},T),{},{xValue:$,yValue:H},K)}return K?se(se({},T),K):null}},{key:"inRange",value:function(C,M){var P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,E=this.props.layout,T=C/P,D=M/P;if(E==="horizontal"||E==="vertical"){var L=this.state.offset,U=T>=L.left&&T<=L.left+L.width&&D>=L.top&&D<=L.top+L.height;return U?{x:T,y:D}:null}var I=this.state,z=I.angleAxisMap,F=I.radiusAxisMap;if(z&&F){var K=Hi(z);return Ck({x:T,y:D},K)}return null}},{key:"parseEventsOfWrapper",value:function(){var C=this.props.children,M=this.getTooltipEventType(),P=ir(C,Fr),E={};P&&M==="axis"&&(P.props.trigger==="click"?E={onClick:this.handleClick}:E={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var T=Ip(this.props,this.handleOuterEvent);return se(se({},T),E)}},{key:"addListener",value:function(){xw.on(ww,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){xw.removeListener(ww,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(C,M,P){for(var E=this.state.formattedGraphicalItems,T=0,D=E.length;T<D;T++){var L=E[T];if(L.item===C||L.props.key===C.key||M===Xa(L.item.type)&&P===L.childIndex)return L}return null}},{key:"renderClipPath",value:function(){var C=this.clipPathId,M=this.state.offset,P=M.left,E=M.top,T=M.height,D=M.width;return V.createElement("defs",null,V.createElement("clipPath",{id:C},V.createElement("rect",{x:P,y:E,height:T,width:D})))}},{key:"getXScales",value:function(){var C=this.state.xAxisMap;return C?Object.entries(C).reduce(function(M,P){var E=u3(P,2),T=E[0],D=E[1];return se(se({},M),{},Ce({},T,D.scale))},{}):null}},{key:"getYScales",value:function(){var C=this.state.yAxisMap;return C?Object.entries(C).reduce(function(M,P){var E=u3(P,2),T=E[0],D=E[1];return se(se({},M),{},Ce({},T,D.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(C){var M;return(M=this.state.xAxisMap)===null||M===void 0||(M=M[C])===null||M===void 0?void 0:M.scale}},{key:"getYScaleByAxisId",value:function(C){var M;return(M=this.state.yAxisMap)===null||M===void 0||(M=M[C])===null||M===void 0?void 0:M.scale}},{key:"getItemByXY",value:function(C){var M=this.state,P=M.formattedGraphicalItems,E=M.activeItem;if(P&&P.length)for(var T=0,D=P.length;T<D;T++){var L=P[T],U=L.props,I=L.item,z=I.type.defaultProps!==void 0?se(se({},I.type.defaultProps),I.props):I.props,F=Xa(I.type);if(F==="Bar"){var K=(U.data||[]).find(function(H){return Vle(C,H)});if(K)return{graphicalItem:L,payload:K}}else if(F==="RadialBar"){var q=(U.data||[]).find(function(H){return Ck(C,H)});if(q)return{graphicalItem:L,payload:q}}else if(_g(L,E)||Cg(L,E)||If(L,E)){var R=Rce({graphicalItem:L,activeTooltipItem:E,itemData:z.data}),$=z.activeIndex===void 0?R:z.activeIndex;return{graphicalItem:se(se({},L),{},{childIndex:$}),payload:If(L,E)?z.data[R]:L.props.data[R]}}}return null}},{key:"render",value:function(){var C=this;if(!$N(this))return null;var M=this.props,P=M.children,E=M.className,T=M.width,D=M.height,L=M.style,U=M.compact,I=M.title,z=M.desc,F=f3(M,ihe),K=Ke(F,!1);if(U)return V.createElement(F5,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},V.createElement(vS,xl({},K,{width:T,height:D,title:I,desc:z}),this.renderClipPath(),qN(P,this.renderMap)));if(this.props.accessibilityLayer){var q,R;K.tabIndex=(q=this.props.tabIndex)!==null&&q!==void 0?q:0,K.role=(R=this.props.role)!==null&&R!==void 0?R:"application",K.onKeyDown=function(H){C.accessibilityManager.keyboardEvent(H)},K.onFocus=function(){C.accessibilityManager.focus()}}var $=this.parseEventsOfWrapper();return V.createElement(F5,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},V.createElement("div",xl({className:Ge("recharts-wrapper",E),style:se({position:"relative",curs
370or:"default",width:T,height:D},L)},$,{ref:function(W){C.container=W}}),V.createElement(vS,xl({},K,{width:T,height:D,title:I,desc:z,style:She}),this.renderClipPath(),qN(P,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(j.Component);Ce(O,"displayName",n),Ce(O,"defaultProps",se({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},h)),Ce(O,"getDerivedStateFromProps",function(S,A){var _=S.dataKey,C=S.data,M=S.children,P=S.width,E=S.height,T=S.layout,D=S.stackOffset,L=S.margin,U=A.dataStartIndex,I=A.dataEndIndex;if(A.updateId===void 0){var z=p3(S);return se(se(se({},z),{},{updateId:0},x(se(se({props:S},z),{},{updateId:0}),A)),{},{prevDataKey:_,prevData:C,prevWidth:P,prevHeight:E,prevLayout:T,prevStackOffset:D,prevMargin:L,prevChildren:M})}if(_!==A.prevDataKey||C!==A.prevData||P!==A.prevWidth||E!==A.prevHeight||T!==A.prevLayout||D!==A.prevStackOffset||!jl(L,A.prevMargin)){var F=p3(S),K={chartX:A.chartX,chartY:A.chartY,isTooltipActive:A.isTooltipActive},q=se(se({},h3(A,C,T)),{},{updateId:A.updateId+1}),R=se(se(se({},F),K),q);return se(se(se({},R),x(se({props:S},R),A)),{},{prevDataKey:_,prevData:C,prevWidth:P,prevHeight:E,prevLayout:T,prevStackOffset:D,prevMargin:L,prevChildren:M})}if(!mS(M,A.prevChildren)){var $,H,W,ae,B=ir(M,Xl),Y=B&&($=(H=B.props)===null||H===void 0?void 0:H.startIndex)!==null&&$!==void 0?$:U,X=B&&(W=(ae=B.props)===null||ae===void 0?void 0:ae.endIndex)!==null&&W!==void 0?W:I,J=Y!==U||X!==I,ue=!qe(C),he=ue&&!J?A.updateId:A.updateId+1;return se(se({updateId:he},x(se(se({props:S},A),{},{updateId:he,dataStartIndex:Y,dataEndIndex:X}),A)),{},{prevChildren:M,dataStartIndex:Y,dataEndIndex:X})}return null}),Ce(O,"renderActiveDot",function(S,A,_){var C;return j.isValidElement(S)?C=j.cloneElement(S,A):Ie(S)?C=S(A):C=V.createElement(CP,A),V.createElement(Rt,{className:"recharts-active-dot",key:_},C)});var b=j.forwardRef(function(A,_){return V.createElement(O,xl({},A,{ref:_}))});return b.displayName=O.displayName,b},LB=Mhe({chartName:"LineChart",GraphicalChild:Sc,axisComponents:[{axisType:"xAxis",AxisComp:Dg},{axisType:"yAxis",AxisComp:pd}],formatAxisMap:Eue});const Mu=.052,g3=7.8;function Dhe(){const[,e]=jA("/card/:id"),t=e?.id??"",[n,r]=j.useState("30d"),a=/^\d+$/.test(t),{data:o,isLoading:l,refetch:c,isFetching:f}=dt.market.getCard.useQuery({id:t},{enabled:!!t,staleTime:300*1e3}),{data:d}=dt.market.getEbaySold.useQuery({query:o?.["product-name"]||t,grade:"PSA 10"},{enabled:!!o?.["product-name"],staleTime:300*1e3}),m=j.useMemo(()=>{const T=o?.priceHistory;if(T&&T.length>0){const U=n==="7d"?7:n==="30d"?30:90;return T.slice(-U).map(I=>({date:I.date.substring(5),priceJpy:I.medianJpy?Math.round(I.medianJpy/100):void 0,priceHkd:I.medianJpy?Math.round(I.medianJpy*Mu):void 0,priceUsd:I.medianUsd,count:I.count}))}if(!o)return[];const D=(o["manual-only-price"]??15e3)/100,L=n==="7d"?7:n==="30d"?30:90;return Array.from({length:L},(U,I)=>{const z=new Date;z.setDate(z.getDate()-(L-1-I));const F=(Math.random()-.5)*.12;return{date:`${String(z.getMonth()+1).padStart(2,"0")}-${String(z.getDate()).padStart(2,"0")}`,priceJpy:Math.round(D*(1+F)),priceHkd:Math.round(D*(1+F)*Mu),priceUsd:void 0,count:Math.floor(Math.random()*20+1)}})},[o,n]);if(l)return v.jsxs("div",{"data-loc":"client/src/pages/CardDetailPage.tsx:67",className:"container py-10",children:[v.jsx("div",{"data-loc":"client/src/pages/CardDetailPage.tsx:68",className:"h-8 w-48 bg-card animate-pulse rounded mb-6"}),v.jsxs("div",{"data-loc":"client/src/pages/CardDetailPage.tsx:69",className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[v.jsx("div",{"data-loc":"client/src/pages/CardDetailPage.tsx:70",className:"h-64 bg-card animate-pulse rounded-2xl"}),v.jsx("div",{"data-loc":"client/src/pages/CardDetailPage.tsx:71",className:"lg:col-span-2 h-64 bg-card animate-pulse rounded-2xl"})]})]});if(!o)return v.jsx("div",{"data-loc":"client/src/pages/CardDetailPage.tsx:77",className:"container py-20 text-center text-muted-foreground",children:"æ¾ä¸å°æ¤å¡ç"});
370const h=o["product-name"]||"Pokemon Card",g=o.currentPricePsa10Jpy||o["manual-only-price"]||0,x=Math.round(g*Mu),O=o.currentPricePsa10Usd||d?.medianPrice||0,b=o.todaySalesCount||o["sales-volume"]||0,S=o.todayMedianPriceJpy||g,A=Math.round(S*Mu),_=o.weeklyChangePercent||0,C=o.snkrdunkId||(a?t:null),M=d?.items||[],P=d?.todayCount||0,E=d?.medianPrice||O;return v.jsxs("div",{"data-loc":"client/src/pages/CardDetailPage.tsx:95",className:"container py-10 max-w-6xl",children:[v.jsxs("div",{"data-loc":"client/src/pages/CardDetailPage.tsx:96",className:"flex items-center justify-between mb-6",children:[v.jsx(Le,{"data-loc":"client/src/pages/CardDetailPage.tsx:97",href:"/market",children:v.jsxs(je,{"data-loc":"client/src/pages/CardDetailPage.tsx:98",variant:"ghost",size:"sm",className:"gap-2 text-muted-foreground",children:[v.jsx(nd,{"data-loc":"client/src/pages/CardDetailPage.tsx:99",className:"w-4 h-4"})," è¿åè¡æ
"]})}),v.jsxs(je,{"data-loc":"client/src/pages/CardDetailPage.tsx:102",variant:"ghost",size:"sm",className:"gap-2 text-muted-foreground",onClick:()=>c(),disabled:f,children:[v.jsx(BY,{"data-loc":"client/src/pages/CardDetailPage.tsx:109",className:`w-4 h-4 ${f?"animate-spin":""}`}),"æ´æ°æ¸æ"]})]}),v.jsxs("div",{"data-loc":"client/src/pages/CardDetailPage.tsx:114",className:"grid grid-cols-1 lg:grid-cols-3 gap-8",children:[v.jsxs("div",{"data-loc":"client/src/pages/CardDetailPage.tsx:116",className:"space-y-4",children:[v.jsx("div",{"data-loc":"client/src/pages/CardDetailPage.tsx:118",className:"rounded-2xl overflow-hidden bg-card border border-border/50 card-glow aspect-[3/4] flex items-center justify-center",children:o.imageUrl?v.jsx("img",{"data-loc":"client/src/pages/CardDetailPage.tsx:120",src:o.imageUrl,alt:h,className:"w-full h-full object-contain p-4"}):v.jsxs("div",{"data-loc":"client/src/pages/CardDetailPage.tsx:122",className:"text-center p-8",children:[v.jsx("div",{"data-loc":"client/src/pages/CardDetailPage.tsx:123",className:"text-6xl mb-4",children:"ð"}),v.jsx("p",{"data-loc":"client/src/pages/CardDetailPage.tsx:124",className:"text-muted-foreground text-sm",children:h})]})}),v.jsxs("div",{"data-loc":"client/src/pages/CardDetailPage.tsx:130",children:[v.jsx("h1",{"data-loc":"client/src/pages/CardDetailPage.tsx:131",className:"font-display text-xl font-bold text-foreground mb-2",children:h}),v.jsxs("div",{"data-loc":"client/src/pages/CardDetailPage.tsx:132",className:"flex flex-wrap gap-2",children:[v.jsx(ur,{"data-loc":"client/src/pages/CardDetailPage.tsx:133",className:"bg-primary/20 text-primary border-primary/30",children:"PSA 10"}),v.jsx(ur,{"data-loc":"client/src/pages/CardDetailPage.tsx:134",variant:"outline",className:"border-border/50 text-muted-foreground",children:"Pokemon Card"})]})]}),v.jsx(xn,{"data-loc":"client/src/pages/CardDetailPage.tsx:139",className:"bg-card border-border/50",children:v.jsxs(wn,{"data-loc":"client/src/pages/CardDetailPage.tsx:140",className:"p-4 space-y-3",children:[v.jsxs("div",{"data-loc":"client/src/pages/CardDetailPage.tsx:141",className:"flex justify-between items-center",children:[v.jsx("span",{"data-loc":"client/src/pages/CardDetailPage.tsx:142",className:"text-sm text-muted-foreground",children:"SNKRDUNK æä½å®å¹"}),v.jsxs("div",{"data-loc":"client/src/pages/CardDetailPage.tsx:143",className:"text-right",children:[v.jsxs("p",{"data-loc":"client/src/pages/CardDetailPage.tsx:144",className:"font-bold text-primary",children:["Â¥",g.toLocaleString()]}),v.jsxs("p",{"data-loc":"client/src/pages/CardDetailPage.tsx:145",className:"text-xs text-muted-foreground",children:["â HKD $",x.toLocaleString()]})]})]}),O>0&&v.jsxs("div",{"data-loc":"client/src/pages/CardDetailPage.tsx:149",className:"flex justify-between items-center",children:[v.jsx("span",{"data-loc":"client/src/pages/CardDetailPage.tsx:150",className:"text-sm text-muted-foreground",children:"eBay ä¸ä½æ¸"}),v.jsxs("div",{"data-loc":"client/src/pages/CardDetailPage.tsx:151",className:"text-right",children:[v.jsxs("p",{"data-loc":"client/src/pages/CardDetailPage.tsx:152",className:"font-bold text-foreground",children:["$",E.toFixed(0)," USD"]}),v.jsxs("p",{"data-loc":"client/src/pages/CardDetailPage.tsx:153",className:"text-xs text-muted-foreground",children:["â HKD $",Math.round(E*g3).toLocaleStr
370ing()]})]})]}),v.jsxs("div",{"data-loc":"client/src/pages/CardDetailPage.tsx:157",className:"border-t border-border/30 pt-3 flex justify-between items-center",children:[v.jsx("span",{"data-loc":"client/src/pages/CardDetailPage.tsx:158",className:"text-sm text-muted-foreground",children:"æ¬é±è®å¹
"}),v.jsxs("span",{"data-loc":"client/src/pages/CardDetailPage.tsx:159",className:`font-bold ${_>=0?"text-emerald-400":"text-red-400"}`,children:[_>=0?"+":"",_.toFixed(1),"%"]})]})]})}),v.jsxs("div",{"data-loc":"client/src/pages/CardDetailPage.tsx:167",className:"grid grid-cols-2 gap-3",children:[v.jsx(xn,{"data-loc":"client/src/pages/CardDetailPage.tsx:168",className:"bg-card border-border/50",children:v.jsxs(wn,{"data-loc":"client/src/pages/CardDetailPage.tsx:169",className:"p-3 text-center",children:[v.jsx(_Y,{"data-loc":"client/src/pages/CardDetailPage.tsx:170",className:"w-4 h-4 text-primary mx-auto mb-1"}),v.jsx("p",{"data-loc":"client/src/pages/CardDetailPage.tsx:171",className:"text-lg font-bold text-foreground",children:b+P}),v.jsx("p",{"data-loc":"client/src/pages/CardDetailPage.tsx:172",className:"text-xs text-muted-foreground",children:"仿¥æäº¤"})]})}),v.jsx(xn,{"data-loc":"client/src/pages/CardDetailPage.tsx:175",className:"bg-card border-border/50",children:v.jsxs(wn,{"data-loc":"client/src/pages/CardDetailPage.tsx:176",className:"p-3 text-center",children:[v.jsx(DY,{"data-loc":"client/src/pages/CardDetailPage.tsx:177",className:"w-4 h-4 text-primary mx-auto mb-1"}),v.jsxs("p",{"data-loc":"client/src/pages/CardDetailPage.tsx:178",className:"text-lg font-bold text-foreground",children:["HKD $",A.toLocaleString()]}),v.jsx("p",{"data-loc":"client/src/pages/CardDetailPage.tsx:179",className:"text-xs text-muted-foreground",children:"仿¥ä¸ä½æ¸"})]})})]}),C&&v.jsxs("a",{"data-loc":"client/src/pages/CardDetailPage.tsx:186",href:`https://snkrdunk.com/apparels/${C}`,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 text-sm text-muted-foreground hover:text-primary transition-colors",children:[v.jsx(RY,{"data-loc":"client/src/pages/CardDetailPage.tsx:192",className:"w-3 h-3"}),"å¨ SNKRDUNK æ¥ç"]})]}),v.jsxs("div",{"data-loc":"client/src/pages/CardDetailPage.tsx:199",className:"lg:col-span-2 space-y-6",children:[v.jsxs(xn,{"data-loc":"client/src/pages/CardDetailPage.tsx:201",className:"bg-card border-border/50",children:[v.jsxs(of,{"data-loc":"client/src/pages/CardDetailPage.tsx:202",className:"pb-2",children:[v.jsxs("div",{"data-loc":"client/src/pages/CardDetailPage.tsx:203",className:"flex items-center justify-between",children:[v.jsx(sf,{"data-loc":"client/src/pages/CardDetailPage.tsx:204",className:"text-base font-semibold text-foreground",children:"PSA 10 æäº¤å¹æ ¼èµ°å¢"}),v.jsx("div",{"data-loc":"client/src/pages/CardDetailPage.tsx:205",className:"flex gap-1",children:["7d","30d","90d"].map(T=>v.jsx(je,{"data-loc":"client/src/pages/CardDetailPage.tsx:207",variant:n===T?"default":"ghost",size:"sm",className:`h-7 px-2 text-xs ${n===T?"bg-primary text-primary-foreground":"text-muted-foreground"}`,onClick:()=>r(T),children:T==="7d"?"7æ¥":T==="30d"?"30æ¥":"90æ¥"},T))})]}),v.jsx("p",{"data-loc":"client/src/pages/CardDetailPage.tsx:219",className:"text-xs text-muted-foreground",children:"æ¸æä¾æºï¼SNKRDUNKï¼æ¥åï¼"})]}),v.jsx(wn,{"data-loc":"client/src/pages/CardDetailPage.tsx:221",children:v.jsx(j8,{"data-loc":"client/src/pages/CardDetailPage.tsx:222",width:"100%",height:280,children:v.jsxs(LB,{"data-loc":"client/src/pages/CardDetailPage.tsx:223",data:m,margin:{top:5,right:10,left:0,bottom:5},children:[v.jsx(wB,{"data-loc":"client/src/pages/CardDetailPage.tsx:224",strokeDasharray:"3 3",stroke:"oklch(0.28 0.06 255 / 0.3)"}),v.jsx(Dg,{"data-loc":"client/src/pages/CardDetailPage.tsx:225",dataKey:"date",tick:{fill:"oklch(0.65 0.04 255)",fontSize:11},tickLine:!1,interval:n==="7d"?0:n==="30d"?4:13}),v.jsx(pd,{"data-loc":"client/src/pages/CardDetailPage.tsx:231",tick:{fill:"oklch(0.65 0.04 255)",fontSize:11},tickLine:!1,axisLine:!1,tickFormatter:T=>`Â¥${(T*100).toLocaleString()}`,width:70}),v.jsx(Fr,{"data-loc":"client/src/pages/CardDetailPage.tsx:238",contentStyle:{background:"oklch(0.17 0.06 255)",border:"1px solid oklch(0.28 0.06 255)",borderRadius:"8px",color:"oklch(0.96 0.01 255)"},formatter:(T,D)=>
370D==="priceJpy"?[`Â¥${(T*100).toLocaleString()}`,"SNKRDUNK ä¸ä½æ¸"]:[T,D]}),v.jsx(Sc,{"data-loc":"client/src/pages/CardDetailPage.tsx:250",type:"monotone",dataKey:"priceJpy",stroke:"oklch(0.78 0.15 85)",strokeWidth:2,dot:!1,activeDot:{r:4,fill:"oklch(0.78 0.15 85)"},connectNulls:!0})]})})})]}),v.jsxs(CL,{"data-loc":"client/src/pages/CardDetailPage.tsx:265",defaultValue:"snkrdunk",children:[v.jsxs(TL,{"data-loc":"client/src/pages/CardDetailPage.tsx:266",className:"bg-secondary/50",children:[v.jsx(Dp,{"data-loc":"client/src/pages/CardDetailPage.tsx:267",value:"snkrdunk",children:"SNKRDUNK æäº¤è¨é"}),v.jsx(Dp,{"data-loc":"client/src/pages/CardDetailPage.tsx:268",value:"ebay",children:"eBay å·²å®åº"})]}),v.jsx(Rp,{"data-loc":"client/src/pages/CardDetailPage.tsx:271",value:"snkrdunk",children:v.jsx(xn,{"data-loc":"client/src/pages/CardDetailPage.tsx:272",className:"bg-card border-border/50",children:v.jsx(wn,{"data-loc":"client/src/pages/CardDetailPage.tsx:273",className:"p-0",children:o.recentTrades&&o.recentTrades.length>0?v.jsx("div",{"data-loc":"client/src/pages/CardDetailPage.tsx:275",className:"overflow-x-auto",children:v.jsxs("table",{"data-loc":"client/src/pages/CardDetailPage.tsx:276",className:"w-full text-sm",children:[v.jsx("thead",{"data-loc":"client/src/pages/CardDetailPage.tsx:277",children:v.jsxs("tr",{"data-loc":"client/src/pages/CardDetailPage.tsx:278",className:"border-b border-border/30",children:[v.jsx("th",{"data-loc":"client/src/pages/CardDetailPage.tsx:279",className:"text-left p-3 text-muted-foreground font-medium",children:"æ¥æ"}),v.jsx("th",{"data-loc":"client/src/pages/CardDetailPage.tsx:280",className:"text-left p-3 text-muted-foreground font-medium",children:"è©ç´"}),v.jsx("th",{"data-loc":"client/src/pages/CardDetailPage.tsx:281",className:"text-right p-3 text-muted-foreground font-medium",children:"æäº¤å¹ï¼JPYï¼"}),v.jsx("th",{"data-loc":"client/src/pages/CardDetailPage.tsx:282",className:"text-right p-3 text-muted-foreground font-medium",children:"ç´ï¼HKDï¼"})]})}),v.jsx("tbody",{"data-loc":"client/src/pages/CardDetailPage.tsx:285",children:o.recentTrades.slice(0,20).map((T,D)=>v.jsxs("tr",{"data-loc":"client/src/pages/CardDetailPage.tsx:287",className:"border-b border-border/20 hover:bg-secondary/20",children:[v.jsx("td",{"data-loc":"client/src/pages/CardDetailPage.tsx:288",className:"p-3 text-muted-foreground",children:T.date}),v.jsx("td",{"data-loc":"client/src/pages/CardDetailPage.tsx:289",className:"p-3",children:v.jsx(ur,{"data-loc":"client/src/pages/CardDetailPage.tsx:289",className:"bg-primary/20 text-primary border-primary/30 text-xs",children:T.grade})}),v.jsxs("td",{"data-loc":"client/src/pages/CardDetailPage.tsx:290",className:"p-3 text-right font-mono text-foreground",children:["Â¥",T.price?.toLocaleString()]}),v.jsxs("td",{"data-loc":"client/src/pages/CardDetailPage.tsx:291",className:"p-3 text-right font-mono text-primary",children:["HKD $",Math.round(T.price*Mu).toLocaleString()]})]},D))})]})}):v.jsxs("div",{"data-loc":"client/src/pages/CardDetailPage.tsx:298",className:"p-8 text-center text-muted-foreground",children:[v.jsx("p",{"data-loc":"client/src/pages/CardDetailPage.tsx:299",className:"text-sm",children:"æ«ç¡ SNKRDUNK æäº¤è¨é"}),C&&v.jsx("a",{"data-loc":"client/src/pages/CardDetailPage.tsx:301",href:`https://snkrdunk.com/apparels/${C}`,target:"_blank",rel:"noopener noreferrer",className:"text-primary text-xs mt-2 inline-block hover:underline",children:"åå¾ SNKRDUNK æ¥ç â"})]})})})}),v.jsx(Rp,{"data-loc":"client/src/pages/CardDetailPage.tsx:311",value:"ebay",children:v.jsx(xn,{"data-loc":"client/src/pages/CardDetailPage.tsx:312",className:"bg-card border-border/50",children:v.jsx(wn,{"data-loc":"client/src/pages/CardDetailPage.tsx:313",className:"p-0",children:M.length>0?v.jsx("div",{"data-loc":"client/src/pages/CardDetailPage.tsx:315",className:"overflow-x-auto",children:v.jsxs("table",{"data-loc":"client/src/pages/CardDetailPage.tsx:316",className:"w-full text-sm",children:[v.jsx("thead",{"data-loc":"client/src/pages/CardDetailPage.tsx:317",children:v.jsxs("tr",{"data-loc":"client/src/pages/CardDetailPage.tsx:318",className:"border-b border-border/30",children:[v.jsx("th",{"data-loc":"client/src/pages/CardDetailPage.tsx:319",className:"text-left p-3 text-muted-foreground font-medium",children:"ååå稱"}),v.jsx("th",{"data-loc":"client/src/pages/CardDetailPage.tsx:320",className:"text-right p-3 text-muted-foreground font-medium",children:"æäº¤å¹ï¼USDï¼"}),v.jsx("th",{"data-loc":"client/src/pages/CardDetailPage.tsx:321",className:"text-right p-3 text-muted-foreground font-medium",children:"ç´ï¼HKDï¼"})]})}),v.jsx("tbody",{"data-loc":"client/src/pages/CardDetailPage.tsx:324",children:M.slice(0,20).map((T,D)=>v.jsxs("tr",{"data-loc":"client/src/pages/CardDetailPage.tsx:326",className:"border-b border-border/20 hover:bg-secondary/20",children:[v.jsx("td",{"data-loc":"client/src/pages/CardDetailPage.tsx:327",className:"p-3 text-muted-foreground text-xs max-w-[200px] truncate",children:T.title}),v.jsxs("td",{"data-loc":"client/src/pages/CardDetailPage.tsx:328",className:"p-3 text-right font-mono text-foreground",children:["$",T.price?.toFixed(2)]}),v.jsxs("td",{"data-loc":"client/src/pages/CardDetailPage.tsx:329",className:"p-3 text-right font-mono text-primary",children:["HKD $",Math.round(T.price*g3).toLocaleStr
vendor: 4,189 bytes, line 370
370ing()]})]},D))})]})}):v.jsxs("div",{"data-loc":"client/src/pages/CardDetailPage.tsx:336",className:"p-8 text-center text-muted-foreground",children:[v.jsx("p",{"data-loc":"client/src/pages/CardDetailPage.tsx:337",className:"text-sm",children:"æ«ç¡ eBay æäº¤è¨é"}),v.jsx("a",{"data-loc":"client/src/pages/CardDetailPage.tsx:338",href:`https://www.ebay.com/sch/i.html?_nkw=${encodeURIComponent(h+" PSA 10")}&LH_Sold=1&LH_Complete=1`,target:"_blank",rel:"noopener noreferrer",className:"text-primary text-xs mt-2 inline-block hover:underline",children:"å¨ eBay æå° â"})]})})})})]})]})]})]})}function v3(e,[t,n]){return Math.min(n,Math.max(t,e))}function Rhe(e){const t=j.useRef({value:e,previous:e});return j.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var khe=[" ","Enter","ArrowUp","ArrowDown"],Ihe=[" ","Enter"],us="Select",[kg,Ig,Lhe]=uL(us),[Oc]=lc(us,[Lhe,Qm]),Lg=Qm(),[$he,lo]=Oc(us),[Bhe,qhe]=Oc(us),$B=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:a,onOpenChange:o,value:l,defaultValue:c,onValueChange:f,dir:d,name:m,autoComplete:h,disabled:g,required:x,form:O}=e,b=Lg(t),[S,A]=j.useState(null),[_,C]=j.useState(null),[M,P]=j.useState(!1),E=NA(d),[T,D]=Tp({prop:r,defaultProp:a??!1,onChange:o,caller:us}),[L,U]=Tp({prop:l,defaultProp:c,onChange:f,caller:us}),I=j.useRef(null),z=S?O||!!S.closest("form"):!0,[F,K]=j.useState(new Set),q=Array.from(F).map(R=>R.props.value).join(";");return v.jsx(hG,{...b,children:v.jsxs($he,{required:x,scope:t,trigger:S,onTriggerChange:A,valueNode:_,onValueNodeChange:C,valueNodeHasChildren:M,onValueNodeHasChildrenChange:P,contentId:ed(),value:L,onValueChange:U,open:T,onOpenChange:D,dir:E,triggerPointerDownPosRef:I,disabled:g,children:[v.jsx(kg.Provider,{scope:t,children:v.jsx(Bhe,{scope:e.__scopeSelect,onNativeOptionAdd:j.useCallback(R=>{K($=>new Set($).add(R))},[]),onNativeOptionRemove:j.useCallback(R=>{K($=>{const H=new Set($);return H.delete(R),H})},[]),children:n})}),z?v.jsxs(oq,{"aria-hidden":!0,required:x,tabIndex:-1,name:m,autoComplete:h,value:L,onChange:R=>U(R.target.value),disabled:g,form:O,children:[L===void 0?v.jsx("option",{value:""}):null,Array.from(F)]},q):null]})})};$B.displayName=us;var BB="SelectTrigger",qB=j.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...a}=e,o=Lg(n),l=lo(BB,n),c=l.disabled||r,f=kt(t,l.onTriggerChange),d=Ig(n),m=j.useRef("touch"),[h,g,x]=lq(b=>{const S=d().filter(C=>!C.disabled),A=S.find(C=>C.value===l.value),_=cq(S,b,A);_!==void 0&&l.onValueChange(_.value)}),O=b=>{c||(l.onOpenChange(!0),x()),b&&(l.triggerPointerDownPosRef.current={x:Math.round(b.pageX),y:Math.round(b.pageY)})};return v.jsx(h6,{asChild:!0,...o,children:v.jsx(it.button,{type:"button",role:"combobox","aria-controls":l.contentId,"aria-expanded":l.open,"aria-required":l.required,"aria-autocomplete":"none",dir:l.dir,"data-state":l.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":sq(l.value)?"":void 0,...a,ref:f,onClick:Fe(a.onClick,b=>{b.currentTarget.focus(),m.current!=="mouse"&&O(b)}),onPointerDown:Fe(a.onPointerDown,b=>{m.current=b.pointerType;const S=b.target;S.hasPointerCapture(b.pointerId)&&S.releasePointerCapture(b.pointerId),b.button===0&&b.ctrlKey===!1&&b.pointerType==="mouse"&&(O(b),b.preventDefault())}),onKeyDown:Fe(a.onKeyDown,b=>{const S=h.current!=="";!(b.ctrlKey||b.altKey||b.metaKey)&&b.key.length===1&&g(b.key),!(S&&b.key===" ")&&khe.includes(b.key)&&(O(),b.preventDefault())})})})});qB.displayName=BB;var zB="SelectValue",UB=j.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:a,children:o,placeholder:l="",...c}=e,f=lo(zB,n),{onValueNodeHasChildrenChange:d}=f,m=o!==void 0,h=kt(t,f.onValueNodeChange);return _n(()=>{d(m)},[d,m]),v.jsx(it.span,{...c,ref:h,style:{pointerEvents:"none"},children:sq(f.value)?v.jsx(v.Fragment,{children:l}):o})});UB.displayName=zB;var zhe="SelectIcon",HB=j.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...a}=e;return v.jsx(it.span,{"aria-hidden":!0,...a,ref:t,children:r||"â¼"})});HB.displayName=zhe;var Uhe="SelectPortal",VB=e=>v.jsx(g6,{asChild:!0,...e});VB.displayName=Uhe;var fs="SelectContent",FB=j.forwardRef((e,t)=>
vendor: 12,849 bytes, line 370
370{const n=lo(fs,e.__scopeSelect),[r,a]=j.useState();if(_n(()=>{a(new DocumentFragment)},[]),!n.open){const o=r;return o?Jf.createPortal(v.jsx(KB,{scope:e.__scopeSelect,children:v.jsx(kg.Slot,{scope:e.__scopeSelect,children:v.jsx("div",{children:e.children})})}),o):null}return v.jsx(GB,{...e,ref:t})});FB.displayName=fs;var Hr=10,[KB,co]=Oc(fs),Hhe="SelectContentImpl",Vhe=nf("SelectContent.RemoveScroll"),GB=j.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:a,onEscapeKeyDown:o,onPointerDownOutside:l,side:c,sideOffset:f,align:d,alignOffset:m,arrowPadding:h,collisionBoundary:g,collisionPadding:x,sticky:O,hideWhenDetached:b,avoidCollisions:S,...A}=e,_=lo(fs,n),[C,M]=j.useState(null),[P,E]=j.useState(null),T=kt(t,fe=>M(fe)),[D,L]=j.useState(null),[U,I]=j.useState(null),z=Ig(n),[F,K]=j.useState(!1),q=j.useRef(!1);j.useEffect(()=>{if(C)return vQ(C)},[C]),NX();const R=j.useCallback(fe=>{const[me,...le]=z().map(ie=>ie.ref.current),[pe]=le.slice(-1),ve=document.activeElement;for(const ie of fe)if(ie===ve||(ie?.scrollIntoView({block:"nearest"}),ie===me&&P&&(P.scrollTop=0),ie===pe&&P&&(P.scrollTop=P.scrollHeight),ie?.focus(),document.activeElement!==ve))return},[z,P]),$=j.useCallback(()=>R([D,C]),[R,D,C]);j.useEffect(()=>{F&&$()},[F,$]);const{onOpenChange:H,triggerPointerDownPosRef:W}=_;j.useEffect(()=>{if(C){let fe={x:0,y:0};const me=pe=>{fe={x:Math.abs(Math.round(pe.pageX)-(W.current?.x??0)),y:Math.abs(Math.round(pe.pageY)-(W.current?.y??0))}},le=pe=>{fe.x<=10&&fe.y<=10?pe.preventDefault():C.contains(pe.target)||H(!1),document.removeEventListener("pointermove",me),W.current=null};return W.current!==null&&(document.addEventListener("pointermove",me),document.addEventListener("pointerup",le,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",me),document.removeEventListener("pointerup",le,{capture:!0})}}},[C,H,W]),j.useEffect(()=>{const fe=()=>H(!1);return window.addEventListener("blur",fe),window.addEventListener("resize",fe),()=>{window.removeEventListener("blur",fe),window.removeEventListener("resize",fe)}},[H]);const[ae,B]=lq(fe=>{const me=z().filter(ve=>!ve.disabled),le=me.find(ve=>ve.ref.current===document.activeElement),pe=cq(me,fe,le);pe&&setTimeout(()=>pe.ref.current.focus())}),Y=j.useCallback((fe,me,le)=>{const pe=!q.current&&!le;(_.value!==void 0&&_.value===me||pe)&&(L(fe),pe&&(q.current=!0))},[_.value]),X=j.useCallback(()=>C?.focus(),[C]),J=j.useCallback((fe,me,le)=>{const pe=!q.current&&!le;(_.value!==void 0&&_.value===me||pe)&&I(fe)},[_.value]),ue=r==="popper"?NO:YB,he=ue===NO?{side:c,sideOffset:f,align:d,alignOffset:m,arrowPadding:h,collisionBoundary:g,collisionPadding:x,sticky:O,hideWhenDetached:b,avoidCollisions:S}:{};return v.jsx(KB,{scope:n,content:C,viewport:P,onViewportChange:E,itemRefCallback:Y,selectedItem:D,onItemLeave:X,itemTextRefCallback:J,focusSelectedItem:$,selectedItemText:U,position:r,isPositioned:F,searchRef:ae,children:v.jsx(oL,{as:Vhe,allowPinchZoom:!0,children:v.jsx(W6,{asChild:!0,trapped:_.open,onMountAutoFocus:fe=>{fe.preventDefault()},onUnmountAutoFocus:Fe(a,fe=>{_.trigger?.focus({preventScroll:!0}),fe.preventDefault()}),children:v.jsx(fA,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:o,onPointerDownOutside:l,onFocusOutside:fe=>fe.preventDefault(),onDismiss:()=>_.onOpenChange(!1),children:v.jsx(ue,{role:"listbox",id:_.contentId,"data-state":_.open?"open":"closed",dir:_.dir,onContextMenu:fe=>fe.preventDefault(),...A,...he,onPlaced:()=>K(!0),ref:T,style:{display:"flex",flexDirection:"column",outline:"none",...A.style},onKeyDown:Fe(A.onKeyDown,fe=>{const me=fe.ctrlKey||fe.altKey||fe.metaKey;if(fe.key==="Tab"&&fe.preventDefault(),!me&&fe.key.length===1&&B(fe.key),["ArrowUp","ArrowDown","Home","End"].includes(fe.key)){let pe=z().filter(ve=>!ve.disabled).map(ve=>ve.ref.current);if(["ArrowUp","End"].includes(fe.key)&&(pe=pe.slice().reverse()),["ArrowUp","ArrowDown"].includes(fe.key)){const ve=fe.target,ie=pe.indexOf(ve);pe=pe.slice(ie+1)}setTimeout(()=>R(pe)),fe.preventDefault()}})})})})})})});GB.displayName=Hhe;var Fhe="SelectItemAlignedPosition",YB=j.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...a}=e,o=lo(fs,n),l=co(fs,n),[c,f]=j.useState(null),[d,m]=j.useState(null),h=kt(t,T=>m(T)),g=Ig(n),x=j.useRef(!1),O=j.useRef(!0),{viewport:b,selectedItem:S,selectedItemText:A,focusSelectedItem:_}=l,C=j.useCallback(()=>{if(o.trigger&&o.valueNode&&c&&d&&b&&S&&A){const T=o.trigger.getBoundingClientRect(),D=d.getBoundingClientRect(),L=o.valueNode.getBoundingClientRect(),U=A.getBoundingClientRect();if(o.dir!=="rtl"){const ve=U.left-D.left,ie=L.left-ve,Re=T.left-ie,Pe=T.width+Re,nt=Math.max(Pe,D.width),Je=window.innerWidth-Hr,pt=v3(ie,[Hr,Math.max(Hr,Je-nt)]);c.style.minWidth=Pe+"px",c.style.left=pt+"px"}else{const ve=D.right-U.right,ie=window.innerWidth-L.right-ve,Re=window.innerWidth-T.right-ie,Pe=T.width+Re,nt=Math.max(Pe,D.width),Je=window.innerWidth-Hr,pt=v3(ie,[Hr,Math.max(Hr,Je-nt)]);c.style.minWidth=Pe+"px",c.style.right=pt+"px"}const I=g(),z=window.innerHeight-Hr*2,F=b.scrollHeight,K=window.getComputedStyle(d),q=parseInt(K.borderTopWidth,10),R=parseInt(K.paddingTop,10),$=parseInt(K.borderBottomWidth,10),H=parseInt(K.paddingBottom,10),W=q+R+F+H+$,ae=Math.min(S.offsetHeight*5,W),B=window.getComputedStyle(b),Y=parseInt(B.paddingTop,10),X=parseInt(B.paddingBottom,10),J=T.top+T.height/2-Hr,ue=z-J,he=S.offsetHeight/2,fe=S.offsetTop+he,me=q+R+fe,le=W-me;if(me<=J){const ve=I.length>0&&S===I[I.length-1].ref.current;c.style.bottom="0px";const ie=d.clientHeight-b.offsetTop-b.offsetHeight,Re=Math.max(ue,he+(ve?X:0)+ie+$),Pe=me+Re;c.style.height=Pe+"px"}else{const ve=I.length>0&&S===I[0].ref.current;c.style.top="0px";const Re=Math.max(J,q+b.offsetTop+(ve?Y:0)+he)+le;c.style.height=Re+"px",b.scrollTop=me-J+b.offsetTop}c.style.margin=`${Hr}px 0`,c.style.minHeight=ae+"px",c.style.maxHeight=z+"px",r?.(),requestAnimationFrame(()=>x.current=!0)}},[g,o.trigger,o.valueNode,c,d,b,S,A,o.dir,r]);_n(()=>C(),[C]);const[M,P]=j.useState();_n(()=>{d&&P(window.getComputedStyle(d).zIndex)},[d]);const E=j.useCallback(T=>{T&&O.current===!0&&(C(),_?.(),O.current=!1)},[C,_]);return v.jsx(Ghe,{scope:n,contentWrapper:c,shouldExpandOnScrollRef:x,onScrollButtonChange:E,children:v.jsx("div",{ref:f,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:M},children:v.jsx(it.div,{...a,ref:h,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}})})})});YB.displayName=Fhe;var Khe="SelectPopperPosition",NO=j.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:a=Hr,...o}=e,l=Lg(n);return v.jsx(p6,{...l,...o,ref:t,align:r,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)"}})});NO.displayName=Khe;var[Ghe,LP]=Oc(fs,{}),MO="SelectViewport",XB=j.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...a}=e,o=co(MO,n),l=LP(MO,n),c=kt(t,o.onViewportChange),f=j.useRef(0);return v.jsxs(v.Fragment,{children:[v.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:r}),v.jsx(kg.Slot,{scope:n,children:v.jsx(it.div,{"data-radix-select-viewport":"",role:"presentation",...a,ref:c,style:{position:"relative",flex:1,overflow:"hidden auto",...a.style},onScroll:Fe(a.onScroll,d=>{const m=d.currentTarget,{contentWrapper:h,shouldExpandOnScrollRef:g}=l;if(g?.current&&h){const x=Math.abs(f.current-m.scrollTop);if(x>0){const O=window.innerHeight-Hr*2,b=parseFloat(h.style.minHeight),S=parseFloat(h.style.height),A=Math.max(b,S);if(A<O){const _=A+x,C=Math.min(O,_),M=_-C;h.style.height=C+"px",h.style.bottom==="0px"&&(m.scrollTop=M>0?M:0,h.style.justifyContent="flex-end")}}}f.current=m.scrollTop})})})]})});XB.displayName=MO;var QB="SelectGroup",[Yhe,Xhe]=Oc(QB),Qhe=j.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,a=ed();return v.jsx(Yhe,{scope:n,id:a,children:v.jsx(it.div,{role:"group","aria-labelledby":a,...r,ref:t})})});Qhe.displayName=QB;var WB="SelectLabel",Whe=j.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,a=Xhe(WB,n);return v.jsx(it.div,{id:a.id,...r,ref:t})});Whe.displayName=WB;var Nm="SelectItem",[Zhe,ZB]=Oc(Nm),JB=j.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:a=!1,textValue:o,...l}=e,c=lo(Nm,n),f=co(Nm,n),d=c.value===r,[m,h]=j.useState(o??""),[g,x]=j.useState(!1),O=kt(t,_=>f.itemRefCallback?.(_,r,a)),b=ed(),S=j.useRef("touch"),A=()=>{a||(c.onValueChange(r),c.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return v.jsx(Zhe,{scope:n,value:r,disabled:a,textId:b,isSelected:d,onItemTextChange:j.useCallback(_=>{h(C=>C||(_?.textContent??"").trim())},[]),children:v.jsx(kg.ItemSlot,{scope:n,value:r,disabled:a,textValue:m,children:v.jsx(it.div,{role:"option","aria-labelledby":b,"data-highlighted":g?"":void 0,"aria-selected":d&&g,"data-state":d?"checked":"unchecked","aria-disabled":a||void 0,"data-disabled":a?"":void 0,tabIndex:a?void 0:-1,...l,ref:O,onFocus:Fe(l.onFocus,()=>x(!0)),onBlur:Fe(l.onBlur,()=>x(!1)),onClick:Fe(l.onClick,()=>{S.current!=="mouse"&&A()}),onPointerUp:Fe(l.onPointerUp,()=>{S.current==="mouse"&&A()}),onPointerDown:Fe(l.onPointerDown,_=>{S.current=_.pointerType}),onPointerMove:Fe(l.onPointerMove,_=>{S.current=_.pointerType,a?f.onItemLeave?.():S.current==="mouse"&&_.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Fe(l.onPointerLeave,_=>{_.currentTarget===document.activeElement&&f.onItemLeave?.()}),onKeyDown:Fe(l.onKeyDown,_=>{f.searchRef?.current!==""&&_.key===" "||(Ihe.includes(_.key)&&A(),_.key===" "&&_.preventDefault())})})})})});JB.displayName=Nm;var Lu="SelectItemText",eq=j.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:a,...o}=e,l=lo(Lu,n),c=co(Lu,n),f=ZB(Lu,n),d=qhe(Lu,n),[m,h]=j.useState(null),g=kt(t,A=>h(A),f.onItemTextChange,A=>c.itemTextRefCallback?.(A,f.value,f.disabled)),x=m?.textContent,O=j.useMemo(()=>v.jsx("option",{value:f.value,disabled:f.disabled,children:x},f.value),[f.disabled,f.value,x]),{onNativeOptionAdd:b,onNativeOptionRemove:S}=d;return _n(()=>(b(O),()=>S(O)),[b,S,O]),v.jsxs(v.Fragment,{children:[v.jsx(it.span,{id:f.textId,...o,ref:g}),f.isSelected&&l.valueNode&&!l.valueNodeHasChildren?Jf.createPortal(o.children,l.valueNode):null]})});eq.displayName=Lu;var tq="SelectItemIndicator",nq=j.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return ZB(tq,n).isSelected?v.jsx(it.span,{"aria-hidden":!0,...r,ref:t}):null});nq.displayName=tq;var DO="SelectScrollUpButton",rq=j.forwardRef((e,t)=>{const n=co(DO,e.__scopeSelect),r=LP(DO,e.__scopeSelect),[a,o]=j.useState(!1),l=kt(t,r.onScrollButtonChange);return _n(()=>{if(n.viewport&&n.isPositioned){let c=function(){const d=f.scrollTop>0;o(d)};const f=n.viewport;return c(),f.addEventListener("scroll",c),()=>f.removeEventListener("scroll",c)}},[n.viewport,n.isPositioned]),a?v.jsx(iq,{...e,ref:l,onAutoScroll:()=>{const{viewport:c,selectedItem:f}=n;c&&f&&(c.scrollTop=c.scrollTop-f.offsetHeight)}}):null});rq.displayName=DO;var RO="SelectScrollDownButton",aq=j.forwardRef((e,t)=>{const n=co(RO,e.__scopeSelect),r=LP(RO,e.__scopeSelect),[a,o]=j.useState(!1),l=kt(t,r.onScrollButtonChange);return _n(()=>{if(n.viewport&&n.isPositioned){let c=function(){const d=f.scrollHeight-f.clientHeight,m=Math.ceil(f.scrollTop)<d;o(m)};const f=n.viewport;return c(),f.addEventListener("scroll",c),()=>f.removeEventListener("scroll",c)}},[n.viewport,n.isPositioned]),a?v.jsx(iq,{...e,ref:l,onAutoScroll:()=>{const{viewport:c,selectedItem:f}=n;c&&f&&(c.scrollTop=c.scrollTop+f.offsetHeight)}}):null});aq.displayName=RO;var iq=j.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...a}=e,o=co("SelectScrollButton",n),l=j.useRef(null),c=Ig(n),f=j.useCallback(()=>{l.current!==null&&(window.clearInterval(l.current),l.current=null)},[]);return j.useEffect(()=>()=>f(),[f]),_n(()=>{c().find(m=>m.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[c]),v.jsx(it.div,{"aria-hidden":!0,...a,ref:t,style:{flexShrink:0,...a.style},onPointerDown:Fe(a.onPointerDown,()=>{l.current===null&&(l.current=window.setInterval(r,50))}),onPointerMove:Fe(a.onPointerMove,()=>{o.onItemLeave?.(),l.current===null&&(l.current=window.setInterval(r,50))}),onPointerLeave:Fe(a.onPointerLeave,()=>{f()})})}),Jhe="SelectSeparator",epe=j.forwardRef((e,t)=>
370{const{__scopeSelect:n,...r}=e;return v.jsx(it.div,{"aria-hidden":!0,...r,ref:t})});epe.displayName=Jhe;var kO="SelectArrow",tpe=j.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,a=Lg(n),o=lo(kO,n),l=co(kO,n);return o.open&&l.position==="popper"?v.jsx(m6,{...a,...r,ref:t}):null});tpe.displayName=kO;var npe="SelectBubbleInput",oq=j.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const a=j.useRef(null),o=kt(r,a),l=Rhe(t);return j.useEffect(()=>{const c=a.current;if(!c)return;const f=window.HTMLSelectElement.prototype,m=Object.getOwnPropertyDescriptor(f,"value").set;if(l!==t&&m){const h=new Event("change",{bubbles:!0});m.call(c,t),c.dispatchEvent(h)}},[l,t]),v.jsx(it.select,{...n,style:{...v6,...n.style},ref:o,defaultValue:t})});oq.displayName=npe;function sq(e){return e===""||e===void 0}function lq(e){const t=Wi(e),n=j.useRef(""),r=j.useRef(0),a=j.useCallback(l=>{const c=n.current+l;t(c),(function f(d){n.current=d,window.clearTimeout(r.current),d!==""&&(r.current=window.setTimeout(()=>f(""),1e3))})(c)},[t]),o=j.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return j.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,a,o]}function cq(e,t,n){const a=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,o=n?e.indexOf(n):-1;let l=rpe(e,Math.max(o,0));a.length===1&&(l=l.filter(d=>d!==n));const f=l.find(d=>d.textValue.toLowerCase().startsWith(a.toLowerCase()));return f!==n?f:void 0}function rpe(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var ape=$B,ipe=qB,ope=UB,spe=HB,lpe=VB,cpe=FB,upe=XB,fpe=JB,dpe=eq,hpe=nq,ppe=rq,mpe=aq;function y3({...e}){return v.jsx(ape,{"data-loc":"client/src/components/ui/select.tsx:10","data-slot":"select",...e})}function b3({...e}){return v.jsx(ope,{"data-loc":"client/src/components/ui/select.tsx:22","data-slot":"select-value",...e})}function x3({className:e,size:t="default",children:n,...r}){return v.jsxs(ipe,{"data-loc":"client/src/components/ui/select.tsx:34","data-slot":"select-trigger","data-size":t,className:It("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...r,children:[n,v.jsx(spe,{"data-loc":"client/src/components/ui/select.tsx:44",asChild:!0,children:v.jsx($6,{"data-loc":"client/src/components/ui/select.tsx:45",className:"size-4 opacity-50"})})]})}function w3({className:e,children:t,position:n="popper",align:r="center",...a}){return v.jsx(lpe,{"data-loc":"client/src/components/ui/select.tsx:59",children:v.jsxs(cpe,{"data-loc":"client/src/components/ui/select.tsx:60","data-slot":"select-content",className:It("bg-popover text-popover-foreground 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 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",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,align:r,...a,children:[v.jsx(gpe,{"data-loc":"client/src/components/ui/select.tsx:72"}),v.jsx(upe,{"data-loc":"client/src/components/ui/select.tsx:73",className:It("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:t}),v.jsx(vpe,{"data-loc":"client/src/components/ui/select.tsx:82"})]})})}function Io({className:e,children:t,...n}){return v.jsxs(fpe,{"data-loc":"client/src/components/ui/select.tsx:107","data-slot":"select-item",className:It("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...n,children:[v.jsx("span",{"data-loc":"client/src/components/ui/select.tsx:115",className:"absolute right-2 flex size-3.5 items-center justify-center",children:v.jsx(hpe,{"data-loc":"client/src/components/ui/select.tsx:116",children:v.jsx(jY,{"data-loc":"client/src/components/ui/select.tsx:117",className:"size-4"})})}),v.jsx(dpe,{"data-loc":"client/src/components/ui/select.tsx:120",children:t})]})}function gpe({className:e,...t}){return v.jsx(ppe,{"data-loc":"client/src/components/ui/select.tsx:143","data-slot":"select-scroll-up-button",className:It("flex cursor-default items-center justify-center py-1",e),...t,children:v.jsx(NY,{"data-loc":"client/src/components/ui/select.tsx:151",className:"size-4"})})}function vpe({className:e,...t}){return v.jsx(mpe,{"data-loc":"client/src/components/ui/select.tsx:161","data-slot":"select-scroll-down-button",className:It("flex cursor-default items-center justify-center py-1",e),...t,children:v.jsx($6,{"data-loc":"client/src/components/ui/select.tsx:169",className:"size-4"})})}const ype=[{id:"demo-1",name:"ã¬ã·ã©ã ex SAR PSA10 塿± ",coverImageUrl:"/manus-storage/card-reshiram-ex-sar_9638e5aa.png",priceHkd:"180",totalSlots:100,isSoldOut:!1,returnRate:100,totalValueHkd:"18000"},{id:"demo-2",name:"ãã«ãã¥ã¦ex SAR æ¶æ
¶å
¸å¡æ± ",coverImageUrl:"/manus-storage/card-pikachu-ex-psa10_d3ab2995.png",priceHkd:"280",totalSlots:50,isSoldOut:!1,returnRate:100,totalValueHkd:"14000"},{id:"demo-3",name:"ãªã¶ã¼ãã³ex SAR PSA10 塿± ",coverImageUrl:"/manus-storage/card-charizard-ex-sar_4f40ed66.png",priceHkd:"350",totalSlots:80,isSoldOut:!1,returnRate:100,totalValueHkd:"28000"},{id:"demo-4",name:"ãªã¼ãªã¨ã®æ±ºå¿ SAR 塿± ",coverImageUrl:"/manus-storage/card-lillie-sar_741fcb20.png",priceHkd:"150",totalSlots:120,isSoldOut:!0,returnRate:100,totalValueHkd:"18000"},{id:"demo-5",name:"ãã«ãã¥ã¦ex Crystal SAR 塿± ",coverImageUrl:"/manus-storage/card-pikachu-ex-sar-crystal_113278cd.png",priceHkd:"220",totalSlots:60,isSoldOut:!1,returnRate:100,totalValueHkd:"13200"}];function bpe(){const[e,t]=j.useState("newest"),[n,r]=j.useState("all"),{data:a,isLoading:o}=dt.oripa.list.useQuery(),c=[...a&&a.length>0?a:ype].filter(f=>n==="available"?!f.isSoldOut:n==="soldout"?f.isSoldOut:!0).sort((f,d)=>e==="price-asc"?Number(f.priceHkd)-Number(d.priceHkd):e==="price-desc"?Number(d.priceHkd)-Number(f.priceHkd):e==="oldest"?new Date(f.createdAt).getTime()-new Date(d.createdAt).getTime():new Date(d.createdAt).getTime()-new Date(f.createdAt).getTime());return v.jsxs("div",{"data-loc":"client/src/pages/OripaPage.tsx:85",className:"container py-10",children:[v.jsxs("div",{"data-loc":"client/src/pages/OripaPage.tsx:87",className:"mb-8 rounded-2xl overflow-hidden relative",children:[v.jsx("img",{"data-loc":"client/src/pages/OripaPage.tsx:88",src:"/manus-storage/oripa-banner-v2_e700a001.png",alt:"PSA10 å
¨ä¿è ç¦è¢å¡æ± ",className:"w-full object-cover max-h-80 rounded-2xl",style:{objectPosition:"center top"}}),v.jsx("div",{"data-loc":"client/src/pages/OripaPage.tsx:94",className:"absolute inset-0 bg-gradient-to-t from-background/60 via-trans
370parent to-transparent rounded-2xl"})]}),v.jsxs("div",{"data-loc":"client/src/pages/OripaPage.tsx:98",className:"mb-8",children:[v.jsxs("div",{"data-loc":"client/src/pages/OripaPage.tsx:99",className:"flex items-center gap-3 mb-2",children:[v.jsx(Nr,{"data-loc":"client/src/pages/OripaPage.tsx:100",className:"w-6 h-6 text-primary"}),v.jsx("h1",{"data-loc":"client/src/pages/OripaPage.tsx:101",className:"font-display text-3xl font-bold text-gold-gradient",children:"Oripa ç¦è¢å¡æ± "})]}),v.jsx("p",{"data-loc":"client/src/pages/OripaPage.tsx:103",className:"text-muted-foreground",children:"100% éåçä¿è · PSA 10 æ¥çå¡ç · æ¯å£å«é¨æ©æ£å
"})]}),v.jsxs("div",{"data-loc":"client/src/pages/OripaPage.tsx:107",className:"flex flex-wrap gap-3 mb-8",children:[v.jsxs("div",{"data-loc":"client/src/pages/OripaPage.tsx:108",className:"flex items-center gap-2",children:[v.jsx(kY,{"data-loc":"client/src/pages/OripaPage.tsx:109",className:"w-4 h-4 text-muted-foreground"}),v.jsx("span",{"data-loc":"client/src/pages/OripaPage.tsx:110",className:"text-sm text-muted-foreground",children:"篩é¸ï¼"})]}),v.jsxs(y3,{"data-loc":"client/src/pages/OripaPage.tsx:112",value:n,onValueChange:f=>r(f),children:[v.jsx(x3,{"data-loc":"client/src/pages/OripaPage.tsx:113",className:"w-36 bg-secondary/50 border-border/50 text-sm",children:v.jsx(b3,{"data-loc":"client/src/pages/OripaPage.tsx:114"})}),v.jsxs(w3,{"data-loc":"client/src/pages/OripaPage.tsx:116",className:"bg-card border-border/50",children:[v.jsx(Io,{"data-loc":"client/src/pages/OripaPage.tsx:117",value:"all",children:"å
¨é¨åå"}),v.jsx(Io,{"data-loc":"client/src/pages/OripaPage.tsx:118",value:"available",children:"ç¾è²¨å¯è³¼"}),v.jsx(Io,{"data-loc":"client/src/pages/OripaPage.tsx:119",value:"soldout",children:"å®ç½"})]})]}),v.jsxs(y3,{"data-loc":"client/src/pages/OripaPage.tsx:122",value:e,onValueChange:f=>t(f),children:[v.jsx(x3,{"data-loc":"client/src/pages/OripaPage.tsx:123",className:"w-44 bg-secondary/50 border-border/50 text-sm",children:v.jsx(b3,{"data-loc":"client/src/pages/OripaPage.tsx:124"})}),v.jsxs(w3,{"data-loc":"client/src/pages/OripaPage.tsx:126",className:"bg-card border-border/50",children:[v.jsx(Io,{"data-loc":"client/src/pages/OripaPage.tsx:127",value:"newest",children:"䏿¶æéï¼æ°âèï¼"}),v.jsx(Io,{"data-loc":"client/src/pages/OripaPage.tsx:128",value:"oldest",children:"䏿¶æéï¼èâæ°ï¼"}),v.jsx(Io,{"data-loc":"client/src/pages/OripaPage.tsx:129",value:"price-asc",children:"广 ¼ï¼ä½âé«ï¼"}),v.jsx(Io,{"data-loc":"client/src/pages/OripaPage.tsx:130",value:"price-desc",children:"广 ¼ï¼é«âä½ï¼"})]})]}),a&&a.length===0&&v.jsx("span",{"data-loc":"client/src/pages/OripaPage.tsx:134",className:"text-xs text-muted-foreground/60 self-center ml-2",children:"ï¼ç¤ºç¯å¡æ± ï¼ç®¡çå¡å¯å¨å¾å°æ°å¢ç實ååï¼"})]}),o?v.jsx("div",{"data-loc":"client/src/pages/OripaPage.tsx:140",className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6",children:Array.from({length:8}).map((f,d)=>v.jsx("div",{"data-loc":"client/src/pages/OripaPage.tsx:141",className:"h-80 rounded-2xl bg-card animate-pulse"},d))}):v.jsx("div",{"data-loc":"client/src/pages/OripaPage.tsx:144",className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6",children:c.length===0?v.jsxs("div",{"data-loc":"client/src/pages/OripaPage.tsx:146",className:"col-span-full text-center py-20",children:[v.jsx(Nr,{"data-loc":"client/src/pages/OripaPage.tsx:147",className:"w-16 h-16 text-muted-foreground/30 mx-auto mb-4"}),v.jsx("p",{"data-loc":"client/src/pages/OripaPage.tsx:148",className:"text-muted-foreground",children:"æ«ç¡ç¬¦åæ¢ä»¶çç¦è¢åå"})]}):c.map(f=>v.jsx(Le,{"data-loc":"client/src/pages/OripaPage.tsx:151",href:f.id?.toString().startsWith("demo-")?"/oripa":`/oripa/${f.id}`,children:v.jsxs("div",{"data-loc":"client/src/pages/OripaPage.tsx:152",className:"group rounded-2xl overflow-hidden bg-card border border-border/40 card-glow cursor-pointer transition-all duration-300 hover:-translate-y-1",children:[v.jsxs("div",{"data-loc":"client/src/pages/OripaPage.tsx:153",className:"relative aspect-square overflow-hidden bg-secondary",children:[f.coverImageUrl?v.jsx("img",{"data-loc":"client/src/pages/OripaPage.tsx:155",src:f.coverImageUrl,alt:f.name,className:"w-full h-full object-cover object-top group-hover:scale-105 transition-transform duration-500"}):v.jsx("div",{"data-loc":"client/src/pages/OripaPage.tsx:157",className:"w-full h-full flex items-center justify-center bg-gradient-to-br from-secondary to-secondary/30",children:v.jsx(Nr,{"data-loc":"client/src/pages/OripaPage.tsx:158",className:"w-20 h-20 text-muted-foreground
370/20"})}),f.isSoldOut&&v.jsx("div",{"data-loc":"client/src/pages/OripaPage.tsx:162",className:"absolute inset-0 bg-background/70 flex items-center justify-center",children:v.jsx(ur,{"data-loc":"client/src/pages/OripaPage.tsx:163",className:"bg-destructive/80 text-white text-sm px-4 py-1.5",children:"å®ç½"})}),f.returnRate&&!f.isSoldOut&&v.jsx("div",{"data-loc":"client/src/pages/OripaPage.tsx:167",className:"absolute top-3 left-3",children:v.jsxs(ur,{"data-loc":"client/src/pages/OripaPage.tsx:168",className:"bg-primary/90 text-primary-foreground text-xs font-semibold",children:[f.returnRate,"% éåç"]})})]}),v.jsxs("div",{"data-loc":"client/src/pages/OripaPage.tsx:172",className:"p-4",children:[v.jsx("h3",{"data-loc":"client/src/pages/OripaPage.tsx:173",className:"font-semibold text-foreground truncate group-hover:text-primary transition-colors text-sm",children:f.name}),v.jsxs("div",{"data-loc":"client/src/pages/OripaPage.tsx:174",className:"flex items-center justify-between mt-2",children:[v.jsxs("span",{"data-loc":"client/src/pages/OripaPage.tsx:175",className:"text-primary font-bold",children:["HKD $",Number(f.priceHkd).toLocaleString()]}),v.jsxs("span",{"data-loc":"client/src/pages/OripaPage.tsx:176",className:"text-xs text-muted-foreground",children:["å
± ",f.totalSlots," å£"]})]}),f.totalValueHkd&&v.jsxs("p",{"data-loc":"client/src/pages/OripaPage.tsx:179",className:"text-xs text-muted-foreground mt-1.5",children:["ç¸½å¼ HKD $",Number(f.totalValueHkd).toLocaleString()]})]})]})},f.id))})]})}function xpe(){const[,e]=jA("/oripa/:id"),t=Number(e?.id),{isAuthenticated:n}=li(),{addItem:r,removeItem:a,isInCart:o,items:l}=EA(),{data:c,isLoading:f}=dt.oripa.getById.useQuery({id:t},{enabled:!!t}),{data:d=[]}=dt.oripa.getSoldSlots.useQuery({productId:t},{enabled:!!t,refetchInterval:1e4});if(f)return v.jsxs("div",{"data-loc":"client/src/pages/OripaDetailPage.tsx:25",className:"container py-10",children:[v.jsx("div",{"data-loc":"client/src/pages/OripaDetailPage.tsx:26",className:"h-8 w-48 bg-card animate-pulse rounded mb-6"}),v.jsxs("div",{"data-loc":"client/src/pages/OripaDetailPage.tsx:27",className:"grid grid-cols-1 lg:grid-cols-2 gap-8",children:[v.jsx("div",{"data-loc":"client/src/pages/OripaDetailPage.tsx:28",className:"aspect-square bg-card animate-pulse rounded-2xl"}),v.jsx("div",{"data-loc":"client/src/pages/OripaDetailPage.tsx:29",className:"space-y-4",children:Array.from({length:5}).map((O,b)=>v.jsx("div",{"data-loc":"client/src/pages/OripaDetailPage.tsx:30",className:"h-12 bg-card animate-pulse rounded-xl"},b))})]})]});if(!c)return v.jsx("div",{"data-loc":"client/src/pages/OripaDetailPage.tsx:37",className:"container py-20 text-center text-muted-foreground",children:"æ¾ä¸å°æ¤ç¦è¢"});const m=c.prizes??[],h=c.slotContents??[],g=l.filter(O=>O.productId===t).map(O=>O.slotNumber),x=O=>{if(!d.includes(O)){if(!n){An.info("è«å
ç»å
¥æè½é¸è³¼è碼"),ei();return}c.isSoldOut||(o(t,O)?a(t,O):(r({productId:t,productName:c.name,slotNumber:O,priceHkd:Number(c.priceHkd),coverImageUrl:c.coverImageUrl??void 0}),An.success(`å·²å å
¥è³¼ç©è»ï¼è碼 ${O}`)))}};return v.jsxs("div",{"data-loc":"client/src/pages/OripaDetailPage.tsx:66",className:"container py-10",children:[v.jsx(Le,{"data-loc":"client/src/pages/OripaDetailPage.tsx:67",href:"/oripa",children:v.jsxs(je,{"data-loc":"client/src/pages/OripaDetailPage.tsx:68",variant:"ghost",size:"sm",className:"mb-6 gap-2 text-muted-foreground",children:[v.jsx(nd,{"data-loc":"client/src/pages/OripaDetailPage.tsx:69",className:"w-4 h-4"})," è¿å塿± ç®é"]})}),v.jsxs("div",{"data-loc":"client/src/pages/OripaDetailPage.tsx:73",className:"grid grid-cols-1 lg:grid-cols-2 gap-10",children:[v.jsxs("div",{"data-loc":"client/src/pages/OripaDetailPage.tsx:75",children:[v.jsx("div",{"data-loc":"client/src/pages/OripaDetailPage.tsx:76",className:"rounded-2xl overflow-hidden bg-secondary border border-border/40 aspect-square",children:c.coverImageUrl?v.jsx("img",{"data-loc":"client/src/pages/OripaDetailPage.tsx:78",src:c.coverImageUrl,alt:c.name,className:"w-full h-full object-cover"}):v.jsx("div",{"data-loc":"client/src/pages/OripaDetailPage.tsx:80",className:"w-full h-full flex items-center justify-center",children:v.jsx(Nr,{"data-loc":"client/src/pages/OripaDetailPage.tsx:81",className:"w-24 h-24 text-muted-foreground
370/20"})})}),m.length>0&&v.jsxs(xn,{"data-loc":"client/src/pages/OripaDetailPage.tsx:87",className:"mt-6 bg-card border-border/50",children:[v.jsx(of,{"data-loc":"client/src/pages/OripaDetailPage.tsx:88",className:"pb-3",children:v.jsxs(sf,{"data-loc":"client/src/pages/OripaDetailPage.tsx:89",className:"flex items-center gap-2 text-base",children:[v.jsx(HY,{"data-loc":"client/src/pages/OripaDetailPage.tsx:90",className:"w-4 h-4 text-primary"}),"ç¦è¢çåä¸è¦½"]})}),v.jsxs(wn,{"data-loc":"client/src/pages/OripaDetailPage.tsx:94",className:"space-y-2",children:[m.map((O,b)=>v.jsxs("div",{"data-loc":"client/src/pages/OripaDetailPage.tsx:96",className:"flex items-center justify-between p-2.5 rounded-lg bg-secondary/50",children:[v.jsxs("div",{"data-loc":"client/src/pages/OripaDetailPage.tsx:97",className:"flex items-center gap-2",children:[v.jsx(ur,{"data-loc":"client/src/pages/OripaDetailPage.tsx:98",variant:"outline",className:"text-xs border-primary/40 text-primary",children:O.rank}),v.jsx("span",{"data-loc":"client/src/pages/OripaDetailPage.tsx:99",className:"text-sm text-foreground",children:O.name})]}),v.jsxs("span",{"data-loc":"client/src/pages/OripaDetailPage.tsx:101",className:"text-xs text-muted-foreground",children:["âHKD$",O.valueHkd.toLocaleString()]})]},b)),c.totalValueHkd&&v.jsxs("div",{"data-loc":"client/src/pages/OripaDetailPage.tsx:105",className:"pt-2 border-t border-border/30",children:[v.jsxs("p",{"data-loc":"client/src/pages/OripaDetailPage.tsx:106",className:"text-sm font-semibold text-primary text-right",children:["總å¼è¶
é HKD$",Number(c.totalValueHkd).toLocaleString(),"ï¼"]}),c.returnRate&&v.jsxs("p",{"data-loc":"client/src/pages/OripaDetailPage.tsx:107",className:"text-xs text-muted-foreground text-right mt-0.5",children:["*éåç ",c.returnRate,"% æææåå總å¸å¼çæ¼åç¦è¢ç¸½å¹"]})]})]})]})]}),v.jsxs("div",{"data-loc":"client/src/pages/OripaDetailPage.tsx:116",children:[v.jsxs("div",{"data-loc":"client/src/pages/OripaDetailPage.tsx:117",className:"flex items-start justify-between gap-4 mb-4",children:[v.jsx("h1",{"data-loc":"client/src/pages/OripaDetailPage.tsx:118",className:"font-display text-2xl font-bold text-foreground",children:c.name}),c.isSoldOut&&v.jsx(ur,{"data-loc":"client/src/pages/OripaDetailPage.tsx:119",className:"bg-destructive/80 text-white shrink-0",children:"å®ç½"})]}),h.length>0&&v.jsx(xn,{"data-loc":"client/src/pages/OripaDetailPage.tsx:124",className:"mb-5 bg-secondary/30 border-border/30",children:v.jsxs(wn,{"data-loc":"client/src/pages/OripaDetailPage.tsx:125",className:"p-4",children:[v.jsx("p",{"data-loc":"client/src/pages/OripaDetailPage.tsx:126",className:"text-sm font-semibold text-foreground mb-2",children:"æ¯å£å«æ"}),v.jsx("ul",{"data-loc":"client/src/pages/OripaDetailPage.tsx:127",className:"space-y-1",children:h.map((O,b)=>v.jsxs("li",{"data-loc":"client/src/pages/OripaDetailPage.tsx:129",className:"text-sm text-muted-foreground flex items-center gap-2",children:[v.jsx(q6,{"data-loc":"client/src/pages/OripaDetailPage.tsx:130",className:"w-3.5 h-3.5 text-primary shrink-0"}),O.name," à ",O.quantity]},b))})]})}),c.description&&v.jsx("p",{"data-loc":"client/src/pages/OripaDetailPage.tsx:140",className:"text-sm text-muted-foreground mb-5 leading-relaxed",children:c.description}),v.jsxs("div",{"data-loc":"client/src/pages/OripaDetailPage.tsx:144",className:"flex items-center gap-4 mb-6",children:[v.jsxs("span",{"data-loc":"client/src/pages/OripaDetailPage.tsx:145",className:"font-display text-3xl font-bold text-primary",children:["HKD $",Number(c.priceHkd).toLocaleString()]}),v.jsx("span",{"data-loc":"client/src/pages/OripaDetailPage.tsx:146",className:"text-muted-foreground text-sm",children:"/ å£"})]}),v.jsxs("div",{"data-loc":"client/src/pages/OripaDetailPage.tsx:150",className:"mb-6",children:[v.jsxs("div",{"data-loc":"client/src/pages/OripaDetailPage.tsx:151",className:"flex items-center justify-between mb-3",children:[v.jsx("p",{"data-loc":"client/src/pages/OripaDetailPage.tsx:152",className:"text-sm font-semibold text-foreground",children:"è«é¸æè碼ï¼å¯è¤é¸ï¼"}),v.jsxs("p",{"data-loc":"client/src/pages/OripaDetailPage.tsx:155",className:"text-xs text-muted-foreground",children:["å·²å® ",d.length," / ",c.totalSlots," å£"]})]}),v.jsx("div",{"data-loc":"client/src/pages/OripaDetailPage.tsx:159",className:"grid gap-2",style:{gridTemplateColumns:"repeat(auto-fill, minmax(52px, 1fr))"},children:Array.from({length:c.totalSlots},(O,b)=>b+1).map(O=>{const b=d.includes(O),S=o(t,O);return v.jsx("button",{"data-loc":"client/src/pages/OripaDetailPage.tsx:164",onClick:()=>x(O),disabled:b,className:It("h-12 rounded-lg text-sm font-semibold border transition-all duration-150",b?"slot-sold":S?"slot-selected":"slot-available"),children:O},O)})}),v.jsxs("div",{"data-loc":"client/src/pages/OripaDetailPage.tsx:178",className:"flex gap-4 mt-3 text-xs text-muted-foreground",children:[v.jsxs("span",{"data-loc":"client/src/pages/OripaDetailPage.tsx:179",className:"flex items-center gap-1.5",children:[v.jsx("span",{"data-loc":"client/src/pages/OripaDetailPage.tsx:179",className:"w-3 h-3 rounded bg-primary/20 border border-primary inline-block"}),"å·²é¸"]}),v.jsxs("span",{"data-loc":"client/src/pages/OripaDetailPage.tsx:180",className:"flex items-center gap-1.5",children:[v.jsx("span",{"data-loc":"client/src/pages/OripaDetailPage.tsx:180",className:"w-3 h-3 rounded bg-secondary border border-border inline-block"}),"å¯é¸"]}),v.jsxs("span",{"data-loc":"client/src/pages/OripaDetailPage.tsx:181",className:"flex items-center gap-1.5",children:[v.jsx("span",{"data-loc":"client/src/pages/OripaDetailPage.tsx:181",className:"w-3 h-3 rounded bg-muted/50 opacity-50 inline-block"}),"å®ç½"]})]})]}),g.length>0&&v.jsxs("div",{"data-loc":"client/src/pages/OripaDetailPage.tsx:187",className:"p-4 rounded-xl bg-primary/10 border border-primary/30 mb-4",children:[v.jsxs("p",{"data-loc":"client/src/pages/OripaDetailPage.tsx:188",className:"text-sm text-primary font-medium mb-1",children:["å·²é¸ ",g.length," å£ï¼",g.join(", ")
370]}),v.jsxs("p",{"data-loc":"client/src/pages/OripaDetailPage.tsx:189",className:"text-xs text-muted-foreground",children:["å°è¨ï¼HKD $",(g.length*Number(c.priceHkd)).toLocaleString()]})]}),c.isSoldOut?v.jsx(je,{"data-loc":"client/src/pages/OripaDetailPage.tsx:194",disabled:!0,className:"w-full",size:"lg",children:"æ¤ååå·²å®ç½"}):v.jsx(Le,{"data-loc":"client/src/pages/OripaDetailPage.tsx:196",href:"/cart",children:v.jsxs(je,{"data-loc":"client/src/pages/OripaDetailPage.tsx:197",className:"w-full bg-primary text-primary-foreground hover:bg-primary/90 gap-2 font-semibold",size:"lg",disabled:g.length===0,children:[v.jsx(AA,{"data-loc":"client/src/pages/OripaDetailPage.tsx:202",className:"w-5 h-5"}),"åå¾è³¼ç©è» ",g.length>0?`(${g.length} å£)`:""]})})]})]})]})}function wpe(){const{items:e,removeItem:t,clearCart:n,totalCount:r,totalPrice:a}=EA(),{isAuthenticated:o}=li(),l=dt.orders.checkout.useMutation(),c=async()=>{if(!o){An.info("è«å
ç»å
¥æè½çµå¸³"),ei();return}if(e.length)try{An.info("æ£å¨å»ºç«çµå¸³é é¢â¦");const d=await l.mutateAsync({items:e.map(m=>({productId:m.productId,productName:m.productName,slotNumber:m.slotNumber,priceHkd:m.priceHkd})),origin:window.location.origin});d.checkoutUrl&&(n(),window.open(d.checkoutUrl,"_blank"),An.success("å·²éå Stripe çµå¸³é é¢ï¼è«å¨æ°åé 宿仿¬¾"))}catch(d){An.error(d.message??"çµå¸³å¤±æï¼è«ç¨å¾å試")}};if(!e.length)return v.jsxs("div",{"data-loc":"client/src/pages/CartPage.tsx:46",className:"container py-20 text-center",children:[v.jsx(AA,{"data-loc":"client/src/pages/CartPage.tsx:47",className:"w-16 h-16 text-muted-foreground/30 mx-auto mb-4"}),v.jsx("h1",{"data-loc":"client/src/pages/CartPage.tsx:48",className:"font-display text-2xl font-bold text-foreground mb-2",children:"è³¼ç©è»æ¯ç©ºç"}),v.jsx("p",{"data-loc":"client/src/pages/CartPage.tsx:49",className:"text-muted-foreground mb-6",children:"å»é¸è³¼ä½ åæ¡çç¦è¢è碼å§ï¼"}),v.jsx(Le,{"data-loc":"client/src/pages/CartPage.tsx:50",href:"/oripa",children:v.jsxs(je,{"data-loc":"client/src/pages/CartPage.tsx:51",className:"bg-primary text-primary-foreground gap-2",children:[v.jsx(Nr,{"data-loc":"client/src/pages/CartPage.tsx:52",className:"w-4 h-4"}),"ç覽ç¦è¢å¡æ± "]})})]});const f=e.reduce((d,m)=>{const h=m.productId;return d[h]||(d[h]={productName:m.productName,coverImageUrl:m.coverImageUrl,priceHkd:m.priceHkd,slots:[]}),d[h].slots.push(m.slotNumber),d},{});return v.jsxs("div",{"data-loc":"client/src/pages/CartPage.tsx:68",className:"container py-10 max-w-3xl",children:[v.jsx(Le,{"data-loc":"client/src/pages/CartPage.tsx:69",href:"/oripa",children:v.jsxs(je,{"data-loc":"client/src/pages/CartPage.tsx:70",variant:"ghost",size:"sm",className:"mb-6 gap-2 text-muted-foreground",children:[v.jsx(nd,{"data-loc":"client/src/pages/CartPage.tsx:71",className:"w-4 h-4"})," ç¹¼çºé¸è³¼"]})}),v.jsx("h1",{"data-loc":"client/src/pages/CartPage.tsx:74",className:"font-display text-2xl font-bold text-gold-gradient mb-6",children:"è³¼ç©è»"}),v.jsx("div",{"data-loc":"client/src/pages/CartPage.tsx:76",className:"space-y-4 mb-8",children:Object.entries(f).map(([d,m])=>v.jsx(xn,{"data-loc":"client/src/pages/CartPage.tsx:78",className:"bg-card border-border/50",children:v.jsx(wn,{"data-loc":"client/src/pages/CartPage.tsx:79",className:"p-4",children:v.jsxs("div",{"data-loc":"client/src/pages/CartPage.tsx:80",className:"flex items-start gap-4",children:[v.jsx("div",{"data-loc":"client/src/pages/CartPage.tsx:81",className:"w-16 h-16 rounded-lg overflow-hidden bg-secondary shrink-0",children:m.coverImageUrl?v.jsx("img",{"data-loc":"client/src/pages/CartPage.tsx:83",src:m.coverImageUrl,alt:m.productName,className:"w-full h-full object-cover"}):v.jsx("div",{"data-loc":"client/src/pages/CartPage.tsx:85",className:"w-full h-full flex items-center justify-center",children:v.jsx(Nr,{"data-loc":"client/src/pages/CartPage.tsx:86",className:"w-6 h-6 text-muted-foreground/30"})})}),v.jsxs("div",{"data-loc":"client/src/pages/CartPage.tsx:90",className:"flex-1 min-w-0",children:[v.jsx("p",{"data-loc":"client/src/pages/CartPage.tsx:91",className:"font-semibold text-foreground truncate",children:m.productName}),v.jsxs("p",{"data-loc":"client/src/pages/CartPage.tsx:92",className:"text-sm text-muted-foreground mt-1",children:["è碼ï¼",m.slots.sort((h,g)=>
370h-g).join(", ")]}),v.jsxs("p",{"data-loc":"client/src/pages/CartPage.tsx:95",className:"text-primary font-bold mt-1",children:["HKD $",(m.slots.length*m.priceHkd).toLocaleString(),v.jsxs("span",{"data-loc":"client/src/pages/CartPage.tsx:97",className:"text-xs text-muted-foreground font-normal ml-1",children:["(",m.slots.length," å£ Ã $",m.priceHkd,")"]})]})]}),v.jsx(je,{"data-loc":"client/src/pages/CartPage.tsx:102",variant:"ghost",size:"icon",className:"text-muted-foreground hover:text-destructive shrink-0",onClick:()=>m.slots.forEach(h=>t(Number(d),h)),children:v.jsx(Mp,{"data-loc":"client/src/pages/CartPage.tsx:108",className:"w-4 h-4"})})]})})},d))}),v.jsx(xn,{"data-loc":"client/src/pages/CartPage.tsx:116",className:"bg-card border-border/50 card-glow",children:v.jsxs(wn,{"data-loc":"client/src/pages/CartPage.tsx:117",className:"p-6",children:[v.jsxs("div",{"data-loc":"client/src/pages/CartPage.tsx:118",className:"flex justify-between items-center mb-2",children:[v.jsxs("span",{"data-loc":"client/src/pages/CartPage.tsx:119",className:"text-muted-foreground",children:["å
± ",r," å£"]}),v.jsxs("span",{"data-loc":"client/src/pages/CartPage.tsx:120",className:"font-display text-2xl font-bold text-primary",children:["HKD $",a.toLocaleString()]})]}),v.jsx("p",{"data-loc":"client/src/pages/CartPage.tsx:122",className:"text-xs text-muted-foreground mb-5",children:"æ¸¬è©¦ä»æ¬¾è«ä½¿ç¨å¡èï¼4242 4242 4242 4242"}),v.jsxs(je,{"data-loc":"client/src/pages/CartPage.tsx:123",className:"w-full bg-primary text-primary-foreground hover:bg-primary/90 gap-2 font-semibold",size:"lg",onClick:c,disabled:l.isPending,children:[v.jsx(MY,{"data-loc":"client/src/pages/CartPage.tsx:129",className:"w-5 h-5"}),l.isPending?"èçä¸â¦":"åå¾ Stripe çµå¸³"]}),v.jsx("p",{"data-loc":"client/src/pages/CartPage.tsx:132",className:"text-xs text-muted-foreground text-center mt-3",children:"æ¯æ´ VisaãMastercard çä¿¡ç¨å¡"})]})})]})}const Spe={pending:"å¾
仿¬¾",paid:"已仿¬¾",cancelled:"已忶",refunded:"已鿬¾"},Ope={pending:"bg-yellow-500/20 text-yellow-400 border-yellow-500/30",paid:"bg-emerald-500/20 text-emerald-400 border-emerald-500/30",cancelled:"bg-red-500/20 text-red-400 border-red-500/30",refunded:"bg-blue-500/20 text-blue-400 border-blue-500/30"};function Ape(){const{isAuthenticated:e}=li(),{data:t,isLoading:n}=dt.orders.myOrders.useQuery(void 0,{enabled:e});return e?v.jsxs("div",{"data-loc":"client/src/pages/OrdersPage.tsx:36",className:"container py-10 max-w-2xl",children:[v.jsx("h1",{"data-loc":"client/src/pages/OrdersPage.tsx:37",className:"font-display text-2xl font-bold text-gold-gradient mb-6",children:"æçè¨å®"}),n?v.jsx("div",{"data-loc":"client/src/pages/OrdersPage.tsx:39",className:"space-y-3",children:Array.from({length:3}).map((r,a)=>v.jsx("div",{"data-loc":"client/src/pages/OrdersPage.tsx:39",className:"h-20 rounded-xl bg-card animate-pulse"},a))}):t?.length?v.jsx("div",{"data-loc":"client/src/pages/OrdersPage.tsx:49",className:"space-y-4",children:t.map(r=>{const a=r.itemsSnapshot??[];return v.jsx(xn,{"data-loc":"client/src/pages/OrdersPage.tsx:53",className:"bg-card border-border/50",children:v.jsxs(wn,{"data-loc":"client/src/pages/OrdersPage.tsx:54",className:"p-5",children:[v.jsxs("div",{"data-loc":"client/src/pages/OrdersPage.tsx:55",className:"flex items-start justify-between gap-4 mb-3",children:[v.jsxs("div",{"data-loc":"client/src/pages/OrdersPage.tsx:56",children:[v.jsxs("p",{"data-loc":"client/src/pages/OrdersPage.tsx:57",className:"font-semibold text-foreground",children:["è¨å® #",r.id]}),v.jsx("p",{"data-loc":"client/src/pages/OrdersPage.tsx:58",className:"text-xs text-muted-foreground mt-0.5",children:new Date(r.createdAt).toLocaleString()})]}),v.jsxs("div",{"data-loc":"client/src/pages/OrdersPage.tsx:60",className:"text-right",children:[v.jsxs("p",{"data-loc":"client/src/pages/OrdersPage.tsx:61",className:"font-bold text-primary",children:["HKD $",Number(r.totalHkd).toLocaleString()]}),v.jsx(ur,{"data-loc":"client/src/pages/OrdersPage.tsx:62",className:`text-xs mt-1 border ${Ope[r.status]}`,children:Spe[r.status]})]})]}),a.length>0&&v.jsx("div",{"data-loc":"client/src/pages/OrdersPage.tsx:66",className:"border-t border-border/30 pt-3 space-y-1",children:a.map((o,l)=>v.jsxs("div",{"data-loc":"client/src/pages/OrdersPage.tsx:68",className:"flex justify-between text-sm",children:[v.jsxs("span",{"data-loc":"client/src/pages/OrdersPage.tsx:69",className:"text-muted-foreground",children:[o.productName," · è碼 ",o.slotNumber]}),v.jsxs("span",{"data-loc":"client/src/pages/OrdersPage.tsx:70",className:"text-foreground",children:["HKD $",o.priceHkd]})]},l))})]})},r.id)})}):v.jsxs("div",{"data-loc":"client/src/pages/OrdersPage.tsx:41",className:"text-center py-16",children:[v.jsx(Ep,{"data-loc":"client/src/pages/OrdersPage.tsx:42",className:"w-12 h-12 text-muted-foreground
370/30 mx-auto mb-3"}),v.jsx("p",{"data-loc":"client/src/pages/OrdersPage.tsx:43",className:"text-muted-foreground",children:"å°ç¡è¨å®è¨é"}),v.jsx(Le,{"data-loc":"client/src/pages/OrdersPage.tsx:44",href:"/oripa",children:v.jsx(je,{"data-loc":"client/src/pages/OrdersPage.tsx:45",variant:"ghost",className:"mt-4 text-primary",children:"ç覽ç¦è¢å¡æ± "})})]})]}):v.jsxs("div",{"data-loc":"client/src/pages/OrdersPage.tsx:26",className:"container py-20 text-center",children:[v.jsx(Ep,{"data-loc":"client/src/pages/OrdersPage.tsx:27",className:"w-16 h-16 text-muted-foreground/30 mx-auto mb-4"}),v.jsx("h1",{"data-loc":"client/src/pages/OrdersPage.tsx:28",className:"font-display text-2xl font-bold text-foreground mb-2",children:"æçè¨å®"}),v.jsx("p",{"data-loc":"client/src/pages/OrdersPage.tsx:29",className:"text-muted-foreground mb-6",children:"è«å
ç»å
¥æ¥çä½ ç購買è¨é"}),v.jsx(je,{"data-loc":"client/src/pages/OrdersPage.tsx:30",className:"bg-primary text-primary-foreground",onClick:()=>ei(),children:"ç«å³ç»å
¥"})]})}function Ppe(){return v.jsxs("div",{"data-loc":"client/src/pages/OrderSuccessPage.tsx:7",className:"container py-20 text-center max-w-lg mx-auto",children:[v.jsx("div",{"data-loc":"client/src/pages/OrderSuccessPage.tsx:8",className:"w-20 h-20 rounded-full bg-emerald-500/20 border border-emerald-500/40 flex items-center justify-center mx-auto mb-6",children:v.jsx(q6,{"data-loc":"client/src/pages/OrderSuccessPage.tsx:9",className:"w-10 h-10 text-emerald-400"})}),v.jsx("h1",{"data-loc":"client/src/pages/OrderSuccessPage.tsx:11",className:"font-display text-3xl font-bold text-foreground mb-3",children:"仿¬¾æåï¼"}),v.jsx("p",{"data-loc":"client/src/pages/OrderSuccessPage.tsx:12",className:"text-muted-foreground mb-2",children:"ä½ çç¦è¢è碼已確èªï¼æåå°ç¡å¿«å®æç¼è²¨ã"}),v.jsx("p",{"data-loc":"client/src/pages/OrderSuccessPage.tsx:13",className:"text-muted-foreground text-sm mb-8",children:"妿任ä½åé¡ï¼è«è¯çµ¡æåç客æã"}),v.jsxs("div",{"data-loc":"client/src/pages/OrderSuccessPage.tsx:14",className:"flex gap-3 justify-center",children:[v.jsx(Le,{"data-loc":"client/src/pages/OrderSuccessPage.tsx:15",href:"/orders",children:v.jsxs(je,{"data-loc":"client/src/pages/OrderSuccessPage.tsx:16",className:"bg-primary text-primary-foreground gap-2",children:[v.jsx(Ep,{"data-loc":"client/src/pages/OrderSuccessPage.tsx:17",className:"w-4 h-4"}),"æ¥çè¨å®"]})}),v.jsx(Le,{"data-loc":"client/src/pages/OrderSuccessPage.tsx:21",href:"/oripa",children:v.jsx(je,{"data-loc":"client/src/pages/OrderSuccessPage.tsx:22",variant:"outline",className:"border-border/50",children:"ç¹¼çºé¸è³¼"})})]})]})}function _pe(){const{user:e}=li();return e?.role!=="admin"?v.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPage.tsx:13",className:"container py-20 text-center",children:[v.jsx(z6,{"data-loc":"client/src/pages/admin/AdminPage.tsx:14",className:"w-16 h-16 text-muted-foreground mx-auto mb-4"}),v.jsx("h1",{"data-loc":"client/src/pages/admin/AdminPage.tsx:15",className:"font-display text-2xl font-bold text-foreground mb-2",children:"åååé"}),v.jsx("p",{"data-loc":"client/src/pages/admin/AdminPage.tsx:16",className:"text-muted-foreground",children:"æ¤é é¢å
é管çå¡ååã"})]}):v.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPage.tsx:22",className:"container py-10",children:[v.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPage.tsx:23",className:"mb-8",children:[v.jsx("h1",{"data-loc":"client/src/pages/admin/AdminPage.tsx:24",className:"font-display text-3xl font-bold text-gold-gradient",children:"管çå¡å¾å°"}),v.jsx("p",{"data-loc":"client/src/pages/admin/AdminPage.tsx:25",className:"text-muted-foreground mt-1",children:"管ç Oripa ç¦è¢åååè¨å®"})]}),v.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPage.tsx:27",className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[v.jsxs(xn,{"data-loc":"client/src/pages/admin/AdminPage.tsx:28",className:"bg-card border-border/50 card-glow",children:[v.jsx(of,{"data-loc":"client/src/pages/admin/AdminPage.tsx:29",children:v.jsxs(sf,{"data-loc":"client/src/pages/admin/AdminPage.tsx:30",className:"flex items-center gap-2 text-foreground",children:[v.jsx(Nr,{"data-loc":"client/src/pages/admin/AdminPage.tsx:31",className:"w-5 h-5 text-primary"}),"Oripa ç¦è¢ç®¡ç"]})}),v.jsxs(wn,{"data-loc":"client/src/pages/admin/AdminPage.tsx:35",className:"space-y-3",children:[v.jsx(Le,{"data-loc":"client/src/pages/admin/AdminPage.tsx:36",href:"/admin/oripa/new",children:v.jsxs(je,{"data-loc":"client/src/pages/admin/AdminPage.tsx:37",className:"w-full bg-primary text-primary-foreground gap-2",children:[v.jsx(as,{"data-loc":"client/src/pages/admin/AdminPage.tsx:38",className:"w-4 h-4"}),"æ°å¢ç¦è¢åå"]})}),v.jsx(Cpe,{"data-loc":"client/src/pages/admin/AdminPage.tsx:42"})]})]}),v.jsxs(xn,{"data-loc":"client/src/pages/admin/AdminPage.tsx:45",className:"bg-card border-border/50 card-glow",children:[v.jsx(of,{"data-loc":"client/src/pages/admin/AdminPage.tsx:46",children:v.jsxs(sf,{"data-loc":"client/src/pages/admin/AdminPage.tsx:47",className:"flex items-center gap-2 text-foreground",children:[v.jsx(Ep,{"data-loc":"client/src/pages/admin/AdminPage.tsx:48",className:"w-5 h-5 text-primary"}),"è¨å®ç®¡ç"]})}),v.jsx(wn,{"data-loc":"client/src/pages/admin/AdminPage.tsx:52",children:v.jsx(Le,{"data-loc":"client/src/pages/admin/AdminPage.tsx:53",href:"/admin/orders",children:v.jsx(je,{"data-loc":"client/src/pages/admin/AdminPage.tsx:54",variant:"outline",className:"w-full border-border/50",children:"æ¥çææè¨å®"})})})]})]})]})}function Cpe(){const{data:e}=dt.oripa.adminList.useQuery();return e?.length?v.jsx("div",{"data-loc":"client/src/pages/admin/AdminPage.tsx:69",className:"space-y-2 mt-2",children:e.map(t=>v.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPage.tsx:71",className:"flex items-center justify-between p-2 rounded-lg bg-secondary/50",children:[v.jsx("span",{"data-loc":"client/src/pages/admin/AdminPage.tsx:72",className:"text-sm text-foreground truncate",children:t.name}),v.jsx(Le,{"data-loc":"client/src/pages/admin/AdminPage.tsx:73",href:`/admin/oripa/${t.id}/edit`,children:v.jsx(je,{"data-loc":"client/src/pages/admin/AdminPage.tsx:74",variant:"ghost",size:"sm",className:"text-xs text-primary",children:"編輯"})})]},t.id))}):v.jsx("p",{"data-loc":"client/src/pages/admin/AdminPage.tsx:67",className:"text-muted-foreground text-sm",children:"å°ç¡ç¦è¢åå"})}function Tpe({className:e,onKeyDown:t,onCompositionStart:n,onCompositionEnd:r,...a}){const o=lL(),{onCompositionStart:l,onCompositionEnd:c,onKeyDown:f}=cL({onKeyDown:d=>{const m=d.nativeEvent.isComposing||o.justEndedComposing();
370d.key==="Enter"&&!d.shiftKey&&m||t?.(d)},onCompositionStart:d=>{o.setComposing(!0),n?.(d)},onCompositionEnd:d=>{o.markCompositionEnd(),setTimeout(()=>{o.setComposing(!1)},100),r?.(d)}});return v.jsx("textarea",{"data-loc":"client/src/components/ui/textarea.tsx:53","data-slot":"textarea",className:It("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),onCompositionStart:l,onCompositionEnd:c,onKeyDown:f,...a})}var jpe="Label",uq=j.forwardRef((e,t)=>v.jsx(it.label,{...e,ref:t,onMouseDown:n=>{n.target.closest("button, input, select, textarea")||(e.onMouseDown?.(n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));uq.displayName=jpe;var Epe=uq;function Bi({className:e,...t}){return v.jsx(Epe,{"data-loc":"client/src/components/ui/label.tsx:11","data-slot":"label",className:It("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...t})}function S3(){const{user:e}=li(),[,t]=eg(),[n,r]=jA("/admin/oripa/:id/edit"),a=n?Number(r?.id):null,[o,l]=j.useState(""),[c,f]=j.useState(""),[d,m]=j.useState(""),[h,g]=j.useState(""),[x,O]=j.useState(""),[b,S]=j.useState(""),[A,_]=j.useState([{rank:"é ç",name:"",valueHkd:0}]),[C,M]=j.useState([{name:"PSA10 æ¥çå¡ 1 å¼µ",quantity:1}]),{data:P}=dt.oripa.getById.useQuery({id:a},{enabled:!!a}),E=dt.oripa.create.useMutation(),T=dt.oripa.update.useMutation(),D=dt.useUtils();if(j.useEffect(()=>{P&&(l(P.name),f(P.description??""),m(P.priceHkd),g(String(P.totalSlots)),O(P.coverImageUrl??""),S(P.totalValueHkd??""),P.prizes?.length&&_(P.prizes),P.slotContents?.length&&M(P.slotContents))},[P]),e?.role!=="admin")return v.jsx("div",{"data-loc":"client/src/pages/admin/AdminOripaForm.tsx:60",className:"container py-20 text-center text-muted-foreground",children:"åååé"});const L=async U=>{U.preventDefault();
370const I={name:o,description:c,priceHkd:d,totalSlots:Number(h),coverImageUrl:x,totalValueHkd:b||void 0,prizes:A,slotContents:C};try{a?(await T.mutateAsync({id:a,...I}),An.success("ç¦è¢å·²æ´æ°")):(await E.mutateAsync(I),An.success("ç¦è¢å·²å»ºç«")),await D.oripa.adminList.invalidate(),t("/admin")}catch(z){An.error(z.message??"æä½å¤±æ")}};return v.jsxs("div",{"data-loc":"client/src/pages/admin/AdminOripaForm.tsx:86",className:"container py-10 max-w-2xl",children:[v.jsx(Le,{"data-loc":"client/src/pages/admin/AdminOripaForm.tsx:87",href:"/admin",children:v.jsxs(je,{"data-loc":"client/src/pages/admin/AdminOripaForm.tsx:88",variant:"ghost",size:"sm",className:"mb-6 gap-2 text-muted-foreground",children:[v.jsx(nd,{"data-loc":"client/src/pages/admin/AdminOripaForm.tsx:89",className:"w-4 h-4"})," è¿å管çå¾å°"]})}),v.jsxs(xn,{"data-loc":"client/src/pages/admin/AdminOripaForm.tsx:92",className:"bg-card border-border/50",children:[v.jsx(of,{"data-loc":"client/src/pages/admin/AdminOripaForm.tsx:93",children:v.jsx(sf,{"data-loc":"client/src/pages/admin/AdminOripaForm.tsx:94",className:"font-display text-gold-gradient",children:a?"編輯ç¦è¢åå":"æ°å¢ç¦è¢åå"})}),v.jsx(wn,{"data-loc":"client/src/pages/admin/AdminOripaForm.tsx:98",children:v.jsxs("form",{"data-loc":"client/src/pages/admin/AdminOripaForm.tsx:99",onSubmit:L,className:"space-y-5",children:[v.jsxs("div",{"data-loc":"client/src/pages/admin/AdminOripaForm.tsx:100",className:"grid grid-cols-2 gap-4",children:[v.jsxs("div",{"data-loc":"client/src/pages/admin/AdminOripaForm.tsx:101",className:"col-span-2 space-y-1.5",children:[v.jsx(Bi,{"data-loc":"client/src/pages/admin/AdminOripaForm.tsx:102",children:"ååå稱"}),v.jsx(Vn,{"data-loc":"client/src/pages/admin/AdminOripaForm.tsx:103",value:o,onChange:U=>l(U.target.value),required:!0,placeholder:"PSA10 æ¯å¡è¶
ç¦è¢",className:"bg-secondary/50 border-border/50"})]}),v.jsxs("div",{"data-loc":"client/src/pages/admin/AdminOripaForm.tsx:105",className:"space-y-1.5",children:[v.jsx(Bi,{"data-loc":"client/src/pages/admin/AdminOripaForm.tsx:106",children:"æ¯å£å¹æ ¼ (HKD)"}),v.jsx(Vn,{"data-loc":"client/src/pages/admin/AdminOripaForm.tsx:107",value:d,onChange:U=>m(U.target.value),required:!0,placeholder:"690",className:"bg-secondary/50 border-border/50"})]}),v.jsxs("div",{"data-loc":"client/src/pages/admin/AdminOripaForm.tsx:109",className:"space-y-1.5",children:[v.jsx(Bi,{"data-loc":"client/src/pages/admin/AdminOripaForm.tsx:110",children:"ç¸½å£æ¸"}),v.jsx(Vn,{"data-loc":"client/src/pages/admin/AdminOripaForm.tsx:111",type:"number",value:h,onChange:U=>g(U.target.value),required:!0,placeholder:"30",className:"bg-secondary/50 border-border/50"})]}),v.jsxs("div",{"data-loc":"client/src/pages/admin/AdminOripaForm.tsx:113",className:"col-span-2 space-y-1.5",children:[v.jsx(Bi,{"data-loc":"client/src/pages/admin/AdminOripaForm.tsx:114",children:"å°é¢åç URL"}),v.jsx(Vn,{"data-loc":"client/src/pages/admin/AdminOripaForm.tsx:115",value:x,onChange:U=>O(U.target.value),placeholder:"https://...",className:"bg-secondary/50 border-border/50"})]}),v.jsxs("div",{"data-loc":"client/src/pages/admin/AdminOripaForm.tsx:117",className:"space-y-1.5",children:[v.jsx(Bi,{"data-loc":"client/src/pages/admin/AdminOripaForm.tsx:118",children:"ååç¸½å¼ (HKD)"}),v.jsx(Vn,{"data-loc":"client/src/pages/admin/AdminOripaForm.tsx:119",value:b,onChange:U=>S(U.target.value),placeholder:"21500",className:"bg-secondary/50 border-border/50"})]}),v.jsxs("div",{"data-loc":"client/src/pages/admin/AdminOripaForm.tsx:121",className:"col-span-2 space-y-1.5",children:[v.jsx(Bi,{"data-loc":"client/src/pages/admin/AdminOripaForm.tsx:122",children:"ååæè¿°"}),v.jsx(Tpe,{"data-loc":"client/src/pages/admin/AdminOripaForm.tsx:123",value:c,onChange:U=>f(U.target.value),rows:3,className:"bg-secondary/50 border-border/50"})]})]}),v.jsxs("div",{"data-loc":"client/src/pages/admin/AdminOripaForm.tsx:128",className:"space-y-2",children:[v.jsxs("div",{"data-loc":"client/src/pages/admin/AdminOripaForm.tsx:129",className:"flex items-center justify-between",children:[v.jsx(Bi,{"data-loc":"client/src/pages/admin/AdminOripaForm.tsx:130",children:"çåå表"}),v.jsxs(je,{"data-loc":"client/src/pages/admin/AdminOripaForm.tsx:131",type:"button",variant:"ghost",size:"sm",className:"gap-1 text-primary text-xs",onClick:()=>_(U=>[...U,{rank:"",name:"",valueHkd:0}]),children:[v.jsx(as,{"data-loc":"client/src/pages/admin/AdminOripaForm.tsx:132",className:"w-3 h-3"})," æ°å¢"]})]}),A.map((U,I)=>v.jsxs("div",{"data-loc":"client/src/pages/admin/AdminOripaForm.tsx:136",className:"grid grid-cols-12 gap-2 items-center",children:[v.jsx(Vn,{"data-loc":"client/src/pages/admin/AdminOripaForm.tsx:137",className:"col-span-2 bg-secondary/50 border-border/50 text-xs",placeholder:"é ç",value:U.rank,onChange:z=>_(F=>F.map((K,q)=>
370q===I?{...K,rank:z.target.value}:K))}),v.jsx(Vn,{"data-loc":"client/src/pages/admin/AdminOripaForm.tsx:138",className:"col-span-5 bg-secondary/50 border-border/50 text-xs",placeholder:"çåå稱",value:U.name,onChange:z=>_(F=>F.map((K,q)=>q===I?{...K,name:z.target.value}:K))}),v.jsx(Vn,{"data-loc":"client/src/pages/admin/AdminOripaForm.tsx:139",className:"col-span-3 bg-secondary/50 border-border/50 text-xs",type:"number",placeholder:"å¹å¼",value:U.valueHkd,onChange:z=>_(F=>F.map((K,q)=>q===I?{...K,valueHkd:Number(z.target.value)}:K))}),v.jsx(je,{"data-loc":"client/src/pages/admin/AdminOripaForm.tsx:140",type:"button",variant:"ghost",size:"icon",className:"col-span-2 text-destructive",onClick:()=>_(z=>z.filter((F,K)=>K!==I)),children:v.jsx(Mp,{"data-loc":"client/src/pages/admin/AdminOripaForm.tsx:141",className:"w-3 h-3"})})]},I))]}),v.jsxs("div",{"data-loc":"client/src/pages/admin/AdminOripaForm.tsx:148",className:"space-y-2",children:[v.jsxs("div",{"data-loc":"client/src/pages/admin/AdminOripaForm.tsx:149",className:"flex items-center justify-between",children:[v.jsx(Bi,{"data-loc":"client/src/pages/admin/AdminOripaForm.tsx:150",children:"æ¯å£å
§å®¹ç©"}),v.jsxs(je,{"data-loc":"client/src/pages/admin/AdminOripaForm.tsx:151",type:"button",variant:"ghost",size:"sm",className:"gap-1 text-primary text-xs",onClick:()=>M(U=>[...U,{name:"",quantity:1}]),children:[v.jsx(as,{"data-loc":"client/src/pages/admin/AdminOripaForm.tsx:152",className:"w-3 h-3"})," æ°å¢"]})]}),C.map((U,I)=>v.jsxs("div",{"data-loc":"client/src/pages/admin/AdminOripaForm.tsx:156",className:"grid grid-cols-12 gap-2 items-center",children:[v.jsx(Vn,{"data-loc":"client/src/pages/admin/AdminOripaForm.tsx:157",className:"col-span-8 bg-secondary/50 border-border/50 text-xs",placeholder:"å
§å®¹ç©å稱",value:U.name,onChange:z=>M(F=>F.map((K,q)=>q===I?{...K,name:z.target.value}:K))}),v.jsx(Vn,{"data-loc":"client/src/pages/admin/AdminOripaForm.tsx:158",className:"col-span-2 bg-secondary/50 border-border/50 text-xs",type:"number",value:U.quantity,onChange:z=>M(F=>F.map((K,q)=>q===I?{...K,quantity:Number(z.target.value)}:K))}),v.jsx(je,{"data-loc":"client/src/pages/admin/AdminOripaForm.tsx:159",type:"button",variant:"ghost",size:"icon",className:"col-span-2 text-destructive",onClick:()=>M(z=>z.filter((F,K)=>K!==I)),children:v.jsx(Mp,{"data-loc":"client/src/pages/admin/AdminOripaForm.tsx:160",className:"w-3 h-3"})})]},I))]}),v.jsx(je,{"data-loc":"client/src/pages/admin/AdminOripaForm.tsx:166",type:"submit",className:"w-full bg-primary text-primary-foreground",disabled:E.isPending||T.isPending,children:a?"å²åè®æ´":"建ç«ç¦è¢"})]})})]})]})}const Npe={pending:"å¾
仿¬¾",paid:"已仿¬¾",cancelled:"已忶",refunded:"已鿬¾"},Mpe={pending:"bg-yellow-500/20 text-yellow-400 border-yellow-500/30",paid:"bg-emerald-500/20 text-emerald-400 border-emerald-500/30",cancelled:"bg-red-500/20 text-red-400 border-red-500/30",refunded:"bg-blue-500/20 text-blue-400 border-blue-500/30"};function Dpe(){const{user:e}=li(),{data:t,isLoading:n}=dt.orders.adminList.useQuery(void 0,{enabled:e?.role==="admin"});return e?.role!=="admin"?v.jsx("div",{"data-loc":"client/src/pages/admin/AdminOrders.tsx:23",className:"container py-20 text-center text-muted-foreground",children:"åååé"}):v.jsxs("div",{"data-loc":"client/src/pages/admin/AdminOrders.tsx:26",className:"container py-10",children:[v.jsx(Le,{"data-loc":"client/src/pages/admin/AdminOrders.tsx:27",href:"/admin",children:v.jsxs(je,{"data-loc":"client/src/pages/admin/AdminOrders.tsx:28",variant:"ghost",size:"sm",className:"mb-6 gap-2 text-muted-foreground",children:[v.jsx(nd,{"data-loc":"client/src/pages/admin/AdminOrders.tsx:29",className:"w-4 h-4"})," è¿å管çå¾å°"]})}),v.jsx("h1",{"data-loc":"client/src/pages/admin/AdminOrders.tsx:32",className:"font-display text-2xl font-bold text-gold-gradient mb-6",children:"ææè¨å®"}),n?v.jsx("div",{"data-loc":"client/src/pages/admin/AdminOrders.tsx:34",className:"space-y-3",children:Array.from({length:5}).map((r,a)=>v.jsx("div",{"data-loc":"client/src/pages/admin/AdminOrders.tsx:34",className:"h-16 rounded-xl bg-card animate-pulse"},a))}):t?.length?v.jsx("div",{"data-loc":"client/src/pages/admin/AdminOrders.tsx:38",className:"space-y-3",children:t.map(r=>v.jsx(xn,{"data-loc":"client/src/pages/admin/AdminOrders.tsx:40",className:"bg-card border-border/50",children:v.jsxs(wn,{"data-loc":"client/src/pages/admin/AdminOrders.tsx:41",className:"p-4 flex items-center justify-between gap-4",children:[v.jsxs("div",{"data-loc":"client/src/pages/admin/AdminOrders.tsx:42",children:[v.jsxs("p",{"data-loc":"client/src/pages/admin/AdminOrders.tsx:43",className:"text-sm font-medium text-foreground",children:["è¨å® #",r.id]}),v.jsx("p",{"data-loc":"client/src/pages/admin/AdminOrders.tsx:44",className:"text-xs text-muted-foreground mt-0.5",children:new Date(r.createdAt).toLocaleStr
vendor: 44,988 bytes, lines 370-378
370ing()})]}),v.jsxs("div",{"data-loc":"client/src/pages/admin/AdminOrders.tsx:46",className:"text-right",children:[v.jsxs("p",{"data-loc":"client/src/pages/admin/AdminOrders.tsx:47",className:"text-sm font-semibold text-primary",children:["HKD $",Number(r.totalHkd).toFixed(2)]}),v.jsx(ur,{"data-loc":"client/src/pages/admin/AdminOrders.tsx:48",className:`text-xs mt-1 border ${Mpe[r.status]}`,children:Npe[r.status]})]})]})},r.id))}):v.jsx("p",{"data-loc":"client/src/pages/admin/AdminOrders.tsx:36",className:"text-muted-foreground text-center py-12",children:"å°ç¡è¨å®"})]})}const $P=j.createContext({});function BP(e){const t=j.useRef(null);return t.current===null&&(t.current=e()),t.current}const qP=typeof window<"u",fq=qP?j.useLayoutEffect:j.useEffect,$g=j.createContext(null);function zP(e,t){e.indexOf(t)===-1&&e.push(t)}function UP(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const ii=(e,t,n)=>n>t?t:n<e?e:n;let HP=()=>{};const oi={},dq=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function hq(e){return typeof e=="object"&&e!==null}const pq=e=>/^0[^.\s]+$/u.test(e);function VP(e){let t;return()=>(t===void 0&&(t=e()),t)}const Rr=e=>e,Rpe=(e,t)=>n=>t(e(n)),md=(...e)=>e.reduce(Rpe),Hf=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class FP{constructor(){this.subscriptions=[]}add(t){return zP(this.subscriptions,t),()=>UP(this.subscriptions,t)}notify(t,n,r){const a=this.subscriptions.length;if(a)if(a===1)this.subscriptions[0](t,n,r);else for(let o=0;o<a;o++){const l=this.subscriptions[o];l&&l(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const va=e=>e*1e3,Er=e=>e/1e3;function mq(e,t){return t?e*(1e3/t):0}const gq=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,kpe=1e-7,Ipe=12;function Lpe(e,t,n,r,a){let o,l,c=0;do l=t+(n-t)/2,o=gq(l,r,a)-e,o>0?n=l:t=l;while(Math.abs(o)>kpe&&++c<Ipe);return l}function gd(e,t,n,r){if(e===t&&n===r)return Rr;const a=o=>Lpe(o,0,1,e,n);return o=>o===0||o===1?o:gq(a(o),t,r)}const vq=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,yq=e=>t=>1-e(1-t),bq=gd(.33,1.53,.69,.99),KP=yq(bq),xq=vq(KP),wq=e=>(e*=2)<1?.5*KP(e):.5*(2-Math.pow(2,-10*(e-1))),GP=e=>1-Math.sin(Math.acos(e)),Sq=yq(GP),Oq=vq(GP),$pe=gd(.42,0,1,1),Bpe=gd(0,0,.58,1),Aq=gd(.42,0,.58,1),qpe=e=>Array.isArray(e)&&typeof e[0]!="number",Pq=e=>Array.isArray(e)&&typeof e[0]=="number",zpe={linear:Rr,easeIn:$pe,easeInOut:Aq,easeOut:Bpe,circIn:GP,circInOut:Oq,circOut:Sq,backIn:KP,backInOut:xq,backOut:bq,anticipate:wq},Upe=e=>typeof e=="string",O3=e=>{if(Pq(e)){HP(e.length===4);const[t,n,r,a]=e;return gd(t,n,r,a)}else if(Upe(e))return zpe[e];return e},sp=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Hpe(e,t){let n=new Set,r=new Set,a=!1,o=!1;const l=new WeakSet;let c={delta:0,timestamp:0,isProcessing:!1};function f(m){l.has(m)&&(d.schedule(m),e()),m(c)}const d={schedule:(m,h=!1,g=!1)=>{const O=g&&a?n:r;return h&&l.add(m),O.has(m)||O.add(m),m},cancel:m=>{r.delete(m),l.delete(m)},process:m=>{if(c=m,a){o=!0;return}a=!0,[n,r]=[r,n],n.forEach(f),n.clear(),a=!1,o&&(o=!1,d.process(m))}};return d}const Vpe=40;function _q(e,t){let n=!1,r=!0;const a={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,l=sp.reduce((C,M)=>(C[M]=Hpe(o),C),{}),{setup:c,read:f,resolveKeyframes:d,preUpdate:m,update:h,preRender:g,render:x,postRender:O}=l,b=()=>{const C=oi.useManualTiming?a.timestamp:performance.now();n=!1,oi.useManualTiming||(a.delta=r?1e3/60:Math.max(Math.min(C-a.timestamp,Vpe),1)),a.timestamp=C,a.isProcessing=!0,c.process(a),f.process(a),d.process(a),m.process(a),h.process(a),g.process(a),x.process(a),O.process(a),a.isProcessing=!1,n&&t&&(r=!1,e(b))},S=()=>{n=!0,r=!0,a.isProcessing||e(b)};return{schedule:sp.reduce((C,M)=>{const P=l[M];return C[M]=(E,T=!1,D=!1)=>(n||S(),P.schedule(E,T,D)),C},{}),cancel:C=>{for(let M=0;M<sp.length;M++)l[sp[M]].cancel(C)},state:a,steps:l}}const{schedule:St,cancel:eo,state:fn,steps:Ow}=_q(typeof requestAnimationFrame<"u"?requestAnimationFrame:Rr,!0);let vp;function Fpe(){vp=void 0}const Gn={now:()=>(vp===void 0&&Gn.set(fn.isProcessing||oi.useManualTiming?fn.timestamp:performance.now()),vp),set:e=>{vp=e,queueMicrotask(Fpe)}},Cq=e=>t=>typeof t=="string"&&t.startsWith(e),YP=Cq("--"),Kpe=Cq("var(--"),XP=e=>Kpe(e)?Gpe.test(e.split("/*")[0].trim()):!1,Gpe=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Ac={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Vf={...Ac,transform:e=>ii(0,1,e)},lp={...Ac,default:1},Ku=e=>Math.round(e*1e5)/1e5,QP=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Ype(e){return e==null}const Xpe=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,WP=(e,t)=>n=>!!(typeof n=="string"&&Xpe.test(n)&&n.startsWith(e)||t&&!Ype(n)&&Object.prototype.hasOwnProperty.call(n,t)),Tq=(e,t,n)=>r=>{if(typeof r!="string")return r;const[a,o,l,c]=r.match(QP);return{[e]:parseFloat(a),[t]:parseFloat(o),[n]:parseFloat(l),alpha:c!==void 0?parseFloat(c):1}},Qpe=e=>ii(0,255,e),Aw={...Ac,transform:e=>Math.round(Qpe(e))},Xo={test:WP("rgb","red"),parse:Tq("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Aw.transform(e)+", "+Aw.transform(t)+", "+Aw.transform(n)+", "+Ku(Vf.transform(r))+")"};function Wpe(e){let t="",n="",r="",a="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),a=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),a=e.substring(4,5),t+=t,n+=n,r+=r,a+=a),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:a?parseInt(a,16)/255:1}}const IO={test:WP("#"),parse:Wpe,transform:Xo.transform},vd=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),zi=vd("deg"),ya=vd("%"),Te=vd("px"),Zpe=vd("vh"),Jpe=vd("vw"),A3={...ya,parse:e=>ya.parse(e)/100,transform:e=>ya.transform(e*100)},wl={test:WP("hsl","hue"),parse:Tq("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+ya.transform(Ku(t))+", "+ya.transform(Ku(n))+", "+Ku(Vf.transform(r))+")"},Vt={test:e=>Xo.test(e)||IO.test(e)||wl.test(e),parse:e=>Xo.test(e)?Xo.parse(e):wl.test(e)?wl.parse(e):IO.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Xo.transform(e):wl.transform(e),getAnimatableNone:e=>{const t=Vt.parse(e);return t.alpha=0,Vt.transform(t)}},eme=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function tme(e){return isNaN(e)&&typeof e=="string"&&(e.match(QP)?.length||0)+(e.match(eme)?.length||0)>0}const jq="number",Eq="color",nme="var",rme="var(",P3="${}",ame=/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 Ff(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},a=[];let o=0;const c=t.replace(ame,f=>(Vt.test(f)?(r.color.push(o),a.push(Eq),n.push(Vt.parse(f))):f.startsWith(rme)?(r.var.push(o),a.push(nme),n.push(f)):(r.number.push(o),a.push(jq),n.push(parseFloat(f))),++o,P3)).split(P3);return{values:n,split:c,indexes:r,types:a}}function Nq(e){return Ff(e).values}function Mq(e){const{split:t,types:n}=Ff(e),r=t.length;return a=>{let o="";for(let l=0;l<r;l++)if(o+=t[l],a[l]!==void 0){const c=n[l];c===jq?o+=Ku(a[l]):c===Eq?o+=Vt.transform(a[l]):o+=a[l]}return o}}const ime=e=>typeof e=="number"?0:Vt.test(e)?Vt.getAnimatableNone(e):e;function ome(e){const t=Nq(e);return Mq(e)(t.map(ime))}const to={test:tme,parse:Nq,createTransformer:Mq,getAnimatableNone:ome};function Pw(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 sme({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let a=0,o=0,l=0;if(!t)a=o=l=n;else{const c=n<.5?n*(1+t):n+t-n*t,f=2*n-c;a=Pw(f,c,e+1/3),o=Pw(f,c,e),l=Pw(f,c,e-1/3)}return{red:Math.round(a*255),green:Math.round(o*255),blue:Math.round(l*255),alpha:r}}function Mm(e,t){return n=>n>0?t:e}const Pt=(e,t,n)=>e+(t-e)*n,_w=(e,t,n)=>{const r=e*e,a=n*(t*t-r)+r;return a<0?0:Math.sqrt(a)},lme=[IO,Xo,wl],cme=e=>lme.find(t=>t.test(e));function _3(e){const t=cme(e);if(!t)return!1;let n=t.parse(e);return t===wl&&(n=sme(n)),n}const C3=(e,t)=>{const n=_3(e),r=_3(t);if(!n||!r)return Mm(e,t);const a={...n};return o=>(a.red=_w(n.red,r.red,o),a.green=_w(n.green,r.green,o),a.blue=_w(n.blue,r.blue,o),a.alpha=Pt(n.alpha,r.alpha,o),Xo.transform(a))},LO=new Set(["none","hidden"]);function ume(e,t){return LO.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function fme(e,t){return n=>Pt(e,t,n)}function ZP(e){return typeof e=="number"?fme:typeof e=="string"?XP(e)?Mm:Vt.test(e)?C3:pme:Array.isArray(e)?Dq:typeof e=="object"?Vt.test(e)?C3:dme:Mm}function Dq(e,t){const n=[...e],r=n.length,a=e.map((o,l)=>ZP(o)(o,t[l]));return o=>{for(let l=0;l<r;l++)n[l]=a[l](o);return n}}function dme(e,t){const n={...e,...t},r={};for(const a in n)e[a]!==void 0&&t[a]!==void 0&&(r[a]=ZP(e[a])(e[a],t[a]));return a=>{for(const o in r)n[o]=r[o](a);return n}}function hme(e,t){const n=[],r={color:0,var:0,number:0};for(let a=0;a<t.values.length;a++){const o=t.types[a],l=e.indexes[o][r[o]],c=e.values[l]??0;n[a]=c,r[o]++}return n}const pme=(e,t)=>{const n=to.createTransformer(t),r=Ff(e),a=Ff(t);return r.indexes.var.length===a.indexes.var.length&&r.indexes.color.length===a.indexes.color.length&&r.indexes.number.length>=a.indexes.number.length?LO.has(e)&&!a.values.length||LO.has(t)&&!r.values.length?ume(e,t):md(Dq(hme(r,a),a.values),n):Mm(e,t)};function Rq(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Pt(e,t,n):ZP(e)(e,t)}const mme=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>St.update(t,n),stop:()=>eo(t),now:()=>fn.isProcessing?fn.timestamp:Gn.now()}},kq=(e,t,n=10)=>{let r="";const a=Math.max(Math.round(t/n),2);for(let o=0;o<a;o++)r+=Math.round(e(o/(a-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},Dm=2e4;function JP(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Dm;)t+=n,r=e.next(t);return t>=Dm?1/0:t}function gme(e,t=100,n){const r=n({...e,keyframes:[0,t]}),a=Math.min(JP(r),Dm);return{type:"keyframes",ease:o=>r.next(a*o).value/t,duration:Er(a)}}const vme=5;function Iq(e,t,n){const r=Math.max(t-vme,0);return mq(n-e(r),t-r)}const Tt={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},Cw=.001;function yme({duration:e=Tt.duration,bounce:t=Tt.bounce,velocity:n=Tt.velocity,mass:r=Tt.mass}){let a,o,l=1-t;l=ii(Tt.minDamping,Tt.maxDamping,l),e=ii(Tt.minDuration,Tt.maxDuration,Er(e)),l<1?(a=d=>{const m=d*l,h=m*e,g=m-n,x=$O(d,l),O=Math.exp(-h);return Cw-g/x*O},o=d=>{const h=d*l*e,g=h*n+n,x=Math.pow(l,2)*Math.pow(d,2)*e,O=Math.exp(-h),b=$O(Math.pow(d,2),l);return(-a(d)+Cw>0?-1:1)*((g-x)*O)/b}):(a=d=>{const m=Math.exp(-d*e),h=(d-n)*e+1;return-Cw+m*h},o=d=>{const m=Math.exp(-d*e),h=(n-d)*(e*e);return m*h});const c=5/e,f=xme(a,o,c);if(e=va(e),isNaN(f))return{stiffness:Tt.stiffness,damping:Tt.damping,duration:e};{const d=Math.pow(f,2)*r;return{stiffness:d,damping:l*2*Math.sqrt(r*d),duration:e}}}const bme=12;function xme(e,t,n){let r=n;for(let a=1;a<bme;a++)r=r-e(r)/t(r);return r}function $O(e,t){return e*Math.sqrt(1-t*t)}const wme=["duration","bounce"],Sme=["stiffness","damping","mass"];function T3(e,t){return t.some(n=>e[n]!==void 0)}function Ome(e){let t={velocity:Tt.velocity,stiffness:Tt.stiffness,damping:Tt.damping,mass:Tt.mass,isResolvedFromDuration:!1,...e};if(!T3(e,Sme)&&T3(e,wme))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),a=r*r,o=2*ii(.05,1,1-(e.bounce||0))*Math.sqrt(a);t={...t,mass:Tt.mass,stiffness:a,damping:o}}else{const n=yme(e);t={...t,...n,mass:Tt.mass},t.isResolvedFromDuration=!0}return t}function Rm(e=Tt.visualDuration,t=Tt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:a}=n;const o=n.keyframes[0],l=n.keyframes[n.keyframes.length-1],c={done:!1,value:o},{stiffness:f,damping:d,mass:m,duration:h,velocity:g,isResolvedFromDuration:x}=Ome({...n,velocity:-Er(n.velocity||0)}),O=g||0,b=d/(2*Math.sqrt(f*m)),S=l-o,A=Er(Math.sqrt(f/m)),_=Math.abs(S)<5;r||(r=_?Tt.restSpeed.granular:Tt.restSpeed.default),a||(a=_?Tt.restDelta.granular:Tt.restDelta.default);let C;if(b<1){const P=$O(A,b);C=E=>{const T=Math.exp(-b*A*E);return l-T*((O+b*A*S)/P*Math.sin(P*E)+S*Math.cos(P*E))}}else if(b===1)C=P=>l-Math.exp(-A*P)*(S+(O+A*S)*P);else{const P=A*Math.sqrt(b*b-1);C=E=>{const T=Math.exp(-b*A*E),D=Math.min(P*E,300);return l-T*((O+b*A*S)*Math.sinh(D)+P*S*Math.cosh(D))/P}}const M={calculatedDuration:x&&h||null,next:P=>{const E=C(P);if(x)c.done=P>=h;else{let T=P===0?O:0;b<1&&(T=P===0?va(O):Iq(C,P,E));const D=Math.abs(T)<=r,L=Math.abs(l-E)<=a;c.done=D&&L}return c.value=c.done?l:E,c},toString:()=>{const P=Math.min(JP(M),Dm),E=kq(T=>M.next(P*T).value,P,30);return P+"ms "+E},toTransition:()=>{}};return M}Rm.applyToOptions=e=>{const t=gme(e,100,Rm);return e.ease=t.ease,e.duration=va(t.duration),e.type="keyframes",e};function BO({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:a=10,bounceStiffness:o=500,modifyTarget:l,min:c,max:f,restDelta:d=.5,restSpeed:m}){const h=e[0],g={done:!1,value:h},x=D=>c!==void 0&&D<c||f!==void 0&&D>f,O=D=>c===void 0?f:f===void 0||Math.abs(c-D)<Math.abs(f-D)?c:f;let b=n*t;const S=h+b,A=l===void 0?S:l(S);A!==S&&(b=A-h);const _=D=>-b*Math.exp(-D/r),C=D=>A+_(D),M=D=>{const L=_(D),U=C(D);g.done=Math.abs(L)<=d,g.value=g.done?A:U};let P,E;const T=D=>{x(g.value)&&(P=D,E=Rm({keyframes:[g.value,O(g.value)],velocity:Iq(C,D,g.value),damping:a,stiffness:o,restDelta:d,restSpeed:m}))};return T(0),{calculatedDuration:null,next:D=>{let L=!1;return!E&&P===void 0&&(L=!0,M(D),T(D)),P!==void 0&&D>=P?E.next(D-P):(!L&&M(D),g)}}}function Ame(e,t,n){const r=[],a=n||oi.mix||Rq,o=e.length-1;for(let l=0;l<o;l++){let c=a(e[l],e[l+1]);if(t){const f=Array.isArray(t)?t[l]||Rr:t;c=md(f,c)}r.push(c)}return r}function Pme(e,t,{clamp:n=!0,ease:r,mixer:a}={}){const o=e.length;if(HP(o===t.length),o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];const l=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const c=Ame(t,r,a),f=c.length,d=m=>{if(l&&m<e[0])return t[0];let h=0;if(f>1)for(;h<e.length-2&&!(m<e[h+1]);h++);const g=Hf(e[h],e[h+1],m);return c[h](g)};return n?m=>d(ii(e[0],e[o-1],m)):d}function _me(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const a=Hf(0,t,r);e.push(Pt(n,1,a))}}function Cme(e){const t=[0];return _me(t,e.length-1),t}function Tme(e,t){return e.map(n=>n*t)}function jme(e,t){return e.map(()=>t||Aq).splice(0,e.length-1)}function Gu({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const a=qpe(r)?r.map(O3):O3(r),o={done:!1,value:t[0]},l=Tme(n&&n.length===t.length?n:Cme(t),e),c=Pme(l,t,{ease:Array.isArray(a)?a:jme(t,a)});return{calculatedDuration:e,next:f=>(o.value=c(f),o.done=f>=e,o)}}const Eme=e=>e!==null;function e2(e,{repeat:t,repeatType:n="loop"},r,a=1){const o=e.filter(Eme),c=a<0||t&&n!=="loop"&&t%2===1?0:o.length-1;return!c||r===void 0?o[c]:r}const Nme={decay:BO,inertia:BO,tween:Gu,keyframes:Gu,spring:Rm};function Lq(e){typeof e.type=="string"&&(e.type=Nme[e.type])}class t2{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const Mme=e=>e/100;class n2 extends t2{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==Gn.now()&&this.tick(Gn.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;Lq(t);const{type:n=Gu,repeat:r=0,repeatDelay:a=0,repeatType:o,velocity:l=0}=t;let{keyframes:c}=t;const f=n||Gu;f!==Gu&&typeof c[0]!="number"&&(this.mixKeyframes=md(Mme,Rq(c[0],c[1])),c=[0,100]);const d=f({...t,keyframes:c});o==="mirror"&&(this.mirroredGenerator=f({...t,keyframes:[...c].reverse(),velocity:-l})),d.calculatedDuration===null&&(d.calculatedDuration=JP(d));const{calculatedDuration:m}=d;this.calculatedDuration=m,this.resolvedDuration=m+a,this.totalDuration=this.resolvedDuration*(r+1)-a,this.generator=d}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:a,mixKeyframes:o,mirroredGenerator:l,resolvedDuration:c,calculatedDuration:f}=this;if(this.startTime===null)return r.next(0);const{delay:d=0,keyframes:m,repeat:h,repeatType:g,repeatDelay:x,type:O,onUpdate:b,finalKeyframe:S}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-a/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const A=this.currentTime-d*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?A<0:A>a;this.currentTime=Math.max(A,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=a);let C=this.currentTime,M=r;if(h){const D=Math.min(this.currentTime,a)/c;let L=Math.floor(D),U=D%1;!U&&D>=1&&(U=1),U===1&&L--,L=Math.min(L,h+1),!!(L%2)&&(g==="reverse"?(U=1-U,x&&(U-=x/c)):g==="mirror"&&(M=l)),C=ii(0,1,U)*c}const P=_?{done:!1,value:m[0]}:M.next(C);o&&(P.value=o(P.value));let{done:E}=P;!_&&f!==null&&(E=this.playbackSpeed>=0?this.currentTime>=a:this.currentTime<=0);const T=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&E);return T&&O!==BO&&(P.value=e2(m,this.options,S,this.speed)),b&&b(P.value),T&&this.finish(),P}then(t,n){return this.finished.then(t,n)}get duration(){return Er(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Er(t)}get time(){return Er(this.currentTime)}set time(t){t=va(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(Gn.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Er(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=mme,startTime:n}=this.options;this.driver||(this.driver=t(a=>this.tick(a))),this.options.onPlay?.();const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Gn.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function Dme(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Qo=e=>e*180/Math.PI,qO=e=>{const t=Qo(Math.atan2(e[1],e[0]));return zO(t)},Rme={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:qO,rotateZ:qO,skewX:e=>Qo(Math.atan(e[1])),skewY:e=>Qo(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},zO=e=>(e=e%360,e<0&&(e+=360),e),j3=qO,E3=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),N3=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),kme={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:E3,scaleY:N3,scale:e=>(E3(e)+N3(e))/2,rotateX:e=>zO(Qo(Math.atan2(e[6],e[5]))),rotateY:e=>zO(Qo(Math.atan2(-e[2],e[0]))),rotateZ:j3,rotate:j3,skewX:e=>Qo(Math.atan(e[4])),skewY:e=>Qo(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function UO(e){return e.includes("scale")?1:0}function HO(e,t){if(!e||e==="none")return UO(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,a;if(n)r=kme,a=n;else{const c=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Rme,a=c}if(!a)return UO(t);const o=r[t],l=a[1].split(",").map(Lme);return typeof o=="function"?o(l):l[o]}const Ime=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return HO(n,t)};function Lme(e){return parseFloat(e.trim())}const Pc=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],_c=new Set(Pc),M3=e=>e===Ac||e===Te,$me=new Set(["x","y","z"]),Bme=Pc.filter(e=>!$me.has(e));function qme(e){const t=[];return Bme.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Jo={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>HO(t,"x"),y:(e,{transform:t})=>HO(t,"y")};Jo.translateX=Jo.x;Jo.translateY=Jo.y;const es=new Set;let VO=!1,FO=!1,KO=!1;function $q(){if(FO){const e=Array.from(es).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const a=qme(r);a.length&&(n.set(r,a),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const a=n.get(r);a&&a.forEach(([o,l])=>{r.getValue(o)?.set(l)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}FO=!1,VO=!1,es.forEach(e=>e.complete(KO)),es.clear()}function Bq(){es.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(FO=!0)})}function zme(){KO=!0,Bq(),$q(),KO=!1}class r2{constructor(t,n,r,a,o,l=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=a,this.element=o,this.isAsync=l}scheduleResolve(){this.state="scheduled",this.isAsync?(es.add(this),VO||(VO=!0,St.read(Bq),St.resolveKeyframes($q))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:a}=this;if(t[0]===null){const o=a?.get(),l=t[t.length-1];if(o!==void 0)t[0]=o;else if(r&&n){const c=r.readValue(n,l);c!=null&&(t[0]=c)}t[0]===void 0&&(t[0]=l),a&&o===void 0&&a.set(t[0])}Dme(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),es.delete(this)}cancel(){this.state==="scheduled"&&(es.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Ume=e=>e.startsWith("--");function Hme(e,t,n){Ume(t)?e.style.setProperty(t,n):e.style[t]=n}const Vme=VP(()=>window.ScrollTimeline!==void 0),Fme={};function Kme(e,t){const n=VP(e);return()=>Fme[t]??n()}const qq=Kme(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),$u=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,D3={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:$u([0,.65,.55,1]),circOut:$u([.55,0,1,.45]),backIn:$u([.31,.01,.66,-.59]),backOut:$u([.33,1.53,.69,.99])};function zq(e,t){if(e)return typeof e=="function"?qq()?kq(e,t):"ease-out":Pq(e)?$u(e):Array.isArray(e)?e.map(n=>zq(n,t)||D3.easeOut):D3[e]}function Gme(e,t,n,{delay:r=0,duration:a=300,repeat:o=0,repeatType:l="loop",ease:c="easeOut",times:f}={},d=void 0){const m={[t]:n};f&&(m.offset=f);const h=zq(c,a);Array.isArray(h)&&(m.easing=h);const g={delay:r,duration:a,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:o+1,direction:l==="reverse"?"alternate":"normal"};return d&&(g.pseudoElement=d),e.animate(m,g)}function Uq(e){return typeof e=="function"&&"applyToOptions"in e}function Yme({type:e,...t}){return Uq(e)&&qq()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class Xme extends t2{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:a,pseudoElement:o,allowFlatten:l=!1,finalKeyframe:c,onComplete:f}=t;this.isPseudoElement=!!o,this.allowFlatten=l,this.options=t,HP(typeof t.type!="string");const d=Yme(t);this.animation=Gme(n,r,a,d,o),d.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const m=e2(a,this.options,c,this.speed);this.updateMotionValue?this.updateMotionValue(m):Hme(n,r,m),this.animation.cancel()}f?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return Er(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Er(t)}get time(){return Er(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=va(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&Vme()?(this.animation.timeline=t,Rr):n(this)}}const Hq={anticipate:wq,backInOut:xq,circInOut:Oq};function Qme(e){return e in Hq}function Wme(e){typeof e.ease=="string"&&Qme(e.ease)&&(e.ease=Hq[e.ease])}const R3=10;class Zme extends Xme{constructor(t){Wme(t),Lq(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:a,element:o,...l}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const c=new n2({...l,autoplay:!1}),f=va(this.finishedTime??this.time);n.setWithVelocity(c.sample(f-R3).value,c.sample(f).value,R3),c.stop()}}const k3=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(to.test(e)||e==="0")&&!e.startsWith("url("));function Jme(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 ege(e,t,n,r){const a=e[0];if(a===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],l=k3(a,t),c=k3(o,t);return!l||!c?!1:Jme(e)||(n==="spring"||Uq(n))&&r}function GO(e){e.duration=0,e.type="keyframes"}const tge=new Set(["opacity","clipPath","filter","transform"]),nge=VP(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function rge(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:a,damping:o,type:l}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:f,transformTemplate:d}=t.owner.getProps();return nge()&&n&&tge.has(n)&&(n!=="transform"||!d)&&!f&&!r&&a!=="mirror"&&o!==0&&l!=="inertia"}const age=40;class ige extends t2{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:a=0,repeatDelay:o=0,repeatType:l="loop",keyframes:c,name:f,motionValue:d,element:m,...h}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Gn.now();const g={autoplay:t,delay:n,type:r,repeat:a,repeatDelay:o,repeatType:l,name:f,motionValue:d,element:m,...h},x=m?.KeyframeResolver||r2;this.keyframeResolver=new x(c,(O,b,S)=>this.onKeyframesResolved(O,b,g,!S),f,d,m),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,r,a){this.keyframeResolver=void 0;const{name:o,type:l,velocity:c,delay:f,isHandoff:d,onUpdate:m}=r;this.resolvedAt=Gn.now(),ege(t,o,l,c)||((oi.instantAnimations||!f)&&m?.(e2(t,r,n)),t[0]=t[t.length-1],GO(r),r.repeat=0);const g={startTime:a?this.resolvedAt?this.resolvedAt-this.createdAt>age?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},x=!d&&rge(g)?new Zme({...g,element:g.motionValue.owner.current}):new n2(g);x.finished.then(()=>this.notifyFinished()).catch(Rr),this.pendingTimeline&&(this.stopTimeline=x.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=x}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),zme()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const oge=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function sge(e){const t=oge.exec(e);if(!t)return[,];const[,n,r,a]=t;return[`--${n??r}`,a]}function Vq(e,t,n=1){const[r,a]=sge(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const l=o.trim();return dq(l)?parseFloat(l):l}return XP(a)?Vq(a,t,n+1):a}function a2(e,t){return e?.[t]??e?.default??e}const Fq=new Set(["width","height","top","left","right","bottom",...Pc]),lge={test:e=>e==="auto",parse:e=>e},Kq=e=>t=>t.test(e),Gq=[Ac,Te,ya,zi,Jpe,Zpe,lge],I3=e=>Gq.find(Kq(e));function cge(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||pq(e):!0}const uge=new Set(["brightness","contrast","saturate","opacity"]);function fge(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(QP)||[];if(!r)return e;const a=n.replace(r,"");let o=uge.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+a+")"}const dge=/\b([a-z-]*)\(.*?\)/gu,YO={...to,getAnimatableNone:e=>{const t=e.match(dge);return t?t.map(fge).join(" "):e}},L3={...Ac,transform:Math.round},hge={rotate:zi,rotateX:zi,rotateY:zi,rotateZ:zi,scale:lp,scaleX:lp,scaleY:lp,scaleZ:lp,skew:zi,skewX:zi,skewY:zi,distance:Te,translateX:Te,translateY:Te,translateZ:Te,x:Te,y:Te,z:Te,perspective:Te,transformPerspective:Te,opacity:Vf,originX:A3,originY:A3,originZ:Te},i2={borderWidth:Te,borderTopWidth:Te,borderRightWidth:Te,borderBottomWidth:Te,borderLeftWidth:Te,borderRadius:Te,radius:Te,borderTopLeftRadius:Te,borderTopRightRadius:Te,borderBottomRightRadius:Te,borderBottomLeftRadius:Te,width:Te,maxWidth:Te,height:Te,maxHeight:Te,top:Te,right:Te,bottom:Te,left:Te,padding:Te,paddingTop:Te,paddingRight:Te,paddingBottom:Te,paddingLeft:Te,margin:Te,marginTop:Te,marginRight:Te,marginBottom:Te,marginLeft:Te,backgroundPositionX:Te,backgroundPositionY:Te,...hge,zIndex:L3,fillOpacity:Vf,strokeOpacity:Vf,numOctaves:L3},pge={...i2,color:Vt,backgroundColor:Vt,outlineColor:Vt,fill:Vt,stroke:Vt,borderColor:Vt,borderTopColor:Vt,borderRightColor:Vt,borderBottomColor:Vt,borderLeftColor:Vt,filter:YO,WebkitFilter:YO},Yq=e=>pge[e];function Xq(e,t){let n=Yq(e);return n!==YO&&(n=to),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const mge=new Set(["auto","none","0"]);function gge(e,t,n){let r=0,a;for(;r<e.length&&!a;){const o=e[r];typeof o=="string"&&!mge.has(o)&&Ff(o).values.length&&(a=e[r]),r++}if(a&&n)for(const o of t)e[o]=Xq(n,a)}class vge extends r2{constructor(t,n,r,a,o){super(t,n,r,a,o,!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 d=t[f];if(typeof d=="string"&&(d=d.trim(),XP(d))){const m=Vq(d,n.current);m!==void 0&&(t[f]=m),f===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!Fq.has(r)||t.length!==2)return;const[a,o]=t,l=I3(a),c=I3(o);if(l!==c)if(M3(l)&&M3(c))for(let f=0;f<t.length;f++){const d=t[f];typeof d=="string"&&(t[f]=parseFloat(d))}else Jo[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let a=0;a<t.length;a++)(t[a]===null||cge(t[a]))&&r.push(a);r.length&&gge(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=Jo[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const a=n[n.length-1];a!==void 0&&t.getValue(r,a).jump(a,!1)}measureEndState(){const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const a=t.getValue(n);a&&a.jump(this.measuredOrigin,!1);const o=r.length-1,l=r[o];r[o]=Jo[n](t.measureViewportBox(),window.getComputedStyle(t.current)),l!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=l),this.removedTransforms?.length&&this.removedTransforms.forEach(([c,f])=>{t.getValue(c).set(f)}),this.resolveNoneKeyframes()}}function yge(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const a=n?.[e]??r.querySelectorAll(e);return a?Array.from(a):[]}return Array.from(e)}const Qq=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Wq(e){return hq(e)&&"offsetHeight"in e}const $3=30,bge=e=>!isNaN(parseFloat(e));class xge{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const a=Gn.now();if(this.updatedAt!==a&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Gn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=bge(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 FP);const r=this.events[t].add(n);return t==="change"?()=>{r(),St.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){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}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()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Gn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>$3)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,$3);return mq(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.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function oc(e,t){return new xge(e,t)}const{schedule:o2}=_q(queueMicrotask,!1),Vr={x:!1,y:!1};function Zq(){return Vr.x||Vr.y}function wge(e){return e==="x"||e==="y"?Vr[e]?null:(Vr[e]=!0,()=>{Vr[e]=!1}):Vr.x||Vr.y?null:(Vr.x=Vr.y=!0,()=>{Vr.x=Vr.y=!1})}function Jq(e,t){const n=yge(e),r=new AbortController,a={passive:!0,...t,signal:r.signal};return[n,a,()=>r.abort()]}function B3(e){return!(e.pointerType==="touch"||Zq())}function Sge(e,t,n={}){const[r,a,o]=Jq(e,n),l=c=>{if(!B3(c))return;const{target:f}=c,d=t(f,c);if(typeof d!="function"||!f)return;const m=h=>{B3(h)&&(d(h),f.removeEventListener("pointerleave",m))};f.addEventListener("pointerleave",m,a)};return r.forEach(c=>{c.addEventListener("pointerenter",l,a)}),o}const ez=(e,t)=>t?e===t?!0:ez(e,t.parentElement):!1,s2=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,Oge=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Age(e){return Oge.has(e.tagName)||e.tabIndex!==-1}const yp=new WeakSet;function q3(e){return t=>{t.key==="Enter"&&e(t)}}function Tw(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Pge=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=q3(()=>{if(yp.has(n))return;Tw(n,"down");const a=q3(()=>{Tw(n,"up")}),o=()=>Tw(n,"cancel");n.addEventListener("keyup",a,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function z3(e){return s2(e)&&!Zq()}function _ge(e,t,n={}){const[r,a,o]=Jq(e,n),l=c=>{const f=c.currentTarget;if(!z3(c))return;yp.add(f);const d=t(f,c),m=(x,O)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",g),yp.has(f)&&yp.delete(f),z3(x)&&typeof d=="function"&&d(x,{success:O})},h=x=>{m(x,f===window||f===document||n.useGlobalTarget||ez(f,x.target))},g=x=>{m(x,!1)};window.addEventListener("pointerup",h,a),window.addEventListener("pointercancel",g,a)};return r.forEach(c=>{(n.useGlobalTarget?window:c).addEventListener("pointerdown",l,a),Wq(c)&&(c.addEventListener("focus",d=>Pge(d,a)),!Age(c)&&!c.hasAttribute("tabindex")&&(c.tabIndex=0))}),o}function tz(e){return hq(e)&&"ownerSVGElement"in e}function Cge(e){return tz(e)&&e.tagName==="svg"}const Pn=e=>!!(e&&e.getVelocity),Tge=[...Gq,Vt,to],jge=e=>Tge.find(Kq(e)),l2=j.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function U3(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Ege(...e){return t=>{let n=!1;const r=e.map(a=>{const o=U3(a,t);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let a=0;a<r.length;a++){const o=r[a];typeof o=="function"?o():U3(e[a],null)}}}}function Nge(...e){return j.useCallback(Ege(...e),e)}class Mge extends j.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,a=Wq(r)&&r.offsetWidth||0,o=this.props.sizeRef.current;o.height=n.offsetHeight||0,o.width=n.offsetWidth||0,o.top=n.offsetTop,o.left=n.offsetLeft,o.right=a-o.width-o.left}return null}componentDidUpdate(){}render(){return this.props.children}}function Dge({children:e,isPresent:t,anchorX:n,root:r}){const a=j.useId(),o=j.useRef(null),l=j.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:c}=j.useContext(l2),f=Nge(o,e?.ref);return j.useInsertionEffect(()=>{const{width:d,height:m,top:h,left:g,right:x}=l.current;if(t||!o.current||!d||!m)return;const O=n==="left"?`left: ${g}`:`right: ${x}`;o.current.dataset.motionPopId=a;const b=document.createElement("style");c&&(b.nonce=c);const S=r??document.head;return S.appendChild(b),b.sheet&&b.sheet.insertRule(` 371 [data-motion-pop-id="${a}"] { 372 position: absolute !important; 373 width: ${d}px !important; 374 height: ${m}px !important; 375 ${O}px !important; 376 top: ${h}px !important; 377 } 378 `),()=>{S.contains(b)&&S.removeChild(b)}},[t]),v.jsx(Mge,{isPresent:t,childRef:o,sizeRef:l,children:j.cloneElement(e,{ref:f})})}const Rge=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:a,presenceAffectsLayout:o,mode:l,anchorX:c,root:f})=>{const d=BP(kge),m=j.useId();let h=!0,g=j.useMemo(()=>(h=!1,{id:m,initial:t,isPresent:n,custom:a,onExitComplete:x=>{d.set(x,!0);for(const O of d.values())if(!O)return;r&&r()},register:x=>(d.set(x,!1),()=>d.delete(x))}),[n,d,r]);return o&&h&&(g={...g}),j.useMemo(()=>{d.forEach((x,O)=>d.set(O,!1))},[n]),j.useEffect(()=>{!n&&!d.size&&r&&r()},[n]),l==="popLayout"&&(e=v.jsx(Dge,{isPresent:n,anchorX:c,root:f,children:e})),v.jsx($g.Provider,{value:g,children:e})};function kge(){return new Map}function nz(e=!0){const t=j.useContext($g);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:a}=t,o=j.useId();j.useEffect(()=>{if(e)return a(o)},[e]);const l=j.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,l]:[!0]}const cp=e=>e.key||"";function H3(e){const t=[];return j.Children.forEach(e,n=>{j.isValidElement(n)&&t.push(n)}),t}const V3=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:a=!0,mode:o="sync",propagate:l=!1,anchorX:c="left",root:f})=>{const[d,m]=nz(l),h=j.useMemo(()=>H3(e),[e]),g=l&&!d?[]:h.map(cp),x=j.useRef(!0),O=j.useRef(h),b=BP(()=>new Map),[S,A]=j.useState(h),[_,C]=j.useState(h);fq(()=>{x.current=!1,O.current=h;for(let E=0;E<_.length;E++){const T=cp(_[E]);g.includes(T)?b.delete(T):b.get(T)!==!0&&b.set(T,!1)}},[_,g.length,g.join("-")]);const M=[];if(h!==S){let E=[...h];for(let T=0;T<_.length;T++){const D=_[T],L=cp(D);g.includes(L)||(E.splice(T,0,D),M.push(D))}return o==="wait"&&M.length&&(E=M),C(H3(E)),A(h),null}const{forceRender:P}=j.useContext($P);return v.jsx(v.Fragment,{children:_.map(E=>{const T=cp(E),D=l&&!d?!1:h===_||g.includes(T),L=()=>{if(b.has(T))b.set(T,!0);else return;let U=!0;b.forEach(I=>{I||(U=!1)}),U&&(P?.(),C(O.current),l&&m?.(),r&&r())};return v.jsx(Rge,{isPresent:D,initial:!x.current||n?void 0:!1,custom:t,presenceAffectsLayout:a,mode:o,root:f,onExitComplete:D?void 0:L,anchorX:c,children:E},T)})})},rz=j.createContext({strict:!1}),F3={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"]},sc={};for(const e in F3)sc[e]={isEnabled:t=>F3[e].some(n=>!!t[n])};function Ige(e){for(const t in e)sc[t]={...sc[t],...e[t]}}const Lge=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 km(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Lge.has(e)}let az=e=>!km(e);function $ge(e){typeof e=="function"&&(az=t=>t.startsWith("on")?!km(t):e(t))}try{$ge(require("@emotion/is-prop-valid").default)}catch{}function Bge(e,t,n){const r={};for(const a in e)a==="values"&&typeof e.values=="object"||(az(a)||n===!0&&km(a)||!t&&!km(a)||e.draggable&&a.startsWith("onDrag"))&&(r[a]=e[a]);return r}const Bg=j.createContext({});function qg(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Kf(e){return typeof e=="string"||Array.isArray(e)}const c2=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],u2=["initial",...c2];function zg(e){return qg(e.animate)||u2.some(t=>Kf(e[t]))}function iz(e){return!!(zg(e)||e.variants)}function qge(e,t){if(zg(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Kf(n)?n:void 0,animate:Kf(r)?r:void 0}}return e.inherit!==!1?t:{}}
vendor: 4,529 bytes, line 378
378function zge(e){const{initial:t,animate:n}=qge(e,j.useContext(Bg));return j.useMemo(()=>({initial:t,animate:n}),[K3(t),K3(n)])}function K3(e){return Array.isArray(e)?e.join(" "):e}const Gf={};function Uge(e){for(const t in e)Gf[t]=e[t],YP(t)&&(Gf[t].isCSSVariable=!0)}function oz(e,{layout:t,layoutId:n}){return _c.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Gf[e]||e==="opacity")}const Hge={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Vge=Pc.length;function Fge(e,t,n){let r="",a=!0;for(let o=0;o<Vge;o++){const l=Pc[o],c=e[l];if(c===void 0)continue;let f=!0;if(typeof c=="number"?f=c===(l.startsWith("scale")?1:0):f=parseFloat(c)===0,!f||n){const d=Qq(c,i2[l]);if(!f){a=!1;const m=Hge[l]||l;r+=`${m}(${d}) `}n&&(t[l]=d)}}return r=r.trim(),n?r=n(t,a?"":r):a&&(r="none"),r}function f2(e,t,n){const{style:r,vars:a,transformOrigin:o}=e;let l=!1,c=!1;for(const f in t){const d=t[f];if(_c.has(f)){l=!0;continue}else if(YP(f)){a[f]=d;continue}else{const m=Qq(d,i2[f]);f.startsWith("origin")?(c=!0,o[f]=m):r[f]=m}}if(t.transform||(l||n?r.transform=Fge(t,e.transform,n):r.transform&&(r.transform="none")),c){const{originX:f="50%",originY:d="50%",originZ:m=0}=o;r.transformOrigin=`${f} ${d} ${m}`}}const d2=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function sz(e,t,n){for(const r in t)!Pn(t[r])&&!oz(r,n)&&(e[r]=t[r])}function Kge({transformTemplate:e},t){return j.useMemo(()=>{const n=d2();return f2(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Gge(e,t){const n=e.style||{},r={};return sz(r,n,e),Object.assign(r,Kge(e,t)),r}function Yge(e,t){const n={},r=Gge(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const Xge={offset:"stroke-dashoffset",array:"stroke-dasharray"},Qge={offset:"strokeDashoffset",array:"strokeDasharray"};function Wge(e,t,n=1,r=0,a=!0){e.pathLength=1;const o=a?Xge:Qge;e[o.offset]=Te.transform(-r);const l=Te.transform(t),c=Te.transform(n);e[o.array]=`${l} ${c}`}function lz(e,{attrX:t,attrY:n,attrScale:r,pathLength:a,pathSpacing:o=1,pathOffset:l=0,...c},f,d,m){if(f2(e,c,d),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:h,style:g}=e;h.transform&&(g.transform=h.transform,delete h.transform),(g.transform||h.transformOrigin)&&(g.transformOrigin=h.transformOrigin??"50% 50%",delete h.transformOrigin),g.transform&&(g.transformBox=m?.transformBox??"fill-box",delete h.transformBox),t!==void 0&&(h.x=t),n!==void 0&&(h.y=n),r!==void 0&&(h.scale=r),a!==void 0&&Wge(h,a,o,l,!1)}const cz=()=>({...d2(),attrs:{}}),uz=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Zge(e,t,n,r){const a=j.useMemo(()=>{const o=cz();return lz(o,t,uz(r),e.transformTemplate,e.style),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};sz(o,e.style,e),a.style={...o,...a.style}}return a}const Jge=["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 h2(e){return typeof e!="string"||e.includes("-")?!1:!!(Jge.indexOf(e)>-1||/[A-Z]/u.test(e))}function eve(e,t,n,{latestValues:r},a,o=!1){const c=(h2(e)?Zge:Yge)(t,r,a,e),f=Bge(t,typeof e=="string",o),d=e!==j.Fragment?{...f,...c,ref:n}:{},{children:m}=t,h=j.useMemo(()=>Pn(m)?m.get():m,[m]);return j.createElement(e,{...d,children:h})}function G3(e){const t=[{},{}];return e?.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function p2(e,t,n,r){if(typeof t=="function"){const[a,o]=G3(r);t=t(n!==void 0?n:e.custom,a,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[a,o]=G3(r);t=t(n!==void 0?n:e.custom,a,o)}return t}function bp(e){return Pn(e)?e.get():e}function tve({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,a){return{latestValues:nve(n,r,a,e),renderState:t()}}function nve(e,t,n,r){const a={},o=r(e,{});for(const g in o)a[g]=bp(o[g]);let{initial:l,animate:c}=e;const f=zg(e),d=iz(e);t&&d&&!f&&e.inherit!==!1&&(l===void 0&&(l=t.initial),c===void 0&&(c=t.animate));let m=n?n.initial===!1:!1;m=m||l===!1;const h=m?c:l;if(h&&typeof h!="boolean"&&!qg(h)){const g=Array.isArray(h)?h:[h];for(let x=0;x<g.length;x++){const O=p2(e,g[x]);if(O){const{transitionEnd:b,transition:S,...A}=O;for(const _ in A){let C=A[_];
vendor: 21,318 bytes, line 378
378if(Array.isArray(C)){const M=m?C.length-1:0;C=C[M]}C!==null&&(a[_]=C)}for(const _ in b)a[_]=b[_]}}}return a}const fz=e=>(t,n)=>{const r=j.useContext(Bg),a=j.useContext($g),o=()=>tve(e,t,r,a);return n?o():BP(o)};function m2(e,t,n){const{style:r}=e,a={};for(const o in r)(Pn(r[o])||t.style&&Pn(t.style[o])||oz(o,e)||n?.getValue(o)?.liveStyle!==void 0)&&(a[o]=r[o]);return a}const rve=fz({scrapeMotionValuesFromProps:m2,createRenderState:d2});function dz(e,t,n){const r=m2(e,t,n);for(const a in e)if(Pn(e[a])||Pn(t[a])){const o=Pc.indexOf(a)!==-1?"attr"+a.charAt(0).toUpperCase()+a.substring(1):a;r[o]=e[a]}return r}const ave=fz({scrapeMotionValuesFromProps:dz,createRenderState:cz}),ive=Symbol.for("motionComponentSymbol");function Sl(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function ove(e,t,n){return j.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Sl(n)&&(n.current=r))},[t])}const g2=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),sve="framerAppearId",hz="data-"+g2(sve),pz=j.createContext({});function lve(e,t,n,r,a){const{visualElement:o}=j.useContext(Bg),l=j.useContext(rz),c=j.useContext($g),f=j.useContext(l2).reducedMotion,d=j.useRef(null);r=r||l.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:o,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:f}));const m=d.current,h=j.useContext(pz);m&&!m.projection&&a&&(m.type==="html"||m.type==="svg")&&cve(d.current,n,a,h);const g=j.useRef(!1);j.useInsertionEffect(()=>{m&&g.current&&m.update(n,c)});const x=n[hz],O=j.useRef(!!x&&!window.MotionHandoffIsComplete?.(x)&&window.MotionHasOptimisedAnimation?.(x));return fq(()=>{m&&(g.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),O.current&&m.animationState&&m.animationState.animateChanges())}),j.useEffect(()=>{m&&(!O.current&&m.animationState&&m.animationState.animateChanges(),O.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(x)}),O.current=!1),m.enteringChildren=void 0)}),m}function cve(e,t,n,r){const{layoutId:a,layout:o,drag:l,dragConstraints:c,layoutScroll:f,layoutRoot:d,layoutCrossfade:m}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:mz(e.parent)),e.projection.setOptions({layoutId:a,layout:o,alwaysMeasureLayout:!!l||c&&Sl(c),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,crossfade:m,layoutScroll:f,layoutRoot:d})}function mz(e){if(e)return e.options.allowProjection!==!1?e.projection:mz(e.parent)}function jw(e,{forwardMotionProps:t=!1}={},n,r){n&&Ige(n);const a=h2(e)?ave:rve;function o(c,f){let d;const m={...j.useContext(l2),...c,layoutId:uve(c)},{isStatic:h}=m,g=zge(c),x=a(c,h);if(!h&&qP){fve();const O=dve(m);d=O.MeasureLayout,g.visualElement=lve(e,x,m,r,O.ProjectionNode)}return v.jsxs(Bg.Provider,{value:g,children:[d&&g.visualElement?v.jsx(d,{visualElement:g.visualElement,...m}):null,eve(e,c,ove(x,g.visualElement,f),x,h,t)]})}o.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const l=j.forwardRef(o);return l[ive]=e,l}function uve({layoutId:e}){const t=j.useContext($P).id;return t&&e!==void 0?t+"-"+e:e}function fve(e,t){j.useContext(rz).strict}function dve(e){const{drag:t,layout:n}=sc;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function hve(e,t){if(typeof Proxy>"u")return jw;const n=new Map,r=(o,l)=>jw(o,l,e,t),a=(o,l)=>r(o,l);return new Proxy(a,{get:(o,l)=>l==="create"?r:(n.has(l)||n.set(l,jw(l,void 0,e,t)),n.get(l))})}function gz({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function pve({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function mve(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 Ew(e){return e===void 0||e===1}function XO({scale:e,scaleX:t,scaleY:n}){return!Ew(e)||!Ew(t)||!Ew(n)}function Uo(e){return XO(e)||vz(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function vz(e){return Y3(e.x)||Y3(e.y)}function Y3(e){return e&&e!=="0%"}function Im(e,t,n){const r=e-n,a=t*r;return n+a}function X3(e,t,n,r,a){return a!==void 0&&(e=Im(e,a,r)),Im(e,n,r)+t}function QO(e,t=0,n=1,r,a){e.min=X3(e.min,t,n,r,a),e.max=X3(e.max,t,n,r,a)}function yz(e,{x:t,y:n}){QO(e.x,t.translate,t.scale,t.originPoint),QO(e.y,n.translate,n.scale,n.originPoint)}const Q3=.999999999999,W3=1.0000000000001;function gve(e,t,n,r=!1){const a=n.length;if(!a)return;t.x=t.y=1;let o,l;for(let c=0;c<a;c++){o=n[c],l=o.projectionDelta;const{visualElement:f}=o.options;f&&f.props.style&&f.props.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Al(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),l&&(t.x*=l.x.scale,t.y*=l.y.scale,yz(e,l)),r&&Uo(o.latestValues)&&Al(e,o.latestValues))}t.x<W3&&t.x>Q3&&(t.x=1),t.y<W3&&t.y>Q3&&(t.y=1)}function Ol(e,t){e.min=e.min+t,e.max=e.max+t}function Z3(e,t,n,r,a=.5){const o=Pt(e.min,e.max,a);QO(e,t,n,o,r)}function Al(e,t){Z3(e.x,t.x,t.scaleX,t.scale,t.originX),Z3(e.y,t.y,t.scaleY,t.scale,t.originY)}function bz(e,t){return gz(mve(e.getBoundingClientRect(),t))}function vve(e,t,n){const r=bz(e,n),{scroll:a}=t;return a&&(Ol(r.x,a.offset.x),Ol(r.y,a.offset.y)),r}const J3=()=>({translate:0,scale:1,origin:0,originPoint:0}),Pl=()=>({x:J3(),y:J3()}),e4=()=>({min:0,max:0}),Dt=()=>({x:e4(),y:e4()}),WO={current:null},xz={current:!1};function yve(){if(xz.current=!0,!!qP)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>WO.current=e.matches;e.addEventListener("change",t),t()}else WO.current=!1}const bve=new WeakMap;function xve(e,t,n){for(const r in t){const a=t[r],o=n[r];if(Pn(a))e.addValue(r,a);else if(Pn(o))e.addValue(r,oc(a,{owner:e}));else if(o!==a)if(e.hasValue(r)){const l=e.getValue(r);l.liveStyle===!0?l.jump(a):l.hasAnimated||l.set(a)}else{const l=e.getStaticValue(r);e.addValue(r,oc(l!==void 0?l:a,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const t4=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class wve{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:a,blockInitialAnimation:o,visualState:l},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=r2,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 g=Gn.now();this.renderScheduledAt<g&&(this.renderScheduledAt=g,St.render(this.render,!1,!0))};const{latestValues:f,renderState:d}=l;this.latestValues=f,this.baseTarget={...f},this.initialValues=n.initial?{...f}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=a,this.options=c,this.blockInitialAnimation=!!o,this.isControllingVariants=zg(n),this.isVariantNode=iz(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:m,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const g in h){const x=h[g];f[g]!==void 0&&Pn(x)&&x.set(f[g])}}mount(t){this.current=t,bve.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)),xz.current||yve(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:WO.current,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),eo(this.notifyUpdate),eo(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(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}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=_c.has(t);r&&this.onBindTransform&&this.onBindTransform();const a=n.on("change",l=>{this.latestValues[t]=l,this.props.onUpdate&&St.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{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 sc){const n=sc[t];if(!n)continue;const{isEnabled:r,Feature:a}=n;if(!this.features[t]&&a&&r(this.props)&&(this.features[t]=new a(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Dt()}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<t4.length;r++){const a=t4[r];this.propEventSubscriptions[a]&&(this.propEventSubscriptions[a](),delete this.propEventSubscriptions[a]);const o="on"+a,l=t[o];l&&(this.propEventSubscriptions[a]=this.on(a,l))}this.prevMotionValues=xve(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}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}addVariantChild(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=oc(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(dq(r)||pq(r))?r=parseFloat(r):!jge(r)&&to.test(n)&&(r=Xq(t,n)),this.setBaseTarget(t,Pn(r)?r.get():r)),Pn(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const o=p2(this.props,n,this.presenceContext?.custom);o&&(r=o[t])}if(n&&r!==void 0)return r;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!Pn(a)?a:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new FP),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){o2.render(this.render)}}class wz extends wve{constructor(){super(...arguments),this.KeyframeResolver=vge}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;Pn(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Sz(e,{style:t,vars:n},r,a){const o=e.style;let l;for(l in t)o[l]=t[l];a?.applyProjectionStyles(o,r);for(l in n)o.setProperty(l,n[l])}function Sve(e){return window.getComputedStyle(e)}class Ove extends wz{constructor(){super(...arguments),this.type="html",this.renderInstance=Sz}readValueFromInstance(t,n){if(_c.has(n))return this.projection?.isProjecting?UO(n):Ime(t,n);{const r=Sve(t),a=(YP(n)?r.getPropertyValue(n):r[n])||0;return typeof a=="string"?a.trim():a}}measureInstanceViewportBox(t,{transformPagePoint:n}){return bz(t,n)}build(t,n,r){f2(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return m2(t,n,r)}}const Oz=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 Ave(e,t,n,r){Sz(e,t,void 0,r);for(const a in t.attrs)e.setAttribute(Oz.has(a)?a:g2(a),t.attrs[a])}class Pve extends wz{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Dt}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(_c.has(n)){const r=Yq(n);return r&&r.default||0}return n=Oz.has(n)?n:g2(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return dz(t,n,r)}build(t,n,r){lz(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,a){Ave(t,n,r,a)}mount(t){this.isSVGTag=uz(t.tagName),super.mount(t)}}const _ve=(e,t)=>h2(e)?new Pve(t):new Ove(t,{allowProjection:e!==j.Fragment});function Dl(e,t,n){const r=e.getProps();return p2(r,t,n!==void 0?n:r.custom,e)}const ZO=e=>Array.isArray(e);function Cve(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,oc(n))}function Tve(e){return ZO(e)?e[e.length-1]||0:e}function jve(e,t){const n=Dl(e,t);let{transitionEnd:r={},transition:a={},...o}=n||{};o={...o,...r};for(const l in o){const c=Tve(o[l]);Cve(e,l,c)}}function Eve(e){return!!(Pn(e)&&e.add)}function JO(e,t){const n=e.getValue("willChange");if(Eve(n))return n.add(t);if(!n&&oi.WillChange){const r=new oi.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Az(e){return e.props[hz]}const Nve=e=>e!==null;function Mve(e,{repeat:t,repeatType:n="loop"},r){const a=e.filter(Nve),o=t&&n!=="loop"&&t%2===1?0:a.length-1;return a[o]}const Dve={type:"spring",stiffness:500,damping:25,restSpeed:10},Rve=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),kve={type:"keyframes",duration:.8},Ive={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Lve=(e,{keyframes:t})=>t.length>2?kve:_c.has(e)?e.startsWith("scale")?Rve(t[1]):Dve:Ive;function $ve({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:a,repeat:o,repeatType:l,repeatDelay:c,from:f,elapsed:d,...m}){return!!Object.keys(m).length}const v2=(e,t,n,r={},a,o)=>l=>{const c=a2(r,e)||{},f=c.delay||r.delay||0;let{elapsed:d=0}=r;d=d-va(f);const m={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...c,delay:-d,onUpdate:g=>{t.set(g),c.onUpdate&&c.onUpdate(g)},onComplete:()=>{l(),c.onComplete&&c.onComplete()},name:e,motionValue:t,element:o?void 0:a};$ve(c)||Object.assign(m,Lve(e,m)),m.duration&&(m.duration=va(m.duration)),m.repeatDelay&&(m.repeatDelay=va(m.repeatDelay)),m.from!==void 0&&(m.keyframes[0]=m.from);let h=!1;if((m.type===!1||m.duration===0&&!m.repeatDelay)&&(GO(m),m.delay===0&&(h=!0)),(oi.instantAnimations||oi.skipAnimations)&&(h=!0,GO(m),m.delay=0),m.allowFlatten=!c.type&&!c.ease,h&&!o&&t.get()!==void 0){const g=Mve(m.keyframes,c);if(g!==void 0){St.update(()=>{m.onUpdate(g),m.onComplete()});return}}return c.isSync?new n2(m):new ige(m)};function Bve({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Pz(e,t,{delay:n=0,transitionOverride:r,type:a}={}){let{transition:o=e.getDefaultTransition(),transitionEnd:l,...c}=t;r&&(o=r);const f=[],d=a&&e.animationState&&e.animationState.getState()[a];for(const m in c){const h=e.getValue(m,e.latestValues[m]??null),g=c[m];if(g===void 0||d&&Bve(d,m))continue;const x={delay:n,...a2(o||{},m)},O=h.get();if(O!==void 0&&!h.isAnimating&&!Array.isArray(g)&&g===O&&!x.velocity)continue;let b=!1;if(window.MotionHandoffAnimation){const A=Az(e);if(A){const _=window.MotionHandoffAnimation(A,m,St);_!==null&&(x.startTime=_,b=!0)}}JO(e,m),h.start(v2(m,h,g,e.shouldReduceMotion&&Fq.has(m)?{type:!1}:x,e,b));const S=h.animation;S&&f.push(S)}return l&&Promise.all(f).then(()=>{St.update(()=>{l&&jve(e,l)})}),f}function _z(e,t,n,r=0,a=1){const o=Array.from(e).sort((d,m)=>d.sortNodePosition(m)).indexOf(t),l=e.size,c=(l-1)*r;return typeof n=="function"?n(o,l):a===1?o*r:c-o*r}function eA(e,t,n={}){const r=Dl(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:a=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(a=n.transitionOverride);const o=r?()=>Promise.all(Pz(e,r,n)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?(f=0)=>{const{delayChildren:d=0,staggerChildren:m,staggerDirection:h}=a;return qve(e,t,f,d,m,h,n)}:()=>Promise.resolve(),{when:c}=a;if(c){const[f,d]=c==="beforeChildren"?[o,l]:[l,o];return f().then(()=>d())}else return Promise.all([o(),l(n.delay)])}function qve(e,t,n=0,r=0,a=0,o=1,l){const c=[];for(const f of e.variantChildren)f.notify("AnimationStart",t),c.push(eA(f,t,{...l,delay:n+(typeof r=="function"?0:r)+_z(e.variantChildren,f,r,a,o)}).then(()=>f.notify("AnimationComplete",t)));return Promise.all(c)}function zve(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const a=t.map(o=>eA(e,o,n));r=Promise.all(a)}else if(typeof t=="string")r=eA(e,t,n);else{const a=typeof t=="function"?Dl(e,t,n.custom):t;r=Promise.all(Pz(e,a,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function Cz(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}const Uve=u2.length;function Tz(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Tz(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<Uve;n++){const r=u2[n],a=e.props[r];(Kf(a)||a===!1)&&(t[r]=a)}return t}const Hve=[...c2].reverse(),Vve=c2.length;function Fve(e){return t=>Promise.all(t.map(({animation:n,options:r})=>zve(e,n,r)))}function Kve(e){let t=Fve(e),n=n4(),r=!0;const a=f=>(d,m)=>{const h=Dl(e,m,f==="exit"?e.presenceContext?.custom:void 0);if(h){const{transition:g,transitionEnd:x,...O}=h;d={...d,...O,...x}}return d};function o(f){t=f(e)}function l(f){const{props:d}=e,m=Tz(e.parent)||{},h=[],g=new Set;let x={},O=1/0;for(let S=0;S<Vve;S++){const A=Hve[S],_=n[A],C=d[A]!==void 0?d[A]:m[A],M=Kf(C),P=A===f?_.isActive:null;P===!1&&(O=S);let E=C===m[A]&&C!==d[A]&&M;if(E&&r&&e.manuallyAnimateOnMount&&(E=!1),_.protectedKeys={...x},!_.isActive&&P===null||!C&&!_.prevProp||qg(C)||typeof C=="boolean")continue;const T=Gve(_.prevProp,C);let D=T||A===f&&_.isActive&&!E&&M||S>O&&M,L=!1;const U=Array.isArray(C)?C:[C];let I=U.reduce(a(A),{});P===!1&&(I={});const{prevResolvedValues:z={}}=_,F={...z,...I},K=$=>{D=!0,g.has($)&&(L=!0,g.delete($)),_.needsAnimating[$]=!0;const H=e.getValue($);H&&(H.liveStyle=!1)};for(const $ in F){const H=I[$],W=z[$];if(x.hasOwnProperty($))continue;let ae=!1;ZO(H)&&ZO(W)?ae=!Cz(H,W):ae=H!==W,ae?H!=null?K($):g.add($):H!==void 0&&g.has($)?K($):_.protectedKeys[$]=!0}_.prevProp=C,_.prevResolvedValues=I,_.isActive&&(x={...x,...I}),r&&e.blockInitialAnimation&&(D=!1);const q=E&&T;D&&(!q||L)&&h.push(...U.map($=>{const H={type:A};if(typeof $=="string"&&r&&!q&&e.manuallyAnimateOnMount&&e.parent){const{parent:W}=e,ae=Dl(W,$);if(W.enteringChildren&&ae){const{delayChildren:B}=ae.transition||{};H.delay=_z(W.enteringChildren,e,B)}}return{animation:$,options:H}}))}if(g.size){const S={};if(typeof d.initial!="boolean"){const A=Dl(e,Array.isArray(d.initial)?d.initial[0]:d.initial);A&&A.transition&&(S.transition=A.transition)}g.forEach(A=>{const _=e.getBaseTarget(A),C=e.getValue(A);C&&(C.liveStyle=!0),S[A]=_??null}),h.push({animation:S})}let b=!!h.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(b=!1),r=!1,b?t(h):Promise.resolve()}
vendor: 7,118 bytes, line 378
378function c(f,d){if(n[f].isActive===d)return Promise.resolve();e.variantChildren?.forEach(h=>h.animationState?.setActive(f,d)),n[f].isActive=d;const m=l(f);for(const h in n)n[h].protectedKeys={};return m}return{animateChanges:l,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=n4(),r=!0}}}function Gve(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Cz(t,e):!1}function Lo(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function n4(){return{animate:Lo(!0),whileInView:Lo(),whileHover:Lo(),whileTap:Lo(),whileDrag:Lo(),whileFocus:Lo(),exit:Lo()}}class uo{constructor(t){this.isMounted=!1,this.node=t}update(){}}class Yve extends uo{constructor(t){super(t),t.animationState||(t.animationState=Kve(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();qg(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(){this.node.animationState.reset(),this.unmountControls?.()}}let Xve=0;class Qve extends uo{constructor(){super(...arguments),this.id=Xve++}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 a=this.node.animationState.setActive("exit",!t);n&&!t&&a.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const Wve={animation:{Feature:Yve},exit:{Feature:Qve}};function Yf(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function yd(e){return{point:{x:e.pageX,y:e.pageY}}}const Zve=e=>t=>s2(t)&&e(t,yd(t));function Yu(e,t,n,r){return Yf(e,t,Zve(n),r)}const jz=1e-4,Jve=1-jz,eye=1+jz,Ez=.01,tye=0-Ez,nye=0+Ez;function Nn(e){return e.max-e.min}function rye(e,t,n){return Math.abs(e-t)<=n}function r4(e,t,n,r=.5){e.origin=r,e.originPoint=Pt(t.min,t.max,e.origin),e.scale=Nn(n)/Nn(t),e.translate=Pt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Jve&&e.scale<=eye||isNaN(e.scale))&&(e.scale=1),(e.translate>=tye&&e.translate<=nye||isNaN(e.translate))&&(e.translate=0)}function Xu(e,t,n,r){r4(e.x,t.x,n.x,r?r.originX:void 0),r4(e.y,t.y,n.y,r?r.originY:void 0)}function a4(e,t,n){e.min=n.min+t.min,e.max=e.min+Nn(t)}function aye(e,t,n){a4(e.x,t.x,n.x),a4(e.y,t.y,n.y)}function i4(e,t,n){e.min=t.min-n.min,e.max=e.min+Nn(t)}function Qu(e,t,n){i4(e.x,t.x,n.x),i4(e.y,t.y,n.y)}function Cr(e){return[e("x"),e("y")]}const Nz=({current:e})=>e?e.ownerDocument.defaultView:null,o4=(e,t)=>Math.abs(e-t);function iye(e,t){const n=o4(e.x,t.x),r=o4(e.y,t.y);return Math.sqrt(n**2+r**2)}class Mz{constructor(t,n,{transformPagePoint:r,contextWindow:a=window,dragSnapToOrigin:o=!1,distanceThreshold:l=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const g=Mw(this.lastMoveEventInfo,this.history),x=this.startEvent!==null,O=iye(g.offset,{x:0,y:0})>=this.distanceThreshold;if(!x&&!O)return;const{point:b}=g,{timestamp:S}=fn;this.history.push({...b,timestamp:S});const{onStart:A,onMove:_}=this.handlers;x||(A&&A(this.lastMoveEvent,g),this.startEvent=this.lastMoveEvent),_&&_(this.lastMoveEvent,g)},this.handlePointerMove=(g,x)=>{this.lastMoveEvent=g,this.lastMoveEventInfo=Nw(x,this.transformPagePoint),St.update(this.updatePoint,!0)},this.handlePointerUp=(g,x)=>{this.end();const{onEnd:O,onSessionEnd:b,resumeAnimation:S}=this.handlers;if(this.dragSnapToOrigin&&S&&S(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const A=Mw(g.type==="pointercancel"?this.lastMoveEventInfo:Nw(x,this.transformPagePoint),this.history);this.startEvent&&O&&O(g,A),b&&b(g,A)},!s2(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=l,this.contextWindow=a||window;const c=yd(t),f=Nw(c,this.transformPagePoint),{point:d}=f,{timestamp:m}=fn;this.history=[{...d,timestamp:m}];const{onSessionStart:h}=n;h&&h(t,Mw(f,this.history)),this.removeListeners=md(Yu(this.contextWindow,"pointermove",this.handlePointerMove),Yu(this.contextWindow,"pointerup",this.handlePointerUp),Yu(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),eo(this.updatePoint)}}function Nw(e,t){return t?{point:t(e.point)}:e}function s4(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Mw({point:e},t){return{point:e,delta:s4(e,Dz(t)),offset:s4(e,oye(t)),velocity:sye(t,.1)}}function oye(e){return e[0]}function Dz(e){return e[e.length-1]}function sye(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const a=Dz(e);for(;n>=0&&(r=e[n],!(a.timestamp-r.timestamp>va(t)));)n--;if(!r)return{x:0,y:0};const o=Er(a.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const l={x:(a.x-r.x)/o,y:(a.y-r.y)/o};return l.x===1/0&&(l.x=0),l.y===1/0&&(l.y=0),l}function lye(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Pt(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Pt(n,e,r.max):Math.min(e,n)),e}function l4(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 cye(e,{top:t,left:n,bottom:r,right:a}){return{x:l4(e.x,n,a),y:l4(e.y,t,r)}}function c4(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 uye(e,t){return{x:c4(e.x,t.x),y:c4(e.y,t.y)}}function fye(e,t){let n=.5;const r=Nn(e),a=Nn(t);return a>r?n=Hf(t.min,t.max-r,e.min):r>a&&(n=Hf(e.min,e.max-a,t.min)),ii(0,1,n)}function dye(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 tA=.35;function hye(e=tA){return e===!1?e=0:e===!0&&(e=tA),{x:u4(e,"left","right"),y:u4(e,"top","bottom")}}function u4(e,t,n){return{min:f4(e,t),max:f4(e,n)}}function f4(e,t){return typeof e=="number"?e:e[t]||0}const pye=new WeakMap;class mye{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=Dt(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:a}=this.visualElement;if(a&&a.isPresent===!1)return;const o=h=>{const{dragSnapToOrigin:g}=this.getProps();g?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(yd(h).point)},l=(h,g)=>{const{drag:x,dragPropagation:O,onDragStart:b}=this.getProps();if(x&&!O&&(this.openDragLock&&this.openDragLock(),this.openDragLock=wge(x),!this.openDragLock))return;this.latestPointerEvent=h,this.latestPanInfo=g,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Cr(A=>{let _=this.getAxisMotionValue(A).get()||0;if(ya.test(_)){const{projection:C}
vendor: 7,320 bytes, line 378
378=this.visualElement;if(C&&C.layout){const M=C.layout.layoutBox[A];M&&(_=Nn(M)*(parseFloat(_)/100))}}this.originPoint[A]=_}),b&&St.postRender(()=>b(h,g)),JO(this.visualElement,"transform");const{animationState:S}=this.visualElement;S&&S.setActive("whileDrag",!0)},c=(h,g)=>{this.latestPointerEvent=h,this.latestPanInfo=g;const{dragPropagation:x,dragDirectionLock:O,onDirectionLock:b,onDrag:S}=this.getProps();if(!x&&!this.openDragLock)return;const{offset:A}=g;if(O&&this.currentDirection===null){this.currentDirection=gye(A),this.currentDirection!==null&&b&&b(this.currentDirection);return}this.updateAxis("x",g.point,A),this.updateAxis("y",g.point,A),this.visualElement.render(),S&&S(h,g)},f=(h,g)=>{this.latestPointerEvent=h,this.latestPanInfo=g,this.stop(h,g),this.latestPointerEvent=null,this.latestPanInfo=null},d=()=>Cr(h=>this.getAnimationState(h)==="paused"&&this.getAxisMotionValue(h).animation?.play()),{dragSnapToOrigin:m}=this.getProps();this.panSession=new Mz(t,{onSessionStart:o,onStart:l,onMove:c,onSessionEnd:f,resumeAnimation:d},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:m,distanceThreshold:r,contextWindow:Nz(this.visualElement)})}stop(t,n){const r=t||this.latestPointerEvent,a=n||this.latestPanInfo,o=this.isDragging;if(this.cancel(),!o||!a||!r)return;const{velocity:l}=a;this.startAnimation(l);const{onDragEnd:c}=this.getProps();c&&St.postRender(()=>c(r,a))}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:a}=this.getProps();if(!r||!up(t,a,this.currentDirection))return;const o=this.getAxisMotionValue(t);let l=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(l=lye(l,this.constraints[t],this.elastic[t])),o.set(l)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,a=this.constraints;t&&Sl(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=cye(r.layoutBox,t):this.constraints=!1,this.elastic=hye(n),a!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Cr(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=dye(r.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Sl(t))return!1;const r=t.current,{projection:a}=this.visualElement;if(!a||!a.layout)return!1;const o=vve(r,a.root,this.visualElement.getTransformPagePoint());let l=uye(a.layout.layoutBox,o);if(n){const c=n(pve(l));this.hasMutatedConstraints=!!c,c&&(l=gz(c))}return l}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:a,dragTransition:o,dragSnapToOrigin:l,onDragTransitionEnd:c}=this.getProps(),f=this.constraints||{},d=Cr(m=>{if(!up(m,n,this.currentDirection))return;let h=f&&f[m]||{};l&&(h={min:0,max:0});const g=a?200:1e6,x=a?40:1e7,O={type:"inertia",velocity:r?t[m]:0,bounceStiffness:g,bounceDamping:x,timeConstant:750,restDelta:1,restSpeed:10,...o,...h};return this.startAxisValueAnimation(m,O)});return Promise.all(d).then(c)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return JO(this.visualElement,t),r.start(v2(t,r,0,n,this.visualElement,!1))}stopAnimation(){Cr(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Cr(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),a=r[n];return a||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Cr(n=>{const{drag:r}=this.getProps();if(!up(n,r,this.currentDirection))return;const{projection:a}=this.visualElement,o=this.getAxisMotionValue(n);if(a&&a.layout){const{min:l,max:c}=a.layout.layoutBox[n];o.set(t[n]-Pt(l,c,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Sl(n)||!r||!this.constraints)return;this.stopAnimation();const a={x:0,y:0};Cr(l=>{const c=this.getAxisMotionValue(l);if(c&&this.constraints!==!1){const f=c.get();a[l]=fye({min:f,max:f},this.constraints[l])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Cr(l=>{if(!up(l,t,null))return;const c=this.getAxisMotionValue(l),{min:f,max:d}=this.constraints[l];c.set(Pt(f,d,a[l]))})}addListeners(){if(!this.visualElement.current)return;pye.set(this.visualElement,this);const t=this.visualElement.current,n=Yu(t,"pointerdown",f=>{const{drag:d,dragListener:m=!0}=this.getProps();d&&m&&this.start(f)}),r=()=>{const{dragConstraints:f}=this.getProps();Sl(f)&&f.current&&(this.constraints=this.resolveRefConstraints())},{projection:a}=this.visualElement,o=a.addEventListener("measure",r);a&&!a.layout&&(a.root&&a.root.updateScroll(),a.updateLayout()),St.read(r);const l=Yf(window,"resize",()=>this.scalePositionWithinConstraints()),c=a.addEventListener("didUpdate",(({delta:f,hasLayoutChanged:d})=>{this.isDragging&&d&&(Cr(m=>{const h=this.getAxisMotionValue(m);h&&(this.originPoint[m]+=f[m].translate,h.set(h.get()+f[m].translate))}),this.visualElement.render())}));return()=>{l(),n(),o(),c&&c()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:a=!1,dragConstraints:o=!1,dragElastic:l=tA,dragMomentum:c=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:a,dragConstraints:o,dragElastic:l,dragMomentum:c}}}function up(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function gye(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class vye extends uo{constructor(t){super(t),this.removeGroupControls=Rr,this.removeListeners=Rr,this.controls=new mye(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Rr}unmount(){this.removeGroupControls(),this.removeListeners()}}const d4=e=>(t,n)=>{e&&St.postRender(()=>e(t,n))};class yye extends uo{constructor(){super(...arguments),this.removePointerDownListener=Rr}onPointerDown(t){this.session=new Mz(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Nz(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:a}=this.node.getProps();return{onSessionStart:d4(t),onStart:d4(n),onMove:r,onEnd:(o,l)=>{delete this.session,a&&St.postRender(()=>a(o,l))}}}mount(){this.removePointerDownListener=Yu(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 xp={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function h4(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Du={correct:(e,t)=>
vendor: 5,105 bytes, line 378
378{if(!t.target)return e;if(typeof e=="string")if(Te.test(e))e=parseFloat(e);else return e;const n=h4(e,t.target.x),r=h4(e,t.target.y);return`${n}% ${r}%`}},bye={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,a=to.parse(e);if(a.length>5)return r;const o=to.createTransformer(e),l=typeof a[0]!="number"?1:0,c=n.x.scale*t.x,f=n.y.scale*t.y;a[0+l]/=c,a[1+l]/=f;const d=Pt(c,f,.5);return typeof a[2+l]=="number"&&(a[2+l]/=d),typeof a[3+l]=="number"&&(a[3+l]/=d),o(a)}};let Dw=!1;class xye extends j.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:a}=this.props,{projection:o}=t;Uge(wye),o&&(n.group&&n.group.add(o),r&&r.register&&a&&r.register(o),Dw&&o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),xp.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:a,isPresent:o}=this.props,{projection:l}=r;return l&&(l.isPresent=o,Dw=!0,a||t.layoutDependency!==n||n===void 0||t.isPresent!==o?l.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?l.promote():l.relegate()||St.postRender(()=>{const c=l.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),o2.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:a}=t;Dw=!0,a&&(a.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(a),r&&r.deregister&&r.deregister(a))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Rz(e){const[t,n]=nz(),r=j.useContext($P);return v.jsx(xye,{...e,layoutGroup:r,switchLayoutGroup:j.useContext(pz),isPresent:t,safeToRemove:n})}const wye={borderRadius:{...Du,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Du,borderTopRightRadius:Du,borderBottomLeftRadius:Du,borderBottomRightRadius:Du,boxShadow:bye};function Sye(e,t,n){const r=Pn(e)?e:oc(e);return r.start(v2("",r,t,n)),r.animation}const Oye=(e,t)=>e.depth-t.depth;class Aye{constructor(){this.children=[],this.isDirty=!1}add(t){zP(this.children,t),this.isDirty=!0}remove(t){UP(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Oye),this.isDirty=!1,this.children.forEach(t)}}function Pye(e,t){const n=Gn.now(),r=({timestamp:a})=>{const o=a-n;o>=t&&(eo(r),e(o-t))};return St.setup(r,!0),()=>eo(r)}const kz=["TopLeft","TopRight","BottomLeft","BottomRight"],_ye=kz.length,p4=e=>typeof e=="string"?parseFloat(e):e,m4=e=>typeof e=="number"||Te.test(e);function Cye(e,t,n,r,a,o){a?(e.opacity=Pt(0,n.opacity??1,Tye(r)),e.opacityExit=Pt(t.opacity??1,0,jye(r))):o&&(e.opacity=Pt(t.opacity??1,n.opacity??1,r));for(let l=0;l<_ye;l++){const c=`border${kz[l]}Radius`;let f=g4(t,c),d=g4(n,c);if(f===void 0&&d===void 0)continue;f||(f=0),d||(d=0),f===0||d===0||m4(f)===m4(d)?(e[c]=Math.max(Pt(p4(f),p4(d),r),0),(ya.test(d)||ya.test(f))&&(e[c]+="%")):e[c]=d}(t.rotate||n.rotate)&&(e.rotate=Pt(t.rotate||0,n.rotate||0,r))}function g4(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Tye=Iz(0,.5,Sq),jye=Iz(.5,.95,Rr);function Iz(e,t,n){return r=>r<e?0:r>t?1:n(Hf(e,t,r))}function v4(e,t){e.min=t.min,e.max=t.max}function _r(e,t){v4(e.x,t.x),v4(e.y,t.y)}function y4(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function b4(e,t,n,r,a){return e-=t,e=Im(e,1/n,r),a!==void 0&&(e=Im(e,1/a,r)),e}function Eye(e,t=0,n=1,r=.5,a,o=e,l=e){if(ya.test(t)&&(t=parseFloat(t),t=Pt(l.min,l.max,t/100)-l.min),typeof t!="number")return;let c=Pt(o.min,o.max,r);e===o&&(c-=t),e.min=b4(e.min,t,n,c,a),e.max=b4(e.max,t,n,c,a)}function x4(e,t,[n,r,a],o,l){Eye(e,t[n],t[r],t[a],t.scale,o,l)}const Nye=["x","scaleX","originX"],Mye=["y","scaleY","originY"];function w4(e,t,n,r){x4(e.x,t,Nye,n?n.x:void 0,r?r.x:void 0),x4(e.y,t,Mye,n?n.y:void 0,r?r.y:void 0)}function S4(e){return e.translate===0&&e.scale===1}function Lz(e){return S4(e.x)&&S4(e.y)}function O4(e,t){return e.min===t.min&&e.max===t.max}function Dye(e,t){return O4(e.x,t.x)&&O4(e.y,t.y)}function A4(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function $z(e,t){return A4(e.x,t.x)&&A4(e.y,t.y)}function P4(e){return Nn(e.x)/Nn(e.y)}function _4(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class Rye{constructor(){this.members=[]}add(t){zP(this.members,t),t.scheduleRender()}remove(t){if(UP(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(a=>t===a);if(n===0)return!1;let r;for(let a=n;a>=0;a--){const o=this.members[a];if(o.isPresent!==!1){r=o;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,
vendor: 5,263 bytes, line 378
378n&&(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:a}=t.options;a===!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 kye(e,t,n){let r="";const a=e.x.translate/t.x,o=e.y.translate/t.y,l=n?.z||0;if((a||o||l)&&(r=`translate3d(${a}px, ${o}px, ${l}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:d,rotate:m,rotateX:h,rotateY:g,skewX:x,skewY:O}=n;d&&(r=`perspective(${d}px) ${r}`),m&&(r+=`rotate(${m}deg) `),h&&(r+=`rotateX(${h}deg) `),g&&(r+=`rotateY(${g}deg) `),x&&(r+=`skewX(${x}deg) `),O&&(r+=`skewY(${O}deg) `)}const c=e.x.scale*t.x,f=e.y.scale*t.y;return(c!==1||f!==1)&&(r+=`scale(${c}, ${f})`),r||"none"}const Rw=["","X","Y","Z"],Iye=1e3;let Lye=0;function kw(e,t,n,r){const{latestValues:a}=t;a[e]&&(n[e]=a[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Bz(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Az(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:a,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",St,!(a||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Bz(r)}function qz({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:a}){return class{constructor(l={},c=t?.()){this.id=Lye++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(qye),this.nodes.forEach(Vye),this.nodes.forEach(Fye),this.nodes.forEach(zye)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=l,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let f=0;f<this.path.length;f++)this.path[f].shouldResetTransform=!0;this.root===this&&(this.nodes=new Aye)}addEventListener(l,c){return this.eventHandlers.has(l)||this.eventHandlers.set(l,new FP),this.eventHandlers.get(l).add(c)}notifyListeners(l,...c){const f=this.eventHandlers.get(l);f&&f.notify(...c)}hasListeners(l){return this.eventHandlers.has(l)}mount(l){if(this.instance)return;this.isSVG=tz(l)&&!Cge(l),this.instance=l;const{layoutId:c,layout:f,visualElement:d}=this.options;if(d&&!d.current&&d.mount(l),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(f||c)&&(this.isLayoutDirty=!0),e){let m,h=0;const g=()=>this.root.updateBlockedByResize=!1;St.read(()=>{h=window.innerWidth}),e(l,()=>{const x=window.innerWidth;x!==h&&(h=x,this.root.updateBlockedByResize=!0,m&&m(),m=Pye(g,250),xp.hasAnimatedSinceResize&&(xp.hasAnimatedSinceResize=!1,this.nodes.forEach(j4)))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&d&&(c||f)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:h,hasRelativeLayoutChanged:g,layout:x})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const O=this.options.transition||d.getDefaultTransition()||Qye,{onLayoutAnimationStart:b,onLayoutAnimationComplete:S}=d.getProps(),A=!this.targetLayout||!$z(this.targetLayout,x),_=!h&&g;if(this.options.layoutRoot||this.resumeFrom||_||h&&(A||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const C={...a2(O,"layout"),onPlay:b,onComplete:S};(d.shouldReduceMotion||this.options.layoutRoot)&&(C.delay=0,C.type=!1),this.startAnimation(C),this.setAnimationOrigin(m,_)}else h||j4(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=x})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const l=this.getStack();l&&l.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),eo(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.forEac
vendor: 7,567 bytes, line 378
378h(Kye),this.animationId++)}getTransformTemplate(){const{visualElement:l}=this.options;return l&&l.getProps().transformTemplate}willUpdate(l=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Bz(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let m=0;m<this.path.length;m++){const h=this.path[m];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:c,layout:f}=this.options;if(c===void 0&&!f)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),l&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(C4);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(T4);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Hye),this.nodes.forEach($ye),this.nodes.forEach(Bye)):this.nodes.forEach(T4),this.clearAllSnapshots();const c=Gn.now();fn.delta=ii(0,1e3/60,c-fn.timestamp),fn.timestamp=c,fn.isProcessing=!0,Ow.update.process(fn),Ow.preRender.process(fn),Ow.render.process(fn),fn.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,o2.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Uye),this.sharedNodes.forEach(Gye)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,St.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){St.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Nn(this.snapshot.measuredBox.x)&&!Nn(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let f=0;f<this.path.length;f++)this.path[f].updateScroll();const l=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Dt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:c}=this.options;c&&c.notify("LayoutMeasure",this.layout.layoutBox,l?l.layoutBox:void 0)}updateScroll(l="measure"){let c=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===l&&(c=!1),c&&this.instance){const f=r(this.instance);this.scroll={animationId:this.root.animationId,phase:l,isRoot:f,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:f}}}resetTransform(){if(!a)return;const l=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,c=this.projectionDelta&&!Lz(this.projectionDelta),f=this.getTransformTemplate(),d=f?f(this.latestValues,""):void 0,m=d!==this.prevTransformTemplateValue;l&&this.instance&&(c||Uo(this.latestValues)||m)&&(a(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(l=!0){const c=this.measurePageBox();let f=this.removeElementScroll(c);return l&&(f=this.removeTransform(f)),Wye(f),{animationId:this.root.animationId,measuredBox:c,layoutBox:f,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:l}=this.options;if(!l)return Dt();const c=l.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Zye))){const{scroll:d}=this.root;d&&(Ol(c.x,d.offset.x),Ol(c.y,d.offset.y))}return c}removeElementScroll(l){const c=Dt();if(_r(c,l),this.scroll?.wasRoot)return c;for(let f=0;f<this.path.length;f++){const d=this.path[f],{scroll:m,options:h}=d;d!==this.root&&m&&h.layoutScroll&&(m.wasRoot&&_r(c,l),Ol(c.x,m.offset.x),Ol(c.y,m.offset.y))}return c}applyTransform(l,c=!1){const f=Dt();_r(f,l);for(let d=0;d<this.path.length;d++){const m=this.path[d];!c&&m.options.layoutScroll&&m.scroll&&m!==m.root&&Al(f,{x:-m.scroll.offset.x,y:-m.scroll.offset.y}),Uo(m.latestValues)&&Al(f,m.latestValues)}return Uo(this.latestValues)&&Al(f,this.latestValues),f}removeTransform(l){const c=Dt();_r(c,l);for(let f=0;f<this.path.length;f++){const d=this.path[f];if(!d.instance||!Uo(d.latestValues))continue;XO(d.latestValues)&&d.updateSnapshot();const m=Dt(),h=d.measurePageBox();_r(m,h),w4(c,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,m)}return Uo(this.latestValues)&&w4(c,this.latestValues),c}setTargetDelta(l){this.targetDelta=l,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(l){this.options={...this.options,...l,crossfade:l.crossfade!==void 0?l.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!==fn.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(l=!1){const c=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=c.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=c.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=c.isSharedProjectionDirty);const f=!!this.resumingFrom||this!==c;if(!(l||f&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:m,layoutId:h}=this.options;if(!(!this.layout||!(m||h))){if(this.resolvedRelativeTargetAt=fn.timestamp,!this.targetDelta&&!this.relativeTarget){const g=this.getClosestProjectingParent();g&&g.layout&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Dt(),this.relativeTargetOrigin=Dt(),Qu(this.relativeTargetOrigin,this.layout.layoutBox,g.layout.layoutBox),_r(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Dt(),this.targetWithTransforms=Dt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),aye(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):_r(this.target,this.layout.layoutBox),yz(this.target,this.targetDelta)):_r(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const g=this.getClosestProjectingParent();g&&!!g.resumingFrom==!!this.resumingFrom&&!g.options.layoutScroll&&g.target&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Dt(),this.relativeTargetOrigin=Dt(),Qu(this.relativeTargetOrigin,this.target,g.target),_r(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||XO(this.parent.latestValues)||vz(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){const l=this.getLead(),c=!!this.resumingFrom||this!==l;let f=!0;
vendor: 9,340 bytes, line 378
378if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(f=!1),c&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(f=!1),this.resolvedRelativeTargetAt===fn.timestamp&&(f=!1),f)return;const{layout:d,layoutId:m}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||m))return;_r(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,g=this.treeScale.y;gve(this.layoutCorrected,this.treeScale,this.path,c),l.layout&&!l.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(l.target=l.layout.layoutBox,l.targetWithTransforms=Dt());const{target:x}=l;if(!x){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(y4(this.prevProjectionDelta.x,this.projectionDelta.x),y4(this.prevProjectionDelta.y,this.projectionDelta.y)),Xu(this.projectionDelta,this.layoutCorrected,x,this.latestValues),(this.treeScale.x!==h||this.treeScale.y!==g||!_4(this.projectionDelta.x,this.prevProjectionDelta.x)||!_4(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",x))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(l=!0){if(this.options.visualElement?.scheduleRender(),l){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Pl(),this.projectionDelta=Pl(),this.projectionDeltaWithTransform=Pl()}setAnimationOrigin(l,c=!1){const f=this.snapshot,d=f?f.latestValues:{},m={...this.latestValues},h=Pl();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const g=Dt(),x=f?f.source:void 0,O=this.layout?this.layout.source:void 0,b=x!==O,S=this.getStack(),A=!S||S.members.length<=1,_=!!(b&&!A&&this.options.crossfade===!0&&!this.path.some(Xye));this.animationProgress=0;let C;this.mixTargetDelta=M=>{const P=M/1e3;E4(h.x,l.x,P),E4(h.y,l.y,P),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Qu(g,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Yye(this.relativeTarget,this.relativeTargetOrigin,g,P),C&&Dye(this.relativeTarget,C)&&(this.isProjectionDirty=!1),C||(C=Dt()),_r(C,this.relativeTarget)),b&&(this.animationValues=m,Cye(m,d,this.latestValues,P,_,A)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(l){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(eo(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=St.update(()=>{xp.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=oc(0)),this.currentAnimation=Sye(this.motionValue,[0,1e3],{...l,velocity:0,isSync:!0,onUpdate:c=>{this.mixTargetDelta(c),l.onUpdate&&l.onUpdate(c)},onStop:()=>{},onComplete:()=>{l.onComplete&&l.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 l=this.getStack();l&&l.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Iye),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const l=this.getLead();let{targetWithTransforms:c,target:f,layout:d,latestValues:m}=l;if(!(!c||!f||!d)){if(this!==l&&this.layout&&d&&zz(this.options.animationType,this.layout.layoutBox,d.layoutBox)){f=this.target||Dt();const h=Nn(this.layout.layoutBox.x);f.x.min=l.target.x.min,f.x.max=f.x.min+h;const g=Nn(this.layout.layoutBox.y);f.y.min=l.target.y.min,f.y.max=f.y.min+g}_r(c,f),Al(c,m),Xu(this.projectionDeltaWithTransform,this.layoutCorrected,c,m)}}registerSharedNode(l,c){this.sharedNodes.has(l)||this.sharedNodes.set(l,new Rye),this.sharedNodes.get(l).add(c);const d=c.options.initialPromotionConfig;c.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(c):void 0})}isLead(){const l=this.getStack();return l?l.lead===this:!0}getLead(){const{layoutId:l}=this.options;return l?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:l}=this.options;return l?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:l}=this.options;if(l)return this.root.sharedNodes.get(l)}promote({needsReset:l,transition:c,preserveFollowOpacity:f}={}){const d=this.getStack();d&&d.promote(this,f),l&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const l=this.getStack();return l?l.relegate(this):!1}resetSkewAndRotation(){const{visualElement:l}=this.options;if(!l)return;let c=!1;const{latestValues:f}=l;if((f.z||f.rotate||f.rotateX||f.rotateY||f.rotateZ||f.skewX||f.skewY)&&(c=!0),!c)return;const d={};f.z&&kw("z",l,d,this.animationValues);for(let m=0;m<Rw.length;m++)kw(`rotate${Rw[m]}`,l,d,this.animationValues),kw(`skew${Rw[m]}`,l,d,this.animationValues);l.render();for(const m in d)l.setStaticValue(m,d[m]),this.animationValues&&(this.animationValues[m]=d[m]);l.scheduleRender()}applyProjectionStyles(l,c){if(!this.instance||this.isSVG)return;if(!this.isVisible){l.visibility="hidden";return}const f=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,l.visibility="",l.opacity="",l.pointerEvents=bp(c?.pointerEvents)||"",l.transform=f?f(this.latestValues,""):"none";return}const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){this.options.layoutId&&(l.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,l.pointerEvents=bp(c?.pointerEvents)||""),this.hasProjected&&!Uo(this.latestValues)&&(l.transform=f?f({},""):"none",this.hasProjected=!1);return}l.visibility="";const m=d.animationValues||d.latestValues;this.applyTransformsToTarget();let h=kye(this.projectionDeltaWithTransform,this.treeScale,m);f&&(h=f(m,h)),l.transform=h;const{x:g,y:x}=this.projectionDelta;l.transformOrigin=`${g.origin*100}% ${x.origin*100}% 0`,d.animationValues?l.opacity=d===this?m.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:m.opacityExit:l.opacity=d===this?m.opacity!==void 0?m.opacity:"":m.opacityExit!==void 0?m.opacityExit:0;for(const O in Gf){if(m[O]===void 0)continue;const{correct:b,applyTo:S,isCSSVariable:A}=Gf[O],_=h==="none"?m[O]:b(m[O],d);if(S){const C=S.length;for(let M=0;M<C;M++)l[S[M]]=_}else A?this.options.visualElement.renderState.vars[O]=_:l[O]=_}this.options.layoutId&&(l.pointerEvents=d===this?bp(c?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(l=>l.currentAnimation?.stop()),this.root.nodes.forEach(C4),this.root.sharedNodes.clear()}}}function $ye(e){e.updateLayout()}function Bye(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:r}=e.layout,{animationType:a}=e.options,o=t.source!==e.layout.source;a==="size"?Cr(m=>{const h=o?t.measuredBox[m]:t.layoutBox[m],g=Nn(h);h.min=n[m].min,h.max=h.min+g}):zz(a,t.layoutBox,n)&&Cr(m=>{const h=o?t.measuredBox[m]:t.layoutBox[m],g=Nn(n[m]);h.max=h.min+g,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[m].max=e.relativeTarget[m].min+g)});const l=Pl();Xu(l,n,t.layoutBox);const c=Pl();o?Xu(c,e.applyTransform(r,!0),t.measuredBox):Xu(c,n,t.layoutBox);const f=!Lz(l);let d=!1;if(!e.resumeFrom){const m=e.getClosestProjectingParent();if(m&&!m.resumeFrom){const{snapshot:h,layout:g}=m;if(h&&g){const x=Dt();Qu(x,t.layoutBox,h.layoutBox);const O=Dt();Qu(O,n,g.layoutBox),$z(x,O)||(d=!0),m.options.layoutRoot&&(e.relativeTarget=O,e.relativeTargetOrigin=x,e.relativeParent=m)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:c,layoutDelta:l,hasLayoutChanged:f,hasRelativeLayoutChanged:d})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function qye(e){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 zye(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Uye(e){e.clearSnapshot()}function C4(e){e.clearMeasurements()}function T4(e){e.isLayoutDirty=!1}function Hye(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function j4(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Vye(e){e.resolveTargetDelta()}function Fye(e){e.calcProjection()}
vendor: 5,301 bytes, line 378
378function Kye(e){e.resetSkewAndRotation()}function Gye(e){e.removeLeadSnapshot()}function E4(e,t,n){e.translate=Pt(t.translate,0,n),e.scale=Pt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function N4(e,t,n,r){e.min=Pt(t.min,n.min,r),e.max=Pt(t.max,n.max,r)}function Yye(e,t,n,r){N4(e.x,t.x,n.x,r),N4(e.y,t.y,n.y,r)}function Xye(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Qye={duration:.45,ease:[.4,0,.1,1]},M4=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),D4=M4("applewebkit/")&&!M4("chrome/")?Math.round:Rr;function R4(e){e.min=D4(e.min),e.max=D4(e.max)}function Wye(e){R4(e.x),R4(e.y)}function zz(e,t,n){return e==="position"||e==="preserve-aspect"&&!rye(P4(t),P4(n),.2)}function Zye(e){return e!==e.root&&e.scroll?.wasRoot}const Jye=qz({attachResizeListener:(e,t)=>Yf(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Iw={current:void 0},Uz=qz({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Iw.current){const e=new Jye({});e.mount(window),e.setOptions({layoutScroll:!0}),Iw.current=e}return Iw.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),e0e={pan:{Feature:yye},drag:{Feature:vye,ProjectionNode:Uz,MeasureLayout:Rz}};function k4(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const a="onHover"+n,o=r[a];o&&St.postRender(()=>o(t,yd(t)))}class t0e extends uo{mount(){const{current:t}=this.node;t&&(this.unmount=Sge(t,(n,r)=>(k4(this.node,r,"Start"),a=>k4(this.node,a,"End"))))}unmount(){}}class n0e extends uo{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=md(Yf(this.node.current,"focus",()=>this.onFocus()),Yf(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function I4(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const a="onTap"+(n==="End"?"":n),o=r[a];o&&St.postRender(()=>o(t,yd(t)))}class r0e extends uo{mount(){const{current:t}=this.node;t&&(this.unmount=_ge(t,(n,r)=>(I4(this.node,r,"Start"),(a,{success:o})=>I4(this.node,a,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const nA=new WeakMap,Lw=new WeakMap,a0e=e=>{const t=nA.get(e.target);t&&t(e)},i0e=e=>{e.forEach(a0e)};function o0e({root:e,...t}){const n=e||document;Lw.has(n)||Lw.set(n,{});const r=Lw.get(n),a=JSON.stringify(t);return r[a]||(r[a]=new IntersectionObserver(i0e,{root:e,...t})),r[a]}function s0e(e,t,n){const r=o0e(t);return nA.set(e,n),r.observe(e),()=>{nA.delete(e),r.unobserve(e)}}const l0e={some:0,all:1};class c0e extends uo{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:a="some",once:o}=t,l={root:n?n.current:void 0,rootMargin:r,threshold:typeof a=="number"?a:l0e[a]},c=f=>{const{isIntersecting:d}=f;if(this.isInView===d||(this.isInView=d,o&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:m,onViewportLeave:h}=this.node.getProps(),g=d?m:h;g&&g(f)};return s0e(this.node.current,l,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(u0e(t,n))&&this.startObserver()}unmount(){}}function u0e({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const f0e={inView:{Feature:c0e},tap:{Feature:r0e},focus:{Feature:n0e},hover:{Feature:t0e}},d0e={layout:{ProjectionNode:Uz,MeasureLayout:Rz}},h0e={...Wve,...f0e,...e0e,...d0e},Hn=hve(h0e,_ve);function p0e(e){const t=parseInt(e.remaining),n=parseInt(e.total),r=parseInt(e.prizes),a=parseFloat(e.ticketPrice),o=parseFloat(e.prizeValue),l=e.floorValue!==""?parseFloat(e.floorValue):0;if(isNaN(t)||isNaN(n)||isNaN(r)||isNaN(a)||isNaN(o)||t<=0||n<=0||r<0||a<=0||o<=0||t>n||r>t||e.floorValue!==""&&(isNaN(l)||l<0))return null;const c=r/t*100,f=r/t*o,d=l,m=f+d,h=m/a*100,g=f/a*100,x=d/a*100;return{winProb:c,expectedValue:m,returnRate:h,worthIt:h>=80,remainingCost:t*a,guaranteedAt:r>0?Math.ceil(t/r):null,hasFloor:l>0,floorContrib:x,prizeContrib:g}}function m0e(e){const t=parseInt(e.remaining),n=parseFloat(e.winProbInput),r=parseFloat(e.ticketPrice),a=parseFloat(e.prizeValue),o=e.floorValue!==""?parseFloat(e.floorValue):0;if(isNaN(t)||isNaN(n)||isNaN(r)||isNaN(a)||t<=0||n<=0||n>100||r<=0||a<=0||e.floorValue!==""&&(isNaN(o)||o<0))return null;const l=n/100*a,c=o,f=l+c,d=f/r*100,m=l/r*100,h=c/r*100;return{winProb:n,expectedValue:f,returnRate:d,worthIt:d>=80,remainingCost:t*r,guaranteedAt:Math.ceil(100/n),hasFloor:o>
3780,floorContrib:h,prizeContrib:m}}function gl(e,t=1){return e.toFixed(t)}const L4=[{key:"remaining",label:"å©é¤æ½æ¸",unit:"次",hint:"ç¾å¨æ± ä¸éå©å¹¾å¤æ½",icon:"ð´",optional:!1},{key:"total",label:"ç¸½æ½æ¸",unit:"次",hint:"塿± åæ¬ç¸½å
±å¹¾å¤æ½",icon:"ð¦",optional:!1},{key:"prizes",label:"å©é¤å¤§çæ¸",unit:"å",hint:"ç®æ¸¬ææ¤ä¸»å
¬ç¤ºå
å©é¤å¤§ç",icon:"ð",optional:!1},{key:"ticketPrice",label:"ä¸å£æ½å¹é¢",unit:"å
",hint:"æ¯ä¸æ½éè¦è±å¹¾å¤é¢",icon:"ð°",optional:!1},{key:"prizeValue",label:"大çå¹³åå¹å¼",unit:"å
",hint:"大çå¹³åå¸å¼å¹¾å¤",icon:"â",optional:!1},{key:"floorValue",label:"ä¿åºçåå¹å¼",unit:"å
",hint:"æ¯æ½å¿
å¾å
ä¿åºï¼å¦ AR ä¸å¼µï¼",icon:"ð¡ï¸",optional:!0}],$4=[{key:"remaining",label:"å©é¤æ½æ¸",unit:"次",hint:"ç¾å¨æ± ä¸éå©å¹¾å¤æ½",icon:"ð´",optional:!1},{key:"winProbInput",label:"ä¸çæ¦ç",unit:"%",hint:"ä½ å·²ç¥å
ä¸çæ¦çï¼ä¾å¦ï¼5.5ï¼",icon:"ð¯",optional:!1},{key:"ticketPrice",label:"ä¸å£æ½å¹é¢",unit:"å
",hint:"æ¯ä¸æ½éè¦è±å¹¾å¤é¢",icon:"ð°",optional:!1},{key:"prizeValue",label:"大çå¹³åå¹å¼",unit:"å
",hint:"大çå¹³åå¸å¼å¹¾å¤",icon:"â",optional:!1},{key:"floorValue",label:"ä¿åºçåå¹å¼",unit:"å
",hint:"æ¯æ½å¿
å¾å
ä¿åºï¼å¦ AR ä¸å¼µï¼",icon:"ð¡ï¸",optional:!0}];function $o({label:e,onClick:t,variant:n="num",small:r}){const a={num:{background:"oklch(0.22 0.06 255)",color:"oklch(0.92 0.02 255)",border:"1.5px solid oklch(0.30 0.06 255)",boxShadow:"0 4px 0 oklch(0.12 0.04 255)"},del:{background:"oklch(0.20 0.08 15)",color:"oklch(0.75 0.18 15)",border:"1.5px solid oklch(0.28 0.10 15)",boxShadow:"0 4px 0 oklch(0.12 0.06 15)"},fn:{background:"oklch(0.20 0.05 255)",color:"oklch(0.65 0.08 255)",border:"1.5px solid oklch(0.28 0.06 255)",boxShadow:"0 4px 0 oklch(0.12 0.04 255)"},calc:{background:"linear-gradient(180deg, oklch(0.82 0.16 85) 0%, oklch(0.72 0.18 85) 100%)",color:"oklch(0.15 0.04 255)",border:"1.5px solid oklch(0.65 0.18 85)",boxShadow:"0 4px 0 oklch(0.55 0.16 85)"},next:{background:"linear-gradient(180deg, oklch(0.55 0.18 255) 0%, oklch(0.45 0.20 255) 100%)",color:"#fff",border:"1.5px solid oklch(0.38 0.18 255)",boxShadow:"0 4px 0 oklch(0.30 0.16 255)"}};return v.jsx(Hn.button,{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:163",className:"rounded-xl flex flex-col items-center justify-center select-none",style:{...a[n],height:54,minWidth:0},whileTap:{scale:.93,y:4,boxShadow:"0 0px 0 oklch(0.12 0.04 255)"},transition:{duration:.07,ease:[.23,1,.32,1]},onClick:t,children:v.jsx("span",{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:170",className:`font-black ${r?"text-xs":"text-lg"}`,style:{fontFamily:"'Noto Sans HK', 'Noto Sans TC', sans-serif"},children:e})})}function g0e(){const[e,t]=j.useState("A"),[n,r]=j.useState({remaining:"",total:"",prizes:"",ticketPrice:"",prizeValue:"",floorValue:""}),[a,o]=j.useState({remaining:"",winProbInput:"",ticketPrice:"",prizeValue:"",floorValue:""}),l=e==="A"?L4:$4,[c,f]=j.useState(l[0].key),[d,m]=j.useState(null),[h,g]=j.useState(!1),[x,O]=j.useState(!1),b=j.useRef(null),S=q=>{t(q),f(q==="A"?L4[0].key:$4[0].key),g(!1),m(null),O(!1)},A=q=>(e==="A"?n:a)[q]??"",_=(q,R)=>{e==="A"?r($=>({...$,[q]:R})):o($=>({...$,[q]:R}))},C=j.useCallback(q=>{const R=A(c);if(R==="0"&&q!==".")_(c,q);else{if(q==="."&&R.includes("."))return;if(R.replace(".","").length>=7)return;_(c,R+q)}g(!1),O(!1)},[c,e,n,a]),M=j.useCallback(()=>{_(c,A(c).slice(0,-1)),g(!1)},[c,e,n,a]),P=j.useCallback(()=>{_(c,""),g(!1)},[c,e]),E=j.useCallback(()=>{e==="A"?r({remaining:"",total:"",prizes:"",ticketPrice:"",prizeValue:"",floorValue:""}):o({remaining:"",winProbInput:"",ticketPrice:"",prizeValue:"",floorValue:""}),m(null),g(!1),O(!1),f(l[0].key)},[e]),T=j.useCallback(()=>{const q=l.findIndex(R=>R.key===c);f(l[(q+1)%l.length].key)},[c,e]),D=j.useCallback(()=>{let q=null;e==="A"?q=p0e({...n}):q=m0e({...a}),m(q),O(q===null),g(!0),setTimeout(()=>b.current?.scrollIntoView({behavior:"smooth",block:"start"}),100)},[e,n,a]),L=j.useCallback(()=>{const q=parseInt(A("remaining")||"0");q>1&&(_("remaining",String(q-1)),g(!1))},[e,n,a]),U=j.useCallback(()=>{const q=parseInt(A("remaining")||"0");_("remaining",String(q+1)),g(!1)},[e,n,a]);j.useEffect(()=>{const q=R=>{R.key>="0"&&R.key<="9"?C(R.key):R.key==="."?C("."):R.key==="Backspace"?M():R.key==="Delete"?P():R.key==="Enter"?D():R.key==="Tab"&&(R.preventDefault(),T())};return window.addEventListener("keydown",q),()=>window.removeEventListener("keydown",q)},[C,M,P,D,T]);const I=l.find(q=>q.key===c)??l[0],z=l.filter(q=>!q.optional),F=z.filter(q=>A(q.key)!=="").length,K=z.length;return parseInt(A("remaining")||"0"),v.jsx("div",{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:292",className:"min-h-screen",style:{background:"oklch(0.13 0.05 255)"},children:v.jsxs("div",{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:294",className:"container py-6 max-w-lg mx-auto px-4",children:[v.jsxs("div",{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:295",className:"flex items-center gap-3 mb-6",children:[v.jsx(Le,{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:296",href:"/",children:v.jsxs("button",{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:297",className:"flex items-center gap-1 text-sm text-muted-foreground hover:text-primary transition-colors",children:[v.jsx(EY,{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:298",className:"w-4 h-4"})," è¿å"]})}),v.jsxs("div",{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:301",className:"flex items-center gap-2 ml-auto",children:[v.jsx("div",{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:302",className:"w-8 h-8 rounded-xl flex items-center justify-center",style:{background:"linear-gradient(135deg, oklch(0.82 0.16 85), oklch(0.72 0.18 85))"},children:v.jsx(jp,{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:304",className:"w-4 h-4",style:{color:"oklch(0.15 0.04 255)"}})}),v.jsxs("div",{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:306",children:[v.jsx("div",{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:307",className:"font-display font-bold text-lg leading-none",style:{color:"oklch(0.82 0.16 85)"},children:"ç¦è¢è¨ç®æ©"}),v.jsx("div",{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:311",className:"text-[10px] tracking-widest font-semibold",style:{color:"oklch(0.50 0.06 255)"},children:"ORIPA CALCULATOR"})]})]}),v.jsxs("div",{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:318",className:"flex items-center gap-1.5 px-3 py-1.5 rounded-full font-bold text-sm ml-auto",style:{background:F===K?"oklch(0.72 0.18 85 / 0.15)":"oklch(0.22 0.06 255)",color:F===K?"oklch(0.82 0.16 85)":"oklch(0.50 0.06 255)",border:`1.5px solid ${F===K?"oklch(0.72 0.18 85 / 0.4)":"oklch(0.28 0.06 255)"}`,transition:"all 0.2s"},children:[v.jsx(U6,{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:325",className:"w-3 h-3"})," ",F,"/",K]})]}),v.jsx("div",{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:330",className:"rounded-2xl overflow-hidden p-1 mb-4",style:{background:"oklch(0.18
3780.06 255)",border:"1px solid oklch(0.25 0.06 255)"},children:v.jsx("div",{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:332",className:"grid grid-cols-2 gap-1",children:[{id:"A",icon:"ð",title:"輸å
¥å¤§çæ¸",desc:"ç¥éå©é¤å¹¾å¤å大ç"},{id:"B",icon:"ð¯",title:"ç´æ¥è¼¸å
¥æ¦ç",desc:"å·²ç¥ä¸çç"}].map(q=>v.jsxs(Hn.button,{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:337",className:"rounded-xl py-2.5 px-3 text-left",style:{background:e===q.id?"linear-gradient(135deg, oklch(0.82 0.16 85 / 0.15), oklch(0.72 0.18 85 / 0.10))":"transparent",border:`1.5px solid ${e===q.id?"oklch(0.72 0.18 85 / 0.5)":"transparent"}`},whileTap:{scale:.97},onClick:()=>S(q.id),children:[v.jsxs("div",{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:347",className:"flex items-center gap-1.5 mb-0.5",children:[v.jsx("span",{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:348",className:"text-sm",children:q.icon}),v.jsx("span",{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:349",className:"font-bold text-xs",style:{color:e===q.id?"oklch(0.82 0.16 85)":"oklch(0.55 0.06 255)"},children:q.title})]}),v.jsx("div",{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:354",className:"text-[10px]",style:{color:e===q.id?"oklch(0.65 0.10 85)":"oklch(0.40 0.04 255)"},children:q.desc})]},q.id))})}),v.jsxs("div",{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:364",className:"rounded-2xl overflow-hidden mb-4",style:{background:"oklch(0.18 0.06 255)",border:"1px solid oklch(0.25 0.06 255)"},children:[v.jsxs("div",{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:366",className:"flex items-center gap-2 px-4 py-2.5",style:{borderBottom:"1px solid oklch(0.22 0.06 255)",background:"oklch(0.16 0.05 255)"},children:[v.jsx("div",{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:368",className:"w-1 h-4 rounded-full",style:{background:"oklch(0.72 0.18 85)"}}),v.jsx("span",{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:369",className:"font-bold text-sm",style:{color:"oklch(0.82 0.16 85)"},children:e==="A"?"輸å
¥å¡æ± è³æ":"輸å
¥æ¦çè³æ"}),v.jsx("div",{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:372",className:"ml-auto flex gap-1",children:z.map((q,R)=>v.jsx("div",{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:374",className:"w-2 h-2 rounded-full transition-all duration-200",style:{background:R<F?"oklch(0.72 0.18 85)":"oklch(0.28 0.06 255)",transform:R<F?"scale(1.2)":"scale(1)"}},R))})]}),v.jsx(V3,{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:383",mode:"wait",children:v.jsx(Hn.div,{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:384",initial:{opacity:0,x:e==="A"?-12:12},animate:{opacity:1,x:0},exit:{opacity:0},transition:{duration:.18,ease:[.23,1,.32,1]},children:l.map((q,R)=>{const $=c===q.key,H=A(q.key),W=H!=="",ae=q.key==="floorValue",B=q.key==="remaining";return v.jsxs(Hn.button,{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:396",className:"w-full text-left flex items-center px-4 py-3 transition-colors",style:{background:$?ae?"oklch(0.20 0.08 255 / 0.5)":"oklch(0.72 0.18 85 / 0.08)":"transparent",borderBottom:R<l.length-1?"1px solid oklch(0.22 0.06 255)":"none"},onClick:()=>
378f(q.key),whileTap:{scale:.99},children:[v.jsx("div",{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:408",className:"w-7 h-7 rounded-full flex items-center justify-center font-bold text-xs flex-shrink-0 mr-3 transition-all duration-200",style:{background:$?ae?"oklch(0.55 0.18 255)":"oklch(0.72 0.18 85)":W?ae?"oklch(0.55 0.18 255 / 0.2)":"oklch(0.72 0.18 85 / 0.2)":"oklch(0.22 0.06 255)",color:$?ae?"#fff":"oklch(0.15 0.04 255)":W?ae?"oklch(0.70 0.18 255)":"oklch(0.82 0.16 85)":"oklch(0.40 0.06 255)"},children:ae?"ð¡ï¸":R+1}),v.jsxs("div",{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:423",className:"flex-1 min-w-0",children:[v.jsxs("div",{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:424",className:"flex items-center gap-1.5",children:[v.jsxs("span",{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:425",className:"font-semibold text-sm",style:{color:$?ae?"oklch(0.70 0.18 255)":"oklch(0.82 0.16 85)":"oklch(0.70 0.06 255)"},children:[q.icon," ",q.label]}),q.optional&&v.jsx("span",{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:434",className:"text-[9px] font-bold px-1.5 py-0.5 rounded-full",style:{background:W?"oklch(0.55 0.18 255 / 0.2)":"oklch(0.22 0.06 255)",color:W?"oklch(0.70 0.18 255)":"oklch(0.40 0.06 255)"},children:"é¸å¡«"})]}),$&&v.jsx("div",{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:444",className:"text-[10px] mt-0.5",style:{color:"oklch(0.45 0.06 255)"},children:q.hint})]}),B&&W&&v.jsxs("div",{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:451",className:"flex items-center gap-1 mr-2",onClick:Y=>Y.stopPropagation(),children:[v.jsx(Hn.button,{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:452",className:"w-7 h-7 rounded-full flex items-center justify-center",style:{background:"oklch(0.22 0.06 255)",border:"1px solid oklch(0.30 0.06 255)"},whileTap:{scale:.9},onClick:L,children:v.jsx($Y,{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:457",className:"w-3 h-3",style:{color:"oklch(0.65 0.06 255)"}})}),v.jsx(Hn.button,{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:459",className:"w-7 h-7 rounded-full flex items-center justify-center",style:{background:"oklch(0.22 0.06 255)",border:"1px solid oklch(0.30 0.06 255)"},whileTap:{scale:.9},onClick:U,children:v.jsx(as,{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:464",className:"w-3 h-3",style:{color:"oklch(0.65 0.06 255)"}})})]}),v.jsxs("div",{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:468",className:"flex items-baseline gap-1 ml-1",children:[v.jsxs("span",{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:469",className:"font-black text-xl tabular-nums",style:{color:$?ae?"oklch(0.70 0.18 255)":"oklch(0.82 0.16 85)":W?"oklch(0.90 0.02 255)":"oklch(0.30 0.06 255)",fontFamily:"'Noto Sans HK', sans-serif"},children:[H||"â",$&&v.jsx("span",{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:477",className:"animate-pulse text-sm",children:"|"})]}),v.jsx("span",{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:479",className:"text-xs font-semibold",style:{color:W?"oklch(0.50 0.06 255)":"oklch(0.30 0.06 255)"},children:q.unit})]})]},q.key)})},e)})]}),v.jsxs("div",{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:492",className:"rounded-2xl overflow-hidden mb-4",style:{background:"oklch(0.18 0.06 255)",border:"1px solid oklch(0.25 0.06 255)"},children:[v.jsxs("div",{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:494",className:"flex items-center gap-2 px-4 py-2",style:{background:"oklch(0.16 0.05 255)",borderBottom:"1px solid oklch(0.22 0.06 255)"},children:[v.jsx("div",{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:496",className:"w-2 h-2 rounded-full animate-pulse",style:{background:I.key==="floorValue"?"oklch(0.70 0.18 255)":"oklch(0.72 0.18 85)",boxShadow:`0 0 6px ${I.key==="floorValue"?"oklch(0.70 0.18 255 / 0.6)":"oklch(0.72 0.18 85 / 0.6)"}`}}),v.jsxs("span",{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:501",className:"font-semibold text-xs",style:{color:I.key==="floorValue"?"oklch(0.70 0.18 255)":"oklch(0.72 0.18 85)"},children:[I.icon," ",I.label]}),v.jsx("span",{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:505",className:"text-[10px] ml-auto",style:{color:"oklch(0.35 0.06 255)"},children:I.hint})]}),v.jsxs("div",{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:507",className:"p-3 pb-2",children:[[["7","8","9"],["4","5","6"],["1","2","3"]].map((q,R)=>v.jsx("div",{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:509",className:"grid grid-cols-3 gap-2 mb-2",children:q.map($=>v.jsx($o,{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:510",label:$,onClick:()=>C($)},$))},R)),v.jsxs("div",{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:513",className:"grid grid-cols-3 gap-2 mb-2",children:[v.jsx($o,{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:514",label:".",onClick:()=>C(".")}),v.jsx($o,{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:515",label:"0",onClick:()=>C("0")}),v.jsx($o,{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:516",label:"â«",onClick:M,variant:"del"})]}),v.jsxs("div",{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:518",className:"grid grid-cols-3 gap-2",children:[v.jsx($o,{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:519",label:"C æ¸
é¤",onClick:P,variant:"fn",small:!0}),v.jsx($o,{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:520",label:"AC å
¨æ¸
",onClick:E,variant:"fn",small:!0}),v.jsx($o,{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:521",label:"NEXT â¶",onClick:T,variant:"next",small:!0})]})]})]}),v.jsx(Hn.button,{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:527",className:"w-full rounded-2xl font-black text-lg text-foreground tracking-wide mb-4",style:{height:60,background:"linear-gradient(180deg, oklch(0.82 0.16 85) 0%, oklch(0.72 0.18 85) 100%)",boxShadow:"0 5px 0 oklch(0.55 0.16 85), 0 2px 20px oklch(0.72 0.18 85 / 0.3)",border:"none",color:"oklch(0.15 0.04 255)",fontFamily:"'Noto Sans HK', sans-serif"},whileTap:{scale:.97,y:4,boxShadow:"0 1px 0 oklch(0.55 0.16 85)"},transition:{duration:.08,ease:[.23,1,.32,1]},onClick:D,children:"â¡ ç«å³è¨ç®"}),v.jsx("div",{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:543",ref:b,children:v.jsx(V3,{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:544",children:h&&v.jsx(Hn.div,{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:546",initial:{opacity:0,y:16}
378,animate:{opacity:1,y:0},exit:{opacity:0,y:8},transition:{duration:.3,ease:[.23,1,.32,1]},children:x||d===null?v.jsxs("div",{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:551",className:"rounded-2xl p-5 text-center",style:{background:"oklch(0.18 0.06 255)",border:"2px solid oklch(0.30 0.10 30)"},children:[v.jsx("div",{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:553",className:"text-4xl mb-2",children:"â ï¸"}),v.jsx("div",{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:554",className:"font-black text-base",style:{color:"oklch(0.75 0.15 50)"},children:"輸å
¥æèª¤ï¼"}),v.jsxs("div",{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:555",className:"text-xs mt-1.5",style:{color:"oklch(0.50 0.06 255)"},children:["è«ç¢ºèªææå¿
å¡«æ¬ä½å·²æ£ç¢ºå¡«å¯«",v.jsx("br",{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:556"}),e==="A"?"ï¼å©é¤å¤§çæ¸ä¸å¯å¤§æ¼å©é¤æ½æ¸ï¼":"ï¼ä¸çæ¦çéä»ä¹ 0.01% â 100%ï¼"]})]}):v.jsxs("div",{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:561",className:"rounded-2xl overflow-hidden",style:{background:"oklch(0.18 0.06 255)",border:"1px solid oklch(0.25 0.06 255)"},children:[v.jsxs(Hn.div,{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:565",initial:{scale:.95,opacity:0},animate:{scale:1,opacity:1},transition:{delay:.05,duration:.2},className:"p-5 text-center",style:{background:d.worthIt?"linear-gradient(135deg, oklch(0.72 0.18 85 / 0.15), oklch(0.72 0.18 85 / 0.08))":"oklch(0.16 0.05 255)",borderBottom:"1px solid oklch(0.22 0.06 255)"},children:[v.jsx("div",{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:574",className:"font-black text-3xl mb-1",style:{fontFamily:"'Noto Sans HK', sans-serif",color:d.worthIt?"oklch(0.82 0.16 85)":"oklch(0.55 0.06 255)"},children:d.worthIt?"â
å¼å¾æ½ï¼":"â åå¼å¾æ½"}),v.jsx("div",{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:581",className:"text-xs font-semibold",style:{color:d.worthIt?"oklch(0.65 0.12 85)":"oklch(0.45 0.06 255)"},children:d.worthIt?"éåç鿍ï¼å»ºè°åºæï¼":"éåçåä½ï¼ä¸æèå¾è¡"}),v.jsxs("div",{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:585",className:"mt-2 flex items-center justify-center gap-2",children:[v.jsx("span",{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:586",className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-[9px] font-bold",style:{background:e==="A"?"oklch(0.72 0.18 85 / 0.15)":"oklch(0.55 0.18 255 / 0.15)",color:e==="A"?"oklch(0.72 0.18 85)":"oklch(0.70 0.18 255)"},children:e==="A"?"ð å¤§çæ¸æ¨¡å¼":"ð¯ ç´æ¥æ¦ç模å¼"}),d.hasFloor&&v.jsx("span",{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:594",className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-[9px] font-bold",style:{background:"oklch(0.55 0.18 255 / 0.15)",color:"oklch(0.70 0.18 255)"},children:"ð¡ï¸ å·²è¨ä¿åº"})]})]}),v.jsx("div",{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:603",className:"grid grid-cols-2 gap-px",style:{background:"oklch(0.22 0.06 255)"},children:[{label:"ä¸å¤§çæ¦ç",value:`${gl(d.winProb,2)}%`,big:!0,icon:"ð¯",color:d.winProb>=20?"oklch(0.82 0.16 85)":d.winProb>=10?"oklch(0.75 0.15 60)":d.winProb>=5?"oklch(0.75 0.15 50)":"oklch(0.55 0.06 255)"},{label:"總éåç",value:`${gl(d.returnRate,1)}%`,big:!0,icon:"ð",color:d.returnRate>=100?"oklch(0.75 0.18 145)":d.returnRate>=80?"oklch(0.82 0.16 85)":d.returnRate>=60?"oklch(0.75 0.15 60)":"oklch(0.55 0.06 255)"},{label:"æ¯æ½ææå¼",value:`$${gl(d.expectedValue,1)}`,big:!1,icon:"ð¡",color:"oklch(0.80 0.04 255)"},{label:"æ½å®ç¸½è±è²»",value:`$${d.remainingCost.toLocaleString()}`,big:!1,icon:"ð¸",color:"oklch(0.80 0.04 255)"},...d.guaranteedAt!==null?[{label:"æå¤å¿
䏿½æ¸",value:`${d.guaranteedAt}æ½`,big:!1,icon:"ð",color:"oklch(0.75 0.15 60)"}]:[]].map((q,R)=>v.jsxs(Hn.div,{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:626",initial:{opacity:0,y:6},animate:{opacity:1,y:0},transition:{delay:.08+R*.04,duration:.15},className:"flex flex-col items-center justify-center py-4 px-3",style:{background:"oklch(0.18
3780.06 255)"},children:[v.jsx("div",{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:631",className:"text-xl mb-1",children:q.icon}),v.jsx("div",{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:632",className:`font-black tabular-nums ${q.big?"text-3xl":"text-xl"}`,style:{color:q.color,fontFamily:"'Noto Sans HK', sans-serif"},children:q.value}),v.jsx("div",{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:636",className:"text-[10px] font-semibold mt-1",style:{color:"oklch(0.45 0.06 255)"},children:q.label})]},R))}),d.hasFloor&&v.jsxs(Hn.div,{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:645",initial:{opacity:0},animate:{opacity:1},transition:{delay:.3},className:"px-4 py-3",style:{borderTop:"1px solid oklch(0.22 0.06 255)"},children:[v.jsx("div",{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:647",className:"text-xs font-bold mb-2.5",style:{color:"oklch(0.70 0.06 255)"},children:"ð éåçæè§£"}),v.jsxs("div",{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:650",className:"space-y-2.5",children:[v.jsxs("div",{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:651",children:[v.jsxs("div",{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:652",className:"flex justify-between text-[10px] font-bold mb-1",children:[v.jsx("span",{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:653",style:{color:"oklch(0.82 0.16 85)"},children:"ð 大çè²¢ç»"}),v.jsxs("span",{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:654",style:{color:"oklch(0.82 0.16 85)"},children:[gl(d.prizeContrib,1),"%"]})]}),v.jsx("div",{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:656",className:"rounded-full overflow-hidden",style:{height:7,background:"oklch(0.22 0.06 255)"},children:v.jsx(Hn.div,{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:657",initial:{width:0},animate:{width:`${Math.min(d.prizeContrib,100)}%`},transition:{delay:.35,duration:.5,ease:[.23,1,.32,1]},className:"h-full rounded-full",style:{background:"linear-gradient(90deg, oklch(0.75 0.16 75), oklch(0.72 0.18 85))"}})})]}),v.jsxs("div",{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:664",children:[v.jsxs("div",{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:665",className:"flex justify-between text-[10px] font-bold mb-1",children:[v.jsx("span",{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:666",
378style:{color:"oklch(0.70 0.18 255)"},children:"ð¡ï¸ ä¿åºè²¢ç»"}),v.jsxs("span",{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:667",style:{color:"oklch(0.70 0.18 255)"},children:[gl(d.floorContrib,1),"%"]})]}),v.jsx("div",{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:669",className:"rounded-full overflow-hidden",style:{height:7,background:"oklch(0.22 0.06 255)"},children:v.jsx(Hn.div,{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:670",initial:{width:0},animate:{width:`${Math.min(d.floorContrib,100)}%`},transition:{delay:.45,duration:.5,ease:[.23,1,.32,1]},className:"h-full rounded-full",style:{background:"linear-gradient(90deg, oklch(0.60 0.18 255), oklch(0.55 0.20 255))"}})})]})]})]}),v.jsxs("div",{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:682",className:"px-4 py-3",style:{borderTop:"1px solid oklch(0.22 0.06 255)"},children:[v.jsxs("div",{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:683",className:"flex justify-between text-xs font-bold mb-2",children:[v.jsx("span",{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:684",style:{color:"oklch(0.50 0.06 255)"},children:"總éåç"}),v.jsxs("span",{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:685",style:{color:d.returnRate>=80?"oklch(0.82 0.16 85)":"oklch(0.50 0.06 255)"},children:[gl(d.returnRate,1),"% ",d.returnRate>=80?"â 鿍":"â æªéæ¨"]})]}),v.jsxs("div",{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:689",className:"rounded-full overflow-hidden relative",style:{height:12,background:"oklch(0.22 0.06 255)"},children:[v.jsx("div",{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:690",className:"absolute top-0 bottom-0 w-0.5 z-10",style:{left:"80%",background:"oklch(0.72 0.18 85 / 0.5)"}}),v.jsx(Hn.div,{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:692",initial:{width:0},animate:{width:`${Math.min(d.returnRate,100)}%`},transition:{delay:.3,duration:.7,ease:[.23,1,.32,1]},className:"h-full rounded-full",style:{background:d.returnRate>=100?"linear-gradient(90deg, oklch(0.65 0.18 145), oklch(0.75 0.18 145))":d.returnRate>=80?"linear-gradient(90deg, oklch(0.75 0.16 75), oklch(0.72 0.18 85))":d.returnRate>=60?"linear-gradient(90deg, oklch(0.72 0.16 60), oklch(0.70 0.18 50))":"linear-gradient(90deg, oklch(0.35 0.06 255), oklch(0.30 0.06 255))"}})]}),v.jsxs("div",{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:707",className:"flex justify-between text-[9px] mt-1.5",style:{color:"oklch(0.35 0.06 255)"},children:[v.jsx("span",{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:708",children:"0%"}),v.jsx("span",{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:709",style:{color:"oklch(0.72 0.18 85 / 0.6)"},children:"â² 80% 鿍ç·"}),v.jsx("span",{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:710",children:"100%"})]})]}),v.jsx("div",{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:714",className:"px-4 py-2.5 text-center",style:{borderTop:"1px solid oklch(0.22 0.06 255)"},children:v.jsx("div",{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:715",className:"text-[10px] font-semibold",style:{color:"oklch(0.35 0.06 255)"},children:"éåç ⥠80% 建è°åºæ · æ¸æå
ä¾åè"})})]})})})}),v.jsx("div",{"data-loc":"client/src/pages/OripaCalculatorPage.tsx:726",className:"h-8"})]})})}const v0e=.052;function y0e(e){const n=[];let r=e*.9;for(let a=30;a>=0;a--)r=r*(1+(Math.random()-.48)*.04),n.push({day:a===0?"仿¥":`${a}天å`,price:Math.round(r)});return n}function b0e({priceJpy:e}){const t=j.useMemo(()=>y0e(e),[e]),n=t[0]?.price??0,r=t[t.length-1]?.price??0,a=r>=n,o=a?"#34d399":"#f87171",l=n>0?((r-n)/n*100).toFixed(1):"0.0";return v.jsxs("div",{"data-loc":"client/src/pages/CollectionPage.tsx:43",className:"mt-3",children:[v.jsxs("div",{"data-loc":"client/src/pages/CollectionPage.tsx:44",className:"flex items-center justify-between mb-1",children:[v.jsx("span",{"data-loc":"client/src/pages/CollectionPage.tsx:45",className:"text-xs text-muted-foreground",children:"è¿30æ¥èµ°å¢"}),v.jsxs("span",{"data-loc":"client/src/pages/CollectionPage.tsx:46",className:`text-xs font-bold flex items-center gap-0.5 ${a?"text-emerald-400":"text-red-400"}`,children:[a?v.jsx(Cl,{"data-loc":"client/src/pages/CollectionPage.tsx:47",className:"w-3 h-3"}):v.jsx(PA,{"data-loc":"client/src/pages/CollectionPage.tsx:47",className:"w-3 h-3"}),a?"+":"",l,"%"]})]}),v.jsx(j8,{"data-loc":"client/src/pages/CollectionPage.tsx:51",width:"100%",height:48,children:v.jsxs(LB,{"data-loc":"client/src/pages/CollectionPage.tsx:52",data:t,children:[v.jsx(pd,{"data-loc":"client/src/pages/CollectionPage.tsx:53",domain:["auto","auto"],hide:!0}),v.jsx(Fr,{"data-loc":"client/src/pages/CollectionPage.tsx:54",contentStyle:{background:"#0f172a",border:"1px solid #334155",borderRadius:8,fontSize:11},formatter:c=>
378[`Â¥${Number(c).toLocaleString()}`,"PSA 10"],labelStyle:{color:"#94a3b8"}}),v.jsx(Sc,{"data-loc":"client/src/pages/CollectionPage.tsx:59",type:"monotone",dataKey:"price",stroke:o,strokeWidth:1.5,dot:!1,activeDot:{r:3,fill:o}})]})})]})}function x0e({item:e,onRemove:t}){const n=e.psa10PriceJpy||0,r=e.psa10PriceHkd||Math.round(n*v0e);return v.jsxs("div",{"data-loc":"client/src/pages/CollectionPage.tsx:78",className:"group relative bg-card border border-border/40 rounded-2xl overflow-hidden hover:border-primary/40 transition-all duration-300 hover:shadow-lg hover:shadow-primary/10",children:[v.jsxs("div",{"data-loc":"client/src/pages/CollectionPage.tsx:80",className:"relative aspect-[2.5/3.5] bg-secondary/30 overflow-hidden",children:[e.imageUrl?v.jsx("img",{"data-loc":"client/src/pages/CollectionPage.tsx:82",src:e.imageUrl,alt:e.cardName,className:"w-full h-full object-cover transition-transform duration-500 group-hover:scale-105"}):v.jsxs("div",{"data-loc":"client/src/pages/CollectionPage.tsx:88",className:"w-full h-full flex flex-col items-center justify-center gap-2 text-muted-foreground/30",children:[v.jsx(Nr,{"data-loc":"client/src/pages/CollectionPage.tsx:89",className:"w-12 h-12"}),v.jsx("span",{"data-loc":"client/src/pages/CollectionPage.tsx:90",className:"text-xs",children:"ç¡åç"})]}),v.jsx("button",{"data-loc":"client/src/pages/CollectionPage.tsx:94",onClick:t,className:"absolute top-2 right-2 w-7 h-7 rounded-full bg-red-500/80 backdrop-blur-sm flex items-center justify-center opacity-0 group-hover:opacity-100 transition-opacity hover:bg-red-500",children:v.jsx(Mp,{"data-loc":"client/src/pages/CollectionPage.tsx:98",className:"w-3.5 h-3.5 text-white"})}),e.quantity>1&&v.jsxs("div",{"data-loc":"client/src/pages/CollectionPage.tsx:102",className:"absolute bottom-2 left-2 px-2 py-0.5 rounded-full bg-primary/90 text-primary-foreground text-xs font-bold",children:["Ã",e.quantity]})]}),v.jsxs("div",{"data-loc":"client/src/pages/CollectionPage.tsx:109",className:"p-3",children:[v.jsx("p",{"data-loc":"client/src/pages/CollectionPage.tsx:110",className:"font-semibold text-foreground text-sm leading-tight line-clamp-2 mb-1",children:e.cardName||"æªç¥å¡ç"}),v.jsxs("p",{"data-loc":"client/src/pages/CollectionPage.tsx:113",className:"text-xs text-muted-foreground mb-2",children:[e.setName||e.setId," · #",e.cardNumber]}),n>0?v.jsx("div",{"data-loc":"client/src/pages/CollectionPage.tsx:119",className:"flex items-center justify-between",children:v.jsxs("div",{"data-loc":"client/src/pages/CollectionPage.tsx:120",children:[v.jsx("p",{"data-loc":"client/src/pages/CollectionPage.tsx:121",className:"text-xs text-muted-foreground",children:"PSA 10"}),v.jsxs("p",{"data-loc":"client/src/pages/CollectionPage.tsx:122",className:"font-bold text-foreground text-sm",children:["Â¥",n.toLocaleString()]}),v.jsxs("p",{"data-loc":"client/src/pages/CollectionPage.tsx:123",className:"text-xs text-primary font-medium",children:["â HK$",r.toLocaleString()]})]})}):v.jsx("p",{"data-loc":"client/src/pages/CollectionPage.tsx:127",className:"text-xs text-muted-foreground italic",children:"广 ¼æ«ç¡æ¸æ"}),n>0&&v.jsx(b0e,{"data-loc":"client/src/pages/CollectionPage.tsx:131",priceJpy:n})]})]})}function w0e({onClose:e,onAdded:t}){const[n,r]=j.useState(""),[a,o]=j.useState(""),[l,c]=j.useState(null),[f,d]=j.useState(!1),m=[{label:"ð¯ðµ æ±ç´« æ¡å¼µãã㯠(sv1)",value:"sv1"},{label:"ð¯ðµ æ±ç´« ã¹ãã¼ãã¶ã¼ã (sv2)",value:"sv2"},{label:"ð¯ðµ æ±ç´« ã¯ã¬ã¤ãã¼ã¹ã (sv2a) â æå¸ææ¯æ¹",value:"sv2a"},{label:"ð¯ðµ æ±ç´« ã¬ã¤ã¸ã³ã°ãµã¼ã (sv3a)",value:"sv3a"},{label:"ð¯ðµ æ±ç´« ãã±ã¢ã³ã«ã¼ã151 (sv2a)",value:"sv2a"},{label:"ð¯ðµ æ±ç´« å¤ä»£ã®åå® (sv4)",value:"sv4"},{label:"ð¯ðµ æ±ç´« æªæ¥ã®ä¸é (sv4a)",value:"sv4a"},{label:"ð¯ðµ æ±ç´« ãã¤ãã¯ã³ãã©ã¼ (sv6a)",value:"sv6a"},{label:"ð¯ðµ æ±ç´« ã¹ãã©ãã©ã¯ã« (sv7)",value:"sv7"},{label:"ð¯ðµ æ±ç´« 楽åãã©ã´ã¼ã (sv7a)",value:"sv7a"},{label:"ð¯ðµ æ±ç´« è¶
é»ãã¬ã¤ã«ã¼ (sv8)",value:"sv8"},{label:"ð¯ðµ æ±ç´« ããã«ãã¼ããã¼ãº (sv8a)",value:"sv8a"},{label:"ðºð¸ Scarlet & Violet Base (sv1)",value:"sv1"},{label:"ðºð¸ Paldea Evolved (sv2)",value:"sv2"},{label:"ðºð¸ Obsidian Flames (sv3)",value:"sv3"},{label:"ðºð¸ Paradox Rift (sv4)",value:"sv4"}
378,{label:"ðºð¸ 151 (sv3pt5)",value:"sv3pt5"},{label:"å代 Base Set (base1)",value:"base1"},{label:"å代 Jungle (jungle)",value:"jungle"},{label:"å代 Fossil (fossil)",value:"fossil"},{label:"Neo Genesis (neo1)",value:"neo1"},{label:"Neo Discovery (neo2)",value:"neo2"}],h=dt.collection.lookupCard.useQuery({setId:n.trim().toLowerCase(),number:a.trim()},{enabled:!1}),g=dt.collection.add.useMutation({onSuccess:()=>{An.success(`å·²å å
¥æ¶èï¼${l?.cardName}`),t(),e()},onError:b=>An.error(b.message)}),x=async()=>{if(!n.trim()||!a.trim()){An.error("è«è¼¸å
¥ç³»å ID åå¡è");return}d(!0);try{const b=await h.refetch();b.data?c(b.data):(An.error("æ¾ä¸å°æ¤å¡çï¼è«ç¢ºèªç³»å ID åå¡è"),c(null))}catch{An.error("æå°å¤±æï¼è«ç¨å¾å試")}finally{d(!1)}},O=()=>{l&&g.mutate({cardId:l.cardId,setId:l.setId,cardNumber:l.cardNumber,cardName:l.cardName,setName:l.setName,imageUrl:l.imageUrl})};return v.jsx("div",{"data-loc":"client/src/pages/CollectionPage.tsx:220",className:"fixed inset-0 z-50 flex items-center justify-center p-4 bg-black/70 backdrop-blur-sm",children:v.jsxs("div",{"data-loc":"client/src/pages/CollectionPage.tsx:221",className:"bg-card border border-border/60 rounded-2xl p-6 w-full max-w-md
378shadow-2xl",children:[v.jsxs("div",{"data-loc":"client/src/pages/CollectionPage.tsx:222",className:"flex items-center justify-between mb-5",children:[v.jsx("h2",{"data-loc":"client/src/pages/CollectionPage.tsx:223",className:"font-display text-xl font-bold text-gold-gradient",children:"æ°å¢å¡çå°æ¶è"}),v.jsx("button",{"data-loc":"client/src/pages/CollectionPage.tsx:224",onClick:e,className:"text-muted-foreground hover:text-foreground text-xl leading-none",children:"â"})]}),v.jsxs("div",{"data-loc":"client/src/pages/CollectionPage.tsx:228",className:"bg-secondary/40 rounded-xl p-3 mb-4 text-xs text-muted-foreground space-y-1",children:[v.jsx("p",{"data-loc":"client/src/pages/CollectionPage.tsx:229",className:"font-medium text-foreground",children:"å¦ä½è¼¸å
¥ï¼"}),v.jsxs("p",{"data-loc":"client/src/pages/CollectionPage.tsx:230",children:["⢠",v.jsx("strong",{"data-loc":"client/src/pages/CollectionPage.tsx:230",children:"ç³»å ID"}),"ï¼ä¾å¦ ",v.jsx("code",{"data-loc":"client/src/pages/CollectionPage.tsx:230",className:"bg-secondary px-1 rounded",children:"sv1"}),"ï¼æ±ç´«ç¬¬1å½ï¼ã",v.jsx("code",{"data-loc":"client/src/pages/CollectionPage.tsx:230",className:"bg-secondary px-1 rounded",children:"base1"}),"ï¼åä»£åºæ¬å
ï¼"]}),v.jsxs("p",{"data-loc":"client/src/pages/CollectionPage.tsx:231",children:["⢠",v.jsx("strong",{"data-loc":"client/src/pages/CollectionPage.tsx:231",children:"å¡è"}),"ï¼ä¾å¦ ",v.jsx("code",{"data-loc":"client/src/pages/CollectionPage.tsx:231",className:"bg-secondary px-1 rounded",children:"001"}),"ã",v.jsx("code",{"data-loc":"client/src/pages/CollectionPage.tsx:231",className:"bg-secondary px-1 rounded",children:"4"})]}),v.jsxs("p",{"data-loc":"client/src/pages/CollectionPage.tsx:232",children:["⢠系å ID å¯å¨ ",v.jsx("a",{"data-loc":"client/src/pages/CollectionPage.tsx:232",href:"https://pokemontcg.io",target:"_blank",rel:"noopener",className:"text-primary underline",children:"pokemontcg.io"})," æ¥è©¢"]})]}),v.jsxs("div",{"data-loc":"client/src/pages/CollectionPage.tsx:235",className:"flex gap-2 mb-4",children:[v.jsxs("div",{"data-loc":"client/src/pages/CollectionPage.tsx:236",className:"flex-1",children:[v.jsx("label",{"data-loc":"client/src/pages/CollectionPage.tsx:237",className:"text-xs text-muted-foreground mb-1 block",children:"ç³»å ID"}),v.jsx(Vn,{"data-loc":"client/src/pages/CollectionPage.tsx:238",value:n,onChange:b=>r(b.target.value),placeholder:"ä¾ï¼sv1ãbase1",className:"bg-secondary/50 border-border/50",onKeyDown:b=>b.key==="Enter"&&x()})]}),v.jsxs("div",{"data-loc":"client/src/pages/CollectionPage.tsx:246",className:"w-28",children:[v.jsx("label",{"data-loc":"client/src/pages/CollectionPage.tsx:247",className:"text-xs text-muted-foreground mb-1 block",children:"å¡è"}),v.jsx(Vn,{"data-loc":"client/src/pages/CollectionPage.tsx:248",value:a,onChange:b=>o(b.target.value),placeholder:"ä¾ï¼001",className:"bg-secondary/50 border-border/50",onKeyDown:b=>b.key==="Enter"&&x()})]})]}),v.jsxs("div",{"data-loc":"client/src/pages/CollectionPage.tsx:258",className:"mb-4",children:[v.jsx("label",{"data-loc":"client/src/pages/CollectionPage.tsx:259",className:"text-xs text-muted-foreground mb-1 block",children:"å¿«éé¸æç³»å"}),v.jsxs("select",{"data-loc":"client/src/pages/CollectionPage.tsx:260",value:n,onChange:b=>r(b.target.value),className:"w-full bg-secondary/50 border border-border/50 rounded-lg px-3 py-2 text-sm text-foreground focus:outline-none focus:border-primary",children:[v.jsx("option",{"data-loc":"client/src/pages/CollectionPage.tsx:265",value:"",children:"â ææå輸å
¥ç³»å ID â"}),m.map(b=>v.jsx("option",{"data-loc":"client/src/pages/CollectionPage.tsx:267",value:b.value,children:b.label},b.value))]})]}),v.jsx("div",{"data-loc":"client/src/pages/CollectionPage.tsx:272",className:"bg-emerald-500/10 border border-emerald-500/20 rounded-lg p-2 mb-4 text-xs text-emerald-300",children:"â
æ¯æ´æ¥æçç³»åï¼sv2aãsv4aãsv8a çï¼åè±æçç³»åãå¡çè³æä¾æºï¼TCGdex"}),v.jsxs(je,{"data-loc":"client/src/pages/CollectionPage.tsx:276",onClick:x,disabled:f,className:"w-full mb-4 bg-secondary hover:bg-secondary/80 text-foreground border border-border/50",variant:"outline",children:[v.jsx(OA,{"data-loc":"client/src/pages/CollectionPage.tsx:282",className:"w-4 h-4 mr-2"}),f?"æå°ä¸â¦":"æå°å¡ç"]}),l&&v.jsxs("div",{"data-loc":"client/src/pages/CollectionPage.tsx:288",className:"border border-primary/30 rounded-xl p-4 mb-4 bg-primary/5",children:[v.jsxs("div",{"data-loc":"client/src/pages/CollectionPage.tsx:289",className:"flex gap-4",children:[l.imageUrl&&v.jsx("img",{"data-loc":"client/src/pages/CollectionPage.tsx:291",src:l.imageUrl,alt:l.cardName,className:"w-20 rounded-lg border border-border/40 object-cover"}),v.jsxs("div",{"data-loc":"client/src/pages/CollectionPage.tsx:293",className:"flex-1 min-w-0",children:[v.jsx("p",{"data-loc":"client/src/pages/CollectionPage.tsx:294",className:"font-bold text-foreground",children:l.cardName}),v.jsx("p",{"data-loc":"client/src/pages/CollectionPage.tsx:295",className:"text-sm text-muted-foreground",children:l.setName}),v.jsxs("p",{"data-loc":"client/src/pages/CollectionPage.tsx:296",className:"text-xs text-muted-foreground",children:["#",l.cardNumber]}),l.rarity&&v.jsx(ur,{"data-loc":"client/src/pages/CollectionPage.tsx:298",variant:"secondary",className:"mt-1 text-xs",children:l.rarity})]})]}),v.jsxs(je,{"data-loc":"client/src/pages/CollectionPage.tsx:302",onClick:O,disabled:g.isPending,className:"w-full mt-3 bg-primary text-primary-foreground",children:[v.jsx(as,{"data-loc":"client/src/pages/CollectionPage.tsx:307",className:"w-4 h-4 mr-2"}),g.isPending?"å å
¥ä¸â¦":"å å
¥æçæ¶è"]})]}),v.jsx(je,{"data-loc":"client/src/pages/CollectionPage.tsx:313",variant:"ghost",onClick:e,className:"w-full text-muted-foreground",children:"åæ¶"})]})})}function S0e(){const{isAuthenticated:e,loading:t}=li(),[n,r]=j.useState(!1),[a,o]=j.useState(""),{data:l,refetch:c,isLoading:f}=dt.collection.list.useQuery(void 0,{enabled:e}),d=j.useMemo(()=>
378{if(!l)return[];if(!a.trim())return l;const h=a.toLowerCase();return l.filter(g=>(g.cardName||"").toLowerCase().includes(h)||(g.setName||"").toLowerCase().includes(h)||g.cardNumber.toLowerCase().includes(h)||g.setId.toLowerCase().includes(h))},[l,a]),m=dt.collection.remove.useMutation({onSuccess:()=>{An.success("已徿¶èç§»é¤"),c()},onError:h=>An.error(h.message)});return t?v.jsx("div",{"data-loc":"client/src/pages/CollectionPage.tsx:350",className:"container py-20 flex items-center justify-center",children:v.jsx("div",{"data-loc":"client/src/pages/CollectionPage.tsx:351",className:"w-8 h-8 border-2 border-primary border-t-transparent rounded-full animate-spin"})}):e?v.jsxs("div",{"data-loc":"client/src/pages/CollectionPage.tsx:374",className:"container py-10",children:[v.jsxs("div",{"data-loc":"client/src/pages/CollectionPage.tsx:376",className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4 mb-8",children:[v.jsxs("div",{"data-loc":"client/src/pages/CollectionPage.tsx:377",children:[v.jsxs("div",{"data-loc":"client/src/pages/CollectionPage.tsx:378",className:"flex items-center gap-3 mb-1",children:[v.jsx(Np,{"data-loc":"client/src/pages/CollectionPage.tsx:379",className:"w-6 h-6 text-primary"}),v.jsx("h1",{"data-loc":"client/src/pages/CollectionPage.tsx:380",className:"font-display text-3xl font-bold text-gold-gradient",children:"æçæ¶è"})]}),v.jsxs("p",{"data-loc":"client/src/pages/CollectionPage.tsx:382",className:"text-muted-foreground text-sm",children:[l?.length??0," å¼µå¡ç · PSA 10 广 ¼è¿½è¹¤ · è¿30æ¥èµ°å¢"]})]}),v.jsxs(je,{"data-loc":"client/src/pages/CollectionPage.tsx:386",onClick:()=>r(!0),className:"bg-primary text-primary-foreground gap-2 shrink-0",children:[v.jsx(as,{"data-loc":"client/src/pages/CollectionPage.tsx:390",className:"w-4 h-4"}),"æ°å¢å¡ç"]})]}),(l?.length??0)>0&&v.jsxs("div",{"data-loc":"client/src/pages/CollectionPage.tsx:397",className:"relative max-w-sm mb-6",children:[v.jsx(OA,{"data-loc":"client/src/pages/CollectionPage.tsx:398",className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),v.jsx(Vn,{"data-loc":"client/src/pages/CollectionPage.tsx:399",value:a,onChange:h=>o(h.target.value),placeholder:"æå°æ¶èä¸çå¡çâ¦",className:"pl-10 bg-secondary/50 border-border/50"})]}),f&&v.jsx("div",{"data-loc":"client/src/pages/CollectionPage.tsx:410",className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5 gap-4",children:Array.from({length:8}).map((h,g)=>v.jsx("div",{"data-loc":"client/src/pages/CollectionPage.tsx:412",className:"rounded-2xl bg-card animate-pulse aspect-[2.5/4.5]"},g))}),!f&&(l?.length??0)===0&&v.jsxs("div",{"data-loc":"client/src/pages/CollectionPage.tsx:419",className:"flex flex-col items-center justify-center py-24 gap-6 text-center",children:[v.jsx("div",{"data-loc":"client/src/pages/CollectionPage.tsx:420",className:"w-24 h-24 rounded-full bg-secondary/50 flex items-center justify-center",children:v.jsx(CY,{"data-loc":"client/src/pages/CollectionPage.tsx:421",className:"w-12 h-12 text-muted-foreground/40"})}),v.jsxs("div",{"data-loc":"client/src/pages/CollectionPage.tsx:423",children:[v.jsx("p",{"data-loc":"client/src/pages/CollectionPage.tsx:424",className:"text-xl font-semibold text-foreground mb-2",children:"æ¶è空空å¦ä¹"}),v.jsx("p",{"data-loc":"client/src/pages/CollectionPage.tsx:425",className:"text-muted-foreground text-sm max-w-xs",children:"é»æãæ°å¢å¡çãï¼è¼¸å
¥ç³»å ID åå¡èï¼å³å¯å å
¥ä½ ç第ä¸å¼µæ¶èå¡ï¼"})]}),v.jsxs(je,{"data-loc":"client/src/pages/CollectionPage.tsx:429",onClick:()=>r(!0),className:"bg-primary text-primary-foreground gap-2",children:[v.jsx(as,{"data-loc":"client/src/pages/CollectionPage.tsx:430",className:"w-4 h-4"}),"æ°å¢ç¬¬ä¸å¼µå¡ç"]})]}),!f&&(l?.length??0)>0&&d.length===0&&v.jsxs("div",{"data-loc":"client/src/pages/CollectionPage.tsx:438",className:"flex flex-col items-center justify-center py-16 gap-3 text-center",children:[v.jsx(B6,{"data-loc":"client/src/pages/CollectionPage.tsx:439",className:"w-10 h-10 text-muted-foreground
378/40"}),v.jsxs("p",{"data-loc":"client/src/pages/CollectionPage.tsx:440",className:"text-muted-foreground",children:["æ¾ä¸å°ã",a,"ãç¸éçæ¶èå¡ç"]})]}),!f&&d.length>0&&v.jsx("div",{"data-loc":"client/src/pages/CollectionPage.tsx:446",className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5 gap-4",children:d.map(h=>v.jsx(x0e,{"data-loc":"client/src/pages/CollectionPage.tsx:448",item:h,onRemove:()=>m.mutate({id:h.id})},h.id))}),n&&v.jsx(w0e,{"data-loc":"client/src/pages/CollectionPage.tsx:459",onClose:()=>r(!1),onAdded:()=>c()})]}):v.jsxs("div",{"data-loc":"client/src/pages/CollectionPage.tsx:358",className:"container py-20 flex flex-col items-center justify-center gap-6 text-center",children:[v.jsx("div",{"data-loc":"client/src/pages/CollectionPage.tsx:359",className:"w-20 h-20 rounded-full bg-primary/10 flex items-center justify-center",children:v.jsx(Np,{"data-loc":"client/src/pages/CollectionPage.tsx:360",className:"w-10 h-10 text-primary"})}),v.jsxs("div",{"data-loc":"client/src/pages/CollectionPage.tsx:362",children:[v.jsx("h1",{"data-loc":"client/src/pages/CollectionPage.tsx:363",className:"font-display text-3xl font-bold text-gold-gradient mb-2",children:"æçæ¶è"}),v.jsx("p",{"data-loc":"client/src/pages/CollectionPage.tsx:364",className:"text-muted-foreground",children:"ç»å
¥å¾å³å¯å»ºç«ä½ çå人å¡çæ¶èï¼è¿½è¹¤ PSA 10 广 ¼èµ°å¢"})]}),v.jsx(je,{"data-loc":"client/src/pages/CollectionPage.tsx:366",onClick:()=>ei(),className:"bg-primary text-primary-foreground px-8",children:"ç«å³ç»å
¥"})]})}function vn({children:e}){return v.jsxs("div",{"data-loc":"client/src/App.tsx:26",className:"min-h-screen flex flex-col bg-background",children:[v.jsx(bX,{"data-loc":"client/src/App.tsx:27"}),v.jsx("main",{"data-loc":"client/src/App.tsx:28",className:"flex-1",children:e}),v.jsx(xX,{"data-loc":"client/src/App.tsx:29"})]})}function O0e(){return v.jsxs(hX,{"data-loc":"client/src/App.tsx:36",children:[v.jsx(gn,{"data-loc":"client/src/App.tsx:37",path:"/",component:()=>v.jsx(vn,{"data-loc":"client/src/App.tsx:37",children:v.jsx(SX,{"data-loc":"client/src/App.tsx:37"})})}),v.jsx(gn,{"data-loc":"client/src/App.tsx:38",path:"/market",component:()=>v.jsx(vn,{"data-loc":"client/src/App.tsx:38",children:v.jsx($Q,{"data-loc":"client/src/App.tsx:38"})})}),v.jsx(gn,{"data-loc":"client/src/App.tsx:39",path:"/card/:id",component:()=>v.jsx(vn,{"data-loc":"client/src/App.tsx:39",children:v.jsx(Dhe,{"data-loc":"client/src/App.tsx:39"})})}),v.jsx(gn,{"data-loc":"client/src/App.tsx:40",path:"/oripa",component:()=>v.jsx(vn,{"data-loc":"client/src/App.tsx:40",children:v.jsx(bpe,{"data-loc":"client/src/App.tsx:40"})})}),v.jsx(gn,{"data-loc":"client/src/App.tsx:41",path:"/oripa/:id",component:()=>v.jsx(vn,{"data-loc":"client/src/App.tsx:41",children:v.jsx(xpe,{"data-loc":"client/src/App.tsx:41"})})}),v.jsx(gn,{"data-loc":"client/src/App.tsx:42",path:"/cart",component:()=>v.jsx(vn,{"data-loc":"client/src/App.tsx:42",children:v.jsx(wpe,{"data-loc":"client/src/App.tsx:42"})})}),v.jsx(gn,{"data-loc":"client/src/App.tsx:43",path:"/orders",component:()=>v.jsx(vn,{"data-loc":"client/src/App.tsx:43",children:v.jsx(Ape,{"data-loc":"client/src/App.tsx:43"})})}),v.jsx(gn,{"data-loc":"client/src/App.tsx:44",path:"/order/success",component:()=>v.jsx(vn,{"data-loc":"client/src/App.tsx:44",children:v.jsx(Ppe,{"data-loc":"client/src/App.tsx:44"})})}),v.jsx(gn,{"data-loc":"client/src/App.tsx:45",path:"/admin",component:()=>v.jsx(vn,{"data-loc":"client/src/App.tsx:45",children:v.jsx(_pe,{"data-loc":"client/src/App.tsx:45"})})}),v.jsx(gn,{"data-loc":"client/src/App.tsx:46",path:"/admin/oripa/new",component:()=>v.jsx(vn,{"data-loc":"client/src/App.tsx:46",children:v.jsx(S3,{"data-loc":"client/src/App.tsx:46"})})}),v.jsx(gn,{"data-loc":"client/src/App.tsx:47",path:"/admin/oripa/:id/edit",component:()=>v.jsx(vn,{"data-loc":"client/src/App.tsx:47",children:v.jsx(S3,{"data-loc":"client/src/App.tsx:47"})})}),v.jsx(gn,{"data-loc":"client/src/App.tsx:48",path:"/admin/orders",component:()=>v.jsx(vn,{"data-loc":"client/src/App.tsx:48",children:v.jsx(Dpe,{"data-loc":"client/src/App.tsx:48"})})}),v.jsx(gn,{"data-loc":"client/src/App.tsx:49",path:"/calculator",component:()=>v.jsx(vn,{"data-loc":"client/src/App.tsx:49",children:v.jsx(g0e,{"data-loc":"client/src/App.tsx:49"})})}),v.jsx(gn,{"data-loc":"client/src/App.tsx:50",path:"/collection",component:()=>v.jsx(vn,{"data-loc":"client/src/App.tsx:50",children:v.jsx(S0e,{"data-loc":"client/src/App.tsx:50"})})}),v.jsx(gn,{"data-loc":"client/src/App.tsx:51",path:"/404",component:()=>v.jsx(vn,{"data-loc":"client/src/App.tsx:51",children:v.jsx(gE,{"data-loc":"client/src/App.tsx:51"})})}),v.jsx(gn,{"data-loc":"client/src/App.tsx:52",component:()=>v.jsx(vn,{"data-loc":"client/src/App.tsx:52",children:v.jsx(gE,{"data-loc":"client/src/App.tsx:52"})})})]})}function A0e(){return v.jsx(pX,{"data-loc":"client/src/App.tsx:59",children:v.jsx(gX,{"data-loc":"client/src/App.tsx:60",defaultTheme:"dark",children:v.jsx(vX,{"data-loc":"client/src/App.tsx:61",children:v.jsxs(wY,{"data-loc":"client/src/App.tsx:62",children:[v.jsx(jF,{"data-loc":"client/src/App.tsx:63",richColors:!0,position:"top-right"}),v.jsx(O0e,{"data-loc":"client/src/App.tsx:64"})]})})})})}const Lm=new T7,Hz=e=>{!(e instanceof Rl)||typeof window>"u"||!(e.message===uV)||ei()};Lm.getQueryCache().subscribe(e=>{if(e.type==="updated"&&e.action.type==="error"){const t=e.query.state.error;Hz(t),console.error("[API Query Error]",t)}});Lm.getMutationCache().subscribe(e=>{if(e.type==="updated"&&e.action.type==="error"){const t=e.mutation.state.error;Hz(t),console.error("[API Mutation Error]",t)}});const P0e=dt.createClient({links:[I9({url:"/api/trpc",transformer:si,headers(){try{const e=sessionStorage.getItem("manus-cookie");if(e){const t=`${cV}=`,r=e.split(";").find(a=>a.trim().startsWith(t))?.trim().slice(t.length);if(r)return{Authorization:`Bearer ${r}`}}}catch{}return{}},fetch(e,t){return globalThis.fetch(e,{...t??{},credentials:"include"})}})]});yV.createRoot(document.getElementById("root")).render(v.jsx(dt.Provider,{"data-loc":"client/src/main.tsx:76",client:P0e,queryClient:Lm,children:v.jsx(E7,{"data-loc":"client/src/main.tsx:77",client:Lm,children:v.jsx(A0e,{"data-loc":"client/src/main.tsx:78"})})}));
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.