summary refs log tree commit diff
diff options
context:
space:
mode:
authorManuelPalenzuelaDD <144776385+ManuelPalenzuelaDD@users.noreply.github.com>2024-07-11 09:22:41 +0000
committerManuelPalenzuelaDD <144776385+ManuelPalenzuelaDD@users.noreply.github.com>2024-07-11 09:22:41 +0000
commite6d4139c215a29bb204538f7168381dcd5ffb50e (patch)
treee3054e531c28b6f193c9db16d7f5a0257d695267
parentDeploying to gh-pages from @ Baitinq/fs-tracer-frontend@a94c5dddb3faad2b263f4... (diff)
downloadfs-tracer-frontend-e6d4139c215a29bb204538f7168381dcd5ffb50e.tar.gz
fs-tracer-frontend-e6d4139c215a29bb204538f7168381dcd5ffb50e.tar.bz2
fs-tracer-frontend-e6d4139c215a29bb204538f7168381dcd5ffb50e.zip
Deploying to gh-pages from @ Baitinq/fs-tracer-frontend@7a8b457f96e18b945937966ee6ba7193d20165d1 🚀
-rw-r--r--assets/browser-CtRlQGro.js (renamed from assets/browser-C3KIP8q7.js)2
-rw-r--r--assets/index-rBF38wWh.js (renamed from assets/index-hvfwARIQ.js)32
-rw-r--r--index.html2
3 files changed, 18 insertions, 18 deletions
diff --git a/assets/browser-C3KIP8q7.js b/assets/browser-CtRlQGro.js
index 29332eb..6e7d609 100644
--- a/assets/browser-C3KIP8q7.js
+++ b/assets/browser-CtRlQGro.js
@@ -1 +1 @@
-import{g as e}from"./index-hvfwARIQ.js";var o=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")};const r=e(o),s=Object.freeze(Object.defineProperty({__proto__:null,default:r},Symbol.toStringTag,{value:"Module"}));export{s as b};
+import{g as e}from"./index-rBF38wWh.js";var o=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")};const r=e(o),s=Object.freeze(Object.defineProperty({__proto__:null,default:r},Symbol.toStringTag,{value:"Module"}));export{s as b};
diff --git a/assets/index-hvfwARIQ.js b/assets/index-rBF38wWh.js
index c92260f..999b9a2 100644
--- a/assets/index-hvfwARIQ.js
+++ b/assets/index-rBF38wWh.js
@@ -1,4 +1,4 @@
-var _R=Object.defineProperty;var ER=(e,t,n)=>t in e?_R(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var j=(e,t,n)=>ER(e,typeof t!="symbol"?t+"":t,n);function SR(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const a=Object.getOwnPropertyDescriptor(r,i);a&&Object.defineProperty(e,i,a.get?a:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const s of a.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();var Dn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function bw(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function CR(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var yw={exports:{}},Qd={},$w={exports:{}},ie={};/**
+var ER=Object.defineProperty;var SR=(e,t,n)=>t in e?ER(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var j=(e,t,n)=>SR(e,typeof t!="symbol"?t+"":t,n);function CR(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const a=Object.getOwnPropertyDescriptor(r,i);a&&Object.defineProperty(e,i,a.get?a:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const s of a.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();var Dn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function bw(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function kR(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var yw={exports:{}},Qd={},$w={exports:{}},ie={};/**
  * @license React
  * react.production.min.js
  *
@@ -6,7 +6,7 @@ var _R=Object.defineProperty;var ER=(e,t,n)=>t in e?_R(e,t,{enumerable:!0,config
  *
  * This source code is licensed under the MIT license found in the
  * LICENSE file in the root directory of this source tree.
- */var kl=Symbol.for("react.element"),kR=Symbol.for("react.portal"),PR=Symbol.for("react.fragment"),TR=Symbol.for("react.strict_mode"),RR=Symbol.for("react.profiler"),MR=Symbol.for("react.provider"),FR=Symbol.for("react.context"),AR=Symbol.for("react.forward_ref"),OR=Symbol.for("react.suspense"),BR=Symbol.for("react.memo"),IR=Symbol.for("react.lazy"),Z$=Symbol.iterator;function LR(e){return e===null||typeof e!="object"?null:(e=Z$&&e[Z$]||e["@@iterator"],typeof e=="function"?e:null)}var xw={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ww=Object.assign,Dw={};function Es(e,t,n){this.props=e,this.context=t,this.refs=Dw,this.updater=n||xw}Es.prototype.isReactComponent={};Es.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Es.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function _w(){}_w.prototype=Es.prototype;function a3(e,t,n){this.props=e,this.context=t,this.refs=Dw,this.updater=n||xw}var s3=a3.prototype=new _w;s3.constructor=a3;ww(s3,Es.prototype);s3.isPureReactComponent=!0;var X$=Array.isArray,Ew=Object.prototype.hasOwnProperty,o3={current:null},Sw={key:!0,ref:!0,__self:!0,__source:!0};function Cw(e,t,n){var r,i={},a=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(a=""+t.key),t)Ew.call(t,r)&&!Sw.hasOwnProperty(r)&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var l=Array(o),u=0;u<o;u++)l[u]=arguments[u+2];i.children=l}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return{$$typeof:kl,type:e,key:a,ref:s,props:i,_owner:o3.current}}function NR(e,t){return{$$typeof:kl,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function l3(e){return typeof e=="object"&&e!==null&&e.$$typeof===kl}function jR(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Q$=/\/+/g;function Gf(e,t){return typeof e=="object"&&e!==null&&e.key!=null?jR(""+e.key):t.toString(36)}function Hu(e,t,n,r,i){var a=typeof e;(a==="undefined"||a==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(a){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case kl:case kR:s=!0}}if(s)return s=e,i=i(s),e=r===""?"."+Gf(s,0):r,X$(i)?(n="",e!=null&&(n=e.replace(Q$,"$&/")+"/"),Hu(i,t,n,"",function(u){return u})):i!=null&&(l3(i)&&(i=NR(i,n+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(Q$,"$&/")+"/")+e)),t.push(i)),1;if(s=0,r=r===""?".":r+":",X$(e))for(var o=0;o<e.length;o++){a=e[o];var l=r+Gf(a,o);s+=Hu(a,t,n,l,i)}else if(l=LR(e),typeof l=="function")for(e=l.call(e),o=0;!(a=e.next()).done;)a=a.value,l=r+Gf(a,o++),s+=Hu(a,t,n,l,i);else if(a==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function Kl(e,t,n){if(e==null)return e;var r=[],i=0;return Hu(e,r,"","",function(a){return t.call(n,a,i++)}),r}function zR(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var At={current:null},Ku={transition:null},VR={ReactCurrentDispatcher:At,ReactCurrentBatchConfig:Ku,ReactCurrentOwner:o3};function kw(){throw Error("act(...) is not supported in production builds of React.")}ie.Children={map:Kl,forEach:function(e,t,n){Kl(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Kl(e,function(){t++}),t},toArray:function(e){return Kl(e,function(t){return t})||[]},only:function(e){if(!l3(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ie.Component=Es;ie.Fragment=PR;ie.Profiler=RR;ie.PureComponent=a3;ie.StrictMode=TR;ie.Suspense=OR;ie.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=VR;ie.act=kw;ie.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=ww({},e.props),i=e.key,a=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(a=t.ref,s=o3.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var o=e.type.defaultProps;for(l in t)Ew.call(t,l)&&!Sw.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&o!==void 0?o[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){o=Array(l);for(var u=0;u<l;u++)o[u]=arguments[u+2];r.children=o}return{$$typeof:kl,type:e.type,key:i,ref:a,props:r,_owner:s}};ie.createContext=function(e){return e={$$typeof:FR,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:MR,_context:e},e.Consumer=e};ie.createElement=Cw;ie.createFactory=function(e){var t=Cw.bind(null,e);return t.type=e,t};ie.createRef=function(){return{current:null}};ie.forwardRef=function(e){return{$$typeof:AR,render:e}};ie.isValidElement=l3;ie.lazy=function(e){return{$$typeof:IR,_payload:{_status:-1,_result:e},_init:zR}};ie.memo=function(e,t){return{$$typeof:BR,type:e,compare:t===void 0?null:t}};ie.startTransition=function(e){var t=Ku.transition;Ku.transition={};try{e()}finally{Ku.transition=t}};ie.unstable_act=kw;ie.useCallback=function(e,t){return At.current.useCallback(e,t)};ie.useContext=function(e){return At.current.useContext(e)};ie.useDebugValue=function(){};ie.useDeferredValue=function(e){return At.current.useDeferredValue(e)};ie.useEffect=function(e,t){return At.current.useEffect(e,t)};ie.useId=function(){return At.current.useId()};ie.useImperativeHandle=function(e,t,n){return At.current.useImperativeHandle(e,t,n)};ie.useInsertionEffect=function(e,t){return At.current.useInsertionEffect(e,t)};ie.useLayoutEffect=function(e,t){return At.current.useLayoutEffect(e,t)};ie.useMemo=function(e,t){return At.current.useMemo(e,t)};ie.useReducer=function(e,t,n){return At.current.useReducer(e,t,n)};ie.useRef=function(e){return At.current.useRef(e)};ie.useState=function(e){return At.current.useState(e)};ie.useSyncExternalStore=function(e,t,n){return At.current.useSyncExternalStore(e,t,n)};ie.useTransition=function(){return At.current.useTransition()};ie.version="18.3.1";$w.exports=ie;var y=$w.exports;const _=bw(y),WR=SR({__proto__:null,default:_},[y]);/**
+ */var kl=Symbol.for("react.element"),PR=Symbol.for("react.portal"),TR=Symbol.for("react.fragment"),RR=Symbol.for("react.strict_mode"),MR=Symbol.for("react.profiler"),FR=Symbol.for("react.provider"),AR=Symbol.for("react.context"),OR=Symbol.for("react.forward_ref"),BR=Symbol.for("react.suspense"),IR=Symbol.for("react.memo"),LR=Symbol.for("react.lazy"),Z$=Symbol.iterator;function NR(e){return e===null||typeof e!="object"?null:(e=Z$&&e[Z$]||e["@@iterator"],typeof e=="function"?e:null)}var xw={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ww=Object.assign,Dw={};function Es(e,t,n){this.props=e,this.context=t,this.refs=Dw,this.updater=n||xw}Es.prototype.isReactComponent={};Es.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Es.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function _w(){}_w.prototype=Es.prototype;function a3(e,t,n){this.props=e,this.context=t,this.refs=Dw,this.updater=n||xw}var s3=a3.prototype=new _w;s3.constructor=a3;ww(s3,Es.prototype);s3.isPureReactComponent=!0;var X$=Array.isArray,Ew=Object.prototype.hasOwnProperty,o3={current:null},Sw={key:!0,ref:!0,__self:!0,__source:!0};function Cw(e,t,n){var r,i={},a=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(a=""+t.key),t)Ew.call(t,r)&&!Sw.hasOwnProperty(r)&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var l=Array(o),u=0;u<o;u++)l[u]=arguments[u+2];i.children=l}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return{$$typeof:kl,type:e,key:a,ref:s,props:i,_owner:o3.current}}function jR(e,t){return{$$typeof:kl,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function l3(e){return typeof e=="object"&&e!==null&&e.$$typeof===kl}function zR(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Q$=/\/+/g;function Gf(e,t){return typeof e=="object"&&e!==null&&e.key!=null?zR(""+e.key):t.toString(36)}function Hu(e,t,n,r,i){var a=typeof e;(a==="undefined"||a==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(a){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case kl:case PR:s=!0}}if(s)return s=e,i=i(s),e=r===""?"."+Gf(s,0):r,X$(i)?(n="",e!=null&&(n=e.replace(Q$,"$&/")+"/"),Hu(i,t,n,"",function(u){return u})):i!=null&&(l3(i)&&(i=jR(i,n+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(Q$,"$&/")+"/")+e)),t.push(i)),1;if(s=0,r=r===""?".":r+":",X$(e))for(var o=0;o<e.length;o++){a=e[o];var l=r+Gf(a,o);s+=Hu(a,t,n,l,i)}else if(l=NR(e),typeof l=="function")for(e=l.call(e),o=0;!(a=e.next()).done;)a=a.value,l=r+Gf(a,o++),s+=Hu(a,t,n,l,i);else if(a==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function Kl(e,t,n){if(e==null)return e;var r=[],i=0;return Hu(e,r,"","",function(a){return t.call(n,a,i++)}),r}function VR(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var At={current:null},Ku={transition:null},WR={ReactCurrentDispatcher:At,ReactCurrentBatchConfig:Ku,ReactCurrentOwner:o3};function kw(){throw Error("act(...) is not supported in production builds of React.")}ie.Children={map:Kl,forEach:function(e,t,n){Kl(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Kl(e,function(){t++}),t},toArray:function(e){return Kl(e,function(t){return t})||[]},only:function(e){if(!l3(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ie.Component=Es;ie.Fragment=TR;ie.Profiler=MR;ie.PureComponent=a3;ie.StrictMode=RR;ie.Suspense=BR;ie.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=WR;ie.act=kw;ie.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=ww({},e.props),i=e.key,a=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(a=t.ref,s=o3.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var o=e.type.defaultProps;for(l in t)Ew.call(t,l)&&!Sw.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&o!==void 0?o[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){o=Array(l);for(var u=0;u<l;u++)o[u]=arguments[u+2];r.children=o}return{$$typeof:kl,type:e.type,key:i,ref:a,props:r,_owner:s}};ie.createContext=function(e){return e={$$typeof:AR,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:FR,_context:e},e.Consumer=e};ie.createElement=Cw;ie.createFactory=function(e){var t=Cw.bind(null,e);return t.type=e,t};ie.createRef=function(){return{current:null}};ie.forwardRef=function(e){return{$$typeof:OR,render:e}};ie.isValidElement=l3;ie.lazy=function(e){return{$$typeof:LR,_payload:{_status:-1,_result:e},_init:VR}};ie.memo=function(e,t){return{$$typeof:IR,type:e,compare:t===void 0?null:t}};ie.startTransition=function(e){var t=Ku.transition;Ku.transition={};try{e()}finally{Ku.transition=t}};ie.unstable_act=kw;ie.useCallback=function(e,t){return At.current.useCallback(e,t)};ie.useContext=function(e){return At.current.useContext(e)};ie.useDebugValue=function(){};ie.useDeferredValue=function(e){return At.current.useDeferredValue(e)};ie.useEffect=function(e,t){return At.current.useEffect(e,t)};ie.useId=function(){return At.current.useId()};ie.useImperativeHandle=function(e,t,n){return At.current.useImperativeHandle(e,t,n)};ie.useInsertionEffect=function(e,t){return At.current.useInsertionEffect(e,t)};ie.useLayoutEffect=function(e,t){return At.current.useLayoutEffect(e,t)};ie.useMemo=function(e,t){return At.current.useMemo(e,t)};ie.useReducer=function(e,t,n){return At.current.useReducer(e,t,n)};ie.useRef=function(e){return At.current.useRef(e)};ie.useState=function(e){return At.current.useState(e)};ie.useSyncExternalStore=function(e,t,n){return At.current.useSyncExternalStore(e,t,n)};ie.useTransition=function(){return At.current.useTransition()};ie.version="18.3.1";$w.exports=ie;var y=$w.exports;const _=bw(y),UR=CR({__proto__:null,default:_},[y]);/**
  * @license React
  * react-jsx-runtime.production.min.js
  *
@@ -14,7 +14,7 @@ var _R=Object.defineProperty;var ER=(e,t,n)=>t in e?_R(e,t,{enumerable:!0,config
  *
  * This source code is licensed under the MIT license found in the
  * LICENSE file in the root directory of this source tree.
- */var UR=y,HR=Symbol.for("react.element"),KR=Symbol.for("react.fragment"),YR=Object.prototype.hasOwnProperty,qR=UR.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,GR={key:!0,ref:!0,__self:!0,__source:!0};function Pw(e,t,n){var r,i={},a=null,s=null;n!==void 0&&(a=""+n),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)YR.call(t,r)&&!GR.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:HR,type:e,key:a,ref:s,props:i,_owner:qR.current}}Qd.Fragment=KR;Qd.jsx=Pw;Qd.jsxs=Pw;yw.exports=Qd;var O=yw.exports,Dp={},Tw={exports:{}},un={},Rw={exports:{}},Mw={};/**
+ */var HR=y,KR=Symbol.for("react.element"),YR=Symbol.for("react.fragment"),qR=Object.prototype.hasOwnProperty,GR=HR.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,ZR={key:!0,ref:!0,__self:!0,__source:!0};function Pw(e,t,n){var r,i={},a=null,s=null;n!==void 0&&(a=""+n),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)qR.call(t,r)&&!ZR.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:KR,type:e,key:a,ref:s,props:i,_owner:GR.current}}Qd.Fragment=YR;Qd.jsx=Pw;Qd.jsxs=Pw;yw.exports=Qd;var A=yw.exports,Dp={},Tw={exports:{}},un={},Rw={exports:{}},Mw={};/**
  * @license React
  * scheduler.production.min.js
  *
@@ -22,7 +22,7 @@ var _R=Object.defineProperty;var ER=(e,t,n)=>t in e?_R(e,t,{enumerable:!0,config
  *
  * This source code is licensed under the MIT license found in the
  * LICENSE file in the root directory of this source tree.
- */(function(e){function t(A,I){var N=A.length;A.push(I);e:for(;0<N;){var X=N-1>>>1,Q=A[X];if(0<i(Q,I))A[X]=I,A[N]=Q,N=X;else break e}}function n(A){return A.length===0?null:A[0]}function r(A){if(A.length===0)return null;var I=A[0],N=A.pop();if(N!==I){A[0]=N;e:for(var X=0,Q=A.length,je=Q>>>1;X<je;){var $e=2*(X+1)-1,lt=A[$e],xe=$e+1,W=A[xe];if(0>i(lt,N))xe<Q&&0>i(W,lt)?(A[X]=W,A[xe]=N,X=xe):(A[X]=lt,A[$e]=N,X=$e);else if(xe<Q&&0>i(W,N))A[X]=W,A[xe]=N,X=xe;else break e}}return I}function i(A,I){var N=A.sortIndex-I.sortIndex;return N!==0?N:A.id-I.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var s=Date,o=s.now();e.unstable_now=function(){return s.now()-o}}var l=[],u=[],c=1,d=null,f=3,h=!1,p=!1,g=!1,b=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function $(A){for(var I=n(u);I!==null;){if(I.callback===null)r(u);else if(I.startTime<=A)r(u),I.sortIndex=I.expirationTime,t(l,I);else break;I=n(u)}}function w(A){if(g=!1,$(A),!p)if(n(l)!==null)p=!0,B(D);else{var I=n(u);I!==null&&C(w,I.startTime-A)}}function D(A,I){p=!1,g&&(g=!1,v(x),x=-1),h=!0;var N=f;try{for($(I),d=n(l);d!==null&&(!(d.expirationTime>I)||A&&!E());){var X=d.callback;if(typeof X=="function"){d.callback=null,f=d.priorityLevel;var Q=X(d.expirationTime<=I);I=e.unstable_now(),typeof Q=="function"?d.callback=Q:d===n(l)&&r(l),$(I)}else r(l);d=n(l)}if(d!==null)var je=!0;else{var $e=n(u);$e!==null&&C(w,$e.startTime-I),je=!1}return je}finally{d=null,f=N,h=!1}}var S=!1,k=null,x=-1,T=5,P=-1;function E(){return!(e.unstable_now()-P<T)}function F(){if(k!==null){var A=e.unstable_now();P=A;var I=!0;try{I=k(!0,A)}finally{I?R():(S=!1,k=null)}}else S=!1}var R;if(typeof m=="function")R=function(){m(F)};else if(typeof MessageChannel<"u"){var M=new MessageChannel,z=M.port2;M.port1.onmessage=F,R=function(){z.postMessage(null)}}else R=function(){b(F,0)};function B(A){k=A,S||(S=!0,R())}function C(A,I){x=b(function(){A(e.unstable_now())},I)}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(A){A.callback=null},e.unstable_continueExecution=function(){p||h||(p=!0,B(D))},e.unstable_forceFrameRate=function(A){0>A||125<A?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):T=0<A?Math.floor(1e3/A):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(A){switch(f){case 1:case 2:case 3:var I=3;break;default:I=f}var N=f;f=I;try{return A()}finally{f=N}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(A,I){switch(A){case 1:case 2:case 3:case 4:case 5:break;default:A=3}var N=f;f=A;try{return I()}finally{f=N}},e.unstable_scheduleCallback=function(A,I,N){var X=e.unstable_now();switch(typeof N=="object"&&N!==null?(N=N.delay,N=typeof N=="number"&&0<N?X+N:X):N=X,A){case 1:var Q=-1;break;case 2:Q=250;break;case 5:Q=1073741823;break;case 4:Q=1e4;break;default:Q=5e3}return Q=N+Q,A={id:c++,callback:I,priorityLevel:A,startTime:N,expirationTime:Q,sortIndex:-1},N>X?(A.sortIndex=N,t(u,A),n(l)===null&&A===n(u)&&(g?(v(x),x=-1):g=!0,C(w,N-X))):(A.sortIndex=Q,t(l,A),p||h||(p=!0,B(D))),A},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(A){var I=f;return function(){var N=f;f=I;try{return A.apply(this,arguments)}finally{f=N}}}})(Mw);Rw.exports=Mw;var ZR=Rw.exports;/**
+ */(function(e){function t(O,I){var N=O.length;O.push(I);e:for(;0<N;){var X=N-1>>>1,Q=O[X];if(0<i(Q,I))O[X]=I,O[N]=Q,N=X;else break e}}function n(O){return O.length===0?null:O[0]}function r(O){if(O.length===0)return null;var I=O[0],N=O.pop();if(N!==I){O[0]=N;e:for(var X=0,Q=O.length,je=Q>>>1;X<je;){var $e=2*(X+1)-1,lt=O[$e],xe=$e+1,W=O[xe];if(0>i(lt,N))xe<Q&&0>i(W,lt)?(O[X]=W,O[xe]=N,X=xe):(O[X]=lt,O[$e]=N,X=$e);else if(xe<Q&&0>i(W,N))O[X]=W,O[xe]=N,X=xe;else break e}}return I}function i(O,I){var N=O.sortIndex-I.sortIndex;return N!==0?N:O.id-I.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var s=Date,o=s.now();e.unstable_now=function(){return s.now()-o}}var l=[],u=[],c=1,d=null,f=3,h=!1,p=!1,g=!1,b=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function $(O){for(var I=n(u);I!==null;){if(I.callback===null)r(u);else if(I.startTime<=O)r(u),I.sortIndex=I.expirationTime,t(l,I);else break;I=n(u)}}function w(O){if(g=!1,$(O),!p)if(n(l)!==null)p=!0,B(D);else{var I=n(u);I!==null&&C(w,I.startTime-O)}}function D(O,I){p=!1,g&&(g=!1,v(x),x=-1),h=!0;var N=f;try{for($(I),d=n(l);d!==null&&(!(d.expirationTime>I)||O&&!E());){var X=d.callback;if(typeof X=="function"){d.callback=null,f=d.priorityLevel;var Q=X(d.expirationTime<=I);I=e.unstable_now(),typeof Q=="function"?d.callback=Q:d===n(l)&&r(l),$(I)}else r(l);d=n(l)}if(d!==null)var je=!0;else{var $e=n(u);$e!==null&&C(w,$e.startTime-I),je=!1}return je}finally{d=null,f=N,h=!1}}var S=!1,k=null,x=-1,T=5,P=-1;function E(){return!(e.unstable_now()-P<T)}function F(){if(k!==null){var O=e.unstable_now();P=O;var I=!0;try{I=k(!0,O)}finally{I?R():(S=!1,k=null)}}else S=!1}var R;if(typeof m=="function")R=function(){m(F)};else if(typeof MessageChannel<"u"){var M=new MessageChannel,z=M.port2;M.port1.onmessage=F,R=function(){z.postMessage(null)}}else R=function(){b(F,0)};function B(O){k=O,S||(S=!0,R())}function C(O,I){x=b(function(){O(e.unstable_now())},I)}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(O){O.callback=null},e.unstable_continueExecution=function(){p||h||(p=!0,B(D))},e.unstable_forceFrameRate=function(O){0>O||125<O?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):T=0<O?Math.floor(1e3/O):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(O){switch(f){case 1:case 2:case 3:var I=3;break;default:I=f}var N=f;f=I;try{return O()}finally{f=N}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(O,I){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var N=f;f=O;try{return I()}finally{f=N}},e.unstable_scheduleCallback=function(O,I,N){var X=e.unstable_now();switch(typeof N=="object"&&N!==null?(N=N.delay,N=typeof N=="number"&&0<N?X+N:X):N=X,O){case 1:var Q=-1;break;case 2:Q=250;break;case 5:Q=1073741823;break;case 4:Q=1e4;break;default:Q=5e3}return Q=N+Q,O={id:c++,callback:I,priorityLevel:O,startTime:N,expirationTime:Q,sortIndex:-1},N>X?(O.sortIndex=N,t(u,O),n(l)===null&&O===n(u)&&(g?(v(x),x=-1):g=!0,C(w,N-X))):(O.sortIndex=Q,t(l,O),p||h||(p=!0,B(D))),O},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(O){var I=f;return function(){var N=f;f=I;try{return O.apply(this,arguments)}finally{f=N}}}})(Mw);Rw.exports=Mw;var XR=Rw.exports;/**
  * @license React
  * react-dom.production.min.js
  *
@@ -30,14 +30,14 @@ var _R=Object.defineProperty;var ER=(e,t,n)=>t in e?_R(e,t,{enumerable:!0,config
  *
  * This source code is licensed under the MIT license found in the
  * LICENSE file in the root directory of this source tree.
- */var XR=y,on=ZR;function L(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Fw=new Set,Vo={};function ca(e,t){ds(e,t),ds(e+"Capture",t)}function ds(e,t){for(Vo[e]=t,e=0;e<t.length;e++)Fw.add(t[e])}var yr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),_p=Object.prototype.hasOwnProperty,QR=/^[: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]*$/,J$={},ex={};function JR(e){return _p.call(ex,e)?!0:_p.call(J$,e)?!1:QR.test(e)?ex[e]=!0:(J$[e]=!0,!1)}function eM(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function tM(e,t,n,r){if(t===null||typeof t>"u"||eM(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ot(e,t,n,r,i,a,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=s}var gt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){gt[e]=new Ot(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];gt[t]=new Ot(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){gt[e]=new Ot(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){gt[e]=new Ot(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){gt[e]=new Ot(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){gt[e]=new Ot(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){gt[e]=new Ot(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){gt[e]=new Ot(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){gt[e]=new Ot(e,5,!1,e.toLowerCase(),null,!1,!1)});var u3=/[\-:]([a-z])/g;function c3(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(u3,c3);gt[t]=new Ot(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(u3,c3);gt[t]=new Ot(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(u3,c3);gt[t]=new Ot(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){gt[e]=new Ot(e,1,!1,e.toLowerCase(),null,!1,!1)});gt.xlinkHref=new Ot("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){gt[e]=new Ot(e,1,!1,e.toLowerCase(),null,!0,!0)});function d3(e,t,n,r){var i=gt.hasOwnProperty(t)?gt[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(tM(t,n,i,r)&&(n=null),r||i===null?JR(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Dr=XR.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Yl=Symbol.for("react.element"),Aa=Symbol.for("react.portal"),Oa=Symbol.for("react.fragment"),f3=Symbol.for("react.strict_mode"),Ep=Symbol.for("react.profiler"),Aw=Symbol.for("react.provider"),Ow=Symbol.for("react.context"),h3=Symbol.for("react.forward_ref"),Sp=Symbol.for("react.suspense"),Cp=Symbol.for("react.suspense_list"),p3=Symbol.for("react.memo"),Ar=Symbol.for("react.lazy"),Bw=Symbol.for("react.offscreen"),tx=Symbol.iterator;function Os(e){return e===null||typeof e!="object"?null:(e=tx&&e[tx]||e["@@iterator"],typeof e=="function"?e:null)}var Ne=Object.assign,Zf;function so(e){if(Zf===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Zf=t&&t[1]||""}return`
+ */var QR=y,on=XR;function L(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Fw=new Set,Vo={};function ca(e,t){ds(e,t),ds(e+"Capture",t)}function ds(e,t){for(Vo[e]=t,e=0;e<t.length;e++)Fw.add(t[e])}var yr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),_p=Object.prototype.hasOwnProperty,JR=/^[: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]*$/,J$={},ex={};function eM(e){return _p.call(ex,e)?!0:_p.call(J$,e)?!1:JR.test(e)?ex[e]=!0:(J$[e]=!0,!1)}function tM(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function nM(e,t,n,r){if(t===null||typeof t>"u"||tM(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ot(e,t,n,r,i,a,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=s}var gt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){gt[e]=new Ot(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];gt[t]=new Ot(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){gt[e]=new Ot(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){gt[e]=new Ot(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){gt[e]=new Ot(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){gt[e]=new Ot(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){gt[e]=new Ot(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){gt[e]=new Ot(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){gt[e]=new Ot(e,5,!1,e.toLowerCase(),null,!1,!1)});var u3=/[\-:]([a-z])/g;function c3(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(u3,c3);gt[t]=new Ot(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(u3,c3);gt[t]=new Ot(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(u3,c3);gt[t]=new Ot(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){gt[e]=new Ot(e,1,!1,e.toLowerCase(),null,!1,!1)});gt.xlinkHref=new Ot("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){gt[e]=new Ot(e,1,!1,e.toLowerCase(),null,!0,!0)});function d3(e,t,n,r){var i=gt.hasOwnProperty(t)?gt[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(nM(t,n,i,r)&&(n=null),r||i===null?eM(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Dr=QR.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Yl=Symbol.for("react.element"),Aa=Symbol.for("react.portal"),Oa=Symbol.for("react.fragment"),f3=Symbol.for("react.strict_mode"),Ep=Symbol.for("react.profiler"),Aw=Symbol.for("react.provider"),Ow=Symbol.for("react.context"),h3=Symbol.for("react.forward_ref"),Sp=Symbol.for("react.suspense"),Cp=Symbol.for("react.suspense_list"),p3=Symbol.for("react.memo"),Ar=Symbol.for("react.lazy"),Bw=Symbol.for("react.offscreen"),tx=Symbol.iterator;function Os(e){return e===null||typeof e!="object"?null:(e=tx&&e[tx]||e["@@iterator"],typeof e=="function"?e:null)}var Ne=Object.assign,Zf;function so(e){if(Zf===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Zf=t&&t[1]||""}return`
 `+Zf+e}var Xf=!1;function Qf(e,t){if(!e||Xf)return"";Xf=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var i=u.stack.split(`
 `),a=r.stack.split(`
 `),s=i.length-1,o=a.length-1;1<=s&&0<=o&&i[s]!==a[o];)o--;for(;1<=s&&0<=o;s--,o--)if(i[s]!==a[o]){if(s!==1||o!==1)do if(s--,o--,0>o||i[s]!==a[o]){var l=`
-`+i[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=s&&0<=o);break}}}finally{Xf=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?so(e):""}function nM(e){switch(e.tag){case 5:return so(e.type);case 16:return so("Lazy");case 13:return so("Suspense");case 19:return so("SuspenseList");case 0:case 2:case 15:return e=Qf(e.type,!1),e;case 11:return e=Qf(e.type.render,!1),e;case 1:return e=Qf(e.type,!0),e;default:return""}}function kp(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Oa:return"Fragment";case Aa:return"Portal";case Ep:return"Profiler";case f3:return"StrictMode";case Sp:return"Suspense";case Cp:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ow:return(e.displayName||"Context")+".Consumer";case Aw:return(e._context.displayName||"Context")+".Provider";case h3:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case p3:return t=e.displayName||null,t!==null?t:kp(e.type)||"Memo";case Ar:t=e._payload,e=e._init;try{return kp(e(t))}catch{}}return null}function rM(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return kp(t);case 8:return t===f3?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ai(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Iw(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function iM(e){var t=Iw(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,a.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ql(e){e._valueTracker||(e._valueTracker=iM(e))}function Lw(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Iw(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function mc(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Pp(e,t){var n=t.checked;return Ne({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function nx(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ai(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Nw(e,t){t=t.checked,t!=null&&d3(e,"checked",t,!1)}function Tp(e,t){Nw(e,t);var n=ai(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Rp(e,t.type,n):t.hasOwnProperty("defaultValue")&&Rp(e,t.type,ai(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function rx(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Rp(e,t,n){(t!=="number"||mc(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var oo=Array.isArray;function Ga(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ai(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Mp(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(L(91));return Ne({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ix(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(L(92));if(oo(n)){if(1<n.length)throw Error(L(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:ai(n)}}function jw(e,t){var n=ai(t.value),r=ai(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function ax(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function zw(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Fp(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?zw(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Gl,Vw=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Gl=Gl||document.createElement("div"),Gl.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Gl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Wo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Do={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},aM=["Webkit","ms","Moz","O"];Object.keys(Do).forEach(function(e){aM.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Do[t]=Do[e]})});function Ww(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Do.hasOwnProperty(e)&&Do[e]?(""+t).trim():t+"px"}function Uw(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Ww(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var sM=Ne({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ap(e,t){if(t){if(sM[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(L(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(L(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(L(61))}if(t.style!=null&&typeof t.style!="object")throw Error(L(62))}}function Op(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Bp=null;function m3(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ip=null,Za=null,Xa=null;function sx(e){if(e=Rl(e)){if(typeof Ip!="function")throw Error(L(280));var t=e.stateNode;t&&(t=rf(t),Ip(e.stateNode,e.type,t))}}function Hw(e){Za?Xa?Xa.push(e):Xa=[e]:Za=e}function Kw(){if(Za){var e=Za,t=Xa;if(Xa=Za=null,sx(e),t)for(e=0;e<t.length;e++)sx(t[e])}}function Yw(e,t){return e(t)}function qw(){}var Jf=!1;function Gw(e,t,n){if(Jf)return e(t,n);Jf=!0;try{return Yw(e,t,n)}finally{Jf=!1,(Za!==null||Xa!==null)&&(qw(),Kw())}}function Uo(e,t){var n=e.stateNode;if(n===null)return null;var r=rf(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(L(231,t,typeof n));return n}var Lp=!1;if(yr)try{var Bs={};Object.defineProperty(Bs,"passive",{get:function(){Lp=!0}}),window.addEventListener("test",Bs,Bs),window.removeEventListener("test",Bs,Bs)}catch{Lp=!1}function oM(e,t,n,r,i,a,s,o,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var _o=!1,gc=null,vc=!1,Np=null,lM={onError:function(e){_o=!0,gc=e}};function uM(e,t,n,r,i,a,s,o,l){_o=!1,gc=null,oM.apply(lM,arguments)}function cM(e,t,n,r,i,a,s,o,l){if(uM.apply(this,arguments),_o){if(_o){var u=gc;_o=!1,gc=null}else throw Error(L(198));vc||(vc=!0,Np=u)}}function da(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Zw(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function ox(e){if(da(e)!==e)throw Error(L(188))}function dM(e){var t=e.alternate;if(!t){if(t=da(e),t===null)throw Error(L(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var a=i.alternate;if(a===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return ox(i),e;if(a===r)return ox(i),t;a=a.sibling}throw Error(L(188))}if(n.return!==r.return)n=i,r=a;else{for(var s=!1,o=i.child;o;){if(o===n){s=!0,n=i,r=a;break}if(o===r){s=!0,r=i,n=a;break}o=o.sibling}if(!s){for(o=a.child;o;){if(o===n){s=!0,n=a,r=i;break}if(o===r){s=!0,r=a,n=i;break}o=o.sibling}if(!s)throw Error(L(189))}}if(n.alternate!==r)throw Error(L(190))}if(n.tag!==3)throw Error(L(188));return n.stateNode.current===n?e:t}function Xw(e){return e=dM(e),e!==null?Qw(e):null}function Qw(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Qw(e);if(t!==null)return t;e=e.sibling}return null}var Jw=on.unstable_scheduleCallback,lx=on.unstable_cancelCallback,fM=on.unstable_shouldYield,hM=on.unstable_requestPaint,Ye=on.unstable_now,pM=on.unstable_getCurrentPriorityLevel,g3=on.unstable_ImmediatePriority,eD=on.unstable_UserBlockingPriority,bc=on.unstable_NormalPriority,mM=on.unstable_LowPriority,tD=on.unstable_IdlePriority,Jd=null,qn=null;function gM(e){if(qn&&typeof qn.onCommitFiberRoot=="function")try{qn.onCommitFiberRoot(Jd,e,void 0,(e.current.flags&128)===128)}catch{}}var On=Math.clz32?Math.clz32:yM,vM=Math.log,bM=Math.LN2;function yM(e){return e>>>=0,e===0?32:31-(vM(e)/bM|0)|0}var Zl=64,Xl=4194304;function lo(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function yc(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,s=n&268435455;if(s!==0){var o=s&~i;o!==0?r=lo(o):(a&=s,a!==0&&(r=lo(a)))}else s=n&~i,s!==0?r=lo(s):a!==0&&(r=lo(a));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,a=t&-t,i>=a||i===16&&(a&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-On(t),i=1<<n,r|=e[n],t&=~i;return r}function $M(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function xM(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes;0<a;){var s=31-On(a),o=1<<s,l=i[s];l===-1?(!(o&n)||o&r)&&(i[s]=$M(o,t)):l<=t&&(e.expiredLanes|=o),a&=~o}}function jp(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function nD(){var e=Zl;return Zl<<=1,!(Zl&4194240)&&(Zl=64),e}function eh(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Pl(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-On(t),e[t]=n}function wM(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-On(n),a=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~a}}function v3(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-On(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var ge=0;function rD(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var iD,b3,aD,sD,oD,zp=!1,Ql=[],Gr=null,Zr=null,Xr=null,Ho=new Map,Ko=new Map,Lr=[],DM="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function ux(e,t){switch(e){case"focusin":case"focusout":Gr=null;break;case"dragenter":case"dragleave":Zr=null;break;case"mouseover":case"mouseout":Xr=null;break;case"pointerover":case"pointerout":Ho.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ko.delete(t.pointerId)}}function Is(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=Rl(t),t!==null&&b3(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function _M(e,t,n,r,i){switch(t){case"focusin":return Gr=Is(Gr,e,t,n,r,i),!0;case"dragenter":return Zr=Is(Zr,e,t,n,r,i),!0;case"mouseover":return Xr=Is(Xr,e,t,n,r,i),!0;case"pointerover":var a=i.pointerId;return Ho.set(a,Is(Ho.get(a)||null,e,t,n,r,i)),!0;case"gotpointercapture":return a=i.pointerId,Ko.set(a,Is(Ko.get(a)||null,e,t,n,r,i)),!0}return!1}function lD(e){var t=Ni(e.target);if(t!==null){var n=da(t);if(n!==null){if(t=n.tag,t===13){if(t=Zw(n),t!==null){e.blockedOn=t,oD(e.priority,function(){aD(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Yu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Vp(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Bp=r,n.target.dispatchEvent(r),Bp=null}else return t=Rl(n),t!==null&&b3(t),e.blockedOn=n,!1;t.shift()}return!0}function cx(e,t,n){Yu(e)&&n.delete(t)}function EM(){zp=!1,Gr!==null&&Yu(Gr)&&(Gr=null),Zr!==null&&Yu(Zr)&&(Zr=null),Xr!==null&&Yu(Xr)&&(Xr=null),Ho.forEach(cx),Ko.forEach(cx)}function Ls(e,t){e.blockedOn===t&&(e.blockedOn=null,zp||(zp=!0,on.unstable_scheduleCallback(on.unstable_NormalPriority,EM)))}function Yo(e){function t(i){return Ls(i,e)}if(0<Ql.length){Ls(Ql[0],e);for(var n=1;n<Ql.length;n++){var r=Ql[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Gr!==null&&Ls(Gr,e),Zr!==null&&Ls(Zr,e),Xr!==null&&Ls(Xr,e),Ho.forEach(t),Ko.forEach(t),n=0;n<Lr.length;n++)r=Lr[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Lr.length&&(n=Lr[0],n.blockedOn===null);)lD(n),n.blockedOn===null&&Lr.shift()}var Qa=Dr.ReactCurrentBatchConfig,$c=!0;function SM(e,t,n,r){var i=ge,a=Qa.transition;Qa.transition=null;try{ge=1,y3(e,t,n,r)}finally{ge=i,Qa.transition=a}}function CM(e,t,n,r){var i=ge,a=Qa.transition;Qa.transition=null;try{ge=4,y3(e,t,n,r)}finally{ge=i,Qa.transition=a}}function y3(e,t,n,r){if($c){var i=Vp(e,t,n,r);if(i===null)ch(e,t,r,xc,n),ux(e,r);else if(_M(i,e,t,n,r))r.stopPropagation();else if(ux(e,r),t&4&&-1<DM.indexOf(e)){for(;i!==null;){var a=Rl(i);if(a!==null&&iD(a),a=Vp(e,t,n,r),a===null&&ch(e,t,r,xc,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else ch(e,t,r,null,n)}}var xc=null;function Vp(e,t,n,r){if(xc=null,e=m3(r),e=Ni(e),e!==null)if(t=da(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Zw(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return xc=e,null}function uD(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(pM()){case g3:return 1;case eD:return 4;case bc:case mM:return 16;case tD:return 536870912;default:return 16}default:return 16}}var zr=null,$3=null,qu=null;function cD(){if(qu)return qu;var e,t=$3,n=t.length,r,i="value"in zr?zr.value:zr.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===i[a-r];r++);return qu=i.slice(e,1<r?1-r:void 0)}function Gu(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Jl(){return!0}function dx(){return!1}function cn(e){function t(n,r,i,a,s){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=a,this.target=s,this.currentTarget=null;for(var o in e)e.hasOwnProperty(o)&&(n=e[o],this[o]=n?n(a):a[o]);return this.isDefaultPrevented=(a.defaultPrevented!=null?a.defaultPrevented:a.returnValue===!1)?Jl:dx,this.isPropagationStopped=dx,this}return Ne(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Jl)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Jl)},persist:function(){},isPersistent:Jl}),t}var Ss={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},x3=cn(Ss),Tl=Ne({},Ss,{view:0,detail:0}),kM=cn(Tl),th,nh,Ns,ef=Ne({},Tl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:w3,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Ns&&(Ns&&e.type==="mousemove"?(th=e.screenX-Ns.screenX,nh=e.screenY-Ns.screenY):nh=th=0,Ns=e),th)},movementY:function(e){return"movementY"in e?e.movementY:nh}}),fx=cn(ef),PM=Ne({},ef,{dataTransfer:0}),TM=cn(PM),RM=Ne({},Tl,{relatedTarget:0}),rh=cn(RM),MM=Ne({},Ss,{animationName:0,elapsedTime:0,pseudoElement:0}),FM=cn(MM),AM=Ne({},Ss,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),OM=cn(AM),BM=Ne({},Ss,{data:0}),hx=cn(BM),IM={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},LM={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"},NM={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function jM(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=NM[e])?!!t[e]:!1}function w3(){return jM}var zM=Ne({},Tl,{key:function(e){if(e.key){var t=IM[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Gu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?LM[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:w3,charCode:function(e){return e.type==="keypress"?Gu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Gu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),VM=cn(zM),WM=Ne({},ef,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),px=cn(WM),UM=Ne({},Tl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:w3}),HM=cn(UM),KM=Ne({},Ss,{propertyName:0,elapsedTime:0,pseudoElement:0}),YM=cn(KM),qM=Ne({},ef,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),GM=cn(qM),ZM=[9,13,27,32],D3=yr&&"CompositionEvent"in window,Eo=null;yr&&"documentMode"in document&&(Eo=document.documentMode);var XM=yr&&"TextEvent"in window&&!Eo,dD=yr&&(!D3||Eo&&8<Eo&&11>=Eo),mx=" ",gx=!1;function fD(e,t){switch(e){case"keyup":return ZM.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function hD(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ba=!1;function QM(e,t){switch(e){case"compositionend":return hD(t);case"keypress":return t.which!==32?null:(gx=!0,mx);case"textInput":return e=t.data,e===mx&&gx?null:e;default:return null}}function JM(e,t){if(Ba)return e==="compositionend"||!D3&&fD(e,t)?(e=cD(),qu=$3=zr=null,Ba=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return dD&&t.locale!=="ko"?null:t.data;default:return null}}var eF={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 vx(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!eF[e.type]:t==="textarea"}function pD(e,t,n,r){Hw(r),t=wc(t,"onChange"),0<t.length&&(n=new x3("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var So=null,qo=null;function tF(e){ED(e,0)}function tf(e){var t=Na(e);if(Lw(t))return e}function nF(e,t){if(e==="change")return t}var mD=!1;if(yr){var ih;if(yr){var ah="oninput"in document;if(!ah){var bx=document.createElement("div");bx.setAttribute("oninput","return;"),ah=typeof bx.oninput=="function"}ih=ah}else ih=!1;mD=ih&&(!document.documentMode||9<document.documentMode)}function yx(){So&&(So.detachEvent("onpropertychange",gD),qo=So=null)}function gD(e){if(e.propertyName==="value"&&tf(qo)){var t=[];pD(t,qo,e,m3(e)),Gw(tF,t)}}function rF(e,t,n){e==="focusin"?(yx(),So=t,qo=n,So.attachEvent("onpropertychange",gD)):e==="focusout"&&yx()}function iF(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return tf(qo)}function aF(e,t){if(e==="click")return tf(t)}function sF(e,t){if(e==="input"||e==="change")return tf(t)}function oF(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ln=typeof Object.is=="function"?Object.is:oF;function Go(e,t){if(Ln(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!_p.call(t,i)||!Ln(e[i],t[i]))return!1}return!0}function $x(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function xx(e,t){var n=$x(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=$x(n)}}function vD(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?vD(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function bD(){for(var e=window,t=mc();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=mc(e.document)}return t}function _3(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function lF(e){var t=bD(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&vD(n.ownerDocument.documentElement,n)){if(r!==null&&_3(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,a=Math.min(r.start,i);r=r.end===void 0?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=xx(n,a);var s=xx(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var uF=yr&&"documentMode"in document&&11>=document.documentMode,Ia=null,Wp=null,Co=null,Up=!1;function wx(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Up||Ia==null||Ia!==mc(r)||(r=Ia,"selectionStart"in r&&_3(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Co&&Go(Co,r)||(Co=r,r=wc(Wp,"onSelect"),0<r.length&&(t=new x3("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Ia)))}function eu(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var La={animationend:eu("Animation","AnimationEnd"),animationiteration:eu("Animation","AnimationIteration"),animationstart:eu("Animation","AnimationStart"),transitionend:eu("Transition","TransitionEnd")},sh={},yD={};yr&&(yD=document.createElement("div").style,"AnimationEvent"in window||(delete La.animationend.animation,delete La.animationiteration.animation,delete La.animationstart.animation),"TransitionEvent"in window||delete La.transitionend.transition);function nf(e){if(sh[e])return sh[e];if(!La[e])return e;var t=La[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in yD)return sh[e]=t[n];return e}var $D=nf("animationend"),xD=nf("animationiteration"),wD=nf("animationstart"),DD=nf("transitionend"),_D=new Map,Dx="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function fi(e,t){_D.set(e,t),ca(t,[e])}for(var oh=0;oh<Dx.length;oh++){var lh=Dx[oh],cF=lh.toLowerCase(),dF=lh[0].toUpperCase()+lh.slice(1);fi(cF,"on"+dF)}fi($D,"onAnimationEnd");fi(xD,"onAnimationIteration");fi(wD,"onAnimationStart");fi("dblclick","onDoubleClick");fi("focusin","onFocus");fi("focusout","onBlur");fi(DD,"onTransitionEnd");ds("onMouseEnter",["mouseout","mouseover"]);ds("onMouseLeave",["mouseout","mouseover"]);ds("onPointerEnter",["pointerout","pointerover"]);ds("onPointerLeave",["pointerout","pointerover"]);ca("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));ca("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));ca("onBeforeInput",["compositionend","keypress","textInput","paste"]);ca("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));ca("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));ca("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var uo="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(" "),fF=new Set("cancel close invalid load scroll toggle".split(" ").concat(uo));function _x(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,cM(r,t,void 0,e),e.currentTarget=null}function ED(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var s=r.length-1;0<=s;s--){var o=r[s],l=o.instance,u=o.currentTarget;if(o=o.listener,l!==a&&i.isPropagationStopped())break e;_x(i,o,u),a=l}else for(s=0;s<r.length;s++){if(o=r[s],l=o.instance,u=o.currentTarget,o=o.listener,l!==a&&i.isPropagationStopped())break e;_x(i,o,u),a=l}}}if(vc)throw e=Np,vc=!1,Np=null,e}function ke(e,t){var n=t[Gp];n===void 0&&(n=t[Gp]=new Set);var r=e+"__bubble";n.has(r)||(SD(t,e,2,!1),n.add(r))}function uh(e,t,n){var r=0;t&&(r|=4),SD(n,e,r,t)}var tu="_reactListening"+Math.random().toString(36).slice(2);function Zo(e){if(!e[tu]){e[tu]=!0,Fw.forEach(function(n){n!=="selectionchange"&&(fF.has(n)||uh(n,!1,e),uh(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[tu]||(t[tu]=!0,uh("selectionchange",!1,t))}}function SD(e,t,n,r){switch(uD(t)){case 1:var i=SM;break;case 4:i=CM;break;default:i=y3}n=i.bind(null,t,n,e),i=void 0,!Lp||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function ch(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var o=r.stateNode.containerInfo;if(o===i||o.nodeType===8&&o.parentNode===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&(l=s.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;s=s.return}for(;o!==null;){if(s=Ni(o),s===null)return;if(l=s.tag,l===5||l===6){r=a=s;continue e}o=o.parentNode}}r=r.return}Gw(function(){var u=a,c=m3(n),d=[];e:{var f=_D.get(e);if(f!==void 0){var h=x3,p=e;switch(e){case"keypress":if(Gu(n)===0)break e;case"keydown":case"keyup":h=VM;break;case"focusin":p="focus",h=rh;break;case"focusout":p="blur",h=rh;break;case"beforeblur":case"afterblur":h=rh;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=fx;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=TM;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=HM;break;case $D:case xD:case wD:h=FM;break;case DD:h=YM;break;case"scroll":h=kM;break;case"wheel":h=GM;break;case"copy":case"cut":case"paste":h=OM;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=px}var g=(t&4)!==0,b=!g&&e==="scroll",v=g?f!==null?f+"Capture":null:f;g=[];for(var m=u,$;m!==null;){$=m;var w=$.stateNode;if($.tag===5&&w!==null&&($=w,v!==null&&(w=Uo(m,v),w!=null&&g.push(Xo(m,w,$)))),b)break;m=m.return}0<g.length&&(f=new h(f,p,null,n,c),d.push({event:f,listeners:g}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",f&&n!==Bp&&(p=n.relatedTarget||n.fromElement)&&(Ni(p)||p[$r]))break e;if((h||f)&&(f=c.window===c?c:(f=c.ownerDocument)?f.defaultView||f.parentWindow:window,h?(p=n.relatedTarget||n.toElement,h=u,p=p?Ni(p):null,p!==null&&(b=da(p),p!==b||p.tag!==5&&p.tag!==6)&&(p=null)):(h=null,p=u),h!==p)){if(g=fx,w="onMouseLeave",v="onMouseEnter",m="mouse",(e==="pointerout"||e==="pointerover")&&(g=px,w="onPointerLeave",v="onPointerEnter",m="pointer"),b=h==null?f:Na(h),$=p==null?f:Na(p),f=new g(w,m+"leave",h,n,c),f.target=b,f.relatedTarget=$,w=null,Ni(c)===u&&(g=new g(v,m+"enter",p,n,c),g.target=$,g.relatedTarget=b,w=g),b=w,h&&p)t:{for(g=h,v=p,m=0,$=g;$;$=$a($))m++;for($=0,w=v;w;w=$a(w))$++;for(;0<m-$;)g=$a(g),m--;for(;0<$-m;)v=$a(v),$--;for(;m--;){if(g===v||v!==null&&g===v.alternate)break t;g=$a(g),v=$a(v)}g=null}else g=null;h!==null&&Ex(d,f,h,g,!1),p!==null&&b!==null&&Ex(d,b,p,g,!0)}}e:{if(f=u?Na(u):window,h=f.nodeName&&f.nodeName.toLowerCase(),h==="select"||h==="input"&&f.type==="file")var D=nF;else if(vx(f))if(mD)D=sF;else{D=iF;var S=rF}else(h=f.nodeName)&&h.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(D=aF);if(D&&(D=D(e,u))){pD(d,D,n,c);break e}S&&S(e,f,u),e==="focusout"&&(S=f._wrapperState)&&S.controlled&&f.type==="number"&&Rp(f,"number",f.value)}switch(S=u?Na(u):window,e){case"focusin":(vx(S)||S.contentEditable==="true")&&(Ia=S,Wp=u,Co=null);break;case"focusout":Co=Wp=Ia=null;break;case"mousedown":Up=!0;break;case"contextmenu":case"mouseup":case"dragend":Up=!1,wx(d,n,c);break;case"selectionchange":if(uF)break;case"keydown":case"keyup":wx(d,n,c)}var k;if(D3)e:{switch(e){case"compositionstart":var x="onCompositionStart";break e;case"compositionend":x="onCompositionEnd";break e;case"compositionupdate":x="onCompositionUpdate";break e}x=void 0}else Ba?fD(e,n)&&(x="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(x="onCompositionStart");x&&(dD&&n.locale!=="ko"&&(Ba||x!=="onCompositionStart"?x==="onCompositionEnd"&&Ba&&(k=cD()):(zr=c,$3="value"in zr?zr.value:zr.textContent,Ba=!0)),S=wc(u,x),0<S.length&&(x=new hx(x,e,null,n,c),d.push({event:x,listeners:S}),k?x.data=k:(k=hD(n),k!==null&&(x.data=k)))),(k=XM?QM(e,n):JM(e,n))&&(u=wc(u,"onBeforeInput"),0<u.length&&(c=new hx("onBeforeInput","beforeinput",null,n,c),d.push({event:c,listeners:u}),c.data=k))}ED(d,t)})}function Xo(e,t,n){return{instance:e,listener:t,currentTarget:n}}function wc(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,a=i.stateNode;i.tag===5&&a!==null&&(i=a,a=Uo(e,n),a!=null&&r.unshift(Xo(e,a,i)),a=Uo(e,t),a!=null&&r.push(Xo(e,a,i))),e=e.return}return r}function $a(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Ex(e,t,n,r,i){for(var a=t._reactName,s=[];n!==null&&n!==r;){var o=n,l=o.alternate,u=o.stateNode;if(l!==null&&l===r)break;o.tag===5&&u!==null&&(o=u,i?(l=Uo(n,a),l!=null&&s.unshift(Xo(n,l,o))):i||(l=Uo(n,a),l!=null&&s.push(Xo(n,l,o)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var hF=/\r\n?/g,pF=/\u0000|\uFFFD/g;function Sx(e){return(typeof e=="string"?e:""+e).replace(hF,`
-`).replace(pF,"")}function nu(e,t,n){if(t=Sx(t),Sx(e)!==t&&n)throw Error(L(425))}function Dc(){}var Hp=null,Kp=null;function Yp(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var qp=typeof setTimeout=="function"?setTimeout:void 0,mF=typeof clearTimeout=="function"?clearTimeout:void 0,Cx=typeof Promise=="function"?Promise:void 0,gF=typeof queueMicrotask=="function"?queueMicrotask:typeof Cx<"u"?function(e){return Cx.resolve(null).then(e).catch(vF)}:qp;function vF(e){setTimeout(function(){throw e})}function dh(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),Yo(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Yo(t)}function Qr(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function kx(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Cs=Math.random().toString(36).slice(2),Kn="__reactFiber$"+Cs,Qo="__reactProps$"+Cs,$r="__reactContainer$"+Cs,Gp="__reactEvents$"+Cs,bF="__reactListeners$"+Cs,yF="__reactHandles$"+Cs;function Ni(e){var t=e[Kn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[$r]||n[Kn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=kx(e);e!==null;){if(n=e[Kn])return n;e=kx(e)}return t}e=n,n=e.parentNode}return null}function Rl(e){return e=e[Kn]||e[$r],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Na(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(L(33))}function rf(e){return e[Qo]||null}var Zp=[],ja=-1;function hi(e){return{current:e}}function Pe(e){0>ja||(e.current=Zp[ja],Zp[ja]=null,ja--)}function Ee(e,t){ja++,Zp[ja]=e.current,e.current=t}var si={},kt=hi(si),Yt=hi(!1),Xi=si;function fs(e,t){var n=e.type.contextTypes;if(!n)return si;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function qt(e){return e=e.childContextTypes,e!=null}function _c(){Pe(Yt),Pe(kt)}function Px(e,t,n){if(kt.current!==si)throw Error(L(168));Ee(kt,t),Ee(Yt,n)}function CD(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(L(108,rM(e)||"Unknown",i));return Ne({},n,r)}function Ec(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||si,Xi=kt.current,Ee(kt,e),Ee(Yt,Yt.current),!0}function Tx(e,t,n){var r=e.stateNode;if(!r)throw Error(L(169));n?(e=CD(e,t,Xi),r.__reactInternalMemoizedMergedChildContext=e,Pe(Yt),Pe(kt),Ee(kt,e)):Pe(Yt),Ee(Yt,n)}var lr=null,af=!1,fh=!1;function kD(e){lr===null?lr=[e]:lr.push(e)}function $F(e){af=!0,kD(e)}function pi(){if(!fh&&lr!==null){fh=!0;var e=0,t=ge;try{var n=lr;for(ge=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}lr=null,af=!1}catch(i){throw lr!==null&&(lr=lr.slice(e+1)),Jw(g3,pi),i}finally{ge=t,fh=!1}}return null}var za=[],Va=0,Sc=null,Cc=0,gn=[],vn=0,Qi=null,dr=1,fr="";function Ci(e,t){za[Va++]=Cc,za[Va++]=Sc,Sc=e,Cc=t}function PD(e,t,n){gn[vn++]=dr,gn[vn++]=fr,gn[vn++]=Qi,Qi=e;var r=dr;e=fr;var i=32-On(r)-1;r&=~(1<<i),n+=1;var a=32-On(t)+i;if(30<a){var s=i-i%5;a=(r&(1<<s)-1).toString(32),r>>=s,i-=s,dr=1<<32-On(t)+i|n<<i|r,fr=a+e}else dr=1<<a|n<<i|r,fr=e}function E3(e){e.return!==null&&(Ci(e,1),PD(e,1,0))}function S3(e){for(;e===Sc;)Sc=za[--Va],za[Va]=null,Cc=za[--Va],za[Va]=null;for(;e===Qi;)Qi=gn[--vn],gn[vn]=null,fr=gn[--vn],gn[vn]=null,dr=gn[--vn],gn[vn]=null}var sn=null,rn=null,Ae=!1,Mn=null;function TD(e,t){var n=$n(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Rx(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,sn=e,rn=Qr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,sn=e,rn=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Qi!==null?{id:dr,overflow:fr}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=$n(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,sn=e,rn=null,!0):!1;default:return!1}}function Xp(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Qp(e){if(Ae){var t=rn;if(t){var n=t;if(!Rx(e,t)){if(Xp(e))throw Error(L(418));t=Qr(n.nextSibling);var r=sn;t&&Rx(e,t)?TD(r,n):(e.flags=e.flags&-4097|2,Ae=!1,sn=e)}}else{if(Xp(e))throw Error(L(418));e.flags=e.flags&-4097|2,Ae=!1,sn=e}}}function Mx(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;sn=e}function ru(e){if(e!==sn)return!1;if(!Ae)return Mx(e),Ae=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Yp(e.type,e.memoizedProps)),t&&(t=rn)){if(Xp(e))throw RD(),Error(L(418));for(;t;)TD(e,t),t=Qr(t.nextSibling)}if(Mx(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(L(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){rn=Qr(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}rn=null}}else rn=sn?Qr(e.stateNode.nextSibling):null;return!0}function RD(){for(var e=rn;e;)e=Qr(e.nextSibling)}function hs(){rn=sn=null,Ae=!1}function C3(e){Mn===null?Mn=[e]:Mn.push(e)}var xF=Dr.ReactCurrentBatchConfig;function js(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(L(309));var r=n.stateNode}if(!r)throw Error(L(147,e));var i=r,a=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===a?t.ref:(t=function(s){var o=i.refs;s===null?delete o[a]:o[a]=s},t._stringRef=a,t)}if(typeof e!="string")throw Error(L(284));if(!n._owner)throw Error(L(290,e))}return e}function iu(e,t){throw e=Object.prototype.toString.call(t),Error(L(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Fx(e){var t=e._init;return t(e._payload)}function MD(e){function t(v,m){if(e){var $=v.deletions;$===null?(v.deletions=[m],v.flags|=16):$.push(m)}}function n(v,m){if(!e)return null;for(;m!==null;)t(v,m),m=m.sibling;return null}function r(v,m){for(v=new Map;m!==null;)m.key!==null?v.set(m.key,m):v.set(m.index,m),m=m.sibling;return v}function i(v,m){return v=ni(v,m),v.index=0,v.sibling=null,v}function a(v,m,$){return v.index=$,e?($=v.alternate,$!==null?($=$.index,$<m?(v.flags|=2,m):$):(v.flags|=2,m)):(v.flags|=1048576,m)}function s(v){return e&&v.alternate===null&&(v.flags|=2),v}function o(v,m,$,w){return m===null||m.tag!==6?(m=yh($,v.mode,w),m.return=v,m):(m=i(m,$),m.return=v,m)}function l(v,m,$,w){var D=$.type;return D===Oa?c(v,m,$.props.children,w,$.key):m!==null&&(m.elementType===D||typeof D=="object"&&D!==null&&D.$$typeof===Ar&&Fx(D)===m.type)?(w=i(m,$.props),w.ref=js(v,m,$),w.return=v,w):(w=nc($.type,$.key,$.props,null,v.mode,w),w.ref=js(v,m,$),w.return=v,w)}function u(v,m,$,w){return m===null||m.tag!==4||m.stateNode.containerInfo!==$.containerInfo||m.stateNode.implementation!==$.implementation?(m=$h($,v.mode,w),m.return=v,m):(m=i(m,$.children||[]),m.return=v,m)}function c(v,m,$,w,D){return m===null||m.tag!==7?(m=Yi($,v.mode,w,D),m.return=v,m):(m=i(m,$),m.return=v,m)}function d(v,m,$){if(typeof m=="string"&&m!==""||typeof m=="number")return m=yh(""+m,v.mode,$),m.return=v,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case Yl:return $=nc(m.type,m.key,m.props,null,v.mode,$),$.ref=js(v,null,m),$.return=v,$;case Aa:return m=$h(m,v.mode,$),m.return=v,m;case Ar:var w=m._init;return d(v,w(m._payload),$)}if(oo(m)||Os(m))return m=Yi(m,v.mode,$,null),m.return=v,m;iu(v,m)}return null}function f(v,m,$,w){var D=m!==null?m.key:null;if(typeof $=="string"&&$!==""||typeof $=="number")return D!==null?null:o(v,m,""+$,w);if(typeof $=="object"&&$!==null){switch($.$$typeof){case Yl:return $.key===D?l(v,m,$,w):null;case Aa:return $.key===D?u(v,m,$,w):null;case Ar:return D=$._init,f(v,m,D($._payload),w)}if(oo($)||Os($))return D!==null?null:c(v,m,$,w,null);iu(v,$)}return null}function h(v,m,$,w,D){if(typeof w=="string"&&w!==""||typeof w=="number")return v=v.get($)||null,o(m,v,""+w,D);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Yl:return v=v.get(w.key===null?$:w.key)||null,l(m,v,w,D);case Aa:return v=v.get(w.key===null?$:w.key)||null,u(m,v,w,D);case Ar:var S=w._init;return h(v,m,$,S(w._payload),D)}if(oo(w)||Os(w))return v=v.get($)||null,c(m,v,w,D,null);iu(m,w)}return null}function p(v,m,$,w){for(var D=null,S=null,k=m,x=m=0,T=null;k!==null&&x<$.length;x++){k.index>x?(T=k,k=null):T=k.sibling;var P=f(v,k,$[x],w);if(P===null){k===null&&(k=T);break}e&&k&&P.alternate===null&&t(v,k),m=a(P,m,x),S===null?D=P:S.sibling=P,S=P,k=T}if(x===$.length)return n(v,k),Ae&&Ci(v,x),D;if(k===null){for(;x<$.length;x++)k=d(v,$[x],w),k!==null&&(m=a(k,m,x),S===null?D=k:S.sibling=k,S=k);return Ae&&Ci(v,x),D}for(k=r(v,k);x<$.length;x++)T=h(k,v,x,$[x],w),T!==null&&(e&&T.alternate!==null&&k.delete(T.key===null?x:T.key),m=a(T,m,x),S===null?D=T:S.sibling=T,S=T);return e&&k.forEach(function(E){return t(v,E)}),Ae&&Ci(v,x),D}function g(v,m,$,w){var D=Os($);if(typeof D!="function")throw Error(L(150));if($=D.call($),$==null)throw Error(L(151));for(var S=D=null,k=m,x=m=0,T=null,P=$.next();k!==null&&!P.done;x++,P=$.next()){k.index>x?(T=k,k=null):T=k.sibling;var E=f(v,k,P.value,w);if(E===null){k===null&&(k=T);break}e&&k&&E.alternate===null&&t(v,k),m=a(E,m,x),S===null?D=E:S.sibling=E,S=E,k=T}if(P.done)return n(v,k),Ae&&Ci(v,x),D;if(k===null){for(;!P.done;x++,P=$.next())P=d(v,P.value,w),P!==null&&(m=a(P,m,x),S===null?D=P:S.sibling=P,S=P);return Ae&&Ci(v,x),D}for(k=r(v,k);!P.done;x++,P=$.next())P=h(k,v,x,P.value,w),P!==null&&(e&&P.alternate!==null&&k.delete(P.key===null?x:P.key),m=a(P,m,x),S===null?D=P:S.sibling=P,S=P);return e&&k.forEach(function(F){return t(v,F)}),Ae&&Ci(v,x),D}function b(v,m,$,w){if(typeof $=="object"&&$!==null&&$.type===Oa&&$.key===null&&($=$.props.children),typeof $=="object"&&$!==null){switch($.$$typeof){case Yl:e:{for(var D=$.key,S=m;S!==null;){if(S.key===D){if(D=$.type,D===Oa){if(S.tag===7){n(v,S.sibling),m=i(S,$.props.children),m.return=v,v=m;break e}}else if(S.elementType===D||typeof D=="object"&&D!==null&&D.$$typeof===Ar&&Fx(D)===S.type){n(v,S.sibling),m=i(S,$.props),m.ref=js(v,S,$),m.return=v,v=m;break e}n(v,S);break}else t(v,S);S=S.sibling}$.type===Oa?(m=Yi($.props.children,v.mode,w,$.key),m.return=v,v=m):(w=nc($.type,$.key,$.props,null,v.mode,w),w.ref=js(v,m,$),w.return=v,v=w)}return s(v);case Aa:e:{for(S=$.key;m!==null;){if(m.key===S)if(m.tag===4&&m.stateNode.containerInfo===$.containerInfo&&m.stateNode.implementation===$.implementation){n(v,m.sibling),m=i(m,$.children||[]),m.return=v,v=m;break e}else{n(v,m);break}else t(v,m);m=m.sibling}m=$h($,v.mode,w),m.return=v,v=m}return s(v);case Ar:return S=$._init,b(v,m,S($._payload),w)}if(oo($))return p(v,m,$,w);if(Os($))return g(v,m,$,w);iu(v,$)}return typeof $=="string"&&$!==""||typeof $=="number"?($=""+$,m!==null&&m.tag===6?(n(v,m.sibling),m=i(m,$),m.return=v,v=m):(n(v,m),m=yh($,v.mode,w),m.return=v,v=m),s(v)):n(v,m)}return b}var ps=MD(!0),FD=MD(!1),kc=hi(null),Pc=null,Wa=null,k3=null;function P3(){k3=Wa=Pc=null}function T3(e){var t=kc.current;Pe(kc),e._currentValue=t}function Jp(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ja(e,t){Pc=e,k3=Wa=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Kt=!0),e.firstContext=null)}function _n(e){var t=e._currentValue;if(k3!==e)if(e={context:e,memoizedValue:t,next:null},Wa===null){if(Pc===null)throw Error(L(308));Wa=e,Pc.dependencies={lanes:0,firstContext:e}}else Wa=Wa.next=e;return t}var ji=null;function R3(e){ji===null?ji=[e]:ji.push(e)}function AD(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,R3(t)):(n.next=i.next,i.next=n),t.interleaved=n,xr(e,r)}function xr(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Or=!1;function M3(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function OD(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function br(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Jr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ue&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,xr(e,n)}return i=r.interleaved,i===null?(t.next=t,R3(r)):(t.next=i.next,i.next=t),r.interleaved=t,xr(e,n)}function Zu(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,v3(e,n)}}function Ax(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};a===null?i=a=s:a=a.next=s,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Tc(e,t,n,r){var i=e.updateQueue;Or=!1;var a=i.firstBaseUpdate,s=i.lastBaseUpdate,o=i.shared.pending;if(o!==null){i.shared.pending=null;var l=o,u=l.next;l.next=null,s===null?a=u:s.next=u,s=l;var c=e.alternate;c!==null&&(c=c.updateQueue,o=c.lastBaseUpdate,o!==s&&(o===null?c.firstBaseUpdate=u:o.next=u,c.lastBaseUpdate=l))}if(a!==null){var d=i.baseState;s=0,c=u=l=null,o=a;do{var f=o.lane,h=o.eventTime;if((r&f)===f){c!==null&&(c=c.next={eventTime:h,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var p=e,g=o;switch(f=t,h=n,g.tag){case 1:if(p=g.payload,typeof p=="function"){d=p.call(h,d,f);break e}d=p;break e;case 3:p.flags=p.flags&-65537|128;case 0:if(p=g.payload,f=typeof p=="function"?p.call(h,d,f):p,f==null)break e;d=Ne({},d,f);break e;case 2:Or=!0}}o.callback!==null&&o.lane!==0&&(e.flags|=64,f=i.effects,f===null?i.effects=[o]:f.push(o))}else h={eventTime:h,lane:f,tag:o.tag,payload:o.payload,callback:o.callback,next:null},c===null?(u=c=h,l=d):c=c.next=h,s|=f;if(o=o.next,o===null){if(o=i.shared.pending,o===null)break;f=o,o=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(!0);if(c===null&&(l=d),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do s|=i.lane,i=i.next;while(i!==t)}else a===null&&(i.shared.lanes=0);ea|=s,e.lanes=s,e.memoizedState=d}}function Ox(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(L(191,i));i.call(r)}}}var Ml={},Gn=hi(Ml),Jo=hi(Ml),el=hi(Ml);function zi(e){if(e===Ml)throw Error(L(174));return e}function F3(e,t){switch(Ee(el,t),Ee(Jo,e),Ee(Gn,Ml),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Fp(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Fp(t,e)}Pe(Gn),Ee(Gn,t)}function ms(){Pe(Gn),Pe(Jo),Pe(el)}function BD(e){zi(el.current);var t=zi(Gn.current),n=Fp(t,e.type);t!==n&&(Ee(Jo,e),Ee(Gn,n))}function A3(e){Jo.current===e&&(Pe(Gn),Pe(Jo))}var Ie=hi(0);function Rc(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var hh=[];function O3(){for(var e=0;e<hh.length;e++)hh[e]._workInProgressVersionPrimary=null;hh.length=0}var Xu=Dr.ReactCurrentDispatcher,ph=Dr.ReactCurrentBatchConfig,Ji=0,Le=null,nt=null,ct=null,Mc=!1,ko=!1,tl=0,wF=0;function $t(){throw Error(L(321))}function B3(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ln(e[n],t[n]))return!1;return!0}function I3(e,t,n,r,i,a){if(Ji=a,Le=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Xu.current=e===null||e.memoizedState===null?SF:CF,e=n(r,i),ko){a=0;do{if(ko=!1,tl=0,25<=a)throw Error(L(301));a+=1,ct=nt=null,t.updateQueue=null,Xu.current=kF,e=n(r,i)}while(ko)}if(Xu.current=Fc,t=nt!==null&&nt.next!==null,Ji=0,ct=nt=Le=null,Mc=!1,t)throw Error(L(300));return e}function L3(){var e=tl!==0;return tl=0,e}function Un(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ct===null?Le.memoizedState=ct=e:ct=ct.next=e,ct}function En(){if(nt===null){var e=Le.alternate;e=e!==null?e.memoizedState:null}else e=nt.next;var t=ct===null?Le.memoizedState:ct.next;if(t!==null)ct=t,nt=e;else{if(e===null)throw Error(L(310));nt=e,e={memoizedState:nt.memoizedState,baseState:nt.baseState,baseQueue:nt.baseQueue,queue:nt.queue,next:null},ct===null?Le.memoizedState=ct=e:ct=ct.next=e}return ct}function nl(e,t){return typeof t=="function"?t(e):t}function mh(e){var t=En(),n=t.queue;if(n===null)throw Error(L(311));n.lastRenderedReducer=e;var r=nt,i=r.baseQueue,a=n.pending;if(a!==null){if(i!==null){var s=i.next;i.next=a.next,a.next=s}r.baseQueue=i=a,n.pending=null}if(i!==null){a=i.next,r=r.baseState;var o=s=null,l=null,u=a;do{var c=u.lane;if((Ji&c)===c)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var d={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(o=l=d,s=r):l=l.next=d,Le.lanes|=c,ea|=c}u=u.next}while(u!==null&&u!==a);l===null?s=r:l.next=o,Ln(r,t.memoizedState)||(Kt=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do a=i.lane,Le.lanes|=a,ea|=a,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function gh(e){var t=En(),n=t.queue;if(n===null)throw Error(L(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(i!==null){n.pending=null;var s=i=i.next;do a=e(a,s.action),s=s.next;while(s!==i);Ln(a,t.memoizedState)||(Kt=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function ID(){}function LD(e,t){var n=Le,r=En(),i=t(),a=!Ln(r.memoizedState,i);if(a&&(r.memoizedState=i,Kt=!0),r=r.queue,N3(zD.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||ct!==null&&ct.memoizedState.tag&1){if(n.flags|=2048,rl(9,jD.bind(null,n,r,i,t),void 0,null),ft===null)throw Error(L(349));Ji&30||ND(n,t,i)}return i}function ND(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Le.updateQueue,t===null?(t={lastEffect:null,stores:null},Le.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function jD(e,t,n,r){t.value=n,t.getSnapshot=r,VD(t)&&WD(e)}function zD(e,t,n){return n(function(){VD(t)&&WD(e)})}function VD(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ln(e,n)}catch{return!0}}function WD(e){var t=xr(e,1);t!==null&&Bn(t,e,1,-1)}function Bx(e){var t=Un();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:nl,lastRenderedState:e},t.queue=e,e=e.dispatch=EF.bind(null,Le,e),[t.memoizedState,e]}function rl(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Le.updateQueue,t===null?(t={lastEffect:null,stores:null},Le.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function UD(){return En().memoizedState}function Qu(e,t,n,r){var i=Un();Le.flags|=e,i.memoizedState=rl(1|t,n,void 0,r===void 0?null:r)}function sf(e,t,n,r){var i=En();r=r===void 0?null:r;var a=void 0;if(nt!==null){var s=nt.memoizedState;if(a=s.destroy,r!==null&&B3(r,s.deps)){i.memoizedState=rl(t,n,a,r);return}}Le.flags|=e,i.memoizedState=rl(1|t,n,a,r)}function Ix(e,t){return Qu(8390656,8,e,t)}function N3(e,t){return sf(2048,8,e,t)}function HD(e,t){return sf(4,2,e,t)}function KD(e,t){return sf(4,4,e,t)}function YD(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function qD(e,t,n){return n=n!=null?n.concat([e]):null,sf(4,4,YD.bind(null,t,e),n)}function j3(){}function GD(e,t){var n=En();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&B3(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ZD(e,t){var n=En();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&B3(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function XD(e,t,n){return Ji&21?(Ln(n,t)||(n=nD(),Le.lanes|=n,ea|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Kt=!0),e.memoizedState=n)}function DF(e,t){var n=ge;ge=n!==0&&4>n?n:4,e(!0);var r=ph.transition;ph.transition={};try{e(!1),t()}finally{ge=n,ph.transition=r}}function QD(){return En().memoizedState}function _F(e,t,n){var r=ti(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},JD(e))e_(t,n);else if(n=AD(e,t,n,r),n!==null){var i=Mt();Bn(n,e,r,i),t_(n,t,r)}}function EF(e,t,n){var r=ti(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(JD(e))e_(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var s=t.lastRenderedState,o=a(s,n);if(i.hasEagerState=!0,i.eagerState=o,Ln(o,s)){var l=t.interleaved;l===null?(i.next=i,R3(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=AD(e,t,i,r),n!==null&&(i=Mt(),Bn(n,e,r,i),t_(n,t,r))}}function JD(e){var t=e.alternate;return e===Le||t!==null&&t===Le}function e_(e,t){ko=Mc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function t_(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,v3(e,n)}}var Fc={readContext:_n,useCallback:$t,useContext:$t,useEffect:$t,useImperativeHandle:$t,useInsertionEffect:$t,useLayoutEffect:$t,useMemo:$t,useReducer:$t,useRef:$t,useState:$t,useDebugValue:$t,useDeferredValue:$t,useTransition:$t,useMutableSource:$t,useSyncExternalStore:$t,useId:$t,unstable_isNewReconciler:!1},SF={readContext:_n,useCallback:function(e,t){return Un().memoizedState=[e,t===void 0?null:t],e},useContext:_n,useEffect:Ix,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Qu(4194308,4,YD.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Qu(4194308,4,e,t)},useInsertionEffect:function(e,t){return Qu(4,2,e,t)},useMemo:function(e,t){var n=Un();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Un();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=_F.bind(null,Le,e),[r.memoizedState,e]},useRef:function(e){var t=Un();return e={current:e},t.memoizedState=e},useState:Bx,useDebugValue:j3,useDeferredValue:function(e){return Un().memoizedState=e},useTransition:function(){var e=Bx(!1),t=e[0];return e=DF.bind(null,e[1]),Un().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Le,i=Un();if(Ae){if(n===void 0)throw Error(L(407));n=n()}else{if(n=t(),ft===null)throw Error(L(349));Ji&30||ND(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,Ix(zD.bind(null,r,a,e),[e]),r.flags|=2048,rl(9,jD.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=Un(),t=ft.identifierPrefix;if(Ae){var n=fr,r=dr;n=(r&~(1<<32-On(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=tl++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=wF++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},CF={readContext:_n,useCallback:GD,useContext:_n,useEffect:N3,useImperativeHandle:qD,useInsertionEffect:HD,useLayoutEffect:KD,useMemo:ZD,useReducer:mh,useRef:UD,useState:function(){return mh(nl)},useDebugValue:j3,useDeferredValue:function(e){var t=En();return XD(t,nt.memoizedState,e)},useTransition:function(){var e=mh(nl)[0],t=En().memoizedState;return[e,t]},useMutableSource:ID,useSyncExternalStore:LD,useId:QD,unstable_isNewReconciler:!1},kF={readContext:_n,useCallback:GD,useContext:_n,useEffect:N3,useImperativeHandle:qD,useInsertionEffect:HD,useLayoutEffect:KD,useMemo:ZD,useReducer:gh,useRef:UD,useState:function(){return gh(nl)},useDebugValue:j3,useDeferredValue:function(e){var t=En();return nt===null?t.memoizedState=e:XD(t,nt.memoizedState,e)},useTransition:function(){var e=gh(nl)[0],t=En().memoizedState;return[e,t]},useMutableSource:ID,useSyncExternalStore:LD,useId:QD,unstable_isNewReconciler:!1};function Pn(e,t){if(e&&e.defaultProps){t=Ne({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function em(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Ne({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var of={isMounted:function(e){return(e=e._reactInternals)?da(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Mt(),i=ti(e),a=br(r,i);a.payload=t,n!=null&&(a.callback=n),t=Jr(e,a,i),t!==null&&(Bn(t,e,i,r),Zu(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Mt(),i=ti(e),a=br(r,i);a.tag=1,a.payload=t,n!=null&&(a.callback=n),t=Jr(e,a,i),t!==null&&(Bn(t,e,i,r),Zu(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Mt(),r=ti(e),i=br(n,r);i.tag=2,t!=null&&(i.callback=t),t=Jr(e,i,r),t!==null&&(Bn(t,e,r,n),Zu(t,e,r))}};function Lx(e,t,n,r,i,a,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,a,s):t.prototype&&t.prototype.isPureReactComponent?!Go(n,r)||!Go(i,a):!0}function n_(e,t,n){var r=!1,i=si,a=t.contextType;return typeof a=="object"&&a!==null?a=_n(a):(i=qt(t)?Xi:kt.current,r=t.contextTypes,a=(r=r!=null)?fs(e,i):si),t=new t(n,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=of,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function Nx(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&of.enqueueReplaceState(t,t.state,null)}function tm(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},M3(e);var a=t.contextType;typeof a=="object"&&a!==null?i.context=_n(a):(a=qt(t)?Xi:kt.current,i.context=fs(e,a)),i.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a=="function"&&(em(e,t,a,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&of.enqueueReplaceState(i,i.state,null),Tc(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function gs(e,t){try{var n="",r=t;do n+=nM(r),r=r.return;while(r);var i=n}catch(a){i=`
+`+i[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=s&&0<=o);break}}}finally{Xf=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?so(e):""}function rM(e){switch(e.tag){case 5:return so(e.type);case 16:return so("Lazy");case 13:return so("Suspense");case 19:return so("SuspenseList");case 0:case 2:case 15:return e=Qf(e.type,!1),e;case 11:return e=Qf(e.type.render,!1),e;case 1:return e=Qf(e.type,!0),e;default:return""}}function kp(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Oa:return"Fragment";case Aa:return"Portal";case Ep:return"Profiler";case f3:return"StrictMode";case Sp:return"Suspense";case Cp:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ow:return(e.displayName||"Context")+".Consumer";case Aw:return(e._context.displayName||"Context")+".Provider";case h3:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case p3:return t=e.displayName||null,t!==null?t:kp(e.type)||"Memo";case Ar:t=e._payload,e=e._init;try{return kp(e(t))}catch{}}return null}function iM(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return kp(t);case 8:return t===f3?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ai(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Iw(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function aM(e){var t=Iw(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,a.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ql(e){e._valueTracker||(e._valueTracker=aM(e))}function Lw(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Iw(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function mc(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Pp(e,t){var n=t.checked;return Ne({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function nx(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ai(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Nw(e,t){t=t.checked,t!=null&&d3(e,"checked",t,!1)}function Tp(e,t){Nw(e,t);var n=ai(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Rp(e,t.type,n):t.hasOwnProperty("defaultValue")&&Rp(e,t.type,ai(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function rx(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Rp(e,t,n){(t!=="number"||mc(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var oo=Array.isArray;function Ga(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ai(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Mp(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(L(91));return Ne({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ix(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(L(92));if(oo(n)){if(1<n.length)throw Error(L(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:ai(n)}}function jw(e,t){var n=ai(t.value),r=ai(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function ax(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function zw(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Fp(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?zw(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Gl,Vw=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Gl=Gl||document.createElement("div"),Gl.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Gl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Wo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Do={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},sM=["Webkit","ms","Moz","O"];Object.keys(Do).forEach(function(e){sM.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Do[t]=Do[e]})});function Ww(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Do.hasOwnProperty(e)&&Do[e]?(""+t).trim():t+"px"}function Uw(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Ww(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var oM=Ne({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ap(e,t){if(t){if(oM[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(L(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(L(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(L(61))}if(t.style!=null&&typeof t.style!="object")throw Error(L(62))}}function Op(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Bp=null;function m3(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ip=null,Za=null,Xa=null;function sx(e){if(e=Rl(e)){if(typeof Ip!="function")throw Error(L(280));var t=e.stateNode;t&&(t=rf(t),Ip(e.stateNode,e.type,t))}}function Hw(e){Za?Xa?Xa.push(e):Xa=[e]:Za=e}function Kw(){if(Za){var e=Za,t=Xa;if(Xa=Za=null,sx(e),t)for(e=0;e<t.length;e++)sx(t[e])}}function Yw(e,t){return e(t)}function qw(){}var Jf=!1;function Gw(e,t,n){if(Jf)return e(t,n);Jf=!0;try{return Yw(e,t,n)}finally{Jf=!1,(Za!==null||Xa!==null)&&(qw(),Kw())}}function Uo(e,t){var n=e.stateNode;if(n===null)return null;var r=rf(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(L(231,t,typeof n));return n}var Lp=!1;if(yr)try{var Bs={};Object.defineProperty(Bs,"passive",{get:function(){Lp=!0}}),window.addEventListener("test",Bs,Bs),window.removeEventListener("test",Bs,Bs)}catch{Lp=!1}function lM(e,t,n,r,i,a,s,o,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var _o=!1,gc=null,vc=!1,Np=null,uM={onError:function(e){_o=!0,gc=e}};function cM(e,t,n,r,i,a,s,o,l){_o=!1,gc=null,lM.apply(uM,arguments)}function dM(e,t,n,r,i,a,s,o,l){if(cM.apply(this,arguments),_o){if(_o){var u=gc;_o=!1,gc=null}else throw Error(L(198));vc||(vc=!0,Np=u)}}function da(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Zw(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function ox(e){if(da(e)!==e)throw Error(L(188))}function fM(e){var t=e.alternate;if(!t){if(t=da(e),t===null)throw Error(L(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var a=i.alternate;if(a===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return ox(i),e;if(a===r)return ox(i),t;a=a.sibling}throw Error(L(188))}if(n.return!==r.return)n=i,r=a;else{for(var s=!1,o=i.child;o;){if(o===n){s=!0,n=i,r=a;break}if(o===r){s=!0,r=i,n=a;break}o=o.sibling}if(!s){for(o=a.child;o;){if(o===n){s=!0,n=a,r=i;break}if(o===r){s=!0,r=a,n=i;break}o=o.sibling}if(!s)throw Error(L(189))}}if(n.alternate!==r)throw Error(L(190))}if(n.tag!==3)throw Error(L(188));return n.stateNode.current===n?e:t}function Xw(e){return e=fM(e),e!==null?Qw(e):null}function Qw(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Qw(e);if(t!==null)return t;e=e.sibling}return null}var Jw=on.unstable_scheduleCallback,lx=on.unstable_cancelCallback,hM=on.unstable_shouldYield,pM=on.unstable_requestPaint,Ye=on.unstable_now,mM=on.unstable_getCurrentPriorityLevel,g3=on.unstable_ImmediatePriority,eD=on.unstable_UserBlockingPriority,bc=on.unstable_NormalPriority,gM=on.unstable_LowPriority,tD=on.unstable_IdlePriority,Jd=null,qn=null;function vM(e){if(qn&&typeof qn.onCommitFiberRoot=="function")try{qn.onCommitFiberRoot(Jd,e,void 0,(e.current.flags&128)===128)}catch{}}var On=Math.clz32?Math.clz32:$M,bM=Math.log,yM=Math.LN2;function $M(e){return e>>>=0,e===0?32:31-(bM(e)/yM|0)|0}var Zl=64,Xl=4194304;function lo(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function yc(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,s=n&268435455;if(s!==0){var o=s&~i;o!==0?r=lo(o):(a&=s,a!==0&&(r=lo(a)))}else s=n&~i,s!==0?r=lo(s):a!==0&&(r=lo(a));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,a=t&-t,i>=a||i===16&&(a&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-On(t),i=1<<n,r|=e[n],t&=~i;return r}function xM(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function wM(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes;0<a;){var s=31-On(a),o=1<<s,l=i[s];l===-1?(!(o&n)||o&r)&&(i[s]=xM(o,t)):l<=t&&(e.expiredLanes|=o),a&=~o}}function jp(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function nD(){var e=Zl;return Zl<<=1,!(Zl&4194240)&&(Zl=64),e}function eh(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Pl(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-On(t),e[t]=n}function DM(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-On(n),a=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~a}}function v3(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-On(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var ge=0;function rD(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var iD,b3,aD,sD,oD,zp=!1,Ql=[],Gr=null,Zr=null,Xr=null,Ho=new Map,Ko=new Map,Lr=[],_M="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function ux(e,t){switch(e){case"focusin":case"focusout":Gr=null;break;case"dragenter":case"dragleave":Zr=null;break;case"mouseover":case"mouseout":Xr=null;break;case"pointerover":case"pointerout":Ho.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ko.delete(t.pointerId)}}function Is(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=Rl(t),t!==null&&b3(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function EM(e,t,n,r,i){switch(t){case"focusin":return Gr=Is(Gr,e,t,n,r,i),!0;case"dragenter":return Zr=Is(Zr,e,t,n,r,i),!0;case"mouseover":return Xr=Is(Xr,e,t,n,r,i),!0;case"pointerover":var a=i.pointerId;return Ho.set(a,Is(Ho.get(a)||null,e,t,n,r,i)),!0;case"gotpointercapture":return a=i.pointerId,Ko.set(a,Is(Ko.get(a)||null,e,t,n,r,i)),!0}return!1}function lD(e){var t=Ni(e.target);if(t!==null){var n=da(t);if(n!==null){if(t=n.tag,t===13){if(t=Zw(n),t!==null){e.blockedOn=t,oD(e.priority,function(){aD(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Yu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Vp(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Bp=r,n.target.dispatchEvent(r),Bp=null}else return t=Rl(n),t!==null&&b3(t),e.blockedOn=n,!1;t.shift()}return!0}function cx(e,t,n){Yu(e)&&n.delete(t)}function SM(){zp=!1,Gr!==null&&Yu(Gr)&&(Gr=null),Zr!==null&&Yu(Zr)&&(Zr=null),Xr!==null&&Yu(Xr)&&(Xr=null),Ho.forEach(cx),Ko.forEach(cx)}function Ls(e,t){e.blockedOn===t&&(e.blockedOn=null,zp||(zp=!0,on.unstable_scheduleCallback(on.unstable_NormalPriority,SM)))}function Yo(e){function t(i){return Ls(i,e)}if(0<Ql.length){Ls(Ql[0],e);for(var n=1;n<Ql.length;n++){var r=Ql[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Gr!==null&&Ls(Gr,e),Zr!==null&&Ls(Zr,e),Xr!==null&&Ls(Xr,e),Ho.forEach(t),Ko.forEach(t),n=0;n<Lr.length;n++)r=Lr[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Lr.length&&(n=Lr[0],n.blockedOn===null);)lD(n),n.blockedOn===null&&Lr.shift()}var Qa=Dr.ReactCurrentBatchConfig,$c=!0;function CM(e,t,n,r){var i=ge,a=Qa.transition;Qa.transition=null;try{ge=1,y3(e,t,n,r)}finally{ge=i,Qa.transition=a}}function kM(e,t,n,r){var i=ge,a=Qa.transition;Qa.transition=null;try{ge=4,y3(e,t,n,r)}finally{ge=i,Qa.transition=a}}function y3(e,t,n,r){if($c){var i=Vp(e,t,n,r);if(i===null)ch(e,t,r,xc,n),ux(e,r);else if(EM(i,e,t,n,r))r.stopPropagation();else if(ux(e,r),t&4&&-1<_M.indexOf(e)){for(;i!==null;){var a=Rl(i);if(a!==null&&iD(a),a=Vp(e,t,n,r),a===null&&ch(e,t,r,xc,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else ch(e,t,r,null,n)}}var xc=null;function Vp(e,t,n,r){if(xc=null,e=m3(r),e=Ni(e),e!==null)if(t=da(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Zw(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return xc=e,null}function uD(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(mM()){case g3:return 1;case eD:return 4;case bc:case gM:return 16;case tD:return 536870912;default:return 16}default:return 16}}var zr=null,$3=null,qu=null;function cD(){if(qu)return qu;var e,t=$3,n=t.length,r,i="value"in zr?zr.value:zr.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===i[a-r];r++);return qu=i.slice(e,1<r?1-r:void 0)}function Gu(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Jl(){return!0}function dx(){return!1}function cn(e){function t(n,r,i,a,s){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=a,this.target=s,this.currentTarget=null;for(var o in e)e.hasOwnProperty(o)&&(n=e[o],this[o]=n?n(a):a[o]);return this.isDefaultPrevented=(a.defaultPrevented!=null?a.defaultPrevented:a.returnValue===!1)?Jl:dx,this.isPropagationStopped=dx,this}return Ne(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Jl)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Jl)},persist:function(){},isPersistent:Jl}),t}var Ss={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},x3=cn(Ss),Tl=Ne({},Ss,{view:0,detail:0}),PM=cn(Tl),th,nh,Ns,ef=Ne({},Tl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:w3,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Ns&&(Ns&&e.type==="mousemove"?(th=e.screenX-Ns.screenX,nh=e.screenY-Ns.screenY):nh=th=0,Ns=e),th)},movementY:function(e){return"movementY"in e?e.movementY:nh}}),fx=cn(ef),TM=Ne({},ef,{dataTransfer:0}),RM=cn(TM),MM=Ne({},Tl,{relatedTarget:0}),rh=cn(MM),FM=Ne({},Ss,{animationName:0,elapsedTime:0,pseudoElement:0}),AM=cn(FM),OM=Ne({},Ss,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),BM=cn(OM),IM=Ne({},Ss,{data:0}),hx=cn(IM),LM={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},NM={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"},jM={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function zM(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=jM[e])?!!t[e]:!1}function w3(){return zM}var VM=Ne({},Tl,{key:function(e){if(e.key){var t=LM[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Gu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?NM[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:w3,charCode:function(e){return e.type==="keypress"?Gu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Gu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),WM=cn(VM),UM=Ne({},ef,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),px=cn(UM),HM=Ne({},Tl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:w3}),KM=cn(HM),YM=Ne({},Ss,{propertyName:0,elapsedTime:0,pseudoElement:0}),qM=cn(YM),GM=Ne({},ef,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),ZM=cn(GM),XM=[9,13,27,32],D3=yr&&"CompositionEvent"in window,Eo=null;yr&&"documentMode"in document&&(Eo=document.documentMode);var QM=yr&&"TextEvent"in window&&!Eo,dD=yr&&(!D3||Eo&&8<Eo&&11>=Eo),mx=" ",gx=!1;function fD(e,t){switch(e){case"keyup":return XM.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function hD(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ba=!1;function JM(e,t){switch(e){case"compositionend":return hD(t);case"keypress":return t.which!==32?null:(gx=!0,mx);case"textInput":return e=t.data,e===mx&&gx?null:e;default:return null}}function eF(e,t){if(Ba)return e==="compositionend"||!D3&&fD(e,t)?(e=cD(),qu=$3=zr=null,Ba=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return dD&&t.locale!=="ko"?null:t.data;default:return null}}var tF={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 vx(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!tF[e.type]:t==="textarea"}function pD(e,t,n,r){Hw(r),t=wc(t,"onChange"),0<t.length&&(n=new x3("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var So=null,qo=null;function nF(e){ED(e,0)}function tf(e){var t=Na(e);if(Lw(t))return e}function rF(e,t){if(e==="change")return t}var mD=!1;if(yr){var ih;if(yr){var ah="oninput"in document;if(!ah){var bx=document.createElement("div");bx.setAttribute("oninput","return;"),ah=typeof bx.oninput=="function"}ih=ah}else ih=!1;mD=ih&&(!document.documentMode||9<document.documentMode)}function yx(){So&&(So.detachEvent("onpropertychange",gD),qo=So=null)}function gD(e){if(e.propertyName==="value"&&tf(qo)){var t=[];pD(t,qo,e,m3(e)),Gw(nF,t)}}function iF(e,t,n){e==="focusin"?(yx(),So=t,qo=n,So.attachEvent("onpropertychange",gD)):e==="focusout"&&yx()}function aF(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return tf(qo)}function sF(e,t){if(e==="click")return tf(t)}function oF(e,t){if(e==="input"||e==="change")return tf(t)}function lF(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ln=typeof Object.is=="function"?Object.is:lF;function Go(e,t){if(Ln(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!_p.call(t,i)||!Ln(e[i],t[i]))return!1}return!0}function $x(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function xx(e,t){var n=$x(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=$x(n)}}function vD(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?vD(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function bD(){for(var e=window,t=mc();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=mc(e.document)}return t}function _3(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function uF(e){var t=bD(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&vD(n.ownerDocument.documentElement,n)){if(r!==null&&_3(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,a=Math.min(r.start,i);r=r.end===void 0?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=xx(n,a);var s=xx(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var cF=yr&&"documentMode"in document&&11>=document.documentMode,Ia=null,Wp=null,Co=null,Up=!1;function wx(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Up||Ia==null||Ia!==mc(r)||(r=Ia,"selectionStart"in r&&_3(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Co&&Go(Co,r)||(Co=r,r=wc(Wp,"onSelect"),0<r.length&&(t=new x3("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Ia)))}function eu(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var La={animationend:eu("Animation","AnimationEnd"),animationiteration:eu("Animation","AnimationIteration"),animationstart:eu("Animation","AnimationStart"),transitionend:eu("Transition","TransitionEnd")},sh={},yD={};yr&&(yD=document.createElement("div").style,"AnimationEvent"in window||(delete La.animationend.animation,delete La.animationiteration.animation,delete La.animationstart.animation),"TransitionEvent"in window||delete La.transitionend.transition);function nf(e){if(sh[e])return sh[e];if(!La[e])return e;var t=La[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in yD)return sh[e]=t[n];return e}var $D=nf("animationend"),xD=nf("animationiteration"),wD=nf("animationstart"),DD=nf("transitionend"),_D=new Map,Dx="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function fi(e,t){_D.set(e,t),ca(t,[e])}for(var oh=0;oh<Dx.length;oh++){var lh=Dx[oh],dF=lh.toLowerCase(),fF=lh[0].toUpperCase()+lh.slice(1);fi(dF,"on"+fF)}fi($D,"onAnimationEnd");fi(xD,"onAnimationIteration");fi(wD,"onAnimationStart");fi("dblclick","onDoubleClick");fi("focusin","onFocus");fi("focusout","onBlur");fi(DD,"onTransitionEnd");ds("onMouseEnter",["mouseout","mouseover"]);ds("onMouseLeave",["mouseout","mouseover"]);ds("onPointerEnter",["pointerout","pointerover"]);ds("onPointerLeave",["pointerout","pointerover"]);ca("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));ca("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));ca("onBeforeInput",["compositionend","keypress","textInput","paste"]);ca("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));ca("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));ca("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var uo="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(" "),hF=new Set("cancel close invalid load scroll toggle".split(" ").concat(uo));function _x(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,dM(r,t,void 0,e),e.currentTarget=null}function ED(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var s=r.length-1;0<=s;s--){var o=r[s],l=o.instance,u=o.currentTarget;if(o=o.listener,l!==a&&i.isPropagationStopped())break e;_x(i,o,u),a=l}else for(s=0;s<r.length;s++){if(o=r[s],l=o.instance,u=o.currentTarget,o=o.listener,l!==a&&i.isPropagationStopped())break e;_x(i,o,u),a=l}}}if(vc)throw e=Np,vc=!1,Np=null,e}function ke(e,t){var n=t[Gp];n===void 0&&(n=t[Gp]=new Set);var r=e+"__bubble";n.has(r)||(SD(t,e,2,!1),n.add(r))}function uh(e,t,n){var r=0;t&&(r|=4),SD(n,e,r,t)}var tu="_reactListening"+Math.random().toString(36).slice(2);function Zo(e){if(!e[tu]){e[tu]=!0,Fw.forEach(function(n){n!=="selectionchange"&&(hF.has(n)||uh(n,!1,e),uh(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[tu]||(t[tu]=!0,uh("selectionchange",!1,t))}}function SD(e,t,n,r){switch(uD(t)){case 1:var i=CM;break;case 4:i=kM;break;default:i=y3}n=i.bind(null,t,n,e),i=void 0,!Lp||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function ch(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var o=r.stateNode.containerInfo;if(o===i||o.nodeType===8&&o.parentNode===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&(l=s.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;s=s.return}for(;o!==null;){if(s=Ni(o),s===null)return;if(l=s.tag,l===5||l===6){r=a=s;continue e}o=o.parentNode}}r=r.return}Gw(function(){var u=a,c=m3(n),d=[];e:{var f=_D.get(e);if(f!==void 0){var h=x3,p=e;switch(e){case"keypress":if(Gu(n)===0)break e;case"keydown":case"keyup":h=WM;break;case"focusin":p="focus",h=rh;break;case"focusout":p="blur",h=rh;break;case"beforeblur":case"afterblur":h=rh;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=fx;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=RM;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=KM;break;case $D:case xD:case wD:h=AM;break;case DD:h=qM;break;case"scroll":h=PM;break;case"wheel":h=ZM;break;case"copy":case"cut":case"paste":h=BM;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=px}var g=(t&4)!==0,b=!g&&e==="scroll",v=g?f!==null?f+"Capture":null:f;g=[];for(var m=u,$;m!==null;){$=m;var w=$.stateNode;if($.tag===5&&w!==null&&($=w,v!==null&&(w=Uo(m,v),w!=null&&g.push(Xo(m,w,$)))),b)break;m=m.return}0<g.length&&(f=new h(f,p,null,n,c),d.push({event:f,listeners:g}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",f&&n!==Bp&&(p=n.relatedTarget||n.fromElement)&&(Ni(p)||p[$r]))break e;if((h||f)&&(f=c.window===c?c:(f=c.ownerDocument)?f.defaultView||f.parentWindow:window,h?(p=n.relatedTarget||n.toElement,h=u,p=p?Ni(p):null,p!==null&&(b=da(p),p!==b||p.tag!==5&&p.tag!==6)&&(p=null)):(h=null,p=u),h!==p)){if(g=fx,w="onMouseLeave",v="onMouseEnter",m="mouse",(e==="pointerout"||e==="pointerover")&&(g=px,w="onPointerLeave",v="onPointerEnter",m="pointer"),b=h==null?f:Na(h),$=p==null?f:Na(p),f=new g(w,m+"leave",h,n,c),f.target=b,f.relatedTarget=$,w=null,Ni(c)===u&&(g=new g(v,m+"enter",p,n,c),g.target=$,g.relatedTarget=b,w=g),b=w,h&&p)t:{for(g=h,v=p,m=0,$=g;$;$=$a($))m++;for($=0,w=v;w;w=$a(w))$++;for(;0<m-$;)g=$a(g),m--;for(;0<$-m;)v=$a(v),$--;for(;m--;){if(g===v||v!==null&&g===v.alternate)break t;g=$a(g),v=$a(v)}g=null}else g=null;h!==null&&Ex(d,f,h,g,!1),p!==null&&b!==null&&Ex(d,b,p,g,!0)}}e:{if(f=u?Na(u):window,h=f.nodeName&&f.nodeName.toLowerCase(),h==="select"||h==="input"&&f.type==="file")var D=rF;else if(vx(f))if(mD)D=oF;else{D=aF;var S=iF}else(h=f.nodeName)&&h.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(D=sF);if(D&&(D=D(e,u))){pD(d,D,n,c);break e}S&&S(e,f,u),e==="focusout"&&(S=f._wrapperState)&&S.controlled&&f.type==="number"&&Rp(f,"number",f.value)}switch(S=u?Na(u):window,e){case"focusin":(vx(S)||S.contentEditable==="true")&&(Ia=S,Wp=u,Co=null);break;case"focusout":Co=Wp=Ia=null;break;case"mousedown":Up=!0;break;case"contextmenu":case"mouseup":case"dragend":Up=!1,wx(d,n,c);break;case"selectionchange":if(cF)break;case"keydown":case"keyup":wx(d,n,c)}var k;if(D3)e:{switch(e){case"compositionstart":var x="onCompositionStart";break e;case"compositionend":x="onCompositionEnd";break e;case"compositionupdate":x="onCompositionUpdate";break e}x=void 0}else Ba?fD(e,n)&&(x="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(x="onCompositionStart");x&&(dD&&n.locale!=="ko"&&(Ba||x!=="onCompositionStart"?x==="onCompositionEnd"&&Ba&&(k=cD()):(zr=c,$3="value"in zr?zr.value:zr.textContent,Ba=!0)),S=wc(u,x),0<S.length&&(x=new hx(x,e,null,n,c),d.push({event:x,listeners:S}),k?x.data=k:(k=hD(n),k!==null&&(x.data=k)))),(k=QM?JM(e,n):eF(e,n))&&(u=wc(u,"onBeforeInput"),0<u.length&&(c=new hx("onBeforeInput","beforeinput",null,n,c),d.push({event:c,listeners:u}),c.data=k))}ED(d,t)})}function Xo(e,t,n){return{instance:e,listener:t,currentTarget:n}}function wc(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,a=i.stateNode;i.tag===5&&a!==null&&(i=a,a=Uo(e,n),a!=null&&r.unshift(Xo(e,a,i)),a=Uo(e,t),a!=null&&r.push(Xo(e,a,i))),e=e.return}return r}function $a(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Ex(e,t,n,r,i){for(var a=t._reactName,s=[];n!==null&&n!==r;){var o=n,l=o.alternate,u=o.stateNode;if(l!==null&&l===r)break;o.tag===5&&u!==null&&(o=u,i?(l=Uo(n,a),l!=null&&s.unshift(Xo(n,l,o))):i||(l=Uo(n,a),l!=null&&s.push(Xo(n,l,o)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var pF=/\r\n?/g,mF=/\u0000|\uFFFD/g;function Sx(e){return(typeof e=="string"?e:""+e).replace(pF,`
+`).replace(mF,"")}function nu(e,t,n){if(t=Sx(t),Sx(e)!==t&&n)throw Error(L(425))}function Dc(){}var Hp=null,Kp=null;function Yp(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var qp=typeof setTimeout=="function"?setTimeout:void 0,gF=typeof clearTimeout=="function"?clearTimeout:void 0,Cx=typeof Promise=="function"?Promise:void 0,vF=typeof queueMicrotask=="function"?queueMicrotask:typeof Cx<"u"?function(e){return Cx.resolve(null).then(e).catch(bF)}:qp;function bF(e){setTimeout(function(){throw e})}function dh(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),Yo(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Yo(t)}function Qr(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function kx(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Cs=Math.random().toString(36).slice(2),Kn="__reactFiber$"+Cs,Qo="__reactProps$"+Cs,$r="__reactContainer$"+Cs,Gp="__reactEvents$"+Cs,yF="__reactListeners$"+Cs,$F="__reactHandles$"+Cs;function Ni(e){var t=e[Kn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[$r]||n[Kn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=kx(e);e!==null;){if(n=e[Kn])return n;e=kx(e)}return t}e=n,n=e.parentNode}return null}function Rl(e){return e=e[Kn]||e[$r],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Na(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(L(33))}function rf(e){return e[Qo]||null}var Zp=[],ja=-1;function hi(e){return{current:e}}function Pe(e){0>ja||(e.current=Zp[ja],Zp[ja]=null,ja--)}function Ee(e,t){ja++,Zp[ja]=e.current,e.current=t}var si={},kt=hi(si),Yt=hi(!1),Xi=si;function fs(e,t){var n=e.type.contextTypes;if(!n)return si;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function qt(e){return e=e.childContextTypes,e!=null}function _c(){Pe(Yt),Pe(kt)}function Px(e,t,n){if(kt.current!==si)throw Error(L(168));Ee(kt,t),Ee(Yt,n)}function CD(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(L(108,iM(e)||"Unknown",i));return Ne({},n,r)}function Ec(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||si,Xi=kt.current,Ee(kt,e),Ee(Yt,Yt.current),!0}function Tx(e,t,n){var r=e.stateNode;if(!r)throw Error(L(169));n?(e=CD(e,t,Xi),r.__reactInternalMemoizedMergedChildContext=e,Pe(Yt),Pe(kt),Ee(kt,e)):Pe(Yt),Ee(Yt,n)}var lr=null,af=!1,fh=!1;function kD(e){lr===null?lr=[e]:lr.push(e)}function xF(e){af=!0,kD(e)}function pi(){if(!fh&&lr!==null){fh=!0;var e=0,t=ge;try{var n=lr;for(ge=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}lr=null,af=!1}catch(i){throw lr!==null&&(lr=lr.slice(e+1)),Jw(g3,pi),i}finally{ge=t,fh=!1}}return null}var za=[],Va=0,Sc=null,Cc=0,gn=[],vn=0,Qi=null,dr=1,fr="";function Ci(e,t){za[Va++]=Cc,za[Va++]=Sc,Sc=e,Cc=t}function PD(e,t,n){gn[vn++]=dr,gn[vn++]=fr,gn[vn++]=Qi,Qi=e;var r=dr;e=fr;var i=32-On(r)-1;r&=~(1<<i),n+=1;var a=32-On(t)+i;if(30<a){var s=i-i%5;a=(r&(1<<s)-1).toString(32),r>>=s,i-=s,dr=1<<32-On(t)+i|n<<i|r,fr=a+e}else dr=1<<a|n<<i|r,fr=e}function E3(e){e.return!==null&&(Ci(e,1),PD(e,1,0))}function S3(e){for(;e===Sc;)Sc=za[--Va],za[Va]=null,Cc=za[--Va],za[Va]=null;for(;e===Qi;)Qi=gn[--vn],gn[vn]=null,fr=gn[--vn],gn[vn]=null,dr=gn[--vn],gn[vn]=null}var sn=null,rn=null,Ae=!1,Mn=null;function TD(e,t){var n=$n(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Rx(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,sn=e,rn=Qr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,sn=e,rn=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Qi!==null?{id:dr,overflow:fr}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=$n(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,sn=e,rn=null,!0):!1;default:return!1}}function Xp(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Qp(e){if(Ae){var t=rn;if(t){var n=t;if(!Rx(e,t)){if(Xp(e))throw Error(L(418));t=Qr(n.nextSibling);var r=sn;t&&Rx(e,t)?TD(r,n):(e.flags=e.flags&-4097|2,Ae=!1,sn=e)}}else{if(Xp(e))throw Error(L(418));e.flags=e.flags&-4097|2,Ae=!1,sn=e}}}function Mx(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;sn=e}function ru(e){if(e!==sn)return!1;if(!Ae)return Mx(e),Ae=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Yp(e.type,e.memoizedProps)),t&&(t=rn)){if(Xp(e))throw RD(),Error(L(418));for(;t;)TD(e,t),t=Qr(t.nextSibling)}if(Mx(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(L(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){rn=Qr(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}rn=null}}else rn=sn?Qr(e.stateNode.nextSibling):null;return!0}function RD(){for(var e=rn;e;)e=Qr(e.nextSibling)}function hs(){rn=sn=null,Ae=!1}function C3(e){Mn===null?Mn=[e]:Mn.push(e)}var wF=Dr.ReactCurrentBatchConfig;function js(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(L(309));var r=n.stateNode}if(!r)throw Error(L(147,e));var i=r,a=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===a?t.ref:(t=function(s){var o=i.refs;s===null?delete o[a]:o[a]=s},t._stringRef=a,t)}if(typeof e!="string")throw Error(L(284));if(!n._owner)throw Error(L(290,e))}return e}function iu(e,t){throw e=Object.prototype.toString.call(t),Error(L(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Fx(e){var t=e._init;return t(e._payload)}function MD(e){function t(v,m){if(e){var $=v.deletions;$===null?(v.deletions=[m],v.flags|=16):$.push(m)}}function n(v,m){if(!e)return null;for(;m!==null;)t(v,m),m=m.sibling;return null}function r(v,m){for(v=new Map;m!==null;)m.key!==null?v.set(m.key,m):v.set(m.index,m),m=m.sibling;return v}function i(v,m){return v=ni(v,m),v.index=0,v.sibling=null,v}function a(v,m,$){return v.index=$,e?($=v.alternate,$!==null?($=$.index,$<m?(v.flags|=2,m):$):(v.flags|=2,m)):(v.flags|=1048576,m)}function s(v){return e&&v.alternate===null&&(v.flags|=2),v}function o(v,m,$,w){return m===null||m.tag!==6?(m=yh($,v.mode,w),m.return=v,m):(m=i(m,$),m.return=v,m)}function l(v,m,$,w){var D=$.type;return D===Oa?c(v,m,$.props.children,w,$.key):m!==null&&(m.elementType===D||typeof D=="object"&&D!==null&&D.$$typeof===Ar&&Fx(D)===m.type)?(w=i(m,$.props),w.ref=js(v,m,$),w.return=v,w):(w=nc($.type,$.key,$.props,null,v.mode,w),w.ref=js(v,m,$),w.return=v,w)}function u(v,m,$,w){return m===null||m.tag!==4||m.stateNode.containerInfo!==$.containerInfo||m.stateNode.implementation!==$.implementation?(m=$h($,v.mode,w),m.return=v,m):(m=i(m,$.children||[]),m.return=v,m)}function c(v,m,$,w,D){return m===null||m.tag!==7?(m=Yi($,v.mode,w,D),m.return=v,m):(m=i(m,$),m.return=v,m)}function d(v,m,$){if(typeof m=="string"&&m!==""||typeof m=="number")return m=yh(""+m,v.mode,$),m.return=v,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case Yl:return $=nc(m.type,m.key,m.props,null,v.mode,$),$.ref=js(v,null,m),$.return=v,$;case Aa:return m=$h(m,v.mode,$),m.return=v,m;case Ar:var w=m._init;return d(v,w(m._payload),$)}if(oo(m)||Os(m))return m=Yi(m,v.mode,$,null),m.return=v,m;iu(v,m)}return null}function f(v,m,$,w){var D=m!==null?m.key:null;if(typeof $=="string"&&$!==""||typeof $=="number")return D!==null?null:o(v,m,""+$,w);if(typeof $=="object"&&$!==null){switch($.$$typeof){case Yl:return $.key===D?l(v,m,$,w):null;case Aa:return $.key===D?u(v,m,$,w):null;case Ar:return D=$._init,f(v,m,D($._payload),w)}if(oo($)||Os($))return D!==null?null:c(v,m,$,w,null);iu(v,$)}return null}function h(v,m,$,w,D){if(typeof w=="string"&&w!==""||typeof w=="number")return v=v.get($)||null,o(m,v,""+w,D);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Yl:return v=v.get(w.key===null?$:w.key)||null,l(m,v,w,D);case Aa:return v=v.get(w.key===null?$:w.key)||null,u(m,v,w,D);case Ar:var S=w._init;return h(v,m,$,S(w._payload),D)}if(oo(w)||Os(w))return v=v.get($)||null,c(m,v,w,D,null);iu(m,w)}return null}function p(v,m,$,w){for(var D=null,S=null,k=m,x=m=0,T=null;k!==null&&x<$.length;x++){k.index>x?(T=k,k=null):T=k.sibling;var P=f(v,k,$[x],w);if(P===null){k===null&&(k=T);break}e&&k&&P.alternate===null&&t(v,k),m=a(P,m,x),S===null?D=P:S.sibling=P,S=P,k=T}if(x===$.length)return n(v,k),Ae&&Ci(v,x),D;if(k===null){for(;x<$.length;x++)k=d(v,$[x],w),k!==null&&(m=a(k,m,x),S===null?D=k:S.sibling=k,S=k);return Ae&&Ci(v,x),D}for(k=r(v,k);x<$.length;x++)T=h(k,v,x,$[x],w),T!==null&&(e&&T.alternate!==null&&k.delete(T.key===null?x:T.key),m=a(T,m,x),S===null?D=T:S.sibling=T,S=T);return e&&k.forEach(function(E){return t(v,E)}),Ae&&Ci(v,x),D}function g(v,m,$,w){var D=Os($);if(typeof D!="function")throw Error(L(150));if($=D.call($),$==null)throw Error(L(151));for(var S=D=null,k=m,x=m=0,T=null,P=$.next();k!==null&&!P.done;x++,P=$.next()){k.index>x?(T=k,k=null):T=k.sibling;var E=f(v,k,P.value,w);if(E===null){k===null&&(k=T);break}e&&k&&E.alternate===null&&t(v,k),m=a(E,m,x),S===null?D=E:S.sibling=E,S=E,k=T}if(P.done)return n(v,k),Ae&&Ci(v,x),D;if(k===null){for(;!P.done;x++,P=$.next())P=d(v,P.value,w),P!==null&&(m=a(P,m,x),S===null?D=P:S.sibling=P,S=P);return Ae&&Ci(v,x),D}for(k=r(v,k);!P.done;x++,P=$.next())P=h(k,v,x,P.value,w),P!==null&&(e&&P.alternate!==null&&k.delete(P.key===null?x:P.key),m=a(P,m,x),S===null?D=P:S.sibling=P,S=P);return e&&k.forEach(function(F){return t(v,F)}),Ae&&Ci(v,x),D}function b(v,m,$,w){if(typeof $=="object"&&$!==null&&$.type===Oa&&$.key===null&&($=$.props.children),typeof $=="object"&&$!==null){switch($.$$typeof){case Yl:e:{for(var D=$.key,S=m;S!==null;){if(S.key===D){if(D=$.type,D===Oa){if(S.tag===7){n(v,S.sibling),m=i(S,$.props.children),m.return=v,v=m;break e}}else if(S.elementType===D||typeof D=="object"&&D!==null&&D.$$typeof===Ar&&Fx(D)===S.type){n(v,S.sibling),m=i(S,$.props),m.ref=js(v,S,$),m.return=v,v=m;break e}n(v,S);break}else t(v,S);S=S.sibling}$.type===Oa?(m=Yi($.props.children,v.mode,w,$.key),m.return=v,v=m):(w=nc($.type,$.key,$.props,null,v.mode,w),w.ref=js(v,m,$),w.return=v,v=w)}return s(v);case Aa:e:{for(S=$.key;m!==null;){if(m.key===S)if(m.tag===4&&m.stateNode.containerInfo===$.containerInfo&&m.stateNode.implementation===$.implementation){n(v,m.sibling),m=i(m,$.children||[]),m.return=v,v=m;break e}else{n(v,m);break}else t(v,m);m=m.sibling}m=$h($,v.mode,w),m.return=v,v=m}return s(v);case Ar:return S=$._init,b(v,m,S($._payload),w)}if(oo($))return p(v,m,$,w);if(Os($))return g(v,m,$,w);iu(v,$)}return typeof $=="string"&&$!==""||typeof $=="number"?($=""+$,m!==null&&m.tag===6?(n(v,m.sibling),m=i(m,$),m.return=v,v=m):(n(v,m),m=yh($,v.mode,w),m.return=v,v=m),s(v)):n(v,m)}return b}var ps=MD(!0),FD=MD(!1),kc=hi(null),Pc=null,Wa=null,k3=null;function P3(){k3=Wa=Pc=null}function T3(e){var t=kc.current;Pe(kc),e._currentValue=t}function Jp(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ja(e,t){Pc=e,k3=Wa=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Kt=!0),e.firstContext=null)}function _n(e){var t=e._currentValue;if(k3!==e)if(e={context:e,memoizedValue:t,next:null},Wa===null){if(Pc===null)throw Error(L(308));Wa=e,Pc.dependencies={lanes:0,firstContext:e}}else Wa=Wa.next=e;return t}var ji=null;function R3(e){ji===null?ji=[e]:ji.push(e)}function AD(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,R3(t)):(n.next=i.next,i.next=n),t.interleaved=n,xr(e,r)}function xr(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Or=!1;function M3(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function OD(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function br(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Jr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ue&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,xr(e,n)}return i=r.interleaved,i===null?(t.next=t,R3(r)):(t.next=i.next,i.next=t),r.interleaved=t,xr(e,n)}function Zu(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,v3(e,n)}}function Ax(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};a===null?i=a=s:a=a.next=s,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Tc(e,t,n,r){var i=e.updateQueue;Or=!1;var a=i.firstBaseUpdate,s=i.lastBaseUpdate,o=i.shared.pending;if(o!==null){i.shared.pending=null;var l=o,u=l.next;l.next=null,s===null?a=u:s.next=u,s=l;var c=e.alternate;c!==null&&(c=c.updateQueue,o=c.lastBaseUpdate,o!==s&&(o===null?c.firstBaseUpdate=u:o.next=u,c.lastBaseUpdate=l))}if(a!==null){var d=i.baseState;s=0,c=u=l=null,o=a;do{var f=o.lane,h=o.eventTime;if((r&f)===f){c!==null&&(c=c.next={eventTime:h,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var p=e,g=o;switch(f=t,h=n,g.tag){case 1:if(p=g.payload,typeof p=="function"){d=p.call(h,d,f);break e}d=p;break e;case 3:p.flags=p.flags&-65537|128;case 0:if(p=g.payload,f=typeof p=="function"?p.call(h,d,f):p,f==null)break e;d=Ne({},d,f);break e;case 2:Or=!0}}o.callback!==null&&o.lane!==0&&(e.flags|=64,f=i.effects,f===null?i.effects=[o]:f.push(o))}else h={eventTime:h,lane:f,tag:o.tag,payload:o.payload,callback:o.callback,next:null},c===null?(u=c=h,l=d):c=c.next=h,s|=f;if(o=o.next,o===null){if(o=i.shared.pending,o===null)break;f=o,o=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(!0);if(c===null&&(l=d),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do s|=i.lane,i=i.next;while(i!==t)}else a===null&&(i.shared.lanes=0);ea|=s,e.lanes=s,e.memoizedState=d}}function Ox(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(L(191,i));i.call(r)}}}var Ml={},Gn=hi(Ml),Jo=hi(Ml),el=hi(Ml);function zi(e){if(e===Ml)throw Error(L(174));return e}function F3(e,t){switch(Ee(el,t),Ee(Jo,e),Ee(Gn,Ml),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Fp(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Fp(t,e)}Pe(Gn),Ee(Gn,t)}function ms(){Pe(Gn),Pe(Jo),Pe(el)}function BD(e){zi(el.current);var t=zi(Gn.current),n=Fp(t,e.type);t!==n&&(Ee(Jo,e),Ee(Gn,n))}function A3(e){Jo.current===e&&(Pe(Gn),Pe(Jo))}var Ie=hi(0);function Rc(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var hh=[];function O3(){for(var e=0;e<hh.length;e++)hh[e]._workInProgressVersionPrimary=null;hh.length=0}var Xu=Dr.ReactCurrentDispatcher,ph=Dr.ReactCurrentBatchConfig,Ji=0,Le=null,nt=null,ct=null,Mc=!1,ko=!1,tl=0,DF=0;function $t(){throw Error(L(321))}function B3(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ln(e[n],t[n]))return!1;return!0}function I3(e,t,n,r,i,a){if(Ji=a,Le=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Xu.current=e===null||e.memoizedState===null?CF:kF,e=n(r,i),ko){a=0;do{if(ko=!1,tl=0,25<=a)throw Error(L(301));a+=1,ct=nt=null,t.updateQueue=null,Xu.current=PF,e=n(r,i)}while(ko)}if(Xu.current=Fc,t=nt!==null&&nt.next!==null,Ji=0,ct=nt=Le=null,Mc=!1,t)throw Error(L(300));return e}function L3(){var e=tl!==0;return tl=0,e}function Un(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ct===null?Le.memoizedState=ct=e:ct=ct.next=e,ct}function En(){if(nt===null){var e=Le.alternate;e=e!==null?e.memoizedState:null}else e=nt.next;var t=ct===null?Le.memoizedState:ct.next;if(t!==null)ct=t,nt=e;else{if(e===null)throw Error(L(310));nt=e,e={memoizedState:nt.memoizedState,baseState:nt.baseState,baseQueue:nt.baseQueue,queue:nt.queue,next:null},ct===null?Le.memoizedState=ct=e:ct=ct.next=e}return ct}function nl(e,t){return typeof t=="function"?t(e):t}function mh(e){var t=En(),n=t.queue;if(n===null)throw Error(L(311));n.lastRenderedReducer=e;var r=nt,i=r.baseQueue,a=n.pending;if(a!==null){if(i!==null){var s=i.next;i.next=a.next,a.next=s}r.baseQueue=i=a,n.pending=null}if(i!==null){a=i.next,r=r.baseState;var o=s=null,l=null,u=a;do{var c=u.lane;if((Ji&c)===c)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var d={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(o=l=d,s=r):l=l.next=d,Le.lanes|=c,ea|=c}u=u.next}while(u!==null&&u!==a);l===null?s=r:l.next=o,Ln(r,t.memoizedState)||(Kt=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do a=i.lane,Le.lanes|=a,ea|=a,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function gh(e){var t=En(),n=t.queue;if(n===null)throw Error(L(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(i!==null){n.pending=null;var s=i=i.next;do a=e(a,s.action),s=s.next;while(s!==i);Ln(a,t.memoizedState)||(Kt=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function ID(){}function LD(e,t){var n=Le,r=En(),i=t(),a=!Ln(r.memoizedState,i);if(a&&(r.memoizedState=i,Kt=!0),r=r.queue,N3(zD.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||ct!==null&&ct.memoizedState.tag&1){if(n.flags|=2048,rl(9,jD.bind(null,n,r,i,t),void 0,null),ft===null)throw Error(L(349));Ji&30||ND(n,t,i)}return i}function ND(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Le.updateQueue,t===null?(t={lastEffect:null,stores:null},Le.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function jD(e,t,n,r){t.value=n,t.getSnapshot=r,VD(t)&&WD(e)}function zD(e,t,n){return n(function(){VD(t)&&WD(e)})}function VD(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ln(e,n)}catch{return!0}}function WD(e){var t=xr(e,1);t!==null&&Bn(t,e,1,-1)}function Bx(e){var t=Un();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:nl,lastRenderedState:e},t.queue=e,e=e.dispatch=SF.bind(null,Le,e),[t.memoizedState,e]}function rl(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Le.updateQueue,t===null?(t={lastEffect:null,stores:null},Le.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function UD(){return En().memoizedState}function Qu(e,t,n,r){var i=Un();Le.flags|=e,i.memoizedState=rl(1|t,n,void 0,r===void 0?null:r)}function sf(e,t,n,r){var i=En();r=r===void 0?null:r;var a=void 0;if(nt!==null){var s=nt.memoizedState;if(a=s.destroy,r!==null&&B3(r,s.deps)){i.memoizedState=rl(t,n,a,r);return}}Le.flags|=e,i.memoizedState=rl(1|t,n,a,r)}function Ix(e,t){return Qu(8390656,8,e,t)}function N3(e,t){return sf(2048,8,e,t)}function HD(e,t){return sf(4,2,e,t)}function KD(e,t){return sf(4,4,e,t)}function YD(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function qD(e,t,n){return n=n!=null?n.concat([e]):null,sf(4,4,YD.bind(null,t,e),n)}function j3(){}function GD(e,t){var n=En();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&B3(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ZD(e,t){var n=En();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&B3(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function XD(e,t,n){return Ji&21?(Ln(n,t)||(n=nD(),Le.lanes|=n,ea|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Kt=!0),e.memoizedState=n)}function _F(e,t){var n=ge;ge=n!==0&&4>n?n:4,e(!0);var r=ph.transition;ph.transition={};try{e(!1),t()}finally{ge=n,ph.transition=r}}function QD(){return En().memoizedState}function EF(e,t,n){var r=ti(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},JD(e))e_(t,n);else if(n=AD(e,t,n,r),n!==null){var i=Mt();Bn(n,e,r,i),t_(n,t,r)}}function SF(e,t,n){var r=ti(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(JD(e))e_(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var s=t.lastRenderedState,o=a(s,n);if(i.hasEagerState=!0,i.eagerState=o,Ln(o,s)){var l=t.interleaved;l===null?(i.next=i,R3(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=AD(e,t,i,r),n!==null&&(i=Mt(),Bn(n,e,r,i),t_(n,t,r))}}function JD(e){var t=e.alternate;return e===Le||t!==null&&t===Le}function e_(e,t){ko=Mc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function t_(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,v3(e,n)}}var Fc={readContext:_n,useCallback:$t,useContext:$t,useEffect:$t,useImperativeHandle:$t,useInsertionEffect:$t,useLayoutEffect:$t,useMemo:$t,useReducer:$t,useRef:$t,useState:$t,useDebugValue:$t,useDeferredValue:$t,useTransition:$t,useMutableSource:$t,useSyncExternalStore:$t,useId:$t,unstable_isNewReconciler:!1},CF={readContext:_n,useCallback:function(e,t){return Un().memoizedState=[e,t===void 0?null:t],e},useContext:_n,useEffect:Ix,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Qu(4194308,4,YD.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Qu(4194308,4,e,t)},useInsertionEffect:function(e,t){return Qu(4,2,e,t)},useMemo:function(e,t){var n=Un();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Un();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=EF.bind(null,Le,e),[r.memoizedState,e]},useRef:function(e){var t=Un();return e={current:e},t.memoizedState=e},useState:Bx,useDebugValue:j3,useDeferredValue:function(e){return Un().memoizedState=e},useTransition:function(){var e=Bx(!1),t=e[0];return e=_F.bind(null,e[1]),Un().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Le,i=Un();if(Ae){if(n===void 0)throw Error(L(407));n=n()}else{if(n=t(),ft===null)throw Error(L(349));Ji&30||ND(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,Ix(zD.bind(null,r,a,e),[e]),r.flags|=2048,rl(9,jD.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=Un(),t=ft.identifierPrefix;if(Ae){var n=fr,r=dr;n=(r&~(1<<32-On(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=tl++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=DF++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},kF={readContext:_n,useCallback:GD,useContext:_n,useEffect:N3,useImperativeHandle:qD,useInsertionEffect:HD,useLayoutEffect:KD,useMemo:ZD,useReducer:mh,useRef:UD,useState:function(){return mh(nl)},useDebugValue:j3,useDeferredValue:function(e){var t=En();return XD(t,nt.memoizedState,e)},useTransition:function(){var e=mh(nl)[0],t=En().memoizedState;return[e,t]},useMutableSource:ID,useSyncExternalStore:LD,useId:QD,unstable_isNewReconciler:!1},PF={readContext:_n,useCallback:GD,useContext:_n,useEffect:N3,useImperativeHandle:qD,useInsertionEffect:HD,useLayoutEffect:KD,useMemo:ZD,useReducer:gh,useRef:UD,useState:function(){return gh(nl)},useDebugValue:j3,useDeferredValue:function(e){var t=En();return nt===null?t.memoizedState=e:XD(t,nt.memoizedState,e)},useTransition:function(){var e=gh(nl)[0],t=En().memoizedState;return[e,t]},useMutableSource:ID,useSyncExternalStore:LD,useId:QD,unstable_isNewReconciler:!1};function Pn(e,t){if(e&&e.defaultProps){t=Ne({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function em(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Ne({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var of={isMounted:function(e){return(e=e._reactInternals)?da(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Mt(),i=ti(e),a=br(r,i);a.payload=t,n!=null&&(a.callback=n),t=Jr(e,a,i),t!==null&&(Bn(t,e,i,r),Zu(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Mt(),i=ti(e),a=br(r,i);a.tag=1,a.payload=t,n!=null&&(a.callback=n),t=Jr(e,a,i),t!==null&&(Bn(t,e,i,r),Zu(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Mt(),r=ti(e),i=br(n,r);i.tag=2,t!=null&&(i.callback=t),t=Jr(e,i,r),t!==null&&(Bn(t,e,r,n),Zu(t,e,r))}};function Lx(e,t,n,r,i,a,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,a,s):t.prototype&&t.prototype.isPureReactComponent?!Go(n,r)||!Go(i,a):!0}function n_(e,t,n){var r=!1,i=si,a=t.contextType;return typeof a=="object"&&a!==null?a=_n(a):(i=qt(t)?Xi:kt.current,r=t.contextTypes,a=(r=r!=null)?fs(e,i):si),t=new t(n,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=of,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function Nx(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&of.enqueueReplaceState(t,t.state,null)}function tm(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},M3(e);var a=t.contextType;typeof a=="object"&&a!==null?i.context=_n(a):(a=qt(t)?Xi:kt.current,i.context=fs(e,a)),i.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a=="function"&&(em(e,t,a,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&of.enqueueReplaceState(i,i.state,null),Tc(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function gs(e,t){try{var n="",r=t;do n+=rM(r),r=r.return;while(r);var i=n}catch(a){i=`
 Error generating stack: `+a.message+`
-`+a.stack}return{value:e,source:t,stack:i,digest:null}}function vh(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function nm(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var PF=typeof WeakMap=="function"?WeakMap:Map;function r_(e,t,n){n=br(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Oc||(Oc=!0,fm=r),nm(e,t)},n}function i_(e,t,n){n=br(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){nm(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(n.callback=function(){nm(e,t),typeof r!="function"&&(ei===null?ei=new Set([this]):ei.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function jx(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new PF;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=WF.bind(null,e,t,n),t.then(e,e))}function zx(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Vx(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=br(-1,1),t.tag=2,Jr(n,t,1))),n.lanes|=1),e)}var TF=Dr.ReactCurrentOwner,Kt=!1;function Tt(e,t,n,r){t.child=e===null?FD(t,null,n,r):ps(t,e.child,n,r)}function Wx(e,t,n,r,i){n=n.render;var a=t.ref;return Ja(t,i),r=I3(e,t,n,r,a,i),n=L3(),e!==null&&!Kt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,wr(e,t,i)):(Ae&&n&&E3(t),t.flags|=1,Tt(e,t,r,i),t.child)}function Ux(e,t,n,r,i){if(e===null){var a=n.type;return typeof a=="function"&&!q3(a)&&a.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=a,a_(e,t,a,r,i)):(e=nc(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!(e.lanes&i)){var s=a.memoizedProps;if(n=n.compare,n=n!==null?n:Go,n(s,r)&&e.ref===t.ref)return wr(e,t,i)}return t.flags|=1,e=ni(a,r),e.ref=t.ref,e.return=t,t.child=e}function a_(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Go(a,r)&&e.ref===t.ref)if(Kt=!1,t.pendingProps=r=a,(e.lanes&i)!==0)e.flags&131072&&(Kt=!0);else return t.lanes=e.lanes,wr(e,t,i)}return rm(e,t,n,r,i)}function s_(e,t,n){var r=t.pendingProps,i=r.children,a=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ee(Ha,tn),tn|=n;else{if(!(n&1073741824))return e=a!==null?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ee(Ha,tn),tn|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=a!==null?a.baseLanes:n,Ee(Ha,tn),tn|=r}else a!==null?(r=a.baseLanes|n,t.memoizedState=null):r=n,Ee(Ha,tn),tn|=r;return Tt(e,t,i,n),t.child}function o_(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function rm(e,t,n,r,i){var a=qt(n)?Xi:kt.current;return a=fs(t,a),Ja(t,i),n=I3(e,t,n,r,a,i),r=L3(),e!==null&&!Kt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,wr(e,t,i)):(Ae&&r&&E3(t),t.flags|=1,Tt(e,t,n,i),t.child)}function Hx(e,t,n,r,i){if(qt(n)){var a=!0;Ec(t)}else a=!1;if(Ja(t,i),t.stateNode===null)Ju(e,t),n_(t,n,r),tm(t,n,r,i),r=!0;else if(e===null){var s=t.stateNode,o=t.memoizedProps;s.props=o;var l=s.context,u=n.contextType;typeof u=="object"&&u!==null?u=_n(u):(u=qt(n)?Xi:kt.current,u=fs(t,u));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof s.getSnapshotBeforeUpdate=="function";d||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(o!==r||l!==u)&&Nx(t,s,r,u),Or=!1;var f=t.memoizedState;s.state=f,Tc(t,r,s,i),l=t.memoizedState,o!==r||f!==l||Yt.current||Or?(typeof c=="function"&&(em(t,n,c,r),l=t.memoizedState),(o=Or||Lx(t,n,o,r,f,l,u))?(d||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),s.props=r,s.state=l,s.context=u,r=o):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,OD(e,t),o=t.memoizedProps,u=t.type===t.elementType?o:Pn(t.type,o),s.props=u,d=t.pendingProps,f=s.context,l=n.contextType,typeof l=="object"&&l!==null?l=_n(l):(l=qt(n)?Xi:kt.current,l=fs(t,l));var h=n.getDerivedStateFromProps;(c=typeof h=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(o!==d||f!==l)&&Nx(t,s,r,l),Or=!1,f=t.memoizedState,s.state=f,Tc(t,r,s,i);var p=t.memoizedState;o!==d||f!==p||Yt.current||Or?(typeof h=="function"&&(em(t,n,h,r),p=t.memoizedState),(u=Or||Lx(t,n,u,r,f,p,l)||!1)?(c||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,p,l),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,p,l)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),s.props=r,s.state=p,s.context=l,r=u):(typeof s.componentDidUpdate!="function"||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return im(e,t,n,r,a,i)}function im(e,t,n,r,i,a){o_(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return i&&Tx(t,n,!1),wr(e,t,a);r=t.stateNode,TF.current=t;var o=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=ps(t,e.child,null,a),t.child=ps(t,null,o,a)):Tt(e,t,o,a),t.memoizedState=r.state,i&&Tx(t,n,!0),t.child}function l_(e){var t=e.stateNode;t.pendingContext?Px(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Px(e,t.context,!1),F3(e,t.containerInfo)}function Kx(e,t,n,r,i){return hs(),C3(i),t.flags|=256,Tt(e,t,n,r),t.child}var am={dehydrated:null,treeContext:null,retryLane:0};function sm(e){return{baseLanes:e,cachePool:null,transitions:null}}function u_(e,t,n){var r=t.pendingProps,i=Ie.current,a=!1,s=(t.flags&128)!==0,o;if((o=s)||(o=e!==null&&e.memoizedState===null?!1:(i&2)!==0),o?(a=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),Ee(Ie,i&1),e===null)return Qp(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=r.children,e=r.fallback,a?(r=t.mode,a=t.child,s={mode:"hidden",children:s},!(r&1)&&a!==null?(a.childLanes=0,a.pendingProps=s):a=cf(s,r,0,null),e=Yi(e,r,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=sm(n),t.memoizedState=am,e):z3(t,s));if(i=e.memoizedState,i!==null&&(o=i.dehydrated,o!==null))return RF(e,t,s,r,o,i,n);if(a){a=r.fallback,s=t.mode,i=e.child,o=i.sibling;var l={mode:"hidden",children:r.children};return!(s&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=ni(i,l),r.subtreeFlags=i.subtreeFlags&14680064),o!==null?a=ni(o,a):(a=Yi(a,s,n,null),a.flags|=2),a.return=t,r.return=t,r.sibling=a,t.child=r,r=a,a=t.child,s=e.child.memoizedState,s=s===null?sm(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},a.memoizedState=s,a.childLanes=e.childLanes&~n,t.memoizedState=am,r}return a=e.child,e=a.sibling,r=ni(a,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function z3(e,t){return t=cf({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function au(e,t,n,r){return r!==null&&C3(r),ps(t,e.child,null,n),e=z3(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function RF(e,t,n,r,i,a,s){if(n)return t.flags&256?(t.flags&=-257,r=vh(Error(L(422))),au(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(a=r.fallback,i=t.mode,r=cf({mode:"visible",children:r.children},i,0,null),a=Yi(a,i,s,null),a.flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,t.mode&1&&ps(t,e.child,null,s),t.child.memoizedState=sm(s),t.memoizedState=am,a);if(!(t.mode&1))return au(e,t,s,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var o=r.dgst;return r=o,a=Error(L(419)),r=vh(a,r,void 0),au(e,t,s,r)}if(o=(s&e.childLanes)!==0,Kt||o){if(r=ft,r!==null){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|s)?0:i,i!==0&&i!==a.retryLane&&(a.retryLane=i,xr(e,i),Bn(r,e,i,-1))}return Y3(),r=vh(Error(L(421))),au(e,t,s,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=UF.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,rn=Qr(i.nextSibling),sn=t,Ae=!0,Mn=null,e!==null&&(gn[vn++]=dr,gn[vn++]=fr,gn[vn++]=Qi,dr=e.id,fr=e.overflow,Qi=t),t=z3(t,r.children),t.flags|=4096,t)}function Yx(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Jp(e.return,t,n)}function bh(e,t,n,r,i){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i)}function c_(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(Tt(e,t,r.children,n),r=Ie.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Yx(e,n,t);else if(e.tag===19)Yx(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Ee(Ie,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Rc(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),bh(t,!1,i,n,a);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Rc(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}bh(t,!0,n,null,a);break;case"together":bh(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ju(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function wr(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ea|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(L(153));if(t.child!==null){for(e=t.child,n=ni(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ni(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function MF(e,t,n){switch(t.tag){case 3:l_(t),hs();break;case 5:BD(t);break;case 1:qt(t.type)&&Ec(t);break;case 4:F3(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Ee(kc,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Ee(Ie,Ie.current&1),t.flags|=128,null):n&t.child.childLanes?u_(e,t,n):(Ee(Ie,Ie.current&1),e=wr(e,t,n),e!==null?e.sibling:null);Ee(Ie,Ie.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return c_(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Ee(Ie,Ie.current),r)break;return null;case 22:case 23:return t.lanes=0,s_(e,t,n)}return wr(e,t,n)}var d_,om,f_,h_;d_=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};om=function(){};f_=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,zi(Gn.current);var a=null;switch(n){case"input":i=Pp(e,i),r=Pp(e,r),a=[];break;case"select":i=Ne({},i,{value:void 0}),r=Ne({},r,{value:void 0}),a=[];break;case"textarea":i=Mp(e,i),r=Mp(e,r),a=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Dc)}Ap(n,r);var s;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var o=i[u];for(s in o)o.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Vo.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in r){var l=r[u];if(o=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&l!==o&&(l!=null||o!=null))if(u==="style")if(o){for(s in o)!o.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in l)l.hasOwnProperty(s)&&o[s]!==l[s]&&(n||(n={}),n[s]=l[s])}else n||(a||(a=[]),a.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,o=o?o.__html:void 0,l!=null&&o!==l&&(a=a||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(a=a||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Vo.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&ke("scroll",e),a||o===l||(a=[])):(a=a||[]).push(u,l))}n&&(a=a||[]).push("style",n);var u=a;(t.updateQueue=u)&&(t.flags|=4)}};h_=function(e,t,n,r){n!==r&&(t.flags|=4)};function zs(e,t){if(!Ae)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function xt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function FF(e,t,n){var r=t.pendingProps;switch(S3(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return xt(t),null;case 1:return qt(t.type)&&_c(),xt(t),null;case 3:return r=t.stateNode,ms(),Pe(Yt),Pe(kt),O3(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(ru(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Mn!==null&&(mm(Mn),Mn=null))),om(e,t),xt(t),null;case 5:A3(t);var i=zi(el.current);if(n=t.type,e!==null&&t.stateNode!=null)f_(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(L(166));return xt(t),null}if(e=zi(Gn.current),ru(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[Kn]=t,r[Qo]=a,e=(t.mode&1)!==0,n){case"dialog":ke("cancel",r),ke("close",r);break;case"iframe":case"object":case"embed":ke("load",r);break;case"video":case"audio":for(i=0;i<uo.length;i++)ke(uo[i],r);break;case"source":ke("error",r);break;case"img":case"image":case"link":ke("error",r),ke("load",r);break;case"details":ke("toggle",r);break;case"input":nx(r,a),ke("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},ke("invalid",r);break;case"textarea":ix(r,a),ke("invalid",r)}Ap(n,a),i=null;for(var s in a)if(a.hasOwnProperty(s)){var o=a[s];s==="children"?typeof o=="string"?r.textContent!==o&&(a.suppressHydrationWarning!==!0&&nu(r.textContent,o,e),i=["children",o]):typeof o=="number"&&r.textContent!==""+o&&(a.suppressHydrationWarning!==!0&&nu(r.textContent,o,e),i=["children",""+o]):Vo.hasOwnProperty(s)&&o!=null&&s==="onScroll"&&ke("scroll",r)}switch(n){case"input":ql(r),rx(r,a,!0);break;case"textarea":ql(r),ax(r);break;case"select":case"option":break;default:typeof a.onClick=="function"&&(r.onclick=Dc)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=zw(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Kn]=t,e[Qo]=r,d_(e,t,!1,!1),t.stateNode=e;e:{switch(s=Op(n,r),n){case"dialog":ke("cancel",e),ke("close",e),i=r;break;case"iframe":case"object":case"embed":ke("load",e),i=r;break;case"video":case"audio":for(i=0;i<uo.length;i++)ke(uo[i],e);i=r;break;case"source":ke("error",e),i=r;break;case"img":case"image":case"link":ke("error",e),ke("load",e),i=r;break;case"details":ke("toggle",e),i=r;break;case"input":nx(e,r),i=Pp(e,r),ke("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=Ne({},r,{value:void 0}),ke("invalid",e);break;case"textarea":ix(e,r),i=Mp(e,r),ke("invalid",e);break;default:i=r}Ap(n,i),o=i;for(a in o)if(o.hasOwnProperty(a)){var l=o[a];a==="style"?Uw(e,l):a==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Vw(e,l)):a==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Wo(e,l):typeof l=="number"&&Wo(e,""+l):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(Vo.hasOwnProperty(a)?l!=null&&a==="onScroll"&&ke("scroll",e):l!=null&&d3(e,a,l,s))}switch(n){case"input":ql(e),rx(e,r,!1);break;case"textarea":ql(e),ax(e);break;case"option":r.value!=null&&e.setAttribute("value",""+ai(r.value));break;case"select":e.multiple=!!r.multiple,a=r.value,a!=null?Ga(e,!!r.multiple,a,!1):r.defaultValue!=null&&Ga(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Dc)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return xt(t),null;case 6:if(e&&t.stateNode!=null)h_(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(L(166));if(n=zi(el.current),zi(Gn.current),ru(t)){if(r=t.stateNode,n=t.memoizedProps,r[Kn]=t,(a=r.nodeValue!==n)&&(e=sn,e!==null))switch(e.tag){case 3:nu(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&nu(r.nodeValue,n,(e.mode&1)!==0)}a&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Kn]=t,t.stateNode=r}return xt(t),null;case 13:if(Pe(Ie),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ae&&rn!==null&&t.mode&1&&!(t.flags&128))RD(),hs(),t.flags|=98560,a=!1;else if(a=ru(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(L(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(L(317));a[Kn]=t}else hs(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;xt(t),a=!1}else Mn!==null&&(mm(Mn),Mn=null),a=!0;if(!a)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||Ie.current&1?rt===0&&(rt=3):Y3())),t.updateQueue!==null&&(t.flags|=4),xt(t),null);case 4:return ms(),om(e,t),e===null&&Zo(t.stateNode.containerInfo),xt(t),null;case 10:return T3(t.type._context),xt(t),null;case 17:return qt(t.type)&&_c(),xt(t),null;case 19:if(Pe(Ie),a=t.memoizedState,a===null)return xt(t),null;if(r=(t.flags&128)!==0,s=a.rendering,s===null)if(r)zs(a,!1);else{if(rt!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=Rc(e),s!==null){for(t.flags|=128,zs(a,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)a=n,e=r,a.flags&=14680066,s=a.alternate,s===null?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=s.childLanes,a.lanes=s.lanes,a.child=s.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=s.memoizedProps,a.memoizedState=s.memoizedState,a.updateQueue=s.updateQueue,a.type=s.type,e=s.dependencies,a.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ee(Ie,Ie.current&1|2),t.child}e=e.sibling}a.tail!==null&&Ye()>vs&&(t.flags|=128,r=!0,zs(a,!1),t.lanes=4194304)}else{if(!r)if(e=Rc(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),zs(a,!0),a.tail===null&&a.tailMode==="hidden"&&!s.alternate&&!Ae)return xt(t),null}else 2*Ye()-a.renderingStartTime>vs&&n!==1073741824&&(t.flags|=128,r=!0,zs(a,!1),t.lanes=4194304);a.isBackwards?(s.sibling=t.child,t.child=s):(n=a.last,n!==null?n.sibling=s:t.child=s,a.last=s)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Ye(),t.sibling=null,n=Ie.current,Ee(Ie,r?n&1|2:n&1),t):(xt(t),null);case 22:case 23:return K3(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?tn&1073741824&&(xt(t),t.subtreeFlags&6&&(t.flags|=8192)):xt(t),null;case 24:return null;case 25:return null}throw Error(L(156,t.tag))}function AF(e,t){switch(S3(t),t.tag){case 1:return qt(t.type)&&_c(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ms(),Pe(Yt),Pe(kt),O3(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return A3(t),null;case 13:if(Pe(Ie),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(L(340));hs()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Pe(Ie),null;case 4:return ms(),null;case 10:return T3(t.type._context),null;case 22:case 23:return K3(),null;case 24:return null;default:return null}}var su=!1,Et=!1,OF=typeof WeakSet=="function"?WeakSet:Set,U=null;function Ua(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ze(e,t,r)}else n.current=null}function lm(e,t,n){try{n()}catch(r){ze(e,t,r)}}var qx=!1;function BF(e,t){if(Hp=$c,e=bD(),_3(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var s=0,o=-1,l=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var h;d!==n||i!==0&&d.nodeType!==3||(o=s+i),d!==a||r!==0&&d.nodeType!==3||(l=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(h=d.firstChild)!==null;)f=d,d=h;for(;;){if(d===e)break t;if(f===n&&++u===i&&(o=s),f===a&&++c===r&&(l=s),(h=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=h}n=o===-1||l===-1?null:{start:o,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Kp={focusedElem:e,selectionRange:n},$c=!1,U=t;U!==null;)if(t=U,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,U=e;else for(;U!==null;){t=U;try{var p=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var g=p.memoizedProps,b=p.memoizedState,v=t.stateNode,m=v.getSnapshotBeforeUpdate(t.elementType===t.type?g:Pn(t.type,g),b);v.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var $=t.stateNode.containerInfo;$.nodeType===1?$.textContent="":$.nodeType===9&&$.documentElement&&$.removeChild($.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(L(163))}}catch(w){ze(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,U=e;break}U=t.return}return p=qx,qx=!1,p}function Po(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&lm(t,n,a)}i=i.next}while(i!==r)}}function lf(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function um(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function p_(e){var t=e.alternate;t!==null&&(e.alternate=null,p_(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Kn],delete t[Qo],delete t[Gp],delete t[bF],delete t[yF])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function m_(e){return e.tag===5||e.tag===3||e.tag===4}function Gx(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||m_(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function cm(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Dc));else if(r!==4&&(e=e.child,e!==null))for(cm(e,t,n),e=e.sibling;e!==null;)cm(e,t,n),e=e.sibling}function dm(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(dm(e,t,n),e=e.sibling;e!==null;)dm(e,t,n),e=e.sibling}var ht=null,Tn=!1;function kr(e,t,n){for(n=n.child;n!==null;)g_(e,t,n),n=n.sibling}function g_(e,t,n){if(qn&&typeof qn.onCommitFiberUnmount=="function")try{qn.onCommitFiberUnmount(Jd,n)}catch{}switch(n.tag){case 5:Et||Ua(n,t);case 6:var r=ht,i=Tn;ht=null,kr(e,t,n),ht=r,Tn=i,ht!==null&&(Tn?(e=ht,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ht.removeChild(n.stateNode));break;case 18:ht!==null&&(Tn?(e=ht,n=n.stateNode,e.nodeType===8?dh(e.parentNode,n):e.nodeType===1&&dh(e,n),Yo(e)):dh(ht,n.stateNode));break;case 4:r=ht,i=Tn,ht=n.stateNode.containerInfo,Tn=!0,kr(e,t,n),ht=r,Tn=i;break;case 0:case 11:case 14:case 15:if(!Et&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,s=a.destroy;a=a.tag,s!==void 0&&(a&2||a&4)&&lm(n,t,s),i=i.next}while(i!==r)}kr(e,t,n);break;case 1:if(!Et&&(Ua(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(o){ze(n,t,o)}kr(e,t,n);break;case 21:kr(e,t,n);break;case 22:n.mode&1?(Et=(r=Et)||n.memoizedState!==null,kr(e,t,n),Et=r):kr(e,t,n);break;default:kr(e,t,n)}}function Zx(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new OF),t.forEach(function(r){var i=HF.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Cn(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var a=e,s=t,o=s;e:for(;o!==null;){switch(o.tag){case 5:ht=o.stateNode,Tn=!1;break e;case 3:ht=o.stateNode.containerInfo,Tn=!0;break e;case 4:ht=o.stateNode.containerInfo,Tn=!0;break e}o=o.return}if(ht===null)throw Error(L(160));g_(a,s,i),ht=null,Tn=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(u){ze(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)v_(t,e),t=t.sibling}function v_(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Cn(t,e),Vn(e),r&4){try{Po(3,e,e.return),lf(3,e)}catch(g){ze(e,e.return,g)}try{Po(5,e,e.return)}catch(g){ze(e,e.return,g)}}break;case 1:Cn(t,e),Vn(e),r&512&&n!==null&&Ua(n,n.return);break;case 5:if(Cn(t,e),Vn(e),r&512&&n!==null&&Ua(n,n.return),e.flags&32){var i=e.stateNode;try{Wo(i,"")}catch(g){ze(e,e.return,g)}}if(r&4&&(i=e.stateNode,i!=null)){var a=e.memoizedProps,s=n!==null?n.memoizedProps:a,o=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{o==="input"&&a.type==="radio"&&a.name!=null&&Nw(i,a),Op(o,s);var u=Op(o,a);for(s=0;s<l.length;s+=2){var c=l[s],d=l[s+1];c==="style"?Uw(i,d):c==="dangerouslySetInnerHTML"?Vw(i,d):c==="children"?Wo(i,d):d3(i,c,d,u)}switch(o){case"input":Tp(i,a);break;case"textarea":jw(i,a);break;case"select":var f=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var h=a.value;h!=null?Ga(i,!!a.multiple,h,!1):f!==!!a.multiple&&(a.defaultValue!=null?Ga(i,!!a.multiple,a.defaultValue,!0):Ga(i,!!a.multiple,a.multiple?[]:"",!1))}i[Qo]=a}catch(g){ze(e,e.return,g)}}break;case 6:if(Cn(t,e),Vn(e),r&4){if(e.stateNode===null)throw Error(L(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(g){ze(e,e.return,g)}}break;case 3:if(Cn(t,e),Vn(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Yo(t.containerInfo)}catch(g){ze(e,e.return,g)}break;case 4:Cn(t,e),Vn(e);break;case 13:Cn(t,e),Vn(e),i=e.child,i.flags&8192&&(a=i.memoizedState!==null,i.stateNode.isHidden=a,!a||i.alternate!==null&&i.alternate.memoizedState!==null||(U3=Ye())),r&4&&Zx(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(Et=(u=Et)||c,Cn(t,e),Et=u):Cn(t,e),Vn(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(U=e,c=e.child;c!==null;){for(d=U=c;U!==null;){switch(f=U,h=f.child,f.tag){case 0:case 11:case 14:case 15:Po(4,f,f.return);break;case 1:Ua(f,f.return);var p=f.stateNode;if(typeof p.componentWillUnmount=="function"){r=f,n=f.return;try{t=r,p.props=t.memoizedProps,p.state=t.memoizedState,p.componentWillUnmount()}catch(g){ze(r,n,g)}}break;case 5:Ua(f,f.return);break;case 22:if(f.memoizedState!==null){Qx(d);continue}}h!==null?(h.return=f,U=h):Qx(d)}c=c.sibling}e:for(c=null,d=e;;){if(d.tag===5){if(c===null){c=d;try{i=d.stateNode,u?(a=i.style,typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none"):(o=d.stateNode,l=d.memoizedProps.style,s=l!=null&&l.hasOwnProperty("display")?l.display:null,o.style.display=Ww("display",s))}catch(g){ze(e,e.return,g)}}}else if(d.tag===6){if(c===null)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(g){ze(e,e.return,g)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:Cn(t,e),Vn(e),r&4&&Zx(e);break;case 21:break;default:Cn(t,e),Vn(e)}}function Vn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(m_(n)){var r=n;break e}n=n.return}throw Error(L(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(Wo(i,""),r.flags&=-33);var a=Gx(e);dm(e,a,i);break;case 3:case 4:var s=r.stateNode.containerInfo,o=Gx(e);cm(e,o,s);break;default:throw Error(L(161))}}catch(l){ze(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function IF(e,t,n){U=e,b_(e)}function b_(e,t,n){for(var r=(e.mode&1)!==0;U!==null;){var i=U,a=i.child;if(i.tag===22&&r){var s=i.memoizedState!==null||su;if(!s){var o=i.alternate,l=o!==null&&o.memoizedState!==null||Et;o=su;var u=Et;if(su=s,(Et=l)&&!u)for(U=i;U!==null;)s=U,l=s.child,s.tag===22&&s.memoizedState!==null?Jx(i):l!==null?(l.return=s,U=l):Jx(i);for(;a!==null;)U=a,b_(a),a=a.sibling;U=i,su=o,Et=u}Xx(e)}else i.subtreeFlags&8772&&a!==null?(a.return=i,U=a):Xx(e)}}function Xx(e){for(;U!==null;){var t=U;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Et||lf(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Et)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:Pn(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;a!==null&&Ox(t,a,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Ox(t,s,n)}break;case 5:var o=t.stateNode;if(n===null&&t.flags&4){n=o;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var d=c.dehydrated;d!==null&&Yo(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(L(163))}Et||t.flags&512&&um(t)}catch(f){ze(t,t.return,f)}}if(t===e){U=null;break}if(n=t.sibling,n!==null){n.return=t.return,U=n;break}U=t.return}}function Qx(e){for(;U!==null;){var t=U;if(t===e){U=null;break}var n=t.sibling;if(n!==null){n.return=t.return,U=n;break}U=t.return}}function Jx(e){for(;U!==null;){var t=U;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{lf(4,t)}catch(l){ze(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(l){ze(t,i,l)}}var a=t.return;try{um(t)}catch(l){ze(t,a,l)}break;case 5:var s=t.return;try{um(t)}catch(l){ze(t,s,l)}}}catch(l){ze(t,t.return,l)}if(t===e){U=null;break}var o=t.sibling;if(o!==null){o.return=t.return,U=o;break}U=t.return}}var LF=Math.ceil,Ac=Dr.ReactCurrentDispatcher,V3=Dr.ReactCurrentOwner,wn=Dr.ReactCurrentBatchConfig,ue=0,ft=null,Xe=null,mt=0,tn=0,Ha=hi(0),rt=0,il=null,ea=0,uf=0,W3=0,To=null,Wt=null,U3=0,vs=1/0,or=null,Oc=!1,fm=null,ei=null,ou=!1,Vr=null,Bc=0,Ro=0,hm=null,ec=-1,tc=0;function Mt(){return ue&6?Ye():ec!==-1?ec:ec=Ye()}function ti(e){return e.mode&1?ue&2&&mt!==0?mt&-mt:xF.transition!==null?(tc===0&&(tc=nD()),tc):(e=ge,e!==0||(e=window.event,e=e===void 0?16:uD(e.type)),e):1}function Bn(e,t,n,r){if(50<Ro)throw Ro=0,hm=null,Error(L(185));Pl(e,n,r),(!(ue&2)||e!==ft)&&(e===ft&&(!(ue&2)&&(uf|=n),rt===4&&Nr(e,mt)),Gt(e,r),n===1&&ue===0&&!(t.mode&1)&&(vs=Ye()+500,af&&pi()))}function Gt(e,t){var n=e.callbackNode;xM(e,t);var r=yc(e,e===ft?mt:0);if(r===0)n!==null&&lx(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&lx(n),t===1)e.tag===0?$F(e2.bind(null,e)):kD(e2.bind(null,e)),gF(function(){!(ue&6)&&pi()}),n=null;else{switch(rD(r)){case 1:n=g3;break;case 4:n=eD;break;case 16:n=bc;break;case 536870912:n=tD;break;default:n=bc}n=S_(n,y_.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function y_(e,t){if(ec=-1,tc=0,ue&6)throw Error(L(327));var n=e.callbackNode;if(es()&&e.callbackNode!==n)return null;var r=yc(e,e===ft?mt:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Ic(e,r);else{t=r;var i=ue;ue|=2;var a=x_();(ft!==e||mt!==t)&&(or=null,vs=Ye()+500,Ki(e,t));do try{zF();break}catch(o){$_(e,o)}while(!0);P3(),Ac.current=a,ue=i,Xe!==null?t=0:(ft=null,mt=0,t=rt)}if(t!==0){if(t===2&&(i=jp(e),i!==0&&(r=i,t=pm(e,i))),t===1)throw n=il,Ki(e,0),Nr(e,r),Gt(e,Ye()),n;if(t===6)Nr(e,r);else{if(i=e.current.alternate,!(r&30)&&!NF(i)&&(t=Ic(e,r),t===2&&(a=jp(e),a!==0&&(r=a,t=pm(e,a))),t===1))throw n=il,Ki(e,0),Nr(e,r),Gt(e,Ye()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(L(345));case 2:ki(e,Wt,or);break;case 3:if(Nr(e,r),(r&130023424)===r&&(t=U3+500-Ye(),10<t)){if(yc(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Mt(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=qp(ki.bind(null,e,Wt,or),t);break}ki(e,Wt,or);break;case 4:if(Nr(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-On(r);a=1<<s,s=t[s],s>i&&(i=s),r&=~a}if(r=i,r=Ye()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*LF(r/1960))-r,10<r){e.timeoutHandle=qp(ki.bind(null,e,Wt,or),r);break}ki(e,Wt,or);break;case 5:ki(e,Wt,or);break;default:throw Error(L(329))}}}return Gt(e,Ye()),e.callbackNode===n?y_.bind(null,e):null}function pm(e,t){var n=To;return e.current.memoizedState.isDehydrated&&(Ki(e,t).flags|=256),e=Ic(e,t),e!==2&&(t=Wt,Wt=n,t!==null&&mm(t)),e}function mm(e){Wt===null?Wt=e:Wt.push.apply(Wt,e)}function NF(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!Ln(a(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Nr(e,t){for(t&=~W3,t&=~uf,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-On(t),r=1<<n;e[n]=-1,t&=~r}}function e2(e){if(ue&6)throw Error(L(327));es();var t=yc(e,0);if(!(t&1))return Gt(e,Ye()),null;var n=Ic(e,t);if(e.tag!==0&&n===2){var r=jp(e);r!==0&&(t=r,n=pm(e,r))}if(n===1)throw n=il,Ki(e,0),Nr(e,t),Gt(e,Ye()),n;if(n===6)throw Error(L(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,ki(e,Wt,or),Gt(e,Ye()),null}function H3(e,t){var n=ue;ue|=1;try{return e(t)}finally{ue=n,ue===0&&(vs=Ye()+500,af&&pi())}}function ta(e){Vr!==null&&Vr.tag===0&&!(ue&6)&&es();var t=ue;ue|=1;var n=wn.transition,r=ge;try{if(wn.transition=null,ge=1,e)return e()}finally{ge=r,wn.transition=n,ue=t,!(ue&6)&&pi()}}function K3(){tn=Ha.current,Pe(Ha)}function Ki(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,mF(n)),Xe!==null)for(n=Xe.return;n!==null;){var r=n;switch(S3(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&_c();break;case 3:ms(),Pe(Yt),Pe(kt),O3();break;case 5:A3(r);break;case 4:ms();break;case 13:Pe(Ie);break;case 19:Pe(Ie);break;case 10:T3(r.type._context);break;case 22:case 23:K3()}n=n.return}if(ft=e,Xe=e=ni(e.current,null),mt=tn=t,rt=0,il=null,W3=uf=ea=0,Wt=To=null,ji!==null){for(t=0;t<ji.length;t++)if(n=ji[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,a=n.pending;if(a!==null){var s=a.next;a.next=i,r.next=s}n.pending=r}ji=null}return e}function $_(e,t){do{var n=Xe;try{if(P3(),Xu.current=Fc,Mc){for(var r=Le.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Mc=!1}if(Ji=0,ct=nt=Le=null,ko=!1,tl=0,V3.current=null,n===null||n.return===null){rt=1,il=t,Xe=null;break}e:{var a=e,s=n.return,o=n,l=t;if(t=mt,o.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,c=o,d=c.tag;if(!(c.mode&1)&&(d===0||d===11||d===15)){var f=c.alternate;f?(c.updateQueue=f.updateQueue,c.memoizedState=f.memoizedState,c.lanes=f.lanes):(c.updateQueue=null,c.memoizedState=null)}var h=zx(s);if(h!==null){h.flags&=-257,Vx(h,s,o,a,t),h.mode&1&&jx(a,u,t),t=h,l=u;var p=t.updateQueue;if(p===null){var g=new Set;g.add(l),t.updateQueue=g}else p.add(l);break e}else{if(!(t&1)){jx(a,u,t),Y3();break e}l=Error(L(426))}}else if(Ae&&o.mode&1){var b=zx(s);if(b!==null){!(b.flags&65536)&&(b.flags|=256),Vx(b,s,o,a,t),C3(gs(l,o));break e}}a=l=gs(l,o),rt!==4&&(rt=2),To===null?To=[a]:To.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t;var v=r_(a,l,t);Ax(a,v);break e;case 1:o=l;var m=a.type,$=a.stateNode;if(!(a.flags&128)&&(typeof m.getDerivedStateFromError=="function"||$!==null&&typeof $.componentDidCatch=="function"&&(ei===null||!ei.has($)))){a.flags|=65536,t&=-t,a.lanes|=t;var w=i_(a,o,t);Ax(a,w);break e}}a=a.return}while(a!==null)}D_(n)}catch(D){t=D,Xe===n&&n!==null&&(Xe=n=n.return);continue}break}while(!0)}function x_(){var e=Ac.current;return Ac.current=Fc,e===null?Fc:e}function Y3(){(rt===0||rt===3||rt===2)&&(rt=4),ft===null||!(ea&268435455)&&!(uf&268435455)||Nr(ft,mt)}function Ic(e,t){var n=ue;ue|=2;var r=x_();(ft!==e||mt!==t)&&(or=null,Ki(e,t));do try{jF();break}catch(i){$_(e,i)}while(!0);if(P3(),ue=n,Ac.current=r,Xe!==null)throw Error(L(261));return ft=null,mt=0,rt}function jF(){for(;Xe!==null;)w_(Xe)}function zF(){for(;Xe!==null&&!fM();)w_(Xe)}function w_(e){var t=E_(e.alternate,e,tn);e.memoizedProps=e.pendingProps,t===null?D_(e):Xe=t,V3.current=null}function D_(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=AF(n,t),n!==null){n.flags&=32767,Xe=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{rt=6,Xe=null;return}}else if(n=FF(n,t,tn),n!==null){Xe=n;return}if(t=t.sibling,t!==null){Xe=t;return}Xe=t=e}while(t!==null);rt===0&&(rt=5)}function ki(e,t,n){var r=ge,i=wn.transition;try{wn.transition=null,ge=1,VF(e,t,n,r)}finally{wn.transition=i,ge=r}return null}function VF(e,t,n,r){do es();while(Vr!==null);if(ue&6)throw Error(L(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(L(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(wM(e,a),e===ft&&(Xe=ft=null,mt=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||ou||(ou=!0,S_(bc,function(){return es(),null})),a=(n.flags&15990)!==0,n.subtreeFlags&15990||a){a=wn.transition,wn.transition=null;var s=ge;ge=1;var o=ue;ue|=4,V3.current=null,BF(e,n),v_(n,e),lF(Kp),$c=!!Hp,Kp=Hp=null,e.current=n,IF(n),hM(),ue=o,ge=s,wn.transition=a}else e.current=n;if(ou&&(ou=!1,Vr=e,Bc=i),a=e.pendingLanes,a===0&&(ei=null),gM(n.stateNode),Gt(e,Ye()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Oc)throw Oc=!1,e=fm,fm=null,e;return Bc&1&&e.tag!==0&&es(),a=e.pendingLanes,a&1?e===hm?Ro++:(Ro=0,hm=e):Ro=0,pi(),null}function es(){if(Vr!==null){var e=rD(Bc),t=wn.transition,n=ge;try{if(wn.transition=null,ge=16>e?16:e,Vr===null)var r=!1;else{if(e=Vr,Vr=null,Bc=0,ue&6)throw Error(L(331));var i=ue;for(ue|=4,U=e.current;U!==null;){var a=U,s=a.child;if(U.flags&16){var o=a.deletions;if(o!==null){for(var l=0;l<o.length;l++){var u=o[l];for(U=u;U!==null;){var c=U;switch(c.tag){case 0:case 11:case 15:Po(8,c,a)}var d=c.child;if(d!==null)d.return=c,U=d;else for(;U!==null;){c=U;var f=c.sibling,h=c.return;if(p_(c),c===u){U=null;break}if(f!==null){f.return=h,U=f;break}U=h}}}var p=a.alternate;if(p!==null){var g=p.child;if(g!==null){p.child=null;do{var b=g.sibling;g.sibling=null,g=b}while(g!==null)}}U=a}}if(a.subtreeFlags&2064&&s!==null)s.return=a,U=s;else e:for(;U!==null;){if(a=U,a.flags&2048)switch(a.tag){case 0:case 11:case 15:Po(9,a,a.return)}var v=a.sibling;if(v!==null){v.return=a.return,U=v;break e}U=a.return}}var m=e.current;for(U=m;U!==null;){s=U;var $=s.child;if(s.subtreeFlags&2064&&$!==null)$.return=s,U=$;else e:for(s=m;U!==null;){if(o=U,o.flags&2048)try{switch(o.tag){case 0:case 11:case 15:lf(9,o)}}catch(D){ze(o,o.return,D)}if(o===s){U=null;break e}var w=o.sibling;if(w!==null){w.return=o.return,U=w;break e}U=o.return}}if(ue=i,pi(),qn&&typeof qn.onPostCommitFiberRoot=="function")try{qn.onPostCommitFiberRoot(Jd,e)}catch{}r=!0}return r}finally{ge=n,wn.transition=t}}return!1}function t2(e,t,n){t=gs(n,t),t=r_(e,t,1),e=Jr(e,t,1),t=Mt(),e!==null&&(Pl(e,1,t),Gt(e,t))}function ze(e,t,n){if(e.tag===3)t2(e,e,n);else for(;t!==null;){if(t.tag===3){t2(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(ei===null||!ei.has(r))){e=gs(n,e),e=i_(t,e,1),t=Jr(t,e,1),e=Mt(),t!==null&&(Pl(t,1,e),Gt(t,e));break}}t=t.return}}function WF(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Mt(),e.pingedLanes|=e.suspendedLanes&n,ft===e&&(mt&n)===n&&(rt===4||rt===3&&(mt&130023424)===mt&&500>Ye()-U3?Ki(e,0):W3|=n),Gt(e,t)}function __(e,t){t===0&&(e.mode&1?(t=Xl,Xl<<=1,!(Xl&130023424)&&(Xl=4194304)):t=1);var n=Mt();e=xr(e,t),e!==null&&(Pl(e,t,n),Gt(e,n))}function UF(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),__(e,n)}function HF(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(L(314))}r!==null&&r.delete(t),__(e,n)}var E_;E_=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Yt.current)Kt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Kt=!1,MF(e,t,n);Kt=!!(e.flags&131072)}else Kt=!1,Ae&&t.flags&1048576&&PD(t,Cc,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ju(e,t),e=t.pendingProps;var i=fs(t,kt.current);Ja(t,n),i=I3(null,t,r,e,i,n);var a=L3();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,qt(r)?(a=!0,Ec(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,M3(t),i.updater=of,t.stateNode=i,i._reactInternals=t,tm(t,r,e,n),t=im(null,t,r,!0,a,n)):(t.tag=0,Ae&&a&&E3(t),Tt(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ju(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=YF(r),e=Pn(r,e),i){case 0:t=rm(null,t,r,e,n);break e;case 1:t=Hx(null,t,r,e,n);break e;case 11:t=Wx(null,t,r,e,n);break e;case 14:t=Ux(null,t,r,Pn(r.type,e),n);break e}throw Error(L(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Pn(r,i),rm(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Pn(r,i),Hx(e,t,r,i,n);case 3:e:{if(l_(t),e===null)throw Error(L(387));r=t.pendingProps,a=t.memoizedState,i=a.element,OD(e,t),Tc(t,r,null,n);var s=t.memoizedState;if(r=s.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=gs(Error(L(423)),t),t=Kx(e,t,r,n,i);break e}else if(r!==i){i=gs(Error(L(424)),t),t=Kx(e,t,r,n,i);break e}else for(rn=Qr(t.stateNode.containerInfo.firstChild),sn=t,Ae=!0,Mn=null,n=FD(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(hs(),r===i){t=wr(e,t,n);break e}Tt(e,t,r,n)}t=t.child}return t;case 5:return BD(t),e===null&&Qp(t),r=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,s=i.children,Yp(r,i)?s=null:a!==null&&Yp(r,a)&&(t.flags|=32),o_(e,t),Tt(e,t,s,n),t.child;case 6:return e===null&&Qp(t),null;case 13:return u_(e,t,n);case 4:return F3(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ps(t,null,r,n):Tt(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Pn(r,i),Wx(e,t,r,i,n);case 7:return Tt(e,t,t.pendingProps,n),t.child;case 8:return Tt(e,t,t.pendingProps.children,n),t.child;case 12:return Tt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,s=i.value,Ee(kc,r._currentValue),r._currentValue=s,a!==null)if(Ln(a.value,s)){if(a.children===i.children&&!Yt.current){t=wr(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var o=a.dependencies;if(o!==null){s=a.child;for(var l=o.firstContext;l!==null;){if(l.context===r){if(a.tag===1){l=br(-1,n&-n),l.tag=2;var u=a.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),Jp(a.return,n,t),o.lanes|=n;break}l=l.next}}else if(a.tag===10)s=a.type===t.type?null:a.child;else if(a.tag===18){if(s=a.return,s===null)throw Error(L(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),Jp(s,n,t),s=a.sibling}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===t){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}Tt(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Ja(t,n),i=_n(i),r=r(i),t.flags|=1,Tt(e,t,r,n),t.child;case 14:return r=t.type,i=Pn(r,t.pendingProps),i=Pn(r.type,i),Ux(e,t,r,i,n);case 15:return a_(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Pn(r,i),Ju(e,t),t.tag=1,qt(r)?(e=!0,Ec(t)):e=!1,Ja(t,n),n_(t,r,i),tm(t,r,i,n),im(null,t,r,!0,e,n);case 19:return c_(e,t,n);case 22:return s_(e,t,n)}throw Error(L(156,t.tag))};function S_(e,t){return Jw(e,t)}function KF(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function $n(e,t,n,r){return new KF(e,t,n,r)}function q3(e){return e=e.prototype,!(!e||!e.isReactComponent)}function YF(e){if(typeof e=="function")return q3(e)?1:0;if(e!=null){if(e=e.$$typeof,e===h3)return 11;if(e===p3)return 14}return 2}function ni(e,t){var n=e.alternate;return n===null?(n=$n(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function nc(e,t,n,r,i,a){var s=2;if(r=e,typeof e=="function")q3(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Oa:return Yi(n.children,i,a,t);case f3:s=8,i|=8;break;case Ep:return e=$n(12,n,t,i|2),e.elementType=Ep,e.lanes=a,e;case Sp:return e=$n(13,n,t,i),e.elementType=Sp,e.lanes=a,e;case Cp:return e=$n(19,n,t,i),e.elementType=Cp,e.lanes=a,e;case Bw:return cf(n,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Aw:s=10;break e;case Ow:s=9;break e;case h3:s=11;break e;case p3:s=14;break e;case Ar:s=16,r=null;break e}throw Error(L(130,e==null?e:typeof e,""))}return t=$n(s,n,t,i),t.elementType=e,t.type=r,t.lanes=a,t}function Yi(e,t,n,r){return e=$n(7,e,r,t),e.lanes=n,e}function cf(e,t,n,r){return e=$n(22,e,r,t),e.elementType=Bw,e.lanes=n,e.stateNode={isHidden:!1},e}function yh(e,t,n){return e=$n(6,e,null,t),e.lanes=n,e}function $h(e,t,n){return t=$n(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function qF(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=eh(0),this.expirationTimes=eh(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=eh(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function G3(e,t,n,r,i,a,s,o,l){return e=new qF(e,t,n,o,l),t===1?(t=1,a===!0&&(t|=8)):t=0,a=$n(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},M3(a),e}function GF(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Aa,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function C_(e){if(!e)return si;e=e._reactInternals;e:{if(da(e)!==e||e.tag!==1)throw Error(L(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(qt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(L(171))}if(e.tag===1){var n=e.type;if(qt(n))return CD(e,n,t)}return t}function k_(e,t,n,r,i,a,s,o,l){return e=G3(n,r,!0,e,i,a,s,o,l),e.context=C_(null),n=e.current,r=Mt(),i=ti(n),a=br(r,i),a.callback=t??null,Jr(n,a,i),e.current.lanes=i,Pl(e,i,r),Gt(e,r),e}function df(e,t,n,r){var i=t.current,a=Mt(),s=ti(i);return n=C_(n),t.context===null?t.context=n:t.pendingContext=n,t=br(a,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Jr(i,t,s),e!==null&&(Bn(e,i,s,a),Zu(e,i,s)),s}function Lc(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function n2(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Z3(e,t){n2(e,t),(e=e.alternate)&&n2(e,t)}function ZF(){return null}var P_=typeof reportError=="function"?reportError:function(e){console.error(e)};function X3(e){this._internalRoot=e}ff.prototype.render=X3.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(L(409));df(e,t,null,null)};ff.prototype.unmount=X3.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ta(function(){df(null,e,null,null)}),t[$r]=null}};function ff(e){this._internalRoot=e}ff.prototype.unstable_scheduleHydration=function(e){if(e){var t=sD();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Lr.length&&t!==0&&t<Lr[n].priority;n++);Lr.splice(n,0,e),n===0&&lD(e)}};function Q3(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function hf(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function r2(){}function XF(e,t,n,r,i){if(i){if(typeof r=="function"){var a=r;r=function(){var u=Lc(s);a.call(u)}}var s=k_(t,r,e,0,null,!1,!1,"",r2);return e._reactRootContainer=s,e[$r]=s.current,Zo(e.nodeType===8?e.parentNode:e),ta(),s}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var o=r;r=function(){var u=Lc(l);o.call(u)}}var l=G3(e,0,!1,null,null,!1,!1,"",r2);return e._reactRootContainer=l,e[$r]=l.current,Zo(e.nodeType===8?e.parentNode:e),ta(function(){df(t,l,n,r)}),l}function pf(e,t,n,r,i){var a=n._reactRootContainer;if(a){var s=a;if(typeof i=="function"){var o=i;i=function(){var l=Lc(s);o.call(l)}}df(t,s,e,i)}else s=XF(n,t,e,i,r);return Lc(s)}iD=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=lo(t.pendingLanes);n!==0&&(v3(t,n|1),Gt(t,Ye()),!(ue&6)&&(vs=Ye()+500,pi()))}break;case 13:ta(function(){var r=xr(e,1);if(r!==null){var i=Mt();Bn(r,e,1,i)}}),Z3(e,1)}};b3=function(e){if(e.tag===13){var t=xr(e,134217728);if(t!==null){var n=Mt();Bn(t,e,134217728,n)}Z3(e,134217728)}};aD=function(e){if(e.tag===13){var t=ti(e),n=xr(e,t);if(n!==null){var r=Mt();Bn(n,e,t,r)}Z3(e,t)}};sD=function(){return ge};oD=function(e,t){var n=ge;try{return ge=e,t()}finally{ge=n}};Ip=function(e,t,n){switch(t){case"input":if(Tp(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=rf(r);if(!i)throw Error(L(90));Lw(r),Tp(r,i)}}}break;case"textarea":jw(e,n);break;case"select":t=n.value,t!=null&&Ga(e,!!n.multiple,t,!1)}};Yw=H3;qw=ta;var QF={usingClientEntryPoint:!1,Events:[Rl,Na,rf,Hw,Kw,H3]},Vs={findFiberByHostInstance:Ni,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},JF={bundleType:Vs.bundleType,version:Vs.version,rendererPackageName:Vs.rendererPackageName,rendererConfig:Vs.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Dr.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Xw(e),e===null?null:e.stateNode},findFiberByHostInstance:Vs.findFiberByHostInstance||ZF,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var lu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!lu.isDisabled&&lu.supportsFiber)try{Jd=lu.inject(JF),qn=lu}catch{}}un.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=QF;un.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Q3(t))throw Error(L(200));return GF(e,t,null,n)};un.createRoot=function(e,t){if(!Q3(e))throw Error(L(299));var n=!1,r="",i=P_;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=G3(e,1,!1,null,null,n,!1,r,i),e[$r]=t.current,Zo(e.nodeType===8?e.parentNode:e),new X3(t)};un.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(L(188)):(e=Object.keys(e).join(","),Error(L(268,e)));return e=Xw(t),e=e===null?null:e.stateNode,e};un.flushSync=function(e){return ta(e)};un.hydrate=function(e,t,n){if(!hf(t))throw Error(L(200));return pf(null,e,t,!0,n)};un.hydrateRoot=function(e,t,n){if(!Q3(e))throw Error(L(405));var r=n!=null&&n.hydratedSources||null,i=!1,a="",s=P_;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(a=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=k_(t,null,e,1,n??null,i,!1,a,s),e[$r]=t.current,Zo(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new ff(t)};un.render=function(e,t,n){if(!hf(t))throw Error(L(200));return pf(null,e,t,!1,n)};un.unmountComponentAtNode=function(e){if(!hf(e))throw Error(L(40));return e._reactRootContainer?(ta(function(){pf(null,null,e,!1,function(){e._reactRootContainer=null,e[$r]=null})}),!0):!1};un.unstable_batchedUpdates=H3;un.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!hf(n))throw Error(L(200));if(e==null||e._reactInternals===void 0)throw Error(L(38));return pf(e,t,n,!1,r)};un.version="18.3.1-next-f1338f8080-20240426";function T_(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(T_)}catch(e){console.error(e)}}T_(),Tw.exports=un;var R_=Tw.exports;const co=bw(R_);var i2=R_;Dp.createRoot=i2.createRoot,Dp.hydrateRoot=i2.hydrateRoot;/**
+`+a.stack}return{value:e,source:t,stack:i,digest:null}}function vh(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function nm(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var TF=typeof WeakMap=="function"?WeakMap:Map;function r_(e,t,n){n=br(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Oc||(Oc=!0,fm=r),nm(e,t)},n}function i_(e,t,n){n=br(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){nm(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(n.callback=function(){nm(e,t),typeof r!="function"&&(ei===null?ei=new Set([this]):ei.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function jx(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new TF;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=UF.bind(null,e,t,n),t.then(e,e))}function zx(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Vx(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=br(-1,1),t.tag=2,Jr(n,t,1))),n.lanes|=1),e)}var RF=Dr.ReactCurrentOwner,Kt=!1;function Tt(e,t,n,r){t.child=e===null?FD(t,null,n,r):ps(t,e.child,n,r)}function Wx(e,t,n,r,i){n=n.render;var a=t.ref;return Ja(t,i),r=I3(e,t,n,r,a,i),n=L3(),e!==null&&!Kt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,wr(e,t,i)):(Ae&&n&&E3(t),t.flags|=1,Tt(e,t,r,i),t.child)}function Ux(e,t,n,r,i){if(e===null){var a=n.type;return typeof a=="function"&&!q3(a)&&a.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=a,a_(e,t,a,r,i)):(e=nc(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!(e.lanes&i)){var s=a.memoizedProps;if(n=n.compare,n=n!==null?n:Go,n(s,r)&&e.ref===t.ref)return wr(e,t,i)}return t.flags|=1,e=ni(a,r),e.ref=t.ref,e.return=t,t.child=e}function a_(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Go(a,r)&&e.ref===t.ref)if(Kt=!1,t.pendingProps=r=a,(e.lanes&i)!==0)e.flags&131072&&(Kt=!0);else return t.lanes=e.lanes,wr(e,t,i)}return rm(e,t,n,r,i)}function s_(e,t,n){var r=t.pendingProps,i=r.children,a=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ee(Ha,tn),tn|=n;else{if(!(n&1073741824))return e=a!==null?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ee(Ha,tn),tn|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=a!==null?a.baseLanes:n,Ee(Ha,tn),tn|=r}else a!==null?(r=a.baseLanes|n,t.memoizedState=null):r=n,Ee(Ha,tn),tn|=r;return Tt(e,t,i,n),t.child}function o_(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function rm(e,t,n,r,i){var a=qt(n)?Xi:kt.current;return a=fs(t,a),Ja(t,i),n=I3(e,t,n,r,a,i),r=L3(),e!==null&&!Kt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,wr(e,t,i)):(Ae&&r&&E3(t),t.flags|=1,Tt(e,t,n,i),t.child)}function Hx(e,t,n,r,i){if(qt(n)){var a=!0;Ec(t)}else a=!1;if(Ja(t,i),t.stateNode===null)Ju(e,t),n_(t,n,r),tm(t,n,r,i),r=!0;else if(e===null){var s=t.stateNode,o=t.memoizedProps;s.props=o;var l=s.context,u=n.contextType;typeof u=="object"&&u!==null?u=_n(u):(u=qt(n)?Xi:kt.current,u=fs(t,u));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof s.getSnapshotBeforeUpdate=="function";d||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(o!==r||l!==u)&&Nx(t,s,r,u),Or=!1;var f=t.memoizedState;s.state=f,Tc(t,r,s,i),l=t.memoizedState,o!==r||f!==l||Yt.current||Or?(typeof c=="function"&&(em(t,n,c,r),l=t.memoizedState),(o=Or||Lx(t,n,o,r,f,l,u))?(d||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),s.props=r,s.state=l,s.context=u,r=o):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,OD(e,t),o=t.memoizedProps,u=t.type===t.elementType?o:Pn(t.type,o),s.props=u,d=t.pendingProps,f=s.context,l=n.contextType,typeof l=="object"&&l!==null?l=_n(l):(l=qt(n)?Xi:kt.current,l=fs(t,l));var h=n.getDerivedStateFromProps;(c=typeof h=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(o!==d||f!==l)&&Nx(t,s,r,l),Or=!1,f=t.memoizedState,s.state=f,Tc(t,r,s,i);var p=t.memoizedState;o!==d||f!==p||Yt.current||Or?(typeof h=="function"&&(em(t,n,h,r),p=t.memoizedState),(u=Or||Lx(t,n,u,r,f,p,l)||!1)?(c||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,p,l),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,p,l)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),s.props=r,s.state=p,s.context=l,r=u):(typeof s.componentDidUpdate!="function"||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return im(e,t,n,r,a,i)}function im(e,t,n,r,i,a){o_(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return i&&Tx(t,n,!1),wr(e,t,a);r=t.stateNode,RF.current=t;var o=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=ps(t,e.child,null,a),t.child=ps(t,null,o,a)):Tt(e,t,o,a),t.memoizedState=r.state,i&&Tx(t,n,!0),t.child}function l_(e){var t=e.stateNode;t.pendingContext?Px(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Px(e,t.context,!1),F3(e,t.containerInfo)}function Kx(e,t,n,r,i){return hs(),C3(i),t.flags|=256,Tt(e,t,n,r),t.child}var am={dehydrated:null,treeContext:null,retryLane:0};function sm(e){return{baseLanes:e,cachePool:null,transitions:null}}function u_(e,t,n){var r=t.pendingProps,i=Ie.current,a=!1,s=(t.flags&128)!==0,o;if((o=s)||(o=e!==null&&e.memoizedState===null?!1:(i&2)!==0),o?(a=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),Ee(Ie,i&1),e===null)return Qp(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=r.children,e=r.fallback,a?(r=t.mode,a=t.child,s={mode:"hidden",children:s},!(r&1)&&a!==null?(a.childLanes=0,a.pendingProps=s):a=cf(s,r,0,null),e=Yi(e,r,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=sm(n),t.memoizedState=am,e):z3(t,s));if(i=e.memoizedState,i!==null&&(o=i.dehydrated,o!==null))return MF(e,t,s,r,o,i,n);if(a){a=r.fallback,s=t.mode,i=e.child,o=i.sibling;var l={mode:"hidden",children:r.children};return!(s&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=ni(i,l),r.subtreeFlags=i.subtreeFlags&14680064),o!==null?a=ni(o,a):(a=Yi(a,s,n,null),a.flags|=2),a.return=t,r.return=t,r.sibling=a,t.child=r,r=a,a=t.child,s=e.child.memoizedState,s=s===null?sm(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},a.memoizedState=s,a.childLanes=e.childLanes&~n,t.memoizedState=am,r}return a=e.child,e=a.sibling,r=ni(a,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function z3(e,t){return t=cf({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function au(e,t,n,r){return r!==null&&C3(r),ps(t,e.child,null,n),e=z3(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function MF(e,t,n,r,i,a,s){if(n)return t.flags&256?(t.flags&=-257,r=vh(Error(L(422))),au(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(a=r.fallback,i=t.mode,r=cf({mode:"visible",children:r.children},i,0,null),a=Yi(a,i,s,null),a.flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,t.mode&1&&ps(t,e.child,null,s),t.child.memoizedState=sm(s),t.memoizedState=am,a);if(!(t.mode&1))return au(e,t,s,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var o=r.dgst;return r=o,a=Error(L(419)),r=vh(a,r,void 0),au(e,t,s,r)}if(o=(s&e.childLanes)!==0,Kt||o){if(r=ft,r!==null){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|s)?0:i,i!==0&&i!==a.retryLane&&(a.retryLane=i,xr(e,i),Bn(r,e,i,-1))}return Y3(),r=vh(Error(L(421))),au(e,t,s,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=HF.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,rn=Qr(i.nextSibling),sn=t,Ae=!0,Mn=null,e!==null&&(gn[vn++]=dr,gn[vn++]=fr,gn[vn++]=Qi,dr=e.id,fr=e.overflow,Qi=t),t=z3(t,r.children),t.flags|=4096,t)}function Yx(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Jp(e.return,t,n)}function bh(e,t,n,r,i){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i)}function c_(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(Tt(e,t,r.children,n),r=Ie.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Yx(e,n,t);else if(e.tag===19)Yx(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Ee(Ie,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Rc(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),bh(t,!1,i,n,a);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Rc(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}bh(t,!0,n,null,a);break;case"together":bh(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ju(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function wr(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ea|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(L(153));if(t.child!==null){for(e=t.child,n=ni(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ni(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function FF(e,t,n){switch(t.tag){case 3:l_(t),hs();break;case 5:BD(t);break;case 1:qt(t.type)&&Ec(t);break;case 4:F3(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Ee(kc,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Ee(Ie,Ie.current&1),t.flags|=128,null):n&t.child.childLanes?u_(e,t,n):(Ee(Ie,Ie.current&1),e=wr(e,t,n),e!==null?e.sibling:null);Ee(Ie,Ie.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return c_(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Ee(Ie,Ie.current),r)break;return null;case 22:case 23:return t.lanes=0,s_(e,t,n)}return wr(e,t,n)}var d_,om,f_,h_;d_=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};om=function(){};f_=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,zi(Gn.current);var a=null;switch(n){case"input":i=Pp(e,i),r=Pp(e,r),a=[];break;case"select":i=Ne({},i,{value:void 0}),r=Ne({},r,{value:void 0}),a=[];break;case"textarea":i=Mp(e,i),r=Mp(e,r),a=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Dc)}Ap(n,r);var s;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var o=i[u];for(s in o)o.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Vo.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in r){var l=r[u];if(o=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&l!==o&&(l!=null||o!=null))if(u==="style")if(o){for(s in o)!o.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in l)l.hasOwnProperty(s)&&o[s]!==l[s]&&(n||(n={}),n[s]=l[s])}else n||(a||(a=[]),a.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,o=o?o.__html:void 0,l!=null&&o!==l&&(a=a||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(a=a||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Vo.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&ke("scroll",e),a||o===l||(a=[])):(a=a||[]).push(u,l))}n&&(a=a||[]).push("style",n);var u=a;(t.updateQueue=u)&&(t.flags|=4)}};h_=function(e,t,n,r){n!==r&&(t.flags|=4)};function zs(e,t){if(!Ae)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function xt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function AF(e,t,n){var r=t.pendingProps;switch(S3(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return xt(t),null;case 1:return qt(t.type)&&_c(),xt(t),null;case 3:return r=t.stateNode,ms(),Pe(Yt),Pe(kt),O3(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(ru(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Mn!==null&&(mm(Mn),Mn=null))),om(e,t),xt(t),null;case 5:A3(t);var i=zi(el.current);if(n=t.type,e!==null&&t.stateNode!=null)f_(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(L(166));return xt(t),null}if(e=zi(Gn.current),ru(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[Kn]=t,r[Qo]=a,e=(t.mode&1)!==0,n){case"dialog":ke("cancel",r),ke("close",r);break;case"iframe":case"object":case"embed":ke("load",r);break;case"video":case"audio":for(i=0;i<uo.length;i++)ke(uo[i],r);break;case"source":ke("error",r);break;case"img":case"image":case"link":ke("error",r),ke("load",r);break;case"details":ke("toggle",r);break;case"input":nx(r,a),ke("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},ke("invalid",r);break;case"textarea":ix(r,a),ke("invalid",r)}Ap(n,a),i=null;for(var s in a)if(a.hasOwnProperty(s)){var o=a[s];s==="children"?typeof o=="string"?r.textContent!==o&&(a.suppressHydrationWarning!==!0&&nu(r.textContent,o,e),i=["children",o]):typeof o=="number"&&r.textContent!==""+o&&(a.suppressHydrationWarning!==!0&&nu(r.textContent,o,e),i=["children",""+o]):Vo.hasOwnProperty(s)&&o!=null&&s==="onScroll"&&ke("scroll",r)}switch(n){case"input":ql(r),rx(r,a,!0);break;case"textarea":ql(r),ax(r);break;case"select":case"option":break;default:typeof a.onClick=="function"&&(r.onclick=Dc)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=zw(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Kn]=t,e[Qo]=r,d_(e,t,!1,!1),t.stateNode=e;e:{switch(s=Op(n,r),n){case"dialog":ke("cancel",e),ke("close",e),i=r;break;case"iframe":case"object":case"embed":ke("load",e),i=r;break;case"video":case"audio":for(i=0;i<uo.length;i++)ke(uo[i],e);i=r;break;case"source":ke("error",e),i=r;break;case"img":case"image":case"link":ke("error",e),ke("load",e),i=r;break;case"details":ke("toggle",e),i=r;break;case"input":nx(e,r),i=Pp(e,r),ke("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=Ne({},r,{value:void 0}),ke("invalid",e);break;case"textarea":ix(e,r),i=Mp(e,r),ke("invalid",e);break;default:i=r}Ap(n,i),o=i;for(a in o)if(o.hasOwnProperty(a)){var l=o[a];a==="style"?Uw(e,l):a==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Vw(e,l)):a==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Wo(e,l):typeof l=="number"&&Wo(e,""+l):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(Vo.hasOwnProperty(a)?l!=null&&a==="onScroll"&&ke("scroll",e):l!=null&&d3(e,a,l,s))}switch(n){case"input":ql(e),rx(e,r,!1);break;case"textarea":ql(e),ax(e);break;case"option":r.value!=null&&e.setAttribute("value",""+ai(r.value));break;case"select":e.multiple=!!r.multiple,a=r.value,a!=null?Ga(e,!!r.multiple,a,!1):r.defaultValue!=null&&Ga(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Dc)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return xt(t),null;case 6:if(e&&t.stateNode!=null)h_(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(L(166));if(n=zi(el.current),zi(Gn.current),ru(t)){if(r=t.stateNode,n=t.memoizedProps,r[Kn]=t,(a=r.nodeValue!==n)&&(e=sn,e!==null))switch(e.tag){case 3:nu(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&nu(r.nodeValue,n,(e.mode&1)!==0)}a&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Kn]=t,t.stateNode=r}return xt(t),null;case 13:if(Pe(Ie),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ae&&rn!==null&&t.mode&1&&!(t.flags&128))RD(),hs(),t.flags|=98560,a=!1;else if(a=ru(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(L(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(L(317));a[Kn]=t}else hs(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;xt(t),a=!1}else Mn!==null&&(mm(Mn),Mn=null),a=!0;if(!a)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||Ie.current&1?rt===0&&(rt=3):Y3())),t.updateQueue!==null&&(t.flags|=4),xt(t),null);case 4:return ms(),om(e,t),e===null&&Zo(t.stateNode.containerInfo),xt(t),null;case 10:return T3(t.type._context),xt(t),null;case 17:return qt(t.type)&&_c(),xt(t),null;case 19:if(Pe(Ie),a=t.memoizedState,a===null)return xt(t),null;if(r=(t.flags&128)!==0,s=a.rendering,s===null)if(r)zs(a,!1);else{if(rt!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=Rc(e),s!==null){for(t.flags|=128,zs(a,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)a=n,e=r,a.flags&=14680066,s=a.alternate,s===null?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=s.childLanes,a.lanes=s.lanes,a.child=s.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=s.memoizedProps,a.memoizedState=s.memoizedState,a.updateQueue=s.updateQueue,a.type=s.type,e=s.dependencies,a.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ee(Ie,Ie.current&1|2),t.child}e=e.sibling}a.tail!==null&&Ye()>vs&&(t.flags|=128,r=!0,zs(a,!1),t.lanes=4194304)}else{if(!r)if(e=Rc(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),zs(a,!0),a.tail===null&&a.tailMode==="hidden"&&!s.alternate&&!Ae)return xt(t),null}else 2*Ye()-a.renderingStartTime>vs&&n!==1073741824&&(t.flags|=128,r=!0,zs(a,!1),t.lanes=4194304);a.isBackwards?(s.sibling=t.child,t.child=s):(n=a.last,n!==null?n.sibling=s:t.child=s,a.last=s)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Ye(),t.sibling=null,n=Ie.current,Ee(Ie,r?n&1|2:n&1),t):(xt(t),null);case 22:case 23:return K3(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?tn&1073741824&&(xt(t),t.subtreeFlags&6&&(t.flags|=8192)):xt(t),null;case 24:return null;case 25:return null}throw Error(L(156,t.tag))}function OF(e,t){switch(S3(t),t.tag){case 1:return qt(t.type)&&_c(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ms(),Pe(Yt),Pe(kt),O3(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return A3(t),null;case 13:if(Pe(Ie),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(L(340));hs()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Pe(Ie),null;case 4:return ms(),null;case 10:return T3(t.type._context),null;case 22:case 23:return K3(),null;case 24:return null;default:return null}}var su=!1,Et=!1,BF=typeof WeakSet=="function"?WeakSet:Set,U=null;function Ua(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ze(e,t,r)}else n.current=null}function lm(e,t,n){try{n()}catch(r){ze(e,t,r)}}var qx=!1;function IF(e,t){if(Hp=$c,e=bD(),_3(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var s=0,o=-1,l=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var h;d!==n||i!==0&&d.nodeType!==3||(o=s+i),d!==a||r!==0&&d.nodeType!==3||(l=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(h=d.firstChild)!==null;)f=d,d=h;for(;;){if(d===e)break t;if(f===n&&++u===i&&(o=s),f===a&&++c===r&&(l=s),(h=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=h}n=o===-1||l===-1?null:{start:o,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Kp={focusedElem:e,selectionRange:n},$c=!1,U=t;U!==null;)if(t=U,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,U=e;else for(;U!==null;){t=U;try{var p=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var g=p.memoizedProps,b=p.memoizedState,v=t.stateNode,m=v.getSnapshotBeforeUpdate(t.elementType===t.type?g:Pn(t.type,g),b);v.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var $=t.stateNode.containerInfo;$.nodeType===1?$.textContent="":$.nodeType===9&&$.documentElement&&$.removeChild($.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(L(163))}}catch(w){ze(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,U=e;break}U=t.return}return p=qx,qx=!1,p}function Po(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&lm(t,n,a)}i=i.next}while(i!==r)}}function lf(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function um(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function p_(e){var t=e.alternate;t!==null&&(e.alternate=null,p_(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Kn],delete t[Qo],delete t[Gp],delete t[yF],delete t[$F])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function m_(e){return e.tag===5||e.tag===3||e.tag===4}function Gx(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||m_(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function cm(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Dc));else if(r!==4&&(e=e.child,e!==null))for(cm(e,t,n),e=e.sibling;e!==null;)cm(e,t,n),e=e.sibling}function dm(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(dm(e,t,n),e=e.sibling;e!==null;)dm(e,t,n),e=e.sibling}var ht=null,Tn=!1;function kr(e,t,n){for(n=n.child;n!==null;)g_(e,t,n),n=n.sibling}function g_(e,t,n){if(qn&&typeof qn.onCommitFiberUnmount=="function")try{qn.onCommitFiberUnmount(Jd,n)}catch{}switch(n.tag){case 5:Et||Ua(n,t);case 6:var r=ht,i=Tn;ht=null,kr(e,t,n),ht=r,Tn=i,ht!==null&&(Tn?(e=ht,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ht.removeChild(n.stateNode));break;case 18:ht!==null&&(Tn?(e=ht,n=n.stateNode,e.nodeType===8?dh(e.parentNode,n):e.nodeType===1&&dh(e,n),Yo(e)):dh(ht,n.stateNode));break;case 4:r=ht,i=Tn,ht=n.stateNode.containerInfo,Tn=!0,kr(e,t,n),ht=r,Tn=i;break;case 0:case 11:case 14:case 15:if(!Et&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,s=a.destroy;a=a.tag,s!==void 0&&(a&2||a&4)&&lm(n,t,s),i=i.next}while(i!==r)}kr(e,t,n);break;case 1:if(!Et&&(Ua(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(o){ze(n,t,o)}kr(e,t,n);break;case 21:kr(e,t,n);break;case 22:n.mode&1?(Et=(r=Et)||n.memoizedState!==null,kr(e,t,n),Et=r):kr(e,t,n);break;default:kr(e,t,n)}}function Zx(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new BF),t.forEach(function(r){var i=KF.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Cn(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var a=e,s=t,o=s;e:for(;o!==null;){switch(o.tag){case 5:ht=o.stateNode,Tn=!1;break e;case 3:ht=o.stateNode.containerInfo,Tn=!0;break e;case 4:ht=o.stateNode.containerInfo,Tn=!0;break e}o=o.return}if(ht===null)throw Error(L(160));g_(a,s,i),ht=null,Tn=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(u){ze(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)v_(t,e),t=t.sibling}function v_(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Cn(t,e),Vn(e),r&4){try{Po(3,e,e.return),lf(3,e)}catch(g){ze(e,e.return,g)}try{Po(5,e,e.return)}catch(g){ze(e,e.return,g)}}break;case 1:Cn(t,e),Vn(e),r&512&&n!==null&&Ua(n,n.return);break;case 5:if(Cn(t,e),Vn(e),r&512&&n!==null&&Ua(n,n.return),e.flags&32){var i=e.stateNode;try{Wo(i,"")}catch(g){ze(e,e.return,g)}}if(r&4&&(i=e.stateNode,i!=null)){var a=e.memoizedProps,s=n!==null?n.memoizedProps:a,o=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{o==="input"&&a.type==="radio"&&a.name!=null&&Nw(i,a),Op(o,s);var u=Op(o,a);for(s=0;s<l.length;s+=2){var c=l[s],d=l[s+1];c==="style"?Uw(i,d):c==="dangerouslySetInnerHTML"?Vw(i,d):c==="children"?Wo(i,d):d3(i,c,d,u)}switch(o){case"input":Tp(i,a);break;case"textarea":jw(i,a);break;case"select":var f=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var h=a.value;h!=null?Ga(i,!!a.multiple,h,!1):f!==!!a.multiple&&(a.defaultValue!=null?Ga(i,!!a.multiple,a.defaultValue,!0):Ga(i,!!a.multiple,a.multiple?[]:"",!1))}i[Qo]=a}catch(g){ze(e,e.return,g)}}break;case 6:if(Cn(t,e),Vn(e),r&4){if(e.stateNode===null)throw Error(L(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(g){ze(e,e.return,g)}}break;case 3:if(Cn(t,e),Vn(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Yo(t.containerInfo)}catch(g){ze(e,e.return,g)}break;case 4:Cn(t,e),Vn(e);break;case 13:Cn(t,e),Vn(e),i=e.child,i.flags&8192&&(a=i.memoizedState!==null,i.stateNode.isHidden=a,!a||i.alternate!==null&&i.alternate.memoizedState!==null||(U3=Ye())),r&4&&Zx(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(Et=(u=Et)||c,Cn(t,e),Et=u):Cn(t,e),Vn(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(U=e,c=e.child;c!==null;){for(d=U=c;U!==null;){switch(f=U,h=f.child,f.tag){case 0:case 11:case 14:case 15:Po(4,f,f.return);break;case 1:Ua(f,f.return);var p=f.stateNode;if(typeof p.componentWillUnmount=="function"){r=f,n=f.return;try{t=r,p.props=t.memoizedProps,p.state=t.memoizedState,p.componentWillUnmount()}catch(g){ze(r,n,g)}}break;case 5:Ua(f,f.return);break;case 22:if(f.memoizedState!==null){Qx(d);continue}}h!==null?(h.return=f,U=h):Qx(d)}c=c.sibling}e:for(c=null,d=e;;){if(d.tag===5){if(c===null){c=d;try{i=d.stateNode,u?(a=i.style,typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none"):(o=d.stateNode,l=d.memoizedProps.style,s=l!=null&&l.hasOwnProperty("display")?l.display:null,o.style.display=Ww("display",s))}catch(g){ze(e,e.return,g)}}}else if(d.tag===6){if(c===null)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(g){ze(e,e.return,g)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:Cn(t,e),Vn(e),r&4&&Zx(e);break;case 21:break;default:Cn(t,e),Vn(e)}}function Vn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(m_(n)){var r=n;break e}n=n.return}throw Error(L(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(Wo(i,""),r.flags&=-33);var a=Gx(e);dm(e,a,i);break;case 3:case 4:var s=r.stateNode.containerInfo,o=Gx(e);cm(e,o,s);break;default:throw Error(L(161))}}catch(l){ze(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function LF(e,t,n){U=e,b_(e)}function b_(e,t,n){for(var r=(e.mode&1)!==0;U!==null;){var i=U,a=i.child;if(i.tag===22&&r){var s=i.memoizedState!==null||su;if(!s){var o=i.alternate,l=o!==null&&o.memoizedState!==null||Et;o=su;var u=Et;if(su=s,(Et=l)&&!u)for(U=i;U!==null;)s=U,l=s.child,s.tag===22&&s.memoizedState!==null?Jx(i):l!==null?(l.return=s,U=l):Jx(i);for(;a!==null;)U=a,b_(a),a=a.sibling;U=i,su=o,Et=u}Xx(e)}else i.subtreeFlags&8772&&a!==null?(a.return=i,U=a):Xx(e)}}function Xx(e){for(;U!==null;){var t=U;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Et||lf(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Et)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:Pn(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;a!==null&&Ox(t,a,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Ox(t,s,n)}break;case 5:var o=t.stateNode;if(n===null&&t.flags&4){n=o;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var d=c.dehydrated;d!==null&&Yo(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(L(163))}Et||t.flags&512&&um(t)}catch(f){ze(t,t.return,f)}}if(t===e){U=null;break}if(n=t.sibling,n!==null){n.return=t.return,U=n;break}U=t.return}}function Qx(e){for(;U!==null;){var t=U;if(t===e){U=null;break}var n=t.sibling;if(n!==null){n.return=t.return,U=n;break}U=t.return}}function Jx(e){for(;U!==null;){var t=U;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{lf(4,t)}catch(l){ze(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(l){ze(t,i,l)}}var a=t.return;try{um(t)}catch(l){ze(t,a,l)}break;case 5:var s=t.return;try{um(t)}catch(l){ze(t,s,l)}}}catch(l){ze(t,t.return,l)}if(t===e){U=null;break}var o=t.sibling;if(o!==null){o.return=t.return,U=o;break}U=t.return}}var NF=Math.ceil,Ac=Dr.ReactCurrentDispatcher,V3=Dr.ReactCurrentOwner,wn=Dr.ReactCurrentBatchConfig,ue=0,ft=null,Xe=null,mt=0,tn=0,Ha=hi(0),rt=0,il=null,ea=0,uf=0,W3=0,To=null,Wt=null,U3=0,vs=1/0,or=null,Oc=!1,fm=null,ei=null,ou=!1,Vr=null,Bc=0,Ro=0,hm=null,ec=-1,tc=0;function Mt(){return ue&6?Ye():ec!==-1?ec:ec=Ye()}function ti(e){return e.mode&1?ue&2&&mt!==0?mt&-mt:wF.transition!==null?(tc===0&&(tc=nD()),tc):(e=ge,e!==0||(e=window.event,e=e===void 0?16:uD(e.type)),e):1}function Bn(e,t,n,r){if(50<Ro)throw Ro=0,hm=null,Error(L(185));Pl(e,n,r),(!(ue&2)||e!==ft)&&(e===ft&&(!(ue&2)&&(uf|=n),rt===4&&Nr(e,mt)),Gt(e,r),n===1&&ue===0&&!(t.mode&1)&&(vs=Ye()+500,af&&pi()))}function Gt(e,t){var n=e.callbackNode;wM(e,t);var r=yc(e,e===ft?mt:0);if(r===0)n!==null&&lx(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&lx(n),t===1)e.tag===0?xF(e2.bind(null,e)):kD(e2.bind(null,e)),vF(function(){!(ue&6)&&pi()}),n=null;else{switch(rD(r)){case 1:n=g3;break;case 4:n=eD;break;case 16:n=bc;break;case 536870912:n=tD;break;default:n=bc}n=S_(n,y_.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function y_(e,t){if(ec=-1,tc=0,ue&6)throw Error(L(327));var n=e.callbackNode;if(es()&&e.callbackNode!==n)return null;var r=yc(e,e===ft?mt:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Ic(e,r);else{t=r;var i=ue;ue|=2;var a=x_();(ft!==e||mt!==t)&&(or=null,vs=Ye()+500,Ki(e,t));do try{VF();break}catch(o){$_(e,o)}while(!0);P3(),Ac.current=a,ue=i,Xe!==null?t=0:(ft=null,mt=0,t=rt)}if(t!==0){if(t===2&&(i=jp(e),i!==0&&(r=i,t=pm(e,i))),t===1)throw n=il,Ki(e,0),Nr(e,r),Gt(e,Ye()),n;if(t===6)Nr(e,r);else{if(i=e.current.alternate,!(r&30)&&!jF(i)&&(t=Ic(e,r),t===2&&(a=jp(e),a!==0&&(r=a,t=pm(e,a))),t===1))throw n=il,Ki(e,0),Nr(e,r),Gt(e,Ye()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(L(345));case 2:ki(e,Wt,or);break;case 3:if(Nr(e,r),(r&130023424)===r&&(t=U3+500-Ye(),10<t)){if(yc(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Mt(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=qp(ki.bind(null,e,Wt,or),t);break}ki(e,Wt,or);break;case 4:if(Nr(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-On(r);a=1<<s,s=t[s],s>i&&(i=s),r&=~a}if(r=i,r=Ye()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*NF(r/1960))-r,10<r){e.timeoutHandle=qp(ki.bind(null,e,Wt,or),r);break}ki(e,Wt,or);break;case 5:ki(e,Wt,or);break;default:throw Error(L(329))}}}return Gt(e,Ye()),e.callbackNode===n?y_.bind(null,e):null}function pm(e,t){var n=To;return e.current.memoizedState.isDehydrated&&(Ki(e,t).flags|=256),e=Ic(e,t),e!==2&&(t=Wt,Wt=n,t!==null&&mm(t)),e}function mm(e){Wt===null?Wt=e:Wt.push.apply(Wt,e)}function jF(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!Ln(a(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Nr(e,t){for(t&=~W3,t&=~uf,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-On(t),r=1<<n;e[n]=-1,t&=~r}}function e2(e){if(ue&6)throw Error(L(327));es();var t=yc(e,0);if(!(t&1))return Gt(e,Ye()),null;var n=Ic(e,t);if(e.tag!==0&&n===2){var r=jp(e);r!==0&&(t=r,n=pm(e,r))}if(n===1)throw n=il,Ki(e,0),Nr(e,t),Gt(e,Ye()),n;if(n===6)throw Error(L(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,ki(e,Wt,or),Gt(e,Ye()),null}function H3(e,t){var n=ue;ue|=1;try{return e(t)}finally{ue=n,ue===0&&(vs=Ye()+500,af&&pi())}}function ta(e){Vr!==null&&Vr.tag===0&&!(ue&6)&&es();var t=ue;ue|=1;var n=wn.transition,r=ge;try{if(wn.transition=null,ge=1,e)return e()}finally{ge=r,wn.transition=n,ue=t,!(ue&6)&&pi()}}function K3(){tn=Ha.current,Pe(Ha)}function Ki(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,gF(n)),Xe!==null)for(n=Xe.return;n!==null;){var r=n;switch(S3(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&_c();break;case 3:ms(),Pe(Yt),Pe(kt),O3();break;case 5:A3(r);break;case 4:ms();break;case 13:Pe(Ie);break;case 19:Pe(Ie);break;case 10:T3(r.type._context);break;case 22:case 23:K3()}n=n.return}if(ft=e,Xe=e=ni(e.current,null),mt=tn=t,rt=0,il=null,W3=uf=ea=0,Wt=To=null,ji!==null){for(t=0;t<ji.length;t++)if(n=ji[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,a=n.pending;if(a!==null){var s=a.next;a.next=i,r.next=s}n.pending=r}ji=null}return e}function $_(e,t){do{var n=Xe;try{if(P3(),Xu.current=Fc,Mc){for(var r=Le.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Mc=!1}if(Ji=0,ct=nt=Le=null,ko=!1,tl=0,V3.current=null,n===null||n.return===null){rt=1,il=t,Xe=null;break}e:{var a=e,s=n.return,o=n,l=t;if(t=mt,o.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,c=o,d=c.tag;if(!(c.mode&1)&&(d===0||d===11||d===15)){var f=c.alternate;f?(c.updateQueue=f.updateQueue,c.memoizedState=f.memoizedState,c.lanes=f.lanes):(c.updateQueue=null,c.memoizedState=null)}var h=zx(s);if(h!==null){h.flags&=-257,Vx(h,s,o,a,t),h.mode&1&&jx(a,u,t),t=h,l=u;var p=t.updateQueue;if(p===null){var g=new Set;g.add(l),t.updateQueue=g}else p.add(l);break e}else{if(!(t&1)){jx(a,u,t),Y3();break e}l=Error(L(426))}}else if(Ae&&o.mode&1){var b=zx(s);if(b!==null){!(b.flags&65536)&&(b.flags|=256),Vx(b,s,o,a,t),C3(gs(l,o));break e}}a=l=gs(l,o),rt!==4&&(rt=2),To===null?To=[a]:To.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t;var v=r_(a,l,t);Ax(a,v);break e;case 1:o=l;var m=a.type,$=a.stateNode;if(!(a.flags&128)&&(typeof m.getDerivedStateFromError=="function"||$!==null&&typeof $.componentDidCatch=="function"&&(ei===null||!ei.has($)))){a.flags|=65536,t&=-t,a.lanes|=t;var w=i_(a,o,t);Ax(a,w);break e}}a=a.return}while(a!==null)}D_(n)}catch(D){t=D,Xe===n&&n!==null&&(Xe=n=n.return);continue}break}while(!0)}function x_(){var e=Ac.current;return Ac.current=Fc,e===null?Fc:e}function Y3(){(rt===0||rt===3||rt===2)&&(rt=4),ft===null||!(ea&268435455)&&!(uf&268435455)||Nr(ft,mt)}function Ic(e,t){var n=ue;ue|=2;var r=x_();(ft!==e||mt!==t)&&(or=null,Ki(e,t));do try{zF();break}catch(i){$_(e,i)}while(!0);if(P3(),ue=n,Ac.current=r,Xe!==null)throw Error(L(261));return ft=null,mt=0,rt}function zF(){for(;Xe!==null;)w_(Xe)}function VF(){for(;Xe!==null&&!hM();)w_(Xe)}function w_(e){var t=E_(e.alternate,e,tn);e.memoizedProps=e.pendingProps,t===null?D_(e):Xe=t,V3.current=null}function D_(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=OF(n,t),n!==null){n.flags&=32767,Xe=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{rt=6,Xe=null;return}}else if(n=AF(n,t,tn),n!==null){Xe=n;return}if(t=t.sibling,t!==null){Xe=t;return}Xe=t=e}while(t!==null);rt===0&&(rt=5)}function ki(e,t,n){var r=ge,i=wn.transition;try{wn.transition=null,ge=1,WF(e,t,n,r)}finally{wn.transition=i,ge=r}return null}function WF(e,t,n,r){do es();while(Vr!==null);if(ue&6)throw Error(L(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(L(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(DM(e,a),e===ft&&(Xe=ft=null,mt=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||ou||(ou=!0,S_(bc,function(){return es(),null})),a=(n.flags&15990)!==0,n.subtreeFlags&15990||a){a=wn.transition,wn.transition=null;var s=ge;ge=1;var o=ue;ue|=4,V3.current=null,IF(e,n),v_(n,e),uF(Kp),$c=!!Hp,Kp=Hp=null,e.current=n,LF(n),pM(),ue=o,ge=s,wn.transition=a}else e.current=n;if(ou&&(ou=!1,Vr=e,Bc=i),a=e.pendingLanes,a===0&&(ei=null),vM(n.stateNode),Gt(e,Ye()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Oc)throw Oc=!1,e=fm,fm=null,e;return Bc&1&&e.tag!==0&&es(),a=e.pendingLanes,a&1?e===hm?Ro++:(Ro=0,hm=e):Ro=0,pi(),null}function es(){if(Vr!==null){var e=rD(Bc),t=wn.transition,n=ge;try{if(wn.transition=null,ge=16>e?16:e,Vr===null)var r=!1;else{if(e=Vr,Vr=null,Bc=0,ue&6)throw Error(L(331));var i=ue;for(ue|=4,U=e.current;U!==null;){var a=U,s=a.child;if(U.flags&16){var o=a.deletions;if(o!==null){for(var l=0;l<o.length;l++){var u=o[l];for(U=u;U!==null;){var c=U;switch(c.tag){case 0:case 11:case 15:Po(8,c,a)}var d=c.child;if(d!==null)d.return=c,U=d;else for(;U!==null;){c=U;var f=c.sibling,h=c.return;if(p_(c),c===u){U=null;break}if(f!==null){f.return=h,U=f;break}U=h}}}var p=a.alternate;if(p!==null){var g=p.child;if(g!==null){p.child=null;do{var b=g.sibling;g.sibling=null,g=b}while(g!==null)}}U=a}}if(a.subtreeFlags&2064&&s!==null)s.return=a,U=s;else e:for(;U!==null;){if(a=U,a.flags&2048)switch(a.tag){case 0:case 11:case 15:Po(9,a,a.return)}var v=a.sibling;if(v!==null){v.return=a.return,U=v;break e}U=a.return}}var m=e.current;for(U=m;U!==null;){s=U;var $=s.child;if(s.subtreeFlags&2064&&$!==null)$.return=s,U=$;else e:for(s=m;U!==null;){if(o=U,o.flags&2048)try{switch(o.tag){case 0:case 11:case 15:lf(9,o)}}catch(D){ze(o,o.return,D)}if(o===s){U=null;break e}var w=o.sibling;if(w!==null){w.return=o.return,U=w;break e}U=o.return}}if(ue=i,pi(),qn&&typeof qn.onPostCommitFiberRoot=="function")try{qn.onPostCommitFiberRoot(Jd,e)}catch{}r=!0}return r}finally{ge=n,wn.transition=t}}return!1}function t2(e,t,n){t=gs(n,t),t=r_(e,t,1),e=Jr(e,t,1),t=Mt(),e!==null&&(Pl(e,1,t),Gt(e,t))}function ze(e,t,n){if(e.tag===3)t2(e,e,n);else for(;t!==null;){if(t.tag===3){t2(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(ei===null||!ei.has(r))){e=gs(n,e),e=i_(t,e,1),t=Jr(t,e,1),e=Mt(),t!==null&&(Pl(t,1,e),Gt(t,e));break}}t=t.return}}function UF(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Mt(),e.pingedLanes|=e.suspendedLanes&n,ft===e&&(mt&n)===n&&(rt===4||rt===3&&(mt&130023424)===mt&&500>Ye()-U3?Ki(e,0):W3|=n),Gt(e,t)}function __(e,t){t===0&&(e.mode&1?(t=Xl,Xl<<=1,!(Xl&130023424)&&(Xl=4194304)):t=1);var n=Mt();e=xr(e,t),e!==null&&(Pl(e,t,n),Gt(e,n))}function HF(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),__(e,n)}function KF(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(L(314))}r!==null&&r.delete(t),__(e,n)}var E_;E_=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Yt.current)Kt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Kt=!1,FF(e,t,n);Kt=!!(e.flags&131072)}else Kt=!1,Ae&&t.flags&1048576&&PD(t,Cc,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ju(e,t),e=t.pendingProps;var i=fs(t,kt.current);Ja(t,n),i=I3(null,t,r,e,i,n);var a=L3();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,qt(r)?(a=!0,Ec(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,M3(t),i.updater=of,t.stateNode=i,i._reactInternals=t,tm(t,r,e,n),t=im(null,t,r,!0,a,n)):(t.tag=0,Ae&&a&&E3(t),Tt(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ju(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=qF(r),e=Pn(r,e),i){case 0:t=rm(null,t,r,e,n);break e;case 1:t=Hx(null,t,r,e,n);break e;case 11:t=Wx(null,t,r,e,n);break e;case 14:t=Ux(null,t,r,Pn(r.type,e),n);break e}throw Error(L(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Pn(r,i),rm(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Pn(r,i),Hx(e,t,r,i,n);case 3:e:{if(l_(t),e===null)throw Error(L(387));r=t.pendingProps,a=t.memoizedState,i=a.element,OD(e,t),Tc(t,r,null,n);var s=t.memoizedState;if(r=s.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=gs(Error(L(423)),t),t=Kx(e,t,r,n,i);break e}else if(r!==i){i=gs(Error(L(424)),t),t=Kx(e,t,r,n,i);break e}else for(rn=Qr(t.stateNode.containerInfo.firstChild),sn=t,Ae=!0,Mn=null,n=FD(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(hs(),r===i){t=wr(e,t,n);break e}Tt(e,t,r,n)}t=t.child}return t;case 5:return BD(t),e===null&&Qp(t),r=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,s=i.children,Yp(r,i)?s=null:a!==null&&Yp(r,a)&&(t.flags|=32),o_(e,t),Tt(e,t,s,n),t.child;case 6:return e===null&&Qp(t),null;case 13:return u_(e,t,n);case 4:return F3(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ps(t,null,r,n):Tt(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Pn(r,i),Wx(e,t,r,i,n);case 7:return Tt(e,t,t.pendingProps,n),t.child;case 8:return Tt(e,t,t.pendingProps.children,n),t.child;case 12:return Tt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,s=i.value,Ee(kc,r._currentValue),r._currentValue=s,a!==null)if(Ln(a.value,s)){if(a.children===i.children&&!Yt.current){t=wr(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var o=a.dependencies;if(o!==null){s=a.child;for(var l=o.firstContext;l!==null;){if(l.context===r){if(a.tag===1){l=br(-1,n&-n),l.tag=2;var u=a.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),Jp(a.return,n,t),o.lanes|=n;break}l=l.next}}else if(a.tag===10)s=a.type===t.type?null:a.child;else if(a.tag===18){if(s=a.return,s===null)throw Error(L(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),Jp(s,n,t),s=a.sibling}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===t){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}Tt(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Ja(t,n),i=_n(i),r=r(i),t.flags|=1,Tt(e,t,r,n),t.child;case 14:return r=t.type,i=Pn(r,t.pendingProps),i=Pn(r.type,i),Ux(e,t,r,i,n);case 15:return a_(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Pn(r,i),Ju(e,t),t.tag=1,qt(r)?(e=!0,Ec(t)):e=!1,Ja(t,n),n_(t,r,i),tm(t,r,i,n),im(null,t,r,!0,e,n);case 19:return c_(e,t,n);case 22:return s_(e,t,n)}throw Error(L(156,t.tag))};function S_(e,t){return Jw(e,t)}function YF(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function $n(e,t,n,r){return new YF(e,t,n,r)}function q3(e){return e=e.prototype,!(!e||!e.isReactComponent)}function qF(e){if(typeof e=="function")return q3(e)?1:0;if(e!=null){if(e=e.$$typeof,e===h3)return 11;if(e===p3)return 14}return 2}function ni(e,t){var n=e.alternate;return n===null?(n=$n(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function nc(e,t,n,r,i,a){var s=2;if(r=e,typeof e=="function")q3(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Oa:return Yi(n.children,i,a,t);case f3:s=8,i|=8;break;case Ep:return e=$n(12,n,t,i|2),e.elementType=Ep,e.lanes=a,e;case Sp:return e=$n(13,n,t,i),e.elementType=Sp,e.lanes=a,e;case Cp:return e=$n(19,n,t,i),e.elementType=Cp,e.lanes=a,e;case Bw:return cf(n,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Aw:s=10;break e;case Ow:s=9;break e;case h3:s=11;break e;case p3:s=14;break e;case Ar:s=16,r=null;break e}throw Error(L(130,e==null?e:typeof e,""))}return t=$n(s,n,t,i),t.elementType=e,t.type=r,t.lanes=a,t}function Yi(e,t,n,r){return e=$n(7,e,r,t),e.lanes=n,e}function cf(e,t,n,r){return e=$n(22,e,r,t),e.elementType=Bw,e.lanes=n,e.stateNode={isHidden:!1},e}function yh(e,t,n){return e=$n(6,e,null,t),e.lanes=n,e}function $h(e,t,n){return t=$n(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function GF(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=eh(0),this.expirationTimes=eh(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=eh(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function G3(e,t,n,r,i,a,s,o,l){return e=new GF(e,t,n,o,l),t===1?(t=1,a===!0&&(t|=8)):t=0,a=$n(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},M3(a),e}function ZF(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Aa,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function C_(e){if(!e)return si;e=e._reactInternals;e:{if(da(e)!==e||e.tag!==1)throw Error(L(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(qt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(L(171))}if(e.tag===1){var n=e.type;if(qt(n))return CD(e,n,t)}return t}function k_(e,t,n,r,i,a,s,o,l){return e=G3(n,r,!0,e,i,a,s,o,l),e.context=C_(null),n=e.current,r=Mt(),i=ti(n),a=br(r,i),a.callback=t??null,Jr(n,a,i),e.current.lanes=i,Pl(e,i,r),Gt(e,r),e}function df(e,t,n,r){var i=t.current,a=Mt(),s=ti(i);return n=C_(n),t.context===null?t.context=n:t.pendingContext=n,t=br(a,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Jr(i,t,s),e!==null&&(Bn(e,i,s,a),Zu(e,i,s)),s}function Lc(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function n2(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Z3(e,t){n2(e,t),(e=e.alternate)&&n2(e,t)}function XF(){return null}var P_=typeof reportError=="function"?reportError:function(e){console.error(e)};function X3(e){this._internalRoot=e}ff.prototype.render=X3.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(L(409));df(e,t,null,null)};ff.prototype.unmount=X3.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ta(function(){df(null,e,null,null)}),t[$r]=null}};function ff(e){this._internalRoot=e}ff.prototype.unstable_scheduleHydration=function(e){if(e){var t=sD();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Lr.length&&t!==0&&t<Lr[n].priority;n++);Lr.splice(n,0,e),n===0&&lD(e)}};function Q3(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function hf(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function r2(){}function QF(e,t,n,r,i){if(i){if(typeof r=="function"){var a=r;r=function(){var u=Lc(s);a.call(u)}}var s=k_(t,r,e,0,null,!1,!1,"",r2);return e._reactRootContainer=s,e[$r]=s.current,Zo(e.nodeType===8?e.parentNode:e),ta(),s}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var o=r;r=function(){var u=Lc(l);o.call(u)}}var l=G3(e,0,!1,null,null,!1,!1,"",r2);return e._reactRootContainer=l,e[$r]=l.current,Zo(e.nodeType===8?e.parentNode:e),ta(function(){df(t,l,n,r)}),l}function pf(e,t,n,r,i){var a=n._reactRootContainer;if(a){var s=a;if(typeof i=="function"){var o=i;i=function(){var l=Lc(s);o.call(l)}}df(t,s,e,i)}else s=QF(n,t,e,i,r);return Lc(s)}iD=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=lo(t.pendingLanes);n!==0&&(v3(t,n|1),Gt(t,Ye()),!(ue&6)&&(vs=Ye()+500,pi()))}break;case 13:ta(function(){var r=xr(e,1);if(r!==null){var i=Mt();Bn(r,e,1,i)}}),Z3(e,1)}};b3=function(e){if(e.tag===13){var t=xr(e,134217728);if(t!==null){var n=Mt();Bn(t,e,134217728,n)}Z3(e,134217728)}};aD=function(e){if(e.tag===13){var t=ti(e),n=xr(e,t);if(n!==null){var r=Mt();Bn(n,e,t,r)}Z3(e,t)}};sD=function(){return ge};oD=function(e,t){var n=ge;try{return ge=e,t()}finally{ge=n}};Ip=function(e,t,n){switch(t){case"input":if(Tp(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=rf(r);if(!i)throw Error(L(90));Lw(r),Tp(r,i)}}}break;case"textarea":jw(e,n);break;case"select":t=n.value,t!=null&&Ga(e,!!n.multiple,t,!1)}};Yw=H3;qw=ta;var JF={usingClientEntryPoint:!1,Events:[Rl,Na,rf,Hw,Kw,H3]},Vs={findFiberByHostInstance:Ni,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},eA={bundleType:Vs.bundleType,version:Vs.version,rendererPackageName:Vs.rendererPackageName,rendererConfig:Vs.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Dr.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Xw(e),e===null?null:e.stateNode},findFiberByHostInstance:Vs.findFiberByHostInstance||XF,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var lu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!lu.isDisabled&&lu.supportsFiber)try{Jd=lu.inject(eA),qn=lu}catch{}}un.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=JF;un.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Q3(t))throw Error(L(200));return ZF(e,t,null,n)};un.createRoot=function(e,t){if(!Q3(e))throw Error(L(299));var n=!1,r="",i=P_;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=G3(e,1,!1,null,null,n,!1,r,i),e[$r]=t.current,Zo(e.nodeType===8?e.parentNode:e),new X3(t)};un.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(L(188)):(e=Object.keys(e).join(","),Error(L(268,e)));return e=Xw(t),e=e===null?null:e.stateNode,e};un.flushSync=function(e){return ta(e)};un.hydrate=function(e,t,n){if(!hf(t))throw Error(L(200));return pf(null,e,t,!0,n)};un.hydrateRoot=function(e,t,n){if(!Q3(e))throw Error(L(405));var r=n!=null&&n.hydratedSources||null,i=!1,a="",s=P_;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(a=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=k_(t,null,e,1,n??null,i,!1,a,s),e[$r]=t.current,Zo(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new ff(t)};un.render=function(e,t,n){if(!hf(t))throw Error(L(200));return pf(null,e,t,!1,n)};un.unmountComponentAtNode=function(e){if(!hf(e))throw Error(L(40));return e._reactRootContainer?(ta(function(){pf(null,null,e,!1,function(){e._reactRootContainer=null,e[$r]=null})}),!0):!1};un.unstable_batchedUpdates=H3;un.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!hf(n))throw Error(L(200));if(e==null||e._reactInternals===void 0)throw Error(L(38));return pf(e,t,n,!1,r)};un.version="18.3.1-next-f1338f8080-20240426";function T_(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(T_)}catch(e){console.error(e)}}T_(),Tw.exports=un;var R_=Tw.exports;const co=bw(R_);var i2=R_;Dp.createRoot=i2.createRoot,Dp.hydrateRoot=i2.hydrateRoot;/**
  * @remix-run/router v1.17.1
  *
  * Copyright (c) Remix Software Inc.
@@ -46,7 +46,7 @@ Error generating stack: `+a.message+`
  * LICENSE.md file in the root directory of this source tree.
  *
  * @license MIT
- */function al(){return al=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},al.apply(this,arguments)}var Wr;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Wr||(Wr={}));const a2="popstate";function eA(e){e===void 0&&(e={});function t(r,i){let{pathname:a,search:s,hash:o}=r.location;return gm("",{pathname:a,search:s,hash:o},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:F_(i)}return nA(t,n,null,e)}function at(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function M_(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function tA(){return Math.random().toString(36).substr(2,8)}function s2(e,t){return{usr:e.state,key:e.key,idx:t}}function gm(e,t,n,r){return n===void 0&&(n=null),al({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?ks(t):t,{state:n,key:t&&t.key||r||tA()})}function F_(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function ks(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function nA(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:a=!1}=r,s=i.history,o=Wr.Pop,l=null,u=c();u==null&&(u=0,s.replaceState(al({},s.state,{idx:u}),""));function c(){return(s.state||{idx:null}).idx}function d(){o=Wr.Pop;let b=c(),v=b==null?null:b-u;u=b,l&&l({action:o,location:g.location,delta:v})}function f(b,v){o=Wr.Push;let m=gm(g.location,b,v);u=c()+1;let $=s2(m,u),w=g.createHref(m);try{s.pushState($,"",w)}catch(D){if(D instanceof DOMException&&D.name==="DataCloneError")throw D;i.location.assign(w)}a&&l&&l({action:o,location:g.location,delta:1})}function h(b,v){o=Wr.Replace;let m=gm(g.location,b,v);u=c();let $=s2(m,u),w=g.createHref(m);s.replaceState($,"",w),a&&l&&l({action:o,location:g.location,delta:0})}function p(b){let v=i.location.origin!=="null"?i.location.origin:i.location.href,m=typeof b=="string"?b:F_(b);return m=m.replace(/ $/,"%20"),at(v,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,v)}let g={get action(){return o},get location(){return e(i,s)},listen(b){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(a2,d),l=b,()=>{i.removeEventListener(a2,d),l=null}},createHref(b){return t(i,b)},createURL:p,encodeLocation(b){let v=p(b);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:f,replace:h,go(b){return s.go(b)}};return g}var o2;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(o2||(o2={}));function rA(e,t,n){return n===void 0&&(n="/"),iA(e,t,n,!1)}function iA(e,t,n,r){let i=typeof t=="string"?ks(t):t,a=B_(i.pathname||"/",n);if(a==null)return null;let s=A_(e);aA(s);let o=null;for(let l=0;o==null&&l<s.length;++l){let u=gA(a);o=pA(s[l],u,r)}return o}function A_(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(a,s,o)=>{let l={relativePath:o===void 0?a.path||"":o,caseSensitive:a.caseSensitive===!0,childrenIndex:s,route:a};l.relativePath.startsWith("/")&&(at(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=qi([r,l.relativePath]),c=n.concat(l);a.children&&a.children.length>0&&(at(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),A_(a.children,t,c,u)),!(a.path==null&&!a.index)&&t.push({path:u,score:fA(u,a.index),routesMeta:c})};return e.forEach((a,s)=>{var o;if(a.path===""||!((o=a.path)!=null&&o.includes("?")))i(a,s);else for(let l of O_(a.path))i(a,s,l)}),t}function O_(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return i?[a,""]:[a];let s=O_(r.join("/")),o=[];return o.push(...s.map(l=>l===""?a:[a,l].join("/"))),i&&o.push(...s),o.map(l=>e.startsWith("/")&&l===""?"/":l)}function aA(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:hA(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const sA=/^:[\w-]+$/,oA=3,lA=2,uA=1,cA=10,dA=-2,l2=e=>e==="*";function fA(e,t){let n=e.split("/"),r=n.length;return n.some(l2)&&(r+=dA),t&&(r+=lA),n.filter(i=>!l2(i)).reduce((i,a)=>i+(sA.test(a)?oA:a===""?uA:cA),r)}function hA(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function pA(e,t,n){let{routesMeta:r}=e,i={},a="/",s=[];for(let o=0;o<r.length;++o){let l=r[o],u=o===r.length-1,c=a==="/"?t:t.slice(a.length)||"/",d=u2({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},c),f=l.route;if(!d&&u&&n&&!r[r.length-1].route.index&&(d=u2({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},c)),!d)return null;Object.assign(i,d.params),s.push({params:i,pathname:qi([a,d.pathname]),pathnameBase:wA(qi([a,d.pathnameBase])),route:f}),d.pathnameBase!=="/"&&(a=qi([a,d.pathnameBase]))}return s}function u2(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=mA(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let a=i[0],s=a.replace(/(.)\/+$/,"$1"),o=i.slice(1);return{params:r.reduce((u,c,d)=>{let{paramName:f,isOptional:h}=c;if(f==="*"){let g=o[d]||"";s=a.slice(0,a.length-g.length).replace(/(.)\/+$/,"$1")}const p=o[d];return h&&!p?u[f]=void 0:u[f]=(p||"").replace(/%2F/g,"/"),u},{}),pathname:a,pathnameBase:s,pattern:e}}function mA(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),M_(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,o,l)=>(r.push({paramName:o,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function gA(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return M_(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function B_(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function vA(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?ks(e):e;return{pathname:n?n.startsWith("/")?n:bA(n,t):t,search:DA(r),hash:_A(i)}}function bA(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function xh(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"].  Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function yA(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function $A(e,t){let n=yA(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function xA(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=ks(e):(i=al({},e),at(!i.pathname||!i.pathname.includes("?"),xh("?","pathname","search",i)),at(!i.pathname||!i.pathname.includes("#"),xh("#","pathname","hash",i)),at(!i.search||!i.search.includes("#"),xh("#","search","hash",i)));let a=e===""||i.pathname==="",s=a?"/":i.pathname,o;if(s==null)o=n;else{let d=t.length-1;if(!r&&s.startsWith("..")){let f=s.split("/");for(;f[0]==="..";)f.shift(),d-=1;i.pathname=f.join("/")}o=d>=0?t[d]:"/"}let l=vA(i,o),u=s&&s!=="/"&&s.endsWith("/"),c=(a||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const qi=e=>e.join("/").replace(/\/\/+/g,"/"),wA=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),DA=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,_A=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function EA(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const I_=["post","put","patch","delete"];new Set(I_);const SA=["get",...I_];new Set(SA);/**
+ */function al(){return al=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},al.apply(this,arguments)}var Wr;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Wr||(Wr={}));const a2="popstate";function tA(e){e===void 0&&(e={});function t(r,i){let{pathname:a,search:s,hash:o}=r.location;return gm("",{pathname:a,search:s,hash:o},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:F_(i)}return rA(t,n,null,e)}function at(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function M_(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function nA(){return Math.random().toString(36).substr(2,8)}function s2(e,t){return{usr:e.state,key:e.key,idx:t}}function gm(e,t,n,r){return n===void 0&&(n=null),al({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?ks(t):t,{state:n,key:t&&t.key||r||nA()})}function F_(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function ks(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function rA(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:a=!1}=r,s=i.history,o=Wr.Pop,l=null,u=c();u==null&&(u=0,s.replaceState(al({},s.state,{idx:u}),""));function c(){return(s.state||{idx:null}).idx}function d(){o=Wr.Pop;let b=c(),v=b==null?null:b-u;u=b,l&&l({action:o,location:g.location,delta:v})}function f(b,v){o=Wr.Push;let m=gm(g.location,b,v);u=c()+1;let $=s2(m,u),w=g.createHref(m);try{s.pushState($,"",w)}catch(D){if(D instanceof DOMException&&D.name==="DataCloneError")throw D;i.location.assign(w)}a&&l&&l({action:o,location:g.location,delta:1})}function h(b,v){o=Wr.Replace;let m=gm(g.location,b,v);u=c();let $=s2(m,u),w=g.createHref(m);s.replaceState($,"",w),a&&l&&l({action:o,location:g.location,delta:0})}function p(b){let v=i.location.origin!=="null"?i.location.origin:i.location.href,m=typeof b=="string"?b:F_(b);return m=m.replace(/ $/,"%20"),at(v,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,v)}let g={get action(){return o},get location(){return e(i,s)},listen(b){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(a2,d),l=b,()=>{i.removeEventListener(a2,d),l=null}},createHref(b){return t(i,b)},createURL:p,encodeLocation(b){let v=p(b);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:f,replace:h,go(b){return s.go(b)}};return g}var o2;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(o2||(o2={}));function iA(e,t,n){return n===void 0&&(n="/"),aA(e,t,n,!1)}function aA(e,t,n,r){let i=typeof t=="string"?ks(t):t,a=B_(i.pathname||"/",n);if(a==null)return null;let s=A_(e);sA(s);let o=null;for(let l=0;o==null&&l<s.length;++l){let u=vA(a);o=mA(s[l],u,r)}return o}function A_(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(a,s,o)=>{let l={relativePath:o===void 0?a.path||"":o,caseSensitive:a.caseSensitive===!0,childrenIndex:s,route:a};l.relativePath.startsWith("/")&&(at(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=qi([r,l.relativePath]),c=n.concat(l);a.children&&a.children.length>0&&(at(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),A_(a.children,t,c,u)),!(a.path==null&&!a.index)&&t.push({path:u,score:hA(u,a.index),routesMeta:c})};return e.forEach((a,s)=>{var o;if(a.path===""||!((o=a.path)!=null&&o.includes("?")))i(a,s);else for(let l of O_(a.path))i(a,s,l)}),t}function O_(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return i?[a,""]:[a];let s=O_(r.join("/")),o=[];return o.push(...s.map(l=>l===""?a:[a,l].join("/"))),i&&o.push(...s),o.map(l=>e.startsWith("/")&&l===""?"/":l)}function sA(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:pA(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const oA=/^:[\w-]+$/,lA=3,uA=2,cA=1,dA=10,fA=-2,l2=e=>e==="*";function hA(e,t){let n=e.split("/"),r=n.length;return n.some(l2)&&(r+=fA),t&&(r+=uA),n.filter(i=>!l2(i)).reduce((i,a)=>i+(oA.test(a)?lA:a===""?cA:dA),r)}function pA(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function mA(e,t,n){let{routesMeta:r}=e,i={},a="/",s=[];for(let o=0;o<r.length;++o){let l=r[o],u=o===r.length-1,c=a==="/"?t:t.slice(a.length)||"/",d=u2({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},c),f=l.route;if(!d&&u&&n&&!r[r.length-1].route.index&&(d=u2({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},c)),!d)return null;Object.assign(i,d.params),s.push({params:i,pathname:qi([a,d.pathname]),pathnameBase:DA(qi([a,d.pathnameBase])),route:f}),d.pathnameBase!=="/"&&(a=qi([a,d.pathnameBase]))}return s}function u2(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=gA(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let a=i[0],s=a.replace(/(.)\/+$/,"$1"),o=i.slice(1);return{params:r.reduce((u,c,d)=>{let{paramName:f,isOptional:h}=c;if(f==="*"){let g=o[d]||"";s=a.slice(0,a.length-g.length).replace(/(.)\/+$/,"$1")}const p=o[d];return h&&!p?u[f]=void 0:u[f]=(p||"").replace(/%2F/g,"/"),u},{}),pathname:a,pathnameBase:s,pattern:e}}function gA(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),M_(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,o,l)=>(r.push({paramName:o,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function vA(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return M_(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function B_(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function bA(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?ks(e):e;return{pathname:n?n.startsWith("/")?n:yA(n,t):t,search:_A(r),hash:EA(i)}}function yA(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function xh(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"].  Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function $A(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function xA(e,t){let n=$A(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function wA(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=ks(e):(i=al({},e),at(!i.pathname||!i.pathname.includes("?"),xh("?","pathname","search",i)),at(!i.pathname||!i.pathname.includes("#"),xh("#","pathname","hash",i)),at(!i.search||!i.search.includes("#"),xh("#","search","hash",i)));let a=e===""||i.pathname==="",s=a?"/":i.pathname,o;if(s==null)o=n;else{let d=t.length-1;if(!r&&s.startsWith("..")){let f=s.split("/");for(;f[0]==="..";)f.shift(),d-=1;i.pathname=f.join("/")}o=d>=0?t[d]:"/"}let l=bA(i,o),u=s&&s!=="/"&&s.endsWith("/"),c=(a||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const qi=e=>e.join("/").replace(/\/\/+/g,"/"),DA=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),_A=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,EA=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function SA(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const I_=["post","put","patch","delete"];new Set(I_);const CA=["get",...I_];new Set(CA);/**
  * React Router v6.24.1
  *
  * Copyright (c) Remix Software Inc.
@@ -55,7 +55,7 @@ Error generating stack: `+a.message+`
  * LICENSE.md file in the root directory of this source tree.
  *
  * @license MIT
- */function sl(){return sl=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},sl.apply(this,arguments)}const J3=y.createContext(null),CA=y.createContext(null),mf=y.createContext(null),gf=y.createContext(null),Ps=y.createContext({outlet:null,matches:[],isDataRoute:!1}),L_=y.createContext(null);function vf(){return y.useContext(gf)!=null}function N_(){return vf()||at(!1),y.useContext(gf).location}function j_(e){y.useContext(mf).static||y.useLayoutEffect(e)}function Fl(){let{isDataRoute:e}=y.useContext(Ps);return e?jA():kA()}function kA(){vf()||at(!1);let e=y.useContext(J3),{basename:t,future:n,navigator:r}=y.useContext(mf),{matches:i}=y.useContext(Ps),{pathname:a}=N_(),s=JSON.stringify($A(i,n.v7_relativeSplatPath)),o=y.useRef(!1);return j_(()=>{o.current=!0}),y.useCallback(function(u,c){if(c===void 0&&(c={}),!o.current)return;if(typeof u=="number"){r.go(u);return}let d=xA(u,JSON.parse(s),a,c.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:qi([t,d.pathname])),(c.replace?r.replace:r.push)(d,c.state,c)},[t,r,s,a,e])}function PA(e,t){return TA(e,t)}function TA(e,t,n,r){vf()||at(!1);let{navigator:i}=y.useContext(mf),{matches:a}=y.useContext(Ps),s=a[a.length-1],o=s?s.params:{};s&&s.pathname;let l=s?s.pathnameBase:"/";s&&s.route;let u=N_(),c;if(t){var d;let b=typeof t=="string"?ks(t):t;l==="/"||(d=b.pathname)!=null&&d.startsWith(l)||at(!1),c=b}else c=u;let f=c.pathname||"/",h=f;if(l!=="/"){let b=l.replace(/^\//,"").split("/");h="/"+f.replace(/^\//,"").split("/").slice(b.length).join("/")}let p=rA(e,{pathname:h}),g=OA(p&&p.map(b=>Object.assign({},b,{params:Object.assign({},o,b.params),pathname:qi([l,i.encodeLocation?i.encodeLocation(b.pathname).pathname:b.pathname]),pathnameBase:b.pathnameBase==="/"?l:qi([l,i.encodeLocation?i.encodeLocation(b.pathnameBase).pathname:b.pathnameBase])})),a,n,r);return t&&g?y.createElement(gf.Provider,{value:{location:sl({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:Wr.Pop}},g):g}function RA(){let e=NA(),t=EA(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return y.createElement(y.Fragment,null,y.createElement("h2",null,"Unexpected Application Error!"),y.createElement("h3",{style:{fontStyle:"italic"}},t),n?y.createElement("pre",{style:i},n):null,null)}const MA=y.createElement(RA,null);class FA extends y.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?y.createElement(Ps.Provider,{value:this.props.routeContext},y.createElement(L_.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function AA(e){let{routeContext:t,match:n,children:r}=e,i=y.useContext(J3);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),y.createElement(Ps.Provider,{value:t},r)}function OA(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var a;if((a=n)!=null&&a.errors)e=n.matches;else return null}let s=e,o=(i=n)==null?void 0:i.errors;if(o!=null){let c=s.findIndex(d=>d.route.id&&(o==null?void 0:o[d.route.id])!==void 0);c>=0||at(!1),s=s.slice(0,Math.min(s.length,c+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c<s.length;c++){let d=s[c];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(u=c),d.route.id){let{loaderData:f,errors:h}=n,p=d.route.loader&&f[d.route.id]===void 0&&(!h||h[d.route.id]===void 0);if(d.route.lazy||p){l=!0,u>=0?s=s.slice(0,u+1):s=[s[0]];break}}}return s.reduceRight((c,d,f)=>{let h,p=!1,g=null,b=null;n&&(h=o&&d.route.id?o[d.route.id]:void 0,g=d.route.errorElement||MA,l&&(u<0&&f===0?(p=!0,b=null):u===f&&(p=!0,b=d.route.hydrateFallbackElement||null)));let v=t.concat(s.slice(0,f+1)),m=()=>{let $;return h?$=g:p?$=b:d.route.Component?$=y.createElement(d.route.Component,null):d.route.element?$=d.route.element:$=c,y.createElement(AA,{match:d,routeContext:{outlet:c,matches:v,isDataRoute:n!=null},children:$})};return n&&(d.route.ErrorBoundary||d.route.errorElement||f===0)?y.createElement(FA,{location:n.location,revalidation:n.revalidation,component:g,error:h,children:m(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):m()},null)}var z_=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(z_||{}),Nc=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Nc||{});function BA(e){let t=y.useContext(J3);return t||at(!1),t}function IA(e){let t=y.useContext(CA);return t||at(!1),t}function LA(e){let t=y.useContext(Ps);return t||at(!1),t}function V_(e){let t=LA(),n=t.matches[t.matches.length-1];return n.route.id||at(!1),n.route.id}function NA(){var e;let t=y.useContext(L_),n=IA(Nc.UseRouteError),r=V_(Nc.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function jA(){let{router:e}=BA(z_.UseNavigateStable),t=V_(Nc.UseNavigateStable),n=y.useRef(!1);return j_(()=>{n.current=!0}),y.useCallback(function(i,a){a===void 0&&(a={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,sl({fromRouteId:t},a)))},[e,t])}function Pi(e){at(!1)}function zA(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Wr.Pop,navigator:a,static:s=!1,future:o}=e;vf()&&at(!1);let l=t.replace(/^\/*/,"/"),u=y.useMemo(()=>({basename:l,navigator:a,static:s,future:sl({v7_relativeSplatPath:!1},o)}),[l,o,a,s]);typeof r=="string"&&(r=ks(r));let{pathname:c="/",search:d="",hash:f="",state:h=null,key:p="default"}=r,g=y.useMemo(()=>{let b=B_(c,l);return b==null?null:{location:{pathname:b,search:d,hash:f,state:h,key:p},navigationType:i}},[l,c,d,f,h,p,i]);return g==null?null:y.createElement(mf.Provider,{value:u},y.createElement(gf.Provider,{children:n,value:g}))}function VA(e){let{children:t,location:n}=e;return PA(vm(t),n)}new Promise(()=>{});function vm(e,t){t===void 0&&(t=[]);let n=[];return y.Children.forEach(e,(r,i)=>{if(!y.isValidElement(r))return;let a=[...t,i];if(r.type===y.Fragment){n.push.apply(n,vm(r.props.children,a));return}r.type!==Pi&&at(!1),!r.props.index||!r.props.children||at(!1);let s={id:r.props.id||a.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=vm(r.props.children,a)),n.push(s)}),n}/**
+ */function sl(){return sl=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},sl.apply(this,arguments)}const J3=y.createContext(null),kA=y.createContext(null),mf=y.createContext(null),gf=y.createContext(null),Ps=y.createContext({outlet:null,matches:[],isDataRoute:!1}),L_=y.createContext(null);function vf(){return y.useContext(gf)!=null}function N_(){return vf()||at(!1),y.useContext(gf).location}function j_(e){y.useContext(mf).static||y.useLayoutEffect(e)}function Fl(){let{isDataRoute:e}=y.useContext(Ps);return e?zA():PA()}function PA(){vf()||at(!1);let e=y.useContext(J3),{basename:t,future:n,navigator:r}=y.useContext(mf),{matches:i}=y.useContext(Ps),{pathname:a}=N_(),s=JSON.stringify(xA(i,n.v7_relativeSplatPath)),o=y.useRef(!1);return j_(()=>{o.current=!0}),y.useCallback(function(u,c){if(c===void 0&&(c={}),!o.current)return;if(typeof u=="number"){r.go(u);return}let d=wA(u,JSON.parse(s),a,c.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:qi([t,d.pathname])),(c.replace?r.replace:r.push)(d,c.state,c)},[t,r,s,a,e])}function TA(e,t){return RA(e,t)}function RA(e,t,n,r){vf()||at(!1);let{navigator:i}=y.useContext(mf),{matches:a}=y.useContext(Ps),s=a[a.length-1],o=s?s.params:{};s&&s.pathname;let l=s?s.pathnameBase:"/";s&&s.route;let u=N_(),c;if(t){var d;let b=typeof t=="string"?ks(t):t;l==="/"||(d=b.pathname)!=null&&d.startsWith(l)||at(!1),c=b}else c=u;let f=c.pathname||"/",h=f;if(l!=="/"){let b=l.replace(/^\//,"").split("/");h="/"+f.replace(/^\//,"").split("/").slice(b.length).join("/")}let p=iA(e,{pathname:h}),g=BA(p&&p.map(b=>Object.assign({},b,{params:Object.assign({},o,b.params),pathname:qi([l,i.encodeLocation?i.encodeLocation(b.pathname).pathname:b.pathname]),pathnameBase:b.pathnameBase==="/"?l:qi([l,i.encodeLocation?i.encodeLocation(b.pathnameBase).pathname:b.pathnameBase])})),a,n,r);return t&&g?y.createElement(gf.Provider,{value:{location:sl({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:Wr.Pop}},g):g}function MA(){let e=jA(),t=SA(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return y.createElement(y.Fragment,null,y.createElement("h2",null,"Unexpected Application Error!"),y.createElement("h3",{style:{fontStyle:"italic"}},t),n?y.createElement("pre",{style:i},n):null,null)}const FA=y.createElement(MA,null);class AA extends y.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?y.createElement(Ps.Provider,{value:this.props.routeContext},y.createElement(L_.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function OA(e){let{routeContext:t,match:n,children:r}=e,i=y.useContext(J3);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),y.createElement(Ps.Provider,{value:t},r)}function BA(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var a;if((a=n)!=null&&a.errors)e=n.matches;else return null}let s=e,o=(i=n)==null?void 0:i.errors;if(o!=null){let c=s.findIndex(d=>d.route.id&&(o==null?void 0:o[d.route.id])!==void 0);c>=0||at(!1),s=s.slice(0,Math.min(s.length,c+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c<s.length;c++){let d=s[c];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(u=c),d.route.id){let{loaderData:f,errors:h}=n,p=d.route.loader&&f[d.route.id]===void 0&&(!h||h[d.route.id]===void 0);if(d.route.lazy||p){l=!0,u>=0?s=s.slice(0,u+1):s=[s[0]];break}}}return s.reduceRight((c,d,f)=>{let h,p=!1,g=null,b=null;n&&(h=o&&d.route.id?o[d.route.id]:void 0,g=d.route.errorElement||FA,l&&(u<0&&f===0?(p=!0,b=null):u===f&&(p=!0,b=d.route.hydrateFallbackElement||null)));let v=t.concat(s.slice(0,f+1)),m=()=>{let $;return h?$=g:p?$=b:d.route.Component?$=y.createElement(d.route.Component,null):d.route.element?$=d.route.element:$=c,y.createElement(OA,{match:d,routeContext:{outlet:c,matches:v,isDataRoute:n!=null},children:$})};return n&&(d.route.ErrorBoundary||d.route.errorElement||f===0)?y.createElement(AA,{location:n.location,revalidation:n.revalidation,component:g,error:h,children:m(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):m()},null)}var z_=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(z_||{}),Nc=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Nc||{});function IA(e){let t=y.useContext(J3);return t||at(!1),t}function LA(e){let t=y.useContext(kA);return t||at(!1),t}function NA(e){let t=y.useContext(Ps);return t||at(!1),t}function V_(e){let t=NA(),n=t.matches[t.matches.length-1];return n.route.id||at(!1),n.route.id}function jA(){var e;let t=y.useContext(L_),n=LA(Nc.UseRouteError),r=V_(Nc.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function zA(){let{router:e}=IA(z_.UseNavigateStable),t=V_(Nc.UseNavigateStable),n=y.useRef(!1);return j_(()=>{n.current=!0}),y.useCallback(function(i,a){a===void 0&&(a={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,sl({fromRouteId:t},a)))},[e,t])}function Pi(e){at(!1)}function VA(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Wr.Pop,navigator:a,static:s=!1,future:o}=e;vf()&&at(!1);let l=t.replace(/^\/*/,"/"),u=y.useMemo(()=>({basename:l,navigator:a,static:s,future:sl({v7_relativeSplatPath:!1},o)}),[l,o,a,s]);typeof r=="string"&&(r=ks(r));let{pathname:c="/",search:d="",hash:f="",state:h=null,key:p="default"}=r,g=y.useMemo(()=>{let b=B_(c,l);return b==null?null:{location:{pathname:b,search:d,hash:f,state:h,key:p},navigationType:i}},[l,c,d,f,h,p,i]);return g==null?null:y.createElement(mf.Provider,{value:u},y.createElement(gf.Provider,{children:n,value:g}))}function WA(e){let{children:t,location:n}=e;return TA(vm(t),n)}new Promise(()=>{});function vm(e,t){t===void 0&&(t=[]);let n=[];return y.Children.forEach(e,(r,i)=>{if(!y.isValidElement(r))return;let a=[...t,i];if(r.type===y.Fragment){n.push.apply(n,vm(r.props.children,a));return}r.type!==Pi&&at(!1),!r.props.index||!r.props.children||at(!1);let s={id:r.props.id||a.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=vm(r.props.children,a)),n.push(s)}),n}/**
  * React Router DOM v6.24.1
  *
  * Copyright (c) Remix Software Inc.
@@ -64,22 +64,22 @@ Error generating stack: `+a.message+`
  * LICENSE.md file in the root directory of this source tree.
  *
  * @license MIT
- */const WA="6";try{window.__reactRouterVersion=WA}catch{}const UA="startTransition",c2=WR[UA];function HA(e){let{basename:t,children:n,future:r,window:i}=e,a=y.useRef();a.current==null&&(a.current=eA({window:i,v5Compat:!0}));let s=a.current,[o,l]=y.useState({action:s.action,location:s.location}),{v7_startTransition:u}=r||{},c=y.useCallback(d=>{u&&c2?c2(()=>l(d)):l(d)},[l,u]);return y.useLayoutEffect(()=>s.listen(c),[s,c]),y.createElement(zA,{basename:t,children:n,location:o.location,navigationType:o.action,navigator:s,future:r})}var d2;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(d2||(d2={}));var f2;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(f2||(f2={}));const KA="modulepreload",YA=function(e,t){return new URL(e,t).href},h2={},bs=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){const a=document.getElementsByTagName("link"),s=document.querySelector("meta[property=csp-nonce]"),o=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));i=Promise.all(n.map(l=>{if(l=YA(l,r),l in h2)return;h2[l]=!0;const u=l.endsWith(".css"),c=u?'[rel="stylesheet"]':"";if(!!r)for(let h=a.length-1;h>=0;h--){const p=a[h];if(p.href===l&&(!u||p.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${c}`))return;const f=document.createElement("link");if(f.rel=u?"stylesheet":KA,u||(f.as="script",f.crossOrigin=""),f.href=l,o&&f.setAttribute("nonce",o),document.head.appendChild(f),u)return new Promise((h,p)=>{f.addEventListener("load",h),f.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${l}`)))})}))}return i.then(()=>t()).catch(a=>{const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=a,window.dispatchEvent(s),!s.defaultPrevented)throw a})},qA=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...n)=>bs(async()=>{const{default:r}=await Promise.resolve().then(()=>Ts);return{default:r}},void 0,import.meta.url).then(({default:r})=>r(...n)):t=fetch,(...n)=>t(...n)};class e$ extends Error{constructor(t,n="FunctionsError",r){super(t),this.name=n,this.context=r}}class GA extends e${constructor(t){super("Failed to send a request to the Edge Function","FunctionsFetchError",t)}}class ZA extends e${constructor(t){super("Relay Error invoking the Edge Function","FunctionsRelayError",t)}}class XA extends e${constructor(t){super("Edge Function returned a non-2xx status code","FunctionsHttpError",t)}}var bm;(function(e){e.Any="any",e.ApNortheast1="ap-northeast-1",e.ApNortheast2="ap-northeast-2",e.ApSouth1="ap-south-1",e.ApSoutheast1="ap-southeast-1",e.ApSoutheast2="ap-southeast-2",e.CaCentral1="ca-central-1",e.EuCentral1="eu-central-1",e.EuWest1="eu-west-1",e.EuWest2="eu-west-2",e.EuWest3="eu-west-3",e.SaEast1="sa-east-1",e.UsEast1="us-east-1",e.UsWest1="us-west-1",e.UsWest2="us-west-2"})(bm||(bm={}));var QA=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(s){s(a)})}return new(n||(n=Promise))(function(a,s){function o(c){try{u(r.next(c))}catch(d){s(d)}}function l(c){try{u(r.throw(c))}catch(d){s(d)}}function u(c){c.done?a(c.value):i(c.value).then(o,l)}u((r=r.apply(e,t||[])).next())})};class JA{constructor(t,{headers:n={},customFetch:r,region:i=bm.Any}={}){this.url=t,this.headers=n,this.region=i,this.fetch=qA(r)}setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(t,n={}){var r;return QA(this,void 0,void 0,function*(){try{const{headers:i,method:a,body:s}=n;let o={},{region:l}=n;l||(l=this.region),l&&l!=="any"&&(o["x-region"]=l);let u;s&&(i&&!Object.prototype.hasOwnProperty.call(i,"Content-Type")||!i)&&(typeof Blob<"u"&&s instanceof Blob||s instanceof ArrayBuffer?(o["Content-Type"]="application/octet-stream",u=s):typeof s=="string"?(o["Content-Type"]="text/plain",u=s):typeof FormData<"u"&&s instanceof FormData?u=s:(o["Content-Type"]="application/json",u=JSON.stringify(s)));const c=yield this.fetch(`${this.url}/${t}`,{method:a||"POST",headers:Object.assign(Object.assign(Object.assign({},o),this.headers),i),body:u}).catch(p=>{throw new GA(p)}),d=c.headers.get("x-relay-error");if(d&&d==="true")throw new ZA(c);if(!c.ok)throw new XA(c);let f=((r=c.headers.get("Content-Type"))!==null&&r!==void 0?r:"text/plain").split(";")[0].trim(),h;return f==="application/json"?h=yield c.json():f==="application/octet-stream"?h=yield c.blob():f==="text/event-stream"?h=c:f==="multipart/form-data"?h=yield c.formData():h=yield c.text(),{data:h,error:null}}catch(i){return{data:null,error:i}}})}}var yn={},t$={},bf={},Al={},yf={},$f={},eO=function(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")},ys=eO();const tO=ys.fetch,W_=ys.fetch.bind(ys),U_=ys.Headers,nO=ys.Request,rO=ys.Response,Ts=Object.freeze(Object.defineProperty({__proto__:null,Headers:U_,Request:nO,Response:rO,default:W_,fetch:tO},Symbol.toStringTag,{value:"Module"})),iO=CR(Ts);var n$={};Object.defineProperty(n$,"__esModule",{value:!0});class aO extends Error{constructor(t){super(t.message),this.name="PostgrestError",this.details=t.details,this.hint=t.hint,this.code=t.code}}n$.default=aO;var H_=Dn&&Dn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty($f,"__esModule",{value:!0});const sO=H_(iO),oO=H_(n$);let lO=class{constructor(t){this.shouldThrowOnError=!1,this.method=t.method,this.url=t.url,this.headers=t.headers,this.schema=t.schema,this.body=t.body,this.shouldThrowOnError=t.shouldThrowOnError,this.signal=t.signal,this.isMaybeSingle=t.isMaybeSingle,t.fetch?this.fetch=t.fetch:typeof fetch>"u"?this.fetch=sO.default:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}then(t,n){this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers["Accept-Profile"]=this.schema:this.headers["Content-Profile"]=this.schema),this.method!=="GET"&&this.method!=="HEAD"&&(this.headers["Content-Type"]="application/json");const r=this.fetch;let i=r(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async a=>{var s,o,l;let u=null,c=null,d=null,f=a.status,h=a.statusText;if(a.ok){if(this.method!=="HEAD"){const v=await a.text();v===""||(this.headers.Accept==="text/csv"||this.headers.Accept&&this.headers.Accept.includes("application/vnd.pgrst.plan+text")?c=v:c=JSON.parse(v))}const g=(s=this.headers.Prefer)===null||s===void 0?void 0:s.match(/count=(exact|planned|estimated)/),b=(o=a.headers.get("content-range"))===null||o===void 0?void 0:o.split("/");g&&b&&b.length>1&&(d=parseInt(b[1])),this.isMaybeSingle&&this.method==="GET"&&Array.isArray(c)&&(c.length>1?(u={code:"PGRST116",details:`Results contain ${c.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},c=null,d=null,f=406,h="Not Acceptable"):c.length===1?c=c[0]:c=null)}else{const g=await a.text();try{u=JSON.parse(g),Array.isArray(u)&&a.status===404&&(c=[],u=null,f=200,h="OK")}catch{a.status===404&&g===""?(f=204,h="No Content"):u={message:g}}if(u&&this.isMaybeSingle&&(!((l=u==null?void 0:u.details)===null||l===void 0)&&l.includes("0 rows"))&&(u=null,f=200,h="OK"),u&&this.shouldThrowOnError)throw new oO.default(u)}return{error:u,data:c,count:d,status:f,statusText:h}});return this.shouldThrowOnError||(i=i.catch(a=>{var s,o,l;return{error:{message:`${(s=a==null?void 0:a.name)!==null&&s!==void 0?s:"FetchError"}: ${a==null?void 0:a.message}`,details:`${(o=a==null?void 0:a.stack)!==null&&o!==void 0?o:""}`,hint:"",code:`${(l=a==null?void 0:a.code)!==null&&l!==void 0?l:""}`},data:null,count:null,status:0,statusText:""}})),i.then(t,n)}};$f.default=lO;var uO=Dn&&Dn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(yf,"__esModule",{value:!0});const cO=uO($f);let dO=class extends cO.default{select(t){let n=!1;const r=(t??"*").split("").map(i=>/\s/.test(i)&&!n?"":(i==='"'&&(n=!n),i)).join("");return this.url.searchParams.set("select",r),this.headers.Prefer&&(this.headers.Prefer+=","),this.headers.Prefer+="return=representation",this}order(t,{ascending:n=!0,nullsFirst:r,foreignTable:i,referencedTable:a=i}={}){const s=a?`${a}.order`:"order",o=this.url.searchParams.get(s);return this.url.searchParams.set(s,`${o?`${o},`:""}${t}.${n?"asc":"desc"}${r===void 0?"":r?".nullsfirst":".nullslast"}`),this}limit(t,{foreignTable:n,referencedTable:r=n}={}){const i=typeof r>"u"?"limit":`${r}.limit`;return this.url.searchParams.set(i,`${t}`),this}range(t,n,{foreignTable:r,referencedTable:i=r}={}){const a=typeof i>"u"?"offset":`${i}.offset`,s=typeof i>"u"?"limit":`${i}.limit`;return this.url.searchParams.set(a,`${t}`),this.url.searchParams.set(s,`${n-t+1}`),this}abortSignal(t){return this.signal=t,this}single(){return this.headers.Accept="application/vnd.pgrst.object+json",this}maybeSingle(){return this.method==="GET"?this.headers.Accept="application/json":this.headers.Accept="application/vnd.pgrst.object+json",this.isMaybeSingle=!0,this}csv(){return this.headers.Accept="text/csv",this}geojson(){return this.headers.Accept="application/geo+json",this}explain({analyze:t=!1,verbose:n=!1,settings:r=!1,buffers:i=!1,wal:a=!1,format:s="text"}={}){var o;const l=[t?"analyze":null,n?"verbose":null,r?"settings":null,i?"buffers":null,a?"wal":null].filter(Boolean).join("|"),u=(o=this.headers.Accept)!==null&&o!==void 0?o:"application/json";return this.headers.Accept=`application/vnd.pgrst.plan+${s}; for="${u}"; options=${l};`,s==="json"?this:this}rollback(){var t;return((t=this.headers.Prefer)!==null&&t!==void 0?t:"").trim().length>0?this.headers.Prefer+=",tx=rollback":this.headers.Prefer="tx=rollback",this}returns(){return this}};yf.default=dO;var fO=Dn&&Dn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Al,"__esModule",{value:!0});const hO=fO(yf);let pO=class extends hO.default{eq(t,n){return this.url.searchParams.append(t,`eq.${n}`),this}neq(t,n){return this.url.searchParams.append(t,`neq.${n}`),this}gt(t,n){return this.url.searchParams.append(t,`gt.${n}`),this}gte(t,n){return this.url.searchParams.append(t,`gte.${n}`),this}lt(t,n){return this.url.searchParams.append(t,`lt.${n}`),this}lte(t,n){return this.url.searchParams.append(t,`lte.${n}`),this}like(t,n){return this.url.searchParams.append(t,`like.${n}`),this}likeAllOf(t,n){return this.url.searchParams.append(t,`like(all).{${n.join(",")}}`),this}likeAnyOf(t,n){return this.url.searchParams.append(t,`like(any).{${n.join(",")}}`),this}ilike(t,n){return this.url.searchParams.append(t,`ilike.${n}`),this}ilikeAllOf(t,n){return this.url.searchParams.append(t,`ilike(all).{${n.join(",")}}`),this}ilikeAnyOf(t,n){return this.url.searchParams.append(t,`ilike(any).{${n.join(",")}}`),this}is(t,n){return this.url.searchParams.append(t,`is.${n}`),this}in(t,n){const r=Array.from(new Set(n)).map(i=>typeof i=="string"&&new RegExp("[,()]").test(i)?`"${i}"`:`${i}`).join(",");return this.url.searchParams.append(t,`in.(${r})`),this}contains(t,n){return typeof n=="string"?this.url.searchParams.append(t,`cs.${n}`):Array.isArray(n)?this.url.searchParams.append(t,`cs.{${n.join(",")}}`):this.url.searchParams.append(t,`cs.${JSON.stringify(n)}`),this}containedBy(t,n){return typeof n=="string"?this.url.searchParams.append(t,`cd.${n}`):Array.isArray(n)?this.url.searchParams.append(t,`cd.{${n.join(",")}}`):this.url.searchParams.append(t,`cd.${JSON.stringify(n)}`),this}rangeGt(t,n){return this.url.searchParams.append(t,`sr.${n}`),this}rangeGte(t,n){return this.url.searchParams.append(t,`nxl.${n}`),this}rangeLt(t,n){return this.url.searchParams.append(t,`sl.${n}`),this}rangeLte(t,n){return this.url.searchParams.append(t,`nxr.${n}`),this}rangeAdjacent(t,n){return this.url.searchParams.append(t,`adj.${n}`),this}overlaps(t,n){return typeof n=="string"?this.url.searchParams.append(t,`ov.${n}`):this.url.searchParams.append(t,`ov.{${n.join(",")}}`),this}textSearch(t,n,{config:r,type:i}={}){let a="";i==="plain"?a="pl":i==="phrase"?a="ph":i==="websearch"&&(a="w");const s=r===void 0?"":`(${r})`;return this.url.searchParams.append(t,`${a}fts${s}.${n}`),this}match(t){return Object.entries(t).forEach(([n,r])=>{this.url.searchParams.append(n,`eq.${r}`)}),this}not(t,n,r){return this.url.searchParams.append(t,`not.${n}.${r}`),this}or(t,{foreignTable:n,referencedTable:r=n}={}){const i=r?`${r}.or`:"or";return this.url.searchParams.append(i,`(${t})`),this}filter(t,n,r){return this.url.searchParams.append(t,`${n}.${r}`),this}};Al.default=pO;var mO=Dn&&Dn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(bf,"__esModule",{value:!0});const Ws=mO(Al);let gO=class{constructor(t,{headers:n={},schema:r,fetch:i}){this.url=t,this.headers=n,this.schema=r,this.fetch=i}select(t,{head:n=!1,count:r}={}){const i=n?"HEAD":"GET";let a=!1;const s=(t??"*").split("").map(o=>/\s/.test(o)&&!a?"":(o==='"'&&(a=!a),o)).join("");return this.url.searchParams.set("select",s),r&&(this.headers.Prefer=`count=${r}`),new Ws.default({method:i,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch,allowEmpty:!1})}insert(t,{count:n,defaultToNull:r=!0}={}){const i="POST",a=[];if(this.headers.Prefer&&a.push(this.headers.Prefer),n&&a.push(`count=${n}`),r||a.push("missing=default"),this.headers.Prefer=a.join(","),Array.isArray(t)){const s=t.reduce((o,l)=>o.concat(Object.keys(l)),[]);if(s.length>0){const o=[...new Set(s)].map(l=>`"${l}"`);this.url.searchParams.set("columns",o.join(","))}}return new Ws.default({method:i,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:this.fetch,allowEmpty:!1})}upsert(t,{onConflict:n,ignoreDuplicates:r=!1,count:i,defaultToNull:a=!0}={}){const s="POST",o=[`resolution=${r?"ignore":"merge"}-duplicates`];if(n!==void 0&&this.url.searchParams.set("on_conflict",n),this.headers.Prefer&&o.push(this.headers.Prefer),i&&o.push(`count=${i}`),a||o.push("missing=default"),this.headers.Prefer=o.join(","),Array.isArray(t)){const l=t.reduce((u,c)=>u.concat(Object.keys(c)),[]);if(l.length>0){const u=[...new Set(l)].map(c=>`"${c}"`);this.url.searchParams.set("columns",u.join(","))}}return new Ws.default({method:s,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:this.fetch,allowEmpty:!1})}update(t,{count:n}={}){const r="PATCH",i=[];return this.headers.Prefer&&i.push(this.headers.Prefer),n&&i.push(`count=${n}`),this.headers.Prefer=i.join(","),new Ws.default({method:r,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:this.fetch,allowEmpty:!1})}delete({count:t}={}){const n="DELETE",r=[];return t&&r.push(`count=${t}`),this.headers.Prefer&&r.unshift(this.headers.Prefer),this.headers.Prefer=r.join(","),new Ws.default({method:n,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch,allowEmpty:!1})}};bf.default=gO;var xf={},wf={};Object.defineProperty(wf,"__esModule",{value:!0});wf.version=void 0;wf.version="0.0.0-automated";Object.defineProperty(xf,"__esModule",{value:!0});xf.DEFAULT_HEADERS=void 0;const vO=wf;xf.DEFAULT_HEADERS={"X-Client-Info":`postgrest-js/${vO.version}`};var K_=Dn&&Dn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t$,"__esModule",{value:!0});const bO=K_(bf),yO=K_(Al),$O=xf;let xO=class Y_{constructor(t,{headers:n={},schema:r,fetch:i}={}){this.url=t,this.headers=Object.assign(Object.assign({},$O.DEFAULT_HEADERS),n),this.schemaName=r,this.fetch=i}from(t){const n=new URL(`${this.url}/${t}`);return new bO.default(n,{headers:Object.assign({},this.headers),schema:this.schemaName,fetch:this.fetch})}schema(t){return new Y_(this.url,{headers:this.headers,schema:t,fetch:this.fetch})}rpc(t,n={},{head:r=!1,get:i=!1,count:a}={}){let s;const o=new URL(`${this.url}/rpc/${t}`);let l;r||i?(s=r?"HEAD":"GET",Object.entries(n).filter(([c,d])=>d!==void 0).map(([c,d])=>[c,Array.isArray(d)?`{${d.join(",")}}`:`${d}`]).forEach(([c,d])=>{o.searchParams.append(c,d)})):(s="POST",l=n);const u=Object.assign({},this.headers);return a&&(u.Prefer=`count=${a}`),new yO.default({method:s,url:o,headers:u,schema:this.schemaName,body:l,fetch:this.fetch,allowEmpty:!1})}};t$.default=xO;var Ol=Dn&&Dn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(yn,"__esModule",{value:!0});yn.PostgrestBuilder=yn.PostgrestTransformBuilder=yn.PostgrestFilterBuilder=yn.PostgrestQueryBuilder=yn.PostgrestClient=void 0;const q_=Ol(t$);yn.PostgrestClient=q_.default;const G_=Ol(bf);yn.PostgrestQueryBuilder=G_.default;const Z_=Ol(Al);yn.PostgrestFilterBuilder=Z_.default;const X_=Ol(yf);yn.PostgrestTransformBuilder=X_.default;const Q_=Ol($f);yn.PostgrestBuilder=Q_.default;var wO=yn.default={PostgrestClient:q_.default,PostgrestQueryBuilder:G_.default,PostgrestFilterBuilder:Z_.default,PostgrestTransformBuilder:X_.default,PostgrestBuilder:Q_.default};const{PostgrestClient:DO,PostgrestQueryBuilder:FG,PostgrestFilterBuilder:AG,PostgrestTransformBuilder:OG,PostgrestBuilder:BG}=wO,_O="2.10.2",EO={"X-Client-Info":`realtime-js/${_O}`},SO="1.0.0",J_=1e4,CO=1e3;var ts;(function(e){e[e.connecting=0]="connecting",e[e.open=1]="open",e[e.closing=2]="closing",e[e.closed=3]="closed"})(ts||(ts={}));var Jt;(function(e){e.closed="closed",e.errored="errored",e.joined="joined",e.joining="joining",e.leaving="leaving"})(Jt||(Jt={}));var Rn;(function(e){e.close="phx_close",e.error="phx_error",e.join="phx_join",e.reply="phx_reply",e.leave="phx_leave",e.access_token="access_token"})(Rn||(Rn={}));var ym;(function(e){e.websocket="websocket"})(ym||(ym={}));var Bi;(function(e){e.Connecting="connecting",e.Open="open",e.Closing="closing",e.Closed="closed"})(Bi||(Bi={}));class kO{constructor(){this.HEADER_LENGTH=1}decode(t,n){return t.constructor===ArrayBuffer?n(this._binaryDecode(t)):n(typeof t=="string"?JSON.parse(t):{})}_binaryDecode(t){const n=new DataView(t),r=new TextDecoder;return this._decodeBroadcast(t,n,r)}_decodeBroadcast(t,n,r){const i=n.getUint8(1),a=n.getUint8(2);let s=this.HEADER_LENGTH+2;const o=r.decode(t.slice(s,s+i));s=s+i;const l=r.decode(t.slice(s,s+a));s=s+a;const u=JSON.parse(r.decode(t.slice(s,t.byteLength)));return{ref:null,topic:o,event:l,payload:u}}}class e8{constructor(t,n){this.callback=t,this.timerCalc=n,this.timer=void 0,this.tries=0,this.callback=t,this.timerCalc=n}reset(){this.tries=0,clearTimeout(this.timer)}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}}var we;(function(e){e.abstime="abstime",e.bool="bool",e.date="date",e.daterange="daterange",e.float4="float4",e.float8="float8",e.int2="int2",e.int4="int4",e.int4range="int4range",e.int8="int8",e.int8range="int8range",e.json="json",e.jsonb="jsonb",e.money="money",e.numeric="numeric",e.oid="oid",e.reltime="reltime",e.text="text",e.time="time",e.timestamp="timestamp",e.timestamptz="timestamptz",e.timetz="timetz",e.tsrange="tsrange",e.tstzrange="tstzrange"})(we||(we={}));const p2=(e,t,n={})=>{var r;const i=(r=n.skipTypes)!==null&&r!==void 0?r:[];return Object.keys(t).reduce((a,s)=>(a[s]=PO(s,e,t,i),a),{})},PO=(e,t,n,r)=>{const i=t.find(o=>o.name===e),a=i==null?void 0:i.type,s=n[e];return a&&!r.includes(a)?t8(a,s):$m(s)},t8=(e,t)=>{if(e.charAt(0)==="_"){const n=e.slice(1,e.length);return FO(t,n)}switch(e){case we.bool:return TO(t);case we.float4:case we.float8:case we.int2:case we.int4:case we.int8:case we.numeric:case we.oid:return RO(t);case we.json:case we.jsonb:return MO(t);case we.timestamp:return AO(t);case we.abstime:case we.date:case we.daterange:case we.int4range:case we.int8range:case we.money:case we.reltime:case we.text:case we.time:case we.timestamptz:case we.timetz:case we.tsrange:case we.tstzrange:return $m(t);default:return $m(t)}},$m=e=>e,TO=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},RO=e=>{if(typeof e=="string"){const t=parseFloat(e);if(!Number.isNaN(t))return t}return e},MO=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch(t){return console.log(`JSON parse error: ${t}`),e}return e},FO=(e,t)=>{if(typeof e!="string")return e;const n=e.length-1,r=e[n];if(e[0]==="{"&&r==="}"){let a;const s=e.slice(1,n);try{a=JSON.parse("["+s+"]")}catch{a=s?s.split(","):[]}return a.map(o=>t8(t,o))}return e},AO=e=>typeof e=="string"?e.replace(" ","T"):e,n8=e=>{let t=e;return t=t.replace(/^ws/i,"http"),t=t.replace(/(\/socket\/websocket|\/socket|\/websocket)\/?$/i,""),t.replace(/\/+$/,"")};class wh{constructor(t,n,r={},i=J_){this.channel=t,this.event=n,this.payload=r,this.timeout=i,this.sent=!1,this.timeoutTimer=void 0,this.ref="",this.receivedResp=null,this.recHooks=[],this.refEvent=null}resend(t){this.timeout=t,this._cancelRefEvent(),this.ref="",this.refEvent=null,this.receivedResp=null,this.sent=!1,this.send()}send(){this._hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload,ref:this.ref,join_ref:this.channel._joinRef()}))}updatePayload(t){this.payload=Object.assign(Object.assign({},this.payload),t)}receive(t,n){var r;return this._hasReceived(t)&&n((r=this.receivedResp)===null||r===void 0?void 0:r.response),this.recHooks.push({status:t,callback:n}),this}startTimeout(){if(this.timeoutTimer)return;this.ref=this.channel.socket._makeRef(),this.refEvent=this.channel._replyEventName(this.ref);const t=n=>{this._cancelRefEvent(),this._cancelTimeout(),this.receivedResp=n,this._matchReceive(n)};this.channel._on(this.refEvent,{},t),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}trigger(t,n){this.refEvent&&this.channel._trigger(this.refEvent,{status:t,response:n})}destroy(){this._cancelRefEvent(),this._cancelTimeout()}_cancelRefEvent(){this.refEvent&&this.channel._off(this.refEvent,{})}_cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=void 0}_matchReceive({status:t,response:n}){this.recHooks.filter(r=>r.status===t).forEach(r=>r.callback(n))}_hasReceived(t){return this.receivedResp&&this.receivedResp.status===t}}var m2;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(m2||(m2={}));class Mo{constructor(t,n){this.channel=t,this.state={},this.pendingDiffs=[],this.joinRef=null,this.caller={onJoin:()=>{},onLeave:()=>{},onSync:()=>{}};const r=(n==null?void 0:n.events)||{state:"presence_state",diff:"presence_diff"};this.channel._on(r.state,{},i=>{const{onJoin:a,onLeave:s,onSync:o}=this.caller;this.joinRef=this.channel._joinRef(),this.state=Mo.syncState(this.state,i,a,s),this.pendingDiffs.forEach(l=>{this.state=Mo.syncDiff(this.state,l,a,s)}),this.pendingDiffs=[],o()}),this.channel._on(r.diff,{},i=>{const{onJoin:a,onLeave:s,onSync:o}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(i):(this.state=Mo.syncDiff(this.state,i,a,s),o())}),this.onJoin((i,a,s)=>{this.channel._trigger("presence",{event:"join",key:i,currentPresences:a,newPresences:s})}),this.onLeave((i,a,s)=>{this.channel._trigger("presence",{event:"leave",key:i,currentPresences:a,leftPresences:s})}),this.onSync(()=>{this.channel._trigger("presence",{event:"sync"})})}static syncState(t,n,r,i){const a=this.cloneDeep(t),s=this.transformState(n),o={},l={};return this.map(a,(u,c)=>{s[u]||(l[u]=c)}),this.map(s,(u,c)=>{const d=a[u];if(d){const f=c.map(b=>b.presence_ref),h=d.map(b=>b.presence_ref),p=c.filter(b=>h.indexOf(b.presence_ref)<0),g=d.filter(b=>f.indexOf(b.presence_ref)<0);p.length>0&&(o[u]=p),g.length>0&&(l[u]=g)}else o[u]=c}),this.syncDiff(a,{joins:o,leaves:l},r,i)}static syncDiff(t,n,r,i){const{joins:a,leaves:s}={joins:this.transformState(n.joins),leaves:this.transformState(n.leaves)};return r||(r=()=>{}),i||(i=()=>{}),this.map(a,(o,l)=>{var u;const c=(u=t[o])!==null&&u!==void 0?u:[];if(t[o]=this.cloneDeep(l),c.length>0){const d=t[o].map(h=>h.presence_ref),f=c.filter(h=>d.indexOf(h.presence_ref)<0);t[o].unshift(...f)}r(o,c,l)}),this.map(s,(o,l)=>{let u=t[o];if(!u)return;const c=l.map(d=>d.presence_ref);u=u.filter(d=>c.indexOf(d.presence_ref)<0),t[o]=u,i(o,u,l),u.length===0&&delete t[o]}),t}static map(t,n){return Object.getOwnPropertyNames(t).map(r=>n(r,t[r]))}static transformState(t){return t=this.cloneDeep(t),Object.getOwnPropertyNames(t).reduce((n,r)=>{const i=t[r];return"metas"in i?n[r]=i.metas.map(a=>(a.presence_ref=a.phx_ref,delete a.phx_ref,delete a.phx_ref_prev,a)):n[r]=i,n},{})}static cloneDeep(t){return JSON.parse(JSON.stringify(t))}onJoin(t){this.caller.onJoin=t}onLeave(t){this.caller.onLeave=t}onSync(t){this.caller.onSync=t}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel._joinRef()}}var g2;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})(g2||(g2={}));var v2;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes"})(v2||(v2={}));var b2;(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})(b2||(b2={}));class r${constructor(t,n={config:{}},r){this.topic=t,this.params=n,this.socket=r,this.bindings={},this.state=Jt.closed,this.joinedOnce=!1,this.pushBuffer=[],this.subTopic=t.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:""},private:!1},n.config),this.timeout=this.socket.timeout,this.joinPush=new wh(this,Rn.join,this.params,this.timeout),this.rejoinTimer=new e8(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=Jt.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(i=>i.send()),this.pushBuffer=[]}),this._onClose(()=>{this.rejoinTimer.reset(),this.socket.log("channel",`close ${this.topic} ${this._joinRef()}`),this.state=Jt.closed,this.socket._remove(this)}),this._onError(i=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,i),this.state=Jt.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=Jt.errored,this.rejoinTimer.scheduleTimeout())}),this._on(Rn.reply,{},(i,a)=>{this._trigger(this._replyEventName(a),i)}),this.presence=new Mo(this),this.broadcastEndpointURL=n8(this.socket.endPoint)+"/api/broadcast"}subscribe(t,n=this.timeout){var r,i;if(this.socket.isConnected()||this.socket.connect(),this.joinedOnce)throw"tried to subscribe multiple times. 'subscribe' can only be called a single time per channel instance";{const{config:{broadcast:a,presence:s,private:o}}=this.params;this._onError(c=>t&&t("CHANNEL_ERROR",c)),this._onClose(()=>t&&t("CLOSED"));const l={},u={broadcast:a,presence:s,postgres_changes:(i=(r=this.bindings.postgres_changes)===null||r===void 0?void 0:r.map(c=>c.filter))!==null&&i!==void 0?i:[],private:o};this.socket.accessToken&&(l.access_token=this.socket.accessToken),this.updateJoinPayload(Object.assign({config:u},l)),this.joinedOnce=!0,this._rejoin(n),this.joinPush.receive("ok",({postgres_changes:c})=>{var d;if(this.socket.accessToken&&this.socket.setAuth(this.socket.accessToken),c===void 0){t&&t("SUBSCRIBED");return}else{const f=this.bindings.postgres_changes,h=(d=f==null?void 0:f.length)!==null&&d!==void 0?d:0,p=[];for(let g=0;g<h;g++){const b=f[g],{filter:{event:v,schema:m,table:$,filter:w}}=b,D=c&&c[g];if(D&&D.event===v&&D.schema===m&&D.table===$&&D.filter===w)p.push(Object.assign(Object.assign({},b),{id:D.id}));else{this.unsubscribe(),t&&t("CHANNEL_ERROR",new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=p,t&&t("SUBSCRIBED");return}}).receive("error",c=>{t&&t("CHANNEL_ERROR",new Error(JSON.stringify(Object.values(c).join(", ")||"error")))}).receive("timeout",()=>{t&&t("TIMED_OUT")})}return this}presenceState(){return this.presence.state}async track(t,n={}){return await this.send({type:"presence",event:"track",payload:t},n.timeout||this.timeout)}async untrack(t={}){return await this.send({type:"presence",event:"untrack"},t)}on(t,n,r){return this._on(t,n,r)}async send(t,n={}){var r,i;if(!this._canPush()&&t.type==="broadcast"){const{event:a,payload:s}=t,o={method:"POST",headers:{Authorization:this.socket.accessToken?`Bearer ${this.socket.accessToken}`:"",apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"},body:JSON.stringify({messages:[{topic:this.subTopic,event:a,payload:s}]})};try{const l=await this._fetchWithTimeout(this.broadcastEndpointURL,o,(r=n.timeout)!==null&&r!==void 0?r:this.timeout);return await((i=l.body)===null||i===void 0?void 0:i.cancel()),l.ok?"ok":"error"}catch(l){return l.name==="AbortError"?"timed out":"error"}}else return new Promise(a=>{var s,o,l;const u=this._push(t.type,t,n.timeout||this.timeout);t.type==="broadcast"&&!(!((l=(o=(s=this.params)===null||s===void 0?void 0:s.config)===null||o===void 0?void 0:o.broadcast)===null||l===void 0)&&l.ack)&&a("ok"),u.receive("ok",()=>a("ok")),u.receive("error",()=>a("error")),u.receive("timeout",()=>a("timed out"))})}updateJoinPayload(t){this.joinPush.updatePayload(t)}unsubscribe(t=this.timeout){this.state=Jt.leaving;const n=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger(Rn.close,"leave",this._joinRef())};return this.rejoinTimer.reset(),this.joinPush.destroy(),new Promise(r=>{const i=new wh(this,Rn.leave,{},t);i.receive("ok",()=>{n(),r("ok")}).receive("timeout",()=>{n(),r("timed out")}).receive("error",()=>{r("error")}),i.send(),this._canPush()||i.trigger("ok",{})})}async _fetchWithTimeout(t,n,r){const i=new AbortController,a=setTimeout(()=>i.abort(),r),s=await this.socket.fetch(t,Object.assign(Object.assign({},n),{signal:i.signal}));return clearTimeout(a),s}_push(t,n,r=this.timeout){if(!this.joinedOnce)throw`tried to push '${t}' to '${this.topic}' before joining. Use channel.subscribe() before pushing events`;let i=new wh(this,t,n,r);return this._canPush()?i.send():(i.startTimeout(),this.pushBuffer.push(i)),i}_onMessage(t,n,r){return n}_isMember(t){return this.topic===t}_joinRef(){return this.joinPush.ref}_trigger(t,n,r){var i,a;const s=t.toLocaleLowerCase(),{close:o,error:l,leave:u,join:c}=Rn;if(r&&[o,l,u,c].indexOf(s)>=0&&r!==this._joinRef())return;let f=this._onMessage(s,n,r);if(n&&!f)throw"channel onMessage callbacks must return the payload, modified or unmodified";["insert","update","delete"].includes(s)?(i=this.bindings.postgres_changes)===null||i===void 0||i.filter(h=>{var p,g,b;return((p=h.filter)===null||p===void 0?void 0:p.event)==="*"||((b=(g=h.filter)===null||g===void 0?void 0:g.event)===null||b===void 0?void 0:b.toLocaleLowerCase())===s}).map(h=>h.callback(f,r)):(a=this.bindings[s])===null||a===void 0||a.filter(h=>{var p,g,b,v,m,$;if(["broadcast","presence","postgres_changes"].includes(s))if("id"in h){const w=h.id,D=(p=h.filter)===null||p===void 0?void 0:p.event;return w&&((g=n.ids)===null||g===void 0?void 0:g.includes(w))&&(D==="*"||(D==null?void 0:D.toLocaleLowerCase())===((b=n.data)===null||b===void 0?void 0:b.type.toLocaleLowerCase()))}else{const w=(m=(v=h==null?void 0:h.filter)===null||v===void 0?void 0:v.event)===null||m===void 0?void 0:m.toLocaleLowerCase();return w==="*"||w===(($=n==null?void 0:n.event)===null||$===void 0?void 0:$.toLocaleLowerCase())}else return h.type.toLocaleLowerCase()===s}).map(h=>{if(typeof f=="object"&&"ids"in f){const p=f.data,{schema:g,table:b,commit_timestamp:v,type:m,errors:$}=p;f=Object.assign(Object.assign({},{schema:g,table:b,commit_timestamp:v,eventType:m,new:{},old:{},errors:$}),this._getPayloadRecords(p))}h.callback(f,r)})}_isClosed(){return this.state===Jt.closed}_isJoined(){return this.state===Jt.joined}_isJoining(){return this.state===Jt.joining}_isLeaving(){return this.state===Jt.leaving}_replyEventName(t){return`chan_reply_${t}`}_on(t,n,r){const i=t.toLocaleLowerCase(),a={type:i,filter:n,callback:r};return this.bindings[i]?this.bindings[i].push(a):this.bindings[i]=[a],this}_off(t,n){const r=t.toLocaleLowerCase();return this.bindings[r]=this.bindings[r].filter(i=>{var a;return!(((a=i.type)===null||a===void 0?void 0:a.toLocaleLowerCase())===r&&r$.isEqual(i.filter,n))}),this}static isEqual(t,n){if(Object.keys(t).length!==Object.keys(n).length)return!1;for(const r in t)if(t[r]!==n[r])return!1;return!0}_rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this._rejoin()}_onClose(t){this._on(Rn.close,{},t)}_onError(t){this._on(Rn.error,{},n=>t(n))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(t=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=Jt.joining,this.joinPush.resend(t))}_getPayloadRecords(t){const n={new:{},old:{}};return(t.type==="INSERT"||t.type==="UPDATE")&&(n.new=p2(t.columns,t.record)),(t.type==="UPDATE"||t.type==="DELETE")&&(n.old=p2(t.columns,t.old_record)),n}}const OO=()=>{},BO=typeof WebSocket<"u";class IO{constructor(t,n){var r;this.accessToken=null,this.apiKey=null,this.channels=[],this.endPoint="",this.httpEndpoint="",this.headers=EO,this.params={},this.timeout=J_,this.heartbeatIntervalMs=3e4,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.ref=0,this.logger=OO,this.conn=null,this.sendBuffer=[],this.serializer=new kO,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this._resolveFetch=a=>{let s;return a?s=a:typeof fetch>"u"?s=(...o)=>bs(async()=>{const{default:l}=await Promise.resolve().then(()=>Ts);return{default:l}},void 0,import.meta.url).then(({default:l})=>l(...o)):s=fetch,(...o)=>s(...o)},this.endPoint=`${t}/${ym.websocket}`,this.httpEndpoint=n8(t),n!=null&&n.transport?this.transport=n.transport:this.transport=null,n!=null&&n.params&&(this.params=n.params),n!=null&&n.headers&&(this.headers=Object.assign(Object.assign({},this.headers),n.headers)),n!=null&&n.timeout&&(this.timeout=n.timeout),n!=null&&n.logger&&(this.logger=n.logger),n!=null&&n.heartbeatIntervalMs&&(this.heartbeatIntervalMs=n.heartbeatIntervalMs);const i=(r=n==null?void 0:n.params)===null||r===void 0?void 0:r.apikey;i&&(this.accessToken=i,this.apiKey=i),this.reconnectAfterMs=n!=null&&n.reconnectAfterMs?n.reconnectAfterMs:a=>[1e3,2e3,5e3,1e4][a-1]||1e4,this.encode=n!=null&&n.encode?n.encode:(a,s)=>s(JSON.stringify(a)),this.decode=n!=null&&n.decode?n.decode:this.serializer.decode.bind(this.serializer),this.reconnectTimer=new e8(async()=>{this.disconnect(),this.connect()},this.reconnectAfterMs),this.fetch=this._resolveFetch(n==null?void 0:n.fetch)}connect(){if(!this.conn){if(this.transport){this.conn=new this.transport(this._endPointURL(),void 0,{headers:this.headers});return}if(BO){this.conn=new WebSocket(this._endPointURL()),this.setupConnection();return}this.conn=new LO(this._endPointURL(),void 0,{close:()=>{this.conn=null}}),bs(async()=>{const{default:t}=await import("./browser-C3KIP8q7.js").then(n=>n.b);return{default:t}},[],import.meta.url).then(({default:t})=>{this.conn=new t(this._endPointURL(),void 0,{headers:this.headers}),this.setupConnection()})}}disconnect(t,n){this.conn&&(this.conn.onclose=function(){},t?this.conn.close(t,n??""):this.conn.close(),this.conn=null,this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.reconnectTimer.reset())}getChannels(){return this.channels}async removeChannel(t){const n=await t.unsubscribe();return this.channels.length===0&&this.disconnect(),n}async removeAllChannels(){const t=await Promise.all(this.channels.map(n=>n.unsubscribe()));return this.disconnect(),t}log(t,n,r){this.logger(t,n,r)}connectionState(){switch(this.conn&&this.conn.readyState){case ts.connecting:return Bi.Connecting;case ts.open:return Bi.Open;case ts.closing:return Bi.Closing;default:return Bi.Closed}}isConnected(){return this.connectionState()===Bi.Open}channel(t,n={config:{}}){const r=new r$(`realtime:${t}`,n,this);return this.channels.push(r),r}push(t){const{topic:n,event:r,payload:i,ref:a}=t,s=()=>{this.encode(t,o=>{var l;(l=this.conn)===null||l===void 0||l.send(o)})};this.log("push",`${n} ${r} (${a})`,i),this.isConnected()?s():this.sendBuffer.push(s)}setAuth(t){this.accessToken=t,this.channels.forEach(n=>{t&&n.updateJoinPayload({access_token:t}),n.joinedOnce&&n._isJoined()&&n._push(Rn.access_token,{access_token:t})})}_makeRef(){let t=this.ref+1;return t===this.ref?this.ref=0:this.ref=t,this.ref.toString()}_leaveOpenTopic(t){let n=this.channels.find(r=>r.topic===t&&(r._isJoined()||r._isJoining()));n&&(this.log("transport",`leaving duplicate topic "${t}"`),n.unsubscribe())}_remove(t){this.channels=this.channels.filter(n=>n._joinRef()!==t._joinRef())}setupConnection(){this.conn&&(this.conn.binaryType="arraybuffer",this.conn.onopen=()=>this._onConnOpen(),this.conn.onerror=t=>this._onConnError(t),this.conn.onmessage=t=>this._onConnMessage(t),this.conn.onclose=t=>this._onConnClose(t))}_endPointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:SO}))}_onConnMessage(t){this.decode(t.data,n=>{let{topic:r,event:i,payload:a,ref:s}=n;(s&&s===this.pendingHeartbeatRef||i===(a==null?void 0:a.type))&&(this.pendingHeartbeatRef=null),this.log("receive",`${a.status||""} ${r} ${i} ${s&&"("+s+")"||""}`,a),this.channels.filter(o=>o._isMember(r)).forEach(o=>o._trigger(i,a,s)),this.stateChangeCallbacks.message.forEach(o=>o(n))})}_onConnOpen(){this.log("transport",`connected to ${this._endPointURL()}`),this._flushSendBuffer(),this.reconnectTimer.reset(),this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.heartbeatTimer=setInterval(()=>this._sendHeartbeat(),this.heartbeatIntervalMs),this.stateChangeCallbacks.open.forEach(t=>t())}_onConnClose(t){this.log("transport","close",t),this._triggerChanError(),this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.reconnectTimer.scheduleTimeout(),this.stateChangeCallbacks.close.forEach(n=>n(t))}_onConnError(t){this.log("transport",t.message),this._triggerChanError(),this.stateChangeCallbacks.error.forEach(n=>n(t))}_triggerChanError(){this.channels.forEach(t=>t._trigger(Rn.error))}_appendParams(t,n){if(Object.keys(n).length===0)return t;const r=t.match(/\?/)?"&":"?",i=new URLSearchParams(n);return`${t}${r}${i}`}_flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(t=>t()),this.sendBuffer=[])}_sendHeartbeat(){var t;if(this.isConnected()){if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.log("transport","heartbeat timeout. Attempting to re-establish connection"),(t=this.conn)===null||t===void 0||t.close(CO,"hearbeat timeout");return}this.pendingHeartbeatRef=this._makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef}),this.setAuth(this.accessToken)}}}class LO{constructor(t,n,r){this.binaryType="arraybuffer",this.onclose=()=>{},this.onerror=()=>{},this.onmessage=()=>{},this.onopen=()=>{},this.readyState=ts.connecting,this.send=()=>{},this.url=null,this.url=t,this.close=r.close}}class i$ extends Error{constructor(t){super(t),this.__isStorageError=!0,this.name="StorageError"}}function _t(e){return typeof e=="object"&&e!==null&&"__isStorageError"in e}class NO extends i${constructor(t,n){super(t),this.name="StorageApiError",this.status=n}toJSON(){return{name:this.name,message:this.message,status:this.status}}}class y2 extends i${constructor(t,n){super(t),this.name="StorageUnknownError",this.originalError=n}}var jO=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(s){s(a)})}return new(n||(n=Promise))(function(a,s){function o(c){try{u(r.next(c))}catch(d){s(d)}}function l(c){try{u(r.throw(c))}catch(d){s(d)}}function u(c){c.done?a(c.value):i(c.value).then(o,l)}u((r=r.apply(e,t||[])).next())})};const r8=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...n)=>bs(async()=>{const{default:r}=await Promise.resolve().then(()=>Ts);return{default:r}},void 0,import.meta.url).then(({default:r})=>r(...n)):t=fetch,(...n)=>t(...n)},zO=()=>jO(void 0,void 0,void 0,function*(){return typeof Response>"u"?(yield bs(()=>Promise.resolve().then(()=>Ts),void 0,import.meta.url)).Response:Response});var Rs=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(s){s(a)})}return new(n||(n=Promise))(function(a,s){function o(c){try{u(r.next(c))}catch(d){s(d)}}function l(c){try{u(r.throw(c))}catch(d){s(d)}}function u(c){c.done?a(c.value):i(c.value).then(o,l)}u((r=r.apply(e,t||[])).next())})};const Dh=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),VO=(e,t)=>Rs(void 0,void 0,void 0,function*(){const n=yield zO();e instanceof n?e.json().then(r=>{t(new NO(Dh(r),e.status||500))}).catch(r=>{t(new y2(Dh(r),r))}):t(new y2(Dh(e),e))}),WO=(e,t,n,r)=>{const i={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"?i:(i.headers=Object.assign({"Content-Type":"application/json"},t==null?void 0:t.headers),i.body=JSON.stringify(r),Object.assign(Object.assign({},i),n))};function Df(e,t,n,r,i,a){return Rs(this,void 0,void 0,function*(){return new Promise((s,o)=>{e(n,WO(t,r,i,a)).then(l=>{if(!l.ok)throw l;return r!=null&&r.noResolveJson?l:l.json()}).then(l=>s(l)).catch(l=>VO(l,o))})})}function xm(e,t,n,r){return Rs(this,void 0,void 0,function*(){return Df(e,"GET",t,n,r)})}function Br(e,t,n,r,i){return Rs(this,void 0,void 0,function*(){return Df(e,"POST",t,r,i,n)})}function UO(e,t,n,r,i){return Rs(this,void 0,void 0,function*(){return Df(e,"PUT",t,r,i,n)})}function i8(e,t,n,r,i){return Rs(this,void 0,void 0,function*(){return Df(e,"DELETE",t,r,i,n)})}var dn=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(s){s(a)})}return new(n||(n=Promise))(function(a,s){function o(c){try{u(r.next(c))}catch(d){s(d)}}function l(c){try{u(r.throw(c))}catch(d){s(d)}}function u(c){c.done?a(c.value):i(c.value).then(o,l)}u((r=r.apply(e,t||[])).next())})};const HO={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},$2={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};class KO{constructor(t,n={},r,i){this.url=t,this.headers=n,this.bucketId=r,this.fetch=r8(i)}uploadOrUpdate(t,n,r,i){return dn(this,void 0,void 0,function*(){try{let a;const s=Object.assign(Object.assign({},$2),i),o=Object.assign(Object.assign({},this.headers),t==="POST"&&{"x-upsert":String(s.upsert)});typeof Blob<"u"&&r instanceof Blob?(a=new FormData,a.append("cacheControl",s.cacheControl),a.append("",r)):typeof FormData<"u"&&r instanceof FormData?(a=r,a.append("cacheControl",s.cacheControl)):(a=r,o["cache-control"]=`max-age=${s.cacheControl}`,o["content-type"]=s.contentType);const l=this._removeEmptyFolders(n),u=this._getFinalPath(l),c=yield this.fetch(`${this.url}/object/${u}`,Object.assign({method:t,body:a,headers:o},s!=null&&s.duplex?{duplex:s.duplex}:{})),d=yield c.json();return c.ok?{data:{path:l,id:d.Id,fullPath:d.Key},error:null}:{data:null,error:d}}catch(a){if(_t(a))return{data:null,error:a};throw a}})}upload(t,n,r){return dn(this,void 0,void 0,function*(){return this.uploadOrUpdate("POST",t,n,r)})}uploadToSignedUrl(t,n,r,i){return dn(this,void 0,void 0,function*(){const a=this._removeEmptyFolders(t),s=this._getFinalPath(a),o=new URL(this.url+`/object/upload/sign/${s}`);o.searchParams.set("token",n);try{let l;const u=Object.assign({upsert:$2.upsert},i),c=Object.assign(Object.assign({},this.headers),{"x-upsert":String(u.upsert)});typeof Blob<"u"&&r instanceof Blob?(l=new FormData,l.append("cacheControl",u.cacheControl),l.append("",r)):typeof FormData<"u"&&r instanceof FormData?(l=r,l.append("cacheControl",u.cacheControl)):(l=r,c["cache-control"]=`max-age=${u.cacheControl}`,c["content-type"]=u.contentType);const d=yield this.fetch(o.toString(),{method:"PUT",body:l,headers:c}),f=yield d.json();return d.ok?{data:{path:a,fullPath:f.Key},error:null}:{data:null,error:f}}catch(l){if(_t(l))return{data:null,error:l};throw l}})}createSignedUploadUrl(t,n){return dn(this,void 0,void 0,function*(){try{let r=this._getFinalPath(t);const i=Object.assign({},this.headers);n!=null&&n.upsert&&(i["x-upsert"]="true");const a=yield Br(this.fetch,`${this.url}/object/upload/sign/${r}`,{},{headers:i}),s=new URL(this.url+a.url),o=s.searchParams.get("token");if(!o)throw new i$("No token returned by API");return{data:{signedUrl:s.toString(),path:t,token:o},error:null}}catch(r){if(_t(r))return{data:null,error:r};throw r}})}update(t,n,r){return dn(this,void 0,void 0,function*(){return this.uploadOrUpdate("PUT",t,n,r)})}move(t,n,r){return dn(this,void 0,void 0,function*(){try{return{data:yield Br(this.fetch,`${this.url}/object/move`,{bucketId:this.bucketId,sourceKey:t,destinationKey:n,destinationBucket:r==null?void 0:r.destinationBucket},{headers:this.headers}),error:null}}catch(i){if(_t(i))return{data:null,error:i};throw i}})}copy(t,n,r){return dn(this,void 0,void 0,function*(){try{return{data:{path:(yield Br(this.fetch,`${this.url}/object/copy`,{bucketId:this.bucketId,sourceKey:t,destinationKey:n,destinationBucket:r==null?void 0:r.destinationBucket},{headers:this.headers})).Key},error:null}}catch(i){if(_t(i))return{data:null,error:i};throw i}})}createSignedUrl(t,n,r){return dn(this,void 0,void 0,function*(){try{let i=this._getFinalPath(t),a=yield Br(this.fetch,`${this.url}/object/sign/${i}`,Object.assign({expiresIn:n},r!=null&&r.transform?{transform:r.transform}:{}),{headers:this.headers});const s=r!=null&&r.download?`&download=${r.download===!0?"":r.download}`:"";return a={signedUrl:encodeURI(`${this.url}${a.signedURL}${s}`)},{data:a,error:null}}catch(i){if(_t(i))return{data:null,error:i};throw i}})}createSignedUrls(t,n,r){return dn(this,void 0,void 0,function*(){try{const i=yield Br(this.fetch,`${this.url}/object/sign/${this.bucketId}`,{expiresIn:n,paths:t},{headers:this.headers}),a=r!=null&&r.download?`&download=${r.download===!0?"":r.download}`:"";return{data:i.map(s=>Object.assign(Object.assign({},s),{signedUrl:s.signedURL?encodeURI(`${this.url}${s.signedURL}${a}`):null})),error:null}}catch(i){if(_t(i))return{data:null,error:i};throw i}})}download(t,n){return dn(this,void 0,void 0,function*(){const i=typeof(n==null?void 0:n.transform)<"u"?"render/image/authenticated":"object",a=this.transformOptsToQueryString((n==null?void 0:n.transform)||{}),s=a?`?${a}`:"";try{const o=this._getFinalPath(t);return{data:yield(yield xm(this.fetch,`${this.url}/${i}/${o}${s}`,{headers:this.headers,noResolveJson:!0})).blob(),error:null}}catch(o){if(_t(o))return{data:null,error:o};throw o}})}getPublicUrl(t,n){const r=this._getFinalPath(t),i=[],a=n!=null&&n.download?`download=${n.download===!0?"":n.download}`:"";a!==""&&i.push(a);const o=typeof(n==null?void 0:n.transform)<"u"?"render/image":"object",l=this.transformOptsToQueryString((n==null?void 0:n.transform)||{});l!==""&&i.push(l);let u=i.join("&");return u!==""&&(u=`?${u}`),{data:{publicUrl:encodeURI(`${this.url}/${o}/public/${r}${u}`)}}}remove(t){return dn(this,void 0,void 0,function*(){try{return{data:yield i8(this.fetch,`${this.url}/object/${this.bucketId}`,{prefixes:t},{headers:this.headers}),error:null}}catch(n){if(_t(n))return{data:null,error:n};throw n}})}list(t,n,r){return dn(this,void 0,void 0,function*(){try{const i=Object.assign(Object.assign(Object.assign({},HO),n),{prefix:t||""});return{data:yield Br(this.fetch,`${this.url}/object/list/${this.bucketId}`,i,{headers:this.headers},r),error:null}}catch(i){if(_t(i))return{data:null,error:i};throw i}})}_getFinalPath(t){return`${this.bucketId}/${t}`}_removeEmptyFolders(t){return t.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}transformOptsToQueryString(t){const n=[];return t.width&&n.push(`width=${t.width}`),t.height&&n.push(`height=${t.height}`),t.resize&&n.push(`resize=${t.resize}`),t.format&&n.push(`format=${t.format}`),t.quality&&n.push(`quality=${t.quality}`),n.join("&")}}const YO="2.6.0",qO={"X-Client-Info":`storage-js/${YO}`};var xa=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(s){s(a)})}return new(n||(n=Promise))(function(a,s){function o(c){try{u(r.next(c))}catch(d){s(d)}}function l(c){try{u(r.throw(c))}catch(d){s(d)}}function u(c){c.done?a(c.value):i(c.value).then(o,l)}u((r=r.apply(e,t||[])).next())})};class GO{constructor(t,n={},r){this.url=t,this.headers=Object.assign(Object.assign({},qO),n),this.fetch=r8(r)}listBuckets(){return xa(this,void 0,void 0,function*(){try{return{data:yield xm(this.fetch,`${this.url}/bucket`,{headers:this.headers}),error:null}}catch(t){if(_t(t))return{data:null,error:t};throw t}})}getBucket(t){return xa(this,void 0,void 0,function*(){try{return{data:yield xm(this.fetch,`${this.url}/bucket/${t}`,{headers:this.headers}),error:null}}catch(n){if(_t(n))return{data:null,error:n};throw n}})}createBucket(t,n={public:!1}){return xa(this,void 0,void 0,function*(){try{return{data:yield Br(this.fetch,`${this.url}/bucket`,{id:t,name:t,public:n.public,file_size_limit:n.fileSizeLimit,allowed_mime_types:n.allowedMimeTypes},{headers:this.headers}),error:null}}catch(r){if(_t(r))return{data:null,error:r};throw r}})}updateBucket(t,n){return xa(this,void 0,void 0,function*(){try{return{data:yield UO(this.fetch,`${this.url}/bucket/${t}`,{id:t,name:t,public:n.public,file_size_limit:n.fileSizeLimit,allowed_mime_types:n.allowedMimeTypes},{headers:this.headers}),error:null}}catch(r){if(_t(r))return{data:null,error:r};throw r}})}emptyBucket(t){return xa(this,void 0,void 0,function*(){try{return{data:yield Br(this.fetch,`${this.url}/bucket/${t}/empty`,{},{headers:this.headers}),error:null}}catch(n){if(_t(n))return{data:null,error:n};throw n}})}deleteBucket(t){return xa(this,void 0,void 0,function*(){try{return{data:yield i8(this.fetch,`${this.url}/bucket/${t}`,{},{headers:this.headers}),error:null}}catch(n){if(_t(n))return{data:null,error:n};throw n}})}}class ZO extends GO{constructor(t,n={},r){super(t,n,r)}from(t){return new KO(this.url,this.headers,t,this.fetch)}}const XO="2.44.3";let fo="";typeof Deno<"u"?fo="deno":typeof document<"u"?fo="web":typeof navigator<"u"&&navigator.product==="ReactNative"?fo="react-native":fo="node";const QO={"X-Client-Info":`supabase-js-${fo}/${XO}`},JO={headers:QO},eB={schema:"public"},tB={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},nB={};var rB=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(s){s(a)})}return new(n||(n=Promise))(function(a,s){function o(c){try{u(r.next(c))}catch(d){s(d)}}function l(c){try{u(r.throw(c))}catch(d){s(d)}}function u(c){c.done?a(c.value):i(c.value).then(o,l)}u((r=r.apply(e,t||[])).next())})};const iB=e=>{let t;return e?t=e:typeof fetch>"u"?t=W_:t=fetch,(...n)=>t(...n)},aB=()=>typeof Headers>"u"?U_:Headers,sB=(e,t,n)=>{const r=iB(n),i=aB();return(a,s)=>rB(void 0,void 0,void 0,function*(){var o;const l=(o=yield t())!==null&&o!==void 0?o:e;let u=new i(s==null?void 0:s.headers);return u.has("apikey")||u.set("apikey",e),u.has("Authorization")||u.set("Authorization",`Bearer ${l}`),r(a,Object.assign(Object.assign({},s),{headers:u}))})};function oB(e){return e.replace(/\/$/,"")}function lB(e,t){const{db:n,auth:r,realtime:i,global:a}=e,{db:s,auth:o,realtime:l,global:u}=t;return{db:Object.assign(Object.assign({},s),n),auth:Object.assign(Object.assign({},o),r),realtime:Object.assign(Object.assign({},l),i),global:Object.assign(Object.assign({},u),a)}}const a8="2.64.2",uB="http://localhost:9999",cB="supabase.auth.token",dB={"X-Client-Info":`gotrue-js/${a8}`},x2=10,wm="X-Supabase-Api-Version",s8={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}};function fB(e){return Math.round(Date.now()/1e3)+e}function hB(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const t=Math.random()*16|0;return(e=="x"?t:t&3|8).toString(16)})}const kn=()=>typeof document<"u",yi={tested:!1,writable:!1},Fo=()=>{if(!kn())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(yi.tested)return yi.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),yi.tested=!0,yi.writable=!0}catch{yi.tested=!0,yi.writable=!1}return yi.writable};function _h(e){const t={},n=new URL(e);if(n.hash&&n.hash[0]==="#")try{new URLSearchParams(n.hash.substring(1)).forEach((i,a)=>{t[a]=i})}catch{}return n.searchParams.forEach((r,i)=>{t[i]=r}),t}const o8=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...n)=>bs(async()=>{const{default:r}=await Promise.resolve().then(()=>Ts);return{default:r}},void 0,import.meta.url).then(({default:r})=>r(...n)):t=fetch,(...n)=>t(...n)},pB=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",l8=async(e,t,n)=>{await e.setItem(t,JSON.stringify(n))},uu=async(e,t)=>{const n=await e.getItem(t);if(!n)return null;try{return JSON.parse(n)}catch{return n}},Eh=async(e,t)=>{await e.removeItem(t)};function mB(e){const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";let n="",r,i,a,s,o,l,u,c=0;for(e=e.replace("-","+").replace("_","/");c<e.length;)s=t.indexOf(e.charAt(c++)),o=t.indexOf(e.charAt(c++)),l=t.indexOf(e.charAt(c++)),u=t.indexOf(e.charAt(c++)),r=s<<2|o>>4,i=(o&15)<<4|l>>2,a=(l&3)<<6|u,n=n+String.fromCharCode(r),l!=64&&i!=0&&(n=n+String.fromCharCode(i)),u!=64&&a!=0&&(n=n+String.fromCharCode(a));return n}class _f{constructor(){this.promise=new _f.promiseConstructor((t,n)=>{this.resolve=t,this.reject=n})}}_f.promiseConstructor=Promise;function w2(e){const t=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}=?$|[a-z0-9_-]{2}(==)?$)$/i,n=e.split(".");if(n.length!==3)throw new Error("JWT is not valid: not a JWT structure");if(!t.test(n[1]))throw new Error("JWT is not valid: payload is not in base64url format");const r=n[1];return JSON.parse(mB(r))}async function gB(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function vB(e,t){return new Promise((r,i)=>{(async()=>{for(let a=0;a<1/0;a++)try{const s=await e(a);if(!t(a,null,s)){r(s);return}}catch(s){if(!t(a,s)){i(s);return}}})()})}function bB(e){return("0"+e.toString(16)).substr(-2)}function yB(){const t=new Uint32Array(56);if(typeof crypto>"u"){const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",r=n.length;let i="";for(let a=0;a<56;a++)i+=n.charAt(Math.floor(Math.random()*r));return i}return crypto.getRandomValues(t),Array.from(t,bB).join("")}async function $B(e){const n=new TextEncoder().encode(e),r=await crypto.subtle.digest("SHA-256",n),i=new Uint8Array(r);return Array.from(i).map(a=>String.fromCharCode(a)).join("")}function xB(e){return btoa(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function wB(e){if(!(typeof crypto<"u"&&typeof crypto.subtle<"u"&&typeof TextEncoder<"u"))return console.warn("WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256."),e;const n=await $B(e);return xB(n)}async function wa(e,t,n=!1){const r=yB();let i=r;n&&(i+="/PASSWORD_RECOVERY"),await l8(e,`${t}-code-verifier`,i);const a=await wB(r);return[a,r===a?"plain":"s256"]}const DB=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function _B(e){const t=e.headers.get(wm);if(!t||!t.match(DB))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch{return null}}class a$ extends Error{constructor(t,n,r){super(t),this.__isAuthError=!0,this.name="AuthError",this.status=n,this.code=r}}function re(e){return typeof e=="object"&&e!==null&&"__isAuthError"in e}class EB extends a${constructor(t,n,r){super(t,n,r),this.name="AuthApiError",this.status=n,this.code=r}}function SB(e){return re(e)&&e.name==="AuthApiError"}class u8 extends a${constructor(t,n){super(t),this.name="AuthUnknownError",this.originalError=n}}class fa extends a${constructor(t,n,r,i){super(t,r,i),this.name=n,this.status=r}}class $i extends fa{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}class Sh extends fa{constructor(){super("Auth session or user missing","AuthInvalidTokenResponseError",500,void 0)}}class cu extends fa{constructor(t){super(t,"AuthInvalidCredentialsError",400,void 0)}}class du extends fa{constructor(t,n=null){super(t,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=n}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class D2 extends fa{constructor(t,n=null){super(t,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=n}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class Dm extends fa{constructor(t,n){super(t,"AuthRetryableFetchError",n,void 0)}}function Ch(e){return re(e)&&e.name==="AuthRetryableFetchError"}class _2 extends fa{constructor(t,n,r){super(t,"AuthWeakPasswordError",n,"weak_password"),this.reasons=r}}var CB=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Ti=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),kB=[502,503,504];async function E2(e){var t;if(!pB(e))throw new Dm(Ti(e),0);if(kB.includes(e.status))throw new Dm(Ti(e),e.status);let n;try{n=await e.json()}catch(a){throw new u8(Ti(a),a)}let r;const i=_B(e);if(i&&i.getTime()>=s8["2024-01-01"].timestamp&&typeof n=="object"&&n&&typeof n.code=="string"?r=n.code:typeof n=="object"&&n&&typeof n.error_code=="string"&&(r=n.error_code),r){if(r==="weak_password")throw new _2(Ti(n),e.status,((t=n.weak_password)===null||t===void 0?void 0:t.reasons)||[])}else if(typeof n=="object"&&n&&typeof n.weak_password=="object"&&n.weak_password&&Array.isArray(n.weak_password.reasons)&&n.weak_password.reasons.length&&n.weak_password.reasons.reduce((a,s)=>a&&typeof s=="string",!0))throw new _2(Ti(n),e.status,n.weak_password.reasons);throw new EB(Ti(n),e.status||500,r)}const PB=(e,t,n,r)=>{const i={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"?i:(i.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},t==null?void 0:t.headers),i.body=JSON.stringify(r),Object.assign(Object.assign({},i),n))};async function oe(e,t,n,r){var i;const a=Object.assign({},r==null?void 0:r.headers);a[wm]||(a[wm]=s8["2024-01-01"].name),r!=null&&r.jwt&&(a.Authorization=`Bearer ${r.jwt}`);const s=(i=r==null?void 0:r.query)!==null&&i!==void 0?i:{};r!=null&&r.redirectTo&&(s.redirect_to=r.redirectTo);const o=Object.keys(s).length?"?"+new URLSearchParams(s).toString():"",l=await TB(e,t,n+o,{headers:a,noResolveJson:r==null?void 0:r.noResolveJson},{},r==null?void 0:r.body);return r!=null&&r.xform?r==null?void 0:r.xform(l):{data:Object.assign({},l),error:null}}async function TB(e,t,n,r,i,a){const s=PB(t,r,i,a);let o;try{o=await e(n,Object.assign({},s))}catch(l){throw console.error(l),new Dm(Ti(l),0)}if(o.ok||await E2(o),r!=null&&r.noResolveJson)return o;try{return await o.json()}catch(l){await E2(l)}}function Mr(e){var t;let n=null;AB(e)&&(n=Object.assign({},e),e.expires_at||(n.expires_at=fB(e.expires_in)));const r=(t=e.user)!==null&&t!==void 0?t:e;return{data:{session:n,user:r},error:null}}function S2(e){const t=Mr(e);return!t.error&&e.weak_password&&typeof e.weak_password=="object"&&Array.isArray(e.weak_password.reasons)&&e.weak_password.reasons.length&&e.weak_password.message&&typeof e.weak_password.message=="string"&&e.weak_password.reasons.reduce((n,r)=>n&&typeof r=="string",!0)&&(t.data.weak_password=e.weak_password),t}function jr(e){var t;return{data:{user:(t=e.user)!==null&&t!==void 0?t:e},error:null}}function RB(e){return{data:e,error:null}}function MB(e){const{action_link:t,email_otp:n,hashed_token:r,redirect_to:i,verification_type:a}=e,s=CB(e,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),o={action_link:t,email_otp:n,hashed_token:r,redirect_to:i,verification_type:a},l=Object.assign({},s);return{data:{properties:o,user:l},error:null}}function FB(e){return e}function AB(e){return e.access_token&&e.refresh_token&&e.expires_in}var OB=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};class BB{constructor({url:t="",headers:n={},fetch:r}){this.url=t,this.headers=n,this.fetch=o8(r),this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)}}async signOut(t,n="global"){try{return await oe(this.fetch,"POST",`${this.url}/logout?scope=${n}`,{headers:this.headers,jwt:t,noResolveJson:!0}),{data:null,error:null}}catch(r){if(re(r))return{data:null,error:r};throw r}}async inviteUserByEmail(t,n={}){try{return await oe(this.fetch,"POST",`${this.url}/invite`,{body:{email:t,data:n.data},headers:this.headers,redirectTo:n.redirectTo,xform:jr})}catch(r){if(re(r))return{data:{user:null},error:r};throw r}}async generateLink(t){try{const{options:n}=t,r=OB(t,["options"]),i=Object.assign(Object.assign({},r),n);return"newEmail"in r&&(i.new_email=r==null?void 0:r.newEmail,delete i.newEmail),await oe(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:i,headers:this.headers,xform:MB,redirectTo:n==null?void 0:n.redirectTo})}catch(n){if(re(n))return{data:{properties:null,user:null},error:n};throw n}}async createUser(t){try{return await oe(this.fetch,"POST",`${this.url}/admin/users`,{body:t,headers:this.headers,xform:jr})}catch(n){if(re(n))return{data:{user:null},error:n};throw n}}async listUsers(t){var n,r,i,a,s,o,l;try{const u={nextPage:null,lastPage:0,total:0},c=await oe(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(r=(n=t==null?void 0:t.page)===null||n===void 0?void 0:n.toString())!==null&&r!==void 0?r:"",per_page:(a=(i=t==null?void 0:t.perPage)===null||i===void 0?void 0:i.toString())!==null&&a!==void 0?a:""},xform:FB});if(c.error)throw c.error;const d=await c.json(),f=(s=c.headers.get("x-total-count"))!==null&&s!==void 0?s:0,h=(l=(o=c.headers.get("link"))===null||o===void 0?void 0:o.split(","))!==null&&l!==void 0?l:[];return h.length>0&&(h.forEach(p=>{const g=parseInt(p.split(";")[0].split("=")[1].substring(0,1)),b=JSON.parse(p.split(";")[1].split("=")[1]);u[`${b}Page`]=g}),u.total=parseInt(f)),{data:Object.assign(Object.assign({},d),u),error:null}}catch(u){if(re(u))return{data:{users:[]},error:u};throw u}}async getUserById(t){try{return await oe(this.fetch,"GET",`${this.url}/admin/users/${t}`,{headers:this.headers,xform:jr})}catch(n){if(re(n))return{data:{user:null},error:n};throw n}}async updateUserById(t,n){try{return await oe(this.fetch,"PUT",`${this.url}/admin/users/${t}`,{body:n,headers:this.headers,xform:jr})}catch(r){if(re(r))return{data:{user:null},error:r};throw r}}async deleteUser(t,n=!1){try{return await oe(this.fetch,"DELETE",`${this.url}/admin/users/${t}`,{headers:this.headers,body:{should_soft_delete:n},xform:jr})}catch(r){if(re(r))return{data:{user:null},error:r};throw r}}async _listFactors(t){try{const{data:n,error:r}=await oe(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/factors`,{headers:this.headers,xform:i=>({data:{factors:i},error:null})});return{data:n,error:r}}catch(n){if(re(n))return{data:null,error:n};throw n}}async _deleteFactor(t){try{return{data:await oe(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/factors/${t.id}`,{headers:this.headers}),error:null}}catch(n){if(re(n))return{data:null,error:n};throw n}}}const IB={getItem:e=>Fo()?globalThis.localStorage.getItem(e):null,setItem:(e,t)=>{Fo()&&globalThis.localStorage.setItem(e,t)},removeItem:e=>{Fo()&&globalThis.localStorage.removeItem(e)}};function C2(e={}){return{getItem:t=>e[t]||null,setItem:(t,n)=>{e[t]=n},removeItem:t=>{delete e[t]}}}function LB(){if(typeof globalThis!="object")try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__}catch{typeof self<"u"&&(self.globalThis=self)}}const Da={debug:!!(globalThis&&Fo()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class c8 extends Error{constructor(t){super(t),this.isAcquireTimeout=!0}}class NB extends c8{}async function jB(e,t,n){Da.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",e,t);const r=new globalThis.AbortController;return t>0&&setTimeout(()=>{r.abort(),Da.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",e)},t),await globalThis.navigator.locks.request(e,t===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:r.signal},async i=>{if(i){Da.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",e,i.name);try{return await n()}finally{Da.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",e,i.name)}}else{if(t===0)throw Da.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",e),new NB(`Acquiring an exclusive Navigator LockManager lock "${e}" immediately failed`);if(Da.debug)try{const a=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(a,null,"  "))}catch(a){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",a)}return console.warn("@supabase/gotrue-js: Navigator LockManager returned a null lock when using #request without ifAvailable set to true, it appears this browser is not following the LockManager spec https://developer.mozilla.org/en-US/docs/Web/API/LockManager/request"),await n()}})}LB();const zB={url:uB,storageKey:cB,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:dB,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1},Us=30*1e3,k2=3;async function P2(e,t,n){return await n()}class ol{constructor(t){var n,r;this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log,this.instanceID=ol.nextInstanceID,ol.nextInstanceID+=1,this.instanceID>0&&kn()&&console.warn("Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.");const i=Object.assign(Object.assign({},zB),t);if(this.logDebugMessages=!!i.debug,typeof i.debug=="function"&&(this.logger=i.debug),this.persistSession=i.persistSession,this.storageKey=i.storageKey,this.autoRefreshToken=i.autoRefreshToken,this.admin=new BB({url:i.url,headers:i.headers,fetch:i.fetch}),this.url=i.url,this.headers=i.headers,this.fetch=o8(i.fetch),this.lock=i.lock||P2,this.detectSessionInUrl=i.detectSessionInUrl,this.flowType=i.flowType,this.hasCustomAuthorizationHeader=i.hasCustomAuthorizationHeader,i.lock?this.lock=i.lock:kn()&&(!((n=globalThis==null?void 0:globalThis.navigator)===null||n===void 0)&&n.locks)?this.lock=jB:this.lock=P2,this.mfa={verify:this._verify.bind(this),enroll:this._enroll.bind(this),unenroll:this._unenroll.bind(this),challenge:this._challenge.bind(this),listFactors:this._listFactors.bind(this),challengeAndVerify:this._challengeAndVerify.bind(this),getAuthenticatorAssuranceLevel:this._getAuthenticatorAssuranceLevel.bind(this)},this.persistSession?i.storage?this.storage=i.storage:Fo()?this.storage=IB:(this.memoryStorage={},this.storage=C2(this.memoryStorage)):(this.memoryStorage={},this.storage=C2(this.memoryStorage)),kn()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(a){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",a)}(r=this.broadcastChannel)===null||r===void 0||r.addEventListener("message",async a=>{this._debug("received broadcast notification from other tab or client",a),await this._notifyAllSubscribers(a.data.event,a.data.session,!1)})}this.initialize()}_debug(...t){return this.logDebugMessages&&this.logger(`GoTrueClient@${this.instanceID} (${a8}) ${new Date().toISOString()}`,...t),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>await this._acquireLock(-1,async()=>await this._initialize()))(),await this.initializePromise)}async _initialize(){try{const t=kn()?await this._isPKCEFlow():!1;if(this._debug("#_initialize()","begin","is PKCE flow",t),t||this.detectSessionInUrl&&this._isImplicitGrantFlow()){const{data:n,error:r}=await this._getSessionFromURL(t);if(r)return this._debug("#_initialize()","error detecting session from URL",r),(r==null?void 0:r.message)==="Identity is already linked"||(r==null?void 0:r.message)==="Identity is already linked to another user"?{error:r}:(await this._removeSession(),{error:r});const{session:i,redirectType:a}=n;return this._debug("#_initialize()","detected session in URL",i,"redirect type",a),await this._saveSession(i),setTimeout(async()=>{a==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",i):await this._notifyAllSubscribers("SIGNED_IN",i)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(t){return re(t)?{error:t}:{error:new u8("Unexpected error during initialization",t)}}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(t){var n,r,i;try{await this._removeSession();const a=await oe(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(r=(n=t==null?void 0:t.options)===null||n===void 0?void 0:n.data)!==null&&r!==void 0?r:{},gotrue_meta_security:{captcha_token:(i=t==null?void 0:t.options)===null||i===void 0?void 0:i.captchaToken}},xform:Mr}),{data:s,error:o}=a;if(o||!s)return{data:{user:null,session:null},error:o};const l=s.session,u=s.user;return s.session&&(await this._saveSession(s.session),await this._notifyAllSubscribers("SIGNED_IN",l)),{data:{user:u,session:l},error:null}}catch(a){if(re(a))return{data:{user:null,session:null},error:a};throw a}}async signUp(t){var n,r,i;try{await this._removeSession();let a;if("email"in t){const{email:c,password:d,options:f}=t;let h=null,p=null;this.flowType==="pkce"&&([h,p]=await wa(this.storage,this.storageKey)),a=await oe(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:f==null?void 0:f.emailRedirectTo,body:{email:c,password:d,data:(n=f==null?void 0:f.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:f==null?void 0:f.captchaToken},code_challenge:h,code_challenge_method:p},xform:Mr})}else if("phone"in t){const{phone:c,password:d,options:f}=t;a=await oe(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:c,password:d,data:(r=f==null?void 0:f.data)!==null&&r!==void 0?r:{},channel:(i=f==null?void 0:f.channel)!==null&&i!==void 0?i:"sms",gotrue_meta_security:{captcha_token:f==null?void 0:f.captchaToken}},xform:Mr})}else throw new cu("You must provide either an email or phone number and a password");const{data:s,error:o}=a;if(o||!s)return{data:{user:null,session:null},error:o};const l=s.session,u=s.user;return s.session&&(await this._saveSession(s.session),await this._notifyAllSubscribers("SIGNED_IN",l)),{data:{user:u,session:l},error:null}}catch(a){if(re(a))return{data:{user:null,session:null},error:a};throw a}}async signInWithPassword(t){try{await this._removeSession();let n;if("email"in t){const{email:a,password:s,options:o}=t;n=await oe(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:a,password:s,gotrue_meta_security:{captcha_token:o==null?void 0:o.captchaToken}},xform:S2})}else if("phone"in t){const{phone:a,password:s,options:o}=t;n=await oe(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:a,password:s,gotrue_meta_security:{captcha_token:o==null?void 0:o.captchaToken}},xform:S2})}else throw new cu("You must provide either an email or phone number and a password");const{data:r,error:i}=n;return i?{data:{user:null,session:null},error:i}:!r||!r.session||!r.user?{data:{user:null,session:null},error:new Sh}:(r.session&&(await this._saveSession(r.session),await this._notifyAllSubscribers("SIGNED_IN",r.session)),{data:Object.assign({user:r.user,session:r.session},r.weak_password?{weakPassword:r.weak_password}:null),error:i})}catch(n){if(re(n))return{data:{user:null,session:null},error:n};throw n}}async signInWithOAuth(t){var n,r,i,a;return await this._removeSession(),await this._handleProviderSignIn(t.provider,{redirectTo:(n=t.options)===null||n===void 0?void 0:n.redirectTo,scopes:(r=t.options)===null||r===void 0?void 0:r.scopes,queryParams:(i=t.options)===null||i===void 0?void 0:i.queryParams,skipBrowserRedirect:(a=t.options)===null||a===void 0?void 0:a.skipBrowserRedirect})}async exchangeCodeForSession(t){return await this.initializePromise,this._acquireLock(-1,async()=>this._exchangeCodeForSession(t))}async _exchangeCodeForSession(t){const n=await uu(this.storage,`${this.storageKey}-code-verifier`),[r,i]=(n??"").split("/"),{data:a,error:s}=await oe(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:t,code_verifier:r},xform:Mr});return await Eh(this.storage,`${this.storageKey}-code-verifier`),s?{data:{user:null,session:null,redirectType:null},error:s}:!a||!a.session||!a.user?{data:{user:null,session:null,redirectType:null},error:new Sh}:(a.session&&(await this._saveSession(a.session),await this._notifyAllSubscribers("SIGNED_IN",a.session)),{data:Object.assign(Object.assign({},a),{redirectType:i??null}),error:s})}async signInWithIdToken(t){await this._removeSession();try{const{options:n,provider:r,token:i,access_token:a,nonce:s}=t,o=await oe(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:r,id_token:i,access_token:a,nonce:s,gotrue_meta_security:{captcha_token:n==null?void 0:n.captchaToken}},xform:Mr}),{data:l,error:u}=o;return u?{data:{user:null,session:null},error:u}:!l||!l.session||!l.user?{data:{user:null,session:null},error:new Sh}:(l.session&&(await this._saveSession(l.session),await this._notifyAllSubscribers("SIGNED_IN",l.session)),{data:l,error:u})}catch(n){if(re(n))return{data:{user:null,session:null},error:n};throw n}}async signInWithOtp(t){var n,r,i,a,s;try{if(await this._removeSession(),"email"in t){const{email:o,options:l}=t;let u=null,c=null;this.flowType==="pkce"&&([u,c]=await wa(this.storage,this.storageKey));const{error:d}=await oe(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:o,data:(n=l==null?void 0:l.data)!==null&&n!==void 0?n:{},create_user:(r=l==null?void 0:l.shouldCreateUser)!==null&&r!==void 0?r:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},code_challenge:u,code_challenge_method:c},redirectTo:l==null?void 0:l.emailRedirectTo});return{data:{user:null,session:null},error:d}}if("phone"in t){const{phone:o,options:l}=t,{data:u,error:c}=await oe(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:o,data:(i=l==null?void 0:l.data)!==null&&i!==void 0?i:{},create_user:(a=l==null?void 0:l.shouldCreateUser)!==null&&a!==void 0?a:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},channel:(s=l==null?void 0:l.channel)!==null&&s!==void 0?s:"sms"}});return{data:{user:null,session:null,messageId:u==null?void 0:u.message_id},error:c}}throw new cu("You must provide either an email or phone number.")}catch(o){if(re(o))return{data:{user:null,session:null},error:o};throw o}}async verifyOtp(t){var n,r;try{t.type!=="email_change"&&t.type!=="phone_change"&&await this._removeSession();let i,a;"options"in t&&(i=(n=t.options)===null||n===void 0?void 0:n.redirectTo,a=(r=t.options)===null||r===void 0?void 0:r.captchaToken);const{data:s,error:o}=await oe(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},t),{gotrue_meta_security:{captcha_token:a}}),redirectTo:i,xform:Mr});if(o)throw o;if(!s)throw new Error("An error occurred on token verification.");const l=s.session,u=s.user;return l!=null&&l.access_token&&(await this._saveSession(l),await this._notifyAllSubscribers(t.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",l)),{data:{user:u,session:l},error:null}}catch(i){if(re(i))return{data:{user:null,session:null},error:i};throw i}}async signInWithSSO(t){var n,r,i;try{await this._removeSession();let a=null,s=null;return this.flowType==="pkce"&&([a,s]=await wa(this.storage,this.storageKey)),await oe(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in t?{provider_id:t.providerId}:null),"domain"in t?{domain:t.domain}:null),{redirect_to:(r=(n=t.options)===null||n===void 0?void 0:n.redirectTo)!==null&&r!==void 0?r:void 0}),!((i=t==null?void 0:t.options)===null||i===void 0)&&i.captchaToken?{gotrue_meta_security:{captcha_token:t.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:a,code_challenge_method:s}),headers:this.headers,xform:RB})}catch(a){if(re(a))return{data:null,error:a};throw a}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async t=>{const{data:{session:n},error:r}=t;if(r)throw r;if(!n)throw new $i;const{error:i}=await oe(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:n.access_token});return{data:{user:null,session:null},error:i}})}catch(t){if(re(t))return{data:{user:null,session:null},error:t};throw t}}async resend(t){try{t.type!="email_change"&&t.type!="phone_change"&&await this._removeSession();const n=`${this.url}/resend`;if("email"in t){const{email:r,type:i,options:a}=t,{error:s}=await oe(this.fetch,"POST",n,{headers:this.headers,body:{email:r,type:i,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},redirectTo:a==null?void 0:a.emailRedirectTo});return{data:{user:null,session:null},error:s}}else if("phone"in t){const{phone:r,type:i,options:a}=t,{data:s,error:o}=await oe(this.fetch,"POST",n,{headers:this.headers,body:{phone:r,type:i,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}}});return{data:{user:null,session:null,messageId:s==null?void 0:s.message_id},error:o}}throw new cu("You must provide either an email or phone number and a type")}catch(n){if(re(n))return{data:{user:null,session:null},error:n};throw n}}async getSession(){return await this.initializePromise,await this._acquireLock(-1,async()=>this._useSession(async n=>n))}async _acquireLock(t,n){this._debug("#_acquireLock","begin",t);try{if(this.lockAcquired){const r=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),i=(async()=>(await r,await n()))();return this.pendingInLock.push((async()=>{try{await i}catch{}})()),i}return await this.lock(`lock:${this.storageKey}`,t,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const r=n();for(this.pendingInLock.push((async()=>{try{await r}catch{}})()),await r;this.pendingInLock.length;){const i=[...this.pendingInLock];await Promise.all(i),this.pendingInLock.splice(0,i.length)}return await r}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(t){this._debug("#_useSession","begin");try{const n=await this.__loadSession();return await t(n)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lockAcquired||this._debug("#__loadSession()","used outside of an acquired lock!",new Error().stack);try{let t=null;const n=await uu(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",n),n!==null&&(this._isValidSession(n)?t=n:(this._debug("#getSession()","session from storage is not valid"),await this._removeSession())),!t)return{data:{session:null},error:null};const r=t.expires_at?t.expires_at<=Date.now()/1e3:!1;if(this._debug("#__loadSession()",`session has${r?"":" not"} expired`,"expires_at",t.expires_at),!r){if(this.storage.isServer){const s=this.suppressGetSessionWarning;t=new Proxy(t,{get(l,u,c){return!s&&u==="user"&&console.warn("Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and many not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server."),Reflect.get(l,u,c)}})}return{data:{session:t},error:null}}const{session:i,error:a}=await this._callRefreshToken(t.refresh_token);return a?{data:{session:null},error:a}:{data:{session:i},error:null}}finally{this._debug("#__loadSession()","end")}}async getUser(t){return t?await this._getUser(t):(await this.initializePromise,await this._acquireLock(-1,async()=>await this._getUser()))}async _getUser(t){try{return t?await oe(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:t,xform:jr}):await this._useSession(async n=>{var r,i,a;const{data:s,error:o}=n;if(o)throw o;return!(!((r=s.session)===null||r===void 0)&&r.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new $i}:await oe(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(a=(i=s.session)===null||i===void 0?void 0:i.access_token)!==null&&a!==void 0?a:void 0,xform:jr})})}catch(n){if(re(n))return{data:{user:null},error:n};throw n}}async updateUser(t,n={}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._updateUser(t,n))}async _updateUser(t,n={}){try{return await this._useSession(async r=>{const{data:i,error:a}=r;if(a)throw a;if(!i.session)throw new $i;const s=i.session;let o=null,l=null;this.flowType==="pkce"&&t.email!=null&&([o,l]=await wa(this.storage,this.storageKey));const{data:u,error:c}=await oe(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:n==null?void 0:n.emailRedirectTo,body:Object.assign(Object.assign({},t),{code_challenge:o,code_challenge_method:l}),jwt:s.access_token,xform:jr});if(c)throw c;return s.user=u.user,await this._saveSession(s),await this._notifyAllSubscribers("USER_UPDATED",s),{data:{user:s.user},error:null}})}catch(r){if(re(r))return{data:{user:null},error:r};throw r}}_decodeJWT(t){return w2(t)}async setSession(t){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._setSession(t))}async _setSession(t){try{if(!t.access_token||!t.refresh_token)throw new $i;const n=Date.now()/1e3;let r=n,i=!0,a=null;const s=w2(t.access_token);if(s.exp&&(r=s.exp,i=r<=n),i){const{session:o,error:l}=await this._callRefreshToken(t.refresh_token);if(l)return{data:{user:null,session:null},error:l};if(!o)return{data:{user:null,session:null},error:null};a=o}else{const{data:o,error:l}=await this._getUser(t.access_token);if(l)throw l;a={access_token:t.access_token,refresh_token:t.refresh_token,user:o.user,token_type:"bearer",expires_in:r-n,expires_at:r},await this._saveSession(a),await this._notifyAllSubscribers("SIGNED_IN",a)}return{data:{user:a.user,session:a},error:null}}catch(n){if(re(n))return{data:{session:null,user:null},error:n};throw n}}async refreshSession(t){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._refreshSession(t))}async _refreshSession(t){try{return await this._useSession(async n=>{var r;if(!t){const{data:s,error:o}=n;if(o)throw o;t=(r=s.session)!==null&&r!==void 0?r:void 0}if(!(t!=null&&t.refresh_token))throw new $i;const{session:i,error:a}=await this._callRefreshToken(t.refresh_token);return a?{data:{user:null,session:null},error:a}:i?{data:{user:i.user,session:i},error:null}:{data:{user:null,session:null},error:null}})}catch(n){if(re(n))return{data:{user:null,session:null},error:n};throw n}}async _getSessionFromURL(t){try{if(!kn())throw new du("No browser detected.");if(this.flowType==="implicit"&&!this._isImplicitGrantFlow())throw new du("Not a valid implicit grant flow url.");if(this.flowType=="pkce"&&!t)throw new D2("Not a valid PKCE flow url.");const n=_h(window.location.href);if(t){if(!n.code)throw new D2("No code detected.");const{data:m,error:$}=await this._exchangeCodeForSession(n.code);if($)throw $;const w=new URL(window.location.href);return w.searchParams.delete("code"),window.history.replaceState(window.history.state,"",w.toString()),{data:{session:m.session,redirectType:null},error:null}}if(n.error||n.error_description||n.error_code)throw new du(n.error_description||"Error in URL with unspecified error_description",{error:n.error||"unspecified_error",code:n.error_code||"unspecified_code"});const{provider_token:r,provider_refresh_token:i,access_token:a,refresh_token:s,expires_in:o,expires_at:l,token_type:u}=n;if(!a||!o||!s||!u)throw new du("No session defined in URL");const c=Math.round(Date.now()/1e3),d=parseInt(o);let f=c+d;l&&(f=parseInt(l));const h=f-c;h*1e3<=Us&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${h}s, should have been closer to ${d}s`);const p=f-d;c-p>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",p,f,c):c-p<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clok for skew",p,f,c);const{data:g,error:b}=await this._getUser(a);if(b)throw b;const v={provider_token:r,provider_refresh_token:i,access_token:a,expires_in:d,expires_at:f,refresh_token:s,token_type:u,user:g.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),{data:{session:v,redirectType:n.type},error:null}}catch(n){if(re(n))return{data:{session:null,redirectType:null},error:n};throw n}}_isImplicitGrantFlow(){const t=_h(window.location.href);return!!(kn()&&(t.access_token||t.error_description))}async _isPKCEFlow(){const t=_h(window.location.href),n=await uu(this.storage,`${this.storageKey}-code-verifier`);return!!(t.code&&n)}async signOut(t={scope:"global"}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._signOut(t))}async _signOut({scope:t}={scope:"global"}){return await this._useSession(async n=>{var r;const{data:i,error:a}=n;if(a)return{error:a};const s=(r=i.session)===null||r===void 0?void 0:r.access_token;if(s){const{error:o}=await this.admin.signOut(s,t);if(o&&!(SB(o)&&(o.status===404||o.status===401||o.status===403)))return{error:o}}return t!=="others"&&(await this._removeSession(),await Eh(this.storage,`${this.storageKey}-code-verifier`),await this._notifyAllSubscribers("SIGNED_OUT",null)),{error:null}})}onAuthStateChange(t){const n=hB(),r={id:n,callback:t,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",n),this.stateChangeEmitters.delete(n)}};return this._debug("#onAuthStateChange()","registered callback with id",n),this.stateChangeEmitters.set(n,r),(async()=>(await this.initializePromise,await this._acquireLock(-1,async()=>{this._emitInitialSession(n)})))(),{data:{subscription:r}}}async _emitInitialSession(t){return await this._useSession(async n=>{var r,i;try{const{data:{session:a},error:s}=n;if(s)throw s;await((r=this.stateChangeEmitters.get(t))===null||r===void 0?void 0:r.callback("INITIAL_SESSION",a)),this._debug("INITIAL_SESSION","callback id",t,"session",a)}catch(a){await((i=this.stateChangeEmitters.get(t))===null||i===void 0?void 0:i.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",t,"error",a),console.error(a)}})}async resetPasswordForEmail(t,n={}){let r=null,i=null;this.flowType==="pkce"&&([r,i]=await wa(this.storage,this.storageKey,!0));try{return await oe(this.fetch,"POST",`${this.url}/recover`,{body:{email:t,code_challenge:r,code_challenge_method:i,gotrue_meta_security:{captcha_token:n.captchaToken}},headers:this.headers,redirectTo:n.redirectTo})}catch(a){if(re(a))return{data:null,error:a};throw a}}async getUserIdentities(){var t;try{const{data:n,error:r}=await this.getUser();if(r)throw r;return{data:{identities:(t=n.user.identities)!==null&&t!==void 0?t:[]},error:null}}catch(n){if(re(n))return{data:null,error:n};throw n}}async linkIdentity(t){var n;try{const{data:r,error:i}=await this._useSession(async a=>{var s,o,l,u,c;const{data:d,error:f}=a;if(f)throw f;const h=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,t.provider,{redirectTo:(s=t.options)===null||s===void 0?void 0:s.redirectTo,scopes:(o=t.options)===null||o===void 0?void 0:o.scopes,queryParams:(l=t.options)===null||l===void 0?void 0:l.queryParams,skipBrowserRedirect:!0});return await oe(this.fetch,"GET",h,{headers:this.headers,jwt:(c=(u=d.session)===null||u===void 0?void 0:u.access_token)!==null&&c!==void 0?c:void 0})});if(i)throw i;return kn()&&!(!((n=t.options)===null||n===void 0)&&n.skipBrowserRedirect)&&window.location.assign(r==null?void 0:r.url),{data:{provider:t.provider,url:r==null?void 0:r.url},error:null}}catch(r){if(re(r))return{data:{provider:t.provider,url:null},error:r};throw r}}async unlinkIdentity(t){try{return await this._useSession(async n=>{var r,i;const{data:a,error:s}=n;if(s)throw s;return await oe(this.fetch,"DELETE",`${this.url}/user/identities/${t.identity_id}`,{headers:this.headers,jwt:(i=(r=a.session)===null||r===void 0?void 0:r.access_token)!==null&&i!==void 0?i:void 0})})}catch(n){if(re(n))return{data:null,error:n};throw n}}async _refreshAccessToken(t){const n=`#_refreshAccessToken(${t.substring(0,5)}...)`;this._debug(n,"begin");try{const r=Date.now();return await vB(async i=>(i>0&&await gB(200*Math.pow(2,i-1)),this._debug(n,"refreshing attempt",i),await oe(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:t},headers:this.headers,xform:Mr})),(i,a)=>{const s=200*Math.pow(2,i);return a&&Ch(a)&&Date.now()+s-r<Us})}catch(r){if(this._debug(n,"error",r),re(r))return{data:{session:null,user:null},error:r};throw r}finally{this._debug(n,"end")}}_isValidSession(t){return typeof t=="object"&&t!==null&&"access_token"in t&&"refresh_token"in t&&"expires_at"in t}async _handleProviderSignIn(t,n){const r=await this._getUrlForProvider(`${this.url}/authorize`,t,{redirectTo:n.redirectTo,scopes:n.scopes,queryParams:n.queryParams});return this._debug("#_handleProviderSignIn()","provider",t,"options",n,"url",r),kn()&&!n.skipBrowserRedirect&&window.location.assign(r),{data:{provider:t,url:r},error:null}}async _recoverAndRefresh(){var t;const n="#_recoverAndRefresh()";this._debug(n,"begin");try{const r=await uu(this.storage,this.storageKey);if(this._debug(n,"session from storage",r),!this._isValidSession(r)){this._debug(n,"session is not valid"),r!==null&&await this._removeSession();return}const i=Math.round(Date.now()/1e3),a=((t=r.expires_at)!==null&&t!==void 0?t:1/0)<i+x2;if(this._debug(n,`session has${a?"":" not"} expired with margin of ${x2}s`),a){if(this.autoRefreshToken&&r.refresh_token){const{error:s}=await this._callRefreshToken(r.refresh_token);s&&(console.error(s),Ch(s)||(this._debug(n,"refresh failed with a non-retryable error, removing the session",s),await this._removeSession()))}}else await this._notifyAllSubscribers("SIGNED_IN",r)}catch(r){this._debug(n,"error",r),console.error(r);return}finally{this._debug(n,"end")}}async _callRefreshToken(t){var n,r;if(!t)throw new $i;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const i=`#_callRefreshToken(${t.substring(0,5)}...)`;this._debug(i,"begin");try{this.refreshingDeferred=new _f;const{data:a,error:s}=await this._refreshAccessToken(t);if(s)throw s;if(!a.session)throw new $i;await this._saveSession(a.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",a.session);const o={session:a.session,error:null};return this.refreshingDeferred.resolve(o),o}catch(a){if(this._debug(i,"error",a),re(a)){const s={session:null,error:a};return Ch(a)||(await this._removeSession(),await this._notifyAllSubscribers("SIGNED_OUT",null)),(n=this.refreshingDeferred)===null||n===void 0||n.resolve(s),s}throw(r=this.refreshingDeferred)===null||r===void 0||r.reject(a),a}finally{this.refreshingDeferred=null,this._debug(i,"end")}}async _notifyAllSubscribers(t,n,r=!0){const i=`#_notifyAllSubscribers(${t})`;this._debug(i,"begin",n,`broadcast = ${r}`);try{this.broadcastChannel&&r&&this.broadcastChannel.postMessage({event:t,session:n});const a=[],s=Array.from(this.stateChangeEmitters.values()).map(async o=>{try{await o.callback(t,n)}catch(l){a.push(l)}});if(await Promise.all(s),a.length>0){for(let o=0;o<a.length;o+=1)console.error(a[o]);throw a[0]}}finally{this._debug(i,"end")}}async _saveSession(t){this._debug("#_saveSession()",t),this.suppressGetSessionWarning=!0,await l8(this.storage,this.storageKey,t)}async _removeSession(){this._debug("#_removeSession()"),await Eh(this.storage,this.storageKey)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const t=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{t&&kn()&&(window!=null&&window.removeEventListener)&&window.removeEventListener("visibilitychange",t)}catch(n){console.error("removing visibilitychange callback failed",n)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const t=setInterval(()=>this._autoRefreshTokenTick(),Us);this.autoRefreshTicker=t,t&&typeof t=="object"&&typeof t.unref=="function"?t.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(t),setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const t=this.autoRefreshTicker;this.autoRefreshTicker=null,t&&clearInterval(t)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async _autoRefreshTokenTick(){this._debug("#_autoRefreshTokenTick()","begin");try{await this._acquireLock(0,async()=>{try{const t=Date.now();try{return await this._useSession(async n=>{const{data:{session:r}}=n;if(!r||!r.refresh_token||!r.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const i=Math.floor((r.expires_at*1e3-t)/Us);this._debug("#_autoRefreshTokenTick()",`access token expires in ${i} ticks, a tick lasts ${Us}ms, refresh threshold is ${k2} ticks`),i<=k2&&await this._callRefreshToken(r.refresh_token)})}catch(n){console.error("Auto refresh tick failed with error. This is likely a transient error.",n)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(t){if(t.isAcquireTimeout||t instanceof c8)this._debug("auto refresh token tick lock not available");else throw t}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!kn()||!(window!=null&&window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>await this._onVisibilityChanged(!1),window==null||window.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(t){console.error("_handleVisibilityChange",t)}}async _onVisibilityChanged(t){const n=`#_onVisibilityChanged(${t})`;this._debug(n,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),t||(await this.initializePromise,await this._acquireLock(-1,async()=>{if(document.visibilityState!=="visible"){this._debug(n,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting");return}await this._recoverAndRefresh()}))):document.visibilityState==="hidden"&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(t,n,r){const i=[`provider=${encodeURIComponent(n)}`];if(r!=null&&r.redirectTo&&i.push(`redirect_to=${encodeURIComponent(r.redirectTo)}`),r!=null&&r.scopes&&i.push(`scopes=${encodeURIComponent(r.scopes)}`),this.flowType==="pkce"){const[a,s]=await wa(this.storage,this.storageKey),o=new URLSearchParams({code_challenge:`${encodeURIComponent(a)}`,code_challenge_method:`${encodeURIComponent(s)}`});i.push(o.toString())}if(r!=null&&r.queryParams){const a=new URLSearchParams(r.queryParams);i.push(a.toString())}return r!=null&&r.skipBrowserRedirect&&i.push(`skip_http_redirect=${r.skipBrowserRedirect}`),`${t}?${i.join("&")}`}async _unenroll(t){try{return await this._useSession(async n=>{var r;const{data:i,error:a}=n;return a?{data:null,error:a}:await oe(this.fetch,"DELETE",`${this.url}/factors/${t.factorId}`,{headers:this.headers,jwt:(r=i==null?void 0:i.session)===null||r===void 0?void 0:r.access_token})})}catch(n){if(re(n))return{data:null,error:n};throw n}}async _enroll(t){try{return await this._useSession(async n=>{var r,i;const{data:a,error:s}=n;if(s)return{data:null,error:s};const{data:o,error:l}=await oe(this.fetch,"POST",`${this.url}/factors`,{body:{friendly_name:t.friendlyName,factor_type:t.factorType,issuer:t.issuer},headers:this.headers,jwt:(r=a==null?void 0:a.session)===null||r===void 0?void 0:r.access_token});return l?{data:null,error:l}:(!((i=o==null?void 0:o.totp)===null||i===void 0)&&i.qr_code&&(o.totp.qr_code=`data:image/svg+xml;utf-8,${o.totp.qr_code}`),{data:o,error:null})})}catch(n){if(re(n))return{data:null,error:n};throw n}}async _verify(t){return this._acquireLock(-1,async()=>{try{return await this._useSession(async n=>{var r;const{data:i,error:a}=n;if(a)return{data:null,error:a};const{data:s,error:o}=await oe(this.fetch,"POST",`${this.url}/factors/${t.factorId}/verify`,{body:{code:t.code,challenge_id:t.challengeId},headers:this.headers,jwt:(r=i==null?void 0:i.session)===null||r===void 0?void 0:r.access_token});return o?{data:null,error:o}:(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+s.expires_in},s)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",s),{data:s,error:o})})}catch(n){if(re(n))return{data:null,error:n};throw n}})}async _challenge(t){return this._acquireLock(-1,async()=>{try{return await this._useSession(async n=>{var r;const{data:i,error:a}=n;return a?{data:null,error:a}:await oe(this.fetch,"POST",`${this.url}/factors/${t.factorId}/challenge`,{headers:this.headers,jwt:(r=i==null?void 0:i.session)===null||r===void 0?void 0:r.access_token})})}catch(n){if(re(n))return{data:null,error:n};throw n}})}async _challengeAndVerify(t){const{data:n,error:r}=await this._challenge({factorId:t.factorId});return r?{data:null,error:r}:await this._verify({factorId:t.factorId,challengeId:n.id,code:t.code})}async _listFactors(){const{data:{user:t},error:n}=await this.getUser();if(n)return{data:null,error:n};const r=(t==null?void 0:t.factors)||[],i=r.filter(a=>a.factor_type==="totp"&&a.status==="verified");return{data:{all:r,totp:i},error:null}}async _getAuthenticatorAssuranceLevel(){return this._acquireLock(-1,async()=>await this._useSession(async t=>{var n,r;const{data:{session:i},error:a}=t;if(a)return{data:null,error:a};if(!i)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const s=this._decodeJWT(i.access_token);let o=null;s.aal&&(o=s.aal);let l=o;((r=(n=i.user.factors)===null||n===void 0?void 0:n.filter(d=>d.status==="verified"))!==null&&r!==void 0?r:[]).length>0&&(l="aal2");const c=s.amr||[];return{data:{currentLevel:o,nextLevel:l,currentAuthenticationMethods:c},error:null}}))}}ol.nextInstanceID=0;const VB=ol;class WB extends VB{constructor(t){super(t)}}var UB=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(s){s(a)})}return new(n||(n=Promise))(function(a,s){function o(c){try{u(r.next(c))}catch(d){s(d)}}function l(c){try{u(r.throw(c))}catch(d){s(d)}}function u(c){c.done?a(c.value):i(c.value).then(o,l)}u((r=r.apply(e,t||[])).next())})};class HB{constructor(t,n,r){var i,a,s;if(this.supabaseUrl=t,this.supabaseKey=n,!t)throw new Error("supabaseUrl is required.");if(!n)throw new Error("supabaseKey is required.");const o=oB(t);this.realtimeUrl=`${o}/realtime/v1`.replace(/^http/i,"ws"),this.authUrl=`${o}/auth/v1`,this.storageUrl=`${o}/storage/v1`,this.functionsUrl=`${o}/functions/v1`;const l=`sb-${new URL(this.authUrl).hostname.split(".")[0]}-auth-token`,u={db:eB,realtime:nB,auth:Object.assign(Object.assign({},tB),{storageKey:l}),global:JO},c=lB(r??{},u);this.storageKey=(i=c.auth.storageKey)!==null&&i!==void 0?i:"",this.headers=(a=c.global.headers)!==null&&a!==void 0?a:{},this.auth=this._initSupabaseAuthClient((s=c.auth)!==null&&s!==void 0?s:{},this.headers,c.global.fetch),this.fetch=sB(n,this._getAccessToken.bind(this),c.global.fetch),this.realtime=this._initRealtimeClient(Object.assign({headers:this.headers},c.realtime)),this.rest=new DO(`${o}/rest/v1`,{headers:this.headers,schema:c.db.schema,fetch:this.fetch}),this._listenForAuthEvents()}get functions(){return new JA(this.functionsUrl,{headers:this.headers,customFetch:this.fetch})}get storage(){return new ZO(this.storageUrl,this.headers,this.fetch)}from(t){return this.rest.from(t)}schema(t){return this.rest.schema(t)}rpc(t,n={},r={}){return this.rest.rpc(t,n,r)}channel(t,n={config:{}}){return this.realtime.channel(t,n)}getChannels(){return this.realtime.getChannels()}removeChannel(t){return this.realtime.removeChannel(t)}removeAllChannels(){return this.realtime.removeAllChannels()}_getAccessToken(){var t,n;return UB(this,void 0,void 0,function*(){const{data:r}=yield this.auth.getSession();return(n=(t=r.session)===null||t===void 0?void 0:t.access_token)!==null&&n!==void 0?n:null})}_initSupabaseAuthClient({autoRefreshToken:t,persistSession:n,detectSessionInUrl:r,storage:i,storageKey:a,flowType:s,debug:o},l,u){var c;const d={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new WB({url:this.authUrl,headers:Object.assign(Object.assign({},d),l),storageKey:a,autoRefreshToken:t,persistSession:n,detectSessionInUrl:r,storage:i,flowType:s,debug:o,fetch:u,hasCustomAuthorizationHeader:(c="Authorization"in this.headers)!==null&&c!==void 0?c:!1})}_initRealtimeClient(t){return new IO(this.realtimeUrl,Object.assign(Object.assign({},t),{params:Object.assign({apikey:this.supabaseKey},t==null?void 0:t.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((n,r)=>{this._handleTokenChanged(n,"CLIENT",r==null?void 0:r.access_token)})}_handleTokenChanged(t,n,r){(t==="TOKEN_REFRESHED"||t==="SIGNED_IN")&&this.changedAccessToken!==r?(this.realtime.setAuth(r??null),this.changedAccessToken=r):t==="SIGNED_OUT"&&(this.realtime.setAuth(this.supabaseKey),n=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}}const KB=(e,t,n)=>new HB(e,t,n);function ne(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var Z={};ne(Z,"focus-ring",()=>_m,e=>_m=e);ne(Z,"i18nFontFamily",()=>jc,e=>jc=e);ne(Z,"is-active",()=>Em,e=>Em=e);ne(Z,"is-disabled",()=>Sm,e=>Sm=e);ne(Z,"is-focused",()=>Cm,e=>Cm=e);ne(Z,"is-hovered",()=>km,e=>km=e);ne(Z,"is-open",()=>Pm,e=>Pm=e);ne(Z,"is-placeholder",()=>Tm,e=>Tm=e);ne(Z,"is-selected",()=>Rm,e=>Rm=e);ne(Z,"spectrum-BaseButton",()=>oi,e=>oi=e);ne(Z,"spectrum-FocusRing-ring",()=>zc,e=>zc=e);ne(Z,"spectrum-FocusRing",()=>li,e=>li=e);ne(Z,"spectrum-ActionButton",()=>Mm,e=>Mm=e);ne(Z,"spectrum-ActionButton--emphasized",()=>Fm,e=>Fm=e);ne(Z,"spectrum-ActionButton--quiet",()=>Am,e=>Am=e);ne(Z,"spectrum-ActionButton--staticBlack",()=>Om,e=>Om=e);ne(Z,"spectrum-ActionButton--staticColor",()=>Bm,e=>Bm=e);ne(Z,"spectrum-ActionButton--staticWhite",()=>Im,e=>Im=e);ne(Z,"spectrum-ActionButton-hold",()=>Lm,e=>Lm=e);ne(Z,"spectrum-ActionButton-label",()=>Nm,e=>Nm=e);ne(Z,"spectrum-ActionGroup-itemIcon",()=>jm,e=>jm=e);ne(Z,"spectrum-Button",()=>zm,e=>zm=e);ne(Z,"spectrum-Button--iconOnly",()=>Vm,e=>Vm=e);ne(Z,"spectrum-Button--overBackground",()=>Wm,e=>Wm=e);ne(Z,"spectrum-Button--pending",()=>Um,e=>Um=e);ne(Z,"spectrum-Button-circleLoader",()=>Hm,e=>Hm=e);ne(Z,"spectrum-Button-label",()=>Km,e=>Km=e);ne(Z,"spectrum-ClearButton",()=>Ym,e=>Ym=e);ne(Z,"spectrum-ClearButton--overBackground",()=>qm,e=>qm=e);ne(Z,"spectrum-ClearButton--small",()=>Gm,e=>Gm=e);ne(Z,"spectrum-FieldButton",()=>Zm,e=>Zm=e);ne(Z,"spectrum-FieldButton--invalid",()=>Xm,e=>Xm=e);ne(Z,"spectrum-FocusRing--quiet",()=>Vc,e=>Vc=e);ne(Z,"spectrum-FieldButton--quiet",()=>Qm,e=>Qm=e);ne(Z,"spectrum-Icon",()=>Jm,e=>Jm=e);ne(Z,"spectrum-LogicButton",()=>eg,e=>eg=e);ne(Z,"spectrum-LogicButton--and",()=>tg,e=>tg=e);ne(Z,"spectrum-LogicButton--or",()=>ng,e=>ng=e);var _m,jc,Em,Sm,Cm,km,Pm,Tm,Rm,oi,zc,li,Mm,Fm,Am,Om,Bm,Im,Lm,Nm,jm,zm,Vm,Wm,Um,Hm,Km,Ym,qm,Gm,Zm,Xm,Vc,Qm,Jm,eg,tg,ng;_m="Dniwja_focus-ring";jc="Dniwja_i18nFontFamily";Em="Dniwja_is-active";Sm="Dniwja_is-disabled";Cm="Dniwja_is-focused";km="Dniwja_is-hovered";Pm="Dniwja_is-open";Tm="Dniwja_is-placeholder";Rm="Dniwja_is-selected";oi=`Dniwja_spectrum-BaseButton ${jc}`;zc="Dniwja_spectrum-FocusRing-ring";li=`Dniwja_spectrum-FocusRing ${zc}`;Mm=`Dniwja_spectrum-ActionButton ${oi} ${li}`;Fm="Dniwja_spectrum-ActionButton--emphasized";Am="Dniwja_spectrum-ActionButton--quiet";Om="Dniwja_spectrum-ActionButton--staticBlack";Bm="Dniwja_spectrum-ActionButton--staticColor";Im="Dniwja_spectrum-ActionButton--staticWhite";Lm="Dniwja_spectrum-ActionButton-hold";Nm="Dniwja_spectrum-ActionButton-label";jm="Dniwja_spectrum-ActionGroup-itemIcon";zm=`Dniwja_spectrum-Button ${oi} ${li}`;Vm="Dniwja_spectrum-Button--iconOnly";Wm="Dniwja_spectrum-Button--overBackground";Um="Dniwja_spectrum-Button--pending";Hm="Dniwja_spectrum-Button-circleLoader";Km="Dniwja_spectrum-Button-label";Ym=`Dniwja_spectrum-ClearButton ${oi} ${li}`;qm="Dniwja_spectrum-ClearButton--overBackground";Gm="Dniwja_spectrum-ClearButton--small";Zm=`Dniwja_spectrum-FieldButton ${oi} ${li}`;Xm="Dniwja_spectrum-FieldButton--invalid";Vc="Dniwja_spectrum-FocusRing--quiet";Qm=`Dniwja_spectrum-FieldButton--quiet ${Vc}`;Jm="Dniwja_spectrum-Icon";eg=`Dniwja_spectrum-LogicButton ${oi} ${li}`;tg="Dniwja_spectrum-LogicButton--and";ng="Dniwja_spectrum-LogicButton--or";function d8(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=d8(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ef(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=d8(e))&&(r&&(r+=" "),r+=t);return r}let fu=!1;function V(e,...t){let n=[];for(let r of t)if(typeof r=="object"&&r){let i={};for(let a in r)e[a]&&(i[e[a]]=r[a]),e[a]||(i[a]=r[a]);n.push(i)}else typeof r=="string"?(e[r]&&n.push(e[r]),e[r]||n.push(r)):n.push(r);return Ef(...n)}const Wc={prefix:String(Math.round(Math.random()*1e10)),current:0},f8=_.createContext(Wc),YB=_.createContext(!1);let qB=!!(typeof window<"u"&&window.document&&window.document.createElement),kh=new WeakMap;function GB(e=!1){let t=y.useContext(f8),n=y.useRef(null);if(n.current===null&&!e){var r,i;let a=(i=_.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||i===void 0||(r=i.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(a){let s=kh.get(a);s==null?kh.set(a,{id:t.current,state:a.memoizedState}):a.memoizedState!==s.state&&(t.current=s.id,kh.delete(a))}n.current=++t.current}return n.current}function ZB(e){let t=y.useContext(f8);t===Wc&&!qB&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=GB(!!e),r=`react-aria${t.prefix}`;return e||`${r}-${n}`}function XB(e){let t=_.useId(),[n]=y.useState(ha()),r=n?"react-aria":`react-aria${Wc.prefix}`;return e||`${r}-${t}`}const QB=typeof _.useId=="function"?XB:ZB;function JB(){return!1}function eI(){return!0}function tI(e){return()=>{}}function ha(){return typeof _.useSyncExternalStore=="function"?_.useSyncExternalStore(tI,JB,eI):y.useContext(YB)}function rg(e){let t=typeof window<"u"&&typeof window.matchMedia=="function",[n,r]=y.useState(()=>t?window.matchMedia(e).matches:!1);return y.useEffect(()=>{if(!t)return;let a=window.matchMedia(e),s=o=>{r(o.matches)};return a.addListener(s),()=>{a.removeListener(s)}},[t,e]),ha()?!1:n}function Sf(e){return{UNSAFE_getDOMNode(){return e.current}}}function nI(e,t=e){return{...Sf(e),focus(){t.current&&t.current.focus()}}}function Nn(e){let t=y.useRef(null);return y.useImperativeHandle(e,()=>Sf(t)),t}function h8(e,t){let n=y.useRef(null);return y.useImperativeHandle(e,()=>nI(n,t)),n}function hu(e){return{get current(){return e.current&&e.current.UNSAFE_getDOMNode()}}}const s$=_.createContext(null);s$.displayName="BreakpointContext";function rI(e){let{children:t,matchedBreakpoints:n}=e;return _.createElement(s$.Provider,{value:{matchedBreakpoints:n}},t)}function iI(e){let t=Object.entries(e).sort(([,l],[,u])=>u-l),n=t.map(([,l])=>`(min-width: ${l}px)`),r=typeof window<"u"&&typeof window.matchMedia=="function",i=()=>{let l=[];for(let u in n){let c=n[u];window.matchMedia(c).matches&&l.push(t[u][0])}return l.push("base"),l},[a,s]=y.useState(()=>r?i():["base"]);return y.useEffect(()=>{if(!r)return;let l=()=>{const u=i();s(c=>c.length!==u.length||c.some((d,f)=>d!==u[f])?[...u]:c)};return window.addEventListener("resize",l),()=>{window.removeEventListener("resize",l)}},[r]),ha()?["base"]:a}function p8(){return y.useContext(s$)}const aI=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),sI=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function m8(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize(),r=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(r)return r.direction==="rtl";if(n.script)return aI.has(n.script)}let t=e.split("-")[0];return sI.has(t)}const oI=Symbol.for("react-aria.i18n.locale");function g8(){let e=typeof window<"u"&&window[oI]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:m8(e)?"rtl":"ltr"}}let ig=g8(),ho=new Set;function T2(){ig=g8();for(let e of ho)e(ig)}function v8(){let e=ha(),[t,n]=y.useState(ig);return y.useEffect(()=>(ho.size===0&&window.addEventListener("languagechange",T2),ho.add(n),()=>{ho.delete(n),ho.size===0&&window.removeEventListener("languagechange",T2)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const b8=_.createContext(null);function lI(e){let{locale:t,children:n}=e,r=v8(),i=_.useMemo(()=>t?{locale:t,direction:m8(t)?"rtl":"ltr"}:r,[r,t]);return _.createElement(b8.Provider,{value:i},n)}function Qe(){let e=v8();return y.useContext(b8)||e}const uI=Symbol.for("react-aria.i18n.locale"),cI=Symbol.for("react-aria.i18n.strings");let _a;class mi{getStringForLocale(t,n){let i=this.getStringsForLocale(n)[t];if(!i)throw new Error(`Could not find intl message ${t} in ${n} locale`);return i}getStringsForLocale(t){let n=this.strings[t];return n||(n=dI(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[uI];if(_a===void 0){let i=window[cI];if(!i)return null;_a={};for(let a in i)_a[a]=new mi({[n]:i[a]},n)}let r=_a==null?void 0:_a[t];if(!r)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}constructor(t,n="en-US"){this.strings=Object.fromEntries(Object.entries(t).filter(([,r])=>r)),this.defaultLocale=n}}function dI(e,t,n="en-US"){if(t[e])return t[e];let r=fI(e);if(t[r])return t[r];for(let i in t)if(i.startsWith(r+"-"))return t[i];return t[n]}function fI(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const R2=new Map,M2=new Map;class y8{format(t,n){let r=this.strings.getStringForLocale(t,this.locale);return typeof r=="function"?r(n,this):r}plural(t,n,r="cardinal"){let i=n["="+t];if(i)return typeof i=="function"?i():i;let a=this.locale+":"+r,s=R2.get(a);s||(s=new Intl.PluralRules(this.locale,{type:r}),R2.set(a,s));let o=s.select(t);return i=n[o]||n.other,typeof i=="function"?i():i}number(t){let n=M2.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),M2.set(this.locale,n)),n.format(t)}select(t,n){let r=t[n]||t.other;return typeof r=="function"?r():r}constructor(t,n){this.locale=t,this.strings=n}}const F2=new WeakMap;function hI(e){let t=F2.get(e);return t||(t=new mi(e),F2.set(e,t)),t}function $8(e,t){return t&&mi.getGlobalDictionaryForPackage(t)||hI(e)}function Sn(e,t){let{locale:n}=Qe(),r=$8(e,t);return y.useMemo(()=>new y8(n,r),[n,r])}function ns(e,t){return e-t*Math.floor(e/t)}const x8=1721426;function Vi(e,t,n,r){t=Bl(e,t);let i=t-1,a=-2;return n<=2?a=0:Ur(t)&&(a=-1),x8-1+365*i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400)+Math.floor((367*n-362)/12+a+r)}function Ur(e){return e%4===0&&(e%100!==0||e%400===0)}function Bl(e,t){return e==="BC"?1-t:t}function Cf(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const pI={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class Ft{fromJulianDay(t){let n=t,r=n-x8,i=Math.floor(r/146097),a=ns(r,146097),s=Math.floor(a/36524),o=ns(a,36524),l=Math.floor(o/1461),u=ns(o,1461),c=Math.floor(u/365),d=i*400+s*100+l*4+c+(s!==4&&c!==4?1:0),[f,h]=Cf(d),p=n-Vi(f,h,1,1),g=2;n<Vi(f,h,3,1)?g=0:Ur(h)&&(g=1);let b=Math.floor(((p+g)*12+373)/367),v=n-Vi(f,h,b,1)+1;return new Je(f,h,b,v)}toJulianDay(t){return Vi(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return pI[Ur(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return Ur(t.year)?366:365}getYearsInEra(t){return 9999}getEras(){return["BC","AD"]}isInverseEra(t){return t.era==="BC"}balanceDate(t){t.year<=0&&(t.era=t.era==="BC"?"AD":"BC",t.year=1-t.year)}constructor(){this.identifier="gregory"}}const mI={"001":1,AD:1,AE:6,AF:6,AI:1,AL:1,AM:1,AN:1,AR:1,AT:1,AU:1,AX:1,AZ:1,BA:1,BE:1,BG:1,BH:6,BM:1,BN:1,BY:1,CH:1,CL:1,CM:1,CN:1,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DZ:6,EC:1,EE:1,EG:6,ES:1,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,HR:1,HU:1,IE:1,IQ:6,IR:6,IS:1,IT:1,JO:6,KG:1,KW:6,KZ:1,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MK:1,MN:1,MQ:1,MV:5,MY:1,NL:1,NO:1,NZ:1,OM:6,PL:1,QA:6,RE:1,RO:1,RS:1,RU:1,SD:6,SE:1,SI:1,SK:1,SM:1,SY:6,TJ:1,TM:1,TR:1,UA:1,UY:1,UZ:1,VA:1,VN:1,XK:1};function Ze(e,t){return t=Oe(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function A2(e,t){return t=Oe(t,e.calendar),e=na(e),t=na(t),e.era===t.era&&e.year===t.year&&e.month===t.month}function ag(e,t){return e.calendar.identifier===t.calendar.identifier&&e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function w8(e,t){return Ze(e,Il(t))}function kf(e,t){let n=e.calendar.toJulianDay(e),r=Math.ceil(n+1-xI(t))%7;return r<0&&(r+=7),r}function D8(e){return hr(Date.now(),e)}function Il(e){return Zt(D8(e))}function _8(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function E8(e,t){return O2(e)-O2(t)}function O2(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}let Ph=null;function Pf(){return Ph==null&&(Ph=new Intl.DateTimeFormat().resolvedOptions().timeZone),Ph}function na(e){return e.subtract({days:e.day-1})}function Uc(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function gI(e){return na(e.subtract({months:e.month-1}))}function vI(e){return e.calendar.getMinimumMonthInYear?e.calendar.getMinimumMonthInYear(e):1}function bI(e){return e.calendar.getMinimumDayInMonth?e.calendar.getMinimumDayInMonth(e):1}function ll(e,t){let n=kf(e,t);return e.subtract({days:n})}function yI(e,t){return ll(e,t).add({days:6})}const B2=new Map;function $I(e){if(Intl.Locale){let n=B2.get(e);return n||(n=new Intl.Locale(e).maximize().region,n&&B2.set(e,n)),n}let t=e.split("-")[1];return t==="u"?void 0:t}function xI(e){let t=$I(e);return t&&mI[t]||0}function wI(e,t){let n=e.calendar.getDaysInMonth(e);return Math.ceil((kf(na(e),t)+n)/7)}function o$(e,t){return e&&t?e.compare(t)<=0?e:t:e||t}function l$(e,t){return e&&t?e.compare(t)>=0?e:t:e||t}function $s(e){e=Oe(e,new Ft);let t=Bl(e.era,e.year);return S8(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function S8(e,t,n,r,i,a,s){let o=new Date;return o.setUTCHours(r,i,a,s),o.setUTCFullYear(e,t-1,n),o.getTime()}function sg(e,t){if(t==="UTC")return 0;if(e>0&&t===Pf())return new Date(e).getTimezoneOffset()*-6e4;let{year:n,month:r,day:i,hour:a,minute:s,second:o}=C8(e,t);return S8(n,r,i,a,s,o,0)-Math.floor(e/1e3)*1e3}const I2=new Map;function C8(e,t){let n=I2.get(t);n||(n=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),I2.set(t,n));let r=n.formatToParts(new Date(e)),i={};for(let a of r)a.type!=="literal"&&(i[a.type]=a.value);return{year:i.era==="BC"||i.era==="B"?-i.year+1:+i.year,month:+i.month,day:+i.day,hour:i.hour==="24"?0:+i.hour,minute:+i.minute,second:+i.second}}const L2=864e5;function DI(e,t,n,r){return(n===r?[n]:[n,r]).filter(a=>_I(e,t,a))}function _I(e,t,n){let r=C8(n,t);return e.year===r.year&&e.month===r.month&&e.day===r.day&&e.hour===r.hour&&e.minute===r.minute&&e.second===r.second}function cr(e,t,n="compatible"){let r=Xn(e);if(t==="UTC")return $s(r);if(t===Pf()&&n==="compatible"){r=Oe(r,new Ft);let l=new Date,u=Bl(r.era,r.year);return l.setFullYear(u,r.month-1,r.day),l.setHours(r.hour,r.minute,r.second,r.millisecond),l.getTime()}let i=$s(r),a=sg(i-L2,t),s=sg(i+L2,t),o=DI(r,t,i-a,i-s);if(o.length===1)return o[0];if(o.length>1)switch(n){case"compatible":case"earlier":return o[0];case"later":return o[o.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(n){case"earlier":return Math.min(i-a,i-s);case"compatible":case"later":return Math.max(i-a,i-s);case"reject":throw new RangeError("No such absolute time found")}}function k8(e,t,n="compatible"){return new Date(cr(e,t,n))}function hr(e,t){let n=sg(e,t),r=new Date(e+n),i=r.getUTCFullYear(),a=r.getUTCMonth()+1,s=r.getUTCDate(),o=r.getUTCHours(),l=r.getUTCMinutes(),u=r.getUTCSeconds(),c=r.getUTCMilliseconds();return new cl(i,a,s,t,n,o,l,u,c)}function Zt(e){return new Je(e.calendar,e.era,e.year,e.month,e.day)}function Xn(e,t){let n=0,r=0,i=0,a=0;if("timeZone"in e)({hour:n,minute:r,second:i,millisecond:a}=e);else if("hour"in e&&!t)return e;return t&&({hour:n,minute:r,second:i,millisecond:a}=t),new Hc(e.calendar,e.era,e.year,e.month,e.day,n,r,i,a)}function N2(e){return new Nl(e.hour,e.minute,e.second,e.millisecond)}function Oe(e,t){if(e.calendar.identifier===t.identifier)return e;let n=t.fromJulianDay(e.calendar.toJulianDay(e)),r=e.copy();return r.calendar=t,r.era=n.era,r.year=n.year,r.month=n.month,r.day=n.day,ra(r),r}function P8(e,t,n){if(e instanceof cl)return e.timeZone===t?e:SI(e,t);let r=cr(e,t,n);return hr(r,t)}function EI(e){let t=$s(e)-e.offset;return new Date(t)}function SI(e,t){let n=$s(e)-e.offset;return Oe(hr(n,t),e.calendar)}const Hs=36e5;function Tf(e,t){let n=e.copy(),r="hour"in n?F8(n,t):0;og(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,lg(n),T8(n),n.day+=(t.weeks||0)*7,n.day+=t.days||0,n.day+=r,CI(n),n.calendar.balanceDate&&n.calendar.balanceDate(n),n.year<1&&(n.year=1,n.month=1,n.day=1);let i=n.calendar.getYearsInEra(n);if(n.year>i){var a,s;let l=(a=(s=n.calendar).isInverseEra)===null||a===void 0?void 0:a.call(s,n);n.year=i,n.month=l?1:n.calendar.getMonthsInYear(n),n.day=l?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let o=n.calendar.getMonthsInYear(n);return n.month>o&&(n.month=o,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}function og(e,t){var n,r;!((n=(r=e.calendar).isInverseEra)===null||n===void 0)&&n.call(r,e)&&(t=-t),e.year+=t}function lg(e){for(;e.month<1;)og(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,og(e,1)}function CI(e){for(;e.day<1;)e.month--,lg(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,lg(e)}function T8(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day))}function ra(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),T8(e)}function u$(e){let t={};for(let n in e)typeof e[n]=="number"&&(t[n]=-e[n]);return t}function R8(e,t){return Tf(e,u$(t))}function c$(e,t){let n=e.copy();return t.era!=null&&(n.era=t.era),t.year!=null&&(n.year=t.year),t.month!=null&&(n.month=t.month),t.day!=null&&(n.day=t.day),ra(n),n}function ul(e,t){let n=e.copy();return t.hour!=null&&(n.hour=t.hour),t.minute!=null&&(n.minute=t.minute),t.second!=null&&(n.second=t.second),t.millisecond!=null&&(n.millisecond=t.millisecond),M8(n),n}function kI(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=pu(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=pu(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=pu(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=pu(e.hour,24),t}function M8(e){e.millisecond=Math.max(0,Math.min(e.millisecond,1e3)),e.second=Math.max(0,Math.min(e.second,59)),e.minute=Math.max(0,Math.min(e.minute,59)),e.hour=Math.max(0,Math.min(e.hour,23))}function pu(e,t){let n=e%t;return n<0&&(n+=t),n}function F8(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,kI(e)}function A8(e,t){let n=e.copy();return F8(n,t),n}function PI(e,t){return A8(e,u$(t))}function d$(e,t,n,r){let i=e.copy();switch(t){case"era":{let o=e.calendar.getEras(),l=o.indexOf(e.era);if(l<0)throw new Error("Invalid era: "+e.era);l=pr(l,n,0,o.length-1,r==null?void 0:r.round),i.era=o[l],ra(i);break}case"year":var a,s;!((a=(s=i.calendar).isInverseEra)===null||a===void 0)&&a.call(s,i)&&(n=-n),i.year=pr(e.year,n,-1/0,9999,r==null?void 0:r.round),i.year===-1/0&&(i.year=1),i.calendar.balanceYearMonth&&i.calendar.balanceYearMonth(i,e);break;case"month":i.month=pr(e.month,n,1,e.calendar.getMonthsInYear(e),r==null?void 0:r.round);break;case"day":i.day=pr(e.day,n,1,e.calendar.getDaysInMonth(e),r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(i),ra(i),i}function f$(e,t,n,r){let i=e.copy();switch(t){case"hour":{let a=e.hour,s=0,o=23;if((r==null?void 0:r.hourCycle)===12){let l=a>=12;s=l?12:0,o=l?23:11}i.hour=pr(a,n,s,o,r==null?void 0:r.round);break}case"minute":i.minute=pr(e.minute,n,0,59,r==null?void 0:r.round);break;case"second":i.second=pr(e.second,n,0,59,r==null?void 0:r.round);break;case"millisecond":i.millisecond=pr(e.millisecond,n,0,999,r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return i}function pr(e,t,n,r,i=!1){if(i){e+=Math.sign(t),e<n&&(e=r);let a=Math.abs(t);t>0?e=Math.ceil(e/a)*a:e=Math.floor(e/a)*a,e>r&&(e=n)}else e+=t,e<n?e=r-(n-e-1):e>r&&(e=n+(e-r-1));return e}function O8(e,t){let n;if(t.years!=null&&t.years!==0||t.months!=null&&t.months!==0||t.weeks!=null&&t.weeks!==0||t.days!=null&&t.days!==0){let i=Tf(Xn(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});n=cr(i,e.timeZone)}else n=$s(e)-e.offset;n+=t.milliseconds||0,n+=(t.seconds||0)*1e3,n+=(t.minutes||0)*6e4,n+=(t.hours||0)*36e5;let r=hr(n,e.timeZone);return Oe(r,e.calendar)}function TI(e,t){return O8(e,u$(t))}function RI(e,t,n,r){switch(t){case"hour":{let i=0,a=23;if((r==null?void 0:r.hourCycle)===12){let p=e.hour>=12;i=p?12:0,a=p?23:11}let s=Xn(e),o=Oe(ul(s,{hour:i}),new Ft),l=[cr(o,e.timeZone,"earlier"),cr(o,e.timeZone,"later")].filter(p=>hr(p,e.timeZone).day===o.day)[0],u=Oe(ul(s,{hour:a}),new Ft),c=[cr(u,e.timeZone,"earlier"),cr(u,e.timeZone,"later")].filter(p=>hr(p,e.timeZone).day===u.day).pop(),d=$s(e)-e.offset,f=Math.floor(d/Hs),h=d%Hs;return d=pr(f,n,Math.floor(l/Hs),Math.floor(c/Hs),r==null?void 0:r.round)*Hs+h,Oe(hr(d,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return f$(e,t,n,r);case"era":case"year":case"month":case"day":{let i=d$(Xn(e),t,n,r),a=cr(i,e.timeZone);return Oe(hr(a,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+t)}}function MI(e,t,n){let r=Xn(e),i=ul(c$(r,t),t);if(i.compare(r)===0)return e;let a=cr(i,e.timeZone,n);return Oe(hr(a,e.timeZone),e.calendar)}function B8(e){return`${String(e.hour).padStart(2,"0")}:${String(e.minute).padStart(2,"0")}:${String(e.second).padStart(2,"0")}${e.millisecond?String(e.millisecond/1e3).slice(1):""}`}function I8(e){let t=Oe(e,new Ft);return`${String(t.year).padStart(4,"0")}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function L8(e){return`${I8(e)}T${B8(e)}`}function FI(e){let t=Math.sign(e)<0?"-":"+";e=Math.abs(e);let n=Math.floor(e/36e5),r=e%36e5/6e4;return`${t}${String(n).padStart(2,"0")}:${String(r).padStart(2,"0")}`}function AI(e){return`${L8(e)}${FI(e.offset)}[${e.timeZone}]`}function OI(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Ll(e,t,n){OI(e,t),t.set(e,n)}function h$(e){let t=typeof e[0]=="object"?e.shift():new Ft,n;if(typeof e[0]=="string")n=e.shift();else{let s=t.getEras();n=s[s.length-1]}let r=e.shift(),i=e.shift(),a=e.shift();return[t,n,r,i,a]}var BI=new WeakMap;class Je{copy(){return this.era?new Je(this.calendar,this.era,this.year,this.month,this.day):new Je(this.calendar,this.year,this.month,this.day)}add(t){return Tf(this,t)}subtract(t){return R8(this,t)}set(t){return c$(this,t)}cycle(t,n,r){return d$(this,t,n,r)}toDate(t){return k8(this,t)}toString(){return I8(this)}compare(t){return _8(this,t)}constructor(...t){Ll(this,BI,{writable:!0,value:void 0});let[n,r,i,a,s]=h$(t);this.calendar=n,this.era=r,this.year=i,this.month=a,this.day=s,ra(this)}}var II=new WeakMap;class Nl{copy(){return new Nl(this.hour,this.minute,this.second,this.millisecond)}add(t){return A8(this,t)}subtract(t){return PI(this,t)}set(t){return ul(this,t)}cycle(t,n,r){return f$(this,t,n,r)}toString(){return B8(this)}compare(t){return E8(this,t)}constructor(t=0,n=0,r=0,i=0){Ll(this,II,{writable:!0,value:void 0}),this.hour=t,this.minute=n,this.second=r,this.millisecond=i,M8(this)}}var LI=new WeakMap;class Hc{copy(){return this.era?new Hc(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new Hc(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return Tf(this,t)}subtract(t){return R8(this,t)}set(t){return c$(ul(this,t),t)}cycle(t,n,r){switch(t){case"era":case"year":case"month":case"day":return d$(this,t,n,r);default:return f$(this,t,n,r)}}toDate(t,n){return k8(this,t,n)}toString(){return L8(this)}compare(t){let n=_8(this,t);return n===0?E8(this,Xn(t)):n}constructor(...t){Ll(this,LI,{writable:!0,value:void 0});let[n,r,i,a,s]=h$(t);this.calendar=n,this.era=r,this.year=i,this.month=a,this.day=s,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,ra(this)}}var NI=new WeakMap;class cl{copy(){return this.era?new cl(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new cl(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(t){return O8(this,t)}subtract(t){return TI(this,t)}set(t,n){return MI(this,t,n)}cycle(t,n,r){return RI(this,t,n,r)}toDate(){return EI(this)}toString(){return AI(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-P8(t,this.timeZone).toDate().getTime()}constructor(...t){Ll(this,NI,{writable:!0,value:void 0});let[n,r,i,a,s]=h$(t),o=t.shift(),l=t.shift();this.calendar=n,this.era=r,this.year=i,this.month=a,this.day=s,this.timeZone=o,this.offset=l,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,ra(this)}}const rs=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],jI=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],rc=[1867,1911,1925,1988,2018],Ir=["meiji","taisho","showa","heisei","reiwa"];function j2(e){const t=rs.findIndex(([n,r,i])=>e.year<n||e.year===n&&e.month<r||e.year===n&&e.month===r&&e.day<i);return t===-1?rs.length-1:t===0?0:t-1}function Th(e){let t=rc[Ir.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new Je(e.year+t,e.month,e.day)}class zI extends Ft{fromJulianDay(t){let n=super.fromJulianDay(t),r=j2(n);return new Je(this,Ir[r],n.year-rc[r],n.month,n.day)}toJulianDay(t){return super.toJulianDay(Th(t))}balanceDate(t){let n=Th(t),r=j2(n);Ir[r]!==t.era&&(t.era=Ir[r],t.year=n.year-rc[r]),this.constrainDate(t)}constrainDate(t){let n=Ir.indexOf(t.era),r=jI[n];if(r!=null){let[i,a,s]=r,o=i-rc[n];t.year=Math.max(1,Math.min(o,t.year)),t.year===o&&(t.month=Math.min(a,t.month),t.month===a&&(t.day=Math.min(s,t.day)))}if(t.year===1&&n>=0){let[,i,a]=rs[n];t.month=Math.max(i,t.month),t.month===i&&(t.day=Math.max(a,t.day))}}getEras(){return Ir}getYearsInEra(t){let n=Ir.indexOf(t.era),r=rs[n],i=rs[n+1];if(i==null)return 9999-r[0]+1;let a=i[0]-r[0];return(t.month<i[1]||t.month===i[1]&&t.day<i[2])&&a++,a}getDaysInMonth(t){return super.getDaysInMonth(Th(t))}getMinimumMonthInYear(t){let n=z2(t);return n?n[1]:1}getMinimumDayInMonth(t){let n=z2(t);return n&&t.month===n[1]?n[2]:1}constructor(...t){super(...t),this.identifier="japanese"}}function z2(e){if(e.year===1){let t=Ir.indexOf(e.era);return rs[t]}}const N8=-543;class VI extends Ft{fromJulianDay(t){let n=super.fromJulianDay(t),r=Bl(n.era,n.year);return new Je(this,r-N8,n.month,n.day)}toJulianDay(t){return super.toJulianDay(V2(t))}getEras(){return["BE"]}getDaysInMonth(t){return super.getDaysInMonth(V2(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist"}}function V2(e){let[t,n]=Cf(e.year+N8);return new Je(t,n,e.month,e.day)}const Kc=1911;function j8(e){return e.era==="minguo"?e.year+Kc:1-e.year+Kc}function W2(e){let t=e-Kc;return t>0?["minguo",t]:["before_minguo",1-t]}class WI extends Ft{fromJulianDay(t){let n=super.fromJulianDay(t),r=Bl(n.era,n.year),[i,a]=W2(r);return new Je(this,i,a,n.month,n.day)}toJulianDay(t){return super.toJulianDay(U2(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[n,r]=W2(j8(t));t.era=n,t.year=r}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(U2(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-Kc}constructor(...t){super(...t),this.identifier="roc"}}function U2(e){let[t,n]=Cf(j8(e));return new Je(t,n,e.month,e.day)}const H2=1948320,K2=[0,31,62,93,124,155,186,216,246,276,306,336];class UI{fromJulianDay(t){let n=t-H2,r=1+Math.floor((33*n+3)/12053),i=365*(r-1)+Math.floor((8*r+21)/33),a=n-i,s=a<216?Math.floor(a/31):Math.floor((a-6)/30),o=a-K2[s]+1;return new Je(this,r,s+1,o)}toJulianDay(t){let n=H2-1+365*(t.year-1)+Math.floor((8*t.year+21)/33);return n+=K2[t.month-1],n+=t.day,n}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||ns(25*t.year+11,33)<8?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}const Rh=78,Y2=80;class HI extends Ft{fromJulianDay(t){let n=super.fromJulianDay(t),r=n.year-Rh,i=t-Vi(n.era,n.year,1,1),a;i<Y2?(r--,a=Ur(n.year-1)?31:30,i+=a+155+90+10):(a=Ur(n.year)?31:30,i-=Y2);let s,o;if(i<a)s=1,o=i+1;else{let l=i-a;l<155?(s=Math.floor(l/31)+2,o=l%31+1):(l-=155,s=Math.floor(l/30)+7,o=l%30+1)}return new Je(this,r,s,o)}toJulianDay(t){let n=t.year+Rh,[r,i]=Cf(n),a,s;return Ur(i)?(a=31,s=Vi(r,i,3,21)):(a=30,s=Vi(r,i,3,22)),t.month===1?s+t.day-1:(s+=a+Math.min(t.month-2,5)*31,t.month>=8&&(s+=(t.month-7)*30),s+=t.day-1,s)}getDaysInMonth(t){return t.month===1&&Ur(t.year+Rh)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}}const Yc=1948440,q2=1948439,pn=1300,Ea=1600,KI=460322;function qc(e,t,n,r){return r+Math.ceil(29.5*(n-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function z8(e,t,n){let r=Math.floor((30*(n-t)+10646)/10631),i=Math.min(12,Math.ceil((n-(29+qc(t,r,1,1)))/29.5)+1),a=n-qc(t,r,i,1)+1;return new Je(e,r,i,a)}function G2(e){return(14+11*e)%30<11}class p${fromJulianDay(t){return z8(this,Yc,t)}toJulianDay(t){return qc(Yc,t.year,t.month,t.day)}getDaysInMonth(t){let n=29+t.month%2;return t.month===12&&G2(t.year)&&n++,n}getMonthsInYear(){return 12}getDaysInYear(t){return G2(t.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class YI extends p${fromJulianDay(t){return z8(this,q2,t)}toJulianDay(t){return qc(q2,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}}const qI="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let ug,is;function ic(e){return KI+is[e-pn]}function po(e,t){let n=e-pn,r=1<<11-(t-1);return ug[n]&r?30:29}function Z2(e,t){let n=ic(e);for(let r=1;r<t;r++)n+=po(e,r);return n}function X2(e){return is[e+1-pn]-is[e-pn]}class GI extends p${fromJulianDay(t){let n=t-Yc,r=ic(pn),i=ic(Ea);if(n<r||n>i)return super.fromJulianDay(t);{let a=pn-1,s=1,o=1;for(;o>0;){a++,o=n-ic(a)+1;let l=X2(a);if(o===l){s=12;break}else if(o<l){let u=po(a,s);for(s=1;o>u;)o-=u,s++,u=po(a,s);break}}return new Je(this,a,s,n-Z2(a,s)+1)}}toJulianDay(t){return t.year<pn||t.year>Ea?super.toJulianDay(t):Yc+Z2(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<pn||t.year>Ea?super.getDaysInMonth(t):po(t.year,t.month)}getDaysInYear(t){return t.year<pn||t.year>Ea?super.getDaysInYear(t):X2(t.year)}constructor(){if(super(),this.identifier="islamic-umalqura",ug||(ug=new Uint16Array(Uint8Array.from(atob(qI),t=>t.charCodeAt(0)).buffer)),!is){is=new Uint32Array(Ea-pn+1);let t=0;for(let n=pn;n<=Ea;n++){is[n-pn]=t;for(let r=1;r<=12;r++)t+=po(n,r)}}}}const Q2=347997,V8=1080,W8=24*V8,ZI=29,XI=12*V8+793,QI=ZI*W8+XI;function Ii(e){return ns(e*7+1,19)<7}function ac(e){let t=Math.floor((235*e-234)/19),n=12084+13753*t,r=t*29+Math.floor(n/25920);return ns(3*(r+1),7)<3&&(r+=1),r}function JI(e){let t=ac(e-1),n=ac(e);return ac(e+1)-n===356?2:n-t===382?1:0}function Ao(e){return ac(e)+JI(e)}function U8(e){return Ao(e+1)-Ao(e)}function eL(e){let t=U8(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}function mu(e,t){if(t>=6&&!Ii(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let n=eL(e);return t===2?n===2?30:29:t===3?n===0?29:30:t===6?Ii(e)?30:0:30}class tL{fromJulianDay(t){let n=t-Q2,r=n*W8/QI,i=Math.floor((19*r+234)/235)+1,a=Ao(i),s=Math.floor(n-a);for(;s<1;)i--,a=Ao(i),s=Math.floor(n-a);let o=1,l=0;for(;l<s;)l+=mu(i,o),o++;o--,l-=mu(i,o);let u=s-l;return new Je(this,i,o,u)}toJulianDay(t){let n=Ao(t.year);for(let r=1;r<t.month;r++)n+=mu(t.year,r);return n+t.day+Q2}getDaysInMonth(t){return mu(t.year,t.month)}getMonthsInYear(t){return Ii(t.year)?13:12}getDaysInYear(t){return U8(t.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(t,n){n.year!==t.year&&(Ii(n.year)&&!Ii(t.year)&&n.month>6?t.month--:!Ii(n.year)&&Ii(t.year)&&n.month>6&&t.month++)}constructor(){this.identifier="hebrew"}}const cg=1723856,J2=1824665,dg=5500;function Gc(e,t,n,r){return e+365*t+Math.floor(t/4)+30*(n-1)+r-1}function m$(e,t){let n=Math.floor(4*(t-e)/1461),r=1+Math.floor((t-Gc(e,n,1,1))/30),i=t+1-Gc(e,n,r,1);return[n,r,i]}function H8(e){return Math.floor(e%4/3)}function K8(e,t){return t%13!==0?30:H8(e)+5}class g${fromJulianDay(t){let[n,r,i]=m$(cg,t),a="AM";return n<=0&&(a="AA",n+=dg),new Je(this,a,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="AA"&&(n-=dg),Gc(cg,n,t.month,t.day)}getDaysInMonth(t){return K8(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+H8(t.year)}getYearsInEra(t){return t.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class nL extends g${fromJulianDay(t){let[n,r,i]=m$(cg,t);return n+=dg,new Je(this,"AA",n,r,i)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}}class rL extends g${fromJulianDay(t){let[n,r,i]=m$(J2,t),a="CE";return n<=0&&(a="BCE",n=1-n),new Je(this,a,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="BCE"&&(n=1-n),Gc(J2,n,t.month,t.day)}getDaysInMonth(t){let n=t.year;return t.era==="BCE"&&(n=1-n),K8(n,t.month)}isInverseEra(t){return t.era==="BCE"}balanceDate(t){t.year<=0&&(t.era=t.era==="BCE"?"CE":"BCE",t.year=1-t.year)}getEras(){return["BCE","CE"]}getYearsInEra(t){return t.era==="BCE"?9999:9715}constructor(...t){super(...t),this.identifier="coptic"}}function Y8(e){switch(e){case"buddhist":return new VI;case"ethiopic":return new g$;case"ethioaa":return new nL;case"coptic":return new rL;case"hebrew":return new tL;case"indian":return new HI;case"islamic-civil":return new p$;case"islamic-tbla":return new YI;case"islamic-umalqura":return new GI;case"japanese":return new zI;case"persian":return new UI;case"roc":return new WI;case"gregory":default:return new Ft}}let Mh=new Map;class ri{format(t){return this.formatter.format(t)}formatToParts(t){return this.formatter.formatToParts(t)}formatRange(t,n){if(typeof this.formatter.formatRange=="function")return this.formatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.formatter.format(t)} – ${this.formatter.format(n)}`}formatRangeToParts(t,n){if(typeof this.formatter.formatRangeToParts=="function")return this.formatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.formatter.formatToParts(t),i=this.formatter.formatToParts(n);return[...r.map(a=>({...a,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(a=>({...a,source:"endRange"}))]}resolvedOptions(){let t=this.formatter.resolvedOptions();return sL()&&(this.resolvedHourCycle||(this.resolvedHourCycle=oL(t.locale,this.options)),t.hourCycle=this.resolvedHourCycle,t.hour12=this.resolvedHourCycle==="h11"||this.resolvedHourCycle==="h12"),t.calendar==="ethiopic-amete-alem"&&(t.calendar="ethioaa"),t}constructor(t,n={}){this.formatter=q8(t,n),this.options=n}}const iL={true:{ja:"h11"},false:{}};function q8(e,t={}){if(typeof t.hour12=="boolean"&&aL()){t={...t};let i=iL[String(t.hour12)][e.split("-")[0]],a=t.hour12?"h12":"h23";t.hourCycle=i??a,delete t.hour12}let n=e+(t?Object.entries(t).sort((i,a)=>i[0]<a[0]?-1:1).join():"");if(Mh.has(n))return Mh.get(n);let r=new Intl.DateTimeFormat(e,t);return Mh.set(n,r),r}let Fh=null;function aL(){return Fh==null&&(Fh=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),Fh}let Ah=null;function sL(){return Ah==null&&(Ah=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),Ah}function oL(e,t){if(!t.timeStyle&&!t.hour)return;e=e.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,""),e+=(e.includes("-u-")?"":"-u")+"-nu-latn";let n=q8(e,{...t,timeZone:void 0}),r=parseInt(n.formatToParts(new Date(2020,2,3,0)).find(a=>a.type==="hour").value,10),i=parseInt(n.formatToParts(new Date(2020,2,3,23)).find(a=>a.type==="hour").value,10);if(r===0&&i===23)return"h23";if(r===24&&i===23)return"h24";if(r===0&&i===11)return"h11";if(r===12&&i===11)return"h12";throw new Error("Unexpected hour cycle result")}const he=typeof document<"u"?_.useLayoutEffect:()=>{};function pt(e){const t=y.useRef(null);return he(()=>{t.current=e},[e]),y.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}function G8(e){let[t,n]=y.useState(e),r=y.useRef(null),i=pt(()=>{if(!r.current)return;let s=r.current.next();if(s.done){r.current=null;return}t===s.value?i():n(s.value)});he(()=>{r.current&&i()});let a=pt(s=>{r.current=s(t),i()});return[t,a]}let lL=!!(typeof window<"u"&&window.document&&window.document.createElement),Zc=new Map;function Qn(e){let[t,n]=y.useState(e),r=y.useRef(null),i=QB(t),a=y.useCallback(s=>{r.current=s},[]);return lL&&Zc.set(i,a),he(()=>{let s=i;return()=>{Zc.delete(s)}},[i]),y.useEffect(()=>{let s=r.current;s&&(r.current=null,n(s))}),i}function uL(e,t){if(e===t)return e;let n=Zc.get(e);if(n)return n(t),t;let r=Zc.get(t);return r?(r(e),e):t}function Xc(e=[]){let t=Qn(),[n,r]=G8(t),i=y.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return he(i,[t,i,...e]),n}function dl(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const ye=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},Fn=e=>e&&"window"in e&&e.window===e?e:ye(e).defaultView||window;function de(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let i in r){let a=t[i],s=r[i];typeof a=="function"&&typeof s=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?t[i]=dl(a,s):(i==="className"||i==="UNSAFE_className")&&typeof a=="string"&&typeof s=="string"?t[i]=Ef(a,s):i==="id"&&a&&s?t.id=uL(a,s):t[i]=s!==void 0?s:a}}return t}function cL(...e){return e.length===1?e[0]:t=>{for(let n of e)typeof n=="function"?n(t):n!=null&&(n.current=t)}}const dL=new Set(["id"]),fL=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),hL=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),pL=/^(data-.*)$/;function Xt(e,t={}){let{labelable:n,isLink:r,propNames:i}=t,a={};for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(dL.has(s)||n&&fL.has(s)||r&&hL.has(s)||i!=null&&i.has(s)||pL.test(s))&&(a[s]=e[s]);return a}function Hr(e){if(mL())e.focus({preventScroll:!0});else{let t=gL(e);e.focus(),vL(t)}}let gu=null;function mL(){if(gu==null){gu=!1;try{document.createElement("div").focus({get preventScroll(){return gu=!0,!0}})}catch{}}return gu}function gL(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function vL(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function Rf(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(n=>e.test(n.brand)))||e.test(window.navigator.userAgent)}function v$(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function xs(){return v$(/^Mac/i)}function bL(){return v$(/^iPhone/i)}function Z8(){return v$(/^iPad/i)||xs()&&navigator.maxTouchPoints>1}function Mf(){return bL()||Z8()}function X8(){return Rf(/AppleWebKit/i)&&!yL()}function yL(){return Rf(/Chrome/i)}function Q8(){return Rf(/Android/i)}function $L(){return Rf(/Firefox/i)}const xL=y.createContext({isNative:!0,open:_L,useHref:e=>e});function wL(e){let{children:t,navigate:n,useHref:r}=e,i=y.useMemo(()=>({isNative:!1,open:(a,s,o,l)=>{J8(a,u=>{DL(u,s)?n(o,l):ia(u,s)})},useHref:r||(a=>a)}),[n,r]);return _.createElement(xL.Provider,{value:i},t)}function DL(e,t){let n=e.getAttribute("target");return(!n||n==="_self")&&e.origin===location.origin&&!e.hasAttribute("download")&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&!t.shiftKey}function ia(e,t,n=!0){var r,i;let{metaKey:a,ctrlKey:s,altKey:o,shiftKey:l}=t;$L()&&(!((i=window.event)===null||i===void 0||(r=i.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(xs()?a=!0:s=!0);let u=X8()&&xs()&&!Z8()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:a,ctrlKey:s,altKey:o,shiftKey:l}):new MouseEvent("click",{metaKey:a,ctrlKey:s,altKey:o,shiftKey:l,bubbles:!0,cancelable:!0});ia.isOpening=n,Hr(e),e.dispatchEvent(u),ia.isOpening=!1}ia.isOpening=!1;function J8(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let n=document.createElement("a");n.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(n.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(n.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(n.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(n.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(n),t(n),e.removeChild(n)}}function _L(e,t){J8(e,n=>ia(n,t))}let Ma=new Map,fg=new Set;function e5(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let i=Ma.get(r.target);i||(i=new Set,Ma.set(r.target,i),r.target.addEventListener("transitioncancel",n,{once:!0})),i.add(r.propertyName)},n=r=>{if(!e(r)||!r.target)return;let i=Ma.get(r.target);if(i&&(i.delete(r.propertyName),i.size===0&&(r.target.removeEventListener("transitioncancel",n),Ma.delete(r.target)),Ma.size===0)){for(let a of fg)a();fg.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?e5():document.addEventListener("DOMContentLoaded",e5));function e7(e){requestAnimationFrame(()=>{Ma.size===0?e():fg.add(e)})}function t7(){let e=y.useRef(new Map),t=y.useCallback((i,a,s,o)=>{let l=o!=null&&o.once?(...u)=>{e.current.delete(s),s(...u)}:s;e.current.set(s,{type:a,eventTarget:i,fn:l,options:o}),i.addEventListener(a,s,o)},[]),n=y.useCallback((i,a,s,o)=>{var l;let u=((l=e.current.get(s))===null||l===void 0?void 0:l.fn)||s;i.removeEventListener(a,u,o),e.current.delete(s)},[]),r=y.useCallback(()=>{e.current.forEach((i,a)=>{n(i.eventTarget,i.type,a,i.options)})},[n]);return y.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function jl(e,t){let{id:n,"aria-label":r,"aria-labelledby":i}=e;return n=Qn(n),i&&r?i=[...new Set([n,...i.trim().split(/\s+/)])].join(" "):i&&(i=i.trim().split(/\s+/).join(" ")),!r&&!i&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":i}}function EL(e){const t=y.useRef(null);return y.useMemo(()=>({get current(){return t.current},set current(n){t.current=n,typeof e=="function"?e(n):e&&(e.current=n)}}),[e])}function t5(e,t){const n=y.useRef(!0),r=y.useRef(null);y.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[]),y.useEffect(()=>{n.current?n.current=!1:(!r.current||t.some((i,a)=>!Object.is(i,r[a])))&&e(),r.current=t},t)}function SL(){return typeof window.ResizeObserver<"u"}function n7(e){const{ref:t,onResize:n}=e;y.useEffect(()=>{let r=t==null?void 0:t.current;if(r)if(SL()){const i=new window.ResizeObserver(a=>{a.length&&n()});return i.observe(r),()=>{r&&i.unobserve(r)}}else return window.addEventListener("resize",n,!1),()=>{window.removeEventListener("resize",n,!1)}},[n,t])}function b$(e,t){he(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function hg(e,t){let n=window.getComputedStyle(e),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&t&&(r=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),r}function Ff(e,t){let n=e;for(hg(n,t)&&(n=n.parentElement);n&&!hg(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function CL(e,t){const n=[];for(;e&&e!==document.documentElement;)hg(e,t)&&n.push(e),e=e.parentElement;return n}let mn=typeof document<"u"&&window.visualViewport;function r7(){let e=ha(),[t,n]=y.useState(()=>e?{width:0,height:0}:n5());return y.useEffect(()=>{let r=()=>{n(i=>{let a=n5();return a.width===i.width&&a.height===i.height?i:a})};return mn?mn.addEventListener("resize",r):window.addEventListener("resize",r),()=>{mn?mn.removeEventListener("resize",r):window.removeEventListener("resize",r)}},[]),t}function n5(){return{width:mn&&(mn==null?void 0:mn.width)||window.innerWidth,height:mn&&(mn==null?void 0:mn.height)||window.innerHeight}}let kL=0;const Oh=new Map;function y$(e){let[t,n]=y.useState();return he(()=>{if(!e)return;let r=Oh.get(e);if(r)n(r.element.id);else{let i=`react-aria-description-${kL++}`;n(i);let a=document.createElement("div");a.id=i,a.style.display="none",a.textContent=e,document.body.appendChild(a),r={refCount:0,element:a},Oh.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),Oh.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function as(e,t,n,r){let i=pt(n),a=n==null;y.useEffect(()=>{if(a||!e.current)return;let s=e.current;return s.addEventListener(t,i,r),()=>{s.removeEventListener(t,i,r)}},[e,t,r,a,i])}function PL(e,t){let n=r5(e,t,"left"),r=r5(e,t,"top"),i=t.offsetWidth,a=t.offsetHeight,s=e.scrollLeft,o=e.scrollTop,{borderTopWidth:l,borderLeftWidth:u}=getComputedStyle(e),c=e.scrollLeft+parseInt(u,10),d=e.scrollTop+parseInt(l,10),f=c+e.clientWidth,h=d+e.clientHeight;n<=s?s=n-parseInt(u,10):n+i>f&&(s+=n+i-f),r<=d?o=r-parseInt(l,10):r+a>h&&(o+=r+a-h),e.scrollLeft=s,e.scrollTop=o}function r5(e,t,n){const r=n==="left"?"offsetLeft":"offsetTop";let i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){i-=e[r];break}t=t.offsetParent}return i}function i7(e,t){if(document.contains(e)){let s=document.scrollingElement||document.documentElement;if(window.getComputedStyle(s).overflow==="hidden"){let l=CL(e);for(let u of l)PL(u,e)}else{var n;let{left:l,top:u}=e.getBoundingClientRect();e==null||(n=e.scrollIntoView)===null||n===void 0||n.call(e,{block:"nearest"});let{left:c,top:d}=e.getBoundingClientRect();if(Math.abs(l-c)>1||Math.abs(u-d)>1){var r,i,a;t==null||(i=t.containingElement)===null||i===void 0||(r=i.scrollIntoView)===null||r===void 0||r.call(i,{block:"center",inline:"center"}),(a=e.scrollIntoView)===null||a===void 0||a.call(e,{block:"nearest"})}}}}function pg(e){return e.mozInputSource===0&&e.isTrusted?!0:Q8()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function TL(e){return!Q8()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function a7(e,t){let n=y.useRef(null);return e&&n.current&&t(e,n.current)&&(e=n.current),n.current=e,e}function RL(e,t,n){let r=y.useRef(t),i=pt(()=>{n&&n(r.current)});y.useEffect(()=>{var a;let s=e==null||(a=e.current)===null||a===void 0?void 0:a.form;return s==null||s.addEventListener("reset",i),()=>{s==null||s.removeEventListener("reset",i)}},[e,i])}function aa(e,t,n){let[r,i]=y.useState(e||t),a=y.useRef(e!==void 0),s=e!==void 0;y.useEffect(()=>{let u=a.current;u!==s&&console.warn(`WARN: A component changed from ${u?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}.`),a.current=s},[s]);let o=s?e:r,l=y.useCallback((u,...c)=>{let d=(f,...h)=>{n&&(Object.is(o,f)||n(f,...h)),s||(o=f)};typeof u=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),i((h,...p)=>{let g=u(s?o:h,...p);return d(g,...c),s?h:g})):(s||i(u),d(u,...c))},[s,o,n]);return[o,l]}function mg(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function xn(e){e=a7(e??{},ML);let{locale:t}=Qe();return y.useMemo(()=>new ri(t,e),[t,e])}function ML(e,t){if(e===t)return!0;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i of n)if(t[i]!==e[i])return!1;return!0}let Bh=new Map,gg=!1;try{gg=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let Qc=!1;try{Qc=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const s7={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class FL{format(t){let n="";if(!gg&&this.options.signDisplay!=null?n=OL(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!Qc){var r;let{unit:i,unitDisplay:a="short",locale:s}=this.resolvedOptions();if(!i)return n;let o=(r=s7[i])===null||r===void 0?void 0:r[a];n+=o[s]||o.default}return n}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,n){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(n)}`}formatRangeToParts(t,n){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.numberFormatter.formatToParts(t),i=this.numberFormatter.formatToParts(n);return[...r.map(a=>({...a,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(a=>({...a,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!gg&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!Qc&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,n={}){this.numberFormatter=AL(t,n),this.options=n}}function AL(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!Qc){var r;let{unit:s,unitDisplay:o="short"}=t;if(!s)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=s7[s])===null||r===void 0)&&r[o]))throw new Error(`Unsupported unit ${s} with unitDisplay = ${o}`);t={...t,style:"decimal"}}let i=e+(t?Object.entries(t).sort((s,o)=>s[0]<o[0]?-1:1).join():"");if(Bh.has(i))return Bh.get(i);let a=new Intl.NumberFormat(e,t);return Bh.set(i,a),a}function OL(e,t,n){if(t==="auto")return e.format(n);if(t==="never")return e.format(Math.abs(n));{let r=!1;if(t==="always"?r=n>0||Object.is(n,0):t==="exceptZero"&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let i=e.format(-n),a=e.format(n),s=i.replace(a,"").replace(/\u200e|\u061C/,"");return[...s].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),i.replace(a,"!!!").replace(s,"+").replace("!!!",a)}else return e.format(n)}}const BL=new RegExp("^.*\\(.*\\).*$"),IL=["latn","arab","hanidec"];class o7{parse(t){return Ih(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,n,r){return Ih(this.locale,this.options,t).isValidPartialNumber(t,n,r)}getNumberingSystem(t){return Ih(this.locale,this.options,t).options.numberingSystem}constructor(t,n={}){this.locale=t,this.options=n}}const i5=new Map;function Ih(e,t,n){let r=a5(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(n)){for(let i of IL)if(i!==r.options.numberingSystem){let a=a5(e+(e.includes("-u-")?"-nu-":"-u-nu-")+i,t);if(a.isValidPartialNumber(n))return a}}return r}function a5(e,t){let n=e+(t?Object.entries(t).sort((i,a)=>i[0]<a[0]?-1:1).join():""),r=i5.get(n);return r||(r=new LL(e,t),i5.set(n,r)),r}class LL{parse(t){let n=this.sanitize(t);if(this.symbols.group&&(n=vu(n,this.symbols.group,"")),this.symbols.decimal&&(n=n.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(n=n.replace(this.symbols.minusSign,"-")),n=n.replace(this.symbols.numeral,this.symbols.index),this.options.style==="percent"){let s=n.indexOf("-");n=n.replace("-","");let o=n.indexOf(".");o===-1&&(o=n.length),n=n.replace(".",""),o-2===0?n=`0.${n}`:o-2===-1?n=`0.0${n}`:o-2===-2?n="0.00":n=`${n.slice(0,o-2)}.${n.slice(o-2)}`,s>-1&&(n=`-${n}`)}let r=n?+n:NaN;if(isNaN(r))return NaN;if(this.options.style==="percent"){var i,a;let s={...this.options,style:"decimal",minimumFractionDigits:Math.min(((i=this.options.minimumFractionDigits)!==null&&i!==void 0?i:0)+2,20),maximumFractionDigits:Math.min(((a=this.options.maximumFractionDigits)!==null&&a!==void 0?a:0)+2,20)};return new o7(this.locale,s).parse(new FL(this.locale,s).format(r))}return this.options.currencySign==="accounting"&&BL.test(t)&&(r=-1*r),r}sanitize(t){return t=t.replace(this.symbols.literals,""),this.symbols.minusSign&&(t=t.replace("-",this.symbols.minusSign)),this.options.numberingSystem==="arab"&&(this.symbols.decimal&&(t=t.replace(",",this.symbols.decimal),t=t.replace("،",this.symbols.decimal)),this.symbols.group&&(t=vu(t,".",this.symbols.group))),this.options.locale==="fr-FR"&&(t=vu(t,"."," ")),t}isValidPartialNumber(t,n=-1/0,r=1/0){return t=this.sanitize(t),this.symbols.minusSign&&t.startsWith(this.symbols.minusSign)&&n<0?t=t.slice(this.symbols.minusSign.length):this.symbols.plusSign&&t.startsWith(this.symbols.plusSign)&&r>0&&(t=t.slice(this.symbols.plusSign.length)),this.symbols.group&&t.startsWith(this.symbols.group)||this.symbols.decimal&&t.indexOf(this.symbols.decimal)>-1&&this.options.maximumFractionDigits===0?!1:(this.symbols.group&&(t=vu(t,this.symbols.group,"")),t=t.replace(this.symbols.numeral,""),this.symbols.decimal&&(t=t.replace(this.symbols.decimal,"")),t.length===0)}constructor(t,n={}){this.locale=t,this.formatter=new Intl.NumberFormat(t,n),this.options=this.formatter.resolvedOptions(),this.symbols=jL(t,this.formatter,this.options,n);var r,i;this.options.style==="percent"&&(((r=this.options.minimumFractionDigits)!==null&&r!==void 0?r:0)>18||((i=this.options.maximumFractionDigits)!==null&&i!==void 0?i:0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}}const s5=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),NL=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function jL(e,t,n,r){var i,a,s,o;let l=new Intl.NumberFormat(e,{...n,minimumSignificantDigits:1,maximumSignificantDigits:21}),u=l.formatToParts(-10000.111),c=l.formatToParts(10000.111),d=NL.map(P=>l.formatToParts(P));var f;let h=(f=(i=u.find(P=>P.type==="minusSign"))===null||i===void 0?void 0:i.value)!==null&&f!==void 0?f:"-",p=(a=c.find(P=>P.type==="plusSign"))===null||a===void 0?void 0:a.value;!p&&((r==null?void 0:r.signDisplay)==="exceptZero"||(r==null?void 0:r.signDisplay)==="always")&&(p="+");let b=(s=new Intl.NumberFormat(e,{...n,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(P=>P.type==="decimal"))===null||s===void 0?void 0:s.value,v=(o=u.find(P=>P.type==="group"))===null||o===void 0?void 0:o.value,m=u.filter(P=>!s5.has(P.type)).map(P=>o5(P.value)),$=d.flatMap(P=>P.filter(E=>!s5.has(E.type)).map(E=>o5(E.value))),w=[...new Set([...m,...$])].sort((P,E)=>E.length-P.length),D=w.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${w.join("|")}|[\\p{White_Space}]`,"gu"),S=[...new Intl.NumberFormat(n.locale,{useGrouping:!1}).format(9876543210)].reverse(),k=new Map(S.map((P,E)=>[P,E])),x=new RegExp(`[${S.join("")}]`,"g");return{minusSign:h,plusSign:p,decimal:b,group:v,literals:D,numeral:x,index:P=>String(k.get(P))}}function vu(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function o5(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}let Lh=new Map;function zL(e){let{locale:t}=Qe(),n=t+(e?Object.entries(e).sort((i,a)=>i[0]<a[0]?-1:1).join():"");if(Lh.has(n))return Lh.get(n);let r=new Intl.Collator(t,e);return Lh.set(n,r),r}function VL(e){let t=zL({usage:"search",...e}),n=y.useCallback((a,s)=>s.length===0?!0:(a=a.normalize("NFC"),s=s.normalize("NFC"),t.compare(a.slice(0,s.length),s)===0),[t]),r=y.useCallback((a,s)=>s.length===0?!0:(a=a.normalize("NFC"),s=s.normalize("NFC"),t.compare(a.slice(-s.length),s)===0),[t]),i=y.useCallback((a,s)=>{if(s.length===0)return!0;a=a.normalize("NFC"),s=s.normalize("NFC");let o=0,l=s.length;for(;o+l<=a.length;o++){let u=a.slice(o,o+l);if(t.compare(s,u)===0)return!0}return!1},[t]);return y.useMemo(()=>({startsWith:n,endsWith:r,contains:i}),[n,r,i])}const Af={margin:["margin",le],marginStart:[Vt("marginLeft","marginRight"),le],marginEnd:[Vt("marginRight","marginLeft"),le],marginTop:["marginTop",le],marginBottom:["marginBottom",le],marginX:[["marginLeft","marginRight"],le],marginY:[["marginTop","marginBottom"],le],width:["width",le],height:["height",le],minWidth:["minWidth",le],minHeight:["minHeight",le],maxWidth:["maxWidth",le],maxHeight:["maxHeight",le],isHidden:["display",YL],alignSelf:["alignSelf",tt],justifySelf:["justifySelf",tt],position:["position",jh],zIndex:["zIndex",jh],top:["top",le],bottom:["bottom",le],start:[Vt("left","right"),le],end:[Vt("right","left"),le],left:["left",le],right:["right",le],order:["order",jh],flex:["flex",qL],flexGrow:["flexGrow",tt],flexShrink:["flexShrink",tt],flexBasis:["flexBasis",tt],gridArea:["gridArea",tt],gridColumn:["gridColumn",tt],gridColumnEnd:["gridColumnEnd",tt],gridColumnStart:["gridColumnStart",tt],gridRow:["gridRow",tt],gridRowEnd:["gridRowEnd",tt],gridRowStart:["gridRowStart",tt]};({...Af,borderStartWidth:Vt("borderLeftWidth","borderRightWidth"),borderEndWidth:Vt("borderRightWidth","borderLeftWidth"),borderStartColor:Vt("borderLeftColor","borderRightColor"),borderEndColor:Vt("borderRightColor","borderLeftColor"),borderTopStartRadius:Vt("borderTopLeftRadius","borderTopRightRadius"),borderTopEndRadius:Vt("borderTopRightRadius","borderTopLeftRadius"),borderBottomStartRadius:Vt("borderBottomLeftRadius","borderBottomRightRadius"),borderBottomEndRadius:Vt("borderBottomRightRadius","borderBottomLeftRadius"),paddingStart:Vt("paddingLeft","paddingRight"),paddingEnd:Vt("paddingRight","paddingLeft")});const l5={borderWidth:"borderStyle",borderLeftWidth:"borderLeftStyle",borderRightWidth:"borderRightStyle",borderTopWidth:"borderTopStyle",borderBottomWidth:"borderBottomStyle"};function Vt(e,t){return n=>n==="rtl"?t:e}const WL=/(%|px|em|rem|vw|vh|auto|cm|mm|in|pt|pc|ex|ch|rem|vmin|vmax|fr)$/,UL=/^\s*\w+\(/,HL=/(static-)?size-\d+|single-line-(height|width)/g;function le(e){if(typeof e=="number")return e+"px";if(e)return WL.test(e)?e:UL.test(e)?e.replace(HL,"var(--spectrum-global-dimension-$&, var(--spectrum-alias-$&))"):`var(--spectrum-global-dimension-${e}, var(--spectrum-alias-${e}))`}function Nh(e,t){return e=$$(e,t),le(e)}function l7(e,t="default",n=5){return n>5?`var(--spectrum-${e}, var(--spectrum-semantic-${e}-color-${t}))`:`var(--spectrum-legacy-color-${e}, var(--spectrum-global-color-${e}, var(--spectrum-semantic-${e}-color-${t})))`}function KL(e,t=5){if(e)return`var(--spectrum-alias-background-color-${e}, ${l7(e,"background",t)})`}function Jn(e,t=5){if(e)return e==="default"?"var(--spectrum-alias-border-color)":`var(--spectrum-alias-border-color-${e}, ${l7(e,"border",t)})`}function er(e){return e&&e!=="none"?`var(--spectrum-alias-border-size-${e})`:"0"}function tr(e){if(e)return`var(--spectrum-alias-border-radius-${e})`}function YL(e){return e?"none":void 0}function jh(e){return e}function qL(e){return typeof e=="boolean"?e?"1":void 0:""+e}function GL(e,t,n,r){let i={};for(let a in e){let s=t[a];if(!s||e[a]==null)continue;let[o,l]=s;typeof o=="function"&&(o=o(n));let u=$$(e[a],r),c=l(u,e.colorVersion);if(Array.isArray(o))for(let d of o)i[d]=c;else i[o]=c}for(let a in l5)i[a]&&(i[l5[a]]="solid",i.boxSizing="border-box");return i}function st(e,t=Af,n={}){let{UNSAFE_className:r,UNSAFE_style:i,...a}=e,s=p8(),{direction:o}=Qe(),{matchedBreakpoints:l=(s==null?void 0:s.matchedBreakpoints)||["base"]}=n,u=GL(e,t,o,l),c={...i,...u};a.className&&console.warn("The className prop is unsafe and is unsupported in React Spectrum v3. Please use style props with Spectrum variables, or UNSAFE_className if you absolutely must do something custom. Note that this may break in future versions due to DOM structure changes."),a.style&&console.warn("The style prop is unsafe and is unsupported in React Spectrum v3. Please use style props with Spectrum variables, or UNSAFE_style if you absolutely must do something custom. Note that this may break in future versions due to DOM structure changes.");let d={style:c,className:r};return $$(e.isHidden,l)&&(d.hidden=!0),{styleProps:d}}function tt(e){return e}function $$(e,t){if(e&&typeof e=="object"&&!Array.isArray(e)){for(let n=0;n<t.length;n++){let r=t[n];if(e[r]!=null)return e[r]}return e.base}return e}let Jc=_.createContext(null);function ui(e,t){let n=e.slot||t,{[n]:r={}}=y.useContext(Jc)||{};return de(e,de(r,{id:e.id}))}function Of(e){let t=y.useContext(Jc)||{},{slots:n={},children:r}=e,i=y.useMemo(()=>Object.keys(t).concat(Object.keys(n)).reduce((a,s)=>({...a,[s]:de(t[s]||{},n[s]||{})}),{}),[t,n]);return _.createElement(Jc.Provider,{value:i},r)}function u7(e){let{children:t,...n}=e,r=t;return _.Children.toArray(t).length<=1&&typeof t=="function"&&(r=_.cloneElement(_.Children.only(t),n)),_.createElement(Jc.Provider,{value:{}},r)}function bu(e,t){let[n,r]=y.useState(!0);return he(()=>{r(!!(t.current&&t.current.querySelector(e)))},[r,e,t]),n}const ZL=700;function XL(){return ha()||typeof window>"u"?!1:window.screen.width<=ZL}let Ka="default",vg="",sc=new WeakMap;function u5(e){if(Mf()){if(Ka==="default"){const t=ye(e);vg=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Ka="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(sc.set(e,e.style.userSelect),e.style.userSelect="none")}function yu(e){if(Mf()){if(Ka!=="disabled")return;Ka="restoring",setTimeout(()=>{e7(()=>{if(Ka==="restoring"){const t=ye(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=vg||""),vg="",Ka="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&sc.has(e)){let t=sc.get(e);e.style.userSelect==="none"&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),sc.delete(e)}}const fl=_.createContext({register:()=>{}});fl.displayName="PressResponderContext";function QL(e,t){return t.get?t.get.call(e):t.value}function c7(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function JL(e,t){var n=c7(e,t,"get");return QL(e,n)}function eN(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}function c5(e,t,n){var r=c7(e,t,"set");return eN(e,r,n),n}function tN(e){let t=y.useContext(fl);if(t){let{register:n,...r}=t;e=de(r,e),n()}return b$(t,e.ref),e}var $u=new WeakMap;class xu{continuePropagation(){c5(this,$u,!1)}get shouldStopPropagation(){return JL(this,$u)}constructor(t,n,r){Ll(this,$u,{writable:!0,value:void 0}),c5(this,$u,!0),this.type=t,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey}}const d5=Symbol("linkClicked");function x$(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:a,isDisabled:s,isPressed:o,preventFocusOnPress:l,shouldCancelOnPointerExit:u,allowTextSelectionOnPress:c,ref:d,...f}=tN(e),[h,p]=y.useState(!1),g=y.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:b,removeAllGlobalListeners:v}=t7(),m=pt((x,T)=>{let P=g.current;if(s||P.didFirePressStart)return!1;let E=!0;if(P.isTriggeringEvent=!0,r){let F=new xu("pressstart",T,x);r(F),E=F.shouldStopPropagation}return n&&n(!0),P.isTriggeringEvent=!1,P.didFirePressStart=!0,p(!0),E}),$=pt((x,T,P=!0)=>{let E=g.current;if(!E.didFirePressStart)return!1;E.ignoreClickAfterPress=!0,E.didFirePressStart=!1,E.isTriggeringEvent=!0;let F=!0;if(i){let R=new xu("pressend",T,x);i(R),F=R.shouldStopPropagation}if(n&&n(!1),p(!1),t&&P&&!s){let R=new xu("press",T,x);t(R),F&&(F=R.shouldStopPropagation)}return E.isTriggeringEvent=!1,F}),w=pt((x,T)=>{let P=g.current;if(s)return!1;if(a){P.isTriggeringEvent=!0;let E=new xu("pressup",T,x);return a(E),P.isTriggeringEvent=!1,E.shouldStopPropagation}return!0}),D=pt(x=>{let T=g.current;T.isPressed&&T.target&&(T.isOverTarget&&T.pointerType!=null&&$(nr(T.target,x),T.pointerType,!1),T.isPressed=!1,T.isOverTarget=!1,T.activePointerId=null,T.pointerType=null,v(),c||yu(T.target))}),S=pt(x=>{u&&D(x)}),k=y.useMemo(()=>{let x=g.current,T={onKeyDown(E){if(zh(E.nativeEvent,E.currentTarget)&&E.currentTarget.contains(E.target)){var F;h5(E.target,E.key)&&E.preventDefault();let R=!0;if(!x.isPressed&&!E.repeat){x.target=E.currentTarget,x.isPressed=!0,R=m(E,"keyboard");let M=E.currentTarget,z=B=>{zh(B,M)&&!B.repeat&&M.contains(B.target)&&x.target&&w(nr(x.target,B),"keyboard")};b(ye(E.currentTarget),"keyup",dl(z,P),!0)}R&&E.stopPropagation(),E.metaKey&&xs()&&((F=x.metaKeyEvents)===null||F===void 0||F.set(E.key,E.nativeEvent))}else E.key==="Meta"&&(x.metaKeyEvents=new Map)},onClick(E){if(!(E&&!E.currentTarget.contains(E.target))&&E&&E.button===0&&!x.isTriggeringEvent&&!ia.isOpening){let F=!0;if(s&&E.preventDefault(),!x.ignoreClickAfterPress&&!x.ignoreEmulatedMouseEvents&&!x.isPressed&&(x.pointerType==="virtual"||pg(E.nativeEvent))){!s&&!l&&Hr(E.currentTarget);let R=m(E,"virtual"),M=w(E,"virtual"),z=$(E,"virtual");F=R&&M&&z}x.ignoreEmulatedMouseEvents=!1,x.ignoreClickAfterPress=!1,F&&E.stopPropagation()}}},P=E=>{var F;if(x.isPressed&&x.target&&zh(E,x.target)){var R;h5(E.target,E.key)&&E.preventDefault();let z=E.target;$(nr(x.target,E),"keyboard",x.target.contains(z)),v(),E.key!=="Enter"&&w$(x.target)&&x.target.contains(z)&&!E[d5]&&(E[d5]=!0,ia(x.target,E,!1)),x.isPressed=!1,(R=x.metaKeyEvents)===null||R===void 0||R.delete(E.key)}else if(E.key==="Meta"&&(!((F=x.metaKeyEvents)===null||F===void 0)&&F.size)){var M;let z=x.metaKeyEvents;x.metaKeyEvents=void 0;for(let B of z.values())(M=x.target)===null||M===void 0||M.dispatchEvent(new KeyboardEvent("keyup",B))}};if(typeof PointerEvent<"u"){T.onPointerDown=M=>{if(M.button!==0||!M.currentTarget.contains(M.target))return;if(TL(M.nativeEvent)){x.pointerType="virtual";return}Vh(M.currentTarget)&&M.preventDefault(),x.pointerType=M.pointerType;let z=!0;x.isPressed||(x.isPressed=!0,x.isOverTarget=!0,x.activePointerId=M.pointerId,x.target=M.currentTarget,!s&&!l&&Hr(M.currentTarget),c||u5(x.target),z=m(M,x.pointerType),b(ye(M.currentTarget),"pointermove",E,!1),b(ye(M.currentTarget),"pointerup",F,!1),b(ye(M.currentTarget),"pointercancel",R,!1)),z&&M.stopPropagation()},T.onMouseDown=M=>{M.currentTarget.contains(M.target)&&M.button===0&&(Vh(M.currentTarget)&&M.preventDefault(),M.stopPropagation())},T.onPointerUp=M=>{!M.currentTarget.contains(M.target)||x.pointerType==="virtual"||M.button===0&&Sa(M,M.currentTarget)&&w(M,x.pointerType||M.pointerType)};let E=M=>{M.pointerId===x.activePointerId&&(x.target&&Sa(M,x.target)?!x.isOverTarget&&x.pointerType!=null&&(x.isOverTarget=!0,m(nr(x.target,M),x.pointerType)):x.target&&x.isOverTarget&&x.pointerType!=null&&(x.isOverTarget=!1,$(nr(x.target,M),x.pointerType,!1),S(M)))},F=M=>{M.pointerId===x.activePointerId&&x.isPressed&&M.button===0&&x.target&&(Sa(M,x.target)&&x.pointerType!=null?$(nr(x.target,M),x.pointerType):x.isOverTarget&&x.pointerType!=null&&$(nr(x.target,M),x.pointerType,!1),x.isPressed=!1,x.isOverTarget=!1,x.activePointerId=null,x.pointerType=null,v(),c||yu(x.target))},R=M=>{D(M)};T.onDragStart=M=>{M.currentTarget.contains(M.target)&&D(M)}}else{T.onMouseDown=R=>{if(R.button!==0||!R.currentTarget.contains(R.target))return;if(Vh(R.currentTarget)&&R.preventDefault(),x.ignoreEmulatedMouseEvents){R.stopPropagation();return}x.isPressed=!0,x.isOverTarget=!0,x.target=R.currentTarget,x.pointerType=pg(R.nativeEvent)?"virtual":"mouse",!s&&!l&&Hr(R.currentTarget),m(R,x.pointerType)&&R.stopPropagation(),b(ye(R.currentTarget),"mouseup",E,!1)},T.onMouseEnter=R=>{if(!R.currentTarget.contains(R.target))return;let M=!0;x.isPressed&&!x.ignoreEmulatedMouseEvents&&x.pointerType!=null&&(x.isOverTarget=!0,M=m(R,x.pointerType)),M&&R.stopPropagation()},T.onMouseLeave=R=>{if(!R.currentTarget.contains(R.target))return;let M=!0;x.isPressed&&!x.ignoreEmulatedMouseEvents&&x.pointerType!=null&&(x.isOverTarget=!1,M=$(R,x.pointerType,!1),S(R)),M&&R.stopPropagation()},T.onMouseUp=R=>{R.currentTarget.contains(R.target)&&!x.ignoreEmulatedMouseEvents&&R.button===0&&w(R,x.pointerType||"mouse")};let E=R=>{if(R.button===0){if(x.isPressed=!1,v(),x.ignoreEmulatedMouseEvents){x.ignoreEmulatedMouseEvents=!1;return}x.target&&Sa(R,x.target)&&x.pointerType!=null?$(nr(x.target,R),x.pointerType):x.target&&x.isOverTarget&&x.pointerType!=null&&$(nr(x.target,R),x.pointerType,!1),x.isOverTarget=!1}};T.onTouchStart=R=>{if(!R.currentTarget.contains(R.target))return;let M=nN(R.nativeEvent);if(!M)return;x.activePointerId=M.identifier,x.ignoreEmulatedMouseEvents=!0,x.isOverTarget=!0,x.isPressed=!0,x.target=R.currentTarget,x.pointerType="touch",!s&&!l&&Hr(R.currentTarget),c||u5(x.target),m(R,x.pointerType)&&R.stopPropagation(),b(Fn(R.currentTarget),"scroll",F,!0)},T.onTouchMove=R=>{if(!R.currentTarget.contains(R.target))return;if(!x.isPressed){R.stopPropagation();return}let M=f5(R.nativeEvent,x.activePointerId),z=!0;M&&Sa(M,R.currentTarget)?!x.isOverTarget&&x.pointerType!=null&&(x.isOverTarget=!0,z=m(R,x.pointerType)):x.isOverTarget&&x.pointerType!=null&&(x.isOverTarget=!1,z=$(R,x.pointerType,!1),S(R)),z&&R.stopPropagation()},T.onTouchEnd=R=>{if(!R.currentTarget.contains(R.target))return;if(!x.isPressed){R.stopPropagation();return}let M=f5(R.nativeEvent,x.activePointerId),z=!0;M&&Sa(M,R.currentTarget)&&x.pointerType!=null?(w(R,x.pointerType),z=$(R,x.pointerType)):x.isOverTarget&&x.pointerType!=null&&(z=$(R,x.pointerType,!1)),z&&R.stopPropagation(),x.isPressed=!1,x.activePointerId=null,x.isOverTarget=!1,x.ignoreEmulatedMouseEvents=!0,x.target&&!c&&yu(x.target),v()},T.onTouchCancel=R=>{R.currentTarget.contains(R.target)&&(R.stopPropagation(),x.isPressed&&D(R))};let F=R=>{x.isPressed&&R.target.contains(x.target)&&D({currentTarget:x.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};T.onDragStart=R=>{R.currentTarget.contains(R.target)&&D(R)}}return T},[b,s,l,v,c,D,S,$,m,w]);return y.useEffect(()=>()=>{var x;c||yu((x=g.current.target)!==null&&x!==void 0?x:void 0)},[c]),{isPressed:o||h,pressProps:de(f,k)}}function w$(e){return e.tagName==="A"&&e.hasAttribute("href")}function zh(e,t){const{key:n,code:r}=e,i=t,a=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(i instanceof Fn(i).HTMLInputElement&&!d7(i,n)||i instanceof Fn(i).HTMLTextAreaElement||i.isContentEditable)&&!((a==="link"||!a&&w$(i))&&n!=="Enter")}function nN(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function f5(e,t){const n=e.changedTouches;for(let r=0;r<n.length;r++){const i=n[r];if(i.identifier===t)return i}return null}function nr(e,t){return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey}}function rN(e){let t=0,n=0;return e.width!==void 0?t=e.width/2:e.radiusX!==void 0&&(t=e.radiusX),e.height!==void 0?n=e.height/2:e.radiusY!==void 0&&(n=e.radiusY),{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}function iN(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function Sa(e,t){let n=t.getBoundingClientRect(),r=rN(e);return iN(n,r)}function Vh(e){return!(e instanceof HTMLElement)||!e.hasAttribute("draggable")}function h5(e,t){return e instanceof HTMLInputElement?!d7(e,t):e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!w$(e)}const aN=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function d7(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":aN.has(e.type)}const sN=_.forwardRef(({children:e,...t},n)=>{let r=y.useRef(!1),i=y.useContext(fl);n=EL(n||(i==null?void 0:i.ref));let a=de(i||{},{...t,ref:n,register(){r.current=!0,i&&i.register()}});return b$(i,n),y.useEffect(()=>{r.current||(console.warn("A PressResponder was rendered without a pressable child. Either call the usePress hook, or wrap your DOM node with <Pressable> component."),r.current=!0)},[]),_.createElement(fl.Provider,{value:a},e)});function oN({children:e}){let t=y.useMemo(()=>({register:()=>{}}),[]);return _.createElement(fl.Provider,{value:t},e)}class lN{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=t}}function f7(e){let t=y.useRef({isFocused:!1,observer:null});he(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=pt(r=>{e==null||e(r)});return y.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let i=r.target,a=s=>{t.current.isFocused=!1,i.disabled&&n(new lN("blur",s)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};i.addEventListener("focusout",a,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&i.disabled){var s;(s=t.current.observer)===null||s===void 0||s.disconnect();let o=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:o})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:o}))}}),t.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function h7(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const a=y.useCallback(l=>{if(l.target===l.currentTarget)return r&&r(l),i&&i(!1),!0},[r,i]),s=f7(a),o=y.useCallback(l=>{const u=ye(l.target);l.target===l.currentTarget&&u.activeElement===l.target&&(n&&n(l),i&&i(!0),s(l))},[i,n,s]);return{focusProps:{onFocus:!t&&(n||i||r)?o:void 0,onBlur:!t&&(r||i)?a:void 0}}}let pa=null,bg=new Set,Oo=new Map,sa=!1,yg=!1;const uN={Tab:!0,Escape:!0};function Bf(e,t){for(let n of bg)n(e,t)}function cN(e){return!(e.metaKey||!xs()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function ed(e){sa=!0,cN(e)&&(pa="keyboard",Bf("keyboard",e))}function bn(e){pa="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(sa=!0,Bf("pointer",e))}function p7(e){pg(e)&&(sa=!0,pa="virtual")}function m7(e){e.target===window||e.target===document||(!sa&&!yg&&(pa="virtual",Bf("virtual",e)),sa=!1,yg=!1)}function g7(){sa=!1,yg=!0}function $g(e){if(typeof window>"u"||Oo.get(Fn(e)))return;const t=Fn(e),n=ye(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){sa=!0,r.apply(this,arguments)},n.addEventListener("keydown",ed,!0),n.addEventListener("keyup",ed,!0),n.addEventListener("click",p7,!0),t.addEventListener("focus",m7,!0),t.addEventListener("blur",g7,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",bn,!0),n.addEventListener("pointermove",bn,!0),n.addEventListener("pointerup",bn,!0)):(n.addEventListener("mousedown",bn,!0),n.addEventListener("mousemove",bn,!0),n.addEventListener("mouseup",bn,!0)),t.addEventListener("beforeunload",()=>{v7(e)},{once:!0}),Oo.set(t,{focus:r})}const v7=(e,t)=>{const n=Fn(e),r=ye(e);t&&r.removeEventListener("DOMContentLoaded",t),Oo.has(n)&&(n.HTMLElement.prototype.focus=Oo.get(n).focus,r.removeEventListener("keydown",ed,!0),r.removeEventListener("keyup",ed,!0),r.removeEventListener("click",p7,!0),n.removeEventListener("focus",m7,!0),n.removeEventListener("blur",g7,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",bn,!0),r.removeEventListener("pointermove",bn,!0),r.removeEventListener("pointerup",bn,!0)):(r.removeEventListener("mousedown",bn,!0),r.removeEventListener("mousemove",bn,!0),r.removeEventListener("mouseup",bn,!0)),Oo.delete(n))};function dN(e){const t=ye(e);let n;return t.readyState!=="loading"?$g(e):(n=()=>{$g(e)},t.addEventListener("DOMContentLoaded",n)),()=>v7(e,n)}typeof document<"u"&&dN();function b7(){return pa!=="pointer"}function y7(){return pa}function fN(e){pa=e,Bf(e,null)}const hN=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function pN(e,t,n){var r;const i=typeof window<"u"?Fn(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,a=typeof window<"u"?Fn(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,s=typeof window<"u"?Fn(n==null?void 0:n.target).HTMLElement:HTMLElement,o=typeof window<"u"?Fn(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||(n==null?void 0:n.target)instanceof i&&!hN.has(n==null||(r=n.target)===null||r===void 0?void 0:r.type)||(n==null?void 0:n.target)instanceof a||(n==null?void 0:n.target)instanceof s&&(n==null?void 0:n.target.isContentEditable),!(e&&t==="keyboard"&&n instanceof o&&!uN[n.key])}function mN(e,t,n){$g(),y.useEffect(()=>{let r=(i,a)=>{pN(!!(n!=null&&n.isTextInput),i,a)&&e(b7())};return bg.add(r),()=>{bg.delete(r)}},t)}function Ms(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,a=y.useRef({isFocusWithin:!1}),s=y.useCallback(u=>{a.current.isFocusWithin&&!u.currentTarget.contains(u.relatedTarget)&&(a.current.isFocusWithin=!1,n&&n(u),i&&i(!1))},[n,i,a]),o=f7(s),l=y.useCallback(u=>{!a.current.isFocusWithin&&document.activeElement===u.target&&(r&&r(u),i&&i(!0),a.current.isFocusWithin=!0,o(u))},[r,i,o]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:l,onBlur:s}}}let td=!1,Wh=0;function xg(){td=!0,setTimeout(()=>{td=!1},50)}function p5(e){e.pointerType==="touch"&&xg()}function gN(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",p5):document.addEventListener("touchend",xg),Wh++,()=>{Wh--,!(Wh>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",p5):document.removeEventListener("touchend",xg))}}function If(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[a,s]=y.useState(!1),o=y.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;y.useEffect(gN,[]);let{hoverProps:l,triggerHoverEnd:u}=y.useMemo(()=>{let c=(h,p)=>{if(o.pointerType=p,i||p==="touch"||o.isHovered||!h.currentTarget.contains(h.target))return;o.isHovered=!0;let g=h.currentTarget;o.target=g,t&&t({type:"hoverstart",target:g,pointerType:p}),n&&n(!0),s(!0)},d=(h,p)=>{if(o.pointerType="",o.target=null,p==="touch"||!o.isHovered)return;o.isHovered=!1;let g=h.currentTarget;r&&r({type:"hoverend",target:g,pointerType:p}),n&&n(!1),s(!1)},f={};return typeof PointerEvent<"u"?(f.onPointerEnter=h=>{td&&h.pointerType==="mouse"||c(h,h.pointerType)},f.onPointerLeave=h=>{!i&&h.currentTarget.contains(h.target)&&d(h,h.pointerType)}):(f.onTouchStart=()=>{o.ignoreEmulatedMouseEvents=!0},f.onMouseEnter=h=>{!o.ignoreEmulatedMouseEvents&&!td&&c(h,"mouse"),o.ignoreEmulatedMouseEvents=!1},f.onMouseLeave=h=>{!i&&h.currentTarget.contains(h.target)&&d(h,"mouse")}),{hoverProps:f,triggerHoverEnd:d}},[t,n,r,i,o]);return y.useEffect(()=>{i&&u({currentTarget:o.target},o.pointerType)},[i]),{hoverProps:l,isHovered:a}}function vN(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:i}=e,a=y.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),s=pt(l=>{n&&wu(l,t)&&(i&&i(l),a.current.isPointerDown=!0)}),o=pt(l=>{n&&n(l)});y.useEffect(()=>{let l=a.current;if(r)return;const u=t.current,c=ye(u);if(typeof PointerEvent<"u"){let d=f=>{l.isPointerDown&&wu(f,t)&&o(f),l.isPointerDown=!1};return c.addEventListener("pointerdown",s,!0),c.addEventListener("pointerup",d,!0),()=>{c.removeEventListener("pointerdown",s,!0),c.removeEventListener("pointerup",d,!0)}}else{let d=h=>{l.ignoreEmulatedMouseEvents?l.ignoreEmulatedMouseEvents=!1:l.isPointerDown&&wu(h,t)&&o(h),l.isPointerDown=!1},f=h=>{l.ignoreEmulatedMouseEvents=!0,l.isPointerDown&&wu(h,t)&&o(h),l.isPointerDown=!1};return c.addEventListener("mousedown",s,!0),c.addEventListener("mouseup",d,!0),c.addEventListener("touchstart",s,!0),c.addEventListener("touchend",f,!0),()=>{c.removeEventListener("mousedown",s,!0),c.removeEventListener("mouseup",d,!0),c.removeEventListener("touchstart",s,!0),c.removeEventListener("touchend",f,!0)}}},[t,r,s,o])}function wu(e,t){if(e.button>0)return!1;if(e.target){const n=e.target.ownerDocument;if(!n||!n.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current&&!t.current.contains(e.target)}function m5(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}};e(r),t&&n.stopPropagation()}}function bN(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:m5(e.onKeyDown),onKeyUp:m5(e.onKeyUp)}}}function nd(e){const t=ye(e);if(y7()==="virtual"){let n=t.activeElement;e7(()=>{t.activeElement===n&&e.isConnected&&Hr(e)})}else Hr(e)}function yN(e){const t=Fn(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,i=n!=="none"&&r!=="hidden"&&r!=="collapse";if(i){const{getComputedStyle:a}=e.ownerDocument.defaultView;let{display:s,visibility:o}=a(e);i=s!=="none"&&o!=="hidden"&&o!=="collapse"}return i}function $N(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function $7(e,t){return e.nodeName!=="#comment"&&yN(e)&&$N(e,t)&&(!e.parentElement||$7(e.parentElement,e))}const g5=_.createContext(null);let _e=null;function xN(e){let{children:t,contain:n,restoreFocus:r,autoFocus:i}=e,a=y.useRef(null),s=y.useRef(null),o=y.useRef([]),{parentNode:l}=y.useContext(g5)||{},u=y.useMemo(()=>new wg({scopeRef:o}),[o]);he(()=>{let f=l||Ge.root;if(Ge.getTreeNode(f.scopeRef)&&_e&&!id(_e,f.scopeRef)){let h=Ge.getTreeNode(_e);h&&(f=h)}f.addChild(u),Ge.addNode(u)},[u,l]),he(()=>{let f=Ge.getTreeNode(o);f&&(f.contain=!!n)},[n]),he(()=>{var f;let h=(f=a.current)===null||f===void 0?void 0:f.nextSibling,p=[];for(;h&&h!==s.current;)p.push(h),h=h.nextSibling;o.current=p},[t]),kN(o,r,n),EN(o,n),TN(o,r,n),CN(o,i),y.useEffect(()=>{const f=ye(o.current?o.current[0]:void 0).activeElement;let h=null;if(St(f,o.current)){for(let p of Ge.traverse())p.scopeRef&&St(f,p.scopeRef.current)&&(h=p);h===Ge.getTreeNode(o)&&(_e=h.scopeRef)}},[o]),he(()=>()=>{var f,h,p;let g=(p=(h=Ge.getTreeNode(o))===null||h===void 0||(f=h.parent)===null||f===void 0?void 0:f.scopeRef)!==null&&p!==void 0?p:null;(o===_e||id(o,_e))&&(!g||Ge.getTreeNode(g))&&(_e=g),Ge.removeTreeNode(o)},[o]);let c=y.useMemo(()=>wN(o),[]),d=y.useMemo(()=>({focusManager:c,parentNode:u}),[u,c]);return _.createElement(g5.Provider,{value:d},_.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:a}),t,_.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:s}))}function wN(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:i,wrap:a,accept:s}=t,o=r||ye(n[0]).activeElement,l=n[0].previousElementSibling,u=Wi(n),c=an(u,{tabbable:i,accept:s},n);c.currentNode=St(o,n)?o:l;let d=c.nextNode();return!d&&a&&(c.currentNode=l,d=c.nextNode()),d&&Ut(d,!0),d},focusPrevious(t={}){let n=e.current,{from:r,tabbable:i,wrap:a,accept:s}=t,o=r||ye(n[0]).activeElement,l=n[n.length-1].nextElementSibling,u=Wi(n),c=an(u,{tabbable:i,accept:s},n);c.currentNode=St(o,n)?o:l;let d=c.previousNode();return!d&&a&&(c.currentNode=l,d=c.previousNode()),d&&Ut(d,!0),d},focusFirst(t={}){let n=e.current,{tabbable:r,accept:i}=t,a=Wi(n),s=an(a,{tabbable:r,accept:i},n);s.currentNode=n[0].previousElementSibling;let o=s.nextNode();return o&&Ut(o,!0),o},focusLast(t={}){let n=e.current,{tabbable:r,accept:i}=t,a=Wi(n),s=an(a,{tabbable:r,accept:i},n);s.currentNode=n[n.length-1].nextElementSibling;let o=s.previousNode();return o&&Ut(o,!0),o}}}const D$=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],DN=D$.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";D$.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const _N=D$.join(':not([hidden]):not([tabindex="-1"]),');function Wi(e){return e[0].parentElement}function mo(e){let t=Ge.getTreeNode(_e);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function EN(e,t){let n=y.useRef(),r=y.useRef();he(()=>{let i=e.current;if(!t){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const a=ye(i?i[0]:void 0);let s=u=>{if(u.key!=="Tab"||u.altKey||u.ctrlKey||u.metaKey||!mo(e)||u.isComposing)return;let c=a.activeElement,d=e.current;if(!d||!St(c,d))return;let f=Wi(d),h=an(f,{tabbable:!0},d);if(!c)return;h.currentNode=c;let p=u.shiftKey?h.previousNode():h.nextNode();p||(h.currentNode=u.shiftKey?d[d.length-1].nextElementSibling:d[0].previousElementSibling,p=u.shiftKey?h.previousNode():h.nextNode()),u.preventDefault(),p&&Ut(p,!0)},o=u=>{(!_e||id(_e,e))&&St(u.target,e.current)?(_e=e,n.current=u.target):mo(e)&&!rd(u.target,e)?n.current?n.current.focus():_e&&_e.current&&ad(_e.current):mo(e)&&(n.current=u.target)},l=u=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{if(a.activeElement&&mo(e)&&!rd(a.activeElement,e))if(_e=e,a.body.contains(u.target)){var c;n.current=u.target,(c=n.current)===null||c===void 0||c.focus()}else _e.current&&ad(_e.current)})};return a.addEventListener("keydown",s,!1),a.addEventListener("focusin",o,!1),i==null||i.forEach(u=>u.addEventListener("focusin",o,!1)),i==null||i.forEach(u=>u.addEventListener("focusout",l,!1)),()=>{a.removeEventListener("keydown",s,!1),a.removeEventListener("focusin",o,!1),i==null||i.forEach(u=>u.removeEventListener("focusin",o,!1)),i==null||i.forEach(u=>u.removeEventListener("focusout",l,!1))}},[e,t]),he(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function x7(e){return rd(e)}function St(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function rd(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of Ge.traverse(Ge.getTreeNode(t)))if(n&&St(e,n.current))return!0;return!1}function SN(e){return rd(e,_e)}function id(e,t){var n;let r=(n=Ge.getTreeNode(t))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function Ut(e,t=!1){if(e!=null&&!t)try{nd(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function ad(e,t=!0){let n=e[0].previousElementSibling,r=Wi(e),i=an(r,{tabbable:t},e);i.currentNode=n;let a=i.nextNode();t&&!a&&(r=Wi(e),i=an(r,{tabbable:!1},e),i.currentNode=n,a=i.nextNode()),Ut(a)}function CN(e,t){const n=_.useRef(t);y.useEffect(()=>{if(n.current){_e=e;const r=ye(e.current?e.current[0]:void 0);!St(r.activeElement,_e.current)&&e.current&&ad(e.current)}n.current=!1},[e])}function kN(e,t,n){he(()=>{if(t||n)return;let r=e.current;const i=ye(r?r[0]:void 0);let a=s=>{let o=s.target;St(o,e.current)?_e=e:x7(o)||(_e=null)};return i.addEventListener("focusin",a,!1),r==null||r.forEach(s=>s.addEventListener("focusin",a,!1)),()=>{i.removeEventListener("focusin",a,!1),r==null||r.forEach(s=>s.removeEventListener("focusin",a,!1))}},[e,t,n])}function PN(e){let t=Ge.getTreeNode(_e);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(t==null?void 0:t.scopeRef)===e}function TN(e,t,n){const r=y.useRef(typeof document<"u"?ye(e.current?e.current[0]:void 0).activeElement:null);he(()=>{let i=e.current;const a=ye(i?i[0]:void 0);if(!t||n)return;let s=()=>{(!_e||id(_e,e))&&St(a.activeElement,e.current)&&(_e=e)};return a.addEventListener("focusin",s,!1),i==null||i.forEach(o=>o.addEventListener("focusin",s,!1)),()=>{a.removeEventListener("focusin",s,!1),i==null||i.forEach(o=>o.removeEventListener("focusin",s,!1))}},[e,n]),he(()=>{const i=ye(e.current?e.current[0]:void 0);if(!t)return;let a=s=>{if(s.key!=="Tab"||s.altKey||s.ctrlKey||s.metaKey||!mo(e)||s.isComposing)return;let o=i.activeElement;if(!St(o,e.current))return;let l=Ge.getTreeNode(e);if(!l)return;let u=l.nodeToRestore,c=an(i.body,{tabbable:!0});c.currentNode=o;let d=s.shiftKey?c.previousNode():c.nextNode();if((!u||!i.body.contains(u)||u===i.body)&&(u=void 0,l.nodeToRestore=void 0),(!d||!St(d,e.current))&&u){c.currentNode=u;do d=s.shiftKey?c.previousNode():c.nextNode();while(St(d,e.current));s.preventDefault(),s.stopPropagation(),d?Ut(d,!0):x7(u)?Ut(u,!0):o.blur()}};return n||i.addEventListener("keydown",a,!0),()=>{n||i.removeEventListener("keydown",a,!0)}},[e,t,n]),he(()=>{const i=ye(e.current?e.current[0]:void 0);if(!t)return;let a=Ge.getTreeNode(e);if(a){var s;return a.nodeToRestore=(s=r.current)!==null&&s!==void 0?s:void 0,()=>{let o=Ge.getTreeNode(e);if(!o)return;let l=o.nodeToRestore;if(t&&l&&(St(i.activeElement,e.current)||i.activeElement===i.body&&PN(e))){let u=Ge.clone();requestAnimationFrame(()=>{if(i.activeElement===i.body){let c=u.getTreeNode(e);for(;c;){if(c.nodeToRestore&&c.nodeToRestore.isConnected){Ut(c.nodeToRestore);return}c=c.parent}for(c=u.getTreeNode(e);c;){if(c.scopeRef&&c.scopeRef.current&&Ge.getTreeNode(c.scopeRef)){ad(c.scopeRef.current,!0);return}c=c.parent}}})}}}},[e,t])}function an(e,t,n){let r=t!=null&&t.tabbable?_N:DN,i=ye(e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(a){var s;return!(t==null||(s=t.from)===null||s===void 0)&&s.contains(a)?NodeFilter.FILTER_REJECT:a.matches(r)&&$7(a)&&(!n||St(a,n))&&(!(t!=null&&t.accept)||t.accept(a))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(i.currentNode=t.from),i}function Lf(e,t={}){return{focusNext(n={}){let r=e.current;if(!r)return null;let{from:i,tabbable:a=t.tabbable,wrap:s=t.wrap,accept:o=t.accept}=n,l=i||ye(r).activeElement,u=an(r,{tabbable:a,accept:o});r.contains(l)&&(u.currentNode=l);let c=u.nextNode();return!c&&s&&(u.currentNode=r,c=u.nextNode()),c&&Ut(c,!0),c},focusPrevious(n=t){let r=e.current;if(!r)return null;let{from:i,tabbable:a=t.tabbable,wrap:s=t.wrap,accept:o=t.accept}=n,l=i||ye(r).activeElement,u=an(r,{tabbable:a,accept:o});if(r.contains(l))u.currentNode=l;else{let d=Uh(u);return d&&Ut(d,!0),d??null}let c=u.previousNode();if(!c&&s){u.currentNode=r;let d=Uh(u);if(!d)return null;c=d}return c&&Ut(c,!0),c??null},focusFirst(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:a=t.accept}=n,o=an(r,{tabbable:i,accept:a}).nextNode();return o&&Ut(o,!0),o},focusLast(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:a=t.accept}=n,s=an(r,{tabbable:i,accept:a}),o=Uh(s);return o&&Ut(o,!0),o??null}}}function Uh(e){let t,n;do n=e.lastChild(),n&&(t=n);while(n);return t}class _${get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let i=this.fastMap.get(n??null);if(!i)return;let a=new wg({scopeRef:t});i.addChild(a),a.parent=i,this.fastMap.set(t,a),r&&(a.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let r=n.parent;for(let a of this.traverse())a!==n&&n.nodeToRestore&&a.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&St(a.nodeToRestore,n.scopeRef.current)&&(a.nodeToRestore=n.nodeToRestore);let i=n.children;r&&(r.removeChild(n),i.size>0&&i.forEach(a=>r&&r.addChild(a))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){var t;let n=new _$;var r;for(let i of this.traverse())n.addTreeNode(i.scopeRef,(r=(t=i.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&r!==void 0?r:null,i.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new wg({scopeRef:null}),this.fastMap.set(null,this.root)}}class wg{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}let Ge=new _$;function hl(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,i=y.useRef({isFocused:!1,isFocusVisible:t||b7()}),[a,s]=y.useState(!1),[o,l]=y.useState(()=>i.current.isFocused&&i.current.isFocusVisible),u=y.useCallback(()=>l(i.current.isFocused&&i.current.isFocusVisible),[]),c=y.useCallback(h=>{i.current.isFocused=h,s(h),u()},[u]);mN(h=>{i.current.isFocusVisible=h,u()},[],{isTextInput:n});let{focusProps:d}=h7({isDisabled:r,onFocusChange:c}),{focusWithinProps:f}=Ms({isDisabled:!r,onFocusWithinChange:c});return{isFocused:a,isFocusVisible:o,focusProps:r?f:d}}function w7(e){let{children:t,focusClass:n,focusRingClass:r}=e,{isFocused:i,isFocusVisible:a,focusProps:s}=hl(e),o=_.Children.only(t);return _.cloneElement(o,de(o.props,{...s,className:Ef({[n||""]:i,[r||""]:a})}))}let RN=_.createContext(null);function MN(e){let t=y.useContext(RN)||{};b$(t,e);let{ref:n,...r}=t;return r}function FN(e,t){let{focusProps:n}=h7(e),{keyboardProps:r}=bN(e),i=de(n,r),a=MN(t),s=e.isDisabled?{}:a,o=y.useRef(e.autoFocus);return y.useEffect(()=>{o.current&&t.current&&nd(t.current),o.current=!1},[t]),{focusableProps:de({...i,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},s)}}function AN(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:a="label"}=e;t=Qn(t);let s=Qn(),o={};n?(r=r?`${s} ${r}`:s,o={id:s,htmlFor:a==="label"?t:void 0}):!r&&!i&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let l=jl({id:t,"aria-label":i,"aria-labelledby":r});return{labelProps:o,fieldProps:l}}function D7(e){let{description:t,errorMessage:n,isInvalid:r,validationState:i}=e,{labelProps:a,fieldProps:s}=AN(e),o=Xc([!!t,!!n,r,i]),l=Xc([!!t,!!n,r,i]);return s=de(s,{"aria-describedby":[o,l,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:a,fieldProps:s,descriptionProps:{id:o},errorMessageProps:{id:l}}}function ON(e,t){e=ui(e,"text");let{children:n,...r}=e,{styleProps:i}=st(r),a=Nn(t);return _.createElement("span",{...Xt(r),...i,ref:a},n)}const BN=y.forwardRef(ON);function _7(e,t){let{elementType:n="button",isDisabled:r,onPress:i,onPressStart:a,onPressEnd:s,onPressUp:o,onPressChange:l,preventFocusOnPress:u,allowFocusWhenDisabled:c,onClick:d,href:f,target:h,rel:p,type:g="button"}=e,b;n==="button"?b={type:g,disabled:r}:b={role:"button",tabIndex:r?void 0:0,href:n==="a"&&r?void 0:f,target:n==="a"?h:void 0,type:n==="input"?g:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?p:void 0};let{pressProps:v,isPressed:m}=x$({onPressStart:a,onPressEnd:s,onPressChange:l,onPress:i,onPressUp:o,isDisabled:r,preventFocusOnPress:u,ref:t}),{focusableProps:$}=FN(e,t);c&&($.tabIndex=r?-1:$.tabIndex);let w=de($,v,Xt(e,{labelable:!0}));return{isPressed:m,buttonProps:de(b,w,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:D=>{d&&(d(D),console.warn("onClick is deprecated, please use onPress"))}})}}var E7={};E7={dateRange:e=>`${e.startDate} إلى ${e.endDate}`,dateSelected:e=>`${e.date} المحدد`,finishRangeSelectionPrompt:"انقر لإنهاء عملية تحديد نطاق التاريخ",maximumDate:"آخر تاريخ متاح",minimumDate:"أول تاريخ متاح",next:"التالي",previous:"السابق",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.dateRange}`,startRangeSelectionPrompt:"انقر لبدء عملية تحديد نطاق التاريخ",todayDate:e=>`اليوم، ${e.date}`,todayDateSelected:e=>`اليوم، ${e.date} محدد`};var S7={};S7={dateRange:e=>`${e.startDate} до ${e.endDate}`,dateSelected:e=>`Избрано е ${e.date}`,finishRangeSelectionPrompt:"Натиснете, за да довършите избора на времеви интервал",maximumDate:"Последна налична дата",minimumDate:"Първа налична дата",next:"Напред",previous:"Назад",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Натиснете, за да пристъпите към избора на времеви интервал",todayDate:e=>`Днес, ${e.date}`,todayDateSelected:e=>`Днес, ${e.date} са избрани`};var C7={};C7={dateRange:e=>`${e.startDate} až ${e.endDate}`,dateSelected:e=>`Vybráno ${e.date}`,finishRangeSelectionPrompt:"Kliknutím dokončíte výběr rozsahu dat",maximumDate:"Poslední dostupné datum",minimumDate:"První dostupné datum",next:"Další",previous:"Předchozí",selectedDateDescription:e=>`Vybrané datum: ${e.date}`,selectedRangeDescription:e=>`Vybrané období: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknutím zahájíte výběr rozsahu dat",todayDate:e=>`Dnes, ${e.date}`,todayDateSelected:e=>`Dnes, vybráno ${e.date}`};var k7={};k7={dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klik for at fuldføre valg af datoområde",maximumDate:"Sidste ledige dato",minimumDate:"Første ledige dato",next:"Næste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.dateRange}`,startRangeSelectionPrompt:"Klik for at starte valg af datoområde",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`};var P7={};P7={dateRange:e=>`${e.startDate} bis ${e.endDate}`,dateSelected:e=>`${e.date} ausgewählt`,finishRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beenden",maximumDate:"Letztes verfügbares Datum",minimumDate:"Erstes verfügbares Datum",next:"Weiter",previous:"Zurück",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.dateRange}`,startRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beginnen",todayDate:e=>`Heute, ${e.date}`,todayDateSelected:e=>`Heute, ${e.date} ausgewählt`};var T7={};T7={dateRange:e=>`${e.startDate} έως ${e.endDate}`,dateSelected:e=>`Επιλέχθηκε ${e.date}`,finishRangeSelectionPrompt:"Κάντε κλικ για να ολοκληρώσετε την επιλογή εύρους ημερομηνιών",maximumDate:"Τελευταία διαθέσιμη ημερομηνία",minimumDate:"Πρώτη διαθέσιμη ημερομηνία",next:"Επόμενο",previous:"Προηγούμενο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.dateRange}`,startRangeSelectionPrompt:"Κάντε κλικ για να ξεκινήσετε την επιλογή εύρους ημερομηνιών",todayDate:e=>`Σήμερα, ${e.date}`,todayDateSelected:e=>`Σήμερα, επιλέχτηκε ${e.date}`};var R7={};R7={previous:"Previous",next:"Next",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.dateRange}`,todayDate:e=>`Today, ${e.date}`,todayDateSelected:e=>`Today, ${e.date} selected`,dateSelected:e=>`${e.date} selected`,startRangeSelectionPrompt:"Click to start selecting date range",finishRangeSelectionPrompt:"Click to finish selecting date range",minimumDate:"First available date",maximumDate:"Last available date",dateRange:e=>`${e.startDate} to ${e.endDate}`};var M7={};M7={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} seleccionado`,finishRangeSelectionPrompt:"Haga clic para terminar de seleccionar rango de fechas",maximumDate:"Última fecha disponible",minimumDate:"Primera fecha disponible",next:"Siguiente",previous:"Anterior",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo seleccionado: ${e.dateRange}`,startRangeSelectionPrompt:"Haga clic para comenzar a seleccionar un rango de fechas",todayDate:e=>`Hoy, ${e.date}`,todayDateSelected:e=>`Hoy, ${e.date} seleccionado`};var F7={};F7={dateRange:e=>`${e.startDate} kuni ${e.endDate}`,dateSelected:e=>`${e.date} valitud`,finishRangeSelectionPrompt:"Klõpsake kuupäevavahemiku valimise lõpetamiseks",maximumDate:"Viimane saadaolev kuupäev",minimumDate:"Esimene saadaolev kuupäev",next:"Järgmine",previous:"Eelmine",selectedDateDescription:e=>`Valitud kuupäev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.dateRange}`,startRangeSelectionPrompt:"Klõpsake kuupäevavahemiku valimiseks",todayDate:e=>`Täna, ${e.date}`,todayDateSelected:e=>`Täna, ${e.date} valitud`};var A7={};A7={dateRange:e=>`${e.startDate} – ${e.endDate}`,dateSelected:e=>`${e.date} valittu`,finishRangeSelectionPrompt:"Lopeta päivämääräalueen valinta napsauttamalla tätä.",maximumDate:"Viimeinen varattavissa oleva päivämäärä",minimumDate:"Ensimmäinen varattavissa oleva päivämäärä",next:"Seuraava",previous:"Edellinen",selectedDateDescription:e=>`Valittu päivämäärä: ${e.date}`,selectedRangeDescription:e=>`Valittu aikaväli: ${e.dateRange}`,startRangeSelectionPrompt:"Aloita päivämääräalueen valinta napsauttamalla tätä.",todayDate:e=>`Tänään, ${e.date}`,todayDateSelected:e=>`Tänään, ${e.date} valittu`};var O7={};O7={dateRange:e=>`${e.startDate} à ${e.endDate}`,dateSelected:e=>`${e.date} sélectionné`,finishRangeSelectionPrompt:"Cliquer pour finir de sélectionner la plage de dates",maximumDate:"Dernière date disponible",minimumDate:"Première date disponible",next:"Suivant",previous:"Précédent",selectedDateDescription:e=>`Date sélectionnée : ${e.date}`,selectedRangeDescription:e=>`Plage sélectionnée : ${e.dateRange}`,startRangeSelectionPrompt:"Cliquer pour commencer à sélectionner la plage de dates",todayDate:e=>`Aujourd'hui, ${e.date}`,todayDateSelected:e=>`Aujourd’hui, ${e.date} sélectionné`};var B7={};B7={dateRange:e=>`${e.startDate} עד ${e.endDate}`,dateSelected:e=>`${e.date} נבחר`,finishRangeSelectionPrompt:"חץ כדי לסיים את בחירת טווח התאריכים",maximumDate:"תאריך פנוי אחרון",minimumDate:"תאריך פנוי ראשון",next:"הבא",previous:"הקודם",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.dateRange}`,startRangeSelectionPrompt:"לחץ כדי להתחיל בבחירת טווח התאריכים",todayDate:e=>`היום, ${e.date}`,todayDateSelected:e=>`היום, ${e.date} נבחר`};var I7={};I7={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} odabran`,finishRangeSelectionPrompt:"Kliknite da dovršite raspon odabranih datuma",maximumDate:"Posljednji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sljedeći",previous:"Prethodni",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete raspon odabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, odabran ${e.date}`};var L7={};L7={dateRange:e=>`${e.startDate}–${e.endDate}`,dateSelected:e=>`${e.date} kiválasztva`,finishRangeSelectionPrompt:"Kattintson a dátumtartomány kijelölésének befejezéséhez",maximumDate:"Utolsó elérhető dátum",minimumDate:"Az első elérhető dátum",next:"Következő",previous:"Előző",selectedDateDescription:e=>`Kijelölt dátum: ${e.date}`,selectedRangeDescription:e=>`Kijelölt tartomány: ${e.dateRange}`,startRangeSelectionPrompt:"Kattintson a dátumtartomány kijelölésének indításához",todayDate:e=>`Ma, ${e.date}`,todayDateSelected:e=>`Ma, ${e.date} kijelölve`};var N7={};N7={dateRange:e=>`Da ${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selezionata`,finishRangeSelectionPrompt:"Fai clic per completare la selezione dell’intervallo di date",maximumDate:"Ultima data disponibile",minimumDate:"Prima data disponibile",next:"Successivo",previous:"Precedente",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: ${e.dateRange}`,startRangeSelectionPrompt:"Fai clic per selezionare l’intervallo di date",todayDate:e=>`Oggi, ${e.date}`,todayDateSelected:e=>`Oggi, ${e.date} selezionata`};var j7={};j7={dateRange:e=>`${e.startDate} から ${e.endDate}`,dateSelected:e=>`${e.date} を選択`,finishRangeSelectionPrompt:"クリックして日付範囲の選択を終了",maximumDate:"最終利用可能日",minimumDate:"最初の利用可能日",next:"次へ",previous:"前へ",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.dateRange}`,startRangeSelectionPrompt:"クリックして日付範囲の選択を開始",todayDate:e=>`本日、${e.date}`,todayDateSelected:e=>`本日、${e.date} を選択`};var z7={};z7={dateRange:e=>`${e.startDate} ~ ${e.endDate}`,dateSelected:e=>`${e.date} 선택됨`,finishRangeSelectionPrompt:"날짜 범위 선택을 완료하려면 클릭하십시오.",maximumDate:"마지막으로 사용 가능한 일자",minimumDate:"처음으로 사용 가능한 일자",next:"다음",previous:"이전",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.dateRange}`,startRangeSelectionPrompt:"날짜 범위 선택을 시작하려면 클릭하십시오.",todayDate:e=>`오늘, ${e.date}`,todayDateSelected:e=>`오늘, ${e.date} 선택됨`};var V7={};V7={dateRange:e=>`Nuo ${e.startDate} iki ${e.endDate}`,dateSelected:e=>`Pasirinkta ${e.date}`,finishRangeSelectionPrompt:"Spustelėkite, kad baigtumėte pasirinkti datų intervalą",maximumDate:"Paskutinė galima data",minimumDate:"Pirmoji galima data",next:"Paskesnis",previous:"Ankstesnis",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: ${e.dateRange}`,startRangeSelectionPrompt:"Spustelėkite, kad pradėtumėte pasirinkti datų intervalą",todayDate:e=>`Šiandien, ${e.date}`,todayDateSelected:e=>`Šiandien, pasirinkta ${e.date}`};var W7={};W7={dateRange:e=>`No ${e.startDate} līdz ${e.endDate}`,dateSelected:e=>`Atlasīts: ${e.date}`,finishRangeSelectionPrompt:"Noklikšķiniet, lai pabeigtu datumu diapazona atlasi",maximumDate:"Pēdējais pieejamais datums",minimumDate:"Pirmais pieejamais datums",next:"Tālāk",previous:"Atpakaļ",selectedDateDescription:e=>`Atlasītais datums: ${e.date}`,selectedRangeDescription:e=>`Atlasītais diapazons: ${e.dateRange}`,startRangeSelectionPrompt:"Noklikšķiniet, lai sāktu datumu diapazona atlasi",todayDate:e=>`Šodien, ${e.date}`,todayDateSelected:e=>`Atlasīta šodiena, ${e.date}`};var U7={};U7={dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klikk for å fullføre valg av datoområde",maximumDate:"Siste tilgjengelige dato",minimumDate:"Første tilgjengelige dato",next:"Neste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt område: ${e.dateRange}`,startRangeSelectionPrompt:"Klikk for å starte valg av datoområde",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`};var H7={};H7={dateRange:e=>`${e.startDate} tot ${e.endDate}`,dateSelected:e=>`${e.date} geselecteerd`,finishRangeSelectionPrompt:"Klik om de selectie van het datumbereik te voltooien",maximumDate:"Laatste beschikbare datum",minimumDate:"Eerste beschikbare datum",next:"Volgende",previous:"Vorige",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.dateRange}`,startRangeSelectionPrompt:"Klik om het datumbereik te selecteren",todayDate:e=>`Vandaag, ${e.date}`,todayDateSelected:e=>`Vandaag, ${e.date} geselecteerd`};var K7={};K7={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`Wybrano ${e.date}`,finishRangeSelectionPrompt:"Kliknij, aby zakończyć wybór zakresu dat",maximumDate:"Ostatnia dostępna data",minimumDate:"Pierwsza dostępna data",next:"Dalej",previous:"Wstecz",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknij, aby rozpocząć wybór zakresu dat",todayDate:e=>`Dzisiaj, ${e.date}`,todayDateSelected:e=>`Dzisiaj wybrano ${e.date}`};var Y7={};Y7={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para concluir a seleção do intervalo de datas",maximumDate:"Última data disponível",minimumDate:"Primeira data disponível",next:"Próximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para iniciar a seleção do intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`};var q7={};q7={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para terminar de selecionar o intervalo de datas",maximumDate:"Última data disponível",minimumDate:"Primeira data disponível",next:"Próximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para começar a selecionar o intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`};var G7={};G7={dateRange:e=>`De la ${e.startDate} până la ${e.endDate}`,dateSelected:e=>`${e.date} selectată`,finishRangeSelectionPrompt:"Apăsaţi pentru a finaliza selecţia razei pentru dată",maximumDate:"Ultima dată disponibilă",minimumDate:"Prima dată disponibilă",next:"Următorul",previous:"Înainte",selectedDateDescription:e=>`Dată selectată: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: ${e.dateRange}`,startRangeSelectionPrompt:"Apăsaţi pentru a începe selecţia razei pentru dată",todayDate:e=>`Astăzi, ${e.date}`,todayDateSelected:e=>`Azi, ${e.date} selectată`};var Z7={};Z7={dateRange:e=>`С ${e.startDate} по ${e.endDate}`,dateSelected:e=>`Выбрано ${e.date}`,finishRangeSelectionPrompt:"Щелкните, чтобы завершить выбор диапазона дат",maximumDate:"Последняя доступная дата",minimumDate:"Первая доступная дата",next:"Далее",previous:"Назад",selectedDateDescription:e=>`Выбранная дата: ${e.date}`,selectedRangeDescription:e=>`Выбранный диапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Щелкните, чтобы начать выбор диапазона дат",todayDate:e=>`Сегодня, ${e.date}`,todayDateSelected:e=>`Сегодня, выбрано ${e.date}`};var X7={};X7={dateRange:e=>`Od ${e.startDate} do ${e.endDate}`,dateSelected:e=>`Vybratý dátum ${e.date}`,finishRangeSelectionPrompt:"Kliknutím dokončíte výber rozsahu dátumov",maximumDate:"Posledný dostupný dátum",minimumDate:"Prvý dostupný dátum",next:"Nasledujúce",previous:"Predchádzajúce",selectedDateDescription:e=>`Vybratý dátum: ${e.date}`,selectedRangeDescription:e=>`Vybratý rozsah: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknutím spustíte výber rozsahu dátumov",todayDate:e=>`Dnes ${e.date}`,todayDateSelected:e=>`Vybratý dnešný dátum ${e.date}`};var Q7={};Q7={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izbrano`,finishRangeSelectionPrompt:"Kliknite za dokončanje izbire datumskega obsega",maximumDate:"Zadnji razpoložljivi datum",minimumDate:"Prvi razpoložljivi datum",next:"Naprej",previous:"Nazaj",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano območje: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite za začetek izbire datumskega obsega",todayDate:e=>`Danes, ${e.date}`,todayDateSelected:e=>`Danes, ${e.date} izbrano`};var J7={};J7={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izabran`,finishRangeSelectionPrompt:"Kliknite da dovršite opseg izabranih datuma",maximumDate:"Zadnji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sledeći",previous:"Prethodni",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani period: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete opseg izabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, izabran ${e.date}`};var eE={};eE={dateRange:e=>`${e.startDate} till ${e.endDate}`,dateSelected:e=>`${e.date} har valts`,finishRangeSelectionPrompt:"Klicka för att avsluta val av datumintervall",maximumDate:"Sista tillgängliga datum",minimumDate:"Första tillgängliga datum",next:"Nästa",previous:"Föregående",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.dateRange}`,startRangeSelectionPrompt:"Klicka för att välja datumintervall",todayDate:e=>`Idag, ${e.date}`,todayDateSelected:e=>`Idag, ${e.date} har valts`};var tE={};tE={dateRange:e=>`${e.startDate} - ${e.endDate}`,dateSelected:e=>`${e.date} seçildi`,finishRangeSelectionPrompt:"Tarih aralığı seçimini tamamlamak için tıklayın",maximumDate:"Son müsait tarih",minimumDate:"İlk müsait tarih",next:"Sonraki",previous:"Önceki",selectedDateDescription:e=>`Seçilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Seçilen Aralık: ${e.dateRange}`,startRangeSelectionPrompt:"Tarih aralığı seçimini başlatmak için tıklayın",todayDate:e=>`Bugün, ${e.date}`,todayDateSelected:e=>`Bugün, ${e.date} seçildi`};var nE={};nE={dateRange:e=>`${e.startDate} — ${e.endDate}`,dateSelected:e=>`Вибрано ${e.date}`,finishRangeSelectionPrompt:"Натисніть, щоб завершити вибір діапазону дат",maximumDate:"Остання доступна дата",minimumDate:"Перша доступна дата",next:"Наступний",previous:"Попередній",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Натисніть, щоб почати вибір діапазону дат",todayDate:e=>`Сьогодні, ${e.date}`,todayDateSelected:e=>`Сьогодні, вибрано ${e.date}`};var rE={};rE={dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已选择 ${e.date}`,finishRangeSelectionPrompt:"单击以完成选择日期范围",maximumDate:"最后一个可用日期",minimumDate:"第一个可用日期",next:"下一页",previous:"上一页",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.dateRange}`,startRangeSelectionPrompt:"单击以开始选择日期范围",todayDate:e=>`今天,即 ${e.date}`,todayDateSelected:e=>`已选择今天,即 ${e.date}`};var iE={};iE={dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已選取 ${e.date}`,finishRangeSelectionPrompt:"按一下以完成選取日期範圍",maximumDate:"最後一個可用日期",minimumDate:"第一個可用日期",next:"下一頁",previous:"上一頁",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.dateRange}`,startRangeSelectionPrompt:"按一下以開始選取日期範圍",todayDate:e=>`今天,${e.date}`,todayDateSelected:e=>`已選取今天,${e.date}`};var zl={};zl={"ar-AE":E7,"bg-BG":S7,"cs-CZ":C7,"da-DK":k7,"de-DE":P7,"el-GR":T7,"en-US":R7,"es-ES":M7,"et-EE":F7,"fi-FI":A7,"fr-FR":O7,"he-IL":B7,"hr-HR":I7,"hu-HU":L7,"it-IT":N7,"ja-JP":j7,"ko-KR":z7,"lt-LT":V7,"lv-LV":W7,"nb-NO":U7,"nl-NL":H7,"pl-PL":K7,"pt-BR":Y7,"pt-PT":q7,"ro-RO":G7,"ru-RU":Z7,"sk-SK":X7,"sl-SI":Q7,"sr-SP":J7,"sv-SE":eE,"tr-TR":tE,"uk-UA":nE,"zh-CN":rE,"zh-TW":iE};function aE(e){return e&&e.__esModule?e.default:e}const E$=new WeakMap;function pl(e){return(e==null?void 0:e.calendar.identifier)==="gregory"&&e.era==="BC"?"short":void 0}function IN(e){let t=Sn(aE(zl),"@react-aria/calendar"),n,r;"highlightedRange"in e?{start:n,end:r}=e.highlightedRange||{}:n=r=e.value;let i=xn({weekday:"long",month:"long",year:"numeric",day:"numeric",era:pl(n)||pl(r),timeZone:e.timeZone}),a="anchorDate"in e?e.anchorDate:null;return y.useMemo(()=>{if(!a&&n&&r)if(Ze(n,r)){let s=i.format(n.toDate(e.timeZone));return t.format("selectedDateDescription",{date:s})}else{let s=_g(i,t,n,r,e.timeZone);return t.format("selectedRangeDescription",{dateRange:s})}return""},[n,r,a,e.timeZone,t,i])}function Dg(e,t,n,r){let i=Sn(aE(zl),"@react-aria/calendar"),a=pl(e)||pl(t),s=xn({month:"long",year:"numeric",era:a,calendar:e.calendar.identifier,timeZone:n}),o=xn({month:"long",year:"numeric",day:"numeric",era:a,calendar:e.calendar.identifier,timeZone:n});return y.useMemo(()=>{if(Ze(e,na(e))){if(Ze(t,Uc(e)))return s.format(e.toDate(n));if(Ze(t,Uc(t)))return r?_g(s,i,e,t,n):s.formatRange(e.toDate(n),t.toDate(n))}return r?_g(o,i,e,t,n):o.formatRange(e.toDate(n),t.toDate(n))},[e,t,s,o,i,n,r])}function _g(e,t,n,r,i){let a=e.formatRangeToParts(n.toDate(i),r.toDate(i)),s=-1;for(let u=0;u<a.length;u++){let c=a[u];if(c.source==="shared"&&c.type==="literal")s=u;else if(c.source==="endRange")break}let o="",l="";for(let u=0;u<a.length;u++)u<s?o+=a[u].value:u>s&&(l+=a[u].value);return t.format("dateRange",{startDate:o,endDate:l})}const sE=7e3;let Bo=null;function Eg(e,t="assertive",n=sE){Bo||(Bo=new NN),Bo.announce(e,t,n)}function LN(e){Bo&&Bo.clear(e)}class NN{createLog(t){let n=document.createElement("div");return n.setAttribute("role","log"),n.setAttribute("aria-live",t),n.setAttribute("aria-relevant","additions"),n}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(t,n="assertive",r=sE){if(!this.node)return;let i=document.createElement("div");i.textContent=t,n==="assertive"?this.assertiveLog.appendChild(i):this.politeLog.appendChild(i),t!==""&&setTimeout(()=>{i.remove()},r)}clear(t){this.node&&((!t||t==="assertive")&&(this.assertiveLog.innerHTML=""),(!t||t==="polite")&&(this.politeLog.innerHTML=""))}constructor(){this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node)}}function jN(e){return e&&e.__esModule?e.default:e}function zN(e,t){let n=Sn(jN(zl),"@react-aria/calendar"),r=Xt(e),i=Dg(t.visibleRange.start,t.visibleRange.end,t.timeZone,!1),a=Dg(t.visibleRange.start,t.visibleRange.end,t.timeZone,!0);t5(()=>{t.isFocused||Eg(a)},[a]);let s=IN(t);t5(()=>{s&&Eg(s,"polite",4e3)},[s]);let o=Xc([!!e.errorMessage,e.isInvalid,e.validationState]);E$.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:e["aria-labelledby"],errorMessageId:o,selectedDateDescription:s});let[l,u]=y.useState(!1),c=e.isDisabled||t.isNextVisibleRangeInvalid();c&&l&&(u(!1),t.setFocused(!0));let[d,f]=y.useState(!1),h=e.isDisabled||t.isPreviousVisibleRangeInvalid();h&&d&&(f(!1),t.setFocused(!0));let p=jl({id:e.id,"aria-label":[e["aria-label"],a].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]});return{calendarProps:de(r,p,{role:"application","aria-describedby":e["aria-describedby"]||void 0}),nextButtonProps:{onPress:()=>t.focusNextPage(),"aria-label":n.format("next"),isDisabled:c,onFocusChange:u},prevButtonProps:{onPress:()=>t.focusPreviousPage(),"aria-label":n.format("previous"),isDisabled:h,onFocusChange:f},errorMessageProps:{id:o},title:i}}function VN(e,t,n){let r=zN(e,t),i=y.useRef(!1),a=y.useRef(typeof window<"u"?window:null);return as(a,"pointerdown",o=>{i.current=o.width===0&&o.height===0}),as(a,"pointerup",o=>{if(i.current){i.current=!1;return}if(t.setDragging(!1),!t.anchorDate)return;let l=o.target;n.current&&n.current.contains(document.activeElement)&&(!n.current.contains(l)||!l.closest('button, [role="button"]'))&&t.selectFocusedDate()}),r.calendarProps.onBlur=o=>{n.current&&(!o.relatedTarget||!n.current.contains(o.relatedTarget))&&t.anchorDate&&t.selectFocusedDate()},as(n,"touchmove",o=>{t.isDragging&&o.preventDefault()},{passive:!1,capture:!0}),r}function WN(e,t){let{startDate:n=t.visibleRange.start,endDate:r=t.visibleRange.end}=e,{direction:i}=Qe(),a=h=>{switch(h.key){case"Enter":case" ":h.preventDefault(),t.selectFocusedDate();break;case"PageUp":h.preventDefault(),h.stopPropagation(),t.focusPreviousSection(h.shiftKey);break;case"PageDown":h.preventDefault(),h.stopPropagation(),t.focusNextSection(h.shiftKey);break;case"End":h.preventDefault(),h.stopPropagation(),t.focusSectionEnd();break;case"Home":h.preventDefault(),h.stopPropagation(),t.focusSectionStart();break;case"ArrowLeft":h.preventDefault(),h.stopPropagation(),i==="rtl"?t.focusNextDay():t.focusPreviousDay();break;case"ArrowUp":h.preventDefault(),h.stopPropagation(),t.focusPreviousRow();break;case"ArrowRight":h.preventDefault(),h.stopPropagation(),i==="rtl"?t.focusPreviousDay():t.focusNextDay();break;case"ArrowDown":h.preventDefault(),h.stopPropagation(),t.focusNextRow();break;case"Escape":"setAnchorDate"in t&&(h.preventDefault(),t.setAnchorDate(null));break}},s=Dg(n,r,t.timeZone,!0),{ariaLabel:o,ariaLabelledBy:l}=E$.get(t),u=jl({"aria-label":[o,s].filter(Boolean).join(", "),"aria-labelledby":l}),c=xn({weekday:e.weekdayStyle||"narrow",timeZone:t.timeZone}),{locale:d}=Qe(),f=y.useMemo(()=>{let h=ll(Il(t.timeZone),d);return[...new Array(7).keys()].map(p=>{let b=h.add({days:p}).toDate(t.timeZone);return c.format(b)})},[d,t.timeZone,c]);return{gridProps:de(u,{role:"grid","aria-readonly":t.isReadOnly||null,"aria-disabled":t.isDisabled||null,"aria-multiselectable":"highlightedRange"in t||void 0,onKeyDown:a,onFocus:()=>t.setFocused(!0),onBlur:()=>t.setFocused(!1)}),headerProps:{"aria-hidden":!0},weekDays:f}}function UN(e){return e&&e.__esModule?e.default:e}function HN(e,t,n){let{date:r,isDisabled:i}=e,{errorMessageId:a,selectedDateDescription:s}=E$.get(t),o=Sn(UN(zl),"@react-aria/calendar"),l=xn({weekday:"long",day:"numeric",month:"long",year:"numeric",era:pl(r),timeZone:t.timeZone}),u=t.isSelected(r),c=t.isCellFocused(r);i=i||t.isCellDisabled(r);let d=t.isCellUnavailable(r),f=!i&&!d,h=t.isValueInvalid&&("highlightedRange"in t?!t.anchorDate&&t.highlightedRange&&r.compare(t.highlightedRange.start)>=0&&r.compare(t.highlightedRange.end)<=0:t.value&&Ze(t.value,r));h&&(u=!0),r=a7(r,ag);let p=y.useMemo(()=>r.toDate(t.timeZone),[r,t.timeZone]),g=w8(r,t.timeZone),b=y.useMemo(()=>{let E="";return"highlightedRange"in t&&t.value&&!t.anchorDate&&(Ze(r,t.value.start)||Ze(r,t.value.end))&&(E=s+", "),E+=l.format(p),g?E=o.format(u?"todayDateSelected":"todayDate",{date:E}):u&&(E=o.format("dateSelected",{date:E})),t.minValue&&Ze(r,t.minValue)?E+=", "+o.format("minimumDate"):t.maxValue&&Ze(r,t.maxValue)&&(E+=", "+o.format("maximumDate")),E},[l,p,o,u,g,r,t,s]),v="";"anchorDate"in t&&c&&!t.isReadOnly&&f&&(t.anchorDate?v=o.format("finishRangeSelectionPrompt"):v=o.format("startRangeSelectionPrompt"));let m=y$(v),$=y.useRef(!1),w=y.useRef(!1),D=y.useRef(null),{pressProps:S,isPressed:k}=x$({shouldCancelOnPointerExit:"anchorDate"in t&&!!t.anchorDate,preventFocusOnPress:!0,isDisabled:!f||t.isReadOnly,onPressStart(E){if(t.isReadOnly){t.setFocusedDate(r);return}if("highlightedRange"in t&&!t.anchorDate&&(E.pointerType==="mouse"||E.pointerType==="touch")){if(t.highlightedRange&&!h){if(Ze(r,t.highlightedRange.start)){t.setAnchorDate(t.highlightedRange.end),t.setFocusedDate(r),t.setDragging(!0),w.current=!0;return}else if(Ze(r,t.highlightedRange.end)){t.setAnchorDate(t.highlightedRange.start),t.setFocusedDate(r),t.setDragging(!0),w.current=!0;return}}let F=()=>{t.setDragging(!0),D.current=null,t.selectDate(r),t.setFocusedDate(r),$.current=!0};E.pointerType==="touch"?D.current=setTimeout(F,200):F()}},onPressEnd(){w.current=!1,$.current=!1,clearTimeout(D.current),D.current=null},onPress(){!("anchorDate"in t)&&!t.isReadOnly&&(t.selectDate(r),t.setFocusedDate(r))},onPressUp(E){if(!t.isReadOnly&&("anchorDate"in t&&D.current&&(t.selectDate(r),t.setFocusedDate(r)),"anchorDate"in t))if(w.current)t.setAnchorDate(r);else if(t.anchorDate&&!$.current)t.selectDate(r),t.setFocusedDate(r);else if(E.pointerType==="keyboard"&&!t.anchorDate){t.selectDate(r);let F=r.add({days:1});t.isInvalid(F)&&(F=r.subtract({days:1})),t.isInvalid(F)||t.setFocusedDate(F)}else E.pointerType==="virtual"&&(t.selectDate(r),t.setFocusedDate(r))}}),x=null;i||(x=Ze(r,t.focusedDate)?0:-1),y.useEffect(()=>{c&&n.current&&(Hr(n.current),y7()!=="pointer"&&document.activeElement===n.current&&i7(n.current,{containingElement:Ff(n.current)}))},[c,n]);let T=xn({day:"numeric",timeZone:t.timeZone,calendar:r.calendar.identifier}),P=y.useMemo(()=>T.formatToParts(p).find(E=>E.type==="day").value,[T,p]);return{cellProps:{role:"gridcell","aria-disabled":!f||null,"aria-selected":u||null,"aria-invalid":h||null},buttonProps:de(S,{onFocus(){i||t.setFocusedDate(r)},tabIndex:x,role:"button","aria-disabled":!f||null,"aria-label":b,"aria-invalid":h||null,"aria-describedby":[h?a:null,m["aria-describedby"]].filter(Boolean).join(" ")||void 0,onPointerEnter(E){"highlightDate"in t&&(E.pointerType!=="touch"||t.isDragging)&&f&&t.highlightDate(r)},onPointerDown(E){"releasePointerCapture"in E.target&&E.target.releasePointerCapture(E.pointerId)},onContextMenu(E){E.preventDefault()}}),isPressed:k,isFocused:c,isSelected:u,isDisabled:i,isUnavailable:d,isOutsideVisibleRange:r.compare(t.visibleRange.start)<0||r.compare(t.visibleRange.end)>0,isInvalid:h,formattedDate:P}}function KN(e,t,n){let{validationBehavior:r,focus:i}=e;he(()=>{if(r==="native"&&(n!=null&&n.current)){let l=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(l),n.current.hasAttribute("title")||(n.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(qN(n.current))}});let a=pt(()=>{t.resetValidation()}),s=pt(l=>{var u;t.displayValidation.isInvalid||t.commitValidation();let c=n==null||(u=n.current)===null||u===void 0?void 0:u.form;if(!l.defaultPrevented&&n&&c&&GN(c)===n.current){var d;i?i():(d=n.current)===null||d===void 0||d.focus(),fN("keyboard")}l.preventDefault()}),o=pt(()=>{t.commitValidation()});y.useEffect(()=>{let l=n==null?void 0:n.current;if(!l)return;let u=l.form;return l.addEventListener("invalid",s),l.addEventListener("change",o),u==null||u.addEventListener("reset",a),()=>{l.removeEventListener("invalid",s),l.removeEventListener("change",o),u==null||u.removeEventListener("reset",a)}},[n,s,o,a,r])}function YN(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}function qN(e){return{isInvalid:!e.validity.valid,validationDetails:YN(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function GN(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(!n.validity.valid)return n}return null}const Nf={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},oE={...Nf,customError:!0,valid:!1},Li={isInvalid:!1,validationDetails:Nf,validationErrors:[]},ZN=y.createContext({}),sd="__formValidationState"+Date.now();function lE(e){if(e[sd]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:a}=e[sd];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:a}}return XN(e)}function XN(e){let{isInvalid:t,validationState:n,name:r,value:i,builtinValidation:a,validate:s,validationBehavior:o="aria"}=e;n&&(t||(t=n==="invalid"));let l=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:oE}:null,u=y.useMemo(()=>v5(QN(s,i)),[s,i]);a!=null&&a.validationDetails.valid&&(a=null);let c=y.useContext(ZN),d=y.useMemo(()=>r?Array.isArray(r)?r.flatMap(P=>Sg(c[P])):Sg(c[r]):[],[c,r]),[f,h]=y.useState(c),[p,g]=y.useState(!1);c!==f&&(h(c),g(!1));let b=y.useMemo(()=>v5(p?[]:d),[p,d]),v=y.useRef(Li),[m,$]=y.useState(Li),w=y.useRef(Li),D=()=>{if(!S)return;k(!1);let P=u||a||v.current;Hh(P,w.current)||(w.current=P,$(P))},[S,k]=y.useState(!1);return y.useEffect(D),{realtimeValidation:l||b||u||a||Li,displayValidation:o==="native"?l||b||m:l||b||u||a||m,updateValidation(P){o==="aria"&&!Hh(m,P)?$(P):v.current=P},resetValidation(){let P=Li;Hh(P,w.current)||(w.current=P,$(P)),o==="native"&&k(!1),g(!0)},commitValidation(){o==="native"&&k(!0),g(!0)}}}function Sg(e){return e?Array.isArray(e)?e:[e]:[]}function QN(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return Sg(n)}return[]}function v5(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:oE}:null}function Hh(e,t){return e===t?!0:e&&t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((n,r)=>n===t.validationErrors[r])&&Object.entries(e.validationDetails).every(([n,r])=>t.validationDetails[n]===r)}function od(...e){let t=new Set,n=!1,r={...Nf};for(let s of e){var i,a;for(let o of s.validationErrors)t.add(o);n||(n=s.isInvalid);for(let o in r)(i=r)[a=o]||(i[a]=s.validationDetails[o])}return r.valid=!n,{isInvalid:n,validationErrors:[...t],validationDetails:r}}const Ya={top:"top",bottom:"top",left:"left",right:"left"},ld={top:"bottom",bottom:"top",left:"right",right:"left"},JN={top:"left",left:"top"},Cg={top:"height",left:"width"},uE={width:"totalWidth",height:"totalHeight"},Du={};let Lt=typeof document<"u"&&window.visualViewport;function b5(e){let t=0,n=0,r=0,i=0,a=0,s=0,o={},l=(Lt==null?void 0:Lt.scale)>1;if(e.tagName==="BODY"){let d=document.documentElement;r=d.clientWidth,i=d.clientHeight;var u;t=(u=Lt==null?void 0:Lt.width)!==null&&u!==void 0?u:r;var c;n=(c=Lt==null?void 0:Lt.height)!==null&&c!==void 0?c:i,o.top=d.scrollTop||e.scrollTop,o.left=d.scrollLeft||e.scrollLeft,Lt&&(a=Lt.offsetTop,s=Lt.offsetLeft)}else({width:t,height:n,top:a,left:s}=ss(e)),o.top=e.scrollTop,o.left=e.scrollLeft,r=t,i=n;return X8()&&(e.tagName==="BODY"||e.tagName==="HTML")&&l&&(o.top=0,o.left=0,a=Lt.pageTop,s=Lt.pageLeft),{width:t,height:n,totalWidth:r,totalHeight:i,scroll:o,top:a,left:s}}function ej(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function y5(e,t,n,r,i,a,s){let o=i.scroll[e],l=r[Cg[e]],u=r.scroll[Ya[e]]+a,c=l+r.scroll[Ya[e]]-a,d=t-o+s[e]-r[Ya[e]],f=t-o+n+s[e]-r[Ya[e]];return d<u?u-d:f>c?Math.max(c-f,u-d):0}function tj(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function $5(e){if(Du[e])return Du[e];let[t,n]=e.split(" "),r=Ya[t]||"right",i=JN[r];Ya[n]||(n="center");let a=Cg[r],s=Cg[i];return Du[e]={placement:t,crossPlacement:n,axis:r,crossAxis:i,size:a,crossSize:s},Du[e]}function Kh(e,t,n,r,i,a,s,o,l,u){let{placement:c,crossPlacement:d,axis:f,crossAxis:h,size:p,crossSize:g}=r,b={};b[h]=e[h],d==="center"?b[h]+=(e[g]-n[g])/2:d!==h&&(b[h]+=e[g]-n[g]),b[h]+=a;const v=e[h]-n[g]+l+u,m=e[h]+e[g]-l-u;if(b[h]=mg(b[h],v,m),c===f){const $=o?s[p]:t[uE[p]];b[ld[f]]=Math.floor($-e[f]+i)}else b[f]=Math.floor(e[f]+e[p]+i);return b}function nj(e,t,n,r,i,a,s,o){const l=r?n.height:t[uE.height];let u=e.top!=null?n.top+e.top:n.top+(l-e.bottom-s),c=o!=="top"?Math.max(0,t.height+t.top+t.scroll.top-u-(i.top+i.bottom+a)):Math.max(0,u+s-(t.top+t.scroll.top)-(i.top+i.bottom+a));return Math.min(t.height-a*2,c)}function x5(e,t,n,r,i,a){let{placement:s,axis:o,size:l}=a;return s===o?Math.max(0,n[o]-e[o]-e.scroll[o]+t[o]-r[o]-r[ld[o]]-i):Math.max(0,e[l]+e[o]+e.scroll[o]-t[o]-n[o]-n[l]-r[o]-r[ld[o]]-i)}function rj(e,t,n,r,i,a,s,o,l,u,c,d,f,h,p,g){let b=$5(e),{size:v,crossAxis:m,crossSize:$,placement:w,crossPlacement:D}=b,S=Kh(t,o,n,b,c,d,u,f,p,g),k=c,x=x5(o,u,t,i,a+c,b);if(s&&r[v]>x){let I=$5(`${ld[w]} ${D}`),N=Kh(t,o,n,I,c,d,u,f,p,g);x5(o,u,t,i,a+c,I)>x&&(b=I,S=N,k=c)}let T="bottom";b.axis==="top"?b.placement==="top"?T="top":b.placement==="bottom"&&(T="bottom"):b.crossAxis==="top"&&(b.crossPlacement==="top"?T="bottom":b.crossPlacement==="bottom"&&(T="top"));let P=y5(m,S[m],n[$],o,l,a,u);S[m]+=P;let E=nj(S,o,u,f,i,a,n.height,T);h&&h<E&&(E=h),n.height=Math.min(n.height,E),S=Kh(t,o,n,b,k,d,u,f,p,g),P=y5(m,S[m],n[$],o,l,a,u),S[m]+=P;let F={},R=t[m]+.5*t[$]-S[m];const M=p/2+g,z=n[$]-p/2-g,B=t[m]-S[m]+p/2,C=t[m]+t[$]-S[m]-p/2,A=mg(R,B,C);return F[m]=mg(A,M,z),{position:S,maxHeight:E,arrowOffsetLeft:F.left,arrowOffsetTop:F.top,placement:b.placement}}function ij(e){let{placement:t,targetNode:n,overlayNode:r,scrollNode:i,padding:a,shouldFlip:s,boundaryElement:o,offset:l,crossOffset:u,maxHeight:c,arrowSize:d=0,arrowBoundaryOffset:f=0}=e,h=r instanceof HTMLElement?aj(r):document.documentElement,p=h===document.documentElement;const g=window.getComputedStyle(h).position;let b=!!g&&g!=="static",v=p?ss(n):w5(n,h);if(!p){let{marginTop:x,marginLeft:T}=window.getComputedStyle(n);v.top+=parseInt(x,10)||0,v.left+=parseInt(T,10)||0}let m=ss(r),$=tj(r);m.width+=$.left+$.right,m.height+=$.top+$.bottom;let w=ej(i),D=b5(o),S=b5(h),k=o.tagName==="BODY"?ss(h):w5(h,o);return h.tagName==="HTML"&&o.tagName==="BODY"&&(S.scroll.top=0,S.scroll.left=0),rj(t,v,m,w,$,a,s,D,S,k,l,u,b,c,d,f)}function ss(e){let{top:t,left:n,width:r,height:i}=e.getBoundingClientRect(),{scrollTop:a,scrollLeft:s,clientTop:o,clientLeft:l}=document.documentElement;return{top:t+a-o,left:n+s-l,width:r,height:i}}function w5(e,t){let n=window.getComputedStyle(e),r;if(n.position==="fixed"){let{top:i,left:a,width:s,height:o}=e.getBoundingClientRect();r={top:i,left:a,width:s,height:o}}else{r=ss(e);let i=ss(t),a=window.getComputedStyle(t);i.top+=(parseInt(a.borderTopWidth,10)||0)-t.scrollTop,i.left+=(parseInt(a.borderLeftWidth,10)||0)-t.scrollLeft,r.top-=i.top,r.left-=i.left}return r.top-=parseInt(n.marginTop,10)||0,r.left-=parseInt(n.marginLeft,10)||0,r}function aj(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!D5(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!D5(t);)t=t.parentElement;return t||document.documentElement}function D5(e){let t=window.getComputedStyle(e);return t.transform!=="none"||/transform|perspective/.test(t.willChange)||t.filter!=="none"||t.contain==="paint"||"backdropFilter"in t&&t.backdropFilter!=="none"||"WebkitBackdropFilter"in t&&t.WebkitBackdropFilter!=="none"}const cE=new WeakMap;function sj(e){let{triggerRef:t,isOpen:n,onClose:r}=e;y.useEffect(()=>{if(!n||r===null)return;let i=a=>{let s=a.target;if(!t.current||s instanceof Node&&!s.contains(t.current))return;let o=r||cE.get(t.current);o&&o()};return window.addEventListener("scroll",i,!0),()=>{window.removeEventListener("scroll",i,!0)}},[n,r,t])}let Ke=typeof document<"u"&&window.visualViewport;function oj(e){let{direction:t}=Qe(),{arrowSize:n=0,targetRef:r,overlayRef:i,scrollRef:a=i,placement:s="bottom",containerPadding:o=12,shouldFlip:l=!0,boundaryElement:u=typeof document<"u"?document.body:null,offset:c=0,crossOffset:d=0,shouldUpdatePosition:f=!0,isOpen:h=!0,onClose:p,maxHeight:g,arrowBoundaryOffset:b=0}=e,[v,m]=y.useState({position:{},arrowOffsetLeft:void 0,arrowOffsetTop:void 0,maxHeight:void 0,placement:void 0}),$=[f,s,i.current,r.current,a.current,o,l,u,c,d,h,t,g,b,n],w=y.useRef(Ke==null?void 0:Ke.scale);y.useEffect(()=>{h&&(w.current=Ke==null?void 0:Ke.scale)},[h]);let D=y.useCallback(()=>{if(f===!1||!h||!i.current||!r.current||!a.current||!u||(Ke==null?void 0:Ke.scale)!==w.current)return;let x=i.current;if(!g&&i.current){var T;x.style.top="0px",x.style.bottom="";var P;x.style.maxHeight=((P=(T=window.visualViewport)===null||T===void 0?void 0:T.height)!==null&&P!==void 0?P:window.innerHeight)+"px"}let E=ij({placement:uj(s,t),overlayNode:i.current,targetNode:r.current,scrollNode:a.current,padding:o,shouldFlip:l,boundaryElement:u,offset:c,crossOffset:d,maxHeight:g,arrowSize:n,arrowBoundaryOffset:b});x.style.top="",x.style.bottom="",Object.keys(E.position).forEach(F=>x.style[F]=E.position[F]+"px"),x.style.maxHeight=E.maxHeight!=null?E.maxHeight+"px":void 0,m(E)},$);he(D,$),lj(D),n7({ref:i,onResize:D});let S=y.useRef(!1);he(()=>{let x,T=()=>{S.current=!0,clearTimeout(x),x=setTimeout(()=>{S.current=!1},500),D()},P=()=>{S.current&&T()};return Ke==null||Ke.addEventListener("resize",T),Ke==null||Ke.addEventListener("scroll",P),()=>{Ke==null||Ke.removeEventListener("resize",T),Ke==null||Ke.removeEventListener("scroll",P)}},[D]);let k=y.useCallback(()=>{S.current||p()},[p,S]);return sj({triggerRef:r,isOpen:h,onClose:p&&k}),{overlayProps:{style:{position:"absolute",zIndex:1e5,...v.position,maxHeight:v.maxHeight}},placement:v.placement,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:v.arrowOffsetLeft,top:v.arrowOffsetTop}},updatePosition:D}}function lj(e){he(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function uj(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const rr=[];function dE(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:i,isDismissable:a=!1,isKeyboardDismissDisabled:s=!1,shouldCloseOnInteractOutside:o}=e;y.useEffect(()=>(i&&rr.push(t),()=>{let p=rr.indexOf(t);p>=0&&rr.splice(p,1)}),[i,t]);let l=()=>{rr[rr.length-1]===t&&n&&n()},u=p=>{(!o||o(p.target))&&rr[rr.length-1]===t&&(p.stopPropagation(),p.preventDefault())},c=p=>{(!o||o(p.target))&&(rr[rr.length-1]===t&&(p.stopPropagation(),p.preventDefault()),l())},d=p=>{p.key==="Escape"&&!s&&!p.nativeEvent.isComposing&&(p.stopPropagation(),p.preventDefault(),l())};vN({ref:t,onInteractOutside:a&&i?c:null,onInteractOutsideStart:u});let{focusWithinProps:f}=Ms({isDisabled:!r,onBlurWithin:p=>{!p.relatedTarget||SN(p.relatedTarget)||(!o||o(p.relatedTarget))&&n()}}),h=p=>{p.target===p.currentTarget&&p.preventDefault()};return{overlayProps:{onKeyDown:d,...f},underlayProps:{onPointerDown:h}}}function cj(e,t,n){let{type:r}=e,{isOpen:i}=t;y.useEffect(()=>{n&&n.current&&cE.set(n.current,t.close)});let a;r==="menu"?a=!0:r==="listbox"&&(a="listbox");let s=Qn();return{triggerProps:{"aria-haspopup":a,"aria-expanded":i,"aria-controls":i?s:null,onPress:t.toggle},overlayProps:{id:s}}}const Yh=typeof document<"u"&&window.visualViewport,dj=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let _u=0,qh;function fE(e={}){let{isDisabled:t}=e;he(()=>{if(!t)return _u++,_u===1&&(Mf()?qh=hj():qh=fj()),()=>{_u--,_u===0&&qh()}},[t])}function fj(){return dl(qa(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),qa(document.documentElement,"overflow","hidden"))}function hj(){let e,t,n=u=>{e=Ff(u.target,!0),!(e===document.documentElement&&e===document.body)&&e instanceof HTMLElement&&window.getComputedStyle(e).overscrollBehavior==="auto"&&(t=qa(e,"overscrollBehavior","contain"))},r=u=>{if(!e||e===document.documentElement||e===document.body){u.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&u.preventDefault()},i=u=>{let c=u.target;E5(c)&&c!==document.activeElement&&(u.preventDefault(),o(),c.style.transform="translateY(-2000px)",c.focus(),requestAnimationFrame(()=>{c.style.transform=""})),t&&t()},a=u=>{let c=u.target;E5(c)&&(o(),c.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{c.style.transform="",Yh&&(Yh.height<window.innerHeight?requestAnimationFrame(()=>{_5(c)}):Yh.addEventListener("resize",()=>_5(c),{once:!0}))}))},s=null,o=()=>{if(s)return;let u=()=>{window.scrollTo(0,0)},c=window.pageXOffset,d=window.pageYOffset;s=dl(Ks(window,"scroll",u),qa(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),qa(document.documentElement,"overflow","hidden"),qa(document.body,"marginTop",`-${d}px`),()=>{window.scrollTo(c,d)}),window.scrollTo(0,0)},l=dl(Ks(document,"touchstart",n,{passive:!1,capture:!0}),Ks(document,"touchmove",r,{passive:!1,capture:!0}),Ks(document,"touchend",i,{passive:!1,capture:!0}),Ks(document,"focus",a,!0));return()=>{t==null||t(),s==null||s(),l()}}function qa(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function Ks(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function _5(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let n=Ff(e);if(n!==document.documentElement&&n!==document.body&&n!==e){let r=n.getBoundingClientRect().top,i=e.getBoundingClientRect().top;i>r+e.clientHeight&&(n.scrollTop+=i-r)}e=n.parentElement}}function E5(e){return e instanceof HTMLInputElement&&!dj.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}const kg=_.createContext(null);function pj(e){let{children:t}=e,n=y.useContext(kg),[r,i]=y.useState(0),a=y.useMemo(()=>({parent:n,modalCount:r,addModal(){i(s=>s+1),n&&n.addModal()},removeModal(){i(s=>s-1),n&&n.removeModal()}}),[n,r]);return _.createElement(kg.Provider,{value:a},t)}function mj(){let e=y.useContext(kg);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:null}}}var hE={};hE={dismiss:"تجاهل"};var pE={};pE={dismiss:"Отхвърляне"};var mE={};mE={dismiss:"Odstranit"};var gE={};gE={dismiss:"Luk"};var vE={};vE={dismiss:"Schließen"};var bE={};bE={dismiss:"Απόρριψη"};var yE={};yE={dismiss:"Dismiss"};var $E={};$E={dismiss:"Descartar"};var xE={};xE={dismiss:"Lõpeta"};var wE={};wE={dismiss:"Hylkää"};var DE={};DE={dismiss:"Rejeter"};var _E={};_E={dismiss:"התעלם"};var EE={};EE={dismiss:"Odbaci"};var SE={};SE={dismiss:"Elutasítás"};var CE={};CE={dismiss:"Ignora"};var kE={};kE={dismiss:"閉じる"};var PE={};PE={dismiss:"무시"};var TE={};TE={dismiss:"Atmesti"};var RE={};RE={dismiss:"Nerādīt"};var ME={};ME={dismiss:"Lukk"};var FE={};FE={dismiss:"Negeren"};var AE={};AE={dismiss:"Zignoruj"};var OE={};OE={dismiss:"Descartar"};var BE={};BE={dismiss:"Dispensar"};var IE={};IE={dismiss:"Revocare"};var LE={};LE={dismiss:"Пропустить"};var NE={};NE={dismiss:"Zrušiť"};var jE={};jE={dismiss:"Opusti"};var zE={};zE={dismiss:"Odbaci"};var VE={};VE={dismiss:"Avvisa"};var WE={};WE={dismiss:"Kapat"};var UE={};UE={dismiss:"Скасувати"};var HE={};HE={dismiss:"取消"};var KE={};KE={dismiss:"關閉"};var YE={};YE={"ar-AE":hE,"bg-BG":pE,"cs-CZ":mE,"da-DK":gE,"de-DE":vE,"el-GR":bE,"en-US":yE,"es-ES":$E,"et-EE":xE,"fi-FI":wE,"fr-FR":DE,"he-IL":_E,"hr-HR":EE,"hu-HU":SE,"it-IT":CE,"ja-JP":kE,"ko-KR":PE,"lt-LT":TE,"lv-LV":RE,"nb-NO":ME,"nl-NL":FE,"pl-PL":AE,"pt-BR":OE,"pt-PT":BE,"ro-RO":IE,"ru-RU":LE,"sk-SK":NE,"sl-SI":jE,"sr-SP":zE,"sv-SE":VE,"tr-TR":WE,"uk-UA":UE,"zh-CN":HE,"zh-TW":KE};const S5={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function gj(e={}){let{style:t,isFocusable:n}=e,[r,i]=y.useState(!1),{focusWithinProps:a}=Ms({isDisabled:!n,onFocusWithinChange:o=>i(o)}),s=y.useMemo(()=>r?t:t?{...S5,...t}:S5,[r]);return{visuallyHiddenProps:{...a,style:s}}}function Pg(e){let{children:t,elementType:n="div",isFocusable:r,style:i,...a}=e,{visuallyHiddenProps:s}=gj(e);return _.createElement(n,de(a,s),t)}function vj(e){return e&&e.__esModule?e.default:e}function ud(e){let{onDismiss:t,...n}=e,r=Sn(vj(YE),"@react-aria/overlays"),i=jl(n,r.format("dismiss")),a=()=>{t&&t()};return _.createElement(Pg,null,_.createElement("button",{...i,tabIndex:-1,onClick:a,style:{width:1,height:1}}))}let Ys=new WeakMap,fn=[];function qE(e,t=document.body){let n=new Set(e),r=new Set,i=l=>{for(let f of l.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))n.add(f);let u=f=>{if(n.has(f)||r.has(f.parentElement)&&f.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let h of n)if(f.contains(h))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},c=document.createTreeWalker(l,NodeFilter.SHOW_ELEMENT,{acceptNode:u}),d=u(l);if(d===NodeFilter.FILTER_ACCEPT&&a(l),d!==NodeFilter.FILTER_REJECT){let f=c.nextNode();for(;f!=null;)a(f),f=c.nextNode()}},a=l=>{var u;let c=(u=Ys.get(l))!==null&&u!==void 0?u:0;l.getAttribute("aria-hidden")==="true"&&c===0||(c===0&&l.setAttribute("aria-hidden","true"),r.add(l),Ys.set(l,c+1))};fn.length&&fn[fn.length-1].disconnect(),i(t);let s=new MutationObserver(l=>{for(let u of l)if(!(u.type!=="childList"||u.addedNodes.length===0)&&![...n,...r].some(c=>c.contains(u.target))){for(let c of u.removedNodes)c instanceof Element&&(n.delete(c),r.delete(c));for(let c of u.addedNodes)(c instanceof HTMLElement||c instanceof SVGElement)&&(c.dataset.liveAnnouncer==="true"||c.dataset.reactAriaTopLayer==="true")?n.add(c):c instanceof Element&&i(c)}});s.observe(t,{childList:!0,subtree:!0});let o={observe(){s.observe(t,{childList:!0,subtree:!0})},disconnect(){s.disconnect()}};return fn.push(o),()=>{s.disconnect();for(let l of r){let u=Ys.get(l);u===1?(l.removeAttribute("aria-hidden"),Ys.delete(l)):Ys.set(l,u-1)}o===fn[fn.length-1]?(fn.pop(),fn.length&&fn[fn.length-1].observe()):fn.splice(fn.indexOf(o),1)}}function bj(e,t){let{triggerRef:n,popoverRef:r,isNonModal:i,isKeyboardDismissDisabled:a,shouldCloseOnInteractOutside:s,...o}=e,{overlayProps:l,underlayProps:u}=dE({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!i,isKeyboardDismissDisabled:a,shouldCloseOnInteractOutside:s},r),{overlayProps:c,arrowProps:d,placement:f}=oj({...o,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:i?t.close:null});return fE({isDisabled:i||!t.isOpen}),he(()=>{if(t.isOpen&&!i&&r.current)return qE([r.current])},[i,t.isOpen,r]),{popoverProps:de(l,c),arrowProps:d,underlayProps:u,placement:f}}const yj=y.createContext({});function $j(){var e;return(e=y.useContext(yj))!==null&&e!==void 0?e:{}}const GE=_.createContext(null);function xj(e){let t=ha(),{portalContainer:n=t?null:document.body,isExiting:r}=e,[i,a]=y.useState(!1),s=y.useMemo(()=>({contain:i,setContain:a}),[i,a]),{getContainer:o}=$j();if(!e.portalContainer&&o&&(n=o()),!n)return null;let l=e.children;return e.disableFocusManagement||(l=_.createElement(xN,{restoreFocus:!0,contain:i&&!r},l)),l=_.createElement(GE.Provider,{value:s},_.createElement(oN,null,l)),co.createPortal(l,n)}function ZE(){let e=y.useContext(GE),t=e==null?void 0:e.setContain;he(()=>{t==null||t(!0)},[t])}function XE(e,t,n){let{overlayProps:r,underlayProps:i}=dE({...e,isOpen:t.isOpen,onClose:t.close},n);return fE({isDisabled:!t.isOpen}),ZE(),y.useEffect(()=>{if(t.isOpen)return qE([n.current])},[t.isOpen,n]),{modalProps:de(r),underlayProps:i}}var QE={};QE={calendar:"التقويم",day:"يوم",dayPeriod:"ص/م",endDate:"تاريخ الانتهاء",era:"العصر",hour:"الساعات",minute:"الدقائق",month:"الشهر",second:"الثواني",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.startDate} إلى ${e.endDate}`,selectedTimeDescription:e=>`الوقت المحدد: ${e.time}`,startDate:"تاريخ البدء",timeZoneName:"التوقيت",weekday:"اليوم",year:"السنة"};var JE={};JE={calendar:"Календар",day:"ден",dayPeriod:"пр.об./сл.об.",endDate:"Крайна дата",era:"ера",hour:"час",minute:"минута",month:"месец",second:"секунда",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.startDate} до ${e.endDate}`,selectedTimeDescription:e=>`Избрано време: ${e.time}`,startDate:"Начална дата",timeZoneName:"часова зона",weekday:"ден от седмицата",year:"година"};var e9={};e9={calendar:"Kalendář",day:"den",dayPeriod:"část dne",endDate:"Konečné datum",era:"letopočet",hour:"hodina",minute:"minuta",month:"měsíc",second:"sekunda",selectedDateDescription:e=>`Vybrané datum: ${e.date}`,selectedRangeDescription:e=>`Vybrané období: ${e.startDate} až ${e.endDate}`,selectedTimeDescription:e=>`Vybraný čas: ${e.time}`,startDate:"Počáteční datum",timeZoneName:"časové pásmo",weekday:"den v týdnu",year:"rok"};var t9={};t9={calendar:"Kalender",day:"dag",dayPeriod:"AM/PM",endDate:"Slutdato",era:"æra",hour:"time",minute:"minut",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tidspunkt: ${e.time}`,startDate:"Startdato",timeZoneName:"tidszone",weekday:"ugedag",year:"år"};var n9={};n9={calendar:"Kalender",day:"Tag",dayPeriod:"Tageshälfte",endDate:"Enddatum",era:"Epoche",hour:"Stunde",minute:"Minute",month:"Monat",second:"Sekunde",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.startDate} bis ${e.endDate}`,selectedTimeDescription:e=>`Ausgewählte Zeit: ${e.time}`,startDate:"Anfangsdatum",timeZoneName:"Zeitzone",weekday:"Wochentag",year:"Jahr"};var r9={};r9={calendar:"Ημερολόγιο",day:"ημέρα",dayPeriod:"π.μ./μ.μ.",endDate:"Ημερομηνία λήξης",era:"περίοδος",hour:"ώρα",minute:"λεπτό",month:"μήνας",second:"δευτερόλεπτο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.startDate} έως ${e.endDate}`,selectedTimeDescription:e=>`Επιλεγμένη ώρα: ${e.time}`,startDate:"Ημερομηνία έναρξης",timeZoneName:"ζώνη ώρας",weekday:"καθημερινή",year:"έτος"};var i9={};i9={era:"era",year:"year",month:"month",day:"day",hour:"hour",minute:"minute",second:"second",dayPeriod:"AM/PM",calendar:"Calendar",startDate:"Start Date",endDate:"End Date",weekday:"day of the week",timeZoneName:"time zone",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.startDate} to ${e.endDate}`,selectedTimeDescription:e=>`Selected Time: ${e.time}`};var a9={};a9={calendar:"Calendario",day:"día",dayPeriod:"a. m./p. m.",endDate:"Fecha final",era:"era",hour:"hora",minute:"minuto",month:"mes",second:"segundo",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Rango seleccionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora seleccionada: ${e.time}`,startDate:"Fecha de inicio",timeZoneName:"zona horaria",weekday:"día de la semana",year:"año"};var s9={};s9={calendar:"Kalender",day:"päev",dayPeriod:"enne/pärast lõunat",endDate:"Lõppkuupäev",era:"ajastu",hour:"tund",minute:"minut",month:"kuu",second:"sekund",selectedDateDescription:e=>`Valitud kuupäev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.startDate} kuni ${e.endDate}`,selectedTimeDescription:e=>`Valitud aeg: ${e.time}`,startDate:"Alguskuupäev",timeZoneName:"ajavöönd",weekday:"nädalapäev",year:"aasta"};var o9={};o9={calendar:"Kalenteri",day:"päivä",dayPeriod:"vuorokaudenaika",endDate:"Päättymispäivä",era:"aikakausi",hour:"tunti",minute:"minuutti",month:"kuukausi",second:"sekunti",selectedDateDescription:e=>`Valittu päivämäärä: ${e.date}`,selectedRangeDescription:e=>`Valittu aikaväli: ${e.startDate} – ${e.endDate}`,selectedTimeDescription:e=>`Valittu aika: ${e.time}`,startDate:"Alkamispäivä",timeZoneName:"aikavyöhyke",weekday:"viikonpäivä",year:"vuosi"};var l9={};l9={calendar:"Calendrier",day:"jour",dayPeriod:"cadran",endDate:"Date de fin",era:"ère",hour:"heure",minute:"minute",month:"mois",second:"seconde",selectedDateDescription:e=>`Date sélectionnée : ${e.date}`,selectedRangeDescription:e=>`Plage sélectionnée : ${e.startDate} au ${e.endDate}`,selectedTimeDescription:e=>`Heure choisie : ${e.time}`,startDate:"Date de début",timeZoneName:"fuseau horaire",weekday:"jour de la semaine",year:"année"};var u9={};u9={calendar:"לוח שנה",day:"יום",dayPeriod:"לפנה״צ/אחה״צ",endDate:"תאריך סיום",era:"תקופה",hour:"שעה",minute:"דקה",month:"חודש",second:"שנייה",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.startDate} עד ${e.endDate}`,selectedTimeDescription:e=>`זמן נבחר: ${e.time}`,startDate:"תאריך התחלה",timeZoneName:"אזור זמן",weekday:"יום בשבוע",year:"שנה"};var c9={};c9={calendar:"Kalendar",day:"dan",dayPeriod:"AM/PM",endDate:"Datum završetka",era:"era",hour:"sat",minute:"minuta",month:"mjesec",second:"sekunda",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Odabrano vrijeme: ${e.time}`,startDate:"Datum početka",timeZoneName:"vremenska zona",weekday:"dan u tjednu",year:"godina"};var d9={};d9={calendar:"Naptár",day:"nap",dayPeriod:"napszak",endDate:"Befejező dátum",era:"éra",hour:"óra",minute:"perc",month:"hónap",second:"másodperc",selectedDateDescription:e=>`Kijelölt dátum: ${e.date}`,selectedRangeDescription:e=>`Kijelölt tartomány: ${e.startDate}–${e.endDate}`,selectedTimeDescription:e=>`Kijelölt idő: ${e.time}`,startDate:"Kezdő dátum",timeZoneName:"időzóna",weekday:"hét napja",year:"év"};var f9={};f9={calendar:"Calendario",day:"giorno",dayPeriod:"AM/PM",endDate:"Data finale",era:"era",hour:"ora",minute:"minuto",month:"mese",second:"secondo",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: da ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Ora selezionata: ${e.time}`,startDate:"Data iniziale",timeZoneName:"fuso orario",weekday:"giorno della settimana",year:"anno"};var h9={};h9={calendar:"カレンダー",day:"日",dayPeriod:"午前/午後",endDate:"終了日",era:"時代",hour:"時",minute:"分",month:"月",second:"秒",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.startDate} から ${e.endDate}`,selectedTimeDescription:e=>`選択した時間 : ${e.time}`,startDate:"開始日",timeZoneName:"タイムゾーン",weekday:"曜日",year:"年"};var p9={};p9={calendar:"달력",day:"일",dayPeriod:"오전/오후",endDate:"종료일",era:"연호",hour:"시",minute:"분",month:"월",second:"초",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.startDate} ~ ${e.endDate}`,selectedTimeDescription:e=>`선택 시간: ${e.time}`,startDate:"시작일",timeZoneName:"시간대",weekday:"요일",year:"년"};var m9={};m9={calendar:"Kalendorius",day:"diena",dayPeriod:"iki pietų / po pietų",endDate:"Pabaigos data",era:"era",hour:"valanda",minute:"minutė",month:"mėnuo",second:"sekundė",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: nuo ${e.startDate} iki ${e.endDate}`,selectedTimeDescription:e=>`Pasirinktas laikas: ${e.time}`,startDate:"Pradžios data",timeZoneName:"laiko juosta",weekday:"savaitės diena",year:"metai"};var g9={};g9={calendar:"Kalendārs",day:"diena",dayPeriod:"priekšpusdienā/pēcpusdienā",endDate:"Beigu datums",era:"ēra",hour:"stundas",minute:"minūtes",month:"mēnesis",second:"sekundes",selectedDateDescription:e=>`Atlasītais datums: ${e.date}`,selectedRangeDescription:e=>`Atlasītais diapazons: no ${e.startDate} līdz ${e.endDate}`,selectedTimeDescription:e=>`Atlasītais laiks: ${e.time}`,startDate:"Sākuma datums",timeZoneName:"laika josla",weekday:"nedēļas diena",year:"gads"};var v9={};v9={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Sluttdato",era:"tidsalder",hour:"time",minute:"minutt",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt område: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tid: ${e.time}`,startDate:"Startdato",timeZoneName:"tidssone",weekday:"ukedag",year:"år"};var b9={};b9={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Einddatum",era:"tijdperk",hour:"uur",minute:"minuut",month:"maand",second:"seconde",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.startDate} tot ${e.endDate}`,selectedTimeDescription:e=>`Geselecteerde tijd: ${e.time}`,startDate:"Startdatum",timeZoneName:"tijdzone",weekday:"dag van de week",year:"jaar"};var y9={};y9={calendar:"Kalendarz",day:"dzień",dayPeriod:"rano / po południu / wieczorem",endDate:"Data końcowa",era:"era",hour:"godzina",minute:"minuta",month:"miesiąc",second:"sekunda",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Wybrany czas: ${e.time}`,startDate:"Data początkowa",timeZoneName:"strefa czasowa",weekday:"dzień tygodnia",year:"rok"};var $9={};$9={calendar:"Calendário",day:"dia",dayPeriod:"AM/PM",endDate:"Data final",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data inicial",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"};var x9={};x9={calendar:"Calendário",day:"dia",dayPeriod:"am/pm",endDate:"Data de Término",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data de Início",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"};var w9={};w9={calendar:"Calendar",day:"zi",dayPeriod:"a.m/p.m.",endDate:"Dată final",era:"eră",hour:"oră",minute:"minut",month:"lună",second:"secundă",selectedDateDescription:e=>`Dată selectată: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: de la ${e.startDate} până la ${e.endDate}`,selectedTimeDescription:e=>`Ora selectată: ${e.time}`,startDate:"Dată început",timeZoneName:"fus orar",weekday:"ziua din săptămână",year:"an"};var D9={};D9={calendar:"Календарь",day:"день",dayPeriod:"AM/PM",endDate:"Дата окончания",era:"эра",hour:"час",minute:"минута",month:"месяц",second:"секунда",selectedDateDescription:e=>`Выбранная дата: ${e.date}`,selectedRangeDescription:e=>`Выбранный диапазон: с ${e.startDate} по ${e.endDate}`,selectedTimeDescription:e=>`Выбранное время: ${e.time}`,startDate:"Дата начала",timeZoneName:"часовой пояс",weekday:"день недели",year:"год"};var _9={};_9={calendar:"Kalendár",day:"deň",dayPeriod:"AM/PM",endDate:"Dátum ukončenia",era:"letopočet",hour:"hodina",minute:"minúta",month:"mesiac",second:"sekunda",selectedDateDescription:e=>`Vybratý dátum: ${e.date}`,selectedRangeDescription:e=>`Vybratý rozsah: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Vybratý čas: ${e.time}`,startDate:"Dátum začatia",timeZoneName:"časové pásmo",weekday:"deň týždňa",year:"rok"};var E9={};E9={calendar:"Koledar",day:"dan",dayPeriod:"dop/pop",endDate:"Datum konca",era:"doba",hour:"ura",minute:"minuta",month:"mesec",second:"sekunda",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano območje: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izbrani čas: ${e.time}`,startDate:"Datum začetka",timeZoneName:"časovni pas",weekday:"dan v tednu",year:"leto"};var S9={};S9={calendar:"Kalendar",day:"дан",dayPeriod:"пре подне/по подне",endDate:"Datum završetka",era:"ера",hour:"сат",minute:"минут",month:"месец",second:"секунд",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani opseg: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izabrano vreme: ${e.time}`,startDate:"Datum početka",timeZoneName:"временска зона",weekday:"дан у недељи",year:"година"};var C9={};C9={calendar:"Kalender",day:"dag",dayPeriod:"fm/em",endDate:"Slutdatum",era:"era",hour:"timme",minute:"minut",month:"månad",second:"sekund",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.startDate} till ${e.endDate}`,selectedTimeDescription:e=>`Vald tid: ${e.time}`,startDate:"Startdatum",timeZoneName:"tidszon",weekday:"veckodag",year:"år"};var k9={};k9={calendar:"Takvim",day:"gün",dayPeriod:"ÖÖ/ÖS",endDate:"Bitiş Tarihi",era:"çağ",hour:"saat",minute:"dakika",month:"ay",second:"saniye",selectedDateDescription:e=>`Seçilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Seçilen Aralık: ${e.startDate} - ${e.endDate}`,selectedTimeDescription:e=>`Seçilen Zaman: ${e.time}`,startDate:"Başlangıç Tarihi",timeZoneName:"saat dilimi",weekday:"haftanın günü",year:"yıl"};var P9={};P9={calendar:"Календар",day:"день",dayPeriod:"дп/пп",endDate:"Дата завершення",era:"ера",hour:"година",minute:"хвилина",month:"місяць",second:"секунда",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.startDate} — ${e.endDate}`,selectedTimeDescription:e=>`Вибраний час: ${e.time}`,startDate:"Дата початку",timeZoneName:"часовий пояс",weekday:"день тижня",year:"рік"};var T9={};T9={calendar:"日历",day:"日",dayPeriod:"上午/下午",endDate:"结束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`选定的时间:${e.time}`,startDate:"开始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};var R9={};R9={calendar:"日曆",day:"日",dayPeriod:"上午/下午",endDate:"結束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`選定的時間:${e.time}`,startDate:"開始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};var jf={};jf={"ar-AE":QE,"bg-BG":JE,"cs-CZ":e9,"da-DK":t9,"de-DE":n9,"el-GR":r9,"en-US":i9,"es-ES":a9,"et-EE":s9,"fi-FI":o9,"fr-FR":l9,"he-IL":u9,"hr-HR":c9,"hu-HU":d9,"it-IT":f9,"ja-JP":h9,"ko-KR":p9,"lt-LT":m9,"lv-LV":g9,"nb-NO":v9,"nl-NL":b9,"pl-PL":y9,"pt-BR":$9,"pt-PT":x9,"ro-RO":w9,"ru-RU":D9,"sk-SK":_9,"sl-SI":E9,"sr-SP":S9,"sv-SE":C9,"tr-TR":k9,"uk-UA":P9,"zh-CN":T9,"zh-TW":R9};function M9(e,t,n){let{direction:r}=Qe(),i=y.useMemo(()=>Lf(t),[t]),a=l=>{if(l.currentTarget.contains(l.target)&&(l.altKey&&(l.key==="ArrowDown"||l.key==="ArrowUp")&&"setOpen"in e&&(l.preventDefault(),l.stopPropagation(),e.setOpen(!0)),!n))switch(l.key){case"ArrowLeft":l.preventDefault(),l.stopPropagation(),r==="rtl"?i.focusNext():i.focusPrevious();break;case"ArrowRight":l.preventDefault(),l.stopPropagation(),r==="rtl"?i.focusPrevious():i.focusNext();break}},s=()=>{var l;let u=(l=window.event)===null||l===void 0?void 0:l.target,c=an(t.current,{tabbable:!0});if(u&&(c.currentNode=u,u=c.previousNode()),!u){let d;do d=c.lastChild(),d&&(u=d);while(d)}for(;u!=null&&u.hasAttribute("data-placeholder");){let d=c.previousNode();if(d&&d.hasAttribute("data-placeholder"))u=d;else break}u&&u.focus()},{pressProps:o}=x$({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(l){l.pointerType==="mouse"&&s()},onPress(l){l.pointerType!=="mouse"&&s()}});return de(o,{onKeyDown:a})}function wj(e){return e&&e.__esModule?e.default:e}const F9=new WeakMap,oc="__role_"+Date.now(),A9="__focusManager_"+Date.now();function O9(e,t,n){var r;let{isInvalid:i,validationErrors:a,validationDetails:s}=t.displayValidation,{labelProps:o,fieldProps:l,descriptionProps:u,errorMessageProps:c}=D7({...e,labelElementType:"span",isInvalid:i,errorMessage:e.errorMessage||a}),d=y.useRef(null),{focusWithinProps:f}=Ms({...e,onFocusWithin(P){var E;d.current=t.value,(E=e.onFocus)===null||E===void 0||E.call(e,P)},onBlurWithin:P=>{var E;t.confirmPlaceholder(),t.value!==d.current&&t.commitValidation(),(E=e.onBlur)===null||E===void 0||E.call(e,P)},onFocusWithinChange:e.onFocusChange}),h=Sn(wj(jf),"@react-aria/datepicker"),p=t.maxGranularity==="hour"?"selectedTimeDescription":"selectedDateDescription",g=t.maxGranularity==="hour"?"time":"date",b=t.value?h.format(p,{[g]:t.formatValue({month:"long"})}):"",v=y$(b),m=e[oc]==="presentation"?l["aria-describedby"]:[v["aria-describedby"],l["aria-describedby"]].filter(Boolean).join(" ")||void 0,$=e[A9],w=y.useMemo(()=>$||Lf(n),[$,n]),D=M9(t,n,e[oc]==="presentation");F9.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:[o.id,e["aria-labelledby"]].filter(Boolean).join(" ")||void 0,ariaDescribedBy:m,focusManager:w});let S=y.useRef(e.autoFocus),k;e[oc]==="presentation"?k={role:"presentation"}:k=de(l,{role:"group","aria-disabled":e.isDisabled||void 0,"aria-describedby":m}),y.useEffect(()=>{S.current&&w.focusFirst(),S.current=!1},[w]),RL(e.inputRef,t.value,t.setValue),KN({...e,focus(){w.focusFirst()}},t,e.inputRef);let x={type:"hidden",name:e.name,value:((r=t.value)===null||r===void 0?void 0:r.toString())||""};e.validationBehavior==="native"&&(x.type="text",x.hidden=!0,x.required=e.isRequired,x.onChange=()=>{});let T=Xt(e);return{labelProps:{...o,onClick:()=>{w.focusFirst()}},fieldProps:de(T,k,D,f,{onKeyDown(P){e.onKeyDown&&e.onKeyDown(P)},onKeyUp(P){e.onKeyUp&&e.onKeyUp(P)}}),inputProps:x,descriptionProps:u,errorMessageProps:c,isInvalid:i,validationErrors:a,validationDetails:s}}function Dj(e,t,n){var r;let i=O9(e,t,n);return i.inputProps.value=((r=t.timeValue)===null||r===void 0?void 0:r.toString())||"",i}function _j(e){return e&&e.__esModule?e.default:e}function B9(){let{locale:e}=Qe(),t=$8(_j(jf),"@react-aria/datepicker");return y.useMemo(()=>{try{return new Intl.DisplayNames(e,{type:"dateTimeField"})}catch{return new Ej(e,t)}},[e,t])}class Ej{of(t){return this.dictionary.getStringForLocale(t,this.locale)}constructor(t,n){this.locale=t,this.dictionary=n}}var I9={};I9={Empty:"فارغ"};var L9={};L9={Empty:"Изпразни"};var N9={};N9={Empty:"Prázdné"};var j9={};j9={Empty:"Tom"};var z9={};z9={Empty:"Leer"};var V9={};V9={Empty:"Άδειο"};var W9={};W9={Empty:"Empty"};var U9={};U9={Empty:"Vacío"};var H9={};H9={Empty:"Tühjenda"};var K9={};K9={Empty:"Tyhjä"};var Y9={};Y9={Empty:"Vide"};var q9={};q9={Empty:"ריק"};var G9={};G9={Empty:"Prazno"};var Z9={};Z9={Empty:"Üres"};var X9={};X9={Empty:"Vuoto"};var Q9={};Q9={Empty:"空"};var J9={};J9={Empty:"비어 있음"};var eS={};eS={Empty:"Tuščias"};var tS={};tS={Empty:"Tukšs"};var nS={};nS={Empty:"Tom"};var rS={};rS={Empty:"Leeg"};var iS={};iS={Empty:"Pusty"};var aS={};aS={Empty:"Vazio"};var sS={};sS={Empty:"Vazio"};var oS={};oS={Empty:"Gol"};var lS={};lS={Empty:"Не заполнено"};var uS={};uS={Empty:"Prázdne"};var cS={};cS={Empty:"Prazen"};var dS={};dS={Empty:"Prazno"};var fS={};fS={Empty:"Tomt"};var hS={};hS={Empty:"Boş"};var pS={};pS={Empty:"Пусто"};var mS={};mS={Empty:"空"};var gS={};gS={Empty:"空白"};var vS={};vS={"ar-AE":I9,"bg-BG":L9,"cs-CZ":N9,"da-DK":j9,"de-DE":z9,"el-GR":V9,"en-US":W9,"es-ES":U9,"et-EE":H9,"fi-FI":K9,"fr-FR":Y9,"he-IL":q9,"hr-HR":G9,"hu-HU":Z9,"it-IT":X9,"ja-JP":Q9,"ko-KR":J9,"lt-LT":eS,"lv-LV":tS,"nb-NO":nS,"nl-NL":rS,"pl-PL":iS,"pt-BR":aS,"pt-PT":sS,"ro-RO":oS,"ru-RU":lS,"sk-SK":uS,"sl-SI":cS,"sr-SP":dS,"sv-SE":fS,"tr-TR":hS,"uk-UA":pS,"zh-CN":mS,"zh-TW":gS};function Sj(e){return e&&e.__esModule?e.default:e}function Cj(e){const t=y.useRef();let{value:n,textValue:r,minValue:i,maxValue:a,isDisabled:s,isReadOnly:o,isRequired:l,onIncrement:u,onIncrementPage:c,onDecrement:d,onDecrementPage:f,onDecrementToMin:h,onIncrementToMax:p}=e;const g=Sn(Sj(vS),"@react-aria/spinbutton"),b=()=>clearTimeout(t.current);y.useEffect(()=>()=>b(),[]);let v=E=>{if(!(E.ctrlKey||E.metaKey||E.shiftKey||E.altKey||o))switch(E.key){case"PageUp":if(c){E.preventDefault(),c==null||c();break}case"ArrowUp":case"Up":u&&(E.preventDefault(),u==null||u());break;case"PageDown":if(f){E.preventDefault(),f==null||f();break}case"ArrowDown":case"Down":d&&(E.preventDefault(),d==null||d());break;case"Home":h&&(E.preventDefault(),h==null||h());break;case"End":p&&(E.preventDefault(),p==null||p());break}},m=y.useRef(!1),$=()=>{m.current=!0},w=()=>{m.current=!1},D=r===""?g.format("Empty"):(r||`${n}`).replace("-","−");y.useEffect(()=>{m.current&&(LN("assertive"),Eg(D,"assertive"))},[D]);const S=pt(E=>{b(),u==null||u(),t.current=window.setTimeout(()=>{(a===void 0||isNaN(a)||n===void 0||isNaN(n)||n<a)&&S(60)},E)}),k=pt(E=>{b(),d==null||d(),t.current=window.setTimeout(()=>{(i===void 0||isNaN(i)||n===void 0||isNaN(n)||n>i)&&k(60)},E)});let x=E=>{E.preventDefault()},{addGlobalListener:T,removeAllGlobalListeners:P}=t7();return{spinButtonProps:{role:"spinbutton","aria-valuenow":n!==void 0&&!isNaN(n)?n:void 0,"aria-valuetext":D,"aria-valuemin":i,"aria-valuemax":a,"aria-disabled":s||void 0,"aria-readonly":o||void 0,"aria-required":l||void 0,onKeyDown:v,onFocus:$,onBlur:w},incrementButtonProps:{onPressStart:()=>{S(400),T(window,"contextmenu",x)},onPressEnd:()=>{b(),P()},onFocus:$,onBlur:w},decrementButtonProps:{onPressStart:()=>{k(400),T(window,"contextmenu",x)},onPressEnd:()=>{b(),P()},onFocus:$,onBlur:w}}}function kj(e,t,n){let r=y.useRef(""),{locale:i}=Qe(),a=B9(),{ariaLabel:s,ariaLabelledBy:o,ariaDescribedBy:l,focusManager:u}=F9.get(t),c=e.isPlaceholder?"":e.text,d=y.useMemo(()=>t.dateFormatter.resolvedOptions(),[t.dateFormatter]),f=xn({month:"long",timeZone:d.timeZone}),h=xn({hour:"numeric",hour12:d.hour12,timeZone:d.timeZone});if(e.type==="month"&&!e.isPlaceholder){let C=f.format(t.dateValue);c=C!==c?`${c} – ${C}`:C}else e.type==="hour"&&!e.isPlaceholder&&(c=h.format(t.dateValue));let{spinButtonProps:p}=Cj({value:e.value,textValue:c,minValue:e.minValue,maxValue:e.maxValue,isDisabled:t.isDisabled,isReadOnly:t.isReadOnly||!e.isEditable,isRequired:t.isRequired,onIncrement:()=>{r.current="",t.increment(e.type)},onDecrement:()=>{r.current="",t.decrement(e.type)},onIncrementPage:()=>{r.current="",t.incrementPage(e.type)},onDecrementPage:()=>{r.current="",t.decrementPage(e.type)},onIncrementToMax:()=>{r.current="",t.setSegment(e.type,e.maxValue)},onDecrementToMin:()=>{r.current="",t.setSegment(e.type,e.minValue)}}),g=y.useMemo(()=>new o7(i,{maximumFractionDigits:0}),[i]),b=()=>{if(e.text===e.placeholder&&u.focusPrevious(),g.isValidPartialNumber(e.text)&&!t.isReadOnly&&!e.isPlaceholder){let C=e.text.slice(0,-1),A=g.parse(C);C=A===0?"":C,C.length===0||A===0?t.clearSegment(e.type):t.setSegment(e.type,A),r.current=C}else e.type==="dayPeriod"&&t.clearSegment(e.type)},v=C=>{if(C.key==="a"&&(xs()?C.metaKey:C.ctrlKey)&&C.preventDefault(),!(C.ctrlKey||C.metaKey||C.shiftKey||C.altKey))switch(C.key){case"Backspace":case"Delete":C.preventDefault(),C.stopPropagation(),b();break}},{startsWith:m}=VL({sensitivity:"base"}),$=xn({hour:"numeric",hour12:!0}),w=y.useMemo(()=>{let C=new Date;return C.setHours(0),$.formatToParts(C).find(A=>A.type==="dayPeriod").value},[$]),D=y.useMemo(()=>{let C=new Date;return C.setHours(12),$.formatToParts(C).find(A=>A.type==="dayPeriod").value},[$]),S=xn({year:"numeric",era:"narrow",timeZone:"UTC"}),k=y.useMemo(()=>{if(e.type!=="era")return[];let C=Oe(new Je(1,1,1),t.calendar),A=t.calendar.getEras().map(N=>{let X=C.set({year:1,month:1,day:1,era:N}).toDate("UTC"),je=S.formatToParts(X).find($e=>$e.type==="era").value;return{era:N,formatted:je}}),I=Pj(A.map(N=>N.formatted));if(I)for(let N of A)N.formatted=N.formatted.slice(I);return A},[S,t.calendar,e.type]),x=C=>{if(t.isDisabled||t.isReadOnly)return;let A=r.current+C;switch(e.type){case"dayPeriod":if(m(w,C))t.setSegment("dayPeriod",0);else if(m(D,C))t.setSegment("dayPeriod",12);else break;u.focusNext();break;case"era":{let I=k.find(N=>m(N.formatted,C));I&&(t.setSegment("era",I.era),u.focusNext());break}case"day":case"hour":case"minute":case"second":case"month":case"year":{if(!g.isValidPartialNumber(A))return;let I=g.parse(A),N=I,X=e.minValue===0;if(e.type==="hour"&&t.dateFormatter.resolvedOptions().hour12){switch(t.dateFormatter.resolvedOptions().hourCycle){case"h11":I>11&&(N=g.parse(C));break;case"h12":X=!1,I>12&&(N=g.parse(C));break}e.value>=12&&I>1&&(I+=12)}else I>e.maxValue&&(N=g.parse(C));if(isNaN(I))return;let Q=N!==0||X;Q&&t.setSegment(e.type,N),+(I+"0")>e.maxValue||A.length>=String(e.maxValue).length?(r.current="",Q&&u.focusNext()):r.current=A;break}}},T=()=>{r.current="",i7(n.current,{containingElement:Ff(n.current)}),window.getSelection().collapse(n.current)},P=y.useRef("");as(n,"beforeinput",C=>{switch(C.preventDefault(),C.inputType){case"deleteContentBackward":case"deleteContentForward":g.isValidPartialNumber(e.text)&&!t.isReadOnly&&b();break;case"insertCompositionText":P.current=n.current.textContent,n.current.textContent=n.current.textContent;break;default:C.data!=null&&x(C.data);break}}),as(n,"input",C=>{let{inputType:A,data:I}=C;switch(A){case"insertCompositionText":n.current.textContent=P.current,(m(w,I)||m(D,I))&&x(I);break}}),he(()=>{let C=n.current;return()=>{document.activeElement===C&&(u.focusPrevious()||u.focusNext())}},[n,u]);let E=Mf()||e.type==="timeZoneName"?{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuetext":null,"aria-valuenow":null}:{},F=y.useMemo(()=>t.segments.find(C=>C.isEditable),[t.segments]);e!==F&&!t.isInvalid&&(l=void 0);let R=Qn(),M=!t.isDisabled&&!t.isReadOnly&&e.isEditable,z=e.type==="literal"?"":a.of(e.type),B=jl({"aria-label":`${z}${s?`, ${s}`:""}${o?", ":""}`,"aria-labelledby":o});return e.type==="literal"?{segmentProps:{"aria-hidden":!0}}:{segmentProps:de(p,B,{id:R,...E,"aria-invalid":t.isInvalid?"true":void 0,"aria-describedby":l,"aria-readonly":t.isReadOnly||!e.isEditable?"true":void 0,"data-placeholder":e.isPlaceholder||void 0,contentEditable:M,suppressContentEditableWarning:M,spellCheck:M?"false":void 0,autoCapitalize:M?"off":void 0,autoCorrect:M?"off":void 0,[parseInt(_.version,10)>=17?"enterKeyHint":"enterkeyhint"]:M?"next":void 0,inputMode:t.isDisabled||e.type==="dayPeriod"||e.type==="era"||!M?void 0:"numeric",tabIndex:t.isDisabled?void 0:0,onKeyDown:v,onFocus:T,style:{caretColor:"transparent"},onPointerDown(C){C.stopPropagation()},onMouseDown(C){C.stopPropagation()}})}}function Pj(e){e.sort();let t=e[0],n=e[e.length-1];for(let r=0;r<t.length;r++)if(t[r]!==n[r])return r;return 0}function Tj(e){return e&&e.__esModule?e.default:e}function Rj(e,t,n){var r,i;let a=Sn(Tj(jf),"@react-aria/datepicker"),{isInvalid:s,validationErrors:o,validationDetails:l}=t.displayValidation,{labelProps:u,fieldProps:c,descriptionProps:d,errorMessageProps:f}=D7({...e,labelElementType:"span",isInvalid:s,errorMessage:e.errorMessage||o}),h=c["aria-labelledby"]||c.id,{locale:p}=Qe(),g=t.formatValue(p,{month:"long"}),b=g?a.format("selectedRangeDescription",{startDate:g.start,endDate:g.end}):"",v=y$(b),m={"aria-label":a.format("startDate"),"aria-labelledby":h},$={"aria-label":a.format("endDate"),"aria-labelledby":h},w=Qn(),D=Qn(),S=M9(t,n),k=[v["aria-describedby"],c["aria-describedby"]].filter(Boolean).join(" ")||void 0,x=y.useMemo(()=>Lf(n,{accept:M=>M.id!==w}),[n,w]),T={[A9]:x,[oc]:"presentation","aria-describedby":k,placeholderValue:e.placeholderValue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,granularity:e.granularity,shouldForceLeadingZeros:e.shouldForceLeadingZeros,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isRequired:e.isRequired,validationBehavior:e.validationBehavior},P=Xt(e),{focusWithinProps:E}=Ms({...e,isDisabled:t.isOpen,onBlurWithin:e.onBlur,onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange}),F=y.useRef(Li),R=y.useRef(Li);return{groupProps:de(P,S,c,v,E,{role:"group","aria-disabled":e.isDisabled||null,"aria-describedby":k,onKeyDown(M){t.isOpen||e.onKeyDown&&e.onKeyDown(M)},onKeyUp(M){t.isOpen||e.onKeyUp&&e.onKeyUp(M)}}),labelProps:{...u,onClick:()=>{x.focusFirst()}},buttonProps:{...v,id:w,"aria-haspopup":"dialog","aria-label":a.format("calendar"),"aria-labelledby":`${w} ${h}`,"aria-describedby":k,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:D,"aria-labelledby":`${w} ${h}`},startFieldProps:{...m,...T,value:(r=t.value)===null||r===void 0?void 0:r.start,onChange:M=>t.setDateTime("start",M),autoFocus:e.autoFocus,name:e.startName,[sd]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(M){F.current=M,t.updateValidation(od(M,R.current))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},endFieldProps:{...$,...T,value:(i=t.value)===null||i===void 0?void 0:i.end,onChange:M=>t.setDateTime("end",M),name:e.endName,[sd]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(M){R.current=M,t.updateValidation(od(F.current,M))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},descriptionProps:d,errorMessageProps:f,calendarProps:{autoFocus:!0,value:t.dateRange,onChange:t.setDateRange,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,allowsNonContiguousRanges:e.allowsNonContiguousRanges,defaultFocusedValue:t.dateRange?void 0:e.placeholderValue,isInvalid:t.isInvalid,errorMessage:typeof e.errorMessage=="function"?e.errorMessage(t.displayValidation):e.errorMessage||t.displayValidation.validationErrors.join(" ")},isInvalid:s,validationErrors:o,validationDetails:l}}function Mj(e,t){let{role:n="dialog"}=e,r=Xc();r=e["aria-label"]?void 0:r;let i=y.useRef(!1);return y.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){nd(t.current);let a=setTimeout(()=>{document.activeElement===t.current&&(i.current=!0,t.current&&(t.current.blur(),nd(t.current)),i.current=!1)},500);return()=>{clearTimeout(a)}}},[t]),ZE(),{dialogProps:{...Xt(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||r,onBlur:a=>{i.current&&a.stopPropagation()}},titleProps:{id:r}}}function os(e,t,n){return t!=null&&e.compare(t)<0||n!=null&&e.compare(n)>0}function Tg(e,t,n,r,i){let a={};for(let o in t)a[o]=Math.floor(t[o]/2),a[o]>0&&t[o]%2===0&&a[o]--;let s=Ui(e,t,n).subtract(a);return ml(e,s,t,n,r,i)}function Ui(e,t,n,r,i){let a=e;return t.years?a=gI(e):t.months?a=na(e):t.weeks&&(a=ll(e,n)),ml(e,a,t,n,r,i)}function Rg(e,t,n,r,i){let a={...t};t.days?a.days--:t.weeks?a.weeks--:t.months?a.months--:t.years&&a.years--;let s=Ui(e,t,n).subtract(a);return ml(e,s,t,n,r,i)}function ml(e,t,n,r,i,a){return i&&e.compare(i)>=0&&(t=l$(t,Ui(Zt(i),n,r))),a&&e.compare(a)<=0&&(t=o$(t,Rg(Zt(a),n,r))),t}function Fr(e,t,n){return t&&(e=l$(e,Zt(t))),n&&(e=o$(e,Zt(n))),e}function bS(e,t,n){if(!n)return e;for(;e.compare(t)>=0&&n(e);)e=e.subtract({days:1});if(e.compare(t)>=0)return e}function Fj(e){let t=y.useMemo(()=>new ri(e.locale),[e.locale]),n=y.useMemo(()=>t.resolvedOptions(),[t]),{locale:r,createCalendar:i,visibleDuration:a={months:1},minValue:s,maxValue:o,selectionAlignment:l,isDateUnavailable:u,pageBehavior:c="visible"}=e,d=y.useMemo(()=>i(n.calendar),[i,n.calendar]),[f,h]=aa(e.value,e.defaultValue,e.onChange),p=y.useMemo(()=>f?Oe(Zt(f),d):null,[f,d]),g=y.useMemo(()=>f&&"timeZone"in f?f.timeZone:n.timeZone,[f,n.timeZone]),b=y.useMemo(()=>e.focusedValue?Fr(Oe(Zt(e.focusedValue),d),s,o):void 0,[e.focusedValue,d,s,o]),v=y.useMemo(()=>Fr(e.defaultFocusedValue?Oe(Zt(e.defaultFocusedValue),d):p||Oe(Il(g),d),s,o),[e.defaultFocusedValue,p,g,d,s,o]),[m,$]=aa(b,v,e.onFocusChange),[w,D]=y.useState(()=>{switch(l){case"start":return Ui(m,a,r,s,o);case"end":return Rg(m,a,r,s,o);case"center":default:return Tg(m,a,r,s,o)}}),[S,k]=y.useState(e.autoFocus||!1),x=y.useMemo(()=>{let C={...a};return C.days?C.days--:C.days=-1,w.add(C)},[w,a]),[T,P]=y.useState(d.identifier);if(d.identifier!==T){let C=Oe(m,d);D(Tg(C,a,r,s,o)),$(C),P(d.identifier)}os(m,s,o)?$(Fr(m,s,o)):m.compare(w)<0?D(Rg(m,a,r,s,o)):m.compare(x)>0&&D(Ui(m,a,r,s,o));function E(C){C=Fr(C,s,o),$(C)}function F(C){if(!e.isDisabled&&!e.isReadOnly){if(C===null){h(null);return}if(C=Fr(C,s,o),C=bS(C,w,u),!C)return;C=Oe(C,(f==null?void 0:f.calendar)||new Ft),f&&"hour"in f?h(f.set(C)):h(C)}}let R=y.useMemo(()=>p?u&&u(p)?!0:os(p,s,o):!1,[p,u,s,o]),M=e.isInvalid||e.validationState==="invalid"||R,z=M?"invalid":null,B=y.useMemo(()=>c==="visible"?a:Gh(a),[c,a]);return{isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,value:p,setValue:F,visibleRange:{start:w,end:x},minValue:s,maxValue:o,focusedDate:m,timeZone:g,validationState:z,isValueInvalid:M,setFocusedDate(C){E(C),k(!0)},focusNextDay(){E(m.add({days:1}))},focusPreviousDay(){E(m.subtract({days:1}))},focusNextRow(){a.days?this.focusNextPage():(a.weeks||a.months||a.years)&&E(m.add({weeks:1}))},focusPreviousRow(){a.days?this.focusPreviousPage():(a.weeks||a.months||a.years)&&E(m.subtract({weeks:1}))},focusNextPage(){let C=w.add(B);$(Fr(m.add(B),s,o)),D(Ui(ml(m,C,B,r,s,o),B,r))},focusPreviousPage(){let C=w.subtract(B);$(Fr(m.subtract(B),s,o)),D(Ui(ml(m,C,B,r,s,o),B,r))},focusSectionStart(){a.days?E(w):a.weeks?E(ll(m,r)):(a.months||a.years)&&E(na(m))},focusSectionEnd(){a.days?E(x):a.weeks?E(yI(m,r)):(a.months||a.years)&&E(Uc(m))},focusNextSection(C){if(!C&&!a.days){E(m.add(Gh(a)));return}a.days?this.focusNextPage():a.weeks?E(m.add({months:1})):(a.months||a.years)&&E(m.add({years:1}))},focusPreviousSection(C){if(!C&&!a.days){E(m.subtract(Gh(a)));return}a.days?this.focusPreviousPage():a.weeks?E(m.subtract({months:1})):(a.months||a.years)&&E(m.subtract({years:1}))},selectFocusedDate(){F(m)},selectDate(C){F(C)},isFocused:S,setFocused:k,isInvalid(C){return os(C,s,o)},isSelected(C){return p!=null&&Ze(C,p)&&!this.isCellDisabled(C)&&!this.isCellUnavailable(C)},isCellFocused(C){return S&&m&&Ze(C,m)},isCellDisabled(C){return e.isDisabled||C.compare(w)<0||C.compare(x)>0||this.isInvalid(C,s,o)},isCellUnavailable(C){return e.isDateUnavailable&&e.isDateUnavailable(C)},isPreviousVisibleRangeInvalid(){let C=w.subtract({days:1});return Ze(C,w)||this.isInvalid(C,s,o)},isNextVisibleRangeInvalid(){let C=x.add({days:1});return Ze(C,x)||this.isInvalid(C,s,o)},getDatesInWeek(C,A=w){let I=A.add({weeks:C}),N=[];I=ll(I,r);let X=kf(I,r);for(let Q=0;Q<X;Q++)N.push(null);for(;N.length<7;){N.push(I);let Q=I.add({days:1});if(Ze(I,Q))break;I=Q}for(;N.length<7;)N.push(null);return N}}}function Gh(e){let t={...e};for(let n in e)t[n]=1;return t}function Aj(e){let{value:t,defaultValue:n,onChange:r,createCalendar:i,locale:a,visibleDuration:s={months:1},minValue:o,maxValue:l,...u}=e,[c,d]=aa(t,n||null,r),[f,h]=y.useState(null),p="center";if(c&&c.start&&c.end){let A=Tg(Zt(c.start),s,a,o,l).add(s).subtract({days:1});c.end.compare(A)>0&&(p="start")}let g=y.useRef(null),[b,v]=y.useState(null),m=y.useMemo(()=>l$(o,b==null?void 0:b.start),[o,b]),$=y.useMemo(()=>o$(l,b==null?void 0:b.end),[l,b]),w=Fj({...u,value:c&&c.start,createCalendar:i,locale:a,visibleDuration:s,minValue:m,maxValue:$,selectionAlignment:p}),D=C=>{C&&e.isDateUnavailable&&!e.allowsNonContiguousRanges?(g.current={start:k5(C,w,-1),end:k5(C,w,1)},v(g.current)):(g.current=null,v(null))},[S,k]=y.useState(w.visibleRange);(!ag(w.visibleRange.start,S.start)||!ag(w.visibleRange.end,S.end))&&(D(f),k(w.visibleRange));let x=C=>{C?(h(C),D(C)):(h(null),D(null))},T=f?Zh(f,w.focusedDate):c&&Zh(c.start,c.end),P=C=>{if(!e.isReadOnly&&(C=Fr(C,m,$),C=bS(C,w.visibleRange.start,e.isDateUnavailable),!!C))if(!f)x(C);else{let A=Zh(f,C);d({start:C5(A.start,c==null?void 0:c.start),end:C5(A.end,c==null?void 0:c.end)}),x(null)}},[E,F]=y.useState(!1),{isDateUnavailable:R}=e,M=y.useMemo(()=>!c||f?!1:R&&(R(c.start)||R(c.end))?!0:os(c.start,o,l)||os(c.end,o,l),[R,c,f,o,l]),z=e.isInvalid||e.validationState==="invalid"||M;return{...w,value:c,setValue:d,anchorDate:f,setAnchorDate:x,highlightedRange:T,validationState:z?"invalid":null,isValueInvalid:z,selectFocusedDate(){P(w.focusedDate)},selectDate:P,highlightDate(C){f&&w.setFocusedDate(C)},isSelected(C){return T&&C.compare(T.start)>=0&&C.compare(T.end)<=0&&!w.isCellDisabled(C)&&!w.isCellUnavailable(C)},isInvalid(C){var A,I;return w.isInvalid(C)||os(C,(A=g.current)===null||A===void 0?void 0:A.start,(I=g.current)===null||I===void 0?void 0:I.end)},isDragging:E,setDragging:F}}function Zh(e,t){return!e||!t?null:(t.compare(e)<0&&([e,t]=[t,e]),{start:Zt(e),end:Zt(t)})}function C5(e,t){return e=Oe(e,(t==null?void 0:t.calendar)||new Ft),t&&"hour"in t?t.set(e):e}function k5(e,t,n){let r=e.add({days:n});for(;(n<0?r.compare(t.visibleRange.start)>=0:r.compare(t.visibleRange.end)<=0)&&!t.isCellUnavailable(r);)r=r.add({days:n});return t.isCellUnavailable(r)?r.add({days:-n}):null}function yS(e){let[t,n]=aa(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const r=y.useCallback(()=>{n(!0)},[n]),i=y.useCallback(()=>{n(!1)},[n]),a=y.useCallback(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:r,close:i,toggle:a}}var $S={};$S={rangeOverflow:e=>`يجب أن تكون القيمة ${e.maxValue} أو قبل ذلك.`,rangeReversed:"تاريخ البدء يجب أن يكون قبل تاريخ الانتهاء.",rangeUnderflow:e=>`يجب أن تكون القيمة ${e.minValue} أو بعد ذلك.`,unavailableDate:"البيانات المحددة غير متاحة."};var xS={};xS={rangeOverflow:e=>`Стойността трябва да е ${e.maxValue} или по-ранна.`,rangeReversed:"Началната дата трябва да е преди крайната.",rangeUnderflow:e=>`Стойността трябва да е ${e.minValue} или по-късно.`,unavailableDate:"Избраната дата не е налична."};var wS={};wS={rangeOverflow:e=>`Hodnota musí být ${e.maxValue} nebo dřívější.`,rangeReversed:"Datum zahájení musí předcházet datu ukončení.",rangeUnderflow:e=>`Hodnota musí být ${e.minValue} nebo pozdější.`,unavailableDate:"Vybrané datum není k dispozici."};var DS={};DS={rangeOverflow:e=>`Værdien skal være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen skal være før slutdatoen.",rangeUnderflow:e=>`Værdien skal være ${e.minValue} eller nyere.`,unavailableDate:"Den valgte dato er ikke tilgængelig."};var _S={};_S={rangeOverflow:e=>`Der Wert muss ${e.maxValue} oder früher sein.`,rangeReversed:"Das Anfangsdatum muss vor dem Enddatum liegen.",rangeUnderflow:e=>`Der Wert muss ${e.minValue} oder später sein.`,unavailableDate:"Das ausgewählte Datum ist nicht verfügbar."};var ES={};ES={rangeOverflow:e=>`Η τιμή πρέπει να είναι ${e.maxValue} ή παλαιότερη.`,rangeReversed:"Η ημερομηνία έναρξης πρέπει να είναι πριν από την ημερομηνία λήξης.",rangeUnderflow:e=>`Η τιμή πρέπει να είναι ${e.minValue} ή μεταγενέστερη.`,unavailableDate:"Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη."};var SS={};SS={rangeUnderflow:e=>`Value must be ${e.minValue} or later.`,rangeOverflow:e=>`Value must be ${e.maxValue} or earlier.`,rangeReversed:"Start date must be before end date.",unavailableDate:"Selected date unavailable."};var CS={};CS={rangeOverflow:e=>`El valor debe ser ${e.maxValue} o anterior.`,rangeReversed:"La fecha de inicio debe ser anterior a la fecha de finalización.",rangeUnderflow:e=>`El valor debe ser ${e.minValue} o posterior.`,unavailableDate:"Fecha seleccionada no disponible."};var kS={};kS={rangeOverflow:e=>`Väärtus peab olema ${e.maxValue} või varasem.`,rangeReversed:"Alguskuupäev peab olema enne lõppkuupäeva.",rangeUnderflow:e=>`Väärtus peab olema ${e.minValue} või hilisem.`,unavailableDate:"Valitud kuupäev pole saadaval."};var PS={};PS={rangeOverflow:e=>`Arvon on oltava ${e.maxValue} tai sitä aikaisempi.`,rangeReversed:"Aloituspäivän on oltava ennen lopetuspäivää.",rangeUnderflow:e=>`Arvon on oltava ${e.minValue} tai sitä myöhäisempi.`,unavailableDate:"Valittu päivämäärä ei ole käytettävissä."};var TS={};TS={rangeOverflow:e=>`La valeur doit être ${e.maxValue} ou antérieure.`,rangeReversed:"La date de début doit être antérieure à la date de fin.",rangeUnderflow:e=>`La valeur doit être ${e.minValue} ou ultérieure.`,unavailableDate:"La date sélectionnée n’est pas disponible."};var RS={};RS={rangeOverflow:e=>`הערך חייב להיות ${e.maxValue} או מוקדם יותר.`,rangeReversed:"תאריך ההתחלה חייב להיות לפני תאריך הסיום.",rangeUnderflow:e=>`הערך חייב להיות ${e.minValue} או מאוחר יותר.`,unavailableDate:"התאריך הנבחר אינו זמין."};var MS={};MS={rangeOverflow:e=>`Vrijednost mora biti ${e.maxValue} ili ranije.`,rangeReversed:"Datum početka mora biti prije datuma završetka.",rangeUnderflow:e=>`Vrijednost mora biti ${e.minValue} ili kasnije.`,unavailableDate:"Odabrani datum nije dostupan."};var FS={};FS={rangeOverflow:e=>`Az értéknek ${e.maxValue} vagy korábbinak kell lennie.`,rangeReversed:"A kezdő dátumnak a befejező dátumnál korábbinak kell lennie.",rangeUnderflow:e=>`Az értéknek ${e.minValue} vagy későbbinek kell lennie.`,unavailableDate:"A kiválasztott dátum nem érhető el."};var AS={};AS={rangeOverflow:e=>`Il valore deve essere ${e.maxValue} o precedente.`,rangeReversed:"La data di inizio deve essere antecedente alla data di fine.",rangeUnderflow:e=>`Il valore deve essere ${e.minValue} o successivo.`,unavailableDate:"Data selezionata non disponibile."};var OS={};OS={rangeOverflow:e=>`値は ${e.maxValue} 以下にする必要があります。`,rangeReversed:"開始日は終了日より前にする必要があります。",rangeUnderflow:e=>`値は ${e.minValue} 以上にする必要があります。`,unavailableDate:"選択した日付は使用できません。"};var BS={};BS={rangeOverflow:e=>`값은 ${e.maxValue} 이전이어야 합니다.`,rangeReversed:"시작일은 종료일 이전이어야 합니다.",rangeUnderflow:e=>`값은 ${e.minValue} 이상이어야 합니다.`,unavailableDate:"선택한 날짜를 사용할 수 없습니다."};var IS={};IS={rangeOverflow:e=>`Reikšmė turi būti ${e.maxValue} arba ankstesnė.`,rangeReversed:"Pradžios data turi būti ankstesnė nei pabaigos data.",rangeUnderflow:e=>`Reikšmė turi būti ${e.minValue} arba naujesnė.`,unavailableDate:"Pasirinkta data nepasiekiama."};var LS={};LS={rangeOverflow:e=>`Vērtībai ir jābūt ${e.maxValue} vai agrākai.`,rangeReversed:"Sākuma datumam ir jābūt pirms beigu datuma.",rangeUnderflow:e=>`Vērtībai ir jābūt ${e.minValue} vai vēlākai.`,unavailableDate:"Atlasītais datums nav pieejams."};var NS={};NS={rangeOverflow:e=>`Verdien må være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen må være før sluttdatoen.",rangeUnderflow:e=>`Verdien må være ${e.minValue} eller senere.`,unavailableDate:"Valgt dato utilgjengelig."};var jS={};jS={rangeOverflow:e=>`Waarde moet ${e.maxValue} of eerder zijn.`,rangeReversed:"De startdatum moet voor de einddatum liggen.",rangeUnderflow:e=>`Waarde moet ${e.minValue} of later zijn.`,unavailableDate:"Geselecteerde datum niet beschikbaar."};var zS={};zS={rangeOverflow:e=>`Wartość musi mieć wartość ${e.maxValue} lub wcześniejszą.`,rangeReversed:"Data rozpoczęcia musi być wcześniejsza niż data zakończenia.",rangeUnderflow:e=>`Wartość musi mieć wartość ${e.minValue} lub późniejszą.`,unavailableDate:"Wybrana data jest niedostępna."};var VS={};VS={rangeOverflow:e=>`O valor deve ser ${e.maxValue} ou anterior.`,rangeReversed:"A data inicial deve ser anterior à data final.",rangeUnderflow:e=>`O valor deve ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."};var WS={};WS={rangeOverflow:e=>`O valor tem de ser ${e.maxValue} ou anterior.`,rangeReversed:"A data de início deve ser anterior à data de fim.",rangeUnderflow:e=>`O valor tem de ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."};var US={};US={rangeOverflow:e=>`Valoarea trebuie să fie ${e.maxValue} sau anterioară.`,rangeReversed:"Data de început trebuie să fie anterioară datei de sfârșit.",rangeUnderflow:e=>`Valoarea trebuie să fie ${e.minValue} sau ulterioară.`,unavailableDate:"Data selectată nu este disponibilă."};var HS={};HS={rangeOverflow:e=>`Значение должно быть не позже ${e.maxValue}.`,rangeReversed:"Дата начала должна предшествовать дате окончания.",rangeUnderflow:e=>`Значение должно быть не раньше ${e.minValue}.`,unavailableDate:"Выбранная дата недоступна."};var KS={};KS={rangeOverflow:e=>`Hodnota musí byť ${e.maxValue} alebo skoršia.`,rangeReversed:"Dátum začiatku musí byť skorší ako dátum konca.",rangeUnderflow:e=>`Hodnota musí byť ${e.minValue} alebo neskoršia.`,unavailableDate:"Vybratý dátum je nedostupný."};var YS={};YS={rangeOverflow:e=>`Vrednost mora biti ${e.maxValue} ali starejša.`,rangeReversed:"Začetni datum mora biti pred končnim datumom.",rangeUnderflow:e=>`Vrednost mora biti ${e.minValue} ali novejša.`,unavailableDate:"Izbrani datum ni na voljo."};var qS={};qS={rangeOverflow:e=>`Vrednost mora da bude ${e.maxValue} ili starija.`,rangeReversed:"Datum početka mora biti pre datuma završetka.",rangeUnderflow:e=>`Vrednost mora da bude ${e.minValue} ili novija.`,unavailableDate:"Izabrani datum nije dostupan."};var GS={};GS={rangeOverflow:e=>`Värdet måste vara ${e.maxValue} eller tidigare.`,rangeReversed:"Startdatumet måste vara före slutdatumet.",rangeUnderflow:e=>`Värdet måste vara ${e.minValue} eller senare.`,unavailableDate:"Det valda datumet är inte tillgängligt."};var ZS={};ZS={rangeOverflow:e=>`Değer, ${e.maxValue} veya öncesi olmalıdır.`,rangeReversed:"Başlangıç tarihi bitiş tarihinden önce olmalıdır.",rangeUnderflow:e=>`Değer, ${e.minValue} veya sonrası olmalıdır.`,unavailableDate:"Seçilen tarih kullanılamıyor."};var XS={};XS={rangeOverflow:e=>`Значення має бути не пізніше ${e.maxValue}.`,rangeReversed:"Дата початку має передувати даті завершення.",rangeUnderflow:e=>`Значення має бути не раніше ${e.minValue}.`,unavailableDate:"Вибрана дата недоступна."};var QS={};QS={rangeOverflow:e=>`值必须是 ${e.maxValue} 或更早日期。`,rangeReversed:"开始日期必须早于结束日期。",rangeUnderflow:e=>`值必须是 ${e.minValue} 或更晚日期。`,unavailableDate:"所选日期不可用。"};var JS={};JS={rangeOverflow:e=>`值必須是 ${e.maxValue} 或更早。`,rangeReversed:"開始日期必須在結束日期之前。",rangeUnderflow:e=>`值必須是 ${e.minValue} 或更晚。`,unavailableDate:"所選日期無法使用。"};var eC={};eC={"ar-AE":$S,"bg-BG":xS,"cs-CZ":wS,"da-DK":DS,"de-DE":_S,"el-GR":ES,"en-US":SS,"es-ES":CS,"et-EE":kS,"fi-FI":PS,"fr-FR":TS,"he-IL":RS,"hr-HR":MS,"hu-HU":FS,"it-IT":AS,"ja-JP":OS,"ko-KR":BS,"lt-LT":IS,"lv-LV":LS,"nb-NO":NS,"nl-NL":jS,"pl-PL":zS,"pt-BR":VS,"pt-PT":WS,"ro-RO":US,"ru-RU":HS,"sk-SK":KS,"sl-SI":YS,"sr-SP":qS,"sv-SE":GS,"tr-TR":ZS,"uk-UA":XS,"zh-CN":QS,"zh-TW":JS};function Oj(e){return e&&e.__esModule?e.default:e}const tC=new mi(Oj(eC));function nC(){return typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US"}function Mg(e,t,n,r,i){let a=e!=null&&n!=null&&e.compare(n)>0,s=e!=null&&t!=null&&e.compare(t)<0,o=e!=null&&(r==null?void 0:r(e))||!1,l=a||s||o,u=[];if(l){let c=nC(),d=mi.getGlobalDictionaryForPackage("@react-stately/datepicker")||tC,f=new y8(c,d),h=new ri(c,gl({},i)),p=h.resolvedOptions().timeZone;s&&u.push(f.format("rangeUnderflow",{minValue:h.format(t.toDate(p))})),a&&u.push(f.format("rangeOverflow",{maxValue:h.format(n.toDate(p))})),o&&u.push(f.format("unavailableDate"))}return{isInvalid:l,validationErrors:u,validationDetails:{badInput:o,customError:!1,patternMismatch:!1,rangeOverflow:a,rangeUnderflow:s,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!l}}}function Bj(e,t,n,r,i){let a=Mg(e==null?void 0:e.start,t,n,r,i),s=Mg(e==null?void 0:e.end,t,n,r,i),o=od(a,s);if(e.end!=null&&e.start!=null&&e.end.compare(e.start)<0){let l=mi.getGlobalDictionaryForPackage("@react-stately/datepicker")||tC;o=od(o,{isInvalid:!0,validationErrors:[l.getStringForLocale("rangeReversed",nC())],validationDetails:{...Nf,rangeUnderflow:!0,rangeOverflow:!0,valid:!1}})}return o}const Ij={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},Lj={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function gl(e,t){e={...t.shouldForceLeadingZeros?Lj:Ij,...e};let r=t.granularity||"minute",i=Object.keys(e);var a;let s=i.indexOf((a=t.maxGranularity)!==null&&a!==void 0?a:"year");s<0&&(s=0);let o=i.indexOf(r);if(o<0&&(o=2),s>o)throw new Error("maxGranularity must be greater than granularity");let l=i.slice(s,o+1).reduce((c,d)=>(c[d]=e[d],c),{});return t.hourCycle!=null&&(l.hour12=t.hourCycle===12),l.timeZone=t.timeZone||"UTC",(r==="hour"||r==="minute"||r==="second")&&t.timeZone&&!t.hideTimeZone&&(l.timeZoneName="short"),t.showEra&&s===0&&(l.era="short"),l}function Eu(e){return e&&"hour"in e?e:new Nl}function rC(e,t){if(e===null)return null;if(e)return Oe(e,t)}function qs(e,t,n,r){if(e)return rC(e,n);let i=Oe(D8(r).set({hour:0,minute:0,second:0,millisecond:0}),n);return t==="year"||t==="month"||t==="day"?Zt(i):r?i:Xn(i)}function iC(e,t){let n=e&&"timeZone"in e?e.timeZone:void 0,r=e&&"minute"in e?"minute":"day";if(e&&t&&!(t in e))throw new Error("Invalid granularity "+t+" for value "+e.toString());let[i,a]=y.useState([r,n]);e&&(i[0]!==r||i[1]!==n)&&a([r,n]),t||(t=e?r:i[0]);let s=e?n:i[1];return[t,s]}const Nj=new mi({ach:{year:"mwaka",month:"dwe",day:"nino"},af:{year:"jjjj",month:"mm",day:"dd"},am:{year:"ዓዓዓዓ",month:"ሚሜ",day:"ቀቀ"},an:{year:"aaaa",month:"mm",day:"dd"},ar:{year:"سنة",month:"شهر",day:"يوم"},ast:{year:"aaaa",month:"mm",day:"dd"},az:{year:"iiii",month:"aa",day:"gg"},be:{year:"гггг",month:"мм",day:"дд"},bg:{year:"гггг",month:"мм",day:"дд"},bn:{year:"yyyy",month:"মিমি",day:"dd"},br:{year:"bbbb",month:"mm",day:"dd"},bs:{year:"gggg",month:"mm",day:"dd"},ca:{year:"aaaa",month:"mm",day:"dd"},cak:{year:"jjjj",month:"ii",day:"q'q'"},ckb:{year:"ساڵ",month:"مانگ",day:"ڕۆژ"},cs:{year:"rrrr",month:"mm",day:"dd"},cy:{year:"bbbb",month:"mm",day:"dd"},da:{year:"åååå",month:"mm",day:"dd"},de:{year:"jjjj",month:"mm",day:"tt"},dsb:{year:"llll",month:"mm",day:"źź"},el:{year:"εεεε",month:"μμ",day:"ηη"},en:{year:"yyyy",month:"mm",day:"dd"},eo:{year:"jjjj",month:"mm",day:"tt"},es:{year:"aaaa",month:"mm",day:"dd"},et:{year:"aaaa",month:"kk",day:"pp"},eu:{year:"uuuu",month:"hh",day:"ee"},fa:{year:"سال",month:"ماه",day:"روز"},ff:{year:"hhhh",month:"ll",day:"ññ"},fi:{year:"vvvv",month:"kk",day:"pp"},fr:{year:"aaaa",month:"mm",day:"jj"},fy:{year:"jjjj",month:"mm",day:"dd"},ga:{year:"bbbb",month:"mm",day:"ll"},gd:{year:"bbbb",month:"mm",day:"ll"},gl:{year:"aaaa",month:"mm",day:"dd"},he:{year:"שנה",month:"חודש",day:"יום"},hr:{year:"gggg",month:"mm",day:"dd"},hsb:{year:"llll",month:"mm",day:"dd"},hu:{year:"éééé",month:"hh",day:"nn"},ia:{year:"aaaa",month:"mm",day:"dd"},id:{year:"tttt",month:"bb",day:"hh"},it:{year:"aaaa",month:"mm",day:"gg"},ja:{year:" 年 ",month:"月",day:"日"},ka:{year:"წწწწ",month:"თთ",day:"რრ"},kk:{year:"жжжж",month:"аа",day:"кк"},kn:{year:"ವವವವ",month:"ಮಿಮೀ",day:"ದಿದಿ"},ko:{year:"연도",month:"월",day:"일"},lb:{year:"jjjj",month:"mm",day:"dd"},lo:{year:"ປປປປ",month:"ດດ",day:"ວວ"},lt:{year:"mmmm",month:"mm",day:"dd"},lv:{year:"gggg",month:"mm",day:"dd"},meh:{year:"aaaa",month:"mm",day:"dd"},ml:{year:"വർഷം",month:"മാസം",day:"തീയതി"},ms:{year:"tttt",month:"mm",day:"hh"},nl:{year:"jjjj",month:"mm",day:"dd"},nn:{year:"åååå",month:"mm",day:"dd"},no:{year:"åååå",month:"mm",day:"dd"},oc:{year:"aaaa",month:"mm",day:"jj"},pl:{year:"rrrr",month:"mm",day:"dd"},pt:{year:"aaaa",month:"mm",day:"dd"},rm:{year:"oooo",month:"mm",day:"dd"},ro:{year:"aaaa",month:"ll",day:"zz"},ru:{year:"гггг",month:"мм",day:"дд"},sc:{year:"aaaa",month:"mm",day:"dd"},scn:{year:"aaaa",month:"mm",day:"jj"},sk:{year:"rrrr",month:"mm",day:"dd"},sl:{year:"llll",month:"mm",day:"dd"},sr:{year:"гггг",month:"мм",day:"дд"},sv:{year:"åååå",month:"mm",day:"dd"},szl:{year:"rrrr",month:"mm",day:"dd"},tg:{year:"сссс",month:"мм",day:"рр"},th:{year:"ปปปป",month:"ดด",day:"วว"},tr:{year:"yyyy",month:"aa",day:"gg"},uk:{year:"рррр",month:"мм",day:"дд"},"zh-CN":{year:"年",month:"月",day:"日"},"zh-TW":{year:"年",month:"月",day:"日"}},"en");function jj(e,t,n){return e==="era"||e==="dayPeriod"?t:e==="year"||e==="month"||e==="day"?Nj.getStringForLocale(e,n):"––"}const Su={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,era:!0},P5={year:5,month:2,day:7,hour:2,minute:15,second:15},zj={dayperiod:"dayPeriod"};function aC(e){let{locale:t,createCalendar:n,hideTimeZone:r,isDisabled:i,isReadOnly:a,isRequired:s,minValue:o,maxValue:l,isDateUnavailable:u}=e,c=e.value||e.defaultValue||e.placeholderValue,[d,f]=iC(c,e.granularity),h=f||"UTC";if(c&&!(d in c))throw new Error("Invalid granularity "+d+" for value "+c.toString());let p=y.useMemo(()=>new ri(t),[t]),g=y.useMemo(()=>n(p.resolvedOptions().calendar),[n,p]),[b,v]=aa(e.value,e.defaultValue,e.onChange),m=y.useMemo(()=>rC(b,g),[b,g]),[$,w]=y.useState(()=>qs(e.placeholderValue,d,g,f)),D=m||$,S=g.identifier==="gregory"&&D.era==="BC",k=y.useMemo(()=>{var W;return{granularity:d,maxGranularity:(W=e.maxGranularity)!==null&&W!==void 0?W:"year",timeZone:f,hideTimeZone:r,hourCycle:e.hourCycle,showEra:S,shouldForceLeadingZeros:e.shouldForceLeadingZeros}},[e.maxGranularity,d,e.hourCycle,e.shouldForceLeadingZeros,f,r,S]),x=y.useMemo(()=>gl({},k),[k]),T=y.useMemo(()=>new ri(t,x),[t,x]),P=y.useMemo(()=>T.resolvedOptions(),[T]),E=y.useMemo(()=>T.formatToParts(new Date).filter(W=>Su[W.type]).reduce((W,Ce)=>(W[Ce.type]=!0,W),{}),[T]),[F,R]=y.useState(()=>e.value||e.defaultValue?{...E}:{}),M=y.useRef(),z=y.useRef(g.identifier);y.useEffect(()=>{g.identifier!==z.current&&(z.current=g.identifier,w(W=>Object.keys(F).length>0?Oe(W,g):qs(e.placeholderValue,d,g,f)))},[g,d,F,f,e.placeholderValue]),b&&Object.keys(F).length<Object.keys(E).length&&(F={...E},R(F)),b==null&&Object.keys(F).length===Object.keys(E).length&&(F={},R(F),w(qs(e.placeholderValue,d,g,f)));let B=m&&Object.keys(F).length>=Object.keys(E).length?m:$,C=W=>{if(e.isDisabled||e.isReadOnly)return;let Ce=Object.keys(F),et=Object.keys(E);W==null?(v(null),w(qs(e.placeholderValue,d,g,f)),R({})):Ce.length>=et.length||Ce.length===et.length-1&&E.dayPeriod&&!F.dayPeriod&&M.current!=="dayPeriod"?(W=Oe(W,(c==null?void 0:c.calendar)||new Ft),v(W)):w(W),M.current=null},A=y.useMemo(()=>B.toDate(h),[B,h]),I=y.useMemo(()=>T.formatToParts(A).map(W=>{let Ce=Su[W.type];W.type==="era"&&g.getEras().length===1&&(Ce=!1);let et=Su[W.type]&&!F[W.type],yt=Su[W.type]?jj(W.type,W.value,t):null;return{type:zj[W.type]||W.type,text:et?yt:W.value,...Vj(B,W.type,P),isPlaceholder:et,placeholder:yt,isEditable:Ce}}),[A,F,T,P,B,g,t]);E.era&&F.year&&!F.era?(F.era=!0,R({...F})):!E.era&&F.era&&(delete F.era,R({...F}));let N=W=>{F[W]=!0,W==="year"&&E.era&&(F.era=!0),R({...F})},X=(W,Ce)=>{if(F[W])C(Wj(B,W,Ce,P));else{N(W);let et=Object.keys(F),yt=Object.keys(E);(et.length>=yt.length||et.length===yt.length-1&&E.dayPeriod&&!F.dayPeriod)&&C(B)}},Q=y.useMemo(()=>Mg(b,o,l,u,k),[b,o,l,u,k]),je=lE({...e,value:b,builtinValidation:Q}),$e=je.displayValidation.isInvalid,lt=e.validationState||($e?"invalid":null);var xe;return{...je,value:m,dateValue:A,calendar:g,setValue:C,segments:I,dateFormatter:T,validationState:lt,isInvalid:$e,granularity:d,maxGranularity:(xe=e.maxGranularity)!==null&&xe!==void 0?xe:"year",isDisabled:i,isReadOnly:a,isRequired:s,increment(W){X(W,1)},decrement(W){X(W,-1)},incrementPage(W){X(W,P5[W]||1)},decrementPage(W){X(W,-(P5[W]||1))},setSegment(W,Ce){N(W),C(Uj(B,W,Ce,P))},confirmPlaceholder(){if(e.isDisabled||e.isReadOnly)return;let W=Object.keys(F),Ce=Object.keys(E);W.length===Ce.length-1&&E.dayPeriod&&!F.dayPeriod&&(F={...E},R(F),C(B.copy()))},clearSegment(W){delete F[W],M.current=W,R({...F});let Ce=qs(e.placeholderValue,d,g,f),et=B;if(W==="dayPeriod"&&"hour"in B&&"hour"in Ce){let yt=B.hour>=12,ut=Ce.hour>=12;yt&&!ut?et=B.set({hour:B.hour-12}):!yt&&ut&&(et=B.set({hour:B.hour+12}))}else W in B&&(et=B.set({[W]:Ce[W]}));v(null),C(et)},formatValue(W){if(!m)return"";let Ce=gl(W,k);return new ri(t,Ce).format(A)}}}function Vj(e,t,n){switch(t){case"era":{let r=e.calendar.getEras();return{value:r.indexOf(e.era),minValue:0,maxValue:r.length-1}}case"year":return{value:e.year,minValue:1,maxValue:e.calendar.getYearsInEra(e)};case"month":return{value:e.month,minValue:vI(e),maxValue:e.calendar.getMonthsInYear(e)};case"day":return{value:e.day,minValue:bI(e),maxValue:e.calendar.getDaysInMonth(e)}}if("hour"in e)switch(t){case"dayPeriod":return{value:e.hour>=12?12:0,minValue:0,maxValue:12};case"hour":if(n.hour12){let r=e.hour>=12;return{value:e.hour,minValue:r?12:0,maxValue:r?23:11}}return{value:e.hour,minValue:0,maxValue:23};case"minute":return{value:e.minute,minValue:0,maxValue:59};case"second":return{value:e.second,minValue:0,maxValue:59}}return{}}function Wj(e,t,n,r){switch(t){case"era":case"year":case"month":case"day":return e.cycle(t,n,{round:t==="year"})}if("hour"in e)switch(t){case"dayPeriod":{let i=e.hour,a=i>=12;return e.set({hour:a?i-12:i+12})}case"hour":case"minute":case"second":return e.cycle(t,n,{round:t!=="hour",hourCycle:r.hour12?12:24})}}function Uj(e,t,n,r){switch(t){case"day":case"month":case"year":case"era":return e.set({[t]:n})}if("hour"in e)switch(t){case"dayPeriod":{let i=e.hour,a=i>=12;return n>=12===a?e:e.set({hour:a?i-12:i+12})}case"hour":if(r.hour12){let a=e.hour>=12;!a&&n===12&&(n=0),a&&n<12&&(n+=12)}case"minute":case"second":return e.set({[t]:n})}}function Hj(e){var t,n;let r=yS(e),[i,a]=aa(e.value,e.defaultValue||null,e.onChange),[s,o]=y.useState(()=>i||{start:null,end:null});i==null&&s.start&&s.end&&(s={start:null,end:null},o(s));let l=i||s,u=B=>{o(B||{start:null,end:null}),B!=null&&B.start&&B.end?a(B):a(null)},c=(l==null?void 0:l.start)||(l==null?void 0:l.end)||e.placeholderValue,[d,f]=iC(c,e.granularity),h=d==="hour"||d==="minute"||d==="second";var p;let g=(p=e.shouldCloseOnSelect)!==null&&p!==void 0?p:!0,[b,v]=y.useState(null),[m,$]=y.useState(null);l&&l.start&&l.end&&(b=l,"hour"in l.start&&(m=l));let w=(B,C)=>{u({start:"timeZone"in C.start?C.start.set(Zt(B.start)):Xn(B.start,C.start),end:"timeZone"in C.end?C.end.set(Zt(B.end)):Xn(B.end,C.end)}),v(null),$(null),R.commitValidation()},D=B=>{let C=typeof g=="function"?g():g;h?C||B.start&&B.end&&(m!=null&&m.start)&&(m!=null&&m.end)?w(B,{start:(m==null?void 0:m.start)||Eu(e.placeholderValue),end:(m==null?void 0:m.end)||Eu(e.placeholderValue)}):v(B):B.start&&B.end?(u(B),R.commitValidation()):v(B),C&&r.setOpen(!1)},S=B=>{b!=null&&b.start&&(b!=null&&b.end)&&B.start&&B.end?w(b,B):$(B)},k=(l==null||(t=l.start)===null||t===void 0?void 0:t.calendar.identifier)==="gregory"&&l.start.era==="BC"||(l==null||(n=l.end)===null||n===void 0?void 0:n.calendar.identifier)==="gregory"&&l.end.era==="BC",x=y.useMemo(()=>({granularity:d,timeZone:f,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:k}),[d,e.hourCycle,e.shouldForceLeadingZeros,f,e.hideTimeZone,k]),{minValue:T,maxValue:P,isDateUnavailable:E}=e,F=y.useMemo(()=>Bj(l,T,P,E,x),[l,T,P,E,x]),R=lE({...e,value:i,name:y.useMemo(()=>[e.startName,e.endName],[e.startName,e.endName]),builtinValidation:F}),M=R.displayValidation.isInvalid,z=e.validationState||(M?"invalid":null);return{...R,value:l,setValue:u,dateRange:b,timeRange:m,granularity:d,hasTime:h,setDate(B,C){D({...b,[B]:C})},setTime(B,C){S({...m,[B]:C})},setDateTime(B,C){u({...l,[B]:C})},setDateRange:D,setTimeRange:S,...r,setOpen(B){!B&&!(l!=null&&l.start&&(l!=null&&l.end))&&(b!=null&&b.start)&&(b!=null&&b.end)&&h&&w(b,{start:(m==null?void 0:m.start)||Eu(e.placeholderValue),end:(m==null?void 0:m.end)||Eu(e.placeholderValue)}),r.setOpen(B)},validationState:z,isInvalid:M,formatValue(B,C){if(!l||!l.start||!l.end)return null;let A="timeZone"in l.start?l.start.timeZone:void 0,I=e.granularity||(l.start&&"minute"in l.start?"minute":"day"),N="timeZone"in l.end?l.end.timeZone:void 0,X=e.granularity||(l.end&&"minute"in l.end?"minute":"day"),Q=gl(C,{granularity:I,timeZone:A,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,showEra:l.start.calendar.identifier==="gregory"&&l.start.era==="BC"||l.end.calendar.identifier==="gregory"&&l.end.era==="BC"}),je=l.start.toDate(A||"UTC"),$e=l.end.toDate(N||"UTC"),lt=new ri(B,Q),xe;if(A===N&&I===X&&l.start.compare(l.end)!==0){try{let W=lt.formatRangeToParts(je,$e),Ce=-1;for(let ut=0;ut<W.length;ut++){let qf=W[ut];if(qf.source==="shared"&&qf.type==="literal")Ce=ut;else if(qf.source==="endRange")break}let et="",yt="";for(let ut=0;ut<W.length;ut++)ut<Ce?et+=W[ut].value:ut>Ce&&(yt+=W[ut].value);return{start:et,end:yt}}catch{}xe=lt}else{let W=gl(C,{granularity:X,timeZone:N,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle});xe=new ri(B,W)}return{start:lt.format(je),end:xe.format($e)}}}}function Kj(e){let{placeholderValue:t=new Nl,minValue:n,maxValue:r,granularity:i,validate:a}=e,[s,o]=aa(e.value,e.defaultValue,e.onChange),l=s||t,u=l&&"day"in l?l:void 0,c=e.defaultValue&&"timeZone"in e.defaultValue?e.defaultValue.timeZone:void 0,d=y.useMemo(()=>{let m=l&&"timeZone"in l?l.timeZone:void 0;return(m||c)&&t?P8(Gs(t),m||c):Gs(t)},[t,l,c]),f=y.useMemo(()=>Gs(n,u),[n,u]),h=y.useMemo(()=>Gs(r,u),[r,u]),p=y.useMemo(()=>s&&"day"in s?N2(s):s,[s]),g=y.useMemo(()=>s==null?null:Gs(s),[s]);return{...aC({...e,value:g,defaultValue:void 0,minValue:f,maxValue:h,onChange:m=>{o(u||c?m:m&&N2(m))},granularity:i||"minute",maxGranularity:"hour",placeholderValue:d,createCalendar:()=>new Ft,validate:y.useCallback(()=>a==null?void 0:a(s),[a,s])}),timeValue:p}}function Gs(e,t=Il(Pf())){return e?"day"in e?e:Xn(t,e):null}const S$=_.createContext(null);S$.displayName="ProviderContext";function Fs(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var ma={};Fs(ma,"focus-ring",()=>Fg,e=>Fg=e);Fs(ma,"i18nFontFamily",()=>Ag,e=>Ag=e);Fs(ma,"spectrum",()=>Og,e=>Og=e);Fs(ma,"spectrum-FocusRing-ring",()=>cd,e=>cd=e);Fs(ma,"spectrum-FocusRing",()=>Bg,e=>Bg=e);Fs(ma,"spectrum-FocusRing--quiet",()=>Ig,e=>Ig=e);var Fg,Ag,Og,cd,Bg,Ig;Fg="JuTe6q_focus-ring";Ag="JuTe6q_i18nFontFamily";Og="JuTe6q_spectrum";cd="JuTe6q_spectrum-FocusRing-ring";Bg=`JuTe6q_spectrum-FocusRing ${cd}`;Ig="JuTe6q_spectrum-FocusRing--quiet";function gi(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var _r={};gi(_r,"focus-ring",()=>Lg,e=>Lg=e);gi(_r,"i18nFontFamily",()=>dd,e=>dd=e);gi(_r,"spectrum",()=>Ng,e=>Ng=e);gi(_r,"spectrum-Body",()=>jg,e=>jg=e);gi(_r,"spectrum-Body--italic",()=>zg,e=>zg=e);gi(_r,"spectrum-FocusRing-ring",()=>fd,e=>fd=e);gi(_r,"spectrum-FocusRing",()=>Vg,e=>Vg=e);gi(_r,"spectrum-FocusRing--quiet",()=>Wg,e=>Wg=e);var Lg,dd,Ng,jg,zg,fd,Vg,Wg;Lg="_5QszkG_focus-ring";dd="_5QszkG_i18nFontFamily";Ng=`_5QszkG_spectrum ${dd}`;jg="_5QszkG_spectrum-Body";zg="_5QszkG_spectrum-Body--italic";fd="_5QszkG_spectrum-FocusRing-ring";Vg=`_5QszkG_spectrum-FocusRing ${fd}`;Wg="_5QszkG_spectrum-FocusRing--quiet";function Yj(e,t){let n=rg("(prefers-color-scheme: dark)"),r=rg("(prefers-color-scheme: light)");return e.dark&&n?"dark":e.light&&r?"light":e.dark&&t==="dark"?"dark":e.light&&t==="light"||!e.dark||e.light?"light":"dark"}function qj(e){return rg("(any-pointer: fine)")&&e.medium?"medium":e.large?"large":"medium"}var sC={};sC=JSON.parse('{"name":"@react-spectrum/provider","version":"3.9.6","description":"Spectrum UI components in React","license":"Apache-2.0","main":"dist/main.js","module":"dist/module.js","exports":{"types":"./dist/types.d.ts","import":"./dist/import.mjs","require":"./dist/main.js"},"types":"dist/types.d.ts","source":"src/index.ts","files":["dist","src"],"sideEffects":["*.css"],"targets":{"main":{"includeNodeModules":["@adobe/spectrum-css-temp"]},"module":{"includeNodeModules":["@adobe/spectrum-css-temp"]}},"repository":{"type":"git","url":"https://github.com/adobe/react-spectrum"},"dependencies":{"@react-aria/i18n":"^3.11.0","@react-aria/overlays":"^3.22.0","@react-aria/utils":"^3.24.0","@react-spectrum/utils":"^3.11.6","@react-types/provider":"^3.8.0","@react-types/shared":"^3.23.0","@swc/helpers":"^0.5.0","clsx":"^2.0.0"},"devDependencies":{"@adobe/spectrum-css-temp":"3.0.0-alpha.1"},"peerDependencies":{"react":"^16.8.0 || ^17.0.0-rc.1 || ^18.0.0","react-dom":"^16.8.0 || ^17.0.0-rc.1 || ^18.0.0"},"publishConfig":{"access":"public"}}');function T5(e){return e&&e.__esModule?e.default:e}const Gj={S:640,M:768,L:1024,XL:1280,XXL:1536};function Zj(e,t){let n=ga(),r=n&&n.colorScheme,i=n&&n.breakpoints,{theme:a=n&&n.theme,defaultColorScheme:s}=e;if(!a)throw new Error("theme not found, the parent provider must have a theme provided");let o=Yj(a,s),l=qj(a),{locale:u}=Qe(),c=!!a[r],{colorScheme:d=c?r:o,scale:f=n?n.scale:l,locale:h=n?u:null,breakpoints:p=n?i:Gj,children:g,isQuiet:b,isEmphasized:v,isDisabled:m,isRequired:$,isReadOnly:w,validationState:D,router:S,...k}=e,x={version:sC.version,theme:a,breakpoints:p,colorScheme:d,scale:f,isQuiet:b,isEmphasized:v,isDisabled:m,isRequired:$,isReadOnly:w,validationState:D},T=iI(p),P={};Object.entries(x).forEach(([z,B])=>B!==void 0&&(P[z]=B));let E=Object.assign({},n,P),F=g,R=Xt(k),{styleProps:M}=st(k,void 0,{matchedBreakpoints:T});return(!n||e.locale||a!==n.theme||d!==n.colorScheme||f!==n.scale||Object.keys(R).length>0||k.UNSAFE_className||Object.keys(M.style).length>0)&&(F=_.createElement(Xj,{...e,UNSAFE_style:{isolation:n?void 0:"isolate",...M.style},ref:t},F)),S&&(F=_.createElement(wL,S,F)),_.createElement(S$.Provider,{value:E},_.createElement(lI,{locale:h},_.createElement(rI,{matchedBreakpoints:T},_.createElement(pj,null,F))))}let oC=_.forwardRef(Zj);const Xj=_.forwardRef(function(t,n){let{children:r,...i}=t,{locale:a,direction:s}=Qe(),{theme:o,colorScheme:l,scale:u}=ga(),{modalProviderProps:c}=mj(),{styleProps:d}=st(i),f=Nn(n),h=Object.keys(o[l])[0],p=Object.keys(o[u])[0],g=Ef(d.className,T5(ma).spectrum,T5(_r).spectrum,Object.values(o[l]),Object.values(o[u]),o.global?Object.values(o.global):null,{"react-spectrum-provider":fu,spectrum:fu,[h]:fu,[p]:fu});var b,v;let m={...d.style,colorScheme:(v=(b=t.colorScheme)!==null&&b!==void 0?b:l)!==null&&v!==void 0?v:Object.keys(o).filter(w=>w==="light"||w==="dark").join(" ")},$=y.useRef(!1);return y.useEffect(()=>{if(s&&f.current){let w=f.current.parentElement.closest("[dir]"),D=w&&w.getAttribute("dir");D&&D!==s&&!$.current&&(console.warn(`Language directions cannot be nested. ${s} inside ${D}.`),$.current=!0)}},[s,f,$]),_.createElement("div",{...Xt(i),...d,...c,className:g,style:m,lang:a,dir:s,ref:f},r)});function ga(){return y.useContext(S$)}function Vl(e){let t=ga();return t?Object.assign({},{isQuiet:t.isQuiet,isEmphasized:t.isEmphasized,isDisabled:t.isDisabled,isRequired:t.isRequired,isReadOnly:t.isReadOnly,validationState:t.validationState},e):e}var lC={};Object.defineProperty(lC,"__esModule",{value:!0});var Qj=lC.CornerTriangle=uC,Xh=Jj(y);function Jj(e){return e&&e.__esModule?e:{default:e}}function Ug(){return Ug=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ug.apply(this,arguments)}function ez(e,t){if(e==null)return{};var n=tz(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function tz(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function uC(e){var t=e.scale,n=t===void 0?"M":t,r=ez(e,["scale"]);return Xh.default.createElement("svg",Ug({},r,r),n==="L"&&Xh.default.createElement("path",{d:"M5.74.01a.25.25 0 0 0-.177.073l-5.48 5.48a.25.25 0 0 0 .177.427h5.48a.25.25 0 0 0 .25-.25V.26a.25.25 0 0 0-.25-.25z"}),n==="M"&&Xh.default.createElement("path",{d:"M4.74.01a.25.25 0 0 0-.177.073l-4.48 4.48a.25.25 0 0 0 .177.427h4.48a.25.25 0 0 0 .25-.25V.26a.25.25 0 0 0-.25-.25z"}))}uC.displayName="CornerTriangle";function G(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var Y={};G(Y,"spectrum--large",()=>Hg,e=>Hg=e);G(Y,"spectrum--medium",()=>Kg,e=>Kg=e);G(Y,"spectrum-Icon",()=>Yg,e=>Yg=e);G(Y,"spectrum-Icon--sizeL",()=>qg,e=>qg=e);G(Y,"spectrum-Icon--sizeM",()=>Gg,e=>Gg=e);G(Y,"spectrum-Icon--sizeS",()=>Zg,e=>Zg=e);G(Y,"spectrum-Icon--sizeXL",()=>Xg,e=>Xg=e);G(Y,"spectrum-Icon--sizeXS",()=>Qg,e=>Qg=e);G(Y,"spectrum-Icon--sizeXXL",()=>Jg,e=>Jg=e);G(Y,"spectrum-Icon--sizeXXS",()=>e0,e=>e0=e);G(Y,"spectrum-UIIcon",()=>t0,e=>t0=e);G(Y,"spectrum-UIIcon--large",()=>n0,e=>n0=e);G(Y,"spectrum-UIIcon--medium",()=>r0,e=>r0=e);G(Y,"spectrum-UIIcon-AlertMedium",()=>i0,e=>i0=e);G(Y,"spectrum-UIIcon-AlertSmall",()=>a0,e=>a0=e);G(Y,"spectrum-UIIcon-ArrowDownSmall",()=>s0,e=>s0=e);G(Y,"spectrum-UIIcon-ArrowLeftMedium",()=>o0,e=>o0=e);G(Y,"spectrum-UIIcon-Asterisk",()=>l0,e=>l0=e);G(Y,"spectrum-UIIcon-CheckmarkMedium",()=>u0,e=>u0=e);G(Y,"spectrum-UIIcon-CheckmarkSmall",()=>c0,e=>c0=e);G(Y,"spectrum-UIIcon-ChevronDownMedium",()=>d0,e=>d0=e);G(Y,"spectrum-UIIcon-ChevronDownSmall",()=>f0,e=>f0=e);G(Y,"spectrum-UIIcon-ChevronLeftLarge",()=>h0,e=>h0=e);G(Y,"spectrum-UIIcon-ChevronLeftMedium",()=>p0,e=>p0=e);G(Y,"spectrum-UIIcon-ChevronRightLarge",()=>m0,e=>m0=e);G(Y,"spectrum-UIIcon-ChevronRightMedium",()=>g0,e=>g0=e);G(Y,"spectrum-UIIcon-ChevronRightSmall",()=>v0,e=>v0=e);G(Y,"spectrum-UIIcon-ChevronUpSmall",()=>b0,e=>b0=e);G(Y,"spectrum-UIIcon-CornerTriangle",()=>y0,e=>y0=e);G(Y,"spectrum-UIIcon-CrossLarge",()=>$0,e=>$0=e);G(Y,"spectrum-UIIcon-CrossMedium",()=>x0,e=>x0=e);G(Y,"spectrum-UIIcon-CrossSmall",()=>w0,e=>w0=e);G(Y,"spectrum-UIIcon-DashSmall",()=>D0,e=>D0=e);G(Y,"spectrum-UIIcon-DoubleGripper",()=>_0,e=>_0=e);G(Y,"spectrum-UIIcon-FolderBreadcrumb",()=>E0,e=>E0=e);G(Y,"spectrum-UIIcon-HelpMedium",()=>S0,e=>S0=e);G(Y,"spectrum-UIIcon-HelpSmall",()=>C0,e=>C0=e);G(Y,"spectrum-UIIcon-InfoMedium",()=>k0,e=>k0=e);G(Y,"spectrum-UIIcon-InfoSmall",()=>P0,e=>P0=e);G(Y,"spectrum-UIIcon-ListGripper",()=>T0,e=>T0=e);G(Y,"spectrum-UIIcon-Magnifier",()=>R0,e=>R0=e);G(Y,"spectrum-UIIcon-SkipLeft",()=>M0,e=>M0=e);G(Y,"spectrum-UIIcon-SkipRight",()=>F0,e=>F0=e);G(Y,"spectrum-UIIcon-Star",()=>A0,e=>A0=e);G(Y,"spectrum-UIIcon-StarOutline",()=>O0,e=>O0=e);G(Y,"spectrum-UIIcon-SuccessMedium",()=>B0,e=>B0=e);G(Y,"spectrum-UIIcon-SuccessSmall",()=>I0,e=>I0=e);G(Y,"spectrum-UIIcon-TripleGripper",()=>L0,e=>L0=e);var Hg,Kg,Yg,qg,Gg,Zg,Xg,Qg,Jg,e0,t0,n0,r0,i0,a0,s0,o0,l0,u0,c0,d0,f0,h0,p0,m0,g0,v0,b0,y0,$0,x0,w0,D0,_0,E0,S0,C0,k0,P0,T0,R0,M0,F0,A0,O0,B0,I0,L0;Hg="yxBNXG_spectrum--large";Kg="yxBNXG_spectrum--medium";Yg="yxBNXG_spectrum-Icon";qg="yxBNXG_spectrum-Icon--sizeL";Gg="yxBNXG_spectrum-Icon--sizeM";Zg="yxBNXG_spectrum-Icon--sizeS";Xg="yxBNXG_spectrum-Icon--sizeXL";Qg="yxBNXG_spectrum-Icon--sizeXS";Jg="yxBNXG_spectrum-Icon--sizeXXL";e0="yxBNXG_spectrum-Icon--sizeXXS";t0="yxBNXG_spectrum-UIIcon";n0="yxBNXG_spectrum-UIIcon--large";r0="yxBNXG_spectrum-UIIcon--medium";i0="yxBNXG_spectrum-UIIcon-AlertMedium";a0="yxBNXG_spectrum-UIIcon-AlertSmall";s0="yxBNXG_spectrum-UIIcon-ArrowDownSmall";o0="yxBNXG_spectrum-UIIcon-ArrowLeftMedium";l0="yxBNXG_spectrum-UIIcon-Asterisk";u0="yxBNXG_spectrum-UIIcon-CheckmarkMedium";c0="yxBNXG_spectrum-UIIcon-CheckmarkSmall";d0="yxBNXG_spectrum-UIIcon-ChevronDownMedium";f0="yxBNXG_spectrum-UIIcon-ChevronDownSmall";h0="yxBNXG_spectrum-UIIcon-ChevronLeftLarge";p0="yxBNXG_spectrum-UIIcon-ChevronLeftMedium";m0="yxBNXG_spectrum-UIIcon-ChevronRightLarge";g0="yxBNXG_spectrum-UIIcon-ChevronRightMedium";v0="yxBNXG_spectrum-UIIcon-ChevronRightSmall";b0="yxBNXG_spectrum-UIIcon-ChevronUpSmall";y0="yxBNXG_spectrum-UIIcon-CornerTriangle";$0="yxBNXG_spectrum-UIIcon-CrossLarge";x0="yxBNXG_spectrum-UIIcon-CrossMedium";w0="yxBNXG_spectrum-UIIcon-CrossSmall";D0="yxBNXG_spectrum-UIIcon-DashSmall";_0="yxBNXG_spectrum-UIIcon-DoubleGripper";E0="yxBNXG_spectrum-UIIcon-FolderBreadcrumb";S0="yxBNXG_spectrum-UIIcon-HelpMedium";C0="yxBNXG_spectrum-UIIcon-HelpSmall";k0="yxBNXG_spectrum-UIIcon-InfoMedium";P0="yxBNXG_spectrum-UIIcon-InfoSmall";T0="yxBNXG_spectrum-UIIcon-ListGripper";R0="yxBNXG_spectrum-UIIcon-Magnifier";M0="yxBNXG_spectrum-UIIcon-SkipLeft";F0="yxBNXG_spectrum-UIIcon-SkipRight";A0="yxBNXG_spectrum-UIIcon-Star";O0="yxBNXG_spectrum-UIIcon-StarOutline";B0="yxBNXG_spectrum-UIIcon-SuccessMedium";I0="yxBNXG_spectrum-UIIcon-SuccessSmall";L0="yxBNXG_spectrum-UIIcon-TripleGripper";function nz(e){return e&&e.__esModule?e.default:e}function rz(e){return`var(--spectrum-semantic-${e}-color-icon)`}const iz={...Af,color:["color",rz]};function az(e){e=ui(e,"icon");let{children:t,size:n,"aria-label":r,"aria-hidden":i,...a}=e,{styleProps:s}=st(a,iz),o=ga(),l="M";o!==null&&(l=o.scale==="large"?"L":"M"),i||(i=void 0);let u=n||l;return _.cloneElement(t,{...Xt(a),...s,focusable:"false","aria-label":r,"aria-hidden":r?i||void 0:!0,role:"img",className:V(nz(Y),t.props.className,"spectrum-Icon",`spectrum-Icon--size${u}`,s.className)})}function sz(e){return e&&e.__esModule?e.default:e}function va(e){e=ui(e,"icon");let{children:t,"aria-label":n,"aria-hidden":r,...i}=e,{styleProps:a}=st(i),s=ga(),o="M";return s!==null&&(o=s.scale==="large"?"L":"M"),r||(r=void 0),_.cloneElement(t,{...Xt(i),...a,scale:o,focusable:"false","aria-label":n,"aria-hidden":n?r||void 0:!0,role:"img",className:V(sz(Y),t.props.className,"spectrum-Icon",{[`spectrum-UIIcon-${t.type.displayName}`]:t.type.displayName},a.className)})}function oz(e){return _.createElement(va,e,_.createElement(Qj,null))}function Zs(e){return e&&e.__esModule?e.default:e}function lz(e,t){e=Vl(e),e=ui(e,"actionButton");let n=ui({UNSAFE_className:V(Zs(Z),"spectrum-ActionButton-label")},"text"),{isQuiet:r,isDisabled:i,staticColor:a,children:s,autoFocus:o,holdAffordance:l,hideButtonText:u,...c}=e,d=h8(t),{buttonProps:f,isPressed:h}=_7(e,d),{hoverProps:p,isHovered:g}=If({isDisabled:i}),{styleProps:b}=st(c),v=_.Children.toArray(e.children).every(m=>!_.isValidElement(m));return _.createElement(w7,{focusRingClass:V(Zs(Z),"focus-ring"),autoFocus:o},_.createElement("button",{...b,...de(f,p),ref:d,className:V(Zs(Z),"spectrum-ActionButton",{"spectrum-ActionButton--quiet":r,"spectrum-ActionButton--staticColor":!!a,"spectrum-ActionButton--staticWhite":a==="white","spectrum-ActionButton--staticBlack":a==="black","is-active":h,"is-disabled":i,"is-hovered":g},b.className)},l&&_.createElement(oz,{UNSAFE_className:V(Zs(Z),"spectrum-ActionButton-hold")}),_.createElement(u7,null,_.createElement(Of,{slots:{icon:{size:"S",UNSAFE_className:V(Zs(Z),"spectrum-Icon",{"spectrum-ActionGroup-itemIcon":u})},text:{...n}}},typeof s=="string"||v?_.createElement(BN,null,s):s))))}let N0=_.forwardRef(lz);function Qh(e){return e&&e.__esModule?e.default:e}function uz(e,t){e=ui(e,"button");let{isQuiet:n,isDisabled:r,validationState:i,isInvalid:a,children:s,autoFocus:o,isActive:l,focusRingClass:u,...c}=e,d=h8(t),{buttonProps:f,isPressed:h}=_7(e,d),{hoverProps:p,isHovered:g}=If({isDisabled:r}),{styleProps:b}=st(c);return _.createElement(w7,{focusRingClass:V(Qh(Z),"focus-ring",u),autoFocus:o},_.createElement("button",{...de(f,p),ref:d,className:V(Qh(Z),"spectrum-FieldButton",{"spectrum-FieldButton--quiet":n,"is-active":l||h,"is-disabled":r,"spectrum-FieldButton--invalid":a||i==="invalid","is-hovered":g},b.className)},_.createElement(Of,{slots:{icon:{size:"S",UNSAFE_className:V(Qh(Z),"spectrum-Icon")}}},s)))}let cz=_.forwardRef(uz);function j0(){return j0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},j0.apply(null,arguments)}function dz(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function z0(e,t){return z0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},z0(e,t)}function fz(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,z0(e,t)}const R5={disabled:!1},cC=_.createContext(null);var hz=function(t){return t.scrollTop},go="unmounted",Ri="exited",Mi="entering",Fa="entered",V0="exiting",Er=function(e){fz(t,e);function t(r,i){var a;a=e.call(this,r,i)||this;var s=i,o=s&&!s.isMounting?r.enter:r.appear,l;return a.appearStatus=null,r.in?o?(l=Ri,a.appearStatus=Mi):l=Fa:r.unmountOnExit||r.mountOnEnter?l=go:l=Ri,a.state={status:l},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var s=i.in;return s&&a.status===go?{status:Ri}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var a=null;if(i!==this.props){var s=this.state.status;this.props.in?s!==Mi&&s!==Fa&&(a=Mi):(s===Mi||s===Fa)&&(a=V0)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,a,s,o;return a=s=o=i,i!=null&&typeof i!="number"&&(a=i.exit,s=i.enter,o=i.appear!==void 0?i.appear:s),{exit:a,enter:s,appear:o}},n.updateStatus=function(i,a){if(i===void 0&&(i=!1),a!==null)if(this.cancelNextCallback(),a===Mi){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:co.findDOMNode(this);s&&hz(s)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ri&&this.setState({status:go})},n.performEnter=function(i){var a=this,s=this.props.enter,o=this.context?this.context.isMounting:i,l=this.props.nodeRef?[o]:[co.findDOMNode(this),o],u=l[0],c=l[1],d=this.getTimeouts(),f=o?d.appear:d.enter;if(!i&&!s||R5.disabled){this.safeSetState({status:Fa},function(){a.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:Mi},function(){a.props.onEntering(u,c),a.onTransitionEnd(f,function(){a.safeSetState({status:Fa},function(){a.props.onEntered(u,c)})})})},n.performExit=function(){var i=this,a=this.props.exit,s=this.getTimeouts(),o=this.props.nodeRef?void 0:co.findDOMNode(this);if(!a||R5.disabled){this.safeSetState({status:Ri},function(){i.props.onExited(o)});return}this.props.onExit(o),this.safeSetState({status:V0},function(){i.props.onExiting(o),i.onTransitionEnd(s.exit,function(){i.safeSetState({status:Ri},function(){i.props.onExited(o)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,a){a=this.setNextCallback(a),this.setState(i,a)},n.setNextCallback=function(i){var a=this,s=!0;return this.nextCallback=function(o){s&&(s=!1,a.nextCallback=null,i(o))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(i,a){this.setNextCallback(a);var s=this.props.nodeRef?this.props.nodeRef.current:co.findDOMNode(this),o=i==null&&!this.props.addEndListener;if(!s||o){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],u=l[0],c=l[1];this.props.addEndListener(u,c)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===go)return null;var a=this.props,s=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var o=dz(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return _.createElement(cC.Provider,{value:null},typeof s=="function"?s(i,o):_.cloneElement(_.Children.only(s),o))},t}(_.Component);Er.contextType=cC;Er.propTypes={};function Ca(){}Er.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ca,onEntering:Ca,onEntered:Ca,onExit:Ca,onExiting:Ca,onExited:Ca};Er.UNMOUNTED=go;Er.EXITED=Ri;Er.ENTERING=Mi;Er.ENTERED=Fa;Er.EXITING=V0;const pz={entering:!1,entered:!0};function mz(e){return _.createElement(Er,{timeout:{enter:0,exit:350},...e},t=>_.Children.map(e.children,n=>n&&_.cloneElement(n,{isOpen:!!pz[t]})))}function gz(e,t){let{children:n,isOpen:r,disableFocusManagement:i,container:a,onEnter:s,onEntering:o,onEntered:l,onExit:u,onExiting:c,onExited:d,nodeRef:f}=e,[h,p]=y.useState(!r),g=y.useCallback(()=>{p(!1),l&&l()},[l]),b=y.useCallback(()=>{p(!0),d&&d()},[d]);return r||!h?_.createElement(xj,{portalContainer:a,disableFocusManagement:i,isExiting:!r},_.createElement(oC,{ref:t,UNSAFE_style:{background:"transparent",isolation:"isolate"},isDisabled:!1},_.createElement(mz,{in:r,appear:!0,onExit:u,onExiting:c,onExited:b,onEnter:s,onEntering:o,onEntered:g,nodeRef:f},n))):null}let C$=_.forwardRef(gz);function Sr(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var ln={};Sr(ln,"react-spectrum-Modal",()=>W0,e=>W0=e);Sr(ln,"react-spectrum-Modal-wrapper",()=>U0,e=>U0=e);Sr(ln,"react-spectrum-Popover",()=>H0,e=>H0=e);Sr(ln,"react-spectrum-Tray",()=>K0,e=>K0=e);Sr(ln,"spectrum-Dialog-content",()=>Y0,e=>Y0=e);Sr(ln,"spectrum-Modal",()=>q0,e=>q0=e);Sr(ln,"spectrum-Modal-wrapper",()=>G0,e=>G0=e);Sr(ln,"spectrum-Popover",()=>Z0,e=>Z0=e);Sr(ln,"spectrum-Tray",()=>X0,e=>X0=e);var W0,U0,H0,K0,Y0,q0,G0,Z0,X0;W0="OhnpTq_react-spectrum-Modal";U0="OhnpTq_react-spectrum-Modal-wrapper";H0="OhnpTq_react-spectrum-Popover";K0="OhnpTq_react-spectrum-Tray";Y0="OhnpTq_spectrum-Dialog-content";q0="OhnpTq_spectrum-Modal";G0="OhnpTq_spectrum-Modal-wrapper";Z0="OhnpTq_spectrum-Popover";X0="OhnpTq_spectrum-Tray";function Fe(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var be={};Fe(be,"focus-ring",()=>Q0,e=>Q0=e);Fe(be,"i18nFontFamily",()=>J0,e=>J0=e);Fe(be,"spectrum-overlay--open",()=>hd,e=>hd=e);Fe(be,"is-open",()=>ev,e=>ev=e);Fe(be,"spectrum-overlay--bottom--open",()=>pd,e=>pd=e);Fe(be,"is-open--bottom",()=>tv,e=>tv=e);Fe(be,"spectrum-overlay--left--open",()=>md,e=>md=e);Fe(be,"is-open--left",()=>nv,e=>nv=e);Fe(be,"spectrum-overlay--right--open",()=>gd,e=>gd=e);Fe(be,"is-open--right",()=>rv,e=>rv=e);Fe(be,"spectrum-overlay--top--open",()=>vd,e=>vd=e);Fe(be,"is-open--top",()=>iv,e=>iv=e);Fe(be,"spectrum-FocusRing-ring",()=>bd,e=>bd=e);Fe(be,"spectrum-FocusRing",()=>av,e=>av=e);Fe(be,"spectrum-FocusRing--quiet",()=>sv,e=>sv=e);Fe(be,"spectrum-overlay",()=>yd,e=>yd=e);Fe(be,"spectrum-Popover",()=>ov,e=>ov=e);Fe(be,"spectrum-Popover--bottom",()=>lv,e=>lv=e);Fe(be,"spectrum-Popover--dialog",()=>uv,e=>uv=e);Fe(be,"spectrum-Popover--left",()=>cv,e=>cv=e);Fe(be,"spectrum-Popover--right",()=>dv,e=>dv=e);Fe(be,"spectrum-Popover--top",()=>fv,e=>fv=e);Fe(be,"spectrum-Popover--withTip",()=>hv,e=>hv=e);Fe(be,"spectrum-Popover-tip",()=>pv,e=>pv=e);Fe(be,"spectrum-Popover-tip-triangle",()=>mv,e=>mv=e);var Q0,J0,hd,ev,pd,tv,md,nv,gd,rv,vd,iv,bd,av,sv,yd,ov,lv,uv,cv,dv,fv,hv,pv,mv;Q0="cH0MeW_focus-ring";J0="cH0MeW_i18nFontFamily";hd="cH0MeW_spectrum-overlay--open";ev=`cH0MeW_is-open ${hd}`;pd="cH0MeW_spectrum-overlay--bottom--open";tv=`cH0MeW_is-open--bottom ${pd}`;md="cH0MeW_spectrum-overlay--left--open";nv=`cH0MeW_is-open--left ${md}`;gd="cH0MeW_spectrum-overlay--right--open";rv=`cH0MeW_is-open--right ${gd}`;vd="cH0MeW_spectrum-overlay--top--open";iv=`cH0MeW_is-open--top ${vd}`;bd="cH0MeW_spectrum-FocusRing-ring";av=`cH0MeW_spectrum-FocusRing ${bd}`;sv="cH0MeW_spectrum-FocusRing--quiet";yd="cH0MeW_spectrum-overlay";ov=`cH0MeW_spectrum-Popover ${yd}`;lv="cH0MeW_spectrum-Popover--bottom";uv="cH0MeW_spectrum-Popover--dialog";cv="cH0MeW_spectrum-Popover--left";dv="cH0MeW_spectrum-Popover--right";fv="cH0MeW_spectrum-Popover--top";hv="cH0MeW_spectrum-Popover--withTip";pv="cH0MeW_spectrum-Popover-tip";mv="cH0MeW_spectrum-Popover-tip-triangle";function Qt(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var Bt={};Qt(Bt,"focus-ring",()=>gv,e=>gv=e);Qt(Bt,"i18nFontFamily",()=>vv,e=>vv=e);Qt(Bt,"spectrum-overlay--open",()=>$d,e=>$d=e);Qt(Bt,"is-open",()=>bv,e=>bv=e);Qt(Bt,"spectrum-FocusRing-ring",()=>xd,e=>xd=e);Qt(Bt,"spectrum-FocusRing",()=>yv,e=>yv=e);Qt(Bt,"spectrum-FocusRing--quiet",()=>$v,e=>$v=e);Qt(Bt,"spectrum-overlay",()=>wd,e=>wd=e);Qt(Bt,"spectrum-Underlay",()=>xv,e=>xv=e);Qt(Bt,"spectrum-Underlay--transparent",()=>wv,e=>wv=e);Qt(Bt,"spectrum-overlay--bottom--open",()=>Dv,e=>Dv=e);Qt(Bt,"spectrum-overlay--left--open",()=>_v,e=>_v=e);Qt(Bt,"spectrum-overlay--right--open",()=>Ev,e=>Ev=e);Qt(Bt,"spectrum-overlay--top--open",()=>Sv,e=>Sv=e);var gv,vv,$d,bv,xd,yv,$v,wd,xv,wv,Dv,_v,Ev,Sv;gv="F-oYUa_focus-ring";vv="F-oYUa_i18nFontFamily";$d="F-oYUa_spectrum-overlay--open";bv=`F-oYUa_is-open ${$d}`;xd="F-oYUa_spectrum-FocusRing-ring";yv=`F-oYUa_spectrum-FocusRing ${xd}`;$v="F-oYUa_spectrum-FocusRing--quiet";wd="F-oYUa_spectrum-overlay";xv=`F-oYUa_spectrum-Underlay ${wd}`;wv="F-oYUa_spectrum-Underlay--transparent";Dv="F-oYUa_spectrum-overlay--bottom--open";_v="F-oYUa_spectrum-overlay--left--open";Ev="F-oYUa_spectrum-overlay--right--open";Sv="F-oYUa_spectrum-overlay--top--open";function vz(e){return e&&e.__esModule?e.default:e}function k$({isOpen:e,isTransparent:t,...n}){return _.createElement("div",{"data-testid":"underlay",...n,className:V(vz(Bt),"spectrum-Underlay",{"is-open":e,"spectrum-Underlay--transparent":t})})}function Dd(e){return e&&e.__esModule?e.default:e}let bz={left:"right",right:"right",top:"bottom",bottom:"bottom"};function yz(e,t){let{children:n,state:r,...i}=e,a=Nn(t),s=y.useRef(null);return _.createElement(C$,{...i,isOpen:r.isOpen,nodeRef:s},_.createElement($z,{ref:a,...e,wrapperRef:s},n))}const $z=y.forwardRef((e,t)=>{let{children:n,isOpen:r,hideArrow:i,isNonModal:a,enableBothDismissButtons:s,state:o,wrapperRef:l,onDismissButtonPress:u=()=>o.close()}=e,{styleProps:c}=st(e),{size:d,borderWidth:f,arrowRef:h}=wz();const p=xz(t);let g=f*Math.SQRT2,b=d+g,v=b*2,{popoverProps:m,arrowProps:$,underlayProps:w,placement:D}=bj({...e,popoverRef:t,maxHeight:null,arrowSize:i?0:v,arrowBoundaryOffset:p},o),{focusWithinProps:S}=Ms(e);return _.createElement("div",{ref:l},!a&&_.createElement(k$,{isTransparent:!0,...de(w),isOpen:r}),_.createElement("div",{...c,...de(m,S),style:{...c.style,...m.style},ref:t,className:V(Dd(be),"spectrum-Popover",`spectrum-Popover--${D}`,{"spectrum-Popover--withTip":!i,"is-open":r,[`is-open--${D}`]:r},V(Dd(ln),"spectrum-Popover","react-spectrum-Popover"),c.className),role:"presentation","data-testid":"popover"},(!a||s)&&_.createElement(ud,{onDismiss:u}),n,i?null:_.createElement(Dz,{arrowProps:$,isLandscape:bz[D]==="bottom",arrowRef:h,primary:b,secondary:v,borderDiagonal:g}),_.createElement(ud,{onDismiss:u})))});function xz(e){let[t,n]=y.useState(0);return he(()=>{if(e.current){let r=window.getComputedStyle(e.current).borderRadius;r!==""&&n(parseInt(r,10))}},[e]),t}function wz(){let[e,t]=y.useState(20),[n,r]=y.useState(1),i=y.useRef(null);return he(()=>{if(i.current){let a=window.getComputedStyle(i.current).getPropertyValue("--spectrum-popover-tip-size");a!==""&&t(parseInt(a,10)/2);let s=window.getComputedStyle(i.current).getPropertyValue("--spectrum-popover-tip-borderWidth");s!==""&&r(parseInt(s,10))}},[]),{size:e,borderWidth:n,arrowRef:i}}function Dz(e){let{primary:t,secondary:n,isLandscape:r,arrowProps:i,borderDiagonal:a,arrowRef:s}=e,o=a/2,l=0,u=t-o,c=o,d=n/2,f=n-o,h=r?["M",c,l,"L",d,u,"L",f,l]:["M",l,c,"L",u,d,"L",l,f];return _.createElement("svg",{xmlns:"http://www.w3.org/svg/2000",width:Math.ceil(r?n:t),height:Math.ceil(r?t:n),className:V(Dd(be),"spectrum-Popover-tip"),ref:s,...i},_.createElement("path",{className:V(Dd(be),"spectrum-Popover-tip-triangle"),d:h.join(" ")}))}let _z=y.forwardRef(yz);function bt(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var ot={};bt(ot,"focus-ring",()=>Cv,e=>Cv=e);bt(ot,"i18nFontFamily",()=>kv,e=>kv=e);bt(ot,"spectrum-overlay--open",()=>_d,e=>_d=e);bt(ot,"is-open",()=>Pv,e=>Pv=e);bt(ot,"spectrum-FocusRing-ring",()=>Ed,e=>Ed=e);bt(ot,"spectrum-FocusRing",()=>Tv,e=>Tv=e);bt(ot,"spectrum-FocusRing--quiet",()=>Rv,e=>Rv=e);bt(ot,"spectrum-overlay",()=>Sd,e=>Sd=e);bt(ot,"spectrum-Modal",()=>Mv,e=>Mv=e);bt(ot,"spectrum-Modal--fullscreen",()=>Fv,e=>Fv=e);bt(ot,"spectrum-Modal--fullscreenTakeover",()=>Av,e=>Av=e);bt(ot,"spectrum-Modal--responsive",()=>Ov,e=>Ov=e);bt(ot,"spectrum-Modal-wrapper",()=>Bv,e=>Bv=e);bt(ot,"spectrum-overlay--bottom--open",()=>Iv,e=>Iv=e);bt(ot,"spectrum-overlay--left--open",()=>Lv,e=>Lv=e);bt(ot,"spectrum-overlay--right--open",()=>Nv,e=>Nv=e);bt(ot,"spectrum-overlay--top--open",()=>jv,e=>jv=e);var Cv,kv,_d,Pv,Ed,Tv,Rv,Sd,Mv,Fv,Av,Ov,Bv,Iv,Lv,Nv,jv;Cv="_0YML2q_focus-ring";kv="_0YML2q_i18nFontFamily";_d="_0YML2q_spectrum-overlay--open";Pv=`_0YML2q_is-open ${_d}`;Ed="_0YML2q_spectrum-FocusRing-ring";Tv=`_0YML2q_spectrum-FocusRing ${Ed}`;Rv="_0YML2q_spectrum-FocusRing--quiet";Sd="_0YML2q_spectrum-overlay";Mv=`_0YML2q_spectrum-Modal ${Sd}`;Fv="_0YML2q_spectrum-Modal--fullscreen";Av="_0YML2q_spectrum-Modal--fullscreenTakeover";Ov="_0YML2q_spectrum-Modal--responsive";Bv="_0YML2q_spectrum-Modal-wrapper";Iv="_0YML2q_spectrum-overlay--bottom--open";Lv="_0YML2q_spectrum-overlay--left--open";Nv="_0YML2q_spectrum-overlay--right--open";jv="_0YML2q_spectrum-overlay--top--open";function Cu(e){return e&&e.__esModule?e.default:e}function Ez(e,t){let{children:n,state:r,...i}=e,a=Nn(t),s=y.useRef(null);return _.createElement(C$,{...i,isOpen:r.isOpen,nodeRef:s},_.createElement(Cz,{...e,wrapperRef:s,ref:a},n))}let Sz={fullscreen:"fullscreen",fullscreenTakeover:"fullscreenTakeover"},Cz=y.forwardRef(function(e,t){let{type:n,children:r,state:i,isOpen:a,wrapperRef:s}=e,o=Sz[n],{styleProps:l}=st(e),{modalProps:u,underlayProps:c}=XE(e,i,t),d=V(Cu(ot),"spectrum-Modal-wrapper",V(Cu(ln),"spectrum-Modal-wrapper","react-spectrum-Modal-wrapper")),f=V(Cu(ot),"spectrum-Modal",{"is-open":a},V(Cu(ln),"spectrum-Modal","react-spectrum-Modal"),{[`spectrum-Modal--${o}`]:o},l.className),p={"--spectrum-visual-viewport-height":r7().height+"px"};return _.createElement("div",{ref:s},_.createElement(k$,{...c,isOpen:a}),_.createElement("div",{className:d,style:p},_.createElement("div",{...l,...u,ref:t,className:f,"data-testid":"modal"},r)))}),kz=y.forwardRef(Ez);function It(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var vt={};It(vt,"focus-ring",()=>zv,e=>zv=e);It(vt,"i18nFontFamily",()=>Vv,e=>Vv=e);It(vt,"spectrum-overlay--open",()=>Cd,e=>Cd=e);It(vt,"is-open",()=>Wv,e=>Wv=e);It(vt,"spectrum-FocusRing-ring",()=>kd,e=>kd=e);It(vt,"spectrum-FocusRing",()=>Uv,e=>Uv=e);It(vt,"spectrum-FocusRing--quiet",()=>Hv,e=>Hv=e);It(vt,"spectrum-overlay",()=>Pd,e=>Pd=e);It(vt,"spectrum-Tray",()=>Kv,e=>Kv=e);It(vt,"spectrum-Tray--fixedHeight",()=>Yv,e=>Yv=e);It(vt,"spectrum-Tray-wrapper",()=>qv,e=>qv=e);It(vt,"spectrum-overlay--bottom--open",()=>Gv,e=>Gv=e);It(vt,"spectrum-overlay--left--open",()=>Zv,e=>Zv=e);It(vt,"spectrum-overlay--right--open",()=>Xv,e=>Xv=e);It(vt,"spectrum-overlay--top--open",()=>Qv,e=>Qv=e);var zv,Vv,Cd,Wv,kd,Uv,Hv,Pd,Kv,Yv,qv,Gv,Zv,Xv,Qv;zv="UuxJvG_focus-ring";Vv="UuxJvG_i18nFontFamily";Cd="UuxJvG_spectrum-overlay--open";Wv=`UuxJvG_is-open ${Cd}`;kd="UuxJvG_spectrum-FocusRing-ring";Uv=`UuxJvG_spectrum-FocusRing ${kd}`;Hv="UuxJvG_spectrum-FocusRing--quiet";Pd="UuxJvG_spectrum-overlay";Kv=`UuxJvG_spectrum-Tray ${Pd}`;Yv="UuxJvG_spectrum-Tray--fixedHeight";qv="UuxJvG_spectrum-Tray-wrapper";Gv="UuxJvG_spectrum-overlay--bottom--open";Zv="UuxJvG_spectrum-overlay--left--open";Xv="UuxJvG_spectrum-overlay--right--open";Qv="UuxJvG_spectrum-overlay--top--open";function Jh(e){return e&&e.__esModule?e.default:e}function Pz(e,t){let{children:n,state:r,...i}=e,a=Nn(t),s=y.useRef(null);return _.createElement(C$,{...i,isOpen:r.isOpen,nodeRef:s},_.createElement(Tz,{...e,wrapperRef:s,ref:a},n))}let Tz=y.forwardRef(function(e,t){let{children:n,isOpen:r,isFixedHeight:i,state:a,wrapperRef:s}=e,{styleProps:o}=st(e),{modalProps:l,underlayProps:u}=XE({...e,isDismissable:!0},a,t),d={"--spectrum-visual-viewport-height":r7().height+"px"},f=V(Jh(vt),"spectrum-Tray-wrapper"),h=V(Jh(vt),"spectrum-Tray",{"is-open":r,"spectrum-Tray--fixedHeight":i},V(Jh(ln),"spectrum-Tray","react-spectrum-Tray"),o.className);return _.createElement("div",{ref:s},_.createElement(k$,{...u,isOpen:r}),_.createElement("div",{className:f,style:d},_.createElement("div",{...o,...l,className:h,ref:t,"data-testid":"tray"},_.createElement(ud,{onDismiss:a.close}),n,_.createElement(ud,{onDismiss:a.close}))))}),Rz=y.forwardRef(Pz);var dC={};Object.defineProperty(dC,"__esModule",{value:!0});var Mz=dC.CheckmarkMedium=fC,ep=Fz(y);function Fz(e){return e&&e.__esModule?e:{default:e}}function Jv(){return Jv=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Jv.apply(this,arguments)}function Az(e,t){if(e==null)return{};var n=Oz(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Oz(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function fC(e){var t=e.scale,n=t===void 0?"M":t,r=Az(e,["scale"]);return ep.default.createElement("svg",Jv({},r,r),n==="L"&&ep.default.createElement("path",{d:"M6 14a1 1 0 0 1-.789-.385l-4-5a1 1 0 1 1 1.577-1.23L6 11.376l7.213-8.99a1 1 0 1 1 1.576 1.23l-8 10a1 1 0 0 1-.789.384z"}),n==="M"&&ep.default.createElement("path",{d:"M4.5 10a1.022 1.022 0 0 1-.799-.384l-2.488-3a1 1 0 0 1 1.576-1.233L4.5 7.376l4.712-5.991a1 1 0 1 1 1.576 1.23l-5.51 7A.978.978 0 0 1 4.5 10z"}))}fC.displayName="CheckmarkMedium";function Bz(e){return _.createElement(va,e,_.createElement(Mz,null))}const Iz={...Af,autoFlow:["gridAutoFlow",tt],autoColumns:["gridAutoColumns",Td],autoRows:["gridAutoRows",Td],areas:["gridTemplateAreas",Nz],columns:["gridTemplateColumns",M5],rows:["gridTemplateRows",M5],gap:["gap",le],rowGap:["rowGap",le],columnGap:["columnGap",le],justifyItems:["justifyItems",tt],justifyContent:["justifyContent",tt],alignItems:["alignItems",tt],alignContent:["alignContent",tt]};function Lz(e,t){let{children:n,...r}=e,{styleProps:i}=st(r,Iz);i.style.display="grid";let a=Nn(t);return _.createElement("div",{...Xt(r),...i,ref:a},n)}function Nz(e){return e.map(t=>`"${t}"`).join(`
-`)}function Td(e){return/^max-content|min-content|minmax|auto|fit-content|repeat|subgrid/.test(e)?e:le(e)}function M5(e){return Array.isArray(e)?e.map(Td).join(" "):Td(e)}const jz=y.forwardRef(Lz);function P$(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var zf={};P$(zf,"flex",()=>e1,e=>e1=e);P$(zf,"flex-container",()=>t1,e=>t1=e);P$(zf,"flex-gap",()=>n1,e=>n1=e);var e1,t1,n1;e1="NW91UW_flex";t1="NW91UW_flex-container";n1="NW91UW_flex-gap";function zz(e){return e&&e.__esModule?e.default:e}const Vz={direction:["flexDirection",tt],wrap:["flexWrap",Uz],justifyContent:["justifyContent",tp],alignItems:["alignItems",tp],alignContent:["alignContent",tp]};function Wz(e,t){let{children:n,...r}=e,i=p8(),a=(i==null?void 0:i.matchedBreakpoints)||["base"],{styleProps:s}=st(r),{styleProps:o}=st(r,Vz),l=Nn(t),u={...s.style,...o.style};return e.gap!=null&&(u.gap=Nh(e.gap,a)),e.columnGap!=null&&(u.columnGap=Nh(e.columnGap,a)),e.rowGap!=null&&(u.rowGap=Nh(e.rowGap,a)),_.createElement("div",{...Xt(r),className:V(zz(zf),"flex",s.className),style:u,ref:l},n)}function tp(e){return e==="start"?"flex-start":e==="end"?"flex-end":e}function Uz(e){return typeof e=="boolean"?e?"wrap":"nowrap":e}const hC=y.forwardRef(Wz);var pC={};Object.defineProperty(pC,"__esModule",{value:!0});var Hz=pC.CrossLarge=mC,np=Kz(y);function Kz(e){return e&&e.__esModule?e:{default:e}}function r1(){return r1=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r1.apply(this,arguments)}function Yz(e,t){if(e==null)return{};var n=qz(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function qz(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function mC(e){var t=e.scale,n=t===void 0?"M":t,r=Yz(e,["scale"]);return np.default.createElement("svg",r1({},r,r),n==="L"&&np.default.createElement("path",{d:"M15.697 14.283L9.414 8l6.283-6.283A1 1 0 1 0 14.283.303L8 6.586 1.717.303A1 1 0 1 0 .303 1.717L6.586 8 .303 14.283a1 1 0 1 0 1.414 1.414L8 9.414l6.283 6.283a1 1 0 1 0 1.414-1.414z"}),n==="M"&&np.default.createElement("path",{d:"M11.697 10.283L7.414 6l4.283-4.283A1 1 0 1 0 10.283.303L6 4.586 1.717.303A1 1 0 1 0 .303 1.717L4.586 6 .303 10.283a1 1 0 1 0 1.414 1.414L6 7.414l4.283 4.283a1 1 0 1 0 1.414-1.414z"}))}mC.displayName="CrossLarge";function Gz(e){return _.createElement(va,e,_.createElement(Hz,null))}function se(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var q={};se(q,"focus-ring",()=>i1,e=>i1=e);se(q,"i18nFontFamily",()=>a1,e=>a1=e);se(q,"is-disabled",()=>s1,e=>s1=e);se(q,"is-focused",()=>o1,e=>o1=e);se(q,"is-hovered",()=>l1,e=>l1=e);se(q,"is-invalid",()=>u1,e=>u1=e);se(q,"is-outsideMonth",()=>c1,e=>c1=e);se(q,"is-pressed",()=>d1,e=>d1=e);se(q,"is-range-end",()=>f1,e=>f1=e);se(q,"is-range-selection",()=>h1,e=>h1=e);se(q,"is-range-start",()=>p1,e=>p1=e);se(q,"is-selected",()=>m1,e=>m1=e);se(q,"is-selection-end",()=>g1,e=>g1=e);se(q,"is-selection-start",()=>v1,e=>v1=e);se(q,"is-today",()=>b1,e=>b1=e);se(q,"is-unavailable",()=>y1,e=>y1=e);se(q,"next",()=>$1,e=>$1=e);se(q,"prev",()=>x1,e=>x1=e);se(q,"spectrum-Calendar",()=>w1,e=>w1=e);se(q,"spectrum-Calendar--padded",()=>D1,e=>D1=e);se(q,"spectrum-Calendar-body",()=>_1,e=>_1=e);se(q,"spectrum-Calendar-date",()=>E1,e=>E1=e);se(q,"spectrum-Calendar-dateText",()=>S1,e=>S1=e);se(q,"spectrum-Calendar-dayOfWeek",()=>C1,e=>C1=e);se(q,"spectrum-Calendar-header",()=>k1,e=>k1=e);se(q,"spectrum-Calendar-monthHeader",()=>P1,e=>P1=e);se(q,"spectrum-Calendar-months",()=>T1,e=>T1=e);se(q,"spectrum-Calendar-nextMonth",()=>R1,e=>R1=e);se(q,"spectrum-Calendar-prevMonth",()=>M1,e=>M1=e);se(q,"spectrum-Calendar-table",()=>F1,e=>F1=e);se(q,"spectrum-Calendar-tableCell",()=>A1,e=>A1=e);se(q,"spectrum-Calendar-title",()=>O1,e=>O1=e);se(q,"spectrum-FocusRing-ring",()=>Rd,e=>Rd=e);se(q,"spectrum-FocusRing",()=>B1,e=>B1=e);se(q,"spectrum-FocusRing--quiet",()=>I1,e=>I1=e);se(q,"title",()=>L1,e=>L1=e);var i1,a1,s1,o1,l1,u1,c1,d1,f1,h1,p1,m1,g1,v1,b1,y1,$1,x1,w1,D1,_1,E1,S1,C1,k1,P1,T1,R1,M1,F1,A1,O1,Rd,B1,I1,L1;i1="EuwYBq_focus-ring";a1="EuwYBq_i18nFontFamily";s1="EuwYBq_is-disabled";o1="EuwYBq_is-focused";l1="EuwYBq_is-hovered";u1="EuwYBq_is-invalid";c1="EuwYBq_is-outsideMonth";d1="EuwYBq_is-pressed";f1="EuwYBq_is-range-end";h1="EuwYBq_is-range-selection";p1="EuwYBq_is-range-start";m1="EuwYBq_is-selected";g1="EuwYBq_is-selection-end";v1="EuwYBq_is-selection-start";b1="EuwYBq_is-today";y1="EuwYBq_is-unavailable";$1="EuwYBq_next";x1="EuwYBq_prev";w1="EuwYBq_spectrum-Calendar";D1="EuwYBq_spectrum-Calendar--padded";_1="EuwYBq_spectrum-Calendar-body";E1="EuwYBq_spectrum-Calendar-date";S1="EuwYBq_spectrum-Calendar-dateText";C1="EuwYBq_spectrum-Calendar-dayOfWeek";k1="EuwYBq_spectrum-Calendar-header";P1="EuwYBq_spectrum-Calendar-monthHeader";T1="EuwYBq_spectrum-Calendar-months";R1="EuwYBq_spectrum-Calendar-nextMonth";M1="EuwYBq_spectrum-Calendar-prevMonth";F1="EuwYBq_spectrum-Calendar-table";A1="EuwYBq_spectrum-Calendar-tableCell";O1="EuwYBq_spectrum-Calendar-title";Rd="EuwYBq_spectrum-FocusRing-ring";B1=`EuwYBq_spectrum-FocusRing ${Rd}`;I1="EuwYBq_spectrum-FocusRing--quiet";L1="EuwYBq_title";function rp(e){return e&&e.__esModule?e.default:e}function Zz({state:e,currentMonth:t,...n}){let r=y.useRef(),{cellProps:i,buttonProps:a,isPressed:s,isSelected:o,isDisabled:l,isFocused:u,isInvalid:c,formattedDate:d}=HN({...n,isDisabled:!A2(n.date,t)},e,r),f=e.isCellUnavailable(n.date)&&!l,h=!l&&!c&&e.isCellUnavailable(n.date.add({days:1})),p=!l&&!c&&e.isCellUnavailable(n.date.subtract({days:1})),g="highlightedRange"in e&&e.highlightedRange,b=o&&g&&Ze(n.date,g.start),v=o&&g&&Ze(n.date,g.end),{locale:m}=Qe(),$=kf(n.date,m),w=o&&(p||$===0||n.date.day===1),D=o&&(h||$===6||n.date.day===t.calendar.getDaysInMonth(t)),{focusProps:S,isFocusVisible:k}=hl(),{hoverProps:x,isHovered:T}=If({isDisabled:l||f||e.isReadOnly});return _.createElement("td",{...i,className:V(rp(q),"spectrum-Calendar-tableCell")},_.createElement("span",{...de(a,x,S),ref:r,className:V(rp(q),"spectrum-Calendar-date",{"is-today":w8(n.date,e.timeZone),"is-selected":o,"is-focused":u&&k,"is-disabled":l&&!c,"is-unavailable":f||c&&l,"is-outsideMonth":!A2(n.date,t),"is-range-start":w,"is-range-end":D,"is-range-selection":o&&"highlightedRange"in e,"is-selection-start":b,"is-selection-end":v,"is-hovered":T,"is-pressed":s&&!e.isReadOnly,"is-invalid":c})},_.createElement("span",{className:V(rp(q),"spectrum-Calendar-dateText")},_.createElement("span",null,d))))}function ip(e){return e&&e.__esModule?e.default:e}function Xz(e){let{state:t,startDate:n}=e,{gridProps:r,headerProps:i,weekDays:a}=WN({...e,endDate:Uc(n)},t),{locale:s}=Qe(),o=wI(n,s);return _.createElement("table",{...r,className:V(ip(q),"spectrum-Calendar-body","spectrum-Calendar-table")},_.createElement("thead",i,_.createElement("tr",null,a.map((l,u)=>_.createElement("th",{key:u,className:V(ip(q),"spectrum-Calendar-tableCell")},_.createElement("span",{className:V(ip(q),"spectrum-Calendar-dayOfWeek")},l))))),_.createElement("tbody",null,[...new Array(o).keys()].map(l=>_.createElement("tr",{key:l},t.getDatesInWeek(l,n).map((u,c)=>u?_.createElement(Zz,{key:c,state:t,date:u,currentMonth:n}):_.createElement("td",{key:c}))))))}var gC={};gC={invalidSelection:(e,t)=>`${t.plural(e.selectedCount,{one:"التاريخ",other:"التواريخ"})} المحدد/المحددة غير متوفرة.`};var vC={};vC={invalidSelection:(e,t)=>`${t.plural(e.selectedCount,{one:"Избраната дата не е налична",other:"Избраните дати не са налични"})}.`};var bC={};bC={invalidSelection:(e,t)=>`${t.plural(e.selectedCount,{one:"Vybrané datum není",other:"Vybraná data nejsou"})} k dispozici.`};var yC={};yC={invalidSelection:(e,t)=>`Valgte ${t.plural(e.selectedCount,{one:"dato",other:"datoer"})} ikke ledige.`};var $C={};$C={invalidSelection:(e,t)=>`Ausgewählte(s) ${t.plural(e.selectedCount,{one:"Datum",other:"Daten"})} nicht verfügbar.`};var xC={};xC={invalidSelection:(e,t)=>`${t.plural(e.selectedCount,{one:"Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη",other:"Οι επιλεγμένες ημερομηνίες δεν είναι διαθέσιμες"})}.`};var wC={};wC={invalidSelection:(e,t)=>`Selected ${t.plural(e.selectedCount,{one:"date",other:"dates"})} unavailable.`};var DC={};DC={invalidSelection:(e,t)=>`${t.plural(e.selectedCount,{one:"La fecha seleccionada no está disponible",other:"Las fechas seleccionadas no están disponibles"})}.`};var _C={};_C={invalidSelection:(e,t)=>`Valitud ${t.plural(e.selectedCount,{one:"kuupäev",other:"kuupäevad"})} pole saadaval.`};var EC={};EC={invalidSelection:(e,t)=>`${t.plural(e.selectedCount,{one:"Valittu päivämäärä ei ole",other:"Valitut päivämäärät eivät ole"})} saatavilla.`};var SC={};SC={invalidSelection:(e,t)=>`${t.plural(e.selectedCount,{one:"La date sélectionnée est indisponible",other:"Les dates sélectionnées sont indisponibles"})}.`};var CC={};CC={invalidSelection:(e,t)=>`נבחר ${t.plural(e.selectedCount,{one:"תאריך",other:"תאריכים"})} אינו זמין.`};var kC={};kC={invalidSelection:(e,t)=>`${t.plural(e.selectedCount,{one:"Odabrani datum nije dostupan",other:"Odabrani datumi nisu dostupni"})}.`};var PC={};PC={invalidSelection:(e,t)=>`A kijelölt ${t.plural(e.selectedCount,{one:"dátum nem érhető el",other:"dátumok nem érhetőek el"})}.`};var TC={};TC={invalidSelection:(e,t)=>`${t.plural(e.selectedCount,{one:"Data selezionata non disponibile",other:"Date selezionate non disponibili"})}.`};var RC={};RC={invalidSelection:(e,t)=>`選択した${t.plural(e.selectedCount,{one:"日付",other:"日付"})}は使用できません。`};var MC={};MC={invalidSelection:(e,t)=>`선택한 ${t.plural(e.selectedCount,{one:"일자를",other:"일자를"})} 사용할 수 없습니다.`};var FC={};FC={invalidSelection:(e,t)=>`${t.plural(e.selectedCount,{one:"Datos",other:"Datų"})} pasirinkimas negalimas.`};var AC={};AC={invalidSelection:(e,t)=>`Atlasītais(-ie) ${t.plural(e.selectedCount,{one:"date",other:"dates"})} nav pieejams(-i).`};var OC={};OC={invalidSelection:(e,t)=>`Valgt(e) ${t.plural(e.selectedCount,{one:"dato",other:"datoer"})} er utilgjengelig.`};var BC={};BC={invalidSelection:(e,t)=>`Geselecteerde ${t.plural(e.selectedCount,{one:"datum",other:"datums"})} niet beschikbaar.`};var IC={};IC={invalidSelection:(e,t)=>`${t.plural(e.selectedCount,{one:"Wybrana data jest niedostępna",other:"Wybrane daty są niedostępne"})}.`};var LC={};LC={invalidSelection:(e,t)=>`${t.plural(e.selectedCount,{one:"Data",other:"Datas"})} selecionada(s) indisponível(is).`};var NC={};NC={invalidSelection:(e,t)=>`A(s) ${t.plural(e.selectedCount,{one:"data",other:"datas"})} selecionada(s) não está(ão) disponível/disponível(eis).`};var jC={};jC={invalidSelection:(e,t)=>`${t.plural(e.selectedCount,{one:"Data selectată nu este disponibilă",other:"Datele selectate nu sunt disponibile"})}.`};var zC={};zC={invalidSelection:(e,t)=>`Выбранные ${t.plural(e.selectedCount,{one:"дата",other:"даты"})} недоступны.`};var VC={};VC={invalidSelection:(e,t)=>`${t.plural(e.selectedCount,{one:"Vybratý dátum",other:"Vybraté dátumy"})}: nedostupné.`};var WC={};WC={invalidSelection:(e,t)=>`Izbrano ${t.plural(e.selectedCount,{one:"date",other:"dates"})} ni na voljo.`};var UC={};UC={invalidSelection:(e,t)=>`Izabrani ${t.plural(e.selectedCount,{one:"date",other:"dates"})} nije dostupan.`};var HC={};HC={invalidSelection:(e,t)=>`${t.plural(e.selectedCount,{one:"Valt datum är inte tillgängligt.",other:"Valda datum är inte tillgängliga."})}`};var KC={};KC={invalidSelection:(e,t)=>`Seçilen ${t.plural(e.selectedCount,{one:"tarih",other:"tarihler"})} müsait değil.`};var YC={};YC={invalidSelection:(e,t)=>`${t.plural(e.selectedCount,{one:"Вибрана дата недоступна",other:"Вибрані дати недоступні"})}.`};var qC={};qC={invalidSelection:(e,t)=>`选定的 ${t.plural(e.selectedCount,{one:"个日期",other:"个日期"})} 不可用。`};var GC={};GC={invalidSelection:(e,t)=>`所選的${t.plural(e.selectedCount,{one:"日期",other:"日期"})}無法使用。`};var ZC={};ZC={"ar-AE":gC,"bg-BG":vC,"cs-CZ":bC,"da-DK":yC,"de-DE":$C,"el-GR":xC,"en-US":wC,"es-ES":DC,"et-EE":_C,"fi-FI":EC,"fr-FR":SC,"he-IL":CC,"hr-HR":kC,"hu-HU":PC,"it-IT":TC,"ja-JP":RC,"ko-KR":MC,"lt-LT":FC,"lv-LV":AC,"nb-NO":OC,"nl-NL":BC,"pl-PL":IC,"pt-BR":LC,"pt-PT":NC,"ro-RO":jC,"ru-RU":zC,"sk-SK":VC,"sl-SI":WC,"sr-SP":UC,"sv-SE":HC,"tr-TR":KC,"uk-UA":YC,"zh-CN":qC,"zh-TW":GC};var XC={};Object.defineProperty(XC,"__esModule",{value:!0});var Qz=XC.ChevronLeftLarge=QC,ap=Jz(y);function Jz(e){return e&&e.__esModule?e:{default:e}}function N1(){return N1=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},N1.apply(this,arguments)}function eV(e,t){if(e==null)return{};var n=tV(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function tV(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function QC(e){var t=e.scale,n=t===void 0?"M":t,r=eV(e,["scale"]);return ap.default.createElement("svg",N1({},r,r),n==="L"&&ap.default.createElement("path",{d:"M12.109 17.853l-8.066-7.849 8.066-7.84a1.243 1.243 0 0 0 .381-.894 1.24 1.24 0 0 0-2.12-.894L1.379 9.108a1.246 1.246 0 0 0 .003 1.79l8.99 8.744a1.247 1.247 0 1 0 1.738-1.789z"}),n==="M"&&ap.default.createElement("path",{d:"M9.605 13.843L3.55 8l6.056-5.84A1.248 1.248 0 1 0 7.876.363L.882 7.1a1.243 1.243 0 0 0 .003 1.797l6.988 6.742a1.248 1.248 0 1 0 1.732-1.796z"}))}QC.displayName="ChevronLeftLarge";function F5(e){return _.createElement(va,e,_.createElement(Qz,null))}var JC={};Object.defineProperty(JC,"__esModule",{value:!0});var nV=JC.ChevronRightLarge=ek,sp=rV(y);function rV(e){return e&&e.__esModule?e:{default:e}}function j1(){return j1=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},j1.apply(this,arguments)}function iV(e,t){if(e==null)return{};var n=aV(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function aV(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function ek(e){var t=e.scale,n=t===void 0?"M":t,r=iV(e,["scale"]);return sp.default.createElement("svg",j1({},r,r),n==="L"&&sp.default.createElement("path",{d:"M15 10.004a1.243 1.243 0 0 0-.38-.894L5.631.364a1.249 1.249 0 1 0-1.741 1.79l8.066 7.85-8.069 7.847a1.249 1.249 0 0 0 1.741 1.79l8.992-8.74a1.246 1.246 0 0 0 .379-.897z"}),n==="M"&&sp.default.createElement("path",{d:"M11.5 8a1.241 1.241 0 0 0-.386-.897L4.128.36a1.248 1.248 0 1 0-1.733 1.797L8.45 8l-6.058 5.84a1.248 1.248 0 1 0 1.733 1.797L11.117 8.9A1.245 1.245 0 0 0 11.5 8z"}))}ek.displayName="ChevronRightLarge";function A5(e){return _.createElement(va,e,_.createElement(nV,null))}function jn(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var Rt={};jn(Rt,"focus-ring",()=>z1,e=>z1=e);jn(Rt,"i18nFontFamily",()=>V1,e=>V1=e);jn(Rt,"is-disabled",()=>W1,e=>W1=e);jn(Rt,"spectrum-FocusRing-ring",()=>Md,e=>Md=e);jn(Rt,"spectrum-FocusRing",()=>U1,e=>U1=e);jn(Rt,"spectrum-FocusRing--quiet",()=>H1,e=>H1=e);jn(Rt,"spectrum-HelpText",()=>K1,e=>K1=e);jn(Rt,"spectrum-HelpText--negative",()=>Y1,e=>Y1=e);jn(Rt,"spectrum-HelpText--neutral",()=>q1,e=>q1=e);jn(Rt,"spectrum-HelpText-text",()=>G1,e=>G1=e);jn(Rt,"spectrum-HelpText-validationIcon",()=>Z1,e=>Z1=e);var z1,V1,W1,Md,U1,H1,K1,Y1,q1,G1,Z1;z1="a1Qy2q_focus-ring";V1="a1Qy2q_i18nFontFamily";W1="a1Qy2q_is-disabled";Md="a1Qy2q_spectrum-FocusRing-ring";U1=`a1Qy2q_spectrum-FocusRing ${Md}`;H1="a1Qy2q_spectrum-FocusRing--quiet";K1="a1Qy2q_spectrum-HelpText";Y1="a1Qy2q_spectrum-HelpText--negative";q1="a1Qy2q_spectrum-HelpText--neutral";G1="a1Qy2q_spectrum-HelpText-text";Z1="a1Qy2q_spectrum-HelpText-validationIcon";var tk={};Object.defineProperty(tk,"__esModule",{value:!0});var nk=tk.AlertMedium=rk,op=sV(y);function sV(e){return e&&e.__esModule?e:{default:e}}function X1(){return X1=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},X1.apply(this,arguments)}function oV(e,t){if(e==null)return{};var n=lV(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function lV(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function rk(e){var t=e.scale,n=t===void 0?"M":t,r=oV(e,["scale"]);return op.default.createElement("svg",X1({},r,r),n==="L"&&op.default.createElement("path",{d:"M10.563 2.206l-9.249 16.55a.5.5 0 0 0 .436.744h18.5a.5.5 0 0 0 .436-.744l-9.251-16.55a.5.5 0 0 0-.872 0zm1.436 15.044a.25.25 0 0 1-.25.25h-1.5a.25.25 0 0 1-.25-.25v-1.5a.25.25 0 0 1 .25-.25h1.5a.25.25 0 0 1 .25.25zm0-3.5a.25.25 0 0 1-.25.25h-1.5a.25.25 0 0 1-.25-.25v-6a.25.25 0 0 1 .25-.25h1.5a.25.25 0 0 1 .25.25z"}),n==="M"&&op.default.createElement("path",{d:"M8.564 1.289L.2 16.256A.5.5 0 0 0 .636 17h16.728a.5.5 0 0 0 .436-.744L9.436 1.289a.5.5 0 0 0-.872 0zM10 14.75a.25.25 0 0 1-.25.25h-1.5a.25.25 0 0 1-.25-.25v-1.5a.25.25 0 0 1 .25-.25h1.5a.25.25 0 0 1 .25.25zm0-3a.25.25 0 0 1-.25.25h-1.5a.25.25 0 0 1-.25-.25v-6a.25.25 0 0 1 .25-.25h1.5a.25.25 0 0 1 .25.25z"}))}rk.displayName="AlertMedium";const ik=e=>_.createElement("svg",j0({viewBox:"0 0 18 18"},e),_.createElement("path",{d:"M9 10.5a1 1 0 0 1-1-1V5a1 1 0 1 1 2 0v4.5a1 1 0 0 1-1 1Zm0 1.25A1.25 1.25 0 1 0 10.25 13 1.25 1.25 0 0 0 9 11.75Zm8.497 3.589a3.49 3.49 0 0 0 .079-3.474L12 1.815a3.385 3.385 0 0 0-5.994-.007L.416 11.88a3.485 3.485 0 0 0 .089 3.459A3.375 3.375 0 0 0 3.416 17h11.169a3.375 3.375 0 0 0 2.912-1.661ZM10.244 2.77l5.575 10.05a1.497 1.497 0 0 1-.037 1.489 1.374 1.374 0 0 1-1.197.69H3.416a1.374 1.374 0 0 1-1.197-.69 1.493 1.493 0 0 1-.046-1.474l5.593-10.08a1.386 1.386 0 0 1 2.478.015Z"}));ik.displayName=nk.displayName;function ak(e){var t;let n=ga();return _.createElement(va,e,n!=null&&(t=n.theme)!=null&&(t=t.global)!=null&&t.express?_.createElement(ik,null):_.createElement(nk,null))}function ku(e){return e&&e.__esModule?e.default:e}function uV(e,t){let{description:n,errorMessage:r,validationState:i,isInvalid:a,isDisabled:s,showErrorIcon:o,descriptionProps:l,errorMessageProps:u}=e,c=Nn(t),d=r&&(a||i==="invalid"),{styleProps:f}=st(e);return _.createElement("div",{...f,className:V(ku(Rt),"spectrum-HelpText",`spectrum-HelpText--${d?"negative":"neutral"}`,{"is-disabled":s},f.className),ref:c},d?_.createElement(_.Fragment,null,o&&_.createElement(ak,{UNSAFE_className:V(ku(Rt),"spectrum-HelpText-validationIcon")}),_.createElement("div",{...u,className:V(ku(Rt),"spectrum-HelpText-text")},r)):_.createElement("div",{...l,className:V(ku(Rt),"spectrum-HelpText-text")},n))}const sk=_.forwardRef(uV);var ok={};ok={"(optional)":"(اختياري)","(required)":"(مطلوب)"};var lk={};lk={"(optional)":"(незадължително)","(required)":"(задължително)"};var uk={};uk={"(optional)":"(volitelně)","(required)":"(požadováno)"};var ck={};ck={"(optional)":"(valgfrit)","(required)":"(obligatorisk)"};var dk={};dk={"(optional)":"(optional)","(required)":"(erforderlich)"};var fk={};fk={"(optional)":"(προαιρετικό)","(required)":"(απαιτείται)"};var hk={};hk={"(required)":"(required)","(optional)":"(optional)"};var pk={};pk={"(optional)":"(opcional)","(required)":"(obligatorio)"};var mk={};mk={"(optional)":"(valikuline)","(required)":"(nõutav)"};var gk={};gk={"(optional)":"(valinnainen)","(required)":"(pakollinen)"};var vk={};vk={"(optional)":"(facultatif)","(required)":"(requis)"};var bk={};bk={"(optional)":"(אופציונלי)","(required)":"(נדרש)"};var yk={};yk={"(optional)":"(opcionalno)","(required)":"(obvezno)"};var $k={};$k={"(optional)":"(opcionális)","(required)":"(kötelező)"};var xk={};xk={"(optional)":"(facoltativo)","(required)":"(obbligatorio)"};var wk={};wk={"(optional)":"(オプション)","(required)":"(必須)"};var Dk={};Dk={"(optional)":"(선택 사항)","(required)":"(필수 사항)"};var _k={};_k={"(optional)":"(pasirenkama)","(required)":"(privaloma)"};var Ek={};Ek={"(optional)":"(neobligāti)","(required)":"(obligāti)"};var Sk={};Sk={"(optional)":"(valgfritt)","(required)":"(obligatorisk)"};var Ck={};Ck={"(optional)":"(optioneel)","(required)":"(vereist)"};var kk={};kk={"(optional)":"(opcjonalne)","(required)":"(wymagane)"};var Pk={};Pk={"(optional)":"(opcional)","(required)":"(obrigatório)"};var Tk={};Tk={"(optional)":"(opcional)","(required)":"(obrigatório)"};var Rk={};Rk={"(optional)":"(opţional)","(required)":"(obligatoriu)"};var Mk={};Mk={"(optional)":"(дополнительно)","(required)":"(обязательно)"};var Fk={};Fk={"(optional)":"(nepovinné)","(required)":"(povinné)"};var Ak={};Ak={"(optional)":"(opcijsko)","(required)":"(obvezno)"};var Ok={};Ok={"(optional)":"(opciono)","(required)":"(obavezno)"};var Bk={};Bk={"(optional)":"(valfritt)","(required)":"(krävs)"};var Ik={};Ik={"(optional)":"(isteğe bağlı)","(required)":"(gerekli)"};var Lk={};Lk={"(optional)":"(необов’язково)","(required)":"(обов’язково)"};var Nk={};Nk={"(optional)":"(可选)","(required)":"(必填)"};var jk={};jk={"(optional)":"(選填)","(required)":"(必填)"};var zk={};zk={"ar-AE":ok,"bg-BG":lk,"cs-CZ":uk,"da-DK":ck,"de-DE":dk,"el-GR":fk,"en-US":hk,"es-ES":pk,"et-EE":mk,"fi-FI":gk,"fr-FR":vk,"he-IL":bk,"hr-HR":yk,"hu-HU":$k,"it-IT":xk,"ja-JP":wk,"ko-KR":Dk,"lt-LT":_k,"lv-LV":Ek,"nb-NO":Sk,"nl-NL":Ck,"pl-PL":kk,"pt-BR":Pk,"pt-PT":Tk,"ro-RO":Rk,"ru-RU":Mk,"sk-SK":Fk,"sl-SI":Ak,"sr-SP":Ok,"sv-SE":Bk,"tr-TR":Ik,"uk-UA":Lk,"zh-CN":Nk,"zh-TW":jk};function ve(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var te={};ve(te,"contextualHelp",()=>Q1,e=>Q1=e);ve(te,"field",()=>J1,e=>J1=e);ve(te,"focus-ring",()=>e4,e=>e4=e);ve(te,"helpText",()=>t4,e=>t4=e);ve(te,"i18nFontFamily",()=>n4,e=>n4=e);ve(te,"is-disabled",()=>r4,e=>r4=e);ve(te,"label",()=>i4,e=>i4=e);ve(te,"spectrum-Field",()=>a4,e=>a4=e);ve(te,"spectrum-Field--alignEnd",()=>s4,e=>s4=e);ve(te,"spectrum-Field--hasContextualHelp",()=>o4,e=>o4=e);ve(te,"spectrum-Field--positionSide",()=>l4,e=>l4=e);ve(te,"spectrum-Field--positionTop",()=>u4,e=>u4=e);ve(te,"spectrum-Field-contextualHelp",()=>c4,e=>c4=e);ve(te,"spectrum-Field-field",()=>d4,e=>d4=e);ve(te,"spectrum-Field-labelCell",()=>f4,e=>f4=e);ve(te,"spectrum-Field-labelWrapper",()=>h4,e=>h4=e);ve(te,"spectrum-Field-wrapper",()=>p4,e=>p4=e);ve(te,"spectrum-FieldLabel",()=>m4,e=>m4=e);ve(te,"spectrum-FieldLabel--alignEnd",()=>g4,e=>g4=e);ve(te,"spectrum-FieldLabel--positionSide",()=>v4,e=>v4=e);ve(te,"spectrum-FieldLabel-requiredIcon",()=>b4,e=>b4=e);ve(te,"spectrum-FocusRing-ring",()=>Fd,e=>Fd=e);ve(te,"spectrum-FocusRing",()=>y4,e=>y4=e);ve(te,"spectrum-FocusRing--quiet",()=>$4,e=>$4=e);ve(te,"spectrum-Form",()=>x4,e=>x4=e);ve(te,"spectrum-Form--positionSide",()=>w4,e=>w4=e);ve(te,"spectrum-Form--positionTop",()=>D4,e=>D4=e);ve(te,"spectrum-Form-itemLabel",()=>_4,e=>_4=e);ve(te,"spectrum-LabeledValue",()=>E4,e=>E4=e);var Q1,J1,e4,t4,n4,r4,i4,a4,s4,o4,l4,u4,c4,d4,f4,h4,p4,m4,g4,v4,b4,Fd,y4,$4,x4,w4,D4,_4,E4;Q1="A-HlBa_contextualHelp";J1="A-HlBa_field";e4="A-HlBa_focus-ring";t4="A-HlBa_helpText";n4="A-HlBa_i18nFontFamily";r4="A-HlBa_is-disabled";i4="A-HlBa_label";a4="A-HlBa_spectrum-Field";s4="A-HlBa_spectrum-Field--alignEnd";o4="A-HlBa_spectrum-Field--hasContextualHelp";l4="A-HlBa_spectrum-Field--positionSide";u4="A-HlBa_spectrum-Field--positionTop";c4="A-HlBa_spectrum-Field-contextualHelp";d4="A-HlBa_spectrum-Field-field";f4="A-HlBa_spectrum-Field-labelCell";h4="A-HlBa_spectrum-Field-labelWrapper";p4="A-HlBa_spectrum-Field-wrapper";m4="A-HlBa_spectrum-FieldLabel";g4="A-HlBa_spectrum-FieldLabel--alignEnd";v4="A-HlBa_spectrum-FieldLabel--positionSide";b4="A-HlBa_spectrum-FieldLabel-requiredIcon";Fd="A-HlBa_spectrum-FocusRing-ring";y4=`A-HlBa_spectrum-FocusRing ${Fd}`;$4="A-HlBa_spectrum-FocusRing--quiet";x4="A-HlBa_spectrum-Form";w4="A-HlBa_spectrum-Form--positionSide";D4="A-HlBa_spectrum-Form--positionTop";_4="A-HlBa_spectrum-Form-itemLabel";E4="A-HlBa_spectrum-LabeledValue";var Vk={};Object.defineProperty(Vk,"__esModule",{value:!0});var cV=Vk.Asterisk=Wk,lp=dV(y);function dV(e){return e&&e.__esModule?e:{default:e}}function S4(){return S4=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},S4.apply(this,arguments)}function fV(e,t){if(e==null)return{};var n=hV(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function hV(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Wk(e){var t=e.scale,n=t===void 0?"M":t,r=fV(e,["scale"]);return lp.default.createElement("svg",S4({},r,r),n==="L"&&lp.default.createElement("path",{d:"M7.867 7.872c.061.062.103.145 0 .228l-1.283.827c-.104.061-.145.02-.186-.083L4.804 6.07l-2.09 2.297c-.021.042-.083.083-.145 0l-.994-1.035c-.103-.062-.082-.124 0-.186l2.36-1.966-2.691-1.014c-.042 0-.104-.083-.062-.186l.703-1.41a.11.11 0 0 1 .187-.04L4.43 4.06l.145-3.02A.109.109 0 0 1 4.7.917l1.718.227c.104 0 .124.042.104.145l-.808 2.96 2.734-.828c.061-.042.124-.042.165.082l.27 1.532c.02.103 0 .145-.084.145l-2.856.227z"}),n==="M"&&lp.default.createElement("path",{d:"M6.573 6.558c.056.055.092.13 0 .204l-1.148.74c-.093.056-.13.02-.167-.073L3.832 4.947l-1.87 2.055c-.02.037-.075.074-.13 0l-.889-.926c-.092-.055-.074-.111 0-.167l2.111-1.76-2.408-.906c-.037 0-.092-.074-.055-.167l.63-1.259a.097.097 0 0 1 .166-.036l2.111 1.37.13-2.704a.097.097 0 0 1 .111-.11L5.277.54c.092 0 .11.037.092.13l-.722 2.647 2.444-.74c.056-.038.111-.038.148.073l.241 1.37c.019.093 0 .13-.074.13l-2.556.204z"}))}Wk.displayName="Asterisk";function pV(e){return _.createElement(va,e,_.createElement(cV,null))}function up(e){return e&&e.__esModule?e.default:e}function mV(e,t){e=Vl(e);let{children:n,labelPosition:r="top",labelAlign:i=r==="side"?"start":null,isRequired:a,necessityIndicator:s=a!=null?"icon":null,includeNecessityIndicatorInAccessibilityName:o=!1,htmlFor:l,for:u,elementType:c="label",onClick:d,...f}=e,h=Nn(t),{styleProps:p}=st(f),g=Sn(up(zk),"@react-spectrum/label"),b=a?g.format("(required)"):g.format("(optional)"),v=_.createElement(pV,{UNSAFE_className:V(up(te),"spectrum-FieldLabel-requiredIcon"),"aria-label":o?g.format("(required)"):void 0}),m=V(up(te),"spectrum-FieldLabel",{"spectrum-FieldLabel--positionSide":r==="side","spectrum-FieldLabel--alignEnd":i==="end"},p.className);return _.createElement(c,{...Xt(f),...p,onClick:d,ref:h,className:m,htmlFor:c==="label"?u||l:void 0},n,(s==="label"||s==="icon"&&a)&&" ​",s==="label"&&_.createElement("span",{"aria-hidden":o?void 0:a},b),s==="icon"&&a&&v)}let gV=_.forwardRef(mV),vV=_.createContext(null);function T$(e){let t=y.useContext(vV);return t?{...t,...e}:e}function xi(e){return e&&e.__esModule?e.default:e}function bV(e,t){let n=T$(e),r=n!==e;e=n;let{label:i,labelPosition:a="top",labelAlign:s,isRequired:o,necessityIndicator:l,includeNecessityIndicatorInAccessibilityName:u,validationState:c,isInvalid:d,description:f,errorMessage:h=N=>N.validationErrors.join(" "),validationErrors:p,validationDetails:g,isDisabled:b,showErrorIcon:v,contextualHelp:m,children:$,labelProps:w={},descriptionProps:D={},errorMessageProps:S={},elementType:k,wrapperClassName:x,wrapperProps:T={},...P}=e,{styleProps:E}=st(P),F=null;typeof h=="function"?F=d!=null&&p!=null&&g!=null?h({isInvalid:d,validationErrors:p,validationDetails:g}):null:F=h;let R=!!f||F&&(d||c==="invalid"),M=Qn(),z=Qn();i&&m&&!w.id&&(w.id=z);let B=V(xi(te),"spectrum-Field",{"spectrum-Field--positionTop":a==="top","spectrum-Field--positionSide":a==="side","spectrum-Field--alignEnd":s==="end","spectrum-Field--hasContextualHelp":!!e.contextualHelp},E.className,x);$=_.cloneElement($,de($.props,{className:V(xi(te),"spectrum-Field-field")}));let C=()=>_.createElement(sk,{descriptionProps:D,errorMessageProps:S,description:f,errorMessage:F,validationState:c,isInvalid:d,isDisabled:b,showErrorIcon:v,gridArea:xi(te).helpText}),A=()=>a==="side"?_.createElement(hC,{direction:"column",UNSAFE_className:V(xi(te),"spectrum-Field-wrapper")},$,R&&C()):_.createElement(_.Fragment,null,$,R&&C()),I=_.createElement(_.Fragment,null,i&&_.createElement(gV,{...w,labelPosition:a,labelAlign:s,isRequired:o,necessityIndicator:l,includeNecessityIndicatorInAccessibilityName:u,elementType:k},i),i&&m&&_.createElement(Of,{slots:{actionButton:{UNSAFE_className:V(xi(te),"spectrum-Field-contextualHelp"),id:M,"aria-labelledby":w!=null&&w.id?`${w.id} ${M}`:void 0}}},m));return r&&a==="side"&&i&&m&&(I=_.createElement("div",{className:V(xi(te),"spectrum-Field-labelCell")},_.createElement("div",{className:V(xi(te),"spectrum-Field-labelWrapper")},I))),_.createElement("div",{...E,...T,ref:t,className:B},I,A())}let Uk=_.forwardRef(bV);function Pr(e){return e&&e.__esModule?e.default:e}function yV(e){let{state:t,calendarProps:n,nextButtonProps:r,prevButtonProps:i,errorMessageProps:a,calendarRef:s,visibleMonths:o=1}=e,{styleProps:l}=st(e),u=Sn(Pr(ZC),"@react-spectrum/calendar"),{direction:c}=Qe(),d=t.visibleRange.start,f=xn({month:"long",year:"numeric",era:d.calendar.identifier==="gregory"&&d.era==="BC"?"short":void 0,calendar:d.calendar.identifier,timeZone:t.timeZone}),h=[],p=[];for(let g=0;g<o;g++){let b=d.add({months:g});h.push(_.createElement("div",{key:g,className:V(Pr(q),"spectrum-Calendar-monthHeader")},g===0&&_.createElement(N0,{...i,UNSAFE_className:V(Pr(q),"spectrum-Calendar-prevMonth"),isQuiet:!0},c==="rtl"?_.createElement(A5,null):_.createElement(F5,null)),_.createElement("h2",{"aria-hidden":!0,className:V(Pr(q),"spectrum-Calendar-title")},f.format(b.toDate(t.timeZone))),g===o-1&&_.createElement(N0,{...r,UNSAFE_className:V(Pr(q),"spectrum-Calendar-nextMonth"),isQuiet:!0},c==="rtl"?_.createElement(F5,null):_.createElement(A5,null)))),p.push(_.createElement(Xz,{...e,key:g,state:t,startDate:b}))}return _.createElement("div",{...l,...n,ref:s,className:V(Pr(q),"spectrum-Calendar",l.className)},_.createElement(Pg,null,_.createElement("h2",null,n["aria-label"])),_.createElement("div",{className:V(Pr(q),"spectrum-Calendar-header")},h),_.createElement("div",{className:V(Pr(q),"spectrum-Calendar-months")},p),_.createElement(Pg,null,_.createElement("button",{"aria-label":r["aria-label"],disabled:r.isDisabled,onClick:()=>t.focusNextPage(),tabIndex:-1})),t.isValueInvalid&&_.createElement(sk,{showErrorIcon:!0,errorMessage:e.errorMessage||u.format("invalidSelection",{selectedCount:"highlightedRange"in t?2:1}),errorMessageProps:a,isInvalid:!0,UNSAFE_className:"spectrum-Calendar-helpText"}))}function $V(e,t){e=Vl(e);let{visibleMonths:n=1}=e;n=Math.max(n,1);let r=y.useMemo(()=>({months:n}),[n]),{locale:i}=Qe(),a=Aj({...e,locale:i,visibleDuration:r,createCalendar:Y8}),s=y.useRef();y.useImperativeHandle(t,()=>({...Sf(s),focus(){a.setFocused(!0)}}));let{calendarProps:o,prevButtonProps:l,nextButtonProps:u,errorMessageProps:c}=VN(e,a,s);return _.createElement(yV,{...e,visibleMonths:n,state:a,calendarRef:s,calendarProps:o,prevButtonProps:l,nextButtonProps:u,errorMessageProps:c})}const xV=_.forwardRef($V),Hk=_.createContext(null);var Kk={};Kk={alert:"تنبيه",dismiss:"تجاهل"};var Yk={};Yk={alert:"Сигнал",dismiss:"Отхвърляне"};var qk={};qk={alert:"Výstraha",dismiss:"Odstranit"};var Gk={};Gk={alert:"Advarsel",dismiss:"Luk"};var Zk={};Zk={alert:"Warnhinweis",dismiss:"Schließen"};var Xk={};Xk={alert:"Ειδοποίηση",dismiss:"Απόρριψη"};var Qk={};Qk={dismiss:"Dismiss",alert:"Alert"};var Jk={};Jk={alert:"Alerta",dismiss:"Descartar"};var eP={};eP={alert:"Teade",dismiss:"Lõpeta"};var tP={};tP={alert:"Hälytys",dismiss:"Hylkää"};var nP={};nP={alert:"Alerte",dismiss:"Rejeter"};var rP={};rP={alert:"התראה",dismiss:"התעלם"};var iP={};iP={alert:"Upozorenje",dismiss:"Odbaci"};var aP={};aP={alert:"Figyelmeztetés",dismiss:"Elutasítás"};var sP={};sP={alert:"Avviso",dismiss:"Ignora"};var oP={};oP={alert:"アラート",dismiss:"閉じる"};var lP={};lP={alert:"경고",dismiss:"무시"};var uP={};uP={alert:"Įspėjimas",dismiss:"Atmesti"};var cP={};cP={alert:"Brīdinājums",dismiss:"Nerādīt"};var dP={};dP={alert:"Varsel",dismiss:"Lukk"};var fP={};fP={alert:"Melding",dismiss:"Negeren"};var hP={};hP={alert:"Ostrzeżenie",dismiss:"Zignoruj"};var pP={};pP={alert:"Alerta",dismiss:"Descartar"};var mP={};mP={alert:"Alerta",dismiss:"Dispensar"};var gP={};gP={alert:"Alertă",dismiss:"Revocare"};var vP={};vP={alert:"Предупреждение",dismiss:"Пропустить"};var bP={};bP={alert:"Upozornenie",dismiss:"Zrušiť"};var yP={};yP={alert:"Opozorilo",dismiss:"Opusti"};var $P={};$P={alert:"Upozorenje",dismiss:"Odbaci"};var xP={};xP={alert:"Varning",dismiss:"Avvisa"};var wP={};wP={alert:"Uyarı",dismiss:"Kapat"};var DP={};DP={alert:"Сигнал тривоги",dismiss:"Скасувати"};var _P={};_P={alert:"警报",dismiss:"取消"};var EP={};EP={alert:"警示",dismiss:"關閉"};var SP={};SP={"ar-AE":Kk,"bg-BG":Yk,"cs-CZ":qk,"da-DK":Gk,"de-DE":Zk,"el-GR":Xk,"en-US":Qk,"es-ES":Jk,"et-EE":eP,"fi-FI":tP,"fr-FR":nP,"he-IL":rP,"hr-HR":iP,"hu-HU":aP,"it-IT":sP,"ja-JP":oP,"ko-KR":lP,"lt-LT":uP,"lv-LV":cP,"nb-NO":dP,"nl-NL":fP,"pl-PL":hP,"pt-BR":pP,"pt-PT":mP,"ro-RO":gP,"ru-RU":vP,"sk-SK":bP,"sl-SI":yP,"sr-SP":$P,"sv-SE":xP,"tr-TR":wP,"uk-UA":DP,"zh-CN":_P,"zh-TW":EP};function K(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var H={};K(H,"buttonGroup",()=>C4,e=>C4=e);K(H,"buttonGroup-end",()=>k4,e=>k4=e);K(H,"closeButton",()=>P4,e=>P4=e);K(H,"content",()=>T4,e=>T4=e);K(H,"divider",()=>R4,e=>R4=e);K(H,"focus-ring",()=>M4,e=>M4=e);K(H,"footer",()=>F4,e=>F4=e);K(H,"footer-start",()=>A4,e=>A4=e);K(H,"header",()=>O4,e=>O4=e);K(H,"header-end",()=>B4,e=>B4=e);K(H,"header-start",()=>I4,e=>I4=e);K(H,"heading",()=>L4,e=>L4=e);K(H,"heading-start",()=>N4,e=>N4=e);K(H,"hero",()=>j4,e=>j4=e);K(H,"i18nFontFamily",()=>z4,e=>z4=e);K(H,"spectrum-Button",()=>V4,e=>V4=e);K(H,"spectrum-Dialog",()=>W4,e=>W4=e);K(H,"spectrum-Dialog--dismissable",()=>U4,e=>U4=e);K(H,"spectrum-Dialog--error",()=>H4,e=>H4=e);K(H,"spectrum-Dialog--fullscreen",()=>K4,e=>K4=e);K(H,"spectrum-Dialog--fullscreenTakeover",()=>Y4,e=>Y4=e);K(H,"spectrum-Dialog--large",()=>q4,e=>q4=e);K(H,"spectrum-Dialog--medium",()=>G4,e=>G4=e);K(H,"spectrum-Dialog--noDivider",()=>Z4,e=>Z4=e);K(H,"spectrum-Dialog--small",()=>X4,e=>X4=e);K(H,"spectrum-Dialog--warning",()=>Q4,e=>Q4=e);K(H,"spectrum-Dialog-buttonGroup",()=>J4,e=>J4=e);K(H,"spectrum-Dialog-buttonGroup--noFooter",()=>eb,e=>eb=e);K(H,"spectrum-Dialog-closeButton",()=>tb,e=>tb=e);K(H,"spectrum-Dialog-content",()=>nb,e=>nb=e);K(H,"spectrum-Dialog-divider",()=>rb,e=>rb=e);K(H,"spectrum-Dialog-footer",()=>ib,e=>ib=e);K(H,"spectrum-Dialog-grid",()=>ab,e=>ab=e);K(H,"spectrum-Dialog-header",()=>sb,e=>sb=e);K(H,"spectrum-Dialog-header--noTypeIcon",()=>ob,e=>ob=e);K(H,"spectrum-Dialog-heading",()=>lb,e=>lb=e);K(H,"spectrum-Dialog-heading--noHeader",()=>ub,e=>ub=e);K(H,"spectrum-Dialog-heading--noTypeIcon",()=>cb,e=>cb=e);K(H,"spectrum-Dialog-hero",()=>db,e=>db=e);K(H,"spectrum-Dialog-typeIcon",()=>fb,e=>fb=e);K(H,"spectrum-FocusRing-ring",()=>Ad,e=>Ad=e);K(H,"spectrum-FocusRing",()=>hb,e=>hb=e);K(H,"spectrum-FocusRing--quiet",()=>pb,e=>pb=e);K(H,"spectrum-overlay",()=>mb,e=>mb=e);K(H,"spectrum-overlay--bottom--open",()=>gb,e=>gb=e);K(H,"spectrum-overlay--left--open",()=>vb,e=>vb=e);K(H,"spectrum-overlay--open",()=>bb,e=>bb=e);K(H,"spectrum-overlay--right--open",()=>yb,e=>yb=e);K(H,"spectrum-overlay--top--open",()=>$b,e=>$b=e);K(H,"typeIcon",()=>xb,e=>xb=e);K(H,"typeIcon-end",()=>wb,e=>wb=e);var C4,k4,P4,T4,R4,M4,F4,A4,O4,B4,I4,L4,N4,j4,z4,V4,W4,U4,H4,K4,Y4,q4,G4,Z4,X4,Q4,J4,eb,tb,nb,rb,ib,ab,sb,ob,lb,ub,cb,db,fb,Ad,hb,pb,mb,gb,vb,bb,yb,$b,xb,wb;C4="h_OVWW_buttonGroup";k4="h_OVWW_buttonGroup-end";P4="h_OVWW_closeButton";T4="h_OVWW_content";R4="h_OVWW_divider";M4="h_OVWW_focus-ring";F4="h_OVWW_footer";A4="h_OVWW_footer-start";O4="h_OVWW_header";B4="h_OVWW_header-end";I4="h_OVWW_header-start";L4="h_OVWW_heading";N4="h_OVWW_heading-start";j4="h_OVWW_hero";z4="h_OVWW_i18nFontFamily";V4="h_OVWW_spectrum-Button";W4="h_OVWW_spectrum-Dialog";U4="h_OVWW_spectrum-Dialog--dismissable";H4="h_OVWW_spectrum-Dialog--error";K4="h_OVWW_spectrum-Dialog--fullscreen";Y4="h_OVWW_spectrum-Dialog--fullscreenTakeover";q4="h_OVWW_spectrum-Dialog--large";G4="h_OVWW_spectrum-Dialog--medium";Z4="h_OVWW_spectrum-Dialog--noDivider";X4="h_OVWW_spectrum-Dialog--small";Q4="h_OVWW_spectrum-Dialog--warning";J4="h_OVWW_spectrum-Dialog-buttonGroup";eb="h_OVWW_spectrum-Dialog-buttonGroup--noFooter";tb="h_OVWW_spectrum-Dialog-closeButton";nb="h_OVWW_spectrum-Dialog-content";rb="h_OVWW_spectrum-Dialog-divider";ib="h_OVWW_spectrum-Dialog-footer";ab="h_OVWW_spectrum-Dialog-grid";sb="h_OVWW_spectrum-Dialog-header";ob="h_OVWW_spectrum-Dialog-header--noTypeIcon";lb="h_OVWW_spectrum-Dialog-heading";ub="h_OVWW_spectrum-Dialog-heading--noHeader";cb="h_OVWW_spectrum-Dialog-heading--noTypeIcon";db="h_OVWW_spectrum-Dialog-hero";fb="h_OVWW_spectrum-Dialog-typeIcon";Ad="h_OVWW_spectrum-FocusRing-ring";hb=`h_OVWW_spectrum-FocusRing ${Ad}`;pb="h_OVWW_spectrum-FocusRing--quiet";mb="h_OVWW_spectrum-overlay";gb="h_OVWW_spectrum-overlay--bottom--open";vb="h_OVWW_spectrum-overlay--left--open";bb="h_OVWW_spectrum-overlay--open";yb="h_OVWW_spectrum-overlay--right--open";$b="h_OVWW_spectrum-overlay--top--open";xb="h_OVWW_typeIcon";wb="h_OVWW_typeIcon-end";function wt(e){return e&&e.__esModule?e.default:e}let O5={S:"small",M:"medium",L:"large",fullscreen:"fullscreen",fullscreenTakeover:"fullscreenTakeover"};function wV(e,t){e=ui(e,"dialog");let{type:n="modal",...r}=y.useContext(Hk)||{},{children:i,isDismissable:a=r.isDismissable,onDismiss:s=r.onClose,size:o,...l}=e,u=Sn(wt(SP),"@react-spectrum/dialog"),{styleProps:c}=st(l);o=n==="popover"?o||"S":o||"L";let d=Nn(t),f=y.useRef(null),h=O5[n]||O5[o],{dialogProps:p,titleProps:g}=Mj(de(r,e),d),b=bu(`.${wt(H)["spectrum-Dialog-header"]}`,hu(f)),v=bu(`.${wt(H)["spectrum-Dialog-heading"]}`,hu(f)),m=bu(`.${wt(H)["spectrum-Dialog-footer"]}`,hu(f)),$=bu(`.${wt(H)["spectrum-Dialog-typeIcon"]}`,hu(f)),w=y.useMemo(()=>({hero:{UNSAFE_className:wt(H)["spectrum-Dialog-hero"]},heading:{UNSAFE_className:V(wt(H),"spectrum-Dialog-heading",{"spectrum-Dialog-heading--noHeader":!b,"spectrum-Dialog-heading--noTypeIcon":!$}),level:2,...g},header:{UNSAFE_className:V(wt(H),"spectrum-Dialog-header",{"spectrum-Dialog-header--noHeading":!v,"spectrum-Dialog-header--noTypeIcon":!$})},typeIcon:{UNSAFE_className:wt(H)["spectrum-Dialog-typeIcon"]},divider:{UNSAFE_className:wt(H)["spectrum-Dialog-divider"],size:"M"},content:{UNSAFE_className:wt(H)["spectrum-Dialog-content"]},footer:{UNSAFE_className:wt(H)["spectrum-Dialog-footer"]},buttonGroup:{UNSAFE_className:V(wt(H),"spectrum-Dialog-buttonGroup",{"spectrum-Dialog-buttonGroup--noFooter":!m}),align:"end"}}),[m,b,g]);return _.createElement("section",{...c,...p,className:V(wt(H),"spectrum-Dialog",{[`spectrum-Dialog--${h}`]:h,"spectrum-Dialog--dismissable":a},c.className),ref:d},_.createElement(jz,{ref:f,UNSAFE_className:wt(H)["spectrum-Dialog-grid"]},_.createElement(Of,{slots:w},i),a&&_.createElement(N0,{UNSAFE_className:wt(H)["spectrum-Dialog-closeButton"],isQuiet:!0,"aria-label":u.format("dismiss"),onPress:s},_.createElement(Gz,null))))}let DV=_.forwardRef(wV);function _V(e,t){e=ui(e,"content");let{children:n,...r}=e,{styleProps:i}=st(r),a=Nn(t);return _.createElement("section",{...Xt(r),...i,ref:a},_.createElement(u7,null,n))}const EV=y.forwardRef(_V);function Db(e){let{children:t,type:n="modal",mobileType:r=n==="popover"?"modal":n,hideArrow:i,targetRef:a,isDismissable:s,isKeyboardDismissDisabled:o,...l}=e;if(!Array.isArray(t)||t.length>2)throw new Error("DialogTrigger must have exactly 2 children");let[u,c]=t;XL()&&(n!=="modal"&&r==="modal"&&(s=!0),n=r);let f=yS(e),h=y.useRef(!1);y.useEffect(()=>{h.current=f.isOpen},[f.isOpen]);let p=y.useRef(!1),g=()=>p.current=!0,b=()=>p.current=!1;if(y.useEffect(()=>()=>{(h.current||p.current)&&n!=="popover"&&n!=="tray"&&console.warn("A DialogTrigger unmounted while open. This is likely due to being placed within a trigger that unmounts or inside a conditional. Consider using a DialogContainer instead.")},[]),n==="popover")return _.createElement(CV,{...l,state:f,targetRef:a,trigger:u,content:c,isKeyboardDismissDisabled:o,hideArrow:i});let v=()=>{switch(n){case"fullscreen":case"fullscreenTakeover":case"modal":return _.createElement(kz,{state:f,isDismissable:n==="modal"?s:!1,type:n,isKeyboardDismissDisabled:o,onExiting:g,onExited:b},typeof c=="function"?c(f.close):c);case"tray":return _.createElement(Rz,{state:f,isKeyboardDismissDisabled:o},typeof c=="function"?c(f.close):c)}};return _.createElement(CP,{type:n,state:f,isDismissable:s,trigger:u,overlay:v()})}Db.getCollectionNode=function*(e){let[t]=_.Children.toArray(e.children),[,n]=e.children;yield{element:t,wrapper:r=>_.createElement(Db,{key:r.key,...e},r,n)}};let SV=Db;function CV({state:e,targetRef:t,trigger:n,content:r,hideArrow:i,...a}){let s=y.useRef(null),{triggerProps:o,overlayProps:l}=cj({type:"dialog"},e,s),u={...o,ref:t?void 0:s},c=_.createElement(_z,{...a,hideArrow:i,triggerRef:t||s,state:e},typeof r=="function"?r(e.close):r);return _.createElement(CP,{type:"popover",state:e,triggerProps:u,dialogProps:l,trigger:n,overlay:c})}function CP({type:e,state:t,isDismissable:n,dialogProps:r={},triggerProps:i={},overlay:a,trigger:s}){let o={type:e,onClose:t.close,isDismissable:n,...r};return _.createElement(y.Fragment,null,_.createElement(sN,{...i,onPress:t.toggle,isPressed:t.isOpen&&e!=="modal"&&e!=="fullscreen"&&e!=="fullscreenTakeover"},s),_.createElement(Hk.Provider,{value:o},a))}function Ue(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var ee={};Ue(ee,"is-invalid",()=>_b,e=>_b=e);Ue(ee,"is-placeholder",()=>Eb,e=>Eb=e);Ue(ee,"is-read-only",()=>Sb,e=>Sb=e);Ue(ee,"react-spectrum-DateField",()=>Cb,e=>Cb=e);Ue(ee,"react-spectrum-DateField-Input",()=>kb,e=>kb=e);Ue(ee,"react-spectrum-DatePicker-cell",()=>Pb,e=>Pb=e);Ue(ee,"react-spectrum-DatePicker-placeholder",()=>Tb,e=>Tb=e);Ue(ee,"react-spectrum-Datepicker-calendar",()=>Rb,e=>Rb=e);Ue(ee,"react-spectrum-Datepicker-dialog",()=>Mb,e=>Mb=e);Ue(ee,"react-spectrum-Datepicker-dialogContent",()=>Fb,e=>Fb=e);Ue(ee,"react-spectrum-Datepicker-endField",()=>Ab,e=>Ab=e);Ue(ee,"react-spectrum-Datepicker-field",()=>Ob,e=>Ob=e);Ue(ee,"react-spectrum-Datepicker-fieldWrapper",()=>Bb,e=>Bb=e);Ue(ee,"react-spectrum-Datepicker-input",()=>Ib,e=>Ib=e);Ue(ee,"react-spectrum-Datepicker-inputContents",()=>Lb,e=>Lb=e);Ue(ee,"react-spectrum-Datepicker-literal",()=>Nb,e=>Nb=e);Ue(ee,"react-spectrum-Datepicker-rangeDash",()=>jb,e=>jb=e);Ue(ee,"react-spectrum-Datepicker-segments",()=>zb,e=>zb=e);Ue(ee,"react-spectrum-Datepicker-startField",()=>Vb,e=>Vb=e);Ue(ee,"react-spectrum-Datepicker-timeFields",()=>Wb,e=>Wb=e);Ue(ee,"react-spectrum-TimeField",()=>Ub,e=>Ub=e);Ue(ee,"react-spectrum-TimeField-fieldWrapper",()=>Hb,e=>Hb=e);var _b,Eb,Sb,Cb,kb,Pb,Tb,Rb,Mb,Fb,Ab,Ob,Bb,Ib,Lb,Nb,jb,zb,Vb,Wb,Ub,Hb;_b="_2n04KW_is-invalid";Eb="_2n04KW_is-placeholder";Sb="_2n04KW_is-read-only";Cb="_2n04KW_react-spectrum-DateField";kb="_2n04KW_react-spectrum-DateField-Input";Pb="_2n04KW_react-spectrum-DatePicker-cell";Tb="_2n04KW_react-spectrum-DatePicker-placeholder";Rb="_2n04KW_react-spectrum-Datepicker-calendar";Mb="_2n04KW_react-spectrum-Datepicker-dialog";Fb="_2n04KW_react-spectrum-Datepicker-dialogContent";Ab="_2n04KW_react-spectrum-Datepicker-endField";Ob="_2n04KW_react-spectrum-Datepicker-field";Bb="_2n04KW_react-spectrum-Datepicker-fieldWrapper";Ib="_2n04KW_react-spectrum-Datepicker-input";Lb="_2n04KW_react-spectrum-Datepicker-inputContents";Nb="_2n04KW_react-spectrum-Datepicker-literal";jb="_2n04KW_react-spectrum-Datepicker-rangeDash";zb="_2n04KW_react-spectrum-Datepicker-segments";Vb="_2n04KW_react-spectrum-Datepicker-startField";Wb="_2n04KW_react-spectrum-Datepicker-timeFields";Ub="_2n04KW_react-spectrum-TimeField";Hb="_2n04KW_react-spectrum-TimeField-fieldWrapper";function Kb(e){return e&&e.__esModule?e.default:e}function kP({segment:e,state:t,...n}){switch(e.type){case"literal":return _.createElement(kV,{segment:e});default:return _.createElement(PV,{segment:e,state:t,...n})}}function kV({segment:e}){return _.createElement("span",{"aria-hidden":"true",className:V(Kb(ee),"react-spectrum-Datepicker-literal"),"data-testid":e.type==="literal"?void 0:e.type},e.text)}function PV({segment:e,state:t}){let n=y.useRef(),{segmentProps:r}=kj(e,t,n);return _.createElement("div",{...r,ref:n,className:V(Kb(ee),"react-spectrum-DatePicker-cell",{"is-placeholder":e.isPlaceholder,"is-read-only":!e.isEditable}),style:{...r.style,minWidth:e.maxValue!=null?String(e.maxValue).length+"ch":null},"data-testid":e.type},_.createElement("span",{"aria-hidden":"true",className:V(Kb(ee),"react-spectrum-DatePicker-placeholder")},e.placeholder),e.isPlaceholder?"":e.text)}function TV(e){return e&&e.__esModule?e.default:e}function B5(e){let{isDisabled:t,isReadOnly:n,isRequired:r,inputClassName:i}=e,a=y.useRef(),{locale:s}=Qe(),o=aC({...e,locale:s,createCalendar:Y8}),l=y.useRef(),{fieldProps:u,inputProps:c}=O9({...e,inputRef:l},o,a);return _.createElement("div",{...u,"data-testid":e["data-testid"],className:V(TV(ee),"react-spectrum-Datepicker-segments",i),ref:a},o.segments.map((d,f)=>_.createElement(kP,{key:f,segment:d,state:o,isDisabled:t,isReadOnly:n,isRequired:r})),_.createElement("input",{...c,ref:l}))}function He(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var Re={};He(Re,"focus-ring",()=>Yb,e=>Yb=e);He(Re,"i18nFontFamily",()=>Od,e=>Od=e);He(Re,"is-disabled",()=>qb,e=>qb=e);He(Re,"is-focused",()=>Gb,e=>Gb=e);He(Re,"is-hovered",()=>Zb,e=>Zb=e);He(Re,"is-placeholder",()=>Xb,e=>Xb=e);He(Re,"spectrum-FocusRing-ring",()=>Bd,e=>Bd=e);He(Re,"spectrum-FocusRing",()=>Id,e=>Id=e);He(Re,"spectrum-FocusRing--quiet",()=>Ld,e=>Ld=e);He(Re,"spectrum-Textfield",()=>Qb,e=>Qb=e);He(Re,"spectrum-Textfield--invalid",()=>Jb,e=>Jb=e);He(Re,"spectrum-Textfield--loadable",()=>ey,e=>ey=e);He(Re,"spectrum-Textfield--multiline",()=>ty,e=>ty=e);He(Re,"spectrum-Textfield--quiet",()=>ny,e=>ny=e);He(Re,"spectrum-Textfield--valid",()=>ry,e=>ry=e);He(Re,"spectrum-Textfield-circleLoader",()=>iy,e=>iy=e);He(Re,"spectrum-Textfield-icon",()=>ay,e=>ay=e);He(Re,"spectrum-Textfield-input",()=>sy,e=>sy=e);He(Re,"spectrum-Textfield-inputIcon",()=>oy,e=>oy=e);He(Re,"spectrum-Textfield-validationIcon",()=>ly,e=>ly=e);He(Re,"spectrum-Textfield-wrapper",()=>uy,e=>uy=e);He(Re,"spectrum-Textfield-wrapper--quiet",()=>cy,e=>cy=e);var Yb,Od,qb,Gb,Zb,Xb,Bd,Id,Ld,Qb,Jb,ey,ty,ny,ry,iy,ay,sy,oy,ly,uy,cy;Yb="YO3Nla_focus-ring";Od="YO3Nla_i18nFontFamily";qb="YO3Nla_is-disabled";Gb="YO3Nla_is-focused";Zb="YO3Nla_is-hovered";Xb="YO3Nla_is-placeholder";Bd="YO3Nla_spectrum-FocusRing-ring";Id=`YO3Nla_spectrum-FocusRing ${Bd}`;Ld="YO3Nla_spectrum-FocusRing--quiet";Qb=`YO3Nla_spectrum-Textfield ${Id}`;Jb="YO3Nla_spectrum-Textfield--invalid";ey="YO3Nla_spectrum-Textfield--loadable";ty="YO3Nla_spectrum-Textfield--multiline";ny=`YO3Nla_spectrum-Textfield--quiet ${Ld}`;ry="YO3Nla_spectrum-Textfield--valid";iy="YO3Nla_spectrum-Textfield-circleLoader";ay="YO3Nla_spectrum-Textfield-icon";sy=`YO3Nla_spectrum-Textfield-input ${Od}`;oy="YO3Nla_spectrum-Textfield-inputIcon";ly="YO3Nla_spectrum-Textfield-validationIcon";uy="YO3Nla_spectrum-Textfield-wrapper";cy="YO3Nla_spectrum-Textfield-wrapper--quiet";function wi(e){return e&&e.__esModule?e.default:e}function RV(e,t){let n=y.useRef(null),{isDisabled:r,isQuiet:i,inputClassName:a,validationState:s,children:o,fieldProps:l,className:u,style:c,disableFocusRing:d}=e,[f,h]=G8(!1),p=y.useCallback(()=>h(function*(k){if(n.current){if(k){if(n.current.scrollWidth>n.current.offsetWidth){let x=n.current.parentElement.offsetWidth;yield!1,n.current.parentElement.offsetWidth!==x&&(yield!0)}}else if(n.current.offsetWidth>=n.current.scrollWidth){let x=n.current.parentElement.offsetWidth;yield!0,n.current.parentElement.offsetWidth===x&&(yield!1)}}}),[n,h]);he(p,[p]),n7({ref:n,onResize:p}),as(y.useRef(typeof window<"u"?window:null),"resize",p);let{focusProps:g,isFocusVisible:b,isFocused:v}=hl({isTextInput:!0,within:!0}),m=s==="invalid"&&!r,$=V(wi(Re),"spectrum-Textfield",{"spectrum-Textfield--invalid":m,"spectrum-Textfield--valid":s==="valid"&&!r,"spectrum-Textfield--quiet":i,"focus-ring":b&&!d},V(wi(ee),"react-spectrum-Datepicker-field"),u),w=V(wi(Re),"spectrum-Textfield-input",{"is-disabled":r,"is-focused":v},V(wi(ee),"react-spectrum-DateField-Input"),f&&V(wi(ee),"react-spectrum-Datepicker-input"),a),D=V(wi(Re),"spectrum-Textfield-validationIcon"),S=null;return s==="invalid"&&!r?S=_.createElement(ak,{"data-testid":"invalid-icon",UNSAFE_className:D}):s==="valid"&&!r&&(S=_.createElement(Bz,{"data-testid":"valid-icon",UNSAFE_className:D})),_.createElement("div",{role:"presentation",...de(l,g),className:$,style:c},_.createElement("div",{role:"presentation",className:w},_.createElement("div",{role:"presentation",className:V(wi(ee),"react-spectrum-Datepicker-inputContents"),ref:cL(t,n)},o)),S)}const PP=_.forwardRef(RV);var TP={};TP={endTime:"وقت الانتهاء",startTime:"وقت البدء",time:"الوقت"};var RP={};RP={endTime:"Краен час",startTime:"Начален час",time:"Време"};var MP={};MP={endTime:"Konečný čas",startTime:"Počáteční čas",time:"Čas"};var FP={};FP={endTime:"Sluttidspunkt",startTime:"Starttidspunkt",time:"Klokkeslæt"};var AP={};AP={endTime:"Endzeit",startTime:"Startzeit",time:"Uhrzeit"};var OP={};OP={endTime:"Χρόνος λήξης",startTime:"Ώρα έναρξης",time:"Χρόνος"};var BP={};BP={time:"Time",startTime:"Start time",endTime:"End time"};var IP={};IP={endTime:"Hora de finalización",startTime:"Hora de inicio",time:"Hora"};var LP={};LP={endTime:"Lõpuaeg",startTime:"Algusaeg",time:"Aeg"};var NP={};NP={endTime:"Päättymisaika",startTime:"Alkamisaika",time:"Aika"};var jP={};jP={endTime:"Heure de fin",startTime:"Heure de début",time:"Heure"};var zP={};zP={endTime:"שעת סיום",startTime:"שעת התחלה",time:"זמן"};var VP={};VP={endTime:"Vrijeme završetka",startTime:"Vrijeme početka",time:"Vrijeme"};var WP={};WP={endTime:"Befejezés ideje",startTime:"Kezdés ideje",time:"Idő"};var UP={};UP={endTime:"Ora di fine",startTime:"Ora di inizio",time:"Ora"};var HP={};HP={endTime:"終了時刻",startTime:"開始時刻",time:"時刻"};var KP={};KP={endTime:"종료 시간",startTime:"시작 시간",time:"시간"};var YP={};YP={endTime:"Pabaigos laikas",startTime:"Pradžios laikas",time:"Laikas"};var qP={};qP={endTime:"Beigu laiks",startTime:"Sākuma laiks",time:"Laiks"};var GP={};GP={endTime:"Sluttid",startTime:"Starttid",time:"Tid"};var ZP={};ZP={endTime:"Eindtijd",startTime:"Starttijd",time:"Tijd"};var XP={};XP={endTime:"Godzina końcowa",startTime:"Godzina początkowa",time:"Godzina"};var QP={};QP={endTime:"Hora final",startTime:"Hora inicial",time:"Hora"};var JP={};JP={endTime:"Terminar tempo",startTime:"Iniciar tempo",time:"Tempo"};var eT={};eT={endTime:"Ora de sfârșit",startTime:"Ora de început",time:"Ora"};var tT={};tT={endTime:"Время окончания",startTime:"Время начала",time:"Время"};var nT={};nT={endTime:"Čas ukončenia",startTime:"Čas začiatku",time:"Čas"};var rT={};rT={endTime:"Končni čas",startTime:"Začetni čas",time:"Čas"};var iT={};iT={endTime:"Završno vreme",startTime:"Početno vreme",time:"Vreme"};var aT={};aT={endTime:"Sluttid",startTime:"Starttid",time:"Tid"};var sT={};sT={endTime:"Bitiş saati",startTime:"Başlangıç saati",time:"Saat"};var oT={};oT={endTime:"Час завершення",startTime:"Час початку",time:"Час"};var lT={};lT={endTime:"结束时间",startTime:"开始时间",time:"时间"};var uT={};uT={endTime:"結束時間",startTime:"開始時間",time:"時間"};var cT={};cT={"ar-AE":TP,"bg-BG":RP,"cs-CZ":MP,"da-DK":FP,"de-DE":AP,"el-GR":OP,"en-US":BP,"es-ES":IP,"et-EE":LP,"fi-FI":NP,"fr-FR":jP,"he-IL":zP,"hr-HR":VP,"hu-HU":WP,"it-IT":UP,"ja-JP":HP,"ko-KR":KP,"lt-LT":YP,"lv-LV":qP,"nb-NO":GP,"nl-NL":ZP,"pl-PL":XP,"pt-BR":QP,"pt-PT":JP,"ro-RO":eT,"ru-RU":tT,"sk-SK":nT,"sl-SI":rT,"sr-SP":iT,"sv-SE":aT,"tr-TR":sT,"uk-UA":oT,"zh-CN":lT,"zh-TW":uT};function Se(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var fe={};Se(fe,"focus-ring",()=>dy,e=>dy=e);Se(fe,"i18nFontFamily",()=>fy,e=>fy=e);Se(fe,"is-disabled",()=>hy,e=>hy=e);Se(fe,"is-focused",()=>py,e=>py=e);Se(fe,"is-hovered",()=>my,e=>my=e);Se(fe,"is-selected",()=>gy,e=>gy=e);Se(fe,"spectrum-Datepicker--datetimeRange",()=>vy,e=>vy=e);Se(fe,"spectrum-Datepicker--range",()=>by,e=>by=e);Se(fe,"spectrum-Datepicker--rangeDash",()=>yy,e=>yy=e);Se(fe,"spectrum-Datepicker-endField",()=>$y,e=>$y=e);Se(fe,"spectrum-Datepicker-focusRing",()=>xy,e=>xy=e);Se(fe,"spectrum-Datepicker-startField",()=>wy,e=>wy=e);Se(fe,"spectrum-FieldButton",()=>Dy,e=>Dy=e);Se(fe,"spectrum-FieldButton--invalid",()=>_y,e=>_y=e);Se(fe,"spectrum-FocusRing-ring",()=>Nd,e=>Nd=e);Se(fe,"spectrum-FocusRing",()=>jd,e=>jd=e);Se(fe,"spectrum-FocusRing--quiet",()=>zd,e=>zd=e);Se(fe,"spectrum-InputGroup",()=>Ey,e=>Ey=e);Se(fe,"spectrum-InputGroup--invalid",()=>Sy,e=>Sy=e);Se(fe,"spectrum-InputGroup--quiet",()=>Cy,e=>Cy=e);Se(fe,"spectrum-InputGroup-field",()=>ky,e=>ky=e);Se(fe,"spectrum-InputGroup-icon",()=>Py,e=>Py=e);Se(fe,"spectrum-InputGroup-input",()=>Ty,e=>Ty=e);Se(fe,"spectrum-InputGroup-input-circleLoader",()=>Ry,e=>Ry=e);Se(fe,"spectrum-InputGroup-input-validationIcon",()=>My,e=>My=e);Se(fe,"spectrum-InputGroup-popover--quiet",()=>Fy,e=>Fy=e);var dy,fy,hy,py,my,gy,vy,by,yy,$y,xy,wy,Dy,_y,Nd,jd,zd,Ey,Sy,Cy,ky,Py,Ty,Ry,My,Fy;dy="ZTA2ya_focus-ring";fy="ZTA2ya_i18nFontFamily";hy="ZTA2ya_is-disabled";py="ZTA2ya_is-focused";my="ZTA2ya_is-hovered";gy="ZTA2ya_is-selected";vy="ZTA2ya_spectrum-Datepicker--datetimeRange";by="ZTA2ya_spectrum-Datepicker--range";yy="ZTA2ya_spectrum-Datepicker--rangeDash";$y="ZTA2ya_spectrum-Datepicker-endField";xy="ZTA2ya_spectrum-Datepicker-focusRing";wy="ZTA2ya_spectrum-Datepicker-startField";Dy="ZTA2ya_spectrum-FieldButton";_y="ZTA2ya_spectrum-FieldButton--invalid";Nd="ZTA2ya_spectrum-FocusRing-ring";jd=`ZTA2ya_spectrum-FocusRing ${Nd}`;zd="ZTA2ya_spectrum-FocusRing--quiet";Ey=`ZTA2ya_spectrum-InputGroup ${jd}`;Sy="ZTA2ya_spectrum-InputGroup--invalid";Cy=`ZTA2ya_spectrum-InputGroup--quiet ${zd}`;ky="ZTA2ya_spectrum-InputGroup-field";Py="ZTA2ya_spectrum-InputGroup-icon";Ty="ZTA2ya_spectrum-InputGroup-input";Ry="ZTA2ya_spectrum-InputGroup-input-circleLoader";My="ZTA2ya_spectrum-InputGroup-input-validationIcon";Fy="ZTA2ya_spectrum-InputGroup-popover--quiet";function MV(e){let t=xn({dateStyle:"short"}),n=B9();return y.useMemo(()=>e.description?e.description:e.showFormatHelpText?t.formatToParts(new Date).map(r=>r.type==="literal"?r.value:n.of(r.type)).join(" "):"",[e.description,e.showFormatHelpText,t,n])}function FV(e){let{scale:t}=ga(),[n,r]=y.useState(I5(t));return he(()=>{let i=()=>r(I5(t));return i(),window.addEventListener("resize",i),()=>{window.removeEventListener("resize",i)}},[t]),Math.max(1,Math.min(n,e,3))}function I5(e){if(typeof window>"u")return 1;let t=e==="large"?336:280,n=e==="large"?30:24,r=e==="large"?32:48;return Math.floor((window.innerWidth-r*2)/(t+n))}function dT(e){let t=y.useRef();return y.useImperativeHandle(e,()=>({...Sf(t),focus(){Lf(t).focusFirst({tabbable:!0})}})),t}function L5(e){return e&&e.__esModule?e.default:e}function AV(e,t){e=Vl(e),e=T$(e);let{autoFocus:n,isDisabled:r,isReadOnly:i,isRequired:a,isQuiet:s}=e,o=dT(t),{locale:l}=Qe(),u=Kj({...e,locale:l}),c=y.useRef(null),d=y.useRef(null),{labelProps:f,fieldProps:h,inputProps:p,descriptionProps:g,errorMessageProps:b,isInvalid:v,validationErrors:m,validationDetails:$}=Dj({...e,inputRef:d},u,c),w=u.validationState||(v?"invalid":null);return _.createElement(Uk,{...e,ref:o,elementType:"span",labelProps:f,descriptionProps:g,errorMessageProps:b,validationState:w,isInvalid:v,validationErrors:m,validationDetails:$,wrapperClassName:V(L5(ee),"react-spectrum-TimeField-fieldWrapper")},_.createElement(PP,{ref:c,fieldProps:h,isDisabled:r,isQuiet:s,autoFocus:n,validationState:w,className:V(L5(ee),"react-spectrum-TimeField")},u.segments.map((D,S)=>_.createElement(kP,{key:S,segment:D,state:u,isDisabled:r,isReadOnly:i,isRequired:a})),_.createElement("input",{...p,ref:d})))}const N5=_.forwardRef(AV);var fT={};Object.defineProperty(fT,"__esModule",{value:!0});var OV=fT.A4uCalendar=IV,Nt=BV(y);function BV(e){return e&&e.__esModule?e:{default:e}}function Vd(){return Vd=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},Vd.apply(this,arguments)}function IV(e){var t=Vd({},e);return Nt.default.createElement("svg",Vd({viewBox:"0 0 36 36"},t,t),Nt.default.createElement("path",{fillRule:"evenodd",d:"M33,6H28V3a1,1,0,0,0-1-1H25a1,1,0,0,0-1,1V6H10V3A1,1,0,0,0,9,2H7A1,1,0,0,0,6,3V6H1A1,1,0,0,0,0,7V33a1,1,0,0,0,1,1H33a1,1,0,0,0,1-1V7A1,1,0,0,0,33,6ZM32,32H2V8H6V9a1,1,0,0,0,1,1H9a1,1,0,0,0,1-1V8H24V9a1,1,0,0,0,1,1h2a1,1,0,0,0,1-1V8h4Z"}),Nt.default.createElement("rect",{fillRule:"evenodd",x:"6",y:"12",width:"4",height:"4"}),Nt.default.createElement("rect",{fillRule:"evenodd",x:"12",y:"12",width:"4",height:"4"}),Nt.default.createElement("rect",{fillRule:"evenodd",x:"18",y:"12",width:"4",height:"4"}),Nt.default.createElement("rect",{fillRule:"evenodd",x:"24",y:"12",width:"4",height:"4"}),Nt.default.createElement("rect",{fillRule:"evenodd",x:"6",y:"18",width:"4",height:"4"}),Nt.default.createElement("rect",{fillRule:"evenodd",x:"12",y:"18",width:"4",height:"4"}),Nt.default.createElement("rect",{fillRule:"evenodd",x:"18",y:"18",width:"4",height:"4"}),Nt.default.createElement("rect",{fillRule:"evenodd",x:"24",y:"18",width:"4",height:"4"}),Nt.default.createElement("rect",{fillRule:"evenodd",x:"6",y:"24",width:"4",height:"4"}),Nt.default.createElement("rect",{fillRule:"evenodd",x:"12",y:"24",width:"4",height:"4"}),Nt.default.createElement("rect",{fillRule:"evenodd",x:"18",y:"24",width:"4",height:"4"}),Nt.default.createElement("rect",{fillRule:"evenodd",x:"24",y:"24",width:"4",height:"4"}))}function LV(e){return _.createElement(az,e,_.createElement(OV,null))}function zt(e){return e&&e.__esModule?e.default:e}function NV(e,t){var n,r;e=Vl(e),e=T$(e);let{isQuiet:i,isDisabled:a,autoFocus:s,placeholderValue:o,maxVisibleMonths:l=1,pageBehavior:u}=e,{hoverProps:c,isHovered:d}=If({isDisabled:a}),f=y.useRef(),h=Hj({...e,shouldCloseOnSelect:()=>!h.hasTime}),{labelProps:p,groupProps:g,buttonProps:b,dialogProps:v,startFieldProps:m,endFieldProps:$,descriptionProps:w,errorMessageProps:D,calendarProps:S,isInvalid:k,validationErrors:x,validationDetails:T}=Rj(e,h,f),{isOpen:P,setOpen:E}=h,{direction:F}=Qe(),R=dT(t),M=Sn(zt(cT),"@react-spectrum/datepicker"),{isFocused:z,isFocusVisible:B,focusProps:C}=hl({within:!0,isTextInput:!0,autoFocus:s}),{isFocused:A,focusProps:I}=hl({within:!1,isTextInput:!1,autoFocus:s}),N=V(zt(fe),"spectrum-InputGroup",{"spectrum-InputGroup--quiet":i,"spectrum-InputGroup--invalid":k&&!a,"is-disabled":a,"is-hovered":d,"is-focused":z,"focus-ring":B&&!A}),X=V(zt(fe),"spectrum-InputGroup-input",{"is-disabled":a,"is-invalid":k&&!a}),Q=MV(e);Q&&!e.description&&(w.id=null);let je=o,$e=je&&"hour"in je?je:null,lt=e.minValue&&"hour"in e.minValue?e.minValue:null,xe=e.maxValue&&"hour"in e.maxValue?e.maxValue:null,W=h.granularity==="hour"||h.granularity==="minute"||h.granularity==="second"?h.granularity:null,Ce=!!W,et=FV(l),yt=h.validationState||(k?"invalid":null);return _.createElement(Uk,{...e,ref:R,elementType:"span",description:Q,labelProps:p,descriptionProps:w,errorMessageProps:D,validationState:yt,isInvalid:k,validationErrors:x,validationDetails:T,wrapperClassName:V(zt(ee),"react-spectrum-Datepicker-fieldWrapper")},_.createElement("div",{...de(g,c,C),className:N,ref:f},_.createElement(PP,{isDisabled:a,isQuiet:i,validationState:yt,className:V(zt(fe),"spectrum-InputGroup-field"),inputClassName:X,disableFocusRing:!0},_.createElement(B5,{...m,"data-testid":"start-date",isQuiet:e.isQuiet,inputClassName:V(zt(ee),"react-spectrum-Datepicker-startField")}),_.createElement(jV,null),_.createElement(B5,{...$,"data-testid":"end-date",isQuiet:e.isQuiet,inputClassName:V(zt(fe),"spectrum-Datepicker-endField",V(zt(ee),"react-spectrum-Datepicker-endField"))})),_.createElement(SV,{type:"popover",mobileType:"tray",placement:F==="rtl"?"bottom right":"bottom left",targetRef:f,hideArrow:!0,isOpen:P,onOpenChange:E,shouldFlip:e.shouldFlip},_.createElement(cz,{...de(b,I),UNSAFE_className:V(zt(fe),"spectrum-FieldButton"),isQuiet:i,validationState:yt},_.createElement(LV,null)),_.createElement(DV,{UNSAFE_className:V(zt(ee),"react-spectrum-Datepicker-dialog"),...v},_.createElement(EV,null,_.createElement("div",{className:V(zt(ee),"react-spectrum-Datepicker-dialogContent")},_.createElement(xV,{...S,visibleMonths:et,pageBehavior:u,UNSAFE_className:V(zt(ee),"react-spectrum-Datepicker-calendar",{"is-invalid":yt==="invalid"})}),Ce&&_.createElement(hC,{gap:"size-100",marginTop:"size-100",UNSAFE_className:V(zt(ee),"react-spectrum-Datepicker-timeFields")},_.createElement(N5,{label:M.format("startTime"),value:((n=h.timeRange)===null||n===void 0?void 0:n.start)||null,onChange:ut=>h.setTime("start",ut),placeholderValue:$e,granularity:W,minValue:lt,maxValue:xe,hourCycle:e.hourCycle,hideTimeZone:e.hideTimeZone,flex:!0}),_.createElement(N5,{label:M.format("endTime"),value:((r=h.timeRange)===null||r===void 0?void 0:r.end)||null,onChange:ut=>h.setTime("end",ut),placeholderValue:$e,granularity:W,minValue:lt,maxValue:xe,hourCycle:e.hourCycle,hideTimeZone:e.hideTimeZone,flex:!0}))))))))}function jV(){return _.createElement("div",{"aria-hidden":"true","data-testid":"date-range-dash",className:V(zt(ee),"react-spectrum-Datepicker-rangeDash")})}const zV=_.forwardRef(NV);function VV(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var hT={};VV(hT,"spectrum--darkest",()=>Ay,e=>Ay=e);var Ay;Ay="gP7gvq_spectrum--darkest";function ba(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var vi={};ba(vi,"spectrum",()=>Oy,e=>Oy=e);ba(vi,"spectrum--dark",()=>By,e=>By=e);ba(vi,"spectrum--darkest",()=>Iy,e=>Iy=e);ba(vi,"spectrum--large",()=>Ly,e=>Ly=e);ba(vi,"spectrum--light",()=>Ny,e=>Ny=e);ba(vi,"spectrum--lightest",()=>jy,e=>jy=e);ba(vi,"spectrum--medium",()=>zy,e=>zy=e);var Oy,By,Iy,Ly,Ny,jy,zy;Oy="zA6MfG_spectrum";By="zA6MfG_spectrum--dark";Iy="zA6MfG_spectrum--darkest";Ly="zA6MfG_spectrum--large";Ny="zA6MfG_spectrum--light";jy="zA6MfG_spectrum--lightest";zy="zA6MfG_spectrum--medium";function WV(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var pT={};WV(pT,"spectrum--large",()=>Vy,e=>Vy=e);var Vy;Vy="HAZavG_spectrum--large";function UV(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var mT={};UV(mT,"spectrum--light",()=>Wy,e=>Wy=e);var Wy;Wy="PFjRbG_spectrum--light";function HV(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var gT={};HV(gT,"spectrum--medium",()=>Uy,e=>Uy=e);var Uy;Uy="xSyFOq_spectrum--medium";function Xs(e){return e&&e.__esModule?e.default:e}let KV={global:Xs(vi),light:Xs(mT),dark:Xs(hT),medium:Xs(gT),large:Xs(pT)};function ka(e){let t="flex items-center w-full p-3 leading-tight transition-all rounded-lg outline-none text-start hover:bg-blue-500";return e.name===e.currentPage&&(t+=" border-2 border-black"),O.jsx("a",{href:e.href,children:O.jsxs("div",{role:"button",className:t,children:[O.jsx("div",{className:"grid mr-4 place-items-center",children:O.jsx("i",{className:e.icon})}),e.name]})})}function R$(e){return O.jsxs("div",{className:"relative flex h-full w-full max-w-[20rem] flex-col rounded-xl bg-white bg-clip-border text-gray-700 shadow-xl shadow-blue-gray-900/5",children:[O.jsx("div",{className:"p-4 mb-2",children:O.jsx("h5",{className:"block font-sans text-xl antialiased font-semibold leading-snug tracking-normal text-blue-gray-900",children:O.jsx("a",{href:"/",children:"fs-tracer"})})}),O.jsxs("nav",{className:"flex min-w-[240px] flex-col gap-1  font-sans text-base font-normal text-blue-gray-700",children:[O.jsx(ka,{name:"Home",icon:"fa-solid fa-house",href:"/",currentPage:e.currentPage}),O.jsx(ka,{name:"Recent files",icon:"fa-solid fa-folder",href:"/recent",currentPage:e.currentPage}),O.jsx(ka,{name:"Search",icon:"fa-solid fa-magnifying-glass",href:"/search",currentPage:e.currentPage}),O.jsx(ka,{name:"Monitoring",icon:"fa-solid fa-chart-column",href:"/monitoring",currentPage:e.currentPage}),O.jsx(ka,{name:"Setup",icon:"fa-solid fa-gear",href:"/setup",currentPage:e.currentPage}),O.jsx(ka,{name:"Logout",icon:"fa-solid fa-right-from-bracket",href:"/logout",currentPage:e.currentPage})]})]})}/*!
+ */const UA="6";try{window.__reactRouterVersion=UA}catch{}const HA="startTransition",c2=UR[HA];function KA(e){let{basename:t,children:n,future:r,window:i}=e,a=y.useRef();a.current==null&&(a.current=tA({window:i,v5Compat:!0}));let s=a.current,[o,l]=y.useState({action:s.action,location:s.location}),{v7_startTransition:u}=r||{},c=y.useCallback(d=>{u&&c2?c2(()=>l(d)):l(d)},[l,u]);return y.useLayoutEffect(()=>s.listen(c),[s,c]),y.createElement(VA,{basename:t,children:n,location:o.location,navigationType:o.action,navigator:s,future:r})}var d2;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(d2||(d2={}));var f2;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(f2||(f2={}));const YA="modulepreload",qA=function(e,t){return new URL(e,t).href},h2={},bs=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){const a=document.getElementsByTagName("link"),s=document.querySelector("meta[property=csp-nonce]"),o=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));i=Promise.all(n.map(l=>{if(l=qA(l,r),l in h2)return;h2[l]=!0;const u=l.endsWith(".css"),c=u?'[rel="stylesheet"]':"";if(!!r)for(let h=a.length-1;h>=0;h--){const p=a[h];if(p.href===l&&(!u||p.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${c}`))return;const f=document.createElement("link");if(f.rel=u?"stylesheet":YA,u||(f.as="script",f.crossOrigin=""),f.href=l,o&&f.setAttribute("nonce",o),document.head.appendChild(f),u)return new Promise((h,p)=>{f.addEventListener("load",h),f.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${l}`)))})}))}return i.then(()=>t()).catch(a=>{const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=a,window.dispatchEvent(s),!s.defaultPrevented)throw a})},GA=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...n)=>bs(async()=>{const{default:r}=await Promise.resolve().then(()=>Ts);return{default:r}},void 0,import.meta.url).then(({default:r})=>r(...n)):t=fetch,(...n)=>t(...n)};class e$ extends Error{constructor(t,n="FunctionsError",r){super(t),this.name=n,this.context=r}}class ZA extends e${constructor(t){super("Failed to send a request to the Edge Function","FunctionsFetchError",t)}}class XA extends e${constructor(t){super("Relay Error invoking the Edge Function","FunctionsRelayError",t)}}class QA extends e${constructor(t){super("Edge Function returned a non-2xx status code","FunctionsHttpError",t)}}var bm;(function(e){e.Any="any",e.ApNortheast1="ap-northeast-1",e.ApNortheast2="ap-northeast-2",e.ApSouth1="ap-south-1",e.ApSoutheast1="ap-southeast-1",e.ApSoutheast2="ap-southeast-2",e.CaCentral1="ca-central-1",e.EuCentral1="eu-central-1",e.EuWest1="eu-west-1",e.EuWest2="eu-west-2",e.EuWest3="eu-west-3",e.SaEast1="sa-east-1",e.UsEast1="us-east-1",e.UsWest1="us-west-1",e.UsWest2="us-west-2"})(bm||(bm={}));var JA=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(s){s(a)})}return new(n||(n=Promise))(function(a,s){function o(c){try{u(r.next(c))}catch(d){s(d)}}function l(c){try{u(r.throw(c))}catch(d){s(d)}}function u(c){c.done?a(c.value):i(c.value).then(o,l)}u((r=r.apply(e,t||[])).next())})};class eO{constructor(t,{headers:n={},customFetch:r,region:i=bm.Any}={}){this.url=t,this.headers=n,this.region=i,this.fetch=GA(r)}setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(t,n={}){var r;return JA(this,void 0,void 0,function*(){try{const{headers:i,method:a,body:s}=n;let o={},{region:l}=n;l||(l=this.region),l&&l!=="any"&&(o["x-region"]=l);let u;s&&(i&&!Object.prototype.hasOwnProperty.call(i,"Content-Type")||!i)&&(typeof Blob<"u"&&s instanceof Blob||s instanceof ArrayBuffer?(o["Content-Type"]="application/octet-stream",u=s):typeof s=="string"?(o["Content-Type"]="text/plain",u=s):typeof FormData<"u"&&s instanceof FormData?u=s:(o["Content-Type"]="application/json",u=JSON.stringify(s)));const c=yield this.fetch(`${this.url}/${t}`,{method:a||"POST",headers:Object.assign(Object.assign(Object.assign({},o),this.headers),i),body:u}).catch(p=>{throw new ZA(p)}),d=c.headers.get("x-relay-error");if(d&&d==="true")throw new XA(c);if(!c.ok)throw new QA(c);let f=((r=c.headers.get("Content-Type"))!==null&&r!==void 0?r:"text/plain").split(";")[0].trim(),h;return f==="application/json"?h=yield c.json():f==="application/octet-stream"?h=yield c.blob():f==="text/event-stream"?h=c:f==="multipart/form-data"?h=yield c.formData():h=yield c.text(),{data:h,error:null}}catch(i){return{data:null,error:i}}})}}var yn={},t$={},bf={},Al={},yf={},$f={},tO=function(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")},ys=tO();const nO=ys.fetch,W_=ys.fetch.bind(ys),U_=ys.Headers,rO=ys.Request,iO=ys.Response,Ts=Object.freeze(Object.defineProperty({__proto__:null,Headers:U_,Request:rO,Response:iO,default:W_,fetch:nO},Symbol.toStringTag,{value:"Module"})),aO=kR(Ts);var n$={};Object.defineProperty(n$,"__esModule",{value:!0});class sO extends Error{constructor(t){super(t.message),this.name="PostgrestError",this.details=t.details,this.hint=t.hint,this.code=t.code}}n$.default=sO;var H_=Dn&&Dn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty($f,"__esModule",{value:!0});const oO=H_(aO),lO=H_(n$);let uO=class{constructor(t){this.shouldThrowOnError=!1,this.method=t.method,this.url=t.url,this.headers=t.headers,this.schema=t.schema,this.body=t.body,this.shouldThrowOnError=t.shouldThrowOnError,this.signal=t.signal,this.isMaybeSingle=t.isMaybeSingle,t.fetch?this.fetch=t.fetch:typeof fetch>"u"?this.fetch=oO.default:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}then(t,n){this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers["Accept-Profile"]=this.schema:this.headers["Content-Profile"]=this.schema),this.method!=="GET"&&this.method!=="HEAD"&&(this.headers["Content-Type"]="application/json");const r=this.fetch;let i=r(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async a=>{var s,o,l;let u=null,c=null,d=null,f=a.status,h=a.statusText;if(a.ok){if(this.method!=="HEAD"){const v=await a.text();v===""||(this.headers.Accept==="text/csv"||this.headers.Accept&&this.headers.Accept.includes("application/vnd.pgrst.plan+text")?c=v:c=JSON.parse(v))}const g=(s=this.headers.Prefer)===null||s===void 0?void 0:s.match(/count=(exact|planned|estimated)/),b=(o=a.headers.get("content-range"))===null||o===void 0?void 0:o.split("/");g&&b&&b.length>1&&(d=parseInt(b[1])),this.isMaybeSingle&&this.method==="GET"&&Array.isArray(c)&&(c.length>1?(u={code:"PGRST116",details:`Results contain ${c.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},c=null,d=null,f=406,h="Not Acceptable"):c.length===1?c=c[0]:c=null)}else{const g=await a.text();try{u=JSON.parse(g),Array.isArray(u)&&a.status===404&&(c=[],u=null,f=200,h="OK")}catch{a.status===404&&g===""?(f=204,h="No Content"):u={message:g}}if(u&&this.isMaybeSingle&&(!((l=u==null?void 0:u.details)===null||l===void 0)&&l.includes("0 rows"))&&(u=null,f=200,h="OK"),u&&this.shouldThrowOnError)throw new lO.default(u)}return{error:u,data:c,count:d,status:f,statusText:h}});return this.shouldThrowOnError||(i=i.catch(a=>{var s,o,l;return{error:{message:`${(s=a==null?void 0:a.name)!==null&&s!==void 0?s:"FetchError"}: ${a==null?void 0:a.message}`,details:`${(o=a==null?void 0:a.stack)!==null&&o!==void 0?o:""}`,hint:"",code:`${(l=a==null?void 0:a.code)!==null&&l!==void 0?l:""}`},data:null,count:null,status:0,statusText:""}})),i.then(t,n)}};$f.default=uO;var cO=Dn&&Dn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(yf,"__esModule",{value:!0});const dO=cO($f);let fO=class extends dO.default{select(t){let n=!1;const r=(t??"*").split("").map(i=>/\s/.test(i)&&!n?"":(i==='"'&&(n=!n),i)).join("");return this.url.searchParams.set("select",r),this.headers.Prefer&&(this.headers.Prefer+=","),this.headers.Prefer+="return=representation",this}order(t,{ascending:n=!0,nullsFirst:r,foreignTable:i,referencedTable:a=i}={}){const s=a?`${a}.order`:"order",o=this.url.searchParams.get(s);return this.url.searchParams.set(s,`${o?`${o},`:""}${t}.${n?"asc":"desc"}${r===void 0?"":r?".nullsfirst":".nullslast"}`),this}limit(t,{foreignTable:n,referencedTable:r=n}={}){const i=typeof r>"u"?"limit":`${r}.limit`;return this.url.searchParams.set(i,`${t}`),this}range(t,n,{foreignTable:r,referencedTable:i=r}={}){const a=typeof i>"u"?"offset":`${i}.offset`,s=typeof i>"u"?"limit":`${i}.limit`;return this.url.searchParams.set(a,`${t}`),this.url.searchParams.set(s,`${n-t+1}`),this}abortSignal(t){return this.signal=t,this}single(){return this.headers.Accept="application/vnd.pgrst.object+json",this}maybeSingle(){return this.method==="GET"?this.headers.Accept="application/json":this.headers.Accept="application/vnd.pgrst.object+json",this.isMaybeSingle=!0,this}csv(){return this.headers.Accept="text/csv",this}geojson(){return this.headers.Accept="application/geo+json",this}explain({analyze:t=!1,verbose:n=!1,settings:r=!1,buffers:i=!1,wal:a=!1,format:s="text"}={}){var o;const l=[t?"analyze":null,n?"verbose":null,r?"settings":null,i?"buffers":null,a?"wal":null].filter(Boolean).join("|"),u=(o=this.headers.Accept)!==null&&o!==void 0?o:"application/json";return this.headers.Accept=`application/vnd.pgrst.plan+${s}; for="${u}"; options=${l};`,s==="json"?this:this}rollback(){var t;return((t=this.headers.Prefer)!==null&&t!==void 0?t:"").trim().length>0?this.headers.Prefer+=",tx=rollback":this.headers.Prefer="tx=rollback",this}returns(){return this}};yf.default=fO;var hO=Dn&&Dn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Al,"__esModule",{value:!0});const pO=hO(yf);let mO=class extends pO.default{eq(t,n){return this.url.searchParams.append(t,`eq.${n}`),this}neq(t,n){return this.url.searchParams.append(t,`neq.${n}`),this}gt(t,n){return this.url.searchParams.append(t,`gt.${n}`),this}gte(t,n){return this.url.searchParams.append(t,`gte.${n}`),this}lt(t,n){return this.url.searchParams.append(t,`lt.${n}`),this}lte(t,n){return this.url.searchParams.append(t,`lte.${n}`),this}like(t,n){return this.url.searchParams.append(t,`like.${n}`),this}likeAllOf(t,n){return this.url.searchParams.append(t,`like(all).{${n.join(",")}}`),this}likeAnyOf(t,n){return this.url.searchParams.append(t,`like(any).{${n.join(",")}}`),this}ilike(t,n){return this.url.searchParams.append(t,`ilike.${n}`),this}ilikeAllOf(t,n){return this.url.searchParams.append(t,`ilike(all).{${n.join(",")}}`),this}ilikeAnyOf(t,n){return this.url.searchParams.append(t,`ilike(any).{${n.join(",")}}`),this}is(t,n){return this.url.searchParams.append(t,`is.${n}`),this}in(t,n){const r=Array.from(new Set(n)).map(i=>typeof i=="string"&&new RegExp("[,()]").test(i)?`"${i}"`:`${i}`).join(",");return this.url.searchParams.append(t,`in.(${r})`),this}contains(t,n){return typeof n=="string"?this.url.searchParams.append(t,`cs.${n}`):Array.isArray(n)?this.url.searchParams.append(t,`cs.{${n.join(",")}}`):this.url.searchParams.append(t,`cs.${JSON.stringify(n)}`),this}containedBy(t,n){return typeof n=="string"?this.url.searchParams.append(t,`cd.${n}`):Array.isArray(n)?this.url.searchParams.append(t,`cd.{${n.join(",")}}`):this.url.searchParams.append(t,`cd.${JSON.stringify(n)}`),this}rangeGt(t,n){return this.url.searchParams.append(t,`sr.${n}`),this}rangeGte(t,n){return this.url.searchParams.append(t,`nxl.${n}`),this}rangeLt(t,n){return this.url.searchParams.append(t,`sl.${n}`),this}rangeLte(t,n){return this.url.searchParams.append(t,`nxr.${n}`),this}rangeAdjacent(t,n){return this.url.searchParams.append(t,`adj.${n}`),this}overlaps(t,n){return typeof n=="string"?this.url.searchParams.append(t,`ov.${n}`):this.url.searchParams.append(t,`ov.{${n.join(",")}}`),this}textSearch(t,n,{config:r,type:i}={}){let a="";i==="plain"?a="pl":i==="phrase"?a="ph":i==="websearch"&&(a="w");const s=r===void 0?"":`(${r})`;return this.url.searchParams.append(t,`${a}fts${s}.${n}`),this}match(t){return Object.entries(t).forEach(([n,r])=>{this.url.searchParams.append(n,`eq.${r}`)}),this}not(t,n,r){return this.url.searchParams.append(t,`not.${n}.${r}`),this}or(t,{foreignTable:n,referencedTable:r=n}={}){const i=r?`${r}.or`:"or";return this.url.searchParams.append(i,`(${t})`),this}filter(t,n,r){return this.url.searchParams.append(t,`${n}.${r}`),this}};Al.default=mO;var gO=Dn&&Dn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(bf,"__esModule",{value:!0});const Ws=gO(Al);let vO=class{constructor(t,{headers:n={},schema:r,fetch:i}){this.url=t,this.headers=n,this.schema=r,this.fetch=i}select(t,{head:n=!1,count:r}={}){const i=n?"HEAD":"GET";let a=!1;const s=(t??"*").split("").map(o=>/\s/.test(o)&&!a?"":(o==='"'&&(a=!a),o)).join("");return this.url.searchParams.set("select",s),r&&(this.headers.Prefer=`count=${r}`),new Ws.default({method:i,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch,allowEmpty:!1})}insert(t,{count:n,defaultToNull:r=!0}={}){const i="POST",a=[];if(this.headers.Prefer&&a.push(this.headers.Prefer),n&&a.push(`count=${n}`),r||a.push("missing=default"),this.headers.Prefer=a.join(","),Array.isArray(t)){const s=t.reduce((o,l)=>o.concat(Object.keys(l)),[]);if(s.length>0){const o=[...new Set(s)].map(l=>`"${l}"`);this.url.searchParams.set("columns",o.join(","))}}return new Ws.default({method:i,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:this.fetch,allowEmpty:!1})}upsert(t,{onConflict:n,ignoreDuplicates:r=!1,count:i,defaultToNull:a=!0}={}){const s="POST",o=[`resolution=${r?"ignore":"merge"}-duplicates`];if(n!==void 0&&this.url.searchParams.set("on_conflict",n),this.headers.Prefer&&o.push(this.headers.Prefer),i&&o.push(`count=${i}`),a||o.push("missing=default"),this.headers.Prefer=o.join(","),Array.isArray(t)){const l=t.reduce((u,c)=>u.concat(Object.keys(c)),[]);if(l.length>0){const u=[...new Set(l)].map(c=>`"${c}"`);this.url.searchParams.set("columns",u.join(","))}}return new Ws.default({method:s,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:this.fetch,allowEmpty:!1})}update(t,{count:n}={}){const r="PATCH",i=[];return this.headers.Prefer&&i.push(this.headers.Prefer),n&&i.push(`count=${n}`),this.headers.Prefer=i.join(","),new Ws.default({method:r,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:this.fetch,allowEmpty:!1})}delete({count:t}={}){const n="DELETE",r=[];return t&&r.push(`count=${t}`),this.headers.Prefer&&r.unshift(this.headers.Prefer),this.headers.Prefer=r.join(","),new Ws.default({method:n,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch,allowEmpty:!1})}};bf.default=vO;var xf={},wf={};Object.defineProperty(wf,"__esModule",{value:!0});wf.version=void 0;wf.version="0.0.0-automated";Object.defineProperty(xf,"__esModule",{value:!0});xf.DEFAULT_HEADERS=void 0;const bO=wf;xf.DEFAULT_HEADERS={"X-Client-Info":`postgrest-js/${bO.version}`};var K_=Dn&&Dn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t$,"__esModule",{value:!0});const yO=K_(bf),$O=K_(Al),xO=xf;let wO=class Y_{constructor(t,{headers:n={},schema:r,fetch:i}={}){this.url=t,this.headers=Object.assign(Object.assign({},xO.DEFAULT_HEADERS),n),this.schemaName=r,this.fetch=i}from(t){const n=new URL(`${this.url}/${t}`);return new yO.default(n,{headers:Object.assign({},this.headers),schema:this.schemaName,fetch:this.fetch})}schema(t){return new Y_(this.url,{headers:this.headers,schema:t,fetch:this.fetch})}rpc(t,n={},{head:r=!1,get:i=!1,count:a}={}){let s;const o=new URL(`${this.url}/rpc/${t}`);let l;r||i?(s=r?"HEAD":"GET",Object.entries(n).filter(([c,d])=>d!==void 0).map(([c,d])=>[c,Array.isArray(d)?`{${d.join(",")}}`:`${d}`]).forEach(([c,d])=>{o.searchParams.append(c,d)})):(s="POST",l=n);const u=Object.assign({},this.headers);return a&&(u.Prefer=`count=${a}`),new $O.default({method:s,url:o,headers:u,schema:this.schemaName,body:l,fetch:this.fetch,allowEmpty:!1})}};t$.default=wO;var Ol=Dn&&Dn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(yn,"__esModule",{value:!0});yn.PostgrestBuilder=yn.PostgrestTransformBuilder=yn.PostgrestFilterBuilder=yn.PostgrestQueryBuilder=yn.PostgrestClient=void 0;const q_=Ol(t$);yn.PostgrestClient=q_.default;const G_=Ol(bf);yn.PostgrestQueryBuilder=G_.default;const Z_=Ol(Al);yn.PostgrestFilterBuilder=Z_.default;const X_=Ol(yf);yn.PostgrestTransformBuilder=X_.default;const Q_=Ol($f);yn.PostgrestBuilder=Q_.default;var DO=yn.default={PostgrestClient:q_.default,PostgrestQueryBuilder:G_.default,PostgrestFilterBuilder:Z_.default,PostgrestTransformBuilder:X_.default,PostgrestBuilder:Q_.default};const{PostgrestClient:_O,PostgrestQueryBuilder:AG,PostgrestFilterBuilder:OG,PostgrestTransformBuilder:BG,PostgrestBuilder:IG}=DO,EO="2.10.2",SO={"X-Client-Info":`realtime-js/${EO}`},CO="1.0.0",J_=1e4,kO=1e3;var ts;(function(e){e[e.connecting=0]="connecting",e[e.open=1]="open",e[e.closing=2]="closing",e[e.closed=3]="closed"})(ts||(ts={}));var Jt;(function(e){e.closed="closed",e.errored="errored",e.joined="joined",e.joining="joining",e.leaving="leaving"})(Jt||(Jt={}));var Rn;(function(e){e.close="phx_close",e.error="phx_error",e.join="phx_join",e.reply="phx_reply",e.leave="phx_leave",e.access_token="access_token"})(Rn||(Rn={}));var ym;(function(e){e.websocket="websocket"})(ym||(ym={}));var Bi;(function(e){e.Connecting="connecting",e.Open="open",e.Closing="closing",e.Closed="closed"})(Bi||(Bi={}));class PO{constructor(){this.HEADER_LENGTH=1}decode(t,n){return t.constructor===ArrayBuffer?n(this._binaryDecode(t)):n(typeof t=="string"?JSON.parse(t):{})}_binaryDecode(t){const n=new DataView(t),r=new TextDecoder;return this._decodeBroadcast(t,n,r)}_decodeBroadcast(t,n,r){const i=n.getUint8(1),a=n.getUint8(2);let s=this.HEADER_LENGTH+2;const o=r.decode(t.slice(s,s+i));s=s+i;const l=r.decode(t.slice(s,s+a));s=s+a;const u=JSON.parse(r.decode(t.slice(s,t.byteLength)));return{ref:null,topic:o,event:l,payload:u}}}class e8{constructor(t,n){this.callback=t,this.timerCalc=n,this.timer=void 0,this.tries=0,this.callback=t,this.timerCalc=n}reset(){this.tries=0,clearTimeout(this.timer)}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}}var we;(function(e){e.abstime="abstime",e.bool="bool",e.date="date",e.daterange="daterange",e.float4="float4",e.float8="float8",e.int2="int2",e.int4="int4",e.int4range="int4range",e.int8="int8",e.int8range="int8range",e.json="json",e.jsonb="jsonb",e.money="money",e.numeric="numeric",e.oid="oid",e.reltime="reltime",e.text="text",e.time="time",e.timestamp="timestamp",e.timestamptz="timestamptz",e.timetz="timetz",e.tsrange="tsrange",e.tstzrange="tstzrange"})(we||(we={}));const p2=(e,t,n={})=>{var r;const i=(r=n.skipTypes)!==null&&r!==void 0?r:[];return Object.keys(t).reduce((a,s)=>(a[s]=TO(s,e,t,i),a),{})},TO=(e,t,n,r)=>{const i=t.find(o=>o.name===e),a=i==null?void 0:i.type,s=n[e];return a&&!r.includes(a)?t8(a,s):$m(s)},t8=(e,t)=>{if(e.charAt(0)==="_"){const n=e.slice(1,e.length);return AO(t,n)}switch(e){case we.bool:return RO(t);case we.float4:case we.float8:case we.int2:case we.int4:case we.int8:case we.numeric:case we.oid:return MO(t);case we.json:case we.jsonb:return FO(t);case we.timestamp:return OO(t);case we.abstime:case we.date:case we.daterange:case we.int4range:case we.int8range:case we.money:case we.reltime:case we.text:case we.time:case we.timestamptz:case we.timetz:case we.tsrange:case we.tstzrange:return $m(t);default:return $m(t)}},$m=e=>e,RO=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},MO=e=>{if(typeof e=="string"){const t=parseFloat(e);if(!Number.isNaN(t))return t}return e},FO=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch(t){return console.log(`JSON parse error: ${t}`),e}return e},AO=(e,t)=>{if(typeof e!="string")return e;const n=e.length-1,r=e[n];if(e[0]==="{"&&r==="}"){let a;const s=e.slice(1,n);try{a=JSON.parse("["+s+"]")}catch{a=s?s.split(","):[]}return a.map(o=>t8(t,o))}return e},OO=e=>typeof e=="string"?e.replace(" ","T"):e,n8=e=>{let t=e;return t=t.replace(/^ws/i,"http"),t=t.replace(/(\/socket\/websocket|\/socket|\/websocket)\/?$/i,""),t.replace(/\/+$/,"")};class wh{constructor(t,n,r={},i=J_){this.channel=t,this.event=n,this.payload=r,this.timeout=i,this.sent=!1,this.timeoutTimer=void 0,this.ref="",this.receivedResp=null,this.recHooks=[],this.refEvent=null}resend(t){this.timeout=t,this._cancelRefEvent(),this.ref="",this.refEvent=null,this.receivedResp=null,this.sent=!1,this.send()}send(){this._hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload,ref:this.ref,join_ref:this.channel._joinRef()}))}updatePayload(t){this.payload=Object.assign(Object.assign({},this.payload),t)}receive(t,n){var r;return this._hasReceived(t)&&n((r=this.receivedResp)===null||r===void 0?void 0:r.response),this.recHooks.push({status:t,callback:n}),this}startTimeout(){if(this.timeoutTimer)return;this.ref=this.channel.socket._makeRef(),this.refEvent=this.channel._replyEventName(this.ref);const t=n=>{this._cancelRefEvent(),this._cancelTimeout(),this.receivedResp=n,this._matchReceive(n)};this.channel._on(this.refEvent,{},t),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}trigger(t,n){this.refEvent&&this.channel._trigger(this.refEvent,{status:t,response:n})}destroy(){this._cancelRefEvent(),this._cancelTimeout()}_cancelRefEvent(){this.refEvent&&this.channel._off(this.refEvent,{})}_cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=void 0}_matchReceive({status:t,response:n}){this.recHooks.filter(r=>r.status===t).forEach(r=>r.callback(n))}_hasReceived(t){return this.receivedResp&&this.receivedResp.status===t}}var m2;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(m2||(m2={}));class Mo{constructor(t,n){this.channel=t,this.state={},this.pendingDiffs=[],this.joinRef=null,this.caller={onJoin:()=>{},onLeave:()=>{},onSync:()=>{}};const r=(n==null?void 0:n.events)||{state:"presence_state",diff:"presence_diff"};this.channel._on(r.state,{},i=>{const{onJoin:a,onLeave:s,onSync:o}=this.caller;this.joinRef=this.channel._joinRef(),this.state=Mo.syncState(this.state,i,a,s),this.pendingDiffs.forEach(l=>{this.state=Mo.syncDiff(this.state,l,a,s)}),this.pendingDiffs=[],o()}),this.channel._on(r.diff,{},i=>{const{onJoin:a,onLeave:s,onSync:o}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(i):(this.state=Mo.syncDiff(this.state,i,a,s),o())}),this.onJoin((i,a,s)=>{this.channel._trigger("presence",{event:"join",key:i,currentPresences:a,newPresences:s})}),this.onLeave((i,a,s)=>{this.channel._trigger("presence",{event:"leave",key:i,currentPresences:a,leftPresences:s})}),this.onSync(()=>{this.channel._trigger("presence",{event:"sync"})})}static syncState(t,n,r,i){const a=this.cloneDeep(t),s=this.transformState(n),o={},l={};return this.map(a,(u,c)=>{s[u]||(l[u]=c)}),this.map(s,(u,c)=>{const d=a[u];if(d){const f=c.map(b=>b.presence_ref),h=d.map(b=>b.presence_ref),p=c.filter(b=>h.indexOf(b.presence_ref)<0),g=d.filter(b=>f.indexOf(b.presence_ref)<0);p.length>0&&(o[u]=p),g.length>0&&(l[u]=g)}else o[u]=c}),this.syncDiff(a,{joins:o,leaves:l},r,i)}static syncDiff(t,n,r,i){const{joins:a,leaves:s}={joins:this.transformState(n.joins),leaves:this.transformState(n.leaves)};return r||(r=()=>{}),i||(i=()=>{}),this.map(a,(o,l)=>{var u;const c=(u=t[o])!==null&&u!==void 0?u:[];if(t[o]=this.cloneDeep(l),c.length>0){const d=t[o].map(h=>h.presence_ref),f=c.filter(h=>d.indexOf(h.presence_ref)<0);t[o].unshift(...f)}r(o,c,l)}),this.map(s,(o,l)=>{let u=t[o];if(!u)return;const c=l.map(d=>d.presence_ref);u=u.filter(d=>c.indexOf(d.presence_ref)<0),t[o]=u,i(o,u,l),u.length===0&&delete t[o]}),t}static map(t,n){return Object.getOwnPropertyNames(t).map(r=>n(r,t[r]))}static transformState(t){return t=this.cloneDeep(t),Object.getOwnPropertyNames(t).reduce((n,r)=>{const i=t[r];return"metas"in i?n[r]=i.metas.map(a=>(a.presence_ref=a.phx_ref,delete a.phx_ref,delete a.phx_ref_prev,a)):n[r]=i,n},{})}static cloneDeep(t){return JSON.parse(JSON.stringify(t))}onJoin(t){this.caller.onJoin=t}onLeave(t){this.caller.onLeave=t}onSync(t){this.caller.onSync=t}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel._joinRef()}}var g2;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})(g2||(g2={}));var v2;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes"})(v2||(v2={}));var b2;(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})(b2||(b2={}));class r${constructor(t,n={config:{}},r){this.topic=t,this.params=n,this.socket=r,this.bindings={},this.state=Jt.closed,this.joinedOnce=!1,this.pushBuffer=[],this.subTopic=t.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:""},private:!1},n.config),this.timeout=this.socket.timeout,this.joinPush=new wh(this,Rn.join,this.params,this.timeout),this.rejoinTimer=new e8(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=Jt.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(i=>i.send()),this.pushBuffer=[]}),this._onClose(()=>{this.rejoinTimer.reset(),this.socket.log("channel",`close ${this.topic} ${this._joinRef()}`),this.state=Jt.closed,this.socket._remove(this)}),this._onError(i=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,i),this.state=Jt.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=Jt.errored,this.rejoinTimer.scheduleTimeout())}),this._on(Rn.reply,{},(i,a)=>{this._trigger(this._replyEventName(a),i)}),this.presence=new Mo(this),this.broadcastEndpointURL=n8(this.socket.endPoint)+"/api/broadcast"}subscribe(t,n=this.timeout){var r,i;if(this.socket.isConnected()||this.socket.connect(),this.joinedOnce)throw"tried to subscribe multiple times. 'subscribe' can only be called a single time per channel instance";{const{config:{broadcast:a,presence:s,private:o}}=this.params;this._onError(c=>t&&t("CHANNEL_ERROR",c)),this._onClose(()=>t&&t("CLOSED"));const l={},u={broadcast:a,presence:s,postgres_changes:(i=(r=this.bindings.postgres_changes)===null||r===void 0?void 0:r.map(c=>c.filter))!==null&&i!==void 0?i:[],private:o};this.socket.accessToken&&(l.access_token=this.socket.accessToken),this.updateJoinPayload(Object.assign({config:u},l)),this.joinedOnce=!0,this._rejoin(n),this.joinPush.receive("ok",({postgres_changes:c})=>{var d;if(this.socket.accessToken&&this.socket.setAuth(this.socket.accessToken),c===void 0){t&&t("SUBSCRIBED");return}else{const f=this.bindings.postgres_changes,h=(d=f==null?void 0:f.length)!==null&&d!==void 0?d:0,p=[];for(let g=0;g<h;g++){const b=f[g],{filter:{event:v,schema:m,table:$,filter:w}}=b,D=c&&c[g];if(D&&D.event===v&&D.schema===m&&D.table===$&&D.filter===w)p.push(Object.assign(Object.assign({},b),{id:D.id}));else{this.unsubscribe(),t&&t("CHANNEL_ERROR",new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=p,t&&t("SUBSCRIBED");return}}).receive("error",c=>{t&&t("CHANNEL_ERROR",new Error(JSON.stringify(Object.values(c).join(", ")||"error")))}).receive("timeout",()=>{t&&t("TIMED_OUT")})}return this}presenceState(){return this.presence.state}async track(t,n={}){return await this.send({type:"presence",event:"track",payload:t},n.timeout||this.timeout)}async untrack(t={}){return await this.send({type:"presence",event:"untrack"},t)}on(t,n,r){return this._on(t,n,r)}async send(t,n={}){var r,i;if(!this._canPush()&&t.type==="broadcast"){const{event:a,payload:s}=t,o={method:"POST",headers:{Authorization:this.socket.accessToken?`Bearer ${this.socket.accessToken}`:"",apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"},body:JSON.stringify({messages:[{topic:this.subTopic,event:a,payload:s}]})};try{const l=await this._fetchWithTimeout(this.broadcastEndpointURL,o,(r=n.timeout)!==null&&r!==void 0?r:this.timeout);return await((i=l.body)===null||i===void 0?void 0:i.cancel()),l.ok?"ok":"error"}catch(l){return l.name==="AbortError"?"timed out":"error"}}else return new Promise(a=>{var s,o,l;const u=this._push(t.type,t,n.timeout||this.timeout);t.type==="broadcast"&&!(!((l=(o=(s=this.params)===null||s===void 0?void 0:s.config)===null||o===void 0?void 0:o.broadcast)===null||l===void 0)&&l.ack)&&a("ok"),u.receive("ok",()=>a("ok")),u.receive("error",()=>a("error")),u.receive("timeout",()=>a("timed out"))})}updateJoinPayload(t){this.joinPush.updatePayload(t)}unsubscribe(t=this.timeout){this.state=Jt.leaving;const n=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger(Rn.close,"leave",this._joinRef())};return this.rejoinTimer.reset(),this.joinPush.destroy(),new Promise(r=>{const i=new wh(this,Rn.leave,{},t);i.receive("ok",()=>{n(),r("ok")}).receive("timeout",()=>{n(),r("timed out")}).receive("error",()=>{r("error")}),i.send(),this._canPush()||i.trigger("ok",{})})}async _fetchWithTimeout(t,n,r){const i=new AbortController,a=setTimeout(()=>i.abort(),r),s=await this.socket.fetch(t,Object.assign(Object.assign({},n),{signal:i.signal}));return clearTimeout(a),s}_push(t,n,r=this.timeout){if(!this.joinedOnce)throw`tried to push '${t}' to '${this.topic}' before joining. Use channel.subscribe() before pushing events`;let i=new wh(this,t,n,r);return this._canPush()?i.send():(i.startTimeout(),this.pushBuffer.push(i)),i}_onMessage(t,n,r){return n}_isMember(t){return this.topic===t}_joinRef(){return this.joinPush.ref}_trigger(t,n,r){var i,a;const s=t.toLocaleLowerCase(),{close:o,error:l,leave:u,join:c}=Rn;if(r&&[o,l,u,c].indexOf(s)>=0&&r!==this._joinRef())return;let f=this._onMessage(s,n,r);if(n&&!f)throw"channel onMessage callbacks must return the payload, modified or unmodified";["insert","update","delete"].includes(s)?(i=this.bindings.postgres_changes)===null||i===void 0||i.filter(h=>{var p,g,b;return((p=h.filter)===null||p===void 0?void 0:p.event)==="*"||((b=(g=h.filter)===null||g===void 0?void 0:g.event)===null||b===void 0?void 0:b.toLocaleLowerCase())===s}).map(h=>h.callback(f,r)):(a=this.bindings[s])===null||a===void 0||a.filter(h=>{var p,g,b,v,m,$;if(["broadcast","presence","postgres_changes"].includes(s))if("id"in h){const w=h.id,D=(p=h.filter)===null||p===void 0?void 0:p.event;return w&&((g=n.ids)===null||g===void 0?void 0:g.includes(w))&&(D==="*"||(D==null?void 0:D.toLocaleLowerCase())===((b=n.data)===null||b===void 0?void 0:b.type.toLocaleLowerCase()))}else{const w=(m=(v=h==null?void 0:h.filter)===null||v===void 0?void 0:v.event)===null||m===void 0?void 0:m.toLocaleLowerCase();return w==="*"||w===(($=n==null?void 0:n.event)===null||$===void 0?void 0:$.toLocaleLowerCase())}else return h.type.toLocaleLowerCase()===s}).map(h=>{if(typeof f=="object"&&"ids"in f){const p=f.data,{schema:g,table:b,commit_timestamp:v,type:m,errors:$}=p;f=Object.assign(Object.assign({},{schema:g,table:b,commit_timestamp:v,eventType:m,new:{},old:{},errors:$}),this._getPayloadRecords(p))}h.callback(f,r)})}_isClosed(){return this.state===Jt.closed}_isJoined(){return this.state===Jt.joined}_isJoining(){return this.state===Jt.joining}_isLeaving(){return this.state===Jt.leaving}_replyEventName(t){return`chan_reply_${t}`}_on(t,n,r){const i=t.toLocaleLowerCase(),a={type:i,filter:n,callback:r};return this.bindings[i]?this.bindings[i].push(a):this.bindings[i]=[a],this}_off(t,n){const r=t.toLocaleLowerCase();return this.bindings[r]=this.bindings[r].filter(i=>{var a;return!(((a=i.type)===null||a===void 0?void 0:a.toLocaleLowerCase())===r&&r$.isEqual(i.filter,n))}),this}static isEqual(t,n){if(Object.keys(t).length!==Object.keys(n).length)return!1;for(const r in t)if(t[r]!==n[r])return!1;return!0}_rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this._rejoin()}_onClose(t){this._on(Rn.close,{},t)}_onError(t){this._on(Rn.error,{},n=>t(n))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(t=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=Jt.joining,this.joinPush.resend(t))}_getPayloadRecords(t){const n={new:{},old:{}};return(t.type==="INSERT"||t.type==="UPDATE")&&(n.new=p2(t.columns,t.record)),(t.type==="UPDATE"||t.type==="DELETE")&&(n.old=p2(t.columns,t.old_record)),n}}const BO=()=>{},IO=typeof WebSocket<"u";class LO{constructor(t,n){var r;this.accessToken=null,this.apiKey=null,this.channels=[],this.endPoint="",this.httpEndpoint="",this.headers=SO,this.params={},this.timeout=J_,this.heartbeatIntervalMs=3e4,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.ref=0,this.logger=BO,this.conn=null,this.sendBuffer=[],this.serializer=new PO,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this._resolveFetch=a=>{let s;return a?s=a:typeof fetch>"u"?s=(...o)=>bs(async()=>{const{default:l}=await Promise.resolve().then(()=>Ts);return{default:l}},void 0,import.meta.url).then(({default:l})=>l(...o)):s=fetch,(...o)=>s(...o)},this.endPoint=`${t}/${ym.websocket}`,this.httpEndpoint=n8(t),n!=null&&n.transport?this.transport=n.transport:this.transport=null,n!=null&&n.params&&(this.params=n.params),n!=null&&n.headers&&(this.headers=Object.assign(Object.assign({},this.headers),n.headers)),n!=null&&n.timeout&&(this.timeout=n.timeout),n!=null&&n.logger&&(this.logger=n.logger),n!=null&&n.heartbeatIntervalMs&&(this.heartbeatIntervalMs=n.heartbeatIntervalMs);const i=(r=n==null?void 0:n.params)===null||r===void 0?void 0:r.apikey;i&&(this.accessToken=i,this.apiKey=i),this.reconnectAfterMs=n!=null&&n.reconnectAfterMs?n.reconnectAfterMs:a=>[1e3,2e3,5e3,1e4][a-1]||1e4,this.encode=n!=null&&n.encode?n.encode:(a,s)=>s(JSON.stringify(a)),this.decode=n!=null&&n.decode?n.decode:this.serializer.decode.bind(this.serializer),this.reconnectTimer=new e8(async()=>{this.disconnect(),this.connect()},this.reconnectAfterMs),this.fetch=this._resolveFetch(n==null?void 0:n.fetch)}connect(){if(!this.conn){if(this.transport){this.conn=new this.transport(this._endPointURL(),void 0,{headers:this.headers});return}if(IO){this.conn=new WebSocket(this._endPointURL()),this.setupConnection();return}this.conn=new NO(this._endPointURL(),void 0,{close:()=>{this.conn=null}}),bs(async()=>{const{default:t}=await import("./browser-CtRlQGro.js").then(n=>n.b);return{default:t}},[],import.meta.url).then(({default:t})=>{this.conn=new t(this._endPointURL(),void 0,{headers:this.headers}),this.setupConnection()})}}disconnect(t,n){this.conn&&(this.conn.onclose=function(){},t?this.conn.close(t,n??""):this.conn.close(),this.conn=null,this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.reconnectTimer.reset())}getChannels(){return this.channels}async removeChannel(t){const n=await t.unsubscribe();return this.channels.length===0&&this.disconnect(),n}async removeAllChannels(){const t=await Promise.all(this.channels.map(n=>n.unsubscribe()));return this.disconnect(),t}log(t,n,r){this.logger(t,n,r)}connectionState(){switch(this.conn&&this.conn.readyState){case ts.connecting:return Bi.Connecting;case ts.open:return Bi.Open;case ts.closing:return Bi.Closing;default:return Bi.Closed}}isConnected(){return this.connectionState()===Bi.Open}channel(t,n={config:{}}){const r=new r$(`realtime:${t}`,n,this);return this.channels.push(r),r}push(t){const{topic:n,event:r,payload:i,ref:a}=t,s=()=>{this.encode(t,o=>{var l;(l=this.conn)===null||l===void 0||l.send(o)})};this.log("push",`${n} ${r} (${a})`,i),this.isConnected()?s():this.sendBuffer.push(s)}setAuth(t){this.accessToken=t,this.channels.forEach(n=>{t&&n.updateJoinPayload({access_token:t}),n.joinedOnce&&n._isJoined()&&n._push(Rn.access_token,{access_token:t})})}_makeRef(){let t=this.ref+1;return t===this.ref?this.ref=0:this.ref=t,this.ref.toString()}_leaveOpenTopic(t){let n=this.channels.find(r=>r.topic===t&&(r._isJoined()||r._isJoining()));n&&(this.log("transport",`leaving duplicate topic "${t}"`),n.unsubscribe())}_remove(t){this.channels=this.channels.filter(n=>n._joinRef()!==t._joinRef())}setupConnection(){this.conn&&(this.conn.binaryType="arraybuffer",this.conn.onopen=()=>this._onConnOpen(),this.conn.onerror=t=>this._onConnError(t),this.conn.onmessage=t=>this._onConnMessage(t),this.conn.onclose=t=>this._onConnClose(t))}_endPointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:CO}))}_onConnMessage(t){this.decode(t.data,n=>{let{topic:r,event:i,payload:a,ref:s}=n;(s&&s===this.pendingHeartbeatRef||i===(a==null?void 0:a.type))&&(this.pendingHeartbeatRef=null),this.log("receive",`${a.status||""} ${r} ${i} ${s&&"("+s+")"||""}`,a),this.channels.filter(o=>o._isMember(r)).forEach(o=>o._trigger(i,a,s)),this.stateChangeCallbacks.message.forEach(o=>o(n))})}_onConnOpen(){this.log("transport",`connected to ${this._endPointURL()}`),this._flushSendBuffer(),this.reconnectTimer.reset(),this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.heartbeatTimer=setInterval(()=>this._sendHeartbeat(),this.heartbeatIntervalMs),this.stateChangeCallbacks.open.forEach(t=>t())}_onConnClose(t){this.log("transport","close",t),this._triggerChanError(),this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.reconnectTimer.scheduleTimeout(),this.stateChangeCallbacks.close.forEach(n=>n(t))}_onConnError(t){this.log("transport",t.message),this._triggerChanError(),this.stateChangeCallbacks.error.forEach(n=>n(t))}_triggerChanError(){this.channels.forEach(t=>t._trigger(Rn.error))}_appendParams(t,n){if(Object.keys(n).length===0)return t;const r=t.match(/\?/)?"&":"?",i=new URLSearchParams(n);return`${t}${r}${i}`}_flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(t=>t()),this.sendBuffer=[])}_sendHeartbeat(){var t;if(this.isConnected()){if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.log("transport","heartbeat timeout. Attempting to re-establish connection"),(t=this.conn)===null||t===void 0||t.close(kO,"hearbeat timeout");return}this.pendingHeartbeatRef=this._makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef}),this.setAuth(this.accessToken)}}}class NO{constructor(t,n,r){this.binaryType="arraybuffer",this.onclose=()=>{},this.onerror=()=>{},this.onmessage=()=>{},this.onopen=()=>{},this.readyState=ts.connecting,this.send=()=>{},this.url=null,this.url=t,this.close=r.close}}class i$ extends Error{constructor(t){super(t),this.__isStorageError=!0,this.name="StorageError"}}function _t(e){return typeof e=="object"&&e!==null&&"__isStorageError"in e}class jO extends i${constructor(t,n){super(t),this.name="StorageApiError",this.status=n}toJSON(){return{name:this.name,message:this.message,status:this.status}}}class y2 extends i${constructor(t,n){super(t),this.name="StorageUnknownError",this.originalError=n}}var zO=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(s){s(a)})}return new(n||(n=Promise))(function(a,s){function o(c){try{u(r.next(c))}catch(d){s(d)}}function l(c){try{u(r.throw(c))}catch(d){s(d)}}function u(c){c.done?a(c.value):i(c.value).then(o,l)}u((r=r.apply(e,t||[])).next())})};const r8=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...n)=>bs(async()=>{const{default:r}=await Promise.resolve().then(()=>Ts);return{default:r}},void 0,import.meta.url).then(({default:r})=>r(...n)):t=fetch,(...n)=>t(...n)},VO=()=>zO(void 0,void 0,void 0,function*(){return typeof Response>"u"?(yield bs(()=>Promise.resolve().then(()=>Ts),void 0,import.meta.url)).Response:Response});var Rs=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(s){s(a)})}return new(n||(n=Promise))(function(a,s){function o(c){try{u(r.next(c))}catch(d){s(d)}}function l(c){try{u(r.throw(c))}catch(d){s(d)}}function u(c){c.done?a(c.value):i(c.value).then(o,l)}u((r=r.apply(e,t||[])).next())})};const Dh=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),WO=(e,t)=>Rs(void 0,void 0,void 0,function*(){const n=yield VO();e instanceof n?e.json().then(r=>{t(new jO(Dh(r),e.status||500))}).catch(r=>{t(new y2(Dh(r),r))}):t(new y2(Dh(e),e))}),UO=(e,t,n,r)=>{const i={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"?i:(i.headers=Object.assign({"Content-Type":"application/json"},t==null?void 0:t.headers),i.body=JSON.stringify(r),Object.assign(Object.assign({},i),n))};function Df(e,t,n,r,i,a){return Rs(this,void 0,void 0,function*(){return new Promise((s,o)=>{e(n,UO(t,r,i,a)).then(l=>{if(!l.ok)throw l;return r!=null&&r.noResolveJson?l:l.json()}).then(l=>s(l)).catch(l=>WO(l,o))})})}function xm(e,t,n,r){return Rs(this,void 0,void 0,function*(){return Df(e,"GET",t,n,r)})}function Br(e,t,n,r,i){return Rs(this,void 0,void 0,function*(){return Df(e,"POST",t,r,i,n)})}function HO(e,t,n,r,i){return Rs(this,void 0,void 0,function*(){return Df(e,"PUT",t,r,i,n)})}function i8(e,t,n,r,i){return Rs(this,void 0,void 0,function*(){return Df(e,"DELETE",t,r,i,n)})}var dn=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(s){s(a)})}return new(n||(n=Promise))(function(a,s){function o(c){try{u(r.next(c))}catch(d){s(d)}}function l(c){try{u(r.throw(c))}catch(d){s(d)}}function u(c){c.done?a(c.value):i(c.value).then(o,l)}u((r=r.apply(e,t||[])).next())})};const KO={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},$2={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};class YO{constructor(t,n={},r,i){this.url=t,this.headers=n,this.bucketId=r,this.fetch=r8(i)}uploadOrUpdate(t,n,r,i){return dn(this,void 0,void 0,function*(){try{let a;const s=Object.assign(Object.assign({},$2),i),o=Object.assign(Object.assign({},this.headers),t==="POST"&&{"x-upsert":String(s.upsert)});typeof Blob<"u"&&r instanceof Blob?(a=new FormData,a.append("cacheControl",s.cacheControl),a.append("",r)):typeof FormData<"u"&&r instanceof FormData?(a=r,a.append("cacheControl",s.cacheControl)):(a=r,o["cache-control"]=`max-age=${s.cacheControl}`,o["content-type"]=s.contentType);const l=this._removeEmptyFolders(n),u=this._getFinalPath(l),c=yield this.fetch(`${this.url}/object/${u}`,Object.assign({method:t,body:a,headers:o},s!=null&&s.duplex?{duplex:s.duplex}:{})),d=yield c.json();return c.ok?{data:{path:l,id:d.Id,fullPath:d.Key},error:null}:{data:null,error:d}}catch(a){if(_t(a))return{data:null,error:a};throw a}})}upload(t,n,r){return dn(this,void 0,void 0,function*(){return this.uploadOrUpdate("POST",t,n,r)})}uploadToSignedUrl(t,n,r,i){return dn(this,void 0,void 0,function*(){const a=this._removeEmptyFolders(t),s=this._getFinalPath(a),o=new URL(this.url+`/object/upload/sign/${s}`);o.searchParams.set("token",n);try{let l;const u=Object.assign({upsert:$2.upsert},i),c=Object.assign(Object.assign({},this.headers),{"x-upsert":String(u.upsert)});typeof Blob<"u"&&r instanceof Blob?(l=new FormData,l.append("cacheControl",u.cacheControl),l.append("",r)):typeof FormData<"u"&&r instanceof FormData?(l=r,l.append("cacheControl",u.cacheControl)):(l=r,c["cache-control"]=`max-age=${u.cacheControl}`,c["content-type"]=u.contentType);const d=yield this.fetch(o.toString(),{method:"PUT",body:l,headers:c}),f=yield d.json();return d.ok?{data:{path:a,fullPath:f.Key},error:null}:{data:null,error:f}}catch(l){if(_t(l))return{data:null,error:l};throw l}})}createSignedUploadUrl(t,n){return dn(this,void 0,void 0,function*(){try{let r=this._getFinalPath(t);const i=Object.assign({},this.headers);n!=null&&n.upsert&&(i["x-upsert"]="true");const a=yield Br(this.fetch,`${this.url}/object/upload/sign/${r}`,{},{headers:i}),s=new URL(this.url+a.url),o=s.searchParams.get("token");if(!o)throw new i$("No token returned by API");return{data:{signedUrl:s.toString(),path:t,token:o},error:null}}catch(r){if(_t(r))return{data:null,error:r};throw r}})}update(t,n,r){return dn(this,void 0,void 0,function*(){return this.uploadOrUpdate("PUT",t,n,r)})}move(t,n,r){return dn(this,void 0,void 0,function*(){try{return{data:yield Br(this.fetch,`${this.url}/object/move`,{bucketId:this.bucketId,sourceKey:t,destinationKey:n,destinationBucket:r==null?void 0:r.destinationBucket},{headers:this.headers}),error:null}}catch(i){if(_t(i))return{data:null,error:i};throw i}})}copy(t,n,r){return dn(this,void 0,void 0,function*(){try{return{data:{path:(yield Br(this.fetch,`${this.url}/object/copy`,{bucketId:this.bucketId,sourceKey:t,destinationKey:n,destinationBucket:r==null?void 0:r.destinationBucket},{headers:this.headers})).Key},error:null}}catch(i){if(_t(i))return{data:null,error:i};throw i}})}createSignedUrl(t,n,r){return dn(this,void 0,void 0,function*(){try{let i=this._getFinalPath(t),a=yield Br(this.fetch,`${this.url}/object/sign/${i}`,Object.assign({expiresIn:n},r!=null&&r.transform?{transform:r.transform}:{}),{headers:this.headers});const s=r!=null&&r.download?`&download=${r.download===!0?"":r.download}`:"";return a={signedUrl:encodeURI(`${this.url}${a.signedURL}${s}`)},{data:a,error:null}}catch(i){if(_t(i))return{data:null,error:i};throw i}})}createSignedUrls(t,n,r){return dn(this,void 0,void 0,function*(){try{const i=yield Br(this.fetch,`${this.url}/object/sign/${this.bucketId}`,{expiresIn:n,paths:t},{headers:this.headers}),a=r!=null&&r.download?`&download=${r.download===!0?"":r.download}`:"";return{data:i.map(s=>Object.assign(Object.assign({},s),{signedUrl:s.signedURL?encodeURI(`${this.url}${s.signedURL}${a}`):null})),error:null}}catch(i){if(_t(i))return{data:null,error:i};throw i}})}download(t,n){return dn(this,void 0,void 0,function*(){const i=typeof(n==null?void 0:n.transform)<"u"?"render/image/authenticated":"object",a=this.transformOptsToQueryString((n==null?void 0:n.transform)||{}),s=a?`?${a}`:"";try{const o=this._getFinalPath(t);return{data:yield(yield xm(this.fetch,`${this.url}/${i}/${o}${s}`,{headers:this.headers,noResolveJson:!0})).blob(),error:null}}catch(o){if(_t(o))return{data:null,error:o};throw o}})}getPublicUrl(t,n){const r=this._getFinalPath(t),i=[],a=n!=null&&n.download?`download=${n.download===!0?"":n.download}`:"";a!==""&&i.push(a);const o=typeof(n==null?void 0:n.transform)<"u"?"render/image":"object",l=this.transformOptsToQueryString((n==null?void 0:n.transform)||{});l!==""&&i.push(l);let u=i.join("&");return u!==""&&(u=`?${u}`),{data:{publicUrl:encodeURI(`${this.url}/${o}/public/${r}${u}`)}}}remove(t){return dn(this,void 0,void 0,function*(){try{return{data:yield i8(this.fetch,`${this.url}/object/${this.bucketId}`,{prefixes:t},{headers:this.headers}),error:null}}catch(n){if(_t(n))return{data:null,error:n};throw n}})}list(t,n,r){return dn(this,void 0,void 0,function*(){try{const i=Object.assign(Object.assign(Object.assign({},KO),n),{prefix:t||""});return{data:yield Br(this.fetch,`${this.url}/object/list/${this.bucketId}`,i,{headers:this.headers},r),error:null}}catch(i){if(_t(i))return{data:null,error:i};throw i}})}_getFinalPath(t){return`${this.bucketId}/${t}`}_removeEmptyFolders(t){return t.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}transformOptsToQueryString(t){const n=[];return t.width&&n.push(`width=${t.width}`),t.height&&n.push(`height=${t.height}`),t.resize&&n.push(`resize=${t.resize}`),t.format&&n.push(`format=${t.format}`),t.quality&&n.push(`quality=${t.quality}`),n.join("&")}}const qO="2.6.0",GO={"X-Client-Info":`storage-js/${qO}`};var xa=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(s){s(a)})}return new(n||(n=Promise))(function(a,s){function o(c){try{u(r.next(c))}catch(d){s(d)}}function l(c){try{u(r.throw(c))}catch(d){s(d)}}function u(c){c.done?a(c.value):i(c.value).then(o,l)}u((r=r.apply(e,t||[])).next())})};class ZO{constructor(t,n={},r){this.url=t,this.headers=Object.assign(Object.assign({},GO),n),this.fetch=r8(r)}listBuckets(){return xa(this,void 0,void 0,function*(){try{return{data:yield xm(this.fetch,`${this.url}/bucket`,{headers:this.headers}),error:null}}catch(t){if(_t(t))return{data:null,error:t};throw t}})}getBucket(t){return xa(this,void 0,void 0,function*(){try{return{data:yield xm(this.fetch,`${this.url}/bucket/${t}`,{headers:this.headers}),error:null}}catch(n){if(_t(n))return{data:null,error:n};throw n}})}createBucket(t,n={public:!1}){return xa(this,void 0,void 0,function*(){try{return{data:yield Br(this.fetch,`${this.url}/bucket`,{id:t,name:t,public:n.public,file_size_limit:n.fileSizeLimit,allowed_mime_types:n.allowedMimeTypes},{headers:this.headers}),error:null}}catch(r){if(_t(r))return{data:null,error:r};throw r}})}updateBucket(t,n){return xa(this,void 0,void 0,function*(){try{return{data:yield HO(this.fetch,`${this.url}/bucket/${t}`,{id:t,name:t,public:n.public,file_size_limit:n.fileSizeLimit,allowed_mime_types:n.allowedMimeTypes},{headers:this.headers}),error:null}}catch(r){if(_t(r))return{data:null,error:r};throw r}})}emptyBucket(t){return xa(this,void 0,void 0,function*(){try{return{data:yield Br(this.fetch,`${this.url}/bucket/${t}/empty`,{},{headers:this.headers}),error:null}}catch(n){if(_t(n))return{data:null,error:n};throw n}})}deleteBucket(t){return xa(this,void 0,void 0,function*(){try{return{data:yield i8(this.fetch,`${this.url}/bucket/${t}`,{},{headers:this.headers}),error:null}}catch(n){if(_t(n))return{data:null,error:n};throw n}})}}class XO extends ZO{constructor(t,n={},r){super(t,n,r)}from(t){return new YO(this.url,this.headers,t,this.fetch)}}const QO="2.44.3";let fo="";typeof Deno<"u"?fo="deno":typeof document<"u"?fo="web":typeof navigator<"u"&&navigator.product==="ReactNative"?fo="react-native":fo="node";const JO={"X-Client-Info":`supabase-js-${fo}/${QO}`},eB={headers:JO},tB={schema:"public"},nB={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},rB={};var iB=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(s){s(a)})}return new(n||(n=Promise))(function(a,s){function o(c){try{u(r.next(c))}catch(d){s(d)}}function l(c){try{u(r.throw(c))}catch(d){s(d)}}function u(c){c.done?a(c.value):i(c.value).then(o,l)}u((r=r.apply(e,t||[])).next())})};const aB=e=>{let t;return e?t=e:typeof fetch>"u"?t=W_:t=fetch,(...n)=>t(...n)},sB=()=>typeof Headers>"u"?U_:Headers,oB=(e,t,n)=>{const r=aB(n),i=sB();return(a,s)=>iB(void 0,void 0,void 0,function*(){var o;const l=(o=yield t())!==null&&o!==void 0?o:e;let u=new i(s==null?void 0:s.headers);return u.has("apikey")||u.set("apikey",e),u.has("Authorization")||u.set("Authorization",`Bearer ${l}`),r(a,Object.assign(Object.assign({},s),{headers:u}))})};function lB(e){return e.replace(/\/$/,"")}function uB(e,t){const{db:n,auth:r,realtime:i,global:a}=e,{db:s,auth:o,realtime:l,global:u}=t;return{db:Object.assign(Object.assign({},s),n),auth:Object.assign(Object.assign({},o),r),realtime:Object.assign(Object.assign({},l),i),global:Object.assign(Object.assign({},u),a)}}const a8="2.64.2",cB="http://localhost:9999",dB="supabase.auth.token",fB={"X-Client-Info":`gotrue-js/${a8}`},x2=10,wm="X-Supabase-Api-Version",s8={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}};function hB(e){return Math.round(Date.now()/1e3)+e}function pB(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const t=Math.random()*16|0;return(e=="x"?t:t&3|8).toString(16)})}const kn=()=>typeof document<"u",yi={tested:!1,writable:!1},Fo=()=>{if(!kn())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(yi.tested)return yi.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),yi.tested=!0,yi.writable=!0}catch{yi.tested=!0,yi.writable=!1}return yi.writable};function _h(e){const t={},n=new URL(e);if(n.hash&&n.hash[0]==="#")try{new URLSearchParams(n.hash.substring(1)).forEach((i,a)=>{t[a]=i})}catch{}return n.searchParams.forEach((r,i)=>{t[i]=r}),t}const o8=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...n)=>bs(async()=>{const{default:r}=await Promise.resolve().then(()=>Ts);return{default:r}},void 0,import.meta.url).then(({default:r})=>r(...n)):t=fetch,(...n)=>t(...n)},mB=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",l8=async(e,t,n)=>{await e.setItem(t,JSON.stringify(n))},uu=async(e,t)=>{const n=await e.getItem(t);if(!n)return null;try{return JSON.parse(n)}catch{return n}},Eh=async(e,t)=>{await e.removeItem(t)};function gB(e){const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";let n="",r,i,a,s,o,l,u,c=0;for(e=e.replace("-","+").replace("_","/");c<e.length;)s=t.indexOf(e.charAt(c++)),o=t.indexOf(e.charAt(c++)),l=t.indexOf(e.charAt(c++)),u=t.indexOf(e.charAt(c++)),r=s<<2|o>>4,i=(o&15)<<4|l>>2,a=(l&3)<<6|u,n=n+String.fromCharCode(r),l!=64&&i!=0&&(n=n+String.fromCharCode(i)),u!=64&&a!=0&&(n=n+String.fromCharCode(a));return n}class _f{constructor(){this.promise=new _f.promiseConstructor((t,n)=>{this.resolve=t,this.reject=n})}}_f.promiseConstructor=Promise;function w2(e){const t=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}=?$|[a-z0-9_-]{2}(==)?$)$/i,n=e.split(".");if(n.length!==3)throw new Error("JWT is not valid: not a JWT structure");if(!t.test(n[1]))throw new Error("JWT is not valid: payload is not in base64url format");const r=n[1];return JSON.parse(gB(r))}async function vB(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function bB(e,t){return new Promise((r,i)=>{(async()=>{for(let a=0;a<1/0;a++)try{const s=await e(a);if(!t(a,null,s)){r(s);return}}catch(s){if(!t(a,s)){i(s);return}}})()})}function yB(e){return("0"+e.toString(16)).substr(-2)}function $B(){const t=new Uint32Array(56);if(typeof crypto>"u"){const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",r=n.length;let i="";for(let a=0;a<56;a++)i+=n.charAt(Math.floor(Math.random()*r));return i}return crypto.getRandomValues(t),Array.from(t,yB).join("")}async function xB(e){const n=new TextEncoder().encode(e),r=await crypto.subtle.digest("SHA-256",n),i=new Uint8Array(r);return Array.from(i).map(a=>String.fromCharCode(a)).join("")}function wB(e){return btoa(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function DB(e){if(!(typeof crypto<"u"&&typeof crypto.subtle<"u"&&typeof TextEncoder<"u"))return console.warn("WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256."),e;const n=await xB(e);return wB(n)}async function wa(e,t,n=!1){const r=$B();let i=r;n&&(i+="/PASSWORD_RECOVERY"),await l8(e,`${t}-code-verifier`,i);const a=await DB(r);return[a,r===a?"plain":"s256"]}const _B=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function EB(e){const t=e.headers.get(wm);if(!t||!t.match(_B))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch{return null}}class a$ extends Error{constructor(t,n,r){super(t),this.__isAuthError=!0,this.name="AuthError",this.status=n,this.code=r}}function re(e){return typeof e=="object"&&e!==null&&"__isAuthError"in e}class SB extends a${constructor(t,n,r){super(t,n,r),this.name="AuthApiError",this.status=n,this.code=r}}function CB(e){return re(e)&&e.name==="AuthApiError"}class u8 extends a${constructor(t,n){super(t),this.name="AuthUnknownError",this.originalError=n}}class fa extends a${constructor(t,n,r,i){super(t,r,i),this.name=n,this.status=r}}class $i extends fa{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}class Sh extends fa{constructor(){super("Auth session or user missing","AuthInvalidTokenResponseError",500,void 0)}}class cu extends fa{constructor(t){super(t,"AuthInvalidCredentialsError",400,void 0)}}class du extends fa{constructor(t,n=null){super(t,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=n}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class D2 extends fa{constructor(t,n=null){super(t,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=n}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class Dm extends fa{constructor(t,n){super(t,"AuthRetryableFetchError",n,void 0)}}function Ch(e){return re(e)&&e.name==="AuthRetryableFetchError"}class _2 extends fa{constructor(t,n,r){super(t,"AuthWeakPasswordError",n,"weak_password"),this.reasons=r}}var kB=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Ti=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),PB=[502,503,504];async function E2(e){var t;if(!mB(e))throw new Dm(Ti(e),0);if(PB.includes(e.status))throw new Dm(Ti(e),e.status);let n;try{n=await e.json()}catch(a){throw new u8(Ti(a),a)}let r;const i=EB(e);if(i&&i.getTime()>=s8["2024-01-01"].timestamp&&typeof n=="object"&&n&&typeof n.code=="string"?r=n.code:typeof n=="object"&&n&&typeof n.error_code=="string"&&(r=n.error_code),r){if(r==="weak_password")throw new _2(Ti(n),e.status,((t=n.weak_password)===null||t===void 0?void 0:t.reasons)||[])}else if(typeof n=="object"&&n&&typeof n.weak_password=="object"&&n.weak_password&&Array.isArray(n.weak_password.reasons)&&n.weak_password.reasons.length&&n.weak_password.reasons.reduce((a,s)=>a&&typeof s=="string",!0))throw new _2(Ti(n),e.status,n.weak_password.reasons);throw new SB(Ti(n),e.status||500,r)}const TB=(e,t,n,r)=>{const i={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"?i:(i.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},t==null?void 0:t.headers),i.body=JSON.stringify(r),Object.assign(Object.assign({},i),n))};async function oe(e,t,n,r){var i;const a=Object.assign({},r==null?void 0:r.headers);a[wm]||(a[wm]=s8["2024-01-01"].name),r!=null&&r.jwt&&(a.Authorization=`Bearer ${r.jwt}`);const s=(i=r==null?void 0:r.query)!==null&&i!==void 0?i:{};r!=null&&r.redirectTo&&(s.redirect_to=r.redirectTo);const o=Object.keys(s).length?"?"+new URLSearchParams(s).toString():"",l=await RB(e,t,n+o,{headers:a,noResolveJson:r==null?void 0:r.noResolveJson},{},r==null?void 0:r.body);return r!=null&&r.xform?r==null?void 0:r.xform(l):{data:Object.assign({},l),error:null}}async function RB(e,t,n,r,i,a){const s=TB(t,r,i,a);let o;try{o=await e(n,Object.assign({},s))}catch(l){throw console.error(l),new Dm(Ti(l),0)}if(o.ok||await E2(o),r!=null&&r.noResolveJson)return o;try{return await o.json()}catch(l){await E2(l)}}function Mr(e){var t;let n=null;OB(e)&&(n=Object.assign({},e),e.expires_at||(n.expires_at=hB(e.expires_in)));const r=(t=e.user)!==null&&t!==void 0?t:e;return{data:{session:n,user:r},error:null}}function S2(e){const t=Mr(e);return!t.error&&e.weak_password&&typeof e.weak_password=="object"&&Array.isArray(e.weak_password.reasons)&&e.weak_password.reasons.length&&e.weak_password.message&&typeof e.weak_password.message=="string"&&e.weak_password.reasons.reduce((n,r)=>n&&typeof r=="string",!0)&&(t.data.weak_password=e.weak_password),t}function jr(e){var t;return{data:{user:(t=e.user)!==null&&t!==void 0?t:e},error:null}}function MB(e){return{data:e,error:null}}function FB(e){const{action_link:t,email_otp:n,hashed_token:r,redirect_to:i,verification_type:a}=e,s=kB(e,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),o={action_link:t,email_otp:n,hashed_token:r,redirect_to:i,verification_type:a},l=Object.assign({},s);return{data:{properties:o,user:l},error:null}}function AB(e){return e}function OB(e){return e.access_token&&e.refresh_token&&e.expires_in}var BB=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};class IB{constructor({url:t="",headers:n={},fetch:r}){this.url=t,this.headers=n,this.fetch=o8(r),this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)}}async signOut(t,n="global"){try{return await oe(this.fetch,"POST",`${this.url}/logout?scope=${n}`,{headers:this.headers,jwt:t,noResolveJson:!0}),{data:null,error:null}}catch(r){if(re(r))return{data:null,error:r};throw r}}async inviteUserByEmail(t,n={}){try{return await oe(this.fetch,"POST",`${this.url}/invite`,{body:{email:t,data:n.data},headers:this.headers,redirectTo:n.redirectTo,xform:jr})}catch(r){if(re(r))return{data:{user:null},error:r};throw r}}async generateLink(t){try{const{options:n}=t,r=BB(t,["options"]),i=Object.assign(Object.assign({},r),n);return"newEmail"in r&&(i.new_email=r==null?void 0:r.newEmail,delete i.newEmail),await oe(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:i,headers:this.headers,xform:FB,redirectTo:n==null?void 0:n.redirectTo})}catch(n){if(re(n))return{data:{properties:null,user:null},error:n};throw n}}async createUser(t){try{return await oe(this.fetch,"POST",`${this.url}/admin/users`,{body:t,headers:this.headers,xform:jr})}catch(n){if(re(n))return{data:{user:null},error:n};throw n}}async listUsers(t){var n,r,i,a,s,o,l;try{const u={nextPage:null,lastPage:0,total:0},c=await oe(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(r=(n=t==null?void 0:t.page)===null||n===void 0?void 0:n.toString())!==null&&r!==void 0?r:"",per_page:(a=(i=t==null?void 0:t.perPage)===null||i===void 0?void 0:i.toString())!==null&&a!==void 0?a:""},xform:AB});if(c.error)throw c.error;const d=await c.json(),f=(s=c.headers.get("x-total-count"))!==null&&s!==void 0?s:0,h=(l=(o=c.headers.get("link"))===null||o===void 0?void 0:o.split(","))!==null&&l!==void 0?l:[];return h.length>0&&(h.forEach(p=>{const g=parseInt(p.split(";")[0].split("=")[1].substring(0,1)),b=JSON.parse(p.split(";")[1].split("=")[1]);u[`${b}Page`]=g}),u.total=parseInt(f)),{data:Object.assign(Object.assign({},d),u),error:null}}catch(u){if(re(u))return{data:{users:[]},error:u};throw u}}async getUserById(t){try{return await oe(this.fetch,"GET",`${this.url}/admin/users/${t}`,{headers:this.headers,xform:jr})}catch(n){if(re(n))return{data:{user:null},error:n};throw n}}async updateUserById(t,n){try{return await oe(this.fetch,"PUT",`${this.url}/admin/users/${t}`,{body:n,headers:this.headers,xform:jr})}catch(r){if(re(r))return{data:{user:null},error:r};throw r}}async deleteUser(t,n=!1){try{return await oe(this.fetch,"DELETE",`${this.url}/admin/users/${t}`,{headers:this.headers,body:{should_soft_delete:n},xform:jr})}catch(r){if(re(r))return{data:{user:null},error:r};throw r}}async _listFactors(t){try{const{data:n,error:r}=await oe(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/factors`,{headers:this.headers,xform:i=>({data:{factors:i},error:null})});return{data:n,error:r}}catch(n){if(re(n))return{data:null,error:n};throw n}}async _deleteFactor(t){try{return{data:await oe(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/factors/${t.id}`,{headers:this.headers}),error:null}}catch(n){if(re(n))return{data:null,error:n};throw n}}}const LB={getItem:e=>Fo()?globalThis.localStorage.getItem(e):null,setItem:(e,t)=>{Fo()&&globalThis.localStorage.setItem(e,t)},removeItem:e=>{Fo()&&globalThis.localStorage.removeItem(e)}};function C2(e={}){return{getItem:t=>e[t]||null,setItem:(t,n)=>{e[t]=n},removeItem:t=>{delete e[t]}}}function NB(){if(typeof globalThis!="object")try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__}catch{typeof self<"u"&&(self.globalThis=self)}}const Da={debug:!!(globalThis&&Fo()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class c8 extends Error{constructor(t){super(t),this.isAcquireTimeout=!0}}class jB extends c8{}async function zB(e,t,n){Da.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",e,t);const r=new globalThis.AbortController;return t>0&&setTimeout(()=>{r.abort(),Da.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",e)},t),await globalThis.navigator.locks.request(e,t===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:r.signal},async i=>{if(i){Da.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",e,i.name);try{return await n()}finally{Da.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",e,i.name)}}else{if(t===0)throw Da.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",e),new jB(`Acquiring an exclusive Navigator LockManager lock "${e}" immediately failed`);if(Da.debug)try{const a=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(a,null,"  "))}catch(a){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",a)}return console.warn("@supabase/gotrue-js: Navigator LockManager returned a null lock when using #request without ifAvailable set to true, it appears this browser is not following the LockManager spec https://developer.mozilla.org/en-US/docs/Web/API/LockManager/request"),await n()}})}NB();const VB={url:cB,storageKey:dB,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:fB,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1},Us=30*1e3,k2=3;async function P2(e,t,n){return await n()}class ol{constructor(t){var n,r;this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log,this.instanceID=ol.nextInstanceID,ol.nextInstanceID+=1,this.instanceID>0&&kn()&&console.warn("Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.");const i=Object.assign(Object.assign({},VB),t);if(this.logDebugMessages=!!i.debug,typeof i.debug=="function"&&(this.logger=i.debug),this.persistSession=i.persistSession,this.storageKey=i.storageKey,this.autoRefreshToken=i.autoRefreshToken,this.admin=new IB({url:i.url,headers:i.headers,fetch:i.fetch}),this.url=i.url,this.headers=i.headers,this.fetch=o8(i.fetch),this.lock=i.lock||P2,this.detectSessionInUrl=i.detectSessionInUrl,this.flowType=i.flowType,this.hasCustomAuthorizationHeader=i.hasCustomAuthorizationHeader,i.lock?this.lock=i.lock:kn()&&(!((n=globalThis==null?void 0:globalThis.navigator)===null||n===void 0)&&n.locks)?this.lock=zB:this.lock=P2,this.mfa={verify:this._verify.bind(this),enroll:this._enroll.bind(this),unenroll:this._unenroll.bind(this),challenge:this._challenge.bind(this),listFactors:this._listFactors.bind(this),challengeAndVerify:this._challengeAndVerify.bind(this),getAuthenticatorAssuranceLevel:this._getAuthenticatorAssuranceLevel.bind(this)},this.persistSession?i.storage?this.storage=i.storage:Fo()?this.storage=LB:(this.memoryStorage={},this.storage=C2(this.memoryStorage)):(this.memoryStorage={},this.storage=C2(this.memoryStorage)),kn()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(a){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",a)}(r=this.broadcastChannel)===null||r===void 0||r.addEventListener("message",async a=>{this._debug("received broadcast notification from other tab or client",a),await this._notifyAllSubscribers(a.data.event,a.data.session,!1)})}this.initialize()}_debug(...t){return this.logDebugMessages&&this.logger(`GoTrueClient@${this.instanceID} (${a8}) ${new Date().toISOString()}`,...t),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>await this._acquireLock(-1,async()=>await this._initialize()))(),await this.initializePromise)}async _initialize(){try{const t=kn()?await this._isPKCEFlow():!1;if(this._debug("#_initialize()","begin","is PKCE flow",t),t||this.detectSessionInUrl&&this._isImplicitGrantFlow()){const{data:n,error:r}=await this._getSessionFromURL(t);if(r)return this._debug("#_initialize()","error detecting session from URL",r),(r==null?void 0:r.message)==="Identity is already linked"||(r==null?void 0:r.message)==="Identity is already linked to another user"?{error:r}:(await this._removeSession(),{error:r});const{session:i,redirectType:a}=n;return this._debug("#_initialize()","detected session in URL",i,"redirect type",a),await this._saveSession(i),setTimeout(async()=>{a==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",i):await this._notifyAllSubscribers("SIGNED_IN",i)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(t){return re(t)?{error:t}:{error:new u8("Unexpected error during initialization",t)}}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(t){var n,r,i;try{await this._removeSession();const a=await oe(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(r=(n=t==null?void 0:t.options)===null||n===void 0?void 0:n.data)!==null&&r!==void 0?r:{},gotrue_meta_security:{captcha_token:(i=t==null?void 0:t.options)===null||i===void 0?void 0:i.captchaToken}},xform:Mr}),{data:s,error:o}=a;if(o||!s)return{data:{user:null,session:null},error:o};const l=s.session,u=s.user;return s.session&&(await this._saveSession(s.session),await this._notifyAllSubscribers("SIGNED_IN",l)),{data:{user:u,session:l},error:null}}catch(a){if(re(a))return{data:{user:null,session:null},error:a};throw a}}async signUp(t){var n,r,i;try{await this._removeSession();let a;if("email"in t){const{email:c,password:d,options:f}=t;let h=null,p=null;this.flowType==="pkce"&&([h,p]=await wa(this.storage,this.storageKey)),a=await oe(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:f==null?void 0:f.emailRedirectTo,body:{email:c,password:d,data:(n=f==null?void 0:f.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:f==null?void 0:f.captchaToken},code_challenge:h,code_challenge_method:p},xform:Mr})}else if("phone"in t){const{phone:c,password:d,options:f}=t;a=await oe(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:c,password:d,data:(r=f==null?void 0:f.data)!==null&&r!==void 0?r:{},channel:(i=f==null?void 0:f.channel)!==null&&i!==void 0?i:"sms",gotrue_meta_security:{captcha_token:f==null?void 0:f.captchaToken}},xform:Mr})}else throw new cu("You must provide either an email or phone number and a password");const{data:s,error:o}=a;if(o||!s)return{data:{user:null,session:null},error:o};const l=s.session,u=s.user;return s.session&&(await this._saveSession(s.session),await this._notifyAllSubscribers("SIGNED_IN",l)),{data:{user:u,session:l},error:null}}catch(a){if(re(a))return{data:{user:null,session:null},error:a};throw a}}async signInWithPassword(t){try{await this._removeSession();let n;if("email"in t){const{email:a,password:s,options:o}=t;n=await oe(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:a,password:s,gotrue_meta_security:{captcha_token:o==null?void 0:o.captchaToken}},xform:S2})}else if("phone"in t){const{phone:a,password:s,options:o}=t;n=await oe(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:a,password:s,gotrue_meta_security:{captcha_token:o==null?void 0:o.captchaToken}},xform:S2})}else throw new cu("You must provide either an email or phone number and a password");const{data:r,error:i}=n;return i?{data:{user:null,session:null},error:i}:!r||!r.session||!r.user?{data:{user:null,session:null},error:new Sh}:(r.session&&(await this._saveSession(r.session),await this._notifyAllSubscribers("SIGNED_IN",r.session)),{data:Object.assign({user:r.user,session:r.session},r.weak_password?{weakPassword:r.weak_password}:null),error:i})}catch(n){if(re(n))return{data:{user:null,session:null},error:n};throw n}}async signInWithOAuth(t){var n,r,i,a;return await this._removeSession(),await this._handleProviderSignIn(t.provider,{redirectTo:(n=t.options)===null||n===void 0?void 0:n.redirectTo,scopes:(r=t.options)===null||r===void 0?void 0:r.scopes,queryParams:(i=t.options)===null||i===void 0?void 0:i.queryParams,skipBrowserRedirect:(a=t.options)===null||a===void 0?void 0:a.skipBrowserRedirect})}async exchangeCodeForSession(t){return await this.initializePromise,this._acquireLock(-1,async()=>this._exchangeCodeForSession(t))}async _exchangeCodeForSession(t){const n=await uu(this.storage,`${this.storageKey}-code-verifier`),[r,i]=(n??"").split("/"),{data:a,error:s}=await oe(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:t,code_verifier:r},xform:Mr});return await Eh(this.storage,`${this.storageKey}-code-verifier`),s?{data:{user:null,session:null,redirectType:null},error:s}:!a||!a.session||!a.user?{data:{user:null,session:null,redirectType:null},error:new Sh}:(a.session&&(await this._saveSession(a.session),await this._notifyAllSubscribers("SIGNED_IN",a.session)),{data:Object.assign(Object.assign({},a),{redirectType:i??null}),error:s})}async signInWithIdToken(t){await this._removeSession();try{const{options:n,provider:r,token:i,access_token:a,nonce:s}=t,o=await oe(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:r,id_token:i,access_token:a,nonce:s,gotrue_meta_security:{captcha_token:n==null?void 0:n.captchaToken}},xform:Mr}),{data:l,error:u}=o;return u?{data:{user:null,session:null},error:u}:!l||!l.session||!l.user?{data:{user:null,session:null},error:new Sh}:(l.session&&(await this._saveSession(l.session),await this._notifyAllSubscribers("SIGNED_IN",l.session)),{data:l,error:u})}catch(n){if(re(n))return{data:{user:null,session:null},error:n};throw n}}async signInWithOtp(t){var n,r,i,a,s;try{if(await this._removeSession(),"email"in t){const{email:o,options:l}=t;let u=null,c=null;this.flowType==="pkce"&&([u,c]=await wa(this.storage,this.storageKey));const{error:d}=await oe(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:o,data:(n=l==null?void 0:l.data)!==null&&n!==void 0?n:{},create_user:(r=l==null?void 0:l.shouldCreateUser)!==null&&r!==void 0?r:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},code_challenge:u,code_challenge_method:c},redirectTo:l==null?void 0:l.emailRedirectTo});return{data:{user:null,session:null},error:d}}if("phone"in t){const{phone:o,options:l}=t,{data:u,error:c}=await oe(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:o,data:(i=l==null?void 0:l.data)!==null&&i!==void 0?i:{},create_user:(a=l==null?void 0:l.shouldCreateUser)!==null&&a!==void 0?a:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},channel:(s=l==null?void 0:l.channel)!==null&&s!==void 0?s:"sms"}});return{data:{user:null,session:null,messageId:u==null?void 0:u.message_id},error:c}}throw new cu("You must provide either an email or phone number.")}catch(o){if(re(o))return{data:{user:null,session:null},error:o};throw o}}async verifyOtp(t){var n,r;try{t.type!=="email_change"&&t.type!=="phone_change"&&await this._removeSession();let i,a;"options"in t&&(i=(n=t.options)===null||n===void 0?void 0:n.redirectTo,a=(r=t.options)===null||r===void 0?void 0:r.captchaToken);const{data:s,error:o}=await oe(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},t),{gotrue_meta_security:{captcha_token:a}}),redirectTo:i,xform:Mr});if(o)throw o;if(!s)throw new Error("An error occurred on token verification.");const l=s.session,u=s.user;return l!=null&&l.access_token&&(await this._saveSession(l),await this._notifyAllSubscribers(t.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",l)),{data:{user:u,session:l},error:null}}catch(i){if(re(i))return{data:{user:null,session:null},error:i};throw i}}async signInWithSSO(t){var n,r,i;try{await this._removeSession();let a=null,s=null;return this.flowType==="pkce"&&([a,s]=await wa(this.storage,this.storageKey)),await oe(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in t?{provider_id:t.providerId}:null),"domain"in t?{domain:t.domain}:null),{redirect_to:(r=(n=t.options)===null||n===void 0?void 0:n.redirectTo)!==null&&r!==void 0?r:void 0}),!((i=t==null?void 0:t.options)===null||i===void 0)&&i.captchaToken?{gotrue_meta_security:{captcha_token:t.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:a,code_challenge_method:s}),headers:this.headers,xform:MB})}catch(a){if(re(a))return{data:null,error:a};throw a}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async t=>{const{data:{session:n},error:r}=t;if(r)throw r;if(!n)throw new $i;const{error:i}=await oe(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:n.access_token});return{data:{user:null,session:null},error:i}})}catch(t){if(re(t))return{data:{user:null,session:null},error:t};throw t}}async resend(t){try{t.type!="email_change"&&t.type!="phone_change"&&await this._removeSession();const n=`${this.url}/resend`;if("email"in t){const{email:r,type:i,options:a}=t,{error:s}=await oe(this.fetch,"POST",n,{headers:this.headers,body:{email:r,type:i,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},redirectTo:a==null?void 0:a.emailRedirectTo});return{data:{user:null,session:null},error:s}}else if("phone"in t){const{phone:r,type:i,options:a}=t,{data:s,error:o}=await oe(this.fetch,"POST",n,{headers:this.headers,body:{phone:r,type:i,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}}});return{data:{user:null,session:null,messageId:s==null?void 0:s.message_id},error:o}}throw new cu("You must provide either an email or phone number and a type")}catch(n){if(re(n))return{data:{user:null,session:null},error:n};throw n}}async getSession(){return await this.initializePromise,await this._acquireLock(-1,async()=>this._useSession(async n=>n))}async _acquireLock(t,n){this._debug("#_acquireLock","begin",t);try{if(this.lockAcquired){const r=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),i=(async()=>(await r,await n()))();return this.pendingInLock.push((async()=>{try{await i}catch{}})()),i}return await this.lock(`lock:${this.storageKey}`,t,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const r=n();for(this.pendingInLock.push((async()=>{try{await r}catch{}})()),await r;this.pendingInLock.length;){const i=[...this.pendingInLock];await Promise.all(i),this.pendingInLock.splice(0,i.length)}return await r}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(t){this._debug("#_useSession","begin");try{const n=await this.__loadSession();return await t(n)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lockAcquired||this._debug("#__loadSession()","used outside of an acquired lock!",new Error().stack);try{let t=null;const n=await uu(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",n),n!==null&&(this._isValidSession(n)?t=n:(this._debug("#getSession()","session from storage is not valid"),await this._removeSession())),!t)return{data:{session:null},error:null};const r=t.expires_at?t.expires_at<=Date.now()/1e3:!1;if(this._debug("#__loadSession()",`session has${r?"":" not"} expired`,"expires_at",t.expires_at),!r){if(this.storage.isServer){const s=this.suppressGetSessionWarning;t=new Proxy(t,{get(l,u,c){return!s&&u==="user"&&console.warn("Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and many not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server."),Reflect.get(l,u,c)}})}return{data:{session:t},error:null}}const{session:i,error:a}=await this._callRefreshToken(t.refresh_token);return a?{data:{session:null},error:a}:{data:{session:i},error:null}}finally{this._debug("#__loadSession()","end")}}async getUser(t){return t?await this._getUser(t):(await this.initializePromise,await this._acquireLock(-1,async()=>await this._getUser()))}async _getUser(t){try{return t?await oe(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:t,xform:jr}):await this._useSession(async n=>{var r,i,a;const{data:s,error:o}=n;if(o)throw o;return!(!((r=s.session)===null||r===void 0)&&r.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new $i}:await oe(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(a=(i=s.session)===null||i===void 0?void 0:i.access_token)!==null&&a!==void 0?a:void 0,xform:jr})})}catch(n){if(re(n))return{data:{user:null},error:n};throw n}}async updateUser(t,n={}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._updateUser(t,n))}async _updateUser(t,n={}){try{return await this._useSession(async r=>{const{data:i,error:a}=r;if(a)throw a;if(!i.session)throw new $i;const s=i.session;let o=null,l=null;this.flowType==="pkce"&&t.email!=null&&([o,l]=await wa(this.storage,this.storageKey));const{data:u,error:c}=await oe(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:n==null?void 0:n.emailRedirectTo,body:Object.assign(Object.assign({},t),{code_challenge:o,code_challenge_method:l}),jwt:s.access_token,xform:jr});if(c)throw c;return s.user=u.user,await this._saveSession(s),await this._notifyAllSubscribers("USER_UPDATED",s),{data:{user:s.user},error:null}})}catch(r){if(re(r))return{data:{user:null},error:r};throw r}}_decodeJWT(t){return w2(t)}async setSession(t){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._setSession(t))}async _setSession(t){try{if(!t.access_token||!t.refresh_token)throw new $i;const n=Date.now()/1e3;let r=n,i=!0,a=null;const s=w2(t.access_token);if(s.exp&&(r=s.exp,i=r<=n),i){const{session:o,error:l}=await this._callRefreshToken(t.refresh_token);if(l)return{data:{user:null,session:null},error:l};if(!o)return{data:{user:null,session:null},error:null};a=o}else{const{data:o,error:l}=await this._getUser(t.access_token);if(l)throw l;a={access_token:t.access_token,refresh_token:t.refresh_token,user:o.user,token_type:"bearer",expires_in:r-n,expires_at:r},await this._saveSession(a),await this._notifyAllSubscribers("SIGNED_IN",a)}return{data:{user:a.user,session:a},error:null}}catch(n){if(re(n))return{data:{session:null,user:null},error:n};throw n}}async refreshSession(t){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._refreshSession(t))}async _refreshSession(t){try{return await this._useSession(async n=>{var r;if(!t){const{data:s,error:o}=n;if(o)throw o;t=(r=s.session)!==null&&r!==void 0?r:void 0}if(!(t!=null&&t.refresh_token))throw new $i;const{session:i,error:a}=await this._callRefreshToken(t.refresh_token);return a?{data:{user:null,session:null},error:a}:i?{data:{user:i.user,session:i},error:null}:{data:{user:null,session:null},error:null}})}catch(n){if(re(n))return{data:{user:null,session:null},error:n};throw n}}async _getSessionFromURL(t){try{if(!kn())throw new du("No browser detected.");if(this.flowType==="implicit"&&!this._isImplicitGrantFlow())throw new du("Not a valid implicit grant flow url.");if(this.flowType=="pkce"&&!t)throw new D2("Not a valid PKCE flow url.");const n=_h(window.location.href);if(t){if(!n.code)throw new D2("No code detected.");const{data:m,error:$}=await this._exchangeCodeForSession(n.code);if($)throw $;const w=new URL(window.location.href);return w.searchParams.delete("code"),window.history.replaceState(window.history.state,"",w.toString()),{data:{session:m.session,redirectType:null},error:null}}if(n.error||n.error_description||n.error_code)throw new du(n.error_description||"Error in URL with unspecified error_description",{error:n.error||"unspecified_error",code:n.error_code||"unspecified_code"});const{provider_token:r,provider_refresh_token:i,access_token:a,refresh_token:s,expires_in:o,expires_at:l,token_type:u}=n;if(!a||!o||!s||!u)throw new du("No session defined in URL");const c=Math.round(Date.now()/1e3),d=parseInt(o);let f=c+d;l&&(f=parseInt(l));const h=f-c;h*1e3<=Us&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${h}s, should have been closer to ${d}s`);const p=f-d;c-p>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",p,f,c):c-p<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clok for skew",p,f,c);const{data:g,error:b}=await this._getUser(a);if(b)throw b;const v={provider_token:r,provider_refresh_token:i,access_token:a,expires_in:d,expires_at:f,refresh_token:s,token_type:u,user:g.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),{data:{session:v,redirectType:n.type},error:null}}catch(n){if(re(n))return{data:{session:null,redirectType:null},error:n};throw n}}_isImplicitGrantFlow(){const t=_h(window.location.href);return!!(kn()&&(t.access_token||t.error_description))}async _isPKCEFlow(){const t=_h(window.location.href),n=await uu(this.storage,`${this.storageKey}-code-verifier`);return!!(t.code&&n)}async signOut(t={scope:"global"}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._signOut(t))}async _signOut({scope:t}={scope:"global"}){return await this._useSession(async n=>{var r;const{data:i,error:a}=n;if(a)return{error:a};const s=(r=i.session)===null||r===void 0?void 0:r.access_token;if(s){const{error:o}=await this.admin.signOut(s,t);if(o&&!(CB(o)&&(o.status===404||o.status===401||o.status===403)))return{error:o}}return t!=="others"&&(await this._removeSession(),await Eh(this.storage,`${this.storageKey}-code-verifier`),await this._notifyAllSubscribers("SIGNED_OUT",null)),{error:null}})}onAuthStateChange(t){const n=pB(),r={id:n,callback:t,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",n),this.stateChangeEmitters.delete(n)}};return this._debug("#onAuthStateChange()","registered callback with id",n),this.stateChangeEmitters.set(n,r),(async()=>(await this.initializePromise,await this._acquireLock(-1,async()=>{this._emitInitialSession(n)})))(),{data:{subscription:r}}}async _emitInitialSession(t){return await this._useSession(async n=>{var r,i;try{const{data:{session:a},error:s}=n;if(s)throw s;await((r=this.stateChangeEmitters.get(t))===null||r===void 0?void 0:r.callback("INITIAL_SESSION",a)),this._debug("INITIAL_SESSION","callback id",t,"session",a)}catch(a){await((i=this.stateChangeEmitters.get(t))===null||i===void 0?void 0:i.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",t,"error",a),console.error(a)}})}async resetPasswordForEmail(t,n={}){let r=null,i=null;this.flowType==="pkce"&&([r,i]=await wa(this.storage,this.storageKey,!0));try{return await oe(this.fetch,"POST",`${this.url}/recover`,{body:{email:t,code_challenge:r,code_challenge_method:i,gotrue_meta_security:{captcha_token:n.captchaToken}},headers:this.headers,redirectTo:n.redirectTo})}catch(a){if(re(a))return{data:null,error:a};throw a}}async getUserIdentities(){var t;try{const{data:n,error:r}=await this.getUser();if(r)throw r;return{data:{identities:(t=n.user.identities)!==null&&t!==void 0?t:[]},error:null}}catch(n){if(re(n))return{data:null,error:n};throw n}}async linkIdentity(t){var n;try{const{data:r,error:i}=await this._useSession(async a=>{var s,o,l,u,c;const{data:d,error:f}=a;if(f)throw f;const h=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,t.provider,{redirectTo:(s=t.options)===null||s===void 0?void 0:s.redirectTo,scopes:(o=t.options)===null||o===void 0?void 0:o.scopes,queryParams:(l=t.options)===null||l===void 0?void 0:l.queryParams,skipBrowserRedirect:!0});return await oe(this.fetch,"GET",h,{headers:this.headers,jwt:(c=(u=d.session)===null||u===void 0?void 0:u.access_token)!==null&&c!==void 0?c:void 0})});if(i)throw i;return kn()&&!(!((n=t.options)===null||n===void 0)&&n.skipBrowserRedirect)&&window.location.assign(r==null?void 0:r.url),{data:{provider:t.provider,url:r==null?void 0:r.url},error:null}}catch(r){if(re(r))return{data:{provider:t.provider,url:null},error:r};throw r}}async unlinkIdentity(t){try{return await this._useSession(async n=>{var r,i;const{data:a,error:s}=n;if(s)throw s;return await oe(this.fetch,"DELETE",`${this.url}/user/identities/${t.identity_id}`,{headers:this.headers,jwt:(i=(r=a.session)===null||r===void 0?void 0:r.access_token)!==null&&i!==void 0?i:void 0})})}catch(n){if(re(n))return{data:null,error:n};throw n}}async _refreshAccessToken(t){const n=`#_refreshAccessToken(${t.substring(0,5)}...)`;this._debug(n,"begin");try{const r=Date.now();return await bB(async i=>(i>0&&await vB(200*Math.pow(2,i-1)),this._debug(n,"refreshing attempt",i),await oe(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:t},headers:this.headers,xform:Mr})),(i,a)=>{const s=200*Math.pow(2,i);return a&&Ch(a)&&Date.now()+s-r<Us})}catch(r){if(this._debug(n,"error",r),re(r))return{data:{session:null,user:null},error:r};throw r}finally{this._debug(n,"end")}}_isValidSession(t){return typeof t=="object"&&t!==null&&"access_token"in t&&"refresh_token"in t&&"expires_at"in t}async _handleProviderSignIn(t,n){const r=await this._getUrlForProvider(`${this.url}/authorize`,t,{redirectTo:n.redirectTo,scopes:n.scopes,queryParams:n.queryParams});return this._debug("#_handleProviderSignIn()","provider",t,"options",n,"url",r),kn()&&!n.skipBrowserRedirect&&window.location.assign(r),{data:{provider:t,url:r},error:null}}async _recoverAndRefresh(){var t;const n="#_recoverAndRefresh()";this._debug(n,"begin");try{const r=await uu(this.storage,this.storageKey);if(this._debug(n,"session from storage",r),!this._isValidSession(r)){this._debug(n,"session is not valid"),r!==null&&await this._removeSession();return}const i=Math.round(Date.now()/1e3),a=((t=r.expires_at)!==null&&t!==void 0?t:1/0)<i+x2;if(this._debug(n,`session has${a?"":" not"} expired with margin of ${x2}s`),a){if(this.autoRefreshToken&&r.refresh_token){const{error:s}=await this._callRefreshToken(r.refresh_token);s&&(console.error(s),Ch(s)||(this._debug(n,"refresh failed with a non-retryable error, removing the session",s),await this._removeSession()))}}else await this._notifyAllSubscribers("SIGNED_IN",r)}catch(r){this._debug(n,"error",r),console.error(r);return}finally{this._debug(n,"end")}}async _callRefreshToken(t){var n,r;if(!t)throw new $i;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const i=`#_callRefreshToken(${t.substring(0,5)}...)`;this._debug(i,"begin");try{this.refreshingDeferred=new _f;const{data:a,error:s}=await this._refreshAccessToken(t);if(s)throw s;if(!a.session)throw new $i;await this._saveSession(a.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",a.session);const o={session:a.session,error:null};return this.refreshingDeferred.resolve(o),o}catch(a){if(this._debug(i,"error",a),re(a)){const s={session:null,error:a};return Ch(a)||(await this._removeSession(),await this._notifyAllSubscribers("SIGNED_OUT",null)),(n=this.refreshingDeferred)===null||n===void 0||n.resolve(s),s}throw(r=this.refreshingDeferred)===null||r===void 0||r.reject(a),a}finally{this.refreshingDeferred=null,this._debug(i,"end")}}async _notifyAllSubscribers(t,n,r=!0){const i=`#_notifyAllSubscribers(${t})`;this._debug(i,"begin",n,`broadcast = ${r}`);try{this.broadcastChannel&&r&&this.broadcastChannel.postMessage({event:t,session:n});const a=[],s=Array.from(this.stateChangeEmitters.values()).map(async o=>{try{await o.callback(t,n)}catch(l){a.push(l)}});if(await Promise.all(s),a.length>0){for(let o=0;o<a.length;o+=1)console.error(a[o]);throw a[0]}}finally{this._debug(i,"end")}}async _saveSession(t){this._debug("#_saveSession()",t),this.suppressGetSessionWarning=!0,await l8(this.storage,this.storageKey,t)}async _removeSession(){this._debug("#_removeSession()"),await Eh(this.storage,this.storageKey)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const t=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{t&&kn()&&(window!=null&&window.removeEventListener)&&window.removeEventListener("visibilitychange",t)}catch(n){console.error("removing visibilitychange callback failed",n)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const t=setInterval(()=>this._autoRefreshTokenTick(),Us);this.autoRefreshTicker=t,t&&typeof t=="object"&&typeof t.unref=="function"?t.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(t),setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const t=this.autoRefreshTicker;this.autoRefreshTicker=null,t&&clearInterval(t)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async _autoRefreshTokenTick(){this._debug("#_autoRefreshTokenTick()","begin");try{await this._acquireLock(0,async()=>{try{const t=Date.now();try{return await this._useSession(async n=>{const{data:{session:r}}=n;if(!r||!r.refresh_token||!r.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const i=Math.floor((r.expires_at*1e3-t)/Us);this._debug("#_autoRefreshTokenTick()",`access token expires in ${i} ticks, a tick lasts ${Us}ms, refresh threshold is ${k2} ticks`),i<=k2&&await this._callRefreshToken(r.refresh_token)})}catch(n){console.error("Auto refresh tick failed with error. This is likely a transient error.",n)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(t){if(t.isAcquireTimeout||t instanceof c8)this._debug("auto refresh token tick lock not available");else throw t}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!kn()||!(window!=null&&window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>await this._onVisibilityChanged(!1),window==null||window.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(t){console.error("_handleVisibilityChange",t)}}async _onVisibilityChanged(t){const n=`#_onVisibilityChanged(${t})`;this._debug(n,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),t||(await this.initializePromise,await this._acquireLock(-1,async()=>{if(document.visibilityState!=="visible"){this._debug(n,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting");return}await this._recoverAndRefresh()}))):document.visibilityState==="hidden"&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(t,n,r){const i=[`provider=${encodeURIComponent(n)}`];if(r!=null&&r.redirectTo&&i.push(`redirect_to=${encodeURIComponent(r.redirectTo)}`),r!=null&&r.scopes&&i.push(`scopes=${encodeURIComponent(r.scopes)}`),this.flowType==="pkce"){const[a,s]=await wa(this.storage,this.storageKey),o=new URLSearchParams({code_challenge:`${encodeURIComponent(a)}`,code_challenge_method:`${encodeURIComponent(s)}`});i.push(o.toString())}if(r!=null&&r.queryParams){const a=new URLSearchParams(r.queryParams);i.push(a.toString())}return r!=null&&r.skipBrowserRedirect&&i.push(`skip_http_redirect=${r.skipBrowserRedirect}`),`${t}?${i.join("&")}`}async _unenroll(t){try{return await this._useSession(async n=>{var r;const{data:i,error:a}=n;return a?{data:null,error:a}:await oe(this.fetch,"DELETE",`${this.url}/factors/${t.factorId}`,{headers:this.headers,jwt:(r=i==null?void 0:i.session)===null||r===void 0?void 0:r.access_token})})}catch(n){if(re(n))return{data:null,error:n};throw n}}async _enroll(t){try{return await this._useSession(async n=>{var r,i;const{data:a,error:s}=n;if(s)return{data:null,error:s};const{data:o,error:l}=await oe(this.fetch,"POST",`${this.url}/factors`,{body:{friendly_name:t.friendlyName,factor_type:t.factorType,issuer:t.issuer},headers:this.headers,jwt:(r=a==null?void 0:a.session)===null||r===void 0?void 0:r.access_token});return l?{data:null,error:l}:(!((i=o==null?void 0:o.totp)===null||i===void 0)&&i.qr_code&&(o.totp.qr_code=`data:image/svg+xml;utf-8,${o.totp.qr_code}`),{data:o,error:null})})}catch(n){if(re(n))return{data:null,error:n};throw n}}async _verify(t){return this._acquireLock(-1,async()=>{try{return await this._useSession(async n=>{var r;const{data:i,error:a}=n;if(a)return{data:null,error:a};const{data:s,error:o}=await oe(this.fetch,"POST",`${this.url}/factors/${t.factorId}/verify`,{body:{code:t.code,challenge_id:t.challengeId},headers:this.headers,jwt:(r=i==null?void 0:i.session)===null||r===void 0?void 0:r.access_token});return o?{data:null,error:o}:(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+s.expires_in},s)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",s),{data:s,error:o})})}catch(n){if(re(n))return{data:null,error:n};throw n}})}async _challenge(t){return this._acquireLock(-1,async()=>{try{return await this._useSession(async n=>{var r;const{data:i,error:a}=n;return a?{data:null,error:a}:await oe(this.fetch,"POST",`${this.url}/factors/${t.factorId}/challenge`,{headers:this.headers,jwt:(r=i==null?void 0:i.session)===null||r===void 0?void 0:r.access_token})})}catch(n){if(re(n))return{data:null,error:n};throw n}})}async _challengeAndVerify(t){const{data:n,error:r}=await this._challenge({factorId:t.factorId});return r?{data:null,error:r}:await this._verify({factorId:t.factorId,challengeId:n.id,code:t.code})}async _listFactors(){const{data:{user:t},error:n}=await this.getUser();if(n)return{data:null,error:n};const r=(t==null?void 0:t.factors)||[],i=r.filter(a=>a.factor_type==="totp"&&a.status==="verified");return{data:{all:r,totp:i},error:null}}async _getAuthenticatorAssuranceLevel(){return this._acquireLock(-1,async()=>await this._useSession(async t=>{var n,r;const{data:{session:i},error:a}=t;if(a)return{data:null,error:a};if(!i)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const s=this._decodeJWT(i.access_token);let o=null;s.aal&&(o=s.aal);let l=o;((r=(n=i.user.factors)===null||n===void 0?void 0:n.filter(d=>d.status==="verified"))!==null&&r!==void 0?r:[]).length>0&&(l="aal2");const c=s.amr||[];return{data:{currentLevel:o,nextLevel:l,currentAuthenticationMethods:c},error:null}}))}}ol.nextInstanceID=0;const WB=ol;class UB extends WB{constructor(t){super(t)}}var HB=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(s){s(a)})}return new(n||(n=Promise))(function(a,s){function o(c){try{u(r.next(c))}catch(d){s(d)}}function l(c){try{u(r.throw(c))}catch(d){s(d)}}function u(c){c.done?a(c.value):i(c.value).then(o,l)}u((r=r.apply(e,t||[])).next())})};class KB{constructor(t,n,r){var i,a,s;if(this.supabaseUrl=t,this.supabaseKey=n,!t)throw new Error("supabaseUrl is required.");if(!n)throw new Error("supabaseKey is required.");const o=lB(t);this.realtimeUrl=`${o}/realtime/v1`.replace(/^http/i,"ws"),this.authUrl=`${o}/auth/v1`,this.storageUrl=`${o}/storage/v1`,this.functionsUrl=`${o}/functions/v1`;const l=`sb-${new URL(this.authUrl).hostname.split(".")[0]}-auth-token`,u={db:tB,realtime:rB,auth:Object.assign(Object.assign({},nB),{storageKey:l}),global:eB},c=uB(r??{},u);this.storageKey=(i=c.auth.storageKey)!==null&&i!==void 0?i:"",this.headers=(a=c.global.headers)!==null&&a!==void 0?a:{},this.auth=this._initSupabaseAuthClient((s=c.auth)!==null&&s!==void 0?s:{},this.headers,c.global.fetch),this.fetch=oB(n,this._getAccessToken.bind(this),c.global.fetch),this.realtime=this._initRealtimeClient(Object.assign({headers:this.headers},c.realtime)),this.rest=new _O(`${o}/rest/v1`,{headers:this.headers,schema:c.db.schema,fetch:this.fetch}),this._listenForAuthEvents()}get functions(){return new eO(this.functionsUrl,{headers:this.headers,customFetch:this.fetch})}get storage(){return new XO(this.storageUrl,this.headers,this.fetch)}from(t){return this.rest.from(t)}schema(t){return this.rest.schema(t)}rpc(t,n={},r={}){return this.rest.rpc(t,n,r)}channel(t,n={config:{}}){return this.realtime.channel(t,n)}getChannels(){return this.realtime.getChannels()}removeChannel(t){return this.realtime.removeChannel(t)}removeAllChannels(){return this.realtime.removeAllChannels()}_getAccessToken(){var t,n;return HB(this,void 0,void 0,function*(){const{data:r}=yield this.auth.getSession();return(n=(t=r.session)===null||t===void 0?void 0:t.access_token)!==null&&n!==void 0?n:null})}_initSupabaseAuthClient({autoRefreshToken:t,persistSession:n,detectSessionInUrl:r,storage:i,storageKey:a,flowType:s,debug:o},l,u){var c;const d={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new UB({url:this.authUrl,headers:Object.assign(Object.assign({},d),l),storageKey:a,autoRefreshToken:t,persistSession:n,detectSessionInUrl:r,storage:i,flowType:s,debug:o,fetch:u,hasCustomAuthorizationHeader:(c="Authorization"in this.headers)!==null&&c!==void 0?c:!1})}_initRealtimeClient(t){return new LO(this.realtimeUrl,Object.assign(Object.assign({},t),{params:Object.assign({apikey:this.supabaseKey},t==null?void 0:t.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((n,r)=>{this._handleTokenChanged(n,"CLIENT",r==null?void 0:r.access_token)})}_handleTokenChanged(t,n,r){(t==="TOKEN_REFRESHED"||t==="SIGNED_IN")&&this.changedAccessToken!==r?(this.realtime.setAuth(r??null),this.changedAccessToken=r):t==="SIGNED_OUT"&&(this.realtime.setAuth(this.supabaseKey),n=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}}const YB=(e,t,n)=>new KB(e,t,n);function ne(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var Z={};ne(Z,"focus-ring",()=>_m,e=>_m=e);ne(Z,"i18nFontFamily",()=>jc,e=>jc=e);ne(Z,"is-active",()=>Em,e=>Em=e);ne(Z,"is-disabled",()=>Sm,e=>Sm=e);ne(Z,"is-focused",()=>Cm,e=>Cm=e);ne(Z,"is-hovered",()=>km,e=>km=e);ne(Z,"is-open",()=>Pm,e=>Pm=e);ne(Z,"is-placeholder",()=>Tm,e=>Tm=e);ne(Z,"is-selected",()=>Rm,e=>Rm=e);ne(Z,"spectrum-BaseButton",()=>oi,e=>oi=e);ne(Z,"spectrum-FocusRing-ring",()=>zc,e=>zc=e);ne(Z,"spectrum-FocusRing",()=>li,e=>li=e);ne(Z,"spectrum-ActionButton",()=>Mm,e=>Mm=e);ne(Z,"spectrum-ActionButton--emphasized",()=>Fm,e=>Fm=e);ne(Z,"spectrum-ActionButton--quiet",()=>Am,e=>Am=e);ne(Z,"spectrum-ActionButton--staticBlack",()=>Om,e=>Om=e);ne(Z,"spectrum-ActionButton--staticColor",()=>Bm,e=>Bm=e);ne(Z,"spectrum-ActionButton--staticWhite",()=>Im,e=>Im=e);ne(Z,"spectrum-ActionButton-hold",()=>Lm,e=>Lm=e);ne(Z,"spectrum-ActionButton-label",()=>Nm,e=>Nm=e);ne(Z,"spectrum-ActionGroup-itemIcon",()=>jm,e=>jm=e);ne(Z,"spectrum-Button",()=>zm,e=>zm=e);ne(Z,"spectrum-Button--iconOnly",()=>Vm,e=>Vm=e);ne(Z,"spectrum-Button--overBackground",()=>Wm,e=>Wm=e);ne(Z,"spectrum-Button--pending",()=>Um,e=>Um=e);ne(Z,"spectrum-Button-circleLoader",()=>Hm,e=>Hm=e);ne(Z,"spectrum-Button-label",()=>Km,e=>Km=e);ne(Z,"spectrum-ClearButton",()=>Ym,e=>Ym=e);ne(Z,"spectrum-ClearButton--overBackground",()=>qm,e=>qm=e);ne(Z,"spectrum-ClearButton--small",()=>Gm,e=>Gm=e);ne(Z,"spectrum-FieldButton",()=>Zm,e=>Zm=e);ne(Z,"spectrum-FieldButton--invalid",()=>Xm,e=>Xm=e);ne(Z,"spectrum-FocusRing--quiet",()=>Vc,e=>Vc=e);ne(Z,"spectrum-FieldButton--quiet",()=>Qm,e=>Qm=e);ne(Z,"spectrum-Icon",()=>Jm,e=>Jm=e);ne(Z,"spectrum-LogicButton",()=>eg,e=>eg=e);ne(Z,"spectrum-LogicButton--and",()=>tg,e=>tg=e);ne(Z,"spectrum-LogicButton--or",()=>ng,e=>ng=e);var _m,jc,Em,Sm,Cm,km,Pm,Tm,Rm,oi,zc,li,Mm,Fm,Am,Om,Bm,Im,Lm,Nm,jm,zm,Vm,Wm,Um,Hm,Km,Ym,qm,Gm,Zm,Xm,Vc,Qm,Jm,eg,tg,ng;_m="Dniwja_focus-ring";jc="Dniwja_i18nFontFamily";Em="Dniwja_is-active";Sm="Dniwja_is-disabled";Cm="Dniwja_is-focused";km="Dniwja_is-hovered";Pm="Dniwja_is-open";Tm="Dniwja_is-placeholder";Rm="Dniwja_is-selected";oi=`Dniwja_spectrum-BaseButton ${jc}`;zc="Dniwja_spectrum-FocusRing-ring";li=`Dniwja_spectrum-FocusRing ${zc}`;Mm=`Dniwja_spectrum-ActionButton ${oi} ${li}`;Fm="Dniwja_spectrum-ActionButton--emphasized";Am="Dniwja_spectrum-ActionButton--quiet";Om="Dniwja_spectrum-ActionButton--staticBlack";Bm="Dniwja_spectrum-ActionButton--staticColor";Im="Dniwja_spectrum-ActionButton--staticWhite";Lm="Dniwja_spectrum-ActionButton-hold";Nm="Dniwja_spectrum-ActionButton-label";jm="Dniwja_spectrum-ActionGroup-itemIcon";zm=`Dniwja_spectrum-Button ${oi} ${li}`;Vm="Dniwja_spectrum-Button--iconOnly";Wm="Dniwja_spectrum-Button--overBackground";Um="Dniwja_spectrum-Button--pending";Hm="Dniwja_spectrum-Button-circleLoader";Km="Dniwja_spectrum-Button-label";Ym=`Dniwja_spectrum-ClearButton ${oi} ${li}`;qm="Dniwja_spectrum-ClearButton--overBackground";Gm="Dniwja_spectrum-ClearButton--small";Zm=`Dniwja_spectrum-FieldButton ${oi} ${li}`;Xm="Dniwja_spectrum-FieldButton--invalid";Vc="Dniwja_spectrum-FocusRing--quiet";Qm=`Dniwja_spectrum-FieldButton--quiet ${Vc}`;Jm="Dniwja_spectrum-Icon";eg=`Dniwja_spectrum-LogicButton ${oi} ${li}`;tg="Dniwja_spectrum-LogicButton--and";ng="Dniwja_spectrum-LogicButton--or";function d8(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=d8(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ef(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=d8(e))&&(r&&(r+=" "),r+=t);return r}let fu=!1;function V(e,...t){let n=[];for(let r of t)if(typeof r=="object"&&r){let i={};for(let a in r)e[a]&&(i[e[a]]=r[a]),e[a]||(i[a]=r[a]);n.push(i)}else typeof r=="string"?(e[r]&&n.push(e[r]),e[r]||n.push(r)):n.push(r);return Ef(...n)}const Wc={prefix:String(Math.round(Math.random()*1e10)),current:0},f8=_.createContext(Wc),qB=_.createContext(!1);let GB=!!(typeof window<"u"&&window.document&&window.document.createElement),kh=new WeakMap;function ZB(e=!1){let t=y.useContext(f8),n=y.useRef(null);if(n.current===null&&!e){var r,i;let a=(i=_.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||i===void 0||(r=i.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(a){let s=kh.get(a);s==null?kh.set(a,{id:t.current,state:a.memoizedState}):a.memoizedState!==s.state&&(t.current=s.id,kh.delete(a))}n.current=++t.current}return n.current}function XB(e){let t=y.useContext(f8);t===Wc&&!GB&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=ZB(!!e),r=`react-aria${t.prefix}`;return e||`${r}-${n}`}function QB(e){let t=_.useId(),[n]=y.useState(ha()),r=n?"react-aria":`react-aria${Wc.prefix}`;return e||`${r}-${t}`}const JB=typeof _.useId=="function"?QB:XB;function eI(){return!1}function tI(){return!0}function nI(e){return()=>{}}function ha(){return typeof _.useSyncExternalStore=="function"?_.useSyncExternalStore(nI,eI,tI):y.useContext(qB)}function rg(e){let t=typeof window<"u"&&typeof window.matchMedia=="function",[n,r]=y.useState(()=>t?window.matchMedia(e).matches:!1);return y.useEffect(()=>{if(!t)return;let a=window.matchMedia(e),s=o=>{r(o.matches)};return a.addListener(s),()=>{a.removeListener(s)}},[t,e]),ha()?!1:n}function Sf(e){return{UNSAFE_getDOMNode(){return e.current}}}function rI(e,t=e){return{...Sf(e),focus(){t.current&&t.current.focus()}}}function Nn(e){let t=y.useRef(null);return y.useImperativeHandle(e,()=>Sf(t)),t}function h8(e,t){let n=y.useRef(null);return y.useImperativeHandle(e,()=>rI(n,t)),n}function hu(e){return{get current(){return e.current&&e.current.UNSAFE_getDOMNode()}}}const s$=_.createContext(null);s$.displayName="BreakpointContext";function iI(e){let{children:t,matchedBreakpoints:n}=e;return _.createElement(s$.Provider,{value:{matchedBreakpoints:n}},t)}function aI(e){let t=Object.entries(e).sort(([,l],[,u])=>u-l),n=t.map(([,l])=>`(min-width: ${l}px)`),r=typeof window<"u"&&typeof window.matchMedia=="function",i=()=>{let l=[];for(let u in n){let c=n[u];window.matchMedia(c).matches&&l.push(t[u][0])}return l.push("base"),l},[a,s]=y.useState(()=>r?i():["base"]);return y.useEffect(()=>{if(!r)return;let l=()=>{const u=i();s(c=>c.length!==u.length||c.some((d,f)=>d!==u[f])?[...u]:c)};return window.addEventListener("resize",l),()=>{window.removeEventListener("resize",l)}},[r]),ha()?["base"]:a}function p8(){return y.useContext(s$)}const sI=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),oI=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function m8(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize(),r=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(r)return r.direction==="rtl";if(n.script)return sI.has(n.script)}let t=e.split("-")[0];return oI.has(t)}const lI=Symbol.for("react-aria.i18n.locale");function g8(){let e=typeof window<"u"&&window[lI]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:m8(e)?"rtl":"ltr"}}let ig=g8(),ho=new Set;function T2(){ig=g8();for(let e of ho)e(ig)}function v8(){let e=ha(),[t,n]=y.useState(ig);return y.useEffect(()=>(ho.size===0&&window.addEventListener("languagechange",T2),ho.add(n),()=>{ho.delete(n),ho.size===0&&window.removeEventListener("languagechange",T2)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const b8=_.createContext(null);function uI(e){let{locale:t,children:n}=e,r=v8(),i=_.useMemo(()=>t?{locale:t,direction:m8(t)?"rtl":"ltr"}:r,[r,t]);return _.createElement(b8.Provider,{value:i},n)}function Qe(){let e=v8();return y.useContext(b8)||e}const cI=Symbol.for("react-aria.i18n.locale"),dI=Symbol.for("react-aria.i18n.strings");let _a;class mi{getStringForLocale(t,n){let i=this.getStringsForLocale(n)[t];if(!i)throw new Error(`Could not find intl message ${t} in ${n} locale`);return i}getStringsForLocale(t){let n=this.strings[t];return n||(n=fI(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[cI];if(_a===void 0){let i=window[dI];if(!i)return null;_a={};for(let a in i)_a[a]=new mi({[n]:i[a]},n)}let r=_a==null?void 0:_a[t];if(!r)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}constructor(t,n="en-US"){this.strings=Object.fromEntries(Object.entries(t).filter(([,r])=>r)),this.defaultLocale=n}}function fI(e,t,n="en-US"){if(t[e])return t[e];let r=hI(e);if(t[r])return t[r];for(let i in t)if(i.startsWith(r+"-"))return t[i];return t[n]}function hI(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const R2=new Map,M2=new Map;class y8{format(t,n){let r=this.strings.getStringForLocale(t,this.locale);return typeof r=="function"?r(n,this):r}plural(t,n,r="cardinal"){let i=n["="+t];if(i)return typeof i=="function"?i():i;let a=this.locale+":"+r,s=R2.get(a);s||(s=new Intl.PluralRules(this.locale,{type:r}),R2.set(a,s));let o=s.select(t);return i=n[o]||n.other,typeof i=="function"?i():i}number(t){let n=M2.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),M2.set(this.locale,n)),n.format(t)}select(t,n){let r=t[n]||t.other;return typeof r=="function"?r():r}constructor(t,n){this.locale=t,this.strings=n}}const F2=new WeakMap;function pI(e){let t=F2.get(e);return t||(t=new mi(e),F2.set(e,t)),t}function $8(e,t){return t&&mi.getGlobalDictionaryForPackage(t)||pI(e)}function Sn(e,t){let{locale:n}=Qe(),r=$8(e,t);return y.useMemo(()=>new y8(n,r),[n,r])}function ns(e,t){return e-t*Math.floor(e/t)}const x8=1721426;function Vi(e,t,n,r){t=Bl(e,t);let i=t-1,a=-2;return n<=2?a=0:Ur(t)&&(a=-1),x8-1+365*i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400)+Math.floor((367*n-362)/12+a+r)}function Ur(e){return e%4===0&&(e%100!==0||e%400===0)}function Bl(e,t){return e==="BC"?1-t:t}function Cf(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const mI={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class Ft{fromJulianDay(t){let n=t,r=n-x8,i=Math.floor(r/146097),a=ns(r,146097),s=Math.floor(a/36524),o=ns(a,36524),l=Math.floor(o/1461),u=ns(o,1461),c=Math.floor(u/365),d=i*400+s*100+l*4+c+(s!==4&&c!==4?1:0),[f,h]=Cf(d),p=n-Vi(f,h,1,1),g=2;n<Vi(f,h,3,1)?g=0:Ur(h)&&(g=1);let b=Math.floor(((p+g)*12+373)/367),v=n-Vi(f,h,b,1)+1;return new Je(f,h,b,v)}toJulianDay(t){return Vi(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return mI[Ur(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return Ur(t.year)?366:365}getYearsInEra(t){return 9999}getEras(){return["BC","AD"]}isInverseEra(t){return t.era==="BC"}balanceDate(t){t.year<=0&&(t.era=t.era==="BC"?"AD":"BC",t.year=1-t.year)}constructor(){this.identifier="gregory"}}const gI={"001":1,AD:1,AE:6,AF:6,AI:1,AL:1,AM:1,AN:1,AR:1,AT:1,AU:1,AX:1,AZ:1,BA:1,BE:1,BG:1,BH:6,BM:1,BN:1,BY:1,CH:1,CL:1,CM:1,CN:1,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DZ:6,EC:1,EE:1,EG:6,ES:1,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,HR:1,HU:1,IE:1,IQ:6,IR:6,IS:1,IT:1,JO:6,KG:1,KW:6,KZ:1,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MK:1,MN:1,MQ:1,MV:5,MY:1,NL:1,NO:1,NZ:1,OM:6,PL:1,QA:6,RE:1,RO:1,RS:1,RU:1,SD:6,SE:1,SI:1,SK:1,SM:1,SY:6,TJ:1,TM:1,TR:1,UA:1,UY:1,UZ:1,VA:1,VN:1,XK:1};function Ze(e,t){return t=Oe(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function A2(e,t){return t=Oe(t,e.calendar),e=na(e),t=na(t),e.era===t.era&&e.year===t.year&&e.month===t.month}function ag(e,t){return e.calendar.identifier===t.calendar.identifier&&e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function w8(e,t){return Ze(e,Il(t))}function kf(e,t){let n=e.calendar.toJulianDay(e),r=Math.ceil(n+1-wI(t))%7;return r<0&&(r+=7),r}function D8(e){return hr(Date.now(),e)}function Il(e){return Zt(D8(e))}function _8(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function E8(e,t){return O2(e)-O2(t)}function O2(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}let Ph=null;function Pf(){return Ph==null&&(Ph=new Intl.DateTimeFormat().resolvedOptions().timeZone),Ph}function na(e){return e.subtract({days:e.day-1})}function Uc(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function vI(e){return na(e.subtract({months:e.month-1}))}function bI(e){return e.calendar.getMinimumMonthInYear?e.calendar.getMinimumMonthInYear(e):1}function yI(e){return e.calendar.getMinimumDayInMonth?e.calendar.getMinimumDayInMonth(e):1}function ll(e,t){let n=kf(e,t);return e.subtract({days:n})}function $I(e,t){return ll(e,t).add({days:6})}const B2=new Map;function xI(e){if(Intl.Locale){let n=B2.get(e);return n||(n=new Intl.Locale(e).maximize().region,n&&B2.set(e,n)),n}let t=e.split("-")[1];return t==="u"?void 0:t}function wI(e){let t=xI(e);return t&&gI[t]||0}function DI(e,t){let n=e.calendar.getDaysInMonth(e);return Math.ceil((kf(na(e),t)+n)/7)}function o$(e,t){return e&&t?e.compare(t)<=0?e:t:e||t}function l$(e,t){return e&&t?e.compare(t)>=0?e:t:e||t}function $s(e){e=Oe(e,new Ft);let t=Bl(e.era,e.year);return S8(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function S8(e,t,n,r,i,a,s){let o=new Date;return o.setUTCHours(r,i,a,s),o.setUTCFullYear(e,t-1,n),o.getTime()}function sg(e,t){if(t==="UTC")return 0;if(e>0&&t===Pf())return new Date(e).getTimezoneOffset()*-6e4;let{year:n,month:r,day:i,hour:a,minute:s,second:o}=C8(e,t);return S8(n,r,i,a,s,o,0)-Math.floor(e/1e3)*1e3}const I2=new Map;function C8(e,t){let n=I2.get(t);n||(n=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),I2.set(t,n));let r=n.formatToParts(new Date(e)),i={};for(let a of r)a.type!=="literal"&&(i[a.type]=a.value);return{year:i.era==="BC"||i.era==="B"?-i.year+1:+i.year,month:+i.month,day:+i.day,hour:i.hour==="24"?0:+i.hour,minute:+i.minute,second:+i.second}}const L2=864e5;function _I(e,t,n,r){return(n===r?[n]:[n,r]).filter(a=>EI(e,t,a))}function EI(e,t,n){let r=C8(n,t);return e.year===r.year&&e.month===r.month&&e.day===r.day&&e.hour===r.hour&&e.minute===r.minute&&e.second===r.second}function cr(e,t,n="compatible"){let r=Xn(e);if(t==="UTC")return $s(r);if(t===Pf()&&n==="compatible"){r=Oe(r,new Ft);let l=new Date,u=Bl(r.era,r.year);return l.setFullYear(u,r.month-1,r.day),l.setHours(r.hour,r.minute,r.second,r.millisecond),l.getTime()}let i=$s(r),a=sg(i-L2,t),s=sg(i+L2,t),o=_I(r,t,i-a,i-s);if(o.length===1)return o[0];if(o.length>1)switch(n){case"compatible":case"earlier":return o[0];case"later":return o[o.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(n){case"earlier":return Math.min(i-a,i-s);case"compatible":case"later":return Math.max(i-a,i-s);case"reject":throw new RangeError("No such absolute time found")}}function k8(e,t,n="compatible"){return new Date(cr(e,t,n))}function hr(e,t){let n=sg(e,t),r=new Date(e+n),i=r.getUTCFullYear(),a=r.getUTCMonth()+1,s=r.getUTCDate(),o=r.getUTCHours(),l=r.getUTCMinutes(),u=r.getUTCSeconds(),c=r.getUTCMilliseconds();return new cl(i,a,s,t,n,o,l,u,c)}function Zt(e){return new Je(e.calendar,e.era,e.year,e.month,e.day)}function Xn(e,t){let n=0,r=0,i=0,a=0;if("timeZone"in e)({hour:n,minute:r,second:i,millisecond:a}=e);else if("hour"in e&&!t)return e;return t&&({hour:n,minute:r,second:i,millisecond:a}=t),new Hc(e.calendar,e.era,e.year,e.month,e.day,n,r,i,a)}function N2(e){return new Nl(e.hour,e.minute,e.second,e.millisecond)}function Oe(e,t){if(e.calendar.identifier===t.identifier)return e;let n=t.fromJulianDay(e.calendar.toJulianDay(e)),r=e.copy();return r.calendar=t,r.era=n.era,r.year=n.year,r.month=n.month,r.day=n.day,ra(r),r}function P8(e,t,n){if(e instanceof cl)return e.timeZone===t?e:CI(e,t);let r=cr(e,t,n);return hr(r,t)}function SI(e){let t=$s(e)-e.offset;return new Date(t)}function CI(e,t){let n=$s(e)-e.offset;return Oe(hr(n,t),e.calendar)}const Hs=36e5;function Tf(e,t){let n=e.copy(),r="hour"in n?F8(n,t):0;og(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,lg(n),T8(n),n.day+=(t.weeks||0)*7,n.day+=t.days||0,n.day+=r,kI(n),n.calendar.balanceDate&&n.calendar.balanceDate(n),n.year<1&&(n.year=1,n.month=1,n.day=1);let i=n.calendar.getYearsInEra(n);if(n.year>i){var a,s;let l=(a=(s=n.calendar).isInverseEra)===null||a===void 0?void 0:a.call(s,n);n.year=i,n.month=l?1:n.calendar.getMonthsInYear(n),n.day=l?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let o=n.calendar.getMonthsInYear(n);return n.month>o&&(n.month=o,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}function og(e,t){var n,r;!((n=(r=e.calendar).isInverseEra)===null||n===void 0)&&n.call(r,e)&&(t=-t),e.year+=t}function lg(e){for(;e.month<1;)og(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,og(e,1)}function kI(e){for(;e.day<1;)e.month--,lg(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,lg(e)}function T8(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day))}function ra(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),T8(e)}function u$(e){let t={};for(let n in e)typeof e[n]=="number"&&(t[n]=-e[n]);return t}function R8(e,t){return Tf(e,u$(t))}function c$(e,t){let n=e.copy();return t.era!=null&&(n.era=t.era),t.year!=null&&(n.year=t.year),t.month!=null&&(n.month=t.month),t.day!=null&&(n.day=t.day),ra(n),n}function ul(e,t){let n=e.copy();return t.hour!=null&&(n.hour=t.hour),t.minute!=null&&(n.minute=t.minute),t.second!=null&&(n.second=t.second),t.millisecond!=null&&(n.millisecond=t.millisecond),M8(n),n}function PI(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=pu(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=pu(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=pu(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=pu(e.hour,24),t}function M8(e){e.millisecond=Math.max(0,Math.min(e.millisecond,1e3)),e.second=Math.max(0,Math.min(e.second,59)),e.minute=Math.max(0,Math.min(e.minute,59)),e.hour=Math.max(0,Math.min(e.hour,23))}function pu(e,t){let n=e%t;return n<0&&(n+=t),n}function F8(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,PI(e)}function A8(e,t){let n=e.copy();return F8(n,t),n}function TI(e,t){return A8(e,u$(t))}function d$(e,t,n,r){let i=e.copy();switch(t){case"era":{let o=e.calendar.getEras(),l=o.indexOf(e.era);if(l<0)throw new Error("Invalid era: "+e.era);l=pr(l,n,0,o.length-1,r==null?void 0:r.round),i.era=o[l],ra(i);break}case"year":var a,s;!((a=(s=i.calendar).isInverseEra)===null||a===void 0)&&a.call(s,i)&&(n=-n),i.year=pr(e.year,n,-1/0,9999,r==null?void 0:r.round),i.year===-1/0&&(i.year=1),i.calendar.balanceYearMonth&&i.calendar.balanceYearMonth(i,e);break;case"month":i.month=pr(e.month,n,1,e.calendar.getMonthsInYear(e),r==null?void 0:r.round);break;case"day":i.day=pr(e.day,n,1,e.calendar.getDaysInMonth(e),r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(i),ra(i),i}function f$(e,t,n,r){let i=e.copy();switch(t){case"hour":{let a=e.hour,s=0,o=23;if((r==null?void 0:r.hourCycle)===12){let l=a>=12;s=l?12:0,o=l?23:11}i.hour=pr(a,n,s,o,r==null?void 0:r.round);break}case"minute":i.minute=pr(e.minute,n,0,59,r==null?void 0:r.round);break;case"second":i.second=pr(e.second,n,0,59,r==null?void 0:r.round);break;case"millisecond":i.millisecond=pr(e.millisecond,n,0,999,r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return i}function pr(e,t,n,r,i=!1){if(i){e+=Math.sign(t),e<n&&(e=r);let a=Math.abs(t);t>0?e=Math.ceil(e/a)*a:e=Math.floor(e/a)*a,e>r&&(e=n)}else e+=t,e<n?e=r-(n-e-1):e>r&&(e=n+(e-r-1));return e}function O8(e,t){let n;if(t.years!=null&&t.years!==0||t.months!=null&&t.months!==0||t.weeks!=null&&t.weeks!==0||t.days!=null&&t.days!==0){let i=Tf(Xn(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});n=cr(i,e.timeZone)}else n=$s(e)-e.offset;n+=t.milliseconds||0,n+=(t.seconds||0)*1e3,n+=(t.minutes||0)*6e4,n+=(t.hours||0)*36e5;let r=hr(n,e.timeZone);return Oe(r,e.calendar)}function RI(e,t){return O8(e,u$(t))}function MI(e,t,n,r){switch(t){case"hour":{let i=0,a=23;if((r==null?void 0:r.hourCycle)===12){let p=e.hour>=12;i=p?12:0,a=p?23:11}let s=Xn(e),o=Oe(ul(s,{hour:i}),new Ft),l=[cr(o,e.timeZone,"earlier"),cr(o,e.timeZone,"later")].filter(p=>hr(p,e.timeZone).day===o.day)[0],u=Oe(ul(s,{hour:a}),new Ft),c=[cr(u,e.timeZone,"earlier"),cr(u,e.timeZone,"later")].filter(p=>hr(p,e.timeZone).day===u.day).pop(),d=$s(e)-e.offset,f=Math.floor(d/Hs),h=d%Hs;return d=pr(f,n,Math.floor(l/Hs),Math.floor(c/Hs),r==null?void 0:r.round)*Hs+h,Oe(hr(d,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return f$(e,t,n,r);case"era":case"year":case"month":case"day":{let i=d$(Xn(e),t,n,r),a=cr(i,e.timeZone);return Oe(hr(a,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+t)}}function FI(e,t,n){let r=Xn(e),i=ul(c$(r,t),t);if(i.compare(r)===0)return e;let a=cr(i,e.timeZone,n);return Oe(hr(a,e.timeZone),e.calendar)}function B8(e){return`${String(e.hour).padStart(2,"0")}:${String(e.minute).padStart(2,"0")}:${String(e.second).padStart(2,"0")}${e.millisecond?String(e.millisecond/1e3).slice(1):""}`}function I8(e){let t=Oe(e,new Ft);return`${String(t.year).padStart(4,"0")}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function L8(e){return`${I8(e)}T${B8(e)}`}function AI(e){let t=Math.sign(e)<0?"-":"+";e=Math.abs(e);let n=Math.floor(e/36e5),r=e%36e5/6e4;return`${t}${String(n).padStart(2,"0")}:${String(r).padStart(2,"0")}`}function OI(e){return`${L8(e)}${AI(e.offset)}[${e.timeZone}]`}function BI(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Ll(e,t,n){BI(e,t),t.set(e,n)}function h$(e){let t=typeof e[0]=="object"?e.shift():new Ft,n;if(typeof e[0]=="string")n=e.shift();else{let s=t.getEras();n=s[s.length-1]}let r=e.shift(),i=e.shift(),a=e.shift();return[t,n,r,i,a]}var II=new WeakMap;class Je{copy(){return this.era?new Je(this.calendar,this.era,this.year,this.month,this.day):new Je(this.calendar,this.year,this.month,this.day)}add(t){return Tf(this,t)}subtract(t){return R8(this,t)}set(t){return c$(this,t)}cycle(t,n,r){return d$(this,t,n,r)}toDate(t){return k8(this,t)}toString(){return I8(this)}compare(t){return _8(this,t)}constructor(...t){Ll(this,II,{writable:!0,value:void 0});let[n,r,i,a,s]=h$(t);this.calendar=n,this.era=r,this.year=i,this.month=a,this.day=s,ra(this)}}var LI=new WeakMap;class Nl{copy(){return new Nl(this.hour,this.minute,this.second,this.millisecond)}add(t){return A8(this,t)}subtract(t){return TI(this,t)}set(t){return ul(this,t)}cycle(t,n,r){return f$(this,t,n,r)}toString(){return B8(this)}compare(t){return E8(this,t)}constructor(t=0,n=0,r=0,i=0){Ll(this,LI,{writable:!0,value:void 0}),this.hour=t,this.minute=n,this.second=r,this.millisecond=i,M8(this)}}var NI=new WeakMap;class Hc{copy(){return this.era?new Hc(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new Hc(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return Tf(this,t)}subtract(t){return R8(this,t)}set(t){return c$(ul(this,t),t)}cycle(t,n,r){switch(t){case"era":case"year":case"month":case"day":return d$(this,t,n,r);default:return f$(this,t,n,r)}}toDate(t,n){return k8(this,t,n)}toString(){return L8(this)}compare(t){let n=_8(this,t);return n===0?E8(this,Xn(t)):n}constructor(...t){Ll(this,NI,{writable:!0,value:void 0});let[n,r,i,a,s]=h$(t);this.calendar=n,this.era=r,this.year=i,this.month=a,this.day=s,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,ra(this)}}var jI=new WeakMap;class cl{copy(){return this.era?new cl(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new cl(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(t){return O8(this,t)}subtract(t){return RI(this,t)}set(t,n){return FI(this,t,n)}cycle(t,n,r){return MI(this,t,n,r)}toDate(){return SI(this)}toString(){return OI(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-P8(t,this.timeZone).toDate().getTime()}constructor(...t){Ll(this,jI,{writable:!0,value:void 0});let[n,r,i,a,s]=h$(t),o=t.shift(),l=t.shift();this.calendar=n,this.era=r,this.year=i,this.month=a,this.day=s,this.timeZone=o,this.offset=l,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,ra(this)}}const rs=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],zI=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],rc=[1867,1911,1925,1988,2018],Ir=["meiji","taisho","showa","heisei","reiwa"];function j2(e){const t=rs.findIndex(([n,r,i])=>e.year<n||e.year===n&&e.month<r||e.year===n&&e.month===r&&e.day<i);return t===-1?rs.length-1:t===0?0:t-1}function Th(e){let t=rc[Ir.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new Je(e.year+t,e.month,e.day)}class VI extends Ft{fromJulianDay(t){let n=super.fromJulianDay(t),r=j2(n);return new Je(this,Ir[r],n.year-rc[r],n.month,n.day)}toJulianDay(t){return super.toJulianDay(Th(t))}balanceDate(t){let n=Th(t),r=j2(n);Ir[r]!==t.era&&(t.era=Ir[r],t.year=n.year-rc[r]),this.constrainDate(t)}constrainDate(t){let n=Ir.indexOf(t.era),r=zI[n];if(r!=null){let[i,a,s]=r,o=i-rc[n];t.year=Math.max(1,Math.min(o,t.year)),t.year===o&&(t.month=Math.min(a,t.month),t.month===a&&(t.day=Math.min(s,t.day)))}if(t.year===1&&n>=0){let[,i,a]=rs[n];t.month=Math.max(i,t.month),t.month===i&&(t.day=Math.max(a,t.day))}}getEras(){return Ir}getYearsInEra(t){let n=Ir.indexOf(t.era),r=rs[n],i=rs[n+1];if(i==null)return 9999-r[0]+1;let a=i[0]-r[0];return(t.month<i[1]||t.month===i[1]&&t.day<i[2])&&a++,a}getDaysInMonth(t){return super.getDaysInMonth(Th(t))}getMinimumMonthInYear(t){let n=z2(t);return n?n[1]:1}getMinimumDayInMonth(t){let n=z2(t);return n&&t.month===n[1]?n[2]:1}constructor(...t){super(...t),this.identifier="japanese"}}function z2(e){if(e.year===1){let t=Ir.indexOf(e.era);return rs[t]}}const N8=-543;class WI extends Ft{fromJulianDay(t){let n=super.fromJulianDay(t),r=Bl(n.era,n.year);return new Je(this,r-N8,n.month,n.day)}toJulianDay(t){return super.toJulianDay(V2(t))}getEras(){return["BE"]}getDaysInMonth(t){return super.getDaysInMonth(V2(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist"}}function V2(e){let[t,n]=Cf(e.year+N8);return new Je(t,n,e.month,e.day)}const Kc=1911;function j8(e){return e.era==="minguo"?e.year+Kc:1-e.year+Kc}function W2(e){let t=e-Kc;return t>0?["minguo",t]:["before_minguo",1-t]}class UI extends Ft{fromJulianDay(t){let n=super.fromJulianDay(t),r=Bl(n.era,n.year),[i,a]=W2(r);return new Je(this,i,a,n.month,n.day)}toJulianDay(t){return super.toJulianDay(U2(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[n,r]=W2(j8(t));t.era=n,t.year=r}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(U2(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-Kc}constructor(...t){super(...t),this.identifier="roc"}}function U2(e){let[t,n]=Cf(j8(e));return new Je(t,n,e.month,e.day)}const H2=1948320,K2=[0,31,62,93,124,155,186,216,246,276,306,336];class HI{fromJulianDay(t){let n=t-H2,r=1+Math.floor((33*n+3)/12053),i=365*(r-1)+Math.floor((8*r+21)/33),a=n-i,s=a<216?Math.floor(a/31):Math.floor((a-6)/30),o=a-K2[s]+1;return new Je(this,r,s+1,o)}toJulianDay(t){let n=H2-1+365*(t.year-1)+Math.floor((8*t.year+21)/33);return n+=K2[t.month-1],n+=t.day,n}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||ns(25*t.year+11,33)<8?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}const Rh=78,Y2=80;class KI extends Ft{fromJulianDay(t){let n=super.fromJulianDay(t),r=n.year-Rh,i=t-Vi(n.era,n.year,1,1),a;i<Y2?(r--,a=Ur(n.year-1)?31:30,i+=a+155+90+10):(a=Ur(n.year)?31:30,i-=Y2);let s,o;if(i<a)s=1,o=i+1;else{let l=i-a;l<155?(s=Math.floor(l/31)+2,o=l%31+1):(l-=155,s=Math.floor(l/30)+7,o=l%30+1)}return new Je(this,r,s,o)}toJulianDay(t){let n=t.year+Rh,[r,i]=Cf(n),a,s;return Ur(i)?(a=31,s=Vi(r,i,3,21)):(a=30,s=Vi(r,i,3,22)),t.month===1?s+t.day-1:(s+=a+Math.min(t.month-2,5)*31,t.month>=8&&(s+=(t.month-7)*30),s+=t.day-1,s)}getDaysInMonth(t){return t.month===1&&Ur(t.year+Rh)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}}const Yc=1948440,q2=1948439,pn=1300,Ea=1600,YI=460322;function qc(e,t,n,r){return r+Math.ceil(29.5*(n-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function z8(e,t,n){let r=Math.floor((30*(n-t)+10646)/10631),i=Math.min(12,Math.ceil((n-(29+qc(t,r,1,1)))/29.5)+1),a=n-qc(t,r,i,1)+1;return new Je(e,r,i,a)}function G2(e){return(14+11*e)%30<11}class p${fromJulianDay(t){return z8(this,Yc,t)}toJulianDay(t){return qc(Yc,t.year,t.month,t.day)}getDaysInMonth(t){let n=29+t.month%2;return t.month===12&&G2(t.year)&&n++,n}getMonthsInYear(){return 12}getDaysInYear(t){return G2(t.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class qI extends p${fromJulianDay(t){return z8(this,q2,t)}toJulianDay(t){return qc(q2,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}}const GI="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let ug,is;function ic(e){return YI+is[e-pn]}function po(e,t){let n=e-pn,r=1<<11-(t-1);return ug[n]&r?30:29}function Z2(e,t){let n=ic(e);for(let r=1;r<t;r++)n+=po(e,r);return n}function X2(e){return is[e+1-pn]-is[e-pn]}class ZI extends p${fromJulianDay(t){let n=t-Yc,r=ic(pn),i=ic(Ea);if(n<r||n>i)return super.fromJulianDay(t);{let a=pn-1,s=1,o=1;for(;o>0;){a++,o=n-ic(a)+1;let l=X2(a);if(o===l){s=12;break}else if(o<l){let u=po(a,s);for(s=1;o>u;)o-=u,s++,u=po(a,s);break}}return new Je(this,a,s,n-Z2(a,s)+1)}}toJulianDay(t){return t.year<pn||t.year>Ea?super.toJulianDay(t):Yc+Z2(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<pn||t.year>Ea?super.getDaysInMonth(t):po(t.year,t.month)}getDaysInYear(t){return t.year<pn||t.year>Ea?super.getDaysInYear(t):X2(t.year)}constructor(){if(super(),this.identifier="islamic-umalqura",ug||(ug=new Uint16Array(Uint8Array.from(atob(GI),t=>t.charCodeAt(0)).buffer)),!is){is=new Uint32Array(Ea-pn+1);let t=0;for(let n=pn;n<=Ea;n++){is[n-pn]=t;for(let r=1;r<=12;r++)t+=po(n,r)}}}}const Q2=347997,V8=1080,W8=24*V8,XI=29,QI=12*V8+793,JI=XI*W8+QI;function Ii(e){return ns(e*7+1,19)<7}function ac(e){let t=Math.floor((235*e-234)/19),n=12084+13753*t,r=t*29+Math.floor(n/25920);return ns(3*(r+1),7)<3&&(r+=1),r}function eL(e){let t=ac(e-1),n=ac(e);return ac(e+1)-n===356?2:n-t===382?1:0}function Ao(e){return ac(e)+eL(e)}function U8(e){return Ao(e+1)-Ao(e)}function tL(e){let t=U8(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}function mu(e,t){if(t>=6&&!Ii(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let n=tL(e);return t===2?n===2?30:29:t===3?n===0?29:30:t===6?Ii(e)?30:0:30}class nL{fromJulianDay(t){let n=t-Q2,r=n*W8/JI,i=Math.floor((19*r+234)/235)+1,a=Ao(i),s=Math.floor(n-a);for(;s<1;)i--,a=Ao(i),s=Math.floor(n-a);let o=1,l=0;for(;l<s;)l+=mu(i,o),o++;o--,l-=mu(i,o);let u=s-l;return new Je(this,i,o,u)}toJulianDay(t){let n=Ao(t.year);for(let r=1;r<t.month;r++)n+=mu(t.year,r);return n+t.day+Q2}getDaysInMonth(t){return mu(t.year,t.month)}getMonthsInYear(t){return Ii(t.year)?13:12}getDaysInYear(t){return U8(t.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(t,n){n.year!==t.year&&(Ii(n.year)&&!Ii(t.year)&&n.month>6?t.month--:!Ii(n.year)&&Ii(t.year)&&n.month>6&&t.month++)}constructor(){this.identifier="hebrew"}}const cg=1723856,J2=1824665,dg=5500;function Gc(e,t,n,r){return e+365*t+Math.floor(t/4)+30*(n-1)+r-1}function m$(e,t){let n=Math.floor(4*(t-e)/1461),r=1+Math.floor((t-Gc(e,n,1,1))/30),i=t+1-Gc(e,n,r,1);return[n,r,i]}function H8(e){return Math.floor(e%4/3)}function K8(e,t){return t%13!==0?30:H8(e)+5}class g${fromJulianDay(t){let[n,r,i]=m$(cg,t),a="AM";return n<=0&&(a="AA",n+=dg),new Je(this,a,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="AA"&&(n-=dg),Gc(cg,n,t.month,t.day)}getDaysInMonth(t){return K8(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+H8(t.year)}getYearsInEra(t){return t.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class rL extends g${fromJulianDay(t){let[n,r,i]=m$(cg,t);return n+=dg,new Je(this,"AA",n,r,i)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}}class iL extends g${fromJulianDay(t){let[n,r,i]=m$(J2,t),a="CE";return n<=0&&(a="BCE",n=1-n),new Je(this,a,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="BCE"&&(n=1-n),Gc(J2,n,t.month,t.day)}getDaysInMonth(t){let n=t.year;return t.era==="BCE"&&(n=1-n),K8(n,t.month)}isInverseEra(t){return t.era==="BCE"}balanceDate(t){t.year<=0&&(t.era=t.era==="BCE"?"CE":"BCE",t.year=1-t.year)}getEras(){return["BCE","CE"]}getYearsInEra(t){return t.era==="BCE"?9999:9715}constructor(...t){super(...t),this.identifier="coptic"}}function Y8(e){switch(e){case"buddhist":return new WI;case"ethiopic":return new g$;case"ethioaa":return new rL;case"coptic":return new iL;case"hebrew":return new nL;case"indian":return new KI;case"islamic-civil":return new p$;case"islamic-tbla":return new qI;case"islamic-umalqura":return new ZI;case"japanese":return new VI;case"persian":return new HI;case"roc":return new UI;case"gregory":default:return new Ft}}let Mh=new Map;class ri{format(t){return this.formatter.format(t)}formatToParts(t){return this.formatter.formatToParts(t)}formatRange(t,n){if(typeof this.formatter.formatRange=="function")return this.formatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.formatter.format(t)} – ${this.formatter.format(n)}`}formatRangeToParts(t,n){if(typeof this.formatter.formatRangeToParts=="function")return this.formatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.formatter.formatToParts(t),i=this.formatter.formatToParts(n);return[...r.map(a=>({...a,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(a=>({...a,source:"endRange"}))]}resolvedOptions(){let t=this.formatter.resolvedOptions();return oL()&&(this.resolvedHourCycle||(this.resolvedHourCycle=lL(t.locale,this.options)),t.hourCycle=this.resolvedHourCycle,t.hour12=this.resolvedHourCycle==="h11"||this.resolvedHourCycle==="h12"),t.calendar==="ethiopic-amete-alem"&&(t.calendar="ethioaa"),t}constructor(t,n={}){this.formatter=q8(t,n),this.options=n}}const aL={true:{ja:"h11"},false:{}};function q8(e,t={}){if(typeof t.hour12=="boolean"&&sL()){t={...t};let i=aL[String(t.hour12)][e.split("-")[0]],a=t.hour12?"h12":"h23";t.hourCycle=i??a,delete t.hour12}let n=e+(t?Object.entries(t).sort((i,a)=>i[0]<a[0]?-1:1).join():"");if(Mh.has(n))return Mh.get(n);let r=new Intl.DateTimeFormat(e,t);return Mh.set(n,r),r}let Fh=null;function sL(){return Fh==null&&(Fh=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),Fh}let Ah=null;function oL(){return Ah==null&&(Ah=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),Ah}function lL(e,t){if(!t.timeStyle&&!t.hour)return;e=e.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,""),e+=(e.includes("-u-")?"":"-u")+"-nu-latn";let n=q8(e,{...t,timeZone:void 0}),r=parseInt(n.formatToParts(new Date(2020,2,3,0)).find(a=>a.type==="hour").value,10),i=parseInt(n.formatToParts(new Date(2020,2,3,23)).find(a=>a.type==="hour").value,10);if(r===0&&i===23)return"h23";if(r===24&&i===23)return"h24";if(r===0&&i===11)return"h11";if(r===12&&i===11)return"h12";throw new Error("Unexpected hour cycle result")}const he=typeof document<"u"?_.useLayoutEffect:()=>{};function pt(e){const t=y.useRef(null);return he(()=>{t.current=e},[e]),y.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}function G8(e){let[t,n]=y.useState(e),r=y.useRef(null),i=pt(()=>{if(!r.current)return;let s=r.current.next();if(s.done){r.current=null;return}t===s.value?i():n(s.value)});he(()=>{r.current&&i()});let a=pt(s=>{r.current=s(t),i()});return[t,a]}let uL=!!(typeof window<"u"&&window.document&&window.document.createElement),Zc=new Map;function Qn(e){let[t,n]=y.useState(e),r=y.useRef(null),i=JB(t),a=y.useCallback(s=>{r.current=s},[]);return uL&&Zc.set(i,a),he(()=>{let s=i;return()=>{Zc.delete(s)}},[i]),y.useEffect(()=>{let s=r.current;s&&(r.current=null,n(s))}),i}function cL(e,t){if(e===t)return e;let n=Zc.get(e);if(n)return n(t),t;let r=Zc.get(t);return r?(r(e),e):t}function Xc(e=[]){let t=Qn(),[n,r]=G8(t),i=y.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return he(i,[t,i,...e]),n}function dl(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const ye=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},Fn=e=>e&&"window"in e&&e.window===e?e:ye(e).defaultView||window;function de(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let i in r){let a=t[i],s=r[i];typeof a=="function"&&typeof s=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?t[i]=dl(a,s):(i==="className"||i==="UNSAFE_className")&&typeof a=="string"&&typeof s=="string"?t[i]=Ef(a,s):i==="id"&&a&&s?t.id=cL(a,s):t[i]=s!==void 0?s:a}}return t}function dL(...e){return e.length===1?e[0]:t=>{for(let n of e)typeof n=="function"?n(t):n!=null&&(n.current=t)}}const fL=new Set(["id"]),hL=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),pL=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),mL=/^(data-.*)$/;function Xt(e,t={}){let{labelable:n,isLink:r,propNames:i}=t,a={};for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(fL.has(s)||n&&hL.has(s)||r&&pL.has(s)||i!=null&&i.has(s)||mL.test(s))&&(a[s]=e[s]);return a}function Hr(e){if(gL())e.focus({preventScroll:!0});else{let t=vL(e);e.focus(),bL(t)}}let gu=null;function gL(){if(gu==null){gu=!1;try{document.createElement("div").focus({get preventScroll(){return gu=!0,!0}})}catch{}}return gu}function vL(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function bL(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function Rf(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(n=>e.test(n.brand)))||e.test(window.navigator.userAgent)}function v$(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function xs(){return v$(/^Mac/i)}function yL(){return v$(/^iPhone/i)}function Z8(){return v$(/^iPad/i)||xs()&&navigator.maxTouchPoints>1}function Mf(){return yL()||Z8()}function X8(){return Rf(/AppleWebKit/i)&&!$L()}function $L(){return Rf(/Chrome/i)}function Q8(){return Rf(/Android/i)}function xL(){return Rf(/Firefox/i)}const wL=y.createContext({isNative:!0,open:EL,useHref:e=>e});function DL(e){let{children:t,navigate:n,useHref:r}=e,i=y.useMemo(()=>({isNative:!1,open:(a,s,o,l)=>{J8(a,u=>{_L(u,s)?n(o,l):ia(u,s)})},useHref:r||(a=>a)}),[n,r]);return _.createElement(wL.Provider,{value:i},t)}function _L(e,t){let n=e.getAttribute("target");return(!n||n==="_self")&&e.origin===location.origin&&!e.hasAttribute("download")&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&!t.shiftKey}function ia(e,t,n=!0){var r,i;let{metaKey:a,ctrlKey:s,altKey:o,shiftKey:l}=t;xL()&&(!((i=window.event)===null||i===void 0||(r=i.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(xs()?a=!0:s=!0);let u=X8()&&xs()&&!Z8()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:a,ctrlKey:s,altKey:o,shiftKey:l}):new MouseEvent("click",{metaKey:a,ctrlKey:s,altKey:o,shiftKey:l,bubbles:!0,cancelable:!0});ia.isOpening=n,Hr(e),e.dispatchEvent(u),ia.isOpening=!1}ia.isOpening=!1;function J8(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let n=document.createElement("a");n.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(n.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(n.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(n.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(n.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(n),t(n),e.removeChild(n)}}function EL(e,t){J8(e,n=>ia(n,t))}let Ma=new Map,fg=new Set;function e5(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let i=Ma.get(r.target);i||(i=new Set,Ma.set(r.target,i),r.target.addEventListener("transitioncancel",n,{once:!0})),i.add(r.propertyName)},n=r=>{if(!e(r)||!r.target)return;let i=Ma.get(r.target);if(i&&(i.delete(r.propertyName),i.size===0&&(r.target.removeEventListener("transitioncancel",n),Ma.delete(r.target)),Ma.size===0)){for(let a of fg)a();fg.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?e5():document.addEventListener("DOMContentLoaded",e5));function e7(e){requestAnimationFrame(()=>{Ma.size===0?e():fg.add(e)})}function t7(){let e=y.useRef(new Map),t=y.useCallback((i,a,s,o)=>{let l=o!=null&&o.once?(...u)=>{e.current.delete(s),s(...u)}:s;e.current.set(s,{type:a,eventTarget:i,fn:l,options:o}),i.addEventListener(a,s,o)},[]),n=y.useCallback((i,a,s,o)=>{var l;let u=((l=e.current.get(s))===null||l===void 0?void 0:l.fn)||s;i.removeEventListener(a,u,o),e.current.delete(s)},[]),r=y.useCallback(()=>{e.current.forEach((i,a)=>{n(i.eventTarget,i.type,a,i.options)})},[n]);return y.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function jl(e,t){let{id:n,"aria-label":r,"aria-labelledby":i}=e;return n=Qn(n),i&&r?i=[...new Set([n,...i.trim().split(/\s+/)])].join(" "):i&&(i=i.trim().split(/\s+/).join(" ")),!r&&!i&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":i}}function SL(e){const t=y.useRef(null);return y.useMemo(()=>({get current(){return t.current},set current(n){t.current=n,typeof e=="function"?e(n):e&&(e.current=n)}}),[e])}function t5(e,t){const n=y.useRef(!0),r=y.useRef(null);y.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[]),y.useEffect(()=>{n.current?n.current=!1:(!r.current||t.some((i,a)=>!Object.is(i,r[a])))&&e(),r.current=t},t)}function CL(){return typeof window.ResizeObserver<"u"}function n7(e){const{ref:t,onResize:n}=e;y.useEffect(()=>{let r=t==null?void 0:t.current;if(r)if(CL()){const i=new window.ResizeObserver(a=>{a.length&&n()});return i.observe(r),()=>{r&&i.unobserve(r)}}else return window.addEventListener("resize",n,!1),()=>{window.removeEventListener("resize",n,!1)}},[n,t])}function b$(e,t){he(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function hg(e,t){let n=window.getComputedStyle(e),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&t&&(r=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),r}function Ff(e,t){let n=e;for(hg(n,t)&&(n=n.parentElement);n&&!hg(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function kL(e,t){const n=[];for(;e&&e!==document.documentElement;)hg(e,t)&&n.push(e),e=e.parentElement;return n}let mn=typeof document<"u"&&window.visualViewport;function r7(){let e=ha(),[t,n]=y.useState(()=>e?{width:0,height:0}:n5());return y.useEffect(()=>{let r=()=>{n(i=>{let a=n5();return a.width===i.width&&a.height===i.height?i:a})};return mn?mn.addEventListener("resize",r):window.addEventListener("resize",r),()=>{mn?mn.removeEventListener("resize",r):window.removeEventListener("resize",r)}},[]),t}function n5(){return{width:mn&&(mn==null?void 0:mn.width)||window.innerWidth,height:mn&&(mn==null?void 0:mn.height)||window.innerHeight}}let PL=0;const Oh=new Map;function y$(e){let[t,n]=y.useState();return he(()=>{if(!e)return;let r=Oh.get(e);if(r)n(r.element.id);else{let i=`react-aria-description-${PL++}`;n(i);let a=document.createElement("div");a.id=i,a.style.display="none",a.textContent=e,document.body.appendChild(a),r={refCount:0,element:a},Oh.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),Oh.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function as(e,t,n,r){let i=pt(n),a=n==null;y.useEffect(()=>{if(a||!e.current)return;let s=e.current;return s.addEventListener(t,i,r),()=>{s.removeEventListener(t,i,r)}},[e,t,r,a,i])}function TL(e,t){let n=r5(e,t,"left"),r=r5(e,t,"top"),i=t.offsetWidth,a=t.offsetHeight,s=e.scrollLeft,o=e.scrollTop,{borderTopWidth:l,borderLeftWidth:u}=getComputedStyle(e),c=e.scrollLeft+parseInt(u,10),d=e.scrollTop+parseInt(l,10),f=c+e.clientWidth,h=d+e.clientHeight;n<=s?s=n-parseInt(u,10):n+i>f&&(s+=n+i-f),r<=d?o=r-parseInt(l,10):r+a>h&&(o+=r+a-h),e.scrollLeft=s,e.scrollTop=o}function r5(e,t,n){const r=n==="left"?"offsetLeft":"offsetTop";let i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){i-=e[r];break}t=t.offsetParent}return i}function i7(e,t){if(document.contains(e)){let s=document.scrollingElement||document.documentElement;if(window.getComputedStyle(s).overflow==="hidden"){let l=kL(e);for(let u of l)TL(u,e)}else{var n;let{left:l,top:u}=e.getBoundingClientRect();e==null||(n=e.scrollIntoView)===null||n===void 0||n.call(e,{block:"nearest"});let{left:c,top:d}=e.getBoundingClientRect();if(Math.abs(l-c)>1||Math.abs(u-d)>1){var r,i,a;t==null||(i=t.containingElement)===null||i===void 0||(r=i.scrollIntoView)===null||r===void 0||r.call(i,{block:"center",inline:"center"}),(a=e.scrollIntoView)===null||a===void 0||a.call(e,{block:"nearest"})}}}}function pg(e){return e.mozInputSource===0&&e.isTrusted?!0:Q8()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function RL(e){return!Q8()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function a7(e,t){let n=y.useRef(null);return e&&n.current&&t(e,n.current)&&(e=n.current),n.current=e,e}function ML(e,t,n){let r=y.useRef(t),i=pt(()=>{n&&n(r.current)});y.useEffect(()=>{var a;let s=e==null||(a=e.current)===null||a===void 0?void 0:a.form;return s==null||s.addEventListener("reset",i),()=>{s==null||s.removeEventListener("reset",i)}},[e,i])}function aa(e,t,n){let[r,i]=y.useState(e||t),a=y.useRef(e!==void 0),s=e!==void 0;y.useEffect(()=>{let u=a.current;u!==s&&console.warn(`WARN: A component changed from ${u?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}.`),a.current=s},[s]);let o=s?e:r,l=y.useCallback((u,...c)=>{let d=(f,...h)=>{n&&(Object.is(o,f)||n(f,...h)),s||(o=f)};typeof u=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),i((h,...p)=>{let g=u(s?o:h,...p);return d(g,...c),s?h:g})):(s||i(u),d(u,...c))},[s,o,n]);return[o,l]}function mg(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function xn(e){e=a7(e??{},FL);let{locale:t}=Qe();return y.useMemo(()=>new ri(t,e),[t,e])}function FL(e,t){if(e===t)return!0;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i of n)if(t[i]!==e[i])return!1;return!0}let Bh=new Map,gg=!1;try{gg=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let Qc=!1;try{Qc=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const s7={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class AL{format(t){let n="";if(!gg&&this.options.signDisplay!=null?n=BL(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!Qc){var r;let{unit:i,unitDisplay:a="short",locale:s}=this.resolvedOptions();if(!i)return n;let o=(r=s7[i])===null||r===void 0?void 0:r[a];n+=o[s]||o.default}return n}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,n){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(n)}`}formatRangeToParts(t,n){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.numberFormatter.formatToParts(t),i=this.numberFormatter.formatToParts(n);return[...r.map(a=>({...a,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(a=>({...a,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!gg&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!Qc&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,n={}){this.numberFormatter=OL(t,n),this.options=n}}function OL(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!Qc){var r;let{unit:s,unitDisplay:o="short"}=t;if(!s)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=s7[s])===null||r===void 0)&&r[o]))throw new Error(`Unsupported unit ${s} with unitDisplay = ${o}`);t={...t,style:"decimal"}}let i=e+(t?Object.entries(t).sort((s,o)=>s[0]<o[0]?-1:1).join():"");if(Bh.has(i))return Bh.get(i);let a=new Intl.NumberFormat(e,t);return Bh.set(i,a),a}function BL(e,t,n){if(t==="auto")return e.format(n);if(t==="never")return e.format(Math.abs(n));{let r=!1;if(t==="always"?r=n>0||Object.is(n,0):t==="exceptZero"&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let i=e.format(-n),a=e.format(n),s=i.replace(a,"").replace(/\u200e|\u061C/,"");return[...s].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),i.replace(a,"!!!").replace(s,"+").replace("!!!",a)}else return e.format(n)}}const IL=new RegExp("^.*\\(.*\\).*$"),LL=["latn","arab","hanidec"];class o7{parse(t){return Ih(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,n,r){return Ih(this.locale,this.options,t).isValidPartialNumber(t,n,r)}getNumberingSystem(t){return Ih(this.locale,this.options,t).options.numberingSystem}constructor(t,n={}){this.locale=t,this.options=n}}const i5=new Map;function Ih(e,t,n){let r=a5(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(n)){for(let i of LL)if(i!==r.options.numberingSystem){let a=a5(e+(e.includes("-u-")?"-nu-":"-u-nu-")+i,t);if(a.isValidPartialNumber(n))return a}}return r}function a5(e,t){let n=e+(t?Object.entries(t).sort((i,a)=>i[0]<a[0]?-1:1).join():""),r=i5.get(n);return r||(r=new NL(e,t),i5.set(n,r)),r}class NL{parse(t){let n=this.sanitize(t);if(this.symbols.group&&(n=vu(n,this.symbols.group,"")),this.symbols.decimal&&(n=n.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(n=n.replace(this.symbols.minusSign,"-")),n=n.replace(this.symbols.numeral,this.symbols.index),this.options.style==="percent"){let s=n.indexOf("-");n=n.replace("-","");let o=n.indexOf(".");o===-1&&(o=n.length),n=n.replace(".",""),o-2===0?n=`0.${n}`:o-2===-1?n=`0.0${n}`:o-2===-2?n="0.00":n=`${n.slice(0,o-2)}.${n.slice(o-2)}`,s>-1&&(n=`-${n}`)}let r=n?+n:NaN;if(isNaN(r))return NaN;if(this.options.style==="percent"){var i,a;let s={...this.options,style:"decimal",minimumFractionDigits:Math.min(((i=this.options.minimumFractionDigits)!==null&&i!==void 0?i:0)+2,20),maximumFractionDigits:Math.min(((a=this.options.maximumFractionDigits)!==null&&a!==void 0?a:0)+2,20)};return new o7(this.locale,s).parse(new AL(this.locale,s).format(r))}return this.options.currencySign==="accounting"&&IL.test(t)&&(r=-1*r),r}sanitize(t){return t=t.replace(this.symbols.literals,""),this.symbols.minusSign&&(t=t.replace("-",this.symbols.minusSign)),this.options.numberingSystem==="arab"&&(this.symbols.decimal&&(t=t.replace(",",this.symbols.decimal),t=t.replace("،",this.symbols.decimal)),this.symbols.group&&(t=vu(t,".",this.symbols.group))),this.options.locale==="fr-FR"&&(t=vu(t,"."," ")),t}isValidPartialNumber(t,n=-1/0,r=1/0){return t=this.sanitize(t),this.symbols.minusSign&&t.startsWith(this.symbols.minusSign)&&n<0?t=t.slice(this.symbols.minusSign.length):this.symbols.plusSign&&t.startsWith(this.symbols.plusSign)&&r>0&&(t=t.slice(this.symbols.plusSign.length)),this.symbols.group&&t.startsWith(this.symbols.group)||this.symbols.decimal&&t.indexOf(this.symbols.decimal)>-1&&this.options.maximumFractionDigits===0?!1:(this.symbols.group&&(t=vu(t,this.symbols.group,"")),t=t.replace(this.symbols.numeral,""),this.symbols.decimal&&(t=t.replace(this.symbols.decimal,"")),t.length===0)}constructor(t,n={}){this.locale=t,this.formatter=new Intl.NumberFormat(t,n),this.options=this.formatter.resolvedOptions(),this.symbols=zL(t,this.formatter,this.options,n);var r,i;this.options.style==="percent"&&(((r=this.options.minimumFractionDigits)!==null&&r!==void 0?r:0)>18||((i=this.options.maximumFractionDigits)!==null&&i!==void 0?i:0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}}const s5=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),jL=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function zL(e,t,n,r){var i,a,s,o;let l=new Intl.NumberFormat(e,{...n,minimumSignificantDigits:1,maximumSignificantDigits:21}),u=l.formatToParts(-10000.111),c=l.formatToParts(10000.111),d=jL.map(P=>l.formatToParts(P));var f;let h=(f=(i=u.find(P=>P.type==="minusSign"))===null||i===void 0?void 0:i.value)!==null&&f!==void 0?f:"-",p=(a=c.find(P=>P.type==="plusSign"))===null||a===void 0?void 0:a.value;!p&&((r==null?void 0:r.signDisplay)==="exceptZero"||(r==null?void 0:r.signDisplay)==="always")&&(p="+");let b=(s=new Intl.NumberFormat(e,{...n,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(P=>P.type==="decimal"))===null||s===void 0?void 0:s.value,v=(o=u.find(P=>P.type==="group"))===null||o===void 0?void 0:o.value,m=u.filter(P=>!s5.has(P.type)).map(P=>o5(P.value)),$=d.flatMap(P=>P.filter(E=>!s5.has(E.type)).map(E=>o5(E.value))),w=[...new Set([...m,...$])].sort((P,E)=>E.length-P.length),D=w.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${w.join("|")}|[\\p{White_Space}]`,"gu"),S=[...new Intl.NumberFormat(n.locale,{useGrouping:!1}).format(9876543210)].reverse(),k=new Map(S.map((P,E)=>[P,E])),x=new RegExp(`[${S.join("")}]`,"g");return{minusSign:h,plusSign:p,decimal:b,group:v,literals:D,numeral:x,index:P=>String(k.get(P))}}function vu(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function o5(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}let Lh=new Map;function VL(e){let{locale:t}=Qe(),n=t+(e?Object.entries(e).sort((i,a)=>i[0]<a[0]?-1:1).join():"");if(Lh.has(n))return Lh.get(n);let r=new Intl.Collator(t,e);return Lh.set(n,r),r}function WL(e){let t=VL({usage:"search",...e}),n=y.useCallback((a,s)=>s.length===0?!0:(a=a.normalize("NFC"),s=s.normalize("NFC"),t.compare(a.slice(0,s.length),s)===0),[t]),r=y.useCallback((a,s)=>s.length===0?!0:(a=a.normalize("NFC"),s=s.normalize("NFC"),t.compare(a.slice(-s.length),s)===0),[t]),i=y.useCallback((a,s)=>{if(s.length===0)return!0;a=a.normalize("NFC"),s=s.normalize("NFC");let o=0,l=s.length;for(;o+l<=a.length;o++){let u=a.slice(o,o+l);if(t.compare(s,u)===0)return!0}return!1},[t]);return y.useMemo(()=>({startsWith:n,endsWith:r,contains:i}),[n,r,i])}const Af={margin:["margin",le],marginStart:[Vt("marginLeft","marginRight"),le],marginEnd:[Vt("marginRight","marginLeft"),le],marginTop:["marginTop",le],marginBottom:["marginBottom",le],marginX:[["marginLeft","marginRight"],le],marginY:[["marginTop","marginBottom"],le],width:["width",le],height:["height",le],minWidth:["minWidth",le],minHeight:["minHeight",le],maxWidth:["maxWidth",le],maxHeight:["maxHeight",le],isHidden:["display",qL],alignSelf:["alignSelf",tt],justifySelf:["justifySelf",tt],position:["position",jh],zIndex:["zIndex",jh],top:["top",le],bottom:["bottom",le],start:[Vt("left","right"),le],end:[Vt("right","left"),le],left:["left",le],right:["right",le],order:["order",jh],flex:["flex",GL],flexGrow:["flexGrow",tt],flexShrink:["flexShrink",tt],flexBasis:["flexBasis",tt],gridArea:["gridArea",tt],gridColumn:["gridColumn",tt],gridColumnEnd:["gridColumnEnd",tt],gridColumnStart:["gridColumnStart",tt],gridRow:["gridRow",tt],gridRowEnd:["gridRowEnd",tt],gridRowStart:["gridRowStart",tt]};({...Af,borderStartWidth:Vt("borderLeftWidth","borderRightWidth"),borderEndWidth:Vt("borderRightWidth","borderLeftWidth"),borderStartColor:Vt("borderLeftColor","borderRightColor"),borderEndColor:Vt("borderRightColor","borderLeftColor"),borderTopStartRadius:Vt("borderTopLeftRadius","borderTopRightRadius"),borderTopEndRadius:Vt("borderTopRightRadius","borderTopLeftRadius"),borderBottomStartRadius:Vt("borderBottomLeftRadius","borderBottomRightRadius"),borderBottomEndRadius:Vt("borderBottomRightRadius","borderBottomLeftRadius"),paddingStart:Vt("paddingLeft","paddingRight"),paddingEnd:Vt("paddingRight","paddingLeft")});const l5={borderWidth:"borderStyle",borderLeftWidth:"borderLeftStyle",borderRightWidth:"borderRightStyle",borderTopWidth:"borderTopStyle",borderBottomWidth:"borderBottomStyle"};function Vt(e,t){return n=>n==="rtl"?t:e}const UL=/(%|px|em|rem|vw|vh|auto|cm|mm|in|pt|pc|ex|ch|rem|vmin|vmax|fr)$/,HL=/^\s*\w+\(/,KL=/(static-)?size-\d+|single-line-(height|width)/g;function le(e){if(typeof e=="number")return e+"px";if(e)return UL.test(e)?e:HL.test(e)?e.replace(KL,"var(--spectrum-global-dimension-$&, var(--spectrum-alias-$&))"):`var(--spectrum-global-dimension-${e}, var(--spectrum-alias-${e}))`}function Nh(e,t){return e=$$(e,t),le(e)}function l7(e,t="default",n=5){return n>5?`var(--spectrum-${e}, var(--spectrum-semantic-${e}-color-${t}))`:`var(--spectrum-legacy-color-${e}, var(--spectrum-global-color-${e}, var(--spectrum-semantic-${e}-color-${t})))`}function YL(e,t=5){if(e)return`var(--spectrum-alias-background-color-${e}, ${l7(e,"background",t)})`}function Jn(e,t=5){if(e)return e==="default"?"var(--spectrum-alias-border-color)":`var(--spectrum-alias-border-color-${e}, ${l7(e,"border",t)})`}function er(e){return e&&e!=="none"?`var(--spectrum-alias-border-size-${e})`:"0"}function tr(e){if(e)return`var(--spectrum-alias-border-radius-${e})`}function qL(e){return e?"none":void 0}function jh(e){return e}function GL(e){return typeof e=="boolean"?e?"1":void 0:""+e}function ZL(e,t,n,r){let i={};for(let a in e){let s=t[a];if(!s||e[a]==null)continue;let[o,l]=s;typeof o=="function"&&(o=o(n));let u=$$(e[a],r),c=l(u,e.colorVersion);if(Array.isArray(o))for(let d of o)i[d]=c;else i[o]=c}for(let a in l5)i[a]&&(i[l5[a]]="solid",i.boxSizing="border-box");return i}function st(e,t=Af,n={}){let{UNSAFE_className:r,UNSAFE_style:i,...a}=e,s=p8(),{direction:o}=Qe(),{matchedBreakpoints:l=(s==null?void 0:s.matchedBreakpoints)||["base"]}=n,u=ZL(e,t,o,l),c={...i,...u};a.className&&console.warn("The className prop is unsafe and is unsupported in React Spectrum v3. Please use style props with Spectrum variables, or UNSAFE_className if you absolutely must do something custom. Note that this may break in future versions due to DOM structure changes."),a.style&&console.warn("The style prop is unsafe and is unsupported in React Spectrum v3. Please use style props with Spectrum variables, or UNSAFE_style if you absolutely must do something custom. Note that this may break in future versions due to DOM structure changes.");let d={style:c,className:r};return $$(e.isHidden,l)&&(d.hidden=!0),{styleProps:d}}function tt(e){return e}function $$(e,t){if(e&&typeof e=="object"&&!Array.isArray(e)){for(let n=0;n<t.length;n++){let r=t[n];if(e[r]!=null)return e[r]}return e.base}return e}let Jc=_.createContext(null);function ui(e,t){let n=e.slot||t,{[n]:r={}}=y.useContext(Jc)||{};return de(e,de(r,{id:e.id}))}function Of(e){let t=y.useContext(Jc)||{},{slots:n={},children:r}=e,i=y.useMemo(()=>Object.keys(t).concat(Object.keys(n)).reduce((a,s)=>({...a,[s]:de(t[s]||{},n[s]||{})}),{}),[t,n]);return _.createElement(Jc.Provider,{value:i},r)}function u7(e){let{children:t,...n}=e,r=t;return _.Children.toArray(t).length<=1&&typeof t=="function"&&(r=_.cloneElement(_.Children.only(t),n)),_.createElement(Jc.Provider,{value:{}},r)}function bu(e,t){let[n,r]=y.useState(!0);return he(()=>{r(!!(t.current&&t.current.querySelector(e)))},[r,e,t]),n}const XL=700;function QL(){return ha()||typeof window>"u"?!1:window.screen.width<=XL}let Ka="default",vg="",sc=new WeakMap;function u5(e){if(Mf()){if(Ka==="default"){const t=ye(e);vg=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Ka="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(sc.set(e,e.style.userSelect),e.style.userSelect="none")}function yu(e){if(Mf()){if(Ka!=="disabled")return;Ka="restoring",setTimeout(()=>{e7(()=>{if(Ka==="restoring"){const t=ye(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=vg||""),vg="",Ka="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&sc.has(e)){let t=sc.get(e);e.style.userSelect==="none"&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),sc.delete(e)}}const fl=_.createContext({register:()=>{}});fl.displayName="PressResponderContext";function JL(e,t){return t.get?t.get.call(e):t.value}function c7(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function eN(e,t){var n=c7(e,t,"get");return JL(e,n)}function tN(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}function c5(e,t,n){var r=c7(e,t,"set");return tN(e,r,n),n}function nN(e){let t=y.useContext(fl);if(t){let{register:n,...r}=t;e=de(r,e),n()}return b$(t,e.ref),e}var $u=new WeakMap;class xu{continuePropagation(){c5(this,$u,!1)}get shouldStopPropagation(){return eN(this,$u)}constructor(t,n,r){Ll(this,$u,{writable:!0,value:void 0}),c5(this,$u,!0),this.type=t,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey}}const d5=Symbol("linkClicked");function x$(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:a,isDisabled:s,isPressed:o,preventFocusOnPress:l,shouldCancelOnPointerExit:u,allowTextSelectionOnPress:c,ref:d,...f}=nN(e),[h,p]=y.useState(!1),g=y.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:b,removeAllGlobalListeners:v}=t7(),m=pt((x,T)=>{let P=g.current;if(s||P.didFirePressStart)return!1;let E=!0;if(P.isTriggeringEvent=!0,r){let F=new xu("pressstart",T,x);r(F),E=F.shouldStopPropagation}return n&&n(!0),P.isTriggeringEvent=!1,P.didFirePressStart=!0,p(!0),E}),$=pt((x,T,P=!0)=>{let E=g.current;if(!E.didFirePressStart)return!1;E.ignoreClickAfterPress=!0,E.didFirePressStart=!1,E.isTriggeringEvent=!0;let F=!0;if(i){let R=new xu("pressend",T,x);i(R),F=R.shouldStopPropagation}if(n&&n(!1),p(!1),t&&P&&!s){let R=new xu("press",T,x);t(R),F&&(F=R.shouldStopPropagation)}return E.isTriggeringEvent=!1,F}),w=pt((x,T)=>{let P=g.current;if(s)return!1;if(a){P.isTriggeringEvent=!0;let E=new xu("pressup",T,x);return a(E),P.isTriggeringEvent=!1,E.shouldStopPropagation}return!0}),D=pt(x=>{let T=g.current;T.isPressed&&T.target&&(T.isOverTarget&&T.pointerType!=null&&$(nr(T.target,x),T.pointerType,!1),T.isPressed=!1,T.isOverTarget=!1,T.activePointerId=null,T.pointerType=null,v(),c||yu(T.target))}),S=pt(x=>{u&&D(x)}),k=y.useMemo(()=>{let x=g.current,T={onKeyDown(E){if(zh(E.nativeEvent,E.currentTarget)&&E.currentTarget.contains(E.target)){var F;h5(E.target,E.key)&&E.preventDefault();let R=!0;if(!x.isPressed&&!E.repeat){x.target=E.currentTarget,x.isPressed=!0,R=m(E,"keyboard");let M=E.currentTarget,z=B=>{zh(B,M)&&!B.repeat&&M.contains(B.target)&&x.target&&w(nr(x.target,B),"keyboard")};b(ye(E.currentTarget),"keyup",dl(z,P),!0)}R&&E.stopPropagation(),E.metaKey&&xs()&&((F=x.metaKeyEvents)===null||F===void 0||F.set(E.key,E.nativeEvent))}else E.key==="Meta"&&(x.metaKeyEvents=new Map)},onClick(E){if(!(E&&!E.currentTarget.contains(E.target))&&E&&E.button===0&&!x.isTriggeringEvent&&!ia.isOpening){let F=!0;if(s&&E.preventDefault(),!x.ignoreClickAfterPress&&!x.ignoreEmulatedMouseEvents&&!x.isPressed&&(x.pointerType==="virtual"||pg(E.nativeEvent))){!s&&!l&&Hr(E.currentTarget);let R=m(E,"virtual"),M=w(E,"virtual"),z=$(E,"virtual");F=R&&M&&z}x.ignoreEmulatedMouseEvents=!1,x.ignoreClickAfterPress=!1,F&&E.stopPropagation()}}},P=E=>{var F;if(x.isPressed&&x.target&&zh(E,x.target)){var R;h5(E.target,E.key)&&E.preventDefault();let z=E.target;$(nr(x.target,E),"keyboard",x.target.contains(z)),v(),E.key!=="Enter"&&w$(x.target)&&x.target.contains(z)&&!E[d5]&&(E[d5]=!0,ia(x.target,E,!1)),x.isPressed=!1,(R=x.metaKeyEvents)===null||R===void 0||R.delete(E.key)}else if(E.key==="Meta"&&(!((F=x.metaKeyEvents)===null||F===void 0)&&F.size)){var M;let z=x.metaKeyEvents;x.metaKeyEvents=void 0;for(let B of z.values())(M=x.target)===null||M===void 0||M.dispatchEvent(new KeyboardEvent("keyup",B))}};if(typeof PointerEvent<"u"){T.onPointerDown=M=>{if(M.button!==0||!M.currentTarget.contains(M.target))return;if(RL(M.nativeEvent)){x.pointerType="virtual";return}Vh(M.currentTarget)&&M.preventDefault(),x.pointerType=M.pointerType;let z=!0;x.isPressed||(x.isPressed=!0,x.isOverTarget=!0,x.activePointerId=M.pointerId,x.target=M.currentTarget,!s&&!l&&Hr(M.currentTarget),c||u5(x.target),z=m(M,x.pointerType),b(ye(M.currentTarget),"pointermove",E,!1),b(ye(M.currentTarget),"pointerup",F,!1),b(ye(M.currentTarget),"pointercancel",R,!1)),z&&M.stopPropagation()},T.onMouseDown=M=>{M.currentTarget.contains(M.target)&&M.button===0&&(Vh(M.currentTarget)&&M.preventDefault(),M.stopPropagation())},T.onPointerUp=M=>{!M.currentTarget.contains(M.target)||x.pointerType==="virtual"||M.button===0&&Sa(M,M.currentTarget)&&w(M,x.pointerType||M.pointerType)};let E=M=>{M.pointerId===x.activePointerId&&(x.target&&Sa(M,x.target)?!x.isOverTarget&&x.pointerType!=null&&(x.isOverTarget=!0,m(nr(x.target,M),x.pointerType)):x.target&&x.isOverTarget&&x.pointerType!=null&&(x.isOverTarget=!1,$(nr(x.target,M),x.pointerType,!1),S(M)))},F=M=>{M.pointerId===x.activePointerId&&x.isPressed&&M.button===0&&x.target&&(Sa(M,x.target)&&x.pointerType!=null?$(nr(x.target,M),x.pointerType):x.isOverTarget&&x.pointerType!=null&&$(nr(x.target,M),x.pointerType,!1),x.isPressed=!1,x.isOverTarget=!1,x.activePointerId=null,x.pointerType=null,v(),c||yu(x.target))},R=M=>{D(M)};T.onDragStart=M=>{M.currentTarget.contains(M.target)&&D(M)}}else{T.onMouseDown=R=>{if(R.button!==0||!R.currentTarget.contains(R.target))return;if(Vh(R.currentTarget)&&R.preventDefault(),x.ignoreEmulatedMouseEvents){R.stopPropagation();return}x.isPressed=!0,x.isOverTarget=!0,x.target=R.currentTarget,x.pointerType=pg(R.nativeEvent)?"virtual":"mouse",!s&&!l&&Hr(R.currentTarget),m(R,x.pointerType)&&R.stopPropagation(),b(ye(R.currentTarget),"mouseup",E,!1)},T.onMouseEnter=R=>{if(!R.currentTarget.contains(R.target))return;let M=!0;x.isPressed&&!x.ignoreEmulatedMouseEvents&&x.pointerType!=null&&(x.isOverTarget=!0,M=m(R,x.pointerType)),M&&R.stopPropagation()},T.onMouseLeave=R=>{if(!R.currentTarget.contains(R.target))return;let M=!0;x.isPressed&&!x.ignoreEmulatedMouseEvents&&x.pointerType!=null&&(x.isOverTarget=!1,M=$(R,x.pointerType,!1),S(R)),M&&R.stopPropagation()},T.onMouseUp=R=>{R.currentTarget.contains(R.target)&&!x.ignoreEmulatedMouseEvents&&R.button===0&&w(R,x.pointerType||"mouse")};let E=R=>{if(R.button===0){if(x.isPressed=!1,v(),x.ignoreEmulatedMouseEvents){x.ignoreEmulatedMouseEvents=!1;return}x.target&&Sa(R,x.target)&&x.pointerType!=null?$(nr(x.target,R),x.pointerType):x.target&&x.isOverTarget&&x.pointerType!=null&&$(nr(x.target,R),x.pointerType,!1),x.isOverTarget=!1}};T.onTouchStart=R=>{if(!R.currentTarget.contains(R.target))return;let M=rN(R.nativeEvent);if(!M)return;x.activePointerId=M.identifier,x.ignoreEmulatedMouseEvents=!0,x.isOverTarget=!0,x.isPressed=!0,x.target=R.currentTarget,x.pointerType="touch",!s&&!l&&Hr(R.currentTarget),c||u5(x.target),m(R,x.pointerType)&&R.stopPropagation(),b(Fn(R.currentTarget),"scroll",F,!0)},T.onTouchMove=R=>{if(!R.currentTarget.contains(R.target))return;if(!x.isPressed){R.stopPropagation();return}let M=f5(R.nativeEvent,x.activePointerId),z=!0;M&&Sa(M,R.currentTarget)?!x.isOverTarget&&x.pointerType!=null&&(x.isOverTarget=!0,z=m(R,x.pointerType)):x.isOverTarget&&x.pointerType!=null&&(x.isOverTarget=!1,z=$(R,x.pointerType,!1),S(R)),z&&R.stopPropagation()},T.onTouchEnd=R=>{if(!R.currentTarget.contains(R.target))return;if(!x.isPressed){R.stopPropagation();return}let M=f5(R.nativeEvent,x.activePointerId),z=!0;M&&Sa(M,R.currentTarget)&&x.pointerType!=null?(w(R,x.pointerType),z=$(R,x.pointerType)):x.isOverTarget&&x.pointerType!=null&&(z=$(R,x.pointerType,!1)),z&&R.stopPropagation(),x.isPressed=!1,x.activePointerId=null,x.isOverTarget=!1,x.ignoreEmulatedMouseEvents=!0,x.target&&!c&&yu(x.target),v()},T.onTouchCancel=R=>{R.currentTarget.contains(R.target)&&(R.stopPropagation(),x.isPressed&&D(R))};let F=R=>{x.isPressed&&R.target.contains(x.target)&&D({currentTarget:x.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};T.onDragStart=R=>{R.currentTarget.contains(R.target)&&D(R)}}return T},[b,s,l,v,c,D,S,$,m,w]);return y.useEffect(()=>()=>{var x;c||yu((x=g.current.target)!==null&&x!==void 0?x:void 0)},[c]),{isPressed:o||h,pressProps:de(f,k)}}function w$(e){return e.tagName==="A"&&e.hasAttribute("href")}function zh(e,t){const{key:n,code:r}=e,i=t,a=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(i instanceof Fn(i).HTMLInputElement&&!d7(i,n)||i instanceof Fn(i).HTMLTextAreaElement||i.isContentEditable)&&!((a==="link"||!a&&w$(i))&&n!=="Enter")}function rN(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function f5(e,t){const n=e.changedTouches;for(let r=0;r<n.length;r++){const i=n[r];if(i.identifier===t)return i}return null}function nr(e,t){return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey}}function iN(e){let t=0,n=0;return e.width!==void 0?t=e.width/2:e.radiusX!==void 0&&(t=e.radiusX),e.height!==void 0?n=e.height/2:e.radiusY!==void 0&&(n=e.radiusY),{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}function aN(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function Sa(e,t){let n=t.getBoundingClientRect(),r=iN(e);return aN(n,r)}function Vh(e){return!(e instanceof HTMLElement)||!e.hasAttribute("draggable")}function h5(e,t){return e instanceof HTMLInputElement?!d7(e,t):e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!w$(e)}const sN=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function d7(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":sN.has(e.type)}const oN=_.forwardRef(({children:e,...t},n)=>{let r=y.useRef(!1),i=y.useContext(fl);n=SL(n||(i==null?void 0:i.ref));let a=de(i||{},{...t,ref:n,register(){r.current=!0,i&&i.register()}});return b$(i,n),y.useEffect(()=>{r.current||(console.warn("A PressResponder was rendered without a pressable child. Either call the usePress hook, or wrap your DOM node with <Pressable> component."),r.current=!0)},[]),_.createElement(fl.Provider,{value:a},e)});function lN({children:e}){let t=y.useMemo(()=>({register:()=>{}}),[]);return _.createElement(fl.Provider,{value:t},e)}class uN{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=t}}function f7(e){let t=y.useRef({isFocused:!1,observer:null});he(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=pt(r=>{e==null||e(r)});return y.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let i=r.target,a=s=>{t.current.isFocused=!1,i.disabled&&n(new uN("blur",s)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};i.addEventListener("focusout",a,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&i.disabled){var s;(s=t.current.observer)===null||s===void 0||s.disconnect();let o=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:o})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:o}))}}),t.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function h7(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const a=y.useCallback(l=>{if(l.target===l.currentTarget)return r&&r(l),i&&i(!1),!0},[r,i]),s=f7(a),o=y.useCallback(l=>{const u=ye(l.target);l.target===l.currentTarget&&u.activeElement===l.target&&(n&&n(l),i&&i(!0),s(l))},[i,n,s]);return{focusProps:{onFocus:!t&&(n||i||r)?o:void 0,onBlur:!t&&(r||i)?a:void 0}}}let pa=null,bg=new Set,Oo=new Map,sa=!1,yg=!1;const cN={Tab:!0,Escape:!0};function Bf(e,t){for(let n of bg)n(e,t)}function dN(e){return!(e.metaKey||!xs()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function ed(e){sa=!0,dN(e)&&(pa="keyboard",Bf("keyboard",e))}function bn(e){pa="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(sa=!0,Bf("pointer",e))}function p7(e){pg(e)&&(sa=!0,pa="virtual")}function m7(e){e.target===window||e.target===document||(!sa&&!yg&&(pa="virtual",Bf("virtual",e)),sa=!1,yg=!1)}function g7(){sa=!1,yg=!0}function $g(e){if(typeof window>"u"||Oo.get(Fn(e)))return;const t=Fn(e),n=ye(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){sa=!0,r.apply(this,arguments)},n.addEventListener("keydown",ed,!0),n.addEventListener("keyup",ed,!0),n.addEventListener("click",p7,!0),t.addEventListener("focus",m7,!0),t.addEventListener("blur",g7,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",bn,!0),n.addEventListener("pointermove",bn,!0),n.addEventListener("pointerup",bn,!0)):(n.addEventListener("mousedown",bn,!0),n.addEventListener("mousemove",bn,!0),n.addEventListener("mouseup",bn,!0)),t.addEventListener("beforeunload",()=>{v7(e)},{once:!0}),Oo.set(t,{focus:r})}const v7=(e,t)=>{const n=Fn(e),r=ye(e);t&&r.removeEventListener("DOMContentLoaded",t),Oo.has(n)&&(n.HTMLElement.prototype.focus=Oo.get(n).focus,r.removeEventListener("keydown",ed,!0),r.removeEventListener("keyup",ed,!0),r.removeEventListener("click",p7,!0),n.removeEventListener("focus",m7,!0),n.removeEventListener("blur",g7,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",bn,!0),r.removeEventListener("pointermove",bn,!0),r.removeEventListener("pointerup",bn,!0)):(r.removeEventListener("mousedown",bn,!0),r.removeEventListener("mousemove",bn,!0),r.removeEventListener("mouseup",bn,!0)),Oo.delete(n))};function fN(e){const t=ye(e);let n;return t.readyState!=="loading"?$g(e):(n=()=>{$g(e)},t.addEventListener("DOMContentLoaded",n)),()=>v7(e,n)}typeof document<"u"&&fN();function b7(){return pa!=="pointer"}function y7(){return pa}function hN(e){pa=e,Bf(e,null)}const pN=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function mN(e,t,n){var r;const i=typeof window<"u"?Fn(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,a=typeof window<"u"?Fn(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,s=typeof window<"u"?Fn(n==null?void 0:n.target).HTMLElement:HTMLElement,o=typeof window<"u"?Fn(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||(n==null?void 0:n.target)instanceof i&&!pN.has(n==null||(r=n.target)===null||r===void 0?void 0:r.type)||(n==null?void 0:n.target)instanceof a||(n==null?void 0:n.target)instanceof s&&(n==null?void 0:n.target.isContentEditable),!(e&&t==="keyboard"&&n instanceof o&&!cN[n.key])}function gN(e,t,n){$g(),y.useEffect(()=>{let r=(i,a)=>{mN(!!(n!=null&&n.isTextInput),i,a)&&e(b7())};return bg.add(r),()=>{bg.delete(r)}},t)}function Ms(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,a=y.useRef({isFocusWithin:!1}),s=y.useCallback(u=>{a.current.isFocusWithin&&!u.currentTarget.contains(u.relatedTarget)&&(a.current.isFocusWithin=!1,n&&n(u),i&&i(!1))},[n,i,a]),o=f7(s),l=y.useCallback(u=>{!a.current.isFocusWithin&&document.activeElement===u.target&&(r&&r(u),i&&i(!0),a.current.isFocusWithin=!0,o(u))},[r,i,o]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:l,onBlur:s}}}let td=!1,Wh=0;function xg(){td=!0,setTimeout(()=>{td=!1},50)}function p5(e){e.pointerType==="touch"&&xg()}function vN(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",p5):document.addEventListener("touchend",xg),Wh++,()=>{Wh--,!(Wh>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",p5):document.removeEventListener("touchend",xg))}}function If(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[a,s]=y.useState(!1),o=y.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;y.useEffect(vN,[]);let{hoverProps:l,triggerHoverEnd:u}=y.useMemo(()=>{let c=(h,p)=>{if(o.pointerType=p,i||p==="touch"||o.isHovered||!h.currentTarget.contains(h.target))return;o.isHovered=!0;let g=h.currentTarget;o.target=g,t&&t({type:"hoverstart",target:g,pointerType:p}),n&&n(!0),s(!0)},d=(h,p)=>{if(o.pointerType="",o.target=null,p==="touch"||!o.isHovered)return;o.isHovered=!1;let g=h.currentTarget;r&&r({type:"hoverend",target:g,pointerType:p}),n&&n(!1),s(!1)},f={};return typeof PointerEvent<"u"?(f.onPointerEnter=h=>{td&&h.pointerType==="mouse"||c(h,h.pointerType)},f.onPointerLeave=h=>{!i&&h.currentTarget.contains(h.target)&&d(h,h.pointerType)}):(f.onTouchStart=()=>{o.ignoreEmulatedMouseEvents=!0},f.onMouseEnter=h=>{!o.ignoreEmulatedMouseEvents&&!td&&c(h,"mouse"),o.ignoreEmulatedMouseEvents=!1},f.onMouseLeave=h=>{!i&&h.currentTarget.contains(h.target)&&d(h,"mouse")}),{hoverProps:f,triggerHoverEnd:d}},[t,n,r,i,o]);return y.useEffect(()=>{i&&u({currentTarget:o.target},o.pointerType)},[i]),{hoverProps:l,isHovered:a}}function bN(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:i}=e,a=y.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),s=pt(l=>{n&&wu(l,t)&&(i&&i(l),a.current.isPointerDown=!0)}),o=pt(l=>{n&&n(l)});y.useEffect(()=>{let l=a.current;if(r)return;const u=t.current,c=ye(u);if(typeof PointerEvent<"u"){let d=f=>{l.isPointerDown&&wu(f,t)&&o(f),l.isPointerDown=!1};return c.addEventListener("pointerdown",s,!0),c.addEventListener("pointerup",d,!0),()=>{c.removeEventListener("pointerdown",s,!0),c.removeEventListener("pointerup",d,!0)}}else{let d=h=>{l.ignoreEmulatedMouseEvents?l.ignoreEmulatedMouseEvents=!1:l.isPointerDown&&wu(h,t)&&o(h),l.isPointerDown=!1},f=h=>{l.ignoreEmulatedMouseEvents=!0,l.isPointerDown&&wu(h,t)&&o(h),l.isPointerDown=!1};return c.addEventListener("mousedown",s,!0),c.addEventListener("mouseup",d,!0),c.addEventListener("touchstart",s,!0),c.addEventListener("touchend",f,!0),()=>{c.removeEventListener("mousedown",s,!0),c.removeEventListener("mouseup",d,!0),c.removeEventListener("touchstart",s,!0),c.removeEventListener("touchend",f,!0)}}},[t,r,s,o])}function wu(e,t){if(e.button>0)return!1;if(e.target){const n=e.target.ownerDocument;if(!n||!n.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current&&!t.current.contains(e.target)}function m5(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}};e(r),t&&n.stopPropagation()}}function yN(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:m5(e.onKeyDown),onKeyUp:m5(e.onKeyUp)}}}function nd(e){const t=ye(e);if(y7()==="virtual"){let n=t.activeElement;e7(()=>{t.activeElement===n&&e.isConnected&&Hr(e)})}else Hr(e)}function $N(e){const t=Fn(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,i=n!=="none"&&r!=="hidden"&&r!=="collapse";if(i){const{getComputedStyle:a}=e.ownerDocument.defaultView;let{display:s,visibility:o}=a(e);i=s!=="none"&&o!=="hidden"&&o!=="collapse"}return i}function xN(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function $7(e,t){return e.nodeName!=="#comment"&&$N(e)&&xN(e,t)&&(!e.parentElement||$7(e.parentElement,e))}const g5=_.createContext(null);let _e=null;function wN(e){let{children:t,contain:n,restoreFocus:r,autoFocus:i}=e,a=y.useRef(null),s=y.useRef(null),o=y.useRef([]),{parentNode:l}=y.useContext(g5)||{},u=y.useMemo(()=>new wg({scopeRef:o}),[o]);he(()=>{let f=l||Ge.root;if(Ge.getTreeNode(f.scopeRef)&&_e&&!id(_e,f.scopeRef)){let h=Ge.getTreeNode(_e);h&&(f=h)}f.addChild(u),Ge.addNode(u)},[u,l]),he(()=>{let f=Ge.getTreeNode(o);f&&(f.contain=!!n)},[n]),he(()=>{var f;let h=(f=a.current)===null||f===void 0?void 0:f.nextSibling,p=[];for(;h&&h!==s.current;)p.push(h),h=h.nextSibling;o.current=p},[t]),PN(o,r,n),SN(o,n),RN(o,r,n),kN(o,i),y.useEffect(()=>{const f=ye(o.current?o.current[0]:void 0).activeElement;let h=null;if(St(f,o.current)){for(let p of Ge.traverse())p.scopeRef&&St(f,p.scopeRef.current)&&(h=p);h===Ge.getTreeNode(o)&&(_e=h.scopeRef)}},[o]),he(()=>()=>{var f,h,p;let g=(p=(h=Ge.getTreeNode(o))===null||h===void 0||(f=h.parent)===null||f===void 0?void 0:f.scopeRef)!==null&&p!==void 0?p:null;(o===_e||id(o,_e))&&(!g||Ge.getTreeNode(g))&&(_e=g),Ge.removeTreeNode(o)},[o]);let c=y.useMemo(()=>DN(o),[]),d=y.useMemo(()=>({focusManager:c,parentNode:u}),[u,c]);return _.createElement(g5.Provider,{value:d},_.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:a}),t,_.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:s}))}function DN(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:i,wrap:a,accept:s}=t,o=r||ye(n[0]).activeElement,l=n[0].previousElementSibling,u=Wi(n),c=an(u,{tabbable:i,accept:s},n);c.currentNode=St(o,n)?o:l;let d=c.nextNode();return!d&&a&&(c.currentNode=l,d=c.nextNode()),d&&Ut(d,!0),d},focusPrevious(t={}){let n=e.current,{from:r,tabbable:i,wrap:a,accept:s}=t,o=r||ye(n[0]).activeElement,l=n[n.length-1].nextElementSibling,u=Wi(n),c=an(u,{tabbable:i,accept:s},n);c.currentNode=St(o,n)?o:l;let d=c.previousNode();return!d&&a&&(c.currentNode=l,d=c.previousNode()),d&&Ut(d,!0),d},focusFirst(t={}){let n=e.current,{tabbable:r,accept:i}=t,a=Wi(n),s=an(a,{tabbable:r,accept:i},n);s.currentNode=n[0].previousElementSibling;let o=s.nextNode();return o&&Ut(o,!0),o},focusLast(t={}){let n=e.current,{tabbable:r,accept:i}=t,a=Wi(n),s=an(a,{tabbable:r,accept:i},n);s.currentNode=n[n.length-1].nextElementSibling;let o=s.previousNode();return o&&Ut(o,!0),o}}}const D$=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],_N=D$.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";D$.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const EN=D$.join(':not([hidden]):not([tabindex="-1"]),');function Wi(e){return e[0].parentElement}function mo(e){let t=Ge.getTreeNode(_e);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function SN(e,t){let n=y.useRef(),r=y.useRef();he(()=>{let i=e.current;if(!t){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const a=ye(i?i[0]:void 0);let s=u=>{if(u.key!=="Tab"||u.altKey||u.ctrlKey||u.metaKey||!mo(e)||u.isComposing)return;let c=a.activeElement,d=e.current;if(!d||!St(c,d))return;let f=Wi(d),h=an(f,{tabbable:!0},d);if(!c)return;h.currentNode=c;let p=u.shiftKey?h.previousNode():h.nextNode();p||(h.currentNode=u.shiftKey?d[d.length-1].nextElementSibling:d[0].previousElementSibling,p=u.shiftKey?h.previousNode():h.nextNode()),u.preventDefault(),p&&Ut(p,!0)},o=u=>{(!_e||id(_e,e))&&St(u.target,e.current)?(_e=e,n.current=u.target):mo(e)&&!rd(u.target,e)?n.current?n.current.focus():_e&&_e.current&&ad(_e.current):mo(e)&&(n.current=u.target)},l=u=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{if(a.activeElement&&mo(e)&&!rd(a.activeElement,e))if(_e=e,a.body.contains(u.target)){var c;n.current=u.target,(c=n.current)===null||c===void 0||c.focus()}else _e.current&&ad(_e.current)})};return a.addEventListener("keydown",s,!1),a.addEventListener("focusin",o,!1),i==null||i.forEach(u=>u.addEventListener("focusin",o,!1)),i==null||i.forEach(u=>u.addEventListener("focusout",l,!1)),()=>{a.removeEventListener("keydown",s,!1),a.removeEventListener("focusin",o,!1),i==null||i.forEach(u=>u.removeEventListener("focusin",o,!1)),i==null||i.forEach(u=>u.removeEventListener("focusout",l,!1))}},[e,t]),he(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function x7(e){return rd(e)}function St(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function rd(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of Ge.traverse(Ge.getTreeNode(t)))if(n&&St(e,n.current))return!0;return!1}function CN(e){return rd(e,_e)}function id(e,t){var n;let r=(n=Ge.getTreeNode(t))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function Ut(e,t=!1){if(e!=null&&!t)try{nd(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function ad(e,t=!0){let n=e[0].previousElementSibling,r=Wi(e),i=an(r,{tabbable:t},e);i.currentNode=n;let a=i.nextNode();t&&!a&&(r=Wi(e),i=an(r,{tabbable:!1},e),i.currentNode=n,a=i.nextNode()),Ut(a)}function kN(e,t){const n=_.useRef(t);y.useEffect(()=>{if(n.current){_e=e;const r=ye(e.current?e.current[0]:void 0);!St(r.activeElement,_e.current)&&e.current&&ad(e.current)}n.current=!1},[e])}function PN(e,t,n){he(()=>{if(t||n)return;let r=e.current;const i=ye(r?r[0]:void 0);let a=s=>{let o=s.target;St(o,e.current)?_e=e:x7(o)||(_e=null)};return i.addEventListener("focusin",a,!1),r==null||r.forEach(s=>s.addEventListener("focusin",a,!1)),()=>{i.removeEventListener("focusin",a,!1),r==null||r.forEach(s=>s.removeEventListener("focusin",a,!1))}},[e,t,n])}function TN(e){let t=Ge.getTreeNode(_e);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(t==null?void 0:t.scopeRef)===e}function RN(e,t,n){const r=y.useRef(typeof document<"u"?ye(e.current?e.current[0]:void 0).activeElement:null);he(()=>{let i=e.current;const a=ye(i?i[0]:void 0);if(!t||n)return;let s=()=>{(!_e||id(_e,e))&&St(a.activeElement,e.current)&&(_e=e)};return a.addEventListener("focusin",s,!1),i==null||i.forEach(o=>o.addEventListener("focusin",s,!1)),()=>{a.removeEventListener("focusin",s,!1),i==null||i.forEach(o=>o.removeEventListener("focusin",s,!1))}},[e,n]),he(()=>{const i=ye(e.current?e.current[0]:void 0);if(!t)return;let a=s=>{if(s.key!=="Tab"||s.altKey||s.ctrlKey||s.metaKey||!mo(e)||s.isComposing)return;let o=i.activeElement;if(!St(o,e.current))return;let l=Ge.getTreeNode(e);if(!l)return;let u=l.nodeToRestore,c=an(i.body,{tabbable:!0});c.currentNode=o;let d=s.shiftKey?c.previousNode():c.nextNode();if((!u||!i.body.contains(u)||u===i.body)&&(u=void 0,l.nodeToRestore=void 0),(!d||!St(d,e.current))&&u){c.currentNode=u;do d=s.shiftKey?c.previousNode():c.nextNode();while(St(d,e.current));s.preventDefault(),s.stopPropagation(),d?Ut(d,!0):x7(u)?Ut(u,!0):o.blur()}};return n||i.addEventListener("keydown",a,!0),()=>{n||i.removeEventListener("keydown",a,!0)}},[e,t,n]),he(()=>{const i=ye(e.current?e.current[0]:void 0);if(!t)return;let a=Ge.getTreeNode(e);if(a){var s;return a.nodeToRestore=(s=r.current)!==null&&s!==void 0?s:void 0,()=>{let o=Ge.getTreeNode(e);if(!o)return;let l=o.nodeToRestore;if(t&&l&&(St(i.activeElement,e.current)||i.activeElement===i.body&&TN(e))){let u=Ge.clone();requestAnimationFrame(()=>{if(i.activeElement===i.body){let c=u.getTreeNode(e);for(;c;){if(c.nodeToRestore&&c.nodeToRestore.isConnected){Ut(c.nodeToRestore);return}c=c.parent}for(c=u.getTreeNode(e);c;){if(c.scopeRef&&c.scopeRef.current&&Ge.getTreeNode(c.scopeRef)){ad(c.scopeRef.current,!0);return}c=c.parent}}})}}}},[e,t])}function an(e,t,n){let r=t!=null&&t.tabbable?EN:_N,i=ye(e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(a){var s;return!(t==null||(s=t.from)===null||s===void 0)&&s.contains(a)?NodeFilter.FILTER_REJECT:a.matches(r)&&$7(a)&&(!n||St(a,n))&&(!(t!=null&&t.accept)||t.accept(a))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(i.currentNode=t.from),i}function Lf(e,t={}){return{focusNext(n={}){let r=e.current;if(!r)return null;let{from:i,tabbable:a=t.tabbable,wrap:s=t.wrap,accept:o=t.accept}=n,l=i||ye(r).activeElement,u=an(r,{tabbable:a,accept:o});r.contains(l)&&(u.currentNode=l);let c=u.nextNode();return!c&&s&&(u.currentNode=r,c=u.nextNode()),c&&Ut(c,!0),c},focusPrevious(n=t){let r=e.current;if(!r)return null;let{from:i,tabbable:a=t.tabbable,wrap:s=t.wrap,accept:o=t.accept}=n,l=i||ye(r).activeElement,u=an(r,{tabbable:a,accept:o});if(r.contains(l))u.currentNode=l;else{let d=Uh(u);return d&&Ut(d,!0),d??null}let c=u.previousNode();if(!c&&s){u.currentNode=r;let d=Uh(u);if(!d)return null;c=d}return c&&Ut(c,!0),c??null},focusFirst(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:a=t.accept}=n,o=an(r,{tabbable:i,accept:a}).nextNode();return o&&Ut(o,!0),o},focusLast(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:a=t.accept}=n,s=an(r,{tabbable:i,accept:a}),o=Uh(s);return o&&Ut(o,!0),o??null}}}function Uh(e){let t,n;do n=e.lastChild(),n&&(t=n);while(n);return t}class _${get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let i=this.fastMap.get(n??null);if(!i)return;let a=new wg({scopeRef:t});i.addChild(a),a.parent=i,this.fastMap.set(t,a),r&&(a.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let r=n.parent;for(let a of this.traverse())a!==n&&n.nodeToRestore&&a.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&St(a.nodeToRestore,n.scopeRef.current)&&(a.nodeToRestore=n.nodeToRestore);let i=n.children;r&&(r.removeChild(n),i.size>0&&i.forEach(a=>r&&r.addChild(a))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){var t;let n=new _$;var r;for(let i of this.traverse())n.addTreeNode(i.scopeRef,(r=(t=i.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&r!==void 0?r:null,i.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new wg({scopeRef:null}),this.fastMap.set(null,this.root)}}class wg{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}let Ge=new _$;function hl(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,i=y.useRef({isFocused:!1,isFocusVisible:t||b7()}),[a,s]=y.useState(!1),[o,l]=y.useState(()=>i.current.isFocused&&i.current.isFocusVisible),u=y.useCallback(()=>l(i.current.isFocused&&i.current.isFocusVisible),[]),c=y.useCallback(h=>{i.current.isFocused=h,s(h),u()},[u]);gN(h=>{i.current.isFocusVisible=h,u()},[],{isTextInput:n});let{focusProps:d}=h7({isDisabled:r,onFocusChange:c}),{focusWithinProps:f}=Ms({isDisabled:!r,onFocusWithinChange:c});return{isFocused:a,isFocusVisible:o,focusProps:r?f:d}}function w7(e){let{children:t,focusClass:n,focusRingClass:r}=e,{isFocused:i,isFocusVisible:a,focusProps:s}=hl(e),o=_.Children.only(t);return _.cloneElement(o,de(o.props,{...s,className:Ef({[n||""]:i,[r||""]:a})}))}let MN=_.createContext(null);function FN(e){let t=y.useContext(MN)||{};b$(t,e);let{ref:n,...r}=t;return r}function AN(e,t){let{focusProps:n}=h7(e),{keyboardProps:r}=yN(e),i=de(n,r),a=FN(t),s=e.isDisabled?{}:a,o=y.useRef(e.autoFocus);return y.useEffect(()=>{o.current&&t.current&&nd(t.current),o.current=!1},[t]),{focusableProps:de({...i,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},s)}}function ON(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:a="label"}=e;t=Qn(t);let s=Qn(),o={};n?(r=r?`${s} ${r}`:s,o={id:s,htmlFor:a==="label"?t:void 0}):!r&&!i&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let l=jl({id:t,"aria-label":i,"aria-labelledby":r});return{labelProps:o,fieldProps:l}}function D7(e){let{description:t,errorMessage:n,isInvalid:r,validationState:i}=e,{labelProps:a,fieldProps:s}=ON(e),o=Xc([!!t,!!n,r,i]),l=Xc([!!t,!!n,r,i]);return s=de(s,{"aria-describedby":[o,l,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:a,fieldProps:s,descriptionProps:{id:o},errorMessageProps:{id:l}}}function BN(e,t){e=ui(e,"text");let{children:n,...r}=e,{styleProps:i}=st(r),a=Nn(t);return _.createElement("span",{...Xt(r),...i,ref:a},n)}const IN=y.forwardRef(BN);function _7(e,t){let{elementType:n="button",isDisabled:r,onPress:i,onPressStart:a,onPressEnd:s,onPressUp:o,onPressChange:l,preventFocusOnPress:u,allowFocusWhenDisabled:c,onClick:d,href:f,target:h,rel:p,type:g="button"}=e,b;n==="button"?b={type:g,disabled:r}:b={role:"button",tabIndex:r?void 0:0,href:n==="a"&&r?void 0:f,target:n==="a"?h:void 0,type:n==="input"?g:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?p:void 0};let{pressProps:v,isPressed:m}=x$({onPressStart:a,onPressEnd:s,onPressChange:l,onPress:i,onPressUp:o,isDisabled:r,preventFocusOnPress:u,ref:t}),{focusableProps:$}=AN(e,t);c&&($.tabIndex=r?-1:$.tabIndex);let w=de($,v,Xt(e,{labelable:!0}));return{isPressed:m,buttonProps:de(b,w,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:D=>{d&&(d(D),console.warn("onClick is deprecated, please use onPress"))}})}}var E7={};E7={dateRange:e=>`${e.startDate} إلى ${e.endDate}`,dateSelected:e=>`${e.date} المحدد`,finishRangeSelectionPrompt:"انقر لإنهاء عملية تحديد نطاق التاريخ",maximumDate:"آخر تاريخ متاح",minimumDate:"أول تاريخ متاح",next:"التالي",previous:"السابق",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.dateRange}`,startRangeSelectionPrompt:"انقر لبدء عملية تحديد نطاق التاريخ",todayDate:e=>`اليوم، ${e.date}`,todayDateSelected:e=>`اليوم، ${e.date} محدد`};var S7={};S7={dateRange:e=>`${e.startDate} до ${e.endDate}`,dateSelected:e=>`Избрано е ${e.date}`,finishRangeSelectionPrompt:"Натиснете, за да довършите избора на времеви интервал",maximumDate:"Последна налична дата",minimumDate:"Първа налична дата",next:"Напред",previous:"Назад",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Натиснете, за да пристъпите към избора на времеви интервал",todayDate:e=>`Днес, ${e.date}`,todayDateSelected:e=>`Днес, ${e.date} са избрани`};var C7={};C7={dateRange:e=>`${e.startDate} až ${e.endDate}`,dateSelected:e=>`Vybráno ${e.date}`,finishRangeSelectionPrompt:"Kliknutím dokončíte výběr rozsahu dat",maximumDate:"Poslední dostupné datum",minimumDate:"První dostupné datum",next:"Další",previous:"Předchozí",selectedDateDescription:e=>`Vybrané datum: ${e.date}`,selectedRangeDescription:e=>`Vybrané období: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknutím zahájíte výběr rozsahu dat",todayDate:e=>`Dnes, ${e.date}`,todayDateSelected:e=>`Dnes, vybráno ${e.date}`};var k7={};k7={dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klik for at fuldføre valg af datoområde",maximumDate:"Sidste ledige dato",minimumDate:"Første ledige dato",next:"Næste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.dateRange}`,startRangeSelectionPrompt:"Klik for at starte valg af datoområde",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`};var P7={};P7={dateRange:e=>`${e.startDate} bis ${e.endDate}`,dateSelected:e=>`${e.date} ausgewählt`,finishRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beenden",maximumDate:"Letztes verfügbares Datum",minimumDate:"Erstes verfügbares Datum",next:"Weiter",previous:"Zurück",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.dateRange}`,startRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beginnen",todayDate:e=>`Heute, ${e.date}`,todayDateSelected:e=>`Heute, ${e.date} ausgewählt`};var T7={};T7={dateRange:e=>`${e.startDate} έως ${e.endDate}`,dateSelected:e=>`Επιλέχθηκε ${e.date}`,finishRangeSelectionPrompt:"Κάντε κλικ για να ολοκληρώσετε την επιλογή εύρους ημερομηνιών",maximumDate:"Τελευταία διαθέσιμη ημερομηνία",minimumDate:"Πρώτη διαθέσιμη ημερομηνία",next:"Επόμενο",previous:"Προηγούμενο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.dateRange}`,startRangeSelectionPrompt:"Κάντε κλικ για να ξεκινήσετε την επιλογή εύρους ημερομηνιών",todayDate:e=>`Σήμερα, ${e.date}`,todayDateSelected:e=>`Σήμερα, επιλέχτηκε ${e.date}`};var R7={};R7={previous:"Previous",next:"Next",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.dateRange}`,todayDate:e=>`Today, ${e.date}`,todayDateSelected:e=>`Today, ${e.date} selected`,dateSelected:e=>`${e.date} selected`,startRangeSelectionPrompt:"Click to start selecting date range",finishRangeSelectionPrompt:"Click to finish selecting date range",minimumDate:"First available date",maximumDate:"Last available date",dateRange:e=>`${e.startDate} to ${e.endDate}`};var M7={};M7={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} seleccionado`,finishRangeSelectionPrompt:"Haga clic para terminar de seleccionar rango de fechas",maximumDate:"Última fecha disponible",minimumDate:"Primera fecha disponible",next:"Siguiente",previous:"Anterior",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo seleccionado: ${e.dateRange}`,startRangeSelectionPrompt:"Haga clic para comenzar a seleccionar un rango de fechas",todayDate:e=>`Hoy, ${e.date}`,todayDateSelected:e=>`Hoy, ${e.date} seleccionado`};var F7={};F7={dateRange:e=>`${e.startDate} kuni ${e.endDate}`,dateSelected:e=>`${e.date} valitud`,finishRangeSelectionPrompt:"Klõpsake kuupäevavahemiku valimise lõpetamiseks",maximumDate:"Viimane saadaolev kuupäev",minimumDate:"Esimene saadaolev kuupäev",next:"Järgmine",previous:"Eelmine",selectedDateDescription:e=>`Valitud kuupäev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.dateRange}`,startRangeSelectionPrompt:"Klõpsake kuupäevavahemiku valimiseks",todayDate:e=>`Täna, ${e.date}`,todayDateSelected:e=>`Täna, ${e.date} valitud`};var A7={};A7={dateRange:e=>`${e.startDate} – ${e.endDate}`,dateSelected:e=>`${e.date} valittu`,finishRangeSelectionPrompt:"Lopeta päivämääräalueen valinta napsauttamalla tätä.",maximumDate:"Viimeinen varattavissa oleva päivämäärä",minimumDate:"Ensimmäinen varattavissa oleva päivämäärä",next:"Seuraava",previous:"Edellinen",selectedDateDescription:e=>`Valittu päivämäärä: ${e.date}`,selectedRangeDescription:e=>`Valittu aikaväli: ${e.dateRange}`,startRangeSelectionPrompt:"Aloita päivämääräalueen valinta napsauttamalla tätä.",todayDate:e=>`Tänään, ${e.date}`,todayDateSelected:e=>`Tänään, ${e.date} valittu`};var O7={};O7={dateRange:e=>`${e.startDate} à ${e.endDate}`,dateSelected:e=>`${e.date} sélectionné`,finishRangeSelectionPrompt:"Cliquer pour finir de sélectionner la plage de dates",maximumDate:"Dernière date disponible",minimumDate:"Première date disponible",next:"Suivant",previous:"Précédent",selectedDateDescription:e=>`Date sélectionnée : ${e.date}`,selectedRangeDescription:e=>`Plage sélectionnée : ${e.dateRange}`,startRangeSelectionPrompt:"Cliquer pour commencer à sélectionner la plage de dates",todayDate:e=>`Aujourd'hui, ${e.date}`,todayDateSelected:e=>`Aujourd’hui, ${e.date} sélectionné`};var B7={};B7={dateRange:e=>`${e.startDate} עד ${e.endDate}`,dateSelected:e=>`${e.date} נבחר`,finishRangeSelectionPrompt:"חץ כדי לסיים את בחירת טווח התאריכים",maximumDate:"תאריך פנוי אחרון",minimumDate:"תאריך פנוי ראשון",next:"הבא",previous:"הקודם",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.dateRange}`,startRangeSelectionPrompt:"לחץ כדי להתחיל בבחירת טווח התאריכים",todayDate:e=>`היום, ${e.date}`,todayDateSelected:e=>`היום, ${e.date} נבחר`};var I7={};I7={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} odabran`,finishRangeSelectionPrompt:"Kliknite da dovršite raspon odabranih datuma",maximumDate:"Posljednji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sljedeći",previous:"Prethodni",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete raspon odabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, odabran ${e.date}`};var L7={};L7={dateRange:e=>`${e.startDate}–${e.endDate}`,dateSelected:e=>`${e.date} kiválasztva`,finishRangeSelectionPrompt:"Kattintson a dátumtartomány kijelölésének befejezéséhez",maximumDate:"Utolsó elérhető dátum",minimumDate:"Az első elérhető dátum",next:"Következő",previous:"Előző",selectedDateDescription:e=>`Kijelölt dátum: ${e.date}`,selectedRangeDescription:e=>`Kijelölt tartomány: ${e.dateRange}`,startRangeSelectionPrompt:"Kattintson a dátumtartomány kijelölésének indításához",todayDate:e=>`Ma, ${e.date}`,todayDateSelected:e=>`Ma, ${e.date} kijelölve`};var N7={};N7={dateRange:e=>`Da ${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selezionata`,finishRangeSelectionPrompt:"Fai clic per completare la selezione dell’intervallo di date",maximumDate:"Ultima data disponibile",minimumDate:"Prima data disponibile",next:"Successivo",previous:"Precedente",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: ${e.dateRange}`,startRangeSelectionPrompt:"Fai clic per selezionare l’intervallo di date",todayDate:e=>`Oggi, ${e.date}`,todayDateSelected:e=>`Oggi, ${e.date} selezionata`};var j7={};j7={dateRange:e=>`${e.startDate} から ${e.endDate}`,dateSelected:e=>`${e.date} を選択`,finishRangeSelectionPrompt:"クリックして日付範囲の選択を終了",maximumDate:"最終利用可能日",minimumDate:"最初の利用可能日",next:"次へ",previous:"前へ",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.dateRange}`,startRangeSelectionPrompt:"クリックして日付範囲の選択を開始",todayDate:e=>`本日、${e.date}`,todayDateSelected:e=>`本日、${e.date} を選択`};var z7={};z7={dateRange:e=>`${e.startDate} ~ ${e.endDate}`,dateSelected:e=>`${e.date} 선택됨`,finishRangeSelectionPrompt:"날짜 범위 선택을 완료하려면 클릭하십시오.",maximumDate:"마지막으로 사용 가능한 일자",minimumDate:"처음으로 사용 가능한 일자",next:"다음",previous:"이전",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.dateRange}`,startRangeSelectionPrompt:"날짜 범위 선택을 시작하려면 클릭하십시오.",todayDate:e=>`오늘, ${e.date}`,todayDateSelected:e=>`오늘, ${e.date} 선택됨`};var V7={};V7={dateRange:e=>`Nuo ${e.startDate} iki ${e.endDate}`,dateSelected:e=>`Pasirinkta ${e.date}`,finishRangeSelectionPrompt:"Spustelėkite, kad baigtumėte pasirinkti datų intervalą",maximumDate:"Paskutinė galima data",minimumDate:"Pirmoji galima data",next:"Paskesnis",previous:"Ankstesnis",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: ${e.dateRange}`,startRangeSelectionPrompt:"Spustelėkite, kad pradėtumėte pasirinkti datų intervalą",todayDate:e=>`Šiandien, ${e.date}`,todayDateSelected:e=>`Šiandien, pasirinkta ${e.date}`};var W7={};W7={dateRange:e=>`No ${e.startDate} līdz ${e.endDate}`,dateSelected:e=>`Atlasīts: ${e.date}`,finishRangeSelectionPrompt:"Noklikšķiniet, lai pabeigtu datumu diapazona atlasi",maximumDate:"Pēdējais pieejamais datums",minimumDate:"Pirmais pieejamais datums",next:"Tālāk",previous:"Atpakaļ",selectedDateDescription:e=>`Atlasītais datums: ${e.date}`,selectedRangeDescription:e=>`Atlasītais diapazons: ${e.dateRange}`,startRangeSelectionPrompt:"Noklikšķiniet, lai sāktu datumu diapazona atlasi",todayDate:e=>`Šodien, ${e.date}`,todayDateSelected:e=>`Atlasīta šodiena, ${e.date}`};var U7={};U7={dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klikk for å fullføre valg av datoområde",maximumDate:"Siste tilgjengelige dato",minimumDate:"Første tilgjengelige dato",next:"Neste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt område: ${e.dateRange}`,startRangeSelectionPrompt:"Klikk for å starte valg av datoområde",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`};var H7={};H7={dateRange:e=>`${e.startDate} tot ${e.endDate}`,dateSelected:e=>`${e.date} geselecteerd`,finishRangeSelectionPrompt:"Klik om de selectie van het datumbereik te voltooien",maximumDate:"Laatste beschikbare datum",minimumDate:"Eerste beschikbare datum",next:"Volgende",previous:"Vorige",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.dateRange}`,startRangeSelectionPrompt:"Klik om het datumbereik te selecteren",todayDate:e=>`Vandaag, ${e.date}`,todayDateSelected:e=>`Vandaag, ${e.date} geselecteerd`};var K7={};K7={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`Wybrano ${e.date}`,finishRangeSelectionPrompt:"Kliknij, aby zakończyć wybór zakresu dat",maximumDate:"Ostatnia dostępna data",minimumDate:"Pierwsza dostępna data",next:"Dalej",previous:"Wstecz",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknij, aby rozpocząć wybór zakresu dat",todayDate:e=>`Dzisiaj, ${e.date}`,todayDateSelected:e=>`Dzisiaj wybrano ${e.date}`};var Y7={};Y7={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para concluir a seleção do intervalo de datas",maximumDate:"Última data disponível",minimumDate:"Primeira data disponível",next:"Próximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para iniciar a seleção do intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`};var q7={};q7={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para terminar de selecionar o intervalo de datas",maximumDate:"Última data disponível",minimumDate:"Primeira data disponível",next:"Próximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para começar a selecionar o intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`};var G7={};G7={dateRange:e=>`De la ${e.startDate} până la ${e.endDate}`,dateSelected:e=>`${e.date} selectată`,finishRangeSelectionPrompt:"Apăsaţi pentru a finaliza selecţia razei pentru dată",maximumDate:"Ultima dată disponibilă",minimumDate:"Prima dată disponibilă",next:"Următorul",previous:"Înainte",selectedDateDescription:e=>`Dată selectată: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: ${e.dateRange}`,startRangeSelectionPrompt:"Apăsaţi pentru a începe selecţia razei pentru dată",todayDate:e=>`Astăzi, ${e.date}`,todayDateSelected:e=>`Azi, ${e.date} selectată`};var Z7={};Z7={dateRange:e=>`С ${e.startDate} по ${e.endDate}`,dateSelected:e=>`Выбрано ${e.date}`,finishRangeSelectionPrompt:"Щелкните, чтобы завершить выбор диапазона дат",maximumDate:"Последняя доступная дата",minimumDate:"Первая доступная дата",next:"Далее",previous:"Назад",selectedDateDescription:e=>`Выбранная дата: ${e.date}`,selectedRangeDescription:e=>`Выбранный диапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Щелкните, чтобы начать выбор диапазона дат",todayDate:e=>`Сегодня, ${e.date}`,todayDateSelected:e=>`Сегодня, выбрано ${e.date}`};var X7={};X7={dateRange:e=>`Od ${e.startDate} do ${e.endDate}`,dateSelected:e=>`Vybratý dátum ${e.date}`,finishRangeSelectionPrompt:"Kliknutím dokončíte výber rozsahu dátumov",maximumDate:"Posledný dostupný dátum",minimumDate:"Prvý dostupný dátum",next:"Nasledujúce",previous:"Predchádzajúce",selectedDateDescription:e=>`Vybratý dátum: ${e.date}`,selectedRangeDescription:e=>`Vybratý rozsah: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknutím spustíte výber rozsahu dátumov",todayDate:e=>`Dnes ${e.date}`,todayDateSelected:e=>`Vybratý dnešný dátum ${e.date}`};var Q7={};Q7={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izbrano`,finishRangeSelectionPrompt:"Kliknite za dokončanje izbire datumskega obsega",maximumDate:"Zadnji razpoložljivi datum",minimumDate:"Prvi razpoložljivi datum",next:"Naprej",previous:"Nazaj",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano območje: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite za začetek izbire datumskega obsega",todayDate:e=>`Danes, ${e.date}`,todayDateSelected:e=>`Danes, ${e.date} izbrano`};var J7={};J7={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izabran`,finishRangeSelectionPrompt:"Kliknite da dovršite opseg izabranih datuma",maximumDate:"Zadnji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sledeći",previous:"Prethodni",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani period: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete opseg izabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, izabran ${e.date}`};var eE={};eE={dateRange:e=>`${e.startDate} till ${e.endDate}`,dateSelected:e=>`${e.date} har valts`,finishRangeSelectionPrompt:"Klicka för att avsluta val av datumintervall",maximumDate:"Sista tillgängliga datum",minimumDate:"Första tillgängliga datum",next:"Nästa",previous:"Föregående",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.dateRange}`,startRangeSelectionPrompt:"Klicka för att välja datumintervall",todayDate:e=>`Idag, ${e.date}`,todayDateSelected:e=>`Idag, ${e.date} har valts`};var tE={};tE={dateRange:e=>`${e.startDate} - ${e.endDate}`,dateSelected:e=>`${e.date} seçildi`,finishRangeSelectionPrompt:"Tarih aralığı seçimini tamamlamak için tıklayın",maximumDate:"Son müsait tarih",minimumDate:"İlk müsait tarih",next:"Sonraki",previous:"Önceki",selectedDateDescription:e=>`Seçilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Seçilen Aralık: ${e.dateRange}`,startRangeSelectionPrompt:"Tarih aralığı seçimini başlatmak için tıklayın",todayDate:e=>`Bugün, ${e.date}`,todayDateSelected:e=>`Bugün, ${e.date} seçildi`};var nE={};nE={dateRange:e=>`${e.startDate} — ${e.endDate}`,dateSelected:e=>`Вибрано ${e.date}`,finishRangeSelectionPrompt:"Натисніть, щоб завершити вибір діапазону дат",maximumDate:"Остання доступна дата",minimumDate:"Перша доступна дата",next:"Наступний",previous:"Попередній",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Натисніть, щоб почати вибір діапазону дат",todayDate:e=>`Сьогодні, ${e.date}`,todayDateSelected:e=>`Сьогодні, вибрано ${e.date}`};var rE={};rE={dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已选择 ${e.date}`,finishRangeSelectionPrompt:"单击以完成选择日期范围",maximumDate:"最后一个可用日期",minimumDate:"第一个可用日期",next:"下一页",previous:"上一页",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.dateRange}`,startRangeSelectionPrompt:"单击以开始选择日期范围",todayDate:e=>`今天,即 ${e.date}`,todayDateSelected:e=>`已选择今天,即 ${e.date}`};var iE={};iE={dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已選取 ${e.date}`,finishRangeSelectionPrompt:"按一下以完成選取日期範圍",maximumDate:"最後一個可用日期",minimumDate:"第一個可用日期",next:"下一頁",previous:"上一頁",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.dateRange}`,startRangeSelectionPrompt:"按一下以開始選取日期範圍",todayDate:e=>`今天,${e.date}`,todayDateSelected:e=>`已選取今天,${e.date}`};var zl={};zl={"ar-AE":E7,"bg-BG":S7,"cs-CZ":C7,"da-DK":k7,"de-DE":P7,"el-GR":T7,"en-US":R7,"es-ES":M7,"et-EE":F7,"fi-FI":A7,"fr-FR":O7,"he-IL":B7,"hr-HR":I7,"hu-HU":L7,"it-IT":N7,"ja-JP":j7,"ko-KR":z7,"lt-LT":V7,"lv-LV":W7,"nb-NO":U7,"nl-NL":H7,"pl-PL":K7,"pt-BR":Y7,"pt-PT":q7,"ro-RO":G7,"ru-RU":Z7,"sk-SK":X7,"sl-SI":Q7,"sr-SP":J7,"sv-SE":eE,"tr-TR":tE,"uk-UA":nE,"zh-CN":rE,"zh-TW":iE};function aE(e){return e&&e.__esModule?e.default:e}const E$=new WeakMap;function pl(e){return(e==null?void 0:e.calendar.identifier)==="gregory"&&e.era==="BC"?"short":void 0}function LN(e){let t=Sn(aE(zl),"@react-aria/calendar"),n,r;"highlightedRange"in e?{start:n,end:r}=e.highlightedRange||{}:n=r=e.value;let i=xn({weekday:"long",month:"long",year:"numeric",day:"numeric",era:pl(n)||pl(r),timeZone:e.timeZone}),a="anchorDate"in e?e.anchorDate:null;return y.useMemo(()=>{if(!a&&n&&r)if(Ze(n,r)){let s=i.format(n.toDate(e.timeZone));return t.format("selectedDateDescription",{date:s})}else{let s=_g(i,t,n,r,e.timeZone);return t.format("selectedRangeDescription",{dateRange:s})}return""},[n,r,a,e.timeZone,t,i])}function Dg(e,t,n,r){let i=Sn(aE(zl),"@react-aria/calendar"),a=pl(e)||pl(t),s=xn({month:"long",year:"numeric",era:a,calendar:e.calendar.identifier,timeZone:n}),o=xn({month:"long",year:"numeric",day:"numeric",era:a,calendar:e.calendar.identifier,timeZone:n});return y.useMemo(()=>{if(Ze(e,na(e))){if(Ze(t,Uc(e)))return s.format(e.toDate(n));if(Ze(t,Uc(t)))return r?_g(s,i,e,t,n):s.formatRange(e.toDate(n),t.toDate(n))}return r?_g(o,i,e,t,n):o.formatRange(e.toDate(n),t.toDate(n))},[e,t,s,o,i,n,r])}function _g(e,t,n,r,i){let a=e.formatRangeToParts(n.toDate(i),r.toDate(i)),s=-1;for(let u=0;u<a.length;u++){let c=a[u];if(c.source==="shared"&&c.type==="literal")s=u;else if(c.source==="endRange")break}let o="",l="";for(let u=0;u<a.length;u++)u<s?o+=a[u].value:u>s&&(l+=a[u].value);return t.format("dateRange",{startDate:o,endDate:l})}const sE=7e3;let Bo=null;function Eg(e,t="assertive",n=sE){Bo||(Bo=new jN),Bo.announce(e,t,n)}function NN(e){Bo&&Bo.clear(e)}class jN{createLog(t){let n=document.createElement("div");return n.setAttribute("role","log"),n.setAttribute("aria-live",t),n.setAttribute("aria-relevant","additions"),n}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(t,n="assertive",r=sE){if(!this.node)return;let i=document.createElement("div");i.textContent=t,n==="assertive"?this.assertiveLog.appendChild(i):this.politeLog.appendChild(i),t!==""&&setTimeout(()=>{i.remove()},r)}clear(t){this.node&&((!t||t==="assertive")&&(this.assertiveLog.innerHTML=""),(!t||t==="polite")&&(this.politeLog.innerHTML=""))}constructor(){this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node)}}function zN(e){return e&&e.__esModule?e.default:e}function VN(e,t){let n=Sn(zN(zl),"@react-aria/calendar"),r=Xt(e),i=Dg(t.visibleRange.start,t.visibleRange.end,t.timeZone,!1),a=Dg(t.visibleRange.start,t.visibleRange.end,t.timeZone,!0);t5(()=>{t.isFocused||Eg(a)},[a]);let s=LN(t);t5(()=>{s&&Eg(s,"polite",4e3)},[s]);let o=Xc([!!e.errorMessage,e.isInvalid,e.validationState]);E$.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:e["aria-labelledby"],errorMessageId:o,selectedDateDescription:s});let[l,u]=y.useState(!1),c=e.isDisabled||t.isNextVisibleRangeInvalid();c&&l&&(u(!1),t.setFocused(!0));let[d,f]=y.useState(!1),h=e.isDisabled||t.isPreviousVisibleRangeInvalid();h&&d&&(f(!1),t.setFocused(!0));let p=jl({id:e.id,"aria-label":[e["aria-label"],a].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]});return{calendarProps:de(r,p,{role:"application","aria-describedby":e["aria-describedby"]||void 0}),nextButtonProps:{onPress:()=>t.focusNextPage(),"aria-label":n.format("next"),isDisabled:c,onFocusChange:u},prevButtonProps:{onPress:()=>t.focusPreviousPage(),"aria-label":n.format("previous"),isDisabled:h,onFocusChange:f},errorMessageProps:{id:o},title:i}}function WN(e,t,n){let r=VN(e,t),i=y.useRef(!1),a=y.useRef(typeof window<"u"?window:null);return as(a,"pointerdown",o=>{i.current=o.width===0&&o.height===0}),as(a,"pointerup",o=>{if(i.current){i.current=!1;return}if(t.setDragging(!1),!t.anchorDate)return;let l=o.target;n.current&&n.current.contains(document.activeElement)&&(!n.current.contains(l)||!l.closest('button, [role="button"]'))&&t.selectFocusedDate()}),r.calendarProps.onBlur=o=>{n.current&&(!o.relatedTarget||!n.current.contains(o.relatedTarget))&&t.anchorDate&&t.selectFocusedDate()},as(n,"touchmove",o=>{t.isDragging&&o.preventDefault()},{passive:!1,capture:!0}),r}function UN(e,t){let{startDate:n=t.visibleRange.start,endDate:r=t.visibleRange.end}=e,{direction:i}=Qe(),a=h=>{switch(h.key){case"Enter":case" ":h.preventDefault(),t.selectFocusedDate();break;case"PageUp":h.preventDefault(),h.stopPropagation(),t.focusPreviousSection(h.shiftKey);break;case"PageDown":h.preventDefault(),h.stopPropagation(),t.focusNextSection(h.shiftKey);break;case"End":h.preventDefault(),h.stopPropagation(),t.focusSectionEnd();break;case"Home":h.preventDefault(),h.stopPropagation(),t.focusSectionStart();break;case"ArrowLeft":h.preventDefault(),h.stopPropagation(),i==="rtl"?t.focusNextDay():t.focusPreviousDay();break;case"ArrowUp":h.preventDefault(),h.stopPropagation(),t.focusPreviousRow();break;case"ArrowRight":h.preventDefault(),h.stopPropagation(),i==="rtl"?t.focusPreviousDay():t.focusNextDay();break;case"ArrowDown":h.preventDefault(),h.stopPropagation(),t.focusNextRow();break;case"Escape":"setAnchorDate"in t&&(h.preventDefault(),t.setAnchorDate(null));break}},s=Dg(n,r,t.timeZone,!0),{ariaLabel:o,ariaLabelledBy:l}=E$.get(t),u=jl({"aria-label":[o,s].filter(Boolean).join(", "),"aria-labelledby":l}),c=xn({weekday:e.weekdayStyle||"narrow",timeZone:t.timeZone}),{locale:d}=Qe(),f=y.useMemo(()=>{let h=ll(Il(t.timeZone),d);return[...new Array(7).keys()].map(p=>{let b=h.add({days:p}).toDate(t.timeZone);return c.format(b)})},[d,t.timeZone,c]);return{gridProps:de(u,{role:"grid","aria-readonly":t.isReadOnly||null,"aria-disabled":t.isDisabled||null,"aria-multiselectable":"highlightedRange"in t||void 0,onKeyDown:a,onFocus:()=>t.setFocused(!0),onBlur:()=>t.setFocused(!1)}),headerProps:{"aria-hidden":!0},weekDays:f}}function HN(e){return e&&e.__esModule?e.default:e}function KN(e,t,n){let{date:r,isDisabled:i}=e,{errorMessageId:a,selectedDateDescription:s}=E$.get(t),o=Sn(HN(zl),"@react-aria/calendar"),l=xn({weekday:"long",day:"numeric",month:"long",year:"numeric",era:pl(r),timeZone:t.timeZone}),u=t.isSelected(r),c=t.isCellFocused(r);i=i||t.isCellDisabled(r);let d=t.isCellUnavailable(r),f=!i&&!d,h=t.isValueInvalid&&("highlightedRange"in t?!t.anchorDate&&t.highlightedRange&&r.compare(t.highlightedRange.start)>=0&&r.compare(t.highlightedRange.end)<=0:t.value&&Ze(t.value,r));h&&(u=!0),r=a7(r,ag);let p=y.useMemo(()=>r.toDate(t.timeZone),[r,t.timeZone]),g=w8(r,t.timeZone),b=y.useMemo(()=>{let E="";return"highlightedRange"in t&&t.value&&!t.anchorDate&&(Ze(r,t.value.start)||Ze(r,t.value.end))&&(E=s+", "),E+=l.format(p),g?E=o.format(u?"todayDateSelected":"todayDate",{date:E}):u&&(E=o.format("dateSelected",{date:E})),t.minValue&&Ze(r,t.minValue)?E+=", "+o.format("minimumDate"):t.maxValue&&Ze(r,t.maxValue)&&(E+=", "+o.format("maximumDate")),E},[l,p,o,u,g,r,t,s]),v="";"anchorDate"in t&&c&&!t.isReadOnly&&f&&(t.anchorDate?v=o.format("finishRangeSelectionPrompt"):v=o.format("startRangeSelectionPrompt"));let m=y$(v),$=y.useRef(!1),w=y.useRef(!1),D=y.useRef(null),{pressProps:S,isPressed:k}=x$({shouldCancelOnPointerExit:"anchorDate"in t&&!!t.anchorDate,preventFocusOnPress:!0,isDisabled:!f||t.isReadOnly,onPressStart(E){if(t.isReadOnly){t.setFocusedDate(r);return}if("highlightedRange"in t&&!t.anchorDate&&(E.pointerType==="mouse"||E.pointerType==="touch")){if(t.highlightedRange&&!h){if(Ze(r,t.highlightedRange.start)){t.setAnchorDate(t.highlightedRange.end),t.setFocusedDate(r),t.setDragging(!0),w.current=!0;return}else if(Ze(r,t.highlightedRange.end)){t.setAnchorDate(t.highlightedRange.start),t.setFocusedDate(r),t.setDragging(!0),w.current=!0;return}}let F=()=>{t.setDragging(!0),D.current=null,t.selectDate(r),t.setFocusedDate(r),$.current=!0};E.pointerType==="touch"?D.current=setTimeout(F,200):F()}},onPressEnd(){w.current=!1,$.current=!1,clearTimeout(D.current),D.current=null},onPress(){!("anchorDate"in t)&&!t.isReadOnly&&(t.selectDate(r),t.setFocusedDate(r))},onPressUp(E){if(!t.isReadOnly&&("anchorDate"in t&&D.current&&(t.selectDate(r),t.setFocusedDate(r)),"anchorDate"in t))if(w.current)t.setAnchorDate(r);else if(t.anchorDate&&!$.current)t.selectDate(r),t.setFocusedDate(r);else if(E.pointerType==="keyboard"&&!t.anchorDate){t.selectDate(r);let F=r.add({days:1});t.isInvalid(F)&&(F=r.subtract({days:1})),t.isInvalid(F)||t.setFocusedDate(F)}else E.pointerType==="virtual"&&(t.selectDate(r),t.setFocusedDate(r))}}),x=null;i||(x=Ze(r,t.focusedDate)?0:-1),y.useEffect(()=>{c&&n.current&&(Hr(n.current),y7()!=="pointer"&&document.activeElement===n.current&&i7(n.current,{containingElement:Ff(n.current)}))},[c,n]);let T=xn({day:"numeric",timeZone:t.timeZone,calendar:r.calendar.identifier}),P=y.useMemo(()=>T.formatToParts(p).find(E=>E.type==="day").value,[T,p]);return{cellProps:{role:"gridcell","aria-disabled":!f||null,"aria-selected":u||null,"aria-invalid":h||null},buttonProps:de(S,{onFocus(){i||t.setFocusedDate(r)},tabIndex:x,role:"button","aria-disabled":!f||null,"aria-label":b,"aria-invalid":h||null,"aria-describedby":[h?a:null,m["aria-describedby"]].filter(Boolean).join(" ")||void 0,onPointerEnter(E){"highlightDate"in t&&(E.pointerType!=="touch"||t.isDragging)&&f&&t.highlightDate(r)},onPointerDown(E){"releasePointerCapture"in E.target&&E.target.releasePointerCapture(E.pointerId)},onContextMenu(E){E.preventDefault()}}),isPressed:k,isFocused:c,isSelected:u,isDisabled:i,isUnavailable:d,isOutsideVisibleRange:r.compare(t.visibleRange.start)<0||r.compare(t.visibleRange.end)>0,isInvalid:h,formattedDate:P}}function YN(e,t,n){let{validationBehavior:r,focus:i}=e;he(()=>{if(r==="native"&&(n!=null&&n.current)){let l=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(l),n.current.hasAttribute("title")||(n.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(GN(n.current))}});let a=pt(()=>{t.resetValidation()}),s=pt(l=>{var u;t.displayValidation.isInvalid||t.commitValidation();let c=n==null||(u=n.current)===null||u===void 0?void 0:u.form;if(!l.defaultPrevented&&n&&c&&ZN(c)===n.current){var d;i?i():(d=n.current)===null||d===void 0||d.focus(),hN("keyboard")}l.preventDefault()}),o=pt(()=>{t.commitValidation()});y.useEffect(()=>{let l=n==null?void 0:n.current;if(!l)return;let u=l.form;return l.addEventListener("invalid",s),l.addEventListener("change",o),u==null||u.addEventListener("reset",a),()=>{l.removeEventListener("invalid",s),l.removeEventListener("change",o),u==null||u.removeEventListener("reset",a)}},[n,s,o,a,r])}function qN(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}function GN(e){return{isInvalid:!e.validity.valid,validationDetails:qN(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function ZN(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(!n.validity.valid)return n}return null}const Nf={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},oE={...Nf,customError:!0,valid:!1},Li={isInvalid:!1,validationDetails:Nf,validationErrors:[]},XN=y.createContext({}),sd="__formValidationState"+Date.now();function lE(e){if(e[sd]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:a}=e[sd];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:a}}return QN(e)}function QN(e){let{isInvalid:t,validationState:n,name:r,value:i,builtinValidation:a,validate:s,validationBehavior:o="aria"}=e;n&&(t||(t=n==="invalid"));let l=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:oE}:null,u=y.useMemo(()=>v5(JN(s,i)),[s,i]);a!=null&&a.validationDetails.valid&&(a=null);let c=y.useContext(XN),d=y.useMemo(()=>r?Array.isArray(r)?r.flatMap(P=>Sg(c[P])):Sg(c[r]):[],[c,r]),[f,h]=y.useState(c),[p,g]=y.useState(!1);c!==f&&(h(c),g(!1));let b=y.useMemo(()=>v5(p?[]:d),[p,d]),v=y.useRef(Li),[m,$]=y.useState(Li),w=y.useRef(Li),D=()=>{if(!S)return;k(!1);let P=u||a||v.current;Hh(P,w.current)||(w.current=P,$(P))},[S,k]=y.useState(!1);return y.useEffect(D),{realtimeValidation:l||b||u||a||Li,displayValidation:o==="native"?l||b||m:l||b||u||a||m,updateValidation(P){o==="aria"&&!Hh(m,P)?$(P):v.current=P},resetValidation(){let P=Li;Hh(P,w.current)||(w.current=P,$(P)),o==="native"&&k(!1),g(!0)},commitValidation(){o==="native"&&k(!0),g(!0)}}}function Sg(e){return e?Array.isArray(e)?e:[e]:[]}function JN(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return Sg(n)}return[]}function v5(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:oE}:null}function Hh(e,t){return e===t?!0:e&&t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((n,r)=>n===t.validationErrors[r])&&Object.entries(e.validationDetails).every(([n,r])=>t.validationDetails[n]===r)}function od(...e){let t=new Set,n=!1,r={...Nf};for(let s of e){var i,a;for(let o of s.validationErrors)t.add(o);n||(n=s.isInvalid);for(let o in r)(i=r)[a=o]||(i[a]=s.validationDetails[o])}return r.valid=!n,{isInvalid:n,validationErrors:[...t],validationDetails:r}}const Ya={top:"top",bottom:"top",left:"left",right:"left"},ld={top:"bottom",bottom:"top",left:"right",right:"left"},ej={top:"left",left:"top"},Cg={top:"height",left:"width"},uE={width:"totalWidth",height:"totalHeight"},Du={};let Lt=typeof document<"u"&&window.visualViewport;function b5(e){let t=0,n=0,r=0,i=0,a=0,s=0,o={},l=(Lt==null?void 0:Lt.scale)>1;if(e.tagName==="BODY"){let d=document.documentElement;r=d.clientWidth,i=d.clientHeight;var u;t=(u=Lt==null?void 0:Lt.width)!==null&&u!==void 0?u:r;var c;n=(c=Lt==null?void 0:Lt.height)!==null&&c!==void 0?c:i,o.top=d.scrollTop||e.scrollTop,o.left=d.scrollLeft||e.scrollLeft,Lt&&(a=Lt.offsetTop,s=Lt.offsetLeft)}else({width:t,height:n,top:a,left:s}=ss(e)),o.top=e.scrollTop,o.left=e.scrollLeft,r=t,i=n;return X8()&&(e.tagName==="BODY"||e.tagName==="HTML")&&l&&(o.top=0,o.left=0,a=Lt.pageTop,s=Lt.pageLeft),{width:t,height:n,totalWidth:r,totalHeight:i,scroll:o,top:a,left:s}}function tj(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function y5(e,t,n,r,i,a,s){let o=i.scroll[e],l=r[Cg[e]],u=r.scroll[Ya[e]]+a,c=l+r.scroll[Ya[e]]-a,d=t-o+s[e]-r[Ya[e]],f=t-o+n+s[e]-r[Ya[e]];return d<u?u-d:f>c?Math.max(c-f,u-d):0}function nj(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function $5(e){if(Du[e])return Du[e];let[t,n]=e.split(" "),r=Ya[t]||"right",i=ej[r];Ya[n]||(n="center");let a=Cg[r],s=Cg[i];return Du[e]={placement:t,crossPlacement:n,axis:r,crossAxis:i,size:a,crossSize:s},Du[e]}function Kh(e,t,n,r,i,a,s,o,l,u){let{placement:c,crossPlacement:d,axis:f,crossAxis:h,size:p,crossSize:g}=r,b={};b[h]=e[h],d==="center"?b[h]+=(e[g]-n[g])/2:d!==h&&(b[h]+=e[g]-n[g]),b[h]+=a;const v=e[h]-n[g]+l+u,m=e[h]+e[g]-l-u;if(b[h]=mg(b[h],v,m),c===f){const $=o?s[p]:t[uE[p]];b[ld[f]]=Math.floor($-e[f]+i)}else b[f]=Math.floor(e[f]+e[p]+i);return b}function rj(e,t,n,r,i,a,s,o){const l=r?n.height:t[uE.height];let u=e.top!=null?n.top+e.top:n.top+(l-e.bottom-s),c=o!=="top"?Math.max(0,t.height+t.top+t.scroll.top-u-(i.top+i.bottom+a)):Math.max(0,u+s-(t.top+t.scroll.top)-(i.top+i.bottom+a));return Math.min(t.height-a*2,c)}function x5(e,t,n,r,i,a){let{placement:s,axis:o,size:l}=a;return s===o?Math.max(0,n[o]-e[o]-e.scroll[o]+t[o]-r[o]-r[ld[o]]-i):Math.max(0,e[l]+e[o]+e.scroll[o]-t[o]-n[o]-n[l]-r[o]-r[ld[o]]-i)}function ij(e,t,n,r,i,a,s,o,l,u,c,d,f,h,p,g){let b=$5(e),{size:v,crossAxis:m,crossSize:$,placement:w,crossPlacement:D}=b,S=Kh(t,o,n,b,c,d,u,f,p,g),k=c,x=x5(o,u,t,i,a+c,b);if(s&&r[v]>x){let I=$5(`${ld[w]} ${D}`),N=Kh(t,o,n,I,c,d,u,f,p,g);x5(o,u,t,i,a+c,I)>x&&(b=I,S=N,k=c)}let T="bottom";b.axis==="top"?b.placement==="top"?T="top":b.placement==="bottom"&&(T="bottom"):b.crossAxis==="top"&&(b.crossPlacement==="top"?T="bottom":b.crossPlacement==="bottom"&&(T="top"));let P=y5(m,S[m],n[$],o,l,a,u);S[m]+=P;let E=rj(S,o,u,f,i,a,n.height,T);h&&h<E&&(E=h),n.height=Math.min(n.height,E),S=Kh(t,o,n,b,k,d,u,f,p,g),P=y5(m,S[m],n[$],o,l,a,u),S[m]+=P;let F={},R=t[m]+.5*t[$]-S[m];const M=p/2+g,z=n[$]-p/2-g,B=t[m]-S[m]+p/2,C=t[m]+t[$]-S[m]-p/2,O=mg(R,B,C);return F[m]=mg(O,M,z),{position:S,maxHeight:E,arrowOffsetLeft:F.left,arrowOffsetTop:F.top,placement:b.placement}}function aj(e){let{placement:t,targetNode:n,overlayNode:r,scrollNode:i,padding:a,shouldFlip:s,boundaryElement:o,offset:l,crossOffset:u,maxHeight:c,arrowSize:d=0,arrowBoundaryOffset:f=0}=e,h=r instanceof HTMLElement?sj(r):document.documentElement,p=h===document.documentElement;const g=window.getComputedStyle(h).position;let b=!!g&&g!=="static",v=p?ss(n):w5(n,h);if(!p){let{marginTop:x,marginLeft:T}=window.getComputedStyle(n);v.top+=parseInt(x,10)||0,v.left+=parseInt(T,10)||0}let m=ss(r),$=nj(r);m.width+=$.left+$.right,m.height+=$.top+$.bottom;let w=tj(i),D=b5(o),S=b5(h),k=o.tagName==="BODY"?ss(h):w5(h,o);return h.tagName==="HTML"&&o.tagName==="BODY"&&(S.scroll.top=0,S.scroll.left=0),ij(t,v,m,w,$,a,s,D,S,k,l,u,b,c,d,f)}function ss(e){let{top:t,left:n,width:r,height:i}=e.getBoundingClientRect(),{scrollTop:a,scrollLeft:s,clientTop:o,clientLeft:l}=document.documentElement;return{top:t+a-o,left:n+s-l,width:r,height:i}}function w5(e,t){let n=window.getComputedStyle(e),r;if(n.position==="fixed"){let{top:i,left:a,width:s,height:o}=e.getBoundingClientRect();r={top:i,left:a,width:s,height:o}}else{r=ss(e);let i=ss(t),a=window.getComputedStyle(t);i.top+=(parseInt(a.borderTopWidth,10)||0)-t.scrollTop,i.left+=(parseInt(a.borderLeftWidth,10)||0)-t.scrollLeft,r.top-=i.top,r.left-=i.left}return r.top-=parseInt(n.marginTop,10)||0,r.left-=parseInt(n.marginLeft,10)||0,r}function sj(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!D5(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!D5(t);)t=t.parentElement;return t||document.documentElement}function D5(e){let t=window.getComputedStyle(e);return t.transform!=="none"||/transform|perspective/.test(t.willChange)||t.filter!=="none"||t.contain==="paint"||"backdropFilter"in t&&t.backdropFilter!=="none"||"WebkitBackdropFilter"in t&&t.WebkitBackdropFilter!=="none"}const cE=new WeakMap;function oj(e){let{triggerRef:t,isOpen:n,onClose:r}=e;y.useEffect(()=>{if(!n||r===null)return;let i=a=>{let s=a.target;if(!t.current||s instanceof Node&&!s.contains(t.current))return;let o=r||cE.get(t.current);o&&o()};return window.addEventListener("scroll",i,!0),()=>{window.removeEventListener("scroll",i,!0)}},[n,r,t])}let Ke=typeof document<"u"&&window.visualViewport;function lj(e){let{direction:t}=Qe(),{arrowSize:n=0,targetRef:r,overlayRef:i,scrollRef:a=i,placement:s="bottom",containerPadding:o=12,shouldFlip:l=!0,boundaryElement:u=typeof document<"u"?document.body:null,offset:c=0,crossOffset:d=0,shouldUpdatePosition:f=!0,isOpen:h=!0,onClose:p,maxHeight:g,arrowBoundaryOffset:b=0}=e,[v,m]=y.useState({position:{},arrowOffsetLeft:void 0,arrowOffsetTop:void 0,maxHeight:void 0,placement:void 0}),$=[f,s,i.current,r.current,a.current,o,l,u,c,d,h,t,g,b,n],w=y.useRef(Ke==null?void 0:Ke.scale);y.useEffect(()=>{h&&(w.current=Ke==null?void 0:Ke.scale)},[h]);let D=y.useCallback(()=>{if(f===!1||!h||!i.current||!r.current||!a.current||!u||(Ke==null?void 0:Ke.scale)!==w.current)return;let x=i.current;if(!g&&i.current){var T;x.style.top="0px",x.style.bottom="";var P;x.style.maxHeight=((P=(T=window.visualViewport)===null||T===void 0?void 0:T.height)!==null&&P!==void 0?P:window.innerHeight)+"px"}let E=aj({placement:cj(s,t),overlayNode:i.current,targetNode:r.current,scrollNode:a.current,padding:o,shouldFlip:l,boundaryElement:u,offset:c,crossOffset:d,maxHeight:g,arrowSize:n,arrowBoundaryOffset:b});x.style.top="",x.style.bottom="",Object.keys(E.position).forEach(F=>x.style[F]=E.position[F]+"px"),x.style.maxHeight=E.maxHeight!=null?E.maxHeight+"px":void 0,m(E)},$);he(D,$),uj(D),n7({ref:i,onResize:D});let S=y.useRef(!1);he(()=>{let x,T=()=>{S.current=!0,clearTimeout(x),x=setTimeout(()=>{S.current=!1},500),D()},P=()=>{S.current&&T()};return Ke==null||Ke.addEventListener("resize",T),Ke==null||Ke.addEventListener("scroll",P),()=>{Ke==null||Ke.removeEventListener("resize",T),Ke==null||Ke.removeEventListener("scroll",P)}},[D]);let k=y.useCallback(()=>{S.current||p()},[p,S]);return oj({triggerRef:r,isOpen:h,onClose:p&&k}),{overlayProps:{style:{position:"absolute",zIndex:1e5,...v.position,maxHeight:v.maxHeight}},placement:v.placement,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:v.arrowOffsetLeft,top:v.arrowOffsetTop}},updatePosition:D}}function uj(e){he(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function cj(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const rr=[];function dE(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:i,isDismissable:a=!1,isKeyboardDismissDisabled:s=!1,shouldCloseOnInteractOutside:o}=e;y.useEffect(()=>(i&&rr.push(t),()=>{let p=rr.indexOf(t);p>=0&&rr.splice(p,1)}),[i,t]);let l=()=>{rr[rr.length-1]===t&&n&&n()},u=p=>{(!o||o(p.target))&&rr[rr.length-1]===t&&(p.stopPropagation(),p.preventDefault())},c=p=>{(!o||o(p.target))&&(rr[rr.length-1]===t&&(p.stopPropagation(),p.preventDefault()),l())},d=p=>{p.key==="Escape"&&!s&&!p.nativeEvent.isComposing&&(p.stopPropagation(),p.preventDefault(),l())};bN({ref:t,onInteractOutside:a&&i?c:null,onInteractOutsideStart:u});let{focusWithinProps:f}=Ms({isDisabled:!r,onBlurWithin:p=>{!p.relatedTarget||CN(p.relatedTarget)||(!o||o(p.relatedTarget))&&n()}}),h=p=>{p.target===p.currentTarget&&p.preventDefault()};return{overlayProps:{onKeyDown:d,...f},underlayProps:{onPointerDown:h}}}function dj(e,t,n){let{type:r}=e,{isOpen:i}=t;y.useEffect(()=>{n&&n.current&&cE.set(n.current,t.close)});let a;r==="menu"?a=!0:r==="listbox"&&(a="listbox");let s=Qn();return{triggerProps:{"aria-haspopup":a,"aria-expanded":i,"aria-controls":i?s:null,onPress:t.toggle},overlayProps:{id:s}}}const Yh=typeof document<"u"&&window.visualViewport,fj=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let _u=0,qh;function fE(e={}){let{isDisabled:t}=e;he(()=>{if(!t)return _u++,_u===1&&(Mf()?qh=pj():qh=hj()),()=>{_u--,_u===0&&qh()}},[t])}function hj(){return dl(qa(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),qa(document.documentElement,"overflow","hidden"))}function pj(){let e,t,n=u=>{e=Ff(u.target,!0),!(e===document.documentElement&&e===document.body)&&e instanceof HTMLElement&&window.getComputedStyle(e).overscrollBehavior==="auto"&&(t=qa(e,"overscrollBehavior","contain"))},r=u=>{if(!e||e===document.documentElement||e===document.body){u.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&u.preventDefault()},i=u=>{let c=u.target;E5(c)&&c!==document.activeElement&&(u.preventDefault(),o(),c.style.transform="translateY(-2000px)",c.focus(),requestAnimationFrame(()=>{c.style.transform=""})),t&&t()},a=u=>{let c=u.target;E5(c)&&(o(),c.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{c.style.transform="",Yh&&(Yh.height<window.innerHeight?requestAnimationFrame(()=>{_5(c)}):Yh.addEventListener("resize",()=>_5(c),{once:!0}))}))},s=null,o=()=>{if(s)return;let u=()=>{window.scrollTo(0,0)},c=window.pageXOffset,d=window.pageYOffset;s=dl(Ks(window,"scroll",u),qa(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),qa(document.documentElement,"overflow","hidden"),qa(document.body,"marginTop",`-${d}px`),()=>{window.scrollTo(c,d)}),window.scrollTo(0,0)},l=dl(Ks(document,"touchstart",n,{passive:!1,capture:!0}),Ks(document,"touchmove",r,{passive:!1,capture:!0}),Ks(document,"touchend",i,{passive:!1,capture:!0}),Ks(document,"focus",a,!0));return()=>{t==null||t(),s==null||s(),l()}}function qa(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function Ks(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function _5(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let n=Ff(e);if(n!==document.documentElement&&n!==document.body&&n!==e){let r=n.getBoundingClientRect().top,i=e.getBoundingClientRect().top;i>r+e.clientHeight&&(n.scrollTop+=i-r)}e=n.parentElement}}function E5(e){return e instanceof HTMLInputElement&&!fj.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}const kg=_.createContext(null);function mj(e){let{children:t}=e,n=y.useContext(kg),[r,i]=y.useState(0),a=y.useMemo(()=>({parent:n,modalCount:r,addModal(){i(s=>s+1),n&&n.addModal()},removeModal(){i(s=>s-1),n&&n.removeModal()}}),[n,r]);return _.createElement(kg.Provider,{value:a},t)}function gj(){let e=y.useContext(kg);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:null}}}var hE={};hE={dismiss:"تجاهل"};var pE={};pE={dismiss:"Отхвърляне"};var mE={};mE={dismiss:"Odstranit"};var gE={};gE={dismiss:"Luk"};var vE={};vE={dismiss:"Schließen"};var bE={};bE={dismiss:"Απόρριψη"};var yE={};yE={dismiss:"Dismiss"};var $E={};$E={dismiss:"Descartar"};var xE={};xE={dismiss:"Lõpeta"};var wE={};wE={dismiss:"Hylkää"};var DE={};DE={dismiss:"Rejeter"};var _E={};_E={dismiss:"התעלם"};var EE={};EE={dismiss:"Odbaci"};var SE={};SE={dismiss:"Elutasítás"};var CE={};CE={dismiss:"Ignora"};var kE={};kE={dismiss:"閉じる"};var PE={};PE={dismiss:"무시"};var TE={};TE={dismiss:"Atmesti"};var RE={};RE={dismiss:"Nerādīt"};var ME={};ME={dismiss:"Lukk"};var FE={};FE={dismiss:"Negeren"};var AE={};AE={dismiss:"Zignoruj"};var OE={};OE={dismiss:"Descartar"};var BE={};BE={dismiss:"Dispensar"};var IE={};IE={dismiss:"Revocare"};var LE={};LE={dismiss:"Пропустить"};var NE={};NE={dismiss:"Zrušiť"};var jE={};jE={dismiss:"Opusti"};var zE={};zE={dismiss:"Odbaci"};var VE={};VE={dismiss:"Avvisa"};var WE={};WE={dismiss:"Kapat"};var UE={};UE={dismiss:"Скасувати"};var HE={};HE={dismiss:"取消"};var KE={};KE={dismiss:"關閉"};var YE={};YE={"ar-AE":hE,"bg-BG":pE,"cs-CZ":mE,"da-DK":gE,"de-DE":vE,"el-GR":bE,"en-US":yE,"es-ES":$E,"et-EE":xE,"fi-FI":wE,"fr-FR":DE,"he-IL":_E,"hr-HR":EE,"hu-HU":SE,"it-IT":CE,"ja-JP":kE,"ko-KR":PE,"lt-LT":TE,"lv-LV":RE,"nb-NO":ME,"nl-NL":FE,"pl-PL":AE,"pt-BR":OE,"pt-PT":BE,"ro-RO":IE,"ru-RU":LE,"sk-SK":NE,"sl-SI":jE,"sr-SP":zE,"sv-SE":VE,"tr-TR":WE,"uk-UA":UE,"zh-CN":HE,"zh-TW":KE};const S5={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function vj(e={}){let{style:t,isFocusable:n}=e,[r,i]=y.useState(!1),{focusWithinProps:a}=Ms({isDisabled:!n,onFocusWithinChange:o=>i(o)}),s=y.useMemo(()=>r?t:t?{...S5,...t}:S5,[r]);return{visuallyHiddenProps:{...a,style:s}}}function Pg(e){let{children:t,elementType:n="div",isFocusable:r,style:i,...a}=e,{visuallyHiddenProps:s}=vj(e);return _.createElement(n,de(a,s),t)}function bj(e){return e&&e.__esModule?e.default:e}function ud(e){let{onDismiss:t,...n}=e,r=Sn(bj(YE),"@react-aria/overlays"),i=jl(n,r.format("dismiss")),a=()=>{t&&t()};return _.createElement(Pg,null,_.createElement("button",{...i,tabIndex:-1,onClick:a,style:{width:1,height:1}}))}let Ys=new WeakMap,fn=[];function qE(e,t=document.body){let n=new Set(e),r=new Set,i=l=>{for(let f of l.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))n.add(f);let u=f=>{if(n.has(f)||r.has(f.parentElement)&&f.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let h of n)if(f.contains(h))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},c=document.createTreeWalker(l,NodeFilter.SHOW_ELEMENT,{acceptNode:u}),d=u(l);if(d===NodeFilter.FILTER_ACCEPT&&a(l),d!==NodeFilter.FILTER_REJECT){let f=c.nextNode();for(;f!=null;)a(f),f=c.nextNode()}},a=l=>{var u;let c=(u=Ys.get(l))!==null&&u!==void 0?u:0;l.getAttribute("aria-hidden")==="true"&&c===0||(c===0&&l.setAttribute("aria-hidden","true"),r.add(l),Ys.set(l,c+1))};fn.length&&fn[fn.length-1].disconnect(),i(t);let s=new MutationObserver(l=>{for(let u of l)if(!(u.type!=="childList"||u.addedNodes.length===0)&&![...n,...r].some(c=>c.contains(u.target))){for(let c of u.removedNodes)c instanceof Element&&(n.delete(c),r.delete(c));for(let c of u.addedNodes)(c instanceof HTMLElement||c instanceof SVGElement)&&(c.dataset.liveAnnouncer==="true"||c.dataset.reactAriaTopLayer==="true")?n.add(c):c instanceof Element&&i(c)}});s.observe(t,{childList:!0,subtree:!0});let o={observe(){s.observe(t,{childList:!0,subtree:!0})},disconnect(){s.disconnect()}};return fn.push(o),()=>{s.disconnect();for(let l of r){let u=Ys.get(l);u===1?(l.removeAttribute("aria-hidden"),Ys.delete(l)):Ys.set(l,u-1)}o===fn[fn.length-1]?(fn.pop(),fn.length&&fn[fn.length-1].observe()):fn.splice(fn.indexOf(o),1)}}function yj(e,t){let{triggerRef:n,popoverRef:r,isNonModal:i,isKeyboardDismissDisabled:a,shouldCloseOnInteractOutside:s,...o}=e,{overlayProps:l,underlayProps:u}=dE({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!i,isKeyboardDismissDisabled:a,shouldCloseOnInteractOutside:s},r),{overlayProps:c,arrowProps:d,placement:f}=lj({...o,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:i?t.close:null});return fE({isDisabled:i||!t.isOpen}),he(()=>{if(t.isOpen&&!i&&r.current)return qE([r.current])},[i,t.isOpen,r]),{popoverProps:de(l,c),arrowProps:d,underlayProps:u,placement:f}}const $j=y.createContext({});function xj(){var e;return(e=y.useContext($j))!==null&&e!==void 0?e:{}}const GE=_.createContext(null);function wj(e){let t=ha(),{portalContainer:n=t?null:document.body,isExiting:r}=e,[i,a]=y.useState(!1),s=y.useMemo(()=>({contain:i,setContain:a}),[i,a]),{getContainer:o}=xj();if(!e.portalContainer&&o&&(n=o()),!n)return null;let l=e.children;return e.disableFocusManagement||(l=_.createElement(wN,{restoreFocus:!0,contain:i&&!r},l)),l=_.createElement(GE.Provider,{value:s},_.createElement(lN,null,l)),co.createPortal(l,n)}function ZE(){let e=y.useContext(GE),t=e==null?void 0:e.setContain;he(()=>{t==null||t(!0)},[t])}function XE(e,t,n){let{overlayProps:r,underlayProps:i}=dE({...e,isOpen:t.isOpen,onClose:t.close},n);return fE({isDisabled:!t.isOpen}),ZE(),y.useEffect(()=>{if(t.isOpen)return qE([n.current])},[t.isOpen,n]),{modalProps:de(r),underlayProps:i}}var QE={};QE={calendar:"التقويم",day:"يوم",dayPeriod:"ص/م",endDate:"تاريخ الانتهاء",era:"العصر",hour:"الساعات",minute:"الدقائق",month:"الشهر",second:"الثواني",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.startDate} إلى ${e.endDate}`,selectedTimeDescription:e=>`الوقت المحدد: ${e.time}`,startDate:"تاريخ البدء",timeZoneName:"التوقيت",weekday:"اليوم",year:"السنة"};var JE={};JE={calendar:"Календар",day:"ден",dayPeriod:"пр.об./сл.об.",endDate:"Крайна дата",era:"ера",hour:"час",minute:"минута",month:"месец",second:"секунда",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.startDate} до ${e.endDate}`,selectedTimeDescription:e=>`Избрано време: ${e.time}`,startDate:"Начална дата",timeZoneName:"часова зона",weekday:"ден от седмицата",year:"година"};var e9={};e9={calendar:"Kalendář",day:"den",dayPeriod:"část dne",endDate:"Konečné datum",era:"letopočet",hour:"hodina",minute:"minuta",month:"měsíc",second:"sekunda",selectedDateDescription:e=>`Vybrané datum: ${e.date}`,selectedRangeDescription:e=>`Vybrané období: ${e.startDate} až ${e.endDate}`,selectedTimeDescription:e=>`Vybraný čas: ${e.time}`,startDate:"Počáteční datum",timeZoneName:"časové pásmo",weekday:"den v týdnu",year:"rok"};var t9={};t9={calendar:"Kalender",day:"dag",dayPeriod:"AM/PM",endDate:"Slutdato",era:"æra",hour:"time",minute:"minut",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tidspunkt: ${e.time}`,startDate:"Startdato",timeZoneName:"tidszone",weekday:"ugedag",year:"år"};var n9={};n9={calendar:"Kalender",day:"Tag",dayPeriod:"Tageshälfte",endDate:"Enddatum",era:"Epoche",hour:"Stunde",minute:"Minute",month:"Monat",second:"Sekunde",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.startDate} bis ${e.endDate}`,selectedTimeDescription:e=>`Ausgewählte Zeit: ${e.time}`,startDate:"Anfangsdatum",timeZoneName:"Zeitzone",weekday:"Wochentag",year:"Jahr"};var r9={};r9={calendar:"Ημερολόγιο",day:"ημέρα",dayPeriod:"π.μ./μ.μ.",endDate:"Ημερομηνία λήξης",era:"περίοδος",hour:"ώρα",minute:"λεπτό",month:"μήνας",second:"δευτερόλεπτο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.startDate} έως ${e.endDate}`,selectedTimeDescription:e=>`Επιλεγμένη ώρα: ${e.time}`,startDate:"Ημερομηνία έναρξης",timeZoneName:"ζώνη ώρας",weekday:"καθημερινή",year:"έτος"};var i9={};i9={era:"era",year:"year",month:"month",day:"day",hour:"hour",minute:"minute",second:"second",dayPeriod:"AM/PM",calendar:"Calendar",startDate:"Start Date",endDate:"End Date",weekday:"day of the week",timeZoneName:"time zone",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.startDate} to ${e.endDate}`,selectedTimeDescription:e=>`Selected Time: ${e.time}`};var a9={};a9={calendar:"Calendario",day:"día",dayPeriod:"a. m./p. m.",endDate:"Fecha final",era:"era",hour:"hora",minute:"minuto",month:"mes",second:"segundo",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Rango seleccionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora seleccionada: ${e.time}`,startDate:"Fecha de inicio",timeZoneName:"zona horaria",weekday:"día de la semana",year:"año"};var s9={};s9={calendar:"Kalender",day:"päev",dayPeriod:"enne/pärast lõunat",endDate:"Lõppkuupäev",era:"ajastu",hour:"tund",minute:"minut",month:"kuu",second:"sekund",selectedDateDescription:e=>`Valitud kuupäev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.startDate} kuni ${e.endDate}`,selectedTimeDescription:e=>`Valitud aeg: ${e.time}`,startDate:"Alguskuupäev",timeZoneName:"ajavöönd",weekday:"nädalapäev",year:"aasta"};var o9={};o9={calendar:"Kalenteri",day:"päivä",dayPeriod:"vuorokaudenaika",endDate:"Päättymispäivä",era:"aikakausi",hour:"tunti",minute:"minuutti",month:"kuukausi",second:"sekunti",selectedDateDescription:e=>`Valittu päivämäärä: ${e.date}`,selectedRangeDescription:e=>`Valittu aikaväli: ${e.startDate} – ${e.endDate}`,selectedTimeDescription:e=>`Valittu aika: ${e.time}`,startDate:"Alkamispäivä",timeZoneName:"aikavyöhyke",weekday:"viikonpäivä",year:"vuosi"};var l9={};l9={calendar:"Calendrier",day:"jour",dayPeriod:"cadran",endDate:"Date de fin",era:"ère",hour:"heure",minute:"minute",month:"mois",second:"seconde",selectedDateDescription:e=>`Date sélectionnée : ${e.date}`,selectedRangeDescription:e=>`Plage sélectionnée : ${e.startDate} au ${e.endDate}`,selectedTimeDescription:e=>`Heure choisie : ${e.time}`,startDate:"Date de début",timeZoneName:"fuseau horaire",weekday:"jour de la semaine",year:"année"};var u9={};u9={calendar:"לוח שנה",day:"יום",dayPeriod:"לפנה״צ/אחה״צ",endDate:"תאריך סיום",era:"תקופה",hour:"שעה",minute:"דקה",month:"חודש",second:"שנייה",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.startDate} עד ${e.endDate}`,selectedTimeDescription:e=>`זמן נבחר: ${e.time}`,startDate:"תאריך התחלה",timeZoneName:"אזור זמן",weekday:"יום בשבוע",year:"שנה"};var c9={};c9={calendar:"Kalendar",day:"dan",dayPeriod:"AM/PM",endDate:"Datum završetka",era:"era",hour:"sat",minute:"minuta",month:"mjesec",second:"sekunda",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Odabrano vrijeme: ${e.time}`,startDate:"Datum početka",timeZoneName:"vremenska zona",weekday:"dan u tjednu",year:"godina"};var d9={};d9={calendar:"Naptár",day:"nap",dayPeriod:"napszak",endDate:"Befejező dátum",era:"éra",hour:"óra",minute:"perc",month:"hónap",second:"másodperc",selectedDateDescription:e=>`Kijelölt dátum: ${e.date}`,selectedRangeDescription:e=>`Kijelölt tartomány: ${e.startDate}–${e.endDate}`,selectedTimeDescription:e=>`Kijelölt idő: ${e.time}`,startDate:"Kezdő dátum",timeZoneName:"időzóna",weekday:"hét napja",year:"év"};var f9={};f9={calendar:"Calendario",day:"giorno",dayPeriod:"AM/PM",endDate:"Data finale",era:"era",hour:"ora",minute:"minuto",month:"mese",second:"secondo",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: da ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Ora selezionata: ${e.time}`,startDate:"Data iniziale",timeZoneName:"fuso orario",weekday:"giorno della settimana",year:"anno"};var h9={};h9={calendar:"カレンダー",day:"日",dayPeriod:"午前/午後",endDate:"終了日",era:"時代",hour:"時",minute:"分",month:"月",second:"秒",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.startDate} から ${e.endDate}`,selectedTimeDescription:e=>`選択した時間 : ${e.time}`,startDate:"開始日",timeZoneName:"タイムゾーン",weekday:"曜日",year:"年"};var p9={};p9={calendar:"달력",day:"일",dayPeriod:"오전/오후",endDate:"종료일",era:"연호",hour:"시",minute:"분",month:"월",second:"초",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.startDate} ~ ${e.endDate}`,selectedTimeDescription:e=>`선택 시간: ${e.time}`,startDate:"시작일",timeZoneName:"시간대",weekday:"요일",year:"년"};var m9={};m9={calendar:"Kalendorius",day:"diena",dayPeriod:"iki pietų / po pietų",endDate:"Pabaigos data",era:"era",hour:"valanda",minute:"minutė",month:"mėnuo",second:"sekundė",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: nuo ${e.startDate} iki ${e.endDate}`,selectedTimeDescription:e=>`Pasirinktas laikas: ${e.time}`,startDate:"Pradžios data",timeZoneName:"laiko juosta",weekday:"savaitės diena",year:"metai"};var g9={};g9={calendar:"Kalendārs",day:"diena",dayPeriod:"priekšpusdienā/pēcpusdienā",endDate:"Beigu datums",era:"ēra",hour:"stundas",minute:"minūtes",month:"mēnesis",second:"sekundes",selectedDateDescription:e=>`Atlasītais datums: ${e.date}`,selectedRangeDescription:e=>`Atlasītais diapazons: no ${e.startDate} līdz ${e.endDate}`,selectedTimeDescription:e=>`Atlasītais laiks: ${e.time}`,startDate:"Sākuma datums",timeZoneName:"laika josla",weekday:"nedēļas diena",year:"gads"};var v9={};v9={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Sluttdato",era:"tidsalder",hour:"time",minute:"minutt",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt område: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tid: ${e.time}`,startDate:"Startdato",timeZoneName:"tidssone",weekday:"ukedag",year:"år"};var b9={};b9={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Einddatum",era:"tijdperk",hour:"uur",minute:"minuut",month:"maand",second:"seconde",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.startDate} tot ${e.endDate}`,selectedTimeDescription:e=>`Geselecteerde tijd: ${e.time}`,startDate:"Startdatum",timeZoneName:"tijdzone",weekday:"dag van de week",year:"jaar"};var y9={};y9={calendar:"Kalendarz",day:"dzień",dayPeriod:"rano / po południu / wieczorem",endDate:"Data końcowa",era:"era",hour:"godzina",minute:"minuta",month:"miesiąc",second:"sekunda",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Wybrany czas: ${e.time}`,startDate:"Data początkowa",timeZoneName:"strefa czasowa",weekday:"dzień tygodnia",year:"rok"};var $9={};$9={calendar:"Calendário",day:"dia",dayPeriod:"AM/PM",endDate:"Data final",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data inicial",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"};var x9={};x9={calendar:"Calendário",day:"dia",dayPeriod:"am/pm",endDate:"Data de Término",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data de Início",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"};var w9={};w9={calendar:"Calendar",day:"zi",dayPeriod:"a.m/p.m.",endDate:"Dată final",era:"eră",hour:"oră",minute:"minut",month:"lună",second:"secundă",selectedDateDescription:e=>`Dată selectată: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: de la ${e.startDate} până la ${e.endDate}`,selectedTimeDescription:e=>`Ora selectată: ${e.time}`,startDate:"Dată început",timeZoneName:"fus orar",weekday:"ziua din săptămână",year:"an"};var D9={};D9={calendar:"Календарь",day:"день",dayPeriod:"AM/PM",endDate:"Дата окончания",era:"эра",hour:"час",minute:"минута",month:"месяц",second:"секунда",selectedDateDescription:e=>`Выбранная дата: ${e.date}`,selectedRangeDescription:e=>`Выбранный диапазон: с ${e.startDate} по ${e.endDate}`,selectedTimeDescription:e=>`Выбранное время: ${e.time}`,startDate:"Дата начала",timeZoneName:"часовой пояс",weekday:"день недели",year:"год"};var _9={};_9={calendar:"Kalendár",day:"deň",dayPeriod:"AM/PM",endDate:"Dátum ukončenia",era:"letopočet",hour:"hodina",minute:"minúta",month:"mesiac",second:"sekunda",selectedDateDescription:e=>`Vybratý dátum: ${e.date}`,selectedRangeDescription:e=>`Vybratý rozsah: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Vybratý čas: ${e.time}`,startDate:"Dátum začatia",timeZoneName:"časové pásmo",weekday:"deň týždňa",year:"rok"};var E9={};E9={calendar:"Koledar",day:"dan",dayPeriod:"dop/pop",endDate:"Datum konca",era:"doba",hour:"ura",minute:"minuta",month:"mesec",second:"sekunda",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano območje: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izbrani čas: ${e.time}`,startDate:"Datum začetka",timeZoneName:"časovni pas",weekday:"dan v tednu",year:"leto"};var S9={};S9={calendar:"Kalendar",day:"дан",dayPeriod:"пре подне/по подне",endDate:"Datum završetka",era:"ера",hour:"сат",minute:"минут",month:"месец",second:"секунд",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani opseg: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izabrano vreme: ${e.time}`,startDate:"Datum početka",timeZoneName:"временска зона",weekday:"дан у недељи",year:"година"};var C9={};C9={calendar:"Kalender",day:"dag",dayPeriod:"fm/em",endDate:"Slutdatum",era:"era",hour:"timme",minute:"minut",month:"månad",second:"sekund",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.startDate} till ${e.endDate}`,selectedTimeDescription:e=>`Vald tid: ${e.time}`,startDate:"Startdatum",timeZoneName:"tidszon",weekday:"veckodag",year:"år"};var k9={};k9={calendar:"Takvim",day:"gün",dayPeriod:"ÖÖ/ÖS",endDate:"Bitiş Tarihi",era:"çağ",hour:"saat",minute:"dakika",month:"ay",second:"saniye",selectedDateDescription:e=>`Seçilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Seçilen Aralık: ${e.startDate} - ${e.endDate}`,selectedTimeDescription:e=>`Seçilen Zaman: ${e.time}`,startDate:"Başlangıç Tarihi",timeZoneName:"saat dilimi",weekday:"haftanın günü",year:"yıl"};var P9={};P9={calendar:"Календар",day:"день",dayPeriod:"дп/пп",endDate:"Дата завершення",era:"ера",hour:"година",minute:"хвилина",month:"місяць",second:"секунда",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.startDate} — ${e.endDate}`,selectedTimeDescription:e=>`Вибраний час: ${e.time}`,startDate:"Дата початку",timeZoneName:"часовий пояс",weekday:"день тижня",year:"рік"};var T9={};T9={calendar:"日历",day:"日",dayPeriod:"上午/下午",endDate:"结束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`选定的时间:${e.time}`,startDate:"开始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};var R9={};R9={calendar:"日曆",day:"日",dayPeriod:"上午/下午",endDate:"結束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`選定的時間:${e.time}`,startDate:"開始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};var jf={};jf={"ar-AE":QE,"bg-BG":JE,"cs-CZ":e9,"da-DK":t9,"de-DE":n9,"el-GR":r9,"en-US":i9,"es-ES":a9,"et-EE":s9,"fi-FI":o9,"fr-FR":l9,"he-IL":u9,"hr-HR":c9,"hu-HU":d9,"it-IT":f9,"ja-JP":h9,"ko-KR":p9,"lt-LT":m9,"lv-LV":g9,"nb-NO":v9,"nl-NL":b9,"pl-PL":y9,"pt-BR":$9,"pt-PT":x9,"ro-RO":w9,"ru-RU":D9,"sk-SK":_9,"sl-SI":E9,"sr-SP":S9,"sv-SE":C9,"tr-TR":k9,"uk-UA":P9,"zh-CN":T9,"zh-TW":R9};function M9(e,t,n){let{direction:r}=Qe(),i=y.useMemo(()=>Lf(t),[t]),a=l=>{if(l.currentTarget.contains(l.target)&&(l.altKey&&(l.key==="ArrowDown"||l.key==="ArrowUp")&&"setOpen"in e&&(l.preventDefault(),l.stopPropagation(),e.setOpen(!0)),!n))switch(l.key){case"ArrowLeft":l.preventDefault(),l.stopPropagation(),r==="rtl"?i.focusNext():i.focusPrevious();break;case"ArrowRight":l.preventDefault(),l.stopPropagation(),r==="rtl"?i.focusPrevious():i.focusNext();break}},s=()=>{var l;let u=(l=window.event)===null||l===void 0?void 0:l.target,c=an(t.current,{tabbable:!0});if(u&&(c.currentNode=u,u=c.previousNode()),!u){let d;do d=c.lastChild(),d&&(u=d);while(d)}for(;u!=null&&u.hasAttribute("data-placeholder");){let d=c.previousNode();if(d&&d.hasAttribute("data-placeholder"))u=d;else break}u&&u.focus()},{pressProps:o}=x$({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(l){l.pointerType==="mouse"&&s()},onPress(l){l.pointerType!=="mouse"&&s()}});return de(o,{onKeyDown:a})}function Dj(e){return e&&e.__esModule?e.default:e}const F9=new WeakMap,oc="__role_"+Date.now(),A9="__focusManager_"+Date.now();function O9(e,t,n){var r;let{isInvalid:i,validationErrors:a,validationDetails:s}=t.displayValidation,{labelProps:o,fieldProps:l,descriptionProps:u,errorMessageProps:c}=D7({...e,labelElementType:"span",isInvalid:i,errorMessage:e.errorMessage||a}),d=y.useRef(null),{focusWithinProps:f}=Ms({...e,onFocusWithin(P){var E;d.current=t.value,(E=e.onFocus)===null||E===void 0||E.call(e,P)},onBlurWithin:P=>{var E;t.confirmPlaceholder(),t.value!==d.current&&t.commitValidation(),(E=e.onBlur)===null||E===void 0||E.call(e,P)},onFocusWithinChange:e.onFocusChange}),h=Sn(Dj(jf),"@react-aria/datepicker"),p=t.maxGranularity==="hour"?"selectedTimeDescription":"selectedDateDescription",g=t.maxGranularity==="hour"?"time":"date",b=t.value?h.format(p,{[g]:t.formatValue({month:"long"})}):"",v=y$(b),m=e[oc]==="presentation"?l["aria-describedby"]:[v["aria-describedby"],l["aria-describedby"]].filter(Boolean).join(" ")||void 0,$=e[A9],w=y.useMemo(()=>$||Lf(n),[$,n]),D=M9(t,n,e[oc]==="presentation");F9.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:[o.id,e["aria-labelledby"]].filter(Boolean).join(" ")||void 0,ariaDescribedBy:m,focusManager:w});let S=y.useRef(e.autoFocus),k;e[oc]==="presentation"?k={role:"presentation"}:k=de(l,{role:"group","aria-disabled":e.isDisabled||void 0,"aria-describedby":m}),y.useEffect(()=>{S.current&&w.focusFirst(),S.current=!1},[w]),ML(e.inputRef,t.value,t.setValue),YN({...e,focus(){w.focusFirst()}},t,e.inputRef);let x={type:"hidden",name:e.name,value:((r=t.value)===null||r===void 0?void 0:r.toString())||""};e.validationBehavior==="native"&&(x.type="text",x.hidden=!0,x.required=e.isRequired,x.onChange=()=>{});let T=Xt(e);return{labelProps:{...o,onClick:()=>{w.focusFirst()}},fieldProps:de(T,k,D,f,{onKeyDown(P){e.onKeyDown&&e.onKeyDown(P)},onKeyUp(P){e.onKeyUp&&e.onKeyUp(P)}}),inputProps:x,descriptionProps:u,errorMessageProps:c,isInvalid:i,validationErrors:a,validationDetails:s}}function _j(e,t,n){var r;let i=O9(e,t,n);return i.inputProps.value=((r=t.timeValue)===null||r===void 0?void 0:r.toString())||"",i}function Ej(e){return e&&e.__esModule?e.default:e}function B9(){let{locale:e}=Qe(),t=$8(Ej(jf),"@react-aria/datepicker");return y.useMemo(()=>{try{return new Intl.DisplayNames(e,{type:"dateTimeField"})}catch{return new Sj(e,t)}},[e,t])}class Sj{of(t){return this.dictionary.getStringForLocale(t,this.locale)}constructor(t,n){this.locale=t,this.dictionary=n}}var I9={};I9={Empty:"فارغ"};var L9={};L9={Empty:"Изпразни"};var N9={};N9={Empty:"Prázdné"};var j9={};j9={Empty:"Tom"};var z9={};z9={Empty:"Leer"};var V9={};V9={Empty:"Άδειο"};var W9={};W9={Empty:"Empty"};var U9={};U9={Empty:"Vacío"};var H9={};H9={Empty:"Tühjenda"};var K9={};K9={Empty:"Tyhjä"};var Y9={};Y9={Empty:"Vide"};var q9={};q9={Empty:"ריק"};var G9={};G9={Empty:"Prazno"};var Z9={};Z9={Empty:"Üres"};var X9={};X9={Empty:"Vuoto"};var Q9={};Q9={Empty:"空"};var J9={};J9={Empty:"비어 있음"};var eS={};eS={Empty:"Tuščias"};var tS={};tS={Empty:"Tukšs"};var nS={};nS={Empty:"Tom"};var rS={};rS={Empty:"Leeg"};var iS={};iS={Empty:"Pusty"};var aS={};aS={Empty:"Vazio"};var sS={};sS={Empty:"Vazio"};var oS={};oS={Empty:"Gol"};var lS={};lS={Empty:"Не заполнено"};var uS={};uS={Empty:"Prázdne"};var cS={};cS={Empty:"Prazen"};var dS={};dS={Empty:"Prazno"};var fS={};fS={Empty:"Tomt"};var hS={};hS={Empty:"Boş"};var pS={};pS={Empty:"Пусто"};var mS={};mS={Empty:"空"};var gS={};gS={Empty:"空白"};var vS={};vS={"ar-AE":I9,"bg-BG":L9,"cs-CZ":N9,"da-DK":j9,"de-DE":z9,"el-GR":V9,"en-US":W9,"es-ES":U9,"et-EE":H9,"fi-FI":K9,"fr-FR":Y9,"he-IL":q9,"hr-HR":G9,"hu-HU":Z9,"it-IT":X9,"ja-JP":Q9,"ko-KR":J9,"lt-LT":eS,"lv-LV":tS,"nb-NO":nS,"nl-NL":rS,"pl-PL":iS,"pt-BR":aS,"pt-PT":sS,"ro-RO":oS,"ru-RU":lS,"sk-SK":uS,"sl-SI":cS,"sr-SP":dS,"sv-SE":fS,"tr-TR":hS,"uk-UA":pS,"zh-CN":mS,"zh-TW":gS};function Cj(e){return e&&e.__esModule?e.default:e}function kj(e){const t=y.useRef();let{value:n,textValue:r,minValue:i,maxValue:a,isDisabled:s,isReadOnly:o,isRequired:l,onIncrement:u,onIncrementPage:c,onDecrement:d,onDecrementPage:f,onDecrementToMin:h,onIncrementToMax:p}=e;const g=Sn(Cj(vS),"@react-aria/spinbutton"),b=()=>clearTimeout(t.current);y.useEffect(()=>()=>b(),[]);let v=E=>{if(!(E.ctrlKey||E.metaKey||E.shiftKey||E.altKey||o))switch(E.key){case"PageUp":if(c){E.preventDefault(),c==null||c();break}case"ArrowUp":case"Up":u&&(E.preventDefault(),u==null||u());break;case"PageDown":if(f){E.preventDefault(),f==null||f();break}case"ArrowDown":case"Down":d&&(E.preventDefault(),d==null||d());break;case"Home":h&&(E.preventDefault(),h==null||h());break;case"End":p&&(E.preventDefault(),p==null||p());break}},m=y.useRef(!1),$=()=>{m.current=!0},w=()=>{m.current=!1},D=r===""?g.format("Empty"):(r||`${n}`).replace("-","−");y.useEffect(()=>{m.current&&(NN("assertive"),Eg(D,"assertive"))},[D]);const S=pt(E=>{b(),u==null||u(),t.current=window.setTimeout(()=>{(a===void 0||isNaN(a)||n===void 0||isNaN(n)||n<a)&&S(60)},E)}),k=pt(E=>{b(),d==null||d(),t.current=window.setTimeout(()=>{(i===void 0||isNaN(i)||n===void 0||isNaN(n)||n>i)&&k(60)},E)});let x=E=>{E.preventDefault()},{addGlobalListener:T,removeAllGlobalListeners:P}=t7();return{spinButtonProps:{role:"spinbutton","aria-valuenow":n!==void 0&&!isNaN(n)?n:void 0,"aria-valuetext":D,"aria-valuemin":i,"aria-valuemax":a,"aria-disabled":s||void 0,"aria-readonly":o||void 0,"aria-required":l||void 0,onKeyDown:v,onFocus:$,onBlur:w},incrementButtonProps:{onPressStart:()=>{S(400),T(window,"contextmenu",x)},onPressEnd:()=>{b(),P()},onFocus:$,onBlur:w},decrementButtonProps:{onPressStart:()=>{k(400),T(window,"contextmenu",x)},onPressEnd:()=>{b(),P()},onFocus:$,onBlur:w}}}function Pj(e,t,n){let r=y.useRef(""),{locale:i}=Qe(),a=B9(),{ariaLabel:s,ariaLabelledBy:o,ariaDescribedBy:l,focusManager:u}=F9.get(t),c=e.isPlaceholder?"":e.text,d=y.useMemo(()=>t.dateFormatter.resolvedOptions(),[t.dateFormatter]),f=xn({month:"long",timeZone:d.timeZone}),h=xn({hour:"numeric",hour12:d.hour12,timeZone:d.timeZone});if(e.type==="month"&&!e.isPlaceholder){let C=f.format(t.dateValue);c=C!==c?`${c} – ${C}`:C}else e.type==="hour"&&!e.isPlaceholder&&(c=h.format(t.dateValue));let{spinButtonProps:p}=kj({value:e.value,textValue:c,minValue:e.minValue,maxValue:e.maxValue,isDisabled:t.isDisabled,isReadOnly:t.isReadOnly||!e.isEditable,isRequired:t.isRequired,onIncrement:()=>{r.current="",t.increment(e.type)},onDecrement:()=>{r.current="",t.decrement(e.type)},onIncrementPage:()=>{r.current="",t.incrementPage(e.type)},onDecrementPage:()=>{r.current="",t.decrementPage(e.type)},onIncrementToMax:()=>{r.current="",t.setSegment(e.type,e.maxValue)},onDecrementToMin:()=>{r.current="",t.setSegment(e.type,e.minValue)}}),g=y.useMemo(()=>new o7(i,{maximumFractionDigits:0}),[i]),b=()=>{if(e.text===e.placeholder&&u.focusPrevious(),g.isValidPartialNumber(e.text)&&!t.isReadOnly&&!e.isPlaceholder){let C=e.text.slice(0,-1),O=g.parse(C);C=O===0?"":C,C.length===0||O===0?t.clearSegment(e.type):t.setSegment(e.type,O),r.current=C}else e.type==="dayPeriod"&&t.clearSegment(e.type)},v=C=>{if(C.key==="a"&&(xs()?C.metaKey:C.ctrlKey)&&C.preventDefault(),!(C.ctrlKey||C.metaKey||C.shiftKey||C.altKey))switch(C.key){case"Backspace":case"Delete":C.preventDefault(),C.stopPropagation(),b();break}},{startsWith:m}=WL({sensitivity:"base"}),$=xn({hour:"numeric",hour12:!0}),w=y.useMemo(()=>{let C=new Date;return C.setHours(0),$.formatToParts(C).find(O=>O.type==="dayPeriod").value},[$]),D=y.useMemo(()=>{let C=new Date;return C.setHours(12),$.formatToParts(C).find(O=>O.type==="dayPeriod").value},[$]),S=xn({year:"numeric",era:"narrow",timeZone:"UTC"}),k=y.useMemo(()=>{if(e.type!=="era")return[];let C=Oe(new Je(1,1,1),t.calendar),O=t.calendar.getEras().map(N=>{let X=C.set({year:1,month:1,day:1,era:N}).toDate("UTC"),je=S.formatToParts(X).find($e=>$e.type==="era").value;return{era:N,formatted:je}}),I=Tj(O.map(N=>N.formatted));if(I)for(let N of O)N.formatted=N.formatted.slice(I);return O},[S,t.calendar,e.type]),x=C=>{if(t.isDisabled||t.isReadOnly)return;let O=r.current+C;switch(e.type){case"dayPeriod":if(m(w,C))t.setSegment("dayPeriod",0);else if(m(D,C))t.setSegment("dayPeriod",12);else break;u.focusNext();break;case"era":{let I=k.find(N=>m(N.formatted,C));I&&(t.setSegment("era",I.era),u.focusNext());break}case"day":case"hour":case"minute":case"second":case"month":case"year":{if(!g.isValidPartialNumber(O))return;let I=g.parse(O),N=I,X=e.minValue===0;if(e.type==="hour"&&t.dateFormatter.resolvedOptions().hour12){switch(t.dateFormatter.resolvedOptions().hourCycle){case"h11":I>11&&(N=g.parse(C));break;case"h12":X=!1,I>12&&(N=g.parse(C));break}e.value>=12&&I>1&&(I+=12)}else I>e.maxValue&&(N=g.parse(C));if(isNaN(I))return;let Q=N!==0||X;Q&&t.setSegment(e.type,N),+(I+"0")>e.maxValue||O.length>=String(e.maxValue).length?(r.current="",Q&&u.focusNext()):r.current=O;break}}},T=()=>{r.current="",i7(n.current,{containingElement:Ff(n.current)}),window.getSelection().collapse(n.current)},P=y.useRef("");as(n,"beforeinput",C=>{switch(C.preventDefault(),C.inputType){case"deleteContentBackward":case"deleteContentForward":g.isValidPartialNumber(e.text)&&!t.isReadOnly&&b();break;case"insertCompositionText":P.current=n.current.textContent,n.current.textContent=n.current.textContent;break;default:C.data!=null&&x(C.data);break}}),as(n,"input",C=>{let{inputType:O,data:I}=C;switch(O){case"insertCompositionText":n.current.textContent=P.current,(m(w,I)||m(D,I))&&x(I);break}}),he(()=>{let C=n.current;return()=>{document.activeElement===C&&(u.focusPrevious()||u.focusNext())}},[n,u]);let E=Mf()||e.type==="timeZoneName"?{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuetext":null,"aria-valuenow":null}:{},F=y.useMemo(()=>t.segments.find(C=>C.isEditable),[t.segments]);e!==F&&!t.isInvalid&&(l=void 0);let R=Qn(),M=!t.isDisabled&&!t.isReadOnly&&e.isEditable,z=e.type==="literal"?"":a.of(e.type),B=jl({"aria-label":`${z}${s?`, ${s}`:""}${o?", ":""}`,"aria-labelledby":o});return e.type==="literal"?{segmentProps:{"aria-hidden":!0}}:{segmentProps:de(p,B,{id:R,...E,"aria-invalid":t.isInvalid?"true":void 0,"aria-describedby":l,"aria-readonly":t.isReadOnly||!e.isEditable?"true":void 0,"data-placeholder":e.isPlaceholder||void 0,contentEditable:M,suppressContentEditableWarning:M,spellCheck:M?"false":void 0,autoCapitalize:M?"off":void 0,autoCorrect:M?"off":void 0,[parseInt(_.version,10)>=17?"enterKeyHint":"enterkeyhint"]:M?"next":void 0,inputMode:t.isDisabled||e.type==="dayPeriod"||e.type==="era"||!M?void 0:"numeric",tabIndex:t.isDisabled?void 0:0,onKeyDown:v,onFocus:T,style:{caretColor:"transparent"},onPointerDown(C){C.stopPropagation()},onMouseDown(C){C.stopPropagation()}})}}function Tj(e){e.sort();let t=e[0],n=e[e.length-1];for(let r=0;r<t.length;r++)if(t[r]!==n[r])return r;return 0}function Rj(e){return e&&e.__esModule?e.default:e}function Mj(e,t,n){var r,i;let a=Sn(Rj(jf),"@react-aria/datepicker"),{isInvalid:s,validationErrors:o,validationDetails:l}=t.displayValidation,{labelProps:u,fieldProps:c,descriptionProps:d,errorMessageProps:f}=D7({...e,labelElementType:"span",isInvalid:s,errorMessage:e.errorMessage||o}),h=c["aria-labelledby"]||c.id,{locale:p}=Qe(),g=t.formatValue(p,{month:"long"}),b=g?a.format("selectedRangeDescription",{startDate:g.start,endDate:g.end}):"",v=y$(b),m={"aria-label":a.format("startDate"),"aria-labelledby":h},$={"aria-label":a.format("endDate"),"aria-labelledby":h},w=Qn(),D=Qn(),S=M9(t,n),k=[v["aria-describedby"],c["aria-describedby"]].filter(Boolean).join(" ")||void 0,x=y.useMemo(()=>Lf(n,{accept:M=>M.id!==w}),[n,w]),T={[A9]:x,[oc]:"presentation","aria-describedby":k,placeholderValue:e.placeholderValue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,granularity:e.granularity,shouldForceLeadingZeros:e.shouldForceLeadingZeros,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isRequired:e.isRequired,validationBehavior:e.validationBehavior},P=Xt(e),{focusWithinProps:E}=Ms({...e,isDisabled:t.isOpen,onBlurWithin:e.onBlur,onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange}),F=y.useRef(Li),R=y.useRef(Li);return{groupProps:de(P,S,c,v,E,{role:"group","aria-disabled":e.isDisabled||null,"aria-describedby":k,onKeyDown(M){t.isOpen||e.onKeyDown&&e.onKeyDown(M)},onKeyUp(M){t.isOpen||e.onKeyUp&&e.onKeyUp(M)}}),labelProps:{...u,onClick:()=>{x.focusFirst()}},buttonProps:{...v,id:w,"aria-haspopup":"dialog","aria-label":a.format("calendar"),"aria-labelledby":`${w} ${h}`,"aria-describedby":k,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:D,"aria-labelledby":`${w} ${h}`},startFieldProps:{...m,...T,value:(r=t.value)===null||r===void 0?void 0:r.start,onChange:M=>t.setDateTime("start",M),autoFocus:e.autoFocus,name:e.startName,[sd]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(M){F.current=M,t.updateValidation(od(M,R.current))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},endFieldProps:{...$,...T,value:(i=t.value)===null||i===void 0?void 0:i.end,onChange:M=>t.setDateTime("end",M),name:e.endName,[sd]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(M){R.current=M,t.updateValidation(od(F.current,M))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},descriptionProps:d,errorMessageProps:f,calendarProps:{autoFocus:!0,value:t.dateRange,onChange:t.setDateRange,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,allowsNonContiguousRanges:e.allowsNonContiguousRanges,defaultFocusedValue:t.dateRange?void 0:e.placeholderValue,isInvalid:t.isInvalid,errorMessage:typeof e.errorMessage=="function"?e.errorMessage(t.displayValidation):e.errorMessage||t.displayValidation.validationErrors.join(" ")},isInvalid:s,validationErrors:o,validationDetails:l}}function Fj(e,t){let{role:n="dialog"}=e,r=Xc();r=e["aria-label"]?void 0:r;let i=y.useRef(!1);return y.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){nd(t.current);let a=setTimeout(()=>{document.activeElement===t.current&&(i.current=!0,t.current&&(t.current.blur(),nd(t.current)),i.current=!1)},500);return()=>{clearTimeout(a)}}},[t]),ZE(),{dialogProps:{...Xt(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||r,onBlur:a=>{i.current&&a.stopPropagation()}},titleProps:{id:r}}}function os(e,t,n){return t!=null&&e.compare(t)<0||n!=null&&e.compare(n)>0}function Tg(e,t,n,r,i){let a={};for(let o in t)a[o]=Math.floor(t[o]/2),a[o]>0&&t[o]%2===0&&a[o]--;let s=Ui(e,t,n).subtract(a);return ml(e,s,t,n,r,i)}function Ui(e,t,n,r,i){let a=e;return t.years?a=vI(e):t.months?a=na(e):t.weeks&&(a=ll(e,n)),ml(e,a,t,n,r,i)}function Rg(e,t,n,r,i){let a={...t};t.days?a.days--:t.weeks?a.weeks--:t.months?a.months--:t.years&&a.years--;let s=Ui(e,t,n).subtract(a);return ml(e,s,t,n,r,i)}function ml(e,t,n,r,i,a){return i&&e.compare(i)>=0&&(t=l$(t,Ui(Zt(i),n,r))),a&&e.compare(a)<=0&&(t=o$(t,Rg(Zt(a),n,r))),t}function Fr(e,t,n){return t&&(e=l$(e,Zt(t))),n&&(e=o$(e,Zt(n))),e}function bS(e,t,n){if(!n)return e;for(;e.compare(t)>=0&&n(e);)e=e.subtract({days:1});if(e.compare(t)>=0)return e}function Aj(e){let t=y.useMemo(()=>new ri(e.locale),[e.locale]),n=y.useMemo(()=>t.resolvedOptions(),[t]),{locale:r,createCalendar:i,visibleDuration:a={months:1},minValue:s,maxValue:o,selectionAlignment:l,isDateUnavailable:u,pageBehavior:c="visible"}=e,d=y.useMemo(()=>i(n.calendar),[i,n.calendar]),[f,h]=aa(e.value,e.defaultValue,e.onChange),p=y.useMemo(()=>f?Oe(Zt(f),d):null,[f,d]),g=y.useMemo(()=>f&&"timeZone"in f?f.timeZone:n.timeZone,[f,n.timeZone]),b=y.useMemo(()=>e.focusedValue?Fr(Oe(Zt(e.focusedValue),d),s,o):void 0,[e.focusedValue,d,s,o]),v=y.useMemo(()=>Fr(e.defaultFocusedValue?Oe(Zt(e.defaultFocusedValue),d):p||Oe(Il(g),d),s,o),[e.defaultFocusedValue,p,g,d,s,o]),[m,$]=aa(b,v,e.onFocusChange),[w,D]=y.useState(()=>{switch(l){case"start":return Ui(m,a,r,s,o);case"end":return Rg(m,a,r,s,o);case"center":default:return Tg(m,a,r,s,o)}}),[S,k]=y.useState(e.autoFocus||!1),x=y.useMemo(()=>{let C={...a};return C.days?C.days--:C.days=-1,w.add(C)},[w,a]),[T,P]=y.useState(d.identifier);if(d.identifier!==T){let C=Oe(m,d);D(Tg(C,a,r,s,o)),$(C),P(d.identifier)}os(m,s,o)?$(Fr(m,s,o)):m.compare(w)<0?D(Rg(m,a,r,s,o)):m.compare(x)>0&&D(Ui(m,a,r,s,o));function E(C){C=Fr(C,s,o),$(C)}function F(C){if(!e.isDisabled&&!e.isReadOnly){if(C===null){h(null);return}if(C=Fr(C,s,o),C=bS(C,w,u),!C)return;C=Oe(C,(f==null?void 0:f.calendar)||new Ft),f&&"hour"in f?h(f.set(C)):h(C)}}let R=y.useMemo(()=>p?u&&u(p)?!0:os(p,s,o):!1,[p,u,s,o]),M=e.isInvalid||e.validationState==="invalid"||R,z=M?"invalid":null,B=y.useMemo(()=>c==="visible"?a:Gh(a),[c,a]);return{isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,value:p,setValue:F,visibleRange:{start:w,end:x},minValue:s,maxValue:o,focusedDate:m,timeZone:g,validationState:z,isValueInvalid:M,setFocusedDate(C){E(C),k(!0)},focusNextDay(){E(m.add({days:1}))},focusPreviousDay(){E(m.subtract({days:1}))},focusNextRow(){a.days?this.focusNextPage():(a.weeks||a.months||a.years)&&E(m.add({weeks:1}))},focusPreviousRow(){a.days?this.focusPreviousPage():(a.weeks||a.months||a.years)&&E(m.subtract({weeks:1}))},focusNextPage(){let C=w.add(B);$(Fr(m.add(B),s,o)),D(Ui(ml(m,C,B,r,s,o),B,r))},focusPreviousPage(){let C=w.subtract(B);$(Fr(m.subtract(B),s,o)),D(Ui(ml(m,C,B,r,s,o),B,r))},focusSectionStart(){a.days?E(w):a.weeks?E(ll(m,r)):(a.months||a.years)&&E(na(m))},focusSectionEnd(){a.days?E(x):a.weeks?E($I(m,r)):(a.months||a.years)&&E(Uc(m))},focusNextSection(C){if(!C&&!a.days){E(m.add(Gh(a)));return}a.days?this.focusNextPage():a.weeks?E(m.add({months:1})):(a.months||a.years)&&E(m.add({years:1}))},focusPreviousSection(C){if(!C&&!a.days){E(m.subtract(Gh(a)));return}a.days?this.focusPreviousPage():a.weeks?E(m.subtract({months:1})):(a.months||a.years)&&E(m.subtract({years:1}))},selectFocusedDate(){F(m)},selectDate(C){F(C)},isFocused:S,setFocused:k,isInvalid(C){return os(C,s,o)},isSelected(C){return p!=null&&Ze(C,p)&&!this.isCellDisabled(C)&&!this.isCellUnavailable(C)},isCellFocused(C){return S&&m&&Ze(C,m)},isCellDisabled(C){return e.isDisabled||C.compare(w)<0||C.compare(x)>0||this.isInvalid(C,s,o)},isCellUnavailable(C){return e.isDateUnavailable&&e.isDateUnavailable(C)},isPreviousVisibleRangeInvalid(){let C=w.subtract({days:1});return Ze(C,w)||this.isInvalid(C,s,o)},isNextVisibleRangeInvalid(){let C=x.add({days:1});return Ze(C,x)||this.isInvalid(C,s,o)},getDatesInWeek(C,O=w){let I=O.add({weeks:C}),N=[];I=ll(I,r);let X=kf(I,r);for(let Q=0;Q<X;Q++)N.push(null);for(;N.length<7;){N.push(I);let Q=I.add({days:1});if(Ze(I,Q))break;I=Q}for(;N.length<7;)N.push(null);return N}}}function Gh(e){let t={...e};for(let n in e)t[n]=1;return t}function Oj(e){let{value:t,defaultValue:n,onChange:r,createCalendar:i,locale:a,visibleDuration:s={months:1},minValue:o,maxValue:l,...u}=e,[c,d]=aa(t,n||null,r),[f,h]=y.useState(null),p="center";if(c&&c.start&&c.end){let O=Tg(Zt(c.start),s,a,o,l).add(s).subtract({days:1});c.end.compare(O)>0&&(p="start")}let g=y.useRef(null),[b,v]=y.useState(null),m=y.useMemo(()=>l$(o,b==null?void 0:b.start),[o,b]),$=y.useMemo(()=>o$(l,b==null?void 0:b.end),[l,b]),w=Aj({...u,value:c&&c.start,createCalendar:i,locale:a,visibleDuration:s,minValue:m,maxValue:$,selectionAlignment:p}),D=C=>{C&&e.isDateUnavailable&&!e.allowsNonContiguousRanges?(g.current={start:k5(C,w,-1),end:k5(C,w,1)},v(g.current)):(g.current=null,v(null))},[S,k]=y.useState(w.visibleRange);(!ag(w.visibleRange.start,S.start)||!ag(w.visibleRange.end,S.end))&&(D(f),k(w.visibleRange));let x=C=>{C?(h(C),D(C)):(h(null),D(null))},T=f?Zh(f,w.focusedDate):c&&Zh(c.start,c.end),P=C=>{if(!e.isReadOnly&&(C=Fr(C,m,$),C=bS(C,w.visibleRange.start,e.isDateUnavailable),!!C))if(!f)x(C);else{let O=Zh(f,C);d({start:C5(O.start,c==null?void 0:c.start),end:C5(O.end,c==null?void 0:c.end)}),x(null)}},[E,F]=y.useState(!1),{isDateUnavailable:R}=e,M=y.useMemo(()=>!c||f?!1:R&&(R(c.start)||R(c.end))?!0:os(c.start,o,l)||os(c.end,o,l),[R,c,f,o,l]),z=e.isInvalid||e.validationState==="invalid"||M;return{...w,value:c,setValue:d,anchorDate:f,setAnchorDate:x,highlightedRange:T,validationState:z?"invalid":null,isValueInvalid:z,selectFocusedDate(){P(w.focusedDate)},selectDate:P,highlightDate(C){f&&w.setFocusedDate(C)},isSelected(C){return T&&C.compare(T.start)>=0&&C.compare(T.end)<=0&&!w.isCellDisabled(C)&&!w.isCellUnavailable(C)},isInvalid(C){var O,I;return w.isInvalid(C)||os(C,(O=g.current)===null||O===void 0?void 0:O.start,(I=g.current)===null||I===void 0?void 0:I.end)},isDragging:E,setDragging:F}}function Zh(e,t){return!e||!t?null:(t.compare(e)<0&&([e,t]=[t,e]),{start:Zt(e),end:Zt(t)})}function C5(e,t){return e=Oe(e,(t==null?void 0:t.calendar)||new Ft),t&&"hour"in t?t.set(e):e}function k5(e,t,n){let r=e.add({days:n});for(;(n<0?r.compare(t.visibleRange.start)>=0:r.compare(t.visibleRange.end)<=0)&&!t.isCellUnavailable(r);)r=r.add({days:n});return t.isCellUnavailable(r)?r.add({days:-n}):null}function yS(e){let[t,n]=aa(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const r=y.useCallback(()=>{n(!0)},[n]),i=y.useCallback(()=>{n(!1)},[n]),a=y.useCallback(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:r,close:i,toggle:a}}var $S={};$S={rangeOverflow:e=>`يجب أن تكون القيمة ${e.maxValue} أو قبل ذلك.`,rangeReversed:"تاريخ البدء يجب أن يكون قبل تاريخ الانتهاء.",rangeUnderflow:e=>`يجب أن تكون القيمة ${e.minValue} أو بعد ذلك.`,unavailableDate:"البيانات المحددة غير متاحة."};var xS={};xS={rangeOverflow:e=>`Стойността трябва да е ${e.maxValue} или по-ранна.`,rangeReversed:"Началната дата трябва да е преди крайната.",rangeUnderflow:e=>`Стойността трябва да е ${e.minValue} или по-късно.`,unavailableDate:"Избраната дата не е налична."};var wS={};wS={rangeOverflow:e=>`Hodnota musí být ${e.maxValue} nebo dřívější.`,rangeReversed:"Datum zahájení musí předcházet datu ukončení.",rangeUnderflow:e=>`Hodnota musí být ${e.minValue} nebo pozdější.`,unavailableDate:"Vybrané datum není k dispozici."};var DS={};DS={rangeOverflow:e=>`Værdien skal være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen skal være før slutdatoen.",rangeUnderflow:e=>`Værdien skal være ${e.minValue} eller nyere.`,unavailableDate:"Den valgte dato er ikke tilgængelig."};var _S={};_S={rangeOverflow:e=>`Der Wert muss ${e.maxValue} oder früher sein.`,rangeReversed:"Das Anfangsdatum muss vor dem Enddatum liegen.",rangeUnderflow:e=>`Der Wert muss ${e.minValue} oder später sein.`,unavailableDate:"Das ausgewählte Datum ist nicht verfügbar."};var ES={};ES={rangeOverflow:e=>`Η τιμή πρέπει να είναι ${e.maxValue} ή παλαιότερη.`,rangeReversed:"Η ημερομηνία έναρξης πρέπει να είναι πριν από την ημερομηνία λήξης.",rangeUnderflow:e=>`Η τιμή πρέπει να είναι ${e.minValue} ή μεταγενέστερη.`,unavailableDate:"Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη."};var SS={};SS={rangeUnderflow:e=>`Value must be ${e.minValue} or later.`,rangeOverflow:e=>`Value must be ${e.maxValue} or earlier.`,rangeReversed:"Start date must be before end date.",unavailableDate:"Selected date unavailable."};var CS={};CS={rangeOverflow:e=>`El valor debe ser ${e.maxValue} o anterior.`,rangeReversed:"La fecha de inicio debe ser anterior a la fecha de finalización.",rangeUnderflow:e=>`El valor debe ser ${e.minValue} o posterior.`,unavailableDate:"Fecha seleccionada no disponible."};var kS={};kS={rangeOverflow:e=>`Väärtus peab olema ${e.maxValue} või varasem.`,rangeReversed:"Alguskuupäev peab olema enne lõppkuupäeva.",rangeUnderflow:e=>`Väärtus peab olema ${e.minValue} või hilisem.`,unavailableDate:"Valitud kuupäev pole saadaval."};var PS={};PS={rangeOverflow:e=>`Arvon on oltava ${e.maxValue} tai sitä aikaisempi.`,rangeReversed:"Aloituspäivän on oltava ennen lopetuspäivää.",rangeUnderflow:e=>`Arvon on oltava ${e.minValue} tai sitä myöhäisempi.`,unavailableDate:"Valittu päivämäärä ei ole käytettävissä."};var TS={};TS={rangeOverflow:e=>`La valeur doit être ${e.maxValue} ou antérieure.`,rangeReversed:"La date de début doit être antérieure à la date de fin.",rangeUnderflow:e=>`La valeur doit être ${e.minValue} ou ultérieure.`,unavailableDate:"La date sélectionnée n’est pas disponible."};var RS={};RS={rangeOverflow:e=>`הערך חייב להיות ${e.maxValue} או מוקדם יותר.`,rangeReversed:"תאריך ההתחלה חייב להיות לפני תאריך הסיום.",rangeUnderflow:e=>`הערך חייב להיות ${e.minValue} או מאוחר יותר.`,unavailableDate:"התאריך הנבחר אינו זמין."};var MS={};MS={rangeOverflow:e=>`Vrijednost mora biti ${e.maxValue} ili ranije.`,rangeReversed:"Datum početka mora biti prije datuma završetka.",rangeUnderflow:e=>`Vrijednost mora biti ${e.minValue} ili kasnije.`,unavailableDate:"Odabrani datum nije dostupan."};var FS={};FS={rangeOverflow:e=>`Az értéknek ${e.maxValue} vagy korábbinak kell lennie.`,rangeReversed:"A kezdő dátumnak a befejező dátumnál korábbinak kell lennie.",rangeUnderflow:e=>`Az értéknek ${e.minValue} vagy későbbinek kell lennie.`,unavailableDate:"A kiválasztott dátum nem érhető el."};var AS={};AS={rangeOverflow:e=>`Il valore deve essere ${e.maxValue} o precedente.`,rangeReversed:"La data di inizio deve essere antecedente alla data di fine.",rangeUnderflow:e=>`Il valore deve essere ${e.minValue} o successivo.`,unavailableDate:"Data selezionata non disponibile."};var OS={};OS={rangeOverflow:e=>`値は ${e.maxValue} 以下にする必要があります。`,rangeReversed:"開始日は終了日より前にする必要があります。",rangeUnderflow:e=>`値は ${e.minValue} 以上にする必要があります。`,unavailableDate:"選択した日付は使用できません。"};var BS={};BS={rangeOverflow:e=>`값은 ${e.maxValue} 이전이어야 합니다.`,rangeReversed:"시작일은 종료일 이전이어야 합니다.",rangeUnderflow:e=>`값은 ${e.minValue} 이상이어야 합니다.`,unavailableDate:"선택한 날짜를 사용할 수 없습니다."};var IS={};IS={rangeOverflow:e=>`Reikšmė turi būti ${e.maxValue} arba ankstesnė.`,rangeReversed:"Pradžios data turi būti ankstesnė nei pabaigos data.",rangeUnderflow:e=>`Reikšmė turi būti ${e.minValue} arba naujesnė.`,unavailableDate:"Pasirinkta data nepasiekiama."};var LS={};LS={rangeOverflow:e=>`Vērtībai ir jābūt ${e.maxValue} vai agrākai.`,rangeReversed:"Sākuma datumam ir jābūt pirms beigu datuma.",rangeUnderflow:e=>`Vērtībai ir jābūt ${e.minValue} vai vēlākai.`,unavailableDate:"Atlasītais datums nav pieejams."};var NS={};NS={rangeOverflow:e=>`Verdien må være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen må være før sluttdatoen.",rangeUnderflow:e=>`Verdien må være ${e.minValue} eller senere.`,unavailableDate:"Valgt dato utilgjengelig."};var jS={};jS={rangeOverflow:e=>`Waarde moet ${e.maxValue} of eerder zijn.`,rangeReversed:"De startdatum moet voor de einddatum liggen.",rangeUnderflow:e=>`Waarde moet ${e.minValue} of later zijn.`,unavailableDate:"Geselecteerde datum niet beschikbaar."};var zS={};zS={rangeOverflow:e=>`Wartość musi mieć wartość ${e.maxValue} lub wcześniejszą.`,rangeReversed:"Data rozpoczęcia musi być wcześniejsza niż data zakończenia.",rangeUnderflow:e=>`Wartość musi mieć wartość ${e.minValue} lub późniejszą.`,unavailableDate:"Wybrana data jest niedostępna."};var VS={};VS={rangeOverflow:e=>`O valor deve ser ${e.maxValue} ou anterior.`,rangeReversed:"A data inicial deve ser anterior à data final.",rangeUnderflow:e=>`O valor deve ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."};var WS={};WS={rangeOverflow:e=>`O valor tem de ser ${e.maxValue} ou anterior.`,rangeReversed:"A data de início deve ser anterior à data de fim.",rangeUnderflow:e=>`O valor tem de ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."};var US={};US={rangeOverflow:e=>`Valoarea trebuie să fie ${e.maxValue} sau anterioară.`,rangeReversed:"Data de început trebuie să fie anterioară datei de sfârșit.",rangeUnderflow:e=>`Valoarea trebuie să fie ${e.minValue} sau ulterioară.`,unavailableDate:"Data selectată nu este disponibilă."};var HS={};HS={rangeOverflow:e=>`Значение должно быть не позже ${e.maxValue}.`,rangeReversed:"Дата начала должна предшествовать дате окончания.",rangeUnderflow:e=>`Значение должно быть не раньше ${e.minValue}.`,unavailableDate:"Выбранная дата недоступна."};var KS={};KS={rangeOverflow:e=>`Hodnota musí byť ${e.maxValue} alebo skoršia.`,rangeReversed:"Dátum začiatku musí byť skorší ako dátum konca.",rangeUnderflow:e=>`Hodnota musí byť ${e.minValue} alebo neskoršia.`,unavailableDate:"Vybratý dátum je nedostupný."};var YS={};YS={rangeOverflow:e=>`Vrednost mora biti ${e.maxValue} ali starejša.`,rangeReversed:"Začetni datum mora biti pred končnim datumom.",rangeUnderflow:e=>`Vrednost mora biti ${e.minValue} ali novejša.`,unavailableDate:"Izbrani datum ni na voljo."};var qS={};qS={rangeOverflow:e=>`Vrednost mora da bude ${e.maxValue} ili starija.`,rangeReversed:"Datum početka mora biti pre datuma završetka.",rangeUnderflow:e=>`Vrednost mora da bude ${e.minValue} ili novija.`,unavailableDate:"Izabrani datum nije dostupan."};var GS={};GS={rangeOverflow:e=>`Värdet måste vara ${e.maxValue} eller tidigare.`,rangeReversed:"Startdatumet måste vara före slutdatumet.",rangeUnderflow:e=>`Värdet måste vara ${e.minValue} eller senare.`,unavailableDate:"Det valda datumet är inte tillgängligt."};var ZS={};ZS={rangeOverflow:e=>`Değer, ${e.maxValue} veya öncesi olmalıdır.`,rangeReversed:"Başlangıç tarihi bitiş tarihinden önce olmalıdır.",rangeUnderflow:e=>`Değer, ${e.minValue} veya sonrası olmalıdır.`,unavailableDate:"Seçilen tarih kullanılamıyor."};var XS={};XS={rangeOverflow:e=>`Значення має бути не пізніше ${e.maxValue}.`,rangeReversed:"Дата початку має передувати даті завершення.",rangeUnderflow:e=>`Значення має бути не раніше ${e.minValue}.`,unavailableDate:"Вибрана дата недоступна."};var QS={};QS={rangeOverflow:e=>`值必须是 ${e.maxValue} 或更早日期。`,rangeReversed:"开始日期必须早于结束日期。",rangeUnderflow:e=>`值必须是 ${e.minValue} 或更晚日期。`,unavailableDate:"所选日期不可用。"};var JS={};JS={rangeOverflow:e=>`值必須是 ${e.maxValue} 或更早。`,rangeReversed:"開始日期必須在結束日期之前。",rangeUnderflow:e=>`值必須是 ${e.minValue} 或更晚。`,unavailableDate:"所選日期無法使用。"};var eC={};eC={"ar-AE":$S,"bg-BG":xS,"cs-CZ":wS,"da-DK":DS,"de-DE":_S,"el-GR":ES,"en-US":SS,"es-ES":CS,"et-EE":kS,"fi-FI":PS,"fr-FR":TS,"he-IL":RS,"hr-HR":MS,"hu-HU":FS,"it-IT":AS,"ja-JP":OS,"ko-KR":BS,"lt-LT":IS,"lv-LV":LS,"nb-NO":NS,"nl-NL":jS,"pl-PL":zS,"pt-BR":VS,"pt-PT":WS,"ro-RO":US,"ru-RU":HS,"sk-SK":KS,"sl-SI":YS,"sr-SP":qS,"sv-SE":GS,"tr-TR":ZS,"uk-UA":XS,"zh-CN":QS,"zh-TW":JS};function Bj(e){return e&&e.__esModule?e.default:e}const tC=new mi(Bj(eC));function nC(){return typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US"}function Mg(e,t,n,r,i){let a=e!=null&&n!=null&&e.compare(n)>0,s=e!=null&&t!=null&&e.compare(t)<0,o=e!=null&&(r==null?void 0:r(e))||!1,l=a||s||o,u=[];if(l){let c=nC(),d=mi.getGlobalDictionaryForPackage("@react-stately/datepicker")||tC,f=new y8(c,d),h=new ri(c,gl({},i)),p=h.resolvedOptions().timeZone;s&&u.push(f.format("rangeUnderflow",{minValue:h.format(t.toDate(p))})),a&&u.push(f.format("rangeOverflow",{maxValue:h.format(n.toDate(p))})),o&&u.push(f.format("unavailableDate"))}return{isInvalid:l,validationErrors:u,validationDetails:{badInput:o,customError:!1,patternMismatch:!1,rangeOverflow:a,rangeUnderflow:s,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!l}}}function Ij(e,t,n,r,i){let a=Mg(e==null?void 0:e.start,t,n,r,i),s=Mg(e==null?void 0:e.end,t,n,r,i),o=od(a,s);if(e.end!=null&&e.start!=null&&e.end.compare(e.start)<0){let l=mi.getGlobalDictionaryForPackage("@react-stately/datepicker")||tC;o=od(o,{isInvalid:!0,validationErrors:[l.getStringForLocale("rangeReversed",nC())],validationDetails:{...Nf,rangeUnderflow:!0,rangeOverflow:!0,valid:!1}})}return o}const Lj={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},Nj={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function gl(e,t){e={...t.shouldForceLeadingZeros?Nj:Lj,...e};let r=t.granularity||"minute",i=Object.keys(e);var a;let s=i.indexOf((a=t.maxGranularity)!==null&&a!==void 0?a:"year");s<0&&(s=0);let o=i.indexOf(r);if(o<0&&(o=2),s>o)throw new Error("maxGranularity must be greater than granularity");let l=i.slice(s,o+1).reduce((c,d)=>(c[d]=e[d],c),{});return t.hourCycle!=null&&(l.hour12=t.hourCycle===12),l.timeZone=t.timeZone||"UTC",(r==="hour"||r==="minute"||r==="second")&&t.timeZone&&!t.hideTimeZone&&(l.timeZoneName="short"),t.showEra&&s===0&&(l.era="short"),l}function Eu(e){return e&&"hour"in e?e:new Nl}function rC(e,t){if(e===null)return null;if(e)return Oe(e,t)}function qs(e,t,n,r){if(e)return rC(e,n);let i=Oe(D8(r).set({hour:0,minute:0,second:0,millisecond:0}),n);return t==="year"||t==="month"||t==="day"?Zt(i):r?i:Xn(i)}function iC(e,t){let n=e&&"timeZone"in e?e.timeZone:void 0,r=e&&"minute"in e?"minute":"day";if(e&&t&&!(t in e))throw new Error("Invalid granularity "+t+" for value "+e.toString());let[i,a]=y.useState([r,n]);e&&(i[0]!==r||i[1]!==n)&&a([r,n]),t||(t=e?r:i[0]);let s=e?n:i[1];return[t,s]}const jj=new mi({ach:{year:"mwaka",month:"dwe",day:"nino"},af:{year:"jjjj",month:"mm",day:"dd"},am:{year:"ዓዓዓዓ",month:"ሚሜ",day:"ቀቀ"},an:{year:"aaaa",month:"mm",day:"dd"},ar:{year:"سنة",month:"شهر",day:"يوم"},ast:{year:"aaaa",month:"mm",day:"dd"},az:{year:"iiii",month:"aa",day:"gg"},be:{year:"гггг",month:"мм",day:"дд"},bg:{year:"гггг",month:"мм",day:"дд"},bn:{year:"yyyy",month:"মিমি",day:"dd"},br:{year:"bbbb",month:"mm",day:"dd"},bs:{year:"gggg",month:"mm",day:"dd"},ca:{year:"aaaa",month:"mm",day:"dd"},cak:{year:"jjjj",month:"ii",day:"q'q'"},ckb:{year:"ساڵ",month:"مانگ",day:"ڕۆژ"},cs:{year:"rrrr",month:"mm",day:"dd"},cy:{year:"bbbb",month:"mm",day:"dd"},da:{year:"åååå",month:"mm",day:"dd"},de:{year:"jjjj",month:"mm",day:"tt"},dsb:{year:"llll",month:"mm",day:"źź"},el:{year:"εεεε",month:"μμ",day:"ηη"},en:{year:"yyyy",month:"mm",day:"dd"},eo:{year:"jjjj",month:"mm",day:"tt"},es:{year:"aaaa",month:"mm",day:"dd"},et:{year:"aaaa",month:"kk",day:"pp"},eu:{year:"uuuu",month:"hh",day:"ee"},fa:{year:"سال",month:"ماه",day:"روز"},ff:{year:"hhhh",month:"ll",day:"ññ"},fi:{year:"vvvv",month:"kk",day:"pp"},fr:{year:"aaaa",month:"mm",day:"jj"},fy:{year:"jjjj",month:"mm",day:"dd"},ga:{year:"bbbb",month:"mm",day:"ll"},gd:{year:"bbbb",month:"mm",day:"ll"},gl:{year:"aaaa",month:"mm",day:"dd"},he:{year:"שנה",month:"חודש",day:"יום"},hr:{year:"gggg",month:"mm",day:"dd"},hsb:{year:"llll",month:"mm",day:"dd"},hu:{year:"éééé",month:"hh",day:"nn"},ia:{year:"aaaa",month:"mm",day:"dd"},id:{year:"tttt",month:"bb",day:"hh"},it:{year:"aaaa",month:"mm",day:"gg"},ja:{year:" 年 ",month:"月",day:"日"},ka:{year:"წწწწ",month:"თთ",day:"რრ"},kk:{year:"жжжж",month:"аа",day:"кк"},kn:{year:"ವವವವ",month:"ಮಿಮೀ",day:"ದಿದಿ"},ko:{year:"연도",month:"월",day:"일"},lb:{year:"jjjj",month:"mm",day:"dd"},lo:{year:"ປປປປ",month:"ດດ",day:"ວວ"},lt:{year:"mmmm",month:"mm",day:"dd"},lv:{year:"gggg",month:"mm",day:"dd"},meh:{year:"aaaa",month:"mm",day:"dd"},ml:{year:"വർഷം",month:"മാസം",day:"തീയതി"},ms:{year:"tttt",month:"mm",day:"hh"},nl:{year:"jjjj",month:"mm",day:"dd"},nn:{year:"åååå",month:"mm",day:"dd"},no:{year:"åååå",month:"mm",day:"dd"},oc:{year:"aaaa",month:"mm",day:"jj"},pl:{year:"rrrr",month:"mm",day:"dd"},pt:{year:"aaaa",month:"mm",day:"dd"},rm:{year:"oooo",month:"mm",day:"dd"},ro:{year:"aaaa",month:"ll",day:"zz"},ru:{year:"гггг",month:"мм",day:"дд"},sc:{year:"aaaa",month:"mm",day:"dd"},scn:{year:"aaaa",month:"mm",day:"jj"},sk:{year:"rrrr",month:"mm",day:"dd"},sl:{year:"llll",month:"mm",day:"dd"},sr:{year:"гггг",month:"мм",day:"дд"},sv:{year:"åååå",month:"mm",day:"dd"},szl:{year:"rrrr",month:"mm",day:"dd"},tg:{year:"сссс",month:"мм",day:"рр"},th:{year:"ปปปป",month:"ดด",day:"วว"},tr:{year:"yyyy",month:"aa",day:"gg"},uk:{year:"рррр",month:"мм",day:"дд"},"zh-CN":{year:"年",month:"月",day:"日"},"zh-TW":{year:"年",month:"月",day:"日"}},"en");function zj(e,t,n){return e==="era"||e==="dayPeriod"?t:e==="year"||e==="month"||e==="day"?jj.getStringForLocale(e,n):"––"}const Su={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,era:!0},P5={year:5,month:2,day:7,hour:2,minute:15,second:15},Vj={dayperiod:"dayPeriod"};function aC(e){let{locale:t,createCalendar:n,hideTimeZone:r,isDisabled:i,isReadOnly:a,isRequired:s,minValue:o,maxValue:l,isDateUnavailable:u}=e,c=e.value||e.defaultValue||e.placeholderValue,[d,f]=iC(c,e.granularity),h=f||"UTC";if(c&&!(d in c))throw new Error("Invalid granularity "+d+" for value "+c.toString());let p=y.useMemo(()=>new ri(t),[t]),g=y.useMemo(()=>n(p.resolvedOptions().calendar),[n,p]),[b,v]=aa(e.value,e.defaultValue,e.onChange),m=y.useMemo(()=>rC(b,g),[b,g]),[$,w]=y.useState(()=>qs(e.placeholderValue,d,g,f)),D=m||$,S=g.identifier==="gregory"&&D.era==="BC",k=y.useMemo(()=>{var W;return{granularity:d,maxGranularity:(W=e.maxGranularity)!==null&&W!==void 0?W:"year",timeZone:f,hideTimeZone:r,hourCycle:e.hourCycle,showEra:S,shouldForceLeadingZeros:e.shouldForceLeadingZeros}},[e.maxGranularity,d,e.hourCycle,e.shouldForceLeadingZeros,f,r,S]),x=y.useMemo(()=>gl({},k),[k]),T=y.useMemo(()=>new ri(t,x),[t,x]),P=y.useMemo(()=>T.resolvedOptions(),[T]),E=y.useMemo(()=>T.formatToParts(new Date).filter(W=>Su[W.type]).reduce((W,Ce)=>(W[Ce.type]=!0,W),{}),[T]),[F,R]=y.useState(()=>e.value||e.defaultValue?{...E}:{}),M=y.useRef(),z=y.useRef(g.identifier);y.useEffect(()=>{g.identifier!==z.current&&(z.current=g.identifier,w(W=>Object.keys(F).length>0?Oe(W,g):qs(e.placeholderValue,d,g,f)))},[g,d,F,f,e.placeholderValue]),b&&Object.keys(F).length<Object.keys(E).length&&(F={...E},R(F)),b==null&&Object.keys(F).length===Object.keys(E).length&&(F={},R(F),w(qs(e.placeholderValue,d,g,f)));let B=m&&Object.keys(F).length>=Object.keys(E).length?m:$,C=W=>{if(e.isDisabled||e.isReadOnly)return;let Ce=Object.keys(F),et=Object.keys(E);W==null?(v(null),w(qs(e.placeholderValue,d,g,f)),R({})):Ce.length>=et.length||Ce.length===et.length-1&&E.dayPeriod&&!F.dayPeriod&&M.current!=="dayPeriod"?(W=Oe(W,(c==null?void 0:c.calendar)||new Ft),v(W)):w(W),M.current=null},O=y.useMemo(()=>B.toDate(h),[B,h]),I=y.useMemo(()=>T.formatToParts(O).map(W=>{let Ce=Su[W.type];W.type==="era"&&g.getEras().length===1&&(Ce=!1);let et=Su[W.type]&&!F[W.type],yt=Su[W.type]?zj(W.type,W.value,t):null;return{type:Vj[W.type]||W.type,text:et?yt:W.value,...Wj(B,W.type,P),isPlaceholder:et,placeholder:yt,isEditable:Ce}}),[O,F,T,P,B,g,t]);E.era&&F.year&&!F.era?(F.era=!0,R({...F})):!E.era&&F.era&&(delete F.era,R({...F}));let N=W=>{F[W]=!0,W==="year"&&E.era&&(F.era=!0),R({...F})},X=(W,Ce)=>{if(F[W])C(Uj(B,W,Ce,P));else{N(W);let et=Object.keys(F),yt=Object.keys(E);(et.length>=yt.length||et.length===yt.length-1&&E.dayPeriod&&!F.dayPeriod)&&C(B)}},Q=y.useMemo(()=>Mg(b,o,l,u,k),[b,o,l,u,k]),je=lE({...e,value:b,builtinValidation:Q}),$e=je.displayValidation.isInvalid,lt=e.validationState||($e?"invalid":null);var xe;return{...je,value:m,dateValue:O,calendar:g,setValue:C,segments:I,dateFormatter:T,validationState:lt,isInvalid:$e,granularity:d,maxGranularity:(xe=e.maxGranularity)!==null&&xe!==void 0?xe:"year",isDisabled:i,isReadOnly:a,isRequired:s,increment(W){X(W,1)},decrement(W){X(W,-1)},incrementPage(W){X(W,P5[W]||1)},decrementPage(W){X(W,-(P5[W]||1))},setSegment(W,Ce){N(W),C(Hj(B,W,Ce,P))},confirmPlaceholder(){if(e.isDisabled||e.isReadOnly)return;let W=Object.keys(F),Ce=Object.keys(E);W.length===Ce.length-1&&E.dayPeriod&&!F.dayPeriod&&(F={...E},R(F),C(B.copy()))},clearSegment(W){delete F[W],M.current=W,R({...F});let Ce=qs(e.placeholderValue,d,g,f),et=B;if(W==="dayPeriod"&&"hour"in B&&"hour"in Ce){let yt=B.hour>=12,ut=Ce.hour>=12;yt&&!ut?et=B.set({hour:B.hour-12}):!yt&&ut&&(et=B.set({hour:B.hour+12}))}else W in B&&(et=B.set({[W]:Ce[W]}));v(null),C(et)},formatValue(W){if(!m)return"";let Ce=gl(W,k);return new ri(t,Ce).format(O)}}}function Wj(e,t,n){switch(t){case"era":{let r=e.calendar.getEras();return{value:r.indexOf(e.era),minValue:0,maxValue:r.length-1}}case"year":return{value:e.year,minValue:1,maxValue:e.calendar.getYearsInEra(e)};case"month":return{value:e.month,minValue:bI(e),maxValue:e.calendar.getMonthsInYear(e)};case"day":return{value:e.day,minValue:yI(e),maxValue:e.calendar.getDaysInMonth(e)}}if("hour"in e)switch(t){case"dayPeriod":return{value:e.hour>=12?12:0,minValue:0,maxValue:12};case"hour":if(n.hour12){let r=e.hour>=12;return{value:e.hour,minValue:r?12:0,maxValue:r?23:11}}return{value:e.hour,minValue:0,maxValue:23};case"minute":return{value:e.minute,minValue:0,maxValue:59};case"second":return{value:e.second,minValue:0,maxValue:59}}return{}}function Uj(e,t,n,r){switch(t){case"era":case"year":case"month":case"day":return e.cycle(t,n,{round:t==="year"})}if("hour"in e)switch(t){case"dayPeriod":{let i=e.hour,a=i>=12;return e.set({hour:a?i-12:i+12})}case"hour":case"minute":case"second":return e.cycle(t,n,{round:t!=="hour",hourCycle:r.hour12?12:24})}}function Hj(e,t,n,r){switch(t){case"day":case"month":case"year":case"era":return e.set({[t]:n})}if("hour"in e)switch(t){case"dayPeriod":{let i=e.hour,a=i>=12;return n>=12===a?e:e.set({hour:a?i-12:i+12})}case"hour":if(r.hour12){let a=e.hour>=12;!a&&n===12&&(n=0),a&&n<12&&(n+=12)}case"minute":case"second":return e.set({[t]:n})}}function Kj(e){var t,n;let r=yS(e),[i,a]=aa(e.value,e.defaultValue||null,e.onChange),[s,o]=y.useState(()=>i||{start:null,end:null});i==null&&s.start&&s.end&&(s={start:null,end:null},o(s));let l=i||s,u=B=>{o(B||{start:null,end:null}),B!=null&&B.start&&B.end?a(B):a(null)},c=(l==null?void 0:l.start)||(l==null?void 0:l.end)||e.placeholderValue,[d,f]=iC(c,e.granularity),h=d==="hour"||d==="minute"||d==="second";var p;let g=(p=e.shouldCloseOnSelect)!==null&&p!==void 0?p:!0,[b,v]=y.useState(null),[m,$]=y.useState(null);l&&l.start&&l.end&&(b=l,"hour"in l.start&&(m=l));let w=(B,C)=>{u({start:"timeZone"in C.start?C.start.set(Zt(B.start)):Xn(B.start,C.start),end:"timeZone"in C.end?C.end.set(Zt(B.end)):Xn(B.end,C.end)}),v(null),$(null),R.commitValidation()},D=B=>{let C=typeof g=="function"?g():g;h?C||B.start&&B.end&&(m!=null&&m.start)&&(m!=null&&m.end)?w(B,{start:(m==null?void 0:m.start)||Eu(e.placeholderValue),end:(m==null?void 0:m.end)||Eu(e.placeholderValue)}):v(B):B.start&&B.end?(u(B),R.commitValidation()):v(B),C&&r.setOpen(!1)},S=B=>{b!=null&&b.start&&(b!=null&&b.end)&&B.start&&B.end?w(b,B):$(B)},k=(l==null||(t=l.start)===null||t===void 0?void 0:t.calendar.identifier)==="gregory"&&l.start.era==="BC"||(l==null||(n=l.end)===null||n===void 0?void 0:n.calendar.identifier)==="gregory"&&l.end.era==="BC",x=y.useMemo(()=>({granularity:d,timeZone:f,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:k}),[d,e.hourCycle,e.shouldForceLeadingZeros,f,e.hideTimeZone,k]),{minValue:T,maxValue:P,isDateUnavailable:E}=e,F=y.useMemo(()=>Ij(l,T,P,E,x),[l,T,P,E,x]),R=lE({...e,value:i,name:y.useMemo(()=>[e.startName,e.endName],[e.startName,e.endName]),builtinValidation:F}),M=R.displayValidation.isInvalid,z=e.validationState||(M?"invalid":null);return{...R,value:l,setValue:u,dateRange:b,timeRange:m,granularity:d,hasTime:h,setDate(B,C){D({...b,[B]:C})},setTime(B,C){S({...m,[B]:C})},setDateTime(B,C){u({...l,[B]:C})},setDateRange:D,setTimeRange:S,...r,setOpen(B){!B&&!(l!=null&&l.start&&(l!=null&&l.end))&&(b!=null&&b.start)&&(b!=null&&b.end)&&h&&w(b,{start:(m==null?void 0:m.start)||Eu(e.placeholderValue),end:(m==null?void 0:m.end)||Eu(e.placeholderValue)}),r.setOpen(B)},validationState:z,isInvalid:M,formatValue(B,C){if(!l||!l.start||!l.end)return null;let O="timeZone"in l.start?l.start.timeZone:void 0,I=e.granularity||(l.start&&"minute"in l.start?"minute":"day"),N="timeZone"in l.end?l.end.timeZone:void 0,X=e.granularity||(l.end&&"minute"in l.end?"minute":"day"),Q=gl(C,{granularity:I,timeZone:O,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,showEra:l.start.calendar.identifier==="gregory"&&l.start.era==="BC"||l.end.calendar.identifier==="gregory"&&l.end.era==="BC"}),je=l.start.toDate(O||"UTC"),$e=l.end.toDate(N||"UTC"),lt=new ri(B,Q),xe;if(O===N&&I===X&&l.start.compare(l.end)!==0){try{let W=lt.formatRangeToParts(je,$e),Ce=-1;for(let ut=0;ut<W.length;ut++){let qf=W[ut];if(qf.source==="shared"&&qf.type==="literal")Ce=ut;else if(qf.source==="endRange")break}let et="",yt="";for(let ut=0;ut<W.length;ut++)ut<Ce?et+=W[ut].value:ut>Ce&&(yt+=W[ut].value);return{start:et,end:yt}}catch{}xe=lt}else{let W=gl(C,{granularity:X,timeZone:N,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle});xe=new ri(B,W)}return{start:lt.format(je),end:xe.format($e)}}}}function Yj(e){let{placeholderValue:t=new Nl,minValue:n,maxValue:r,granularity:i,validate:a}=e,[s,o]=aa(e.value,e.defaultValue,e.onChange),l=s||t,u=l&&"day"in l?l:void 0,c=e.defaultValue&&"timeZone"in e.defaultValue?e.defaultValue.timeZone:void 0,d=y.useMemo(()=>{let m=l&&"timeZone"in l?l.timeZone:void 0;return(m||c)&&t?P8(Gs(t),m||c):Gs(t)},[t,l,c]),f=y.useMemo(()=>Gs(n,u),[n,u]),h=y.useMemo(()=>Gs(r,u),[r,u]),p=y.useMemo(()=>s&&"day"in s?N2(s):s,[s]),g=y.useMemo(()=>s==null?null:Gs(s),[s]);return{...aC({...e,value:g,defaultValue:void 0,minValue:f,maxValue:h,onChange:m=>{o(u||c?m:m&&N2(m))},granularity:i||"minute",maxGranularity:"hour",placeholderValue:d,createCalendar:()=>new Ft,validate:y.useCallback(()=>a==null?void 0:a(s),[a,s])}),timeValue:p}}function Gs(e,t=Il(Pf())){return e?"day"in e?e:Xn(t,e):null}const S$=_.createContext(null);S$.displayName="ProviderContext";function Fs(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var ma={};Fs(ma,"focus-ring",()=>Fg,e=>Fg=e);Fs(ma,"i18nFontFamily",()=>Ag,e=>Ag=e);Fs(ma,"spectrum",()=>Og,e=>Og=e);Fs(ma,"spectrum-FocusRing-ring",()=>cd,e=>cd=e);Fs(ma,"spectrum-FocusRing",()=>Bg,e=>Bg=e);Fs(ma,"spectrum-FocusRing--quiet",()=>Ig,e=>Ig=e);var Fg,Ag,Og,cd,Bg,Ig;Fg="JuTe6q_focus-ring";Ag="JuTe6q_i18nFontFamily";Og="JuTe6q_spectrum";cd="JuTe6q_spectrum-FocusRing-ring";Bg=`JuTe6q_spectrum-FocusRing ${cd}`;Ig="JuTe6q_spectrum-FocusRing--quiet";function gi(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var _r={};gi(_r,"focus-ring",()=>Lg,e=>Lg=e);gi(_r,"i18nFontFamily",()=>dd,e=>dd=e);gi(_r,"spectrum",()=>Ng,e=>Ng=e);gi(_r,"spectrum-Body",()=>jg,e=>jg=e);gi(_r,"spectrum-Body--italic",()=>zg,e=>zg=e);gi(_r,"spectrum-FocusRing-ring",()=>fd,e=>fd=e);gi(_r,"spectrum-FocusRing",()=>Vg,e=>Vg=e);gi(_r,"spectrum-FocusRing--quiet",()=>Wg,e=>Wg=e);var Lg,dd,Ng,jg,zg,fd,Vg,Wg;Lg="_5QszkG_focus-ring";dd="_5QszkG_i18nFontFamily";Ng=`_5QszkG_spectrum ${dd}`;jg="_5QszkG_spectrum-Body";zg="_5QszkG_spectrum-Body--italic";fd="_5QszkG_spectrum-FocusRing-ring";Vg=`_5QszkG_spectrum-FocusRing ${fd}`;Wg="_5QszkG_spectrum-FocusRing--quiet";function qj(e,t){let n=rg("(prefers-color-scheme: dark)"),r=rg("(prefers-color-scheme: light)");return e.dark&&n?"dark":e.light&&r?"light":e.dark&&t==="dark"?"dark":e.light&&t==="light"||!e.dark||e.light?"light":"dark"}function Gj(e){return rg("(any-pointer: fine)")&&e.medium?"medium":e.large?"large":"medium"}var sC={};sC=JSON.parse('{"name":"@react-spectrum/provider","version":"3.9.6","description":"Spectrum UI components in React","license":"Apache-2.0","main":"dist/main.js","module":"dist/module.js","exports":{"types":"./dist/types.d.ts","import":"./dist/import.mjs","require":"./dist/main.js"},"types":"dist/types.d.ts","source":"src/index.ts","files":["dist","src"],"sideEffects":["*.css"],"targets":{"main":{"includeNodeModules":["@adobe/spectrum-css-temp"]},"module":{"includeNodeModules":["@adobe/spectrum-css-temp"]}},"repository":{"type":"git","url":"https://github.com/adobe/react-spectrum"},"dependencies":{"@react-aria/i18n":"^3.11.0","@react-aria/overlays":"^3.22.0","@react-aria/utils":"^3.24.0","@react-spectrum/utils":"^3.11.6","@react-types/provider":"^3.8.0","@react-types/shared":"^3.23.0","@swc/helpers":"^0.5.0","clsx":"^2.0.0"},"devDependencies":{"@adobe/spectrum-css-temp":"3.0.0-alpha.1"},"peerDependencies":{"react":"^16.8.0 || ^17.0.0-rc.1 || ^18.0.0","react-dom":"^16.8.0 || ^17.0.0-rc.1 || ^18.0.0"},"publishConfig":{"access":"public"}}');function T5(e){return e&&e.__esModule?e.default:e}const Zj={S:640,M:768,L:1024,XL:1280,XXL:1536};function Xj(e,t){let n=ga(),r=n&&n.colorScheme,i=n&&n.breakpoints,{theme:a=n&&n.theme,defaultColorScheme:s}=e;if(!a)throw new Error("theme not found, the parent provider must have a theme provided");let o=qj(a,s),l=Gj(a),{locale:u}=Qe(),c=!!a[r],{colorScheme:d=c?r:o,scale:f=n?n.scale:l,locale:h=n?u:null,breakpoints:p=n?i:Zj,children:g,isQuiet:b,isEmphasized:v,isDisabled:m,isRequired:$,isReadOnly:w,validationState:D,router:S,...k}=e,x={version:sC.version,theme:a,breakpoints:p,colorScheme:d,scale:f,isQuiet:b,isEmphasized:v,isDisabled:m,isRequired:$,isReadOnly:w,validationState:D},T=aI(p),P={};Object.entries(x).forEach(([z,B])=>B!==void 0&&(P[z]=B));let E=Object.assign({},n,P),F=g,R=Xt(k),{styleProps:M}=st(k,void 0,{matchedBreakpoints:T});return(!n||e.locale||a!==n.theme||d!==n.colorScheme||f!==n.scale||Object.keys(R).length>0||k.UNSAFE_className||Object.keys(M.style).length>0)&&(F=_.createElement(Qj,{...e,UNSAFE_style:{isolation:n?void 0:"isolate",...M.style},ref:t},F)),S&&(F=_.createElement(DL,S,F)),_.createElement(S$.Provider,{value:E},_.createElement(uI,{locale:h},_.createElement(iI,{matchedBreakpoints:T},_.createElement(mj,null,F))))}let oC=_.forwardRef(Xj);const Qj=_.forwardRef(function(t,n){let{children:r,...i}=t,{locale:a,direction:s}=Qe(),{theme:o,colorScheme:l,scale:u}=ga(),{modalProviderProps:c}=gj(),{styleProps:d}=st(i),f=Nn(n),h=Object.keys(o[l])[0],p=Object.keys(o[u])[0],g=Ef(d.className,T5(ma).spectrum,T5(_r).spectrum,Object.values(o[l]),Object.values(o[u]),o.global?Object.values(o.global):null,{"react-spectrum-provider":fu,spectrum:fu,[h]:fu,[p]:fu});var b,v;let m={...d.style,colorScheme:(v=(b=t.colorScheme)!==null&&b!==void 0?b:l)!==null&&v!==void 0?v:Object.keys(o).filter(w=>w==="light"||w==="dark").join(" ")},$=y.useRef(!1);return y.useEffect(()=>{if(s&&f.current){let w=f.current.parentElement.closest("[dir]"),D=w&&w.getAttribute("dir");D&&D!==s&&!$.current&&(console.warn(`Language directions cannot be nested. ${s} inside ${D}.`),$.current=!0)}},[s,f,$]),_.createElement("div",{...Xt(i),...d,...c,className:g,style:m,lang:a,dir:s,ref:f},r)});function ga(){return y.useContext(S$)}function Vl(e){let t=ga();return t?Object.assign({},{isQuiet:t.isQuiet,isEmphasized:t.isEmphasized,isDisabled:t.isDisabled,isRequired:t.isRequired,isReadOnly:t.isReadOnly,validationState:t.validationState},e):e}var lC={};Object.defineProperty(lC,"__esModule",{value:!0});var Jj=lC.CornerTriangle=uC,Xh=ez(y);function ez(e){return e&&e.__esModule?e:{default:e}}function Ug(){return Ug=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ug.apply(this,arguments)}function tz(e,t){if(e==null)return{};var n=nz(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function nz(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function uC(e){var t=e.scale,n=t===void 0?"M":t,r=tz(e,["scale"]);return Xh.default.createElement("svg",Ug({},r,r),n==="L"&&Xh.default.createElement("path",{d:"M5.74.01a.25.25 0 0 0-.177.073l-5.48 5.48a.25.25 0 0 0 .177.427h5.48a.25.25 0 0 0 .25-.25V.26a.25.25 0 0 0-.25-.25z"}),n==="M"&&Xh.default.createElement("path",{d:"M4.74.01a.25.25 0 0 0-.177.073l-4.48 4.48a.25.25 0 0 0 .177.427h4.48a.25.25 0 0 0 .25-.25V.26a.25.25 0 0 0-.25-.25z"}))}uC.displayName="CornerTriangle";function G(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var Y={};G(Y,"spectrum--large",()=>Hg,e=>Hg=e);G(Y,"spectrum--medium",()=>Kg,e=>Kg=e);G(Y,"spectrum-Icon",()=>Yg,e=>Yg=e);G(Y,"spectrum-Icon--sizeL",()=>qg,e=>qg=e);G(Y,"spectrum-Icon--sizeM",()=>Gg,e=>Gg=e);G(Y,"spectrum-Icon--sizeS",()=>Zg,e=>Zg=e);G(Y,"spectrum-Icon--sizeXL",()=>Xg,e=>Xg=e);G(Y,"spectrum-Icon--sizeXS",()=>Qg,e=>Qg=e);G(Y,"spectrum-Icon--sizeXXL",()=>Jg,e=>Jg=e);G(Y,"spectrum-Icon--sizeXXS",()=>e0,e=>e0=e);G(Y,"spectrum-UIIcon",()=>t0,e=>t0=e);G(Y,"spectrum-UIIcon--large",()=>n0,e=>n0=e);G(Y,"spectrum-UIIcon--medium",()=>r0,e=>r0=e);G(Y,"spectrum-UIIcon-AlertMedium",()=>i0,e=>i0=e);G(Y,"spectrum-UIIcon-AlertSmall",()=>a0,e=>a0=e);G(Y,"spectrum-UIIcon-ArrowDownSmall",()=>s0,e=>s0=e);G(Y,"spectrum-UIIcon-ArrowLeftMedium",()=>o0,e=>o0=e);G(Y,"spectrum-UIIcon-Asterisk",()=>l0,e=>l0=e);G(Y,"spectrum-UIIcon-CheckmarkMedium",()=>u0,e=>u0=e);G(Y,"spectrum-UIIcon-CheckmarkSmall",()=>c0,e=>c0=e);G(Y,"spectrum-UIIcon-ChevronDownMedium",()=>d0,e=>d0=e);G(Y,"spectrum-UIIcon-ChevronDownSmall",()=>f0,e=>f0=e);G(Y,"spectrum-UIIcon-ChevronLeftLarge",()=>h0,e=>h0=e);G(Y,"spectrum-UIIcon-ChevronLeftMedium",()=>p0,e=>p0=e);G(Y,"spectrum-UIIcon-ChevronRightLarge",()=>m0,e=>m0=e);G(Y,"spectrum-UIIcon-ChevronRightMedium",()=>g0,e=>g0=e);G(Y,"spectrum-UIIcon-ChevronRightSmall",()=>v0,e=>v0=e);G(Y,"spectrum-UIIcon-ChevronUpSmall",()=>b0,e=>b0=e);G(Y,"spectrum-UIIcon-CornerTriangle",()=>y0,e=>y0=e);G(Y,"spectrum-UIIcon-CrossLarge",()=>$0,e=>$0=e);G(Y,"spectrum-UIIcon-CrossMedium",()=>x0,e=>x0=e);G(Y,"spectrum-UIIcon-CrossSmall",()=>w0,e=>w0=e);G(Y,"spectrum-UIIcon-DashSmall",()=>D0,e=>D0=e);G(Y,"spectrum-UIIcon-DoubleGripper",()=>_0,e=>_0=e);G(Y,"spectrum-UIIcon-FolderBreadcrumb",()=>E0,e=>E0=e);G(Y,"spectrum-UIIcon-HelpMedium",()=>S0,e=>S0=e);G(Y,"spectrum-UIIcon-HelpSmall",()=>C0,e=>C0=e);G(Y,"spectrum-UIIcon-InfoMedium",()=>k0,e=>k0=e);G(Y,"spectrum-UIIcon-InfoSmall",()=>P0,e=>P0=e);G(Y,"spectrum-UIIcon-ListGripper",()=>T0,e=>T0=e);G(Y,"spectrum-UIIcon-Magnifier",()=>R0,e=>R0=e);G(Y,"spectrum-UIIcon-SkipLeft",()=>M0,e=>M0=e);G(Y,"spectrum-UIIcon-SkipRight",()=>F0,e=>F0=e);G(Y,"spectrum-UIIcon-Star",()=>A0,e=>A0=e);G(Y,"spectrum-UIIcon-StarOutline",()=>O0,e=>O0=e);G(Y,"spectrum-UIIcon-SuccessMedium",()=>B0,e=>B0=e);G(Y,"spectrum-UIIcon-SuccessSmall",()=>I0,e=>I0=e);G(Y,"spectrum-UIIcon-TripleGripper",()=>L0,e=>L0=e);var Hg,Kg,Yg,qg,Gg,Zg,Xg,Qg,Jg,e0,t0,n0,r0,i0,a0,s0,o0,l0,u0,c0,d0,f0,h0,p0,m0,g0,v0,b0,y0,$0,x0,w0,D0,_0,E0,S0,C0,k0,P0,T0,R0,M0,F0,A0,O0,B0,I0,L0;Hg="yxBNXG_spectrum--large";Kg="yxBNXG_spectrum--medium";Yg="yxBNXG_spectrum-Icon";qg="yxBNXG_spectrum-Icon--sizeL";Gg="yxBNXG_spectrum-Icon--sizeM";Zg="yxBNXG_spectrum-Icon--sizeS";Xg="yxBNXG_spectrum-Icon--sizeXL";Qg="yxBNXG_spectrum-Icon--sizeXS";Jg="yxBNXG_spectrum-Icon--sizeXXL";e0="yxBNXG_spectrum-Icon--sizeXXS";t0="yxBNXG_spectrum-UIIcon";n0="yxBNXG_spectrum-UIIcon--large";r0="yxBNXG_spectrum-UIIcon--medium";i0="yxBNXG_spectrum-UIIcon-AlertMedium";a0="yxBNXG_spectrum-UIIcon-AlertSmall";s0="yxBNXG_spectrum-UIIcon-ArrowDownSmall";o0="yxBNXG_spectrum-UIIcon-ArrowLeftMedium";l0="yxBNXG_spectrum-UIIcon-Asterisk";u0="yxBNXG_spectrum-UIIcon-CheckmarkMedium";c0="yxBNXG_spectrum-UIIcon-CheckmarkSmall";d0="yxBNXG_spectrum-UIIcon-ChevronDownMedium";f0="yxBNXG_spectrum-UIIcon-ChevronDownSmall";h0="yxBNXG_spectrum-UIIcon-ChevronLeftLarge";p0="yxBNXG_spectrum-UIIcon-ChevronLeftMedium";m0="yxBNXG_spectrum-UIIcon-ChevronRightLarge";g0="yxBNXG_spectrum-UIIcon-ChevronRightMedium";v0="yxBNXG_spectrum-UIIcon-ChevronRightSmall";b0="yxBNXG_spectrum-UIIcon-ChevronUpSmall";y0="yxBNXG_spectrum-UIIcon-CornerTriangle";$0="yxBNXG_spectrum-UIIcon-CrossLarge";x0="yxBNXG_spectrum-UIIcon-CrossMedium";w0="yxBNXG_spectrum-UIIcon-CrossSmall";D0="yxBNXG_spectrum-UIIcon-DashSmall";_0="yxBNXG_spectrum-UIIcon-DoubleGripper";E0="yxBNXG_spectrum-UIIcon-FolderBreadcrumb";S0="yxBNXG_spectrum-UIIcon-HelpMedium";C0="yxBNXG_spectrum-UIIcon-HelpSmall";k0="yxBNXG_spectrum-UIIcon-InfoMedium";P0="yxBNXG_spectrum-UIIcon-InfoSmall";T0="yxBNXG_spectrum-UIIcon-ListGripper";R0="yxBNXG_spectrum-UIIcon-Magnifier";M0="yxBNXG_spectrum-UIIcon-SkipLeft";F0="yxBNXG_spectrum-UIIcon-SkipRight";A0="yxBNXG_spectrum-UIIcon-Star";O0="yxBNXG_spectrum-UIIcon-StarOutline";B0="yxBNXG_spectrum-UIIcon-SuccessMedium";I0="yxBNXG_spectrum-UIIcon-SuccessSmall";L0="yxBNXG_spectrum-UIIcon-TripleGripper";function rz(e){return e&&e.__esModule?e.default:e}function iz(e){return`var(--spectrum-semantic-${e}-color-icon)`}const az={...Af,color:["color",iz]};function sz(e){e=ui(e,"icon");let{children:t,size:n,"aria-label":r,"aria-hidden":i,...a}=e,{styleProps:s}=st(a,az),o=ga(),l="M";o!==null&&(l=o.scale==="large"?"L":"M"),i||(i=void 0);let u=n||l;return _.cloneElement(t,{...Xt(a),...s,focusable:"false","aria-label":r,"aria-hidden":r?i||void 0:!0,role:"img",className:V(rz(Y),t.props.className,"spectrum-Icon",`spectrum-Icon--size${u}`,s.className)})}function oz(e){return e&&e.__esModule?e.default:e}function va(e){e=ui(e,"icon");let{children:t,"aria-label":n,"aria-hidden":r,...i}=e,{styleProps:a}=st(i),s=ga(),o="M";return s!==null&&(o=s.scale==="large"?"L":"M"),r||(r=void 0),_.cloneElement(t,{...Xt(i),...a,scale:o,focusable:"false","aria-label":n,"aria-hidden":n?r||void 0:!0,role:"img",className:V(oz(Y),t.props.className,"spectrum-Icon",{[`spectrum-UIIcon-${t.type.displayName}`]:t.type.displayName},a.className)})}function lz(e){return _.createElement(va,e,_.createElement(Jj,null))}function Zs(e){return e&&e.__esModule?e.default:e}function uz(e,t){e=Vl(e),e=ui(e,"actionButton");let n=ui({UNSAFE_className:V(Zs(Z),"spectrum-ActionButton-label")},"text"),{isQuiet:r,isDisabled:i,staticColor:a,children:s,autoFocus:o,holdAffordance:l,hideButtonText:u,...c}=e,d=h8(t),{buttonProps:f,isPressed:h}=_7(e,d),{hoverProps:p,isHovered:g}=If({isDisabled:i}),{styleProps:b}=st(c),v=_.Children.toArray(e.children).every(m=>!_.isValidElement(m));return _.createElement(w7,{focusRingClass:V(Zs(Z),"focus-ring"),autoFocus:o},_.createElement("button",{...b,...de(f,p),ref:d,className:V(Zs(Z),"spectrum-ActionButton",{"spectrum-ActionButton--quiet":r,"spectrum-ActionButton--staticColor":!!a,"spectrum-ActionButton--staticWhite":a==="white","spectrum-ActionButton--staticBlack":a==="black","is-active":h,"is-disabled":i,"is-hovered":g},b.className)},l&&_.createElement(lz,{UNSAFE_className:V(Zs(Z),"spectrum-ActionButton-hold")}),_.createElement(u7,null,_.createElement(Of,{slots:{icon:{size:"S",UNSAFE_className:V(Zs(Z),"spectrum-Icon",{"spectrum-ActionGroup-itemIcon":u})},text:{...n}}},typeof s=="string"||v?_.createElement(IN,null,s):s))))}let N0=_.forwardRef(uz);function Qh(e){return e&&e.__esModule?e.default:e}function cz(e,t){e=ui(e,"button");let{isQuiet:n,isDisabled:r,validationState:i,isInvalid:a,children:s,autoFocus:o,isActive:l,focusRingClass:u,...c}=e,d=h8(t),{buttonProps:f,isPressed:h}=_7(e,d),{hoverProps:p,isHovered:g}=If({isDisabled:r}),{styleProps:b}=st(c);return _.createElement(w7,{focusRingClass:V(Qh(Z),"focus-ring",u),autoFocus:o},_.createElement("button",{...de(f,p),ref:d,className:V(Qh(Z),"spectrum-FieldButton",{"spectrum-FieldButton--quiet":n,"is-active":l||h,"is-disabled":r,"spectrum-FieldButton--invalid":a||i==="invalid","is-hovered":g},b.className)},_.createElement(Of,{slots:{icon:{size:"S",UNSAFE_className:V(Qh(Z),"spectrum-Icon")}}},s)))}let dz=_.forwardRef(cz);function j0(){return j0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},j0.apply(null,arguments)}function fz(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function z0(e,t){return z0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},z0(e,t)}function hz(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,z0(e,t)}const R5={disabled:!1},cC=_.createContext(null);var pz=function(t){return t.scrollTop},go="unmounted",Ri="exited",Mi="entering",Fa="entered",V0="exiting",Er=function(e){hz(t,e);function t(r,i){var a;a=e.call(this,r,i)||this;var s=i,o=s&&!s.isMounting?r.enter:r.appear,l;return a.appearStatus=null,r.in?o?(l=Ri,a.appearStatus=Mi):l=Fa:r.unmountOnExit||r.mountOnEnter?l=go:l=Ri,a.state={status:l},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var s=i.in;return s&&a.status===go?{status:Ri}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var a=null;if(i!==this.props){var s=this.state.status;this.props.in?s!==Mi&&s!==Fa&&(a=Mi):(s===Mi||s===Fa)&&(a=V0)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,a,s,o;return a=s=o=i,i!=null&&typeof i!="number"&&(a=i.exit,s=i.enter,o=i.appear!==void 0?i.appear:s),{exit:a,enter:s,appear:o}},n.updateStatus=function(i,a){if(i===void 0&&(i=!1),a!==null)if(this.cancelNextCallback(),a===Mi){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:co.findDOMNode(this);s&&pz(s)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ri&&this.setState({status:go})},n.performEnter=function(i){var a=this,s=this.props.enter,o=this.context?this.context.isMounting:i,l=this.props.nodeRef?[o]:[co.findDOMNode(this),o],u=l[0],c=l[1],d=this.getTimeouts(),f=o?d.appear:d.enter;if(!i&&!s||R5.disabled){this.safeSetState({status:Fa},function(){a.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:Mi},function(){a.props.onEntering(u,c),a.onTransitionEnd(f,function(){a.safeSetState({status:Fa},function(){a.props.onEntered(u,c)})})})},n.performExit=function(){var i=this,a=this.props.exit,s=this.getTimeouts(),o=this.props.nodeRef?void 0:co.findDOMNode(this);if(!a||R5.disabled){this.safeSetState({status:Ri},function(){i.props.onExited(o)});return}this.props.onExit(o),this.safeSetState({status:V0},function(){i.props.onExiting(o),i.onTransitionEnd(s.exit,function(){i.safeSetState({status:Ri},function(){i.props.onExited(o)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,a){a=this.setNextCallback(a),this.setState(i,a)},n.setNextCallback=function(i){var a=this,s=!0;return this.nextCallback=function(o){s&&(s=!1,a.nextCallback=null,i(o))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(i,a){this.setNextCallback(a);var s=this.props.nodeRef?this.props.nodeRef.current:co.findDOMNode(this),o=i==null&&!this.props.addEndListener;if(!s||o){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],u=l[0],c=l[1];this.props.addEndListener(u,c)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===go)return null;var a=this.props,s=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var o=fz(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return _.createElement(cC.Provider,{value:null},typeof s=="function"?s(i,o):_.cloneElement(_.Children.only(s),o))},t}(_.Component);Er.contextType=cC;Er.propTypes={};function Ca(){}Er.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ca,onEntering:Ca,onEntered:Ca,onExit:Ca,onExiting:Ca,onExited:Ca};Er.UNMOUNTED=go;Er.EXITED=Ri;Er.ENTERING=Mi;Er.ENTERED=Fa;Er.EXITING=V0;const mz={entering:!1,entered:!0};function gz(e){return _.createElement(Er,{timeout:{enter:0,exit:350},...e},t=>_.Children.map(e.children,n=>n&&_.cloneElement(n,{isOpen:!!mz[t]})))}function vz(e,t){let{children:n,isOpen:r,disableFocusManagement:i,container:a,onEnter:s,onEntering:o,onEntered:l,onExit:u,onExiting:c,onExited:d,nodeRef:f}=e,[h,p]=y.useState(!r),g=y.useCallback(()=>{p(!1),l&&l()},[l]),b=y.useCallback(()=>{p(!0),d&&d()},[d]);return r||!h?_.createElement(wj,{portalContainer:a,disableFocusManagement:i,isExiting:!r},_.createElement(oC,{ref:t,UNSAFE_style:{background:"transparent",isolation:"isolate"},isDisabled:!1},_.createElement(gz,{in:r,appear:!0,onExit:u,onExiting:c,onExited:b,onEnter:s,onEntering:o,onEntered:g,nodeRef:f},n))):null}let C$=_.forwardRef(vz);function Sr(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var ln={};Sr(ln,"react-spectrum-Modal",()=>W0,e=>W0=e);Sr(ln,"react-spectrum-Modal-wrapper",()=>U0,e=>U0=e);Sr(ln,"react-spectrum-Popover",()=>H0,e=>H0=e);Sr(ln,"react-spectrum-Tray",()=>K0,e=>K0=e);Sr(ln,"spectrum-Dialog-content",()=>Y0,e=>Y0=e);Sr(ln,"spectrum-Modal",()=>q0,e=>q0=e);Sr(ln,"spectrum-Modal-wrapper",()=>G0,e=>G0=e);Sr(ln,"spectrum-Popover",()=>Z0,e=>Z0=e);Sr(ln,"spectrum-Tray",()=>X0,e=>X0=e);var W0,U0,H0,K0,Y0,q0,G0,Z0,X0;W0="OhnpTq_react-spectrum-Modal";U0="OhnpTq_react-spectrum-Modal-wrapper";H0="OhnpTq_react-spectrum-Popover";K0="OhnpTq_react-spectrum-Tray";Y0="OhnpTq_spectrum-Dialog-content";q0="OhnpTq_spectrum-Modal";G0="OhnpTq_spectrum-Modal-wrapper";Z0="OhnpTq_spectrum-Popover";X0="OhnpTq_spectrum-Tray";function Fe(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var be={};Fe(be,"focus-ring",()=>Q0,e=>Q0=e);Fe(be,"i18nFontFamily",()=>J0,e=>J0=e);Fe(be,"spectrum-overlay--open",()=>hd,e=>hd=e);Fe(be,"is-open",()=>ev,e=>ev=e);Fe(be,"spectrum-overlay--bottom--open",()=>pd,e=>pd=e);Fe(be,"is-open--bottom",()=>tv,e=>tv=e);Fe(be,"spectrum-overlay--left--open",()=>md,e=>md=e);Fe(be,"is-open--left",()=>nv,e=>nv=e);Fe(be,"spectrum-overlay--right--open",()=>gd,e=>gd=e);Fe(be,"is-open--right",()=>rv,e=>rv=e);Fe(be,"spectrum-overlay--top--open",()=>vd,e=>vd=e);Fe(be,"is-open--top",()=>iv,e=>iv=e);Fe(be,"spectrum-FocusRing-ring",()=>bd,e=>bd=e);Fe(be,"spectrum-FocusRing",()=>av,e=>av=e);Fe(be,"spectrum-FocusRing--quiet",()=>sv,e=>sv=e);Fe(be,"spectrum-overlay",()=>yd,e=>yd=e);Fe(be,"spectrum-Popover",()=>ov,e=>ov=e);Fe(be,"spectrum-Popover--bottom",()=>lv,e=>lv=e);Fe(be,"spectrum-Popover--dialog",()=>uv,e=>uv=e);Fe(be,"spectrum-Popover--left",()=>cv,e=>cv=e);Fe(be,"spectrum-Popover--right",()=>dv,e=>dv=e);Fe(be,"spectrum-Popover--top",()=>fv,e=>fv=e);Fe(be,"spectrum-Popover--withTip",()=>hv,e=>hv=e);Fe(be,"spectrum-Popover-tip",()=>pv,e=>pv=e);Fe(be,"spectrum-Popover-tip-triangle",()=>mv,e=>mv=e);var Q0,J0,hd,ev,pd,tv,md,nv,gd,rv,vd,iv,bd,av,sv,yd,ov,lv,uv,cv,dv,fv,hv,pv,mv;Q0="cH0MeW_focus-ring";J0="cH0MeW_i18nFontFamily";hd="cH0MeW_spectrum-overlay--open";ev=`cH0MeW_is-open ${hd}`;pd="cH0MeW_spectrum-overlay--bottom--open";tv=`cH0MeW_is-open--bottom ${pd}`;md="cH0MeW_spectrum-overlay--left--open";nv=`cH0MeW_is-open--left ${md}`;gd="cH0MeW_spectrum-overlay--right--open";rv=`cH0MeW_is-open--right ${gd}`;vd="cH0MeW_spectrum-overlay--top--open";iv=`cH0MeW_is-open--top ${vd}`;bd="cH0MeW_spectrum-FocusRing-ring";av=`cH0MeW_spectrum-FocusRing ${bd}`;sv="cH0MeW_spectrum-FocusRing--quiet";yd="cH0MeW_spectrum-overlay";ov=`cH0MeW_spectrum-Popover ${yd}`;lv="cH0MeW_spectrum-Popover--bottom";uv="cH0MeW_spectrum-Popover--dialog";cv="cH0MeW_spectrum-Popover--left";dv="cH0MeW_spectrum-Popover--right";fv="cH0MeW_spectrum-Popover--top";hv="cH0MeW_spectrum-Popover--withTip";pv="cH0MeW_spectrum-Popover-tip";mv="cH0MeW_spectrum-Popover-tip-triangle";function Qt(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var Bt={};Qt(Bt,"focus-ring",()=>gv,e=>gv=e);Qt(Bt,"i18nFontFamily",()=>vv,e=>vv=e);Qt(Bt,"spectrum-overlay--open",()=>$d,e=>$d=e);Qt(Bt,"is-open",()=>bv,e=>bv=e);Qt(Bt,"spectrum-FocusRing-ring",()=>xd,e=>xd=e);Qt(Bt,"spectrum-FocusRing",()=>yv,e=>yv=e);Qt(Bt,"spectrum-FocusRing--quiet",()=>$v,e=>$v=e);Qt(Bt,"spectrum-overlay",()=>wd,e=>wd=e);Qt(Bt,"spectrum-Underlay",()=>xv,e=>xv=e);Qt(Bt,"spectrum-Underlay--transparent",()=>wv,e=>wv=e);Qt(Bt,"spectrum-overlay--bottom--open",()=>Dv,e=>Dv=e);Qt(Bt,"spectrum-overlay--left--open",()=>_v,e=>_v=e);Qt(Bt,"spectrum-overlay--right--open",()=>Ev,e=>Ev=e);Qt(Bt,"spectrum-overlay--top--open",()=>Sv,e=>Sv=e);var gv,vv,$d,bv,xd,yv,$v,wd,xv,wv,Dv,_v,Ev,Sv;gv="F-oYUa_focus-ring";vv="F-oYUa_i18nFontFamily";$d="F-oYUa_spectrum-overlay--open";bv=`F-oYUa_is-open ${$d}`;xd="F-oYUa_spectrum-FocusRing-ring";yv=`F-oYUa_spectrum-FocusRing ${xd}`;$v="F-oYUa_spectrum-FocusRing--quiet";wd="F-oYUa_spectrum-overlay";xv=`F-oYUa_spectrum-Underlay ${wd}`;wv="F-oYUa_spectrum-Underlay--transparent";Dv="F-oYUa_spectrum-overlay--bottom--open";_v="F-oYUa_spectrum-overlay--left--open";Ev="F-oYUa_spectrum-overlay--right--open";Sv="F-oYUa_spectrum-overlay--top--open";function bz(e){return e&&e.__esModule?e.default:e}function k$({isOpen:e,isTransparent:t,...n}){return _.createElement("div",{"data-testid":"underlay",...n,className:V(bz(Bt),"spectrum-Underlay",{"is-open":e,"spectrum-Underlay--transparent":t})})}function Dd(e){return e&&e.__esModule?e.default:e}let yz={left:"right",right:"right",top:"bottom",bottom:"bottom"};function $z(e,t){let{children:n,state:r,...i}=e,a=Nn(t),s=y.useRef(null);return _.createElement(C$,{...i,isOpen:r.isOpen,nodeRef:s},_.createElement(xz,{ref:a,...e,wrapperRef:s},n))}const xz=y.forwardRef((e,t)=>{let{children:n,isOpen:r,hideArrow:i,isNonModal:a,enableBothDismissButtons:s,state:o,wrapperRef:l,onDismissButtonPress:u=()=>o.close()}=e,{styleProps:c}=st(e),{size:d,borderWidth:f,arrowRef:h}=Dz();const p=wz(t);let g=f*Math.SQRT2,b=d+g,v=b*2,{popoverProps:m,arrowProps:$,underlayProps:w,placement:D}=yj({...e,popoverRef:t,maxHeight:null,arrowSize:i?0:v,arrowBoundaryOffset:p},o),{focusWithinProps:S}=Ms(e);return _.createElement("div",{ref:l},!a&&_.createElement(k$,{isTransparent:!0,...de(w),isOpen:r}),_.createElement("div",{...c,...de(m,S),style:{...c.style,...m.style},ref:t,className:V(Dd(be),"spectrum-Popover",`spectrum-Popover--${D}`,{"spectrum-Popover--withTip":!i,"is-open":r,[`is-open--${D}`]:r},V(Dd(ln),"spectrum-Popover","react-spectrum-Popover"),c.className),role:"presentation","data-testid":"popover"},(!a||s)&&_.createElement(ud,{onDismiss:u}),n,i?null:_.createElement(_z,{arrowProps:$,isLandscape:yz[D]==="bottom",arrowRef:h,primary:b,secondary:v,borderDiagonal:g}),_.createElement(ud,{onDismiss:u})))});function wz(e){let[t,n]=y.useState(0);return he(()=>{if(e.current){let r=window.getComputedStyle(e.current).borderRadius;r!==""&&n(parseInt(r,10))}},[e]),t}function Dz(){let[e,t]=y.useState(20),[n,r]=y.useState(1),i=y.useRef(null);return he(()=>{if(i.current){let a=window.getComputedStyle(i.current).getPropertyValue("--spectrum-popover-tip-size");a!==""&&t(parseInt(a,10)/2);let s=window.getComputedStyle(i.current).getPropertyValue("--spectrum-popover-tip-borderWidth");s!==""&&r(parseInt(s,10))}},[]),{size:e,borderWidth:n,arrowRef:i}}function _z(e){let{primary:t,secondary:n,isLandscape:r,arrowProps:i,borderDiagonal:a,arrowRef:s}=e,o=a/2,l=0,u=t-o,c=o,d=n/2,f=n-o,h=r?["M",c,l,"L",d,u,"L",f,l]:["M",l,c,"L",u,d,"L",l,f];return _.createElement("svg",{xmlns:"http://www.w3.org/svg/2000",width:Math.ceil(r?n:t),height:Math.ceil(r?t:n),className:V(Dd(be),"spectrum-Popover-tip"),ref:s,...i},_.createElement("path",{className:V(Dd(be),"spectrum-Popover-tip-triangle"),d:h.join(" ")}))}let Ez=y.forwardRef($z);function bt(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var ot={};bt(ot,"focus-ring",()=>Cv,e=>Cv=e);bt(ot,"i18nFontFamily",()=>kv,e=>kv=e);bt(ot,"spectrum-overlay--open",()=>_d,e=>_d=e);bt(ot,"is-open",()=>Pv,e=>Pv=e);bt(ot,"spectrum-FocusRing-ring",()=>Ed,e=>Ed=e);bt(ot,"spectrum-FocusRing",()=>Tv,e=>Tv=e);bt(ot,"spectrum-FocusRing--quiet",()=>Rv,e=>Rv=e);bt(ot,"spectrum-overlay",()=>Sd,e=>Sd=e);bt(ot,"spectrum-Modal",()=>Mv,e=>Mv=e);bt(ot,"spectrum-Modal--fullscreen",()=>Fv,e=>Fv=e);bt(ot,"spectrum-Modal--fullscreenTakeover",()=>Av,e=>Av=e);bt(ot,"spectrum-Modal--responsive",()=>Ov,e=>Ov=e);bt(ot,"spectrum-Modal-wrapper",()=>Bv,e=>Bv=e);bt(ot,"spectrum-overlay--bottom--open",()=>Iv,e=>Iv=e);bt(ot,"spectrum-overlay--left--open",()=>Lv,e=>Lv=e);bt(ot,"spectrum-overlay--right--open",()=>Nv,e=>Nv=e);bt(ot,"spectrum-overlay--top--open",()=>jv,e=>jv=e);var Cv,kv,_d,Pv,Ed,Tv,Rv,Sd,Mv,Fv,Av,Ov,Bv,Iv,Lv,Nv,jv;Cv="_0YML2q_focus-ring";kv="_0YML2q_i18nFontFamily";_d="_0YML2q_spectrum-overlay--open";Pv=`_0YML2q_is-open ${_d}`;Ed="_0YML2q_spectrum-FocusRing-ring";Tv=`_0YML2q_spectrum-FocusRing ${Ed}`;Rv="_0YML2q_spectrum-FocusRing--quiet";Sd="_0YML2q_spectrum-overlay";Mv=`_0YML2q_spectrum-Modal ${Sd}`;Fv="_0YML2q_spectrum-Modal--fullscreen";Av="_0YML2q_spectrum-Modal--fullscreenTakeover";Ov="_0YML2q_spectrum-Modal--responsive";Bv="_0YML2q_spectrum-Modal-wrapper";Iv="_0YML2q_spectrum-overlay--bottom--open";Lv="_0YML2q_spectrum-overlay--left--open";Nv="_0YML2q_spectrum-overlay--right--open";jv="_0YML2q_spectrum-overlay--top--open";function Cu(e){return e&&e.__esModule?e.default:e}function Sz(e,t){let{children:n,state:r,...i}=e,a=Nn(t),s=y.useRef(null);return _.createElement(C$,{...i,isOpen:r.isOpen,nodeRef:s},_.createElement(kz,{...e,wrapperRef:s,ref:a},n))}let Cz={fullscreen:"fullscreen",fullscreenTakeover:"fullscreenTakeover"},kz=y.forwardRef(function(e,t){let{type:n,children:r,state:i,isOpen:a,wrapperRef:s}=e,o=Cz[n],{styleProps:l}=st(e),{modalProps:u,underlayProps:c}=XE(e,i,t),d=V(Cu(ot),"spectrum-Modal-wrapper",V(Cu(ln),"spectrum-Modal-wrapper","react-spectrum-Modal-wrapper")),f=V(Cu(ot),"spectrum-Modal",{"is-open":a},V(Cu(ln),"spectrum-Modal","react-spectrum-Modal"),{[`spectrum-Modal--${o}`]:o},l.className),p={"--spectrum-visual-viewport-height":r7().height+"px"};return _.createElement("div",{ref:s},_.createElement(k$,{...c,isOpen:a}),_.createElement("div",{className:d,style:p},_.createElement("div",{...l,...u,ref:t,className:f,"data-testid":"modal"},r)))}),Pz=y.forwardRef(Sz);function It(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var vt={};It(vt,"focus-ring",()=>zv,e=>zv=e);It(vt,"i18nFontFamily",()=>Vv,e=>Vv=e);It(vt,"spectrum-overlay--open",()=>Cd,e=>Cd=e);It(vt,"is-open",()=>Wv,e=>Wv=e);It(vt,"spectrum-FocusRing-ring",()=>kd,e=>kd=e);It(vt,"spectrum-FocusRing",()=>Uv,e=>Uv=e);It(vt,"spectrum-FocusRing--quiet",()=>Hv,e=>Hv=e);It(vt,"spectrum-overlay",()=>Pd,e=>Pd=e);It(vt,"spectrum-Tray",()=>Kv,e=>Kv=e);It(vt,"spectrum-Tray--fixedHeight",()=>Yv,e=>Yv=e);It(vt,"spectrum-Tray-wrapper",()=>qv,e=>qv=e);It(vt,"spectrum-overlay--bottom--open",()=>Gv,e=>Gv=e);It(vt,"spectrum-overlay--left--open",()=>Zv,e=>Zv=e);It(vt,"spectrum-overlay--right--open",()=>Xv,e=>Xv=e);It(vt,"spectrum-overlay--top--open",()=>Qv,e=>Qv=e);var zv,Vv,Cd,Wv,kd,Uv,Hv,Pd,Kv,Yv,qv,Gv,Zv,Xv,Qv;zv="UuxJvG_focus-ring";Vv="UuxJvG_i18nFontFamily";Cd="UuxJvG_spectrum-overlay--open";Wv=`UuxJvG_is-open ${Cd}`;kd="UuxJvG_spectrum-FocusRing-ring";Uv=`UuxJvG_spectrum-FocusRing ${kd}`;Hv="UuxJvG_spectrum-FocusRing--quiet";Pd="UuxJvG_spectrum-overlay";Kv=`UuxJvG_spectrum-Tray ${Pd}`;Yv="UuxJvG_spectrum-Tray--fixedHeight";qv="UuxJvG_spectrum-Tray-wrapper";Gv="UuxJvG_spectrum-overlay--bottom--open";Zv="UuxJvG_spectrum-overlay--left--open";Xv="UuxJvG_spectrum-overlay--right--open";Qv="UuxJvG_spectrum-overlay--top--open";function Jh(e){return e&&e.__esModule?e.default:e}function Tz(e,t){let{children:n,state:r,...i}=e,a=Nn(t),s=y.useRef(null);return _.createElement(C$,{...i,isOpen:r.isOpen,nodeRef:s},_.createElement(Rz,{...e,wrapperRef:s,ref:a},n))}let Rz=y.forwardRef(function(e,t){let{children:n,isOpen:r,isFixedHeight:i,state:a,wrapperRef:s}=e,{styleProps:o}=st(e),{modalProps:l,underlayProps:u}=XE({...e,isDismissable:!0},a,t),d={"--spectrum-visual-viewport-height":r7().height+"px"},f=V(Jh(vt),"spectrum-Tray-wrapper"),h=V(Jh(vt),"spectrum-Tray",{"is-open":r,"spectrum-Tray--fixedHeight":i},V(Jh(ln),"spectrum-Tray","react-spectrum-Tray"),o.className);return _.createElement("div",{ref:s},_.createElement(k$,{...u,isOpen:r}),_.createElement("div",{className:f,style:d},_.createElement("div",{...o,...l,className:h,ref:t,"data-testid":"tray"},_.createElement(ud,{onDismiss:a.close}),n,_.createElement(ud,{onDismiss:a.close}))))}),Mz=y.forwardRef(Tz);var dC={};Object.defineProperty(dC,"__esModule",{value:!0});var Fz=dC.CheckmarkMedium=fC,ep=Az(y);function Az(e){return e&&e.__esModule?e:{default:e}}function Jv(){return Jv=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Jv.apply(this,arguments)}function Oz(e,t){if(e==null)return{};var n=Bz(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Bz(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function fC(e){var t=e.scale,n=t===void 0?"M":t,r=Oz(e,["scale"]);return ep.default.createElement("svg",Jv({},r,r),n==="L"&&ep.default.createElement("path",{d:"M6 14a1 1 0 0 1-.789-.385l-4-5a1 1 0 1 1 1.577-1.23L6 11.376l7.213-8.99a1 1 0 1 1 1.576 1.23l-8 10a1 1 0 0 1-.789.384z"}),n==="M"&&ep.default.createElement("path",{d:"M4.5 10a1.022 1.022 0 0 1-.799-.384l-2.488-3a1 1 0 0 1 1.576-1.233L4.5 7.376l4.712-5.991a1 1 0 1 1 1.576 1.23l-5.51 7A.978.978 0 0 1 4.5 10z"}))}fC.displayName="CheckmarkMedium";function Iz(e){return _.createElement(va,e,_.createElement(Fz,null))}const Lz={...Af,autoFlow:["gridAutoFlow",tt],autoColumns:["gridAutoColumns",Td],autoRows:["gridAutoRows",Td],areas:["gridTemplateAreas",jz],columns:["gridTemplateColumns",M5],rows:["gridTemplateRows",M5],gap:["gap",le],rowGap:["rowGap",le],columnGap:["columnGap",le],justifyItems:["justifyItems",tt],justifyContent:["justifyContent",tt],alignItems:["alignItems",tt],alignContent:["alignContent",tt]};function Nz(e,t){let{children:n,...r}=e,{styleProps:i}=st(r,Lz);i.style.display="grid";let a=Nn(t);return _.createElement("div",{...Xt(r),...i,ref:a},n)}function jz(e){return e.map(t=>`"${t}"`).join(`
+`)}function Td(e){return/^max-content|min-content|minmax|auto|fit-content|repeat|subgrid/.test(e)?e:le(e)}function M5(e){return Array.isArray(e)?e.map(Td).join(" "):Td(e)}const zz=y.forwardRef(Nz);function P$(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var zf={};P$(zf,"flex",()=>e1,e=>e1=e);P$(zf,"flex-container",()=>t1,e=>t1=e);P$(zf,"flex-gap",()=>n1,e=>n1=e);var e1,t1,n1;e1="NW91UW_flex";t1="NW91UW_flex-container";n1="NW91UW_flex-gap";function Vz(e){return e&&e.__esModule?e.default:e}const Wz={direction:["flexDirection",tt],wrap:["flexWrap",Hz],justifyContent:["justifyContent",tp],alignItems:["alignItems",tp],alignContent:["alignContent",tp]};function Uz(e,t){let{children:n,...r}=e,i=p8(),a=(i==null?void 0:i.matchedBreakpoints)||["base"],{styleProps:s}=st(r),{styleProps:o}=st(r,Wz),l=Nn(t),u={...s.style,...o.style};return e.gap!=null&&(u.gap=Nh(e.gap,a)),e.columnGap!=null&&(u.columnGap=Nh(e.columnGap,a)),e.rowGap!=null&&(u.rowGap=Nh(e.rowGap,a)),_.createElement("div",{...Xt(r),className:V(Vz(zf),"flex",s.className),style:u,ref:l},n)}function tp(e){return e==="start"?"flex-start":e==="end"?"flex-end":e}function Hz(e){return typeof e=="boolean"?e?"wrap":"nowrap":e}const hC=y.forwardRef(Uz);var pC={};Object.defineProperty(pC,"__esModule",{value:!0});var Kz=pC.CrossLarge=mC,np=Yz(y);function Yz(e){return e&&e.__esModule?e:{default:e}}function r1(){return r1=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r1.apply(this,arguments)}function qz(e,t){if(e==null)return{};var n=Gz(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Gz(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function mC(e){var t=e.scale,n=t===void 0?"M":t,r=qz(e,["scale"]);return np.default.createElement("svg",r1({},r,r),n==="L"&&np.default.createElement("path",{d:"M15.697 14.283L9.414 8l6.283-6.283A1 1 0 1 0 14.283.303L8 6.586 1.717.303A1 1 0 1 0 .303 1.717L6.586 8 .303 14.283a1 1 0 1 0 1.414 1.414L8 9.414l6.283 6.283a1 1 0 1 0 1.414-1.414z"}),n==="M"&&np.default.createElement("path",{d:"M11.697 10.283L7.414 6l4.283-4.283A1 1 0 1 0 10.283.303L6 4.586 1.717.303A1 1 0 1 0 .303 1.717L4.586 6 .303 10.283a1 1 0 1 0 1.414 1.414L6 7.414l4.283 4.283a1 1 0 1 0 1.414-1.414z"}))}mC.displayName="CrossLarge";function Zz(e){return _.createElement(va,e,_.createElement(Kz,null))}function se(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var q={};se(q,"focus-ring",()=>i1,e=>i1=e);se(q,"i18nFontFamily",()=>a1,e=>a1=e);se(q,"is-disabled",()=>s1,e=>s1=e);se(q,"is-focused",()=>o1,e=>o1=e);se(q,"is-hovered",()=>l1,e=>l1=e);se(q,"is-invalid",()=>u1,e=>u1=e);se(q,"is-outsideMonth",()=>c1,e=>c1=e);se(q,"is-pressed",()=>d1,e=>d1=e);se(q,"is-range-end",()=>f1,e=>f1=e);se(q,"is-range-selection",()=>h1,e=>h1=e);se(q,"is-range-start",()=>p1,e=>p1=e);se(q,"is-selected",()=>m1,e=>m1=e);se(q,"is-selection-end",()=>g1,e=>g1=e);se(q,"is-selection-start",()=>v1,e=>v1=e);se(q,"is-today",()=>b1,e=>b1=e);se(q,"is-unavailable",()=>y1,e=>y1=e);se(q,"next",()=>$1,e=>$1=e);se(q,"prev",()=>x1,e=>x1=e);se(q,"spectrum-Calendar",()=>w1,e=>w1=e);se(q,"spectrum-Calendar--padded",()=>D1,e=>D1=e);se(q,"spectrum-Calendar-body",()=>_1,e=>_1=e);se(q,"spectrum-Calendar-date",()=>E1,e=>E1=e);se(q,"spectrum-Calendar-dateText",()=>S1,e=>S1=e);se(q,"spectrum-Calendar-dayOfWeek",()=>C1,e=>C1=e);se(q,"spectrum-Calendar-header",()=>k1,e=>k1=e);se(q,"spectrum-Calendar-monthHeader",()=>P1,e=>P1=e);se(q,"spectrum-Calendar-months",()=>T1,e=>T1=e);se(q,"spectrum-Calendar-nextMonth",()=>R1,e=>R1=e);se(q,"spectrum-Calendar-prevMonth",()=>M1,e=>M1=e);se(q,"spectrum-Calendar-table",()=>F1,e=>F1=e);se(q,"spectrum-Calendar-tableCell",()=>A1,e=>A1=e);se(q,"spectrum-Calendar-title",()=>O1,e=>O1=e);se(q,"spectrum-FocusRing-ring",()=>Rd,e=>Rd=e);se(q,"spectrum-FocusRing",()=>B1,e=>B1=e);se(q,"spectrum-FocusRing--quiet",()=>I1,e=>I1=e);se(q,"title",()=>L1,e=>L1=e);var i1,a1,s1,o1,l1,u1,c1,d1,f1,h1,p1,m1,g1,v1,b1,y1,$1,x1,w1,D1,_1,E1,S1,C1,k1,P1,T1,R1,M1,F1,A1,O1,Rd,B1,I1,L1;i1="EuwYBq_focus-ring";a1="EuwYBq_i18nFontFamily";s1="EuwYBq_is-disabled";o1="EuwYBq_is-focused";l1="EuwYBq_is-hovered";u1="EuwYBq_is-invalid";c1="EuwYBq_is-outsideMonth";d1="EuwYBq_is-pressed";f1="EuwYBq_is-range-end";h1="EuwYBq_is-range-selection";p1="EuwYBq_is-range-start";m1="EuwYBq_is-selected";g1="EuwYBq_is-selection-end";v1="EuwYBq_is-selection-start";b1="EuwYBq_is-today";y1="EuwYBq_is-unavailable";$1="EuwYBq_next";x1="EuwYBq_prev";w1="EuwYBq_spectrum-Calendar";D1="EuwYBq_spectrum-Calendar--padded";_1="EuwYBq_spectrum-Calendar-body";E1="EuwYBq_spectrum-Calendar-date";S1="EuwYBq_spectrum-Calendar-dateText";C1="EuwYBq_spectrum-Calendar-dayOfWeek";k1="EuwYBq_spectrum-Calendar-header";P1="EuwYBq_spectrum-Calendar-monthHeader";T1="EuwYBq_spectrum-Calendar-months";R1="EuwYBq_spectrum-Calendar-nextMonth";M1="EuwYBq_spectrum-Calendar-prevMonth";F1="EuwYBq_spectrum-Calendar-table";A1="EuwYBq_spectrum-Calendar-tableCell";O1="EuwYBq_spectrum-Calendar-title";Rd="EuwYBq_spectrum-FocusRing-ring";B1=`EuwYBq_spectrum-FocusRing ${Rd}`;I1="EuwYBq_spectrum-FocusRing--quiet";L1="EuwYBq_title";function rp(e){return e&&e.__esModule?e.default:e}function Xz({state:e,currentMonth:t,...n}){let r=y.useRef(),{cellProps:i,buttonProps:a,isPressed:s,isSelected:o,isDisabled:l,isFocused:u,isInvalid:c,formattedDate:d}=KN({...n,isDisabled:!A2(n.date,t)},e,r),f=e.isCellUnavailable(n.date)&&!l,h=!l&&!c&&e.isCellUnavailable(n.date.add({days:1})),p=!l&&!c&&e.isCellUnavailable(n.date.subtract({days:1})),g="highlightedRange"in e&&e.highlightedRange,b=o&&g&&Ze(n.date,g.start),v=o&&g&&Ze(n.date,g.end),{locale:m}=Qe(),$=kf(n.date,m),w=o&&(p||$===0||n.date.day===1),D=o&&(h||$===6||n.date.day===t.calendar.getDaysInMonth(t)),{focusProps:S,isFocusVisible:k}=hl(),{hoverProps:x,isHovered:T}=If({isDisabled:l||f||e.isReadOnly});return _.createElement("td",{...i,className:V(rp(q),"spectrum-Calendar-tableCell")},_.createElement("span",{...de(a,x,S),ref:r,className:V(rp(q),"spectrum-Calendar-date",{"is-today":w8(n.date,e.timeZone),"is-selected":o,"is-focused":u&&k,"is-disabled":l&&!c,"is-unavailable":f||c&&l,"is-outsideMonth":!A2(n.date,t),"is-range-start":w,"is-range-end":D,"is-range-selection":o&&"highlightedRange"in e,"is-selection-start":b,"is-selection-end":v,"is-hovered":T,"is-pressed":s&&!e.isReadOnly,"is-invalid":c})},_.createElement("span",{className:V(rp(q),"spectrum-Calendar-dateText")},_.createElement("span",null,d))))}function ip(e){return e&&e.__esModule?e.default:e}function Qz(e){let{state:t,startDate:n}=e,{gridProps:r,headerProps:i,weekDays:a}=UN({...e,endDate:Uc(n)},t),{locale:s}=Qe(),o=DI(n,s);return _.createElement("table",{...r,className:V(ip(q),"spectrum-Calendar-body","spectrum-Calendar-table")},_.createElement("thead",i,_.createElement("tr",null,a.map((l,u)=>_.createElement("th",{key:u,className:V(ip(q),"spectrum-Calendar-tableCell")},_.createElement("span",{className:V(ip(q),"spectrum-Calendar-dayOfWeek")},l))))),_.createElement("tbody",null,[...new Array(o).keys()].map(l=>_.createElement("tr",{key:l},t.getDatesInWeek(l,n).map((u,c)=>u?_.createElement(Xz,{key:c,state:t,date:u,currentMonth:n}):_.createElement("td",{key:c}))))))}var gC={};gC={invalidSelection:(e,t)=>`${t.plural(e.selectedCount,{one:"التاريخ",other:"التواريخ"})} المحدد/المحددة غير متوفرة.`};var vC={};vC={invalidSelection:(e,t)=>`${t.plural(e.selectedCount,{one:"Избраната дата не е налична",other:"Избраните дати не са налични"})}.`};var bC={};bC={invalidSelection:(e,t)=>`${t.plural(e.selectedCount,{one:"Vybrané datum není",other:"Vybraná data nejsou"})} k dispozici.`};var yC={};yC={invalidSelection:(e,t)=>`Valgte ${t.plural(e.selectedCount,{one:"dato",other:"datoer"})} ikke ledige.`};var $C={};$C={invalidSelection:(e,t)=>`Ausgewählte(s) ${t.plural(e.selectedCount,{one:"Datum",other:"Daten"})} nicht verfügbar.`};var xC={};xC={invalidSelection:(e,t)=>`${t.plural(e.selectedCount,{one:"Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη",other:"Οι επιλεγμένες ημερομηνίες δεν είναι διαθέσιμες"})}.`};var wC={};wC={invalidSelection:(e,t)=>`Selected ${t.plural(e.selectedCount,{one:"date",other:"dates"})} unavailable.`};var DC={};DC={invalidSelection:(e,t)=>`${t.plural(e.selectedCount,{one:"La fecha seleccionada no está disponible",other:"Las fechas seleccionadas no están disponibles"})}.`};var _C={};_C={invalidSelection:(e,t)=>`Valitud ${t.plural(e.selectedCount,{one:"kuupäev",other:"kuupäevad"})} pole saadaval.`};var EC={};EC={invalidSelection:(e,t)=>`${t.plural(e.selectedCount,{one:"Valittu päivämäärä ei ole",other:"Valitut päivämäärät eivät ole"})} saatavilla.`};var SC={};SC={invalidSelection:(e,t)=>`${t.plural(e.selectedCount,{one:"La date sélectionnée est indisponible",other:"Les dates sélectionnées sont indisponibles"})}.`};var CC={};CC={invalidSelection:(e,t)=>`נבחר ${t.plural(e.selectedCount,{one:"תאריך",other:"תאריכים"})} אינו זמין.`};var kC={};kC={invalidSelection:(e,t)=>`${t.plural(e.selectedCount,{one:"Odabrani datum nije dostupan",other:"Odabrani datumi nisu dostupni"})}.`};var PC={};PC={invalidSelection:(e,t)=>`A kijelölt ${t.plural(e.selectedCount,{one:"dátum nem érhető el",other:"dátumok nem érhetőek el"})}.`};var TC={};TC={invalidSelection:(e,t)=>`${t.plural(e.selectedCount,{one:"Data selezionata non disponibile",other:"Date selezionate non disponibili"})}.`};var RC={};RC={invalidSelection:(e,t)=>`選択した${t.plural(e.selectedCount,{one:"日付",other:"日付"})}は使用できません。`};var MC={};MC={invalidSelection:(e,t)=>`선택한 ${t.plural(e.selectedCount,{one:"일자를",other:"일자를"})} 사용할 수 없습니다.`};var FC={};FC={invalidSelection:(e,t)=>`${t.plural(e.selectedCount,{one:"Datos",other:"Datų"})} pasirinkimas negalimas.`};var AC={};AC={invalidSelection:(e,t)=>`Atlasītais(-ie) ${t.plural(e.selectedCount,{one:"date",other:"dates"})} nav pieejams(-i).`};var OC={};OC={invalidSelection:(e,t)=>`Valgt(e) ${t.plural(e.selectedCount,{one:"dato",other:"datoer"})} er utilgjengelig.`};var BC={};BC={invalidSelection:(e,t)=>`Geselecteerde ${t.plural(e.selectedCount,{one:"datum",other:"datums"})} niet beschikbaar.`};var IC={};IC={invalidSelection:(e,t)=>`${t.plural(e.selectedCount,{one:"Wybrana data jest niedostępna",other:"Wybrane daty są niedostępne"})}.`};var LC={};LC={invalidSelection:(e,t)=>`${t.plural(e.selectedCount,{one:"Data",other:"Datas"})} selecionada(s) indisponível(is).`};var NC={};NC={invalidSelection:(e,t)=>`A(s) ${t.plural(e.selectedCount,{one:"data",other:"datas"})} selecionada(s) não está(ão) disponível/disponível(eis).`};var jC={};jC={invalidSelection:(e,t)=>`${t.plural(e.selectedCount,{one:"Data selectată nu este disponibilă",other:"Datele selectate nu sunt disponibile"})}.`};var zC={};zC={invalidSelection:(e,t)=>`Выбранные ${t.plural(e.selectedCount,{one:"дата",other:"даты"})} недоступны.`};var VC={};VC={invalidSelection:(e,t)=>`${t.plural(e.selectedCount,{one:"Vybratý dátum",other:"Vybraté dátumy"})}: nedostupné.`};var WC={};WC={invalidSelection:(e,t)=>`Izbrano ${t.plural(e.selectedCount,{one:"date",other:"dates"})} ni na voljo.`};var UC={};UC={invalidSelection:(e,t)=>`Izabrani ${t.plural(e.selectedCount,{one:"date",other:"dates"})} nije dostupan.`};var HC={};HC={invalidSelection:(e,t)=>`${t.plural(e.selectedCount,{one:"Valt datum är inte tillgängligt.",other:"Valda datum är inte tillgängliga."})}`};var KC={};KC={invalidSelection:(e,t)=>`Seçilen ${t.plural(e.selectedCount,{one:"tarih",other:"tarihler"})} müsait değil.`};var YC={};YC={invalidSelection:(e,t)=>`${t.plural(e.selectedCount,{one:"Вибрана дата недоступна",other:"Вибрані дати недоступні"})}.`};var qC={};qC={invalidSelection:(e,t)=>`选定的 ${t.plural(e.selectedCount,{one:"个日期",other:"个日期"})} 不可用。`};var GC={};GC={invalidSelection:(e,t)=>`所選的${t.plural(e.selectedCount,{one:"日期",other:"日期"})}無法使用。`};var ZC={};ZC={"ar-AE":gC,"bg-BG":vC,"cs-CZ":bC,"da-DK":yC,"de-DE":$C,"el-GR":xC,"en-US":wC,"es-ES":DC,"et-EE":_C,"fi-FI":EC,"fr-FR":SC,"he-IL":CC,"hr-HR":kC,"hu-HU":PC,"it-IT":TC,"ja-JP":RC,"ko-KR":MC,"lt-LT":FC,"lv-LV":AC,"nb-NO":OC,"nl-NL":BC,"pl-PL":IC,"pt-BR":LC,"pt-PT":NC,"ro-RO":jC,"ru-RU":zC,"sk-SK":VC,"sl-SI":WC,"sr-SP":UC,"sv-SE":HC,"tr-TR":KC,"uk-UA":YC,"zh-CN":qC,"zh-TW":GC};var XC={};Object.defineProperty(XC,"__esModule",{value:!0});var Jz=XC.ChevronLeftLarge=QC,ap=eV(y);function eV(e){return e&&e.__esModule?e:{default:e}}function N1(){return N1=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},N1.apply(this,arguments)}function tV(e,t){if(e==null)return{};var n=nV(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function nV(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function QC(e){var t=e.scale,n=t===void 0?"M":t,r=tV(e,["scale"]);return ap.default.createElement("svg",N1({},r,r),n==="L"&&ap.default.createElement("path",{d:"M12.109 17.853l-8.066-7.849 8.066-7.84a1.243 1.243 0 0 0 .381-.894 1.24 1.24 0 0 0-2.12-.894L1.379 9.108a1.246 1.246 0 0 0 .003 1.79l8.99 8.744a1.247 1.247 0 1 0 1.738-1.789z"}),n==="M"&&ap.default.createElement("path",{d:"M9.605 13.843L3.55 8l6.056-5.84A1.248 1.248 0 1 0 7.876.363L.882 7.1a1.243 1.243 0 0 0 .003 1.797l6.988 6.742a1.248 1.248 0 1 0 1.732-1.796z"}))}QC.displayName="ChevronLeftLarge";function F5(e){return _.createElement(va,e,_.createElement(Jz,null))}var JC={};Object.defineProperty(JC,"__esModule",{value:!0});var rV=JC.ChevronRightLarge=ek,sp=iV(y);function iV(e){return e&&e.__esModule?e:{default:e}}function j1(){return j1=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},j1.apply(this,arguments)}function aV(e,t){if(e==null)return{};var n=sV(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function sV(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function ek(e){var t=e.scale,n=t===void 0?"M":t,r=aV(e,["scale"]);return sp.default.createElement("svg",j1({},r,r),n==="L"&&sp.default.createElement("path",{d:"M15 10.004a1.243 1.243 0 0 0-.38-.894L5.631.364a1.249 1.249 0 1 0-1.741 1.79l8.066 7.85-8.069 7.847a1.249 1.249 0 0 0 1.741 1.79l8.992-8.74a1.246 1.246 0 0 0 .379-.897z"}),n==="M"&&sp.default.createElement("path",{d:"M11.5 8a1.241 1.241 0 0 0-.386-.897L4.128.36a1.248 1.248 0 1 0-1.733 1.797L8.45 8l-6.058 5.84a1.248 1.248 0 1 0 1.733 1.797L11.117 8.9A1.245 1.245 0 0 0 11.5 8z"}))}ek.displayName="ChevronRightLarge";function A5(e){return _.createElement(va,e,_.createElement(rV,null))}function jn(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var Rt={};jn(Rt,"focus-ring",()=>z1,e=>z1=e);jn(Rt,"i18nFontFamily",()=>V1,e=>V1=e);jn(Rt,"is-disabled",()=>W1,e=>W1=e);jn(Rt,"spectrum-FocusRing-ring",()=>Md,e=>Md=e);jn(Rt,"spectrum-FocusRing",()=>U1,e=>U1=e);jn(Rt,"spectrum-FocusRing--quiet",()=>H1,e=>H1=e);jn(Rt,"spectrum-HelpText",()=>K1,e=>K1=e);jn(Rt,"spectrum-HelpText--negative",()=>Y1,e=>Y1=e);jn(Rt,"spectrum-HelpText--neutral",()=>q1,e=>q1=e);jn(Rt,"spectrum-HelpText-text",()=>G1,e=>G1=e);jn(Rt,"spectrum-HelpText-validationIcon",()=>Z1,e=>Z1=e);var z1,V1,W1,Md,U1,H1,K1,Y1,q1,G1,Z1;z1="a1Qy2q_focus-ring";V1="a1Qy2q_i18nFontFamily";W1="a1Qy2q_is-disabled";Md="a1Qy2q_spectrum-FocusRing-ring";U1=`a1Qy2q_spectrum-FocusRing ${Md}`;H1="a1Qy2q_spectrum-FocusRing--quiet";K1="a1Qy2q_spectrum-HelpText";Y1="a1Qy2q_spectrum-HelpText--negative";q1="a1Qy2q_spectrum-HelpText--neutral";G1="a1Qy2q_spectrum-HelpText-text";Z1="a1Qy2q_spectrum-HelpText-validationIcon";var tk={};Object.defineProperty(tk,"__esModule",{value:!0});var nk=tk.AlertMedium=rk,op=oV(y);function oV(e){return e&&e.__esModule?e:{default:e}}function X1(){return X1=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},X1.apply(this,arguments)}function lV(e,t){if(e==null)return{};var n=uV(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function uV(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function rk(e){var t=e.scale,n=t===void 0?"M":t,r=lV(e,["scale"]);return op.default.createElement("svg",X1({},r,r),n==="L"&&op.default.createElement("path",{d:"M10.563 2.206l-9.249 16.55a.5.5 0 0 0 .436.744h18.5a.5.5 0 0 0 .436-.744l-9.251-16.55a.5.5 0 0 0-.872 0zm1.436 15.044a.25.25 0 0 1-.25.25h-1.5a.25.25 0 0 1-.25-.25v-1.5a.25.25 0 0 1 .25-.25h1.5a.25.25 0 0 1 .25.25zm0-3.5a.25.25 0 0 1-.25.25h-1.5a.25.25 0 0 1-.25-.25v-6a.25.25 0 0 1 .25-.25h1.5a.25.25 0 0 1 .25.25z"}),n==="M"&&op.default.createElement("path",{d:"M8.564 1.289L.2 16.256A.5.5 0 0 0 .636 17h16.728a.5.5 0 0 0 .436-.744L9.436 1.289a.5.5 0 0 0-.872 0zM10 14.75a.25.25 0 0 1-.25.25h-1.5a.25.25 0 0 1-.25-.25v-1.5a.25.25 0 0 1 .25-.25h1.5a.25.25 0 0 1 .25.25zm0-3a.25.25 0 0 1-.25.25h-1.5a.25.25 0 0 1-.25-.25v-6a.25.25 0 0 1 .25-.25h1.5a.25.25 0 0 1 .25.25z"}))}rk.displayName="AlertMedium";const ik=e=>_.createElement("svg",j0({viewBox:"0 0 18 18"},e),_.createElement("path",{d:"M9 10.5a1 1 0 0 1-1-1V5a1 1 0 1 1 2 0v4.5a1 1 0 0 1-1 1Zm0 1.25A1.25 1.25 0 1 0 10.25 13 1.25 1.25 0 0 0 9 11.75Zm8.497 3.589a3.49 3.49 0 0 0 .079-3.474L12 1.815a3.385 3.385 0 0 0-5.994-.007L.416 11.88a3.485 3.485 0 0 0 .089 3.459A3.375 3.375 0 0 0 3.416 17h11.169a3.375 3.375 0 0 0 2.912-1.661ZM10.244 2.77l5.575 10.05a1.497 1.497 0 0 1-.037 1.489 1.374 1.374 0 0 1-1.197.69H3.416a1.374 1.374 0 0 1-1.197-.69 1.493 1.493 0 0 1-.046-1.474l5.593-10.08a1.386 1.386 0 0 1 2.478.015Z"}));ik.displayName=nk.displayName;function ak(e){var t;let n=ga();return _.createElement(va,e,n!=null&&(t=n.theme)!=null&&(t=t.global)!=null&&t.express?_.createElement(ik,null):_.createElement(nk,null))}function ku(e){return e&&e.__esModule?e.default:e}function cV(e,t){let{description:n,errorMessage:r,validationState:i,isInvalid:a,isDisabled:s,showErrorIcon:o,descriptionProps:l,errorMessageProps:u}=e,c=Nn(t),d=r&&(a||i==="invalid"),{styleProps:f}=st(e);return _.createElement("div",{...f,className:V(ku(Rt),"spectrum-HelpText",`spectrum-HelpText--${d?"negative":"neutral"}`,{"is-disabled":s},f.className),ref:c},d?_.createElement(_.Fragment,null,o&&_.createElement(ak,{UNSAFE_className:V(ku(Rt),"spectrum-HelpText-validationIcon")}),_.createElement("div",{...u,className:V(ku(Rt),"spectrum-HelpText-text")},r)):_.createElement("div",{...l,className:V(ku(Rt),"spectrum-HelpText-text")},n))}const sk=_.forwardRef(cV);var ok={};ok={"(optional)":"(اختياري)","(required)":"(مطلوب)"};var lk={};lk={"(optional)":"(незадължително)","(required)":"(задължително)"};var uk={};uk={"(optional)":"(volitelně)","(required)":"(požadováno)"};var ck={};ck={"(optional)":"(valgfrit)","(required)":"(obligatorisk)"};var dk={};dk={"(optional)":"(optional)","(required)":"(erforderlich)"};var fk={};fk={"(optional)":"(προαιρετικό)","(required)":"(απαιτείται)"};var hk={};hk={"(required)":"(required)","(optional)":"(optional)"};var pk={};pk={"(optional)":"(opcional)","(required)":"(obligatorio)"};var mk={};mk={"(optional)":"(valikuline)","(required)":"(nõutav)"};var gk={};gk={"(optional)":"(valinnainen)","(required)":"(pakollinen)"};var vk={};vk={"(optional)":"(facultatif)","(required)":"(requis)"};var bk={};bk={"(optional)":"(אופציונלי)","(required)":"(נדרש)"};var yk={};yk={"(optional)":"(opcionalno)","(required)":"(obvezno)"};var $k={};$k={"(optional)":"(opcionális)","(required)":"(kötelező)"};var xk={};xk={"(optional)":"(facoltativo)","(required)":"(obbligatorio)"};var wk={};wk={"(optional)":"(オプション)","(required)":"(必須)"};var Dk={};Dk={"(optional)":"(선택 사항)","(required)":"(필수 사항)"};var _k={};_k={"(optional)":"(pasirenkama)","(required)":"(privaloma)"};var Ek={};Ek={"(optional)":"(neobligāti)","(required)":"(obligāti)"};var Sk={};Sk={"(optional)":"(valgfritt)","(required)":"(obligatorisk)"};var Ck={};Ck={"(optional)":"(optioneel)","(required)":"(vereist)"};var kk={};kk={"(optional)":"(opcjonalne)","(required)":"(wymagane)"};var Pk={};Pk={"(optional)":"(opcional)","(required)":"(obrigatório)"};var Tk={};Tk={"(optional)":"(opcional)","(required)":"(obrigatório)"};var Rk={};Rk={"(optional)":"(opţional)","(required)":"(obligatoriu)"};var Mk={};Mk={"(optional)":"(дополнительно)","(required)":"(обязательно)"};var Fk={};Fk={"(optional)":"(nepovinné)","(required)":"(povinné)"};var Ak={};Ak={"(optional)":"(opcijsko)","(required)":"(obvezno)"};var Ok={};Ok={"(optional)":"(opciono)","(required)":"(obavezno)"};var Bk={};Bk={"(optional)":"(valfritt)","(required)":"(krävs)"};var Ik={};Ik={"(optional)":"(isteğe bağlı)","(required)":"(gerekli)"};var Lk={};Lk={"(optional)":"(необов’язково)","(required)":"(обов’язково)"};var Nk={};Nk={"(optional)":"(可选)","(required)":"(必填)"};var jk={};jk={"(optional)":"(選填)","(required)":"(必填)"};var zk={};zk={"ar-AE":ok,"bg-BG":lk,"cs-CZ":uk,"da-DK":ck,"de-DE":dk,"el-GR":fk,"en-US":hk,"es-ES":pk,"et-EE":mk,"fi-FI":gk,"fr-FR":vk,"he-IL":bk,"hr-HR":yk,"hu-HU":$k,"it-IT":xk,"ja-JP":wk,"ko-KR":Dk,"lt-LT":_k,"lv-LV":Ek,"nb-NO":Sk,"nl-NL":Ck,"pl-PL":kk,"pt-BR":Pk,"pt-PT":Tk,"ro-RO":Rk,"ru-RU":Mk,"sk-SK":Fk,"sl-SI":Ak,"sr-SP":Ok,"sv-SE":Bk,"tr-TR":Ik,"uk-UA":Lk,"zh-CN":Nk,"zh-TW":jk};function ve(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var te={};ve(te,"contextualHelp",()=>Q1,e=>Q1=e);ve(te,"field",()=>J1,e=>J1=e);ve(te,"focus-ring",()=>e4,e=>e4=e);ve(te,"helpText",()=>t4,e=>t4=e);ve(te,"i18nFontFamily",()=>n4,e=>n4=e);ve(te,"is-disabled",()=>r4,e=>r4=e);ve(te,"label",()=>i4,e=>i4=e);ve(te,"spectrum-Field",()=>a4,e=>a4=e);ve(te,"spectrum-Field--alignEnd",()=>s4,e=>s4=e);ve(te,"spectrum-Field--hasContextualHelp",()=>o4,e=>o4=e);ve(te,"spectrum-Field--positionSide",()=>l4,e=>l4=e);ve(te,"spectrum-Field--positionTop",()=>u4,e=>u4=e);ve(te,"spectrum-Field-contextualHelp",()=>c4,e=>c4=e);ve(te,"spectrum-Field-field",()=>d4,e=>d4=e);ve(te,"spectrum-Field-labelCell",()=>f4,e=>f4=e);ve(te,"spectrum-Field-labelWrapper",()=>h4,e=>h4=e);ve(te,"spectrum-Field-wrapper",()=>p4,e=>p4=e);ve(te,"spectrum-FieldLabel",()=>m4,e=>m4=e);ve(te,"spectrum-FieldLabel--alignEnd",()=>g4,e=>g4=e);ve(te,"spectrum-FieldLabel--positionSide",()=>v4,e=>v4=e);ve(te,"spectrum-FieldLabel-requiredIcon",()=>b4,e=>b4=e);ve(te,"spectrum-FocusRing-ring",()=>Fd,e=>Fd=e);ve(te,"spectrum-FocusRing",()=>y4,e=>y4=e);ve(te,"spectrum-FocusRing--quiet",()=>$4,e=>$4=e);ve(te,"spectrum-Form",()=>x4,e=>x4=e);ve(te,"spectrum-Form--positionSide",()=>w4,e=>w4=e);ve(te,"spectrum-Form--positionTop",()=>D4,e=>D4=e);ve(te,"spectrum-Form-itemLabel",()=>_4,e=>_4=e);ve(te,"spectrum-LabeledValue",()=>E4,e=>E4=e);var Q1,J1,e4,t4,n4,r4,i4,a4,s4,o4,l4,u4,c4,d4,f4,h4,p4,m4,g4,v4,b4,Fd,y4,$4,x4,w4,D4,_4,E4;Q1="A-HlBa_contextualHelp";J1="A-HlBa_field";e4="A-HlBa_focus-ring";t4="A-HlBa_helpText";n4="A-HlBa_i18nFontFamily";r4="A-HlBa_is-disabled";i4="A-HlBa_label";a4="A-HlBa_spectrum-Field";s4="A-HlBa_spectrum-Field--alignEnd";o4="A-HlBa_spectrum-Field--hasContextualHelp";l4="A-HlBa_spectrum-Field--positionSide";u4="A-HlBa_spectrum-Field--positionTop";c4="A-HlBa_spectrum-Field-contextualHelp";d4="A-HlBa_spectrum-Field-field";f4="A-HlBa_spectrum-Field-labelCell";h4="A-HlBa_spectrum-Field-labelWrapper";p4="A-HlBa_spectrum-Field-wrapper";m4="A-HlBa_spectrum-FieldLabel";g4="A-HlBa_spectrum-FieldLabel--alignEnd";v4="A-HlBa_spectrum-FieldLabel--positionSide";b4="A-HlBa_spectrum-FieldLabel-requiredIcon";Fd="A-HlBa_spectrum-FocusRing-ring";y4=`A-HlBa_spectrum-FocusRing ${Fd}`;$4="A-HlBa_spectrum-FocusRing--quiet";x4="A-HlBa_spectrum-Form";w4="A-HlBa_spectrum-Form--positionSide";D4="A-HlBa_spectrum-Form--positionTop";_4="A-HlBa_spectrum-Form-itemLabel";E4="A-HlBa_spectrum-LabeledValue";var Vk={};Object.defineProperty(Vk,"__esModule",{value:!0});var dV=Vk.Asterisk=Wk,lp=fV(y);function fV(e){return e&&e.__esModule?e:{default:e}}function S4(){return S4=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},S4.apply(this,arguments)}function hV(e,t){if(e==null)return{};var n=pV(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function pV(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Wk(e){var t=e.scale,n=t===void 0?"M":t,r=hV(e,["scale"]);return lp.default.createElement("svg",S4({},r,r),n==="L"&&lp.default.createElement("path",{d:"M7.867 7.872c.061.062.103.145 0 .228l-1.283.827c-.104.061-.145.02-.186-.083L4.804 6.07l-2.09 2.297c-.021.042-.083.083-.145 0l-.994-1.035c-.103-.062-.082-.124 0-.186l2.36-1.966-2.691-1.014c-.042 0-.104-.083-.062-.186l.703-1.41a.11.11 0 0 1 .187-.04L4.43 4.06l.145-3.02A.109.109 0 0 1 4.7.917l1.718.227c.104 0 .124.042.104.145l-.808 2.96 2.734-.828c.061-.042.124-.042.165.082l.27 1.532c.02.103 0 .145-.084.145l-2.856.227z"}),n==="M"&&lp.default.createElement("path",{d:"M6.573 6.558c.056.055.092.13 0 .204l-1.148.74c-.093.056-.13.02-.167-.073L3.832 4.947l-1.87 2.055c-.02.037-.075.074-.13 0l-.889-.926c-.092-.055-.074-.111 0-.167l2.111-1.76-2.408-.906c-.037 0-.092-.074-.055-.167l.63-1.259a.097.097 0 0 1 .166-.036l2.111 1.37.13-2.704a.097.097 0 0 1 .111-.11L5.277.54c.092 0 .11.037.092.13l-.722 2.647 2.444-.74c.056-.038.111-.038.148.073l.241 1.37c.019.093 0 .13-.074.13l-2.556.204z"}))}Wk.displayName="Asterisk";function mV(e){return _.createElement(va,e,_.createElement(dV,null))}function up(e){return e&&e.__esModule?e.default:e}function gV(e,t){e=Vl(e);let{children:n,labelPosition:r="top",labelAlign:i=r==="side"?"start":null,isRequired:a,necessityIndicator:s=a!=null?"icon":null,includeNecessityIndicatorInAccessibilityName:o=!1,htmlFor:l,for:u,elementType:c="label",onClick:d,...f}=e,h=Nn(t),{styleProps:p}=st(f),g=Sn(up(zk),"@react-spectrum/label"),b=a?g.format("(required)"):g.format("(optional)"),v=_.createElement(mV,{UNSAFE_className:V(up(te),"spectrum-FieldLabel-requiredIcon"),"aria-label":o?g.format("(required)"):void 0}),m=V(up(te),"spectrum-FieldLabel",{"spectrum-FieldLabel--positionSide":r==="side","spectrum-FieldLabel--alignEnd":i==="end"},p.className);return _.createElement(c,{...Xt(f),...p,onClick:d,ref:h,className:m,htmlFor:c==="label"?u||l:void 0},n,(s==="label"||s==="icon"&&a)&&" ​",s==="label"&&_.createElement("span",{"aria-hidden":o?void 0:a},b),s==="icon"&&a&&v)}let vV=_.forwardRef(gV),bV=_.createContext(null);function T$(e){let t=y.useContext(bV);return t?{...t,...e}:e}function xi(e){return e&&e.__esModule?e.default:e}function yV(e,t){let n=T$(e),r=n!==e;e=n;let{label:i,labelPosition:a="top",labelAlign:s,isRequired:o,necessityIndicator:l,includeNecessityIndicatorInAccessibilityName:u,validationState:c,isInvalid:d,description:f,errorMessage:h=N=>N.validationErrors.join(" "),validationErrors:p,validationDetails:g,isDisabled:b,showErrorIcon:v,contextualHelp:m,children:$,labelProps:w={},descriptionProps:D={},errorMessageProps:S={},elementType:k,wrapperClassName:x,wrapperProps:T={},...P}=e,{styleProps:E}=st(P),F=null;typeof h=="function"?F=d!=null&&p!=null&&g!=null?h({isInvalid:d,validationErrors:p,validationDetails:g}):null:F=h;let R=!!f||F&&(d||c==="invalid"),M=Qn(),z=Qn();i&&m&&!w.id&&(w.id=z);let B=V(xi(te),"spectrum-Field",{"spectrum-Field--positionTop":a==="top","spectrum-Field--positionSide":a==="side","spectrum-Field--alignEnd":s==="end","spectrum-Field--hasContextualHelp":!!e.contextualHelp},E.className,x);$=_.cloneElement($,de($.props,{className:V(xi(te),"spectrum-Field-field")}));let C=()=>_.createElement(sk,{descriptionProps:D,errorMessageProps:S,description:f,errorMessage:F,validationState:c,isInvalid:d,isDisabled:b,showErrorIcon:v,gridArea:xi(te).helpText}),O=()=>a==="side"?_.createElement(hC,{direction:"column",UNSAFE_className:V(xi(te),"spectrum-Field-wrapper")},$,R&&C()):_.createElement(_.Fragment,null,$,R&&C()),I=_.createElement(_.Fragment,null,i&&_.createElement(vV,{...w,labelPosition:a,labelAlign:s,isRequired:o,necessityIndicator:l,includeNecessityIndicatorInAccessibilityName:u,elementType:k},i),i&&m&&_.createElement(Of,{slots:{actionButton:{UNSAFE_className:V(xi(te),"spectrum-Field-contextualHelp"),id:M,"aria-labelledby":w!=null&&w.id?`${w.id} ${M}`:void 0}}},m));return r&&a==="side"&&i&&m&&(I=_.createElement("div",{className:V(xi(te),"spectrum-Field-labelCell")},_.createElement("div",{className:V(xi(te),"spectrum-Field-labelWrapper")},I))),_.createElement("div",{...E,...T,ref:t,className:B},I,O())}let Uk=_.forwardRef(yV);function Pr(e){return e&&e.__esModule?e.default:e}function $V(e){let{state:t,calendarProps:n,nextButtonProps:r,prevButtonProps:i,errorMessageProps:a,calendarRef:s,visibleMonths:o=1}=e,{styleProps:l}=st(e),u=Sn(Pr(ZC),"@react-spectrum/calendar"),{direction:c}=Qe(),d=t.visibleRange.start,f=xn({month:"long",year:"numeric",era:d.calendar.identifier==="gregory"&&d.era==="BC"?"short":void 0,calendar:d.calendar.identifier,timeZone:t.timeZone}),h=[],p=[];for(let g=0;g<o;g++){let b=d.add({months:g});h.push(_.createElement("div",{key:g,className:V(Pr(q),"spectrum-Calendar-monthHeader")},g===0&&_.createElement(N0,{...i,UNSAFE_className:V(Pr(q),"spectrum-Calendar-prevMonth"),isQuiet:!0},c==="rtl"?_.createElement(A5,null):_.createElement(F5,null)),_.createElement("h2",{"aria-hidden":!0,className:V(Pr(q),"spectrum-Calendar-title")},f.format(b.toDate(t.timeZone))),g===o-1&&_.createElement(N0,{...r,UNSAFE_className:V(Pr(q),"spectrum-Calendar-nextMonth"),isQuiet:!0},c==="rtl"?_.createElement(F5,null):_.createElement(A5,null)))),p.push(_.createElement(Qz,{...e,key:g,state:t,startDate:b}))}return _.createElement("div",{...l,...n,ref:s,className:V(Pr(q),"spectrum-Calendar",l.className)},_.createElement(Pg,null,_.createElement("h2",null,n["aria-label"])),_.createElement("div",{className:V(Pr(q),"spectrum-Calendar-header")},h),_.createElement("div",{className:V(Pr(q),"spectrum-Calendar-months")},p),_.createElement(Pg,null,_.createElement("button",{"aria-label":r["aria-label"],disabled:r.isDisabled,onClick:()=>t.focusNextPage(),tabIndex:-1})),t.isValueInvalid&&_.createElement(sk,{showErrorIcon:!0,errorMessage:e.errorMessage||u.format("invalidSelection",{selectedCount:"highlightedRange"in t?2:1}),errorMessageProps:a,isInvalid:!0,UNSAFE_className:"spectrum-Calendar-helpText"}))}function xV(e,t){e=Vl(e);let{visibleMonths:n=1}=e;n=Math.max(n,1);let r=y.useMemo(()=>({months:n}),[n]),{locale:i}=Qe(),a=Oj({...e,locale:i,visibleDuration:r,createCalendar:Y8}),s=y.useRef();y.useImperativeHandle(t,()=>({...Sf(s),focus(){a.setFocused(!0)}}));let{calendarProps:o,prevButtonProps:l,nextButtonProps:u,errorMessageProps:c}=WN(e,a,s);return _.createElement($V,{...e,visibleMonths:n,state:a,calendarRef:s,calendarProps:o,prevButtonProps:l,nextButtonProps:u,errorMessageProps:c})}const wV=_.forwardRef(xV),Hk=_.createContext(null);var Kk={};Kk={alert:"تنبيه",dismiss:"تجاهل"};var Yk={};Yk={alert:"Сигнал",dismiss:"Отхвърляне"};var qk={};qk={alert:"Výstraha",dismiss:"Odstranit"};var Gk={};Gk={alert:"Advarsel",dismiss:"Luk"};var Zk={};Zk={alert:"Warnhinweis",dismiss:"Schließen"};var Xk={};Xk={alert:"Ειδοποίηση",dismiss:"Απόρριψη"};var Qk={};Qk={dismiss:"Dismiss",alert:"Alert"};var Jk={};Jk={alert:"Alerta",dismiss:"Descartar"};var eP={};eP={alert:"Teade",dismiss:"Lõpeta"};var tP={};tP={alert:"Hälytys",dismiss:"Hylkää"};var nP={};nP={alert:"Alerte",dismiss:"Rejeter"};var rP={};rP={alert:"התראה",dismiss:"התעלם"};var iP={};iP={alert:"Upozorenje",dismiss:"Odbaci"};var aP={};aP={alert:"Figyelmeztetés",dismiss:"Elutasítás"};var sP={};sP={alert:"Avviso",dismiss:"Ignora"};var oP={};oP={alert:"アラート",dismiss:"閉じる"};var lP={};lP={alert:"경고",dismiss:"무시"};var uP={};uP={alert:"Įspėjimas",dismiss:"Atmesti"};var cP={};cP={alert:"Brīdinājums",dismiss:"Nerādīt"};var dP={};dP={alert:"Varsel",dismiss:"Lukk"};var fP={};fP={alert:"Melding",dismiss:"Negeren"};var hP={};hP={alert:"Ostrzeżenie",dismiss:"Zignoruj"};var pP={};pP={alert:"Alerta",dismiss:"Descartar"};var mP={};mP={alert:"Alerta",dismiss:"Dispensar"};var gP={};gP={alert:"Alertă",dismiss:"Revocare"};var vP={};vP={alert:"Предупреждение",dismiss:"Пропустить"};var bP={};bP={alert:"Upozornenie",dismiss:"Zrušiť"};var yP={};yP={alert:"Opozorilo",dismiss:"Opusti"};var $P={};$P={alert:"Upozorenje",dismiss:"Odbaci"};var xP={};xP={alert:"Varning",dismiss:"Avvisa"};var wP={};wP={alert:"Uyarı",dismiss:"Kapat"};var DP={};DP={alert:"Сигнал тривоги",dismiss:"Скасувати"};var _P={};_P={alert:"警报",dismiss:"取消"};var EP={};EP={alert:"警示",dismiss:"關閉"};var SP={};SP={"ar-AE":Kk,"bg-BG":Yk,"cs-CZ":qk,"da-DK":Gk,"de-DE":Zk,"el-GR":Xk,"en-US":Qk,"es-ES":Jk,"et-EE":eP,"fi-FI":tP,"fr-FR":nP,"he-IL":rP,"hr-HR":iP,"hu-HU":aP,"it-IT":sP,"ja-JP":oP,"ko-KR":lP,"lt-LT":uP,"lv-LV":cP,"nb-NO":dP,"nl-NL":fP,"pl-PL":hP,"pt-BR":pP,"pt-PT":mP,"ro-RO":gP,"ru-RU":vP,"sk-SK":bP,"sl-SI":yP,"sr-SP":$P,"sv-SE":xP,"tr-TR":wP,"uk-UA":DP,"zh-CN":_P,"zh-TW":EP};function K(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var H={};K(H,"buttonGroup",()=>C4,e=>C4=e);K(H,"buttonGroup-end",()=>k4,e=>k4=e);K(H,"closeButton",()=>P4,e=>P4=e);K(H,"content",()=>T4,e=>T4=e);K(H,"divider",()=>R4,e=>R4=e);K(H,"focus-ring",()=>M4,e=>M4=e);K(H,"footer",()=>F4,e=>F4=e);K(H,"footer-start",()=>A4,e=>A4=e);K(H,"header",()=>O4,e=>O4=e);K(H,"header-end",()=>B4,e=>B4=e);K(H,"header-start",()=>I4,e=>I4=e);K(H,"heading",()=>L4,e=>L4=e);K(H,"heading-start",()=>N4,e=>N4=e);K(H,"hero",()=>j4,e=>j4=e);K(H,"i18nFontFamily",()=>z4,e=>z4=e);K(H,"spectrum-Button",()=>V4,e=>V4=e);K(H,"spectrum-Dialog",()=>W4,e=>W4=e);K(H,"spectrum-Dialog--dismissable",()=>U4,e=>U4=e);K(H,"spectrum-Dialog--error",()=>H4,e=>H4=e);K(H,"spectrum-Dialog--fullscreen",()=>K4,e=>K4=e);K(H,"spectrum-Dialog--fullscreenTakeover",()=>Y4,e=>Y4=e);K(H,"spectrum-Dialog--large",()=>q4,e=>q4=e);K(H,"spectrum-Dialog--medium",()=>G4,e=>G4=e);K(H,"spectrum-Dialog--noDivider",()=>Z4,e=>Z4=e);K(H,"spectrum-Dialog--small",()=>X4,e=>X4=e);K(H,"spectrum-Dialog--warning",()=>Q4,e=>Q4=e);K(H,"spectrum-Dialog-buttonGroup",()=>J4,e=>J4=e);K(H,"spectrum-Dialog-buttonGroup--noFooter",()=>eb,e=>eb=e);K(H,"spectrum-Dialog-closeButton",()=>tb,e=>tb=e);K(H,"spectrum-Dialog-content",()=>nb,e=>nb=e);K(H,"spectrum-Dialog-divider",()=>rb,e=>rb=e);K(H,"spectrum-Dialog-footer",()=>ib,e=>ib=e);K(H,"spectrum-Dialog-grid",()=>ab,e=>ab=e);K(H,"spectrum-Dialog-header",()=>sb,e=>sb=e);K(H,"spectrum-Dialog-header--noTypeIcon",()=>ob,e=>ob=e);K(H,"spectrum-Dialog-heading",()=>lb,e=>lb=e);K(H,"spectrum-Dialog-heading--noHeader",()=>ub,e=>ub=e);K(H,"spectrum-Dialog-heading--noTypeIcon",()=>cb,e=>cb=e);K(H,"spectrum-Dialog-hero",()=>db,e=>db=e);K(H,"spectrum-Dialog-typeIcon",()=>fb,e=>fb=e);K(H,"spectrum-FocusRing-ring",()=>Ad,e=>Ad=e);K(H,"spectrum-FocusRing",()=>hb,e=>hb=e);K(H,"spectrum-FocusRing--quiet",()=>pb,e=>pb=e);K(H,"spectrum-overlay",()=>mb,e=>mb=e);K(H,"spectrum-overlay--bottom--open",()=>gb,e=>gb=e);K(H,"spectrum-overlay--left--open",()=>vb,e=>vb=e);K(H,"spectrum-overlay--open",()=>bb,e=>bb=e);K(H,"spectrum-overlay--right--open",()=>yb,e=>yb=e);K(H,"spectrum-overlay--top--open",()=>$b,e=>$b=e);K(H,"typeIcon",()=>xb,e=>xb=e);K(H,"typeIcon-end",()=>wb,e=>wb=e);var C4,k4,P4,T4,R4,M4,F4,A4,O4,B4,I4,L4,N4,j4,z4,V4,W4,U4,H4,K4,Y4,q4,G4,Z4,X4,Q4,J4,eb,tb,nb,rb,ib,ab,sb,ob,lb,ub,cb,db,fb,Ad,hb,pb,mb,gb,vb,bb,yb,$b,xb,wb;C4="h_OVWW_buttonGroup";k4="h_OVWW_buttonGroup-end";P4="h_OVWW_closeButton";T4="h_OVWW_content";R4="h_OVWW_divider";M4="h_OVWW_focus-ring";F4="h_OVWW_footer";A4="h_OVWW_footer-start";O4="h_OVWW_header";B4="h_OVWW_header-end";I4="h_OVWW_header-start";L4="h_OVWW_heading";N4="h_OVWW_heading-start";j4="h_OVWW_hero";z4="h_OVWW_i18nFontFamily";V4="h_OVWW_spectrum-Button";W4="h_OVWW_spectrum-Dialog";U4="h_OVWW_spectrum-Dialog--dismissable";H4="h_OVWW_spectrum-Dialog--error";K4="h_OVWW_spectrum-Dialog--fullscreen";Y4="h_OVWW_spectrum-Dialog--fullscreenTakeover";q4="h_OVWW_spectrum-Dialog--large";G4="h_OVWW_spectrum-Dialog--medium";Z4="h_OVWW_spectrum-Dialog--noDivider";X4="h_OVWW_spectrum-Dialog--small";Q4="h_OVWW_spectrum-Dialog--warning";J4="h_OVWW_spectrum-Dialog-buttonGroup";eb="h_OVWW_spectrum-Dialog-buttonGroup--noFooter";tb="h_OVWW_spectrum-Dialog-closeButton";nb="h_OVWW_spectrum-Dialog-content";rb="h_OVWW_spectrum-Dialog-divider";ib="h_OVWW_spectrum-Dialog-footer";ab="h_OVWW_spectrum-Dialog-grid";sb="h_OVWW_spectrum-Dialog-header";ob="h_OVWW_spectrum-Dialog-header--noTypeIcon";lb="h_OVWW_spectrum-Dialog-heading";ub="h_OVWW_spectrum-Dialog-heading--noHeader";cb="h_OVWW_spectrum-Dialog-heading--noTypeIcon";db="h_OVWW_spectrum-Dialog-hero";fb="h_OVWW_spectrum-Dialog-typeIcon";Ad="h_OVWW_spectrum-FocusRing-ring";hb=`h_OVWW_spectrum-FocusRing ${Ad}`;pb="h_OVWW_spectrum-FocusRing--quiet";mb="h_OVWW_spectrum-overlay";gb="h_OVWW_spectrum-overlay--bottom--open";vb="h_OVWW_spectrum-overlay--left--open";bb="h_OVWW_spectrum-overlay--open";yb="h_OVWW_spectrum-overlay--right--open";$b="h_OVWW_spectrum-overlay--top--open";xb="h_OVWW_typeIcon";wb="h_OVWW_typeIcon-end";function wt(e){return e&&e.__esModule?e.default:e}let O5={S:"small",M:"medium",L:"large",fullscreen:"fullscreen",fullscreenTakeover:"fullscreenTakeover"};function DV(e,t){e=ui(e,"dialog");let{type:n="modal",...r}=y.useContext(Hk)||{},{children:i,isDismissable:a=r.isDismissable,onDismiss:s=r.onClose,size:o,...l}=e,u=Sn(wt(SP),"@react-spectrum/dialog"),{styleProps:c}=st(l);o=n==="popover"?o||"S":o||"L";let d=Nn(t),f=y.useRef(null),h=O5[n]||O5[o],{dialogProps:p,titleProps:g}=Fj(de(r,e),d),b=bu(`.${wt(H)["spectrum-Dialog-header"]}`,hu(f)),v=bu(`.${wt(H)["spectrum-Dialog-heading"]}`,hu(f)),m=bu(`.${wt(H)["spectrum-Dialog-footer"]}`,hu(f)),$=bu(`.${wt(H)["spectrum-Dialog-typeIcon"]}`,hu(f)),w=y.useMemo(()=>({hero:{UNSAFE_className:wt(H)["spectrum-Dialog-hero"]},heading:{UNSAFE_className:V(wt(H),"spectrum-Dialog-heading",{"spectrum-Dialog-heading--noHeader":!b,"spectrum-Dialog-heading--noTypeIcon":!$}),level:2,...g},header:{UNSAFE_className:V(wt(H),"spectrum-Dialog-header",{"spectrum-Dialog-header--noHeading":!v,"spectrum-Dialog-header--noTypeIcon":!$})},typeIcon:{UNSAFE_className:wt(H)["spectrum-Dialog-typeIcon"]},divider:{UNSAFE_className:wt(H)["spectrum-Dialog-divider"],size:"M"},content:{UNSAFE_className:wt(H)["spectrum-Dialog-content"]},footer:{UNSAFE_className:wt(H)["spectrum-Dialog-footer"]},buttonGroup:{UNSAFE_className:V(wt(H),"spectrum-Dialog-buttonGroup",{"spectrum-Dialog-buttonGroup--noFooter":!m}),align:"end"}}),[m,b,g]);return _.createElement("section",{...c,...p,className:V(wt(H),"spectrum-Dialog",{[`spectrum-Dialog--${h}`]:h,"spectrum-Dialog--dismissable":a},c.className),ref:d},_.createElement(zz,{ref:f,UNSAFE_className:wt(H)["spectrum-Dialog-grid"]},_.createElement(Of,{slots:w},i),a&&_.createElement(N0,{UNSAFE_className:wt(H)["spectrum-Dialog-closeButton"],isQuiet:!0,"aria-label":u.format("dismiss"),onPress:s},_.createElement(Zz,null))))}let _V=_.forwardRef(DV);function EV(e,t){e=ui(e,"content");let{children:n,...r}=e,{styleProps:i}=st(r),a=Nn(t);return _.createElement("section",{...Xt(r),...i,ref:a},_.createElement(u7,null,n))}const SV=y.forwardRef(EV);function Db(e){let{children:t,type:n="modal",mobileType:r=n==="popover"?"modal":n,hideArrow:i,targetRef:a,isDismissable:s,isKeyboardDismissDisabled:o,...l}=e;if(!Array.isArray(t)||t.length>2)throw new Error("DialogTrigger must have exactly 2 children");let[u,c]=t;QL()&&(n!=="modal"&&r==="modal"&&(s=!0),n=r);let f=yS(e),h=y.useRef(!1);y.useEffect(()=>{h.current=f.isOpen},[f.isOpen]);let p=y.useRef(!1),g=()=>p.current=!0,b=()=>p.current=!1;if(y.useEffect(()=>()=>{(h.current||p.current)&&n!=="popover"&&n!=="tray"&&console.warn("A DialogTrigger unmounted while open. This is likely due to being placed within a trigger that unmounts or inside a conditional. Consider using a DialogContainer instead.")},[]),n==="popover")return _.createElement(kV,{...l,state:f,targetRef:a,trigger:u,content:c,isKeyboardDismissDisabled:o,hideArrow:i});let v=()=>{switch(n){case"fullscreen":case"fullscreenTakeover":case"modal":return _.createElement(Pz,{state:f,isDismissable:n==="modal"?s:!1,type:n,isKeyboardDismissDisabled:o,onExiting:g,onExited:b},typeof c=="function"?c(f.close):c);case"tray":return _.createElement(Mz,{state:f,isKeyboardDismissDisabled:o},typeof c=="function"?c(f.close):c)}};return _.createElement(CP,{type:n,state:f,isDismissable:s,trigger:u,overlay:v()})}Db.getCollectionNode=function*(e){let[t]=_.Children.toArray(e.children),[,n]=e.children;yield{element:t,wrapper:r=>_.createElement(Db,{key:r.key,...e},r,n)}};let CV=Db;function kV({state:e,targetRef:t,trigger:n,content:r,hideArrow:i,...a}){let s=y.useRef(null),{triggerProps:o,overlayProps:l}=dj({type:"dialog"},e,s),u={...o,ref:t?void 0:s},c=_.createElement(Ez,{...a,hideArrow:i,triggerRef:t||s,state:e},typeof r=="function"?r(e.close):r);return _.createElement(CP,{type:"popover",state:e,triggerProps:u,dialogProps:l,trigger:n,overlay:c})}function CP({type:e,state:t,isDismissable:n,dialogProps:r={},triggerProps:i={},overlay:a,trigger:s}){let o={type:e,onClose:t.close,isDismissable:n,...r};return _.createElement(y.Fragment,null,_.createElement(oN,{...i,onPress:t.toggle,isPressed:t.isOpen&&e!=="modal"&&e!=="fullscreen"&&e!=="fullscreenTakeover"},s),_.createElement(Hk.Provider,{value:o},a))}function Ue(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var ee={};Ue(ee,"is-invalid",()=>_b,e=>_b=e);Ue(ee,"is-placeholder",()=>Eb,e=>Eb=e);Ue(ee,"is-read-only",()=>Sb,e=>Sb=e);Ue(ee,"react-spectrum-DateField",()=>Cb,e=>Cb=e);Ue(ee,"react-spectrum-DateField-Input",()=>kb,e=>kb=e);Ue(ee,"react-spectrum-DatePicker-cell",()=>Pb,e=>Pb=e);Ue(ee,"react-spectrum-DatePicker-placeholder",()=>Tb,e=>Tb=e);Ue(ee,"react-spectrum-Datepicker-calendar",()=>Rb,e=>Rb=e);Ue(ee,"react-spectrum-Datepicker-dialog",()=>Mb,e=>Mb=e);Ue(ee,"react-spectrum-Datepicker-dialogContent",()=>Fb,e=>Fb=e);Ue(ee,"react-spectrum-Datepicker-endField",()=>Ab,e=>Ab=e);Ue(ee,"react-spectrum-Datepicker-field",()=>Ob,e=>Ob=e);Ue(ee,"react-spectrum-Datepicker-fieldWrapper",()=>Bb,e=>Bb=e);Ue(ee,"react-spectrum-Datepicker-input",()=>Ib,e=>Ib=e);Ue(ee,"react-spectrum-Datepicker-inputContents",()=>Lb,e=>Lb=e);Ue(ee,"react-spectrum-Datepicker-literal",()=>Nb,e=>Nb=e);Ue(ee,"react-spectrum-Datepicker-rangeDash",()=>jb,e=>jb=e);Ue(ee,"react-spectrum-Datepicker-segments",()=>zb,e=>zb=e);Ue(ee,"react-spectrum-Datepicker-startField",()=>Vb,e=>Vb=e);Ue(ee,"react-spectrum-Datepicker-timeFields",()=>Wb,e=>Wb=e);Ue(ee,"react-spectrum-TimeField",()=>Ub,e=>Ub=e);Ue(ee,"react-spectrum-TimeField-fieldWrapper",()=>Hb,e=>Hb=e);var _b,Eb,Sb,Cb,kb,Pb,Tb,Rb,Mb,Fb,Ab,Ob,Bb,Ib,Lb,Nb,jb,zb,Vb,Wb,Ub,Hb;_b="_2n04KW_is-invalid";Eb="_2n04KW_is-placeholder";Sb="_2n04KW_is-read-only";Cb="_2n04KW_react-spectrum-DateField";kb="_2n04KW_react-spectrum-DateField-Input";Pb="_2n04KW_react-spectrum-DatePicker-cell";Tb="_2n04KW_react-spectrum-DatePicker-placeholder";Rb="_2n04KW_react-spectrum-Datepicker-calendar";Mb="_2n04KW_react-spectrum-Datepicker-dialog";Fb="_2n04KW_react-spectrum-Datepicker-dialogContent";Ab="_2n04KW_react-spectrum-Datepicker-endField";Ob="_2n04KW_react-spectrum-Datepicker-field";Bb="_2n04KW_react-spectrum-Datepicker-fieldWrapper";Ib="_2n04KW_react-spectrum-Datepicker-input";Lb="_2n04KW_react-spectrum-Datepicker-inputContents";Nb="_2n04KW_react-spectrum-Datepicker-literal";jb="_2n04KW_react-spectrum-Datepicker-rangeDash";zb="_2n04KW_react-spectrum-Datepicker-segments";Vb="_2n04KW_react-spectrum-Datepicker-startField";Wb="_2n04KW_react-spectrum-Datepicker-timeFields";Ub="_2n04KW_react-spectrum-TimeField";Hb="_2n04KW_react-spectrum-TimeField-fieldWrapper";function Kb(e){return e&&e.__esModule?e.default:e}function kP({segment:e,state:t,...n}){switch(e.type){case"literal":return _.createElement(PV,{segment:e});default:return _.createElement(TV,{segment:e,state:t,...n})}}function PV({segment:e}){return _.createElement("span",{"aria-hidden":"true",className:V(Kb(ee),"react-spectrum-Datepicker-literal"),"data-testid":e.type==="literal"?void 0:e.type},e.text)}function TV({segment:e,state:t}){let n=y.useRef(),{segmentProps:r}=Pj(e,t,n);return _.createElement("div",{...r,ref:n,className:V(Kb(ee),"react-spectrum-DatePicker-cell",{"is-placeholder":e.isPlaceholder,"is-read-only":!e.isEditable}),style:{...r.style,minWidth:e.maxValue!=null?String(e.maxValue).length+"ch":null},"data-testid":e.type},_.createElement("span",{"aria-hidden":"true",className:V(Kb(ee),"react-spectrum-DatePicker-placeholder")},e.placeholder),e.isPlaceholder?"":e.text)}function RV(e){return e&&e.__esModule?e.default:e}function B5(e){let{isDisabled:t,isReadOnly:n,isRequired:r,inputClassName:i}=e,a=y.useRef(),{locale:s}=Qe(),o=aC({...e,locale:s,createCalendar:Y8}),l=y.useRef(),{fieldProps:u,inputProps:c}=O9({...e,inputRef:l},o,a);return _.createElement("div",{...u,"data-testid":e["data-testid"],className:V(RV(ee),"react-spectrum-Datepicker-segments",i),ref:a},o.segments.map((d,f)=>_.createElement(kP,{key:f,segment:d,state:o,isDisabled:t,isReadOnly:n,isRequired:r})),_.createElement("input",{...c,ref:l}))}function He(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var Re={};He(Re,"focus-ring",()=>Yb,e=>Yb=e);He(Re,"i18nFontFamily",()=>Od,e=>Od=e);He(Re,"is-disabled",()=>qb,e=>qb=e);He(Re,"is-focused",()=>Gb,e=>Gb=e);He(Re,"is-hovered",()=>Zb,e=>Zb=e);He(Re,"is-placeholder",()=>Xb,e=>Xb=e);He(Re,"spectrum-FocusRing-ring",()=>Bd,e=>Bd=e);He(Re,"spectrum-FocusRing",()=>Id,e=>Id=e);He(Re,"spectrum-FocusRing--quiet",()=>Ld,e=>Ld=e);He(Re,"spectrum-Textfield",()=>Qb,e=>Qb=e);He(Re,"spectrum-Textfield--invalid",()=>Jb,e=>Jb=e);He(Re,"spectrum-Textfield--loadable",()=>ey,e=>ey=e);He(Re,"spectrum-Textfield--multiline",()=>ty,e=>ty=e);He(Re,"spectrum-Textfield--quiet",()=>ny,e=>ny=e);He(Re,"spectrum-Textfield--valid",()=>ry,e=>ry=e);He(Re,"spectrum-Textfield-circleLoader",()=>iy,e=>iy=e);He(Re,"spectrum-Textfield-icon",()=>ay,e=>ay=e);He(Re,"spectrum-Textfield-input",()=>sy,e=>sy=e);He(Re,"spectrum-Textfield-inputIcon",()=>oy,e=>oy=e);He(Re,"spectrum-Textfield-validationIcon",()=>ly,e=>ly=e);He(Re,"spectrum-Textfield-wrapper",()=>uy,e=>uy=e);He(Re,"spectrum-Textfield-wrapper--quiet",()=>cy,e=>cy=e);var Yb,Od,qb,Gb,Zb,Xb,Bd,Id,Ld,Qb,Jb,ey,ty,ny,ry,iy,ay,sy,oy,ly,uy,cy;Yb="YO3Nla_focus-ring";Od="YO3Nla_i18nFontFamily";qb="YO3Nla_is-disabled";Gb="YO3Nla_is-focused";Zb="YO3Nla_is-hovered";Xb="YO3Nla_is-placeholder";Bd="YO3Nla_spectrum-FocusRing-ring";Id=`YO3Nla_spectrum-FocusRing ${Bd}`;Ld="YO3Nla_spectrum-FocusRing--quiet";Qb=`YO3Nla_spectrum-Textfield ${Id}`;Jb="YO3Nla_spectrum-Textfield--invalid";ey="YO3Nla_spectrum-Textfield--loadable";ty="YO3Nla_spectrum-Textfield--multiline";ny=`YO3Nla_spectrum-Textfield--quiet ${Ld}`;ry="YO3Nla_spectrum-Textfield--valid";iy="YO3Nla_spectrum-Textfield-circleLoader";ay="YO3Nla_spectrum-Textfield-icon";sy=`YO3Nla_spectrum-Textfield-input ${Od}`;oy="YO3Nla_spectrum-Textfield-inputIcon";ly="YO3Nla_spectrum-Textfield-validationIcon";uy="YO3Nla_spectrum-Textfield-wrapper";cy="YO3Nla_spectrum-Textfield-wrapper--quiet";function wi(e){return e&&e.__esModule?e.default:e}function MV(e,t){let n=y.useRef(null),{isDisabled:r,isQuiet:i,inputClassName:a,validationState:s,children:o,fieldProps:l,className:u,style:c,disableFocusRing:d}=e,[f,h]=G8(!1),p=y.useCallback(()=>h(function*(k){if(n.current){if(k){if(n.current.scrollWidth>n.current.offsetWidth){let x=n.current.parentElement.offsetWidth;yield!1,n.current.parentElement.offsetWidth!==x&&(yield!0)}}else if(n.current.offsetWidth>=n.current.scrollWidth){let x=n.current.parentElement.offsetWidth;yield!0,n.current.parentElement.offsetWidth===x&&(yield!1)}}}),[n,h]);he(p,[p]),n7({ref:n,onResize:p}),as(y.useRef(typeof window<"u"?window:null),"resize",p);let{focusProps:g,isFocusVisible:b,isFocused:v}=hl({isTextInput:!0,within:!0}),m=s==="invalid"&&!r,$=V(wi(Re),"spectrum-Textfield",{"spectrum-Textfield--invalid":m,"spectrum-Textfield--valid":s==="valid"&&!r,"spectrum-Textfield--quiet":i,"focus-ring":b&&!d},V(wi(ee),"react-spectrum-Datepicker-field"),u),w=V(wi(Re),"spectrum-Textfield-input",{"is-disabled":r,"is-focused":v},V(wi(ee),"react-spectrum-DateField-Input"),f&&V(wi(ee),"react-spectrum-Datepicker-input"),a),D=V(wi(Re),"spectrum-Textfield-validationIcon"),S=null;return s==="invalid"&&!r?S=_.createElement(ak,{"data-testid":"invalid-icon",UNSAFE_className:D}):s==="valid"&&!r&&(S=_.createElement(Iz,{"data-testid":"valid-icon",UNSAFE_className:D})),_.createElement("div",{role:"presentation",...de(l,g),className:$,style:c},_.createElement("div",{role:"presentation",className:w},_.createElement("div",{role:"presentation",className:V(wi(ee),"react-spectrum-Datepicker-inputContents"),ref:dL(t,n)},o)),S)}const PP=_.forwardRef(MV);var TP={};TP={endTime:"وقت الانتهاء",startTime:"وقت البدء",time:"الوقت"};var RP={};RP={endTime:"Краен час",startTime:"Начален час",time:"Време"};var MP={};MP={endTime:"Konečný čas",startTime:"Počáteční čas",time:"Čas"};var FP={};FP={endTime:"Sluttidspunkt",startTime:"Starttidspunkt",time:"Klokkeslæt"};var AP={};AP={endTime:"Endzeit",startTime:"Startzeit",time:"Uhrzeit"};var OP={};OP={endTime:"Χρόνος λήξης",startTime:"Ώρα έναρξης",time:"Χρόνος"};var BP={};BP={time:"Time",startTime:"Start time",endTime:"End time"};var IP={};IP={endTime:"Hora de finalización",startTime:"Hora de inicio",time:"Hora"};var LP={};LP={endTime:"Lõpuaeg",startTime:"Algusaeg",time:"Aeg"};var NP={};NP={endTime:"Päättymisaika",startTime:"Alkamisaika",time:"Aika"};var jP={};jP={endTime:"Heure de fin",startTime:"Heure de début",time:"Heure"};var zP={};zP={endTime:"שעת סיום",startTime:"שעת התחלה",time:"זמן"};var VP={};VP={endTime:"Vrijeme završetka",startTime:"Vrijeme početka",time:"Vrijeme"};var WP={};WP={endTime:"Befejezés ideje",startTime:"Kezdés ideje",time:"Idő"};var UP={};UP={endTime:"Ora di fine",startTime:"Ora di inizio",time:"Ora"};var HP={};HP={endTime:"終了時刻",startTime:"開始時刻",time:"時刻"};var KP={};KP={endTime:"종료 시간",startTime:"시작 시간",time:"시간"};var YP={};YP={endTime:"Pabaigos laikas",startTime:"Pradžios laikas",time:"Laikas"};var qP={};qP={endTime:"Beigu laiks",startTime:"Sākuma laiks",time:"Laiks"};var GP={};GP={endTime:"Sluttid",startTime:"Starttid",time:"Tid"};var ZP={};ZP={endTime:"Eindtijd",startTime:"Starttijd",time:"Tijd"};var XP={};XP={endTime:"Godzina końcowa",startTime:"Godzina początkowa",time:"Godzina"};var QP={};QP={endTime:"Hora final",startTime:"Hora inicial",time:"Hora"};var JP={};JP={endTime:"Terminar tempo",startTime:"Iniciar tempo",time:"Tempo"};var eT={};eT={endTime:"Ora de sfârșit",startTime:"Ora de început",time:"Ora"};var tT={};tT={endTime:"Время окончания",startTime:"Время начала",time:"Время"};var nT={};nT={endTime:"Čas ukončenia",startTime:"Čas začiatku",time:"Čas"};var rT={};rT={endTime:"Končni čas",startTime:"Začetni čas",time:"Čas"};var iT={};iT={endTime:"Završno vreme",startTime:"Početno vreme",time:"Vreme"};var aT={};aT={endTime:"Sluttid",startTime:"Starttid",time:"Tid"};var sT={};sT={endTime:"Bitiş saati",startTime:"Başlangıç saati",time:"Saat"};var oT={};oT={endTime:"Час завершення",startTime:"Час початку",time:"Час"};var lT={};lT={endTime:"结束时间",startTime:"开始时间",time:"时间"};var uT={};uT={endTime:"結束時間",startTime:"開始時間",time:"時間"};var cT={};cT={"ar-AE":TP,"bg-BG":RP,"cs-CZ":MP,"da-DK":FP,"de-DE":AP,"el-GR":OP,"en-US":BP,"es-ES":IP,"et-EE":LP,"fi-FI":NP,"fr-FR":jP,"he-IL":zP,"hr-HR":VP,"hu-HU":WP,"it-IT":UP,"ja-JP":HP,"ko-KR":KP,"lt-LT":YP,"lv-LV":qP,"nb-NO":GP,"nl-NL":ZP,"pl-PL":XP,"pt-BR":QP,"pt-PT":JP,"ro-RO":eT,"ru-RU":tT,"sk-SK":nT,"sl-SI":rT,"sr-SP":iT,"sv-SE":aT,"tr-TR":sT,"uk-UA":oT,"zh-CN":lT,"zh-TW":uT};function Se(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var fe={};Se(fe,"focus-ring",()=>dy,e=>dy=e);Se(fe,"i18nFontFamily",()=>fy,e=>fy=e);Se(fe,"is-disabled",()=>hy,e=>hy=e);Se(fe,"is-focused",()=>py,e=>py=e);Se(fe,"is-hovered",()=>my,e=>my=e);Se(fe,"is-selected",()=>gy,e=>gy=e);Se(fe,"spectrum-Datepicker--datetimeRange",()=>vy,e=>vy=e);Se(fe,"spectrum-Datepicker--range",()=>by,e=>by=e);Se(fe,"spectrum-Datepicker--rangeDash",()=>yy,e=>yy=e);Se(fe,"spectrum-Datepicker-endField",()=>$y,e=>$y=e);Se(fe,"spectrum-Datepicker-focusRing",()=>xy,e=>xy=e);Se(fe,"spectrum-Datepicker-startField",()=>wy,e=>wy=e);Se(fe,"spectrum-FieldButton",()=>Dy,e=>Dy=e);Se(fe,"spectrum-FieldButton--invalid",()=>_y,e=>_y=e);Se(fe,"spectrum-FocusRing-ring",()=>Nd,e=>Nd=e);Se(fe,"spectrum-FocusRing",()=>jd,e=>jd=e);Se(fe,"spectrum-FocusRing--quiet",()=>zd,e=>zd=e);Se(fe,"spectrum-InputGroup",()=>Ey,e=>Ey=e);Se(fe,"spectrum-InputGroup--invalid",()=>Sy,e=>Sy=e);Se(fe,"spectrum-InputGroup--quiet",()=>Cy,e=>Cy=e);Se(fe,"spectrum-InputGroup-field",()=>ky,e=>ky=e);Se(fe,"spectrum-InputGroup-icon",()=>Py,e=>Py=e);Se(fe,"spectrum-InputGroup-input",()=>Ty,e=>Ty=e);Se(fe,"spectrum-InputGroup-input-circleLoader",()=>Ry,e=>Ry=e);Se(fe,"spectrum-InputGroup-input-validationIcon",()=>My,e=>My=e);Se(fe,"spectrum-InputGroup-popover--quiet",()=>Fy,e=>Fy=e);var dy,fy,hy,py,my,gy,vy,by,yy,$y,xy,wy,Dy,_y,Nd,jd,zd,Ey,Sy,Cy,ky,Py,Ty,Ry,My,Fy;dy="ZTA2ya_focus-ring";fy="ZTA2ya_i18nFontFamily";hy="ZTA2ya_is-disabled";py="ZTA2ya_is-focused";my="ZTA2ya_is-hovered";gy="ZTA2ya_is-selected";vy="ZTA2ya_spectrum-Datepicker--datetimeRange";by="ZTA2ya_spectrum-Datepicker--range";yy="ZTA2ya_spectrum-Datepicker--rangeDash";$y="ZTA2ya_spectrum-Datepicker-endField";xy="ZTA2ya_spectrum-Datepicker-focusRing";wy="ZTA2ya_spectrum-Datepicker-startField";Dy="ZTA2ya_spectrum-FieldButton";_y="ZTA2ya_spectrum-FieldButton--invalid";Nd="ZTA2ya_spectrum-FocusRing-ring";jd=`ZTA2ya_spectrum-FocusRing ${Nd}`;zd="ZTA2ya_spectrum-FocusRing--quiet";Ey=`ZTA2ya_spectrum-InputGroup ${jd}`;Sy="ZTA2ya_spectrum-InputGroup--invalid";Cy=`ZTA2ya_spectrum-InputGroup--quiet ${zd}`;ky="ZTA2ya_spectrum-InputGroup-field";Py="ZTA2ya_spectrum-InputGroup-icon";Ty="ZTA2ya_spectrum-InputGroup-input";Ry="ZTA2ya_spectrum-InputGroup-input-circleLoader";My="ZTA2ya_spectrum-InputGroup-input-validationIcon";Fy="ZTA2ya_spectrum-InputGroup-popover--quiet";function FV(e){let t=xn({dateStyle:"short"}),n=B9();return y.useMemo(()=>e.description?e.description:e.showFormatHelpText?t.formatToParts(new Date).map(r=>r.type==="literal"?r.value:n.of(r.type)).join(" "):"",[e.description,e.showFormatHelpText,t,n])}function AV(e){let{scale:t}=ga(),[n,r]=y.useState(I5(t));return he(()=>{let i=()=>r(I5(t));return i(),window.addEventListener("resize",i),()=>{window.removeEventListener("resize",i)}},[t]),Math.max(1,Math.min(n,e,3))}function I5(e){if(typeof window>"u")return 1;let t=e==="large"?336:280,n=e==="large"?30:24,r=e==="large"?32:48;return Math.floor((window.innerWidth-r*2)/(t+n))}function dT(e){let t=y.useRef();return y.useImperativeHandle(e,()=>({...Sf(t),focus(){Lf(t).focusFirst({tabbable:!0})}})),t}function L5(e){return e&&e.__esModule?e.default:e}function OV(e,t){e=Vl(e),e=T$(e);let{autoFocus:n,isDisabled:r,isReadOnly:i,isRequired:a,isQuiet:s}=e,o=dT(t),{locale:l}=Qe(),u=Yj({...e,locale:l}),c=y.useRef(null),d=y.useRef(null),{labelProps:f,fieldProps:h,inputProps:p,descriptionProps:g,errorMessageProps:b,isInvalid:v,validationErrors:m,validationDetails:$}=_j({...e,inputRef:d},u,c),w=u.validationState||(v?"invalid":null);return _.createElement(Uk,{...e,ref:o,elementType:"span",labelProps:f,descriptionProps:g,errorMessageProps:b,validationState:w,isInvalid:v,validationErrors:m,validationDetails:$,wrapperClassName:V(L5(ee),"react-spectrum-TimeField-fieldWrapper")},_.createElement(PP,{ref:c,fieldProps:h,isDisabled:r,isQuiet:s,autoFocus:n,validationState:w,className:V(L5(ee),"react-spectrum-TimeField")},u.segments.map((D,S)=>_.createElement(kP,{key:S,segment:D,state:u,isDisabled:r,isReadOnly:i,isRequired:a})),_.createElement("input",{...p,ref:d})))}const N5=_.forwardRef(OV);var fT={};Object.defineProperty(fT,"__esModule",{value:!0});var BV=fT.A4uCalendar=LV,Nt=IV(y);function IV(e){return e&&e.__esModule?e:{default:e}}function Vd(){return Vd=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},Vd.apply(this,arguments)}function LV(e){var t=Vd({},e);return Nt.default.createElement("svg",Vd({viewBox:"0 0 36 36"},t,t),Nt.default.createElement("path",{fillRule:"evenodd",d:"M33,6H28V3a1,1,0,0,0-1-1H25a1,1,0,0,0-1,1V6H10V3A1,1,0,0,0,9,2H7A1,1,0,0,0,6,3V6H1A1,1,0,0,0,0,7V33a1,1,0,0,0,1,1H33a1,1,0,0,0,1-1V7A1,1,0,0,0,33,6ZM32,32H2V8H6V9a1,1,0,0,0,1,1H9a1,1,0,0,0,1-1V8H24V9a1,1,0,0,0,1,1h2a1,1,0,0,0,1-1V8h4Z"}),Nt.default.createElement("rect",{fillRule:"evenodd",x:"6",y:"12",width:"4",height:"4"}),Nt.default.createElement("rect",{fillRule:"evenodd",x:"12",y:"12",width:"4",height:"4"}),Nt.default.createElement("rect",{fillRule:"evenodd",x:"18",y:"12",width:"4",height:"4"}),Nt.default.createElement("rect",{fillRule:"evenodd",x:"24",y:"12",width:"4",height:"4"}),Nt.default.createElement("rect",{fillRule:"evenodd",x:"6",y:"18",width:"4",height:"4"}),Nt.default.createElement("rect",{fillRule:"evenodd",x:"12",y:"18",width:"4",height:"4"}),Nt.default.createElement("rect",{fillRule:"evenodd",x:"18",y:"18",width:"4",height:"4"}),Nt.default.createElement("rect",{fillRule:"evenodd",x:"24",y:"18",width:"4",height:"4"}),Nt.default.createElement("rect",{fillRule:"evenodd",x:"6",y:"24",width:"4",height:"4"}),Nt.default.createElement("rect",{fillRule:"evenodd",x:"12",y:"24",width:"4",height:"4"}),Nt.default.createElement("rect",{fillRule:"evenodd",x:"18",y:"24",width:"4",height:"4"}),Nt.default.createElement("rect",{fillRule:"evenodd",x:"24",y:"24",width:"4",height:"4"}))}function NV(e){return _.createElement(sz,e,_.createElement(BV,null))}function zt(e){return e&&e.__esModule?e.default:e}function jV(e,t){var n,r;e=Vl(e),e=T$(e);let{isQuiet:i,isDisabled:a,autoFocus:s,placeholderValue:o,maxVisibleMonths:l=1,pageBehavior:u}=e,{hoverProps:c,isHovered:d}=If({isDisabled:a}),f=y.useRef(),h=Kj({...e,shouldCloseOnSelect:()=>!h.hasTime}),{labelProps:p,groupProps:g,buttonProps:b,dialogProps:v,startFieldProps:m,endFieldProps:$,descriptionProps:w,errorMessageProps:D,calendarProps:S,isInvalid:k,validationErrors:x,validationDetails:T}=Mj(e,h,f),{isOpen:P,setOpen:E}=h,{direction:F}=Qe(),R=dT(t),M=Sn(zt(cT),"@react-spectrum/datepicker"),{isFocused:z,isFocusVisible:B,focusProps:C}=hl({within:!0,isTextInput:!0,autoFocus:s}),{isFocused:O,focusProps:I}=hl({within:!1,isTextInput:!1,autoFocus:s}),N=V(zt(fe),"spectrum-InputGroup",{"spectrum-InputGroup--quiet":i,"spectrum-InputGroup--invalid":k&&!a,"is-disabled":a,"is-hovered":d,"is-focused":z,"focus-ring":B&&!O}),X=V(zt(fe),"spectrum-InputGroup-input",{"is-disabled":a,"is-invalid":k&&!a}),Q=FV(e);Q&&!e.description&&(w.id=null);let je=o,$e=je&&"hour"in je?je:null,lt=e.minValue&&"hour"in e.minValue?e.minValue:null,xe=e.maxValue&&"hour"in e.maxValue?e.maxValue:null,W=h.granularity==="hour"||h.granularity==="minute"||h.granularity==="second"?h.granularity:null,Ce=!!W,et=AV(l),yt=h.validationState||(k?"invalid":null);return _.createElement(Uk,{...e,ref:R,elementType:"span",description:Q,labelProps:p,descriptionProps:w,errorMessageProps:D,validationState:yt,isInvalid:k,validationErrors:x,validationDetails:T,wrapperClassName:V(zt(ee),"react-spectrum-Datepicker-fieldWrapper")},_.createElement("div",{...de(g,c,C),className:N,ref:f},_.createElement(PP,{isDisabled:a,isQuiet:i,validationState:yt,className:V(zt(fe),"spectrum-InputGroup-field"),inputClassName:X,disableFocusRing:!0},_.createElement(B5,{...m,"data-testid":"start-date",isQuiet:e.isQuiet,inputClassName:V(zt(ee),"react-spectrum-Datepicker-startField")}),_.createElement(zV,null),_.createElement(B5,{...$,"data-testid":"end-date",isQuiet:e.isQuiet,inputClassName:V(zt(fe),"spectrum-Datepicker-endField",V(zt(ee),"react-spectrum-Datepicker-endField"))})),_.createElement(CV,{type:"popover",mobileType:"tray",placement:F==="rtl"?"bottom right":"bottom left",targetRef:f,hideArrow:!0,isOpen:P,onOpenChange:E,shouldFlip:e.shouldFlip},_.createElement(dz,{...de(b,I),UNSAFE_className:V(zt(fe),"spectrum-FieldButton"),isQuiet:i,validationState:yt},_.createElement(NV,null)),_.createElement(_V,{UNSAFE_className:V(zt(ee),"react-spectrum-Datepicker-dialog"),...v},_.createElement(SV,null,_.createElement("div",{className:V(zt(ee),"react-spectrum-Datepicker-dialogContent")},_.createElement(wV,{...S,visibleMonths:et,pageBehavior:u,UNSAFE_className:V(zt(ee),"react-spectrum-Datepicker-calendar",{"is-invalid":yt==="invalid"})}),Ce&&_.createElement(hC,{gap:"size-100",marginTop:"size-100",UNSAFE_className:V(zt(ee),"react-spectrum-Datepicker-timeFields")},_.createElement(N5,{label:M.format("startTime"),value:((n=h.timeRange)===null||n===void 0?void 0:n.start)||null,onChange:ut=>h.setTime("start",ut),placeholderValue:$e,granularity:W,minValue:lt,maxValue:xe,hourCycle:e.hourCycle,hideTimeZone:e.hideTimeZone,flex:!0}),_.createElement(N5,{label:M.format("endTime"),value:((r=h.timeRange)===null||r===void 0?void 0:r.end)||null,onChange:ut=>h.setTime("end",ut),placeholderValue:$e,granularity:W,minValue:lt,maxValue:xe,hourCycle:e.hourCycle,hideTimeZone:e.hideTimeZone,flex:!0}))))))))}function zV(){return _.createElement("div",{"aria-hidden":"true","data-testid":"date-range-dash",className:V(zt(ee),"react-spectrum-Datepicker-rangeDash")})}const VV=_.forwardRef(jV);function WV(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var hT={};WV(hT,"spectrum--darkest",()=>Ay,e=>Ay=e);var Ay;Ay="gP7gvq_spectrum--darkest";function ba(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var vi={};ba(vi,"spectrum",()=>Oy,e=>Oy=e);ba(vi,"spectrum--dark",()=>By,e=>By=e);ba(vi,"spectrum--darkest",()=>Iy,e=>Iy=e);ba(vi,"spectrum--large",()=>Ly,e=>Ly=e);ba(vi,"spectrum--light",()=>Ny,e=>Ny=e);ba(vi,"spectrum--lightest",()=>jy,e=>jy=e);ba(vi,"spectrum--medium",()=>zy,e=>zy=e);var Oy,By,Iy,Ly,Ny,jy,zy;Oy="zA6MfG_spectrum";By="zA6MfG_spectrum--dark";Iy="zA6MfG_spectrum--darkest";Ly="zA6MfG_spectrum--large";Ny="zA6MfG_spectrum--light";jy="zA6MfG_spectrum--lightest";zy="zA6MfG_spectrum--medium";function UV(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var pT={};UV(pT,"spectrum--large",()=>Vy,e=>Vy=e);var Vy;Vy="HAZavG_spectrum--large";function HV(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var mT={};HV(mT,"spectrum--light",()=>Wy,e=>Wy=e);var Wy;Wy="PFjRbG_spectrum--light";function KV(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var gT={};KV(gT,"spectrum--medium",()=>Uy,e=>Uy=e);var Uy;Uy="xSyFOq_spectrum--medium";function Xs(e){return e&&e.__esModule?e.default:e}let YV={global:Xs(vi),light:Xs(mT),dark:Xs(hT),medium:Xs(gT),large:Xs(pT)};function ka(e){let t="flex items-center w-full p-3 leading-tight transition-all rounded-lg outline-none text-start hover:bg-blue-500";return e.name===e.currentPage&&(t+=" border-2 border-black"),A.jsx("a",{href:e.href,children:A.jsxs("div",{role:"button",className:t,children:[A.jsx("div",{className:"grid mr-4 place-items-center",children:A.jsx("i",{className:e.icon})}),e.name]})})}function R$(e){return A.jsxs("div",{className:"relative flex h-full w-full max-w-[20rem] flex-col rounded-xl bg-white bg-clip-border text-gray-700 shadow-xl shadow-blue-gray-900/5",children:[A.jsx("div",{className:"p-4 mb-2",children:A.jsx("h5",{className:"block font-sans text-xl antialiased font-semibold leading-snug tracking-normal text-blue-gray-900",children:A.jsx("a",{href:"/",children:"fs-tracer"})})}),A.jsxs("nav",{className:"flex min-w-[240px] flex-col gap-1  font-sans text-base font-normal text-blue-gray-700",children:[A.jsx(ka,{name:"Home",icon:"fa-solid fa-house",href:"/",currentPage:e.currentPage}),A.jsx(ka,{name:"Recent files",icon:"fa-solid fa-folder",href:"/recent",currentPage:e.currentPage}),A.jsx(ka,{name:"Search",icon:"fa-solid fa-magnifying-glass",href:"/search",currentPage:e.currentPage}),A.jsx(ka,{name:"Monitoring",icon:"fa-solid fa-chart-column",href:"/monitoring",currentPage:e.currentPage}),A.jsx(ka,{name:"Setup",icon:"fa-solid fa-gear",href:"/setup",currentPage:e.currentPage}),A.jsx(ka,{name:"Logout",icon:"fa-solid fa-right-from-bracket",href:"/logout",currentPage:e.currentPage})]})]})}/*!
  * @kurkle/color v0.3.2
  * https://github.com/kurkle/color#readme
  * (c) 2023 Jukka Kurkela
  * Released under the MIT License
- */function Wl(e){return e+.5|0}const Kr=(e,t,n)=>Math.max(Math.min(e,n),t);function vo(e){return Kr(Wl(e*2.55),0,255)}function ii(e){return Kr(Wl(e*255),0,255)}function ur(e){return Kr(Wl(e/2.55)/100,0,1)}function j5(e){return Kr(Wl(e*100),0,100)}const hn={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},Hy=[..."0123456789ABCDEF"],YV=e=>Hy[e&15],qV=e=>Hy[(e&240)>>4]+Hy[e&15],Pu=e=>(e&240)>>4===(e&15),GV=e=>Pu(e.r)&&Pu(e.g)&&Pu(e.b)&&Pu(e.a);function ZV(e){var t=e.length,n;return e[0]==="#"&&(t===4||t===5?n={r:255&hn[e[1]]*17,g:255&hn[e[2]]*17,b:255&hn[e[3]]*17,a:t===5?hn[e[4]]*17:255}:(t===7||t===9)&&(n={r:hn[e[1]]<<4|hn[e[2]],g:hn[e[3]]<<4|hn[e[4]],b:hn[e[5]]<<4|hn[e[6]],a:t===9?hn[e[7]]<<4|hn[e[8]]:255})),n}const XV=(e,t)=>e<255?t(e):"";function QV(e){var t=GV(e)?YV:qV;return e?"#"+t(e.r)+t(e.g)+t(e.b)+XV(e.a,t):void 0}const JV=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function vT(e,t,n){const r=t*Math.min(n,1-n),i=(a,s=(a+e/30)%12)=>n-r*Math.max(Math.min(s-3,9-s,1),-1);return[i(0),i(8),i(4)]}function eW(e,t,n){const r=(i,a=(i+e/60)%6)=>n-n*t*Math.max(Math.min(a,4-a,1),0);return[r(5),r(3),r(1)]}function tW(e,t,n){const r=vT(e,1,.5);let i;for(t+n>1&&(i=1/(t+n),t*=i,n*=i),i=0;i<3;i++)r[i]*=1-t-n,r[i]+=t;return r}function nW(e,t,n,r,i){return e===i?(t-n)/r+(t<n?6:0):t===i?(n-e)/r+2:(e-t)/r+4}function M$(e){const n=e.r/255,r=e.g/255,i=e.b/255,a=Math.max(n,r,i),s=Math.min(n,r,i),o=(a+s)/2;let l,u,c;return a!==s&&(c=a-s,u=o>.5?c/(2-a-s):c/(a+s),l=nW(n,r,i,c,a),l=l*60+.5),[l|0,u||0,o]}function F$(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(ii)}function A$(e,t,n){return F$(vT,e,t,n)}function rW(e,t,n){return F$(tW,e,t,n)}function iW(e,t,n){return F$(eW,e,t,n)}function bT(e){return(e%360+360)%360}function aW(e){const t=JV.exec(e);let n=255,r;if(!t)return;t[5]!==r&&(n=t[6]?vo(+t[5]):ii(+t[5]));const i=bT(+t[2]),a=+t[3]/100,s=+t[4]/100;return t[1]==="hwb"?r=rW(i,a,s):t[1]==="hsv"?r=iW(i,a,s):r=A$(i,a,s),{r:r[0],g:r[1],b:r[2],a:n}}function sW(e,t){var n=M$(e);n[0]=bT(n[0]+t),n=A$(n),e.r=n[0],e.g=n[1],e.b=n[2]}function oW(e){if(!e)return;const t=M$(e),n=t[0],r=j5(t[1]),i=j5(t[2]);return e.a<255?`hsla(${n}, ${r}%, ${i}%, ${ur(e.a)})`:`hsl(${n}, ${r}%, ${i}%)`}const z5={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},V5={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function lW(){const e={},t=Object.keys(V5),n=Object.keys(z5);let r,i,a,s,o;for(r=0;r<t.length;r++){for(s=o=t[r],i=0;i<n.length;i++)a=n[i],o=o.replace(a,z5[a]);a=parseInt(V5[s],16),e[o]=[a>>16&255,a>>8&255,a&255]}return e}let Tu;function uW(e){Tu||(Tu=lW(),Tu.transparent=[0,0,0,0]);const t=Tu[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const cW=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function dW(e){const t=cW.exec(e);let n=255,r,i,a;if(t){if(t[7]!==r){const s=+t[7];n=t[8]?vo(s):Kr(s*255,0,255)}return r=+t[1],i=+t[3],a=+t[5],r=255&(t[2]?vo(r):Kr(r,0,255)),i=255&(t[4]?vo(i):Kr(i,0,255)),a=255&(t[6]?vo(a):Kr(a,0,255)),{r,g:i,b:a,a:n}}}function fW(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${ur(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const cp=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,Pa=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function hW(e,t,n){const r=Pa(ur(e.r)),i=Pa(ur(e.g)),a=Pa(ur(e.b));return{r:ii(cp(r+n*(Pa(ur(t.r))-r))),g:ii(cp(i+n*(Pa(ur(t.g))-i))),b:ii(cp(a+n*(Pa(ur(t.b))-a))),a:e.a+n*(t.a-e.a)}}function Ru(e,t,n){if(e){let r=M$(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,t===0?360:1)),r=A$(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function yT(e,t){return e&&Object.assign(t||{},e)}function W5(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=ii(e[3]))):(t=yT(e,{r:0,g:0,b:0,a:1}),t.a=ii(t.a)),t}function pW(e){return e.charAt(0)==="r"?dW(e):aW(e)}class vl{constructor(t){if(t instanceof vl)return t;const n=typeof t;let r;n==="object"?r=W5(t):n==="string"&&(r=ZV(t)||uW(t)||pW(t)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var t=yT(this._rgb);return t&&(t.a=ur(t.a)),t}set rgb(t){this._rgb=W5(t)}rgbString(){return this._valid?fW(this._rgb):void 0}hexString(){return this._valid?QV(this._rgb):void 0}hslString(){return this._valid?oW(this._rgb):void 0}mix(t,n){if(t){const r=this.rgb,i=t.rgb;let a;const s=n===a?.5:n,o=2*s-1,l=r.a-i.a,u=((o*l===-1?o:(o+l)/(1+o*l))+1)/2;a=1-u,r.r=255&u*r.r+a*i.r+.5,r.g=255&u*r.g+a*i.g+.5,r.b=255&u*r.b+a*i.b+.5,r.a=s*r.a+(1-s)*i.a,this.rgb=r}return this}interpolate(t,n){return t&&(this._rgb=hW(this._rgb,t._rgb,n)),this}clone(){return new vl(this.rgb)}alpha(t){return this._rgb.a=ii(t),this}clearer(t){const n=this._rgb;return n.a*=1-t,this}greyscale(){const t=this._rgb,n=Wl(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=n,this}opaquer(t){const n=this._rgb;return n.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return Ru(this._rgb,2,t),this}darken(t){return Ru(this._rgb,2,-t),this}saturate(t){return Ru(this._rgb,1,t),this}desaturate(t){return Ru(this._rgb,1,-t),this}rotate(t){return sW(this._rgb,t),this}}/*!
+ */function Wl(e){return e+.5|0}const Kr=(e,t,n)=>Math.max(Math.min(e,n),t);function vo(e){return Kr(Wl(e*2.55),0,255)}function ii(e){return Kr(Wl(e*255),0,255)}function ur(e){return Kr(Wl(e/2.55)/100,0,1)}function j5(e){return Kr(Wl(e*100),0,100)}const hn={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},Hy=[..."0123456789ABCDEF"],qV=e=>Hy[e&15],GV=e=>Hy[(e&240)>>4]+Hy[e&15],Pu=e=>(e&240)>>4===(e&15),ZV=e=>Pu(e.r)&&Pu(e.g)&&Pu(e.b)&&Pu(e.a);function XV(e){var t=e.length,n;return e[0]==="#"&&(t===4||t===5?n={r:255&hn[e[1]]*17,g:255&hn[e[2]]*17,b:255&hn[e[3]]*17,a:t===5?hn[e[4]]*17:255}:(t===7||t===9)&&(n={r:hn[e[1]]<<4|hn[e[2]],g:hn[e[3]]<<4|hn[e[4]],b:hn[e[5]]<<4|hn[e[6]],a:t===9?hn[e[7]]<<4|hn[e[8]]:255})),n}const QV=(e,t)=>e<255?t(e):"";function JV(e){var t=ZV(e)?qV:GV;return e?"#"+t(e.r)+t(e.g)+t(e.b)+QV(e.a,t):void 0}const eW=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function vT(e,t,n){const r=t*Math.min(n,1-n),i=(a,s=(a+e/30)%12)=>n-r*Math.max(Math.min(s-3,9-s,1),-1);return[i(0),i(8),i(4)]}function tW(e,t,n){const r=(i,a=(i+e/60)%6)=>n-n*t*Math.max(Math.min(a,4-a,1),0);return[r(5),r(3),r(1)]}function nW(e,t,n){const r=vT(e,1,.5);let i;for(t+n>1&&(i=1/(t+n),t*=i,n*=i),i=0;i<3;i++)r[i]*=1-t-n,r[i]+=t;return r}function rW(e,t,n,r,i){return e===i?(t-n)/r+(t<n?6:0):t===i?(n-e)/r+2:(e-t)/r+4}function M$(e){const n=e.r/255,r=e.g/255,i=e.b/255,a=Math.max(n,r,i),s=Math.min(n,r,i),o=(a+s)/2;let l,u,c;return a!==s&&(c=a-s,u=o>.5?c/(2-a-s):c/(a+s),l=rW(n,r,i,c,a),l=l*60+.5),[l|0,u||0,o]}function F$(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(ii)}function A$(e,t,n){return F$(vT,e,t,n)}function iW(e,t,n){return F$(nW,e,t,n)}function aW(e,t,n){return F$(tW,e,t,n)}function bT(e){return(e%360+360)%360}function sW(e){const t=eW.exec(e);let n=255,r;if(!t)return;t[5]!==r&&(n=t[6]?vo(+t[5]):ii(+t[5]));const i=bT(+t[2]),a=+t[3]/100,s=+t[4]/100;return t[1]==="hwb"?r=iW(i,a,s):t[1]==="hsv"?r=aW(i,a,s):r=A$(i,a,s),{r:r[0],g:r[1],b:r[2],a:n}}function oW(e,t){var n=M$(e);n[0]=bT(n[0]+t),n=A$(n),e.r=n[0],e.g=n[1],e.b=n[2]}function lW(e){if(!e)return;const t=M$(e),n=t[0],r=j5(t[1]),i=j5(t[2]);return e.a<255?`hsla(${n}, ${r}%, ${i}%, ${ur(e.a)})`:`hsl(${n}, ${r}%, ${i}%)`}const z5={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},V5={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function uW(){const e={},t=Object.keys(V5),n=Object.keys(z5);let r,i,a,s,o;for(r=0;r<t.length;r++){for(s=o=t[r],i=0;i<n.length;i++)a=n[i],o=o.replace(a,z5[a]);a=parseInt(V5[s],16),e[o]=[a>>16&255,a>>8&255,a&255]}return e}let Tu;function cW(e){Tu||(Tu=uW(),Tu.transparent=[0,0,0,0]);const t=Tu[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const dW=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function fW(e){const t=dW.exec(e);let n=255,r,i,a;if(t){if(t[7]!==r){const s=+t[7];n=t[8]?vo(s):Kr(s*255,0,255)}return r=+t[1],i=+t[3],a=+t[5],r=255&(t[2]?vo(r):Kr(r,0,255)),i=255&(t[4]?vo(i):Kr(i,0,255)),a=255&(t[6]?vo(a):Kr(a,0,255)),{r,g:i,b:a,a:n}}}function hW(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${ur(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const cp=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,Pa=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function pW(e,t,n){const r=Pa(ur(e.r)),i=Pa(ur(e.g)),a=Pa(ur(e.b));return{r:ii(cp(r+n*(Pa(ur(t.r))-r))),g:ii(cp(i+n*(Pa(ur(t.g))-i))),b:ii(cp(a+n*(Pa(ur(t.b))-a))),a:e.a+n*(t.a-e.a)}}function Ru(e,t,n){if(e){let r=M$(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,t===0?360:1)),r=A$(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function yT(e,t){return e&&Object.assign(t||{},e)}function W5(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=ii(e[3]))):(t=yT(e,{r:0,g:0,b:0,a:1}),t.a=ii(t.a)),t}function mW(e){return e.charAt(0)==="r"?fW(e):sW(e)}class vl{constructor(t){if(t instanceof vl)return t;const n=typeof t;let r;n==="object"?r=W5(t):n==="string"&&(r=XV(t)||cW(t)||mW(t)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var t=yT(this._rgb);return t&&(t.a=ur(t.a)),t}set rgb(t){this._rgb=W5(t)}rgbString(){return this._valid?hW(this._rgb):void 0}hexString(){return this._valid?JV(this._rgb):void 0}hslString(){return this._valid?lW(this._rgb):void 0}mix(t,n){if(t){const r=this.rgb,i=t.rgb;let a;const s=n===a?.5:n,o=2*s-1,l=r.a-i.a,u=((o*l===-1?o:(o+l)/(1+o*l))+1)/2;a=1-u,r.r=255&u*r.r+a*i.r+.5,r.g=255&u*r.g+a*i.g+.5,r.b=255&u*r.b+a*i.b+.5,r.a=s*r.a+(1-s)*i.a,this.rgb=r}return this}interpolate(t,n){return t&&(this._rgb=pW(this._rgb,t._rgb,n)),this}clone(){return new vl(this.rgb)}alpha(t){return this._rgb.a=ii(t),this}clearer(t){const n=this._rgb;return n.a*=1-t,this}greyscale(){const t=this._rgb,n=Wl(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=n,this}opaquer(t){const n=this._rgb;return n.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return Ru(this._rgb,2,t),this}darken(t){return Ru(this._rgb,2,-t),this}saturate(t){return Ru(this._rgb,1,t),this}desaturate(t){return Ru(this._rgb,1,-t),this}rotate(t){return oW(this._rgb,t),this}}/*!
  * Chart.js v4.4.3
  * https://www.chartjs.org
  * (c) 2024 Chart.js Contributors
  * Released under the MIT License
- */function ir(){}const mW=(()=>{let e=0;return()=>e++})();function ce(e){return e===null||typeof e>"u"}function Be(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function ae(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function Ve(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function en(e,t){return Ve(e)?e:t}function J(e,t){return typeof e>"u"?t:e}const gW=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100:+e/t,$T=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function De(e,t,n){if(e&&typeof e.call=="function")return e.apply(n,t)}function me(e,t,n,r){let i,a,s;if(Be(e))for(a=e.length,i=0;i<a;i++)t.call(n,e[i],i);else if(ae(e))for(s=Object.keys(e),a=s.length,i=0;i<a;i++)t.call(n,e[s[i]],s[i])}function Wd(e,t){let n,r,i,a;if(!e||!t||e.length!==t.length)return!1;for(n=0,r=e.length;n<r;++n)if(i=e[n],a=t[n],i.datasetIndex!==a.datasetIndex||i.index!==a.index)return!1;return!0}function Ud(e){if(Be(e))return e.map(Ud);if(ae(e)){const t=Object.create(null),n=Object.keys(e),r=n.length;let i=0;for(;i<r;++i)t[n[i]]=Ud(e[n[i]]);return t}return e}function xT(e){return["__proto__","prototype","constructor"].indexOf(e)===-1}function vW(e,t,n,r){if(!xT(e))return;const i=t[e],a=n[e];ae(i)&&ae(a)?bl(i,a,r):t[e]=Ud(a)}function bl(e,t,n){const r=Be(t)?t:[t],i=r.length;if(!ae(e))return e;n=n||{};const a=n.merger||vW;let s;for(let o=0;o<i;++o){if(s=r[o],!ae(s))continue;const l=Object.keys(s);for(let u=0,c=l.length;u<c;++u)a(l[u],e,s,n)}return e}function Io(e,t){return bl(e,t,{merger:bW})}function bW(e,t,n){if(!xT(e))return;const r=t[e],i=n[e];ae(r)&&ae(i)?Io(r,i):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=Ud(i))}const U5={"":e=>e,x:e=>e.x,y:e=>e.y};function yW(e){const t=e.split("."),n=[];let r="";for(const i of t)r+=i,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}function $W(e){const t=yW(e);return n=>{for(const r of t){if(r==="")break;n=n&&n[r]}return n}}function ci(e,t){return(U5[t]||(U5[t]=$W(t)))(e)}function O$(e){return e.charAt(0).toUpperCase()+e.slice(1)}const yl=e=>typeof e<"u",di=e=>typeof e=="function",H5=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function xW(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const Me=Math.PI,Te=2*Me,wW=Te+Me,Hd=Number.POSITIVE_INFINITY,DW=Me/180,qe=Me/2,Di=Me/4,K5=Me*2/3,Yr=Math.log10,Zn=Math.sign;function Lo(e,t,n){return Math.abs(e-t)<n}function Y5(e){const t=Math.round(e);e=Lo(e,t,e/1e3)?t:e;const n=Math.pow(10,Math.floor(Yr(e))),r=e/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function _W(e){const t=[],n=Math.sqrt(e);let r;for(r=1;r<n;r++)e%r===0&&(t.push(r),t.push(e/r));return n===(n|0)&&t.push(n),t.sort((i,a)=>i-a).pop(),t}function ws(e){return!isNaN(parseFloat(e))&&isFinite(e)}function EW(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}function wT(e,t,n){let r,i,a;for(r=0,i=e.length;r<i;r++)a=e[r][n],isNaN(a)||(t.min=Math.min(t.min,a),t.max=Math.max(t.max,a))}function An(e){return e*(Me/180)}function B$(e){return e*(180/Me)}function q5(e){if(!Ve(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function DT(e,t){const n=t.x-e.x,r=t.y-e.y,i=Math.sqrt(n*n+r*r);let a=Math.atan2(r,n);return a<-.5*Me&&(a+=Te),{angle:a,distance:i}}function Ky(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function SW(e,t){return(e-t+wW)%Te-Me}function nn(e){return(e%Te+Te)%Te}function $l(e,t,n,r){const i=nn(e),a=nn(t),s=nn(n),o=nn(a-i),l=nn(s-i),u=nn(i-a),c=nn(i-s);return i===a||i===s||r&&a===s||o>l&&u<c}function dt(e,t,n){return Math.max(t,Math.min(n,e))}function CW(e){return dt(e,-32768,32767)}function mr(e,t,n,r=1e-6){return e>=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function I$(e,t,n){n=n||(s=>e[s]<t);let r=e.length-1,i=0,a;for(;r-i>1;)a=i+r>>1,n(a)?i=a:r=a;return{lo:i,hi:r}}const gr=(e,t,n,r)=>I$(e,n,r?i=>{const a=e[i][t];return a<n||a===n&&e[i+1][t]===n}:i=>e[i][t]<n),kW=(e,t,n)=>I$(e,n,r=>e[r][t]>=n);function PW(e,t,n){let r=0,i=e.length;for(;r<i&&e[r]<t;)r++;for(;i>r&&e[i-1]>n;)i--;return r>0||i<e.length?e.slice(r,i):e}const _T=["push","pop","shift","splice","unshift"];function TW(e,t){if(e._chartjs){e._chartjs.listeners.push(t);return}Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),_T.forEach(n=>{const r="_onData"+O$(n),i=e[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value(...a){const s=i.apply(this,a);return e._chartjs.listeners.forEach(o=>{typeof o[r]=="function"&&o[r](...a)}),s}})})}function G5(e,t){const n=e._chartjs;if(!n)return;const r=n.listeners,i=r.indexOf(t);i!==-1&&r.splice(i,1),!(r.length>0)&&(_T.forEach(a=>{delete e[a]}),delete e._chartjs)}function ET(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const ST=function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame}();function CT(e,t){let n=[],r=!1;return function(...i){n=i,r||(r=!0,ST.call(window,()=>{r=!1,e.apply(t,n)}))}}function RW(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}const L$=e=>e==="start"?"left":e==="end"?"right":"center",Dt=(e,t,n)=>e==="start"?t:e==="end"?n:(t+n)/2,MW=(e,t,n,r)=>e===(r?"left":"right")?n:e==="center"?(t+n)/2:t;function kT(e,t,n){const r=t.length;let i=0,a=r;if(e._sorted){const{iScale:s,_parsed:o}=e,l=s.axis,{min:u,max:c,minDefined:d,maxDefined:f}=s.getUserBounds();d&&(i=dt(Math.min(gr(o,l,u).lo,n?r:gr(t,l,s.getPixelForValue(u)).lo),0,r-1)),f?a=dt(Math.max(gr(o,s.axis,c,!0).hi+1,n?0:gr(t,l,s.getPixelForValue(c),!0).hi+1),i,r)-i:a=r-i}return{start:i,count:a}}function PT(e){const{xScale:t,yScale:n,_scaleRanges:r}=e,i={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!r)return e._scaleRanges=i,!0;const a=r.xmin!==t.min||r.xmax!==t.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,i),a}const Mu=e=>e===0||e===1,Z5=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*Te/n)),X5=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*Te/n)+1,No={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*qe)+1,easeOutSine:e=>Math.sin(e*qe),easeInOutSine:e=>-.5*(Math.cos(Me*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>Mu(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>Mu(e)?e:Z5(e,.075,.3),easeOutElastic:e=>Mu(e)?e:X5(e,.075,.3),easeInOutElastic(e){return Mu(e)?e:e<.5?.5*Z5(e*2,.1125,.45):.5+.5*X5(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-No.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?No.easeInBounce(e*2)*.5:No.easeOutBounce(e*2-1)*.5+.5};function N$(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function Q5(e){return N$(e)?e:new vl(e)}function dp(e){return N$(e)?e:new vl(e).saturate(.5).darken(.1).hexString()}const FW=["x","y","borderWidth","radius","tension"],AW=["color","borderColor","backgroundColor"];function OW(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),e.set("animations",{colors:{type:"color",properties:AW},numbers:{type:"number",properties:FW}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>t|0}}}})}function BW(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const J5=new Map;function IW(e,t){t=t||{};const n=e+JSON.stringify(t);let r=J5.get(n);return r||(r=new Intl.NumberFormat(e,t),J5.set(n,r)),r}function Ul(e,t,n){return IW(t,n).format(e)}const TT={values(e){return Be(e)?e:""+e},numeric(e,t,n){if(e===0)return"0";const r=this.chart.options.locale;let i,a=e;if(n.length>1){const u=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(u<1e-4||u>1e15)&&(i="scientific"),a=LW(e,n)}const s=Yr(Math.abs(a)),o=isNaN(s)?1:Math.max(Math.min(-1*Math.floor(s),20),0),l={notation:i,minimumFractionDigits:o,maximumFractionDigits:o};return Object.assign(l,this.options.ticks.format),Ul(e,r,l)},logarithmic(e,t,n){if(e===0)return"0";const r=n[t].significand||e/Math.pow(10,Math.floor(Yr(e)));return[1,2,3,5,10,15].includes(r)||t>.8*n.length?TT.numeric.call(this,e,t,n):""}};function LW(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}var Vf={formatters:TT};function NW(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,n)=>n.lineWidth,tickColor:(t,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Vf.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const oa=Object.create(null),Yy=Object.create(null);function jo(e,t){if(!t)return e;const n=t.split(".");for(let r=0,i=n.length;r<i;++r){const a=n[r];e=e[a]||(e[a]=Object.create(null))}return e}function fp(e,t,n){return typeof t=="string"?bl(jo(e,t),n):bl(jo(e,""),t)}class jW{constructor(t,n){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=r=>r.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(r,i)=>dp(i.backgroundColor),this.hoverBorderColor=(r,i)=>dp(i.borderColor),this.hoverColor=(r,i)=>dp(i.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(n)}set(t,n){return fp(this,t,n)}get(t){return jo(this,t)}describe(t,n){return fp(Yy,t,n)}override(t,n){return fp(oa,t,n)}route(t,n,r,i){const a=jo(this,t),s=jo(this,r),o="_"+n;Object.defineProperties(a,{[o]:{value:a[n],writable:!0},[n]:{enumerable:!0,get(){const l=this[o],u=s[i];return ae(l)?Object.assign({},u,l):J(l,u)},set(l){this[o]=l}}})}apply(t){t.forEach(n=>n(this))}}var We=new jW({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[OW,BW,NW]);function zW(e){return!e||ce(e.size)||ce(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function Kd(e,t,n,r,i){let a=t[i];return a||(a=t[i]=e.measureText(i).width,n.push(i)),a>r&&(r=a),r}function VW(e,t,n,r){r=r||{};let i=r.data=r.data||{},a=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(i=r.data={},a=r.garbageCollect=[],r.font=t),e.save(),e.font=t;let s=0;const o=n.length;let l,u,c,d,f;for(l=0;l<o;l++)if(d=n[l],d!=null&&!Be(d))s=Kd(e,i,a,s,d);else if(Be(d))for(u=0,c=d.length;u<c;u++)f=d[u],f!=null&&!Be(f)&&(s=Kd(e,i,a,s,f));e.restore();const h=a.length/2;if(h>n.length){for(l=0;l<h;l++)delete i[a[l]];a.splice(0,h)}return s}function _i(e,t,n){const r=e.currentDevicePixelRatio,i=n!==0?Math.max(n/2,.5):0;return Math.round((t-i)*r)/r+i}function e6(e,t){!t&&!e||(t=t||e.getContext("2d"),t.save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore())}function qy(e,t,n,r){RT(e,t,n,r,null)}function RT(e,t,n,r,i){let a,s,o,l,u,c,d,f;const h=t.pointStyle,p=t.rotation,g=t.radius;let b=(p||0)*DW;if(h&&typeof h=="object"&&(a=h.toString(),a==="[object HTMLImageElement]"||a==="[object HTMLCanvasElement]")){e.save(),e.translate(n,r),e.rotate(b),e.drawImage(h,-h.width/2,-h.height/2,h.width,h.height),e.restore();return}if(!(isNaN(g)||g<=0)){switch(e.beginPath(),h){default:i?e.ellipse(n,r,i/2,g,0,0,Te):e.arc(n,r,g,0,Te),e.closePath();break;case"triangle":c=i?i/2:g,e.moveTo(n+Math.sin(b)*c,r-Math.cos(b)*g),b+=K5,e.lineTo(n+Math.sin(b)*c,r-Math.cos(b)*g),b+=K5,e.lineTo(n+Math.sin(b)*c,r-Math.cos(b)*g),e.closePath();break;case"rectRounded":u=g*.516,l=g-u,s=Math.cos(b+Di)*l,d=Math.cos(b+Di)*(i?i/2-u:l),o=Math.sin(b+Di)*l,f=Math.sin(b+Di)*(i?i/2-u:l),e.arc(n-d,r-o,u,b-Me,b-qe),e.arc(n+f,r-s,u,b-qe,b),e.arc(n+d,r+o,u,b,b+qe),e.arc(n-f,r+s,u,b+qe,b+Me),e.closePath();break;case"rect":if(!p){l=Math.SQRT1_2*g,c=i?i/2:l,e.rect(n-c,r-l,2*c,2*l);break}b+=Di;case"rectRot":d=Math.cos(b)*(i?i/2:g),s=Math.cos(b)*g,o=Math.sin(b)*g,f=Math.sin(b)*(i?i/2:g),e.moveTo(n-d,r-o),e.lineTo(n+f,r-s),e.lineTo(n+d,r+o),e.lineTo(n-f,r+s),e.closePath();break;case"crossRot":b+=Di;case"cross":d=Math.cos(b)*(i?i/2:g),s=Math.cos(b)*g,o=Math.sin(b)*g,f=Math.sin(b)*(i?i/2:g),e.moveTo(n-d,r-o),e.lineTo(n+d,r+o),e.moveTo(n+f,r-s),e.lineTo(n-f,r+s);break;case"star":d=Math.cos(b)*(i?i/2:g),s=Math.cos(b)*g,o=Math.sin(b)*g,f=Math.sin(b)*(i?i/2:g),e.moveTo(n-d,r-o),e.lineTo(n+d,r+o),e.moveTo(n+f,r-s),e.lineTo(n-f,r+s),b+=Di,d=Math.cos(b)*(i?i/2:g),s=Math.cos(b)*g,o=Math.sin(b)*g,f=Math.sin(b)*(i?i/2:g),e.moveTo(n-d,r-o),e.lineTo(n+d,r+o),e.moveTo(n+f,r-s),e.lineTo(n-f,r+s);break;case"line":s=i?i/2:Math.cos(b)*g,o=Math.sin(b)*g,e.moveTo(n-s,r-o),e.lineTo(n+s,r+o);break;case"dash":e.moveTo(n,r),e.lineTo(n+Math.cos(b)*(i?i/2:g),r+Math.sin(b)*g);break;case!1:e.closePath();break}e.fill(),t.borderWidth>0&&e.stroke()}}function vr(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n}function Wf(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function Uf(e){e.restore()}function WW(e,t,n,r,i){if(!t)return e.lineTo(n.x,n.y);if(i==="middle"){const a=(t.x+n.x)/2;e.lineTo(a,t.y),e.lineTo(a,n.y)}else i==="after"!=!!r?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}function UW(e,t,n,r){if(!t)return e.lineTo(n.x,n.y);e.bezierCurveTo(r?t.cp1x:t.cp2x,r?t.cp1y:t.cp2y,r?n.cp2x:n.cp1x,r?n.cp2y:n.cp1y,n.x,n.y)}function HW(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),ce(t.rotation)||e.rotate(t.rotation),t.color&&(e.fillStyle=t.color),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline)}function KW(e,t,n,r,i){if(i.strikethrough||i.underline){const a=e.measureText(r),s=t-a.actualBoundingBoxLeft,o=t+a.actualBoundingBoxRight,l=n-a.actualBoundingBoxAscent,u=n+a.actualBoundingBoxDescent,c=i.strikethrough?(l+u)/2:u;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=i.decorationWidth||2,e.moveTo(s,c),e.lineTo(o,c),e.stroke()}}function YW(e,t){const n=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=n}function la(e,t,n,r,i,a={}){const s=Be(t)?t:[t],o=a.strokeWidth>0&&a.strokeColor!=="";let l,u;for(e.save(),e.font=i.string,HW(e,a),l=0;l<s.length;++l)u=s[l],a.backdrop&&YW(e,a.backdrop),o&&(a.strokeColor&&(e.strokeStyle=a.strokeColor),ce(a.strokeWidth)||(e.lineWidth=a.strokeWidth),e.strokeText(u,n,r,a.maxWidth)),e.fillText(u,n,r,a.maxWidth),KW(e,n,r,u,a),r+=Number(i.lineHeight);e.restore()}function xl(e,t){const{x:n,y:r,w:i,h:a,radius:s}=t;e.arc(n+s.topLeft,r+s.topLeft,s.topLeft,1.5*Me,Me,!0),e.lineTo(n,r+a-s.bottomLeft),e.arc(n+s.bottomLeft,r+a-s.bottomLeft,s.bottomLeft,Me,qe,!0),e.lineTo(n+i-s.bottomRight,r+a),e.arc(n+i-s.bottomRight,r+a-s.bottomRight,s.bottomRight,qe,0,!0),e.lineTo(n+i,r+s.topRight),e.arc(n+i-s.topRight,r+s.topRight,s.topRight,0,-qe,!0),e.lineTo(n+s.topLeft,r)}const qW=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,GW=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function ZW(e,t){const n=(""+e).match(qW);if(!n||n[1]==="normal")return t*1.2;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100;break}return t*e}const XW=e=>+e||0;function j$(e,t){const n={},r=ae(t),i=r?Object.keys(t):t,a=ae(e)?r?s=>J(e[s],e[t[s]]):s=>e[s]:()=>e;for(const s of i)n[s]=XW(a(s));return n}function MT(e){return j$(e,{top:"y",right:"x",bottom:"y",left:"x"})}function Gi(e){return j$(e,["topLeft","topRight","bottomLeft","bottomRight"])}function Pt(e){const t=MT(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function it(e,t){e=e||{},t=t||We.font;let n=J(e.size,t.size);typeof n=="string"&&(n=parseInt(n,10));let r=J(e.style,t.style);r&&!(""+r).match(GW)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const i={family:J(e.family,t.family),lineHeight:ZW(J(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:J(e.weight,t.weight),string:""};return i.string=zW(i),i}function bo(e,t,n,r){let i,a,s;for(i=0,a=e.length;i<a;++i)if(s=e[i],s!==void 0&&s!==void 0)return s}function QW(e,t,n){const{min:r,max:i}=e,a=$T(t,(i-r)/2),s=(o,l)=>n&&o===0?0:o+l;return{min:s(r,-Math.abs(a)),max:s(i,a)}}function bi(e,t){return Object.assign(Object.create(e),t)}function z$(e,t=[""],n,r,i=()=>e[0]){const a=n||e;typeof r>"u"&&(r=BT("_fallback",e));const s={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:a,_fallback:r,_getTarget:i,override:o=>z$([o,...e],t,a,r)};return new Proxy(s,{deleteProperty(o,l){return delete o[l],delete o._keys,delete e[0][l],!0},get(o,l){return AT(o,l,()=>sU(l,t,e,o))},getOwnPropertyDescriptor(o,l){return Reflect.getOwnPropertyDescriptor(o._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(o,l){return n6(o).includes(l)},ownKeys(o){return n6(o)},set(o,l,u){const c=o._storage||(o._storage=i());return o[l]=c[l]=u,delete o._keys,!0}})}function Ds(e,t,n,r){const i={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:FT(e,r),setContext:a=>Ds(e,a,n,r),override:a=>Ds(e.override(a),t,n,r)};return new Proxy(i,{deleteProperty(a,s){return delete a[s],delete e[s],!0},get(a,s,o){return AT(a,s,()=>eU(a,s,o))},getOwnPropertyDescriptor(a,s){return a._descriptors.allKeys?Reflect.has(e,s)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,s)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(a,s){return Reflect.has(e,s)},ownKeys(){return Reflect.ownKeys(e)},set(a,s,o){return e[s]=o,delete a[s],!0}})}function FT(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:r=t.indexable,_allKeys:i=t.allKeys}=e;return{allKeys:i,scriptable:n,indexable:r,isScriptable:di(n)?n:()=>n,isIndexable:di(r)?r:()=>r}}const JW=(e,t)=>e?e+O$(t):t,V$=(e,t)=>ae(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function AT(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t)||t==="constructor")return e[t];const r=n();return e[t]=r,r}function eU(e,t,n){const{_proxy:r,_context:i,_subProxy:a,_descriptors:s}=e;let o=r[t];return di(o)&&s.isScriptable(t)&&(o=tU(t,o,e,n)),Be(o)&&o.length&&(o=nU(t,o,e,s.isIndexable)),V$(t,o)&&(o=Ds(o,i,a&&a[t],s)),o}function tU(e,t,n,r){const{_proxy:i,_context:a,_subProxy:s,_stack:o}=n;if(o.has(e))throw new Error("Recursion detected: "+Array.from(o).join("->")+"->"+e);o.add(e);let l=t(a,s||r);return o.delete(e),V$(e,l)&&(l=W$(i._scopes,i,e,l)),l}function nU(e,t,n,r){const{_proxy:i,_context:a,_subProxy:s,_descriptors:o}=n;if(typeof a.index<"u"&&r(e))return t[a.index%t.length];if(ae(t[0])){const l=t,u=i._scopes.filter(c=>c!==l);t=[];for(const c of l){const d=W$(u,i,e,c);t.push(Ds(d,a,s&&s[e],o))}}return t}function OT(e,t,n){return di(e)?e(t,n):e}const rU=(e,t)=>e===!0?t:typeof e=="string"?ci(t,e):void 0;function iU(e,t,n,r,i){for(const a of t){const s=rU(n,a);if(s){e.add(s);const o=OT(s._fallback,n,i);if(typeof o<"u"&&o!==n&&o!==r)return o}else if(s===!1&&typeof r<"u"&&n!==r)return null}return!1}function W$(e,t,n,r){const i=t._rootScopes,a=OT(t._fallback,n,r),s=[...e,...i],o=new Set;o.add(r);let l=t6(o,s,n,a||n,r);return l===null||typeof a<"u"&&a!==n&&(l=t6(o,s,a,l,r),l===null)?!1:z$(Array.from(o),[""],i,a,()=>aU(t,n,r))}function t6(e,t,n,r,i){for(;n;)n=iU(e,t,n,r,i);return n}function aU(e,t,n){const r=e._getTarget();t in r||(r[t]={});const i=r[t];return Be(i)&&ae(n)?n:i||{}}function sU(e,t,n,r){let i;for(const a of t)if(i=BT(JW(a,e),n),typeof i<"u")return V$(e,i)?W$(n,r,e,i):i}function BT(e,t){for(const n of t){if(!n)continue;const r=n[e];if(typeof r<"u")return r}}function n6(e){let t=e._keys;return t||(t=e._keys=oU(e._scopes)),t}function oU(e){const t=new Set;for(const n of e)for(const r of Object.keys(n).filter(i=>!i.startsWith("_")))t.add(r);return Array.from(t)}function IT(e,t,n,r){const{iScale:i}=e,{key:a="r"}=this._parsing,s=new Array(r);let o,l,u,c;for(o=0,l=r;o<l;++o)u=o+n,c=t[u],s[o]={r:i.parse(ci(c,a),u)};return s}const lU=Number.EPSILON||1e-14,_s=(e,t)=>t<e.length&&!e[t].skip&&e[t],LT=e=>e==="x"?"y":"x";function uU(e,t,n,r){const i=e.skip?t:e,a=t,s=n.skip?t:n,o=Ky(a,i),l=Ky(s,a);let u=o/(o+l),c=l/(o+l);u=isNaN(u)?0:u,c=isNaN(c)?0:c;const d=r*u,f=r*c;return{previous:{x:a.x-d*(s.x-i.x),y:a.y-d*(s.y-i.y)},next:{x:a.x+f*(s.x-i.x),y:a.y+f*(s.y-i.y)}}}function cU(e,t,n){const r=e.length;let i,a,s,o,l,u=_s(e,0);for(let c=0;c<r-1;++c)if(l=u,u=_s(e,c+1),!(!l||!u)){if(Lo(t[c],0,lU)){n[c]=n[c+1]=0;continue}i=n[c]/t[c],a=n[c+1]/t[c],o=Math.pow(i,2)+Math.pow(a,2),!(o<=9)&&(s=3/Math.sqrt(o),n[c]=i*s*t[c],n[c+1]=a*s*t[c])}}function dU(e,t,n="x"){const r=LT(n),i=e.length;let a,s,o,l=_s(e,0);for(let u=0;u<i;++u){if(s=o,o=l,l=_s(e,u+1),!o)continue;const c=o[n],d=o[r];s&&(a=(c-s[n])/3,o[`cp1${n}`]=c-a,o[`cp1${r}`]=d-a*t[u]),l&&(a=(l[n]-c)/3,o[`cp2${n}`]=c+a,o[`cp2${r}`]=d+a*t[u])}}function fU(e,t="x"){const n=LT(t),r=e.length,i=Array(r).fill(0),a=Array(r);let s,o,l,u=_s(e,0);for(s=0;s<r;++s)if(o=l,l=u,u=_s(e,s+1),!!l){if(u){const c=u[t]-l[t];i[s]=c!==0?(u[n]-l[n])/c:0}a[s]=o?u?Zn(i[s-1])!==Zn(i[s])?0:(i[s-1]+i[s])/2:i[s-1]:i[s]}cU(e,i,a),dU(e,a,t)}function Fu(e,t,n){return Math.max(Math.min(e,n),t)}function hU(e,t){let n,r,i,a,s,o=vr(e[0],t);for(n=0,r=e.length;n<r;++n)s=a,a=o,o=n<r-1&&vr(e[n+1],t),a&&(i=e[n],s&&(i.cp1x=Fu(i.cp1x,t.left,t.right),i.cp1y=Fu(i.cp1y,t.top,t.bottom)),o&&(i.cp2x=Fu(i.cp2x,t.left,t.right),i.cp2y=Fu(i.cp2y,t.top,t.bottom)))}function pU(e,t,n,r,i){let a,s,o,l;if(t.spanGaps&&(e=e.filter(u=>!u.skip)),t.cubicInterpolationMode==="monotone")fU(e,i);else{let u=r?e[e.length-1]:e[0];for(a=0,s=e.length;a<s;++a)o=e[a],l=uU(u,o,e[Math.min(a+1,s-(r?0:1))%s],t.tension),o.cp1x=l.previous.x,o.cp1y=l.previous.y,o.cp2x=l.next.x,o.cp2y=l.next.y,u=o}t.capBezierPoints&&hU(e,n)}function U$(){return typeof window<"u"&&typeof document<"u"}function H$(e){let t=e.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function Yd(e,t,n){let r;return typeof e=="string"?(r=parseInt(e,10),e.indexOf("%")!==-1&&(r=r/100*t.parentNode[n])):r=e,r}const Hf=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);function mU(e,t){return Hf(e).getPropertyValue(t)}const gU=["top","right","bottom","left"];function Zi(e,t,n){const r={};n=n?"-"+n:"";for(let i=0;i<4;i++){const a=gU[i];r[a]=parseFloat(e[t+"-"+a+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const vU=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function bU(e,t){const n=e.touches,r=n&&n.length?n[0]:e,{offsetX:i,offsetY:a}=r;let s=!1,o,l;if(vU(i,a,e.target))o=i,l=a;else{const u=t.getBoundingClientRect();o=r.clientX-u.left,l=r.clientY-u.top,s=!0}return{x:o,y:l,box:s}}function Fi(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:r}=t,i=Hf(n),a=i.boxSizing==="border-box",s=Zi(i,"padding"),o=Zi(i,"border","width"),{x:l,y:u,box:c}=bU(e,n),d=s.left+(c&&o.left),f=s.top+(c&&o.top);let{width:h,height:p}=t;return a&&(h-=s.width+o.width,p-=s.height+o.height),{x:Math.round((l-d)/h*n.width/r),y:Math.round((u-f)/p*n.height/r)}}function yU(e,t,n){let r,i;if(t===void 0||n===void 0){const a=e&&H$(e);if(!a)t=e.clientWidth,n=e.clientHeight;else{const s=a.getBoundingClientRect(),o=Hf(a),l=Zi(o,"border","width"),u=Zi(o,"padding");t=s.width-u.width-l.width,n=s.height-u.height-l.height,r=Yd(o.maxWidth,a,"clientWidth"),i=Yd(o.maxHeight,a,"clientHeight")}}return{width:t,height:n,maxWidth:r||Hd,maxHeight:i||Hd}}const Au=e=>Math.round(e*10)/10;function $U(e,t,n,r){const i=Hf(e),a=Zi(i,"margin"),s=Yd(i.maxWidth,e,"clientWidth")||Hd,o=Yd(i.maxHeight,e,"clientHeight")||Hd,l=yU(e,t,n);let{width:u,height:c}=l;if(i.boxSizing==="content-box"){const f=Zi(i,"border","width"),h=Zi(i,"padding");u-=h.width+f.width,c-=h.height+f.height}return u=Math.max(0,u-a.width),c=Math.max(0,r?u/r:c-a.height),u=Au(Math.min(u,s,l.maxWidth)),c=Au(Math.min(c,o,l.maxHeight)),u&&!c&&(c=Au(u/2)),(t!==void 0||n!==void 0)&&r&&l.height&&c>l.height&&(c=l.height,u=Au(Math.floor(c*r))),{width:u,height:c}}function r6(e,t,n){const r=t||1,i=Math.floor(e.height*r),a=Math.floor(e.width*r);e.height=Math.floor(e.height),e.width=Math.floor(e.width);const s=e.canvas;return s.style&&(n||!s.style.height&&!s.style.width)&&(s.style.height=`${e.height}px`,s.style.width=`${e.width}px`),e.currentDevicePixelRatio!==r||s.height!==i||s.width!==a?(e.currentDevicePixelRatio=r,s.height=i,s.width=a,e.ctx.setTransform(r,0,0,r,0,0),!0):!1}const xU=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};U$()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch{}return e}();function i6(e,t){const n=mU(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function Ai(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function wU(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:r==="middle"?n<.5?e.y:t.y:r==="after"?n<1?e.y:t.y:n>0?t.y:e.y}}function DU(e,t,n,r){const i={x:e.cp2x,y:e.cp2y},a={x:t.cp1x,y:t.cp1y},s=Ai(e,i,n),o=Ai(i,a,n),l=Ai(a,t,n),u=Ai(s,o,n),c=Ai(o,l,n);return Ai(u,c,n)}const _U=function(e,t){return{x(n){return e+e+t-n},setWidth(n){t=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,r){return n-r},leftForLtr(n,r){return n-r}}},EU=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function ls(e,t,n){return e?_U(t,n):EU()}function NT(e,t){let n,r;(t==="ltr"||t==="rtl")&&(n=e.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)}function jT(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function zT(e){return e==="angle"?{between:$l,compare:SW,normalize:nn}:{between:mr,compare:(t,n)=>t-n,normalize:t=>t}}function a6({start:e,end:t,count:n,loop:r,style:i}){return{start:e%n,end:t%n,loop:r&&(t-e+1)%n===0,style:i}}function SU(e,t,n){const{property:r,start:i,end:a}=n,{between:s,normalize:o}=zT(r),l=t.length;let{start:u,end:c,loop:d}=e,f,h;if(d){for(u+=l,c+=l,f=0,h=l;f<h&&s(o(t[u%l][r]),i,a);++f)u--,c--;u%=l,c%=l}return c<u&&(c+=l),{start:u,end:c,loop:d,style:e.style}}function VT(e,t,n){if(!n)return[e];const{property:r,start:i,end:a}=n,s=t.length,{compare:o,between:l,normalize:u}=zT(r),{start:c,end:d,loop:f,style:h}=SU(e,t,n),p=[];let g=!1,b=null,v,m,$;const w=()=>l(i,$,v)&&o(i,$)!==0,D=()=>o(a,v)===0||l(a,$,v),S=()=>g||w(),k=()=>!g||D();for(let x=c,T=c;x<=d;++x)m=t[x%s],!m.skip&&(v=u(m[r]),v!==$&&(g=l(v,i,a),b===null&&S()&&(b=o(v,i)===0?x:T),b!==null&&k()&&(p.push(a6({start:b,end:x,loop:f,count:s,style:h})),b=null),T=x,$=v));return b!==null&&p.push(a6({start:b,end:d,loop:f,count:s,style:h})),p}function WT(e,t){const n=[],r=e.segments;for(let i=0;i<r.length;i++){const a=VT(r[i],e.points,t);a.length&&n.push(...a)}return n}function CU(e,t,n,r){let i=0,a=t-1;if(n&&!r)for(;i<t&&!e[i].skip;)i++;for(;i<t&&e[i].skip;)i++;for(i%=t,n&&(a+=i);a>i&&e[a%t].skip;)a--;return a%=t,{start:i,end:a}}function kU(e,t,n,r){const i=e.length,a=[];let s=t,o=e[t],l;for(l=t+1;l<=n;++l){const u=e[l%i];u.skip||u.stop?o.skip||(r=!1,a.push({start:t%i,end:(l-1)%i,loop:r}),t=s=u.stop?l:null):(s=l,o.skip&&(t=l)),o=u}return s!==null&&a.push({start:t%i,end:s%i,loop:r}),a}function PU(e,t){const n=e.points,r=e.options.spanGaps,i=n.length;if(!i)return[];const a=!!e._loop,{start:s,end:o}=CU(n,i,a,r);if(r===!0)return s6(e,[{start:s,end:o,loop:a}],n,t);const l=o<s?o+i:o,u=!!e._fullLoop&&s===0&&o===i-1;return s6(e,kU(n,s,l,u),n,t)}function s6(e,t,n,r){return!r||!r.setContext||!n?t:TU(e,t,n,r)}function TU(e,t,n,r){const i=e._chart.getContext(),a=o6(e.options),{_datasetIndex:s,options:{spanGaps:o}}=e,l=n.length,u=[];let c=a,d=t[0].start,f=d;function h(p,g,b,v){const m=o?-1:1;if(p!==g){for(p+=l;n[p%l].skip;)p-=m;for(;n[g%l].skip;)g+=m;p%l!==g%l&&(u.push({start:p%l,end:g%l,loop:b,style:v}),c=v,d=g%l)}}for(const p of t){d=o?d:p.start;let g=n[d%l],b;for(f=d+1;f<=p.end;f++){const v=n[f%l];b=o6(r.setContext(bi(i,{type:"segment",p0:g,p1:v,p0DataIndex:(f-1)%l,p1DataIndex:f%l,datasetIndex:s}))),RU(b,c)&&h(d,f-1,p.loop,c),g=v,c=b}d<f-1&&h(d,f-1,p.loop,c)}return u}function o6(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function RU(e,t){if(!t)return!1;const n=[],r=function(i,a){return N$(a)?(n.includes(a)||n.push(a),n.indexOf(a)):a};return JSON.stringify(e,r)!==JSON.stringify(t,r)}/*!
+ */function ir(){}const gW=(()=>{let e=0;return()=>e++})();function ce(e){return e===null||typeof e>"u"}function Be(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function ae(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function Ve(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function en(e,t){return Ve(e)?e:t}function J(e,t){return typeof e>"u"?t:e}const vW=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100:+e/t,$T=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function De(e,t,n){if(e&&typeof e.call=="function")return e.apply(n,t)}function me(e,t,n,r){let i,a,s;if(Be(e))for(a=e.length,i=0;i<a;i++)t.call(n,e[i],i);else if(ae(e))for(s=Object.keys(e),a=s.length,i=0;i<a;i++)t.call(n,e[s[i]],s[i])}function Wd(e,t){let n,r,i,a;if(!e||!t||e.length!==t.length)return!1;for(n=0,r=e.length;n<r;++n)if(i=e[n],a=t[n],i.datasetIndex!==a.datasetIndex||i.index!==a.index)return!1;return!0}function Ud(e){if(Be(e))return e.map(Ud);if(ae(e)){const t=Object.create(null),n=Object.keys(e),r=n.length;let i=0;for(;i<r;++i)t[n[i]]=Ud(e[n[i]]);return t}return e}function xT(e){return["__proto__","prototype","constructor"].indexOf(e)===-1}function bW(e,t,n,r){if(!xT(e))return;const i=t[e],a=n[e];ae(i)&&ae(a)?bl(i,a,r):t[e]=Ud(a)}function bl(e,t,n){const r=Be(t)?t:[t],i=r.length;if(!ae(e))return e;n=n||{};const a=n.merger||bW;let s;for(let o=0;o<i;++o){if(s=r[o],!ae(s))continue;const l=Object.keys(s);for(let u=0,c=l.length;u<c;++u)a(l[u],e,s,n)}return e}function Io(e,t){return bl(e,t,{merger:yW})}function yW(e,t,n){if(!xT(e))return;const r=t[e],i=n[e];ae(r)&&ae(i)?Io(r,i):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=Ud(i))}const U5={"":e=>e,x:e=>e.x,y:e=>e.y};function $W(e){const t=e.split("."),n=[];let r="";for(const i of t)r+=i,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}function xW(e){const t=$W(e);return n=>{for(const r of t){if(r==="")break;n=n&&n[r]}return n}}function ci(e,t){return(U5[t]||(U5[t]=xW(t)))(e)}function O$(e){return e.charAt(0).toUpperCase()+e.slice(1)}const yl=e=>typeof e<"u",di=e=>typeof e=="function",H5=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function wW(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const Me=Math.PI,Te=2*Me,DW=Te+Me,Hd=Number.POSITIVE_INFINITY,_W=Me/180,qe=Me/2,Di=Me/4,K5=Me*2/3,Yr=Math.log10,Zn=Math.sign;function Lo(e,t,n){return Math.abs(e-t)<n}function Y5(e){const t=Math.round(e);e=Lo(e,t,e/1e3)?t:e;const n=Math.pow(10,Math.floor(Yr(e))),r=e/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function EW(e){const t=[],n=Math.sqrt(e);let r;for(r=1;r<n;r++)e%r===0&&(t.push(r),t.push(e/r));return n===(n|0)&&t.push(n),t.sort((i,a)=>i-a).pop(),t}function ws(e){return!isNaN(parseFloat(e))&&isFinite(e)}function SW(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}function wT(e,t,n){let r,i,a;for(r=0,i=e.length;r<i;r++)a=e[r][n],isNaN(a)||(t.min=Math.min(t.min,a),t.max=Math.max(t.max,a))}function An(e){return e*(Me/180)}function B$(e){return e*(180/Me)}function q5(e){if(!Ve(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function DT(e,t){const n=t.x-e.x,r=t.y-e.y,i=Math.sqrt(n*n+r*r);let a=Math.atan2(r,n);return a<-.5*Me&&(a+=Te),{angle:a,distance:i}}function Ky(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function CW(e,t){return(e-t+DW)%Te-Me}function nn(e){return(e%Te+Te)%Te}function $l(e,t,n,r){const i=nn(e),a=nn(t),s=nn(n),o=nn(a-i),l=nn(s-i),u=nn(i-a),c=nn(i-s);return i===a||i===s||r&&a===s||o>l&&u<c}function dt(e,t,n){return Math.max(t,Math.min(n,e))}function kW(e){return dt(e,-32768,32767)}function mr(e,t,n,r=1e-6){return e>=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function I$(e,t,n){n=n||(s=>e[s]<t);let r=e.length-1,i=0,a;for(;r-i>1;)a=i+r>>1,n(a)?i=a:r=a;return{lo:i,hi:r}}const gr=(e,t,n,r)=>I$(e,n,r?i=>{const a=e[i][t];return a<n||a===n&&e[i+1][t]===n}:i=>e[i][t]<n),PW=(e,t,n)=>I$(e,n,r=>e[r][t]>=n);function TW(e,t,n){let r=0,i=e.length;for(;r<i&&e[r]<t;)r++;for(;i>r&&e[i-1]>n;)i--;return r>0||i<e.length?e.slice(r,i):e}const _T=["push","pop","shift","splice","unshift"];function RW(e,t){if(e._chartjs){e._chartjs.listeners.push(t);return}Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),_T.forEach(n=>{const r="_onData"+O$(n),i=e[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value(...a){const s=i.apply(this,a);return e._chartjs.listeners.forEach(o=>{typeof o[r]=="function"&&o[r](...a)}),s}})})}function G5(e,t){const n=e._chartjs;if(!n)return;const r=n.listeners,i=r.indexOf(t);i!==-1&&r.splice(i,1),!(r.length>0)&&(_T.forEach(a=>{delete e[a]}),delete e._chartjs)}function ET(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const ST=function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame}();function CT(e,t){let n=[],r=!1;return function(...i){n=i,r||(r=!0,ST.call(window,()=>{r=!1,e.apply(t,n)}))}}function MW(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}const L$=e=>e==="start"?"left":e==="end"?"right":"center",Dt=(e,t,n)=>e==="start"?t:e==="end"?n:(t+n)/2,FW=(e,t,n,r)=>e===(r?"left":"right")?n:e==="center"?(t+n)/2:t;function kT(e,t,n){const r=t.length;let i=0,a=r;if(e._sorted){const{iScale:s,_parsed:o}=e,l=s.axis,{min:u,max:c,minDefined:d,maxDefined:f}=s.getUserBounds();d&&(i=dt(Math.min(gr(o,l,u).lo,n?r:gr(t,l,s.getPixelForValue(u)).lo),0,r-1)),f?a=dt(Math.max(gr(o,s.axis,c,!0).hi+1,n?0:gr(t,l,s.getPixelForValue(c),!0).hi+1),i,r)-i:a=r-i}return{start:i,count:a}}function PT(e){const{xScale:t,yScale:n,_scaleRanges:r}=e,i={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!r)return e._scaleRanges=i,!0;const a=r.xmin!==t.min||r.xmax!==t.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,i),a}const Mu=e=>e===0||e===1,Z5=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*Te/n)),X5=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*Te/n)+1,No={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*qe)+1,easeOutSine:e=>Math.sin(e*qe),easeInOutSine:e=>-.5*(Math.cos(Me*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>Mu(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>Mu(e)?e:Z5(e,.075,.3),easeOutElastic:e=>Mu(e)?e:X5(e,.075,.3),easeInOutElastic(e){return Mu(e)?e:e<.5?.5*Z5(e*2,.1125,.45):.5+.5*X5(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-No.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?No.easeInBounce(e*2)*.5:No.easeOutBounce(e*2-1)*.5+.5};function N$(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function Q5(e){return N$(e)?e:new vl(e)}function dp(e){return N$(e)?e:new vl(e).saturate(.5).darken(.1).hexString()}const AW=["x","y","borderWidth","radius","tension"],OW=["color","borderColor","backgroundColor"];function BW(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),e.set("animations",{colors:{type:"color",properties:OW},numbers:{type:"number",properties:AW}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>t|0}}}})}function IW(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const J5=new Map;function LW(e,t){t=t||{};const n=e+JSON.stringify(t);let r=J5.get(n);return r||(r=new Intl.NumberFormat(e,t),J5.set(n,r)),r}function Ul(e,t,n){return LW(t,n).format(e)}const TT={values(e){return Be(e)?e:""+e},numeric(e,t,n){if(e===0)return"0";const r=this.chart.options.locale;let i,a=e;if(n.length>1){const u=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(u<1e-4||u>1e15)&&(i="scientific"),a=NW(e,n)}const s=Yr(Math.abs(a)),o=isNaN(s)?1:Math.max(Math.min(-1*Math.floor(s),20),0),l={notation:i,minimumFractionDigits:o,maximumFractionDigits:o};return Object.assign(l,this.options.ticks.format),Ul(e,r,l)},logarithmic(e,t,n){if(e===0)return"0";const r=n[t].significand||e/Math.pow(10,Math.floor(Yr(e)));return[1,2,3,5,10,15].includes(r)||t>.8*n.length?TT.numeric.call(this,e,t,n):""}};function NW(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}var Vf={formatters:TT};function jW(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,n)=>n.lineWidth,tickColor:(t,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Vf.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const oa=Object.create(null),Yy=Object.create(null);function jo(e,t){if(!t)return e;const n=t.split(".");for(let r=0,i=n.length;r<i;++r){const a=n[r];e=e[a]||(e[a]=Object.create(null))}return e}function fp(e,t,n){return typeof t=="string"?bl(jo(e,t),n):bl(jo(e,""),t)}class zW{constructor(t,n){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=r=>r.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(r,i)=>dp(i.backgroundColor),this.hoverBorderColor=(r,i)=>dp(i.borderColor),this.hoverColor=(r,i)=>dp(i.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(n)}set(t,n){return fp(this,t,n)}get(t){return jo(this,t)}describe(t,n){return fp(Yy,t,n)}override(t,n){return fp(oa,t,n)}route(t,n,r,i){const a=jo(this,t),s=jo(this,r),o="_"+n;Object.defineProperties(a,{[o]:{value:a[n],writable:!0},[n]:{enumerable:!0,get(){const l=this[o],u=s[i];return ae(l)?Object.assign({},u,l):J(l,u)},set(l){this[o]=l}}})}apply(t){t.forEach(n=>n(this))}}var We=new zW({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[BW,IW,jW]);function VW(e){return!e||ce(e.size)||ce(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function Kd(e,t,n,r,i){let a=t[i];return a||(a=t[i]=e.measureText(i).width,n.push(i)),a>r&&(r=a),r}function WW(e,t,n,r){r=r||{};let i=r.data=r.data||{},a=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(i=r.data={},a=r.garbageCollect=[],r.font=t),e.save(),e.font=t;let s=0;const o=n.length;let l,u,c,d,f;for(l=0;l<o;l++)if(d=n[l],d!=null&&!Be(d))s=Kd(e,i,a,s,d);else if(Be(d))for(u=0,c=d.length;u<c;u++)f=d[u],f!=null&&!Be(f)&&(s=Kd(e,i,a,s,f));e.restore();const h=a.length/2;if(h>n.length){for(l=0;l<h;l++)delete i[a[l]];a.splice(0,h)}return s}function _i(e,t,n){const r=e.currentDevicePixelRatio,i=n!==0?Math.max(n/2,.5):0;return Math.round((t-i)*r)/r+i}function e6(e,t){!t&&!e||(t=t||e.getContext("2d"),t.save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore())}function qy(e,t,n,r){RT(e,t,n,r,null)}function RT(e,t,n,r,i){let a,s,o,l,u,c,d,f;const h=t.pointStyle,p=t.rotation,g=t.radius;let b=(p||0)*_W;if(h&&typeof h=="object"&&(a=h.toString(),a==="[object HTMLImageElement]"||a==="[object HTMLCanvasElement]")){e.save(),e.translate(n,r),e.rotate(b),e.drawImage(h,-h.width/2,-h.height/2,h.width,h.height),e.restore();return}if(!(isNaN(g)||g<=0)){switch(e.beginPath(),h){default:i?e.ellipse(n,r,i/2,g,0,0,Te):e.arc(n,r,g,0,Te),e.closePath();break;case"triangle":c=i?i/2:g,e.moveTo(n+Math.sin(b)*c,r-Math.cos(b)*g),b+=K5,e.lineTo(n+Math.sin(b)*c,r-Math.cos(b)*g),b+=K5,e.lineTo(n+Math.sin(b)*c,r-Math.cos(b)*g),e.closePath();break;case"rectRounded":u=g*.516,l=g-u,s=Math.cos(b+Di)*l,d=Math.cos(b+Di)*(i?i/2-u:l),o=Math.sin(b+Di)*l,f=Math.sin(b+Di)*(i?i/2-u:l),e.arc(n-d,r-o,u,b-Me,b-qe),e.arc(n+f,r-s,u,b-qe,b),e.arc(n+d,r+o,u,b,b+qe),e.arc(n-f,r+s,u,b+qe,b+Me),e.closePath();break;case"rect":if(!p){l=Math.SQRT1_2*g,c=i?i/2:l,e.rect(n-c,r-l,2*c,2*l);break}b+=Di;case"rectRot":d=Math.cos(b)*(i?i/2:g),s=Math.cos(b)*g,o=Math.sin(b)*g,f=Math.sin(b)*(i?i/2:g),e.moveTo(n-d,r-o),e.lineTo(n+f,r-s),e.lineTo(n+d,r+o),e.lineTo(n-f,r+s),e.closePath();break;case"crossRot":b+=Di;case"cross":d=Math.cos(b)*(i?i/2:g),s=Math.cos(b)*g,o=Math.sin(b)*g,f=Math.sin(b)*(i?i/2:g),e.moveTo(n-d,r-o),e.lineTo(n+d,r+o),e.moveTo(n+f,r-s),e.lineTo(n-f,r+s);break;case"star":d=Math.cos(b)*(i?i/2:g),s=Math.cos(b)*g,o=Math.sin(b)*g,f=Math.sin(b)*(i?i/2:g),e.moveTo(n-d,r-o),e.lineTo(n+d,r+o),e.moveTo(n+f,r-s),e.lineTo(n-f,r+s),b+=Di,d=Math.cos(b)*(i?i/2:g),s=Math.cos(b)*g,o=Math.sin(b)*g,f=Math.sin(b)*(i?i/2:g),e.moveTo(n-d,r-o),e.lineTo(n+d,r+o),e.moveTo(n+f,r-s),e.lineTo(n-f,r+s);break;case"line":s=i?i/2:Math.cos(b)*g,o=Math.sin(b)*g,e.moveTo(n-s,r-o),e.lineTo(n+s,r+o);break;case"dash":e.moveTo(n,r),e.lineTo(n+Math.cos(b)*(i?i/2:g),r+Math.sin(b)*g);break;case!1:e.closePath();break}e.fill(),t.borderWidth>0&&e.stroke()}}function vr(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n}function Wf(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function Uf(e){e.restore()}function UW(e,t,n,r,i){if(!t)return e.lineTo(n.x,n.y);if(i==="middle"){const a=(t.x+n.x)/2;e.lineTo(a,t.y),e.lineTo(a,n.y)}else i==="after"!=!!r?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}function HW(e,t,n,r){if(!t)return e.lineTo(n.x,n.y);e.bezierCurveTo(r?t.cp1x:t.cp2x,r?t.cp1y:t.cp2y,r?n.cp2x:n.cp1x,r?n.cp2y:n.cp1y,n.x,n.y)}function KW(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),ce(t.rotation)||e.rotate(t.rotation),t.color&&(e.fillStyle=t.color),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline)}function YW(e,t,n,r,i){if(i.strikethrough||i.underline){const a=e.measureText(r),s=t-a.actualBoundingBoxLeft,o=t+a.actualBoundingBoxRight,l=n-a.actualBoundingBoxAscent,u=n+a.actualBoundingBoxDescent,c=i.strikethrough?(l+u)/2:u;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=i.decorationWidth||2,e.moveTo(s,c),e.lineTo(o,c),e.stroke()}}function qW(e,t){const n=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=n}function la(e,t,n,r,i,a={}){const s=Be(t)?t:[t],o=a.strokeWidth>0&&a.strokeColor!=="";let l,u;for(e.save(),e.font=i.string,KW(e,a),l=0;l<s.length;++l)u=s[l],a.backdrop&&qW(e,a.backdrop),o&&(a.strokeColor&&(e.strokeStyle=a.strokeColor),ce(a.strokeWidth)||(e.lineWidth=a.strokeWidth),e.strokeText(u,n,r,a.maxWidth)),e.fillText(u,n,r,a.maxWidth),YW(e,n,r,u,a),r+=Number(i.lineHeight);e.restore()}function xl(e,t){const{x:n,y:r,w:i,h:a,radius:s}=t;e.arc(n+s.topLeft,r+s.topLeft,s.topLeft,1.5*Me,Me,!0),e.lineTo(n,r+a-s.bottomLeft),e.arc(n+s.bottomLeft,r+a-s.bottomLeft,s.bottomLeft,Me,qe,!0),e.lineTo(n+i-s.bottomRight,r+a),e.arc(n+i-s.bottomRight,r+a-s.bottomRight,s.bottomRight,qe,0,!0),e.lineTo(n+i,r+s.topRight),e.arc(n+i-s.topRight,r+s.topRight,s.topRight,0,-qe,!0),e.lineTo(n+s.topLeft,r)}const GW=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,ZW=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function XW(e,t){const n=(""+e).match(GW);if(!n||n[1]==="normal")return t*1.2;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100;break}return t*e}const QW=e=>+e||0;function j$(e,t){const n={},r=ae(t),i=r?Object.keys(t):t,a=ae(e)?r?s=>J(e[s],e[t[s]]):s=>e[s]:()=>e;for(const s of i)n[s]=QW(a(s));return n}function MT(e){return j$(e,{top:"y",right:"x",bottom:"y",left:"x"})}function Gi(e){return j$(e,["topLeft","topRight","bottomLeft","bottomRight"])}function Pt(e){const t=MT(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function it(e,t){e=e||{},t=t||We.font;let n=J(e.size,t.size);typeof n=="string"&&(n=parseInt(n,10));let r=J(e.style,t.style);r&&!(""+r).match(ZW)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const i={family:J(e.family,t.family),lineHeight:XW(J(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:J(e.weight,t.weight),string:""};return i.string=VW(i),i}function bo(e,t,n,r){let i,a,s;for(i=0,a=e.length;i<a;++i)if(s=e[i],s!==void 0&&s!==void 0)return s}function JW(e,t,n){const{min:r,max:i}=e,a=$T(t,(i-r)/2),s=(o,l)=>n&&o===0?0:o+l;return{min:s(r,-Math.abs(a)),max:s(i,a)}}function bi(e,t){return Object.assign(Object.create(e),t)}function z$(e,t=[""],n,r,i=()=>e[0]){const a=n||e;typeof r>"u"&&(r=BT("_fallback",e));const s={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:a,_fallback:r,_getTarget:i,override:o=>z$([o,...e],t,a,r)};return new Proxy(s,{deleteProperty(o,l){return delete o[l],delete o._keys,delete e[0][l],!0},get(o,l){return AT(o,l,()=>oU(l,t,e,o))},getOwnPropertyDescriptor(o,l){return Reflect.getOwnPropertyDescriptor(o._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(o,l){return n6(o).includes(l)},ownKeys(o){return n6(o)},set(o,l,u){const c=o._storage||(o._storage=i());return o[l]=c[l]=u,delete o._keys,!0}})}function Ds(e,t,n,r){const i={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:FT(e,r),setContext:a=>Ds(e,a,n,r),override:a=>Ds(e.override(a),t,n,r)};return new Proxy(i,{deleteProperty(a,s){return delete a[s],delete e[s],!0},get(a,s,o){return AT(a,s,()=>tU(a,s,o))},getOwnPropertyDescriptor(a,s){return a._descriptors.allKeys?Reflect.has(e,s)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,s)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(a,s){return Reflect.has(e,s)},ownKeys(){return Reflect.ownKeys(e)},set(a,s,o){return e[s]=o,delete a[s],!0}})}function FT(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:r=t.indexable,_allKeys:i=t.allKeys}=e;return{allKeys:i,scriptable:n,indexable:r,isScriptable:di(n)?n:()=>n,isIndexable:di(r)?r:()=>r}}const eU=(e,t)=>e?e+O$(t):t,V$=(e,t)=>ae(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function AT(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t)||t==="constructor")return e[t];const r=n();return e[t]=r,r}function tU(e,t,n){const{_proxy:r,_context:i,_subProxy:a,_descriptors:s}=e;let o=r[t];return di(o)&&s.isScriptable(t)&&(o=nU(t,o,e,n)),Be(o)&&o.length&&(o=rU(t,o,e,s.isIndexable)),V$(t,o)&&(o=Ds(o,i,a&&a[t],s)),o}function nU(e,t,n,r){const{_proxy:i,_context:a,_subProxy:s,_stack:o}=n;if(o.has(e))throw new Error("Recursion detected: "+Array.from(o).join("->")+"->"+e);o.add(e);let l=t(a,s||r);return o.delete(e),V$(e,l)&&(l=W$(i._scopes,i,e,l)),l}function rU(e,t,n,r){const{_proxy:i,_context:a,_subProxy:s,_descriptors:o}=n;if(typeof a.index<"u"&&r(e))return t[a.index%t.length];if(ae(t[0])){const l=t,u=i._scopes.filter(c=>c!==l);t=[];for(const c of l){const d=W$(u,i,e,c);t.push(Ds(d,a,s&&s[e],o))}}return t}function OT(e,t,n){return di(e)?e(t,n):e}const iU=(e,t)=>e===!0?t:typeof e=="string"?ci(t,e):void 0;function aU(e,t,n,r,i){for(const a of t){const s=iU(n,a);if(s){e.add(s);const o=OT(s._fallback,n,i);if(typeof o<"u"&&o!==n&&o!==r)return o}else if(s===!1&&typeof r<"u"&&n!==r)return null}return!1}function W$(e,t,n,r){const i=t._rootScopes,a=OT(t._fallback,n,r),s=[...e,...i],o=new Set;o.add(r);let l=t6(o,s,n,a||n,r);return l===null||typeof a<"u"&&a!==n&&(l=t6(o,s,a,l,r),l===null)?!1:z$(Array.from(o),[""],i,a,()=>sU(t,n,r))}function t6(e,t,n,r,i){for(;n;)n=aU(e,t,n,r,i);return n}function sU(e,t,n){const r=e._getTarget();t in r||(r[t]={});const i=r[t];return Be(i)&&ae(n)?n:i||{}}function oU(e,t,n,r){let i;for(const a of t)if(i=BT(eU(a,e),n),typeof i<"u")return V$(e,i)?W$(n,r,e,i):i}function BT(e,t){for(const n of t){if(!n)continue;const r=n[e];if(typeof r<"u")return r}}function n6(e){let t=e._keys;return t||(t=e._keys=lU(e._scopes)),t}function lU(e){const t=new Set;for(const n of e)for(const r of Object.keys(n).filter(i=>!i.startsWith("_")))t.add(r);return Array.from(t)}function IT(e,t,n,r){const{iScale:i}=e,{key:a="r"}=this._parsing,s=new Array(r);let o,l,u,c;for(o=0,l=r;o<l;++o)u=o+n,c=t[u],s[o]={r:i.parse(ci(c,a),u)};return s}const uU=Number.EPSILON||1e-14,_s=(e,t)=>t<e.length&&!e[t].skip&&e[t],LT=e=>e==="x"?"y":"x";function cU(e,t,n,r){const i=e.skip?t:e,a=t,s=n.skip?t:n,o=Ky(a,i),l=Ky(s,a);let u=o/(o+l),c=l/(o+l);u=isNaN(u)?0:u,c=isNaN(c)?0:c;const d=r*u,f=r*c;return{previous:{x:a.x-d*(s.x-i.x),y:a.y-d*(s.y-i.y)},next:{x:a.x+f*(s.x-i.x),y:a.y+f*(s.y-i.y)}}}function dU(e,t,n){const r=e.length;let i,a,s,o,l,u=_s(e,0);for(let c=0;c<r-1;++c)if(l=u,u=_s(e,c+1),!(!l||!u)){if(Lo(t[c],0,uU)){n[c]=n[c+1]=0;continue}i=n[c]/t[c],a=n[c+1]/t[c],o=Math.pow(i,2)+Math.pow(a,2),!(o<=9)&&(s=3/Math.sqrt(o),n[c]=i*s*t[c],n[c+1]=a*s*t[c])}}function fU(e,t,n="x"){const r=LT(n),i=e.length;let a,s,o,l=_s(e,0);for(let u=0;u<i;++u){if(s=o,o=l,l=_s(e,u+1),!o)continue;const c=o[n],d=o[r];s&&(a=(c-s[n])/3,o[`cp1${n}`]=c-a,o[`cp1${r}`]=d-a*t[u]),l&&(a=(l[n]-c)/3,o[`cp2${n}`]=c+a,o[`cp2${r}`]=d+a*t[u])}}function hU(e,t="x"){const n=LT(t),r=e.length,i=Array(r).fill(0),a=Array(r);let s,o,l,u=_s(e,0);for(s=0;s<r;++s)if(o=l,l=u,u=_s(e,s+1),!!l){if(u){const c=u[t]-l[t];i[s]=c!==0?(u[n]-l[n])/c:0}a[s]=o?u?Zn(i[s-1])!==Zn(i[s])?0:(i[s-1]+i[s])/2:i[s-1]:i[s]}dU(e,i,a),fU(e,a,t)}function Fu(e,t,n){return Math.max(Math.min(e,n),t)}function pU(e,t){let n,r,i,a,s,o=vr(e[0],t);for(n=0,r=e.length;n<r;++n)s=a,a=o,o=n<r-1&&vr(e[n+1],t),a&&(i=e[n],s&&(i.cp1x=Fu(i.cp1x,t.left,t.right),i.cp1y=Fu(i.cp1y,t.top,t.bottom)),o&&(i.cp2x=Fu(i.cp2x,t.left,t.right),i.cp2y=Fu(i.cp2y,t.top,t.bottom)))}function mU(e,t,n,r,i){let a,s,o,l;if(t.spanGaps&&(e=e.filter(u=>!u.skip)),t.cubicInterpolationMode==="monotone")hU(e,i);else{let u=r?e[e.length-1]:e[0];for(a=0,s=e.length;a<s;++a)o=e[a],l=cU(u,o,e[Math.min(a+1,s-(r?0:1))%s],t.tension),o.cp1x=l.previous.x,o.cp1y=l.previous.y,o.cp2x=l.next.x,o.cp2y=l.next.y,u=o}t.capBezierPoints&&pU(e,n)}function U$(){return typeof window<"u"&&typeof document<"u"}function H$(e){let t=e.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function Yd(e,t,n){let r;return typeof e=="string"?(r=parseInt(e,10),e.indexOf("%")!==-1&&(r=r/100*t.parentNode[n])):r=e,r}const Hf=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);function gU(e,t){return Hf(e).getPropertyValue(t)}const vU=["top","right","bottom","left"];function Zi(e,t,n){const r={};n=n?"-"+n:"";for(let i=0;i<4;i++){const a=vU[i];r[a]=parseFloat(e[t+"-"+a+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const bU=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function yU(e,t){const n=e.touches,r=n&&n.length?n[0]:e,{offsetX:i,offsetY:a}=r;let s=!1,o,l;if(bU(i,a,e.target))o=i,l=a;else{const u=t.getBoundingClientRect();o=r.clientX-u.left,l=r.clientY-u.top,s=!0}return{x:o,y:l,box:s}}function Fi(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:r}=t,i=Hf(n),a=i.boxSizing==="border-box",s=Zi(i,"padding"),o=Zi(i,"border","width"),{x:l,y:u,box:c}=yU(e,n),d=s.left+(c&&o.left),f=s.top+(c&&o.top);let{width:h,height:p}=t;return a&&(h-=s.width+o.width,p-=s.height+o.height),{x:Math.round((l-d)/h*n.width/r),y:Math.round((u-f)/p*n.height/r)}}function $U(e,t,n){let r,i;if(t===void 0||n===void 0){const a=e&&H$(e);if(!a)t=e.clientWidth,n=e.clientHeight;else{const s=a.getBoundingClientRect(),o=Hf(a),l=Zi(o,"border","width"),u=Zi(o,"padding");t=s.width-u.width-l.width,n=s.height-u.height-l.height,r=Yd(o.maxWidth,a,"clientWidth"),i=Yd(o.maxHeight,a,"clientHeight")}}return{width:t,height:n,maxWidth:r||Hd,maxHeight:i||Hd}}const Au=e=>Math.round(e*10)/10;function xU(e,t,n,r){const i=Hf(e),a=Zi(i,"margin"),s=Yd(i.maxWidth,e,"clientWidth")||Hd,o=Yd(i.maxHeight,e,"clientHeight")||Hd,l=$U(e,t,n);let{width:u,height:c}=l;if(i.boxSizing==="content-box"){const f=Zi(i,"border","width"),h=Zi(i,"padding");u-=h.width+f.width,c-=h.height+f.height}return u=Math.max(0,u-a.width),c=Math.max(0,r?u/r:c-a.height),u=Au(Math.min(u,s,l.maxWidth)),c=Au(Math.min(c,o,l.maxHeight)),u&&!c&&(c=Au(u/2)),(t!==void 0||n!==void 0)&&r&&l.height&&c>l.height&&(c=l.height,u=Au(Math.floor(c*r))),{width:u,height:c}}function r6(e,t,n){const r=t||1,i=Math.floor(e.height*r),a=Math.floor(e.width*r);e.height=Math.floor(e.height),e.width=Math.floor(e.width);const s=e.canvas;return s.style&&(n||!s.style.height&&!s.style.width)&&(s.style.height=`${e.height}px`,s.style.width=`${e.width}px`),e.currentDevicePixelRatio!==r||s.height!==i||s.width!==a?(e.currentDevicePixelRatio=r,s.height=i,s.width=a,e.ctx.setTransform(r,0,0,r,0,0),!0):!1}const wU=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};U$()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch{}return e}();function i6(e,t){const n=gU(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function Ai(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function DU(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:r==="middle"?n<.5?e.y:t.y:r==="after"?n<1?e.y:t.y:n>0?t.y:e.y}}function _U(e,t,n,r){const i={x:e.cp2x,y:e.cp2y},a={x:t.cp1x,y:t.cp1y},s=Ai(e,i,n),o=Ai(i,a,n),l=Ai(a,t,n),u=Ai(s,o,n),c=Ai(o,l,n);return Ai(u,c,n)}const EU=function(e,t){return{x(n){return e+e+t-n},setWidth(n){t=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,r){return n-r},leftForLtr(n,r){return n-r}}},SU=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function ls(e,t,n){return e?EU(t,n):SU()}function NT(e,t){let n,r;(t==="ltr"||t==="rtl")&&(n=e.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)}function jT(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function zT(e){return e==="angle"?{between:$l,compare:CW,normalize:nn}:{between:mr,compare:(t,n)=>t-n,normalize:t=>t}}function a6({start:e,end:t,count:n,loop:r,style:i}){return{start:e%n,end:t%n,loop:r&&(t-e+1)%n===0,style:i}}function CU(e,t,n){const{property:r,start:i,end:a}=n,{between:s,normalize:o}=zT(r),l=t.length;let{start:u,end:c,loop:d}=e,f,h;if(d){for(u+=l,c+=l,f=0,h=l;f<h&&s(o(t[u%l][r]),i,a);++f)u--,c--;u%=l,c%=l}return c<u&&(c+=l),{start:u,end:c,loop:d,style:e.style}}function VT(e,t,n){if(!n)return[e];const{property:r,start:i,end:a}=n,s=t.length,{compare:o,between:l,normalize:u}=zT(r),{start:c,end:d,loop:f,style:h}=CU(e,t,n),p=[];let g=!1,b=null,v,m,$;const w=()=>l(i,$,v)&&o(i,$)!==0,D=()=>o(a,v)===0||l(a,$,v),S=()=>g||w(),k=()=>!g||D();for(let x=c,T=c;x<=d;++x)m=t[x%s],!m.skip&&(v=u(m[r]),v!==$&&(g=l(v,i,a),b===null&&S()&&(b=o(v,i)===0?x:T),b!==null&&k()&&(p.push(a6({start:b,end:x,loop:f,count:s,style:h})),b=null),T=x,$=v));return b!==null&&p.push(a6({start:b,end:d,loop:f,count:s,style:h})),p}function WT(e,t){const n=[],r=e.segments;for(let i=0;i<r.length;i++){const a=VT(r[i],e.points,t);a.length&&n.push(...a)}return n}function kU(e,t,n,r){let i=0,a=t-1;if(n&&!r)for(;i<t&&!e[i].skip;)i++;for(;i<t&&e[i].skip;)i++;for(i%=t,n&&(a+=i);a>i&&e[a%t].skip;)a--;return a%=t,{start:i,end:a}}function PU(e,t,n,r){const i=e.length,a=[];let s=t,o=e[t],l;for(l=t+1;l<=n;++l){const u=e[l%i];u.skip||u.stop?o.skip||(r=!1,a.push({start:t%i,end:(l-1)%i,loop:r}),t=s=u.stop?l:null):(s=l,o.skip&&(t=l)),o=u}return s!==null&&a.push({start:t%i,end:s%i,loop:r}),a}function TU(e,t){const n=e.points,r=e.options.spanGaps,i=n.length;if(!i)return[];const a=!!e._loop,{start:s,end:o}=kU(n,i,a,r);if(r===!0)return s6(e,[{start:s,end:o,loop:a}],n,t);const l=o<s?o+i:o,u=!!e._fullLoop&&s===0&&o===i-1;return s6(e,PU(n,s,l,u),n,t)}function s6(e,t,n,r){return!r||!r.setContext||!n?t:RU(e,t,n,r)}function RU(e,t,n,r){const i=e._chart.getContext(),a=o6(e.options),{_datasetIndex:s,options:{spanGaps:o}}=e,l=n.length,u=[];let c=a,d=t[0].start,f=d;function h(p,g,b,v){const m=o?-1:1;if(p!==g){for(p+=l;n[p%l].skip;)p-=m;for(;n[g%l].skip;)g+=m;p%l!==g%l&&(u.push({start:p%l,end:g%l,loop:b,style:v}),c=v,d=g%l)}}for(const p of t){d=o?d:p.start;let g=n[d%l],b;for(f=d+1;f<=p.end;f++){const v=n[f%l];b=o6(r.setContext(bi(i,{type:"segment",p0:g,p1:v,p0DataIndex:(f-1)%l,p1DataIndex:f%l,datasetIndex:s}))),MU(b,c)&&h(d,f-1,p.loop,c),g=v,c=b}d<f-1&&h(d,f-1,p.loop,c)}return u}function o6(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function MU(e,t){if(!t)return!1;const n=[],r=function(i,a){return N$(a)?(n.includes(a)||n.push(a),n.indexOf(a)):a};return JSON.stringify(e,r)!==JSON.stringify(t,r)}/*!
  * Chart.js v4.4.3
  * https://www.chartjs.org
  * (c) 2024 Chart.js Contributors
  * Released under the MIT License
- */class MU{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,n,r,i){const a=n.listeners[i],s=n.duration;a.forEach(o=>o({chart:t,initial:n.initial,numSteps:s,currentStep:Math.min(r-n.start,s)}))}_refresh(){this._request||(this._running=!0,this._request=ST.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let n=0;this._charts.forEach((r,i)=>{if(!r.running||!r.items.length)return;const a=r.items;let s=a.length-1,o=!1,l;for(;s>=0;--s)l=a[s],l._active?(l._total>r.duration&&(r.duration=l._total),l.tick(t),o=!0):(a[s]=a[a.length-1],a.pop());o&&(i.draw(),this._notify(i,r,t,"progress")),a.length||(r.running=!1,this._notify(i,r,t,"complete"),r.initial=!1),n+=a.length}),this._lastDate=t,n===0&&(this._running=!1)}_getAnims(t){const n=this._charts;let r=n.get(t);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(t,r)),r}listen(t,n,r){this._getAnims(t).listeners[n].push(r)}add(t,n){!n||!n.length||this._getAnims(t).items.push(...n)}has(t){return this._getAnims(t).items.length>0}start(t){const n=this._charts.get(t);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((r,i)=>Math.max(r,i._duration),0),this._refresh())}running(t){if(!this._running)return!1;const n=this._charts.get(t);return!(!n||!n.running||!n.items.length)}stop(t){const n=this._charts.get(t);if(!n||!n.items.length)return;const r=n.items;let i=r.length-1;for(;i>=0;--i)r[i].cancel();n.items=[],this._notify(t,n,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var ar=new MU;const l6="transparent",FU={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const r=Q5(e||l6),i=r.valid&&Q5(t||l6);return i&&i.valid?i.mix(r,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class AU{constructor(t,n,r,i){const a=n[r];i=bo([t.to,i,a,t.from]);const s=bo([t.from,a,i]);this._active=!0,this._fn=t.fn||FU[t.type||typeof s],this._easing=No[t.easing]||No.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=r,this._from=s,this._to=i,this._promises=void 0}active(){return this._active}update(t,n,r){if(this._active){this._notify(!1);const i=this._target[this._prop],a=r-this._start,s=this._duration-a;this._start=r,this._duration=Math.floor(Math.max(s,t.duration)),this._total+=a,this._loop=!!t.loop,this._to=bo([t.to,n,i,t.from]),this._from=bo([t.from,i,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const n=t-this._start,r=this._duration,i=this._prop,a=this._from,s=this._loop,o=this._to;let l;if(this._active=a!==o&&(s||n<r),!this._active){this._target[i]=o,this._notify(!0);return}if(n<0){this._target[i]=a;return}l=n/r%2,l=s&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[i]=this._fn(a,o,l)}wait(){const t=this._promises||(this._promises=[]);return new Promise((n,r)=>{t.push({res:n,rej:r})})}_notify(t){const n=t?"res":"rej",r=this._promises||[];for(let i=0;i<r.length;i++)r[i][n]()}}class UT{constructor(t,n){this._chart=t,this._properties=new Map,this.configure(n)}configure(t){if(!ae(t))return;const n=Object.keys(We.animation),r=this._properties;Object.getOwnPropertyNames(t).forEach(i=>{const a=t[i];if(!ae(a))return;const s={};for(const o of n)s[o]=a[o];(Be(a.properties)&&a.properties||[i]).forEach(o=>{(o===i||!r.has(o))&&r.set(o,s)})})}_animateOptions(t,n){const r=n.options,i=BU(t,r);if(!i)return[];const a=this._createAnimations(i,r);return r.$shared&&OU(t.options.$animations,r).then(()=>{t.options=r},()=>{}),a}_createAnimations(t,n){const r=this._properties,i=[],a=t.$animations||(t.$animations={}),s=Object.keys(n),o=Date.now();let l;for(l=s.length-1;l>=0;--l){const u=s[l];if(u.charAt(0)==="$")continue;if(u==="options"){i.push(...this._animateOptions(t,n));continue}const c=n[u];let d=a[u];const f=r.get(u);if(d)if(f&&d.active()){d.update(f,c,o);continue}else d.cancel();if(!f||!f.duration){t[u]=c;continue}a[u]=d=new AU(f,t,u,c),i.push(d)}return i}update(t,n){if(this._properties.size===0){Object.assign(t,n);return}const r=this._createAnimations(t,n);if(r.length)return ar.add(this._chart,r),!0}}function OU(e,t){const n=[],r=Object.keys(t);for(let i=0;i<r.length;i++){const a=e[r[i]];a&&a.active()&&n.push(a.wait())}return Promise.all(n)}function BU(e,t){if(!t)return;let n=e.options;if(!n){e.options=t;return}return n.$shared&&(e.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n}function u6(e,t){const n=e&&e.options||{},r=n.reverse,i=n.min===void 0?t:0,a=n.max===void 0?t:0;return{start:r?a:i,end:r?i:a}}function IU(e,t,n){if(n===!1)return!1;const r=u6(e,n),i=u6(t,n);return{top:i.end,right:r.end,bottom:i.start,left:r.start}}function LU(e){let t,n,r,i;return ae(e)?(t=e.top,n=e.right,r=e.bottom,i=e.left):t=n=r=i=e,{top:t,right:n,bottom:r,left:i,disabled:e===!1}}function HT(e,t){const n=[],r=e._getSortedDatasetMetas(t);let i,a;for(i=0,a=r.length;i<a;++i)n.push(r[i].index);return n}function c6(e,t,n,r={}){const i=e.keys,a=r.mode==="single";let s,o,l,u;if(t!==null){for(s=0,o=i.length;s<o;++s){if(l=+i[s],l===n){if(r.all)continue;break}u=e.values[l],Ve(u)&&(a||t===0||Zn(t)===Zn(u))&&(t+=u)}return t}}function NU(e,t){const{iScale:n,vScale:r}=t,i=n.axis==="x"?"x":"y",a=r.axis==="x"?"x":"y",s=Object.keys(e),o=new Array(s.length);let l,u,c;for(l=0,u=s.length;l<u;++l)c=s[l],o[l]={[i]:c,[a]:e[c]};return o}function d6(e,t){const n=e&&e.options.stacked;return n||n===void 0&&t.stack!==void 0}function jU(e,t,n){return`${e.id}.${t.id}.${n.stack||n.type}`}function zU(e){const{min:t,max:n,minDefined:r,maxDefined:i}=e.getUserBounds();return{min:r?t:Number.NEGATIVE_INFINITY,max:i?n:Number.POSITIVE_INFINITY}}function VU(e,t,n){const r=e[t]||(e[t]={});return r[n]||(r[n]={})}function f6(e,t,n,r){for(const i of t.getMatchingVisibleMetas(r).reverse()){const a=e[i.index];if(n&&a>0||!n&&a<0)return i.index}return null}function h6(e,t){const{chart:n,_cachedMeta:r}=e,i=n._stacks||(n._stacks={}),{iScale:a,vScale:s,index:o}=r,l=a.axis,u=s.axis,c=jU(a,s,r),d=t.length;let f;for(let h=0;h<d;++h){const p=t[h],{[l]:g,[u]:b}=p,v=p._stacks||(p._stacks={});f=v[u]=VU(i,c,g),f[o]=b,f._top=f6(f,s,!0,r.type),f._bottom=f6(f,s,!1,r.type);const m=f._visualValues||(f._visualValues={});m[o]=b}}function hp(e,t){const n=e.scales;return Object.keys(n).filter(r=>n[r].axis===t).shift()}function WU(e,t){return bi(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function UU(e,t,n){return bi(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function Qs(e,t){const n=e.controller.index,r=e.vScale&&e.vScale.axis;if(r){t=t||e._parsed;for(const i of t){const a=i._stacks;if(!a||a[r]===void 0||a[r][n]===void 0)return;delete a[r][n],a[r]._visualValues!==void 0&&a[r]._visualValues[n]!==void 0&&delete a[r]._visualValues[n]}}}const pp=e=>e==="reset"||e==="none",p6=(e,t)=>t?e:Object.assign({},e),HU=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:HT(n,!0),values:null};class In{constructor(t,n){this.chart=t,this._ctx=t.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=d6(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&Qs(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,n=this._cachedMeta,r=this.getDataset(),i=(d,f,h,p)=>d==="x"?f:d==="r"?p:h,a=n.xAxisID=J(r.xAxisID,hp(t,"x")),s=n.yAxisID=J(r.yAxisID,hp(t,"y")),o=n.rAxisID=J(r.rAxisID,hp(t,"r")),l=n.indexAxis,u=n.iAxisID=i(l,a,s,o),c=n.vAxisID=i(l,s,a,o);n.xScale=this.getScaleForId(a),n.yScale=this.getScaleForId(s),n.rScale=this.getScaleForId(o),n.iScale=this.getScaleForId(u),n.vScale=this.getScaleForId(c)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const n=this._cachedMeta;return t===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&G5(this._data,this),t._stacked&&Qs(t)}_dataCheck(){const t=this.getDataset(),n=t.data||(t.data=[]),r=this._data;if(ae(n)){const i=this._cachedMeta;this._data=NU(n,i)}else if(r!==n){if(r){G5(r,this);const i=this._cachedMeta;Qs(i),i._parsed=[]}n&&Object.isExtensible(n)&&TW(n,this),this._syncList=[],this._data=n}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const n=this._cachedMeta,r=this.getDataset();let i=!1;this._dataCheck();const a=n._stacked;n._stacked=d6(n.vScale,n),n.stack!==r.stack&&(i=!0,Qs(n),n.stack=r.stack),this._resyncElements(t),(i||a!==n._stacked)&&h6(this,n._parsed)}configure(){const t=this.chart.config,n=t.datasetScopeKeys(this._type),r=t.getOptionScopes(this.getDataset(),n,!0);this.options=t.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,n){const{_cachedMeta:r,_data:i}=this,{iScale:a,_stacked:s}=r,o=a.axis;let l=t===0&&n===i.length?!0:r._sorted,u=t>0&&r._parsed[t-1],c,d,f;if(this._parsing===!1)r._parsed=i,r._sorted=!0,f=i;else{Be(i[t])?f=this.parseArrayData(r,i,t,n):ae(i[t])?f=this.parseObjectData(r,i,t,n):f=this.parsePrimitiveData(r,i,t,n);const h=()=>d[o]===null||u&&d[o]<u[o];for(c=0;c<n;++c)r._parsed[c+t]=d=f[c],l&&(h()&&(l=!1),u=d);r._sorted=l}s&&h6(this,f)}parsePrimitiveData(t,n,r,i){const{iScale:a,vScale:s}=t,o=a.axis,l=s.axis,u=a.getLabels(),c=a===s,d=new Array(i);let f,h,p;for(f=0,h=i;f<h;++f)p=f+r,d[f]={[o]:c||a.parse(u[p],p),[l]:s.parse(n[p],p)};return d}parseArrayData(t,n,r,i){const{xScale:a,yScale:s}=t,o=new Array(i);let l,u,c,d;for(l=0,u=i;l<u;++l)c=l+r,d=n[c],o[l]={x:a.parse(d[0],c),y:s.parse(d[1],c)};return o}parseObjectData(t,n,r,i){const{xScale:a,yScale:s}=t,{xAxisKey:o="x",yAxisKey:l="y"}=this._parsing,u=new Array(i);let c,d,f,h;for(c=0,d=i;c<d;++c)f=c+r,h=n[f],u[c]={x:a.parse(ci(h,o),f),y:s.parse(ci(h,l),f)};return u}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,n,r){const i=this.chart,a=this._cachedMeta,s=n[t.axis],o={keys:HT(i,!0),values:n._stacks[t.axis]._visualValues};return c6(o,s,a.index,{mode:r})}updateRangeFromParsed(t,n,r,i){const a=r[n.axis];let s=a===null?NaN:a;const o=i&&r._stacks[n.axis];i&&o&&(i.values=o,s=c6(i,a,this._cachedMeta.index)),t.min=Math.min(t.min,s),t.max=Math.max(t.max,s)}getMinMax(t,n){const r=this._cachedMeta,i=r._parsed,a=r._sorted&&t===r.iScale,s=i.length,o=this._getOtherScale(t),l=HU(n,r,this.chart),u={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:d}=zU(o);let f,h;function p(){h=i[f];const g=h[o.axis];return!Ve(h[t.axis])||c>g||d<g}for(f=0;f<s&&!(!p()&&(this.updateRangeFromParsed(u,t,h,l),a));++f);if(a){for(f=s-1;f>=0;--f)if(!p()){this.updateRangeFromParsed(u,t,h,l);break}}return u}getAllParsedValues(t){const n=this._cachedMeta._parsed,r=[];let i,a,s;for(i=0,a=n.length;i<a;++i)s=n[i][t.axis],Ve(s)&&r.push(s);return r}getMaxOverflow(){return!1}getLabelAndValue(t){const n=this._cachedMeta,r=n.iScale,i=n.vScale,a=this.getParsed(t);return{label:r?""+r.getLabelForValue(a[r.axis]):"",value:i?""+i.getLabelForValue(a[i.axis]):""}}_update(t){const n=this._cachedMeta;this.update(t||"default"),n._clip=LU(J(this.options.clip,IU(n.xScale,n.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,n=this.chart,r=this._cachedMeta,i=r.data||[],a=n.chartArea,s=[],o=this._drawStart||0,l=this._drawCount||i.length-o,u=this.options.drawActiveElementsOnTop;let c;for(r.dataset&&r.dataset.draw(t,a,o,l),c=o;c<o+l;++c){const d=i[c];d.hidden||(d.active&&u?s.push(d):d.draw(t,a))}for(c=0;c<s.length;++c)s[c].draw(t,a)}getStyle(t,n){const r=n?"active":"default";return t===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(r):this.resolveDataElementOptions(t||0,r)}getContext(t,n,r){const i=this.getDataset();let a;if(t>=0&&t<this._cachedMeta.data.length){const s=this._cachedMeta.data[t];a=s.$context||(s.$context=UU(this.getContext(),t,s)),a.parsed=this.getParsed(t),a.raw=i.data[t],a.index=a.dataIndex=t}else a=this.$context||(this.$context=WU(this.chart.getContext(),this.index)),a.dataset=i,a.index=a.datasetIndex=this.index;return a.active=!!n,a.mode=r,a}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,n){return this._resolveElementOptions(this.dataElementType.id,n,t)}_resolveElementOptions(t,n="default",r){const i=n==="active",a=this._cachedDataOpts,s=t+"-"+n,o=a[s],l=this.enableOptionSharing&&yl(r);if(o)return p6(o,l);const u=this.chart.config,c=u.datasetElementScopeKeys(this._type,t),d=i?[`${t}Hover`,"hover",t,""]:[t,""],f=u.getOptionScopes(this.getDataset(),c),h=Object.keys(We.elements[t]),p=()=>this.getContext(r,i,n),g=u.resolveNamedOptions(f,h,p,d);return g.$shared&&(g.$shared=l,a[s]=Object.freeze(p6(g,l))),g}_resolveAnimations(t,n,r){const i=this.chart,a=this._cachedDataOpts,s=`animation-${n}`,o=a[s];if(o)return o;let l;if(i.options.animation!==!1){const c=this.chart.config,d=c.datasetAnimationScopeKeys(this._type,n),f=c.getOptionScopes(this.getDataset(),d);l=c.createResolver(f,this.getContext(t,r,n))}const u=new UT(i,l&&l.animations);return l&&l._cacheable&&(a[s]=Object.freeze(u)),u}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||pp(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){const r=this.resolveDataElementOptions(t,n),i=this._sharedOptions,a=this.getSharedOptions(r),s=this.includeOptions(n,a)||a!==i;return this.updateSharedOptions(a,n,r),{sharedOptions:a,includeOptions:s}}updateElement(t,n,r,i){pp(i)?Object.assign(t,r):this._resolveAnimations(n,i).update(t,r)}updateSharedOptions(t,n,r){t&&!pp(n)&&this._resolveAnimations(void 0,n).update(t,r)}_setStyle(t,n,r,i){t.active=i;const a=this.getStyle(n,i);this._resolveAnimations(n,r,i).update(t,{options:!i&&this.getSharedOptions(a)||a})}removeHoverStyle(t,n,r){this._setStyle(t,r,"active",!1)}setHoverStyle(t,n,r){this._setStyle(t,r,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const n=this._data,r=this._cachedMeta.data;for(const[o,l,u]of this._syncList)this[o](l,u);this._syncList=[];const i=r.length,a=n.length,s=Math.min(a,i);s&&this.parse(0,s),a>i?this._insertElements(i,a-i,t):a<i&&this._removeElements(a,i-a)}_insertElements(t,n,r=!0){const i=this._cachedMeta,a=i.data,s=t+n;let o;const l=u=>{for(u.length+=n,o=u.length-1;o>=s;o--)u[o]=u[o-n]};for(l(a),o=t;o<s;++o)a[o]=new this.dataElementType;this._parsing&&l(i._parsed),this.parse(t,n),r&&this.updateElements(a,t,n,"reset")}updateElements(t,n,r,i){}_removeElements(t,n){const r=this._cachedMeta;if(this._parsing){const i=r._parsed.splice(t,n);r._stacked&&Qs(r,i)}r.data.splice(t,n)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[n,r,i]=t;this[n](r,i)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,n){n&&this._sync(["_removeElements",t,n]);const r=arguments.length-2;r&&this._sync(["_insertElements",t,r])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}j(In,"defaults",{}),j(In,"datasetElementType",null),j(In,"dataElementType",null);function KU(e,t){if(!e._cache.$bar){const n=e.getMatchingVisibleMetas(t);let r=[];for(let i=0,a=n.length;i<a;i++)r=r.concat(n[i].controller.getAllParsedValues(e));e._cache.$bar=ET(r.sort((i,a)=>i-a))}return e._cache.$bar}function YU(e){const t=e.iScale,n=KU(t,e.type);let r=t._length,i,a,s,o;const l=()=>{s===32767||s===-32768||(yl(o)&&(r=Math.min(r,Math.abs(s-o)||r)),o=s)};for(i=0,a=n.length;i<a;++i)s=t.getPixelForValue(n[i]),l();for(o=void 0,i=0,a=t.ticks.length;i<a;++i)s=t.getPixelForTick(i),l();return r}function qU(e,t,n,r){const i=n.barThickness;let a,s;return ce(i)?(a=t.min*n.categoryPercentage,s=n.barPercentage):(a=i*r,s=1),{chunk:a/r,ratio:s,start:t.pixels[e]-a/2}}function GU(e,t,n,r){const i=t.pixels,a=i[e];let s=e>0?i[e-1]:null,o=e<i.length-1?i[e+1]:null;const l=n.categoryPercentage;s===null&&(s=a-(o===null?t.end-t.start:o-a)),o===null&&(o=a+a-s);const u=a-(a-Math.min(s,o))/2*l;return{chunk:Math.abs(o-s)/2*l/r,ratio:n.barPercentage,start:u}}function ZU(e,t,n,r){const i=n.parse(e[0],r),a=n.parse(e[1],r),s=Math.min(i,a),o=Math.max(i,a);let l=s,u=o;Math.abs(s)>Math.abs(o)&&(l=o,u=s),t[n.axis]=u,t._custom={barStart:l,barEnd:u,start:i,end:a,min:s,max:o}}function KT(e,t,n,r){return Be(e)?ZU(e,t,n,r):t[n.axis]=n.parse(e,r),t}function m6(e,t,n,r){const i=e.iScale,a=e.vScale,s=i.getLabels(),o=i===a,l=[];let u,c,d,f;for(u=n,c=n+r;u<c;++u)f=t[u],d={},d[i.axis]=o||i.parse(s[u],u),l.push(KT(f,d,a,u));return l}function mp(e){return e&&e.barStart!==void 0&&e.barEnd!==void 0}function XU(e,t,n){return e!==0?Zn(e):(t.isHorizontal()?1:-1)*(t.min>=n?1:-1)}function QU(e){let t,n,r,i,a;return e.horizontal?(t=e.base>e.x,n="left",r="right"):(t=e.base<e.y,n="bottom",r="top"),t?(i="end",a="start"):(i="start",a="end"),{start:n,end:r,reverse:t,top:i,bottom:a}}function JU(e,t,n,r){let i=t.borderSkipped;const a={};if(!i){e.borderSkipped=a;return}if(i===!0){e.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}const{start:s,end:o,reverse:l,top:u,bottom:c}=QU(e);i==="middle"&&n&&(e.enableBorderRadius=!0,(n._top||0)===r?i=u:(n._bottom||0)===r?i=c:(a[g6(c,s,o,l)]=!0,i=u)),a[g6(i,s,o,l)]=!0,e.borderSkipped=a}function g6(e,t,n,r){return r?(e=eH(e,t,n),e=v6(e,n,t)):e=v6(e,t,n),e}function eH(e,t,n){return e===t?n:e===n?t:e}function v6(e,t,n){return e==="start"?t:e==="end"?n:e}function tH(e,{inflateAmount:t},n){e.inflateAmount=t==="auto"?n===1?.33:0:t}class lc extends In{parsePrimitiveData(t,n,r,i){return m6(t,n,r,i)}parseArrayData(t,n,r,i){return m6(t,n,r,i)}parseObjectData(t,n,r,i){const{iScale:a,vScale:s}=t,{xAxisKey:o="x",yAxisKey:l="y"}=this._parsing,u=a.axis==="x"?o:l,c=s.axis==="x"?o:l,d=[];let f,h,p,g;for(f=r,h=r+i;f<h;++f)g=n[f],p={},p[a.axis]=a.parse(ci(g,u),f),d.push(KT(ci(g,c),p,s,f));return d}updateRangeFromParsed(t,n,r,i){super.updateRangeFromParsed(t,n,r,i);const a=r._custom;a&&n===this._cachedMeta.vScale&&(t.min=Math.min(t.min,a.min),t.max=Math.max(t.max,a.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const n=this._cachedMeta,{iScale:r,vScale:i}=n,a=this.getParsed(t),s=a._custom,o=mp(s)?"["+s.start+", "+s.end+"]":""+i.getLabelForValue(a[i.axis]);return{label:""+r.getLabelForValue(a[r.axis]),value:o}}initialize(){this.enableOptionSharing=!0,super.initialize();const t=this._cachedMeta;t.stack=this.getDataset().stack}update(t){const n=this._cachedMeta;this.updateElements(n.data,0,n.data.length,t)}updateElements(t,n,r,i){const a=i==="reset",{index:s,_cachedMeta:{vScale:o}}=this,l=o.getBasePixel(),u=o.isHorizontal(),c=this._getRuler(),{sharedOptions:d,includeOptions:f}=this._getSharedOptions(n,i);for(let h=n;h<n+r;h++){const p=this.getParsed(h),g=a||ce(p[o.axis])?{base:l,head:l}:this._calculateBarValuePixels(h),b=this._calculateBarIndexPixels(h,c),v=(p._stacks||{})[o.axis],m={horizontal:u,base:g.base,enableBorderRadius:!v||mp(p._custom)||s===v._top||s===v._bottom,x:u?g.head:b.center,y:u?b.center:g.head,height:u?b.size:Math.abs(g.size),width:u?Math.abs(g.size):b.size};f&&(m.options=d||this.resolveDataElementOptions(h,t[h].active?"active":i));const $=m.options||t[h].options;JU(m,$,v,s),tH(m,$,c.ratio),this.updateElement(t[h],h,m,i)}}_getStacks(t,n){const{iScale:r}=this._cachedMeta,i=r.getMatchingVisibleMetas(this._type).filter(l=>l.controller.options.grouped),a=r.options.stacked,s=[],o=l=>{const u=l.controller.getParsed(n),c=u&&u[l.vScale.axis];if(ce(c)||isNaN(c))return!0};for(const l of i)if(!(n!==void 0&&o(l))&&((a===!1||s.indexOf(l.stack)===-1||a===void 0&&l.stack===void 0)&&s.push(l.stack),l.index===t))break;return s.length||s.push(void 0),s}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,n,r){const i=this._getStacks(t,r),a=n!==void 0?i.indexOf(n):-1;return a===-1?i.length-1:a}_getRuler(){const t=this.options,n=this._cachedMeta,r=n.iScale,i=[];let a,s;for(a=0,s=n.data.length;a<s;++a)i.push(r.getPixelForValue(this.getParsed(a)[r.axis],a));const o=t.barThickness;return{min:o||YU(n),pixels:i,start:r._startPixel,end:r._endPixel,stackCount:this._getStackCount(),scale:r,grouped:t.grouped,ratio:o?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:n,_stacked:r,index:i},options:{base:a,minBarLength:s}}=this,o=a||0,l=this.getParsed(t),u=l._custom,c=mp(u);let d=l[n.axis],f=0,h=r?this.applyStack(n,l,r):d,p,g;h!==d&&(f=h-d,h=d),c&&(d=u.barStart,h=u.barEnd-u.barStart,d!==0&&Zn(d)!==Zn(u.barEnd)&&(f=0),f+=d);const b=!ce(a)&&!c?a:f;let v=n.getPixelForValue(b);if(this.chart.getDataVisibility(t)?p=n.getPixelForValue(f+h):p=v,g=p-v,Math.abs(g)<s){g=XU(g,n,o)*s,d===o&&(v-=g/2);const m=n.getPixelForDecimal(0),$=n.getPixelForDecimal(1),w=Math.min(m,$),D=Math.max(m,$);v=Math.max(Math.min(v,D),w),p=v+g,r&&!c&&(l._stacks[n.axis]._visualValues[i]=n.getValueForPixel(p)-n.getValueForPixel(v))}if(v===n.getPixelForValue(o)){const m=Zn(g)*n.getLineWidthForValue(o)/2;v+=m,g-=m}return{size:g,base:v,head:p,center:p+g/2}}_calculateBarIndexPixels(t,n){const r=n.scale,i=this.options,a=i.skipNull,s=J(i.maxBarThickness,1/0);let o,l;if(n.grouped){const u=a?this._getStackCount(t):n.stackCount,c=i.barThickness==="flex"?GU(t,n,i,u):qU(t,n,i,u),d=this._getStackIndex(this.index,this._cachedMeta.stack,a?t:void 0);o=c.start+c.chunk*d+c.chunk/2,l=Math.min(s,c.chunk*c.ratio)}else o=r.getPixelForValue(this.getParsed(t)[r.axis],t),l=Math.min(s,n.min*n.ratio);return{base:o-l/2,head:o+l/2,center:o,size:l}}draw(){const t=this._cachedMeta,n=t.vScale,r=t.data,i=r.length;let a=0;for(;a<i;++a)this.getParsed(a)[n.axis]!==null&&!r[a].hidden&&r[a].draw(this._ctx)}}j(lc,"id","bar"),j(lc,"defaults",{datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}}),j(lc,"overrides",{scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}});class uc extends In{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,n,r,i){const a=super.parsePrimitiveData(t,n,r,i);for(let s=0;s<a.length;s++)a[s]._custom=this.resolveDataElementOptions(s+r).radius;return a}parseArrayData(t,n,r,i){const a=super.parseArrayData(t,n,r,i);for(let s=0;s<a.length;s++){const o=n[r+s];a[s]._custom=J(o[2],this.resolveDataElementOptions(s+r).radius)}return a}parseObjectData(t,n,r,i){const a=super.parseObjectData(t,n,r,i);for(let s=0;s<a.length;s++){const o=n[r+s];a[s]._custom=J(o&&o.r&&+o.r,this.resolveDataElementOptions(s+r).radius)}return a}getMaxOverflow(){const t=this._cachedMeta.data;let n=0;for(let r=t.length-1;r>=0;--r)n=Math.max(n,t[r].size(this.resolveDataElementOptions(r))/2);return n>0&&n}getLabelAndValue(t){const n=this._cachedMeta,r=this.chart.data.labels||[],{xScale:i,yScale:a}=n,s=this.getParsed(t),o=i.getLabelForValue(s.x),l=a.getLabelForValue(s.y),u=s._custom;return{label:r[t]||"",value:"("+o+", "+l+(u?", "+u:"")+")"}}update(t){const n=this._cachedMeta.data;this.updateElements(n,0,n.length,t)}updateElements(t,n,r,i){const a=i==="reset",{iScale:s,vScale:o}=this._cachedMeta,{sharedOptions:l,includeOptions:u}=this._getSharedOptions(n,i),c=s.axis,d=o.axis;for(let f=n;f<n+r;f++){const h=t[f],p=!a&&this.getParsed(f),g={},b=g[c]=a?s.getPixelForDecimal(.5):s.getPixelForValue(p[c]),v=g[d]=a?o.getBasePixel():o.getPixelForValue(p[d]);g.skip=isNaN(b)||isNaN(v),u&&(g.options=l||this.resolveDataElementOptions(f,h.active?"active":i),a&&(g.options.radius=0)),this.updateElement(h,f,g,i)}}resolveDataElementOptions(t,n){const r=this.getParsed(t);let i=super.resolveDataElementOptions(t,n);i.$shared&&(i=Object.assign({},i,{$shared:!1}));const a=i.radius;return n!=="active"&&(i.radius=0),i.radius+=J(r&&r._custom,a),i}}j(uc,"id","bubble"),j(uc,"defaults",{datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}}),j(uc,"overrides",{scales:{x:{type:"linear"},y:{type:"linear"}}});function nH(e,t,n){let r=1,i=1,a=0,s=0;if(t<Te){const o=e,l=o+t,u=Math.cos(o),c=Math.sin(o),d=Math.cos(l),f=Math.sin(l),h=($,w,D)=>$l($,o,l,!0)?1:Math.max(w,w*n,D,D*n),p=($,w,D)=>$l($,o,l,!0)?-1:Math.min(w,w*n,D,D*n),g=h(0,u,d),b=h(qe,c,f),v=p(Me,u,d),m=p(Me+qe,c,f);r=(g-v)/2,i=(b-m)/2,a=-(g+v)/2,s=-(b+m)/2}return{ratioX:r,ratioY:i,offsetX:a,offsetY:s}}class Hi extends In{constructor(t,n){super(t,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,n){const r=this.getDataset().data,i=this._cachedMeta;if(this._parsing===!1)i._parsed=r;else{let a=l=>+r[l];if(ae(r[t])){const{key:l="value"}=this._parsing;a=u=>+ci(r[u],l)}let s,o;for(s=t,o=t+n;s<o;++s)i._parsed[s]=a(s)}}_getRotation(){return An(this.options.rotation-90)}_getCircumference(){return An(this.options.circumference)}_getRotationExtents(){let t=Te,n=-Te;for(let r=0;r<this.chart.data.datasets.length;++r)if(this.chart.isDatasetVisible(r)&&this.chart.getDatasetMeta(r).type===this._type){const i=this.chart.getDatasetMeta(r).controller,a=i._getRotation(),s=i._getCircumference();t=Math.min(t,a),n=Math.max(n,a+s)}return{rotation:t,circumference:n-t}}update(t){const n=this.chart,{chartArea:r}=n,i=this._cachedMeta,a=i.data,s=this.getMaxBorderWidth()+this.getMaxOffset(a)+this.options.spacing,o=Math.max((Math.min(r.width,r.height)-s)/2,0),l=Math.min(gW(this.options.cutout,o),1),u=this._getRingWeight(this.index),{circumference:c,rotation:d}=this._getRotationExtents(),{ratioX:f,ratioY:h,offsetX:p,offsetY:g}=nH(d,c,l),b=(r.width-s)/f,v=(r.height-s)/h,m=Math.max(Math.min(b,v)/2,0),$=$T(this.options.radius,m),w=Math.max($*l,0),D=($-w)/this._getVisibleDatasetWeightTotal();this.offsetX=p*$,this.offsetY=g*$,i.total=this.calculateTotal(),this.outerRadius=$-D*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-D*u,0),this.updateElements(a,0,a.length,t)}_circumference(t,n){const r=this.options,i=this._cachedMeta,a=this._getCircumference();return n&&r.animation.animateRotate||!this.chart.getDataVisibility(t)||i._parsed[t]===null||i.data[t].hidden?0:this.calculateCircumference(i._parsed[t]*a/Te)}updateElements(t,n,r,i){const a=i==="reset",s=this.chart,o=s.chartArea,u=s.options.animation,c=(o.left+o.right)/2,d=(o.top+o.bottom)/2,f=a&&u.animateScale,h=f?0:this.innerRadius,p=f?0:this.outerRadius,{sharedOptions:g,includeOptions:b}=this._getSharedOptions(n,i);let v=this._getRotation(),m;for(m=0;m<n;++m)v+=this._circumference(m,a);for(m=n;m<n+r;++m){const $=this._circumference(m,a),w=t[m],D={x:c+this.offsetX,y:d+this.offsetY,startAngle:v,endAngle:v+$,circumference:$,outerRadius:p,innerRadius:h};b&&(D.options=g||this.resolveDataElementOptions(m,w.active?"active":i)),v+=$,this.updateElement(w,m,D,i)}}calculateTotal(){const t=this._cachedMeta,n=t.data;let r=0,i;for(i=0;i<n.length;i++){const a=t._parsed[i];a!==null&&!isNaN(a)&&this.chart.getDataVisibility(i)&&!n[i].hidden&&(r+=Math.abs(a))}return r}calculateCircumference(t){const n=this._cachedMeta.total;return n>0&&!isNaN(t)?Te*(Math.abs(t)/n):0}getLabelAndValue(t){const n=this._cachedMeta,r=this.chart,i=r.data.labels||[],a=Ul(n._parsed[t],r.options.locale);return{label:i[t]||"",value:a}}getMaxBorderWidth(t){let n=0;const r=this.chart;let i,a,s,o,l;if(!t){for(i=0,a=r.data.datasets.length;i<a;++i)if(r.isDatasetVisible(i)){s=r.getDatasetMeta(i),t=s.data,o=s.controller;break}}if(!t)return 0;for(i=0,a=t.length;i<a;++i)l=o.resolveDataElementOptions(i),l.borderAlign!=="inner"&&(n=Math.max(n,l.borderWidth||0,l.hoverBorderWidth||0));return n}getMaxOffset(t){let n=0;for(let r=0,i=t.length;r<i;++r){const a=this.resolveDataElementOptions(r);n=Math.max(n,a.offset||0,a.hoverOffset||0)}return n}_getRingWeightOffset(t){let n=0;for(let r=0;r<t;++r)this.chart.isDatasetVisible(r)&&(n+=this._getRingWeight(r));return n}_getRingWeight(t){return Math.max(J(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}j(Hi,"id","doughnut"),j(Hi,"defaults",{datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"}),j(Hi,"descriptors",{_scriptable:t=>t!=="spacing",_indexable:t=>t!=="spacing"&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")}),j(Hi,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const n=t.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:r,color:i}}=t.legend.options;return n.labels.map((a,s)=>{const l=t.getDatasetMeta(0).controller.getStyle(s);return{text:a,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:i,lineWidth:l.borderWidth,pointStyle:r,hidden:!t.getDataVisibility(s),index:s}})}return[]}},onClick(t,n,r){r.chart.toggleDataVisibility(n.index),r.chart.update()}}}});class zo extends In{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const n=this._cachedMeta,{dataset:r,data:i=[],_dataset:a}=n,s=this.chart._animationsDisabled;let{start:o,count:l}=kT(n,i,s);this._drawStart=o,this._drawCount=l,PT(n)&&(o=0,l=i.length),r._chart=this.chart,r._datasetIndex=this.index,r._decimated=!!a._decimated,r.points=i;const u=this.resolveDatasetElementOptions(t);this.options.showLine||(u.borderWidth=0),u.segment=this.options.segment,this.updateElement(r,void 0,{animated:!s,options:u},t),this.updateElements(i,o,l,t)}updateElements(t,n,r,i){const a=i==="reset",{iScale:s,vScale:o,_stacked:l,_dataset:u}=this._cachedMeta,{sharedOptions:c,includeOptions:d}=this._getSharedOptions(n,i),f=s.axis,h=o.axis,{spanGaps:p,segment:g}=this.options,b=ws(p)?p:Number.POSITIVE_INFINITY,v=this.chart._animationsDisabled||a||i==="none",m=n+r,$=t.length;let w=n>0&&this.getParsed(n-1);for(let D=0;D<$;++D){const S=t[D],k=v?S:{};if(D<n||D>=m){k.skip=!0;continue}const x=this.getParsed(D),T=ce(x[h]),P=k[f]=s.getPixelForValue(x[f],D),E=k[h]=a||T?o.getBasePixel():o.getPixelForValue(l?this.applyStack(o,x,l):x[h],D);k.skip=isNaN(P)||isNaN(E)||T,k.stop=D>0&&Math.abs(x[f]-w[f])>b,g&&(k.parsed=x,k.raw=u.data[D]),d&&(k.options=c||this.resolveDataElementOptions(D,S.active?"active":i)),v||this.updateElement(S,D,k,i),w=x}}getMaxOverflow(){const t=this._cachedMeta,n=t.dataset,r=n.options&&n.options.borderWidth||0,i=t.data||[];if(!i.length)return r;const a=i[0].size(this.resolveDataElementOptions(0)),s=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(r,a,s)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}j(zo,"id","line"),j(zo,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),j(zo,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});class us extends In{constructor(t,n){super(t,n),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const n=this._cachedMeta,r=this.chart,i=r.data.labels||[],a=Ul(n._parsed[t].r,r.options.locale);return{label:i[t]||"",value:a}}parseObjectData(t,n,r,i){return IT.bind(this)(t,n,r,i)}update(t){const n=this._cachedMeta.data;this._updateRadius(),this.updateElements(n,0,n.length,t)}getMinMax(){const t=this._cachedMeta,n={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach((r,i)=>{const a=this.getParsed(i).r;!isNaN(a)&&this.chart.getDataVisibility(i)&&(a<n.min&&(n.min=a),a>n.max&&(n.max=a))}),n}_updateRadius(){const t=this.chart,n=t.chartArea,r=t.options,i=Math.min(n.right-n.left,n.bottom-n.top),a=Math.max(i/2,0),s=Math.max(r.cutoutPercentage?a/100*r.cutoutPercentage:1,0),o=(a-s)/t.getVisibleDatasetCount();this.outerRadius=a-o*this.index,this.innerRadius=this.outerRadius-o}updateElements(t,n,r,i){const a=i==="reset",s=this.chart,l=s.options.animation,u=this._cachedMeta.rScale,c=u.xCenter,d=u.yCenter,f=u.getIndexAngle(0)-.5*Me;let h=f,p;const g=360/this.countVisibleElements();for(p=0;p<n;++p)h+=this._computeAngle(p,i,g);for(p=n;p<n+r;p++){const b=t[p];let v=h,m=h+this._computeAngle(p,i,g),$=s.getDataVisibility(p)?u.getDistanceFromCenterForValue(this.getParsed(p).r):0;h=m,a&&(l.animateScale&&($=0),l.animateRotate&&(v=m=f));const w={x:c,y:d,innerRadius:0,outerRadius:$,startAngle:v,endAngle:m,options:this.resolveDataElementOptions(p,b.active?"active":i)};this.updateElement(b,p,w,i)}}countVisibleElements(){const t=this._cachedMeta;let n=0;return t.data.forEach((r,i)=>{!isNaN(this.getParsed(i).r)&&this.chart.getDataVisibility(i)&&n++}),n}_computeAngle(t,n,r){return this.chart.getDataVisibility(t)?An(this.resolveDataElementOptions(t,n).angle||r):0}}j(us,"id","polarArea"),j(us,"defaults",{dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0}),j(us,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const n=t.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:r,color:i}}=t.legend.options;return n.labels.map((a,s)=>{const l=t.getDatasetMeta(0).controller.getStyle(s);return{text:a,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:i,lineWidth:l.borderWidth,pointStyle:r,hidden:!t.getDataVisibility(s),index:s}})}return[]}},onClick(t,n,r){r.chart.toggleDataVisibility(n.index),r.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}});class Gy extends Hi{}j(Gy,"id","pie"),j(Gy,"defaults",{cutout:0,rotation:0,circumference:360,radius:"100%"});class cc extends In{getLabelAndValue(t){const n=this._cachedMeta.vScale,r=this.getParsed(t);return{label:n.getLabels()[t],value:""+n.getLabelForValue(r[n.axis])}}parseObjectData(t,n,r,i){return IT.bind(this)(t,n,r,i)}update(t){const n=this._cachedMeta,r=n.dataset,i=n.data||[],a=n.iScale.getLabels();if(r.points=i,t!=="resize"){const s=this.resolveDatasetElementOptions(t);this.options.showLine||(s.borderWidth=0);const o={_loop:!0,_fullLoop:a.length===i.length,options:s};this.updateElement(r,void 0,o,t)}this.updateElements(i,0,i.length,t)}updateElements(t,n,r,i){const a=this._cachedMeta.rScale,s=i==="reset";for(let o=n;o<n+r;o++){const l=t[o],u=this.resolveDataElementOptions(o,l.active?"active":i),c=a.getPointPositionForValue(o,this.getParsed(o).r),d=s?a.xCenter:c.x,f=s?a.yCenter:c.y,h={x:d,y:f,angle:c.angle,skip:isNaN(d)||isNaN(f),options:u};this.updateElement(l,o,h,i)}}}j(cc,"id","radar"),j(cc,"defaults",{datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}}),j(cc,"overrides",{aspectRatio:1,scales:{r:{type:"radialLinear"}}});class dc extends In{getLabelAndValue(t){const n=this._cachedMeta,r=this.chart.data.labels||[],{xScale:i,yScale:a}=n,s=this.getParsed(t),o=i.getLabelForValue(s.x),l=a.getLabelForValue(s.y);return{label:r[t]||"",value:"("+o+", "+l+")"}}update(t){const n=this._cachedMeta,{data:r=[]}=n,i=this.chart._animationsDisabled;let{start:a,count:s}=kT(n,r,i);if(this._drawStart=a,this._drawCount=s,PT(n)&&(a=0,s=r.length),this.options.showLine){this.datasetElementType||this.addElements();const{dataset:o,_dataset:l}=n;o._chart=this.chart,o._datasetIndex=this.index,o._decimated=!!l._decimated,o.points=r;const u=this.resolveDatasetElementOptions(t);u.segment=this.options.segment,this.updateElement(o,void 0,{animated:!i,options:u},t)}else this.datasetElementType&&(delete n.dataset,this.datasetElementType=!1);this.updateElements(r,a,s,t)}addElements(){const{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(t,n,r,i){const a=i==="reset",{iScale:s,vScale:o,_stacked:l,_dataset:u}=this._cachedMeta,c=this.resolveDataElementOptions(n,i),d=this.getSharedOptions(c),f=this.includeOptions(i,d),h=s.axis,p=o.axis,{spanGaps:g,segment:b}=this.options,v=ws(g)?g:Number.POSITIVE_INFINITY,m=this.chart._animationsDisabled||a||i==="none";let $=n>0&&this.getParsed(n-1);for(let w=n;w<n+r;++w){const D=t[w],S=this.getParsed(w),k=m?D:{},x=ce(S[p]),T=k[h]=s.getPixelForValue(S[h],w),P=k[p]=a||x?o.getBasePixel():o.getPixelForValue(l?this.applyStack(o,S,l):S[p],w);k.skip=isNaN(T)||isNaN(P)||x,k.stop=w>0&&Math.abs(S[h]-$[h])>v,b&&(k.parsed=S,k.raw=u.data[w]),f&&(k.options=d||this.resolveDataElementOptions(w,D.active?"active":i)),m||this.updateElement(D,w,k,i),$=S}this.updateSharedOptions(d,i,c)}getMaxOverflow(){const t=this._cachedMeta,n=t.data||[];if(!this.options.showLine){let o=0;for(let l=n.length-1;l>=0;--l)o=Math.max(o,n[l].size(this.resolveDataElementOptions(l))/2);return o>0&&o}const r=t.dataset,i=r.options&&r.options.borderWidth||0;if(!n.length)return i;const a=n[0].size(this.resolveDataElementOptions(0)),s=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(i,a,s)/2}}j(dc,"id","scatter"),j(dc,"defaults",{datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1}),j(dc,"overrides",{interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}});var rH=Object.freeze({__proto__:null,BarController:lc,BubbleController:uc,DoughnutController:Hi,LineController:zo,PieController:Gy,PolarAreaController:us,RadarController:cc,ScatterController:dc});function Ei(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class K${constructor(t){j(this,"options");this.options=t||{}}static override(t){Object.assign(K$.prototype,t)}init(){}formats(){return Ei()}parse(){return Ei()}format(){return Ei()}add(){return Ei()}diff(){return Ei()}startOf(){return Ei()}endOf(){return Ei()}}var iH={_date:K$};function aH(e,t,n,r){const{controller:i,data:a,_sorted:s}=e,o=i._cachedMeta.iScale;if(o&&t===o.axis&&t!=="r"&&s&&a.length){const l=o._reversePixels?kW:gr;if(r){if(i._sharedOptions){const u=a[0],c=typeof u.getRange=="function"&&u.getRange(t);if(c){const d=l(a,t,n-c),f=l(a,t,n+c);return{lo:d.lo,hi:f.hi}}}}else return l(a,t,n)}return{lo:0,hi:a.length-1}}function Hl(e,t,n,r,i){const a=e.getSortedVisibleDatasetMetas(),s=n[t];for(let o=0,l=a.length;o<l;++o){const{index:u,data:c}=a[o],{lo:d,hi:f}=aH(a[o],t,s,i);for(let h=d;h<=f;++h){const p=c[h];p.skip||r(p,u,h)}}}function sH(e){const t=e.indexOf("x")!==-1,n=e.indexOf("y")!==-1;return function(r,i){const a=t?Math.abs(r.x-i.x):0,s=n?Math.abs(r.y-i.y):0;return Math.sqrt(Math.pow(a,2)+Math.pow(s,2))}}function gp(e,t,n,r,i){const a=[];return!i&&!e.isPointInArea(t)||Hl(e,n,t,function(o,l,u){!i&&!vr(o,e.chartArea,0)||o.inRange(t.x,t.y,r)&&a.push({element:o,datasetIndex:l,index:u})},!0),a}function oH(e,t,n,r){let i=[];function a(s,o,l){const{startAngle:u,endAngle:c}=s.getProps(["startAngle","endAngle"],r),{angle:d}=DT(s,{x:t.x,y:t.y});$l(d,u,c)&&i.push({element:s,datasetIndex:o,index:l})}return Hl(e,n,t,a),i}function lH(e,t,n,r,i,a){let s=[];const o=sH(n);let l=Number.POSITIVE_INFINITY;function u(c,d,f){const h=c.inRange(t.x,t.y,i);if(r&&!h)return;const p=c.getCenterPoint(i);if(!(!!a||e.isPointInArea(p))&&!h)return;const b=o(t,p);b<l?(s=[{element:c,datasetIndex:d,index:f}],l=b):b===l&&s.push({element:c,datasetIndex:d,index:f})}return Hl(e,n,t,u),s}function vp(e,t,n,r,i,a){return!a&&!e.isPointInArea(t)?[]:n==="r"&&!r?oH(e,t,n,i):lH(e,t,n,r,i,a)}function b6(e,t,n,r,i){const a=[],s=n==="x"?"inXRange":"inYRange";let o=!1;return Hl(e,n,t,(l,u,c)=>{l[s](t[n],i)&&(a.push({element:l,datasetIndex:u,index:c}),o=o||l.inRange(t.x,t.y,i))}),r&&!o?[]:a}var uH={evaluateInteractionItems:Hl,modes:{index(e,t,n,r){const i=Fi(t,e),a=n.axis||"x",s=n.includeInvisible||!1,o=n.intersect?gp(e,i,a,r,s):vp(e,i,a,!1,r,s),l=[];return o.length?(e.getSortedVisibleDatasetMetas().forEach(u=>{const c=o[0].index,d=u.data[c];d&&!d.skip&&l.push({element:d,datasetIndex:u.index,index:c})}),l):[]},dataset(e,t,n,r){const i=Fi(t,e),a=n.axis||"xy",s=n.includeInvisible||!1;let o=n.intersect?gp(e,i,a,r,s):vp(e,i,a,!1,r,s);if(o.length>0){const l=o[0].datasetIndex,u=e.getDatasetMeta(l).data;o=[];for(let c=0;c<u.length;++c)o.push({element:u[c],datasetIndex:l,index:c})}return o},point(e,t,n,r){const i=Fi(t,e),a=n.axis||"xy",s=n.includeInvisible||!1;return gp(e,i,a,r,s)},nearest(e,t,n,r){const i=Fi(t,e),a=n.axis||"xy",s=n.includeInvisible||!1;return vp(e,i,a,n.intersect,r,s)},x(e,t,n,r){const i=Fi(t,e);return b6(e,i,"x",n.intersect,r)},y(e,t,n,r){const i=Fi(t,e);return b6(e,i,"y",n.intersect,r)}}};const YT=["left","top","right","bottom"];function Js(e,t){return e.filter(n=>n.pos===t)}function y6(e,t){return e.filter(n=>YT.indexOf(n.pos)===-1&&n.box.axis===t)}function eo(e,t){return e.sort((n,r)=>{const i=t?r:n,a=t?n:r;return i.weight===a.weight?i.index-a.index:i.weight-a.weight})}function cH(e){const t=[];let n,r,i,a,s,o;for(n=0,r=(e||[]).length;n<r;++n)i=e[n],{position:a,options:{stack:s,stackWeight:o=1}}=i,t.push({index:n,box:i,pos:a,horizontal:i.isHorizontal(),weight:i.weight,stack:s&&a+s,stackWeight:o});return t}function dH(e){const t={};for(const n of e){const{stack:r,pos:i,stackWeight:a}=n;if(!r||!YT.includes(i))continue;const s=t[r]||(t[r]={count:0,placed:0,weight:0,size:0});s.count++,s.weight+=a}return t}function fH(e,t){const n=dH(e),{vBoxMaxWidth:r,hBoxMaxHeight:i}=t;let a,s,o;for(a=0,s=e.length;a<s;++a){o=e[a];const{fullSize:l}=o.box,u=n[o.stack],c=u&&o.stackWeight/u.weight;o.horizontal?(o.width=c?c*r:l&&t.availableWidth,o.height=i):(o.width=r,o.height=c?c*i:l&&t.availableHeight)}return n}function hH(e){const t=cH(e),n=eo(t.filter(u=>u.box.fullSize),!0),r=eo(Js(t,"left"),!0),i=eo(Js(t,"right")),a=eo(Js(t,"top"),!0),s=eo(Js(t,"bottom")),o=y6(t,"x"),l=y6(t,"y");return{fullSize:n,leftAndTop:r.concat(a),rightAndBottom:i.concat(l).concat(s).concat(o),chartArea:Js(t,"chartArea"),vertical:r.concat(i).concat(l),horizontal:a.concat(s).concat(o)}}function $6(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function qT(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function pH(e,t,n,r){const{pos:i,box:a}=n,s=e.maxPadding;if(!ae(i)){n.size&&(e[i]-=n.size);const d=r[n.stack]||{size:0,count:1};d.size=Math.max(d.size,n.horizontal?a.height:a.width),n.size=d.size/d.count,e[i]+=n.size}a.getPadding&&qT(s,a.getPadding());const o=Math.max(0,t.outerWidth-$6(s,e,"left","right")),l=Math.max(0,t.outerHeight-$6(s,e,"top","bottom")),u=o!==e.w,c=l!==e.h;return e.w=o,e.h=l,n.horizontal?{same:u,other:c}:{same:c,other:u}}function mH(e){const t=e.maxPadding;function n(r){const i=Math.max(t[r]-e[r],0);return e[r]+=i,i}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function gH(e,t){const n=t.maxPadding;function r(i){const a={left:0,top:0,right:0,bottom:0};return i.forEach(s=>{a[s]=Math.max(t[s],n[s])}),a}return r(e?["left","right"]:["top","bottom"])}function yo(e,t,n,r){const i=[];let a,s,o,l,u,c;for(a=0,s=e.length,u=0;a<s;++a){o=e[a],l=o.box,l.update(o.width||t.w,o.height||t.h,gH(o.horizontal,t));const{same:d,other:f}=pH(t,n,o,r);u|=d&&i.length,c=c||f,l.fullSize||i.push(o)}return u&&yo(i,t,n,r)||c}function Ou(e,t,n,r,i){e.top=n,e.left=t,e.right=t+r,e.bottom=n+i,e.width=r,e.height=i}function x6(e,t,n,r){const i=n.padding;let{x:a,y:s}=t;for(const o of e){const l=o.box,u=r[o.stack]||{count:1,placed:0,weight:1},c=o.stackWeight/u.weight||1;if(o.horizontal){const d=t.w*c,f=u.size||l.height;yl(u.start)&&(s=u.start),l.fullSize?Ou(l,i.left,s,n.outerWidth-i.right-i.left,f):Ou(l,t.left+u.placed,s,d,f),u.start=s,u.placed+=d,s=l.bottom}else{const d=t.h*c,f=u.size||l.width;yl(u.start)&&(a=u.start),l.fullSize?Ou(l,a,i.top,f,n.outerHeight-i.bottom-i.top):Ou(l,a,t.top+u.placed,f,d),u.start=a,u.placed+=d,a=l.right}}t.x=a,t.y=s}var Ct={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(n){t.draw(n)}}]},e.boxes.push(t)},removeBox(e,t){const n=e.boxes?e.boxes.indexOf(t):-1;n!==-1&&e.boxes.splice(n,1)},configure(e,t,n){t.fullSize=n.fullSize,t.position=n.position,t.weight=n.weight},update(e,t,n,r){if(!e)return;const i=Pt(e.options.layout.padding),a=Math.max(t-i.width,0),s=Math.max(n-i.height,0),o=hH(e.boxes),l=o.vertical,u=o.horizontal;me(e.boxes,g=>{typeof g.beforeLayout=="function"&&g.beforeLayout()});const c=l.reduce((g,b)=>b.box.options&&b.box.options.display===!1?g:g+1,0)||1,d=Object.freeze({outerWidth:t,outerHeight:n,padding:i,availableWidth:a,availableHeight:s,vBoxMaxWidth:a/2/c,hBoxMaxHeight:s/2}),f=Object.assign({},i);qT(f,Pt(r));const h=Object.assign({maxPadding:f,w:a,h:s,x:i.left,y:i.top},i),p=fH(l.concat(u),d);yo(o.fullSize,h,d,p),yo(l,h,d,p),yo(u,h,d,p)&&yo(l,h,d,p),mH(h),x6(o.leftAndTop,h,d,p),h.x+=h.w,h.y+=h.h,x6(o.rightAndBottom,h,d,p),e.chartArea={left:h.left,top:h.top,right:h.left+h.w,bottom:h.top+h.h,height:h.h,width:h.w},me(o.chartArea,g=>{const b=g.box;Object.assign(b,e.chartArea),b.update(h.w,h.h,{left:0,top:0,right:0,bottom:0})})}};class GT{acquireContext(t,n){}releaseContext(t){return!1}addEventListener(t,n,r){}removeEventListener(t,n,r){}getDevicePixelRatio(){return 1}getMaximumSize(t,n,r,i){return n=Math.max(0,n||t.width),r=r||t.height,{width:n,height:Math.max(0,i?Math.floor(n/i):r)}}isAttached(t){return!0}updateConfig(t){}}class vH extends GT{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const fc="$chartjs",bH={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},w6=e=>e===null||e==="";function yH(e,t){const n=e.style,r=e.getAttribute("height"),i=e.getAttribute("width");if(e[fc]={initial:{height:r,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",w6(i)){const a=i6(e,"width");a!==void 0&&(e.width=a)}if(w6(r))if(e.style.height==="")e.height=e.width/(t||2);else{const a=i6(e,"height");a!==void 0&&(e.height=a)}return e}const ZT=xU?{passive:!0}:!1;function $H(e,t,n){e&&e.addEventListener(t,n,ZT)}function xH(e,t,n){e&&e.canvas&&e.canvas.removeEventListener(t,n,ZT)}function wH(e,t){const n=bH[e.type]||e.type,{x:r,y:i}=Fi(e,t);return{type:n,chart:t,native:e,x:r!==void 0?r:null,y:i!==void 0?i:null}}function qd(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function DH(e,t,n){const r=e.canvas,i=new MutationObserver(a=>{let s=!1;for(const o of a)s=s||qd(o.addedNodes,r),s=s&&!qd(o.removedNodes,r);s&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}function _H(e,t,n){const r=e.canvas,i=new MutationObserver(a=>{let s=!1;for(const o of a)s=s||qd(o.removedNodes,r),s=s&&!qd(o.addedNodes,r);s&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}const wl=new Map;let D6=0;function XT(){const e=window.devicePixelRatio;e!==D6&&(D6=e,wl.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function EH(e,t){wl.size||window.addEventListener("resize",XT),wl.set(e,t)}function SH(e){wl.delete(e),wl.size||window.removeEventListener("resize",XT)}function CH(e,t,n){const r=e.canvas,i=r&&H$(r);if(!i)return;const a=CT((o,l)=>{const u=i.clientWidth;n(o,l),u<i.clientWidth&&n()},window),s=new ResizeObserver(o=>{const l=o[0],u=l.contentRect.width,c=l.contentRect.height;u===0&&c===0||a(u,c)});return s.observe(i),EH(e,a),s}function bp(e,t,n){n&&n.disconnect(),t==="resize"&&SH(e)}function kH(e,t,n){const r=e.canvas,i=CT(a=>{e.ctx!==null&&n(wH(a,e))},e);return $H(r,t,i),i}class PH extends GT{acquireContext(t,n){const r=t&&t.getContext&&t.getContext("2d");return r&&r.canvas===t?(yH(t,n),r):null}releaseContext(t){const n=t.canvas;if(!n[fc])return!1;const r=n[fc].initial;["height","width"].forEach(a=>{const s=r[a];ce(s)?n.removeAttribute(a):n.setAttribute(a,s)});const i=r.style||{};return Object.keys(i).forEach(a=>{n.style[a]=i[a]}),n.width=n.width,delete n[fc],!0}addEventListener(t,n,r){this.removeEventListener(t,n);const i=t.$proxies||(t.$proxies={}),s={attach:DH,detach:_H,resize:CH}[n]||kH;i[n]=s(t,n,r)}removeEventListener(t,n){const r=t.$proxies||(t.$proxies={}),i=r[n];if(!i)return;({attach:bp,detach:bp,resize:bp}[n]||xH)(t,n,i),r[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,r,i){return $U(t,n,r,i)}isAttached(t){const n=t&&H$(t);return!!(n&&n.isConnected)}}function TH(e){return!U$()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?vH:PH}var Uu;let Cr=(Uu=class{constructor(){j(this,"x");j(this,"y");j(this,"active",!1);j(this,"options");j(this,"$animations")}tooltipPosition(t){const{x:n,y:r}=this.getProps(["x","y"],t);return{x:n,y:r}}hasValue(){return ws(this.x)&&ws(this.y)}getProps(t,n){const r=this.$animations;if(!n||!r)return this;const i={};return t.forEach(a=>{i[a]=r[a]&&r[a].active()?r[a]._to:this[a]}),i}},j(Uu,"defaults",{}),j(Uu,"defaultRoutes"),Uu);function RH(e,t){const n=e.options.ticks,r=MH(e),i=Math.min(n.maxTicksLimit||r,r),a=n.major.enabled?AH(t):[],s=a.length,o=a[0],l=a[s-1],u=[];if(s>i)return OH(t,u,a,s/i),u;const c=FH(a,t,i);if(s>0){let d,f;const h=s>1?Math.round((l-o)/(s-1)):null;for(Bu(t,u,c,ce(h)?0:o-h,o),d=0,f=s-1;d<f;d++)Bu(t,u,c,a[d],a[d+1]);return Bu(t,u,c,l,ce(h)?t.length:l+h),u}return Bu(t,u,c),u}function MH(e){const t=e.options.offset,n=e._tickSize(),r=e._length/n+(t?0:1),i=e._maxLength/n;return Math.floor(Math.min(r,i))}function FH(e,t,n){const r=BH(e),i=t.length/n;if(!r)return Math.max(i,1);const a=_W(r);for(let s=0,o=a.length-1;s<o;s++){const l=a[s];if(l>i)return l}return Math.max(i,1)}function AH(e){const t=[];let n,r;for(n=0,r=e.length;n<r;n++)e[n].major&&t.push(n);return t}function OH(e,t,n,r){let i=0,a=n[0],s;for(r=Math.ceil(r),s=0;s<e.length;s++)s===a&&(t.push(e[s]),i++,a=n[i*r])}function Bu(e,t,n,r,i){const a=J(r,0),s=Math.min(J(i,e.length),e.length);let o=0,l,u,c;for(n=Math.ceil(n),i&&(l=i-r,n=l/Math.floor(l/n)),c=a;c<0;)o++,c=Math.round(a+o*n);for(u=Math.max(a,0);u<s;u++)u===c&&(t.push(e[u]),o++,c=Math.round(a+o*n))}function BH(e){const t=e.length;let n,r;if(t<2)return!1;for(r=e[0],n=1;n<t;++n)if(e[n]-e[n-1]!==r)return!1;return r}const IH=e=>e==="left"?"right":e==="right"?"left":e,_6=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n,E6=(e,t)=>Math.min(t||e,e);function S6(e,t){const n=[],r=e.length/t,i=e.length;let a=0;for(;a<i;a+=r)n.push(e[Math.floor(a)]);return n}function LH(e,t,n){const r=e.ticks.length,i=Math.min(t,r-1),a=e._startPixel,s=e._endPixel,o=1e-6;let l=e.getPixelForTick(i),u;if(!(n&&(r===1?u=Math.max(l-a,s-l):t===0?u=(e.getPixelForTick(1)-l)/2:u=(l-e.getPixelForTick(i-1))/2,l+=i<t?u:-u,l<a-o||l>s+o)))return l}function NH(e,t){me(e,n=>{const r=n.gc,i=r.length/2;let a;if(i>t){for(a=0;a<i;++a)delete n.data[r[a]];r.splice(0,i)}})}function to(e){return e.drawTicks?e.tickLength:0}function C6(e,t){if(!e.display)return 0;const n=it(e.font,t),r=Pt(e.padding);return(Be(e.text)?e.text.length:1)*n.lineHeight+r.height}function jH(e,t){return bi(e,{scale:t,type:"scale"})}function zH(e,t,n){return bi(e,{tick:n,index:t,type:"tick"})}function VH(e,t,n){let r=L$(e);return(n&&t!=="right"||!n&&t==="right")&&(r=IH(r)),r}function WH(e,t,n,r){const{top:i,left:a,bottom:s,right:o,chart:l}=e,{chartArea:u,scales:c}=l;let d=0,f,h,p;const g=s-i,b=o-a;if(e.isHorizontal()){if(h=Dt(r,a,o),ae(n)){const v=Object.keys(n)[0],m=n[v];p=c[v].getPixelForValue(m)+g-t}else n==="center"?p=(u.bottom+u.top)/2+g-t:p=_6(e,n,t);f=o-a}else{if(ae(n)){const v=Object.keys(n)[0],m=n[v];h=c[v].getPixelForValue(m)-b+t}else n==="center"?h=(u.left+u.right)/2-b+t:h=_6(e,n,t);p=Dt(r,s,i),d=n==="left"?-qe:qe}return{titleX:h,titleY:p,maxWidth:f,rotation:d}}class ya extends Cr{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,n){return t}getUserBounds(){let{_userMin:t,_userMax:n,_suggestedMin:r,_suggestedMax:i}=this;return t=en(t,Number.POSITIVE_INFINITY),n=en(n,Number.NEGATIVE_INFINITY),r=en(r,Number.POSITIVE_INFINITY),i=en(i,Number.NEGATIVE_INFINITY),{min:en(t,r),max:en(n,i),minDefined:Ve(t),maxDefined:Ve(n)}}getMinMax(t){let{min:n,max:r,minDefined:i,maxDefined:a}=this.getUserBounds(),s;if(i&&a)return{min:n,max:r};const o=this.getMatchingVisibleMetas();for(let l=0,u=o.length;l<u;++l)s=o[l].controller.getMinMax(this,t),i||(n=Math.min(n,s.min)),a||(r=Math.max(r,s.max));return n=a&&n>r?r:n,r=i&&n>r?n:r,{min:en(n,en(r,n)),max:en(r,en(n,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){De(this.options.beforeUpdate,[this])}update(t,n,r){const{beginAtZero:i,grace:a,ticks:s}=this.options,o=s.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=n,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=QW(this,a,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=o<this.ticks.length;this._convertTicksToLabels(l?S6(this.ticks,o):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),s.display&&(s.autoSkip||s.source==="auto")&&(this.ticks=RH(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t=this.options.reverse,n,r;this.isHorizontal()?(n=this.left,r=this.right):(n=this.top,r=this.bottom,t=!t),this._startPixel=n,this._endPixel=r,this._reversePixels=t,this._length=r-n,this._alignToPixels=this.options.alignToPixels}afterUpdate(){De(this.options.afterUpdate,[this])}beforeSetDimensions(){De(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){De(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),De(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){De(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const n=this.options.ticks;let r,i,a;for(r=0,i=t.length;r<i;r++)a=t[r],a.label=De(n.callback,[a.value,r,t],this)}afterTickToLabelConversion(){De(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){De(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,n=t.ticks,r=E6(this.ticks.length,t.ticks.maxTicksLimit),i=n.minRotation||0,a=n.maxRotation;let s=i,o,l,u;if(!this._isVisible()||!n.display||i>=a||r<=1||!this.isHorizontal()){this.labelRotation=i;return}const c=this._getLabelSizes(),d=c.widest.width,f=c.highest.height,h=dt(this.chart.width-d,0,this.maxWidth);o=t.offset?this.maxWidth/r:h/(r-1),d+6>o&&(o=h/(r-(t.offset?.5:1)),l=this.maxHeight-to(t.grid)-n.padding-C6(t.title,this.chart.options.font),u=Math.sqrt(d*d+f*f),s=B$(Math.min(Math.asin(dt((c.highest.height+6)/o,-1,1)),Math.asin(dt(l/u,-1,1))-Math.asin(dt(f/u,-1,1)))),s=Math.max(i,Math.min(a,s))),this.labelRotation=s}afterCalculateLabelRotation(){De(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){De(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:n,options:{ticks:r,title:i,grid:a}}=this,s=this._isVisible(),o=this.isHorizontal();if(s){const l=C6(i,n.options.font);if(o?(t.width=this.maxWidth,t.height=to(a)+l):(t.height=this.maxHeight,t.width=to(a)+l),r.display&&this.ticks.length){const{first:u,last:c,widest:d,highest:f}=this._getLabelSizes(),h=r.padding*2,p=An(this.labelRotation),g=Math.cos(p),b=Math.sin(p);if(o){const v=r.mirror?0:b*d.width+g*f.height;t.height=Math.min(this.maxHeight,t.height+v+h)}else{const v=r.mirror?0:g*d.width+b*f.height;t.width=Math.min(this.maxWidth,t.width+v+h)}this._calculatePadding(u,c,b,g)}}this._handleMargins(),o?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,n,r,i){const{ticks:{align:a,padding:s},position:o}=this.options,l=this.labelRotation!==0,u=o!=="top"&&this.axis==="x";if(this.isHorizontal()){const c=this.getPixelForTick(0)-this.left,d=this.right-this.getPixelForTick(this.ticks.length-1);let f=0,h=0;l?u?(f=i*t.width,h=r*n.height):(f=r*t.height,h=i*n.width):a==="start"?h=n.width:a==="end"?f=t.width:a!=="inner"&&(f=t.width/2,h=n.width/2),this.paddingLeft=Math.max((f-c+s)*this.width/(this.width-c),0),this.paddingRight=Math.max((h-d+s)*this.width/(this.width-d),0)}else{let c=n.height/2,d=t.height/2;a==="start"?(c=0,d=t.height):a==="end"&&(c=n.height,d=0),this.paddingTop=c+s,this.paddingBottom=d+s}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){De(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:n}=this.options;return n==="top"||n==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let n,r;for(n=0,r=t.length;n<r;n++)ce(t[n].label)&&(t.splice(n,1),r--,n--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const n=this.options.ticks.sampleSize;let r=this.ticks;n<r.length&&(r=S6(r,n)),this._labelSizes=t=this._computeLabelSizes(r,r.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,n,r){const{ctx:i,_longestTextCache:a}=this,s=[],o=[],l=Math.floor(n/E6(n,r));let u=0,c=0,d,f,h,p,g,b,v,m,$,w,D;for(d=0;d<n;d+=l){if(p=t[d].label,g=this._resolveTickFontOptions(d),i.font=b=g.string,v=a[b]=a[b]||{data:{},gc:[]},m=g.lineHeight,$=w=0,!ce(p)&&!Be(p))$=Kd(i,v.data,v.gc,$,p),w=m;else if(Be(p))for(f=0,h=p.length;f<h;++f)D=p[f],!ce(D)&&!Be(D)&&($=Kd(i,v.data,v.gc,$,D),w+=m);s.push($),o.push(w),u=Math.max($,u),c=Math.max(w,c)}NH(a,n);const S=s.indexOf(u),k=o.indexOf(c),x=T=>({width:s[T]||0,height:o[T]||0});return{first:x(0),last:x(n-1),widest:x(S),highest:x(k),widths:s,heights:o}}getLabelForValue(t){return t}getPixelForValue(t,n){return NaN}getValueForPixel(t){}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const n=this._startPixel+t*this._length;return CW(this._alignToPixels?_i(this.chart,n,0):n)}getDecimalForPixel(t){const n=(t-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:n}=this;return t<0&&n<0?n:t>0&&n>0?t:0}getContext(t){const n=this.ticks||[];if(t>=0&&t<n.length){const r=n[t];return r.$context||(r.$context=zH(this.getContext(),t,r))}return this.$context||(this.$context=jH(this.chart.getContext(),this))}_tickSize(){const t=this.options.ticks,n=An(this.labelRotation),r=Math.abs(Math.cos(n)),i=Math.abs(Math.sin(n)),a=this._getLabelSizes(),s=t.autoSkipPadding||0,o=a?a.widest.width+s:0,l=a?a.highest.height+s:0;return this.isHorizontal()?l*r>o*i?o/r:l/i:l*i<o*r?l/r:o/i}_isVisible(){const t=this.options.display;return t!=="auto"?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const n=this.axis,r=this.chart,i=this.options,{grid:a,position:s,border:o}=i,l=a.offset,u=this.isHorizontal(),d=this.ticks.length+(l?1:0),f=to(a),h=[],p=o.setContext(this.getContext()),g=p.display?p.width:0,b=g/2,v=function(B){return _i(r,B,g)};let m,$,w,D,S,k,x,T,P,E,F,R;if(s==="top")m=v(this.bottom),k=this.bottom-f,T=m-b,E=v(t.top)+b,R=t.bottom;else if(s==="bottom")m=v(this.top),E=t.top,R=v(t.bottom)-b,k=m+b,T=this.top+f;else if(s==="left")m=v(this.right),S=this.right-f,x=m-b,P=v(t.left)+b,F=t.right;else if(s==="right")m=v(this.left),P=t.left,F=v(t.right)-b,S=m+b,x=this.left+f;else if(n==="x"){if(s==="center")m=v((t.top+t.bottom)/2+.5);else if(ae(s)){const B=Object.keys(s)[0],C=s[B];m=v(this.chart.scales[B].getPixelForValue(C))}E=t.top,R=t.bottom,k=m+b,T=k+f}else if(n==="y"){if(s==="center")m=v((t.left+t.right)/2);else if(ae(s)){const B=Object.keys(s)[0],C=s[B];m=v(this.chart.scales[B].getPixelForValue(C))}S=m-b,x=S-f,P=t.left,F=t.right}const M=J(i.ticks.maxTicksLimit,d),z=Math.max(1,Math.ceil(d/M));for($=0;$<d;$+=z){const B=this.getContext($),C=a.setContext(B),A=o.setContext(B),I=C.lineWidth,N=C.color,X=A.dash||[],Q=A.dashOffset,je=C.tickWidth,$e=C.tickColor,lt=C.tickBorderDash||[],xe=C.tickBorderDashOffset;w=LH(this,$,l),w!==void 0&&(D=_i(r,w,I),u?S=x=P=F=D:k=T=E=R=D,h.push({tx1:S,ty1:k,tx2:x,ty2:T,x1:P,y1:E,x2:F,y2:R,width:I,color:N,borderDash:X,borderDashOffset:Q,tickWidth:je,tickColor:$e,tickBorderDash:lt,tickBorderDashOffset:xe}))}return this._ticksLength=d,this._borderValue=m,h}_computeLabelItems(t){const n=this.axis,r=this.options,{position:i,ticks:a}=r,s=this.isHorizontal(),o=this.ticks,{align:l,crossAlign:u,padding:c,mirror:d}=a,f=to(r.grid),h=f+c,p=d?-c:h,g=-An(this.labelRotation),b=[];let v,m,$,w,D,S,k,x,T,P,E,F,R="middle";if(i==="top")S=this.bottom-p,k=this._getXAxisLabelAlignment();else if(i==="bottom")S=this.top+p,k=this._getXAxisLabelAlignment();else if(i==="left"){const z=this._getYAxisLabelAlignment(f);k=z.textAlign,D=z.x}else if(i==="right"){const z=this._getYAxisLabelAlignment(f);k=z.textAlign,D=z.x}else if(n==="x"){if(i==="center")S=(t.top+t.bottom)/2+h;else if(ae(i)){const z=Object.keys(i)[0],B=i[z];S=this.chart.scales[z].getPixelForValue(B)+h}k=this._getXAxisLabelAlignment()}else if(n==="y"){if(i==="center")D=(t.left+t.right)/2-h;else if(ae(i)){const z=Object.keys(i)[0],B=i[z];D=this.chart.scales[z].getPixelForValue(B)}k=this._getYAxisLabelAlignment(f).textAlign}n==="y"&&(l==="start"?R="top":l==="end"&&(R="bottom"));const M=this._getLabelSizes();for(v=0,m=o.length;v<m;++v){$=o[v],w=$.label;const z=a.setContext(this.getContext(v));x=this.getPixelForTick(v)+a.labelOffset,T=this._resolveTickFontOptions(v),P=T.lineHeight,E=Be(w)?w.length:1;const B=E/2,C=z.color,A=z.textStrokeColor,I=z.textStrokeWidth;let N=k;s?(D=x,k==="inner"&&(v===m-1?N=this.options.reverse?"left":"right":v===0?N=this.options.reverse?"right":"left":N="center"),i==="top"?u==="near"||g!==0?F=-E*P+P/2:u==="center"?F=-M.highest.height/2-B*P+P:F=-M.highest.height+P/2:u==="near"||g!==0?F=P/2:u==="center"?F=M.highest.height/2-B*P:F=M.highest.height-E*P,d&&(F*=-1),g!==0&&!z.showLabelBackdrop&&(D+=P/2*Math.sin(g))):(S=x,F=(1-E)*P/2);let X;if(z.showLabelBackdrop){const Q=Pt(z.backdropPadding),je=M.heights[v],$e=M.widths[v];let lt=F-Q.top,xe=0-Q.left;switch(R){case"middle":lt-=je/2;break;case"bottom":lt-=je;break}switch(k){case"center":xe-=$e/2;break;case"right":xe-=$e;break;case"inner":v===m-1?xe-=$e:v>0&&(xe-=$e/2);break}X={left:xe,top:lt,width:$e+Q.width,height:je+Q.height,color:z.backdropColor}}b.push({label:w,font:T,textOffset:F,options:{rotation:g,color:C,strokeColor:A,strokeWidth:I,textAlign:N,textBaseline:R,translation:[D,S],backdrop:X}})}return b}_getXAxisLabelAlignment(){const{position:t,ticks:n}=this.options;if(-An(this.labelRotation))return t==="top"?"left":"right";let i="center";return n.align==="start"?i="left":n.align==="end"?i="right":n.align==="inner"&&(i="inner"),i}_getYAxisLabelAlignment(t){const{position:n,ticks:{crossAlign:r,mirror:i,padding:a}}=this.options,s=this._getLabelSizes(),o=t+a,l=s.widest.width;let u,c;return n==="left"?i?(c=this.right+a,r==="near"?u="left":r==="center"?(u="center",c+=l/2):(u="right",c+=l)):(c=this.right-o,r==="near"?u="right":r==="center"?(u="center",c-=l/2):(u="left",c=this.left)):n==="right"?i?(c=this.left+a,r==="near"?u="right":r==="center"?(u="center",c-=l/2):(u="left",c-=l)):(c=this.left+o,r==="near"?u="left":r==="center"?(u="center",c+=l/2):(u="right",c=this.right)):u="right",{textAlign:u,x:c}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){const{ctx:t,options:{backgroundColor:n},left:r,top:i,width:a,height:s}=this;n&&(t.save(),t.fillStyle=n,t.fillRect(r,i,a,s),t.restore())}getLineWidthForValue(t){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const i=this.ticks.findIndex(a=>a.value===t);return i>=0?n.setContext(this.getContext(i)).lineWidth:0}drawGrid(t){const n=this.options.grid,r=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let a,s;const o=(l,u,c)=>{!c.width||!c.color||(r.save(),r.lineWidth=c.width,r.strokeStyle=c.color,r.setLineDash(c.borderDash||[]),r.lineDashOffset=c.borderDashOffset,r.beginPath(),r.moveTo(l.x,l.y),r.lineTo(u.x,u.y),r.stroke(),r.restore())};if(n.display)for(a=0,s=i.length;a<s;++a){const l=i[a];n.drawOnChartArea&&o({x:l.x1,y:l.y1},{x:l.x2,y:l.y2},l),n.drawTicks&&o({x:l.tx1,y:l.ty1},{x:l.tx2,y:l.ty2},{color:l.tickColor,width:l.tickWidth,borderDash:l.tickBorderDash,borderDashOffset:l.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:n,options:{border:r,grid:i}}=this,a=r.setContext(this.getContext()),s=r.display?a.width:0;if(!s)return;const o=i.setContext(this.getContext(0)).lineWidth,l=this._borderValue;let u,c,d,f;this.isHorizontal()?(u=_i(t,this.left,s)-s/2,c=_i(t,this.right,o)+o/2,d=f=l):(d=_i(t,this.top,s)-s/2,f=_i(t,this.bottom,o)+o/2,u=c=l),n.save(),n.lineWidth=a.width,n.strokeStyle=a.color,n.beginPath(),n.moveTo(u,d),n.lineTo(c,f),n.stroke(),n.restore()}drawLabels(t){if(!this.options.ticks.display)return;const r=this.ctx,i=this._computeLabelArea();i&&Wf(r,i);const a=this.getLabelItems(t);for(const s of a){const o=s.options,l=s.font,u=s.label,c=s.textOffset;la(r,u,0,c,l,o)}i&&Uf(r)}drawTitle(){const{ctx:t,options:{position:n,title:r,reverse:i}}=this;if(!r.display)return;const a=it(r.font),s=Pt(r.padding),o=r.align;let l=a.lineHeight/2;n==="bottom"||n==="center"||ae(n)?(l+=s.bottom,Be(r.text)&&(l+=a.lineHeight*(r.text.length-1))):l+=s.top;const{titleX:u,titleY:c,maxWidth:d,rotation:f}=WH(this,l,n,o);la(t,r.text,0,0,a,{color:r.color,maxWidth:d,rotation:f,textAlign:VH(o,n,i),textBaseline:"middle",translation:[u,c]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,n=t.ticks&&t.ticks.z||0,r=J(t.grid&&t.grid.z,-1),i=J(t.border&&t.border.z,0);return!this._isVisible()||this.draw!==ya.prototype.draw?[{z:n,draw:a=>{this.draw(a)}}]:[{z:r,draw:a=>{this.drawBackground(),this.drawGrid(a),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:n,draw:a=>{this.drawLabels(a)}}]}getMatchingVisibleMetas(t){const n=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",i=[];let a,s;for(a=0,s=n.length;a<s;++a){const o=n[a];o[r]===this.id&&(!t||o.type===t)&&i.push(o)}return i}_resolveTickFontOptions(t){const n=this.options.ticks.setContext(this.getContext(t));return it(n.font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class Iu{constructor(t,n,r){this.type=t,this.scope=n,this.override=r,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const n=Object.getPrototypeOf(t);let r;KH(n)&&(r=this.register(n));const i=this.items,a=t.id,s=this.scope+"."+a;if(!a)throw new Error("class does not have id: "+t);return a in i||(i[a]=t,UH(t,s,r),this.override&&We.override(t.id,t.overrides)),s}get(t){return this.items[t]}unregister(t){const n=this.items,r=t.id,i=this.scope;r in n&&delete n[r],i&&r in We[i]&&(delete We[i][r],this.override&&delete oa[r])}}function UH(e,t,n){const r=bl(Object.create(null),[n?We.get(n):{},We.get(t),e.defaults]);We.set(t,r),e.defaultRoutes&&HH(t,e.defaultRoutes),e.descriptors&&We.describe(t,e.descriptors)}function HH(e,t){Object.keys(t).forEach(n=>{const r=n.split("."),i=r.pop(),a=[e].concat(r).join("."),s=t[n].split("."),o=s.pop(),l=s.join(".");We.route(a,i,l,o)})}function KH(e){return"id"in e&&"defaults"in e}class YH{constructor(){this.controllers=new Iu(In,"datasets",!0),this.elements=new Iu(Cr,"elements"),this.plugins=new Iu(Object,"plugins"),this.scales=new Iu(ya,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,n,r){[...n].forEach(i=>{const a=r||this._getRegistryForType(i);r||a.isForType(i)||a===this.plugins&&i.id?this._exec(t,a,i):me(i,s=>{const o=r||this._getRegistryForType(s);this._exec(t,o,s)})})}_exec(t,n,r){const i=O$(t);De(r["before"+i],[],r),n[t](r),De(r["after"+i],[],r)}_getRegistryForType(t){for(let n=0;n<this._typedRegistries.length;n++){const r=this._typedRegistries[n];if(r.isForType(t))return r}return this.plugins}_get(t,n,r){const i=n.get(t);if(i===void 0)throw new Error('"'+t+'" is not a registered '+r+".");return i}}var Hn=new YH;class qH{constructor(){this._init=[]}notify(t,n,r,i){n==="beforeInit"&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const a=i?this._descriptors(t).filter(i):this._descriptors(t),s=this._notify(a,t,n,r);return n==="afterDestroy"&&(this._notify(a,t,"stop"),this._notify(this._init,t,"uninstall")),s}_notify(t,n,r,i){i=i||{};for(const a of t){const s=a.plugin,o=s[r],l=[n,i,a.options];if(De(o,l,s)===!1&&i.cancelable)return!1}return!0}invalidate(){ce(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const n=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),n}_createDescriptors(t,n){const r=t&&t.config,i=J(r.options&&r.options.plugins,{}),a=GH(r);return i===!1&&!n?[]:XH(t,a,i,n)}_notifyStateChanges(t){const n=this._oldCache||[],r=this._cache,i=(a,s)=>a.filter(o=>!s.some(l=>o.plugin.id===l.plugin.id));this._notify(i(n,r),t,"stop"),this._notify(i(r,n),t,"start")}}function GH(e){const t={},n=[],r=Object.keys(Hn.plugins.items);for(let a=0;a<r.length;a++)n.push(Hn.getPlugin(r[a]));const i=e.plugins||[];for(let a=0;a<i.length;a++){const s=i[a];n.indexOf(s)===-1&&(n.push(s),t[s.id]=!0)}return{plugins:n,localIds:t}}function ZH(e,t){return!t&&e===!1?null:e===!0?{}:e}function XH(e,{plugins:t,localIds:n},r,i){const a=[],s=e.getContext();for(const o of t){const l=o.id,u=ZH(r[l],i);u!==null&&a.push({plugin:o,options:QH(e.config,{plugin:o,local:n[l]},u,s)})}return a}function QH(e,{plugin:t,local:n},r,i){const a=e.pluginScopeKeys(t),s=e.getOptionScopes(r,a);return n&&t.defaults&&s.push(t.defaults),e.createResolver(s,i,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function Zy(e,t){const n=We.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function JH(e,t){let n=e;return e==="_index_"?n=t:e==="_value_"&&(n=t==="x"?"y":"x"),n}function eK(e,t){return e===t?"_index_":"_value_"}function k6(e){if(e==="x"||e==="y"||e==="r")return e}function tK(e){if(e==="top"||e==="bottom")return"x";if(e==="left"||e==="right")return"y"}function Xy(e,...t){if(k6(e))return e;for(const n of t){const r=n.axis||tK(n.position)||e.length>1&&k6(e[0].toLowerCase());if(r)return r}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function P6(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function nK(e,t){if(t.data&&t.data.datasets){const n=t.data.datasets.filter(r=>r.xAxisID===e||r.yAxisID===e);if(n.length)return P6(e,"x",n[0])||P6(e,"y",n[0])}return{}}function rK(e,t){const n=oa[e.type]||{scales:{}},r=t.scales||{},i=Zy(e.type,t),a=Object.create(null);return Object.keys(r).forEach(s=>{const o=r[s];if(!ae(o))return console.error(`Invalid scale configuration for scale: ${s}`);if(o._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${s}`);const l=Xy(s,o,nK(s,e),We.scales[o.type]),u=eK(l,i),c=n.scales||{};a[s]=Io(Object.create(null),[{axis:l},o,c[l],c[u]])}),e.data.datasets.forEach(s=>{const o=s.type||e.type,l=s.indexAxis||Zy(o,t),c=(oa[o]||{}).scales||{};Object.keys(c).forEach(d=>{const f=JH(d,l),h=s[f+"AxisID"]||f;a[h]=a[h]||Object.create(null),Io(a[h],[{axis:f},r[h],c[d]])})}),Object.keys(a).forEach(s=>{const o=a[s];Io(o,[We.scales[o.type],We.scale])}),a}function QT(e){const t=e.options||(e.options={});t.plugins=J(t.plugins,{}),t.scales=rK(e,t)}function JT(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function iK(e){return e=e||{},e.data=JT(e.data),QT(e),e}const T6=new Map,eR=new Set;function Lu(e,t){let n=T6.get(e);return n||(n=t(),T6.set(e,n),eR.add(n)),n}const no=(e,t,n)=>{const r=ci(t,n);r!==void 0&&e.add(r)};class aK{constructor(t){this._config=iK(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=JT(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),QT(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Lu(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return Lu(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return Lu(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){const n=t.id,r=this.type;return Lu(`${r}-plugin-${n}`,()=>[[`plugins.${n}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,n){const r=this._scopeCache;let i=r.get(t);return(!i||n)&&(i=new Map,r.set(t,i)),i}getOptionScopes(t,n,r){const{options:i,type:a}=this,s=this._cachedScopes(t,r),o=s.get(n);if(o)return o;const l=new Set;n.forEach(c=>{t&&(l.add(t),c.forEach(d=>no(l,t,d))),c.forEach(d=>no(l,i,d)),c.forEach(d=>no(l,oa[a]||{},d)),c.forEach(d=>no(l,We,d)),c.forEach(d=>no(l,Yy,d))});const u=Array.from(l);return u.length===0&&u.push(Object.create(null)),eR.has(n)&&s.set(n,u),u}chartOptionScopes(){const{options:t,type:n}=this;return[t,oa[n]||{},We.datasets[n]||{},{type:n},We,Yy]}resolveNamedOptions(t,n,r,i=[""]){const a={$shared:!0},{resolver:s,subPrefixes:o}=R6(this._resolverCache,t,i);let l=s;if(oK(s,n)){a.$shared=!1,r=di(r)?r():r;const u=this.createResolver(t,r,o);l=Ds(s,r,u)}for(const u of n)a[u]=l[u];return a}createResolver(t,n,r=[""],i){const{resolver:a}=R6(this._resolverCache,t,r);return ae(n)?Ds(a,n,void 0,i):a}}function R6(e,t,n){let r=e.get(t);r||(r=new Map,e.set(t,r));const i=n.join();let a=r.get(i);return a||(a={resolver:z$(t,n),subPrefixes:n.filter(o=>!o.toLowerCase().includes("hover"))},r.set(i,a)),a}const sK=e=>ae(e)&&Object.getOwnPropertyNames(e).some(t=>di(e[t]));function oK(e,t){const{isScriptable:n,isIndexable:r}=FT(e);for(const i of t){const a=n(i),s=r(i),o=(s||a)&&e[i];if(a&&(di(o)||sK(o))||s&&Be(o))return!0}return!1}var lK="4.4.3";const uK=["top","bottom","left","right","chartArea"];function M6(e,t){return e==="top"||e==="bottom"||uK.indexOf(e)===-1&&t==="x"}function F6(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function A6(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),De(n&&n.onComplete,[e],t)}function cK(e){const t=e.chart,n=t.options.animation;De(n&&n.onProgress,[e],t)}function tR(e){return U$()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const hc={},O6=e=>{const t=tR(e);return Object.values(hc).filter(n=>n.canvas===t).pop()};function dK(e,t,n){const r=Object.keys(e);for(const i of r){const a=+i;if(a>=t){const s=e[i];delete e[i],(n>0||a>t)&&(e[a+n]=s)}}}function fK(e,t,n,r){return!n||e.type==="mouseout"?null:r?t:e}function Nu(e,t,n){return e.options.clip?e[n]:t[n]}function hK(e,t){const{xScale:n,yScale:r}=e;return n&&r?{left:Nu(n,t,"left"),right:Nu(n,t,"right"),top:Nu(r,t,"top"),bottom:Nu(r,t,"bottom")}:t}var Rr;let As=(Rr=class{static register(...t){Hn.add(...t),B6()}static unregister(...t){Hn.remove(...t),B6()}constructor(t,n){const r=this.config=new aK(n),i=tR(t),a=O6(i);if(a)throw new Error("Canvas is already in use. Chart with ID '"+a.id+"' must be destroyed before the canvas with ID '"+a.canvas.id+"' can be reused.");const s=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||TH(i)),this.platform.updateConfig(r);const o=this.platform.acquireContext(i,s.aspectRatio),l=o&&o.canvas,u=l&&l.height,c=l&&l.width;if(this.id=mW(),this.ctx=o,this.canvas=l,this.width=c,this.height=u,this._options=s,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new qH,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=RW(d=>this.update(d),s.resizeDelay||0),this._dataChanges=[],hc[this.id]=this,!o||!l){console.error("Failed to create chart: can't acquire context from the given item");return}ar.listen(this,"complete",A6),ar.listen(this,"progress",cK),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:n},width:r,height:i,_aspectRatio:a}=this;return ce(t)?n&&a?a:i?r/i:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return Hn}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():r6(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return e6(this.canvas,this.ctx),this}stop(){return ar.stop(this),this}resize(t,n){ar.running(this)?this._resizeBeforeDraw={width:t,height:n}:this._resize(t,n)}_resize(t,n){const r=this.options,i=this.canvas,a=r.maintainAspectRatio&&this.aspectRatio,s=this.platform.getMaximumSize(i,t,n,a),o=r.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=s.width,this.height=s.height,this._aspectRatio=this.aspectRatio,r6(this,o,!0)&&(this.notifyPlugins("resize",{size:s}),De(r.onResize,[this,s],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};me(n,(r,i)=>{r.id=i})}buildOrUpdateScales(){const t=this.options,n=t.scales,r=this.scales,i=Object.keys(r).reduce((s,o)=>(s[o]=!1,s),{});let a=[];n&&(a=a.concat(Object.keys(n).map(s=>{const o=n[s],l=Xy(s,o),u=l==="r",c=l==="x";return{options:o,dposition:u?"chartArea":c?"bottom":"left",dtype:u?"radialLinear":c?"category":"linear"}}))),me(a,s=>{const o=s.options,l=o.id,u=Xy(l,o),c=J(o.type,s.dtype);(o.position===void 0||M6(o.position,u)!==M6(s.dposition))&&(o.position=s.dposition),i[l]=!0;let d=null;if(l in r&&r[l].type===c)d=r[l];else{const f=Hn.getScale(c);d=new f({id:l,type:c,ctx:this.ctx,chart:this}),r[d.id]=d}d.init(o,t)}),me(i,(s,o)=>{s||delete r[o]}),me(r,s=>{Ct.configure(this,s,s.options),Ct.addBox(this,s)})}_updateMetasets(){const t=this._metasets,n=this.data.datasets.length,r=t.length;if(t.sort((i,a)=>i.index-a.index),r>n){for(let i=n;i<r;++i)this._destroyDatasetMeta(i);t.splice(n,r-n)}this._sortedMetasets=t.slice(0).sort(F6("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:n}}=this;t.length>n.length&&delete this._stacks,t.forEach((r,i)=>{n.filter(a=>a===r._dataset).length===0&&this._destroyDatasetMeta(i)})}buildOrUpdateControllers(){const t=[],n=this.data.datasets;let r,i;for(this._removeUnreferencedMetasets(),r=0,i=n.length;r<i;r++){const a=n[r];let s=this.getDatasetMeta(r);const o=a.type||this.config.type;if(s.type&&s.type!==o&&(this._destroyDatasetMeta(r),s=this.getDatasetMeta(r)),s.type=o,s.indexAxis=a.indexAxis||Zy(o,this.options),s.order=a.order||0,s.index=r,s.label=""+a.label,s.visible=this.isDatasetVisible(r),s.controller)s.controller.updateIndex(r),s.controller.linkScales();else{const l=Hn.getController(o),{datasetElementType:u,dataElementType:c}=We.datasets[o];Object.assign(l,{dataElementType:Hn.getElement(c),datasetElementType:u&&Hn.getElement(u)}),s.controller=new l(this,r),t.push(s.controller)}}return this._updateMetasets(),t}_resetElements(){me(this.data.datasets,(t,n)=>{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const n=this.config;n.update();const r=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const a=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let s=0;for(let u=0,c=this.data.datasets.length;u<c;u++){const{controller:d}=this.getDatasetMeta(u),f=!i&&a.indexOf(d)===-1;d.buildOrUpdateElements(f),s=Math.max(+d.getMaxOverflow(),s)}s=this._minPadding=r.layout.autoPadding?s:0,this._updateLayout(s),i||me(a,u=>{u.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(F6("z","_idx"));const{_active:o,_lastEvent:l}=this;l?this._eventHandler(l,!0):o.length&&this._updateHoverStyles(o,o,!0),this.render()}_updateScales(){me(this.scales,t=>{Ct.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,n=new Set(Object.keys(this._listeners)),r=new Set(t.events);(!H5(n,r)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,n=this._getUniformDataChanges()||[];for(const{method:r,start:i,count:a}of n){const s=r==="_removeElements"?-a:a;dK(t,i,s)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const n=this.data.datasets.length,r=a=>new Set(t.filter(s=>s[0]===a).map((s,o)=>o+","+s.splice(1).join(","))),i=r(0);for(let a=1;a<n;a++)if(!H5(i,r(a)))return;return Array.from(i).map(a=>a.split(",")).map(a=>({method:a[1],start:+a[2],count:+a[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;Ct.update(this,this.width,this.height,t);const n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],me(this.boxes,i=>{r&&i.position==="chartArea"||(i.configure&&i.configure(),this._layers.push(...i._layers()))},this),this._layers.forEach((i,a)=>{i._idx=a}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let n=0,r=this.data.datasets.length;n<r;++n)this.getDatasetMeta(n).controller.configure();for(let n=0,r=this.data.datasets.length;n<r;++n)this._updateDataset(n,di(t)?t({datasetIndex:n}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,n){const r=this.getDatasetMeta(t),i={meta:r,index:t,mode:n,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",i)!==!1&&(r.controller._update(n),i.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",i))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(ar.has(this)?this.attached&&!ar.running(this)&&ar.start(this):(this.draw(),A6({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:r,height:i}=this._resizeBeforeDraw;this._resize(r,i),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const n=this._layers;for(t=0;t<n.length&&n[t].z<=0;++t)n[t].draw(this.chartArea);for(this._drawDatasets();t<n.length;++t)n[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const n=this._sortedMetasets,r=[];let i,a;for(i=0,a=n.length;i<a;++i){const s=n[i];(!t||s.visible)&&r.push(s)}return r}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const t=this.getSortedVisibleDatasetMetas();for(let n=t.length-1;n>=0;--n)this._drawDataset(t[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const n=this.ctx,r=t._clip,i=!r.disabled,a=hK(t,this.chartArea),s={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",s)!==!1&&(i&&Wf(n,{left:r.left===!1?0:a.left-r.left,right:r.right===!1?this.width:a.right+r.right,top:r.top===!1?0:a.top-r.top,bottom:r.bottom===!1?this.height:a.bottom+r.bottom}),t.controller.draw(),i&&Uf(n),s.cancelable=!1,this.notifyPlugins("afterDatasetDraw",s))}isPointInArea(t){return vr(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,r,i){const a=uH.modes[n];return typeof a=="function"?a(this,t,r,i):[]}getDatasetMeta(t){const n=this.data.datasets[t],r=this._metasets;let i=r.filter(a=>a&&a._dataset===n).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:t,_dataset:n,_parsed:[],_sorted:!1},r.push(i)),i}getContext(){return this.$context||(this.$context=bi(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const n=this.data.datasets[t];if(!n)return!1;const r=this.getDatasetMeta(t);return typeof r.hidden=="boolean"?!r.hidden:!n.hidden}setDatasetVisibility(t,n){const r=this.getDatasetMeta(t);r.hidden=!n}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,n,r){const i=r?"show":"hide",a=this.getDatasetMeta(t),s=a.controller._resolveAnimations(void 0,i);yl(n)?(a.data[n].hidden=!r,this.update()):(this.setDatasetVisibility(t,r),s.update(a,{visible:r}),this.update(o=>o.datasetIndex===t?i:void 0))}hide(t,n){this._updateVisibility(t,n,!1)}show(t,n){this._updateVisibility(t,n,!0)}_destroyDatasetMeta(t){const n=this._metasets[t];n&&n.controller&&n.controller._destroy(),delete this._metasets[t]}_stop(){let t,n;for(this.stop(),ar.remove(this),t=0,n=this.data.datasets.length;t<n;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:n}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),e6(t,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),delete hc[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,n=this.platform,r=(a,s)=>{n.addEventListener(this,a,s),t[a]=s},i=(a,s,o)=>{a.offsetX=s,a.offsetY=o,this._eventHandler(a)};me(this.options.events,a=>r(a,i))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,n=this.platform,r=(l,u)=>{n.addEventListener(this,l,u),t[l]=u},i=(l,u)=>{t[l]&&(n.removeEventListener(this,l,u),delete t[l])},a=(l,u)=>{this.canvas&&this.resize(l,u)};let s;const o=()=>{i("attach",o),this.attached=!0,this.resize(),r("resize",a),r("detach",s)};s=()=>{this.attached=!1,i("resize",a),this._stop(),this._resize(0,0),r("attach",o)},n.isAttached(this.canvas)?o():s()}unbindEvents(){me(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},me(this._responsiveListeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,n,r){const i=r?"set":"remove";let a,s,o,l;for(n==="dataset"&&(a=this.getDatasetMeta(t[0].datasetIndex),a.controller["_"+i+"DatasetHoverStyle"]()),o=0,l=t.length;o<l;++o){s=t[o];const u=s&&this.getDatasetMeta(s.datasetIndex).controller;u&&u[i+"HoverStyle"](s.element,s.datasetIndex,s.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const n=this._active||[],r=t.map(({datasetIndex:a,index:s})=>{const o=this.getDatasetMeta(a);if(!o)throw new Error("No dataset found at index "+a);return{datasetIndex:a,element:o.data[s],index:s}});!Wd(r,n)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,n))}notifyPlugins(t,n,r){return this._plugins.notify(this,t,n,r)}isPluginEnabled(t){return this._plugins._cache.filter(n=>n.plugin.id===t).length===1}_updateHoverStyles(t,n,r){const i=this.options.hover,a=(l,u)=>l.filter(c=>!u.some(d=>c.datasetIndex===d.datasetIndex&&c.index===d.index)),s=a(n,t),o=r?t:a(t,n);s.length&&this.updateHoverStyle(s,i.mode,!1),o.length&&i.mode&&this.updateHoverStyle(o,i.mode,!0)}_eventHandler(t,n){const r={event:t,replay:n,cancelable:!0,inChartArea:this.isPointInArea(t)},i=s=>(s.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",r,i)===!1)return;const a=this._handleEvent(t,n,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,i),(a||r.changed)&&this.render(),this}_handleEvent(t,n,r){const{_active:i=[],options:a}=this,s=n,o=this._getActiveElements(t,i,r,s),l=xW(t),u=fK(t,this._lastEvent,r,l);r&&(this._lastEvent=null,De(a.onHover,[t,o,this],this),l&&De(a.onClick,[t,o,this],this));const c=!Wd(o,i);return(c||n)&&(this._active=o,this._updateHoverStyles(o,i,n)),this._lastEvent=u,c}_getActiveElements(t,n,r,i){if(t.type==="mouseout")return[];if(!r)return n;const a=this.options.hover;return this.getElementsAtEventForMode(t,a.mode,a,i)}},j(Rr,"defaults",We),j(Rr,"instances",hc),j(Rr,"overrides",oa),j(Rr,"registry",Hn),j(Rr,"version",lK),j(Rr,"getChart",O6),Rr);function B6(){return me(As.instances,e=>e._plugins.invalidate())}function pK(e,t,n){const{startAngle:r,pixelMargin:i,x:a,y:s,outerRadius:o,innerRadius:l}=t;let u=i/o;e.beginPath(),e.arc(a,s,o,r-u,n+u),l>i?(u=i/l,e.arc(a,s,l,n+u,r-u,!0)):e.arc(a,s,i,n+qe,r-qe),e.closePath(),e.clip()}function mK(e){return j$(e,["outerStart","outerEnd","innerStart","innerEnd"])}function gK(e,t,n,r){const i=mK(e.options.borderRadius),a=(n-t)/2,s=Math.min(a,r*t/2),o=l=>{const u=(n-Math.min(a,l))*r/2;return dt(l,0,Math.min(a,u))};return{outerStart:o(i.outerStart),outerEnd:o(i.outerEnd),innerStart:dt(i.innerStart,0,s),innerEnd:dt(i.innerEnd,0,s)}}function Ta(e,t,n,r){return{x:n+e*Math.cos(t),y:r+e*Math.sin(t)}}function Gd(e,t,n,r,i,a){const{x:s,y:o,startAngle:l,pixelMargin:u,innerRadius:c}=t,d=Math.max(t.outerRadius+r+n-u,0),f=c>0?c+r+n+u:0;let h=0;const p=i-l;if(r){const z=c>0?c-r:0,B=d>0?d-r:0,C=(z+B)/2,A=C!==0?p*C/(C+r):p;h=(p-A)/2}const g=Math.max(.001,p*d-n/Me)/d,b=(p-g)/2,v=l+b+h,m=i-b-h,{outerStart:$,outerEnd:w,innerStart:D,innerEnd:S}=gK(t,f,d,m-v),k=d-$,x=d-w,T=v+$/k,P=m-w/x,E=f+D,F=f+S,R=v+D/E,M=m-S/F;if(e.beginPath(),a){const z=(T+P)/2;if(e.arc(s,o,d,T,z),e.arc(s,o,d,z,P),w>0){const I=Ta(x,P,s,o);e.arc(I.x,I.y,w,P,m+qe)}const B=Ta(F,m,s,o);if(e.lineTo(B.x,B.y),S>0){const I=Ta(F,M,s,o);e.arc(I.x,I.y,S,m+qe,M+Math.PI)}const C=(m-S/f+(v+D/f))/2;if(e.arc(s,o,f,m-S/f,C,!0),e.arc(s,o,f,C,v+D/f,!0),D>0){const I=Ta(E,R,s,o);e.arc(I.x,I.y,D,R+Math.PI,v-qe)}const A=Ta(k,v,s,o);if(e.lineTo(A.x,A.y),$>0){const I=Ta(k,T,s,o);e.arc(I.x,I.y,$,v-qe,T)}}else{e.moveTo(s,o);const z=Math.cos(T)*d+s,B=Math.sin(T)*d+o;e.lineTo(z,B);const C=Math.cos(P)*d+s,A=Math.sin(P)*d+o;e.lineTo(C,A)}e.closePath()}function vK(e,t,n,r,i){const{fullCircles:a,startAngle:s,circumference:o}=t;let l=t.endAngle;if(a){Gd(e,t,n,r,l,i);for(let u=0;u<a;++u)e.fill();isNaN(o)||(l=s+(o%Te||Te))}return Gd(e,t,n,r,l,i),e.fill(),l}function bK(e,t,n,r,i){const{fullCircles:a,startAngle:s,circumference:o,options:l}=t,{borderWidth:u,borderJoinStyle:c,borderDash:d,borderDashOffset:f}=l,h=l.borderAlign==="inner";if(!u)return;e.setLineDash(d||[]),e.lineDashOffset=f,h?(e.lineWidth=u*2,e.lineJoin=c||"round"):(e.lineWidth=u,e.lineJoin=c||"bevel");let p=t.endAngle;if(a){Gd(e,t,n,r,p,i);for(let g=0;g<a;++g)e.stroke();isNaN(o)||(p=s+(o%Te||Te))}h&&pK(e,t,p),a||(Gd(e,t,n,r,p,i),e.stroke())}class $o extends Cr{constructor(n){super();j(this,"circumference");j(this,"endAngle");j(this,"fullCircles");j(this,"innerRadius");j(this,"outerRadius");j(this,"pixelMargin");j(this,"startAngle");this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,n&&Object.assign(this,n)}inRange(n,r,i){const a=this.getProps(["x","y"],i),{angle:s,distance:o}=DT(a,{x:n,y:r}),{startAngle:l,endAngle:u,innerRadius:c,outerRadius:d,circumference:f}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],i),h=(this.options.spacing+this.options.borderWidth)/2,g=J(f,u-l)>=Te||$l(s,l,u),b=mr(o,c+h,d+h);return g&&b}getCenterPoint(n){const{x:r,y:i,startAngle:a,endAngle:s,innerRadius:o,outerRadius:l}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],n),{offset:u,spacing:c}=this.options,d=(a+s)/2,f=(o+l+c+u)/2;return{x:r+Math.cos(d)*f,y:i+Math.sin(d)*f}}tooltipPosition(n){return this.getCenterPoint(n)}draw(n){const{options:r,circumference:i}=this,a=(r.offset||0)/4,s=(r.spacing||0)/2,o=r.circular;if(this.pixelMargin=r.borderAlign==="inner"?.33:0,this.fullCircles=i>Te?Math.floor(i/Te):0,i===0||this.innerRadius<0||this.outerRadius<0)return;n.save();const l=(this.startAngle+this.endAngle)/2;n.translate(Math.cos(l)*a,Math.sin(l)*a);const u=1-Math.sin(Math.min(Me,i||0)),c=a*u;n.fillStyle=r.backgroundColor,n.strokeStyle=r.borderColor,vK(n,this,c,s,o),bK(n,this,c,s,o),n.restore()}}j($o,"id","arc"),j($o,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),j($o,"defaultRoutes",{backgroundColor:"backgroundColor"}),j($o,"descriptors",{_scriptable:!0,_indexable:n=>n!=="borderDash"});function nR(e,t,n=t){e.lineCap=J(n.borderCapStyle,t.borderCapStyle),e.setLineDash(J(n.borderDash,t.borderDash)),e.lineDashOffset=J(n.borderDashOffset,t.borderDashOffset),e.lineJoin=J(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=J(n.borderWidth,t.borderWidth),e.strokeStyle=J(n.borderColor,t.borderColor)}function yK(e,t,n){e.lineTo(n.x,n.y)}function $K(e){return e.stepped?WW:e.tension||e.cubicInterpolationMode==="monotone"?UW:yK}function rR(e,t,n={}){const r=e.length,{start:i=0,end:a=r-1}=n,{start:s,end:o}=t,l=Math.max(i,s),u=Math.min(a,o),c=i<s&&a<s||i>o&&a>o;return{count:r,start:l,loop:t.loop,ilen:u<l&&!c?r+u-l:u-l}}function xK(e,t,n,r){const{points:i,options:a}=t,{count:s,start:o,loop:l,ilen:u}=rR(i,n,r),c=$K(a);let{move:d=!0,reverse:f}=r||{},h,p,g;for(h=0;h<=u;++h)p=i[(o+(f?u-h:h))%s],!p.skip&&(d?(e.moveTo(p.x,p.y),d=!1):c(e,g,p,f,a.stepped),g=p);return l&&(p=i[(o+(f?u:0))%s],c(e,g,p,f,a.stepped)),!!l}function wK(e,t,n,r){const i=t.points,{count:a,start:s,ilen:o}=rR(i,n,r),{move:l=!0,reverse:u}=r||{};let c=0,d=0,f,h,p,g,b,v;const m=w=>(s+(u?o-w:w))%a,$=()=>{g!==b&&(e.lineTo(c,b),e.lineTo(c,g),e.lineTo(c,v))};for(l&&(h=i[m(0)],e.moveTo(h.x,h.y)),f=0;f<=o;++f){if(h=i[m(f)],h.skip)continue;const w=h.x,D=h.y,S=w|0;S===p?(D<g?g=D:D>b&&(b=D),c=(d*c+w)/++d):($(),e.lineTo(w,D),p=S,d=0,g=b=D),v=D}$()}function Qy(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!n?wK:xK}function DK(e){return e.stepped?wU:e.tension||e.cubicInterpolationMode==="monotone"?DU:Ai}function _K(e,t,n,r){let i=t._path;i||(i=t._path=new Path2D,t.path(i,n,r)&&i.closePath()),nR(e,t.options),e.stroke(i)}function EK(e,t,n,r){const{segments:i,options:a}=t,s=Qy(t);for(const o of i)nR(e,a,o.style),e.beginPath(),s(e,t,o,{start:n,end:n+r-1})&&e.closePath(),e.stroke()}const SK=typeof Path2D=="function";function CK(e,t,n,r){SK&&!t.options.segment?_K(e,t,n,r):EK(e,t,n,r)}class Yn extends Cr{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,n){const r=this.options;if((r.tension||r.cubicInterpolationMode==="monotone")&&!r.stepped&&!this._pointsUpdated){const i=r.spanGaps?this._loop:this._fullLoop;pU(this._points,r,t,i,n),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=PU(this,this.options.segment))}first(){const t=this.segments,n=this.points;return t.length&&n[t[0].start]}last(){const t=this.segments,n=this.points,r=t.length;return r&&n[t[r-1].end]}interpolate(t,n){const r=this.options,i=t[n],a=this.points,s=WT(this,{property:n,start:i,end:i});if(!s.length)return;const o=[],l=DK(r);let u,c;for(u=0,c=s.length;u<c;++u){const{start:d,end:f}=s[u],h=a[d],p=a[f];if(h===p){o.push(h);continue}const g=Math.abs((i-h[n])/(p[n]-h[n])),b=l(h,p,g,r.stepped);b[n]=t[n],o.push(b)}return o.length===1?o[0]:o}pathSegment(t,n,r){return Qy(this)(t,this,n,r)}path(t,n,r){const i=this.segments,a=Qy(this);let s=this._loop;n=n||0,r=r||this.points.length-n;for(const o of i)s&=a(t,this,o,{start:n,end:n+r-1});return!!s}draw(t,n,r,i){const a=this.options||{};(this.points||[]).length&&a.borderWidth&&(t.save(),CK(t,this,r,i),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}j(Yn,"id","line"),j(Yn,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),j(Yn,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),j(Yn,"descriptors",{_scriptable:!0,_indexable:t=>t!=="borderDash"&&t!=="fill"});function I6(e,t,n,r){const i=e.options,{[n]:a}=e.getProps([n],r);return Math.abs(t-a)<i.radius+i.hitRadius}class cs extends Cr{constructor(n){super();j(this,"parsed");j(this,"skip");j(this,"stop");this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,n&&Object.assign(this,n)}inRange(n,r,i){const a=this.options,{x:s,y:o}=this.getProps(["x","y"],i);return Math.pow(n-s,2)+Math.pow(r-o,2)<Math.pow(a.hitRadius+a.radius,2)}inXRange(n,r){return I6(this,n,"x",r)}inYRange(n,r){return I6(this,n,"y",r)}getCenterPoint(n){const{x:r,y:i}=this.getProps(["x","y"],n);return{x:r,y:i}}size(n){n=n||this.options||{};let r=n.radius||0;r=Math.max(r,r&&n.hoverRadius||0);const i=r&&n.borderWidth||0;return(r+i)*2}draw(n,r){const i=this.options;this.skip||i.radius<.1||!vr(this,r,this.size(i)/2)||(n.strokeStyle=i.borderColor,n.lineWidth=i.borderWidth,n.fillStyle=i.backgroundColor,qy(n,i,this.x,this.y))}getRange(){const n=this.options||{};return n.radius+n.hitRadius}}j(cs,"id","point"),j(cs,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),j(cs,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});function iR(e,t){const{x:n,y:r,base:i,width:a,height:s}=e.getProps(["x","y","base","width","height"],t);let o,l,u,c,d;return e.horizontal?(d=s/2,o=Math.min(n,i),l=Math.max(n,i),u=r-d,c=r+d):(d=a/2,o=n-d,l=n+d,u=Math.min(r,i),c=Math.max(r,i)),{left:o,top:u,right:l,bottom:c}}function qr(e,t,n,r){return e?0:dt(t,n,r)}function kK(e,t,n){const r=e.options.borderWidth,i=e.borderSkipped,a=MT(r);return{t:qr(i.top,a.top,0,n),r:qr(i.right,a.right,0,t),b:qr(i.bottom,a.bottom,0,n),l:qr(i.left,a.left,0,t)}}function PK(e,t,n){const{enableBorderRadius:r}=e.getProps(["enableBorderRadius"]),i=e.options.borderRadius,a=Gi(i),s=Math.min(t,n),o=e.borderSkipped,l=r||ae(i);return{topLeft:qr(!l||o.top||o.left,a.topLeft,0,s),topRight:qr(!l||o.top||o.right,a.topRight,0,s),bottomLeft:qr(!l||o.bottom||o.left,a.bottomLeft,0,s),bottomRight:qr(!l||o.bottom||o.right,a.bottomRight,0,s)}}function TK(e){const t=iR(e),n=t.right-t.left,r=t.bottom-t.top,i=kK(e,n/2,r/2),a=PK(e,n/2,r/2);return{outer:{x:t.left,y:t.top,w:n,h:r,radius:a},inner:{x:t.left+i.l,y:t.top+i.t,w:n-i.l-i.r,h:r-i.t-i.b,radius:{topLeft:Math.max(0,a.topLeft-Math.max(i.t,i.l)),topRight:Math.max(0,a.topRight-Math.max(i.t,i.r)),bottomLeft:Math.max(0,a.bottomLeft-Math.max(i.b,i.l)),bottomRight:Math.max(0,a.bottomRight-Math.max(i.b,i.r))}}}}function yp(e,t,n,r){const i=t===null,a=n===null,o=e&&!(i&&a)&&iR(e,r);return o&&(i||mr(t,o.left,o.right))&&(a||mr(n,o.top,o.bottom))}function RK(e){return e.topLeft||e.topRight||e.bottomLeft||e.bottomRight}function MK(e,t){e.rect(t.x,t.y,t.w,t.h)}function $p(e,t,n={}){const r=e.x!==n.x?-t:0,i=e.y!==n.y?-t:0,a=(e.x+e.w!==n.x+n.w?t:0)-r,s=(e.y+e.h!==n.y+n.h?t:0)-i;return{x:e.x+r,y:e.y+i,w:e.w+a,h:e.h+s,radius:e.radius}}class pc extends Cr{constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:n,options:{borderColor:r,backgroundColor:i}}=this,{inner:a,outer:s}=TK(this),o=RK(s.radius)?xl:MK;t.save(),(s.w!==a.w||s.h!==a.h)&&(t.beginPath(),o(t,$p(s,n,a)),t.clip(),o(t,$p(a,-n,s)),t.fillStyle=r,t.fill("evenodd")),t.beginPath(),o(t,$p(a,n)),t.fillStyle=i,t.fill(),t.restore()}inRange(t,n,r){return yp(this,t,n,r)}inXRange(t,n){return yp(this,t,null,n)}inYRange(t,n){return yp(this,null,t,n)}getCenterPoint(t){const{x:n,y:r,base:i,horizontal:a}=this.getProps(["x","y","base","horizontal"],t);return{x:a?(n+i)/2:n,y:a?r:(r+i)/2}}getRange(t){return t==="x"?this.width/2:this.height/2}}j(pc,"id","bar"),j(pc,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),j(pc,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});var FK=Object.freeze({__proto__:null,ArcElement:$o,BarElement:pc,LineElement:Yn,PointElement:cs});const Jy=["rgb(54, 162, 235)","rgb(255, 99, 132)","rgb(255, 159, 64)","rgb(255, 205, 86)","rgb(75, 192, 192)","rgb(153, 102, 255)","rgb(201, 203, 207)"],L6=Jy.map(e=>e.replace("rgb(","rgba(").replace(")",", 0.5)"));function aR(e){return Jy[e%Jy.length]}function sR(e){return L6[e%L6.length]}function AK(e,t){return e.borderColor=aR(t),e.backgroundColor=sR(t),++t}function OK(e,t){return e.backgroundColor=e.data.map(()=>aR(t++)),t}function BK(e,t){return e.backgroundColor=e.data.map(()=>sR(t++)),t}function IK(e){let t=0;return(n,r)=>{const i=e.getDatasetMeta(r).controller;i instanceof Hi?t=OK(n,t):i instanceof us?t=BK(n,t):i&&(t=AK(n,t))}}function N6(e){let t;for(t in e)if(e[t].borderColor||e[t].backgroundColor)return!0;return!1}function LK(e){return e&&(e.borderColor||e.backgroundColor)}var NK={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(e,t,n){if(!n.enabled)return;const{data:{datasets:r},options:i}=e.config,{elements:a}=i;if(!n.forceOverride&&(N6(r)||LK(i)||a&&N6(a)))return;const s=IK(e);r.forEach(s)}};function jK(e,t,n,r,i){const a=i.samples||r;if(a>=n)return e.slice(t,t+n);const s=[],o=(n-2)/(a-2);let l=0;const u=t+n-1;let c=t,d,f,h,p,g;for(s[l++]=e[c],d=0;d<a-2;d++){let b=0,v=0,m;const $=Math.floor((d+1)*o)+1+t,w=Math.min(Math.floor((d+2)*o)+1,n)+t,D=w-$;for(m=$;m<w;m++)b+=e[m].x,v+=e[m].y;b/=D,v/=D;const S=Math.floor(d*o)+1+t,k=Math.min(Math.floor((d+1)*o)+1,n)+t,{x,y:T}=e[c];for(h=p=-1,m=S;m<k;m++)p=.5*Math.abs((x-b)*(e[m].y-T)-(x-e[m].x)*(v-T)),p>h&&(h=p,f=e[m],g=m);s[l++]=f,c=g}return s[l++]=e[u],s}function zK(e,t,n,r){let i=0,a=0,s,o,l,u,c,d,f,h,p,g;const b=[],v=t+n-1,m=e[t].x,w=e[v].x-m;for(s=t;s<t+n;++s){o=e[s],l=(o.x-m)/w*r,u=o.y;const D=l|0;if(D===c)u<p?(p=u,d=s):u>g&&(g=u,f=s),i=(a*i+o.x)/++a;else{const S=s-1;if(!ce(d)&&!ce(f)){const k=Math.min(d,f),x=Math.max(d,f);k!==h&&k!==S&&b.push({...e[k],x:i}),x!==h&&x!==S&&b.push({...e[x],x:i})}s>0&&S!==h&&b.push(e[S]),b.push(o),c=D,a=0,p=g=u,d=f=h=s}}return b}function oR(e){if(e._decimated){const t=e._data;delete e._decimated,delete e._data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,writable:!0,value:t})}}function j6(e){e.data.datasets.forEach(t=>{oR(t)})}function VK(e,t){const n=t.length;let r=0,i;const{iScale:a}=e,{min:s,max:o,minDefined:l,maxDefined:u}=a.getUserBounds();return l&&(r=dt(gr(t,a.axis,s).lo,0,n-1)),u?i=dt(gr(t,a.axis,o).hi+1,r,n)-r:i=n-r,{start:r,count:i}}var WK={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(e,t,n)=>{if(!n.enabled){j6(e);return}const r=e.width;e.data.datasets.forEach((i,a)=>{const{_data:s,indexAxis:o}=i,l=e.getDatasetMeta(a),u=s||i.data;if(bo([o,e.options.indexAxis])==="y"||!l.controller.supportsDecimation)return;const c=e.scales[l.xAxisID];if(c.type!=="linear"&&c.type!=="time"||e.options.parsing)return;let{start:d,count:f}=VK(l,u);const h=n.threshold||4*r;if(f<=h){oR(i);return}ce(s)&&(i._data=u,delete i.data,Object.defineProperty(i,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(g){this._data=g}}));let p;switch(n.algorithm){case"lttb":p=jK(u,d,f,r,n);break;case"min-max":p=zK(u,d,f,r);break;default:throw new Error(`Unsupported decimation algorithm '${n.algorithm}'`)}i._decimated=p})},destroy(e){j6(e)}};function UK(e,t,n){const r=e.segments,i=e.points,a=t.points,s=[];for(const o of r){let{start:l,end:u}=o;u=Y$(l,u,i);const c=e3(n,i[l],i[u],o.loop);if(!t.segments){s.push({source:o,target:c,start:i[l],end:i[u]});continue}const d=WT(t,c);for(const f of d){const h=e3(n,a[f.start],a[f.end],f.loop),p=VT(o,i,h);for(const g of p)s.push({source:g,target:f,start:{[n]:z6(c,h,"start",Math.max)},end:{[n]:z6(c,h,"end",Math.min)}})}}return s}function e3(e,t,n,r){if(r)return;let i=t[e],a=n[e];return e==="angle"&&(i=nn(i),a=nn(a)),{property:e,start:i,end:a}}function HK(e,t){const{x:n=null,y:r=null}=e||{},i=t.points,a=[];return t.segments.forEach(({start:s,end:o})=>{o=Y$(s,o,i);const l=i[s],u=i[o];r!==null?(a.push({x:l.x,y:r}),a.push({x:u.x,y:r})):n!==null&&(a.push({x:n,y:l.y}),a.push({x:n,y:u.y}))}),a}function Y$(e,t,n){for(;t>e;t--){const r=n[t];if(!isNaN(r.x)&&!isNaN(r.y))break}return t}function z6(e,t,n,r){return e&&t?r(e[n],t[n]):e?e[n]:t?t[n]:0}function lR(e,t){let n=[],r=!1;return Be(e)?(r=!0,n=e):n=HK(e,t),n.length?new Yn({points:n,options:{tension:0},_loop:r,_fullLoop:r}):null}function V6(e){return e&&e.fill!==!1}function KK(e,t,n){let i=e[t].fill;const a=[t];let s;if(!n)return i;for(;i!==!1&&a.indexOf(i)===-1;){if(!Ve(i))return i;if(s=e[i],!s)return!1;if(s.visible)return i;a.push(i),i=s.fill}return!1}function YK(e,t,n){const r=XK(e);if(ae(r))return isNaN(r.value)?!1:r;let i=parseFloat(r);return Ve(i)&&Math.floor(i)===i?qK(r[0],t,i,n):["origin","start","end","stack","shape"].indexOf(r)>=0&&r}function qK(e,t,n,r){return(e==="-"||e==="+")&&(n=t+n),n===t||n<0||n>=r?!1:n}function GK(e,t){let n=null;return e==="start"?n=t.bottom:e==="end"?n=t.top:ae(e)?n=t.getPixelForValue(e.value):t.getBasePixel&&(n=t.getBasePixel()),n}function ZK(e,t,n){let r;return e==="start"?r=n:e==="end"?r=t.options.reverse?t.min:t.max:ae(e)?r=e.value:r=t.getBaseValue(),r}function XK(e){const t=e.options,n=t.fill;let r=J(n&&n.target,n);return r===void 0&&(r=!!t.backgroundColor),r===!1||r===null?!1:r===!0?"origin":r}function QK(e){const{scale:t,index:n,line:r}=e,i=[],a=r.segments,s=r.points,o=JK(t,n);o.push(lR({x:null,y:t.bottom},r));for(let l=0;l<a.length;l++){const u=a[l];for(let c=u.start;c<=u.end;c++)eY(i,s[c],o)}return new Yn({points:i,options:{}})}function JK(e,t){const n=[],r=e.getMatchingVisibleMetas("line");for(let i=0;i<r.length;i++){const a=r[i];if(a.index===t)break;a.hidden||n.unshift(a.dataset)}return n}function eY(e,t,n){const r=[];for(let i=0;i<n.length;i++){const a=n[i],{first:s,last:o,point:l}=tY(a,t,"x");if(!(!l||s&&o)){if(s)r.unshift(l);else if(e.push(l),!o)break}}e.push(...r)}function tY(e,t,n){const r=e.interpolate(t,n);if(!r)return{};const i=r[n],a=e.segments,s=e.points;let o=!1,l=!1;for(let u=0;u<a.length;u++){const c=a[u],d=s[c.start][n],f=s[c.end][n];if(mr(i,d,f)){o=i===d,l=i===f;break}}return{first:o,last:l,point:r}}class uR{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,n,r){const{x:i,y:a,radius:s}=this;return n=n||{start:0,end:Te},t.arc(i,a,s,n.end,n.start,!0),!r.bounds}interpolate(t){const{x:n,y:r,radius:i}=this,a=t.angle;return{x:n+Math.cos(a)*i,y:r+Math.sin(a)*i,angle:a}}}function nY(e){const{chart:t,fill:n,line:r}=e;if(Ve(n))return rY(t,n);if(n==="stack")return QK(e);if(n==="shape")return!0;const i=iY(e);return i instanceof uR?i:lR(i,r)}function rY(e,t){const n=e.getDatasetMeta(t);return n&&e.isDatasetVisible(t)?n.dataset:null}function iY(e){return(e.scale||{}).getPointPositionForValue?sY(e):aY(e)}function aY(e){const{scale:t={},fill:n}=e,r=GK(n,t);if(Ve(r)){const i=t.isHorizontal();return{x:i?r:null,y:i?null:r}}return null}function sY(e){const{scale:t,fill:n}=e,r=t.options,i=t.getLabels().length,a=r.reverse?t.max:t.min,s=ZK(n,t,a),o=[];if(r.grid.circular){const l=t.getPointPositionForValue(0,a);return new uR({x:l.x,y:l.y,radius:t.getDistanceFromCenterForValue(s)})}for(let l=0;l<i;++l)o.push(t.getPointPositionForValue(l,s));return o}function xp(e,t,n){const r=nY(t),{line:i,scale:a,axis:s}=t,o=i.options,l=o.fill,u=o.backgroundColor,{above:c=u,below:d=u}=l||{};r&&i.points.length&&(Wf(e,n),oY(e,{line:i,target:r,above:c,below:d,area:n,scale:a,axis:s}),Uf(e))}function oY(e,t){const{line:n,target:r,above:i,below:a,area:s,scale:o}=t,l=n._loop?"angle":t.axis;e.save(),l==="x"&&a!==i&&(W6(e,r,s.top),U6(e,{line:n,target:r,color:i,scale:o,property:l}),e.restore(),e.save(),W6(e,r,s.bottom)),U6(e,{line:n,target:r,color:a,scale:o,property:l}),e.restore()}function W6(e,t,n){const{segments:r,points:i}=t;let a=!0,s=!1;e.beginPath();for(const o of r){const{start:l,end:u}=o,c=i[l],d=i[Y$(l,u,i)];a?(e.moveTo(c.x,c.y),a=!1):(e.lineTo(c.x,n),e.lineTo(c.x,c.y)),s=!!t.pathSegment(e,o,{move:s}),s?e.closePath():e.lineTo(d.x,n)}e.lineTo(t.first().x,n),e.closePath(),e.clip()}function U6(e,t){const{line:n,target:r,property:i,color:a,scale:s}=t,o=UK(n,r,i);for(const{source:l,target:u,start:c,end:d}of o){const{style:{backgroundColor:f=a}={}}=l,h=r!==!0;e.save(),e.fillStyle=f,lY(e,s,h&&e3(i,c,d)),e.beginPath();const p=!!n.pathSegment(e,l);let g;if(h){p?e.closePath():H6(e,r,d,i);const b=!!r.pathSegment(e,u,{move:p,reverse:!0});g=p&&b,g||H6(e,r,c,i)}e.closePath(),e.fill(g?"evenodd":"nonzero"),e.restore()}}function lY(e,t,n){const{top:r,bottom:i}=t.chart.chartArea,{property:a,start:s,end:o}=n||{};a==="x"&&(e.beginPath(),e.rect(s,r,o-s,i-r),e.clip())}function H6(e,t,n,r){const i=t.interpolate(n,r);i&&e.lineTo(i.x,i.y)}var uY={id:"filler",afterDatasetsUpdate(e,t,n){const r=(e.data.datasets||[]).length,i=[];let a,s,o,l;for(s=0;s<r;++s)a=e.getDatasetMeta(s),o=a.dataset,l=null,o&&o.options&&o instanceof Yn&&(l={visible:e.isDatasetVisible(s),index:s,fill:YK(o,s,r),chart:e,axis:a.controller.options.indexAxis,scale:a.vScale,line:o}),a.$filler=l,i.push(l);for(s=0;s<r;++s)l=i[s],!(!l||l.fill===!1)&&(l.fill=KK(i,s,n.propagate))},beforeDraw(e,t,n){const r=n.drawTime==="beforeDraw",i=e.getSortedVisibleDatasetMetas(),a=e.chartArea;for(let s=i.length-1;s>=0;--s){const o=i[s].$filler;o&&(o.line.updateControlPoints(a,o.axis),r&&o.fill&&xp(e.ctx,o,a))}},beforeDatasetsDraw(e,t,n){if(n.drawTime!=="beforeDatasetsDraw")return;const r=e.getSortedVisibleDatasetMetas();for(let i=r.length-1;i>=0;--i){const a=r[i].$filler;V6(a)&&xp(e.ctx,a,e.chartArea)}},beforeDatasetDraw(e,t,n){const r=t.meta.$filler;!V6(r)||n.drawTime!=="beforeDatasetDraw"||xp(e.ctx,r,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const K6=(e,t)=>{let{boxHeight:n=t,boxWidth:r=t}=e;return e.usePointStyle&&(n=Math.min(n,t),r=e.pointStyleWidth||Math.min(r,t)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(t,n)}},cY=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class Y6 extends Cr{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n,r){this.maxWidth=t,this.maxHeight=n,this._margins=r,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let n=De(t.generateLabels,[this.chart],this)||[];t.filter&&(n=n.filter(r=>t.filter(r,this.chart.data))),t.sort&&(n=n.sort((r,i)=>t.sort(r,i,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:t,ctx:n}=this;if(!t.display){this.width=this.height=0;return}const r=t.labels,i=it(r.font),a=i.size,s=this._computeTitleHeight(),{boxWidth:o,itemHeight:l}=K6(r,a);let u,c;n.font=i.string,this.isHorizontal()?(u=this.maxWidth,c=this._fitRows(s,a,o,l)+10):(c=this.maxHeight,u=this._fitCols(s,i,o,l)+10),this.width=Math.min(u,t.maxWidth||this.maxWidth),this.height=Math.min(c,t.maxHeight||this.maxHeight)}_fitRows(t,n,r,i){const{ctx:a,maxWidth:s,options:{labels:{padding:o}}}=this,l=this.legendHitBoxes=[],u=this.lineWidths=[0],c=i+o;let d=t;a.textAlign="left",a.textBaseline="middle";let f=-1,h=-c;return this.legendItems.forEach((p,g)=>{const b=r+n/2+a.measureText(p.text).width;(g===0||u[u.length-1]+b+2*o>s)&&(d+=c,u[u.length-(g>0?0:1)]=0,h+=c,f++),l[g]={left:0,top:h,row:f,width:b,height:i},u[u.length-1]+=b+o}),d}_fitCols(t,n,r,i){const{ctx:a,maxHeight:s,options:{labels:{padding:o}}}=this,l=this.legendHitBoxes=[],u=this.columnSizes=[],c=s-t;let d=o,f=0,h=0,p=0,g=0;return this.legendItems.forEach((b,v)=>{const{itemWidth:m,itemHeight:$}=dY(r,n,a,b,i);v>0&&h+$+2*o>c&&(d+=f+o,u.push({width:f,height:h}),p+=f+o,g++,f=h=0),l[v]={left:p,top:h,col:g,width:m,height:$},f=Math.max(f,m),h+=$+o}),d+=f,u.push({width:f,height:h}),d}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:r,labels:{padding:i},rtl:a}}=this,s=ls(a,this.left,this.width);if(this.isHorizontal()){let o=0,l=Dt(r,this.left+i,this.right-this.lineWidths[o]);for(const u of n)o!==u.row&&(o=u.row,l=Dt(r,this.left+i,this.right-this.lineWidths[o])),u.top+=this.top+t+i,u.left=s.leftForLtr(s.x(l),u.width),l+=u.width+i}else{let o=0,l=Dt(r,this.top+t+i,this.bottom-this.columnSizes[o].height);for(const u of n)u.col!==o&&(o=u.col,l=Dt(r,this.top+t+i,this.bottom-this.columnSizes[o].height)),u.top=l,u.left+=this.left+i,u.left=s.leftForLtr(s.x(u.left),u.width),l+=u.height+i}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;Wf(t,this),this._draw(),Uf(t)}}_draw(){const{options:t,columnSizes:n,lineWidths:r,ctx:i}=this,{align:a,labels:s}=t,o=We.color,l=ls(t.rtl,this.left,this.width),u=it(s.font),{padding:c}=s,d=u.size,f=d/2;let h;this.drawTitle(),i.textAlign=l.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=u.string;const{boxWidth:p,boxHeight:g,itemHeight:b}=K6(s,d),v=function(S,k,x){if(isNaN(p)||p<=0||isNaN(g)||g<0)return;i.save();const T=J(x.lineWidth,1);if(i.fillStyle=J(x.fillStyle,o),i.lineCap=J(x.lineCap,"butt"),i.lineDashOffset=J(x.lineDashOffset,0),i.lineJoin=J(x.lineJoin,"miter"),i.lineWidth=T,i.strokeStyle=J(x.strokeStyle,o),i.setLineDash(J(x.lineDash,[])),s.usePointStyle){const P={radius:g*Math.SQRT2/2,pointStyle:x.pointStyle,rotation:x.rotation,borderWidth:T},E=l.xPlus(S,p/2),F=k+f;RT(i,P,E,F,s.pointStyleWidth&&p)}else{const P=k+Math.max((d-g)/2,0),E=l.leftForLtr(S,p),F=Gi(x.borderRadius);i.beginPath(),Object.values(F).some(R=>R!==0)?xl(i,{x:E,y:P,w:p,h:g,radius:F}):i.rect(E,P,p,g),i.fill(),T!==0&&i.stroke()}i.restore()},m=function(S,k,x){la(i,x.text,S,k+b/2,u,{strikethrough:x.hidden,textAlign:l.textAlign(x.textAlign)})},$=this.isHorizontal(),w=this._computeTitleHeight();$?h={x:Dt(a,this.left+c,this.right-r[0]),y:this.top+c+w,line:0}:h={x:this.left+c,y:Dt(a,this.top+w+c,this.bottom-n[0].height),line:0},NT(this.ctx,t.textDirection);const D=b+c;this.legendItems.forEach((S,k)=>{i.strokeStyle=S.fontColor,i.fillStyle=S.fontColor;const x=i.measureText(S.text).width,T=l.textAlign(S.textAlign||(S.textAlign=s.textAlign)),P=p+f+x;let E=h.x,F=h.y;l.setWidth(this.width),$?k>0&&E+P+c>this.right&&(F=h.y+=D,h.line++,E=h.x=Dt(a,this.left+c,this.right-r[h.line])):k>0&&F+D>this.bottom&&(E=h.x=E+n[h.line].width+c,h.line++,F=h.y=Dt(a,this.top+w+c,this.bottom-n[h.line].height));const R=l.x(E);if(v(R,F,S),E=MW(T,E+p+f,$?E+P:this.right,t.rtl),m(l.x(E),F,S),$)h.x+=P+c;else if(typeof S.text!="string"){const M=u.lineHeight;h.y+=cR(S,M)+c}else h.y+=D}),jT(this.ctx,t.textDirection)}drawTitle(){const t=this.options,n=t.title,r=it(n.font),i=Pt(n.padding);if(!n.display)return;const a=ls(t.rtl,this.left,this.width),s=this.ctx,o=n.position,l=r.size/2,u=i.top+l;let c,d=this.left,f=this.width;if(this.isHorizontal())f=Math.max(...this.lineWidths),c=this.top+u,d=Dt(t.align,d,this.right-f);else{const p=this.columnSizes.reduce((g,b)=>Math.max(g,b.height),0);c=u+Dt(t.align,this.top,this.bottom-p-t.labels.padding-this._computeTitleHeight())}const h=Dt(o,d,d+f);s.textAlign=a.textAlign(L$(o)),s.textBaseline="middle",s.strokeStyle=n.color,s.fillStyle=n.color,s.font=r.string,la(s,n.text,h,c,r)}_computeTitleHeight(){const t=this.options.title,n=it(t.font),r=Pt(t.padding);return t.display?n.lineHeight+r.height:0}_getLegendItemAt(t,n){let r,i,a;if(mr(t,this.left,this.right)&&mr(n,this.top,this.bottom)){for(a=this.legendHitBoxes,r=0;r<a.length;++r)if(i=a[r],mr(t,i.left,i.left+i.width)&&mr(n,i.top,i.top+i.height))return this.legendItems[r]}return null}handleEvent(t){const n=this.options;if(!pY(t.type,n))return;const r=this._getLegendItemAt(t.x,t.y);if(t.type==="mousemove"||t.type==="mouseout"){const i=this._hoveredItem,a=cY(i,r);i&&!a&&De(n.onLeave,[t,i,this],this),this._hoveredItem=r,r&&!a&&De(n.onHover,[t,r,this],this)}else r&&De(n.onClick,[t,r,this],this)}}function dY(e,t,n,r,i){const a=fY(r,e,t,n),s=hY(i,r,t.lineHeight);return{itemWidth:a,itemHeight:s}}function fY(e,t,n,r){let i=e.text;return i&&typeof i!="string"&&(i=i.reduce((a,s)=>a.length>s.length?a:s)),t+n.size/2+r.measureText(i).width}function hY(e,t,n){let r=e;return typeof t.text!="string"&&(r=cR(t,n)),r}function cR(e,t){const n=e.text?e.text.length:0;return t*n}function pY(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var mY={id:"legend",_element:Y6,start(e,t,n){const r=e.legend=new Y6({ctx:e.ctx,options:n,chart:e});Ct.configure(e,r,n),Ct.addBox(e,r)},stop(e){Ct.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const r=e.legend;Ct.configure(e,r,n),r.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const r=t.datasetIndex,i=n.chart;i.isDatasetVisible(r)?(i.hide(r),t.hidden=!0):(i.show(r),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:i,color:a,useBorderRadius:s,borderRadius:o}}=e.legend.options;return e._getSortedDatasetMetas().map(l=>{const u=l.controller.getStyle(n?0:void 0),c=Pt(u.borderWidth);return{text:t[l.index].label,fillStyle:u.backgroundColor,fontColor:a,hidden:!l.visible,lineCap:u.borderCapStyle,lineDash:u.borderDash,lineDashOffset:u.borderDashOffset,lineJoin:u.borderJoinStyle,lineWidth:(c.width+c.height)/4,strokeStyle:u.borderColor,pointStyle:r||u.pointStyle,rotation:u.rotation,textAlign:i||u.textAlign,borderRadius:s&&(o||u.borderRadius),datasetIndex:l.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class q$ extends Cr{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n){const r=this.options;if(this.left=0,this.top=0,!r.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=n;const i=Be(r.text)?r.text.length:1;this._padding=Pt(r.padding);const a=i*it(r.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=a:this.width=a}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:n,left:r,bottom:i,right:a,options:s}=this,o=s.align;let l=0,u,c,d;return this.isHorizontal()?(c=Dt(o,r,a),d=n+t,u=a-r):(s.position==="left"?(c=r+t,d=Dt(o,i,n),l=Me*-.5):(c=a-t,d=Dt(o,n,i),l=Me*.5),u=i-n),{titleX:c,titleY:d,maxWidth:u,rotation:l}}draw(){const t=this.ctx,n=this.options;if(!n.display)return;const r=it(n.font),a=r.lineHeight/2+this._padding.top,{titleX:s,titleY:o,maxWidth:l,rotation:u}=this._drawArgs(a);la(t,n.text,0,0,r,{color:n.color,maxWidth:l,rotation:u,textAlign:L$(n.align),textBaseline:"middle",translation:[s,o]})}}function gY(e,t){const n=new q$({ctx:e.ctx,options:t,chart:e});Ct.configure(e,n,t),Ct.addBox(e,n),e.titleBlock=n}var vY={id:"title",_element:q$,start(e,t,n){gY(e,n)},stop(e){const t=e.titleBlock;Ct.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const r=e.titleBlock;Ct.configure(e,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const ju=new WeakMap;var bY={id:"subtitle",start(e,t,n){const r=new q$({ctx:e.ctx,options:n,chart:e});Ct.configure(e,r,n),Ct.addBox(e,r),ju.set(e,r)},stop(e){Ct.removeBox(e,ju.get(e)),ju.delete(e)},beforeUpdate(e,t,n){const r=ju.get(e);Ct.configure(e,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const xo={average(e){if(!e.length)return!1;let t,n,r=new Set,i=0,a=0;for(t=0,n=e.length;t<n;++t){const o=e[t].element;if(o&&o.hasValue()){const l=o.tooltipPosition();r.add(l.x),i+=l.y,++a}}return{x:[...r].reduce((o,l)=>o+l)/r.size,y:i/a}},nearest(e,t){if(!e.length)return!1;let n=t.x,r=t.y,i=Number.POSITIVE_INFINITY,a,s,o;for(a=0,s=e.length;a<s;++a){const l=e[a].element;if(l&&l.hasValue()){const u=l.getCenterPoint(),c=Ky(t,u);c<i&&(i=c,o=l)}}if(o){const l=o.tooltipPosition();n=l.x,r=l.y}return{x:n,y:r}}};function Wn(e,t){return t&&(Be(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function sr(e){return(typeof e=="string"||e instanceof String)&&e.indexOf(`
+ */class FU{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,n,r,i){const a=n.listeners[i],s=n.duration;a.forEach(o=>o({chart:t,initial:n.initial,numSteps:s,currentStep:Math.min(r-n.start,s)}))}_refresh(){this._request||(this._running=!0,this._request=ST.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let n=0;this._charts.forEach((r,i)=>{if(!r.running||!r.items.length)return;const a=r.items;let s=a.length-1,o=!1,l;for(;s>=0;--s)l=a[s],l._active?(l._total>r.duration&&(r.duration=l._total),l.tick(t),o=!0):(a[s]=a[a.length-1],a.pop());o&&(i.draw(),this._notify(i,r,t,"progress")),a.length||(r.running=!1,this._notify(i,r,t,"complete"),r.initial=!1),n+=a.length}),this._lastDate=t,n===0&&(this._running=!1)}_getAnims(t){const n=this._charts;let r=n.get(t);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(t,r)),r}listen(t,n,r){this._getAnims(t).listeners[n].push(r)}add(t,n){!n||!n.length||this._getAnims(t).items.push(...n)}has(t){return this._getAnims(t).items.length>0}start(t){const n=this._charts.get(t);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((r,i)=>Math.max(r,i._duration),0),this._refresh())}running(t){if(!this._running)return!1;const n=this._charts.get(t);return!(!n||!n.running||!n.items.length)}stop(t){const n=this._charts.get(t);if(!n||!n.items.length)return;const r=n.items;let i=r.length-1;for(;i>=0;--i)r[i].cancel();n.items=[],this._notify(t,n,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var ar=new FU;const l6="transparent",AU={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const r=Q5(e||l6),i=r.valid&&Q5(t||l6);return i&&i.valid?i.mix(r,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class OU{constructor(t,n,r,i){const a=n[r];i=bo([t.to,i,a,t.from]);const s=bo([t.from,a,i]);this._active=!0,this._fn=t.fn||AU[t.type||typeof s],this._easing=No[t.easing]||No.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=r,this._from=s,this._to=i,this._promises=void 0}active(){return this._active}update(t,n,r){if(this._active){this._notify(!1);const i=this._target[this._prop],a=r-this._start,s=this._duration-a;this._start=r,this._duration=Math.floor(Math.max(s,t.duration)),this._total+=a,this._loop=!!t.loop,this._to=bo([t.to,n,i,t.from]),this._from=bo([t.from,i,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const n=t-this._start,r=this._duration,i=this._prop,a=this._from,s=this._loop,o=this._to;let l;if(this._active=a!==o&&(s||n<r),!this._active){this._target[i]=o,this._notify(!0);return}if(n<0){this._target[i]=a;return}l=n/r%2,l=s&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[i]=this._fn(a,o,l)}wait(){const t=this._promises||(this._promises=[]);return new Promise((n,r)=>{t.push({res:n,rej:r})})}_notify(t){const n=t?"res":"rej",r=this._promises||[];for(let i=0;i<r.length;i++)r[i][n]()}}class UT{constructor(t,n){this._chart=t,this._properties=new Map,this.configure(n)}configure(t){if(!ae(t))return;const n=Object.keys(We.animation),r=this._properties;Object.getOwnPropertyNames(t).forEach(i=>{const a=t[i];if(!ae(a))return;const s={};for(const o of n)s[o]=a[o];(Be(a.properties)&&a.properties||[i]).forEach(o=>{(o===i||!r.has(o))&&r.set(o,s)})})}_animateOptions(t,n){const r=n.options,i=IU(t,r);if(!i)return[];const a=this._createAnimations(i,r);return r.$shared&&BU(t.options.$animations,r).then(()=>{t.options=r},()=>{}),a}_createAnimations(t,n){const r=this._properties,i=[],a=t.$animations||(t.$animations={}),s=Object.keys(n),o=Date.now();let l;for(l=s.length-1;l>=0;--l){const u=s[l];if(u.charAt(0)==="$")continue;if(u==="options"){i.push(...this._animateOptions(t,n));continue}const c=n[u];let d=a[u];const f=r.get(u);if(d)if(f&&d.active()){d.update(f,c,o);continue}else d.cancel();if(!f||!f.duration){t[u]=c;continue}a[u]=d=new OU(f,t,u,c),i.push(d)}return i}update(t,n){if(this._properties.size===0){Object.assign(t,n);return}const r=this._createAnimations(t,n);if(r.length)return ar.add(this._chart,r),!0}}function BU(e,t){const n=[],r=Object.keys(t);for(let i=0;i<r.length;i++){const a=e[r[i]];a&&a.active()&&n.push(a.wait())}return Promise.all(n)}function IU(e,t){if(!t)return;let n=e.options;if(!n){e.options=t;return}return n.$shared&&(e.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n}function u6(e,t){const n=e&&e.options||{},r=n.reverse,i=n.min===void 0?t:0,a=n.max===void 0?t:0;return{start:r?a:i,end:r?i:a}}function LU(e,t,n){if(n===!1)return!1;const r=u6(e,n),i=u6(t,n);return{top:i.end,right:r.end,bottom:i.start,left:r.start}}function NU(e){let t,n,r,i;return ae(e)?(t=e.top,n=e.right,r=e.bottom,i=e.left):t=n=r=i=e,{top:t,right:n,bottom:r,left:i,disabled:e===!1}}function HT(e,t){const n=[],r=e._getSortedDatasetMetas(t);let i,a;for(i=0,a=r.length;i<a;++i)n.push(r[i].index);return n}function c6(e,t,n,r={}){const i=e.keys,a=r.mode==="single";let s,o,l,u;if(t!==null){for(s=0,o=i.length;s<o;++s){if(l=+i[s],l===n){if(r.all)continue;break}u=e.values[l],Ve(u)&&(a||t===0||Zn(t)===Zn(u))&&(t+=u)}return t}}function jU(e,t){const{iScale:n,vScale:r}=t,i=n.axis==="x"?"x":"y",a=r.axis==="x"?"x":"y",s=Object.keys(e),o=new Array(s.length);let l,u,c;for(l=0,u=s.length;l<u;++l)c=s[l],o[l]={[i]:c,[a]:e[c]};return o}function d6(e,t){const n=e&&e.options.stacked;return n||n===void 0&&t.stack!==void 0}function zU(e,t,n){return`${e.id}.${t.id}.${n.stack||n.type}`}function VU(e){const{min:t,max:n,minDefined:r,maxDefined:i}=e.getUserBounds();return{min:r?t:Number.NEGATIVE_INFINITY,max:i?n:Number.POSITIVE_INFINITY}}function WU(e,t,n){const r=e[t]||(e[t]={});return r[n]||(r[n]={})}function f6(e,t,n,r){for(const i of t.getMatchingVisibleMetas(r).reverse()){const a=e[i.index];if(n&&a>0||!n&&a<0)return i.index}return null}function h6(e,t){const{chart:n,_cachedMeta:r}=e,i=n._stacks||(n._stacks={}),{iScale:a,vScale:s,index:o}=r,l=a.axis,u=s.axis,c=zU(a,s,r),d=t.length;let f;for(let h=0;h<d;++h){const p=t[h],{[l]:g,[u]:b}=p,v=p._stacks||(p._stacks={});f=v[u]=WU(i,c,g),f[o]=b,f._top=f6(f,s,!0,r.type),f._bottom=f6(f,s,!1,r.type);const m=f._visualValues||(f._visualValues={});m[o]=b}}function hp(e,t){const n=e.scales;return Object.keys(n).filter(r=>n[r].axis===t).shift()}function UU(e,t){return bi(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function HU(e,t,n){return bi(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function Qs(e,t){const n=e.controller.index,r=e.vScale&&e.vScale.axis;if(r){t=t||e._parsed;for(const i of t){const a=i._stacks;if(!a||a[r]===void 0||a[r][n]===void 0)return;delete a[r][n],a[r]._visualValues!==void 0&&a[r]._visualValues[n]!==void 0&&delete a[r]._visualValues[n]}}}const pp=e=>e==="reset"||e==="none",p6=(e,t)=>t?e:Object.assign({},e),KU=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:HT(n,!0),values:null};class In{constructor(t,n){this.chart=t,this._ctx=t.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=d6(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&Qs(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,n=this._cachedMeta,r=this.getDataset(),i=(d,f,h,p)=>d==="x"?f:d==="r"?p:h,a=n.xAxisID=J(r.xAxisID,hp(t,"x")),s=n.yAxisID=J(r.yAxisID,hp(t,"y")),o=n.rAxisID=J(r.rAxisID,hp(t,"r")),l=n.indexAxis,u=n.iAxisID=i(l,a,s,o),c=n.vAxisID=i(l,s,a,o);n.xScale=this.getScaleForId(a),n.yScale=this.getScaleForId(s),n.rScale=this.getScaleForId(o),n.iScale=this.getScaleForId(u),n.vScale=this.getScaleForId(c)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const n=this._cachedMeta;return t===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&G5(this._data,this),t._stacked&&Qs(t)}_dataCheck(){const t=this.getDataset(),n=t.data||(t.data=[]),r=this._data;if(ae(n)){const i=this._cachedMeta;this._data=jU(n,i)}else if(r!==n){if(r){G5(r,this);const i=this._cachedMeta;Qs(i),i._parsed=[]}n&&Object.isExtensible(n)&&RW(n,this),this._syncList=[],this._data=n}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const n=this._cachedMeta,r=this.getDataset();let i=!1;this._dataCheck();const a=n._stacked;n._stacked=d6(n.vScale,n),n.stack!==r.stack&&(i=!0,Qs(n),n.stack=r.stack),this._resyncElements(t),(i||a!==n._stacked)&&h6(this,n._parsed)}configure(){const t=this.chart.config,n=t.datasetScopeKeys(this._type),r=t.getOptionScopes(this.getDataset(),n,!0);this.options=t.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,n){const{_cachedMeta:r,_data:i}=this,{iScale:a,_stacked:s}=r,o=a.axis;let l=t===0&&n===i.length?!0:r._sorted,u=t>0&&r._parsed[t-1],c,d,f;if(this._parsing===!1)r._parsed=i,r._sorted=!0,f=i;else{Be(i[t])?f=this.parseArrayData(r,i,t,n):ae(i[t])?f=this.parseObjectData(r,i,t,n):f=this.parsePrimitiveData(r,i,t,n);const h=()=>d[o]===null||u&&d[o]<u[o];for(c=0;c<n;++c)r._parsed[c+t]=d=f[c],l&&(h()&&(l=!1),u=d);r._sorted=l}s&&h6(this,f)}parsePrimitiveData(t,n,r,i){const{iScale:a,vScale:s}=t,o=a.axis,l=s.axis,u=a.getLabels(),c=a===s,d=new Array(i);let f,h,p;for(f=0,h=i;f<h;++f)p=f+r,d[f]={[o]:c||a.parse(u[p],p),[l]:s.parse(n[p],p)};return d}parseArrayData(t,n,r,i){const{xScale:a,yScale:s}=t,o=new Array(i);let l,u,c,d;for(l=0,u=i;l<u;++l)c=l+r,d=n[c],o[l]={x:a.parse(d[0],c),y:s.parse(d[1],c)};return o}parseObjectData(t,n,r,i){const{xScale:a,yScale:s}=t,{xAxisKey:o="x",yAxisKey:l="y"}=this._parsing,u=new Array(i);let c,d,f,h;for(c=0,d=i;c<d;++c)f=c+r,h=n[f],u[c]={x:a.parse(ci(h,o),f),y:s.parse(ci(h,l),f)};return u}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,n,r){const i=this.chart,a=this._cachedMeta,s=n[t.axis],o={keys:HT(i,!0),values:n._stacks[t.axis]._visualValues};return c6(o,s,a.index,{mode:r})}updateRangeFromParsed(t,n,r,i){const a=r[n.axis];let s=a===null?NaN:a;const o=i&&r._stacks[n.axis];i&&o&&(i.values=o,s=c6(i,a,this._cachedMeta.index)),t.min=Math.min(t.min,s),t.max=Math.max(t.max,s)}getMinMax(t,n){const r=this._cachedMeta,i=r._parsed,a=r._sorted&&t===r.iScale,s=i.length,o=this._getOtherScale(t),l=KU(n,r,this.chart),u={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:d}=VU(o);let f,h;function p(){h=i[f];const g=h[o.axis];return!Ve(h[t.axis])||c>g||d<g}for(f=0;f<s&&!(!p()&&(this.updateRangeFromParsed(u,t,h,l),a));++f);if(a){for(f=s-1;f>=0;--f)if(!p()){this.updateRangeFromParsed(u,t,h,l);break}}return u}getAllParsedValues(t){const n=this._cachedMeta._parsed,r=[];let i,a,s;for(i=0,a=n.length;i<a;++i)s=n[i][t.axis],Ve(s)&&r.push(s);return r}getMaxOverflow(){return!1}getLabelAndValue(t){const n=this._cachedMeta,r=n.iScale,i=n.vScale,a=this.getParsed(t);return{label:r?""+r.getLabelForValue(a[r.axis]):"",value:i?""+i.getLabelForValue(a[i.axis]):""}}_update(t){const n=this._cachedMeta;this.update(t||"default"),n._clip=NU(J(this.options.clip,LU(n.xScale,n.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,n=this.chart,r=this._cachedMeta,i=r.data||[],a=n.chartArea,s=[],o=this._drawStart||0,l=this._drawCount||i.length-o,u=this.options.drawActiveElementsOnTop;let c;for(r.dataset&&r.dataset.draw(t,a,o,l),c=o;c<o+l;++c){const d=i[c];d.hidden||(d.active&&u?s.push(d):d.draw(t,a))}for(c=0;c<s.length;++c)s[c].draw(t,a)}getStyle(t,n){const r=n?"active":"default";return t===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(r):this.resolveDataElementOptions(t||0,r)}getContext(t,n,r){const i=this.getDataset();let a;if(t>=0&&t<this._cachedMeta.data.length){const s=this._cachedMeta.data[t];a=s.$context||(s.$context=HU(this.getContext(),t,s)),a.parsed=this.getParsed(t),a.raw=i.data[t],a.index=a.dataIndex=t}else a=this.$context||(this.$context=UU(this.chart.getContext(),this.index)),a.dataset=i,a.index=a.datasetIndex=this.index;return a.active=!!n,a.mode=r,a}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,n){return this._resolveElementOptions(this.dataElementType.id,n,t)}_resolveElementOptions(t,n="default",r){const i=n==="active",a=this._cachedDataOpts,s=t+"-"+n,o=a[s],l=this.enableOptionSharing&&yl(r);if(o)return p6(o,l);const u=this.chart.config,c=u.datasetElementScopeKeys(this._type,t),d=i?[`${t}Hover`,"hover",t,""]:[t,""],f=u.getOptionScopes(this.getDataset(),c),h=Object.keys(We.elements[t]),p=()=>this.getContext(r,i,n),g=u.resolveNamedOptions(f,h,p,d);return g.$shared&&(g.$shared=l,a[s]=Object.freeze(p6(g,l))),g}_resolveAnimations(t,n,r){const i=this.chart,a=this._cachedDataOpts,s=`animation-${n}`,o=a[s];if(o)return o;let l;if(i.options.animation!==!1){const c=this.chart.config,d=c.datasetAnimationScopeKeys(this._type,n),f=c.getOptionScopes(this.getDataset(),d);l=c.createResolver(f,this.getContext(t,r,n))}const u=new UT(i,l&&l.animations);return l&&l._cacheable&&(a[s]=Object.freeze(u)),u}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||pp(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){const r=this.resolveDataElementOptions(t,n),i=this._sharedOptions,a=this.getSharedOptions(r),s=this.includeOptions(n,a)||a!==i;return this.updateSharedOptions(a,n,r),{sharedOptions:a,includeOptions:s}}updateElement(t,n,r,i){pp(i)?Object.assign(t,r):this._resolveAnimations(n,i).update(t,r)}updateSharedOptions(t,n,r){t&&!pp(n)&&this._resolveAnimations(void 0,n).update(t,r)}_setStyle(t,n,r,i){t.active=i;const a=this.getStyle(n,i);this._resolveAnimations(n,r,i).update(t,{options:!i&&this.getSharedOptions(a)||a})}removeHoverStyle(t,n,r){this._setStyle(t,r,"active",!1)}setHoverStyle(t,n,r){this._setStyle(t,r,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const n=this._data,r=this._cachedMeta.data;for(const[o,l,u]of this._syncList)this[o](l,u);this._syncList=[];const i=r.length,a=n.length,s=Math.min(a,i);s&&this.parse(0,s),a>i?this._insertElements(i,a-i,t):a<i&&this._removeElements(a,i-a)}_insertElements(t,n,r=!0){const i=this._cachedMeta,a=i.data,s=t+n;let o;const l=u=>{for(u.length+=n,o=u.length-1;o>=s;o--)u[o]=u[o-n]};for(l(a),o=t;o<s;++o)a[o]=new this.dataElementType;this._parsing&&l(i._parsed),this.parse(t,n),r&&this.updateElements(a,t,n,"reset")}updateElements(t,n,r,i){}_removeElements(t,n){const r=this._cachedMeta;if(this._parsing){const i=r._parsed.splice(t,n);r._stacked&&Qs(r,i)}r.data.splice(t,n)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[n,r,i]=t;this[n](r,i)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,n){n&&this._sync(["_removeElements",t,n]);const r=arguments.length-2;r&&this._sync(["_insertElements",t,r])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}j(In,"defaults",{}),j(In,"datasetElementType",null),j(In,"dataElementType",null);function YU(e,t){if(!e._cache.$bar){const n=e.getMatchingVisibleMetas(t);let r=[];for(let i=0,a=n.length;i<a;i++)r=r.concat(n[i].controller.getAllParsedValues(e));e._cache.$bar=ET(r.sort((i,a)=>i-a))}return e._cache.$bar}function qU(e){const t=e.iScale,n=YU(t,e.type);let r=t._length,i,a,s,o;const l=()=>{s===32767||s===-32768||(yl(o)&&(r=Math.min(r,Math.abs(s-o)||r)),o=s)};for(i=0,a=n.length;i<a;++i)s=t.getPixelForValue(n[i]),l();for(o=void 0,i=0,a=t.ticks.length;i<a;++i)s=t.getPixelForTick(i),l();return r}function GU(e,t,n,r){const i=n.barThickness;let a,s;return ce(i)?(a=t.min*n.categoryPercentage,s=n.barPercentage):(a=i*r,s=1),{chunk:a/r,ratio:s,start:t.pixels[e]-a/2}}function ZU(e,t,n,r){const i=t.pixels,a=i[e];let s=e>0?i[e-1]:null,o=e<i.length-1?i[e+1]:null;const l=n.categoryPercentage;s===null&&(s=a-(o===null?t.end-t.start:o-a)),o===null&&(o=a+a-s);const u=a-(a-Math.min(s,o))/2*l;return{chunk:Math.abs(o-s)/2*l/r,ratio:n.barPercentage,start:u}}function XU(e,t,n,r){const i=n.parse(e[0],r),a=n.parse(e[1],r),s=Math.min(i,a),o=Math.max(i,a);let l=s,u=o;Math.abs(s)>Math.abs(o)&&(l=o,u=s),t[n.axis]=u,t._custom={barStart:l,barEnd:u,start:i,end:a,min:s,max:o}}function KT(e,t,n,r){return Be(e)?XU(e,t,n,r):t[n.axis]=n.parse(e,r),t}function m6(e,t,n,r){const i=e.iScale,a=e.vScale,s=i.getLabels(),o=i===a,l=[];let u,c,d,f;for(u=n,c=n+r;u<c;++u)f=t[u],d={},d[i.axis]=o||i.parse(s[u],u),l.push(KT(f,d,a,u));return l}function mp(e){return e&&e.barStart!==void 0&&e.barEnd!==void 0}function QU(e,t,n){return e!==0?Zn(e):(t.isHorizontal()?1:-1)*(t.min>=n?1:-1)}function JU(e){let t,n,r,i,a;return e.horizontal?(t=e.base>e.x,n="left",r="right"):(t=e.base<e.y,n="bottom",r="top"),t?(i="end",a="start"):(i="start",a="end"),{start:n,end:r,reverse:t,top:i,bottom:a}}function eH(e,t,n,r){let i=t.borderSkipped;const a={};if(!i){e.borderSkipped=a;return}if(i===!0){e.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}const{start:s,end:o,reverse:l,top:u,bottom:c}=JU(e);i==="middle"&&n&&(e.enableBorderRadius=!0,(n._top||0)===r?i=u:(n._bottom||0)===r?i=c:(a[g6(c,s,o,l)]=!0,i=u)),a[g6(i,s,o,l)]=!0,e.borderSkipped=a}function g6(e,t,n,r){return r?(e=tH(e,t,n),e=v6(e,n,t)):e=v6(e,t,n),e}function tH(e,t,n){return e===t?n:e===n?t:e}function v6(e,t,n){return e==="start"?t:e==="end"?n:e}function nH(e,{inflateAmount:t},n){e.inflateAmount=t==="auto"?n===1?.33:0:t}class lc extends In{parsePrimitiveData(t,n,r,i){return m6(t,n,r,i)}parseArrayData(t,n,r,i){return m6(t,n,r,i)}parseObjectData(t,n,r,i){const{iScale:a,vScale:s}=t,{xAxisKey:o="x",yAxisKey:l="y"}=this._parsing,u=a.axis==="x"?o:l,c=s.axis==="x"?o:l,d=[];let f,h,p,g;for(f=r,h=r+i;f<h;++f)g=n[f],p={},p[a.axis]=a.parse(ci(g,u),f),d.push(KT(ci(g,c),p,s,f));return d}updateRangeFromParsed(t,n,r,i){super.updateRangeFromParsed(t,n,r,i);const a=r._custom;a&&n===this._cachedMeta.vScale&&(t.min=Math.min(t.min,a.min),t.max=Math.max(t.max,a.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const n=this._cachedMeta,{iScale:r,vScale:i}=n,a=this.getParsed(t),s=a._custom,o=mp(s)?"["+s.start+", "+s.end+"]":""+i.getLabelForValue(a[i.axis]);return{label:""+r.getLabelForValue(a[r.axis]),value:o}}initialize(){this.enableOptionSharing=!0,super.initialize();const t=this._cachedMeta;t.stack=this.getDataset().stack}update(t){const n=this._cachedMeta;this.updateElements(n.data,0,n.data.length,t)}updateElements(t,n,r,i){const a=i==="reset",{index:s,_cachedMeta:{vScale:o}}=this,l=o.getBasePixel(),u=o.isHorizontal(),c=this._getRuler(),{sharedOptions:d,includeOptions:f}=this._getSharedOptions(n,i);for(let h=n;h<n+r;h++){const p=this.getParsed(h),g=a||ce(p[o.axis])?{base:l,head:l}:this._calculateBarValuePixels(h),b=this._calculateBarIndexPixels(h,c),v=(p._stacks||{})[o.axis],m={horizontal:u,base:g.base,enableBorderRadius:!v||mp(p._custom)||s===v._top||s===v._bottom,x:u?g.head:b.center,y:u?b.center:g.head,height:u?b.size:Math.abs(g.size),width:u?Math.abs(g.size):b.size};f&&(m.options=d||this.resolveDataElementOptions(h,t[h].active?"active":i));const $=m.options||t[h].options;eH(m,$,v,s),nH(m,$,c.ratio),this.updateElement(t[h],h,m,i)}}_getStacks(t,n){const{iScale:r}=this._cachedMeta,i=r.getMatchingVisibleMetas(this._type).filter(l=>l.controller.options.grouped),a=r.options.stacked,s=[],o=l=>{const u=l.controller.getParsed(n),c=u&&u[l.vScale.axis];if(ce(c)||isNaN(c))return!0};for(const l of i)if(!(n!==void 0&&o(l))&&((a===!1||s.indexOf(l.stack)===-1||a===void 0&&l.stack===void 0)&&s.push(l.stack),l.index===t))break;return s.length||s.push(void 0),s}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,n,r){const i=this._getStacks(t,r),a=n!==void 0?i.indexOf(n):-1;return a===-1?i.length-1:a}_getRuler(){const t=this.options,n=this._cachedMeta,r=n.iScale,i=[];let a,s;for(a=0,s=n.data.length;a<s;++a)i.push(r.getPixelForValue(this.getParsed(a)[r.axis],a));const o=t.barThickness;return{min:o||qU(n),pixels:i,start:r._startPixel,end:r._endPixel,stackCount:this._getStackCount(),scale:r,grouped:t.grouped,ratio:o?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:n,_stacked:r,index:i},options:{base:a,minBarLength:s}}=this,o=a||0,l=this.getParsed(t),u=l._custom,c=mp(u);let d=l[n.axis],f=0,h=r?this.applyStack(n,l,r):d,p,g;h!==d&&(f=h-d,h=d),c&&(d=u.barStart,h=u.barEnd-u.barStart,d!==0&&Zn(d)!==Zn(u.barEnd)&&(f=0),f+=d);const b=!ce(a)&&!c?a:f;let v=n.getPixelForValue(b);if(this.chart.getDataVisibility(t)?p=n.getPixelForValue(f+h):p=v,g=p-v,Math.abs(g)<s){g=QU(g,n,o)*s,d===o&&(v-=g/2);const m=n.getPixelForDecimal(0),$=n.getPixelForDecimal(1),w=Math.min(m,$),D=Math.max(m,$);v=Math.max(Math.min(v,D),w),p=v+g,r&&!c&&(l._stacks[n.axis]._visualValues[i]=n.getValueForPixel(p)-n.getValueForPixel(v))}if(v===n.getPixelForValue(o)){const m=Zn(g)*n.getLineWidthForValue(o)/2;v+=m,g-=m}return{size:g,base:v,head:p,center:p+g/2}}_calculateBarIndexPixels(t,n){const r=n.scale,i=this.options,a=i.skipNull,s=J(i.maxBarThickness,1/0);let o,l;if(n.grouped){const u=a?this._getStackCount(t):n.stackCount,c=i.barThickness==="flex"?ZU(t,n,i,u):GU(t,n,i,u),d=this._getStackIndex(this.index,this._cachedMeta.stack,a?t:void 0);o=c.start+c.chunk*d+c.chunk/2,l=Math.min(s,c.chunk*c.ratio)}else o=r.getPixelForValue(this.getParsed(t)[r.axis],t),l=Math.min(s,n.min*n.ratio);return{base:o-l/2,head:o+l/2,center:o,size:l}}draw(){const t=this._cachedMeta,n=t.vScale,r=t.data,i=r.length;let a=0;for(;a<i;++a)this.getParsed(a)[n.axis]!==null&&!r[a].hidden&&r[a].draw(this._ctx)}}j(lc,"id","bar"),j(lc,"defaults",{datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}}),j(lc,"overrides",{scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}});class uc extends In{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,n,r,i){const a=super.parsePrimitiveData(t,n,r,i);for(let s=0;s<a.length;s++)a[s]._custom=this.resolveDataElementOptions(s+r).radius;return a}parseArrayData(t,n,r,i){const a=super.parseArrayData(t,n,r,i);for(let s=0;s<a.length;s++){const o=n[r+s];a[s]._custom=J(o[2],this.resolveDataElementOptions(s+r).radius)}return a}parseObjectData(t,n,r,i){const a=super.parseObjectData(t,n,r,i);for(let s=0;s<a.length;s++){const o=n[r+s];a[s]._custom=J(o&&o.r&&+o.r,this.resolveDataElementOptions(s+r).radius)}return a}getMaxOverflow(){const t=this._cachedMeta.data;let n=0;for(let r=t.length-1;r>=0;--r)n=Math.max(n,t[r].size(this.resolveDataElementOptions(r))/2);return n>0&&n}getLabelAndValue(t){const n=this._cachedMeta,r=this.chart.data.labels||[],{xScale:i,yScale:a}=n,s=this.getParsed(t),o=i.getLabelForValue(s.x),l=a.getLabelForValue(s.y),u=s._custom;return{label:r[t]||"",value:"("+o+", "+l+(u?", "+u:"")+")"}}update(t){const n=this._cachedMeta.data;this.updateElements(n,0,n.length,t)}updateElements(t,n,r,i){const a=i==="reset",{iScale:s,vScale:o}=this._cachedMeta,{sharedOptions:l,includeOptions:u}=this._getSharedOptions(n,i),c=s.axis,d=o.axis;for(let f=n;f<n+r;f++){const h=t[f],p=!a&&this.getParsed(f),g={},b=g[c]=a?s.getPixelForDecimal(.5):s.getPixelForValue(p[c]),v=g[d]=a?o.getBasePixel():o.getPixelForValue(p[d]);g.skip=isNaN(b)||isNaN(v),u&&(g.options=l||this.resolveDataElementOptions(f,h.active?"active":i),a&&(g.options.radius=0)),this.updateElement(h,f,g,i)}}resolveDataElementOptions(t,n){const r=this.getParsed(t);let i=super.resolveDataElementOptions(t,n);i.$shared&&(i=Object.assign({},i,{$shared:!1}));const a=i.radius;return n!=="active"&&(i.radius=0),i.radius+=J(r&&r._custom,a),i}}j(uc,"id","bubble"),j(uc,"defaults",{datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}}),j(uc,"overrides",{scales:{x:{type:"linear"},y:{type:"linear"}}});function rH(e,t,n){let r=1,i=1,a=0,s=0;if(t<Te){const o=e,l=o+t,u=Math.cos(o),c=Math.sin(o),d=Math.cos(l),f=Math.sin(l),h=($,w,D)=>$l($,o,l,!0)?1:Math.max(w,w*n,D,D*n),p=($,w,D)=>$l($,o,l,!0)?-1:Math.min(w,w*n,D,D*n),g=h(0,u,d),b=h(qe,c,f),v=p(Me,u,d),m=p(Me+qe,c,f);r=(g-v)/2,i=(b-m)/2,a=-(g+v)/2,s=-(b+m)/2}return{ratioX:r,ratioY:i,offsetX:a,offsetY:s}}class Hi extends In{constructor(t,n){super(t,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,n){const r=this.getDataset().data,i=this._cachedMeta;if(this._parsing===!1)i._parsed=r;else{let a=l=>+r[l];if(ae(r[t])){const{key:l="value"}=this._parsing;a=u=>+ci(r[u],l)}let s,o;for(s=t,o=t+n;s<o;++s)i._parsed[s]=a(s)}}_getRotation(){return An(this.options.rotation-90)}_getCircumference(){return An(this.options.circumference)}_getRotationExtents(){let t=Te,n=-Te;for(let r=0;r<this.chart.data.datasets.length;++r)if(this.chart.isDatasetVisible(r)&&this.chart.getDatasetMeta(r).type===this._type){const i=this.chart.getDatasetMeta(r).controller,a=i._getRotation(),s=i._getCircumference();t=Math.min(t,a),n=Math.max(n,a+s)}return{rotation:t,circumference:n-t}}update(t){const n=this.chart,{chartArea:r}=n,i=this._cachedMeta,a=i.data,s=this.getMaxBorderWidth()+this.getMaxOffset(a)+this.options.spacing,o=Math.max((Math.min(r.width,r.height)-s)/2,0),l=Math.min(vW(this.options.cutout,o),1),u=this._getRingWeight(this.index),{circumference:c,rotation:d}=this._getRotationExtents(),{ratioX:f,ratioY:h,offsetX:p,offsetY:g}=rH(d,c,l),b=(r.width-s)/f,v=(r.height-s)/h,m=Math.max(Math.min(b,v)/2,0),$=$T(this.options.radius,m),w=Math.max($*l,0),D=($-w)/this._getVisibleDatasetWeightTotal();this.offsetX=p*$,this.offsetY=g*$,i.total=this.calculateTotal(),this.outerRadius=$-D*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-D*u,0),this.updateElements(a,0,a.length,t)}_circumference(t,n){const r=this.options,i=this._cachedMeta,a=this._getCircumference();return n&&r.animation.animateRotate||!this.chart.getDataVisibility(t)||i._parsed[t]===null||i.data[t].hidden?0:this.calculateCircumference(i._parsed[t]*a/Te)}updateElements(t,n,r,i){const a=i==="reset",s=this.chart,o=s.chartArea,u=s.options.animation,c=(o.left+o.right)/2,d=(o.top+o.bottom)/2,f=a&&u.animateScale,h=f?0:this.innerRadius,p=f?0:this.outerRadius,{sharedOptions:g,includeOptions:b}=this._getSharedOptions(n,i);let v=this._getRotation(),m;for(m=0;m<n;++m)v+=this._circumference(m,a);for(m=n;m<n+r;++m){const $=this._circumference(m,a),w=t[m],D={x:c+this.offsetX,y:d+this.offsetY,startAngle:v,endAngle:v+$,circumference:$,outerRadius:p,innerRadius:h};b&&(D.options=g||this.resolveDataElementOptions(m,w.active?"active":i)),v+=$,this.updateElement(w,m,D,i)}}calculateTotal(){const t=this._cachedMeta,n=t.data;let r=0,i;for(i=0;i<n.length;i++){const a=t._parsed[i];a!==null&&!isNaN(a)&&this.chart.getDataVisibility(i)&&!n[i].hidden&&(r+=Math.abs(a))}return r}calculateCircumference(t){const n=this._cachedMeta.total;return n>0&&!isNaN(t)?Te*(Math.abs(t)/n):0}getLabelAndValue(t){const n=this._cachedMeta,r=this.chart,i=r.data.labels||[],a=Ul(n._parsed[t],r.options.locale);return{label:i[t]||"",value:a}}getMaxBorderWidth(t){let n=0;const r=this.chart;let i,a,s,o,l;if(!t){for(i=0,a=r.data.datasets.length;i<a;++i)if(r.isDatasetVisible(i)){s=r.getDatasetMeta(i),t=s.data,o=s.controller;break}}if(!t)return 0;for(i=0,a=t.length;i<a;++i)l=o.resolveDataElementOptions(i),l.borderAlign!=="inner"&&(n=Math.max(n,l.borderWidth||0,l.hoverBorderWidth||0));return n}getMaxOffset(t){let n=0;for(let r=0,i=t.length;r<i;++r){const a=this.resolveDataElementOptions(r);n=Math.max(n,a.offset||0,a.hoverOffset||0)}return n}_getRingWeightOffset(t){let n=0;for(let r=0;r<t;++r)this.chart.isDatasetVisible(r)&&(n+=this._getRingWeight(r));return n}_getRingWeight(t){return Math.max(J(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}j(Hi,"id","doughnut"),j(Hi,"defaults",{datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"}),j(Hi,"descriptors",{_scriptable:t=>t!=="spacing",_indexable:t=>t!=="spacing"&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")}),j(Hi,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const n=t.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:r,color:i}}=t.legend.options;return n.labels.map((a,s)=>{const l=t.getDatasetMeta(0).controller.getStyle(s);return{text:a,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:i,lineWidth:l.borderWidth,pointStyle:r,hidden:!t.getDataVisibility(s),index:s}})}return[]}},onClick(t,n,r){r.chart.toggleDataVisibility(n.index),r.chart.update()}}}});class zo extends In{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const n=this._cachedMeta,{dataset:r,data:i=[],_dataset:a}=n,s=this.chart._animationsDisabled;let{start:o,count:l}=kT(n,i,s);this._drawStart=o,this._drawCount=l,PT(n)&&(o=0,l=i.length),r._chart=this.chart,r._datasetIndex=this.index,r._decimated=!!a._decimated,r.points=i;const u=this.resolveDatasetElementOptions(t);this.options.showLine||(u.borderWidth=0),u.segment=this.options.segment,this.updateElement(r,void 0,{animated:!s,options:u},t),this.updateElements(i,o,l,t)}updateElements(t,n,r,i){const a=i==="reset",{iScale:s,vScale:o,_stacked:l,_dataset:u}=this._cachedMeta,{sharedOptions:c,includeOptions:d}=this._getSharedOptions(n,i),f=s.axis,h=o.axis,{spanGaps:p,segment:g}=this.options,b=ws(p)?p:Number.POSITIVE_INFINITY,v=this.chart._animationsDisabled||a||i==="none",m=n+r,$=t.length;let w=n>0&&this.getParsed(n-1);for(let D=0;D<$;++D){const S=t[D],k=v?S:{};if(D<n||D>=m){k.skip=!0;continue}const x=this.getParsed(D),T=ce(x[h]),P=k[f]=s.getPixelForValue(x[f],D),E=k[h]=a||T?o.getBasePixel():o.getPixelForValue(l?this.applyStack(o,x,l):x[h],D);k.skip=isNaN(P)||isNaN(E)||T,k.stop=D>0&&Math.abs(x[f]-w[f])>b,g&&(k.parsed=x,k.raw=u.data[D]),d&&(k.options=c||this.resolveDataElementOptions(D,S.active?"active":i)),v||this.updateElement(S,D,k,i),w=x}}getMaxOverflow(){const t=this._cachedMeta,n=t.dataset,r=n.options&&n.options.borderWidth||0,i=t.data||[];if(!i.length)return r;const a=i[0].size(this.resolveDataElementOptions(0)),s=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(r,a,s)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}j(zo,"id","line"),j(zo,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),j(zo,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});class us extends In{constructor(t,n){super(t,n),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const n=this._cachedMeta,r=this.chart,i=r.data.labels||[],a=Ul(n._parsed[t].r,r.options.locale);return{label:i[t]||"",value:a}}parseObjectData(t,n,r,i){return IT.bind(this)(t,n,r,i)}update(t){const n=this._cachedMeta.data;this._updateRadius(),this.updateElements(n,0,n.length,t)}getMinMax(){const t=this._cachedMeta,n={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach((r,i)=>{const a=this.getParsed(i).r;!isNaN(a)&&this.chart.getDataVisibility(i)&&(a<n.min&&(n.min=a),a>n.max&&(n.max=a))}),n}_updateRadius(){const t=this.chart,n=t.chartArea,r=t.options,i=Math.min(n.right-n.left,n.bottom-n.top),a=Math.max(i/2,0),s=Math.max(r.cutoutPercentage?a/100*r.cutoutPercentage:1,0),o=(a-s)/t.getVisibleDatasetCount();this.outerRadius=a-o*this.index,this.innerRadius=this.outerRadius-o}updateElements(t,n,r,i){const a=i==="reset",s=this.chart,l=s.options.animation,u=this._cachedMeta.rScale,c=u.xCenter,d=u.yCenter,f=u.getIndexAngle(0)-.5*Me;let h=f,p;const g=360/this.countVisibleElements();for(p=0;p<n;++p)h+=this._computeAngle(p,i,g);for(p=n;p<n+r;p++){const b=t[p];let v=h,m=h+this._computeAngle(p,i,g),$=s.getDataVisibility(p)?u.getDistanceFromCenterForValue(this.getParsed(p).r):0;h=m,a&&(l.animateScale&&($=0),l.animateRotate&&(v=m=f));const w={x:c,y:d,innerRadius:0,outerRadius:$,startAngle:v,endAngle:m,options:this.resolveDataElementOptions(p,b.active?"active":i)};this.updateElement(b,p,w,i)}}countVisibleElements(){const t=this._cachedMeta;let n=0;return t.data.forEach((r,i)=>{!isNaN(this.getParsed(i).r)&&this.chart.getDataVisibility(i)&&n++}),n}_computeAngle(t,n,r){return this.chart.getDataVisibility(t)?An(this.resolveDataElementOptions(t,n).angle||r):0}}j(us,"id","polarArea"),j(us,"defaults",{dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0}),j(us,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const n=t.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:r,color:i}}=t.legend.options;return n.labels.map((a,s)=>{const l=t.getDatasetMeta(0).controller.getStyle(s);return{text:a,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:i,lineWidth:l.borderWidth,pointStyle:r,hidden:!t.getDataVisibility(s),index:s}})}return[]}},onClick(t,n,r){r.chart.toggleDataVisibility(n.index),r.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}});class Gy extends Hi{}j(Gy,"id","pie"),j(Gy,"defaults",{cutout:0,rotation:0,circumference:360,radius:"100%"});class cc extends In{getLabelAndValue(t){const n=this._cachedMeta.vScale,r=this.getParsed(t);return{label:n.getLabels()[t],value:""+n.getLabelForValue(r[n.axis])}}parseObjectData(t,n,r,i){return IT.bind(this)(t,n,r,i)}update(t){const n=this._cachedMeta,r=n.dataset,i=n.data||[],a=n.iScale.getLabels();if(r.points=i,t!=="resize"){const s=this.resolveDatasetElementOptions(t);this.options.showLine||(s.borderWidth=0);const o={_loop:!0,_fullLoop:a.length===i.length,options:s};this.updateElement(r,void 0,o,t)}this.updateElements(i,0,i.length,t)}updateElements(t,n,r,i){const a=this._cachedMeta.rScale,s=i==="reset";for(let o=n;o<n+r;o++){const l=t[o],u=this.resolveDataElementOptions(o,l.active?"active":i),c=a.getPointPositionForValue(o,this.getParsed(o).r),d=s?a.xCenter:c.x,f=s?a.yCenter:c.y,h={x:d,y:f,angle:c.angle,skip:isNaN(d)||isNaN(f),options:u};this.updateElement(l,o,h,i)}}}j(cc,"id","radar"),j(cc,"defaults",{datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}}),j(cc,"overrides",{aspectRatio:1,scales:{r:{type:"radialLinear"}}});class dc extends In{getLabelAndValue(t){const n=this._cachedMeta,r=this.chart.data.labels||[],{xScale:i,yScale:a}=n,s=this.getParsed(t),o=i.getLabelForValue(s.x),l=a.getLabelForValue(s.y);return{label:r[t]||"",value:"("+o+", "+l+")"}}update(t){const n=this._cachedMeta,{data:r=[]}=n,i=this.chart._animationsDisabled;let{start:a,count:s}=kT(n,r,i);if(this._drawStart=a,this._drawCount=s,PT(n)&&(a=0,s=r.length),this.options.showLine){this.datasetElementType||this.addElements();const{dataset:o,_dataset:l}=n;o._chart=this.chart,o._datasetIndex=this.index,o._decimated=!!l._decimated,o.points=r;const u=this.resolveDatasetElementOptions(t);u.segment=this.options.segment,this.updateElement(o,void 0,{animated:!i,options:u},t)}else this.datasetElementType&&(delete n.dataset,this.datasetElementType=!1);this.updateElements(r,a,s,t)}addElements(){const{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(t,n,r,i){const a=i==="reset",{iScale:s,vScale:o,_stacked:l,_dataset:u}=this._cachedMeta,c=this.resolveDataElementOptions(n,i),d=this.getSharedOptions(c),f=this.includeOptions(i,d),h=s.axis,p=o.axis,{spanGaps:g,segment:b}=this.options,v=ws(g)?g:Number.POSITIVE_INFINITY,m=this.chart._animationsDisabled||a||i==="none";let $=n>0&&this.getParsed(n-1);for(let w=n;w<n+r;++w){const D=t[w],S=this.getParsed(w),k=m?D:{},x=ce(S[p]),T=k[h]=s.getPixelForValue(S[h],w),P=k[p]=a||x?o.getBasePixel():o.getPixelForValue(l?this.applyStack(o,S,l):S[p],w);k.skip=isNaN(T)||isNaN(P)||x,k.stop=w>0&&Math.abs(S[h]-$[h])>v,b&&(k.parsed=S,k.raw=u.data[w]),f&&(k.options=d||this.resolveDataElementOptions(w,D.active?"active":i)),m||this.updateElement(D,w,k,i),$=S}this.updateSharedOptions(d,i,c)}getMaxOverflow(){const t=this._cachedMeta,n=t.data||[];if(!this.options.showLine){let o=0;for(let l=n.length-1;l>=0;--l)o=Math.max(o,n[l].size(this.resolveDataElementOptions(l))/2);return o>0&&o}const r=t.dataset,i=r.options&&r.options.borderWidth||0;if(!n.length)return i;const a=n[0].size(this.resolveDataElementOptions(0)),s=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(i,a,s)/2}}j(dc,"id","scatter"),j(dc,"defaults",{datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1}),j(dc,"overrides",{interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}});var iH=Object.freeze({__proto__:null,BarController:lc,BubbleController:uc,DoughnutController:Hi,LineController:zo,PieController:Gy,PolarAreaController:us,RadarController:cc,ScatterController:dc});function Ei(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class K${constructor(t){j(this,"options");this.options=t||{}}static override(t){Object.assign(K$.prototype,t)}init(){}formats(){return Ei()}parse(){return Ei()}format(){return Ei()}add(){return Ei()}diff(){return Ei()}startOf(){return Ei()}endOf(){return Ei()}}var aH={_date:K$};function sH(e,t,n,r){const{controller:i,data:a,_sorted:s}=e,o=i._cachedMeta.iScale;if(o&&t===o.axis&&t!=="r"&&s&&a.length){const l=o._reversePixels?PW:gr;if(r){if(i._sharedOptions){const u=a[0],c=typeof u.getRange=="function"&&u.getRange(t);if(c){const d=l(a,t,n-c),f=l(a,t,n+c);return{lo:d.lo,hi:f.hi}}}}else return l(a,t,n)}return{lo:0,hi:a.length-1}}function Hl(e,t,n,r,i){const a=e.getSortedVisibleDatasetMetas(),s=n[t];for(let o=0,l=a.length;o<l;++o){const{index:u,data:c}=a[o],{lo:d,hi:f}=sH(a[o],t,s,i);for(let h=d;h<=f;++h){const p=c[h];p.skip||r(p,u,h)}}}function oH(e){const t=e.indexOf("x")!==-1,n=e.indexOf("y")!==-1;return function(r,i){const a=t?Math.abs(r.x-i.x):0,s=n?Math.abs(r.y-i.y):0;return Math.sqrt(Math.pow(a,2)+Math.pow(s,2))}}function gp(e,t,n,r,i){const a=[];return!i&&!e.isPointInArea(t)||Hl(e,n,t,function(o,l,u){!i&&!vr(o,e.chartArea,0)||o.inRange(t.x,t.y,r)&&a.push({element:o,datasetIndex:l,index:u})},!0),a}function lH(e,t,n,r){let i=[];function a(s,o,l){const{startAngle:u,endAngle:c}=s.getProps(["startAngle","endAngle"],r),{angle:d}=DT(s,{x:t.x,y:t.y});$l(d,u,c)&&i.push({element:s,datasetIndex:o,index:l})}return Hl(e,n,t,a),i}function uH(e,t,n,r,i,a){let s=[];const o=oH(n);let l=Number.POSITIVE_INFINITY;function u(c,d,f){const h=c.inRange(t.x,t.y,i);if(r&&!h)return;const p=c.getCenterPoint(i);if(!(!!a||e.isPointInArea(p))&&!h)return;const b=o(t,p);b<l?(s=[{element:c,datasetIndex:d,index:f}],l=b):b===l&&s.push({element:c,datasetIndex:d,index:f})}return Hl(e,n,t,u),s}function vp(e,t,n,r,i,a){return!a&&!e.isPointInArea(t)?[]:n==="r"&&!r?lH(e,t,n,i):uH(e,t,n,r,i,a)}function b6(e,t,n,r,i){const a=[],s=n==="x"?"inXRange":"inYRange";let o=!1;return Hl(e,n,t,(l,u,c)=>{l[s](t[n],i)&&(a.push({element:l,datasetIndex:u,index:c}),o=o||l.inRange(t.x,t.y,i))}),r&&!o?[]:a}var cH={evaluateInteractionItems:Hl,modes:{index(e,t,n,r){const i=Fi(t,e),a=n.axis||"x",s=n.includeInvisible||!1,o=n.intersect?gp(e,i,a,r,s):vp(e,i,a,!1,r,s),l=[];return o.length?(e.getSortedVisibleDatasetMetas().forEach(u=>{const c=o[0].index,d=u.data[c];d&&!d.skip&&l.push({element:d,datasetIndex:u.index,index:c})}),l):[]},dataset(e,t,n,r){const i=Fi(t,e),a=n.axis||"xy",s=n.includeInvisible||!1;let o=n.intersect?gp(e,i,a,r,s):vp(e,i,a,!1,r,s);if(o.length>0){const l=o[0].datasetIndex,u=e.getDatasetMeta(l).data;o=[];for(let c=0;c<u.length;++c)o.push({element:u[c],datasetIndex:l,index:c})}return o},point(e,t,n,r){const i=Fi(t,e),a=n.axis||"xy",s=n.includeInvisible||!1;return gp(e,i,a,r,s)},nearest(e,t,n,r){const i=Fi(t,e),a=n.axis||"xy",s=n.includeInvisible||!1;return vp(e,i,a,n.intersect,r,s)},x(e,t,n,r){const i=Fi(t,e);return b6(e,i,"x",n.intersect,r)},y(e,t,n,r){const i=Fi(t,e);return b6(e,i,"y",n.intersect,r)}}};const YT=["left","top","right","bottom"];function Js(e,t){return e.filter(n=>n.pos===t)}function y6(e,t){return e.filter(n=>YT.indexOf(n.pos)===-1&&n.box.axis===t)}function eo(e,t){return e.sort((n,r)=>{const i=t?r:n,a=t?n:r;return i.weight===a.weight?i.index-a.index:i.weight-a.weight})}function dH(e){const t=[];let n,r,i,a,s,o;for(n=0,r=(e||[]).length;n<r;++n)i=e[n],{position:a,options:{stack:s,stackWeight:o=1}}=i,t.push({index:n,box:i,pos:a,horizontal:i.isHorizontal(),weight:i.weight,stack:s&&a+s,stackWeight:o});return t}function fH(e){const t={};for(const n of e){const{stack:r,pos:i,stackWeight:a}=n;if(!r||!YT.includes(i))continue;const s=t[r]||(t[r]={count:0,placed:0,weight:0,size:0});s.count++,s.weight+=a}return t}function hH(e,t){const n=fH(e),{vBoxMaxWidth:r,hBoxMaxHeight:i}=t;let a,s,o;for(a=0,s=e.length;a<s;++a){o=e[a];const{fullSize:l}=o.box,u=n[o.stack],c=u&&o.stackWeight/u.weight;o.horizontal?(o.width=c?c*r:l&&t.availableWidth,o.height=i):(o.width=r,o.height=c?c*i:l&&t.availableHeight)}return n}function pH(e){const t=dH(e),n=eo(t.filter(u=>u.box.fullSize),!0),r=eo(Js(t,"left"),!0),i=eo(Js(t,"right")),a=eo(Js(t,"top"),!0),s=eo(Js(t,"bottom")),o=y6(t,"x"),l=y6(t,"y");return{fullSize:n,leftAndTop:r.concat(a),rightAndBottom:i.concat(l).concat(s).concat(o),chartArea:Js(t,"chartArea"),vertical:r.concat(i).concat(l),horizontal:a.concat(s).concat(o)}}function $6(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function qT(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function mH(e,t,n,r){const{pos:i,box:a}=n,s=e.maxPadding;if(!ae(i)){n.size&&(e[i]-=n.size);const d=r[n.stack]||{size:0,count:1};d.size=Math.max(d.size,n.horizontal?a.height:a.width),n.size=d.size/d.count,e[i]+=n.size}a.getPadding&&qT(s,a.getPadding());const o=Math.max(0,t.outerWidth-$6(s,e,"left","right")),l=Math.max(0,t.outerHeight-$6(s,e,"top","bottom")),u=o!==e.w,c=l!==e.h;return e.w=o,e.h=l,n.horizontal?{same:u,other:c}:{same:c,other:u}}function gH(e){const t=e.maxPadding;function n(r){const i=Math.max(t[r]-e[r],0);return e[r]+=i,i}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function vH(e,t){const n=t.maxPadding;function r(i){const a={left:0,top:0,right:0,bottom:0};return i.forEach(s=>{a[s]=Math.max(t[s],n[s])}),a}return r(e?["left","right"]:["top","bottom"])}function yo(e,t,n,r){const i=[];let a,s,o,l,u,c;for(a=0,s=e.length,u=0;a<s;++a){o=e[a],l=o.box,l.update(o.width||t.w,o.height||t.h,vH(o.horizontal,t));const{same:d,other:f}=mH(t,n,o,r);u|=d&&i.length,c=c||f,l.fullSize||i.push(o)}return u&&yo(i,t,n,r)||c}function Ou(e,t,n,r,i){e.top=n,e.left=t,e.right=t+r,e.bottom=n+i,e.width=r,e.height=i}function x6(e,t,n,r){const i=n.padding;let{x:a,y:s}=t;for(const o of e){const l=o.box,u=r[o.stack]||{count:1,placed:0,weight:1},c=o.stackWeight/u.weight||1;if(o.horizontal){const d=t.w*c,f=u.size||l.height;yl(u.start)&&(s=u.start),l.fullSize?Ou(l,i.left,s,n.outerWidth-i.right-i.left,f):Ou(l,t.left+u.placed,s,d,f),u.start=s,u.placed+=d,s=l.bottom}else{const d=t.h*c,f=u.size||l.width;yl(u.start)&&(a=u.start),l.fullSize?Ou(l,a,i.top,f,n.outerHeight-i.bottom-i.top):Ou(l,a,t.top+u.placed,f,d),u.start=a,u.placed+=d,a=l.right}}t.x=a,t.y=s}var Ct={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(n){t.draw(n)}}]},e.boxes.push(t)},removeBox(e,t){const n=e.boxes?e.boxes.indexOf(t):-1;n!==-1&&e.boxes.splice(n,1)},configure(e,t,n){t.fullSize=n.fullSize,t.position=n.position,t.weight=n.weight},update(e,t,n,r){if(!e)return;const i=Pt(e.options.layout.padding),a=Math.max(t-i.width,0),s=Math.max(n-i.height,0),o=pH(e.boxes),l=o.vertical,u=o.horizontal;me(e.boxes,g=>{typeof g.beforeLayout=="function"&&g.beforeLayout()});const c=l.reduce((g,b)=>b.box.options&&b.box.options.display===!1?g:g+1,0)||1,d=Object.freeze({outerWidth:t,outerHeight:n,padding:i,availableWidth:a,availableHeight:s,vBoxMaxWidth:a/2/c,hBoxMaxHeight:s/2}),f=Object.assign({},i);qT(f,Pt(r));const h=Object.assign({maxPadding:f,w:a,h:s,x:i.left,y:i.top},i),p=hH(l.concat(u),d);yo(o.fullSize,h,d,p),yo(l,h,d,p),yo(u,h,d,p)&&yo(l,h,d,p),gH(h),x6(o.leftAndTop,h,d,p),h.x+=h.w,h.y+=h.h,x6(o.rightAndBottom,h,d,p),e.chartArea={left:h.left,top:h.top,right:h.left+h.w,bottom:h.top+h.h,height:h.h,width:h.w},me(o.chartArea,g=>{const b=g.box;Object.assign(b,e.chartArea),b.update(h.w,h.h,{left:0,top:0,right:0,bottom:0})})}};class GT{acquireContext(t,n){}releaseContext(t){return!1}addEventListener(t,n,r){}removeEventListener(t,n,r){}getDevicePixelRatio(){return 1}getMaximumSize(t,n,r,i){return n=Math.max(0,n||t.width),r=r||t.height,{width:n,height:Math.max(0,i?Math.floor(n/i):r)}}isAttached(t){return!0}updateConfig(t){}}class bH extends GT{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const fc="$chartjs",yH={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},w6=e=>e===null||e==="";function $H(e,t){const n=e.style,r=e.getAttribute("height"),i=e.getAttribute("width");if(e[fc]={initial:{height:r,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",w6(i)){const a=i6(e,"width");a!==void 0&&(e.width=a)}if(w6(r))if(e.style.height==="")e.height=e.width/(t||2);else{const a=i6(e,"height");a!==void 0&&(e.height=a)}return e}const ZT=wU?{passive:!0}:!1;function xH(e,t,n){e&&e.addEventListener(t,n,ZT)}function wH(e,t,n){e&&e.canvas&&e.canvas.removeEventListener(t,n,ZT)}function DH(e,t){const n=yH[e.type]||e.type,{x:r,y:i}=Fi(e,t);return{type:n,chart:t,native:e,x:r!==void 0?r:null,y:i!==void 0?i:null}}function qd(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function _H(e,t,n){const r=e.canvas,i=new MutationObserver(a=>{let s=!1;for(const o of a)s=s||qd(o.addedNodes,r),s=s&&!qd(o.removedNodes,r);s&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}function EH(e,t,n){const r=e.canvas,i=new MutationObserver(a=>{let s=!1;for(const o of a)s=s||qd(o.removedNodes,r),s=s&&!qd(o.addedNodes,r);s&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}const wl=new Map;let D6=0;function XT(){const e=window.devicePixelRatio;e!==D6&&(D6=e,wl.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function SH(e,t){wl.size||window.addEventListener("resize",XT),wl.set(e,t)}function CH(e){wl.delete(e),wl.size||window.removeEventListener("resize",XT)}function kH(e,t,n){const r=e.canvas,i=r&&H$(r);if(!i)return;const a=CT((o,l)=>{const u=i.clientWidth;n(o,l),u<i.clientWidth&&n()},window),s=new ResizeObserver(o=>{const l=o[0],u=l.contentRect.width,c=l.contentRect.height;u===0&&c===0||a(u,c)});return s.observe(i),SH(e,a),s}function bp(e,t,n){n&&n.disconnect(),t==="resize"&&CH(e)}function PH(e,t,n){const r=e.canvas,i=CT(a=>{e.ctx!==null&&n(DH(a,e))},e);return xH(r,t,i),i}class TH extends GT{acquireContext(t,n){const r=t&&t.getContext&&t.getContext("2d");return r&&r.canvas===t?($H(t,n),r):null}releaseContext(t){const n=t.canvas;if(!n[fc])return!1;const r=n[fc].initial;["height","width"].forEach(a=>{const s=r[a];ce(s)?n.removeAttribute(a):n.setAttribute(a,s)});const i=r.style||{};return Object.keys(i).forEach(a=>{n.style[a]=i[a]}),n.width=n.width,delete n[fc],!0}addEventListener(t,n,r){this.removeEventListener(t,n);const i=t.$proxies||(t.$proxies={}),s={attach:_H,detach:EH,resize:kH}[n]||PH;i[n]=s(t,n,r)}removeEventListener(t,n){const r=t.$proxies||(t.$proxies={}),i=r[n];if(!i)return;({attach:bp,detach:bp,resize:bp}[n]||wH)(t,n,i),r[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,r,i){return xU(t,n,r,i)}isAttached(t){const n=t&&H$(t);return!!(n&&n.isConnected)}}function RH(e){return!U$()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?bH:TH}var Uu;let Cr=(Uu=class{constructor(){j(this,"x");j(this,"y");j(this,"active",!1);j(this,"options");j(this,"$animations")}tooltipPosition(t){const{x:n,y:r}=this.getProps(["x","y"],t);return{x:n,y:r}}hasValue(){return ws(this.x)&&ws(this.y)}getProps(t,n){const r=this.$animations;if(!n||!r)return this;const i={};return t.forEach(a=>{i[a]=r[a]&&r[a].active()?r[a]._to:this[a]}),i}},j(Uu,"defaults",{}),j(Uu,"defaultRoutes"),Uu);function MH(e,t){const n=e.options.ticks,r=FH(e),i=Math.min(n.maxTicksLimit||r,r),a=n.major.enabled?OH(t):[],s=a.length,o=a[0],l=a[s-1],u=[];if(s>i)return BH(t,u,a,s/i),u;const c=AH(a,t,i);if(s>0){let d,f;const h=s>1?Math.round((l-o)/(s-1)):null;for(Bu(t,u,c,ce(h)?0:o-h,o),d=0,f=s-1;d<f;d++)Bu(t,u,c,a[d],a[d+1]);return Bu(t,u,c,l,ce(h)?t.length:l+h),u}return Bu(t,u,c),u}function FH(e){const t=e.options.offset,n=e._tickSize(),r=e._length/n+(t?0:1),i=e._maxLength/n;return Math.floor(Math.min(r,i))}function AH(e,t,n){const r=IH(e),i=t.length/n;if(!r)return Math.max(i,1);const a=EW(r);for(let s=0,o=a.length-1;s<o;s++){const l=a[s];if(l>i)return l}return Math.max(i,1)}function OH(e){const t=[];let n,r;for(n=0,r=e.length;n<r;n++)e[n].major&&t.push(n);return t}function BH(e,t,n,r){let i=0,a=n[0],s;for(r=Math.ceil(r),s=0;s<e.length;s++)s===a&&(t.push(e[s]),i++,a=n[i*r])}function Bu(e,t,n,r,i){const a=J(r,0),s=Math.min(J(i,e.length),e.length);let o=0,l,u,c;for(n=Math.ceil(n),i&&(l=i-r,n=l/Math.floor(l/n)),c=a;c<0;)o++,c=Math.round(a+o*n);for(u=Math.max(a,0);u<s;u++)u===c&&(t.push(e[u]),o++,c=Math.round(a+o*n))}function IH(e){const t=e.length;let n,r;if(t<2)return!1;for(r=e[0],n=1;n<t;++n)if(e[n]-e[n-1]!==r)return!1;return r}const LH=e=>e==="left"?"right":e==="right"?"left":e,_6=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n,E6=(e,t)=>Math.min(t||e,e);function S6(e,t){const n=[],r=e.length/t,i=e.length;let a=0;for(;a<i;a+=r)n.push(e[Math.floor(a)]);return n}function NH(e,t,n){const r=e.ticks.length,i=Math.min(t,r-1),a=e._startPixel,s=e._endPixel,o=1e-6;let l=e.getPixelForTick(i),u;if(!(n&&(r===1?u=Math.max(l-a,s-l):t===0?u=(e.getPixelForTick(1)-l)/2:u=(l-e.getPixelForTick(i-1))/2,l+=i<t?u:-u,l<a-o||l>s+o)))return l}function jH(e,t){me(e,n=>{const r=n.gc,i=r.length/2;let a;if(i>t){for(a=0;a<i;++a)delete n.data[r[a]];r.splice(0,i)}})}function to(e){return e.drawTicks?e.tickLength:0}function C6(e,t){if(!e.display)return 0;const n=it(e.font,t),r=Pt(e.padding);return(Be(e.text)?e.text.length:1)*n.lineHeight+r.height}function zH(e,t){return bi(e,{scale:t,type:"scale"})}function VH(e,t,n){return bi(e,{tick:n,index:t,type:"tick"})}function WH(e,t,n){let r=L$(e);return(n&&t!=="right"||!n&&t==="right")&&(r=LH(r)),r}function UH(e,t,n,r){const{top:i,left:a,bottom:s,right:o,chart:l}=e,{chartArea:u,scales:c}=l;let d=0,f,h,p;const g=s-i,b=o-a;if(e.isHorizontal()){if(h=Dt(r,a,o),ae(n)){const v=Object.keys(n)[0],m=n[v];p=c[v].getPixelForValue(m)+g-t}else n==="center"?p=(u.bottom+u.top)/2+g-t:p=_6(e,n,t);f=o-a}else{if(ae(n)){const v=Object.keys(n)[0],m=n[v];h=c[v].getPixelForValue(m)-b+t}else n==="center"?h=(u.left+u.right)/2-b+t:h=_6(e,n,t);p=Dt(r,s,i),d=n==="left"?-qe:qe}return{titleX:h,titleY:p,maxWidth:f,rotation:d}}class ya extends Cr{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,n){return t}getUserBounds(){let{_userMin:t,_userMax:n,_suggestedMin:r,_suggestedMax:i}=this;return t=en(t,Number.POSITIVE_INFINITY),n=en(n,Number.NEGATIVE_INFINITY),r=en(r,Number.POSITIVE_INFINITY),i=en(i,Number.NEGATIVE_INFINITY),{min:en(t,r),max:en(n,i),minDefined:Ve(t),maxDefined:Ve(n)}}getMinMax(t){let{min:n,max:r,minDefined:i,maxDefined:a}=this.getUserBounds(),s;if(i&&a)return{min:n,max:r};const o=this.getMatchingVisibleMetas();for(let l=0,u=o.length;l<u;++l)s=o[l].controller.getMinMax(this,t),i||(n=Math.min(n,s.min)),a||(r=Math.max(r,s.max));return n=a&&n>r?r:n,r=i&&n>r?n:r,{min:en(n,en(r,n)),max:en(r,en(n,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){De(this.options.beforeUpdate,[this])}update(t,n,r){const{beginAtZero:i,grace:a,ticks:s}=this.options,o=s.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=n,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=JW(this,a,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=o<this.ticks.length;this._convertTicksToLabels(l?S6(this.ticks,o):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),s.display&&(s.autoSkip||s.source==="auto")&&(this.ticks=MH(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t=this.options.reverse,n,r;this.isHorizontal()?(n=this.left,r=this.right):(n=this.top,r=this.bottom,t=!t),this._startPixel=n,this._endPixel=r,this._reversePixels=t,this._length=r-n,this._alignToPixels=this.options.alignToPixels}afterUpdate(){De(this.options.afterUpdate,[this])}beforeSetDimensions(){De(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){De(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),De(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){De(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const n=this.options.ticks;let r,i,a;for(r=0,i=t.length;r<i;r++)a=t[r],a.label=De(n.callback,[a.value,r,t],this)}afterTickToLabelConversion(){De(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){De(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,n=t.ticks,r=E6(this.ticks.length,t.ticks.maxTicksLimit),i=n.minRotation||0,a=n.maxRotation;let s=i,o,l,u;if(!this._isVisible()||!n.display||i>=a||r<=1||!this.isHorizontal()){this.labelRotation=i;return}const c=this._getLabelSizes(),d=c.widest.width,f=c.highest.height,h=dt(this.chart.width-d,0,this.maxWidth);o=t.offset?this.maxWidth/r:h/(r-1),d+6>o&&(o=h/(r-(t.offset?.5:1)),l=this.maxHeight-to(t.grid)-n.padding-C6(t.title,this.chart.options.font),u=Math.sqrt(d*d+f*f),s=B$(Math.min(Math.asin(dt((c.highest.height+6)/o,-1,1)),Math.asin(dt(l/u,-1,1))-Math.asin(dt(f/u,-1,1)))),s=Math.max(i,Math.min(a,s))),this.labelRotation=s}afterCalculateLabelRotation(){De(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){De(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:n,options:{ticks:r,title:i,grid:a}}=this,s=this._isVisible(),o=this.isHorizontal();if(s){const l=C6(i,n.options.font);if(o?(t.width=this.maxWidth,t.height=to(a)+l):(t.height=this.maxHeight,t.width=to(a)+l),r.display&&this.ticks.length){const{first:u,last:c,widest:d,highest:f}=this._getLabelSizes(),h=r.padding*2,p=An(this.labelRotation),g=Math.cos(p),b=Math.sin(p);if(o){const v=r.mirror?0:b*d.width+g*f.height;t.height=Math.min(this.maxHeight,t.height+v+h)}else{const v=r.mirror?0:g*d.width+b*f.height;t.width=Math.min(this.maxWidth,t.width+v+h)}this._calculatePadding(u,c,b,g)}}this._handleMargins(),o?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,n,r,i){const{ticks:{align:a,padding:s},position:o}=this.options,l=this.labelRotation!==0,u=o!=="top"&&this.axis==="x";if(this.isHorizontal()){const c=this.getPixelForTick(0)-this.left,d=this.right-this.getPixelForTick(this.ticks.length-1);let f=0,h=0;l?u?(f=i*t.width,h=r*n.height):(f=r*t.height,h=i*n.width):a==="start"?h=n.width:a==="end"?f=t.width:a!=="inner"&&(f=t.width/2,h=n.width/2),this.paddingLeft=Math.max((f-c+s)*this.width/(this.width-c),0),this.paddingRight=Math.max((h-d+s)*this.width/(this.width-d),0)}else{let c=n.height/2,d=t.height/2;a==="start"?(c=0,d=t.height):a==="end"&&(c=n.height,d=0),this.paddingTop=c+s,this.paddingBottom=d+s}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){De(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:n}=this.options;return n==="top"||n==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let n,r;for(n=0,r=t.length;n<r;n++)ce(t[n].label)&&(t.splice(n,1),r--,n--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const n=this.options.ticks.sampleSize;let r=this.ticks;n<r.length&&(r=S6(r,n)),this._labelSizes=t=this._computeLabelSizes(r,r.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,n,r){const{ctx:i,_longestTextCache:a}=this,s=[],o=[],l=Math.floor(n/E6(n,r));let u=0,c=0,d,f,h,p,g,b,v,m,$,w,D;for(d=0;d<n;d+=l){if(p=t[d].label,g=this._resolveTickFontOptions(d),i.font=b=g.string,v=a[b]=a[b]||{data:{},gc:[]},m=g.lineHeight,$=w=0,!ce(p)&&!Be(p))$=Kd(i,v.data,v.gc,$,p),w=m;else if(Be(p))for(f=0,h=p.length;f<h;++f)D=p[f],!ce(D)&&!Be(D)&&($=Kd(i,v.data,v.gc,$,D),w+=m);s.push($),o.push(w),u=Math.max($,u),c=Math.max(w,c)}jH(a,n);const S=s.indexOf(u),k=o.indexOf(c),x=T=>({width:s[T]||0,height:o[T]||0});return{first:x(0),last:x(n-1),widest:x(S),highest:x(k),widths:s,heights:o}}getLabelForValue(t){return t}getPixelForValue(t,n){return NaN}getValueForPixel(t){}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const n=this._startPixel+t*this._length;return kW(this._alignToPixels?_i(this.chart,n,0):n)}getDecimalForPixel(t){const n=(t-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:n}=this;return t<0&&n<0?n:t>0&&n>0?t:0}getContext(t){const n=this.ticks||[];if(t>=0&&t<n.length){const r=n[t];return r.$context||(r.$context=VH(this.getContext(),t,r))}return this.$context||(this.$context=zH(this.chart.getContext(),this))}_tickSize(){const t=this.options.ticks,n=An(this.labelRotation),r=Math.abs(Math.cos(n)),i=Math.abs(Math.sin(n)),a=this._getLabelSizes(),s=t.autoSkipPadding||0,o=a?a.widest.width+s:0,l=a?a.highest.height+s:0;return this.isHorizontal()?l*r>o*i?o/r:l/i:l*i<o*r?l/r:o/i}_isVisible(){const t=this.options.display;return t!=="auto"?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const n=this.axis,r=this.chart,i=this.options,{grid:a,position:s,border:o}=i,l=a.offset,u=this.isHorizontal(),d=this.ticks.length+(l?1:0),f=to(a),h=[],p=o.setContext(this.getContext()),g=p.display?p.width:0,b=g/2,v=function(B){return _i(r,B,g)};let m,$,w,D,S,k,x,T,P,E,F,R;if(s==="top")m=v(this.bottom),k=this.bottom-f,T=m-b,E=v(t.top)+b,R=t.bottom;else if(s==="bottom")m=v(this.top),E=t.top,R=v(t.bottom)-b,k=m+b,T=this.top+f;else if(s==="left")m=v(this.right),S=this.right-f,x=m-b,P=v(t.left)+b,F=t.right;else if(s==="right")m=v(this.left),P=t.left,F=v(t.right)-b,S=m+b,x=this.left+f;else if(n==="x"){if(s==="center")m=v((t.top+t.bottom)/2+.5);else if(ae(s)){const B=Object.keys(s)[0],C=s[B];m=v(this.chart.scales[B].getPixelForValue(C))}E=t.top,R=t.bottom,k=m+b,T=k+f}else if(n==="y"){if(s==="center")m=v((t.left+t.right)/2);else if(ae(s)){const B=Object.keys(s)[0],C=s[B];m=v(this.chart.scales[B].getPixelForValue(C))}S=m-b,x=S-f,P=t.left,F=t.right}const M=J(i.ticks.maxTicksLimit,d),z=Math.max(1,Math.ceil(d/M));for($=0;$<d;$+=z){const B=this.getContext($),C=a.setContext(B),O=o.setContext(B),I=C.lineWidth,N=C.color,X=O.dash||[],Q=O.dashOffset,je=C.tickWidth,$e=C.tickColor,lt=C.tickBorderDash||[],xe=C.tickBorderDashOffset;w=NH(this,$,l),w!==void 0&&(D=_i(r,w,I),u?S=x=P=F=D:k=T=E=R=D,h.push({tx1:S,ty1:k,tx2:x,ty2:T,x1:P,y1:E,x2:F,y2:R,width:I,color:N,borderDash:X,borderDashOffset:Q,tickWidth:je,tickColor:$e,tickBorderDash:lt,tickBorderDashOffset:xe}))}return this._ticksLength=d,this._borderValue=m,h}_computeLabelItems(t){const n=this.axis,r=this.options,{position:i,ticks:a}=r,s=this.isHorizontal(),o=this.ticks,{align:l,crossAlign:u,padding:c,mirror:d}=a,f=to(r.grid),h=f+c,p=d?-c:h,g=-An(this.labelRotation),b=[];let v,m,$,w,D,S,k,x,T,P,E,F,R="middle";if(i==="top")S=this.bottom-p,k=this._getXAxisLabelAlignment();else if(i==="bottom")S=this.top+p,k=this._getXAxisLabelAlignment();else if(i==="left"){const z=this._getYAxisLabelAlignment(f);k=z.textAlign,D=z.x}else if(i==="right"){const z=this._getYAxisLabelAlignment(f);k=z.textAlign,D=z.x}else if(n==="x"){if(i==="center")S=(t.top+t.bottom)/2+h;else if(ae(i)){const z=Object.keys(i)[0],B=i[z];S=this.chart.scales[z].getPixelForValue(B)+h}k=this._getXAxisLabelAlignment()}else if(n==="y"){if(i==="center")D=(t.left+t.right)/2-h;else if(ae(i)){const z=Object.keys(i)[0],B=i[z];D=this.chart.scales[z].getPixelForValue(B)}k=this._getYAxisLabelAlignment(f).textAlign}n==="y"&&(l==="start"?R="top":l==="end"&&(R="bottom"));const M=this._getLabelSizes();for(v=0,m=o.length;v<m;++v){$=o[v],w=$.label;const z=a.setContext(this.getContext(v));x=this.getPixelForTick(v)+a.labelOffset,T=this._resolveTickFontOptions(v),P=T.lineHeight,E=Be(w)?w.length:1;const B=E/2,C=z.color,O=z.textStrokeColor,I=z.textStrokeWidth;let N=k;s?(D=x,k==="inner"&&(v===m-1?N=this.options.reverse?"left":"right":v===0?N=this.options.reverse?"right":"left":N="center"),i==="top"?u==="near"||g!==0?F=-E*P+P/2:u==="center"?F=-M.highest.height/2-B*P+P:F=-M.highest.height+P/2:u==="near"||g!==0?F=P/2:u==="center"?F=M.highest.height/2-B*P:F=M.highest.height-E*P,d&&(F*=-1),g!==0&&!z.showLabelBackdrop&&(D+=P/2*Math.sin(g))):(S=x,F=(1-E)*P/2);let X;if(z.showLabelBackdrop){const Q=Pt(z.backdropPadding),je=M.heights[v],$e=M.widths[v];let lt=F-Q.top,xe=0-Q.left;switch(R){case"middle":lt-=je/2;break;case"bottom":lt-=je;break}switch(k){case"center":xe-=$e/2;break;case"right":xe-=$e;break;case"inner":v===m-1?xe-=$e:v>0&&(xe-=$e/2);break}X={left:xe,top:lt,width:$e+Q.width,height:je+Q.height,color:z.backdropColor}}b.push({label:w,font:T,textOffset:F,options:{rotation:g,color:C,strokeColor:O,strokeWidth:I,textAlign:N,textBaseline:R,translation:[D,S],backdrop:X}})}return b}_getXAxisLabelAlignment(){const{position:t,ticks:n}=this.options;if(-An(this.labelRotation))return t==="top"?"left":"right";let i="center";return n.align==="start"?i="left":n.align==="end"?i="right":n.align==="inner"&&(i="inner"),i}_getYAxisLabelAlignment(t){const{position:n,ticks:{crossAlign:r,mirror:i,padding:a}}=this.options,s=this._getLabelSizes(),o=t+a,l=s.widest.width;let u,c;return n==="left"?i?(c=this.right+a,r==="near"?u="left":r==="center"?(u="center",c+=l/2):(u="right",c+=l)):(c=this.right-o,r==="near"?u="right":r==="center"?(u="center",c-=l/2):(u="left",c=this.left)):n==="right"?i?(c=this.left+a,r==="near"?u="right":r==="center"?(u="center",c-=l/2):(u="left",c-=l)):(c=this.left+o,r==="near"?u="left":r==="center"?(u="center",c+=l/2):(u="right",c=this.right)):u="right",{textAlign:u,x:c}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){const{ctx:t,options:{backgroundColor:n},left:r,top:i,width:a,height:s}=this;n&&(t.save(),t.fillStyle=n,t.fillRect(r,i,a,s),t.restore())}getLineWidthForValue(t){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const i=this.ticks.findIndex(a=>a.value===t);return i>=0?n.setContext(this.getContext(i)).lineWidth:0}drawGrid(t){const n=this.options.grid,r=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let a,s;const o=(l,u,c)=>{!c.width||!c.color||(r.save(),r.lineWidth=c.width,r.strokeStyle=c.color,r.setLineDash(c.borderDash||[]),r.lineDashOffset=c.borderDashOffset,r.beginPath(),r.moveTo(l.x,l.y),r.lineTo(u.x,u.y),r.stroke(),r.restore())};if(n.display)for(a=0,s=i.length;a<s;++a){const l=i[a];n.drawOnChartArea&&o({x:l.x1,y:l.y1},{x:l.x2,y:l.y2},l),n.drawTicks&&o({x:l.tx1,y:l.ty1},{x:l.tx2,y:l.ty2},{color:l.tickColor,width:l.tickWidth,borderDash:l.tickBorderDash,borderDashOffset:l.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:n,options:{border:r,grid:i}}=this,a=r.setContext(this.getContext()),s=r.display?a.width:0;if(!s)return;const o=i.setContext(this.getContext(0)).lineWidth,l=this._borderValue;let u,c,d,f;this.isHorizontal()?(u=_i(t,this.left,s)-s/2,c=_i(t,this.right,o)+o/2,d=f=l):(d=_i(t,this.top,s)-s/2,f=_i(t,this.bottom,o)+o/2,u=c=l),n.save(),n.lineWidth=a.width,n.strokeStyle=a.color,n.beginPath(),n.moveTo(u,d),n.lineTo(c,f),n.stroke(),n.restore()}drawLabels(t){if(!this.options.ticks.display)return;const r=this.ctx,i=this._computeLabelArea();i&&Wf(r,i);const a=this.getLabelItems(t);for(const s of a){const o=s.options,l=s.font,u=s.label,c=s.textOffset;la(r,u,0,c,l,o)}i&&Uf(r)}drawTitle(){const{ctx:t,options:{position:n,title:r,reverse:i}}=this;if(!r.display)return;const a=it(r.font),s=Pt(r.padding),o=r.align;let l=a.lineHeight/2;n==="bottom"||n==="center"||ae(n)?(l+=s.bottom,Be(r.text)&&(l+=a.lineHeight*(r.text.length-1))):l+=s.top;const{titleX:u,titleY:c,maxWidth:d,rotation:f}=UH(this,l,n,o);la(t,r.text,0,0,a,{color:r.color,maxWidth:d,rotation:f,textAlign:WH(o,n,i),textBaseline:"middle",translation:[u,c]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,n=t.ticks&&t.ticks.z||0,r=J(t.grid&&t.grid.z,-1),i=J(t.border&&t.border.z,0);return!this._isVisible()||this.draw!==ya.prototype.draw?[{z:n,draw:a=>{this.draw(a)}}]:[{z:r,draw:a=>{this.drawBackground(),this.drawGrid(a),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:n,draw:a=>{this.drawLabels(a)}}]}getMatchingVisibleMetas(t){const n=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",i=[];let a,s;for(a=0,s=n.length;a<s;++a){const o=n[a];o[r]===this.id&&(!t||o.type===t)&&i.push(o)}return i}_resolveTickFontOptions(t){const n=this.options.ticks.setContext(this.getContext(t));return it(n.font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class Iu{constructor(t,n,r){this.type=t,this.scope=n,this.override=r,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const n=Object.getPrototypeOf(t);let r;YH(n)&&(r=this.register(n));const i=this.items,a=t.id,s=this.scope+"."+a;if(!a)throw new Error("class does not have id: "+t);return a in i||(i[a]=t,HH(t,s,r),this.override&&We.override(t.id,t.overrides)),s}get(t){return this.items[t]}unregister(t){const n=this.items,r=t.id,i=this.scope;r in n&&delete n[r],i&&r in We[i]&&(delete We[i][r],this.override&&delete oa[r])}}function HH(e,t,n){const r=bl(Object.create(null),[n?We.get(n):{},We.get(t),e.defaults]);We.set(t,r),e.defaultRoutes&&KH(t,e.defaultRoutes),e.descriptors&&We.describe(t,e.descriptors)}function KH(e,t){Object.keys(t).forEach(n=>{const r=n.split("."),i=r.pop(),a=[e].concat(r).join("."),s=t[n].split("."),o=s.pop(),l=s.join(".");We.route(a,i,l,o)})}function YH(e){return"id"in e&&"defaults"in e}class qH{constructor(){this.controllers=new Iu(In,"datasets",!0),this.elements=new Iu(Cr,"elements"),this.plugins=new Iu(Object,"plugins"),this.scales=new Iu(ya,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,n,r){[...n].forEach(i=>{const a=r||this._getRegistryForType(i);r||a.isForType(i)||a===this.plugins&&i.id?this._exec(t,a,i):me(i,s=>{const o=r||this._getRegistryForType(s);this._exec(t,o,s)})})}_exec(t,n,r){const i=O$(t);De(r["before"+i],[],r),n[t](r),De(r["after"+i],[],r)}_getRegistryForType(t){for(let n=0;n<this._typedRegistries.length;n++){const r=this._typedRegistries[n];if(r.isForType(t))return r}return this.plugins}_get(t,n,r){const i=n.get(t);if(i===void 0)throw new Error('"'+t+'" is not a registered '+r+".");return i}}var Hn=new qH;class GH{constructor(){this._init=[]}notify(t,n,r,i){n==="beforeInit"&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const a=i?this._descriptors(t).filter(i):this._descriptors(t),s=this._notify(a,t,n,r);return n==="afterDestroy"&&(this._notify(a,t,"stop"),this._notify(this._init,t,"uninstall")),s}_notify(t,n,r,i){i=i||{};for(const a of t){const s=a.plugin,o=s[r],l=[n,i,a.options];if(De(o,l,s)===!1&&i.cancelable)return!1}return!0}invalidate(){ce(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const n=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),n}_createDescriptors(t,n){const r=t&&t.config,i=J(r.options&&r.options.plugins,{}),a=ZH(r);return i===!1&&!n?[]:QH(t,a,i,n)}_notifyStateChanges(t){const n=this._oldCache||[],r=this._cache,i=(a,s)=>a.filter(o=>!s.some(l=>o.plugin.id===l.plugin.id));this._notify(i(n,r),t,"stop"),this._notify(i(r,n),t,"start")}}function ZH(e){const t={},n=[],r=Object.keys(Hn.plugins.items);for(let a=0;a<r.length;a++)n.push(Hn.getPlugin(r[a]));const i=e.plugins||[];for(let a=0;a<i.length;a++){const s=i[a];n.indexOf(s)===-1&&(n.push(s),t[s.id]=!0)}return{plugins:n,localIds:t}}function XH(e,t){return!t&&e===!1?null:e===!0?{}:e}function QH(e,{plugins:t,localIds:n},r,i){const a=[],s=e.getContext();for(const o of t){const l=o.id,u=XH(r[l],i);u!==null&&a.push({plugin:o,options:JH(e.config,{plugin:o,local:n[l]},u,s)})}return a}function JH(e,{plugin:t,local:n},r,i){const a=e.pluginScopeKeys(t),s=e.getOptionScopes(r,a);return n&&t.defaults&&s.push(t.defaults),e.createResolver(s,i,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function Zy(e,t){const n=We.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function eK(e,t){let n=e;return e==="_index_"?n=t:e==="_value_"&&(n=t==="x"?"y":"x"),n}function tK(e,t){return e===t?"_index_":"_value_"}function k6(e){if(e==="x"||e==="y"||e==="r")return e}function nK(e){if(e==="top"||e==="bottom")return"x";if(e==="left"||e==="right")return"y"}function Xy(e,...t){if(k6(e))return e;for(const n of t){const r=n.axis||nK(n.position)||e.length>1&&k6(e[0].toLowerCase());if(r)return r}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function P6(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function rK(e,t){if(t.data&&t.data.datasets){const n=t.data.datasets.filter(r=>r.xAxisID===e||r.yAxisID===e);if(n.length)return P6(e,"x",n[0])||P6(e,"y",n[0])}return{}}function iK(e,t){const n=oa[e.type]||{scales:{}},r=t.scales||{},i=Zy(e.type,t),a=Object.create(null);return Object.keys(r).forEach(s=>{const o=r[s];if(!ae(o))return console.error(`Invalid scale configuration for scale: ${s}`);if(o._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${s}`);const l=Xy(s,o,rK(s,e),We.scales[o.type]),u=tK(l,i),c=n.scales||{};a[s]=Io(Object.create(null),[{axis:l},o,c[l],c[u]])}),e.data.datasets.forEach(s=>{const o=s.type||e.type,l=s.indexAxis||Zy(o,t),c=(oa[o]||{}).scales||{};Object.keys(c).forEach(d=>{const f=eK(d,l),h=s[f+"AxisID"]||f;a[h]=a[h]||Object.create(null),Io(a[h],[{axis:f},r[h],c[d]])})}),Object.keys(a).forEach(s=>{const o=a[s];Io(o,[We.scales[o.type],We.scale])}),a}function QT(e){const t=e.options||(e.options={});t.plugins=J(t.plugins,{}),t.scales=iK(e,t)}function JT(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function aK(e){return e=e||{},e.data=JT(e.data),QT(e),e}const T6=new Map,eR=new Set;function Lu(e,t){let n=T6.get(e);return n||(n=t(),T6.set(e,n),eR.add(n)),n}const no=(e,t,n)=>{const r=ci(t,n);r!==void 0&&e.add(r)};class sK{constructor(t){this._config=aK(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=JT(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),QT(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Lu(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return Lu(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return Lu(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){const n=t.id,r=this.type;return Lu(`${r}-plugin-${n}`,()=>[[`plugins.${n}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,n){const r=this._scopeCache;let i=r.get(t);return(!i||n)&&(i=new Map,r.set(t,i)),i}getOptionScopes(t,n,r){const{options:i,type:a}=this,s=this._cachedScopes(t,r),o=s.get(n);if(o)return o;const l=new Set;n.forEach(c=>{t&&(l.add(t),c.forEach(d=>no(l,t,d))),c.forEach(d=>no(l,i,d)),c.forEach(d=>no(l,oa[a]||{},d)),c.forEach(d=>no(l,We,d)),c.forEach(d=>no(l,Yy,d))});const u=Array.from(l);return u.length===0&&u.push(Object.create(null)),eR.has(n)&&s.set(n,u),u}chartOptionScopes(){const{options:t,type:n}=this;return[t,oa[n]||{},We.datasets[n]||{},{type:n},We,Yy]}resolveNamedOptions(t,n,r,i=[""]){const a={$shared:!0},{resolver:s,subPrefixes:o}=R6(this._resolverCache,t,i);let l=s;if(lK(s,n)){a.$shared=!1,r=di(r)?r():r;const u=this.createResolver(t,r,o);l=Ds(s,r,u)}for(const u of n)a[u]=l[u];return a}createResolver(t,n,r=[""],i){const{resolver:a}=R6(this._resolverCache,t,r);return ae(n)?Ds(a,n,void 0,i):a}}function R6(e,t,n){let r=e.get(t);r||(r=new Map,e.set(t,r));const i=n.join();let a=r.get(i);return a||(a={resolver:z$(t,n),subPrefixes:n.filter(o=>!o.toLowerCase().includes("hover"))},r.set(i,a)),a}const oK=e=>ae(e)&&Object.getOwnPropertyNames(e).some(t=>di(e[t]));function lK(e,t){const{isScriptable:n,isIndexable:r}=FT(e);for(const i of t){const a=n(i),s=r(i),o=(s||a)&&e[i];if(a&&(di(o)||oK(o))||s&&Be(o))return!0}return!1}var uK="4.4.3";const cK=["top","bottom","left","right","chartArea"];function M6(e,t){return e==="top"||e==="bottom"||cK.indexOf(e)===-1&&t==="x"}function F6(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function A6(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),De(n&&n.onComplete,[e],t)}function dK(e){const t=e.chart,n=t.options.animation;De(n&&n.onProgress,[e],t)}function tR(e){return U$()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const hc={},O6=e=>{const t=tR(e);return Object.values(hc).filter(n=>n.canvas===t).pop()};function fK(e,t,n){const r=Object.keys(e);for(const i of r){const a=+i;if(a>=t){const s=e[i];delete e[i],(n>0||a>t)&&(e[a+n]=s)}}}function hK(e,t,n,r){return!n||e.type==="mouseout"?null:r?t:e}function Nu(e,t,n){return e.options.clip?e[n]:t[n]}function pK(e,t){const{xScale:n,yScale:r}=e;return n&&r?{left:Nu(n,t,"left"),right:Nu(n,t,"right"),top:Nu(r,t,"top"),bottom:Nu(r,t,"bottom")}:t}var Rr;let As=(Rr=class{static register(...t){Hn.add(...t),B6()}static unregister(...t){Hn.remove(...t),B6()}constructor(t,n){const r=this.config=new sK(n),i=tR(t),a=O6(i);if(a)throw new Error("Canvas is already in use. Chart with ID '"+a.id+"' must be destroyed before the canvas with ID '"+a.canvas.id+"' can be reused.");const s=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||RH(i)),this.platform.updateConfig(r);const o=this.platform.acquireContext(i,s.aspectRatio),l=o&&o.canvas,u=l&&l.height,c=l&&l.width;if(this.id=gW(),this.ctx=o,this.canvas=l,this.width=c,this.height=u,this._options=s,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new GH,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=MW(d=>this.update(d),s.resizeDelay||0),this._dataChanges=[],hc[this.id]=this,!o||!l){console.error("Failed to create chart: can't acquire context from the given item");return}ar.listen(this,"complete",A6),ar.listen(this,"progress",dK),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:n},width:r,height:i,_aspectRatio:a}=this;return ce(t)?n&&a?a:i?r/i:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return Hn}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():r6(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return e6(this.canvas,this.ctx),this}stop(){return ar.stop(this),this}resize(t,n){ar.running(this)?this._resizeBeforeDraw={width:t,height:n}:this._resize(t,n)}_resize(t,n){const r=this.options,i=this.canvas,a=r.maintainAspectRatio&&this.aspectRatio,s=this.platform.getMaximumSize(i,t,n,a),o=r.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=s.width,this.height=s.height,this._aspectRatio=this.aspectRatio,r6(this,o,!0)&&(this.notifyPlugins("resize",{size:s}),De(r.onResize,[this,s],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};me(n,(r,i)=>{r.id=i})}buildOrUpdateScales(){const t=this.options,n=t.scales,r=this.scales,i=Object.keys(r).reduce((s,o)=>(s[o]=!1,s),{});let a=[];n&&(a=a.concat(Object.keys(n).map(s=>{const o=n[s],l=Xy(s,o),u=l==="r",c=l==="x";return{options:o,dposition:u?"chartArea":c?"bottom":"left",dtype:u?"radialLinear":c?"category":"linear"}}))),me(a,s=>{const o=s.options,l=o.id,u=Xy(l,o),c=J(o.type,s.dtype);(o.position===void 0||M6(o.position,u)!==M6(s.dposition))&&(o.position=s.dposition),i[l]=!0;let d=null;if(l in r&&r[l].type===c)d=r[l];else{const f=Hn.getScale(c);d=new f({id:l,type:c,ctx:this.ctx,chart:this}),r[d.id]=d}d.init(o,t)}),me(i,(s,o)=>{s||delete r[o]}),me(r,s=>{Ct.configure(this,s,s.options),Ct.addBox(this,s)})}_updateMetasets(){const t=this._metasets,n=this.data.datasets.length,r=t.length;if(t.sort((i,a)=>i.index-a.index),r>n){for(let i=n;i<r;++i)this._destroyDatasetMeta(i);t.splice(n,r-n)}this._sortedMetasets=t.slice(0).sort(F6("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:n}}=this;t.length>n.length&&delete this._stacks,t.forEach((r,i)=>{n.filter(a=>a===r._dataset).length===0&&this._destroyDatasetMeta(i)})}buildOrUpdateControllers(){const t=[],n=this.data.datasets;let r,i;for(this._removeUnreferencedMetasets(),r=0,i=n.length;r<i;r++){const a=n[r];let s=this.getDatasetMeta(r);const o=a.type||this.config.type;if(s.type&&s.type!==o&&(this._destroyDatasetMeta(r),s=this.getDatasetMeta(r)),s.type=o,s.indexAxis=a.indexAxis||Zy(o,this.options),s.order=a.order||0,s.index=r,s.label=""+a.label,s.visible=this.isDatasetVisible(r),s.controller)s.controller.updateIndex(r),s.controller.linkScales();else{const l=Hn.getController(o),{datasetElementType:u,dataElementType:c}=We.datasets[o];Object.assign(l,{dataElementType:Hn.getElement(c),datasetElementType:u&&Hn.getElement(u)}),s.controller=new l(this,r),t.push(s.controller)}}return this._updateMetasets(),t}_resetElements(){me(this.data.datasets,(t,n)=>{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const n=this.config;n.update();const r=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const a=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let s=0;for(let u=0,c=this.data.datasets.length;u<c;u++){const{controller:d}=this.getDatasetMeta(u),f=!i&&a.indexOf(d)===-1;d.buildOrUpdateElements(f),s=Math.max(+d.getMaxOverflow(),s)}s=this._minPadding=r.layout.autoPadding?s:0,this._updateLayout(s),i||me(a,u=>{u.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(F6("z","_idx"));const{_active:o,_lastEvent:l}=this;l?this._eventHandler(l,!0):o.length&&this._updateHoverStyles(o,o,!0),this.render()}_updateScales(){me(this.scales,t=>{Ct.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,n=new Set(Object.keys(this._listeners)),r=new Set(t.events);(!H5(n,r)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,n=this._getUniformDataChanges()||[];for(const{method:r,start:i,count:a}of n){const s=r==="_removeElements"?-a:a;fK(t,i,s)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const n=this.data.datasets.length,r=a=>new Set(t.filter(s=>s[0]===a).map((s,o)=>o+","+s.splice(1).join(","))),i=r(0);for(let a=1;a<n;a++)if(!H5(i,r(a)))return;return Array.from(i).map(a=>a.split(",")).map(a=>({method:a[1],start:+a[2],count:+a[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;Ct.update(this,this.width,this.height,t);const n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],me(this.boxes,i=>{r&&i.position==="chartArea"||(i.configure&&i.configure(),this._layers.push(...i._layers()))},this),this._layers.forEach((i,a)=>{i._idx=a}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let n=0,r=this.data.datasets.length;n<r;++n)this.getDatasetMeta(n).controller.configure();for(let n=0,r=this.data.datasets.length;n<r;++n)this._updateDataset(n,di(t)?t({datasetIndex:n}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,n){const r=this.getDatasetMeta(t),i={meta:r,index:t,mode:n,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",i)!==!1&&(r.controller._update(n),i.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",i))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(ar.has(this)?this.attached&&!ar.running(this)&&ar.start(this):(this.draw(),A6({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:r,height:i}=this._resizeBeforeDraw;this._resize(r,i),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const n=this._layers;for(t=0;t<n.length&&n[t].z<=0;++t)n[t].draw(this.chartArea);for(this._drawDatasets();t<n.length;++t)n[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const n=this._sortedMetasets,r=[];let i,a;for(i=0,a=n.length;i<a;++i){const s=n[i];(!t||s.visible)&&r.push(s)}return r}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const t=this.getSortedVisibleDatasetMetas();for(let n=t.length-1;n>=0;--n)this._drawDataset(t[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const n=this.ctx,r=t._clip,i=!r.disabled,a=pK(t,this.chartArea),s={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",s)!==!1&&(i&&Wf(n,{left:r.left===!1?0:a.left-r.left,right:r.right===!1?this.width:a.right+r.right,top:r.top===!1?0:a.top-r.top,bottom:r.bottom===!1?this.height:a.bottom+r.bottom}),t.controller.draw(),i&&Uf(n),s.cancelable=!1,this.notifyPlugins("afterDatasetDraw",s))}isPointInArea(t){return vr(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,r,i){const a=cH.modes[n];return typeof a=="function"?a(this,t,r,i):[]}getDatasetMeta(t){const n=this.data.datasets[t],r=this._metasets;let i=r.filter(a=>a&&a._dataset===n).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:t,_dataset:n,_parsed:[],_sorted:!1},r.push(i)),i}getContext(){return this.$context||(this.$context=bi(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const n=this.data.datasets[t];if(!n)return!1;const r=this.getDatasetMeta(t);return typeof r.hidden=="boolean"?!r.hidden:!n.hidden}setDatasetVisibility(t,n){const r=this.getDatasetMeta(t);r.hidden=!n}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,n,r){const i=r?"show":"hide",a=this.getDatasetMeta(t),s=a.controller._resolveAnimations(void 0,i);yl(n)?(a.data[n].hidden=!r,this.update()):(this.setDatasetVisibility(t,r),s.update(a,{visible:r}),this.update(o=>o.datasetIndex===t?i:void 0))}hide(t,n){this._updateVisibility(t,n,!1)}show(t,n){this._updateVisibility(t,n,!0)}_destroyDatasetMeta(t){const n=this._metasets[t];n&&n.controller&&n.controller._destroy(),delete this._metasets[t]}_stop(){let t,n;for(this.stop(),ar.remove(this),t=0,n=this.data.datasets.length;t<n;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:n}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),e6(t,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),delete hc[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,n=this.platform,r=(a,s)=>{n.addEventListener(this,a,s),t[a]=s},i=(a,s,o)=>{a.offsetX=s,a.offsetY=o,this._eventHandler(a)};me(this.options.events,a=>r(a,i))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,n=this.platform,r=(l,u)=>{n.addEventListener(this,l,u),t[l]=u},i=(l,u)=>{t[l]&&(n.removeEventListener(this,l,u),delete t[l])},a=(l,u)=>{this.canvas&&this.resize(l,u)};let s;const o=()=>{i("attach",o),this.attached=!0,this.resize(),r("resize",a),r("detach",s)};s=()=>{this.attached=!1,i("resize",a),this._stop(),this._resize(0,0),r("attach",o)},n.isAttached(this.canvas)?o():s()}unbindEvents(){me(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},me(this._responsiveListeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,n,r){const i=r?"set":"remove";let a,s,o,l;for(n==="dataset"&&(a=this.getDatasetMeta(t[0].datasetIndex),a.controller["_"+i+"DatasetHoverStyle"]()),o=0,l=t.length;o<l;++o){s=t[o];const u=s&&this.getDatasetMeta(s.datasetIndex).controller;u&&u[i+"HoverStyle"](s.element,s.datasetIndex,s.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const n=this._active||[],r=t.map(({datasetIndex:a,index:s})=>{const o=this.getDatasetMeta(a);if(!o)throw new Error("No dataset found at index "+a);return{datasetIndex:a,element:o.data[s],index:s}});!Wd(r,n)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,n))}notifyPlugins(t,n,r){return this._plugins.notify(this,t,n,r)}isPluginEnabled(t){return this._plugins._cache.filter(n=>n.plugin.id===t).length===1}_updateHoverStyles(t,n,r){const i=this.options.hover,a=(l,u)=>l.filter(c=>!u.some(d=>c.datasetIndex===d.datasetIndex&&c.index===d.index)),s=a(n,t),o=r?t:a(t,n);s.length&&this.updateHoverStyle(s,i.mode,!1),o.length&&i.mode&&this.updateHoverStyle(o,i.mode,!0)}_eventHandler(t,n){const r={event:t,replay:n,cancelable:!0,inChartArea:this.isPointInArea(t)},i=s=>(s.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",r,i)===!1)return;const a=this._handleEvent(t,n,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,i),(a||r.changed)&&this.render(),this}_handleEvent(t,n,r){const{_active:i=[],options:a}=this,s=n,o=this._getActiveElements(t,i,r,s),l=wW(t),u=hK(t,this._lastEvent,r,l);r&&(this._lastEvent=null,De(a.onHover,[t,o,this],this),l&&De(a.onClick,[t,o,this],this));const c=!Wd(o,i);return(c||n)&&(this._active=o,this._updateHoverStyles(o,i,n)),this._lastEvent=u,c}_getActiveElements(t,n,r,i){if(t.type==="mouseout")return[];if(!r)return n;const a=this.options.hover;return this.getElementsAtEventForMode(t,a.mode,a,i)}},j(Rr,"defaults",We),j(Rr,"instances",hc),j(Rr,"overrides",oa),j(Rr,"registry",Hn),j(Rr,"version",uK),j(Rr,"getChart",O6),Rr);function B6(){return me(As.instances,e=>e._plugins.invalidate())}function mK(e,t,n){const{startAngle:r,pixelMargin:i,x:a,y:s,outerRadius:o,innerRadius:l}=t;let u=i/o;e.beginPath(),e.arc(a,s,o,r-u,n+u),l>i?(u=i/l,e.arc(a,s,l,n+u,r-u,!0)):e.arc(a,s,i,n+qe,r-qe),e.closePath(),e.clip()}function gK(e){return j$(e,["outerStart","outerEnd","innerStart","innerEnd"])}function vK(e,t,n,r){const i=gK(e.options.borderRadius),a=(n-t)/2,s=Math.min(a,r*t/2),o=l=>{const u=(n-Math.min(a,l))*r/2;return dt(l,0,Math.min(a,u))};return{outerStart:o(i.outerStart),outerEnd:o(i.outerEnd),innerStart:dt(i.innerStart,0,s),innerEnd:dt(i.innerEnd,0,s)}}function Ta(e,t,n,r){return{x:n+e*Math.cos(t),y:r+e*Math.sin(t)}}function Gd(e,t,n,r,i,a){const{x:s,y:o,startAngle:l,pixelMargin:u,innerRadius:c}=t,d=Math.max(t.outerRadius+r+n-u,0),f=c>0?c+r+n+u:0;let h=0;const p=i-l;if(r){const z=c>0?c-r:0,B=d>0?d-r:0,C=(z+B)/2,O=C!==0?p*C/(C+r):p;h=(p-O)/2}const g=Math.max(.001,p*d-n/Me)/d,b=(p-g)/2,v=l+b+h,m=i-b-h,{outerStart:$,outerEnd:w,innerStart:D,innerEnd:S}=vK(t,f,d,m-v),k=d-$,x=d-w,T=v+$/k,P=m-w/x,E=f+D,F=f+S,R=v+D/E,M=m-S/F;if(e.beginPath(),a){const z=(T+P)/2;if(e.arc(s,o,d,T,z),e.arc(s,o,d,z,P),w>0){const I=Ta(x,P,s,o);e.arc(I.x,I.y,w,P,m+qe)}const B=Ta(F,m,s,o);if(e.lineTo(B.x,B.y),S>0){const I=Ta(F,M,s,o);e.arc(I.x,I.y,S,m+qe,M+Math.PI)}const C=(m-S/f+(v+D/f))/2;if(e.arc(s,o,f,m-S/f,C,!0),e.arc(s,o,f,C,v+D/f,!0),D>0){const I=Ta(E,R,s,o);e.arc(I.x,I.y,D,R+Math.PI,v-qe)}const O=Ta(k,v,s,o);if(e.lineTo(O.x,O.y),$>0){const I=Ta(k,T,s,o);e.arc(I.x,I.y,$,v-qe,T)}}else{e.moveTo(s,o);const z=Math.cos(T)*d+s,B=Math.sin(T)*d+o;e.lineTo(z,B);const C=Math.cos(P)*d+s,O=Math.sin(P)*d+o;e.lineTo(C,O)}e.closePath()}function bK(e,t,n,r,i){const{fullCircles:a,startAngle:s,circumference:o}=t;let l=t.endAngle;if(a){Gd(e,t,n,r,l,i);for(let u=0;u<a;++u)e.fill();isNaN(o)||(l=s+(o%Te||Te))}return Gd(e,t,n,r,l,i),e.fill(),l}function yK(e,t,n,r,i){const{fullCircles:a,startAngle:s,circumference:o,options:l}=t,{borderWidth:u,borderJoinStyle:c,borderDash:d,borderDashOffset:f}=l,h=l.borderAlign==="inner";if(!u)return;e.setLineDash(d||[]),e.lineDashOffset=f,h?(e.lineWidth=u*2,e.lineJoin=c||"round"):(e.lineWidth=u,e.lineJoin=c||"bevel");let p=t.endAngle;if(a){Gd(e,t,n,r,p,i);for(let g=0;g<a;++g)e.stroke();isNaN(o)||(p=s+(o%Te||Te))}h&&mK(e,t,p),a||(Gd(e,t,n,r,p,i),e.stroke())}class $o extends Cr{constructor(n){super();j(this,"circumference");j(this,"endAngle");j(this,"fullCircles");j(this,"innerRadius");j(this,"outerRadius");j(this,"pixelMargin");j(this,"startAngle");this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,n&&Object.assign(this,n)}inRange(n,r,i){const a=this.getProps(["x","y"],i),{angle:s,distance:o}=DT(a,{x:n,y:r}),{startAngle:l,endAngle:u,innerRadius:c,outerRadius:d,circumference:f}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],i),h=(this.options.spacing+this.options.borderWidth)/2,g=J(f,u-l)>=Te||$l(s,l,u),b=mr(o,c+h,d+h);return g&&b}getCenterPoint(n){const{x:r,y:i,startAngle:a,endAngle:s,innerRadius:o,outerRadius:l}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],n),{offset:u,spacing:c}=this.options,d=(a+s)/2,f=(o+l+c+u)/2;return{x:r+Math.cos(d)*f,y:i+Math.sin(d)*f}}tooltipPosition(n){return this.getCenterPoint(n)}draw(n){const{options:r,circumference:i}=this,a=(r.offset||0)/4,s=(r.spacing||0)/2,o=r.circular;if(this.pixelMargin=r.borderAlign==="inner"?.33:0,this.fullCircles=i>Te?Math.floor(i/Te):0,i===0||this.innerRadius<0||this.outerRadius<0)return;n.save();const l=(this.startAngle+this.endAngle)/2;n.translate(Math.cos(l)*a,Math.sin(l)*a);const u=1-Math.sin(Math.min(Me,i||0)),c=a*u;n.fillStyle=r.backgroundColor,n.strokeStyle=r.borderColor,bK(n,this,c,s,o),yK(n,this,c,s,o),n.restore()}}j($o,"id","arc"),j($o,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),j($o,"defaultRoutes",{backgroundColor:"backgroundColor"}),j($o,"descriptors",{_scriptable:!0,_indexable:n=>n!=="borderDash"});function nR(e,t,n=t){e.lineCap=J(n.borderCapStyle,t.borderCapStyle),e.setLineDash(J(n.borderDash,t.borderDash)),e.lineDashOffset=J(n.borderDashOffset,t.borderDashOffset),e.lineJoin=J(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=J(n.borderWidth,t.borderWidth),e.strokeStyle=J(n.borderColor,t.borderColor)}function $K(e,t,n){e.lineTo(n.x,n.y)}function xK(e){return e.stepped?UW:e.tension||e.cubicInterpolationMode==="monotone"?HW:$K}function rR(e,t,n={}){const r=e.length,{start:i=0,end:a=r-1}=n,{start:s,end:o}=t,l=Math.max(i,s),u=Math.min(a,o),c=i<s&&a<s||i>o&&a>o;return{count:r,start:l,loop:t.loop,ilen:u<l&&!c?r+u-l:u-l}}function wK(e,t,n,r){const{points:i,options:a}=t,{count:s,start:o,loop:l,ilen:u}=rR(i,n,r),c=xK(a);let{move:d=!0,reverse:f}=r||{},h,p,g;for(h=0;h<=u;++h)p=i[(o+(f?u-h:h))%s],!p.skip&&(d?(e.moveTo(p.x,p.y),d=!1):c(e,g,p,f,a.stepped),g=p);return l&&(p=i[(o+(f?u:0))%s],c(e,g,p,f,a.stepped)),!!l}function DK(e,t,n,r){const i=t.points,{count:a,start:s,ilen:o}=rR(i,n,r),{move:l=!0,reverse:u}=r||{};let c=0,d=0,f,h,p,g,b,v;const m=w=>(s+(u?o-w:w))%a,$=()=>{g!==b&&(e.lineTo(c,b),e.lineTo(c,g),e.lineTo(c,v))};for(l&&(h=i[m(0)],e.moveTo(h.x,h.y)),f=0;f<=o;++f){if(h=i[m(f)],h.skip)continue;const w=h.x,D=h.y,S=w|0;S===p?(D<g?g=D:D>b&&(b=D),c=(d*c+w)/++d):($(),e.lineTo(w,D),p=S,d=0,g=b=D),v=D}$()}function Qy(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!n?DK:wK}function _K(e){return e.stepped?DU:e.tension||e.cubicInterpolationMode==="monotone"?_U:Ai}function EK(e,t,n,r){let i=t._path;i||(i=t._path=new Path2D,t.path(i,n,r)&&i.closePath()),nR(e,t.options),e.stroke(i)}function SK(e,t,n,r){const{segments:i,options:a}=t,s=Qy(t);for(const o of i)nR(e,a,o.style),e.beginPath(),s(e,t,o,{start:n,end:n+r-1})&&e.closePath(),e.stroke()}const CK=typeof Path2D=="function";function kK(e,t,n,r){CK&&!t.options.segment?EK(e,t,n,r):SK(e,t,n,r)}class Yn extends Cr{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,n){const r=this.options;if((r.tension||r.cubicInterpolationMode==="monotone")&&!r.stepped&&!this._pointsUpdated){const i=r.spanGaps?this._loop:this._fullLoop;mU(this._points,r,t,i,n),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=TU(this,this.options.segment))}first(){const t=this.segments,n=this.points;return t.length&&n[t[0].start]}last(){const t=this.segments,n=this.points,r=t.length;return r&&n[t[r-1].end]}interpolate(t,n){const r=this.options,i=t[n],a=this.points,s=WT(this,{property:n,start:i,end:i});if(!s.length)return;const o=[],l=_K(r);let u,c;for(u=0,c=s.length;u<c;++u){const{start:d,end:f}=s[u],h=a[d],p=a[f];if(h===p){o.push(h);continue}const g=Math.abs((i-h[n])/(p[n]-h[n])),b=l(h,p,g,r.stepped);b[n]=t[n],o.push(b)}return o.length===1?o[0]:o}pathSegment(t,n,r){return Qy(this)(t,this,n,r)}path(t,n,r){const i=this.segments,a=Qy(this);let s=this._loop;n=n||0,r=r||this.points.length-n;for(const o of i)s&=a(t,this,o,{start:n,end:n+r-1});return!!s}draw(t,n,r,i){const a=this.options||{};(this.points||[]).length&&a.borderWidth&&(t.save(),kK(t,this,r,i),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}j(Yn,"id","line"),j(Yn,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),j(Yn,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),j(Yn,"descriptors",{_scriptable:!0,_indexable:t=>t!=="borderDash"&&t!=="fill"});function I6(e,t,n,r){const i=e.options,{[n]:a}=e.getProps([n],r);return Math.abs(t-a)<i.radius+i.hitRadius}class cs extends Cr{constructor(n){super();j(this,"parsed");j(this,"skip");j(this,"stop");this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,n&&Object.assign(this,n)}inRange(n,r,i){const a=this.options,{x:s,y:o}=this.getProps(["x","y"],i);return Math.pow(n-s,2)+Math.pow(r-o,2)<Math.pow(a.hitRadius+a.radius,2)}inXRange(n,r){return I6(this,n,"x",r)}inYRange(n,r){return I6(this,n,"y",r)}getCenterPoint(n){const{x:r,y:i}=this.getProps(["x","y"],n);return{x:r,y:i}}size(n){n=n||this.options||{};let r=n.radius||0;r=Math.max(r,r&&n.hoverRadius||0);const i=r&&n.borderWidth||0;return(r+i)*2}draw(n,r){const i=this.options;this.skip||i.radius<.1||!vr(this,r,this.size(i)/2)||(n.strokeStyle=i.borderColor,n.lineWidth=i.borderWidth,n.fillStyle=i.backgroundColor,qy(n,i,this.x,this.y))}getRange(){const n=this.options||{};return n.radius+n.hitRadius}}j(cs,"id","point"),j(cs,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),j(cs,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});function iR(e,t){const{x:n,y:r,base:i,width:a,height:s}=e.getProps(["x","y","base","width","height"],t);let o,l,u,c,d;return e.horizontal?(d=s/2,o=Math.min(n,i),l=Math.max(n,i),u=r-d,c=r+d):(d=a/2,o=n-d,l=n+d,u=Math.min(r,i),c=Math.max(r,i)),{left:o,top:u,right:l,bottom:c}}function qr(e,t,n,r){return e?0:dt(t,n,r)}function PK(e,t,n){const r=e.options.borderWidth,i=e.borderSkipped,a=MT(r);return{t:qr(i.top,a.top,0,n),r:qr(i.right,a.right,0,t),b:qr(i.bottom,a.bottom,0,n),l:qr(i.left,a.left,0,t)}}function TK(e,t,n){const{enableBorderRadius:r}=e.getProps(["enableBorderRadius"]),i=e.options.borderRadius,a=Gi(i),s=Math.min(t,n),o=e.borderSkipped,l=r||ae(i);return{topLeft:qr(!l||o.top||o.left,a.topLeft,0,s),topRight:qr(!l||o.top||o.right,a.topRight,0,s),bottomLeft:qr(!l||o.bottom||o.left,a.bottomLeft,0,s),bottomRight:qr(!l||o.bottom||o.right,a.bottomRight,0,s)}}function RK(e){const t=iR(e),n=t.right-t.left,r=t.bottom-t.top,i=PK(e,n/2,r/2),a=TK(e,n/2,r/2);return{outer:{x:t.left,y:t.top,w:n,h:r,radius:a},inner:{x:t.left+i.l,y:t.top+i.t,w:n-i.l-i.r,h:r-i.t-i.b,radius:{topLeft:Math.max(0,a.topLeft-Math.max(i.t,i.l)),topRight:Math.max(0,a.topRight-Math.max(i.t,i.r)),bottomLeft:Math.max(0,a.bottomLeft-Math.max(i.b,i.l)),bottomRight:Math.max(0,a.bottomRight-Math.max(i.b,i.r))}}}}function yp(e,t,n,r){const i=t===null,a=n===null,o=e&&!(i&&a)&&iR(e,r);return o&&(i||mr(t,o.left,o.right))&&(a||mr(n,o.top,o.bottom))}function MK(e){return e.topLeft||e.topRight||e.bottomLeft||e.bottomRight}function FK(e,t){e.rect(t.x,t.y,t.w,t.h)}function $p(e,t,n={}){const r=e.x!==n.x?-t:0,i=e.y!==n.y?-t:0,a=(e.x+e.w!==n.x+n.w?t:0)-r,s=(e.y+e.h!==n.y+n.h?t:0)-i;return{x:e.x+r,y:e.y+i,w:e.w+a,h:e.h+s,radius:e.radius}}class pc extends Cr{constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:n,options:{borderColor:r,backgroundColor:i}}=this,{inner:a,outer:s}=RK(this),o=MK(s.radius)?xl:FK;t.save(),(s.w!==a.w||s.h!==a.h)&&(t.beginPath(),o(t,$p(s,n,a)),t.clip(),o(t,$p(a,-n,s)),t.fillStyle=r,t.fill("evenodd")),t.beginPath(),o(t,$p(a,n)),t.fillStyle=i,t.fill(),t.restore()}inRange(t,n,r){return yp(this,t,n,r)}inXRange(t,n){return yp(this,t,null,n)}inYRange(t,n){return yp(this,null,t,n)}getCenterPoint(t){const{x:n,y:r,base:i,horizontal:a}=this.getProps(["x","y","base","horizontal"],t);return{x:a?(n+i)/2:n,y:a?r:(r+i)/2}}getRange(t){return t==="x"?this.width/2:this.height/2}}j(pc,"id","bar"),j(pc,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),j(pc,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});var AK=Object.freeze({__proto__:null,ArcElement:$o,BarElement:pc,LineElement:Yn,PointElement:cs});const Jy=["rgb(54, 162, 235)","rgb(255, 99, 132)","rgb(255, 159, 64)","rgb(255, 205, 86)","rgb(75, 192, 192)","rgb(153, 102, 255)","rgb(201, 203, 207)"],L6=Jy.map(e=>e.replace("rgb(","rgba(").replace(")",", 0.5)"));function aR(e){return Jy[e%Jy.length]}function sR(e){return L6[e%L6.length]}function OK(e,t){return e.borderColor=aR(t),e.backgroundColor=sR(t),++t}function BK(e,t){return e.backgroundColor=e.data.map(()=>aR(t++)),t}function IK(e,t){return e.backgroundColor=e.data.map(()=>sR(t++)),t}function LK(e){let t=0;return(n,r)=>{const i=e.getDatasetMeta(r).controller;i instanceof Hi?t=BK(n,t):i instanceof us?t=IK(n,t):i&&(t=OK(n,t))}}function N6(e){let t;for(t in e)if(e[t].borderColor||e[t].backgroundColor)return!0;return!1}function NK(e){return e&&(e.borderColor||e.backgroundColor)}var jK={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(e,t,n){if(!n.enabled)return;const{data:{datasets:r},options:i}=e.config,{elements:a}=i;if(!n.forceOverride&&(N6(r)||NK(i)||a&&N6(a)))return;const s=LK(e);r.forEach(s)}};function zK(e,t,n,r,i){const a=i.samples||r;if(a>=n)return e.slice(t,t+n);const s=[],o=(n-2)/(a-2);let l=0;const u=t+n-1;let c=t,d,f,h,p,g;for(s[l++]=e[c],d=0;d<a-2;d++){let b=0,v=0,m;const $=Math.floor((d+1)*o)+1+t,w=Math.min(Math.floor((d+2)*o)+1,n)+t,D=w-$;for(m=$;m<w;m++)b+=e[m].x,v+=e[m].y;b/=D,v/=D;const S=Math.floor(d*o)+1+t,k=Math.min(Math.floor((d+1)*o)+1,n)+t,{x,y:T}=e[c];for(h=p=-1,m=S;m<k;m++)p=.5*Math.abs((x-b)*(e[m].y-T)-(x-e[m].x)*(v-T)),p>h&&(h=p,f=e[m],g=m);s[l++]=f,c=g}return s[l++]=e[u],s}function VK(e,t,n,r){let i=0,a=0,s,o,l,u,c,d,f,h,p,g;const b=[],v=t+n-1,m=e[t].x,w=e[v].x-m;for(s=t;s<t+n;++s){o=e[s],l=(o.x-m)/w*r,u=o.y;const D=l|0;if(D===c)u<p?(p=u,d=s):u>g&&(g=u,f=s),i=(a*i+o.x)/++a;else{const S=s-1;if(!ce(d)&&!ce(f)){const k=Math.min(d,f),x=Math.max(d,f);k!==h&&k!==S&&b.push({...e[k],x:i}),x!==h&&x!==S&&b.push({...e[x],x:i})}s>0&&S!==h&&b.push(e[S]),b.push(o),c=D,a=0,p=g=u,d=f=h=s}}return b}function oR(e){if(e._decimated){const t=e._data;delete e._decimated,delete e._data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,writable:!0,value:t})}}function j6(e){e.data.datasets.forEach(t=>{oR(t)})}function WK(e,t){const n=t.length;let r=0,i;const{iScale:a}=e,{min:s,max:o,minDefined:l,maxDefined:u}=a.getUserBounds();return l&&(r=dt(gr(t,a.axis,s).lo,0,n-1)),u?i=dt(gr(t,a.axis,o).hi+1,r,n)-r:i=n-r,{start:r,count:i}}var UK={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(e,t,n)=>{if(!n.enabled){j6(e);return}const r=e.width;e.data.datasets.forEach((i,a)=>{const{_data:s,indexAxis:o}=i,l=e.getDatasetMeta(a),u=s||i.data;if(bo([o,e.options.indexAxis])==="y"||!l.controller.supportsDecimation)return;const c=e.scales[l.xAxisID];if(c.type!=="linear"&&c.type!=="time"||e.options.parsing)return;let{start:d,count:f}=WK(l,u);const h=n.threshold||4*r;if(f<=h){oR(i);return}ce(s)&&(i._data=u,delete i.data,Object.defineProperty(i,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(g){this._data=g}}));let p;switch(n.algorithm){case"lttb":p=zK(u,d,f,r,n);break;case"min-max":p=VK(u,d,f,r);break;default:throw new Error(`Unsupported decimation algorithm '${n.algorithm}'`)}i._decimated=p})},destroy(e){j6(e)}};function HK(e,t,n){const r=e.segments,i=e.points,a=t.points,s=[];for(const o of r){let{start:l,end:u}=o;u=Y$(l,u,i);const c=e3(n,i[l],i[u],o.loop);if(!t.segments){s.push({source:o,target:c,start:i[l],end:i[u]});continue}const d=WT(t,c);for(const f of d){const h=e3(n,a[f.start],a[f.end],f.loop),p=VT(o,i,h);for(const g of p)s.push({source:g,target:f,start:{[n]:z6(c,h,"start",Math.max)},end:{[n]:z6(c,h,"end",Math.min)}})}}return s}function e3(e,t,n,r){if(r)return;let i=t[e],a=n[e];return e==="angle"&&(i=nn(i),a=nn(a)),{property:e,start:i,end:a}}function KK(e,t){const{x:n=null,y:r=null}=e||{},i=t.points,a=[];return t.segments.forEach(({start:s,end:o})=>{o=Y$(s,o,i);const l=i[s],u=i[o];r!==null?(a.push({x:l.x,y:r}),a.push({x:u.x,y:r})):n!==null&&(a.push({x:n,y:l.y}),a.push({x:n,y:u.y}))}),a}function Y$(e,t,n){for(;t>e;t--){const r=n[t];if(!isNaN(r.x)&&!isNaN(r.y))break}return t}function z6(e,t,n,r){return e&&t?r(e[n],t[n]):e?e[n]:t?t[n]:0}function lR(e,t){let n=[],r=!1;return Be(e)?(r=!0,n=e):n=KK(e,t),n.length?new Yn({points:n,options:{tension:0},_loop:r,_fullLoop:r}):null}function V6(e){return e&&e.fill!==!1}function YK(e,t,n){let i=e[t].fill;const a=[t];let s;if(!n)return i;for(;i!==!1&&a.indexOf(i)===-1;){if(!Ve(i))return i;if(s=e[i],!s)return!1;if(s.visible)return i;a.push(i),i=s.fill}return!1}function qK(e,t,n){const r=QK(e);if(ae(r))return isNaN(r.value)?!1:r;let i=parseFloat(r);return Ve(i)&&Math.floor(i)===i?GK(r[0],t,i,n):["origin","start","end","stack","shape"].indexOf(r)>=0&&r}function GK(e,t,n,r){return(e==="-"||e==="+")&&(n=t+n),n===t||n<0||n>=r?!1:n}function ZK(e,t){let n=null;return e==="start"?n=t.bottom:e==="end"?n=t.top:ae(e)?n=t.getPixelForValue(e.value):t.getBasePixel&&(n=t.getBasePixel()),n}function XK(e,t,n){let r;return e==="start"?r=n:e==="end"?r=t.options.reverse?t.min:t.max:ae(e)?r=e.value:r=t.getBaseValue(),r}function QK(e){const t=e.options,n=t.fill;let r=J(n&&n.target,n);return r===void 0&&(r=!!t.backgroundColor),r===!1||r===null?!1:r===!0?"origin":r}function JK(e){const{scale:t,index:n,line:r}=e,i=[],a=r.segments,s=r.points,o=eY(t,n);o.push(lR({x:null,y:t.bottom},r));for(let l=0;l<a.length;l++){const u=a[l];for(let c=u.start;c<=u.end;c++)tY(i,s[c],o)}return new Yn({points:i,options:{}})}function eY(e,t){const n=[],r=e.getMatchingVisibleMetas("line");for(let i=0;i<r.length;i++){const a=r[i];if(a.index===t)break;a.hidden||n.unshift(a.dataset)}return n}function tY(e,t,n){const r=[];for(let i=0;i<n.length;i++){const a=n[i],{first:s,last:o,point:l}=nY(a,t,"x");if(!(!l||s&&o)){if(s)r.unshift(l);else if(e.push(l),!o)break}}e.push(...r)}function nY(e,t,n){const r=e.interpolate(t,n);if(!r)return{};const i=r[n],a=e.segments,s=e.points;let o=!1,l=!1;for(let u=0;u<a.length;u++){const c=a[u],d=s[c.start][n],f=s[c.end][n];if(mr(i,d,f)){o=i===d,l=i===f;break}}return{first:o,last:l,point:r}}class uR{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,n,r){const{x:i,y:a,radius:s}=this;return n=n||{start:0,end:Te},t.arc(i,a,s,n.end,n.start,!0),!r.bounds}interpolate(t){const{x:n,y:r,radius:i}=this,a=t.angle;return{x:n+Math.cos(a)*i,y:r+Math.sin(a)*i,angle:a}}}function rY(e){const{chart:t,fill:n,line:r}=e;if(Ve(n))return iY(t,n);if(n==="stack")return JK(e);if(n==="shape")return!0;const i=aY(e);return i instanceof uR?i:lR(i,r)}function iY(e,t){const n=e.getDatasetMeta(t);return n&&e.isDatasetVisible(t)?n.dataset:null}function aY(e){return(e.scale||{}).getPointPositionForValue?oY(e):sY(e)}function sY(e){const{scale:t={},fill:n}=e,r=ZK(n,t);if(Ve(r)){const i=t.isHorizontal();return{x:i?r:null,y:i?null:r}}return null}function oY(e){const{scale:t,fill:n}=e,r=t.options,i=t.getLabels().length,a=r.reverse?t.max:t.min,s=XK(n,t,a),o=[];if(r.grid.circular){const l=t.getPointPositionForValue(0,a);return new uR({x:l.x,y:l.y,radius:t.getDistanceFromCenterForValue(s)})}for(let l=0;l<i;++l)o.push(t.getPointPositionForValue(l,s));return o}function xp(e,t,n){const r=rY(t),{line:i,scale:a,axis:s}=t,o=i.options,l=o.fill,u=o.backgroundColor,{above:c=u,below:d=u}=l||{};r&&i.points.length&&(Wf(e,n),lY(e,{line:i,target:r,above:c,below:d,area:n,scale:a,axis:s}),Uf(e))}function lY(e,t){const{line:n,target:r,above:i,below:a,area:s,scale:o}=t,l=n._loop?"angle":t.axis;e.save(),l==="x"&&a!==i&&(W6(e,r,s.top),U6(e,{line:n,target:r,color:i,scale:o,property:l}),e.restore(),e.save(),W6(e,r,s.bottom)),U6(e,{line:n,target:r,color:a,scale:o,property:l}),e.restore()}function W6(e,t,n){const{segments:r,points:i}=t;let a=!0,s=!1;e.beginPath();for(const o of r){const{start:l,end:u}=o,c=i[l],d=i[Y$(l,u,i)];a?(e.moveTo(c.x,c.y),a=!1):(e.lineTo(c.x,n),e.lineTo(c.x,c.y)),s=!!t.pathSegment(e,o,{move:s}),s?e.closePath():e.lineTo(d.x,n)}e.lineTo(t.first().x,n),e.closePath(),e.clip()}function U6(e,t){const{line:n,target:r,property:i,color:a,scale:s}=t,o=HK(n,r,i);for(const{source:l,target:u,start:c,end:d}of o){const{style:{backgroundColor:f=a}={}}=l,h=r!==!0;e.save(),e.fillStyle=f,uY(e,s,h&&e3(i,c,d)),e.beginPath();const p=!!n.pathSegment(e,l);let g;if(h){p?e.closePath():H6(e,r,d,i);const b=!!r.pathSegment(e,u,{move:p,reverse:!0});g=p&&b,g||H6(e,r,c,i)}e.closePath(),e.fill(g?"evenodd":"nonzero"),e.restore()}}function uY(e,t,n){const{top:r,bottom:i}=t.chart.chartArea,{property:a,start:s,end:o}=n||{};a==="x"&&(e.beginPath(),e.rect(s,r,o-s,i-r),e.clip())}function H6(e,t,n,r){const i=t.interpolate(n,r);i&&e.lineTo(i.x,i.y)}var cY={id:"filler",afterDatasetsUpdate(e,t,n){const r=(e.data.datasets||[]).length,i=[];let a,s,o,l;for(s=0;s<r;++s)a=e.getDatasetMeta(s),o=a.dataset,l=null,o&&o.options&&o instanceof Yn&&(l={visible:e.isDatasetVisible(s),index:s,fill:qK(o,s,r),chart:e,axis:a.controller.options.indexAxis,scale:a.vScale,line:o}),a.$filler=l,i.push(l);for(s=0;s<r;++s)l=i[s],!(!l||l.fill===!1)&&(l.fill=YK(i,s,n.propagate))},beforeDraw(e,t,n){const r=n.drawTime==="beforeDraw",i=e.getSortedVisibleDatasetMetas(),a=e.chartArea;for(let s=i.length-1;s>=0;--s){const o=i[s].$filler;o&&(o.line.updateControlPoints(a,o.axis),r&&o.fill&&xp(e.ctx,o,a))}},beforeDatasetsDraw(e,t,n){if(n.drawTime!=="beforeDatasetsDraw")return;const r=e.getSortedVisibleDatasetMetas();for(let i=r.length-1;i>=0;--i){const a=r[i].$filler;V6(a)&&xp(e.ctx,a,e.chartArea)}},beforeDatasetDraw(e,t,n){const r=t.meta.$filler;!V6(r)||n.drawTime!=="beforeDatasetDraw"||xp(e.ctx,r,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const K6=(e,t)=>{let{boxHeight:n=t,boxWidth:r=t}=e;return e.usePointStyle&&(n=Math.min(n,t),r=e.pointStyleWidth||Math.min(r,t)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(t,n)}},dY=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class Y6 extends Cr{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n,r){this.maxWidth=t,this.maxHeight=n,this._margins=r,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let n=De(t.generateLabels,[this.chart],this)||[];t.filter&&(n=n.filter(r=>t.filter(r,this.chart.data))),t.sort&&(n=n.sort((r,i)=>t.sort(r,i,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:t,ctx:n}=this;if(!t.display){this.width=this.height=0;return}const r=t.labels,i=it(r.font),a=i.size,s=this._computeTitleHeight(),{boxWidth:o,itemHeight:l}=K6(r,a);let u,c;n.font=i.string,this.isHorizontal()?(u=this.maxWidth,c=this._fitRows(s,a,o,l)+10):(c=this.maxHeight,u=this._fitCols(s,i,o,l)+10),this.width=Math.min(u,t.maxWidth||this.maxWidth),this.height=Math.min(c,t.maxHeight||this.maxHeight)}_fitRows(t,n,r,i){const{ctx:a,maxWidth:s,options:{labels:{padding:o}}}=this,l=this.legendHitBoxes=[],u=this.lineWidths=[0],c=i+o;let d=t;a.textAlign="left",a.textBaseline="middle";let f=-1,h=-c;return this.legendItems.forEach((p,g)=>{const b=r+n/2+a.measureText(p.text).width;(g===0||u[u.length-1]+b+2*o>s)&&(d+=c,u[u.length-(g>0?0:1)]=0,h+=c,f++),l[g]={left:0,top:h,row:f,width:b,height:i},u[u.length-1]+=b+o}),d}_fitCols(t,n,r,i){const{ctx:a,maxHeight:s,options:{labels:{padding:o}}}=this,l=this.legendHitBoxes=[],u=this.columnSizes=[],c=s-t;let d=o,f=0,h=0,p=0,g=0;return this.legendItems.forEach((b,v)=>{const{itemWidth:m,itemHeight:$}=fY(r,n,a,b,i);v>0&&h+$+2*o>c&&(d+=f+o,u.push({width:f,height:h}),p+=f+o,g++,f=h=0),l[v]={left:p,top:h,col:g,width:m,height:$},f=Math.max(f,m),h+=$+o}),d+=f,u.push({width:f,height:h}),d}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:r,labels:{padding:i},rtl:a}}=this,s=ls(a,this.left,this.width);if(this.isHorizontal()){let o=0,l=Dt(r,this.left+i,this.right-this.lineWidths[o]);for(const u of n)o!==u.row&&(o=u.row,l=Dt(r,this.left+i,this.right-this.lineWidths[o])),u.top+=this.top+t+i,u.left=s.leftForLtr(s.x(l),u.width),l+=u.width+i}else{let o=0,l=Dt(r,this.top+t+i,this.bottom-this.columnSizes[o].height);for(const u of n)u.col!==o&&(o=u.col,l=Dt(r,this.top+t+i,this.bottom-this.columnSizes[o].height)),u.top=l,u.left+=this.left+i,u.left=s.leftForLtr(s.x(u.left),u.width),l+=u.height+i}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;Wf(t,this),this._draw(),Uf(t)}}_draw(){const{options:t,columnSizes:n,lineWidths:r,ctx:i}=this,{align:a,labels:s}=t,o=We.color,l=ls(t.rtl,this.left,this.width),u=it(s.font),{padding:c}=s,d=u.size,f=d/2;let h;this.drawTitle(),i.textAlign=l.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=u.string;const{boxWidth:p,boxHeight:g,itemHeight:b}=K6(s,d),v=function(S,k,x){if(isNaN(p)||p<=0||isNaN(g)||g<0)return;i.save();const T=J(x.lineWidth,1);if(i.fillStyle=J(x.fillStyle,o),i.lineCap=J(x.lineCap,"butt"),i.lineDashOffset=J(x.lineDashOffset,0),i.lineJoin=J(x.lineJoin,"miter"),i.lineWidth=T,i.strokeStyle=J(x.strokeStyle,o),i.setLineDash(J(x.lineDash,[])),s.usePointStyle){const P={radius:g*Math.SQRT2/2,pointStyle:x.pointStyle,rotation:x.rotation,borderWidth:T},E=l.xPlus(S,p/2),F=k+f;RT(i,P,E,F,s.pointStyleWidth&&p)}else{const P=k+Math.max((d-g)/2,0),E=l.leftForLtr(S,p),F=Gi(x.borderRadius);i.beginPath(),Object.values(F).some(R=>R!==0)?xl(i,{x:E,y:P,w:p,h:g,radius:F}):i.rect(E,P,p,g),i.fill(),T!==0&&i.stroke()}i.restore()},m=function(S,k,x){la(i,x.text,S,k+b/2,u,{strikethrough:x.hidden,textAlign:l.textAlign(x.textAlign)})},$=this.isHorizontal(),w=this._computeTitleHeight();$?h={x:Dt(a,this.left+c,this.right-r[0]),y:this.top+c+w,line:0}:h={x:this.left+c,y:Dt(a,this.top+w+c,this.bottom-n[0].height),line:0},NT(this.ctx,t.textDirection);const D=b+c;this.legendItems.forEach((S,k)=>{i.strokeStyle=S.fontColor,i.fillStyle=S.fontColor;const x=i.measureText(S.text).width,T=l.textAlign(S.textAlign||(S.textAlign=s.textAlign)),P=p+f+x;let E=h.x,F=h.y;l.setWidth(this.width),$?k>0&&E+P+c>this.right&&(F=h.y+=D,h.line++,E=h.x=Dt(a,this.left+c,this.right-r[h.line])):k>0&&F+D>this.bottom&&(E=h.x=E+n[h.line].width+c,h.line++,F=h.y=Dt(a,this.top+w+c,this.bottom-n[h.line].height));const R=l.x(E);if(v(R,F,S),E=FW(T,E+p+f,$?E+P:this.right,t.rtl),m(l.x(E),F,S),$)h.x+=P+c;else if(typeof S.text!="string"){const M=u.lineHeight;h.y+=cR(S,M)+c}else h.y+=D}),jT(this.ctx,t.textDirection)}drawTitle(){const t=this.options,n=t.title,r=it(n.font),i=Pt(n.padding);if(!n.display)return;const a=ls(t.rtl,this.left,this.width),s=this.ctx,o=n.position,l=r.size/2,u=i.top+l;let c,d=this.left,f=this.width;if(this.isHorizontal())f=Math.max(...this.lineWidths),c=this.top+u,d=Dt(t.align,d,this.right-f);else{const p=this.columnSizes.reduce((g,b)=>Math.max(g,b.height),0);c=u+Dt(t.align,this.top,this.bottom-p-t.labels.padding-this._computeTitleHeight())}const h=Dt(o,d,d+f);s.textAlign=a.textAlign(L$(o)),s.textBaseline="middle",s.strokeStyle=n.color,s.fillStyle=n.color,s.font=r.string,la(s,n.text,h,c,r)}_computeTitleHeight(){const t=this.options.title,n=it(t.font),r=Pt(t.padding);return t.display?n.lineHeight+r.height:0}_getLegendItemAt(t,n){let r,i,a;if(mr(t,this.left,this.right)&&mr(n,this.top,this.bottom)){for(a=this.legendHitBoxes,r=0;r<a.length;++r)if(i=a[r],mr(t,i.left,i.left+i.width)&&mr(n,i.top,i.top+i.height))return this.legendItems[r]}return null}handleEvent(t){const n=this.options;if(!mY(t.type,n))return;const r=this._getLegendItemAt(t.x,t.y);if(t.type==="mousemove"||t.type==="mouseout"){const i=this._hoveredItem,a=dY(i,r);i&&!a&&De(n.onLeave,[t,i,this],this),this._hoveredItem=r,r&&!a&&De(n.onHover,[t,r,this],this)}else r&&De(n.onClick,[t,r,this],this)}}function fY(e,t,n,r,i){const a=hY(r,e,t,n),s=pY(i,r,t.lineHeight);return{itemWidth:a,itemHeight:s}}function hY(e,t,n,r){let i=e.text;return i&&typeof i!="string"&&(i=i.reduce((a,s)=>a.length>s.length?a:s)),t+n.size/2+r.measureText(i).width}function pY(e,t,n){let r=e;return typeof t.text!="string"&&(r=cR(t,n)),r}function cR(e,t){const n=e.text?e.text.length:0;return t*n}function mY(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var gY={id:"legend",_element:Y6,start(e,t,n){const r=e.legend=new Y6({ctx:e.ctx,options:n,chart:e});Ct.configure(e,r,n),Ct.addBox(e,r)},stop(e){Ct.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const r=e.legend;Ct.configure(e,r,n),r.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const r=t.datasetIndex,i=n.chart;i.isDatasetVisible(r)?(i.hide(r),t.hidden=!0):(i.show(r),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:i,color:a,useBorderRadius:s,borderRadius:o}}=e.legend.options;return e._getSortedDatasetMetas().map(l=>{const u=l.controller.getStyle(n?0:void 0),c=Pt(u.borderWidth);return{text:t[l.index].label,fillStyle:u.backgroundColor,fontColor:a,hidden:!l.visible,lineCap:u.borderCapStyle,lineDash:u.borderDash,lineDashOffset:u.borderDashOffset,lineJoin:u.borderJoinStyle,lineWidth:(c.width+c.height)/4,strokeStyle:u.borderColor,pointStyle:r||u.pointStyle,rotation:u.rotation,textAlign:i||u.textAlign,borderRadius:s&&(o||u.borderRadius),datasetIndex:l.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class q$ extends Cr{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n){const r=this.options;if(this.left=0,this.top=0,!r.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=n;const i=Be(r.text)?r.text.length:1;this._padding=Pt(r.padding);const a=i*it(r.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=a:this.width=a}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:n,left:r,bottom:i,right:a,options:s}=this,o=s.align;let l=0,u,c,d;return this.isHorizontal()?(c=Dt(o,r,a),d=n+t,u=a-r):(s.position==="left"?(c=r+t,d=Dt(o,i,n),l=Me*-.5):(c=a-t,d=Dt(o,n,i),l=Me*.5),u=i-n),{titleX:c,titleY:d,maxWidth:u,rotation:l}}draw(){const t=this.ctx,n=this.options;if(!n.display)return;const r=it(n.font),a=r.lineHeight/2+this._padding.top,{titleX:s,titleY:o,maxWidth:l,rotation:u}=this._drawArgs(a);la(t,n.text,0,0,r,{color:n.color,maxWidth:l,rotation:u,textAlign:L$(n.align),textBaseline:"middle",translation:[s,o]})}}function vY(e,t){const n=new q$({ctx:e.ctx,options:t,chart:e});Ct.configure(e,n,t),Ct.addBox(e,n),e.titleBlock=n}var bY={id:"title",_element:q$,start(e,t,n){vY(e,n)},stop(e){const t=e.titleBlock;Ct.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const r=e.titleBlock;Ct.configure(e,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const ju=new WeakMap;var yY={id:"subtitle",start(e,t,n){const r=new q$({ctx:e.ctx,options:n,chart:e});Ct.configure(e,r,n),Ct.addBox(e,r),ju.set(e,r)},stop(e){Ct.removeBox(e,ju.get(e)),ju.delete(e)},beforeUpdate(e,t,n){const r=ju.get(e);Ct.configure(e,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const xo={average(e){if(!e.length)return!1;let t,n,r=new Set,i=0,a=0;for(t=0,n=e.length;t<n;++t){const o=e[t].element;if(o&&o.hasValue()){const l=o.tooltipPosition();r.add(l.x),i+=l.y,++a}}return{x:[...r].reduce((o,l)=>o+l)/r.size,y:i/a}},nearest(e,t){if(!e.length)return!1;let n=t.x,r=t.y,i=Number.POSITIVE_INFINITY,a,s,o;for(a=0,s=e.length;a<s;++a){const l=e[a].element;if(l&&l.hasValue()){const u=l.getCenterPoint(),c=Ky(t,u);c<i&&(i=c,o=l)}}if(o){const l=o.tooltipPosition();n=l.x,r=l.y}return{x:n,y:r}}};function Wn(e,t){return t&&(Be(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function sr(e){return(typeof e=="string"||e instanceof String)&&e.indexOf(`
 `)>-1?e.split(`
-`):e}function yY(e,t){const{element:n,datasetIndex:r,index:i}=t,a=e.getDatasetMeta(r).controller,{label:s,value:o}=a.getLabelAndValue(i);return{chart:e,label:s,parsed:a.getParsed(i),raw:e.data.datasets[r].data[i],formattedValue:o,dataset:a.getDataset(),dataIndex:i,datasetIndex:r,element:n}}function q6(e,t){const n=e.chart.ctx,{body:r,footer:i,title:a}=e,{boxWidth:s,boxHeight:o}=t,l=it(t.bodyFont),u=it(t.titleFont),c=it(t.footerFont),d=a.length,f=i.length,h=r.length,p=Pt(t.padding);let g=p.height,b=0,v=r.reduce((w,D)=>w+D.before.length+D.lines.length+D.after.length,0);if(v+=e.beforeBody.length+e.afterBody.length,d&&(g+=d*u.lineHeight+(d-1)*t.titleSpacing+t.titleMarginBottom),v){const w=t.displayColors?Math.max(o,l.lineHeight):l.lineHeight;g+=h*w+(v-h)*l.lineHeight+(v-1)*t.bodySpacing}f&&(g+=t.footerMarginTop+f*c.lineHeight+(f-1)*t.footerSpacing);let m=0;const $=function(w){b=Math.max(b,n.measureText(w).width+m)};return n.save(),n.font=u.string,me(e.title,$),n.font=l.string,me(e.beforeBody.concat(e.afterBody),$),m=t.displayColors?s+2+t.boxPadding:0,me(r,w=>{me(w.before,$),me(w.lines,$),me(w.after,$)}),m=0,n.font=c.string,me(e.footer,$),n.restore(),b+=p.width,{width:b,height:g}}function $Y(e,t){const{y:n,height:r}=t;return n<r/2?"top":n>e.height-r/2?"bottom":"center"}function xY(e,t,n,r){const{x:i,width:a}=r,s=n.caretSize+n.caretPadding;if(e==="left"&&i+a+s>t.width||e==="right"&&i-a-s<0)return!0}function wY(e,t,n,r){const{x:i,width:a}=n,{width:s,chartArea:{left:o,right:l}}=e;let u="center";return r==="center"?u=i<=(o+l)/2?"left":"right":i<=a/2?u="left":i>=s-a/2&&(u="right"),xY(u,e,t,n)&&(u="center"),u}function G6(e,t,n){const r=n.yAlign||t.yAlign||$Y(e,n);return{xAlign:n.xAlign||t.xAlign||wY(e,t,n,r),yAlign:r}}function DY(e,t){let{x:n,width:r}=e;return t==="right"?n-=r:t==="center"&&(n-=r/2),n}function _Y(e,t,n){let{y:r,height:i}=e;return t==="top"?r+=n:t==="bottom"?r-=i+n:r-=i/2,r}function Z6(e,t,n,r){const{caretSize:i,caretPadding:a,cornerRadius:s}=e,{xAlign:o,yAlign:l}=n,u=i+a,{topLeft:c,topRight:d,bottomLeft:f,bottomRight:h}=Gi(s);let p=DY(t,o);const g=_Y(t,l,u);return l==="center"?o==="left"?p+=u:o==="right"&&(p-=u):o==="left"?p-=Math.max(c,f)+i:o==="right"&&(p+=Math.max(d,h)+i),{x:dt(p,0,r.width-t.width),y:dt(g,0,r.height-t.height)}}function zu(e,t,n){const r=Pt(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-r.right:e.x+r.left}function X6(e){return Wn([],sr(e))}function EY(e,t,n){return bi(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function Q6(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const dR={beforeTitle:ir,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,r=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(r>0&&t.dataIndex<r)return n[t.dataIndex]}return""},afterTitle:ir,beforeBody:ir,beforeLabel:ir,label(e){if(this&&this.options&&this.options.mode==="dataset")return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const n=e.formattedValue;return ce(n)||(t+=n),t},labelColor(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:n.borderColor,backgroundColor:n.backgroundColor,borderWidth:n.borderWidth,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:n.pointStyle,rotation:n.rotation}},afterLabel:ir,afterBody:ir,beforeFooter:ir,footer:ir,afterFooter:ir};function jt(e,t,n,r){const i=e[t].call(n,r);return typeof i>"u"?dR[t].call(n,r):i}class t3 extends Cr{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const n=this.chart,r=this.options.setContext(this.getContext()),i=r.enabled&&n.options.animation&&r.animations,a=new UT(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(a)),a}getContext(){return this.$context||(this.$context=EY(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:r}=n,i=jt(r,"beforeTitle",this,t),a=jt(r,"title",this,t),s=jt(r,"afterTitle",this,t);let o=[];return o=Wn(o,sr(i)),o=Wn(o,sr(a)),o=Wn(o,sr(s)),o}getBeforeBody(t,n){return X6(jt(n.callbacks,"beforeBody",this,t))}getBody(t,n){const{callbacks:r}=n,i=[];return me(t,a=>{const s={before:[],lines:[],after:[]},o=Q6(r,a);Wn(s.before,sr(jt(o,"beforeLabel",this,a))),Wn(s.lines,jt(o,"label",this,a)),Wn(s.after,sr(jt(o,"afterLabel",this,a))),i.push(s)}),i}getAfterBody(t,n){return X6(jt(n.callbacks,"afterBody",this,t))}getFooter(t,n){const{callbacks:r}=n,i=jt(r,"beforeFooter",this,t),a=jt(r,"footer",this,t),s=jt(r,"afterFooter",this,t);let o=[];return o=Wn(o,sr(i)),o=Wn(o,sr(a)),o=Wn(o,sr(s)),o}_createItems(t){const n=this._active,r=this.chart.data,i=[],a=[],s=[];let o=[],l,u;for(l=0,u=n.length;l<u;++l)o.push(yY(this.chart,n[l]));return t.filter&&(o=o.filter((c,d,f)=>t.filter(c,d,f,r))),t.itemSort&&(o=o.sort((c,d)=>t.itemSort(c,d,r))),me(o,c=>{const d=Q6(t.callbacks,c);i.push(jt(d,"labelColor",this,c)),a.push(jt(d,"labelPointStyle",this,c)),s.push(jt(d,"labelTextColor",this,c))}),this.labelColors=i,this.labelPointStyles=a,this.labelTextColors=s,this.dataPoints=o,o}update(t,n){const r=this.options.setContext(this.getContext()),i=this._active;let a,s=[];if(!i.length)this.opacity!==0&&(a={opacity:0});else{const o=xo[r.position].call(this,i,this._eventPosition);s=this._createItems(r),this.title=this.getTitle(s,r),this.beforeBody=this.getBeforeBody(s,r),this.body=this.getBody(s,r),this.afterBody=this.getAfterBody(s,r),this.footer=this.getFooter(s,r);const l=this._size=q6(this,r),u=Object.assign({},o,l),c=G6(this.chart,r,u),d=Z6(r,u,c,this.chart);this.xAlign=c.xAlign,this.yAlign=c.yAlign,a={opacity:1,x:d.x,y:d.y,width:l.width,height:l.height,caretX:o.x,caretY:o.y}}this._tooltipItems=s,this.$context=void 0,a&&this._resolveAnimations().update(this,a),t&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,r,i){const a=this.getCaretPosition(t,r,i);n.lineTo(a.x1,a.y1),n.lineTo(a.x2,a.y2),n.lineTo(a.x3,a.y3)}getCaretPosition(t,n,r){const{xAlign:i,yAlign:a}=this,{caretSize:s,cornerRadius:o}=r,{topLeft:l,topRight:u,bottomLeft:c,bottomRight:d}=Gi(o),{x:f,y:h}=t,{width:p,height:g}=n;let b,v,m,$,w,D;return a==="center"?(w=h+g/2,i==="left"?(b=f,v=b-s,$=w+s,D=w-s):(b=f+p,v=b+s,$=w-s,D=w+s),m=b):(i==="left"?v=f+Math.max(l,c)+s:i==="right"?v=f+p-Math.max(u,d)-s:v=this.caretX,a==="top"?($=h,w=$-s,b=v-s,m=v+s):($=h+g,w=$+s,b=v+s,m=v-s),D=$),{x1:b,x2:v,x3:m,y1:$,y2:w,y3:D}}drawTitle(t,n,r){const i=this.title,a=i.length;let s,o,l;if(a){const u=ls(r.rtl,this.x,this.width);for(t.x=zu(this,r.titleAlign,r),n.textAlign=u.textAlign(r.titleAlign),n.textBaseline="middle",s=it(r.titleFont),o=r.titleSpacing,n.fillStyle=r.titleColor,n.font=s.string,l=0;l<a;++l)n.fillText(i[l],u.x(t.x),t.y+s.lineHeight/2),t.y+=s.lineHeight+o,l+1===a&&(t.y+=r.titleMarginBottom-o)}}_drawColorBox(t,n,r,i,a){const s=this.labelColors[r],o=this.labelPointStyles[r],{boxHeight:l,boxWidth:u}=a,c=it(a.bodyFont),d=zu(this,"left",a),f=i.x(d),h=l<c.lineHeight?(c.lineHeight-l)/2:0,p=n.y+h;if(a.usePointStyle){const g={radius:Math.min(u,l)/2,pointStyle:o.pointStyle,rotation:o.rotation,borderWidth:1},b=i.leftForLtr(f,u)+u/2,v=p+l/2;t.strokeStyle=a.multiKeyBackground,t.fillStyle=a.multiKeyBackground,qy(t,g,b,v),t.strokeStyle=s.borderColor,t.fillStyle=s.backgroundColor,qy(t,g,b,v)}else{t.lineWidth=ae(s.borderWidth)?Math.max(...Object.values(s.borderWidth)):s.borderWidth||1,t.strokeStyle=s.borderColor,t.setLineDash(s.borderDash||[]),t.lineDashOffset=s.borderDashOffset||0;const g=i.leftForLtr(f,u),b=i.leftForLtr(i.xPlus(f,1),u-2),v=Gi(s.borderRadius);Object.values(v).some(m=>m!==0)?(t.beginPath(),t.fillStyle=a.multiKeyBackground,xl(t,{x:g,y:p,w:u,h:l,radius:v}),t.fill(),t.stroke(),t.fillStyle=s.backgroundColor,t.beginPath(),xl(t,{x:b,y:p+1,w:u-2,h:l-2,radius:v}),t.fill()):(t.fillStyle=a.multiKeyBackground,t.fillRect(g,p,u,l),t.strokeRect(g,p,u,l),t.fillStyle=s.backgroundColor,t.fillRect(b,p+1,u-2,l-2))}t.fillStyle=this.labelTextColors[r]}drawBody(t,n,r){const{body:i}=this,{bodySpacing:a,bodyAlign:s,displayColors:o,boxHeight:l,boxWidth:u,boxPadding:c}=r,d=it(r.bodyFont);let f=d.lineHeight,h=0;const p=ls(r.rtl,this.x,this.width),g=function(x){n.fillText(x,p.x(t.x+h),t.y+f/2),t.y+=f+a},b=p.textAlign(s);let v,m,$,w,D,S,k;for(n.textAlign=s,n.textBaseline="middle",n.font=d.string,t.x=zu(this,b,r),n.fillStyle=r.bodyColor,me(this.beforeBody,g),h=o&&b!=="right"?s==="center"?u/2+c:u+2+c:0,w=0,S=i.length;w<S;++w){for(v=i[w],m=this.labelTextColors[w],n.fillStyle=m,me(v.before,g),$=v.lines,o&&$.length&&(this._drawColorBox(n,t,w,p,r),f=Math.max(d.lineHeight,l)),D=0,k=$.length;D<k;++D)g($[D]),f=d.lineHeight;me(v.after,g)}h=0,f=d.lineHeight,me(this.afterBody,g),t.y-=a}drawFooter(t,n,r){const i=this.footer,a=i.length;let s,o;if(a){const l=ls(r.rtl,this.x,this.width);for(t.x=zu(this,r.footerAlign,r),t.y+=r.footerMarginTop,n.textAlign=l.textAlign(r.footerAlign),n.textBaseline="middle",s=it(r.footerFont),n.fillStyle=r.footerColor,n.font=s.string,o=0;o<a;++o)n.fillText(i[o],l.x(t.x),t.y+s.lineHeight/2),t.y+=s.lineHeight+r.footerSpacing}}drawBackground(t,n,r,i){const{xAlign:a,yAlign:s}=this,{x:o,y:l}=t,{width:u,height:c}=r,{topLeft:d,topRight:f,bottomLeft:h,bottomRight:p}=Gi(i.cornerRadius);n.fillStyle=i.backgroundColor,n.strokeStyle=i.borderColor,n.lineWidth=i.borderWidth,n.beginPath(),n.moveTo(o+d,l),s==="top"&&this.drawCaret(t,n,r,i),n.lineTo(o+u-f,l),n.quadraticCurveTo(o+u,l,o+u,l+f),s==="center"&&a==="right"&&this.drawCaret(t,n,r,i),n.lineTo(o+u,l+c-p),n.quadraticCurveTo(o+u,l+c,o+u-p,l+c),s==="bottom"&&this.drawCaret(t,n,r,i),n.lineTo(o+h,l+c),n.quadraticCurveTo(o,l+c,o,l+c-h),s==="center"&&a==="left"&&this.drawCaret(t,n,r,i),n.lineTo(o,l+d),n.quadraticCurveTo(o,l,o+d,l),n.closePath(),n.fill(),i.borderWidth>0&&n.stroke()}_updateAnimationTarget(t){const n=this.chart,r=this.$animations,i=r&&r.x,a=r&&r.y;if(i||a){const s=xo[t.position].call(this,this._active,this._eventPosition);if(!s)return;const o=this._size=q6(this,t),l=Object.assign({},s,this._size),u=G6(n,t,l),c=Z6(t,l,u,n);(i._to!==c.x||a._to!==c.y)&&(this.xAlign=u.xAlign,this.yAlign=u.yAlign,this.width=o.width,this.height=o.height,this.caretX=s.x,this.caretY=s.y,this._resolveAnimations().update(this,c))}}_willRender(){return!!this.opacity}draw(t){const n=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(n);const i={width:this.width,height:this.height},a={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const s=Pt(n.padding),o=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&o&&(t.save(),t.globalAlpha=r,this.drawBackground(a,t,i,n),NT(t,n.textDirection),a.y+=s.top,this.drawTitle(a,t,n),this.drawBody(a,t,n),this.drawFooter(a,t,n),jT(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){const r=this._active,i=t.map(({datasetIndex:o,index:l})=>{const u=this.chart.getDatasetMeta(o);if(!u)throw new Error("Cannot find a dataset at index "+o);return{datasetIndex:o,element:u.data[l],index:l}}),a=!Wd(r,i),s=this._positionChanged(i,n);(a||s)&&(this._active=i,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,n,r=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,a=this._active||[],s=this._getActiveElements(t,a,n,r),o=this._positionChanged(s,t),l=n||!Wd(s,a)||o;return l&&(this._active=s,(i.enabled||i.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),l}_getActiveElements(t,n,r,i){const a=this.options;if(t.type==="mouseout")return[];if(!i)return n.filter(o=>this.chart.data.datasets[o.datasetIndex]&&this.chart.getDatasetMeta(o.datasetIndex).controller.getParsed(o.index)!==void 0);const s=this.chart.getElementsAtEventForMode(t,a.mode,a,r);return a.reverse&&s.reverse(),s}_positionChanged(t,n){const{caretX:r,caretY:i,options:a}=this,s=xo[a.position].call(this,t,n);return s!==!1&&(r!==s.x||i!==s.y)}}j(t3,"positioners",xo);var G$={id:"tooltip",_element:t3,positioners:xo,afterInit(e,t,n){n&&(e.tooltip=new t3({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:dR},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},SY=Object.freeze({__proto__:null,Colors:NK,Decimation:WK,Filler:uY,Legend:mY,SubTitle:bY,Title:vY,Tooltip:G$});const CY=(e,t,n,r)=>(typeof t=="string"?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function kY(e,t,n,r){const i=e.indexOf(t);if(i===-1)return CY(e,t,n,r);const a=e.lastIndexOf(t);return i!==a?n:i}const PY=(e,t)=>e===null?null:dt(Math.round(e),0,t);function J6(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}class Dl extends ya{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const n=this._addedLabels;if(n.length){const r=this.getLabels();for(const{index:i,label:a}of n)r[i]===a&&r.splice(i,1);this._addedLabels=[]}super.init(t)}parse(t,n){if(ce(t))return null;const r=this.getLabels();return n=isFinite(n)&&r[n]===t?n:kY(r,t,J(n,t),this._addedLabels),PY(n,r.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let{min:r,max:i}=this.getMinMax(!0);this.options.bounds==="ticks"&&(t||(r=0),n||(i=this.getLabels().length-1)),this.min=r,this.max=i}buildTicks(){const t=this.min,n=this.max,r=this.options.offset,i=[];let a=this.getLabels();a=t===0&&n===a.length-1?a:a.slice(t,n+1),this._valueRange=Math.max(a.length-(r?0:1),1),this._startValue=this.min-(r?.5:0);for(let s=t;s<=n;s++)i.push({value:s});return i}getLabelForValue(t){return J6.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return typeof t!="number"&&(t=this.parse(t)),t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}j(Dl,"id","category"),j(Dl,"defaults",{ticks:{callback:J6}});function TY(e,t){const n=[],{bounds:i,step:a,min:s,max:o,precision:l,count:u,maxTicks:c,maxDigits:d,includeBounds:f}=e,h=a||1,p=c-1,{min:g,max:b}=t,v=!ce(s),m=!ce(o),$=!ce(u),w=(b-g)/(d+1);let D=Y5((b-g)/p/h)*h,S,k,x,T;if(D<1e-14&&!v&&!m)return[{value:g},{value:b}];T=Math.ceil(b/D)-Math.floor(g/D),T>p&&(D=Y5(T*D/p/h)*h),ce(l)||(S=Math.pow(10,l),D=Math.ceil(D*S)/S),i==="ticks"?(k=Math.floor(g/D)*D,x=Math.ceil(b/D)*D):(k=g,x=b),v&&m&&a&&EW((o-s)/a,D/1e3)?(T=Math.round(Math.min((o-s)/D,c)),D=(o-s)/T,k=s,x=o):$?(k=v?s:k,x=m?o:x,T=u-1,D=(x-k)/T):(T=(x-k)/D,Lo(T,Math.round(T),D/1e3)?T=Math.round(T):T=Math.ceil(T));const P=Math.max(q5(D),q5(k));S=Math.pow(10,ce(l)?P:l),k=Math.round(k*S)/S,x=Math.round(x*S)/S;let E=0;for(v&&(f&&k!==s?(n.push({value:s}),k<s&&E++,Lo(Math.round((k+E*D)*S)/S,s,ew(s,w,e))&&E++):k<s&&E++);E<T;++E){const F=Math.round((k+E*D)*S)/S;if(m&&F>o)break;n.push({value:F})}return m&&f&&x!==o?n.length&&Lo(n[n.length-1].value,o,ew(o,w,e))?n[n.length-1].value=o:n.push({value:o}):(!m||x===o)&&n.push({value:x}),n}function ew(e,t,{horizontal:n,minRotation:r}){const i=An(r),a=(n?Math.sin(i):Math.cos(i))||.001,s=.75*t*(""+e).length;return Math.min(t/a,s)}class Zd extends ya{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,n){return ce(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:n,maxDefined:r}=this.getUserBounds();let{min:i,max:a}=this;const s=l=>i=n?i:l,o=l=>a=r?a:l;if(t){const l=Zn(i),u=Zn(a);l<0&&u<0?o(0):l>0&&u>0&&s(0)}if(i===a){let l=a===0?1:Math.abs(a*.05);o(a+l),t||s(i-l)}this.min=i,this.max=a}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:n,stepSize:r}=t,i;return r?(i=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,i>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${i} ticks. Limiting to 1000.`),i=1e3)):(i=this.computeTickLimit(),n=n||11),n&&(i=Math.min(n,i)),i}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,n=t.ticks;let r=this.getTickLimit();r=Math.max(2,r);const i={maxTicks:r,bounds:t.bounds,min:t.min,max:t.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},a=this._range||this,s=TY(i,a);return t.bounds==="ticks"&&wT(s,this,"value"),t.reverse?(s.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),s}configure(){const t=this.ticks;let n=this.min,r=this.max;if(super.configure(),this.options.offset&&t.length){const i=(r-n)/Math.max(t.length-1,1)/2;n-=i,r+=i}this._startValue=n,this._endValue=r,this._valueRange=r-n}getLabelForValue(t){return Ul(t,this.chart.options.locale,this.options.ticks.format)}}class _l extends Zd{determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=Ve(t)?t:0,this.max=Ve(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,r=An(this.options.ticks.minRotation),i=(t?Math.sin(r):Math.cos(r))||.001,a=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,a.lineHeight/i))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}j(_l,"id","linear"),j(_l,"defaults",{ticks:{callback:Vf.formatters.numeric}});const El=e=>Math.floor(Yr(e)),Si=(e,t)=>Math.pow(10,El(e)+t);function tw(e){return e/Math.pow(10,El(e))===1}function nw(e,t,n){const r=Math.pow(10,n),i=Math.floor(e/r);return Math.ceil(t/r)-i}function RY(e,t){const n=t-e;let r=El(n);for(;nw(e,t,r)>10;)r++;for(;nw(e,t,r)<10;)r--;return Math.min(r,El(e))}function MY(e,{min:t,max:n}){t=en(e.min,t);const r=[],i=El(t);let a=RY(t,n),s=a<0?Math.pow(10,Math.abs(a)):1;const o=Math.pow(10,a),l=i>a?Math.pow(10,i):0,u=Math.round((t-l)*s)/s,c=Math.floor((t-l)/o/10)*o*10;let d=Math.floor((u-c)/Math.pow(10,a)),f=en(e.min,Math.round((l+c+d*Math.pow(10,a))*s)/s);for(;f<n;)r.push({value:f,major:tw(f),significand:d}),d>=10?d=d<15?15:20:d++,d>=20&&(a++,d=2,s=a>=0?1:s),f=Math.round((l+c+d*Math.pow(10,a))*s)/s;const h=en(e.max,f);return r.push({value:h,major:tw(h),significand:d}),r}class n3 extends ya{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,n){const r=Zd.prototype.parse.apply(this,[t,n]);if(r===0){this._zero=!0;return}return Ve(r)&&r>0?r:null}determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=Ve(t)?Math.max(0,t):null,this.max=Ve(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!Ve(this._userMin)&&(this.min=t===Si(this.min,0)?Si(this.min,-1):Si(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let r=this.min,i=this.max;const a=o=>r=t?r:o,s=o=>i=n?i:o;r===i&&(r<=0?(a(1),s(10)):(a(Si(r,-1)),s(Si(i,1)))),r<=0&&a(Si(i,-1)),i<=0&&s(Si(r,1)),this.min=r,this.max=i}buildTicks(){const t=this.options,n={min:this._userMin,max:this._userMax},r=MY(n,this);return t.bounds==="ticks"&&wT(r,this,"value"),t.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}getLabelForValue(t){return t===void 0?"0":Ul(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=Yr(t),this._valueRange=Yr(this.max)-Yr(t)}getPixelForValue(t){return(t===void 0||t===0)&&(t=this.min),t===null||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(Yr(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const n=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+n*this._valueRange)}}j(n3,"id","logarithmic"),j(n3,"defaults",{ticks:{callback:Vf.formatters.logarithmic,major:{enabled:!0}}});function r3(e){const t=e.ticks;if(t.display&&e.display){const n=Pt(t.backdropPadding);return J(t.font&&t.font.size,We.font.size)+n.height}return 0}function FY(e,t,n){return n=Be(n)?n:[n],{w:VW(e,t.string,n),h:n.length*t.lineHeight}}function rw(e,t,n,r,i){return e===r||e===i?{start:t-n/2,end:t+n/2}:e<r||e>i?{start:t-n,end:t}:{start:t,end:t+n}}function AY(e){const t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},n=Object.assign({},t),r=[],i=[],a=e._pointLabels.length,s=e.options.pointLabels,o=s.centerPointLabels?Me/a:0;for(let l=0;l<a;l++){const u=s.setContext(e.getPointLabelContext(l));i[l]=u.padding;const c=e.getPointPosition(l,e.drawingArea+i[l],o),d=it(u.font),f=FY(e.ctx,d,e._pointLabels[l]);r[l]=f;const h=nn(e.getIndexAngle(l)+o),p=Math.round(B$(h)),g=rw(p,c.x,f.w,0,180),b=rw(p,c.y,f.h,90,270);OY(n,t,h,g,b)}e.setCenterPoint(t.l-n.l,n.r-t.r,t.t-n.t,n.b-t.b),e._pointLabelItems=LY(e,r,i)}function OY(e,t,n,r,i){const a=Math.abs(Math.sin(n)),s=Math.abs(Math.cos(n));let o=0,l=0;r.start<t.l?(o=(t.l-r.start)/a,e.l=Math.min(e.l,t.l-o)):r.end>t.r&&(o=(r.end-t.r)/a,e.r=Math.max(e.r,t.r+o)),i.start<t.t?(l=(t.t-i.start)/s,e.t=Math.min(e.t,t.t-l)):i.end>t.b&&(l=(i.end-t.b)/s,e.b=Math.max(e.b,t.b+l))}function BY(e,t,n){const r=e.drawingArea,{extra:i,additionalAngle:a,padding:s,size:o}=n,l=e.getPointPosition(t,r+i+s,a),u=Math.round(B$(nn(l.angle+qe))),c=zY(l.y,o.h,u),d=NY(u),f=jY(l.x,o.w,d);return{visible:!0,x:l.x,y:c,textAlign:d,left:f,top:c,right:f+o.w,bottom:c+o.h}}function IY(e,t){if(!t)return!0;const{left:n,top:r,right:i,bottom:a}=e;return!(vr({x:n,y:r},t)||vr({x:n,y:a},t)||vr({x:i,y:r},t)||vr({x:i,y:a},t))}function LY(e,t,n){const r=[],i=e._pointLabels.length,a=e.options,{centerPointLabels:s,display:o}=a.pointLabels,l={extra:r3(a)/2,additionalAngle:s?Me/i:0};let u;for(let c=0;c<i;c++){l.padding=n[c],l.size=t[c];const d=BY(e,c,l);r.push(d),o==="auto"&&(d.visible=IY(d,u),d.visible&&(u=d))}return r}function NY(e){return e===0||e===180?"center":e<180?"left":"right"}function jY(e,t,n){return n==="right"?e-=t:n==="center"&&(e-=t/2),e}function zY(e,t,n){return n===90||n===270?e-=t/2:(n>270||n<90)&&(e-=t),e}function VY(e,t,n){const{left:r,top:i,right:a,bottom:s}=n,{backdropColor:o}=t;if(!ce(o)){const l=Gi(t.borderRadius),u=Pt(t.backdropPadding);e.fillStyle=o;const c=r-u.left,d=i-u.top,f=a-r+u.width,h=s-i+u.height;Object.values(l).some(p=>p!==0)?(e.beginPath(),xl(e,{x:c,y:d,w:f,h,radius:l}),e.fill()):e.fillRect(c,d,f,h)}}function WY(e,t){const{ctx:n,options:{pointLabels:r}}=e;for(let i=t-1;i>=0;i--){const a=e._pointLabelItems[i];if(!a.visible)continue;const s=r.setContext(e.getPointLabelContext(i));VY(n,s,a);const o=it(s.font),{x:l,y:u,textAlign:c}=a;la(n,e._pointLabels[i],l,u+o.lineHeight/2,o,{color:s.color,textAlign:c,textBaseline:"middle"})}}function fR(e,t,n,r){const{ctx:i}=e;if(n)i.arc(e.xCenter,e.yCenter,t,0,Te);else{let a=e.getPointPosition(0,t);i.moveTo(a.x,a.y);for(let s=1;s<r;s++)a=e.getPointPosition(s,t),i.lineTo(a.x,a.y)}}function UY(e,t,n,r,i){const a=e.ctx,s=t.circular,{color:o,lineWidth:l}=t;!s&&!r||!o||!l||n<0||(a.save(),a.strokeStyle=o,a.lineWidth=l,a.setLineDash(i.dash),a.lineDashOffset=i.dashOffset,a.beginPath(),fR(e,n,s,r),a.closePath(),a.stroke(),a.restore())}function HY(e,t,n){return bi(e,{label:n,index:t,type:"pointLabel"})}class wo extends Zd{constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const t=this._padding=Pt(r3(this.options)/2),n=this.width=this.maxWidth-t.width,r=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+n/2+t.left),this.yCenter=Math.floor(this.top+r/2+t.top),this.drawingArea=Math.floor(Math.min(n,r)/2)}determineDataLimits(){const{min:t,max:n}=this.getMinMax(!1);this.min=Ve(t)&&!isNaN(t)?t:0,this.max=Ve(n)&&!isNaN(n)?n:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/r3(this.options))}generateTickLabels(t){Zd.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map((n,r)=>{const i=De(this.options.pointLabels.callback,[n,r],this);return i||i===0?i:""}).filter((n,r)=>this.chart.getDataVisibility(r))}fit(){const t=this.options;t.display&&t.pointLabels.display?AY(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,n,r,i){this.xCenter+=Math.floor((t-n)/2),this.yCenter+=Math.floor((r-i)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,n,r,i))}getIndexAngle(t){const n=Te/(this._pointLabels.length||1),r=this.options.startAngle||0;return nn(t*n+An(r))}getDistanceFromCenterForValue(t){if(ce(t))return NaN;const n=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*n:(t-this.min)*n}getValueForDistanceFromCenter(t){if(ce(t))return NaN;const n=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-n:this.min+n}getPointLabelContext(t){const n=this._pointLabels||[];if(t>=0&&t<n.length){const r=n[t];return HY(this.getContext(),t,r)}}getPointPosition(t,n,r=0){const i=this.getIndexAngle(t)-qe+r;return{x:Math.cos(i)*n+this.xCenter,y:Math.sin(i)*n+this.yCenter,angle:i}}getPointPositionForValue(t,n){return this.getPointPosition(t,this.getDistanceFromCenterForValue(n))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){const{left:n,top:r,right:i,bottom:a}=this._pointLabelItems[t];return{left:n,top:r,right:i,bottom:a}}drawBackground(){const{backgroundColor:t,grid:{circular:n}}=this.options;if(t){const r=this.ctx;r.save(),r.beginPath(),fR(this,this.getDistanceFromCenterForValue(this._endValue),n,this._pointLabels.length),r.closePath(),r.fillStyle=t,r.fill(),r.restore()}}drawGrid(){const t=this.ctx,n=this.options,{angleLines:r,grid:i,border:a}=n,s=this._pointLabels.length;let o,l,u;if(n.pointLabels.display&&WY(this,s),i.display&&this.ticks.forEach((c,d)=>{if(d!==0||d===0&&this.min<0){l=this.getDistanceFromCenterForValue(c.value);const f=this.getContext(d),h=i.setContext(f),p=a.setContext(f);UY(this,h,l,s,p)}}),r.display){for(t.save(),o=s-1;o>=0;o--){const c=r.setContext(this.getPointLabelContext(o)),{color:d,lineWidth:f}=c;!f||!d||(t.lineWidth=f,t.strokeStyle=d,t.setLineDash(c.borderDash),t.lineDashOffset=c.borderDashOffset,l=this.getDistanceFromCenterForValue(n.ticks.reverse?this.min:this.max),u=this.getPointPosition(o,l),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(u.x,u.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,n=this.options,r=n.ticks;if(!r.display)return;const i=this.getIndexAngle(0);let a,s;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(i),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((o,l)=>{if(l===0&&this.min>=0&&!n.reverse)return;const u=r.setContext(this.getContext(l)),c=it(u.font);if(a=this.getDistanceFromCenterForValue(this.ticks[l].value),u.showLabelBackdrop){t.font=c.string,s=t.measureText(o.label).width,t.fillStyle=u.backdropColor;const d=Pt(u.backdropPadding);t.fillRect(-s/2-d.left,-a-c.size/2-d.top,s+d.width,c.size+d.height)}la(t,o.label,0,-a,c,{color:u.color,strokeColor:u.textStrokeColor,strokeWidth:u.textStrokeWidth})}),t.restore()}drawTitle(){}}j(wo,"id","radialLinear"),j(wo,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Vf.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(t){return t},padding:5,centerPointLabels:!1}}),j(wo,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),j(wo,"descriptors",{angleLines:{_fallback:"grid"}});const Kf={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Ht=Object.keys(Kf);function iw(e,t){return e-t}function aw(e,t){if(ce(t))return null;const n=e._adapter,{parser:r,round:i,isoWeekday:a}=e._parseOpts;let s=t;return typeof r=="function"&&(s=r(s)),Ve(s)||(s=typeof r=="string"?n.parse(s,r):n.parse(s)),s===null?null:(i&&(s=i==="week"&&(ws(a)||a===!0)?n.startOf(s,"isoWeek",a):n.startOf(s,i)),+s)}function sw(e,t,n,r){const i=Ht.length;for(let a=Ht.indexOf(e);a<i-1;++a){const s=Kf[Ht[a]],o=s.steps?s.steps:Number.MAX_SAFE_INTEGER;if(s.common&&Math.ceil((n-t)/(o*s.size))<=r)return Ht[a]}return Ht[i-1]}function KY(e,t,n,r,i){for(let a=Ht.length-1;a>=Ht.indexOf(n);a--){const s=Ht[a];if(Kf[s].common&&e._adapter.diff(i,r,s)>=t-1)return s}return Ht[n?Ht.indexOf(n):0]}function YY(e){for(let t=Ht.indexOf(e)+1,n=Ht.length;t<n;++t)if(Kf[Ht[t]].common)return Ht[t]}function ow(e,t,n){if(!n)e[t]=!0;else if(n.length){const{lo:r,hi:i}=I$(n,t),a=n[r]>=t?n[r]:n[i];e[a]=!0}}function qY(e,t,n,r){const i=e._adapter,a=+i.startOf(t[0].value,r),s=t[t.length-1].value;let o,l;for(o=a;o<=s;o=+i.add(o,1,r))l=n[o],l>=0&&(t[l].major=!0);return t}function lw(e,t,n){const r=[],i={},a=t.length;let s,o;for(s=0;s<a;++s)o=t[s],i[o]=s,r.push({value:o,major:!1});return a===0||!n?r:qY(e,r,i,n)}class Sl extends ya{constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,n={}){const r=t.time||(t.time={}),i=this._adapter=new iH._date(t.adapters.date);i.init(n),Io(r.displayFormats,i.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},super.init(t),this._normalized=n.normalized}parse(t,n){return t===void 0?null:aw(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,n=this._adapter,r=t.time.unit||"day";let{min:i,max:a,minDefined:s,maxDefined:o}=this.getUserBounds();function l(u){!s&&!isNaN(u.min)&&(i=Math.min(i,u.min)),!o&&!isNaN(u.max)&&(a=Math.max(a,u.max))}(!s||!o)&&(l(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&l(this.getMinMax(!1))),i=Ve(i)&&!isNaN(i)?i:+n.startOf(Date.now(),r),a=Ve(a)&&!isNaN(a)?a:+n.endOf(Date.now(),r)+1,this.min=Math.min(i,a-1),this.max=Math.max(i+1,a)}_getLabelBounds(){const t=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;return t.length&&(n=t[0],r=t[t.length-1]),{min:n,max:r}}buildTicks(){const t=this.options,n=t.time,r=t.ticks,i=r.source==="labels"?this.getLabelTimestamps():this._generate();t.bounds==="ticks"&&i.length&&(this.min=this._userMin||i[0],this.max=this._userMax||i[i.length-1]);const a=this.min,s=this.max,o=PW(i,a,s);return this._unit=n.unit||(r.autoSkip?sw(n.minUnit,this.min,this.max,this._getLabelCapacity(a)):KY(this,o.length,n.minUnit,this.min,this.max)),this._majorUnit=!r.major.enabled||this._unit==="year"?void 0:YY(this._unit),this.initOffsets(i),t.reverse&&o.reverse(),lw(this,o,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let n=0,r=0,i,a;this.options.offset&&t.length&&(i=this.getDecimalForValue(t[0]),t.length===1?n=1-i:n=(this.getDecimalForValue(t[1])-i)/2,a=this.getDecimalForValue(t[t.length-1]),t.length===1?r=a:r=(a-this.getDecimalForValue(t[t.length-2]))/2);const s=t.length<3?.5:.25;n=dt(n,0,s),r=dt(r,0,s),this._offsets={start:n,end:r,factor:1/(n+1+r)}}_generate(){const t=this._adapter,n=this.min,r=this.max,i=this.options,a=i.time,s=a.unit||sw(a.minUnit,n,r,this._getLabelCapacity(n)),o=J(i.ticks.stepSize,1),l=s==="week"?a.isoWeekday:!1,u=ws(l)||l===!0,c={};let d=n,f,h;if(u&&(d=+t.startOf(d,"isoWeek",l)),d=+t.startOf(d,u?"day":s),t.diff(r,n,s)>1e5*o)throw new Error(n+" and "+r+" are too far apart with stepSize of "+o+" "+s);const p=i.ticks.source==="data"&&this.getDataTimestamps();for(f=d,h=0;f<r;f=+t.add(f,o,s),h++)ow(c,f,p);return(f===r||i.bounds==="ticks"||h===1)&&ow(c,f,p),Object.keys(c).sort(iw).map(g=>+g)}getLabelForValue(t){const n=this._adapter,r=this.options.time;return r.tooltipFormat?n.format(t,r.tooltipFormat):n.format(t,r.displayFormats.datetime)}format(t,n){const i=this.options.time.displayFormats,a=this._unit,s=n||i[a];return this._adapter.format(t,s)}_tickFormatFunction(t,n,r,i){const a=this.options,s=a.ticks.callback;if(s)return De(s,[t,n,r],this);const o=a.time.displayFormats,l=this._unit,u=this._majorUnit,c=l&&o[l],d=u&&o[u],f=r[n],h=u&&d&&f&&f.major;return this._adapter.format(t,i||(h?d:c))}generateTickLabels(t){let n,r,i;for(n=0,r=t.length;n<r;++n)i=t[n],i.label=this._tickFormatFunction(i.value,n,t)}getDecimalForValue(t){return t===null?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const n=this._offsets,r=this.getDecimalForValue(t);return this.getPixelForDecimal((n.start+r)*n.factor)}getValueForPixel(t){const n=this._offsets,r=this.getDecimalForPixel(t)/n.factor-n.end;return this.min+r*(this.max-this.min)}_getLabelSize(t){const n=this.options.ticks,r=this.ctx.measureText(t).width,i=An(this.isHorizontal()?n.maxRotation:n.minRotation),a=Math.cos(i),s=Math.sin(i),o=this._resolveTickFontOptions(0).size;return{w:r*a+o*s,h:r*s+o*a}}_getLabelCapacity(t){const n=this.options.time,r=n.displayFormats,i=r[n.unit]||r.millisecond,a=this._tickFormatFunction(t,0,lw(this,[t],this._majorUnit),i),s=this._getLabelSize(a),o=Math.floor(this.isHorizontal()?this.width/s.w:this.height/s.h)-1;return o>0?o:1}getDataTimestamps(){let t=this._cache.data||[],n,r;if(t.length)return t;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(n=0,r=i.length;n<r;++n)t=t.concat(i[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){const t=this._cache.labels||[];let n,r;if(t.length)return t;const i=this.getLabels();for(n=0,r=i.length;n<r;++n)t.push(aw(this,i[n]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return ET(t.sort(iw))}}j(Sl,"id","time"),j(Sl,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});function Vu(e,t,n){let r=0,i=e.length-1,a,s,o,l;n?(t>=e[r].pos&&t<=e[i].pos&&({lo:r,hi:i}=gr(e,"pos",t)),{pos:a,time:o}=e[r],{pos:s,time:l}=e[i]):(t>=e[r].time&&t<=e[i].time&&({lo:r,hi:i}=gr(e,"time",t)),{time:a,pos:o}=e[r],{time:s,pos:l}=e[i]);const u=s-a;return u?o+(l-o)*(t-a)/u:o}class i3 extends Sl{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(t);this._minPos=Vu(n,this.min),this._tableRange=Vu(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:n,max:r}=this,i=[],a=[];let s,o,l,u,c;for(s=0,o=t.length;s<o;++s)u=t[s],u>=n&&u<=r&&i.push(u);if(i.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(s=0,o=i.length;s<o;++s)c=i[s+1],l=i[s-1],u=i[s],Math.round((c+l)/2)!==u&&a.push({time:u,pos:s/(o-1)});return a}_generate(){const t=this.min,n=this.max;let r=super.getDataTimestamps();return(!r.includes(t)||!r.length)&&r.splice(0,0,t),(!r.includes(n)||r.length===1)&&r.push(n),r.sort((i,a)=>i-a)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const n=this.getDataTimestamps(),r=this.getLabelTimestamps();return n.length&&r.length?t=this.normalize(n.concat(r)):t=n.length?n:r,t=this._cache.all=t,t}getDecimalForValue(t){return(Vu(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const n=this._offsets,r=this.getDecimalForPixel(t)/n.factor-n.end;return Vu(this._table,r*this._tableRange+this._minPos,!0)}}j(i3,"id","timeseries"),j(i3,"defaults",Sl.defaults);var GY=Object.freeze({__proto__:null,CategoryScale:Dl,LinearScale:_l,LogarithmicScale:n3,RadialLinearScale:wo,TimeScale:Sl,TimeSeriesScale:i3});const ZY=[rH,FK,SY,GY];As.register(...ZY);function zn(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function ua(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}const hR=6048e5,XY=864e5;let QY={};function Yf(){return QY}function Cl(e,t){var o,l,u,c;const n=Yf(),r=(t==null?void 0:t.weekStartsOn)??((l=(o=t==null?void 0:t.locale)==null?void 0:o.options)==null?void 0:l.weekStartsOn)??n.weekStartsOn??((c=(u=n.locale)==null?void 0:u.options)==null?void 0:c.weekStartsOn)??0,i=zn(e),a=i.getDay(),s=(a<r?7:0)+a-r;return i.setDate(i.getDate()-s),i.setHours(0,0,0,0),i}function Xd(e){return Cl(e,{weekStartsOn:1})}function pR(e){const t=zn(e),n=t.getFullYear(),r=ua(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const i=Xd(r),a=ua(e,0);a.setFullYear(n,0,4),a.setHours(0,0,0,0);const s=Xd(a);return t.getTime()>=i.getTime()?n+1:t.getTime()>=s.getTime()?n:n-1}function uw(e){const t=zn(e);return t.setHours(0,0,0,0),t}function cw(e){const t=zn(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function JY(e,t){const n=uw(e),r=uw(t),i=+n-cw(n),a=+r-cw(r);return Math.round((i-a)/XY)}function eq(e){const t=pR(e),n=ua(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),Xd(n)}function tq(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function nq(e){if(!tq(e)&&typeof e!="number")return!1;const t=zn(e);return!isNaN(Number(t))}function rq(e){const t=zn(e),n=ua(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}const iq={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},aq=(e,t,n)=>{let r;const i=iq[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function wp(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const sq={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},oq={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},lq={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},uq={date:wp({formats:sq,defaultWidth:"full"}),time:wp({formats:oq,defaultWidth:"full"}),dateTime:wp({formats:lq,defaultWidth:"full"})},cq={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},dq=(e,t,n,r)=>cq[e];function ro(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const s=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):s;i=e.formattingValues[o]||e.formattingValues[s]}else{const s=e.defaultWidth,o=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[o]||e.values[s]}const a=e.argumentCallback?e.argumentCallback(t):t;return i[a]}}const fq={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},hq={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},pq={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},mq={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},gq={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},vq={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},bq=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},yq={ordinalNumber:bq,era:ro({values:fq,defaultWidth:"wide"}),quarter:ro({values:hq,defaultWidth:"wide",argumentCallback:e=>e-1}),month:ro({values:pq,defaultWidth:"wide"}),day:ro({values:mq,defaultWidth:"wide"}),dayPeriod:ro({values:gq,defaultWidth:"wide",formattingValues:vq,defaultFormattingWidth:"wide"})};function io(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;const s=a[0],o=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(o)?xq(o,d=>d.test(s)):$q(o,d=>d.test(s));let u;u=e.valueCallback?e.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;const c=t.slice(s.length);return{value:u,rest:c}}}function $q(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function xq(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function wq(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],a=t.match(e.parsePattern);if(!a)return null;let s=e.valueCallback?e.valueCallback(a[0]):a[0];s=n.valueCallback?n.valueCallback(s):s;const o=t.slice(i.length);return{value:s,rest:o}}}const Dq=/^(\d+)(th|st|nd|rd)?/i,_q=/\d+/i,Eq={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Sq={any:[/^b/i,/^(a|c)/i]},Cq={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},kq={any:[/1/i,/2/i,/3/i,/4/i]},Pq={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Tq={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Rq={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Mq={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Fq={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Aq={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Oq={ordinalNumber:wq({matchPattern:Dq,parsePattern:_q,valueCallback:e=>parseInt(e,10)}),era:io({matchPatterns:Eq,defaultMatchWidth:"wide",parsePatterns:Sq,defaultParseWidth:"any"}),quarter:io({matchPatterns:Cq,defaultMatchWidth:"wide",parsePatterns:kq,defaultParseWidth:"any",valueCallback:e=>e+1}),month:io({matchPatterns:Pq,defaultMatchWidth:"wide",parsePatterns:Tq,defaultParseWidth:"any"}),day:io({matchPatterns:Rq,defaultMatchWidth:"wide",parsePatterns:Mq,defaultParseWidth:"any"}),dayPeriod:io({matchPatterns:Fq,defaultMatchWidth:"any",parsePatterns:Aq,defaultParseWidth:"any"})},Bq={code:"en-US",formatDistance:aq,formatLong:uq,formatRelative:dq,localize:yq,match:Oq,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Iq(e){const t=zn(e);return JY(t,rq(t))+1}function Lq(e){const t=zn(e),n=+Xd(t)-+eq(t);return Math.round(n/hR)+1}function mR(e,t){var c,d,f,h;const n=zn(e),r=n.getFullYear(),i=Yf(),a=(t==null?void 0:t.firstWeekContainsDate)??((d=(c=t==null?void 0:t.locale)==null?void 0:c.options)==null?void 0:d.firstWeekContainsDate)??i.firstWeekContainsDate??((h=(f=i.locale)==null?void 0:f.options)==null?void 0:h.firstWeekContainsDate)??1,s=ua(e,0);s.setFullYear(r+1,0,a),s.setHours(0,0,0,0);const o=Cl(s,t),l=ua(e,0);l.setFullYear(r,0,a),l.setHours(0,0,0,0);const u=Cl(l,t);return n.getTime()>=o.getTime()?r+1:n.getTime()>=u.getTime()?r:r-1}function Nq(e,t){var o,l,u,c;const n=Yf(),r=(t==null?void 0:t.firstWeekContainsDate)??((l=(o=t==null?void 0:t.locale)==null?void 0:o.options)==null?void 0:l.firstWeekContainsDate)??n.firstWeekContainsDate??((c=(u=n.locale)==null?void 0:u.options)==null?void 0:c.firstWeekContainsDate)??1,i=mR(e,t),a=ua(e,0);return a.setFullYear(i,0,r),a.setHours(0,0,0,0),Cl(a,t)}function jq(e,t){const n=zn(e),r=+Cl(n,t)-+Nq(n,t);return Math.round(r/hR)+1}function pe(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Tr={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return pe(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):pe(n+1,2)},d(e,t){return pe(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return pe(e.getHours()%12||12,t.length)},H(e,t){return pe(e.getHours(),t.length)},m(e,t){return pe(e.getMinutes(),t.length)},s(e,t){return pe(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return pe(i,t.length)}},Ra={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},dw={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return Tr.y(e,t)},Y:function(e,t,n,r){const i=mR(e,r),a=i>0?i:1-i;if(t==="YY"){const s=a%100;return pe(s,2)}return t==="Yo"?n.ordinalNumber(a,{unit:"year"}):pe(a,t.length)},R:function(e,t){const n=pR(e);return pe(n,t.length)},u:function(e,t){const n=e.getFullYear();return pe(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return pe(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return pe(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return Tr.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return pe(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const i=jq(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):pe(i,t.length)},I:function(e,t,n){const r=Lq(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):pe(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Tr.d(e,t)},D:function(e,t,n){const r=Iq(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):pe(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return pe(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return pe(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return pe(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let i;switch(r===12?i=Ra.noon:r===0?i=Ra.midnight:i=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let i;switch(r>=17?i=Ra.evening:r>=12?i=Ra.afternoon:r>=4?i=Ra.morning:i=Ra.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Tr.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Tr.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):pe(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):pe(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Tr.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Tr.s(e,t)},S:function(e,t){return Tr.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return hw(r);case"XXXX":case"XX":return Oi(r);case"XXXXX":case"XXX":default:return Oi(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return hw(r);case"xxxx":case"xx":return Oi(r);case"xxxxx":case"xxx":default:return Oi(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+fw(r,":");case"OOOO":default:return"GMT"+Oi(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+fw(r,":");case"zzzz":default:return"GMT"+Oi(r,":")}},t:function(e,t,n){const r=Math.trunc(e.getTime()/1e3);return pe(r,t.length)},T:function(e,t,n){const r=e.getTime();return pe(r,t.length)}};function fw(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),a=r%60;return a===0?n+String(i):n+String(i)+t+pe(a,2)}function hw(e,t){return e%60===0?(e>0?"-":"+")+pe(Math.abs(e)/60,2):Oi(e,t)}function Oi(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=pe(Math.trunc(r/60),2),a=pe(r%60,2);return n+i+t+a}const pw=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},gR=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},zq=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return pw(e,t);let a;switch(r){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;case"PPPP":default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",pw(r,t)).replace("{{time}}",gR(i,t))},Vq={p:gR,P:zq},Wq=/^D+$/,Uq=/^Y+$/,Hq=["D","DD","YY","YYYY"];function Kq(e){return Wq.test(e)}function Yq(e){return Uq.test(e)}function qq(e,t,n){const r=Gq(e,t,n);if(console.warn(r),Hq.includes(e))throw new RangeError(r)}function Gq(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const Zq=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Xq=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Qq=/^'([^]*?)'?$/,Jq=/''/g,eG=/[a-zA-Z]/;function tG(e,t,n){var c,d,f,h;const r=Yf(),i=r.locale??Bq,a=r.firstWeekContainsDate??((d=(c=r.locale)==null?void 0:c.options)==null?void 0:d.firstWeekContainsDate)??1,s=r.weekStartsOn??((h=(f=r.locale)==null?void 0:f.options)==null?void 0:h.weekStartsOn)??0,o=zn(e);if(!nq(o))throw new RangeError("Invalid time value");let l=t.match(Xq).map(p=>{const g=p[0];if(g==="p"||g==="P"){const b=Vq[g];return b(p,i.formatLong)}return p}).join("").match(Zq).map(p=>{if(p==="''")return{isToken:!1,value:"'"};const g=p[0];if(g==="'")return{isToken:!1,value:nG(p)};if(dw[g])return{isToken:!0,value:p};if(g.match(eG))throw new RangeError("Format string contains an unescaped latin alphabet character `"+g+"`");return{isToken:!1,value:p}});i.localize.preprocessor&&(l=i.localize.preprocessor(o,l));const u={firstWeekContainsDate:a,weekStartsOn:s,locale:i};return l.map(p=>{if(!p.isToken)return p.value;const g=p.value;(Yq(g)||Kq(g))&&qq(g,t,String(e));const b=dw[g[0]];return b(o,g,i.localize,u)}).join("")}function nG(e){const t=e.match(Qq);return t?t[1].replace(Jq,"'"):e}const vR="label";function mw(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function rG(e,t){const n=e.options;n&&t&&Object.assign(n,t)}function bR(e,t){e.labels=t}function yR(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:vR;const r=[];e.datasets=t.map(i=>{const a=e.datasets.find(s=>s[n]===i[n]);return!a||!i.data||r.includes(a)?{...i}:(r.push(a),Object.assign(a,i),a)})}function iG(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:vR;const n={labels:[],datasets:[]};return bR(n,e.labels),yR(n,e.datasets,t),n}function aG(e,t){const{height:n=150,width:r=300,redraw:i=!1,datasetIdKey:a,type:s,data:o,options:l,plugins:u=[],fallbackContent:c,updateMode:d,...f}=e,h=y.useRef(null),p=y.useRef(),g=()=>{h.current&&(p.current=new As(h.current,{type:s,data:iG(o,a),options:l&&{...l},plugins:u}),mw(t,p.current))},b=()=>{mw(t,null),p.current&&(p.current.destroy(),p.current=null)};return y.useEffect(()=>{!i&&p.current&&l&&rG(p.current,l)},[i,l]),y.useEffect(()=>{!i&&p.current&&bR(p.current.config.data,o.labels)},[i,o.labels]),y.useEffect(()=>{!i&&p.current&&o.datasets&&yR(p.current.config.data,o.datasets,a)},[i,o.datasets]),y.useEffect(()=>{p.current&&(i?(b(),setTimeout(g)):p.current.update(d))},[i,l,o.labels,o.datasets,d]),y.useEffect(()=>{p.current&&(b(),setTimeout(g))},[s]),y.useEffect(()=>(g(),()=>b()),[]),_.createElement("canvas",Object.assign({ref:h,role:"img",height:n,width:r},f),c)}const sG=y.forwardRef(aG);function $R(e,t){return As.register(t),y.forwardRef((n,r)=>_.createElement(sG,Object.assign({},n,{ref:r,type:e})))}const oG=$R("line",zo),lG=$R("polarArea",us);function xR(){return O.jsx(O.Fragment,{children:O.jsx("div",{className:"block bg-white-500 border border-gray-200 rounded-lg shadow",children:O.jsx("div",{children:"No data"})})})}As.register(Dl,_l,cs,Yn,G$);function uG(e){const t={responsive:!0,scales:{x:{grid:{display:!1}},y:{min:0,ticks:{stepSize:1,callback:function(i,a,s){return i+"wps"}},grid:{display:!1}}}},[n,r]=y.useState({labels:[],datasets:[]});return y.useEffect(()=>{(async()=>{const a=e.timeframe.end.toDate(),s=e.timeframe.start.toDate();s.setHours(s.getHours()-12);const o=12,{data:l}=await e.supabase.from("file").select("timestamp").gte("timestamp",s.toISOString()).lte("timestamp",a.toISOString());if(console.log(l),l.length===0)return;const u=new Date(s),d=(+new Date(a)-+u)/o;let f=Array(o).fill(""),h=Array(o).fill(0);for(let p=0;p<o;p++){const g=new Date(u.getTime()+p*d),b=new Date(u.getTime()+(p+1)*d);f[p]=tG(b,"MM/dd - HH:mm"),h[p]=l.filter(v=>{const m=new Date(v.timestamp);return m>=g&&m<b}).length}console.log("LABELS",f),console.log("POINTS",h),r({labels:f,datasets:[{label:"Dataset",data:h,borderColor:"rgb(53, 162, 235)",backgroundColor:"rgba(53, 162, 235, 0.5)"}]})})()},[e.timeframe]),O.jsxs("div",{children:[O.jsx("p",{className:"text-center",children:e.name}),n.datasets.length>0?O.jsx(oG,{data:n,options:t}):O.jsx(xR,{})]})}function cG(e){return O.jsx(O.Fragment,{children:O.jsx(zV,{"aria-label":"timeframe",value:e.timeframe,onChange:e.setTimeframe})})}function Wu(e,t){var n=e.length*t;if(e.length===0)throw new Error("quantile requires at least one data point.");if(t<0||t>1)throw new Error("quantiles must be between 0 and 1");return t===1?e[e.length-1]:t===0?e[0]:n%1!==0?e[Math.ceil(n)-1]:e.length%2===0?(e[n-1]+e[n])/2:e[n]}As.register(Dl,_l,cs,Yn,G$);function dG(e){const t={responsive:!0},[n,r]=y.useState({labels:[],datasets:[]});return y.useEffect(()=>{(async()=>{const a=e.timeframe.end.toDate(),s=e.timeframe.start.toDate();s.setHours(s.getHours()-12);const{data:o}=await e.supabase.from("file").select("contents").gte("timestamp",s.toISOString()).lte("timestamp",a.toISOString());if(console.log("RAWDATA",o),o.length===0)return;let l=o.map(h=>h.contents.length).sort((h,p)=>h-p);console.log("TOP LENGTHS",l);let u=Wu(l,.25),c=Wu(l,.5),d=Wu(l,.75),f=Wu(l,1);console.log("p25: ",u),console.log("p50: ",c),console.log("p75: ",d),console.log("p100: ",f),r({labels:["p25","p50","p75","p100"],datasets:[{data:[u,c,d,f]}]})})()},[e.timeframe]),console.log("length: aaa",n.datasets.length),O.jsxs("div",{className:"flex-grow flex-1",children:[O.jsx("p",{className:"text-center",children:e.name}),n.datasets.length>0?O.jsx(lG,{data:n,options:t}):O.jsx(xR,{})]})}function fG(e){const t=Fl(),[n,r]=y.useState([]);y.useEffect(()=>{e.session||t("/login")},[e.session]);const i=y.useCallback(async()=>{const{data:a,error:s}=await e.supabase.from("file").select();if(s){console.error(s);return}r(a.map(o=>o))},[e.supabase]);return y.useEffect(()=>{i()},[]),O.jsx(O.Fragment,{children:O.jsxs("div",{className:"flex h-screen",children:[O.jsx(R$,{currentPage:"Home"}),O.jsx("main",{className:"overflow-y-auto flex flex-col flex-1 mx-5",children:O.jsxs("div",{className:"flex flex-col w-full gap-7 flex-grow",children:[O.jsx("div",{className:"flex flex-row gap-7 flex-grow",children:O.jsx("div",{className:"ml-auto mt-2",children:O.jsx(cG,{timeframe:e.timeframe,setTimeframe:e.setTimeframe})})}),O.jsxs("div",{className:"flex flex-row gap-7 flex-grow",children:[O.jsxs("div",{className:"w-1/2 flex flex-col",children:[O.jsx("p",{className:"text-center",children:"Active hosts"}),O.jsx("div",{className:"flex-grow block bg-white-500 border border-gray-200 rounded-lg shadow",children:O.jsxs("ol",{children:[O.jsx("li",{children:"Host 1"}),O.jsx("li",{children:"Host 2"})]})})]}),O.jsx("div",{className:"w-1/2 ml-auto",children:O.jsx(uG,{name:"File writes per second",supabase:e.supabase,timeframe:e.timeframe})})]}),O.jsxs("div",{className:"flex flex-row gap-7 mb-5 flex-grow",children:[O.jsx("div",{className:"w-1/2 mr-auto",children:O.jsx(dG,{name:"File writes size percentiles",supabase:e.supabase,timeframe:e.timeframe})}),O.jsxs("div",{className:"w-1/2 flex flex-col",children:[O.jsx("p",{className:"text-center",children:"Most edited files"}),O.jsx("div",{className:"flex-grow block bg-white-500 border border-gray-200 rounded-lg shadow",children:O.jsxs("ol",{children:[O.jsx("li",{children:"File 1"}),O.jsx("li",{children:"File 2"})]})})]})]})]})})]})})}function hG(e={}){const{nonce:t,onScriptLoadSuccess:n,onScriptLoadError:r}=e,[i,a]=y.useState(!1),s=y.useRef(n);s.current=n;const o=y.useRef(r);return o.current=r,y.useEffect(()=>{const l=document.createElement("script");return l.src="https://accounts.google.com/gsi/client",l.async=!0,l.defer=!0,l.nonce=t,l.onload=()=>{var u;a(!0),(u=s.current)===null||u===void 0||u.call(s)},l.onerror=()=>{var u;a(!1),(u=o.current)===null||u===void 0||u.call(o)},document.body.appendChild(l),()=>{document.body.removeChild(l)}},[t]),i}const wR=y.createContext(null);function pG({clientId:e,nonce:t,onScriptLoadSuccess:n,onScriptLoadError:r,children:i}){const a=hG({nonce:t,onScriptLoadSuccess:n,onScriptLoadError:r}),s=y.useMemo(()=>({clientId:e,scriptLoadedSuccessfully:a}),[e,a]);return _.createElement(wR.Provider,{value:s},i)}function mG(){const e=y.useContext(wR);if(!e)throw new Error("Google OAuth components must be used within GoogleOAuthProvider");return e}function gG(e){var t;return(t=e==null?void 0:e.clientId)!==null&&t!==void 0?t:e==null?void 0:e.client_id}const vG={large:40,medium:32,small:20};function bG({onSuccess:e,onError:t,useOneTap:n,promptMomentNotification:r,type:i="standard",theme:a="outline",size:s="large",text:o,shape:l,logo_alignment:u,width:c,locale:d,click_listener:f,containerProps:h,...p}){const g=y.useRef(null),{clientId:b,scriptLoadedSuccessfully:v}=mG(),m=y.useRef(e);m.current=e;const $=y.useRef(t);$.current=t;const w=y.useRef(r);return w.current=r,y.useEffect(()=>{var D,S,k,x,T,P,E,F,R;if(v)return(k=(S=(D=window==null?void 0:window.google)===null||D===void 0?void 0:D.accounts)===null||S===void 0?void 0:S.id)===null||k===void 0||k.initialize({client_id:b,callback:M=>{var z;if(!(M!=null&&M.credential))return(z=$.current)===null||z===void 0?void 0:z.call($);const{credential:B,select_by:C}=M;m.current({credential:B,clientId:gG(M),select_by:C})},...p}),(P=(T=(x=window==null?void 0:window.google)===null||x===void 0?void 0:x.accounts)===null||T===void 0?void 0:T.id)===null||P===void 0||P.renderButton(g.current,{type:i,theme:a,size:s,text:o,shape:l,logo_alignment:u,width:c,locale:d,click_listener:f}),n&&((R=(F=(E=window==null?void 0:window.google)===null||E===void 0?void 0:E.accounts)===null||F===void 0?void 0:F.id)===null||R===void 0||R.prompt(w.current)),()=>{var M,z,B;n&&((B=(z=(M=window==null?void 0:window.google)===null||M===void 0?void 0:M.accounts)===null||z===void 0?void 0:z.id)===null||B===void 0||B.cancel())}},[b,v,n,i,a,s,o,l,u,c,d]),_.createElement("div",{...h,ref:g,style:{height:vG[s],...h==null?void 0:h.style}})}function yG(e){const t=Fl();return y.useEffect(()=>{e.supabase.auth.getSession().then(({data:{session:r}})=>{e.setSession(r),console.log("LOGIN SESSION",r)});const{data:{subscription:n}}=e.supabase.auth.onAuthStateChange((r,i)=>{e.setSession(i),console.log("SESSION CHANGE",i)});return()=>n.unsubscribe()},[e.supabase]),y.useEffect(()=>{e.session&&t("/")},[e.session]),O.jsx(O.Fragment,{children:O.jsx("div",{className:"flex flex-col items-center h-screen w-screen",children:O.jsxs("div",{className:"flex flex-row items-center gap-x-8 m-auto",children:[O.jsx("div",{children:O.jsx("h1",{className:"text-4xl text-bold font-sans antialiased text-blue-700 tracking-wide",children:"fs-tracer"})}),O.jsx("div",{className:"block max-w-sm p-6 bg-white border border-gray-200 rounded-lg shadow",children:O.jsxs("div",{className:"mx-7 my-5",children:[O.jsx("h5",{className:"mb-2 text-2xl font-bold font-sans antialiased text-gray-900",children:"Hello!"}),O.jsxs("div",{className:"flex flex-row items-center gap-2",children:[O.jsx("span",{className:"font-normal text-gray-700",children:"Continue with"}),O.jsx("span",{children:O.jsx(pG,{clientId:"952965459060-nrnrsdoq22mf646vfa72hk410pvdda5q.apps.googleusercontent.com",children:O.jsx(bG,{onSuccess:async n=>{await e.supabase.auth.signInWithIdToken({provider:"google",token:n.credential})},onError:()=>{console.log("Login Failed")},width:7777,size:"large",type:"icon"})})})]})]})})]})})})}function $G(e){const t=Fl();return y.useEffect(()=>{(async()=>{await e.supabase.auth.signOut()})(),t("/login")},[e.session]),O.jsx(O.Fragment,{})}function xG(e){const t=Fl(),n=20,[r,i]=y.useState([]),[a,s]=y.useState(0);y.useEffect(()=>{e.session||t("/login")},[e.session]);const o=y.useCallback(async()=>{console.log("FETCHIN FILES, pagination: ",a);const{data:l,error:u}=await e.supabase.from("file").select().range(a,a+n-1);if(u){console.error(u);return}console.log("RAW FILES: ",l),i(l.map(c=>c)),console.log("FETCHED FILES")},[e.supabase,a]);return y.useEffect(()=>{console.log("Aaa"),o()},[a]),O.jsx(O.Fragment,{children:O.jsxs("div",{className:"flex h-screen",children:[O.jsx(R$,{currentPage:"Recent"}),O.jsxs("main",{className:"flex-1 overflow-y-auto my-4",children:[O.jsx("div",{className:"flex flex-col items-center",children:O.jsx("div",{className:"flex flex-col gap-2",children:r.map(l=>O.jsx("div",{role:"button",onClick:()=>console.log("clocked file"),children:O.jsxs("p",{className:"underline",children:["file: ",l.absolute_path]})},l.id))})}),O.jsxs("div",{className:"flex flex-row gap-2 mt-4",children:[O.jsx("button",{className:"ml-7 bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded",onClick:()=>s(a+-n),children:"prev"}),O.jsx("button",{className:"mr-7 ml-auto bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded",onClick:()=>s(a+n),children:"next"})]})]})]})})}function DR(e,t){window.dispatchEvent(new StorageEvent("storage",{key:e,newValue:t}))}const gw=(e,t)=>{const n=JSON.stringify(t);window.localStorage.setItem(e,n),DR(e,n)},wG=e=>{window.localStorage.removeItem(e),DR(e,null)},vw=e=>window.localStorage.getItem(e),DG=e=>(window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)),_G=()=>{throw Error("useLocalStorage is a client-only hook")};function EG(e,t){const n=()=>vw(e),r=y.useSyncExternalStore(DG,n,_G),i=y.useCallback(a=>{try{const s=typeof a=="function"?a(JSON.parse(r)):a;s==null?wG(e):gw(e,s)}catch(s){console.warn(s)}},[e,r]);return y.useEffect(()=>{vw(e)===null&&typeof t<"u"&&gw(e,t)},[e,t]),[r?JSON.parse(r):t,i]}function SG(e){const t=Fl(),n=20,[r,i]=y.useState([]),[a,s]=y.useState(""),[o,l]=y.useState(0);y.useEffect(()=>{e.session||t("/login")},[e.session]);const u=y.useCallback(async()=>{console.log("FETCHIN FILES, pagination: ",o," search: ",a);const{data:c,error:d}=await e.supabase.from("file").select().ilike("absolute_path",`%${a}%`).range(o,o+n-1);if(d){console.error(d);return}console.log("RAW FILES: ",c),i(c.map(f=>f)),console.log("FETCHED FILES")},[e.supabase,o,a]);return y.useEffect(()=>{u()},[o]),O.jsx(O.Fragment,{children:O.jsxs("div",{className:"flex h-screen",children:[O.jsx(R$,{currentPage:"Recent"}),O.jsxs("main",{className:"flex-1 overflow-y-auto my-4",children:[O.jsxs("div",{className:"flex flex-col items-center",children:[O.jsx("label",{children:"filename"}),O.jsx("input",{placeholder:"filename",onChange:c=>s(c.target.value),className:"block bg-white w-1/2 rounded"})]}),O.jsx("div",{className:"my-4 flex flex-col items-center",children:O.jsx("button",{className:"w-20 bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded",onClick:()=>u(),children:"search"})}),O.jsx("div",{className:"flex flex-col items-center",children:O.jsx("div",{className:"flex flex-col gap-2",children:r.map(c=>O.jsx("div",{role:"button",onClick:()=>console.log("clocked file"),children:O.jsxs("p",{className:"underline",children:["file: ",c.absolute_path]})},c.id))})}),O.jsxs("div",{className:"flex flex-row gap-2 mt-4",children:[O.jsx("button",{className:"ml-7 bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded",onClick:()=>l(o+-n),children:"prev"}),O.jsx("button",{className:"mr-7 ml-auto bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded",onClick:()=>l(o+n),children:"next"})]})]})]})})}const ao=KB("https://slpoocycjgqsuoedhkbn.supabase.co","eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InNscG9vY3ljamdxc3VvZWRoa2JuIiwicm9sZSI6ImFub24iLCJpYXQiOjE3MTUyMDU0MjUsImV4cCI6MjAzMDc4MTQyNX0.xZYRTRN65rlms1Hb96IBAQvw3EGtMzUxlGPP5TVey34");function CG(){const[e,t]=EG("session",null),n=Il(Pf()),[r,i]=y.useState({start:n.subtract({days:7}),end:n});return O.jsx(O.Fragment,{children:O.jsx(oC,{theme:KV,children:O.jsx(HA,{basename:"/fs-tracer-frontend",children:O.jsxs(VA,{children:[O.jsx(Pi,{index:!0,element:O.jsx(fG,{supabase:ao,session:e,timeframe:r,setTimeframe:i})}),O.jsx(Pi,{path:"/recent",element:O.jsx(xG,{supabase:ao,session:e,timeframe:r,setTimeframe:i})}),O.jsx(Pi,{path:"/search",element:O.jsx(SG,{supabase:ao,session:e,timeframe:r,setTimeframe:i})}),O.jsx(Pi,{path:"/login",element:O.jsx(yG,{supabase:ao,session:e,setSession:t,timeframe:r,setTimeframe:i})}),O.jsx(Pi,{path:"/logout",element:O.jsx($G,{supabase:ao,session:e,setSession:t,timeframe:r,setTimeframe:i})}),O.jsx(Pi,{path:"*",element:O.jsx("p",{children:"notfound"})})]})})})})}Dp.createRoot(document.getElementById("root")).render(O.jsx(_.StrictMode,{children:O.jsx(CG,{})}));export{bw as g};
+`):e}function $Y(e,t){const{element:n,datasetIndex:r,index:i}=t,a=e.getDatasetMeta(r).controller,{label:s,value:o}=a.getLabelAndValue(i);return{chart:e,label:s,parsed:a.getParsed(i),raw:e.data.datasets[r].data[i],formattedValue:o,dataset:a.getDataset(),dataIndex:i,datasetIndex:r,element:n}}function q6(e,t){const n=e.chart.ctx,{body:r,footer:i,title:a}=e,{boxWidth:s,boxHeight:o}=t,l=it(t.bodyFont),u=it(t.titleFont),c=it(t.footerFont),d=a.length,f=i.length,h=r.length,p=Pt(t.padding);let g=p.height,b=0,v=r.reduce((w,D)=>w+D.before.length+D.lines.length+D.after.length,0);if(v+=e.beforeBody.length+e.afterBody.length,d&&(g+=d*u.lineHeight+(d-1)*t.titleSpacing+t.titleMarginBottom),v){const w=t.displayColors?Math.max(o,l.lineHeight):l.lineHeight;g+=h*w+(v-h)*l.lineHeight+(v-1)*t.bodySpacing}f&&(g+=t.footerMarginTop+f*c.lineHeight+(f-1)*t.footerSpacing);let m=0;const $=function(w){b=Math.max(b,n.measureText(w).width+m)};return n.save(),n.font=u.string,me(e.title,$),n.font=l.string,me(e.beforeBody.concat(e.afterBody),$),m=t.displayColors?s+2+t.boxPadding:0,me(r,w=>{me(w.before,$),me(w.lines,$),me(w.after,$)}),m=0,n.font=c.string,me(e.footer,$),n.restore(),b+=p.width,{width:b,height:g}}function xY(e,t){const{y:n,height:r}=t;return n<r/2?"top":n>e.height-r/2?"bottom":"center"}function wY(e,t,n,r){const{x:i,width:a}=r,s=n.caretSize+n.caretPadding;if(e==="left"&&i+a+s>t.width||e==="right"&&i-a-s<0)return!0}function DY(e,t,n,r){const{x:i,width:a}=n,{width:s,chartArea:{left:o,right:l}}=e;let u="center";return r==="center"?u=i<=(o+l)/2?"left":"right":i<=a/2?u="left":i>=s-a/2&&(u="right"),wY(u,e,t,n)&&(u="center"),u}function G6(e,t,n){const r=n.yAlign||t.yAlign||xY(e,n);return{xAlign:n.xAlign||t.xAlign||DY(e,t,n,r),yAlign:r}}function _Y(e,t){let{x:n,width:r}=e;return t==="right"?n-=r:t==="center"&&(n-=r/2),n}function EY(e,t,n){let{y:r,height:i}=e;return t==="top"?r+=n:t==="bottom"?r-=i+n:r-=i/2,r}function Z6(e,t,n,r){const{caretSize:i,caretPadding:a,cornerRadius:s}=e,{xAlign:o,yAlign:l}=n,u=i+a,{topLeft:c,topRight:d,bottomLeft:f,bottomRight:h}=Gi(s);let p=_Y(t,o);const g=EY(t,l,u);return l==="center"?o==="left"?p+=u:o==="right"&&(p-=u):o==="left"?p-=Math.max(c,f)+i:o==="right"&&(p+=Math.max(d,h)+i),{x:dt(p,0,r.width-t.width),y:dt(g,0,r.height-t.height)}}function zu(e,t,n){const r=Pt(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-r.right:e.x+r.left}function X6(e){return Wn([],sr(e))}function SY(e,t,n){return bi(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function Q6(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const dR={beforeTitle:ir,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,r=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(r>0&&t.dataIndex<r)return n[t.dataIndex]}return""},afterTitle:ir,beforeBody:ir,beforeLabel:ir,label(e){if(this&&this.options&&this.options.mode==="dataset")return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const n=e.formattedValue;return ce(n)||(t+=n),t},labelColor(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:n.borderColor,backgroundColor:n.backgroundColor,borderWidth:n.borderWidth,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:n.pointStyle,rotation:n.rotation}},afterLabel:ir,afterBody:ir,beforeFooter:ir,footer:ir,afterFooter:ir};function jt(e,t,n,r){const i=e[t].call(n,r);return typeof i>"u"?dR[t].call(n,r):i}class t3 extends Cr{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const n=this.chart,r=this.options.setContext(this.getContext()),i=r.enabled&&n.options.animation&&r.animations,a=new UT(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(a)),a}getContext(){return this.$context||(this.$context=SY(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:r}=n,i=jt(r,"beforeTitle",this,t),a=jt(r,"title",this,t),s=jt(r,"afterTitle",this,t);let o=[];return o=Wn(o,sr(i)),o=Wn(o,sr(a)),o=Wn(o,sr(s)),o}getBeforeBody(t,n){return X6(jt(n.callbacks,"beforeBody",this,t))}getBody(t,n){const{callbacks:r}=n,i=[];return me(t,a=>{const s={before:[],lines:[],after:[]},o=Q6(r,a);Wn(s.before,sr(jt(o,"beforeLabel",this,a))),Wn(s.lines,jt(o,"label",this,a)),Wn(s.after,sr(jt(o,"afterLabel",this,a))),i.push(s)}),i}getAfterBody(t,n){return X6(jt(n.callbacks,"afterBody",this,t))}getFooter(t,n){const{callbacks:r}=n,i=jt(r,"beforeFooter",this,t),a=jt(r,"footer",this,t),s=jt(r,"afterFooter",this,t);let o=[];return o=Wn(o,sr(i)),o=Wn(o,sr(a)),o=Wn(o,sr(s)),o}_createItems(t){const n=this._active,r=this.chart.data,i=[],a=[],s=[];let o=[],l,u;for(l=0,u=n.length;l<u;++l)o.push($Y(this.chart,n[l]));return t.filter&&(o=o.filter((c,d,f)=>t.filter(c,d,f,r))),t.itemSort&&(o=o.sort((c,d)=>t.itemSort(c,d,r))),me(o,c=>{const d=Q6(t.callbacks,c);i.push(jt(d,"labelColor",this,c)),a.push(jt(d,"labelPointStyle",this,c)),s.push(jt(d,"labelTextColor",this,c))}),this.labelColors=i,this.labelPointStyles=a,this.labelTextColors=s,this.dataPoints=o,o}update(t,n){const r=this.options.setContext(this.getContext()),i=this._active;let a,s=[];if(!i.length)this.opacity!==0&&(a={opacity:0});else{const o=xo[r.position].call(this,i,this._eventPosition);s=this._createItems(r),this.title=this.getTitle(s,r),this.beforeBody=this.getBeforeBody(s,r),this.body=this.getBody(s,r),this.afterBody=this.getAfterBody(s,r),this.footer=this.getFooter(s,r);const l=this._size=q6(this,r),u=Object.assign({},o,l),c=G6(this.chart,r,u),d=Z6(r,u,c,this.chart);this.xAlign=c.xAlign,this.yAlign=c.yAlign,a={opacity:1,x:d.x,y:d.y,width:l.width,height:l.height,caretX:o.x,caretY:o.y}}this._tooltipItems=s,this.$context=void 0,a&&this._resolveAnimations().update(this,a),t&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,r,i){const a=this.getCaretPosition(t,r,i);n.lineTo(a.x1,a.y1),n.lineTo(a.x2,a.y2),n.lineTo(a.x3,a.y3)}getCaretPosition(t,n,r){const{xAlign:i,yAlign:a}=this,{caretSize:s,cornerRadius:o}=r,{topLeft:l,topRight:u,bottomLeft:c,bottomRight:d}=Gi(o),{x:f,y:h}=t,{width:p,height:g}=n;let b,v,m,$,w,D;return a==="center"?(w=h+g/2,i==="left"?(b=f,v=b-s,$=w+s,D=w-s):(b=f+p,v=b+s,$=w-s,D=w+s),m=b):(i==="left"?v=f+Math.max(l,c)+s:i==="right"?v=f+p-Math.max(u,d)-s:v=this.caretX,a==="top"?($=h,w=$-s,b=v-s,m=v+s):($=h+g,w=$+s,b=v+s,m=v-s),D=$),{x1:b,x2:v,x3:m,y1:$,y2:w,y3:D}}drawTitle(t,n,r){const i=this.title,a=i.length;let s,o,l;if(a){const u=ls(r.rtl,this.x,this.width);for(t.x=zu(this,r.titleAlign,r),n.textAlign=u.textAlign(r.titleAlign),n.textBaseline="middle",s=it(r.titleFont),o=r.titleSpacing,n.fillStyle=r.titleColor,n.font=s.string,l=0;l<a;++l)n.fillText(i[l],u.x(t.x),t.y+s.lineHeight/2),t.y+=s.lineHeight+o,l+1===a&&(t.y+=r.titleMarginBottom-o)}}_drawColorBox(t,n,r,i,a){const s=this.labelColors[r],o=this.labelPointStyles[r],{boxHeight:l,boxWidth:u}=a,c=it(a.bodyFont),d=zu(this,"left",a),f=i.x(d),h=l<c.lineHeight?(c.lineHeight-l)/2:0,p=n.y+h;if(a.usePointStyle){const g={radius:Math.min(u,l)/2,pointStyle:o.pointStyle,rotation:o.rotation,borderWidth:1},b=i.leftForLtr(f,u)+u/2,v=p+l/2;t.strokeStyle=a.multiKeyBackground,t.fillStyle=a.multiKeyBackground,qy(t,g,b,v),t.strokeStyle=s.borderColor,t.fillStyle=s.backgroundColor,qy(t,g,b,v)}else{t.lineWidth=ae(s.borderWidth)?Math.max(...Object.values(s.borderWidth)):s.borderWidth||1,t.strokeStyle=s.borderColor,t.setLineDash(s.borderDash||[]),t.lineDashOffset=s.borderDashOffset||0;const g=i.leftForLtr(f,u),b=i.leftForLtr(i.xPlus(f,1),u-2),v=Gi(s.borderRadius);Object.values(v).some(m=>m!==0)?(t.beginPath(),t.fillStyle=a.multiKeyBackground,xl(t,{x:g,y:p,w:u,h:l,radius:v}),t.fill(),t.stroke(),t.fillStyle=s.backgroundColor,t.beginPath(),xl(t,{x:b,y:p+1,w:u-2,h:l-2,radius:v}),t.fill()):(t.fillStyle=a.multiKeyBackground,t.fillRect(g,p,u,l),t.strokeRect(g,p,u,l),t.fillStyle=s.backgroundColor,t.fillRect(b,p+1,u-2,l-2))}t.fillStyle=this.labelTextColors[r]}drawBody(t,n,r){const{body:i}=this,{bodySpacing:a,bodyAlign:s,displayColors:o,boxHeight:l,boxWidth:u,boxPadding:c}=r,d=it(r.bodyFont);let f=d.lineHeight,h=0;const p=ls(r.rtl,this.x,this.width),g=function(x){n.fillText(x,p.x(t.x+h),t.y+f/2),t.y+=f+a},b=p.textAlign(s);let v,m,$,w,D,S,k;for(n.textAlign=s,n.textBaseline="middle",n.font=d.string,t.x=zu(this,b,r),n.fillStyle=r.bodyColor,me(this.beforeBody,g),h=o&&b!=="right"?s==="center"?u/2+c:u+2+c:0,w=0,S=i.length;w<S;++w){for(v=i[w],m=this.labelTextColors[w],n.fillStyle=m,me(v.before,g),$=v.lines,o&&$.length&&(this._drawColorBox(n,t,w,p,r),f=Math.max(d.lineHeight,l)),D=0,k=$.length;D<k;++D)g($[D]),f=d.lineHeight;me(v.after,g)}h=0,f=d.lineHeight,me(this.afterBody,g),t.y-=a}drawFooter(t,n,r){const i=this.footer,a=i.length;let s,o;if(a){const l=ls(r.rtl,this.x,this.width);for(t.x=zu(this,r.footerAlign,r),t.y+=r.footerMarginTop,n.textAlign=l.textAlign(r.footerAlign),n.textBaseline="middle",s=it(r.footerFont),n.fillStyle=r.footerColor,n.font=s.string,o=0;o<a;++o)n.fillText(i[o],l.x(t.x),t.y+s.lineHeight/2),t.y+=s.lineHeight+r.footerSpacing}}drawBackground(t,n,r,i){const{xAlign:a,yAlign:s}=this,{x:o,y:l}=t,{width:u,height:c}=r,{topLeft:d,topRight:f,bottomLeft:h,bottomRight:p}=Gi(i.cornerRadius);n.fillStyle=i.backgroundColor,n.strokeStyle=i.borderColor,n.lineWidth=i.borderWidth,n.beginPath(),n.moveTo(o+d,l),s==="top"&&this.drawCaret(t,n,r,i),n.lineTo(o+u-f,l),n.quadraticCurveTo(o+u,l,o+u,l+f),s==="center"&&a==="right"&&this.drawCaret(t,n,r,i),n.lineTo(o+u,l+c-p),n.quadraticCurveTo(o+u,l+c,o+u-p,l+c),s==="bottom"&&this.drawCaret(t,n,r,i),n.lineTo(o+h,l+c),n.quadraticCurveTo(o,l+c,o,l+c-h),s==="center"&&a==="left"&&this.drawCaret(t,n,r,i),n.lineTo(o,l+d),n.quadraticCurveTo(o,l,o+d,l),n.closePath(),n.fill(),i.borderWidth>0&&n.stroke()}_updateAnimationTarget(t){const n=this.chart,r=this.$animations,i=r&&r.x,a=r&&r.y;if(i||a){const s=xo[t.position].call(this,this._active,this._eventPosition);if(!s)return;const o=this._size=q6(this,t),l=Object.assign({},s,this._size),u=G6(n,t,l),c=Z6(t,l,u,n);(i._to!==c.x||a._to!==c.y)&&(this.xAlign=u.xAlign,this.yAlign=u.yAlign,this.width=o.width,this.height=o.height,this.caretX=s.x,this.caretY=s.y,this._resolveAnimations().update(this,c))}}_willRender(){return!!this.opacity}draw(t){const n=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(n);const i={width:this.width,height:this.height},a={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const s=Pt(n.padding),o=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&o&&(t.save(),t.globalAlpha=r,this.drawBackground(a,t,i,n),NT(t,n.textDirection),a.y+=s.top,this.drawTitle(a,t,n),this.drawBody(a,t,n),this.drawFooter(a,t,n),jT(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){const r=this._active,i=t.map(({datasetIndex:o,index:l})=>{const u=this.chart.getDatasetMeta(o);if(!u)throw new Error("Cannot find a dataset at index "+o);return{datasetIndex:o,element:u.data[l],index:l}}),a=!Wd(r,i),s=this._positionChanged(i,n);(a||s)&&(this._active=i,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,n,r=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,a=this._active||[],s=this._getActiveElements(t,a,n,r),o=this._positionChanged(s,t),l=n||!Wd(s,a)||o;return l&&(this._active=s,(i.enabled||i.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),l}_getActiveElements(t,n,r,i){const a=this.options;if(t.type==="mouseout")return[];if(!i)return n.filter(o=>this.chart.data.datasets[o.datasetIndex]&&this.chart.getDatasetMeta(o.datasetIndex).controller.getParsed(o.index)!==void 0);const s=this.chart.getElementsAtEventForMode(t,a.mode,a,r);return a.reverse&&s.reverse(),s}_positionChanged(t,n){const{caretX:r,caretY:i,options:a}=this,s=xo[a.position].call(this,t,n);return s!==!1&&(r!==s.x||i!==s.y)}}j(t3,"positioners",xo);var G$={id:"tooltip",_element:t3,positioners:xo,afterInit(e,t,n){n&&(e.tooltip=new t3({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:dR},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},CY=Object.freeze({__proto__:null,Colors:jK,Decimation:UK,Filler:cY,Legend:gY,SubTitle:yY,Title:bY,Tooltip:G$});const kY=(e,t,n,r)=>(typeof t=="string"?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function PY(e,t,n,r){const i=e.indexOf(t);if(i===-1)return kY(e,t,n,r);const a=e.lastIndexOf(t);return i!==a?n:i}const TY=(e,t)=>e===null?null:dt(Math.round(e),0,t);function J6(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}class Dl extends ya{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const n=this._addedLabels;if(n.length){const r=this.getLabels();for(const{index:i,label:a}of n)r[i]===a&&r.splice(i,1);this._addedLabels=[]}super.init(t)}parse(t,n){if(ce(t))return null;const r=this.getLabels();return n=isFinite(n)&&r[n]===t?n:PY(r,t,J(n,t),this._addedLabels),TY(n,r.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let{min:r,max:i}=this.getMinMax(!0);this.options.bounds==="ticks"&&(t||(r=0),n||(i=this.getLabels().length-1)),this.min=r,this.max=i}buildTicks(){const t=this.min,n=this.max,r=this.options.offset,i=[];let a=this.getLabels();a=t===0&&n===a.length-1?a:a.slice(t,n+1),this._valueRange=Math.max(a.length-(r?0:1),1),this._startValue=this.min-(r?.5:0);for(let s=t;s<=n;s++)i.push({value:s});return i}getLabelForValue(t){return J6.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return typeof t!="number"&&(t=this.parse(t)),t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}j(Dl,"id","category"),j(Dl,"defaults",{ticks:{callback:J6}});function RY(e,t){const n=[],{bounds:i,step:a,min:s,max:o,precision:l,count:u,maxTicks:c,maxDigits:d,includeBounds:f}=e,h=a||1,p=c-1,{min:g,max:b}=t,v=!ce(s),m=!ce(o),$=!ce(u),w=(b-g)/(d+1);let D=Y5((b-g)/p/h)*h,S,k,x,T;if(D<1e-14&&!v&&!m)return[{value:g},{value:b}];T=Math.ceil(b/D)-Math.floor(g/D),T>p&&(D=Y5(T*D/p/h)*h),ce(l)||(S=Math.pow(10,l),D=Math.ceil(D*S)/S),i==="ticks"?(k=Math.floor(g/D)*D,x=Math.ceil(b/D)*D):(k=g,x=b),v&&m&&a&&SW((o-s)/a,D/1e3)?(T=Math.round(Math.min((o-s)/D,c)),D=(o-s)/T,k=s,x=o):$?(k=v?s:k,x=m?o:x,T=u-1,D=(x-k)/T):(T=(x-k)/D,Lo(T,Math.round(T),D/1e3)?T=Math.round(T):T=Math.ceil(T));const P=Math.max(q5(D),q5(k));S=Math.pow(10,ce(l)?P:l),k=Math.round(k*S)/S,x=Math.round(x*S)/S;let E=0;for(v&&(f&&k!==s?(n.push({value:s}),k<s&&E++,Lo(Math.round((k+E*D)*S)/S,s,ew(s,w,e))&&E++):k<s&&E++);E<T;++E){const F=Math.round((k+E*D)*S)/S;if(m&&F>o)break;n.push({value:F})}return m&&f&&x!==o?n.length&&Lo(n[n.length-1].value,o,ew(o,w,e))?n[n.length-1].value=o:n.push({value:o}):(!m||x===o)&&n.push({value:x}),n}function ew(e,t,{horizontal:n,minRotation:r}){const i=An(r),a=(n?Math.sin(i):Math.cos(i))||.001,s=.75*t*(""+e).length;return Math.min(t/a,s)}class Zd extends ya{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,n){return ce(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:n,maxDefined:r}=this.getUserBounds();let{min:i,max:a}=this;const s=l=>i=n?i:l,o=l=>a=r?a:l;if(t){const l=Zn(i),u=Zn(a);l<0&&u<0?o(0):l>0&&u>0&&s(0)}if(i===a){let l=a===0?1:Math.abs(a*.05);o(a+l),t||s(i-l)}this.min=i,this.max=a}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:n,stepSize:r}=t,i;return r?(i=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,i>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${i} ticks. Limiting to 1000.`),i=1e3)):(i=this.computeTickLimit(),n=n||11),n&&(i=Math.min(n,i)),i}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,n=t.ticks;let r=this.getTickLimit();r=Math.max(2,r);const i={maxTicks:r,bounds:t.bounds,min:t.min,max:t.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},a=this._range||this,s=RY(i,a);return t.bounds==="ticks"&&wT(s,this,"value"),t.reverse?(s.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),s}configure(){const t=this.ticks;let n=this.min,r=this.max;if(super.configure(),this.options.offset&&t.length){const i=(r-n)/Math.max(t.length-1,1)/2;n-=i,r+=i}this._startValue=n,this._endValue=r,this._valueRange=r-n}getLabelForValue(t){return Ul(t,this.chart.options.locale,this.options.ticks.format)}}class _l extends Zd{determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=Ve(t)?t:0,this.max=Ve(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,r=An(this.options.ticks.minRotation),i=(t?Math.sin(r):Math.cos(r))||.001,a=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,a.lineHeight/i))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}j(_l,"id","linear"),j(_l,"defaults",{ticks:{callback:Vf.formatters.numeric}});const El=e=>Math.floor(Yr(e)),Si=(e,t)=>Math.pow(10,El(e)+t);function tw(e){return e/Math.pow(10,El(e))===1}function nw(e,t,n){const r=Math.pow(10,n),i=Math.floor(e/r);return Math.ceil(t/r)-i}function MY(e,t){const n=t-e;let r=El(n);for(;nw(e,t,r)>10;)r++;for(;nw(e,t,r)<10;)r--;return Math.min(r,El(e))}function FY(e,{min:t,max:n}){t=en(e.min,t);const r=[],i=El(t);let a=MY(t,n),s=a<0?Math.pow(10,Math.abs(a)):1;const o=Math.pow(10,a),l=i>a?Math.pow(10,i):0,u=Math.round((t-l)*s)/s,c=Math.floor((t-l)/o/10)*o*10;let d=Math.floor((u-c)/Math.pow(10,a)),f=en(e.min,Math.round((l+c+d*Math.pow(10,a))*s)/s);for(;f<n;)r.push({value:f,major:tw(f),significand:d}),d>=10?d=d<15?15:20:d++,d>=20&&(a++,d=2,s=a>=0?1:s),f=Math.round((l+c+d*Math.pow(10,a))*s)/s;const h=en(e.max,f);return r.push({value:h,major:tw(h),significand:d}),r}class n3 extends ya{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,n){const r=Zd.prototype.parse.apply(this,[t,n]);if(r===0){this._zero=!0;return}return Ve(r)&&r>0?r:null}determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=Ve(t)?Math.max(0,t):null,this.max=Ve(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!Ve(this._userMin)&&(this.min=t===Si(this.min,0)?Si(this.min,-1):Si(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let r=this.min,i=this.max;const a=o=>r=t?r:o,s=o=>i=n?i:o;r===i&&(r<=0?(a(1),s(10)):(a(Si(r,-1)),s(Si(i,1)))),r<=0&&a(Si(i,-1)),i<=0&&s(Si(r,1)),this.min=r,this.max=i}buildTicks(){const t=this.options,n={min:this._userMin,max:this._userMax},r=FY(n,this);return t.bounds==="ticks"&&wT(r,this,"value"),t.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}getLabelForValue(t){return t===void 0?"0":Ul(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=Yr(t),this._valueRange=Yr(this.max)-Yr(t)}getPixelForValue(t){return(t===void 0||t===0)&&(t=this.min),t===null||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(Yr(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const n=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+n*this._valueRange)}}j(n3,"id","logarithmic"),j(n3,"defaults",{ticks:{callback:Vf.formatters.logarithmic,major:{enabled:!0}}});function r3(e){const t=e.ticks;if(t.display&&e.display){const n=Pt(t.backdropPadding);return J(t.font&&t.font.size,We.font.size)+n.height}return 0}function AY(e,t,n){return n=Be(n)?n:[n],{w:WW(e,t.string,n),h:n.length*t.lineHeight}}function rw(e,t,n,r,i){return e===r||e===i?{start:t-n/2,end:t+n/2}:e<r||e>i?{start:t-n,end:t}:{start:t,end:t+n}}function OY(e){const t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},n=Object.assign({},t),r=[],i=[],a=e._pointLabels.length,s=e.options.pointLabels,o=s.centerPointLabels?Me/a:0;for(let l=0;l<a;l++){const u=s.setContext(e.getPointLabelContext(l));i[l]=u.padding;const c=e.getPointPosition(l,e.drawingArea+i[l],o),d=it(u.font),f=AY(e.ctx,d,e._pointLabels[l]);r[l]=f;const h=nn(e.getIndexAngle(l)+o),p=Math.round(B$(h)),g=rw(p,c.x,f.w,0,180),b=rw(p,c.y,f.h,90,270);BY(n,t,h,g,b)}e.setCenterPoint(t.l-n.l,n.r-t.r,t.t-n.t,n.b-t.b),e._pointLabelItems=NY(e,r,i)}function BY(e,t,n,r,i){const a=Math.abs(Math.sin(n)),s=Math.abs(Math.cos(n));let o=0,l=0;r.start<t.l?(o=(t.l-r.start)/a,e.l=Math.min(e.l,t.l-o)):r.end>t.r&&(o=(r.end-t.r)/a,e.r=Math.max(e.r,t.r+o)),i.start<t.t?(l=(t.t-i.start)/s,e.t=Math.min(e.t,t.t-l)):i.end>t.b&&(l=(i.end-t.b)/s,e.b=Math.max(e.b,t.b+l))}function IY(e,t,n){const r=e.drawingArea,{extra:i,additionalAngle:a,padding:s,size:o}=n,l=e.getPointPosition(t,r+i+s,a),u=Math.round(B$(nn(l.angle+qe))),c=VY(l.y,o.h,u),d=jY(u),f=zY(l.x,o.w,d);return{visible:!0,x:l.x,y:c,textAlign:d,left:f,top:c,right:f+o.w,bottom:c+o.h}}function LY(e,t){if(!t)return!0;const{left:n,top:r,right:i,bottom:a}=e;return!(vr({x:n,y:r},t)||vr({x:n,y:a},t)||vr({x:i,y:r},t)||vr({x:i,y:a},t))}function NY(e,t,n){const r=[],i=e._pointLabels.length,a=e.options,{centerPointLabels:s,display:o}=a.pointLabels,l={extra:r3(a)/2,additionalAngle:s?Me/i:0};let u;for(let c=0;c<i;c++){l.padding=n[c],l.size=t[c];const d=IY(e,c,l);r.push(d),o==="auto"&&(d.visible=LY(d,u),d.visible&&(u=d))}return r}function jY(e){return e===0||e===180?"center":e<180?"left":"right"}function zY(e,t,n){return n==="right"?e-=t:n==="center"&&(e-=t/2),e}function VY(e,t,n){return n===90||n===270?e-=t/2:(n>270||n<90)&&(e-=t),e}function WY(e,t,n){const{left:r,top:i,right:a,bottom:s}=n,{backdropColor:o}=t;if(!ce(o)){const l=Gi(t.borderRadius),u=Pt(t.backdropPadding);e.fillStyle=o;const c=r-u.left,d=i-u.top,f=a-r+u.width,h=s-i+u.height;Object.values(l).some(p=>p!==0)?(e.beginPath(),xl(e,{x:c,y:d,w:f,h,radius:l}),e.fill()):e.fillRect(c,d,f,h)}}function UY(e,t){const{ctx:n,options:{pointLabels:r}}=e;for(let i=t-1;i>=0;i--){const a=e._pointLabelItems[i];if(!a.visible)continue;const s=r.setContext(e.getPointLabelContext(i));WY(n,s,a);const o=it(s.font),{x:l,y:u,textAlign:c}=a;la(n,e._pointLabels[i],l,u+o.lineHeight/2,o,{color:s.color,textAlign:c,textBaseline:"middle"})}}function fR(e,t,n,r){const{ctx:i}=e;if(n)i.arc(e.xCenter,e.yCenter,t,0,Te);else{let a=e.getPointPosition(0,t);i.moveTo(a.x,a.y);for(let s=1;s<r;s++)a=e.getPointPosition(s,t),i.lineTo(a.x,a.y)}}function HY(e,t,n,r,i){const a=e.ctx,s=t.circular,{color:o,lineWidth:l}=t;!s&&!r||!o||!l||n<0||(a.save(),a.strokeStyle=o,a.lineWidth=l,a.setLineDash(i.dash),a.lineDashOffset=i.dashOffset,a.beginPath(),fR(e,n,s,r),a.closePath(),a.stroke(),a.restore())}function KY(e,t,n){return bi(e,{label:n,index:t,type:"pointLabel"})}class wo extends Zd{constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const t=this._padding=Pt(r3(this.options)/2),n=this.width=this.maxWidth-t.width,r=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+n/2+t.left),this.yCenter=Math.floor(this.top+r/2+t.top),this.drawingArea=Math.floor(Math.min(n,r)/2)}determineDataLimits(){const{min:t,max:n}=this.getMinMax(!1);this.min=Ve(t)&&!isNaN(t)?t:0,this.max=Ve(n)&&!isNaN(n)?n:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/r3(this.options))}generateTickLabels(t){Zd.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map((n,r)=>{const i=De(this.options.pointLabels.callback,[n,r],this);return i||i===0?i:""}).filter((n,r)=>this.chart.getDataVisibility(r))}fit(){const t=this.options;t.display&&t.pointLabels.display?OY(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,n,r,i){this.xCenter+=Math.floor((t-n)/2),this.yCenter+=Math.floor((r-i)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,n,r,i))}getIndexAngle(t){const n=Te/(this._pointLabels.length||1),r=this.options.startAngle||0;return nn(t*n+An(r))}getDistanceFromCenterForValue(t){if(ce(t))return NaN;const n=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*n:(t-this.min)*n}getValueForDistanceFromCenter(t){if(ce(t))return NaN;const n=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-n:this.min+n}getPointLabelContext(t){const n=this._pointLabels||[];if(t>=0&&t<n.length){const r=n[t];return KY(this.getContext(),t,r)}}getPointPosition(t,n,r=0){const i=this.getIndexAngle(t)-qe+r;return{x:Math.cos(i)*n+this.xCenter,y:Math.sin(i)*n+this.yCenter,angle:i}}getPointPositionForValue(t,n){return this.getPointPosition(t,this.getDistanceFromCenterForValue(n))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){const{left:n,top:r,right:i,bottom:a}=this._pointLabelItems[t];return{left:n,top:r,right:i,bottom:a}}drawBackground(){const{backgroundColor:t,grid:{circular:n}}=this.options;if(t){const r=this.ctx;r.save(),r.beginPath(),fR(this,this.getDistanceFromCenterForValue(this._endValue),n,this._pointLabels.length),r.closePath(),r.fillStyle=t,r.fill(),r.restore()}}drawGrid(){const t=this.ctx,n=this.options,{angleLines:r,grid:i,border:a}=n,s=this._pointLabels.length;let o,l,u;if(n.pointLabels.display&&UY(this,s),i.display&&this.ticks.forEach((c,d)=>{if(d!==0||d===0&&this.min<0){l=this.getDistanceFromCenterForValue(c.value);const f=this.getContext(d),h=i.setContext(f),p=a.setContext(f);HY(this,h,l,s,p)}}),r.display){for(t.save(),o=s-1;o>=0;o--){const c=r.setContext(this.getPointLabelContext(o)),{color:d,lineWidth:f}=c;!f||!d||(t.lineWidth=f,t.strokeStyle=d,t.setLineDash(c.borderDash),t.lineDashOffset=c.borderDashOffset,l=this.getDistanceFromCenterForValue(n.ticks.reverse?this.min:this.max),u=this.getPointPosition(o,l),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(u.x,u.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,n=this.options,r=n.ticks;if(!r.display)return;const i=this.getIndexAngle(0);let a,s;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(i),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((o,l)=>{if(l===0&&this.min>=0&&!n.reverse)return;const u=r.setContext(this.getContext(l)),c=it(u.font);if(a=this.getDistanceFromCenterForValue(this.ticks[l].value),u.showLabelBackdrop){t.font=c.string,s=t.measureText(o.label).width,t.fillStyle=u.backdropColor;const d=Pt(u.backdropPadding);t.fillRect(-s/2-d.left,-a-c.size/2-d.top,s+d.width,c.size+d.height)}la(t,o.label,0,-a,c,{color:u.color,strokeColor:u.textStrokeColor,strokeWidth:u.textStrokeWidth})}),t.restore()}drawTitle(){}}j(wo,"id","radialLinear"),j(wo,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Vf.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(t){return t},padding:5,centerPointLabels:!1}}),j(wo,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),j(wo,"descriptors",{angleLines:{_fallback:"grid"}});const Kf={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Ht=Object.keys(Kf);function iw(e,t){return e-t}function aw(e,t){if(ce(t))return null;const n=e._adapter,{parser:r,round:i,isoWeekday:a}=e._parseOpts;let s=t;return typeof r=="function"&&(s=r(s)),Ve(s)||(s=typeof r=="string"?n.parse(s,r):n.parse(s)),s===null?null:(i&&(s=i==="week"&&(ws(a)||a===!0)?n.startOf(s,"isoWeek",a):n.startOf(s,i)),+s)}function sw(e,t,n,r){const i=Ht.length;for(let a=Ht.indexOf(e);a<i-1;++a){const s=Kf[Ht[a]],o=s.steps?s.steps:Number.MAX_SAFE_INTEGER;if(s.common&&Math.ceil((n-t)/(o*s.size))<=r)return Ht[a]}return Ht[i-1]}function YY(e,t,n,r,i){for(let a=Ht.length-1;a>=Ht.indexOf(n);a--){const s=Ht[a];if(Kf[s].common&&e._adapter.diff(i,r,s)>=t-1)return s}return Ht[n?Ht.indexOf(n):0]}function qY(e){for(let t=Ht.indexOf(e)+1,n=Ht.length;t<n;++t)if(Kf[Ht[t]].common)return Ht[t]}function ow(e,t,n){if(!n)e[t]=!0;else if(n.length){const{lo:r,hi:i}=I$(n,t),a=n[r]>=t?n[r]:n[i];e[a]=!0}}function GY(e,t,n,r){const i=e._adapter,a=+i.startOf(t[0].value,r),s=t[t.length-1].value;let o,l;for(o=a;o<=s;o=+i.add(o,1,r))l=n[o],l>=0&&(t[l].major=!0);return t}function lw(e,t,n){const r=[],i={},a=t.length;let s,o;for(s=0;s<a;++s)o=t[s],i[o]=s,r.push({value:o,major:!1});return a===0||!n?r:GY(e,r,i,n)}class Sl extends ya{constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,n={}){const r=t.time||(t.time={}),i=this._adapter=new aH._date(t.adapters.date);i.init(n),Io(r.displayFormats,i.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},super.init(t),this._normalized=n.normalized}parse(t,n){return t===void 0?null:aw(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,n=this._adapter,r=t.time.unit||"day";let{min:i,max:a,minDefined:s,maxDefined:o}=this.getUserBounds();function l(u){!s&&!isNaN(u.min)&&(i=Math.min(i,u.min)),!o&&!isNaN(u.max)&&(a=Math.max(a,u.max))}(!s||!o)&&(l(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&l(this.getMinMax(!1))),i=Ve(i)&&!isNaN(i)?i:+n.startOf(Date.now(),r),a=Ve(a)&&!isNaN(a)?a:+n.endOf(Date.now(),r)+1,this.min=Math.min(i,a-1),this.max=Math.max(i+1,a)}_getLabelBounds(){const t=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;return t.length&&(n=t[0],r=t[t.length-1]),{min:n,max:r}}buildTicks(){const t=this.options,n=t.time,r=t.ticks,i=r.source==="labels"?this.getLabelTimestamps():this._generate();t.bounds==="ticks"&&i.length&&(this.min=this._userMin||i[0],this.max=this._userMax||i[i.length-1]);const a=this.min,s=this.max,o=TW(i,a,s);return this._unit=n.unit||(r.autoSkip?sw(n.minUnit,this.min,this.max,this._getLabelCapacity(a)):YY(this,o.length,n.minUnit,this.min,this.max)),this._majorUnit=!r.major.enabled||this._unit==="year"?void 0:qY(this._unit),this.initOffsets(i),t.reverse&&o.reverse(),lw(this,o,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let n=0,r=0,i,a;this.options.offset&&t.length&&(i=this.getDecimalForValue(t[0]),t.length===1?n=1-i:n=(this.getDecimalForValue(t[1])-i)/2,a=this.getDecimalForValue(t[t.length-1]),t.length===1?r=a:r=(a-this.getDecimalForValue(t[t.length-2]))/2);const s=t.length<3?.5:.25;n=dt(n,0,s),r=dt(r,0,s),this._offsets={start:n,end:r,factor:1/(n+1+r)}}_generate(){const t=this._adapter,n=this.min,r=this.max,i=this.options,a=i.time,s=a.unit||sw(a.minUnit,n,r,this._getLabelCapacity(n)),o=J(i.ticks.stepSize,1),l=s==="week"?a.isoWeekday:!1,u=ws(l)||l===!0,c={};let d=n,f,h;if(u&&(d=+t.startOf(d,"isoWeek",l)),d=+t.startOf(d,u?"day":s),t.diff(r,n,s)>1e5*o)throw new Error(n+" and "+r+" are too far apart with stepSize of "+o+" "+s);const p=i.ticks.source==="data"&&this.getDataTimestamps();for(f=d,h=0;f<r;f=+t.add(f,o,s),h++)ow(c,f,p);return(f===r||i.bounds==="ticks"||h===1)&&ow(c,f,p),Object.keys(c).sort(iw).map(g=>+g)}getLabelForValue(t){const n=this._adapter,r=this.options.time;return r.tooltipFormat?n.format(t,r.tooltipFormat):n.format(t,r.displayFormats.datetime)}format(t,n){const i=this.options.time.displayFormats,a=this._unit,s=n||i[a];return this._adapter.format(t,s)}_tickFormatFunction(t,n,r,i){const a=this.options,s=a.ticks.callback;if(s)return De(s,[t,n,r],this);const o=a.time.displayFormats,l=this._unit,u=this._majorUnit,c=l&&o[l],d=u&&o[u],f=r[n],h=u&&d&&f&&f.major;return this._adapter.format(t,i||(h?d:c))}generateTickLabels(t){let n,r,i;for(n=0,r=t.length;n<r;++n)i=t[n],i.label=this._tickFormatFunction(i.value,n,t)}getDecimalForValue(t){return t===null?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const n=this._offsets,r=this.getDecimalForValue(t);return this.getPixelForDecimal((n.start+r)*n.factor)}getValueForPixel(t){const n=this._offsets,r=this.getDecimalForPixel(t)/n.factor-n.end;return this.min+r*(this.max-this.min)}_getLabelSize(t){const n=this.options.ticks,r=this.ctx.measureText(t).width,i=An(this.isHorizontal()?n.maxRotation:n.minRotation),a=Math.cos(i),s=Math.sin(i),o=this._resolveTickFontOptions(0).size;return{w:r*a+o*s,h:r*s+o*a}}_getLabelCapacity(t){const n=this.options.time,r=n.displayFormats,i=r[n.unit]||r.millisecond,a=this._tickFormatFunction(t,0,lw(this,[t],this._majorUnit),i),s=this._getLabelSize(a),o=Math.floor(this.isHorizontal()?this.width/s.w:this.height/s.h)-1;return o>0?o:1}getDataTimestamps(){let t=this._cache.data||[],n,r;if(t.length)return t;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(n=0,r=i.length;n<r;++n)t=t.concat(i[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){const t=this._cache.labels||[];let n,r;if(t.length)return t;const i=this.getLabels();for(n=0,r=i.length;n<r;++n)t.push(aw(this,i[n]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return ET(t.sort(iw))}}j(Sl,"id","time"),j(Sl,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});function Vu(e,t,n){let r=0,i=e.length-1,a,s,o,l;n?(t>=e[r].pos&&t<=e[i].pos&&({lo:r,hi:i}=gr(e,"pos",t)),{pos:a,time:o}=e[r],{pos:s,time:l}=e[i]):(t>=e[r].time&&t<=e[i].time&&({lo:r,hi:i}=gr(e,"time",t)),{time:a,pos:o}=e[r],{time:s,pos:l}=e[i]);const u=s-a;return u?o+(l-o)*(t-a)/u:o}class i3 extends Sl{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(t);this._minPos=Vu(n,this.min),this._tableRange=Vu(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:n,max:r}=this,i=[],a=[];let s,o,l,u,c;for(s=0,o=t.length;s<o;++s)u=t[s],u>=n&&u<=r&&i.push(u);if(i.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(s=0,o=i.length;s<o;++s)c=i[s+1],l=i[s-1],u=i[s],Math.round((c+l)/2)!==u&&a.push({time:u,pos:s/(o-1)});return a}_generate(){const t=this.min,n=this.max;let r=super.getDataTimestamps();return(!r.includes(t)||!r.length)&&r.splice(0,0,t),(!r.includes(n)||r.length===1)&&r.push(n),r.sort((i,a)=>i-a)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const n=this.getDataTimestamps(),r=this.getLabelTimestamps();return n.length&&r.length?t=this.normalize(n.concat(r)):t=n.length?n:r,t=this._cache.all=t,t}getDecimalForValue(t){return(Vu(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const n=this._offsets,r=this.getDecimalForPixel(t)/n.factor-n.end;return Vu(this._table,r*this._tableRange+this._minPos,!0)}}j(i3,"id","timeseries"),j(i3,"defaults",Sl.defaults);var ZY=Object.freeze({__proto__:null,CategoryScale:Dl,LinearScale:_l,LogarithmicScale:n3,RadialLinearScale:wo,TimeScale:Sl,TimeSeriesScale:i3});const XY=[iH,AK,CY,ZY];As.register(...XY);function zn(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function ua(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}const hR=6048e5,QY=864e5;let JY={};function Yf(){return JY}function Cl(e,t){var o,l,u,c;const n=Yf(),r=(t==null?void 0:t.weekStartsOn)??((l=(o=t==null?void 0:t.locale)==null?void 0:o.options)==null?void 0:l.weekStartsOn)??n.weekStartsOn??((c=(u=n.locale)==null?void 0:u.options)==null?void 0:c.weekStartsOn)??0,i=zn(e),a=i.getDay(),s=(a<r?7:0)+a-r;return i.setDate(i.getDate()-s),i.setHours(0,0,0,0),i}function Xd(e){return Cl(e,{weekStartsOn:1})}function pR(e){const t=zn(e),n=t.getFullYear(),r=ua(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const i=Xd(r),a=ua(e,0);a.setFullYear(n,0,4),a.setHours(0,0,0,0);const s=Xd(a);return t.getTime()>=i.getTime()?n+1:t.getTime()>=s.getTime()?n:n-1}function uw(e){const t=zn(e);return t.setHours(0,0,0,0),t}function cw(e){const t=zn(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function eq(e,t){const n=uw(e),r=uw(t),i=+n-cw(n),a=+r-cw(r);return Math.round((i-a)/QY)}function tq(e){const t=pR(e),n=ua(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),Xd(n)}function nq(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function rq(e){if(!nq(e)&&typeof e!="number")return!1;const t=zn(e);return!isNaN(Number(t))}function iq(e){const t=zn(e),n=ua(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}const aq={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},sq=(e,t,n)=>{let r;const i=aq[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function wp(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const oq={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},lq={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},uq={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},cq={date:wp({formats:oq,defaultWidth:"full"}),time:wp({formats:lq,defaultWidth:"full"}),dateTime:wp({formats:uq,defaultWidth:"full"})},dq={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},fq=(e,t,n,r)=>dq[e];function ro(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const s=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):s;i=e.formattingValues[o]||e.formattingValues[s]}else{const s=e.defaultWidth,o=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[o]||e.values[s]}const a=e.argumentCallback?e.argumentCallback(t):t;return i[a]}}const hq={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},pq={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},mq={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},gq={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},vq={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},bq={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},yq=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},$q={ordinalNumber:yq,era:ro({values:hq,defaultWidth:"wide"}),quarter:ro({values:pq,defaultWidth:"wide",argumentCallback:e=>e-1}),month:ro({values:mq,defaultWidth:"wide"}),day:ro({values:gq,defaultWidth:"wide"}),dayPeriod:ro({values:vq,defaultWidth:"wide",formattingValues:bq,defaultFormattingWidth:"wide"})};function io(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;const s=a[0],o=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(o)?wq(o,d=>d.test(s)):xq(o,d=>d.test(s));let u;u=e.valueCallback?e.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;const c=t.slice(s.length);return{value:u,rest:c}}}function xq(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function wq(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function Dq(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],a=t.match(e.parsePattern);if(!a)return null;let s=e.valueCallback?e.valueCallback(a[0]):a[0];s=n.valueCallback?n.valueCallback(s):s;const o=t.slice(i.length);return{value:s,rest:o}}}const _q=/^(\d+)(th|st|nd|rd)?/i,Eq=/\d+/i,Sq={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Cq={any:[/^b/i,/^(a|c)/i]},kq={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Pq={any:[/1/i,/2/i,/3/i,/4/i]},Tq={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Rq={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Mq={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Fq={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Aq={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Oq={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Bq={ordinalNumber:Dq({matchPattern:_q,parsePattern:Eq,valueCallback:e=>parseInt(e,10)}),era:io({matchPatterns:Sq,defaultMatchWidth:"wide",parsePatterns:Cq,defaultParseWidth:"any"}),quarter:io({matchPatterns:kq,defaultMatchWidth:"wide",parsePatterns:Pq,defaultParseWidth:"any",valueCallback:e=>e+1}),month:io({matchPatterns:Tq,defaultMatchWidth:"wide",parsePatterns:Rq,defaultParseWidth:"any"}),day:io({matchPatterns:Mq,defaultMatchWidth:"wide",parsePatterns:Fq,defaultParseWidth:"any"}),dayPeriod:io({matchPatterns:Aq,defaultMatchWidth:"any",parsePatterns:Oq,defaultParseWidth:"any"})},Iq={code:"en-US",formatDistance:sq,formatLong:cq,formatRelative:fq,localize:$q,match:Bq,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Lq(e){const t=zn(e);return eq(t,iq(t))+1}function Nq(e){const t=zn(e),n=+Xd(t)-+tq(t);return Math.round(n/hR)+1}function mR(e,t){var c,d,f,h;const n=zn(e),r=n.getFullYear(),i=Yf(),a=(t==null?void 0:t.firstWeekContainsDate)??((d=(c=t==null?void 0:t.locale)==null?void 0:c.options)==null?void 0:d.firstWeekContainsDate)??i.firstWeekContainsDate??((h=(f=i.locale)==null?void 0:f.options)==null?void 0:h.firstWeekContainsDate)??1,s=ua(e,0);s.setFullYear(r+1,0,a),s.setHours(0,0,0,0);const o=Cl(s,t),l=ua(e,0);l.setFullYear(r,0,a),l.setHours(0,0,0,0);const u=Cl(l,t);return n.getTime()>=o.getTime()?r+1:n.getTime()>=u.getTime()?r:r-1}function jq(e,t){var o,l,u,c;const n=Yf(),r=(t==null?void 0:t.firstWeekContainsDate)??((l=(o=t==null?void 0:t.locale)==null?void 0:o.options)==null?void 0:l.firstWeekContainsDate)??n.firstWeekContainsDate??((c=(u=n.locale)==null?void 0:u.options)==null?void 0:c.firstWeekContainsDate)??1,i=mR(e,t),a=ua(e,0);return a.setFullYear(i,0,r),a.setHours(0,0,0,0),Cl(a,t)}function zq(e,t){const n=zn(e),r=+Cl(n,t)-+jq(n,t);return Math.round(r/hR)+1}function pe(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Tr={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return pe(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):pe(n+1,2)},d(e,t){return pe(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return pe(e.getHours()%12||12,t.length)},H(e,t){return pe(e.getHours(),t.length)},m(e,t){return pe(e.getMinutes(),t.length)},s(e,t){return pe(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return pe(i,t.length)}},Ra={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},dw={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return Tr.y(e,t)},Y:function(e,t,n,r){const i=mR(e,r),a=i>0?i:1-i;if(t==="YY"){const s=a%100;return pe(s,2)}return t==="Yo"?n.ordinalNumber(a,{unit:"year"}):pe(a,t.length)},R:function(e,t){const n=pR(e);return pe(n,t.length)},u:function(e,t){const n=e.getFullYear();return pe(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return pe(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return pe(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return Tr.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return pe(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const i=zq(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):pe(i,t.length)},I:function(e,t,n){const r=Nq(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):pe(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Tr.d(e,t)},D:function(e,t,n){const r=Lq(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):pe(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return pe(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return pe(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return pe(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let i;switch(r===12?i=Ra.noon:r===0?i=Ra.midnight:i=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let i;switch(r>=17?i=Ra.evening:r>=12?i=Ra.afternoon:r>=4?i=Ra.morning:i=Ra.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Tr.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Tr.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):pe(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):pe(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Tr.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Tr.s(e,t)},S:function(e,t){return Tr.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return hw(r);case"XXXX":case"XX":return Oi(r);case"XXXXX":case"XXX":default:return Oi(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return hw(r);case"xxxx":case"xx":return Oi(r);case"xxxxx":case"xxx":default:return Oi(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+fw(r,":");case"OOOO":default:return"GMT"+Oi(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+fw(r,":");case"zzzz":default:return"GMT"+Oi(r,":")}},t:function(e,t,n){const r=Math.trunc(e.getTime()/1e3);return pe(r,t.length)},T:function(e,t,n){const r=e.getTime();return pe(r,t.length)}};function fw(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),a=r%60;return a===0?n+String(i):n+String(i)+t+pe(a,2)}function hw(e,t){return e%60===0?(e>0?"-":"+")+pe(Math.abs(e)/60,2):Oi(e,t)}function Oi(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=pe(Math.trunc(r/60),2),a=pe(r%60,2);return n+i+t+a}const pw=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},gR=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},Vq=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return pw(e,t);let a;switch(r){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;case"PPPP":default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",pw(r,t)).replace("{{time}}",gR(i,t))},Wq={p:gR,P:Vq},Uq=/^D+$/,Hq=/^Y+$/,Kq=["D","DD","YY","YYYY"];function Yq(e){return Uq.test(e)}function qq(e){return Hq.test(e)}function Gq(e,t,n){const r=Zq(e,t,n);if(console.warn(r),Kq.includes(e))throw new RangeError(r)}function Zq(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const Xq=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Qq=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Jq=/^'([^]*?)'?$/,eG=/''/g,tG=/[a-zA-Z]/;function nG(e,t,n){var c,d,f,h;const r=Yf(),i=r.locale??Iq,a=r.firstWeekContainsDate??((d=(c=r.locale)==null?void 0:c.options)==null?void 0:d.firstWeekContainsDate)??1,s=r.weekStartsOn??((h=(f=r.locale)==null?void 0:f.options)==null?void 0:h.weekStartsOn)??0,o=zn(e);if(!rq(o))throw new RangeError("Invalid time value");let l=t.match(Qq).map(p=>{const g=p[0];if(g==="p"||g==="P"){const b=Wq[g];return b(p,i.formatLong)}return p}).join("").match(Xq).map(p=>{if(p==="''")return{isToken:!1,value:"'"};const g=p[0];if(g==="'")return{isToken:!1,value:rG(p)};if(dw[g])return{isToken:!0,value:p};if(g.match(tG))throw new RangeError("Format string contains an unescaped latin alphabet character `"+g+"`");return{isToken:!1,value:p}});i.localize.preprocessor&&(l=i.localize.preprocessor(o,l));const u={firstWeekContainsDate:a,weekStartsOn:s,locale:i};return l.map(p=>{if(!p.isToken)return p.value;const g=p.value;(qq(g)||Yq(g))&&Gq(g,t,String(e));const b=dw[g[0]];return b(o,g,i.localize,u)}).join("")}function rG(e){const t=e.match(Jq);return t?t[1].replace(eG,"'"):e}const vR="label";function mw(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function iG(e,t){const n=e.options;n&&t&&Object.assign(n,t)}function bR(e,t){e.labels=t}function yR(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:vR;const r=[];e.datasets=t.map(i=>{const a=e.datasets.find(s=>s[n]===i[n]);return!a||!i.data||r.includes(a)?{...i}:(r.push(a),Object.assign(a,i),a)})}function aG(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:vR;const n={labels:[],datasets:[]};return bR(n,e.labels),yR(n,e.datasets,t),n}function sG(e,t){const{height:n=150,width:r=300,redraw:i=!1,datasetIdKey:a,type:s,data:o,options:l,plugins:u=[],fallbackContent:c,updateMode:d,...f}=e,h=y.useRef(null),p=y.useRef(),g=()=>{h.current&&(p.current=new As(h.current,{type:s,data:aG(o,a),options:l&&{...l},plugins:u}),mw(t,p.current))},b=()=>{mw(t,null),p.current&&(p.current.destroy(),p.current=null)};return y.useEffect(()=>{!i&&p.current&&l&&iG(p.current,l)},[i,l]),y.useEffect(()=>{!i&&p.current&&bR(p.current.config.data,o.labels)},[i,o.labels]),y.useEffect(()=>{!i&&p.current&&o.datasets&&yR(p.current.config.data,o.datasets,a)},[i,o.datasets]),y.useEffect(()=>{p.current&&(i?(b(),setTimeout(g)):p.current.update(d))},[i,l,o.labels,o.datasets,d]),y.useEffect(()=>{p.current&&(b(),setTimeout(g))},[s]),y.useEffect(()=>(g(),()=>b()),[]),_.createElement("canvas",Object.assign({ref:h,role:"img",height:n,width:r},f),c)}const oG=y.forwardRef(sG);function $R(e,t){return As.register(t),y.forwardRef((n,r)=>_.createElement(oG,Object.assign({},n,{ref:r,type:e})))}const lG=$R("line",zo),uG=$R("polarArea",us);function xR(){return A.jsx(A.Fragment,{children:A.jsx("div",{className:"block bg-white-500 border border-gray-200 rounded-lg shadow",children:A.jsx("div",{children:"No data"})})})}As.register(Dl,_l,cs,Yn,G$);function cG(e){const t={responsive:!0,scales:{x:{grid:{display:!1}},y:{min:0,ticks:{stepSize:1,callback:function(i,a,s){return i+"wps"}},grid:{display:!1}}}},[n,r]=y.useState({labels:[],datasets:[]});return y.useEffect(()=>{(async()=>{const a=e.timeframe.end.toDate(),s=e.timeframe.start.toDate();s.setHours(s.getHours()-12);const o=12,{data:l}=await e.supabase.from("file").select("timestamp").gte("timestamp",s.toISOString()).lte("timestamp",a.toISOString());if(console.log(l),l.length===0)return;const u=new Date(s),d=(+new Date(a)-+u)/o;let f=Array(o).fill(""),h=Array(o).fill(0);for(let p=0;p<o;p++){const g=new Date(u.getTime()+p*d),b=new Date(u.getTime()+(p+1)*d);f[p]=nG(b,"MM/dd - HH:mm"),h[p]=l.filter(v=>{const m=new Date(v.timestamp);return m>=g&&m<b}).length}console.log("LABELS",f),console.log("POINTS",h),r({labels:f,datasets:[{label:"Dataset",data:h,borderColor:"rgb(53, 162, 235)",backgroundColor:"rgba(53, 162, 235, 0.5)"}]})})()},[e.timeframe]),A.jsxs("div",{children:[A.jsx("p",{className:"text-center",children:e.name}),n.datasets.length>0?A.jsx(lG,{data:n,options:t}):A.jsx(xR,{})]})}function dG(e){return A.jsx(A.Fragment,{children:A.jsx(VV,{"aria-label":"timeframe",value:e.timeframe,onChange:e.setTimeframe})})}function Wu(e,t){var n=e.length*t;if(e.length===0)throw new Error("quantile requires at least one data point.");if(t<0||t>1)throw new Error("quantiles must be between 0 and 1");return t===1?e[e.length-1]:t===0?e[0]:n%1!==0?e[Math.ceil(n)-1]:e.length%2===0?(e[n-1]+e[n])/2:e[n]}As.register(Dl,_l,cs,Yn,G$);function fG(e){const t={responsive:!0},[n,r]=y.useState({labels:[],datasets:[]});return y.useEffect(()=>{(async()=>{const a=e.timeframe.end.toDate(),s=e.timeframe.start.toDate();s.setHours(s.getHours()-12);const{data:o}=await e.supabase.from("file").select("contents").gte("timestamp",s.toISOString()).lte("timestamp",a.toISOString());if(console.log("RAWDATA",o),o.length===0)return;let l=o.map(h=>h.contents.length).sort((h,p)=>h-p);console.log("TOP LENGTHS",l);let u=Wu(l,.25),c=Wu(l,.5),d=Wu(l,.75),f=Wu(l,1);console.log("p25: ",u),console.log("p50: ",c),console.log("p75: ",d),console.log("p100: ",f),r({labels:["p25","p50","p75","p100"],datasets:[{data:[u,c,d,f]}]})})()},[e.timeframe]),console.log("length: aaa",n.datasets.length),A.jsxs("div",{className:"flex-grow flex-1",children:[A.jsx("p",{className:"text-center",children:e.name}),n.datasets.length>0?A.jsx(uG,{data:n,options:t}):A.jsx(xR,{})]})}function hG(e){const t=Fl(),[n,r]=y.useState([]);y.useEffect(()=>{e.session||t("/login")},[e.session]);const i=y.useCallback(async()=>{const{data:a,error:s}=await e.supabase.from("file").select();if(s){console.error(s);return}r(a.map(o=>o))},[e.supabase]);return y.useEffect(()=>{i()},[]),A.jsx(A.Fragment,{children:A.jsxs("div",{className:"flex h-screen",children:[A.jsx(R$,{currentPage:"Home"}),A.jsx("main",{className:"overflow-y-auto flex flex-col flex-1 mx-5",children:A.jsxs("div",{className:"flex flex-col w-full gap-7 flex-grow",children:[A.jsx("div",{className:"flex flex-row gap-7 flex-grow",children:A.jsx("div",{className:"ml-auto mt-2",children:A.jsx(dG,{timeframe:e.timeframe,setTimeframe:e.setTimeframe})})}),A.jsxs("div",{className:"flex flex-row gap-7 flex-grow",children:[A.jsxs("div",{className:"w-1/2 flex flex-col",children:[A.jsx("p",{className:"text-center",children:"Active hosts"}),A.jsx("div",{className:"flex-grow block bg-white-500 border border-gray-200 rounded-lg shadow",children:A.jsxs("ol",{children:[A.jsx("li",{children:"Host 1"}),A.jsx("li",{children:"Host 2"})]})})]}),A.jsx("div",{className:"w-1/2 ml-auto",children:A.jsx(cG,{name:"File writes per second",supabase:e.supabase,timeframe:e.timeframe})})]}),A.jsxs("div",{className:"flex flex-row gap-7 mb-5 flex-grow",children:[A.jsx("div",{className:"w-1/2 mr-auto",children:A.jsx(fG,{name:"File writes size percentiles",supabase:e.supabase,timeframe:e.timeframe})}),A.jsxs("div",{className:"w-1/2 flex flex-col",children:[A.jsx("p",{className:"text-center",children:"Most edited files"}),A.jsx("div",{className:"flex-grow block bg-white-500 border border-gray-200 rounded-lg shadow",children:A.jsxs("ol",{children:[A.jsx("li",{children:"File 1"}),A.jsx("li",{children:"File 2"})]})})]})]})]})})]})})}function pG(e={}){const{nonce:t,onScriptLoadSuccess:n,onScriptLoadError:r}=e,[i,a]=y.useState(!1),s=y.useRef(n);s.current=n;const o=y.useRef(r);return o.current=r,y.useEffect(()=>{const l=document.createElement("script");return l.src="https://accounts.google.com/gsi/client",l.async=!0,l.defer=!0,l.nonce=t,l.onload=()=>{var u;a(!0),(u=s.current)===null||u===void 0||u.call(s)},l.onerror=()=>{var u;a(!1),(u=o.current)===null||u===void 0||u.call(o)},document.body.appendChild(l),()=>{document.body.removeChild(l)}},[t]),i}const wR=y.createContext(null);function mG({clientId:e,nonce:t,onScriptLoadSuccess:n,onScriptLoadError:r,children:i}){const a=pG({nonce:t,onScriptLoadSuccess:n,onScriptLoadError:r}),s=y.useMemo(()=>({clientId:e,scriptLoadedSuccessfully:a}),[e,a]);return _.createElement(wR.Provider,{value:s},i)}function gG(){const e=y.useContext(wR);if(!e)throw new Error("Google OAuth components must be used within GoogleOAuthProvider");return e}function vG(e){var t;return(t=e==null?void 0:e.clientId)!==null&&t!==void 0?t:e==null?void 0:e.client_id}const bG={large:40,medium:32,small:20};function yG({onSuccess:e,onError:t,useOneTap:n,promptMomentNotification:r,type:i="standard",theme:a="outline",size:s="large",text:o,shape:l,logo_alignment:u,width:c,locale:d,click_listener:f,containerProps:h,...p}){const g=y.useRef(null),{clientId:b,scriptLoadedSuccessfully:v}=gG(),m=y.useRef(e);m.current=e;const $=y.useRef(t);$.current=t;const w=y.useRef(r);return w.current=r,y.useEffect(()=>{var D,S,k,x,T,P,E,F,R;if(v)return(k=(S=(D=window==null?void 0:window.google)===null||D===void 0?void 0:D.accounts)===null||S===void 0?void 0:S.id)===null||k===void 0||k.initialize({client_id:b,callback:M=>{var z;if(!(M!=null&&M.credential))return(z=$.current)===null||z===void 0?void 0:z.call($);const{credential:B,select_by:C}=M;m.current({credential:B,clientId:vG(M),select_by:C})},...p}),(P=(T=(x=window==null?void 0:window.google)===null||x===void 0?void 0:x.accounts)===null||T===void 0?void 0:T.id)===null||P===void 0||P.renderButton(g.current,{type:i,theme:a,size:s,text:o,shape:l,logo_alignment:u,width:c,locale:d,click_listener:f}),n&&((R=(F=(E=window==null?void 0:window.google)===null||E===void 0?void 0:E.accounts)===null||F===void 0?void 0:F.id)===null||R===void 0||R.prompt(w.current)),()=>{var M,z,B;n&&((B=(z=(M=window==null?void 0:window.google)===null||M===void 0?void 0:M.accounts)===null||z===void 0?void 0:z.id)===null||B===void 0||B.cancel())}},[b,v,n,i,a,s,o,l,u,c,d]),_.createElement("div",{...h,ref:g,style:{height:bG[s],...h==null?void 0:h.style}})}function $G(e){const t=Fl();return y.useEffect(()=>{e.supabase.auth.getSession().then(({data:{session:r}})=>{e.setSession(r),console.log("LOGIN SESSION",r)});const{data:{subscription:n}}=e.supabase.auth.onAuthStateChange((r,i)=>{e.setSession(i),console.log("SESSION CHANGE",i)});return()=>n.unsubscribe()},[e.supabase]),y.useEffect(()=>{e.session&&t("/")},[e.session]),A.jsx(A.Fragment,{children:A.jsx("div",{className:"flex flex-col items-center h-screen w-screen",children:A.jsxs("div",{className:"flex flex-row items-center gap-x-8 m-auto",children:[A.jsx("div",{children:A.jsx("h1",{className:"text-4xl text-bold font-sans antialiased text-blue-700 tracking-wide",children:"fs-tracer"})}),A.jsx("div",{className:"block max-w-sm p-6 bg-white border border-gray-200 rounded-lg shadow",children:A.jsxs("div",{className:"mx-7 my-5",children:[A.jsx("h5",{className:"mb-2 text-2xl font-bold font-sans antialiased text-gray-900",children:"Hello!"}),A.jsxs("div",{className:"flex flex-row items-center gap-2",children:[A.jsx("span",{className:"font-normal text-gray-700",children:"Continue with"}),A.jsx("span",{children:A.jsx(mG,{clientId:"952965459060-nrnrsdoq22mf646vfa72hk410pvdda5q.apps.googleusercontent.com",children:A.jsx(yG,{onSuccess:async n=>{await e.supabase.auth.signInWithIdToken({provider:"google",token:n.credential})},onError:()=>{console.log("Login Failed")},width:7777,size:"large",type:"icon"})})})]})]})})]})})})}function xG(e){const t=Fl();return y.useEffect(()=>{(async()=>{await e.supabase.auth.signOut()})(),t("/login")},[e.session]),A.jsx(A.Fragment,{})}function DR(e){return A.jsx("a",{href:`/file/${encodeURIComponent(e.file.absolute_path)}`,children:A.jsxs("p",{className:"underline",children:["file: ",e.file.absolute_path]})})}function wG(e){const t=Fl(),n=20,[r,i]=y.useState([]),[a,s]=y.useState(0);y.useEffect(()=>{e.session||t("/login")},[e.session]);const o=y.useCallback(async()=>{console.log("FETCHIN FILES, pagination: ",a);const{data:l,error:u}=await e.supabase.from("file").select().range(a,a+n-1);if(u){console.error(u);return}console.log("RAW FILES: ",l),i(l.map(c=>c)),console.log("FETCHED FILES")},[e.supabase,a]);return y.useEffect(()=>{console.log("Aaa"),o()},[a]),A.jsx(A.Fragment,{children:A.jsxs("div",{className:"flex h-screen",children:[A.jsx(R$,{currentPage:"Recent"}),A.jsxs("main",{className:"flex-1 overflow-y-auto my-4",children:[A.jsx("div",{className:"flex flex-col items-center",children:A.jsx("div",{className:"flex flex-col gap-2",children:r.map(l=>A.jsx("div",{role:"button",onClick:()=>console.log("clocked file"),children:A.jsx(DR,{file:l})},l.id))})}),A.jsxs("div",{className:"flex flex-row gap-2 mt-4",children:[A.jsx("button",{className:"ml-7 bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded",onClick:()=>s(a+-n),children:"prev"}),A.jsx("button",{className:"mr-7 ml-auto bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded",onClick:()=>s(a+n),children:"next"})]})]})]})})}function _R(e,t){window.dispatchEvent(new StorageEvent("storage",{key:e,newValue:t}))}const gw=(e,t)=>{const n=JSON.stringify(t);window.localStorage.setItem(e,n),_R(e,n)},DG=e=>{window.localStorage.removeItem(e),_R(e,null)},vw=e=>window.localStorage.getItem(e),_G=e=>(window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)),EG=()=>{throw Error("useLocalStorage is a client-only hook")};function SG(e,t){const n=()=>vw(e),r=y.useSyncExternalStore(_G,n,EG),i=y.useCallback(a=>{try{const s=typeof a=="function"?a(JSON.parse(r)):a;s==null?DG(e):gw(e,s)}catch(s){console.warn(s)}},[e,r]);return y.useEffect(()=>{vw(e)===null&&typeof t<"u"&&gw(e,t)},[e,t]),[r?JSON.parse(r):t,i]}function CG(e){const t=Fl(),n=20,[r,i]=y.useState([]),[a,s]=y.useState(""),[o,l]=y.useState(0);y.useEffect(()=>{e.session||t("/login")},[e.session]);const u=y.useCallback(async()=>{console.log("FETCHIN FILES, pagination: ",o," search: ",a);const{data:c,error:d}=await e.supabase.from("file").select().ilike("absolute_path",`%${a}%`).range(o,o+n-1);if(d){console.error(d);return}console.log("RAW FILES: ",c),i(c.map(f=>f)),console.log("FETCHED FILES")},[e.supabase,o,a]);return y.useEffect(()=>{u()},[o]),A.jsx(A.Fragment,{children:A.jsxs("div",{className:"flex h-screen",children:[A.jsx(R$,{currentPage:"Recent"}),A.jsxs("main",{className:"flex-1 overflow-y-auto my-4",children:[A.jsxs("div",{className:"flex flex-col items-center",children:[A.jsx("label",{children:"filename"}),A.jsx("input",{placeholder:"filename",onChange:c=>s(c.target.value),className:"block bg-white w-1/2 rounded"})]}),A.jsx("div",{className:"my-4 flex flex-col items-center",children:A.jsx("button",{className:"w-20 bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded",onClick:()=>u(),children:"search"})}),A.jsx("div",{className:"flex flex-col items-center",children:A.jsx("div",{className:"flex flex-col gap-2",children:r.map(c=>A.jsx("div",{role:"button",onClick:()=>console.log("clocked file"),children:A.jsx(DR,{file:c})},c.id))})}),A.jsxs("div",{className:"flex flex-row gap-2 mt-4",children:[A.jsx("button",{className:"ml-7 bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded",onClick:()=>l(o+-n),children:"prev"}),A.jsx("button",{className:"mr-7 ml-auto bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded",onClick:()=>l(o+n),children:"next"})]})]})]})})}const ao=YB("https://slpoocycjgqsuoedhkbn.supabase.co","eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InNscG9vY3ljamdxc3VvZWRoa2JuIiwicm9sZSI6ImFub24iLCJpYXQiOjE3MTUyMDU0MjUsImV4cCI6MjAzMDc4MTQyNX0.xZYRTRN65rlms1Hb96IBAQvw3EGtMzUxlGPP5TVey34");function kG(){const[e,t]=SG("session",null),n=Il(Pf()),[r,i]=y.useState({start:n.subtract({days:7}),end:n});return A.jsx(A.Fragment,{children:A.jsx(oC,{theme:YV,children:A.jsx(KA,{basename:"/fs-tracer-frontend",children:A.jsxs(WA,{children:[A.jsx(Pi,{index:!0,element:A.jsx(hG,{supabase:ao,session:e,timeframe:r,setTimeframe:i})}),A.jsx(Pi,{path:"/recent",element:A.jsx(wG,{supabase:ao,session:e,timeframe:r,setTimeframe:i})}),A.jsx(Pi,{path:"/search",element:A.jsx(CG,{supabase:ao,session:e,timeframe:r,setTimeframe:i})}),A.jsx(Pi,{path:"/login",element:A.jsx($G,{supabase:ao,session:e,setSession:t,timeframe:r,setTimeframe:i})}),A.jsx(Pi,{path:"/logout",element:A.jsx(xG,{supabase:ao,session:e,setSession:t,timeframe:r,setTimeframe:i})}),A.jsx(Pi,{path:"*",element:A.jsx("p",{children:"notfound"})})]})})})})}Dp.createRoot(document.getElementById("root")).render(A.jsx(_.StrictMode,{children:A.jsx(kG,{})}));export{bw as g};
diff --git a/index.html b/index.html
index 6bc69cf..04c6822 100644
--- a/index.html
+++ b/index.html
@@ -32,7 +32,7 @@ href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css"
       }(window.location))
     </script>
     <!-- End Single Page Apps for GitHub Pages -->
-    <script type="module" crossorigin src="./assets/index-hvfwARIQ.js"></script>
+    <script type="module" crossorigin src="./assets/index-rBF38wWh.js"></script>
     <link rel="stylesheet" crossorigin href="./assets/index-C-SX2-fn.css">
   </head>
   <body>